Tick label formatting in matplotlib

Use the Format** functions as illustrated in the major-minor demo. e.g. pylab.plot([0,1,2],[0,1,2]) major_formatter = pylab.FormatStrFormatter(‘%2.1f’) pylab.gca().xaxis.set_major_formatter(major_formatter) pylab.gca().yaxis.set_major_formatter(major_formatter)

Installing Ruby on Mac OS X

ftp ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p129.tar.gztar -xvf ruby-1.9.1-p129.tar.gzcd ruby-1.9.1-p129./configure –enable-shared –enable-pthread CFLAGS=-D_XOPEN_SOURCE=1make -j4sudo make install Installs in /usr/local/bin, make sure to point path there

HP battery recall

Finally, some useful information on Slashdot. I knew all those hours invested in reading inane comments riveting articles would pay off. HP is recalling batteries. The list is here