Blog Posts

Windows 7 is better than Ubuntu 12.04 on desktop!

June 28, 2012

Today we have finalised for ourselves that Windows 7 is definitely a “better” operating system than Ubuntu 12.


Read More

Function split() is deprecated in PHP

June 12, 2012

You heard it right! split() is officially a deprecated function. That means that you can still use it if you are really brave and it will work correctly, but don’t expect to see it in later versions of PHP when they come out.


Read More

Disable Cache in jQuery

May 24, 2012

I usually run into this problem when dealing with good ol’ Internet Explorer (.


Read More

Where is Technology heading, perhaps we should focus more on Software?

May 21, 2012

I often wonder to myself where the technology industry is heading as I see new things come out almost daily.


Read More

How to break out of an iframe

May 9, 2012

So someone’s trying to make their site better by opening a page on your site inside of their site using an iframe?


Read More

Edit hosts file on Windows 7

May 9, 2012

The hosts file is used to manually alter the hostname or IP address in place of it being served by a Nameserver, also known as via DNS.


Read More

(EAI 2)Name or service not known: Could not resolve host name *.80 — ignoring!

May 8, 2012

You are no doubt trying to add a vhost and you get the following error when attempting to affect changes by restarting the http daemon (httpd):


Read More

Virgin Media blocks torrent sites!

May 3, 2012

Virgin Media have done it again! They have gone and started a “downloaders war”, I’m sure of it.


Read More

How to Comment out a line in a Crontab on Linux

May 3, 2012

Firstly let’s just note that crontabs are read in the following way:


Read More

DateTime conversion function using PHP

May 1, 2012

It’s really very simple to convert times in different timezones using the following function.


Read More

Convert seconds to days, hours, minutes, seconds in PHP

May 1, 2012

With the following function you can easily convert an integer containing seconds to a nice days, hours, minutes, seconds string or array.


Read More

Remove dotted outline around anchors

April 30, 2012

This has become quite a common question asked by many website owners.


Read More

Get amount of hours between 2 hours

April 27, 2012

If you would like to get the amount of hours between 10:00 and 12:00 then use this!


Read More

How to embed HTML5 video with fallback

April 27, 2012

A common question with the rise of HTML5 becoming more and more common and the whole iGeneration (iPhones/iPads/iEtc) is “how can I embed a video on my site without using a flash player?


Read More

How to backup all mysql databases

April 26, 2012

In order to backup all mysql databases, you can run the following command in your linux command line:


Read More

Invalid command 'RewriteEngine'

April 26, 2012

If you receive the following error message if means that mod_rewrite is not enabled in Apache:


Read More

How to get the Hours Difference (in HH:MM format) in PHP

April 12, 2012

It’s very simple to get the difference in hours using PHP


Read More

Warning: Invalid argument supplied for foreach()

February 28, 2012

A common error which occurs with foreach loops is the standard “Invalid argument supplied for foreach()” whch gets thrown up as a warning.


Read More

Unable to connect to any of the specified MySQL hosts.

February 19, 2012

If you get the following error while trying to connect to a MySQL database using a third party client such as TOAD or SQL Workbench, then you need to edit your mysql server’s my.


Read More

PHP nl2br on one line

February 18, 2012

I usually store data from a textarea directly to the database as is, then once I retrieve it back into HTML I use that lovely PHP function nl2br() to convert it to HTML


Read More