Dec 12

http://railsforum.com/viewtopic.php?id=35600

Nov 30

It’s been a while since I posted here! I’ve got a couple of iPhone apps in the app store now. So that’s fun. Here’s a link to the more timely of the two: http://advent2009app.com (iTunes App Store Link is here).

It’s an advent calendar, for each day from December 1 through December 25, 2009. Casson Demmon of The Make Studio and I put it together, and we’re really excited about the results. Take a look!

Mar 11

I’ve been using Jeff LaMarche’s SQLitePersistentObjects library for sqlite access on the iPhone. It’s a very young, but very promising library.

Some discussion on the mailing list prompted me to create SQLPOTests, a sample app that allows you to play with three different backings for a UITableView. I think there are more entries in the sample db than a typical iPhone app will likely sport (i.e., there are 6000 rows in 3 tables), but I’m amazed at the performance gain on scrolling when using the +pairedArrays method instead of loading full objects.


!Viagra and buy^
!
Buy diet online phentermine pill prescriptioncom viagra^
!
Cialis medicine online order rx viagra^
!
Wwwrxfamilycom buy cheap cheap kamagra uk viagra^
!
Viagra online purchase^
!
Buy onlinecom phentermine viagra^
!
Buy cheap cheap kamagra uk viagra niy cheap cgeap kamagra^
!
Buy viagra for cheap^
!
Mail order viagra in uk^
!
No prescription order viagra online^
!
Viagra where to buy in the united kingdom^
!
In canada buy viagra^
!
Buy viagra cheap online^
!
Purchase viagra in australia^
!
Buy sildenafil viagra^
!
Cheap viagra in uk^
!
Buy viagra cialis levitra^
!
Cheap viagra in india^
!
Cheapest place buy viagra online^
!
Generic viagra cheap^
!
Buy viagra online uk^
!
Cheap pharmaceutical viagra^
!
Buy viagra pill online^
!
Buy cheap cheap kamagra uk viagra buy cgeap cheap kamagra^
!
Viagra uk cheap purchase buy^
!
Where to buy viagra online^
!
Viagra edinburgh page buy eggs find 10years 31am charles july^
!
Buy cheap cheap kamagra uk viagra nuy cheao cheao kamagra^
!
Cheap viagra cialis^
!
Buy viagra pill^
!
Buy levitra online viagra^
!
Book buy online order viagra^
!
Cheap source viagra^
!
Can i buy viagra online^
!
Buy viagra alternative apcalis cialis jel jelly kamagra^
!
Mail order viagra china^
!
Cheap viagra uk^
!
Buy viagra online^
!
Cheap buy viagra^
!
Keywords buy viagra^
!
Buy cheap viagra^
!
Purchase generic viagra^
!
Generic viagra caverta cialis cheap^
!
Buy viagra discrete england^
!
Order viagra onlines^
!
Buy viagra cialis china shanghai no prescription^
!
Viagra purchase^
!
Cheap viagra kamagra^
!
Viagra buy online^
!
Viagra to buy cheap^
!
Buy viagra phuket^
!
Buy generic viagra online^
!
Cheap generic kamagra kamagra uk viagra^
!
Buy viagra online and get prescription^
!
Diigo user viagra cheap buy^
!
Buy cheap cheap kamagra uk viagra^
!
Cheap viagra from pfizer^
!
Viagra india mail order^
!
Where to buy generic viagra^
!
Buy viagra uk^
!
Generic viagra 3a caverta 2c cialis cheap^
!
Best buy viagra^
!
Buy viagra on line^
!
Cheap kamagra generic viagra videos^
!
Buy meltabs generic viagra kamagra caverta edegra silagra^
!
Buy viagra online inu^
!
Purchase viagra^
!
Buy low price viagra^
!
Order viagra cheap^
!
Buy online viagra^
!
Buy viagra order viagra^
!
Buy kamagra viagra india^
!
Cheap viagra order online^
!
To buy viagra how^
!
Purchase viagra cialis levitra^
!
Buy viagra line^
!
Buy viagra online get prescription^
!
Buy best k viagra btvmix^
!
Buy cheap cheap kamagra uk viagra buy cheap cgeap kamagra^
!
Buy viagra fedex^
!
Mail order viagra^
!
Cheap kamagra uk viagra^
!
Order zenegra viagra^
!
Order viagra canada^
!
Cheap discount viagra^
!
Where can i buy viagra^
!
Buy viagra prescription^
!
Cheap no prescription viagra^
!
Buy now online viagra^
!
Order 50mg viagra^
!
Buy cheap cheap kamagra uk viagra buy cheap cheap kamahta^
!
Viagra search find 74k generic buy free online pages cialis^
!
Mail order and viagra^
!
Buy brand viagra in the united states^
!
Buy cheap cheap kamagra uk viagra buy cheap cheap kamagra^
!
Cheap generic viagra substitutes^
!
Buy online viagra where^
!
Cheap viagra cialis india^
!
Is it safe to buy viagra online^
!
Edinburgh viagra good search charles linskaill pages buy^
!
Buy cheap cheap kamagra uk viagra buy cheap cheap ksmagra^
!
Buy cheap online viagra viagra^
!
Where to buy viagra^
!
Viagra postal order^
!
Viagra buy^
!
Cheapest place to buy viagra^
!
Viagra edinburgh search pages buy online soft sites free find^
!
Buy kamagra viagra^
!
Buy viagrabuy viagra onlinebuy cialis onlinebuy levitra^
!
Buy viagra^
!
Can you order viagra from a canadian pharmacy^
!
Internet order viagra^
!
Buy viagra sale^
!
Buy cialis online viagra^
!
Buy viagra in hong kong^
!
Mail order viagra online^
!
Cheap say viagra wordpress^
!
Cheap viagra generic^
!
Order viagra viagra^
!
Buy cheap online prescription viagra^
!
Viagra to buy^
!
Cheap viagra credit^
!
Viagra purchase on line^
!
Order viagra now^
!
Order generic viagra^
!
Where to purchase viagra cialis levitra online^
!
Viagra online cheap^
!
Viagra cheap online^
!
Cheap viagra pill^
!
Viagra buy viagra^
!
Cheap viagra for sale^
!
Cheap but effective alternative to viagra^
!
Buy online viagra viagra^
!
Buy cheapest viagra^
!
Viagra cheap^
!
Buy viagra onlines^
!
Cheap generic viagra deals^
!
Buy viagra 61291ps1e^
!
Buy com online phentermine viagra^
!
Order viagra buying viagra uk^
!
Cheap viagra online prescription^
!
Buy viagra internet^
!
Viagra viagra buy^
!
Buy no prior viagra cialis levitra^
!
Buy online pharmacy viagra^
!
Online medicine rx cialis viagra order^
!
Viagra edinburgh pages search find boring free buy girl generic^
!
Viagra purchase online^
!
Buy levitra viagra online^
!
Cheap online generic viagra^
!
How to buy viagra cheap^
!
Buy generic viagra generic cialis meltabs caverta^
!
Cheap viagra uks^
!
Buy citrate com generic sildenafil viagra^
!
Order viagra without prescription^
!
Order viagra over internet need no doctor^
!
Best way to buy viagra^
!
Order viagra online^
!
Cheap meltabs viagra^
!
Uk mail order viagra^
!
Buy viagra onli^
!
Buy viagra zenegra^
!
Buy cheapest viagra online^
!
Buy viagra online without prescription^
!
Best buy meridia phentermine propecia viagra^
!
Viagra online order^
!
Buy cheap cheap kamagra uk viagra buy cjeap cheap kamagra^
!
Buy discount viagra^
!
Shop for cheap kamagra uk kamagra indian viagra kamagra uk no^
!
Online pharmacy cheap viagra^
!
Air order travel viagra articles web design videos^
!
How to order viagra^
!
Buy overseas viagra^
!
Viagra on line order^
!
Levitra buy levitra online viagra^
!
Buy viagra online in uk^
!
Buy discount viagra online^
!
Cheap viagra ambien generic cananda^
!
Online medicines rx cialis viagra order^
!
Cheap generic viagra online^
!
Buy loss online com phentermine prescription viagra weight^
!
Purchase viagra in uk^
!
Buy viagra usa^
!
Very cheap viagra^
!
Can you buy viagra over the counter^
!
Cheapest place to buy viagra online^
!
Where can i buy viagra in london^
!
Generic viagra 3a caverta cialis cheap^
!
Buy softtabs viagra^
!
Cheap viagra rings^
!
Cheap 100 mg viagra^
!
Viagra viagra viagra buy^
!
Buy cheap cialis generic levitra viagra^
!
Buy viagra online no prescription^
!
Buy viagra now online^
!
Find viagra cheap overnight mail^
!
Buy viagra pay with paypal^
!
Order phentermine onlineorder viagra^
!
Buy herbal viagra^
!
Cheap kamagra uk kamagra indian viagra kamagra uk no^
!
Buy cheap viagra online next day delivery^
!
Buy xenical viagra propecia^
!
Cheap viagra without prescription^
!
Buy viagra 1^
!
Cheap viagra^
!
Where to buy viagra forum^
!
Online order viagra^
!
Purchase viagra without prescription^
!
Buy and purchase viagra online^
!
Buy now viagra^
!
Cheap viagra online^
!
Buy generic soft tab viagra^
!
Buy generic viagra and generic sildenafil citrate^
!
Cheap viagra canada^
!
Cheap genaric viagra kamagra^
!
Viagra cheap prescription^
!
How to buy viagra without prescription^
!
Canada viagra buy^
!
How to buy viagra^
!
Buy best k viagra kqdbyb^
!
Viagra samples generic viagra buy viagra online videos^
!
Buy lady uk viagra^
!
Generic zantac viagra online pharmacy cheap onlin^
!
Searchstarwarecom buy cheap cheap kamagra uk viagra^
!
Cheap fioricet soma tramadol viagra^
!
Where to purchase viagra cialis levitra^
!
Viagra no prescription needed cheap^
!
Sildenafil citrate viagra generic cheap^
!
Kuwait buy viagra now^
!
Buy herbal viagra longer erections^
!
Honest place to buy viagra^
!
Viagra best buy^
!
Generic cheap viagra^
!
Viagra mail order india^
!
Viagra mail order^
!
Buy uk viagra^
!
Where buy viagra^
!
Buy levitra viagra^
!
Viagra online buy^
!
Order viagra^
!
Buy viagra levitra alternative lavitra^
!
Free online order viagra^
!
Viagra find sites search buy free online pages edinburgh charles^
!
Where can you buy viagra in the uk^
!
Cheap online viagra^
!
Viagra edinburgh pages find search cheap overnight^
!
Cheap viagra order online order discount viagra packs from 10^
!
Buy cheap viagra online^
!
Viagra cheap less^
!
Buy generic viagra^
!
Cheap herbal viagra^
!
Buy online order viagra^
!
Buy viagra now^
!
Viagra free order^
!
Can you buy viagra without a doctors prescription^
!
Buy cheap generic viagra^
!
How to buy viagra to ship to canada^
!
Buy generic viagra si^
!
Order viagra on line^
!
Buy soft generic viagra cheapest^
!
Cheap order prescription viagra^
!
How to buy viagra online^
!
Kamagra cheap viagra^
!
Viagra order mail^
!
Buy keyword online viagra generic viagra caverta silagra^
!
Online pill viagra buy^
!
Viagra pages edinburgh search cheap buy^
!
Buy cheap online viagra^
!
Buy viagra online cheap^
!
Buy cheao cgeap kamagra uk viagra^
!
Order 100 milligram phyzer viagra no prior rx needed^
!
Viagra purchase uk^
!
Purchase viagra uk^
!
Cheap pfizer viagra^
!
Viagra mail order uk^
!
About buy viagra online links^
!
Buy viagra online inurl^
!
Viagra cialis cheap^
!
Free viagra order online^
!
Buy viagra in england^
!
Air order travel viagra videos^
!
Online purchase viagra^
!
Prescription order viagra without^
!
Viagra money order^
!
Viagra order^
!
Buy xenical viagra propecia com^
!
Alternative buy viagra^
!
Buy real viagra^
!
Viagra online alternative apcalis buy cialis jel jelly^
!
Buy generic viagra generic cialis meltabs caverta silagra^
!
Order viagra air travel^
!
Buy cheap uk viagra^
!
Esnips user cheap viagra buy^
!
Buy cheap purchase uk viagra^
!
Viagra 25 mg order^
!
Generic online order viagra^
!
Buy online com phentermine viagra^
!
Cheap viagra overnight^
!
Viagra buy in uk online^
!
Buy cialis levitra low online pharmacy price soma viagra^
!
Viagra order online^
!
Viagra edinburgh pages search find buy cheap cialis^
!
Order generic viagra from india^

