Archive for July, 2009

Transactions

Friday, July 31st, 2009

I’ve become a big fan of SQLite on the iPhone. One nice feature of SQLite is its transaction support; this lets you commit application state changes to disk in an “all-or-nothing” manner. To use transactions effectively, however, you may need to share your DB connections; I provide a simple class for that purpose.

(more…)

navigationController

Thursday, July 30th, 2009

Today, a quick note on an iPhone gotcha that recently bit me. The short version is that a UIViewControler's navigationController property is cleared when that view controller is removed from its nav. controller, which can trip you up if you’re manipulating that nav. controller in complex ways.

(more…)

MAF: Why Men Fight

Wednesday, July 29th, 2009

Today’s installment of Book Club looks at Chapter 10 of “Men Against Fire” (MAF), which argues that personal honor is the essential element which determines whether men will stand against, or run from, enemy fire. This is an important idea, of interest to anyone who seeks to lead.

(more…)

Quickie – Two Useful Classes

Tuesday, July 28th, 2009

UIActionSheets and UIAlertViews are two slightly obscure but very handy classes that can give your iPhone app a more polished appearance with very little effort. They’re worth the few minutes it takes to read up on them.

(more…)

The Cat Post

Monday, July 27th, 2009

catI believe that, if you have a blog, not only are you allowed one post about cats, you are actually required to have (exactly) one post about cats. This is mine. I hope you enjoy it.

(more…)

Quickie – Learn To Fly

Sunday, July 26th, 2009

Saw this game linked from Lore. Mildly addictive; it’s easy to win, but there’s a lot of replay value in trying to get your time down. I’m not sure what the lower limit is; I’ve done it in 15 days/rounds (solution below the fold) and think it would be difficult (but not necessarily impossible) to do better. Strangers on the Internet do claim to have done so, and it is possible that they’re not all lying scoundrels.

(more…)

Rules!

Saturday, July 25th, 2009

Rules are funny things. I’ve recently been looking closely at the rules governing boxing matches. Under those rules, there’s a special case carved out for low blows, which are treated more leniently than any other foul. This might be a little inside-baseball, but I think it’s kind of funny.

(more…)

Pointers

Friday, July 24th, 2009

If you work with C, or C++, or Objective-C (or C#, boo, hiss) you work with pointers. Today, I want to argue that the way everyone else declares and thinks about pointers is wrong, wrong, wrong!

(more…)

Erin Pageviews

Thursday, July 23rd, 2009

So, apparently there is some nude video of ESPN professional hottie Erin Andrews floating around on the Internet. She, her lawyers, ESPN, their lawyers, et al, are officially appalled. The thing is, they also seem to be doing everything they can to draw attention to a (reportedly) blurry, obscure, ambiguous video that probably would have been lost amidst the Internet’s vast archive of low-quality soft-core pr0n if no one had said anything.

Call me cynical, but I can’t stop thinking of the old adage “there’s no such thing as bad publicity”. I’d never heard of this gal before this story broke, and I haven’t thought about ESPN in years. Now I’m writing about both. Ah well.

This, however, is the last moment I will waste on either of them.

MAF: Tactical Cohesion

Wednesday, July 22nd, 2009

Today’s installment of Book Club looks at Chapter 9 of “Men Against Fire” (MAF), which discusses the importance of personal communication to unit cohesion. The points it makes are worthy of consideration by anyone working on, or leading, a team.

(more…)