Our Blog
A collection of our insight for all things relevant and irrelevant to the digital world.
Coldfusion Query Of Queries
on April 21st, 2009 in Programming Goodness, Tips by TheHahn | Comments OffI’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…
International data regex validation
on May 22nd, 2009 in Boise Office by TheHahn | No CommentsCurrently coding a site that is going to required international characters. I’m being very diligent in my data validation, so I want to lock the characters down with regular expressions. There isn’t any one metacharacter to encapsulate them all. So looking at a unicode table one can grab a range…
jQuery each()
on June 8th, 2009 in Boise Office, Programming Goodness by TheHahn | No CommentsHere’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…
Random iteration
on June 9th, 2009 in Boise Office by TheHahn | 1 CommentI 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…
Coldfusion Regex Unicode Characters
on June 13th, 2009 in Programming Goodness by TheHahn | No CommentsI 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,…
Dreamweaver code on black
on June 23rd, 2009 in Programming Goodness, Tips by TheHahn | No CommentsYour 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…
Horizontal Scroll
on August 7th, 2009 in Design Goodness, Programming Goodness, Tips by TheHahn | No CommentsFor some reason I haven’t seen many examples of a horizontal scrolling div. These are commonly used for image slideshows (we have a number of photography clients). CSS: div { width:380px; height:80px; padding: 15px 0 30px 0; overflow-x:auto; white-space:nowrap; } By default, img tags are display:inline, so you need only…
Credit Card Autocomplete
on August 21st, 2009 in Programming Goodness, Tips by TheHahn | No CommentsWhen working on a shared computer, there is a lot of risk involved with personal data. For example, buying something online with a credit card. Best practice is to clear all saved data from the computer as one logs off. However, I am not convinced a majority of users know…
Chroma Hash
on December 4th, 2009 in Design Goodness, Programming Goodness by TheHahn | No CommentsI just want to post a message about how clever I find this password input. I can thank Reddit for originally bringing this to my attention. I hope to implement this on my next project. If you decide to do the same, please give some credit back to the source…
New Love for Inline-Block
on October 6th, 2011 in Boise Office by TheHahn | No CommentsInline-block is spectacular. Check out this menu, it auto adjusts the spacing between items. Home Products Services About Contact CSS (sans color|padding): div { width:100%; text-align:justify; } a { padding:10px 20px; display:inline; } span { display:inline-block; width:400px; } Now I get a menu that spans the container with automatic spacing….