Wednesday, April 30, 2008

vim word movement with underscore delimiter

see VIM FAQ, 12.35.
:set iskeyword-=_

Also see the camelcasemotion plug-in, described in one of the comments below by leoc.me.

VIM Quick Reference Card

Link

SCons error with Ubuntu Hardy: "scons: *** object of type 'int' has no len()"

delete .sconsign.dblite, since the function convert_old_entry in /usr/lib/scons/SCons/Node/FS.py that should handle old formats of .sconsign.dblite is buggy.

Monday, April 21, 2008

grep alias with arguments and filter

alias mygrep 'grep -i -R \!^ * | grep -v \.svn'

(!^ passes the first argument)

(works only in cshell, for bash use something like this.)

Sunday, March 30, 2008

skype on ubuntu gutsy amd64

install using AMD64 section of this HowTo.
(extract .deb packages using "-x", use LD_LIBRARY_PATH when starting skype.)

install webcam driver as described here. it is important to remove the old driver from its location.

Saturday, March 22, 2008

encode png images to x264 avi

for i in `seq 1 3`; do mencoder mf://*.png -sws 10 -vf scale=800:592 -ovc x264 -x264encopts qp=40:subq=7:pass=$i -o output.avi; done

Monday, March 3, 2008

debug http web form url

Save the page to your local disk and change the method to a get instead of submit and you'll see the values in the addressbar.

even more useful: Live HTTP Headers Addon