Category Archives: Nerdery

Items of interest to fellow computer nerds.

Don’t printf when you can tcpdump

Instead of using print statements to debug network communication, use tcpdump and get a complete and accurate picture of what’s on the wire.

A Spam Filter for Facebook Events

I love that Facebook exports events as a calendar that I can subscribe to in Apple iCal or Google Calendar. It saves much copying and pasting. Unfortunately, somebody is almost always creating an event that spans several days. Then my calendar looks like this: This is annoying, because that purple monster isn’t even a real

Avoid defining your iPhone app’s default values in two places

This is a guide to using XSLT to extract default values from your iPhone app’s Settings bundle into a separate property list file. That file can be loaded by your app at runtime, sparing you the need to maintain the same data in two places and avoiding the risk of a mismatch leading to buggy

Bracket-notation syntax

I don’t agree with The Big Nerd Ranch’s philosophy. When I teach, I make sure to mention the bracket-notation added to C by Objective-C. Then, I make sure to tell the students never to use it ever, ever, ever again. Buy why? To keep our code consistent and maintain readability. The Intent of Code When we