Just a quick MySQL optimization note. Many times we're required to clear a database table and reset the auto increment counter. This is common with…
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,…
cfqueryparam in order by, group by, etc
I've seen quite a few posts on this, many come to the same conclusion that using a (possibly length) switch statement is the best way…
IE 9 jQuery issue – getElementsByTagName
If you're testing your jQuery code in IE 9, you might run across the "Object doesn't support this property or method – getElementsByTagName" error. The…
Remote Host Address returns 127.0.0.1
So you're trying to track your users IP for one reason or another, but a glimpse at the REMOTE_ADDR server variable always returns localhost or…
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 CSV Export
Is it possible to do a CSV export with pure JavaScript? Close, but you still need the help of a server-side script to tell the…
A basic draggable photo cropper
If you have user generated photos, and wish to crop them down to a thumbnail, it's not always easy to decide which area of the…
WordPress get_avatar isn’t working
There are a couple things you can try if the author avatar isn't displaying. Check the first parameter. WordPress deprecated get_the_author_id() a while ago, so…
jQuery disable right click context menu
You can find a quick one-liner on how to disable the browser context menu anywhere, but I just wanted to make sure you know about…