Services
Find Stuff
Pages
Buy My Apps
Other Stuff I’ve Built
Book Club
Archives
- May 2018
- February 2014
- December 2013
- November 2013
- August 2012
- July 2012
- April 2012
- March 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
Categories
- Boxing (23)
- Energy (5)
- iPhone (142)
- Jack Handy (283)
- NaNoWriMo (3)
- People (11)
- Planet Microsoft (5)
- Projects (88)
- Python (43)
- Reelviews (13)
- Reverse Engineering (18)
- Six Word Stories (111)
- The Hard Way (3)
- Uncategorized (6)
- UNIX (8)
- Vacation Slides (30)
- Web stuff (51)
Blogroll
Monthly Archives: November 2009
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 … 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 … Continue reading
Posted in iPhone
Comments Off
Mezzo Cammin
Tho’ much is taken, much abides; and tho’ We are not now that strength which in old days Moved earth and heaven; that which we are, we are; One equal temper of heroic hearts, Made weak by time and fate, … Continue reading
Posted in Jack Handy
Comments Off
P.G. vs. AAPL
Paul Graham discusses Apple’s iPhone App Store approval process in his latest essay. I think it’s fair to summarize the core of his piece as: The App Store approval process is opaque and frustrating Its bad design is driven by … Continue reading
Posted in iPhone, Jack Handy
Comments Off
0x5f375a86
Okay, so, yeah: XKCD. The mouseover text for that one reads: Some engineer out there has solved P=NP and it’s locked up in an electric eggbeater calibration routine. For every 0x5f375a86 we learn about, there are thousands we never see. … Continue reading
Posted in Jack Handy
Comments Off
Probability
Something a little lighter today: a probability puzzle. Consider this snippet of code: def roll(a,b): # Assume that a and b are both integers greater than 0 return random.randint(0,a-1) > random.randint(0,b-1) What is the probability that roll() returns True for … Continue reading
Posted in Python
Comments Off
Pre-Existing
In the current U.S. health-care debate, you hear the phrase “pre-existing conditions” a lot – usually in the context of someone claiming that health insurers shouldn’t be “allowed” to consider pre-existing conditions when deciding whether or not to offer (or … Continue reading
Posted in Jack Handy
Comments Off
@synthesize
When declaring properties that will be created with the @synthesize directive, it’s natural to use the same name for both the property and the backing member. Something like this: @interface MyClass : NSObject { NSString* value; } @property(nonatomic, retain) NSString* … Continue reading
Posted in iPhone
Comments Off
Table Cell Indentation
Just a quick iPhone note: The “Table View Cell” group of the “Table View Cell Attributes” pane in Interface Builder contains a checkbox labelled “Indent While Editing”. It seems to me that this should control whether or not the cell … Continue reading
Posted in iPhone
Comments Off