start and resize mac terminal windows

i work mostly on the command line and generally like to use two terminal windows splitting the screen as large as i can get them.
it can be somewhat tedious resizing and repositioning the windows all of the time so i figured out how to do it in applescript:
tell application “Terminal”
do script “”

[...]

testing threads with py.test

i’m a big fan of automated unit tests. my preferred testing utility is py.test. for most things it works pretty well and its super easy to use.
threads are tricky to deal with but especially while trying to test them if you have a lot going on at the same time. by default [...]

awesome screen/vim hack

add this to ~/.vimrc:

if $TERM==’screen’
exe “set title titlestring=vim:%f”
exe “set title t_ts=\<ESC>k t_fs=\<ESC>\\”
endif

and vim will automatically set the title of screen windows to:

vim:<file opened>

thanks go to:
http://gunkies.org/blog/?p=19

back home from pycon

made it back home yesterday with only a 45 minute delay after nearly getting stuck in san antonio because of bad weather in austin.
i hung out in the bazaar/olpc sprint room monday. i’m pretty new to bazaar and wasn’t really able to contribute anything but i spent the time familiarizing myself with the code [...]

pycon 2008 – day 3

the first keynote address was really good, calling for an easier way of getting a standardized python distribution on windows to make it easier to distribute single python scripts. the second keynote address, snake charming the dragon, was also good but dragged on a little too long with perhaps too much detail. mark [...]

pycon 2008 – day 2

some of the keynotes from this morning were great. others, less than exciting – informative at best. i used the time to check out allmydata.org’s tahoe distributed filesystem, connecting to an ad-hoc p2p network started by other pycon participants. cool stuff. i haven’t quite figured out how to replicate data from [...]

pycon 2008 – day 1

day 1 of pycon 2008 is wrapping up.  i’d say it turned out pretty well.  aside from wireless issues and some minor registration problems everything seemed to run smoothly and on schedule.
all of the talks i attended were interesting:

buffer interface in py3k – nice idea – might have some use for this for parsing binary [...]

cool stuff – quilt for patch management

while working with openmoko i recently became aware of quilt, an excellent patch management system. i haven’t worked with patch files too often, preferring to use a revision control system like subversion, but the few times i have dealt with generating and managing patches i wished there were a better way. suddenly with [...]

learning pygtk

i’ve got some apps i want to write for the neo1973/freerunner. the standard interface appears to be gtk+. my preferred programming language is python so i’ve been going through the pygtk tutorial. most of the limited interface work i’ve done is in visual basic so i’m not entirely comfortable with the event [...]

openmoko & neo1973

i’ve been spending some time getting to know openmoko and the neo1973 lately as well as the openembedded framework. its starting to make sense. i’ve added a couple silly apps to a local overlay and was able to build a custom image with my apps and some favorite packages preinstalled.
a near-term goal is [...]