extracting frames from movies on iPhone

February 10, 2010

The iPhone SDK provides a high level movie player, but so far there is no way to decode movies or extract frames. In this post I will show you how to do that using FFmpeg.

55

how to debug EXC_BAD_ACCESS on iPhone

October 31, 2009

EXC_BAD_ACCESS. Debugging this one is on par with figuring out why the wife says “not tonight, honey.” And they are equally unfortunate situations. Let’s see what we can do about EXC_BAD_ACCESS.

122

decoding a UTF-8 NSString

October 30, 2009

I came across this issue when I received a UTF-8 encoded stringĀ from a URL. I was expecting the UTF-8 string to be automatically decoded, but then I realized that it’s probably not trivial to identify a UTF-8 string, so NSString doesn’t automatically do this for a reason. (Unfortunately, this realization came only after I’d been […]

2

how to rename a mac and change the hostname in OS X

October 28, 2009
Tags: , ,

The OS X registration process can come up with some pretty stupid computer names like chuck johnson’s macbook. This will show up in the Terminal, on the network and it has a freaking single quote and spaces in it ?! Here’s how to rename it to something that makes sense, like pink.

1

add mercurial version info to xcode project

April 21, 2009

I’ll describe one way of adding mercurial version information automatically to an xcode project.

1

saving jpeg, tiff and png images in cocoa

February 22, 2009

The documentation about saving images from CGImages in cocoa is pretty vague to say the least. Here are some code snippets for saving jpeg, tiff and png files.

4

triple monitor setup with unibody macbook

January 17, 2009

You can hook up two external monitors to your unibody MacBook and I’ll show you how to do it:

32

aluminum MacBook 4gb ram upgrade – no problem!

January 8, 2009

You might have read articles on the internet about aluminum MacBooks becoming unstable after 3rd party RAM upgrade. Well, some good news: I’m writing this post on a 2.0ghz aluminum MacBook with 4gb memory from OWC!

4