Installing Boost.MPI with a Custom Python and a Custom GCC
I was recently chasing a KDD deadline (I still am - so why am I writing this post? I don't know) and was using Boost.MPI's Python bindings for some computation. At CMU, there's a cluster on which I use EPD-Free1 as my Python distribution which is located in: ~/opt/Python27/bin/python I have a custom gcc/g++ (version [...]
Bayes Nets + MRFs
We are supposed to do these for class. Figured this is a reasonable place to put them after I submit them for grading (i.e. these are mostly for review and use them as a reading material at your own risk). Get it from my dropbox.
Racket Oauth
I have been trying to use Racket for my research (when I can that is) and recently I had to use Yahoo!'s BOSS API for some work. I couldn't find an oauth library for Racket so I had to roll one out myself. The lib currently supports HMAC-SHA1 signing and can only handle consumer requests [...]
Racket Bloom Filter
I recently had to implement language-identification for some experiments with Clueweb-12++. I am not a racket expert and this code is possibly very stupid but it was mainly a learning exercise. I need to implement serialization in order to obtain the space gains. Currently I write bools out and I am carrying around extra info. [...]
dateutil problems.
Recently I had to deal with dateutil's parser. Apparently it is very powerful and lots of people masturbate to it and I managed to bring it to its heels with this: >>> dparser.parse("P 16:08 May 14, 2003 UTC", fuzzy=True) Traceback (most recent call last): File "", line 1, in File "/usr/lib/pymodules/python2.6/dateutil/parser.py", line 697, in parse [...]
En-route To Thinking Straight
I am not a fan of a large chunk of my childhood. I took things way too seriously. I cried over grades, got depressed about losing notebooks and overall, just cried. I then raised a stupid stink about my grades a lot of times in college. And now I see the same pattern of thinking [...]
Code Pornography
The one-liner you see below is the Haskell erotica for the month: twoK=1:(map (2*) twoK) That line will generate an infinite list containing even numbers. I can look @ that line all day and wonder at the beauty of this language. Haskell is God's language.
Predicting Which Hiragana Character You're Drawing
I tried to take a shot @ the problem shown above. Turns out just high-school level math is sufficient to make a decent classifier for this. In the Japanese alphabet(s), a character is composed of strokes. These strokes have a fixed order. This restriction is pretty much all you need. I grab the stroke's end [...]
Communicating Through Fingertips - Finger Gesture Recognition Using Depth Data
In Prof. Vishy's ML class (cs 590 - top notch course, top notch professor), we don't have a final and instead we are supposed to apply ML to a problem we find interesting. Microsoft gave all of us interns a Kinect this summer so I decided to put it to some use (I don't have [...]