Archive of 2009 June
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,…
Random iteration
I have a project I’m working on at the moment that has an incrementing series {1,2,3,n=n+1,…n} and I need to convert that into a repeating series like so {1,2,3,3,1,2,3,3,etc}. This is in coldfusion and the obvious solution is as follows: <cfloop from=”1″ to=”20″ index=”n”> <!— gives us 1,2,3,0,1,2,3,0 —> <cfset…
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…