Category Archive

The following is a list of all entries from the General category.

Noteworthy

Don’t search for “python dict sort by value” since you’ll get outdated answers. As of python 2.4, the “right” way to do this is:
alist = sorted(adict.iteritems(), key=lambda (k,v): (v,k))
to get the reverse order, add on a ,reverse=True
This is the fastest way to do this and it uses the least amount of memory. Enjoy.
>>> adict = [...]


The Departed Alleycat

The Departed Alleycat race was awesome. The shortest route to all the checkponts was this.
Pictures:
http://www.flickr.com/photos/javiergarcia-albea/sets/72157601087723228/
http://www.flickr.com/photos/dxcasner/sets/72157601089801574/
http://www.flickr.com/photos/36781701@N00/sets/72157601199669432/


We are traffic

I recently participated in my first Critical Mass here in Boston, and while it was not as eventful as the Critical Mass in New York or San Fransisco, it was not without it’s moments.
Critical Mass has a name and a meeting time, and that’s about it. The meeting time is usually the last Friday [...]