Do division last Division has that unique power to turn two perfect integers into floating point numbers. If possible, put divisions at the end of…
Parsing the PDF
I had to pull some data from a source, to create a Google map today. But, the only format the address data was in was…
Don’t forget about Base 2
We've all gotten so used to high-level programming that we often forget about how compact and clean machine code really is. Wait a minute, let's…
Strong form SPAM prevention technique
To emphasize the necessity for some form of SPAM prevention, consider this example. You have an HTML form, such as: <form action="send.cfm" method="GET"> <input…
Tracking anonymous users
Let's face it, having to create an account is probably the number 1 reason that users avoid doing anything trivial on the web. By trivial,…
SEO Friendly URLs with Regular Expressions
If you're creating dynamic pages from a database, you've probably heard the buzz about SEO friendly URLs. There's a little more work involved than simply…
jQuery combine all lists into one list
This little trick comes in handy if your site runs on a CMS. The editors within CMS's have a tendency to create multiple lists to…
Date format – day without leading zero
This article is geared towards scripting languages which offer a Date Format function, but don't offer a directive to include the Day without Leading Zero.…
ColdFusion dates within common time periods
I've had to do this so many times over the years, for all sorts of different time frames, so I decided to build, document and…
ColdFusion SQL Bulk Insert based on structure keys
I realize this particular requirement might be rare, but it comes in handy when you have an XREF (cross-reference) table which ties two tables together.…