2013年11月14日

Multi-Core Parallel Compression tools under Ubuntu

Multi-Core Compression tools - Ask Ubuntu
PXZ - Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio.
sudo apt-get install pxz
PLZIP - Lzip is a lossless data compressor based on the LZMA algorithm, with very safe integrity checking and a user interface similar to the one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses better than bzip2, which makes it well suited for software distribution and data archiving.
Plzip is a massively parallel (multi-threaded) version of lzip using the lzip file format; the files produced by plzip are fully compatible with lzip.
Plzip is intended for faster compression/decompression of big files on multiprocessor machines, which makes it specially well suited for distribution of big software files and large scale data archiving. On files big enough, plzip can use hundreds of processors.
sudo apt-get install plzip
PIGZ - pigz, which stands for Parallel Implementation of GZip, is a fully functional replacement for gzip that takes advantage of multiple processors and multiple cores when compressing data.
sudo apt-get install pigz
PBZIP2 - pbzip2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 (ie: anything compressed with pbzip2 can be decompressed with bzip2).
sudo apt-get install pbzip2
LRZIP - A multithreaded compression program that can achieve very high compression ratios and speed when used with large files. It uses the combined compression algorithms of zpaq and lzma for maximum compression, lzo for maximum speed, and the long range redundancy reduction of rzip. It is designed to scale with increases with RAM size, improving compression further. A choice of either size or speed optimizations allows for either better compression than even lzma can provide, or better speed than gzip, but with bzip2 sized compression levels.
sudo apt-get install lrzip
A small Compression Benchmark (Using the test Oli created):
ORIGINAL FILE SIZE - 100 MB
PBZIP2 - 101 MB (1% Bigger)
PXZ - 101 MB (1% Bigger)
PLZIP - 102 MB (1% Bigger)
LRZIP - 101 MB (1% Bigger)
PIGZ - 101 MB (1% Bigger)
A small Compression Benchmark (Using a Text file):
ORIGINAL FILE SIZE - 70 KB Text File
PBZIP2 - 16.1 KB (23%)
PXZ - 15.4 KB (22%)
PLZIP - 15.5 KB (22.1%)
LRZIP - 15.3 KB (21.8%)
PIGZ - 17.4 KB (24.8%)

2013年10月26日

Access to CS3 and CS4 trial version download

http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

2013年8月1日

2013年5月11日

Instant shutdown by pressing the power button (Ubuntu)


That's simple enough. When you press the power button a ACPI event triggers the script at /etc/acpi/powerbtn.sh.

You can edit that to just run shutdown -h now as the first thing so it looks like:

#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.

/sbin/shutdown -h now "Power button pressed"
exit 0

# leave the old code below (in case you want to revert!)

2013年5月6日

電腦保養心得

1) 防毒軟件
相信沒有人不安裝防毒軟件, 不過很多人都忽略防毒軟件的更新. 電腦病毒日新月異, 防毒軟件之所以能偵測是因為防毒軟件廠商會每日都會準備病毒樣本更新給自家防毒軟件下載使用. 沒有更新的防毒軟件比沒有安裝防毒軟件更危險, 因為那會給使用者虛假的安全感.
就一般而言, 防毒軟件是會自動上網更新; 但以有例外: i) 電腦沒有連上互聯網; ii) 防毒軟件過期而使用者不留意: 這個情況最常出現於隨廠機附送的防毒軟件試用版.
個人使用Microsoft Security Essentials (MSE): i)小公司商用免費; ii) 即裝即用, 不用每年再行註冊
參考:
[下載] 10套免費防毒軟體 (免破解、免買序號 Free Antivirus)
Microsoft Security Essentials 微軟防毒軟體中文版
2) 定期資料備份
個人使用MozyHome Free, 2GB免費, 會定期自動把文件作備份.
有預算又不想為此煩惱的人可以考慮Backblaze,每個月不用US$5就可以線上備份整台電腦的資料.
參考:
MozyHome Free
3) 定期電腦硬件檢查
電腦中最常出現問題的部分是硬碟(Harddisk)和記憶體(RAM)
PC-doctor
memtest
http://www.passmark.com/products/diskcheckup.htm
4) 定期清理電腦
CCleaner
Disk Defrag
參考:
[下載] CCleaner v3.15.1643 繁體中文版!(清除電腦垃圾,讓Windows跑得更順暢!)
Saving proceduces:
Safe mode + Antivirus
WinPE

Set the icon of a system folder in GNOME

By the default, unlike Windows, the icon of Dropbox folder in Linux is the same as other normal folder. To change icon to, you may type the command:
gvfs-set-attribute ~/Dropbox metadata::custom-icon-name folder-dropbox
Ref: http://oxygene.sk/2012/10/dropbox-folder-icon-in-gnome-3/

2013年4月18日

HE.net IPv6 tunnel gateway on Raspberry Pi


