Regular Expressions Cheat Sheet (V2)
30 June 2008 | 123 comments | reference, regex, regexp, expression, cheatsheet, sheet, regular, development
The second version of the Regular Expressions Cheat Sheet, a quick reference guide for regular expressions, including symbols, ranges, grouping, assertions and some sample patterns to get you started.
mod_rewrite Cheat Sheet (V2)
30 June 2008 | 131 comments | apache, cheatsheet, mod_rewrite, reference, webdev
The second version of the mod_rewrite Cheat Sheet, a quick reference guide for mod_rewrite, with rewrite flags, regular expression syntax and sample rules.
The second version of the PHP Cheat Sheet, a quick reference guide for PHP, with functions references, a regular expression syntax guide and a reference for PHP's date formating functions.
CSS Cheat Sheet (V2)
30 June 2008 | 357 comments | cheatsheet, css, design, html, reference, webdesign
The second version of the CSS Cheat Sheet, a quick reference guide for CSS, listing selector syntax, properties, units and other useful bits of information.
SQL Server Cheat Sheet
20 July 2007 | 68 comments | cheat, cheatsheet, development, mssql, mysql, programming, reference, sql, sql-server, sqlserver, toread
This A4 reference lists the various functions available in Microsoft SQL Server, and demonstrates the creation of stored procedures, triggers and functions.
HTML Cheat Sheet
8 January 2007 | 125 comments | webdev, development, cheatsheet, xhtml, reference, html, web, design, webdesign, tools, css, programming
HTML is the language of the web. It is the semantic support on which websites depend. This A4 reference lists the various tags available to the web designer, as well as a selection of useful character entities, attributes and events.
PHP Querystring Functions
5 December 2006 | 53 comments | links, code, development, url, querystring, reference, php, functions, programming, tips, variable
Adding and removing variables to and from URLs using PHP can be a relatively simple process admittedly, but I have a couple of functions I use often to make the process even less time-consuming.
Add Querystring Variable
A PHP function that will add the querystring variable $key with a value $value to $url. If $key is already specified within $url, it will replace it.
function add_querystring_var($url, $key, $value) {
$url = preg_replace('/(.*)(?|&)' . $key . '=[^&]+?(&)(.*)/i', '$1$2$4', $url . '&');
$url = substr($url, 0, -1);
if (strpos($url, '?') === false) {
return ($url . '?' . $key . '=' . $value);
} else {
return ($url . '&' . $key . '=' . $value);
}
}
Remove Querystring Variable
A PHP function that will remove the variable $key and its value from the given $url.
function remove_querystring_var($url, $key) {
$url = preg_replace('/(.*)(?|&)' . $key . '=[^&]+?(&)(.*)/i', '$1$2$4', $url . '&');
$url = substr($url, 0, -1);
return ($url);
}
Regular Expressions Cheat Sheet (V1)
14 September 2006 | 172 comments | code, howto, cheatsheet, development, regex, regexp, expressions, reference, programming, tips, regular
Regular Expressions are very powerful, and many people find their unusual syntax hard to get to grips with. This A4 reference serves as a guide to regular expression patterns and options.
Microformats Cheat Sheet
9 September 2006 | 49 comments | webdev, cheatsheet, standards, xhtml, html, reference, microformats, programming, web, pdf, hcard, webdesign
Microformats allow us to add more information to our documents on the web, embedding semantic data in web pages that can then be parsed and used in other applications. This reference sheet contains an overview of the most often used microformats.
Jargon Explained
3 May 2006 | 8 comments | article, blog, google, jargon, reference, search, seo, web
Many of my clients have worked previously consultants and SEOs that inundated them with jargon, especially where proposals and sales calls are concerned. I find myself sometimes using too much jargon - easily done when you spend so much time working in any field. This jargon guide explains the industry terms in simple language.
World of Warcraft Cheat Sheet
14 February 2006 | 159 comments | cheatsheet, commands, games, gaming, mmorpg, reference, tools, useful, warcraft, worldofwarcraft, wow
World of Warcraft may not be a web design, development or marketing topic, but that doesn't mean I don't need a cheat sheet for it. I've just started playing and can't remember all the slash commands and shortcut keys, so this is a simple quick reference for just that.
Ruby on Rails Cheat Sheet
11 January 2006 | 95 comments | rails, cheatsheet, development, tutorial, reference, programming, web, ror, cheatsheets, rubyonrails, ruby, tutorials
A quick reference guide for Ruby on Rails, containing the default directory structure, predefined variables, methods, reserved words and regular expression syntax.
ASP / VBScript Cheat Sheet
1 January 2006 | 42 comments | webdev, reference, cheatsheet, scripting, web, vbscript, programming, webdesign, work, css, asp
A quick reference guide for ASP / VBScript, containing functions, collections, regular expression syntax and other useful bits of information.
Internet Country Codes
7 October 2005 | 22 comments | cheatsheet, webdev, reference, domain, domains, tld, codes, dns, internet, resources, country
A list of country level domain names, ordered by country or domain name.
HTML Character Entities Cheat Sheet
29 September 2005 | 83 comments | webdev, cheatsheet, html, reference, xhtml, web, characters, useful, entities, webdesign, character
I'm forever looking up character codes, so this cheat sheet was a no-brainer. This contains a list of the assigned character codes in HTML, with an example of how they are displayed, and description.
JavaScript Cheat Sheet
1 August 2005 | 102 comments | code, webdev, cheatsheet, development, reference, programming, ajax, web, webdesign, javascript, guide
A quick reference guide for JavaScript, listing methods and functions, and including a guide to regular expressions and the XMLHttpRequest object.
MySQL Cheat Sheet
24 May 2005 | 143 comments | cheatsheet, webdev, development, mysql, reference, programming, web, php, database, guide, sql, webdesign, howto
A quick reference guide for MySQL, including functions (both in MySQL and PHP), data types, and sample queries. Available in PDF and PNG formats.
mod_rewrite Cheat Sheet (V1)
10 May 2005 | 179 comments | howto, webdev, mod_rewrite, development, server, cheatsheet, reference, programming, web, htaccess, apache
A quick reference guide for mod_rewrite, including server variables, flags and regular expression syntax. Also includes examples of commonly-used rules.
CSS Cheat Sheet (V1)
30 April 2005 | 221 comments | webdev, cheatsheet, development, tutorial, reference, tips, programming, design, web, webdesign, css, html, howto
A quick reference guide for CSS, listing selector syntax, properties, units and other useful bits of information.
PHP Cheat Sheet (V1)
22 April 2005 | 247 comments | code, webdev, development, cheatsheet, cheat, reference, programming, php, web, webdesign, tools, cheatsheets
I'm fed up with having to visit php.net to look things up. This A4 cheat sheet is designed to sit by your desk and make your life easier.
Block Prefetching
20 April 2005 | 3 comments | webdev, block, mozilla, prefetching, google, reference, php
Mozilla and Google's prefetching functions are a nice addition to browser technology in many ways. Unsurprisingly, they are not very well thought through. The main two problems with the prefetching idea are that it messes with log files and it means every link on a page could potentially be followed despite the consequences (dangerous in a site administration context).
It appears from the FAQ that Google only intends their accelerator to prefetch specific pages, that have been specified with the <link> tag. However, many people are claiming that normal links have been prefetched.
To prevent prefetching of a page is simple: add the following PHP to the page you do not want prefetched:
if ((isset($_SERVER['HTTP_X_MOZ'])) && ($_SERVER['HTTP_X_MOZ'] == 'prefetch')) {
// This is a prefetch request. Block it.
header('HTTP/1.0 403 Forbidden');
echo '403: Forbidden<br><br>Prefetching not allowed here.';
die();
}
This will serve a "forbidden" header to the prefetcher. Normal browsing should be unaffected.
The Box Model For Beginners
9 July 2004 | 41 comments | box, boxmodel, css, design, html, model, reference, tips, tutorial, webdesign, webdev
An explanation of what the box model is and how it is treated by different user agents.
Text Readability Scores
7 July 2004 | 152 comments | design, language, literature, readability, reference, resources, tool, tools, usability, webdesign, writing
A tool to give an indication of how easy text is to read, using the Flesch-Kincaid, Gunning-Fog, Coleman-Liau, SMOG and Automated Readability scoring systems.
Flesch-Kincaid Reading Level
7 July 2004 | 14 comments | reading, webdev, text, programming, reference, php, writing, readability, language, accessibility, algorithm
Functions to count the number of syllables in a word or sentence, and work out the readability of text.
Faux Columns for Liquid Layouts
22 June 2004 | 30 comments | tutorial, html, fluid, layout, reference, liquid, design, web, faux, webdesign, css, hacks
Using CSS for layouts can be a problem when using backgrounds for two columns that are not of equal length. This article expands on the solution to this problem from AListApart.
HTTP Status Codes for Beginners
11 May 2004 | 34 comments | development, html, http, reference, software, web, codes, tools, status, rest, apache, webdev
All valid HTTP 1.1 Status Codes simply explained.
VBScript Date Format Functions
15 March 2004 | 69 comments | scripts, development, reference, programming, vbscript, javascript, time, unix, date, asp, vb, webdesign
Date formatting in VBScript is not quite as powerful as PHP. This function gives you plenty more ways to format dates and times in VBScript with the minimum of effort.
US States Select Box
14 February 2004 | 28 comments | select, webdev, development, html, reference, resource, design, forms, webdesign, states, resources
A populated select list (input box) with the states of the USA as options.
VBScript Regular Expressions
7 November 2003 | 34 comments | code, regex, regexp, reference, programming, asp, vbscript, vb, regular, scripting, expressions, regular-expressions
Regular expression reference and examples for VBScript.
RGB Hex Colour Chart
22 September 2003 | 61 comments | hex, cheatsheet, webdev, rgb, reference, color, html, webdesign, tools, css, colour, guide, design
A free, printer-friendly RGB Hex colour chart for web designers.