By barneyb on December 15, 2009
This morning, Heather and I cooperatively filed for divorce. This eventuality is old news for some, expected by others, and out of the blue for the rest. I have not been forthcoming with this information outside need-to-know situations for a variety of reasons, the primary one being that without any agreement between Heather and I [...]
Posted in personal
By barneyb on November 23, 2009
A few weeks ago I posted about fixing CF's DB error messages so that they include query params you passed as well as the raw SQL of the query. I also supplied a patch for detail.cfm so your SQL renders in a PRE tag for better readability, but didn't make it general enough to handle [...]
Posted in coldfusion
By barneyb on November 19, 2009
A couple months ago I added Ehcache support to CFGroovy2 as an alternative to the simple HashMap/WeakReference caching that had been there since it's inception. I waffled a little bit at the time, but it seemed like the right thing to do. I've changed my mind, and removed the Ehcache functionality in the latest build. [...]
Posted in cfml, groovy
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
By barneyb on October 29, 2009
When you're working on someone else's code and you get an error message (because I know you'd never write code that errors), CF usually does a pretty good job of giving you the info you need to debug the issue. But for some reason they don't show you query parameters, even though they're included in [...]
Posted in coldfusion
By barneyb on October 26, 2009
Ok, people, where are all the web frameworks that will give me a CTRL-S, ALT-TAB, F5 workflow? As I've been shopping around, it seems everything requires more than that. Some places you can script the additional steps into the refresh, but not always. Am I the only person that doesn't want to have a million [...]
Posted in personal
By barneyb on October 21, 2009
I need some help, thoughts, recommendations as I undertake this, but first some background…
As I do every 15-18 months, I've decided that it's time to rebuild Pic of the Day. I've never actually done it; the codebase is still the same one I started 5-6 years ago and have edited (often daily) since then. But [...]
Posted in potd
By barneyb on October 9, 2009
Just in case you didn't come to my talk on leveraging Groovy in your CFML applications at CFUnited, I wanted to share this simple CFM page I demoed:
<cfimport prefix="g" taglib="cfgroovy2″ />
<cfscript>
myArray = [
"barney"
];
</cfscript>
<!— thanks Groovy —>
<g:script>
variables.myArray.add("heather")
</g:script>
<!— thanks Quercus —>
<g:script lang="php">
<?php
[...]
Posted in cfml, groovy
By barneyb on September 26, 2009
Until this point, CFGroovy2 has used a custom WeakHashmap/WeakReference caching mechanism for compiled scripts. It works, and it ensures that the script cache won't run your JVM out of memory, but that's about it's only selling point.
Today I plugged in Ehcache as an optional caching backend if it's available on your classpath. When CFGroovy2 spins [...]
Posted in cfml, groovy