發表文章

目前顯示的是 2月, 2017的文章

monitor tar-progress in linux using pv command

tar cf - /folder-with-big-files -P | pv -s $(du -sb /folder-with-big-files | awk '{print $1}') | gzip > big-files.tar.gz 4.69GB 0:04:50 [16.3MB/s] [==========================> ] 78% ETA 0:01:21 $ pv big-files.tar.gz | tar xjf - -C target_directory reference:         http://www.tecmint.com/monitor-copy-backup-tar-progress-in-linux-using-pv-command/

distcc

distcc is a tool for speeding up compilation of source code by using distributed computing over a computer network. 此工具就是可以把編譯進行分散式的處理,相當方便快速。 利用 3 台 pc 實現 distcc ... 1. 先安裝好 apt-get install distcc 2. 在每台 pc 時,開啟 distcc daemon server     # distccd --daemon --allow 127.0.0.1 --allow 10.100.90.0/24 3.   time make -j10 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage real 1m48.143s user 5m55.716s sys 0m12.236s  export DISTCC_HOSTS="localhost 10.100.90.232 10.100.90.240"  time make -j10 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage real 1m4.804s user 2m45.832s sys 0m8.844s  export DISTCC_HOSTS="--randomize localhost 10.100.90.232 10.100.90.240,cpp,lzo"  time distcc-pump make -j16 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage real 0m59.147s user 2

Windows Installer Errors 2738 and 2739

2738, Could not access VBScript run time for custom action. 2739, Could not access JScript run time for custom action. VBScript 1. regedit,刪除機碼 "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}" 2. 用Administrator的身份啟動命令提示字元,然後執行以下指令: 64-bit version of Windows: cd c:\windows\syswow64 regsvr32 vbscript.dll 32-bit version of Windows: cd c:\windows\system32 regsvr32 vbscript.dll JScript 1. regedit,刪除機碼 "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{F414C260-6AC0-11CF-B6D1-00AA00BBBB58}" 2. 用Administrator的身份啟動命令提示字元,然後執行以下指令: 64-bit version of Windows: cd c:\windows\syswow64 regsvr32 jscript.dll 32-bit version of Windows: cd c:\windows\system32 regsvr32 jscript.dll referencd: https://tw.answers.yahoo.com/question/index?qid=20100713110248AAGkno2   https://blogs.msdn.microsoft.com/heaths/2007/05/31/windows-installer-errors-2738-and-2739-with-script-custom-actions/   http://boyilee.blogspot.tw