Yearly Archives: 2012

LocalStorage Background Colour Changer

Posted By: Ian on Dec 23, 2012 in JQuery
Last modified on January 29th, 2015 at 9:31 pm,

Just a couple of examples of how to use HTML5 LocalStorage feature as a background colour changer. Example 1 the simpler example takes the value of whatever you type in the box and stores that in localStorage and sets it as background colour using jQuery. <script type=”text/javascript”> /** * Check if localStorage is supported and …

Continue Reading »

Valid Google Publisher Link and More

Posted By: Ian on Dec 20, 2012 in Google
Last modified on January 29th, 2015 at 9:31 pm,

Hey, You wanted to link your google+ page to your website – You have! (If not go here) Now you want it to validate! – It fails! Well here is a sneaky little snippet to make that link appear on everything but the validator. Basically unless the User Agent string starts “W3C_Validator” it will include …

Continue Reading »

PDO Database Connection Script with Email on Error

Posted By: Ian on Dec 18, 2012 in PDO, PHP, Snippets
Last modified on May 30th, 2014 at 5:51 pm,

PDO Connection is seen as the way to go it has a lot of advantages over other techniques and today i share with you a script i mostly use for connecting to my databases as for 1 i get an email with the page and section if something goes wrong and for 2 the visitor …

Continue Reading »

List of Avaiable PDO Drivers for your site

Posted By: Ian on Dec 17, 2012 in PDO, PHP, Snippets
Last modified on March 1st, 2014 at 10:26 pm,

PDO (PHP Data Objects) extension for PHP seems to be the way to go for connecting to and accessing databases such as MySQL and with this little snippet you can easily see what PDO drivers are available for your site if any.   PDO comes with PHP 5.1 and above as default.   See …

Continue Reading »

Tidy Chop In Your Kitchen?

Posted By: Ian on Dec 17, 2012 in Projects
Last modified on December 6th, 2015 at 12:02 am,

Fed up of having to stop in the middle of food preparation to clear your board of waste? Well now there is Tidy ChopĀ® created by Ian.J.Gough one Christmas after thinking there must be a Tidier and Quicker way.   Aimed at the Catering Trade Tidy ChopĀ® is made out of 304 catering grade stainless …

Continue Reading »

Spot the Child At Risk

Posted By: Ian on Dec 17, 2012 in Projects
Last modified on January 24th, 2013 at 1:34 pm,

SCAR or Spot the Child At Risk is a algorithm i came up with to try and help teachers spot school children who are suffering through bullying or abuse and are finding it hard to talk or ask for help and whom the teachers may not even be aware of have a problem. After learning …

Continue Reading »

Creating a Database Driven PHP Click Counter

Posted By: Ian on Dec 16, 2012 in Tutorials
Last modified on December 18th, 2012 at 2:13 pm,

Today were going to look at Creating a Database Driven PHP Click Counter for internal and external links so we can see how popular different links are. For example we could use it for monitoring file downloads on our site or seeing which of our external links are clicked on the most. Take a link …

Continue Reading »

Setting up the ALT tag for Gravatar in WordPress

Posted By: Ian on Dec 10, 2012 in Blog
Last modified on January 7th, 2013 at 11:52 am,

Today whilst surfing the net i came across this site which had a post which matched exactly what i was wanting todo which was setup the Alt tag for gravatar to rid my site of “missing or empty alt tag” warnings when testing with certain tools. The site above did not fix this for …

Continue Reading »

Automatically Updating Contact List

Posted By: Ian on Jun 03, 2012 in Blog
Last modified on November 20th, 2013 at 10:40 am,

Whilst updating my contact list (paper) i had a thought what if every person could store there contact list(s) online and everyone in that list is sent a text message confirming they want to be on the list. Then whenever anyone updates there phone number on there list it updates automatically on everyone else’s. So …

Continue Reading »

Download and Upload Images to your website

Posted By: Ian on Apr 05, 2012 in PHP, Snippets
Last modified on December 9th, 2012 at 9:45 pm,

Most people talk about downloading an image from a website to there computer but there are times when we need to download an image from a website to our website (Via a Link). Which following on from Download images to website I have combined this with an upload script, image proxy script and optional image …

Continue Reading »

About This Site

Dreams are built from lines of code well it's true!
If you can dream it you can usually code it.

I have learned so much from other people on the Internet and this site is for me to give back some of what i have learned and hope people can now learn from me.
Have fun and surf safely,

protected by copyscape duplicate content check


Powered by Banner Bar 125