Quantcast
Channel: Vincent Gable's Blog » Tips
Browsing all 10 articles
Browse latest View live

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 Article



Fair 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 Article

Best 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 Article

Don’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 Article

sizeof() 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 Article


You 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 Article

Cut 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 Article

What 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 Article


N.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 Article


Retina 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
Browsing all 10 articles
Browse latest View live




Latest Images