Adam.Blog()
Adam Presley's blog
Dumbass Code of the Week 12-20-2009
Please, someone explain to me why this was necessary. The first line of code is just a sample setup. The real code has a loop over some orders, assembles this string, and adds the word “NewOrder” at the end of it. It then executes line #2 with the revers, replace,...
SES URLs with OpenBD and Google App Engine
A little tidbit that I though I’d share. While playing with the Google App Engine (GAE) version of the OpenBD CFML engine I noticed that SES friendly URL’s weren’t working for me. After a small search I came across a bug entry on the OpenBD site that suggested that the...
Setting Cookies then Relocating in ColdFusion
This question came across the ColdFusion User Group just recently. The developer has some type of login form, followed by a query that validates the user’s information. It then attempts to set a cookie then redirect to another page. The subsequent page checks for the existence of the cookie, and...
From Gregorian to Julian Dates in JavaScript
I am working on a contract right now where I am having to do some manipulation of dates in a calendar. This particular calendar stores dates in Julian Day Number (JDN) format. This by itself is not a serious issue as PHP has simple functions to handle these conversions. However...
Ice, Ice, Baby
Yesterday the family and I went out to Grapevine to see the Gaylord Texan ICE! exhibit. With over 2 million pounds of ice in a 14,000 square foot compound ICE was a very cool (literally and figuratively) experience. Large parkas were provided to ward off the 9 degree temperatures at...
ColdFusion Builder Performance
I don’t know about you guys, but I run into horrible performance issues as I use ColdFusion Builder, or most other Eclipse-based IDEs, as I use them more over time, add more projects, etc… After researching I’ve got a set of settings now that help a bit. These settings make...
Round Robin Display of Data - Java Style
In my daily blog reading I came across Mr. Ray Camden’s blog post about rotating a grouped set of data in a “round robin” fashion. In his example he uses a multi-dimensional array, then uses ColdFusion to iterate over the array, copy the item to move, delete it, them push...
Sorting a Complex Array of Products in PHP
I’ve blogged twice recently about sorting an array of structures in ColdFusion, using both pure CF, and dipping into Groovy. This time we’ll look at how we can easily do the same task in PHP. In this post I will take the same problem, a complex array containing a structure...
Sorting Array of Structures with only ColdFusion
In a previous post, Sorting Array of Structures with ColdFusion and Groovy, I talked about how one can use the Java Comparator interface to build a class that, when used with the Java Collections class, can sort an array of structures on multiple criteria. I demonstrated how to first compare...
Nerdiest programming language ever!
Ok, this programming language I stumbled across has to be the nerdiest programming language ever conceived, sober or drunk! The creators of this language believe that humble whitespace characters have received a bad wrap, and as such pay homage to the lowest common characters, whitespace. For the nerdy programmer types...