cat /etc/radvd.conf
interface eth0
{
  AdvSendAdvert on;
  AdvLinkMTU 1480;
  prefix 2001:230:19:2b4::/64
  {
    AdvOnLink on;
    AdvAutonomous on;
  };
};
execute
apt-get install radvd
/etc/init.d/radvd start
append /etc/network/interfaces:

auto he-ipv6
iface he-ipv6 inet6 v4tunnel
        address 2001:230:18:2b4::2
        netmask 64
        endpoint 216.218.221.6
        ttl 255
        gateway 2001:230:18:2b4::1
iface eth0 inet6 static
        address 2001:230:19:2b4::1
        netmask 64
        post-up ip6tables -A FORWARD -i he-ipv6 -o eth0 -p tcp --dport=1:2048 -j DROP
execute
/etc/init.d/networking
append /etc/sysctl.conf
net.ipv6.conf.all.forwarding=1
execute
sudo sysctl -p

2013年4月16日

Kernel 3.5 for Ubuntu 12.04 (aka LTS Enablement Stacks)

Ubuntu 12.04 LTS get official kernel update. Namely,
sudo apt-get install --install-recommends linux-generic-lts-quantal xserver-xorg-lts-quantal
There is a bug that leads to remove some i386 package required by many program (eg. wine1.5). Workaround:
sudo apt-get install xserver-xorg-lts-quantal libgl1-mesa-dri-lts-quantal:i386 libgl1-mesa-glx-lts-quantal:i386

Ref:
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
https://bugs.launchpad.net/ubuntu/+source/xorg-lts-quantal/+bug/1101899

2013年1月20日

SSH Tunneling in Putty

Example here:

Client (port 8080) -------------------------------> SSH Server
                                                                            |
                                                                            v
                                                                         (127.0.0.1:80)

ps. remember to "Add" the port forwarding

2013年1月7日

FREE Adobe CS2 Downloads

ProductPlatformDownloadsSerial number
Creative Suite 2MacCS2_install_Mac.pdf1130-0412-8377-1896-9751-5759
CS_20_IE_NonRet_D1.dmg.bin
CS_20_IE_NonRet_D2.dmg.bin
CS_20_IE_NonRet_D3.dmg.bin
VCS2.dmg
CS_2.0_IE_Extras_1.dmg.bin
WinCS2_install_Win.pdf1130-1414-7569-4457-6613-5551
CreativeSuiteCS2Disc1.exe
CreativeSuiteCS2Disc2.exe
CreativeSuiteCS2Disc3.exe
VCS2.zip
CS_2.0_WWE_Extras_1.exe
Acrobat 3D 1.0 for WindowsWinAC3D_1.0_Volume_NACK_WWE.zip1159-1414-7569-3493-5006-5653
Acrobat Standard 7.0Mac12001748.dmg1016-0414-2428-7157-5404-6669
Win22001904.exe1016-1415-6379-6184-1333-2468
Acrobat Pro 8.0MacAPRO8_Mac_WEB_WWEFG.dmg1118-0416-1130-3724-2927-7040
WinAPRO23_Win_ESD1_WWEFG.exe1118-1414-1955-8737-8172-0350
Audition 3.0WinADBEAudition_loopolgy.exe1137-1004-8571-6848-7845-8029
ADBEAudition_ESD1_WWEFGJIS.exe
ADBEAudition_loopolgy.7z
GoLive CS2MacGL_CS2_UE_NonRet.dmg.bin1033-0415-6162-2671-3431-0993
WinGL_CS2_UE_NonRet.exe1033-1418-1610-5696-5209-0095
Illustrator CS2MacAI_CS2_IE_NonRet.dmg.bin1034-0416-0740-0527-2887-2375
WinAI_CS2_IE_NonRet.exe1034-1415-6230-2341-2884-9398
InCopy CS2MacIC_CS2_UE_NonRet.dmg.bin1036-0414-4367-5110-5897-2432
WinIC_CS2_UE_NonRet.exe1036-1419-3531-6378-2148-9313
InDesign CS2MacID_CS2_UE_NonRet.dmg1037-0413-9961-4063-8457-1098
WinID_CS2_UE_NonRet.exe1037-1412-5094-8316-6812-7982
Photoshop CS2MacPhSp_CS2_English.dmg.bin1045-0410-5403-3188-5429-0639
WinPhSp_CS2_English.exe1045-1412-5685-1654-6343-1431
Photoshop Elements 4.0/5.0MacPSE4_Mac_WWE_ESD1.dmg.bin1057-0410-8218-6295-1699-9560
WinPSE_5.0_WIN_ESD1_ENG.exe1057-1414-3729-7573-7352-1206
Adobe Premiere Pro 2.0WinPPRO_2.0_Ret-NH_UE.zip1132-1280-4900-7476-5108-8019