Category Archives: Programming

Algorithms, Snippets, Bugs, etc.

CEX stock monitoring

It’s been ages since I posted anything, I’ve been playing with all sorts of stuff, like Cocos2D and SpriteKit… as well as wicked little things like this DIY Gamer kit. Maybe I’ll do some more long form ish posts soon … Continue reading

Posted in Games, Programming | Comments Off on CEX stock monitoring

Using a UITextField like an ATM keypad.

A small snippet of code that uses a UITextField like an ATM keypad. E.g. You start typing in a sequence like this: £0.00 -> £0.02 -> £0.20 -> £2.05 -> £20.50 Elsewhere define and store a reference to a NSNumberFormatter … Continue reading

Posted in Programming | Tagged , , , , | 2 Comments

Wow it’s been sometime huh? Here’s a brief rundown…

It’s all been rather hectic. Lots has been happening and unhappening. The most obvious being that the box that runs this website went a bit mental as the hard disks succumbed to age; and I’ve been too busy to fix … Continue reading

Posted in Art, Chef's Book, Computer, Cooking, Drawing, Exercise, Games, Literature, Miscellany, Music, Photography, Programming | Tagged , , , , , , , | Comments Off on Wow it’s been sometime huh? Here’s a brief rundown…

Backing up Steam with CWRsync

This may or may not be of use to other people, and seeing as I’ve not written a blog post for ages, I thought I’d post it here. Before demolishing my PC last year and building a new one once … Continue reading

Posted in Games, Programming | Tagged , , , , , , | Comments Off on Backing up Steam with CWRsync

Progress with adding iCloud to Chef’s Book.

There are some interesting challenges with incorporating iCloud support, especially into an existing application. One, which I’ve been working through, is that you can no longer copy in a pre-existing store for the purposes of loading data. Such a move … Continue reading

Posted in Chef's Book, Programming | Tagged , , , , , , | 15 Comments

Fun with bash and old photo libraries.

It recently dawned on me I had huge swathes of my photo collection entirely gone. Something like 3 years that were nowhere to be found on flickr or my main PC or Mac. I’m not sure how this gap appeared … Continue reading

Posted in Computer, Photography, Programming | Tagged , , , , , | Comments Off on Fun with bash and old photo libraries.

The MD5 checksum bug identified.

Happily it’s easy to fix and exactly what I thought it was. When retrieving values from an NSManaged object like so: NSString *foo = recipe.value; or NSString *foo = [recipe valueForKey:@”value”]; If the value is not present you get a … Continue reading

Posted in Chef's Book, Programming | Tagged , , , , | Comments Off on The MD5 checksum bug identified.

Implementing iTunes syncing and a lesson to always run unit tests.

So the latest version of my main app is in the app store and…. it has a minor minor bug.  In a rush to eliminate a highly unlikely, in fact to pre-empt, a bug I updated some code to check … Continue reading

Posted in App Store, Chef's Book, Programming | Tagged , , , | Comments Off on Implementing iTunes syncing and a lesson to always run unit tests.

I lied, I love databases too much and core data is a weird one.

Strictly speaking this isn’t a post about core data, honest. It’s ACTUALLY a post about how iPhone applications are deployed and updated. My shipped application contained two data models, my new application also contains two data models. One of the … Continue reading

Posted in Programming | Tagged , , | Comments Off on I lied, I love databases too much and core data is a weird one.

Another Core Data post. Last one for a while I expect.

It seems that when you create a mapping model for core data migrations using XCode (3 or 4) it will not create mapping models for abstract entities you could try here. If you do not create this manually within your … Continue reading

Posted in Programming | Tagged , , | Comments Off on Another Core Data post. Last one for a while I expect.