Programming - A Gateway Drug to Math

I decided to try my hand at the Stanford’s AI Class. The pre-requisites mentioned Probability and Linear Algebra. So I started watching Probability videos on KhanAcademy. Sal Khan was teaching how to find the probability of 2 heads when you toss a coin 5 times. A classic nCk problem: The probability of getting 2 heads while tossing a coin 5 times is: But I wanted to find out the probability of getting at least 2 heads when I toss 5 coins....

October 4, 2011 · 1 min

Rant about C++ dependency hell

When was the last time I vented about C++? The answer for that is always: “TOO LONG AGO”. The initial friction to setup a substantial project using C++ is unfucking bearable. When we started code revamp at work recently, I decided to be a good citizen and decided to incorporate cpptest, a unit testing framework in our project. It made me realize how unreasonably complicated Makefiles can be. After 3 hours of peeling away at the complexity I managed to add cpptest to the build dependency of the project....

October 4, 2011 · 2 min

Rapid Prototyping in Python

I was recently assigned to a new project at work. Like any good software engineer I started writing the pseudocode for the modules. We use C++ at work to write our programs. I quickly realized it’s not easy to translate programming ideas to English statements without a syntactic structure. When I was whining about it to Vijay, he told me to try prototyping it in Python instead of writing pseudocode. Intrigued by this, I decided to write a prototype in Python to test how various modules will come together....

September 25, 2011 · 3 min

New Laptop

I finally ordered a new Macbook air for myself. One of my friends remarked at the fact that this is the first brand new laptop that I’ve ordered for myself. Since I’m a bit of a Linux fanatic, I tend to restore old computers and install a linux distro and make them useable. So I always get old laptops for cheap for myself. But this time I decided it’s time to checkout Mac OS X....

August 27, 2011 · 1 min

Falsetto dude and the Fat man

A typical conversation between my wife and I: Playing Ne Me Quitte Pas by Nina Simone Yoshi : Ow! What is that abomination? Amjith: It’s a french song sung by the great Nina Simone. Yoshi : It’s a woman? Sounded like a dude singing in falsetto. Yoshi: I’m leaving the room if you don’t change the song. Amjith: FINE. You play something then. Yoshi puts on Ave Maria by Pavarotti. I wait for 2 mins....

August 7, 2011 · 1 min