Adam.Blog()
Adam Presley's blog
Dumbass Code of the Week - 10/05/2009
Today’s Dumbass Code of the Week is brought to you by code from my current job. This code, written circa 2002, is real, and has not been modified or harmed in any way during the posting of this blog entry. Are you ready for it?? <cfif Find("@", attributes.sEmail) GT 0>...
The Guild - Do You Wanna Date My Avatar?
I forgot how friggen funny these guys are. If you’ve ever played an MMO (Massivly Multiplayer Online) game for PC, this music video will have you raving in your computer office!
Triggering the Change Event on a Select Box Programatically In jQuery
Don’t know if anyone else has had to do this, and it seems so simple, but it took me a couple of minutes to find this. I have a ColdFusion page with a lot of jQuery magic happening with a popup dialog that allows the user to edit address information....
Optimize Performance in Eclipse
Here’s a link to David Salter’s site that talks about some settings you can modify in your eclipse.ini file in Windows to help make Eclipse a bit more palatable for everyday use. Visit his site at http://davidsalter.co.uk/blog/?p=332.
A Prettier Query to JSON for ColdFusion using Groovy
ColdFusion 8 introduced the ability to serialize data structures, arrays, and queries to JSON notation, making building AJAX-enabled applications even easier. There are a couple of annoyances, however, that still persist, and simply drive me nuts. Take the following query as an example. SELECTs.state_id, s.stateName, s.stateAbbrevFROM states AS sORDER BY...
SES URLs with ColdFusion 8 and Tomcat
A little tidbit that I had to work on today. To make sure that I am properly testing my applications in both Railo AND ColdFusion, I bundled up ColdFusion 8 as a WAR file and deployed it to Tomcat. That went easily enough. When I browsed to my Coldbox application,...
Writing C# Functions for SQL Server and CLR Integration
An interested problem was presented to me today where a database table in SQL Server 2005 (now moved to 2008) had a trigger attached to a table that would encrypt a credit card number on insert or update. The encryption routine used the sp_OACreate stored procedure to make use of...
Basic Example of jQuery Tooltip
Oftentimes we developers overlook the simplest solutions to a given problem. And I must confess that I am the worst, often looking for the most complex, reusable, scalable solution to something as simple as “How do I display a list of promotions in a tabular format while showing them details...
Count Lines of Code in a Directory using Groovy
So here’s a tasty morsel. I wrote a quick little script to count the number of lines of code in a ColdFusion project. Why? To make stuff look impressive, or course! So here we make use of Groovy’s very powerful extensions to the Java File object, and its ability to...
DFW CFUG - The Strategy Pattern
Like to send out a thanks to Dave Shuck (http://daveshuck.instantspot.com/blog/) for his presentation tonight on the Strategy Pattern. Last month Dave suggested that each month someone present on the next chapter in the Head First Design Patterns book. However, since the book is geared toward Java developers, change it up...