Home About Contact

I was recently searching for a solution that would allow people to upload photos of their homes on Golf Home Exchange. The standard upload method using HTML forms and PHP was not good enough as their was no indication of progress. As a result, the users thought the system wasn’t responding or something had gone wrong when simply it was taking a while to upload the image. Many simply gave up and never finished the registration process.

Luckily I stumbled across Uploadify, developed by Ronnie Garcia. Uploadify is a jQuery plugin that allows the easy integration of multiple (or single) file uploads. By default, the standard File Upload dialog in browsers only allows for single selection of files. To circumvent this issue and enable multiple file uploading, Flash is used.

To get started, you will need to download the jquery.uploadify-v1.6.2.zip package, then unzip and upload the files to your website.

Then in your HTML, add this code:

<body>
<input type="file" name="fileInput" id="fileInput" />
<script type="text/javascript">
$(document).ready(function() {
$('#fileInput').fileUpload ({
'uploader'  : 'uploader.swf',
'script'    : 'upload.php',
'cancelImg' : 'cancel.png',
'auto'      : true,
'folder'    : '/uploads'
});
});
</script>
</body>

This will set up Uploadify in it’s basic form. There are a ton of parameters you can set, plus event listeners (e.g. onAllComplete – triggers when all the files in the queue have been uploaded).

You can provide your own styled upload button and specifying the path to it by using the buttonImg parameter. If you want to customise the look of the upload progress bars, you will need to go into the Uploadify FLA and modify that manually.

Uploadify

You can also specify whether multiple files upload simultaneously or one at a time.

The script parameter allows you to specify your server side code that gets executed once a file has finished uploading. The example provided is PHP but you could use any backend development language.

There is only one downside to Uploadify, and that is that it needs Flash Player installed. If a user doesn’t have Flash Player installed, then it won’t work. I’m still looking for a File Upload solution for instances where the user doesn’t have Flash Player installed. Can anyone point me in the right direction?

Apart from this small issue, Uploadify is a solid alternative to using the standard File Upload dialog.

For more information and documentation: Uploadify

  • Share/Bookmark

GoogleThe long sought after Google Analytics Data Export API beta has finally been made available to the public. The API will allow developers to access the read-only data from Google Analytics in their own applications.

Any data that’s available through the standard Analytics web interface is available through the API. The Analytics API is a Google Data API. This is the same API protocol used for Google Calendar, Finance and Webmaster Tools.  If you’ve used any of these APIs, the Google Analytics Data Export API will look very familiar to you.

Client libraries for the JavaScript and Java programming languages have been provided. Support for more programming languages is in the works. For any programming language you want to use you can make requests directly to the API over HTTP and access the data in XML.

To get started, you firstly need to get the documentation from Google Code. Here you’ll find example code, a developer guide, FAQ, and the complete API reference.

You can then sign up for the Google Analytics API Notify email group so you get the key announcements on feature updates, code changes and other service related news that relate to the API.

It will be interesting to see some of the inventive ways developers present the data from Analytics.

  • Share/Bookmark

Windows 7 RC available to the public May 5

Posted by phorner On April 27, 200934 COMMENTS

Windows 7Microsoft have officially confirmed that May 5 is the official public release date for the Windows 7 Release Candidate.

“I’m pleased to share that the RC is on track for April 30th for download by MSDN and TechNet subscribers. Broader, public availability will begin on May 5th,” wrote Microsoft’s Brandon LeBlanc in a corporate blog.

This follows news of a possible Windows XP virtualisation mode which allows Windows 7 to run older software that doesn’t work on Vista or Windows 7 natively. The “WinXP mode” has not been confirmed yet by Microsoft, so consider it a rumour at this stage.

  • Share/Bookmark

The Orange Box is now only $9.99 on Steam

Posted by phorner On April 26, 200926 COMMENTS

Orange BoxFor those of you who are gamers and currently don’t own a copy of the Orange Box from Valve Software, this could be the time for you to buy it. Valve are now offering the Orange Box for only $9.99 on Steam.

Orange Box comes with Half-Life 2, HL2 Episode 1, HL2 Episode 2, HL2 The Lost Coast, Portal, and Team Fortress 2.  6 games for $10…not a bad deal at all considering the normal price for all the games separately is $79.95 . I think I will grab myself a copy for that price.

For more information: Orange Box on Steam

  • Share/Bookmark

When writing PHP code and database queries, speed of execution and working out where the bottle necks are can be extremely time consuming. Filling your code with echo statements can be daunting. However, Ryan Campbell from Infinity Box Inc. (the creators of Wufoo, a HTML Form Builder), has developed PHP Quick Profiler (PQP), “a small tool (think Firebug for PHP) to provide profiling and debugging related information to developers without needing them to add a lot of programmatic overhead to their code.”

All that’s required is that you upload the necessary files to your project folder and include the PhpQuickProfiler.php file in your code. This will then enable the console, memory and file logging. Speed and database tracking require a bit more work, but can be implemented as well.

PHP Quick Profiler

The interface is encapsulated within PQP, removing the need to insert CSS or Javascript into your code. The PQP file does it all for you.

I’ll definitely be using this in future projects, and also using it to optimise some older projects. Highly recommended for PHP developers.

For more information: PHP Quick Profiler

Demo: PQP Demo

  • Share/Bookmark