Posted on December 25, 2012 at 2:07 pm

Setting up Scala with IntelliJ IDEA on Mountain Lion

I’d recently finished Martin Odersky’s Functional Programming Principles in Scala class Coursera. I’d briefly played with OCaml for a couple of months back in 2002, when I was on the verge of dropping out of college and had so much time on my hands that I didn’t know what to do with it. Subsequently, KS […]

Posted on January 7, 2010 at 4:16 pm

Installing Rosetta on Snow Leopard

I was trying to use the flare actionscript decomplier, which I’d never used since I upgraded to Snow Leopard about a month ago. The OSX version of flare is a PPC binary and needs Rosetta to run. Unfortunately, since flare is a command line application, it just spits out a message (“You need the Rosetta […]

Posted on June 22, 2009 at 1:10 pm

Browser toolbars and privacy

Some 6 months ago, out of curiousity, I tried using Wireshark to monitor the http traffic browser was generating while casually browsing the web on Firefox with the StumbleUpon toolbar. The resulting traffic dump was pretty interesting. The Stumbleupon toolbar was calling home for every single URL I visited. The extension was making an HTTP […]

Posted on June 16, 2009 at 6:00 pm

Walled Gardens?

This probably is the most inappropriately titled post on my blog. Maybe this should have been titled “Why I think I waste so much time on proggit and hacker news” or “PR for my new feature on tagz”. For a long time I thought that people flock to social news sites to find new links pertinent to their […]

Posted on April 21, 2009 at 7:13 pm

Counting bloom filters in python and javascript

Continuing the theme of implementing simple datastructures in python and javascript, here’s a simple counting bloom filter implementation in python and javascript which I’d written for Tagz. I’d almost forgotten about this, until a thread today on compsci.reddit reminded me of it. With this implementation, you can build a bloom filter in python and add/remove/lookup elements. You […]

Posted on April 13, 2009 at 3:58 pm

A Mochikit style Dombuilder for YUI

Before moving to YUI about a year ago, I was using Mochikit as my primary JS library. As advertised, Mochikit happens to be one of the most pythonic javascript libraries ever. One of the sweetest parts of Mochikit IMO has been Mochikit.DOM. This is something which I’ve always missed with YUI. innerHTML is fast, but icky […]

Posted on April 11, 2009 at 9:07 am

Tries and Ternary Search Trees in Python and Javascript

There are a couple of places in which Tagz, where I needed efficient prefix matching. The most obvious way to do this is to use a Trie or a Ternary Search Tree. So, I ended up implementing both in Python. I’ve had this stuff lying around in my mercurial repo for Tagz for quite some […]

Posted on April 6, 2009 at 5:04 pm

Using redis

I’ve been using memcached for all the caching on Tagz. Redis is a relatively new key value database which covers a superset of memcached’s functionality. One of the biggest problems I’ve had with memcached (actually it has nothing to do with memcached) is that whenever I store a large datastructure on memcached, deserializing (unpickling) it takes […]

Posted on April 1, 2009 at 11:24 am

A change in direction for Tagz

Tagz has come a long way since I launched it last September. Something which began as a clean room django application has been accumulating a lot of cruft. One patch at a time, its turned itself into an unmaintainable mess of a codebase. In retrospect, I feel Python and Postgres weren’t really the best choices […]

Posted on March 7, 2009 at 4:05 am

Does HTML validation really matter ?

Over at Codinghorror, Jeff Atwood ponders if making your pages W3C compliant is really worth all the effort. I’m sure just about everyone who has written more than a couple of html pages has thought about this. As a programmer, I find writing html and css to be a real chore. My productivity drops very […]