Adam.Blog()
Adam Presley's blog
Issues Serializing ColdFusion Session Object
At work I’ve been asked to brainstorm solutions to a problem where a user’s session and application information is lost when they get kicked off of one server and are moved to another. Essentialy we have a load balancer with “sticky session” support, so a user, once logged into our...
Dallas Techfest and ColdFusion 9
This last Friday I attended the ColdFusion track at the Dallas Techfest. I went with a coworker and ex-coworker specifically to see the ColdFusion 9 preview. It was a good presentation that I must admit I’m a little excited about. For me, this is the most exciting ColdFusion release in...
Windows 7 RC - First Night
Last night I did it. I took the plunge. I formatted and installed 64-bit Windows 7 Release Candadite. The experience, thus far, has been fairly painless. The installer was the simpliest installer for Windows I’ve used to date (and the prettiest). Once in Windows I began the search for drivers...
Simple LRU Cache Class in PHP
In my ongoing effort to further enhance my PHP framework I started recently working on a caching mechanism. For the time being I am using the PEAR library’s Cache_Lite (I’ve blogged on this before, so check it out) to handle the details of persisting the cache data, locking, and all...
Barbecue Barcode, ColdFusion, and Size
Swithin writes: Can the width and/or height parameters be passed in the o.getCode128() call? I am successfully passing the #url.data# as o.getCode128(#url.data#) but would like to also decrease the overall size of the barcode, while keeping the data the same. So I will need to decrease the width of the...
Firefox Plugin to Change View Source
Here’s a nifty plugin written Davide Ficano that allows you to control what application(s) that is used to view the HTML source on a given page in Firefox. I use a nice text editor called Boxer that I prefer over the default, and this plugin allows me to use it....
ColdFusion - Branch Target Offset Too Large for Short
Yes, that is the interestingly ambiguous message I recieved today while developing on a particularly large CFC. In this particular component there was a function that was excessively long, so I decided to be cool and break it apart a little bit. To start I took out a 523 line...
SQL Formatted Revisited
I posted an entry yesterday about using a regular expression to reformat SQL queries in code. After a bit more exploring and playing around in RegexBuddy (wonderful tool) I came up with a better regular expression to do the job. This version accounts for the last column much better than...
Regular Expressions - Commas at the Beginning of Column Names
If you’ve worked with a lot of inline SQL like I have over the years you’ve probably discovered quickly that as you have to add more columns to your query, especially columns that are only added on a dynamic condition, it can be easy to mangle up your commas. Here’s...
ColdFusion Random ID Generation
Had a situation at work today where I needed a quasi-random ID to store as a “key” in the database. This key would be handed to users for their use over a given session for webservices. At first I started with a UUID using the following code, but it occured...