Long multi-line strings in JavaScript

The other day I needed to make some dynamic entries into a JavaScript object array. One of the values for these was a block of HTML code that needed to be output. The problem is that the blocks have new line characters in them, and setting them up with standard quotes (single or double) doesn’t […]

Read More

Responsive grid columns with CSS Flexbox

Recently I needed to set up a site with columns that were responsive (3 columns in desktop, 2 columns in tablet and one column in mobile), and the desire was to have all of the columns display like a table, so that the background colours would all sit in line without any big gaps. Thanks […]

Read More

Using @font-face Fonts Cross Domain

On a new project I hit a restriction trying to use some nice font-face web fonts. The client has around 10 different domain names, and all of them point back to one central site. When you visit the main URL, everything is great. When you visit any one of the other URL’s… the fonts don’t […]

Read More

Setting up virtual hosts in WAMP

WAMP is some great software, and lets us all do our development on our own PC’s. The only downside is that as it comes configured standard, it only works with the http://localhost/ domain, which is good, but doesn’t let you keep up with multiple sites at the same time.

Read More

Using WAMP in Windows 8

I haven’t set this up yet, but I’m due for a new PC very soon, so I know that I’ll be needing to do this sooner rather than later, so I wanted to share some of the resources that I’ve found on how to get it working.

Read More

Removing duplicate rows in MySQL (the “easy” way…)

I recently had to sort out a database for a client. It was a mess…. The database was for people to contact, sort of like a telemarketing system (their choice, not mine…). The problem that they were having was that the database contained a lot of entries that had people with different names at the […]

Read More

WordPress problems: Cannot Connect To Database

It seems to be that there’s a whole lot of people that are getting this error message when they are trying to install or move their WordPress site. Even though this problem is common and there’s a very simple solution, people seem to always have more trouble with it then it’s worth.

Read More

iPad HTML Layout Woes

We all know the iPad by now. We also know that it can have it’s own HTML rendering “quirks”, but then again which browser doesn’t?

Read More