Working on a recent project I found myself in the market for a way to simply calculate what one currency is worth in relation to another. After some looking around I was surprised to find currency conversion can be performed quickly and simply using the Google Calculator API. To use…
Read More
Sorting tabular data with tableSorter
The jQuery tableSorter script is one of those indispensable scripts for a web developer, as most applications have a need to display tabular data to the user at some place in their application. The problem is displaying this data in some sort of user friendly format. The main problem is…
Read More
Magic Quotes In PHP
The Symptoms Recently I was trying to debug a piece of code it worked fine in the development and staging environments. But when the code was uploaded to the production server it would break! Looking at the JSON data it appeared the production web server was adding back slashes to…
Read More
Using The Panoramio Wrapper Class
Ever been working on a project that was area specific and wanted nearby local images? I did recently, and knew after seeing images over layed onto Google maps that it must be possible. Looking around I found a few pieces of code that did what I wanted using the Panoramio…
Read More
Quick Recursive Code Count
Although the “lines of code” in a project is not the worlds most useful metric. Curiosity sometimes gets the better of us and after many days / weeks of typing you think “gee I wonder exactly how many lines of code are in that project?”. Wonder no more! By embracing…
Read More
Magic constant not working with require_once
Its funny when a new feature is added to your language of choice how quickly it gets embraced and used within your code. Today upon uploading some code to a clients shared hosting environment I was greeted by the following error: Uploading a file to display phpinfo() I was able…
Read More
Anonymizing CURL Scripts With TOR & Polipo
Last week I received a typical run of the mill phishing email littered with the usual bad Engrish making the instructions far from believable but being bored I decided to take a look at the link they were pushing. They had created a believable enough looking Paypal form asking clueless…
Read More
Logging PHP Errors For Production Environments
Good security practices dictate PHP should be configured to never display error messages and notices to screen in a production environment due to its potential to reveal information about your server and application setup. One solution is to enable error logging on the server by setting the log_errors attribute to…
Read More
Changing an elements visibility with jQuery
Adjusting the visibility of element within a web page comes in handy from time to time for features like tool tips, extending content after a short excerpt etc. This technique adds greatly to the user experience of your site and has been around for a long time but the jQuery…
Read More
Zend Framework 1.9.6
Zend Framework 1.9.6 has been released today with over 60 bug fixed included, most of which where found during the bug hunt days last week. The official Zend Framework site reports this release is planned to be the last before the 1.10.0 release. The new release can be downloaded here,…
Read More