« About me

riches designer, developer, gamer

Category Archives: Snippets

Chrome Extension Tutorial: Highlighted Text Used to Send AJAX Request to Remote Server and Display Results

Creating a Google Chrome extension is actually pretty straight forward as you can utilise your existing knowledge of HTML and JavaScript (and even jQuery) when creating the extension. This tutorial is based on the No Fuss Reviews extension I published … Continue reading

April 1, 2013

64 Useful jQuery Snippets

This list is a useful combination of frequently used functions, useful to know snippets and ways to use jQuery (with some JavaScript thrown in) effectively. The syntax highlighter can be a bit temperamental at times, so if the code doesn’t … Continue reading

November 13, 2012

Face Detection with PHP

A very useful piece of PHP code that will highlight any pictures where a face has been detected. Heres the first piece of PHP code you will need, it would be best to make this an include:

December 1, 2010

Show Email in IMAP Mailbox with PHP (Retrieve Email)

How difficult is it to open a IMAP mailbox in PHP and show folder names and email headers, well, no difficult at all.

April 7, 2010

Find a Users Language in PHP

It can be very useful to determine the users set language when visiting your website. The determined result can be used for many different applications, from targeted adverts and country specific affiliate links to country specific wording or images. The code behind … Continue reading

December 13, 2009

PHP Arrays Primer

New to PHP and want to learn what arrays are and how to use them? Then this is the article for you! What is an Array? An array is a list of items with keys, normally the key is a … Continue reading

Create a Cisco IP Telephone Ringtone in RAW Format

Strangely Cisco have not made it easy to create ring tones for their IP telephones, but this post breaks it down step by step. 1) Download a program called WavePad Sound Editor (its free) 2) Download the ringtones you want … Continue reading

December 9, 2009

Generate a Random Hex Colour in PHP

Often required for testing this simple function will generate a random hexadecimal colour every time. Copy this piece of code into your page:

December 1, 2009

PHP Variables and Echo Primer

PHP is highly scalable and will most likely be installed on a Linux of Unix web server by default, so below we introduce the basics of using this language. This is by no means definitive, for full documentation you should visit … Continue reading

November 26, 2009

Distance Between Postcodes in Good Olde British Miles and PHP

Often you may need to calculate the rough distance between postcodes for such uses as delivery or catchment areas, here is a simple (and free) way to do just that. First of (legally) obtain a database that contains the ordnance survey coordinates against … Continue reading

November 20, 2009