extracting frames from movies on iPhone
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.
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.
For some strange reason there is no way to specify a company name in XCode.
Most source code templates include __MyCompanyName__ in the comments. To change it, open terminal and type this command replacing __MyCompanyName__ with whatever you want:
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.
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 [...]
I needed a quick way to encode an NSString to be used in a JSON object in an iPhone project. There are libraries to do this like TouchJSON, but I didn’t want to link a whole library to insert a string into a Facebook query.
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.
Adobe Photoshop CS4 comes with a script that exports layers to files, but it adds layer numbers to the file names by default. After lots of manual renaming I decided to add an option to suppress the layer numbers.
I’ve recently worked on an update to MeanPhoto. The project was originally done using the iPhone SDK 2.1. I made the new distribution build with the 3.1.2 SDK without any issues, but when I uploaded the binary on iTunesConnect, I got an error saying that the app was not signed with an Apple provisioning profile.
I [...]
I received a lot of inquiries about how the seamless repeating backgrounds were made for my Ninja Jumper iPhone game. So I figured it would be easier to share it here instead of typing a whole bunch of emails…
I’ll describe one way of adding mercurial version information automatically to an xcode project.