Fork me on GitHub
RSS
 

Find and replace string within multiple files

26 Nov

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:

find /path/to/dir/* -type f -exec sed -i '' 's/FIND_STRING/REPLACE_STRING/g' {} \;
 
No Comments

Posted in Unix

 

Rockfire – Bespoke Application Development

26 Nov

So I have finally launched my new business – Rockfire. If you need any bespoke application development, websites, mobile apps, networking assistance, VoIP installation, API integration etc… contact Rockfire today!

We’ll also be updating the blog regularly with similar articles to this website. Infact, there’s already a couple of posts there!

 
No Comments

Posted in Asides

 

Rockfire Hosting – Cheap UK Web Hosting

15 Aug

Rockfire Hosting - Cheap UK Web Hosting

So we’ve decided to start a cheap UK hosting reseller company with a twist – the twist being that the people running it actually know and care about what they’re talking about.

If you’re interested in cheap UK based web hosting, then feel free to take a look at Rockfire Hosting.

 
1 Comment

Posted in Apache, Asides

 

App Figures API Client in PHP

06 Dec

I’ve started building an API client for the App Figures RESTful API in PHP (it’s actually a handy little PHP class). It’s free to use, so feel free to help yourself to the code! Fork

How to use?

Well, that’s easy. It’s as simple as:

include_once 'AppFiguresAPIClient.php';
$AppFiguresClient = new AppFiguresAPIClient('USERNAME', 'PASSWORD');
print_r($AppFiguresClient->GetReviewsForProductId(PRODUCT_ID));

Check the README on GitHub for more up-to-date usage instructions as time goes on.

Where did you say I could get this again?

Right here: App Figures API Client in PHP

 
1 Comment

Posted in OOP, PHP

 

NavigationContentSlider – An iOS Content Slider Using the UINavigationBar

15 Nov

I’ve made a simple to use subclass of a UIViewController that allows you to slide to different content views (in a nice way) using the UINavigationBar.

The class is free to use, on my GitHub page: a1phanumeric’s NavigationContentSlider Fork

Here’s a little screenshot showing you what it looks like (totally unstyled though!):
iOS NavigationContentSlider

Read the rest of this entry »

 

CSV to PLIST converter

21 Feb

I’ve knocked up a simple to use CSV to plist converter which is pretty useful for iOS / OSX development. You can grab the code here:

csv2plist.py on GitHub

Usage is a piece of cake,

python csv2plist.py mycsv.csv
outputs: mycsv.plist in the same directory as mycsv.csv

python csv2plist.py mycsv.csv myplist.plist
outputs: myplist.plist in the same directory as mycsv.csv

Any questions or comments are greatly appreciated as always!

 

I’ve Made a Free iPhone App …Should I Let You See The Source?

19 May

What Should I Make For Dinner Tonight - Free iPhone AppSo, I’ve built an iPhone app – What Should I Make For Dinner Tonight?.

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!

 

How to Format NSDate in Objective-C Tutorial (iPhone / Cocoa)

25 Mar

How to format NSDate using NSDateFormatter (iPhone Xcode Tutorial)

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:

NSDate *myDate = [NSDate date];
NSDateFormatter *df = [NSDateFormatter new];
[df setDateFormat:@"EEEE dd MMMM, yyyy"];
self.someLabel.text = [df stringFromDate:myDate];
[df release];

Read the rest of this entry »

 

Top 10 PHP Tips, Functions and Techniques You Need to Know

19 Oct

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 »

 
26 Comments

Posted in PHP

 

AJAX Form Tutorial

12 Oct

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 »