Tagged with "reference"
Cheat Sheets
Regular Expressions (V2)
mod_rewrite (V2)
PHP (V2)
CSS (V2)
SQL Server
Microsoft's SQL Server is a powerful database server that integrates well with other Microsoft technologies like ASP and .NET, and includes some of the best database management tools available. This A4 reference lists the various functions available in SQL Server, and demonstrates the creation of stored procedures, triggers and functions.
HTML
Regular Expressions (V1)
Microformats
World of Warcraft
Ruby on Rails
ASP / VBScript
HTML Character Entities
JavaScript
MySQL
mod_rewrite (V1)
CSS (V1)
PHP (V1)
RGB Hex Colour Chart
Articles
Jargon Explained
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.
The Box Model For Beginners
An explanation of what the box model is and how it is treated by different user agents.
Faux Columns for Liquid Layouts
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 Explained
All valid HTTP 1.1 Status Codes simply explained.
Blog Posts
Block Prefetching
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.
