About a million times when writing Django pages I’ve been iterating through a list of objects and wanted to look up a value in a dictionary keyed by object.id. But you can’t, the built-in tags don’t allow it.
I’d actually forgotten it and had to scratch my head a bit when I got the message my ticket was closed. In August of 2003 I submitted a patch to Fluxbox to allow users to hold Alt and middle-click to push a window to the bottom of the stack. The source to Fluxbox has changed so much I can’t even find the section of code that the patch was written for, so I suspect that my ticket was closed when a developer swept through old tickets and recognized this as done.
Painless Upgrade to Rails 2.0
Code: ActiveResource, NearbyGamers, Rails, Rails 2.0, routing, Ruby, TDD, test, testing, tests, upgrade, web
I spent a dead-easy 2.5 hours last night updating NearbyGamers to Rails 2.0. My svn commit message read (with links added here for convenience):
About two years ago I first read about Test-Driven Development on the c2 wiki. It’s a simple plan: before you write code, write the tests that will exercise it.
Choose Your Candidate
Biz: 2008 presidential campaign, politics, Washington Post, WashingtonPost.com
I haven’t posted a work update in a while, because mostly I’ve had a lull between projects and a new coworkers, so we’ve been cleaning out the bug and minor feature list. There’s a really neat project I want to link to called
Choose Your Candidate that I was only peripherally involved with (I gave advice for how to do the ranking math).
Sometimes Python’s roots in academia bug me. Lots of functions have a computer science feel instead of a software development feel. Here’s an example I just ran into: I wanted to fit as many sentences as possible from a long text into 255 characters. So I wrote:
Because Internet Explorer is a Failure, That’s Why
Code: browser support, browsers, failure, Firefox, Internet Explorer, support, web
About once a month since Firefox came out and was promptly recognized as a six-gallon bucket of awesome I read a blog post about how developers are lazy, shiftless bastards because they don’t want to support Internet Explorer anymore. Most recently I read Brian Reindel make this claim, so I’m going to pick on him while I rebut this insult.
Keep Ruby Gems in Your Home Directory
Code: gems, install, Ruby, RubyGems, shared hosting
I like keeping my Ruby Gems in my home directory. I don’t have to type sudo in front of every gem command, it’s easier to remember the path to them when I want to read their source, and I don’t have to worry about a sysadmin on a shared host updating a gem before I test it. Here’s how to make those benefits yours:
Post: Politics and Blogs
Biz: 2008 presidential campaign, blog directory, blogs, Clinton, donations, endorsements, Obama, politics, Romney, search, search engine, WashingtonPost.com
The Politics team has kept me busy the last two weeks at the Post, so I’ve got plenty to mention here. The 2008 Campaign Tracker has gotten some big new features. Pull up Barack Obama (my former-hometown’s hero) and look at the column on the right side.