<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>I ticked the wrong box - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-7946a487" type="application/json"/><link>http://itickedthewrongbox.disqus.com/</link><description>None</description><atom:link href="http://itickedthewrongbox.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 25 Jan 2012 05:32:32 -0000</lastBuildDate><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-420436659</link><description>Ben - thanks. I had a solution very similar to the above before I found this. But your solution is way better!&lt;br&gt;&lt;br&gt;You don't need all the components either - you only need year. I tested this, and it works. Single line of code! Let Calendar deal with the messy details. &lt;br&gt;&lt;br&gt;    NSDateComponents* timeOnEarth = [[NSCalendar currentCalendar] components:NSYearCalendarUnit fromDate:birthdate toDate:[NSDate date] options:0];    return [timeOnEarth year];&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">orthorim</dc:creator><pubDate>Wed, 25 Jan 2012 05:32:32 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-400029616</link><description>You don't get a date or date of birth. You provide a date of birth and get an age.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rickerbh</dc:creator><pubDate>Tue, 03 Jan 2012 21:24:29 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-395546314</link><description>how to get date and date of birth in this program</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Divakar Srinivasan</dc:creator><pubDate>Wed, 28 Dec 2011 01:23:43 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-369967396</link><description>Thank you ! worked like a charm !</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob van Hees</dc:creator><pubDate>Tue, 22 Nov 2011 05:20:36 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-362828506</link><description>NSDate</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rickerbh</dc:creator><pubDate>Mon, 14 Nov 2011 10:24:59 -0000</pubDate></item><item><title>Re: Installing f2c on a mac</title><link>http://hamishrickerby.com/2009/02/20/installing-f2c-on-a-mac/#comment-361842770</link><description>thanks to you, i was able to install zork from source on tiger. previously, i was getting 'make: f2c: Command not found', but now it works. thanks for this.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Dunn</dc:creator><pubDate>Sat, 12 Nov 2011 09:54:17 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-358974118</link><description>Which formate  birthdate enter?&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Piyu_patel007</dc:creator><pubDate>Wed, 09 Nov 2011 00:58:19 -0000</pubDate></item><item><title>Re: Thursday</title><link>http://hamishrickerby.com/2006/03/03/thursday/#comment-348708041</link><description>And now you're married to me! :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ammo</dc:creator><pubDate>Sat, 29 Oct 2011 05:17:30 -0000</pubDate></item><item><title>Re: iPhone &amp;#038; iPad (iOS) Localizations and Regions</title><link>http://hamishrickerby.com/2010/07/23/iphone-ipad-localizations-regions/#comment-332434688</link><description>Thanks for your Code-Snippet. I've modified it, so it will work for any region:&lt;br&gt;&lt;br&gt;NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];&lt;br&gt;NSString *locale = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];&lt;br&gt;    &lt;br&gt;NSString *firstChoice = [NSString stringWithFormat:@"%@_%@", language, locale];&lt;br&gt;NSString *secondChoice = language;&lt;br&gt;NSString *thirdChoice = @"en";&lt;br&gt;    &lt;br&gt;[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:firstChoice, secondChoice, thirdChoice, nil] forKey:@"AppleLanguages"];</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Weinberger</dc:creator><pubDate>Wed, 12 Oct 2011 05:08:49 -0000</pubDate></item><item><title>Re: iPhone &amp;#038; iPad (iOS) Localizations and Regions</title><link>http://hamishrickerby.com/2010/07/23/iphone-ipad-localizations-regions/#comment-318888557</link><description>great research, Thx!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcus Rohrmoser</dc:creator><pubDate>Sat, 24 Sep 2011 07:36:17 -0000</pubDate></item><item><title>Re: MacBook Air &amp;#8211; UK Keyboard</title><link>http://hamishrickerby.com/2008/02/17/macbook-air-uk-keyboard/#comment-317593535</link><description># Great help for when you try and post to Twitter with a hash tag!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John C</dc:creator><pubDate>Thu, 22 Sep 2011 14:09:39 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-301475389</link><description>Can't you just use:&lt;br&gt;NSDateComponents* timeOnEarth = [cal components:unitFlags fromDate:self.dateOfBirth toDate:[NSDate date] options:0];and thenreturn timeOnEarth.year;?This way you don't have to calculate if their birthday is before today's date...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Fri, 02 Sep 2011 21:25:53 -0000</pubDate></item><item><title>Re: MacBook Air &amp;#8211; UK Keyboard</title><link>http://hamishrickerby.com/2008/02/17/macbook-air-uk-keyboard/#comment-235927917</link><description>Yes. It has a £ symbol, and the # is not present. Also @ and " are in different places compared with US English keyboards.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rickerbh</dc:creator><pubDate>Mon, 27 Jun 2011 09:13:00 -0000</pubDate></item><item><title>Re: MacBook Air &amp;#8211; UK Keyboard</title><link>http://hamishrickerby.com/2008/02/17/macbook-air-uk-keyboard/#comment-231767478</link><description>&lt;br&gt;Is MacBook Air – UK Keyboard different from the other computer keyboards?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Personal Shield Pro Virus</dc:creator><pubDate>Wed, 22 Jun 2011 05:53:51 -0000</pubDate></item><item><title>Re: Installing f2c on a mac</title><link>http://hamishrickerby.com/2009/02/20/installing-f2c-on-a-mac/#comment-181227559</link><description>Very useful. Thanks! Re: the line numbers copy and paste problem, you just have to be careful what part of the page you copy from.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dbenn</dc:creator><pubDate>Fri, 08 Apr 2011 20:08:55 -0000</pubDate></item><item><title>Re: Installing f2c on a mac</title><link>http://hamishrickerby.com/2009/02/20/installing-f2c-on-a-mac/#comment-169784266</link><description>Thanks!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johndidion</dc:creator><pubDate>Tue, 22 Mar 2011 16:44:37 -0000</pubDate></item><item><title>Re: MacBook Air &amp;#8211; UK Keyboard</title><link>http://hamishrickerby.com/2008/02/17/macbook-air-uk-keyboard/#comment-166233456</link><description>Are you still looking.  I just purchased a UK MBA and can only find US covers - definitely buying US layout next time.  Too much coffee and liquid around not to have one.....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ukkeyboard</dc:creator><pubDate>Tue, 15 Mar 2011 15:02:01 -0000</pubDate></item><item><title>Re: Dealing with SemanticHacker in Ruby</title><link>http://hamishrickerby.com/2009/02/26/dealing-with-semantichacker-in-ruby/#comment-156441592</link><description>No, that is ruby code so will need to be executed by the ruby interpreter. The easiest way to get this to run will be to copy both the larger code block and the "make things happen" block into one file, and just run that through the ruby interpreter. If you're looking to use this vai a web page I'd recommend placing the larger code block in a separate file and including it in your sinatra/camping/rails app - just to keep it separate.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rickerbh</dc:creator><pubDate>Sat, 26 Feb 2011 06:58:27 -0000</pubDate></item><item><title>Re: Dealing with SemanticHacker in Ruby</title><link>http://hamishrickerby.com/2009/02/26/dealing-with-semantichacker-in-ruby/#comment-155960846</link><description>nix. double post :P</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">delinquentme</dc:creator><pubDate>Fri, 25 Feb 2011 12:34:48 -0000</pubDate></item><item><title>Re: Dealing with SemanticHacker in Ruby</title><link>http://hamishrickerby.com/2009/02/26/dealing-with-semantichacker-in-ruby/#comment-155960285</link><description>I LOVE THIS.&lt;br&gt;&lt;br&gt;cannot wait to use it ..  but whats up with the code listed in the " and to make things happen "&lt;br&gt;&lt;br&gt;where does this go? &lt;br&gt;&lt;br&gt;in a HTML document which the user accesses to fire the event?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">delinquentme</dc:creator><pubDate>Fri, 25 Feb 2011 12:33:47 -0000</pubDate></item><item><title>Re: iPhone &amp;#038; iPad (iOS) Localizations and Regions</title><link>http://hamishrickerby.com/2010/07/23/iphone-ipad-localizations-regions/#comment-117742519</link><description>great post, thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Altosh Mail</dc:creator><pubDate>Thu, 23 Dec 2010 16:05:31 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-108589422</link><description>First of all I'd suggest you read &lt;a href="http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocDefiningClasses.html" rel="nofollow"&gt;http://developer.apple.com/lib...&lt;/a&gt; if you don't know where to put this code. &lt;br&gt;&lt;br&gt;And to answer the question, it goes in the .m file, but you will need to define the interface in the .h file as well.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rickerbh</dc:creator><pubDate>Wed, 08 Dec 2010 04:58:15 -0000</pubDate></item><item><title>Re: Calculate age in objective-c</title><link>http://hamishrickerby.com/2010/01/07/calculate-age-in-objective-c/#comment-108200742</link><description>Hi , &lt;br&gt;where can i add this code in ?&lt;br&gt;m file or h.file&lt;br&gt;or can you explain more</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tt1tt</dc:creator><pubDate>Tue, 07 Dec 2010 03:43:49 -0000</pubDate></item><item><title>Re: iPhone &amp;#038; iPad (iOS) Localizations and Regions</title><link>http://hamishrickerby.com/2010/07/23/iphone-ipad-localizations-regions/#comment-97515033</link><description>British English doesn't exist as a language in iOS 3.x. Also, if you want another locale inside a language (like Australian English) then this technique is still useful. But good call for noticing the change - I should update this article.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rickerbh</dc:creator><pubDate>Mon, 15 Nov 2010 12:52:03 -0000</pubDate></item><item><title>Re: iPhone &amp;#038; iPad (iOS) Localizations and Regions</title><link>http://hamishrickerby.com/2010/07/23/iphone-ipad-localizations-regions/#comment-97392074</link><description>You should change language from English to British English, not Region Format.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">alextud</dc:creator><pubDate>Mon, 15 Nov 2010 09:30:47 -0000</pubDate></item></channel></rss>
