iTerm Profiles

Hacking on iTerm 2 I wanted a small weekend project to hack on today, so I decided to hack a little on iTerm. First, I wanted to make it easier to switch between light and dark profiles. Switching profiles in iTerm requires a bunch of clicks, and I hate using …


Behind the Scenes of the Startup Podcast

I'm a huge fan of podcasts: I never miss an episode of Marketplace; I am near giddy when a new episode of Radiolab is released; I credit Planet Money with preparing me for a successful first interview out of college at Freddie Mac. The hottest new podcast is undoubtedly Startup …


Unpythonic Python

FizzBuzz When I applied to Hacker School, one of the application question was FizzBuzz: Write a program that prints out the numbers 1 to 100 (inclusive). If the number is divisible by 3, print Fizz instead of the number. If it's divisible by 5, print Buzz. If it's divisible by …


SQLAlchemy and Race Conditions: Follow Up on Commits and Flushes

In an earlier post, I talked about my adventures in creating a get_one_or_create() function for SQLAlchemy to use with Flask and Postgres. There was an excellent question asked in the comments about weather session.flush() could be used on line 13 instead of session.commit(). I didn't fully understand the …