Monthly Archives: May 2010

Webkit (Python + GTK) on Debian Lenny


Note: an alternative to all of these arduous/sketchy steps is simply to go with an older version of pywebkitgtk, like version 1.0.2… but that’s almost 2 years old at this point. I’ll take the newer stuff. python-gtk2 No biggie, just … Continue reading

Posted in Programming | Tagged , , | Leave a comment

A quick vim setup for linux


set backupdir=$HOME set directory=$HOME set history=50 ruler ttymouse=xterm2 set helplang=en mouse=a ttyfast viminfo=’20,”50 set backspace=indent,eol,start set noexpandtab tabstop=4 shiftwidth=4 autoindent set nu set t_Co=256 colorscheme zenburn cnoreabbrev W w if has(“gui_running”) set guifont=Bitstream\ Vera\ Sans\ Mono endif syntax on autocmd … Continue reading

Posted in Admin | Leave a comment

Interesting list sorting in python


This isn’t really worthy of a blog post as it’s somewhat rudimentary and easily found right in the docs (though sort of indirectly), but it is something that was mostly overlooked by me until recently. The trick is is mylist.sort(key=…). … Continue reading

Posted in Programming | Tagged , , | Leave a comment