This nice little one liner will allow you to find and replace text within multiple files. Simple change “/path/to/dir/*” with the path that contains the files you want to search in, and update the “FIND_STRING” and “REPLACE_STRING” accordingly:

Please download it and play with it. I’d LOVE to hear your feedback, and will happily code in any improvements we all agree would be beneficial. If you’re interested in the Objective-C source code then let me know and maybe I’ll release it!

So, you’re making an iPhone (or iPad) app, and want to know how to format an NSDate in Cocoa? Formatting NSDate in Objective-C is actually not too difficult. Open up Xcode and let’s get’s cracking with some Objective-C goodness!

For those who just smash up Xcode, and get cracking with their iPhone applications – I’m putting the full source code of this tutorial right here at the top:

This is a rundown of my top 10 PHP functions and techniques that I use on a daily basis (pretty-much) and thought I’d share them with you. Hopefully there’s some gems in there that you have never heard of (or used), that will change the way you code. Read the rest of this entry »

This tutorial will show you how to create an AJAX form with PHP and jQuery. The AJAX form doesn’t look any different to an ordinary HTML form, with the exception of making sure that when we submit the form, it calls a javascript function rather than pushes the user to a page (causing a new page reload). I’ll also demonstrate how we can use ‘loading’ animation for the AJAX form, whilst we wait for the server to respond. Read the rest of this entry »