Feb 18

Tonight was the inaugural SBiPhoneDev meeting. It was a fantastic group. We even had a celebrity–Andrew Duncan!

Here are notes, with a link to the slides and code we went over.

If you couldn’t make it tonight, come join us March 18!

Feb 5

Update 2009-02-05 15:56: Evaluating the a1s.

Google's iPhone enhancements to the SenTestingFramework are great. But sometimes you just need a little more syntactic sugar.

Below are a couple of macros you can add to your GTMSenTestCase.h file. Each takes an object that responds to -count. You can figure the rest out.

C:
  1. // Generates a failure when [a1 count]> 0
  2. //  Args:
  3. //    a1: Something that responds to -count
  4. //    description: A format string as in the printf() function. Can be nil or
  5. //                 an empty string but must be present.
  6. //    ...: A variable number of arguments to the format string. Can be absent.
  7. #define STAssertEmpty(a1, description, ...) \
  8.     do { \
  9.         id a1Value = ( a1 ); \
  10.         if ( [a1Value respondsToSelector:@selector( count ) ] ) { \
  11.             int _count = ([a1Value count]);\
  12.             NSString *_expression = [NSString stringWithFormat:@"Expected an empty %@, count is %d.", [a1Value className], _count]; \
  13.             if (description) { \
  14.                 _expression = [NSString stringWithFormat:@"%@: %@", _expression, STComposeString(description, ##__VA_ARGS__)]; \
  15.             } \
  16.             STAssertEquals( 0, _count, _expression );\
  17.         }\
  18.         else {\
  19.             NSString *_expression = [NSString stringWithFormat:@"%@ Does not respond to -count.", [a1Value className]]; \
  20.             [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
  21.                 atLine:__LINE__ \
  22.                 withDescription:_expression]]; \
  23.         }\
  24.     } while (0)
  25.  
  26.  
  27. // Generates a failure when [a1 count] <1
  28. //  Args:
  29. //    a1: Something that responds to -count
  30. //    description: A format string as in the printf() function. Can be nil or
  31. //                 an empty string but must be present.
  32. //    ...: A variable number of arguments to the format string. Can be absent.
  33. #define STAssertNotEmpty(a1, description, ...) \
  34.     do { \
  35.         id a1Value = ( a1 ); \
  36.         if ( [a1Value respondsToSelector:@selector( count ) ] ) { \
  37.             int _count = ([a1Value count]);\
  38.             NSString *_not_empty_expression = [NSString stringWithFormat:@"Expected a non-empty %@, count is %d.", [a1Value className], _count]; \
  39.             if (description) { \
  40.                 _not_empty_expression = [NSString stringWithFormat:@"%@: %@", _not_empty_expression, STComposeString(description, ##__VA_ARGS__)]; \
  41.             } \
  42.             STAssertLessThan( 0, _count, _not_empty_expression );\
  43.         }\
  44.         else {\
  45.             NSString *_expression = [NSString stringWithFormat:@"%@ Does not respond to -count.", [a1Value className]]; \
  46.             [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
  47.                                         atLine:__LINE__ \
  48.                                         withDescription:_expression]]; \
  49.         }\
  50.     } while (0)

Jan 26

Getting errors like the one above when switching from the iPhone Simulator to an actual device?

Turn off MallocStackLogging.

Jan 23

I've been working on a piece of an iPhone app that populates a UITableView with the results of a web service call. There's a button to load the data, and you can reload the data once it's loaded a first time. The reload makes another call to the web service—this is useful because the data may have changed.

I was initially using UITableView's

- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation

and

- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation

methods to handle this. It worked great, until the second request to the web service, when the simulator would drop into gdb, and I couldn't figure anything out.

This discussion suggested using

reloadData

instead. It works, but it's less than ideal. You lose the fancy animation when the data are removed. I can still use

insertRowsAtIndexPaths:withRowAnimation:

but the delete method is unusable. Too bad.

Jan 22

Wow, that's quite a hiatus. The holidays have come and gone. The Obaminauguration has come and gone. And here we are, hip deep in recession.

I've been making quite a bit of progress in learning the iPhone SDK. More on that later. I thought for now I'd link to an interesting story about the exemption from federal privacy rules that Obama is giving YouTube.

I guess loyalty has its rewards. (Search for Schmidt, Mayer, Page, Costolo, Drummond, and Hurley from Google, which owns YouTube.)

Oct 16

Good stuff from Obama (1, 2) and McCain (1, 2).

Sep 10

Working with the CoreLocation API in the iPhone simulator, I logged my latitude, longitude to the console:

<+37.33168900, -122.03073100> +/- 100.00m

Hmm, that doesn't look quite like Santa Barbara. Where could it be?


View Larger Map

1 Infinite Loop. Zoom in to see the Apple campus.

« Previous Entries