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 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 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 10, 2010
Everyone knows that one of the best ways to increase page performance is to reduce the number of HTTP requests required for related assets. There are a pile of ways to approach this (JS/CSS aggregation, image sprites, caching), but the best (and simplest) is client-side caching. It doesn't help your first-time visitors at all (which [...]
Posted in tools
By barneyb on February 26, 2010
I made another minor update to my Amazon S3 CFC this evening, this time to support PUTting public objects. To this point, the CFC left the default ACL on new objects PUT on S3, meaning that you needed an authorized URL (via a query string signature) to retrieve them. That was the use case I [...]
Posted in cfml, tools
By barneyb on January 25, 2010
I just upgrade to Subclipse 1.6 and it has an awesome new feature: diffs right in the commit dialog. It seemed a common use case for myself that when it came time to commit, I'd open my commit dialog and cycle through the files writing my commit message in Kate because I couldn't type while [...]
Posted in aside, eclipse, tools
By barneyb on November 19, 2009
I briefly mentioned imageTranslateDrawingAxis in my previous post about Fusebox flowcharts, but wanted to provide a more self-contained example of how it can be used to great effect. The idea here is to draw a house with a window, and to do it in a relative manner, rather than an absolute manner. Consider these two [...]
Posted in cfml, tools
By barneyb on November 17, 2009
About a week ago someone posted on the Fusebox mailing list looking for a way to generate flowcharts from his Fusebox XML files. Adalon was suggested, but it didn't do quite what he was looking for. So I sunk some of my spare time into building such a tool, and even managed to refrain from [...]
Posted in cfml, fusebox, tools