By barneyb on August 25, 2010
Just a heads up that the server hosting barneyb.com and all it's various offspring (PotD, EventLog, etc.) will be going down about eight this evening to replace a faulty cooling fan. Total outage should be less than 15 minutes, and it will be a complete outage (the IPs will be dead).
Posted in meta
By barneyb on August 16, 2010
So tonight I built cron in CFML. Again. Because it's missing from both the language framework and every runtime. Am I the only one who constantly fights this battle? In the past four years I've built four distinct cron implementations in CFML and it's completely retarded.
The JRE provides TimerTask, but it's a [...]
Posted in random | Tagged cfml
By barneyb on August 3, 2010
A couple years ago I wrote about using YUI Compressor to do built-time aggregation and compression of static assets. That works well and good if you have a build environment, but that's not always the case. So, still using YUI Compressor, I set up a simple script that'll do runtime aggregation and compression of assets [...]
Posted in cfml, javascript, tools
By barneyb on July 30, 2010
If you've ever used Grails, you probably know about the 'flash' scope that it provides for passing data from one request to the next. Certainly not a must-have feature, but it's quite handy. The typical use case is after a form submit, you set stuff into the flash scope and then redirect to some page [...]
Posted in cfml
By barneyb on July 23, 2010
Guess what time it is, kids!!
It's "Barney still wants CFML closures" time! Yay!
Today's impetus is Edmund, Sean Corfield's event driven programming framework. In order to register event listeners, you have to a CFC instance with a specific method to be invoked on it, and which accepts an Edmund Event as it's sole argument. Which means [...]
Posted in cfml
By barneyb on July 23, 2010
If you're reading this, chances are good you're a software developer. And that means you never touch the DB outside a transaction, right? Of course, right.
Most of the time, transactions are a bit of a bear because their use is orthagonal to your business tasks. To put that another way, business operations flow vertically from [...]
Posted in database, railo
By barneyb on July 8, 2010
Both Railo and ColdFusion have added a builtin 'location' function in recent versions, and like their CFLOCATION counterpart, the default behaviour is to append the jsessionid/CFIDE/CFTOKEN tuple to the URL when redirecting. I find this rather annoying, and it's even worse since FB3lite has a 'location' function which defaults it to false. Unfortunately there isn't [...]
Posted in railo
By barneyb on June 8, 2010
I've added two new methods to my Amazon S3 CFC: listBuckets and listObjects. Both of them do about what you'd expect, returning a CFDIRECTORY-esque recordset object containing the rows you are interested in. I've attempted to make S3 appear like a "normal" filesystem where "/" is S3 itself, the top-level directories are your buckets, and [...]
Posted in amazon, cfml
By barneyb on May 28, 2010
Joshua (a coworker) and I have been talking about gravity simulation for a while, and this week I threw together a very simple model to do exactly that. This grew out of a game called Flotilla that he came across somewhere and has been working with the developer to add a network multiplayer mode. Flotilla, [...]
Posted in development, groovy
By barneyb on May 26, 2010
Yesterday I presented CFGroovy to the Tulsa CFUG via Connect. The recording is now available on Connect, thanks to Steve. You can also grab the slidedeck (as a PDF) I skimmed through, and of course, the CFGroovy framework itself (project page, core SVN, demo SVN), including the demo files that I showed.
Posted in cfml, groovy, personal