By barneyb on March 31, 2010
I've been working towards this for quite some time, and last night I finally replaced ColdFusion with Railo on my personal server. By and large the switch went flawlessly. I made a few compatibility changes ahead of time and found and fixed a few issues subsequently, but really smooth overall. Even better, the memory footprint [...]
Posted in cfml, coldfusion, meta, railo
By barneyb on March 30, 2010
Tonight I'm switching from my CFML from ColdFusion 8 to Railo 3.1.2.010 (bleeding edge). So starting here in a couple hours there is undoubtedly going to be broken stuff. Pic of the Day, of course, is the primary focus of the upgrade and I've already done extensive testing of that codebase on Railo so it [...]
Posted in meta
By barneyb on March 30, 2010
I just made another minor tweak to FB3Lite to fix out-of-the-box ColdFusion 9 compatibility. CF9 added a 'location' built-in function, which means that the function of the same name that FB3Lite provides now generates a compiler error. Fortunately, since functions are real data within CFML, a simple realiasing gets around the issue. This creates a [...]
Posted in coldfusion, fusebox, tools
By barneyb on March 30, 2010
Piggybacking on the change to allow mappings in do/include, you can now use mapping-relative paths in the appSearchPath initialization variable as well. Before you had to use a relative path, which got a little hairy when you had a deeply nested structure:
<cfset appSearchPath = "../../../myApp" />
<cfinclude template="../com/barneyb/fb3lite/index.cfm" />
But now with mappings, you can simplify things, [...]
Posted in fusebox, tools
By barneyb on March 30, 2010
I use tabs for navigation a lot. Not for in-page DOM swapping, but for expressing a list of available pages along with indicating which on you're on. Pretty much every tab "system" is centered around client-side manipulation, rather than just presenting server-generated markup. And the few counter examples don't do it in an encapsulated way, [...]
Posted in css, development
By barneyb on March 22, 2010
I'm sure I wasn't the only one that was sorely disappointed when Adobe released CF9 without the ability to execute HQL queries via the CFQUERY tag. Using a function (ormExecuteQuery) works, but it's really ungainly if you have complex – or even just long – HQL or need to build your statement conditionally, and you [...]
Posted in cfml, coldfusion, database
By barneyb on March 19, 2010
I always get lots of questions about my Pic of the Day minicards, so I made a page on the PotD site with info about them both in general and the individual runs. As always, NSFW.
The minicards are the only actual "marketing" I do for PotD aside from occasionally link to it so it can [...]
Posted in potd
By barneyb on March 16, 2010
If you've used FB3Lite, you may or may not know that it implicitly supports a Fusebox-like circuit structure. Both do() and include() allow you to invoke fuseactions/templates from other directories within your application, though without the circuit aliasing abstraction layer that Fusebox provides. This is a great way to break down large applications into multiple [...]
Posted in cfml, tools
By barneyb on March 13, 2010
If you've used WordPress, you may have run across shortcodes. They're little directives you type into the editor box which then evaluate dynamically when the content is rendered on the outside of you site. Plugins can register new shortcode handlers, which are implemented as a simple function callback. It's a really simple way to expose [...]
Posted in cfml, tools, wordpress
By barneyb on March 12, 2010
If you've had any contact with me (meat- or net-space) for the past few months/years, you undoubtedly know that my life has been a bit rough. But it seems that the worst is behind, which is a relief such that I cannot express. I've been officially divorced for two months, living on my [...]
Posted in personal