Monthly Archives: August 2009

Hollow Clipping Paths

We’ve seen that we can use clipping paths to draw gradients inside rounded rectangles, as in the example to the left. Now, suppose that we want to clip a gradient to a “hollow” shape: Will Core Graphics handle this properly? … Continue reading

Posted in iPhone | Comments Off

Autorelease

A quick list of interesting posts on the subject of autorelease: Overview (Don Yacktman) When does autorelease release? (Parmanoir) Retain/Autorelease in Cocoa Getters (Seth Willits) More Fun With Autorelease (Mike Ash)

Posted in iPhone | Comments Off

Hansel and Gretel

A rough transcription of an actual conversation: A: “The Hansel and Gretel story has never rung true for me.” B: “What do you mean?” A: “Well, that house had been out in the wood for years. It was probably covered … Continue reading

Posted in Jack Handy | Comments Off

F. A. Hayek

Compared with the totality of knowledge which is continually utilized in the evolution of a dynamic civilization, the difference between the knowledge that the wisest and that which the most ignorant individual can deliberately employ is comparatively insignificant. More interesting … Continue reading

Posted in Jack Handy | Comments Off

Screenshots

Today sees the submission of my first real iPhone app to Apple. (We’ll have to wait and see how the approval process goes.) It took some time to push it over the finish line, so today I offer you only … Continue reading

Posted in iPhone, Python | Comments Off

Crumbs

One of the nice little features of fancier restaurants is the crumb scraper. This is a little metal bar/scoop that the waiter (or busser) uses to remove the crumbs from your tablecloth after the dishes have been cleared. I was … Continue reading

Posted in Jack Handy | Comments Off

Code Signing

The trickiest part of developing for the iPhone is probably signing your code s.t. it will install on a device and/or be accepted by the App Store. While there are harder (and more interesting) problems, this is the only one … Continue reading

Posted in iPhone | Comments Off

Building-Ina-Box

What do you do if you’re in the middle of a build-out of your corporate campus, and a major recession hits? Obviously, you stop construction. What do you do if you’ve already paid for a building’s elements (foundation, structural steel, … Continue reading

Posted in Jack Handy | Comments Off

Fast

A nuclear (fission-fusion) bomb takes about 600ns to detonate. In that time, a 2Ghz Intel Core Duo can execute about 2400 instructions. (Crudely: 2 instructions per cycle x 2 billion cycles per second x .000000001 seconds per ns x 600ns … Continue reading

Posted in Jack Handy | Comments Off

Your Lucky Day

Basic Instructions is well worth your time, if you’re not reading it on a regular basis already. I particularly liked the punchline in the most recent comic: Be prepared for the fact that setting someone straight seldom makes them like … Continue reading

Posted in Jack Handy | Comments Off