Tuesday, January 8, 2013

debian screen command

You start screen as "screen -r" ^A ? show a help screen (display key bindings) ^A c create a new window and switch to it ^A n go to next window ^A p go to previous window ^A 0 go to window number 0 ^A 1 go to window number 1 ^A w show a list of windows ^A a send a Ctrl-A to current window as keyboard input ^A h write a hardcopy of current window to file ^A H begin/end logging current window to file ^A ^X lock the terminal (password protected) ^A d detach screen session from the terminal ^A DD detach screen session and log out

Monday, January 7, 2013

ImportError: No module named MySQLdb

apt-get install python-mysqldb (Linux Ubuntu, Debian)
yum install MySQL-python (Linux Fedora, CentOS)

Tuesday, January 1, 2013

jQuery comma in selector?

The second argument in the selector is a context for search. $(a,b) is the same as $(b).find(a)