Android cooking tools and reference

kitchen:

HTC Desire rom & tool

Rom
Tool
ref: this

adb on ubuntu 10.04 with HTC Desire

su
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"' > /etc/udev/rules.d/51-android.rules
exit
cd ~
wget http://dl.google.com/android/android-sdk_r07-linux_x86.tgz
tar zxvf android-sdk_r07-linux_x86.tgz
cd android-sdk-linux_x86/
./tools/adb devices
./tools/adb shell

ref: this, this and this

Replace vino-server with x11vnc on ubuntu 10.04

vino-server效能不佳, 故以x11vnc替代之, 記得先停用vino-server:
sudo apt-get install x11vnc vnc4server
vncpasswd
x11vnc --quiet -ncache 10 -bg -reopen -forever \
-rfbauth ~/.vnc/passwd -display :0

ref: this.

Strace with tomcat

一般的strace使用法如下即可:
strace -p $PID
但是tomcat必須使用以下參數才可正常顯示:
strace -f -etrace=\!futex,gettimeofday,clock_gettime -p $PID
ref: this.

Jdownloader for ubuntu 10.04

Another file hosting download manager !
sudo add-apt-repository ppa:jd-team/jdownloader
sudo echo 'deb http://ppa.launchpad.net/jd-team/jdownloader/ubuntu lucid main' > /etc/apt/sources.list.d/jd-team-ppa-lucid.list # fix wrong url
sudo apt-get update
sudo apt-get install jdownloader

Open anything from command line in ubuntu

try this:
gnome-open ./*
ref: this

Disabling the Touchpad Temporarily While Typing

打字時暫時停用 touchpad .
syndaemon -i 1 -d
ref: this