Tag Archives: code

Outrunning the Bear: the Problem with Responsive Images

I’m all in favour of responsive design for one reason more than anything else: I hate zooming in on squinty text on my phone. Most sites have a small enough body font combined with a long enough measure that even … Read more…

Posted in HTML | Tagged , , | Leave a comment

Load JQuery from Google’s CDN with local fallback in WordPress

The advantages of loading scripts from Google’s CDN are fairly obvious – for a common script such as jQuery, we’re on to a better-than-even chance that the user will already have the script in their browser’s cache from other sites, … Read more…

Posted in WordPress | Tagged , , , , | 3 Comments

Setting up the Perfect Web Development Environment, Part 2

Setting up a Portable Project In Part 1 of this guide, we covered how to set up a portable development environment with the basic set of software tools (a web stack, an IDE and a good text editor). Continuing on, … Read more…

Posted in code | Tagged , , , , | 2 Comments

Setting up the Perfect Web Development Environment, Part 1

Inspired by Elliot Jay Stocks’ recent posts on his iMac plus Air setup, I thought I’d document how to set up a seamless development environment between desktop and laptop. If you intend to set up a similar environment, you’ll need … Read more…

Posted in code | Tagged , , , , , | 2 Comments

Adaptive Content (with a dash of jQuery)

Aral Balkan posted the following snippet on Twitter just now: <span>u</span><span class="hideIf320">ser e</span><span class="capIf320">x</span><span class="hideIf320">perience</span> followed by the explanation:

Posted in code | Tagged , , | 4 Comments

Ok Skype, I finally caved in and installed your poxy app. Thing is though, you also allow calls to non-Skype numbers so I’d really appreciate it if you allowed it to be set as the default application to open href=”tel:” … Read more…

Posted on by Chris | Leave a comment

Localhost slowdown: cracking poor performance in TortoiseSVN and Zend Server

Continuing from my previous post on troubleshooting SVN setup on Windows, I’ve recently encountered (and solved) quite a serious performance hit that’s been affecting my main development machine. Since I spend a lot of time on the move, I do … Read more…

Posted in code | Tagged , , , , , | Leave a comment

The Real WTF is…

If you’ve never read The Daily WTF, it’s a fantastic site run by Alex Papadimoulis highlighting the horrors that readers have found and submitted in real production code. Reading it is a heady blend of “oops, I used to do … Read more…

Posted in code | Tagged , , , , | Leave a comment

On the Importance of a Coding Standard

mail() fail I was recently called upon to troubleshoot the mail script powering a website’s contact form, which for some reason unbeknownst to anyone was failing silently. It should’ve been an easy fix, but the more I dug into it, … Read more…

Posted in PHP | Tagged , , , , , | Leave a comment