Archive of Programming Goodness

Dreamweaver code on black

Your poor peepers. Too much white all day long. Not only should you do this, you should use Blackle instead of regular Google to save on energy (alternatively, you can use iGoogle and just pick a darker theme). I’ve gone through and replaced the backgrounds with black and white text…


Coldfusion Regex Unicode Characters

I was having a grand time writing some regex patterns in my Regular Expression Tester extension for FireFox. I needed to match some special characters because the site I was working on catered to international users. I would need to be able to validate strings containing acute, umlauts, etc. So,…


jQuery each()

Here’s something I wasn’t aware of, if an associated array is populated by a named key, the length is not increased. var someArray = new Array(); someArray['someKey'] = “someValue”; alert(someArray.length); // expected 1, got blank alert(someArray['someKey']); // “someValue” This is a problem if you’re trying to loop the array by…


Coldfusion Query Of Queries

I’m trying to do a list of results from a query with upper and lower bounds. Normally one would just do a query then add the StartRow and MaxRows attributes to a cfloop or cfoutput, but I’m stubborn / don’t want to do it that way. QoQ allows for a…


Lessons Learned

I have no way of testing IE7. Certain restrictions apply that force me to do dev work on a remote box. Today that fact made my life hell. Random LI tags were not displaying. This worked fine on every browser I had access to. Problem was that my list items…


eCommerce Solutions

Are you wanting to sell your products & services online? We are eCommerce specialists and can create a secure, usable website for whatever needs that you have from just a few items to a huge inventory of cross-related products. We have several shopping cart solutions and can customize or even…


Good news! (with a hitch)

Firefox 3 was officially released! I was in Honduras and installing that was one of the first things I did upon booting the computer… then downloaded Coldplay from Amazon. So it’s wonderful not dealing with the memory problem anymore and the speed increase. My work computer would barf every time…


Stop SQL Injection

When using Cold Fusion with dynamic forms that feed a SQL query, it is always a good idea to use the <cfqueryparam> tag to help stop sql injection. SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present…


Google Analytics is easy to set up and worth every second

I don’t know why anyone would not have Google Analytics set up on their website. It’s one of the best website statistic packages out there, is constantly being improved upon and is FREE! Yes, Google rocks the house again. So, as I’m adding Google Analytics to this site, I’ll share…


Reenter Torn Pixel 6

Internet Explorer 6 anagram. I’m going to have to decide now if I should provide a daily rant about the browser now or after I exhaust random musings about Coldfusion and helpful CSS snippets. If I start posting reminders to myself about CSS behavior I think myself and those on…