Monthly Archives: July 2010

Crypto chall…. errr whut?

Thanks to kirrus. I hadn’t actually looked at it since saving it to a text file… but yes it does indeed have exif data. You win! diziet@xenoglossicist:~$ cat cs_cypher.txt | base64 -d > fish.bin diziet@xenoglossicist:~$ file fish.bin fish.bin: JPEG image … Continue reading

Posted in Miscellany | Comments Off on Crypto chall…. errr whut?

Regular expression that checks for primes.

This via Noulakaz It might well be, but it’s a hack as it bombs at larger numbers: irb(main):001:0> def isp(n) irb(main):002:1> (“1” * n) !~ /^1?$|^(11+?)\1+$/ irb(main):003:1> end => nil irb(main):004:0> isp(55) => false irb(main):005:0> isp(57) => false irb(main):006:0> isp(101) … Continue reading

Posted in Programming | Comments Off on Regular expression that checks for primes.

How to populate CoreData at runtime from a remote source.

To me it seems that documentation on populating apple Core Data based stores is sorely lacking instructions on how to populate the database at runtime from remote sources. Most people electing to populate an SQL Lite database and then just … Continue reading

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

A little bit of this and that.

Quite a few things have vied for my attention this week. I ploughed through 2 books, namely The Girl who Played With Fire a book on Obj-C. I’m now reading The Girl who Kicked the Hornets Next and Living Next … Continue reading

Posted in Literature, Miscellany, Programming | Tagged , , , , | 6 Comments

A coding dilemma.

This happens quite a lot in programming I find. There’s the ideal way of doing something and the way you actually end up doing it, be it due to buggy libraries, quirks of code, time or inexperience. I found one … Continue reading

Posted in Programming | Tagged , , , | Comments Off on A coding dilemma.

Cooking Lasagne

This is another dish made without any formal recipe, and what was to hand, so here goes. All quantities mentioned are what I ended up using. The dish was about 8×11 so almost the size of a sheet of A4 … Continue reading

Posted in Cooking | Tagged , , | Comments Off on Cooking Lasagne

Progress Report

Integrated the rather excellent IASKAppSettings which solves my problem of trying to design a settings tab that looks like the auto generated ones that appear in the Settings diovan generic.app.  I keep the data from that in a singleton which … Continue reading

Posted in Programming | Tagged , , | Comments Off on Progress Report

3 days learning and we have an iPhone App!

It didn’t take anywhere near as long as I thought.  I have two versions at the moment.  One which doesn’t work and crashes a lot but has pretty graphics/labels and one which implements OpenCV stuff but is still using place … Continue reading

Posted in Programming | Tagged , , | Comments Off on 3 days learning and we have an iPhone App!

Walking over the Gravel Pits at Sunset

A few photos from a little stretch of Casey’s legs. Once the temperature had dropped enough not to kill the fluffy beast that is. <a rel="sf-lbox-manual" href="http://farm5.staticflickr website here.com/4120/4780516506_fb27e57029_b.jpg” title=”Cardinal Beetles Mating”>

Posted in Miscellany | Comments Off on Walking over the Gravel Pits at Sunset

Setting up OpenCV for Xcode + iPhone

** This post will be updated as I progress ** *** This will be updated when I’ve actually got an application to the point where OpenCV is necessary. It currently links and builds fine but I haven’t tested it so … Continue reading

Posted in Programming | Tagged , , , , | Comments Off on Setting up OpenCV for Xcode + iPhone