Fork me on GitHub
RSS
 

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 »

 
11 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 »

 
 

PHP Login Script Tutorial

06 Oct

This PHP login script / tutorial will show you how you can have users register on your site, and log in to access secure areas. I have seen a few tutorials around the web which show how this can be done, but they all seem to lack in security. This user membership tutorial will show a better way of having users authenticated once logged in by using their session ID. Read the rest of this entry »

 
49 Comments

Posted in MySQL, PHP

 

How to Create a Textarea Character Counter / Limiter Using jQuery

04 Oct

Need to limit the number of characters that are allowed to be entered into a textarea? I’ve crafted a little snippet that you can drop into your projects to achieve just that! It also provides a counter to the user, showing how many characters are remaining as they type.

This could be extended pretty easily, so that it works on multiple textareas, or even as a jQuery plugin. Read the rest of this entry »

 
 

How to Convert PHP Multidimensional Array to Javascript Object (using jQuery)

29 Sep

I was working on a project today, and I needed to convert a PHP based multidimensional array into a Javascript array, so that I could use it for a dynamic select dropdown (depending on the top level category chosen, the next level select dropdown would be populated with the child elements of the top level category options – if you follow me!).

Anyway, I soon realised that converting the PHP array into a Javascript array was a bad idea, as converting it to a Javascript object would be much much better.
Read the rest of this entry »