svn co http://codespeak.net/svn/psyco/dist/ psyco-distsudo python setup.py install
So here I was merrily writing a python module to extract neural data from the Cerebus system’s giant .nevs file and split it into smaller files – one per neural unit. I had been extracting one channel at a time and all was well. So now I copy the code over to the lab machine… Read More Maximum number of open files in Python
Note this graph. The upper trace just goes from 0 to 1.6ms. The lower trace was a series of such waveforms ocurring from 0 to 10 s. I zoomed in to see one wave. When you do that in Matlab the tick labels would take the form 8.168, 8.169, 8.170 which is legitimate, but gets… Read More Why I love matplotlib + python
From here: just use a % sign as an escape character. so: print ‘22%’ works print ‘%d’ %(22) works print ‘%d%’ %(22) throws an error and the solution is print ‘%d%%’ %(22) People say this is hacky. They ‘fixed’ it in Python 3.0 but I’m not upgrading soon. Imagine having to go through all your… Read More Percent sign in python format string
Finder has a little bug:
From macoshints: If you’ve upgraded to Leopard and now find the IDE of the new Matlab release 2007b to be super-slow, create a file called java.opts in your /Applications/MATLAB_R2007b/ directory, and add the following line to it: -Dapple.awt.graphics.UseQuartz=true Then restart Matlab. This will switch Matlab back to using the Quartz drawing enginge (as it was… Read More Slow Matlab editor on Mac OS X
Sometimes I find howlers on DVD that I want to store. On a Mac the sequence is: Open the DVD in VLC and find out which title and chapter the clip is in. Use MacTheRipper to extract that title and chapter to .vob format Open it up in VLC, note the seconds offset for the… Read More Getting clips from DVD
I thought the author of the Harry Potter books invented the word ‘Muggle’ but I ran into it in Steinbeck’s ‘Sweet Thursday’. Couldn’t figure out what it meant though.
You can have multiple versions of Rails on the same machine.You can tell your app which version of Rails to use by adjusting RAILS_GEM_VERSION in config/environment.rbYou can also freeze all the plugins etc that you use into your code tree before deployment rake rails:freeze:gems.
ftp http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmgsudo hdid python-2.5.4-macosx.dmgsudo installer -pkg /Volumes/Universal\ MacPython\ 2.5.4/MacPython.mpkg/ -target “/”sudo /Applications/MacPython\ 2.5/Update\ Shell\ Profile.command ##!!!IMPORTANT!!! ftp http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.eggsudo sh setuptools-0.6c9-py2.5.egg ftp http://ipython.scipy.org/dist/ipython-0.9.1-py2.5.eggsudo easy_install ipython-0.9.1-py2.5.egg ftp http://r.research.att.com/gfortran-4.2.3.dmgsudo hdid gfortran-4.2.3.dmgsudo installer -pkg /Volumes/GNU\ Fortran\ 4.2.3/gfortran.pkg/ -target “/” ftp ftp://ftp.fftw.org/pub/fftw/fftw-3.2.1.tar.gztar -xvf fftw-3.2.1.tar.gzcd fftw-3.2.1./configuremake -j4sudo make install ftp http://downloads.sourceforge.net/numpy/numpy-1.2.1-py2.5-macosx10.5.dmg?use_mirror=internapsudo hdid numpy-1.2.1-py2.5-macosx10.5.dmgsudo installer -pkg /Volumes/numpy-1.2.1-py2.5-macosx10.5/numpy-1.2.1-py2.5-macosx10.5.mpkg/ -target “/” ftp http://downloads.sourceforge.net/scipy/scipy-0.7.0-py2.5-macosx10.5.dmg?use_mirror=superb-eastsudo hdid… Read More Installing analysis tools on a mac via commandline
The last end was the best end. Some people would be ashamed of this scoresheet. I am not one of them 🙂 I had a lot of fun!
From an email the tuition office sent out $42,500 for academic year 2009-2010 the typical 2008 HMS student graduated with $115,500 of total educational debt, as compared with a national mean of $173,000 Parent contribution waived for families whose yearly incomes are $120,000 or less Unit loan package for current and newly admitted students $24,500… Read More How much does Harvard Medical School cost?
I did the auto update and now it crashes on every second webpage. Bad browser, baad browser.