2009

You are browsing the archive for 2009.

A Personal Update

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 [...]

Even Better CF DB Error Messages

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 [...]

I Had a Doubt (About CFGroovy2 and Ehcache)

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.  [...]

imageTranslateDrawingAxis is Your Friend

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 [...]

Fusebox XML Flowchart Generator

Fusebox XML Flowchart Generator

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 [...]

Fixing CF DB Error Messages

Fixing CF DB Error Messages

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 [...]

Where Are The CTRL-S, ALT-TAB, F5 Web Frameworks?

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 [...]

Rebuilding Pic of the Day

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 [...]

CFYourFavoriteJVMLanguage

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
[...]

CFGroovy2 and Ehcache

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 [...]