Windows 7 is better than Ubuntu 12.04 on desktop!
Today we have finalised for ourselves that Windows 7 is definitely a “better” operating system than Ubuntu 12.04 when it comes to …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Today we have finalised for ourselves that Windows 7 is definitely a “better” operating system than Ubuntu 12.04 when it comes to …
Read Article →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 …
Read Article →I usually run into this problem when dealing with good ol’ Internet Explorer (..any version of IE actually).
The problem is that IE tries to be …
Read Article →I often wonder to myself where the technology industry is heading as I see new things come out almost daily.
You look around and something you just …
Read Article →So someone’s trying to make their site better by opening a page on your site inside of their site using an iframe?
They’re doing something …
Read Article →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.
The hosts file …
Read Article →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):
(EAI …
Read Article →Virgin Media have done it again! They have gone and started a “downloaders war”, I’m sure of it.
Basically what happened is that …
Read Article →Firstly let’s just note that crontabs are read in the following way:
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of …
Read Article →
It’s really very simple to convert times in different timezones using the following function.
function dateTimeConversion($datetime, …
Read Article →
With the following function you can easily convert an integer containing seconds to a nice days, hours, minutes, seconds string or array.
function …
Read Article →
This has become quite a common question asked by many website owners.
“How do I remove that dotted outline around an anchor?”
Lucky for …
Read Article →If you would like to get the amount of hours between 10:00 and 12:00 then use this!
I needed this for a timesheet calculator where users entered start …
Read Article →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 …
Read Article →In order to backup all mysql databases, you can run the following command in your linux command line:
The example below is configured with username …
Read Article →If you receive the following error message if means that mod_rewrite is not enabled in Apache:
Invalid command ‘RewriteEngine’, perhaps …
Read Article →It’s very simple to get the difference in hours using PHP. Here’s a quick function that takes two time strings and returns the difference: …
Read Article →A common error which occurs with foreach loops is the standard “Invalid argument supplied for foreach()” whch gets thrown up as a warning. …
Read Article →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 …
Read Article →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 …
Read Article →Coming from SQL Server or MS Access? You might be looking for LEN() to get the length of a string. In MySQL, it’s called LENGTH() instead.
You …
Read Article →If you are having problems with a string that keeps adding a line break when output from PHP to HTML then the following code will work wonders for …
Read Article →Well as usual, we are once again fighting the woes of the beloved Internet Explorer, and it appears that Microsoft’s latest greatest new and …
Read Article →If you have a table which has duplicate items in then you can use the below statement to select them.
This comes up a lot during data cleanup — maybe …
Read Article →