April 2010
6 posts
Alarms
I find that a radio alarm clock tuned to NPR is better at waking me up on the morning than a loud-repeating-noise. I suspect that the intellectual stimulation gets my brain going again — like my brain that keeps going at night and keeps me awake thinking at night. But loud-repetitive-noise is merely an annoyance, and can be mentally blocked out like bad advertising.
1 tag
When mixing CherryPy and HTTP/1.1, use HTTP/1.0...
While developing an app on top of CherryPy, I would get an insidious error: the browser would show a blank page. Randomly. This would happen about 10% of the time, but go up to 40% or 50% over time. Needless to say this was difficult to diagnose.
Here’s how we fixed it: Because we were running CherryPy behind Apache we told Apache to send HTTP/1.0 messages to CherryPy instead of HTTP/1.1...
I learned some Git last night.
I started working on an iPhone portion to Delicious Restaurants. I made a branch in git to store it named iphone, with the rails app still living in master. So far I’m happy with this set up, except that Xcode complains that everything on disk got deleted everytime I checkout a different branch.
I also learned this: To convert a branch to a tracking branch, add
[branch "iphone"]
...
Lack of Fancy Refactoring in Xcode
I’ve been working on an iPhone app, using Apple’s Xcode IDE.
I miss the intelligent and quick refactorings in IntelliJ for Java. My fingers want to type the short cuts for common refactorings like “extract method” and “inline variable.” But they don’t exist in Xcode. It feels crippling. I’m so used to easily molding code without doing a ton of...