Ratchets

The Irish experience with the Lisbon Treaty strikes me as representative of a broader problem with democracy. Briefly, the Irish were asked to vote on ratification of the Lisbon Treaty in 2008. They voted against it. They were then asked to vote again in 2009, and this time voted for it. What troubles me is that, on this sort of question, “no” means “no, for now” and “yes” means “yes, forever” (to a first approximation). When the side that wants the “yes” result keeps asking the question over and over and over, it seems to me to be not quite cricket.

I can see no real alternative to this state of affairs; this is a problem with the type of question being asked, and such questions will from time to time arise. It suggests, however, that “standing athwart history, shouting ‘Stop!'” is not a viable long-term strategy; one must aggressively push forward towards the ends one desires – merely resisting drift away from them is doomed to failure. I believe that this is the meaning of the political aphorism “you can’t fight something with nothing”.

Posted in Jack Handy | Comments Off

Text Helper

In the app I’m currently building, there are many longish text fields that can be edited. I decided to create a little utility class to handle the presentation of an editing interface for these fields, and I’d like to share it with you now.

Continue reading

Posted in iPhone | Comments Off

Quickie – Computer Vision

Sudoku Grab is a neat little iPhone app that enables you to solve a Sudoku puzzle by taking a picture of it. The author was kind enough to post an overview of the computer vision mechanics behind the app; if you’re interested in how the iPhone can be made to perform some neat tricks, it’s definitely worth your time.

Posted in iPhone | Comments Off

Health Care

I was poking around the web the other day, and came across this article, which features this remarkable statement in its close:

And [the failure of healthcare reform to advance along the author’s preferred lines] means that America’s industrial corporations will continue to suffer from a competitive disadvantage with manufacturers based in civilized countries where health care is considered a public trust and a right and the government pays the bill.

For me, this raised, as they say, all kinds of questions.

Continue reading

Posted in Jack Handy | Comments Off

Core Data Gotcha

Today I want to talk about how two individually reasonable design decisions in Core Data can combine to bite the unwary programmer. I’ve mentioned the benefits of the NSFetchedResultsController class’s ability to monitor the objects in its MOC for changes, and discussed the usefulness of the NSManagedObjectContext class’s mergeChangesFromContextDidSaveNotification: method. When these two features are combined with Core Data faults, however, the results may be undesirable.

Continue reading

Posted in iPhone | Comments Off

Question Time

Two things: First, you should really check out this article. It’s a comparison of the “Super Six” super middleweight (168lb) boxing tournament with the “Contender” TV series. It’s got some interesting things to say about the business of boxing.

Second, a reader wrote in with a question about NSFetchedResultControllers. Since he didn’t include a return address (one of the perils of using a contact form rather than a mailto: link) and since the question might be of general interest, I thought I’d answer it here.

Continue reading

Posted in iPhone, Jack Handy | Comments Off

Free Entertainment

If you care, you probably already know (since this news is 9 months old), but: AMC has put all 17 episodes of the 1967-68 series “The Prisoner” online, viewable for free. If you’re not familiar with this show: It’s quite possibly the most ambitious TV program ever made. It’s an allegory that uses elements of science fiction, espionage, westerns(!), and several other genres to create something quite unique.

Continue reading

Posted in Jack Handy | Comments Off

Global Warming

A quick thought experiment. It’s currently a pretty popular notion that:

  • Human activity is causing the climate to change (warm), and therefore
  • We can and should take action to reverse this change

Suppose we struck out the first statement, and simply proposed that:

  • We can and should take action to change the earth’s climate

Do you think that this would seem reasonable (i.e. possible and advisable) to most people?

As a side question: What is the ideal global mean temperature? Is it today’s? 1910’s? 1 degree cooler? 1 degree warmer? Why? Does it matter where you live? Who decides?

Posted in Jack Handy | Comments Off

Crazy Talk

Today, something frivolous. Perhaps you’re acquainted with Infocom’s 1983 classic, Planetfall? It’s a good game, but today I want to talk about its manual. Planetfall’s manual included a recruitment pitch/application form for the “Stellar Patrol”, and the form included a fairly ludicrous logic puzzle. Despite its absurdity, this puzzle turns out to have a unique solution, and I’d like to show how Python can be used to find it.

Continue reading

Posted in Python | Comments Off

objectAtIndexPath:

I’ve praised the amazingly useful NSFetchedResultsController before, but today I want to point out a tiny little problem with this class, or at least its documentation. Briefly, objectAtIndexPath: will sometimes return objects for invalid index paths.

Continue reading

Posted in iPhone | Comments Off