Best First Straight Razor
As I’ve said before, I sometimes shave with a straight razor. Honestly, straight razors are worse than safety razors by just about any metric you pick1 — except the most important one: fun. They turn a...
View ArticleFair Coin Tosses
Flipping a coin is, ever so slightly, unfair. As this article (via) points out, there is a bias for a coin to land on the same side it started on. Fortunately, all the biases coins have are systemic...
View ArticleBest Mosquito Bite Remedy
The past few rainy days here in Austin have been a welcome respite from the drought, but it means mosquitoes. The best remedy I know for a mosquito bite is Thayer’s Superhazel, Most importantly, it...
View ArticleDon’t Check malloc()
There’s no point in trying to recover from a malloc failure on OS X, because by the time you detect the failure and try to recover, your process is likely to already be doomed. There’s no need to do...
View Articlesizeof() Style
Never say sizeof(sometype) when you can say sizeof(a_variable). The latter works even if the type of a_variable changes, and it is much more obvious what the size is supposed to represent.
View ArticleYou Can’t Please Everyone
I did a project years ago called the “Dollar Dudes”, where we got on the subway with a bucket of dollar bills and announced that we were in the lucky “Dollar Train” and that everyone gets a dollar....
View ArticleCut To The Chase
YouTubeTime.com makes it easy to link to a specific time in a YouTube video. Do It Yourself Example To link to 2 minutes & 14 seconds into this video of dancing in a Microsoft store,...
View ArticleWhat Am I About To Call?
Say you’re in gdb, and about to execute a call instruction for dyld_stub_objc_msgSend, how do you know what’s about to happen? On i386 (gdb) x/s *(SEL*)($esp+4) tells you the message that’s about to be...
View ArticleN.A.R.C.
How to remember Cocoa memory management: Think NARC: “New Alloc Retain Copy”. If you are not doing any of those things, you don’t need to release. –Andiih on Stack Overflow Personally, I like to...
View ArticleRetina Ready
The iPhone 4′s ultra-sharp “Retina Display” really is a game changer. Until now, popular computer screens have been so low resolution, they could only display crude, low density, designs. It will take...
View Article
More Pages to Explore .....