No Comment

Comment sections are a ripoff. If you want to go to the trouble of writing something worth reading, it doesn’t seem like a good deal to post it as a comment. It might be gratifying in the short run, but I believe that it’s a bad long-term investment.

Continue reading

Posted in Jack Handy | Comments Off

NSFetchedResultsController pitfall

I’ve previously written about how neat I find Core Data’s NSFetchedResultController (NSFRC). Today, however, I must offer (another) word of warning. The documentation states that, if you set an NSFRC’s delegate:

[T]he controller registers to receive change notifications from its managed object context. Any change in the context that affects the result set or section information is processed and the results are updated accordingly.

I’m not going to come right out and say that this is a dirty, stinking lie, but I will say that my experience suggests that, in some circumstances, the NSFRC behavior described in the documentation is at variance with reality. Fortunately, there are workarounds.

Continue reading

Posted in iPhone | Comments Off

Tiger

Two branding questions for you:

  • If Mac OS X 10.4 “Tiger” was AAPL’s current OS, would the Tiger Woods frenzy have caused AAPL’s marketing dept. any problems?
  • Why wasn’t Porsche’s 911 brand damaged by 9/11?

I don’t know the answers, I’m just posing the questions.

Posted in Jack Handy | Comments Off

Pearl Harbor Day

I was recently reading Matthew Modine’s “Full Metal Jacket Diary“, and came across this quote:

I’m so happy that Cari and I have been invited to travel here [East Berlin] and have the opportunity to meet communist soldiers. Except for the uniforms and the language, they are just like the soldiers in my family.

We share cigarettes and the soldiers give us pins from their uniforms. Interesting, communists seem to have the same desires as we do. To live peacefully and provide for our families. Duh.

Growing up in Utah, I’d been taught that the Russians were horrible monsters, “Better dead than Red.” “The evil empire.” All propaganda …

This strikes me as wrong-headed in two important respects.

Continue reading

Posted in Jack Handy | Comments Off

Banner Removal

A reader writes:

When I print out your puzzle (I like to do paper and pencil rather than keyboard) the top portion of the puzzle is obscured by your banner ad–not much use!

I don’t have the time to test out media-specific CSS solutions to this problem right now, so I’ve just removed the banner.

Posted in Projects | Comments Off

Date Helper

As a followup to my earlier post on a “helper” view controller that handled the editing of long text fields, today I present a utility class that handles the editing of date fields. I hope you find it interesting.

Continue reading

Posted in iPhone | Comments Off

Stacks

A quick anecdote about technology. I’ve been visiting Stacks for lunch, on and off, for 13 years. Around the time of the dot-com boom/bust (c. 2000), I noticed that the waiters and waitresses had been issued PDAs, which they used to record orders. Today they’re back to pens and notepads. Go figure.

Posted in Jack Handy | Comments Off

Viva Honduras

Sometimes, the good guys win. Today, simply because this election was held, it looks like Honduran democrats won, and the Chavez proxies lost. Good deal.

Posted in Jack Handy | Comments Off

Natural Language Mathematics

I recently saw this story on Slashdot about “Revolution 4.0“, which claims to make programmers more productive by providing an “easy English-like language” in which to write code. This sort of thing strikes me as profoundly wrong-headed, and I’d like to present an analogy to try to explain why.

Continue reading

Posted in Jack Handy | Comments Off

New Sections

A quick warning about the insertSections:withRowAnimation: method of UITableView. If you insert a section with this function inside a beginUpdates/endUpdates block, you should not insert rows into that section (with insertRowsAtIndexPaths:withRowAnimation:) inside the same begin/end block. Somewhat confusingly, the first row insertion appears to work correctly, but subsequent ones tend to crash the program. Caveat insertor.

Posted in iPhone | Comments Off