Monthly Archives: January 2010

Taming Snow Leopard: CGDisplayBestModeForParameters deprecation

We used to have a cool function that would give us the best match for a given resolution, it’s deprecated so let’s work around it. Again Apple failed to provide a documented example so here is one: struct screenMode {

Tagged with: ,
Posted in Code

Taming Snow Leopard: CGDisplayBitsPerPixel deprecation

This one is tricky, since Apple does not provide you with an alternative API. There is one hidden in the header files however, replace: .. bitsPerPixel = CGDisplayBitsPerPixel(CGMainDisplayID()); .. with: — (size_t) displayBitsPerPixel:(CGDirectDisplayID) displayId { CGDisplayModeRef mode = CGDisplayCopyDisplayMode(displayId); size_t

Tagged with: ,
Posted in Apple, Code

Taming Snow Leopard: stringWithCString: length depreciation

I know this one has been depreciated in 10.5 to but i never found a nice replacement until now: message = [NSString stringWithCString:(buffer + 4) length:(arg2 -5)]; becomes: message = [[[NSString alloc] initWithBytes:(buffer + 4) length:(arg2 -5) encoding:NSASCIIStringEncoding] autorelease];

Tagged with: , ,
Posted in Code

Taming Snow leopard: Format not a string literal and format arguments

I am porting MacTrek to OS X 10.6 native (from 10.4) and i got the “Format not a string literal and format arguments” error a couple of hundred times. Source of the problem is: #define LLLog if([[NSUserDefaults standardUserDefaults]boolForKey:@”LLLogDisabled”]!=YES)NSLog Apparently NSLog

Tagged with: ,
Posted in Code

Twi for Oberoni

I found a copy of my old Ghanian languages page on the internet, it’s straight from the horses mouth wen me and my wife spent a couple of months traveling the beautiful Ghana. Twi twi Welcome akwaaba Greet someone of

Tagged with: ,
Posted in Ghana

Robin’s birth

7th of January 2010 he arrived!

Tagged with:
Posted in Family

Sad Song by Wireless

We had a great gig playing live at the beneficiary concert for homeless kids in Boliva. Here’s a little excerpt of what we played. It’s called “Sad Song” and the original was made by “Four russians and a pink pussycat”.

Tagged with: , ,
Posted in Music

Koekie bakken (Dutch)

Ingredienten 160 gram bloem 80 gram basterdsuiker 120 gram roomboter 1 ei 1 ei-dooier mespuntje zout Bereiding Zeef de bloem en de suiker in een kom, en kneed hierdoor de ei-dooier, boter en het zout tot je een mooie bal

Tagged with: ,
Posted in Dutch, Family

Spekpannekoeken (dutch)

Ingrediënten: 15 gram gist 1/2 liter melk 300 gram bloem zout 150 gram rookspek stroop Bereiding: De gist met lauwwarme melk aanmengen. In de bloem een kuiltje maken, wat zout toevoegen en melkmengsel hierin gieten. Roeren tot glad beslag ontstaat,

Tagged with:
Posted in Dutch, Family

Skating, learning the ropes

I took my daughter skating this morning, temperatures are rising and it may be her last chance this year to get some ice experience. Despite the fact that one of the leather strappings broke off. (frozen?) she is clearly enjoying

Posted in Family
Categories