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 and tell it to extract all the data and split it into 96*4 files.
Traceback (most recent call last): File "convert_nev.py", line 11, in File "/Users/kghose/Experiments/Python/nev.py", line 270, in fragment IOError: [Errno 24] Too many open files: '../Neural/DJ2009/20090320//Frag//electrode64unit02.bin'
Whaaa? Whats all this? Well, it turns out you can't have too many files open at the same time. And the resource module can tell you exactly how many files you can have open at a given time:
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 hard to read when you zoom in a lot and you get lost in the digits. Matplotlib, on the other hand, produces the zoom plot pictured here. It shows you the offset on the right (8.168) and then just shows you the vernier values. Now THAT is what I call service. The matplotlib guys are really good. Its like they actually use their product for data analysis. They must be scientists or something :).
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 in previous versions of 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 part of the clip we want and then use File->Streaming/Export wizard to export the clip. I use H.264 (3072 kb/s) for video and MPEG-4 audio and mp4 container.Here's an example:
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.rb You can also freeze all the plugins etc that you use into your code tree before deployment rake rails:freeze:gems.
From an email the tuition office sent out $42,500 for academic year 2009-2010the 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 lessUnit loan package for current and newly admitted students $24,500For all students qualifying for the unit loan, the 2009-2010 package will continue to consist of loans that do not accrue interest while the student is in schoolA more extensive breakdown of costs is here.