cfml

The Groovy Sieve of Barney

Ok, it's really Eratosthenes', but it's my implementation (in Groovy, of course) along with simple display (in CFML, of course), and can be found here (with full source, of course).  If you just want to see the core sieve, here it is ('bound' is the upper range of the search):
class Node {
[...]

Calling FB3Lite as a Custom Tag

Today at work, Joshua wanted to invoke one of our FB3Lite apps from within an external CFM file (a CMS template) to reuse some code.  So I added a little snippet to the top of index.cfm to detect if it's being called as a custom tag and only execute during the start phase.  So you [...]

Base Conversion Functions

In the theme of URL shorteners, I whipped up some simple base conversion functions that don't have the hard limit of 36 that the inputBaseN and formatBaseN built-ins do, but otherwise are exact replacements.  Everything is controlled by the first line, the list of digits.  The functions will support whatever base you want, as long [...]

My Real URL Shortening Service

For those of you who didn't get the joke last night, the whole thing was a joke.  While it does do exactly as advertised, it deliberately creates exceptionally long URLs.  In order for the app to actually return a shorter URL than you submit, the original URL must be at least 189 characters long.  I [...]

My New URL Shortening Service

Joshua, Koen and I were discussing URL shortening services (tinyurl, bit.ly, is.gd, etc.) over lunch this week, and so I decided to write my own (UrlShrink) available here: http://www.barneyb.com/applications/urlshrink/app/
It's ludicriously simple.  I opted for memory storage (think Mailinator) instead of a database for performance reasons.  With the load I anticipate, I think it'll be a [...]

I'm Speaking at CFUNITED

Just got official word from Liz that I'll be speaking at CFUNITED this year on Groovy and CFML integration.  Joe Rinehart was originally slated to speak on this topic, but we're splitting the topic into two sessions.  He'll be speaking on backing Flex with Groovy and I'll be speaking about the CFML side.

More CFGroovy Goodness, Now With RC2

Four things of import, in no particular order:
First, another bug fix to CFGroovy today, this one more serious.  I made a silly blunder in the way I was executing scriptlets that lead to a slow memory leak from extraneous java.lang.Class instances being created.  It also reduced performance of scriptlets by a tangible amount.  If you're [...]

Mentor.com Accounts are Live!

And why am I writing about this?  Because it's also the first CFGroovy / Hibernate app we've deployed into production.  So how did this first real-world adventure go for my youngest project?  Just swimmingly.
The adoption was actually championed by Joshua since I was working on another project at the time.  We went skunk-works, helped Koen [...]

CFGroovy HibernateTransactionAdvice Update

If you've used the HibernateTransactionAdvice CFC from the CFGroovy framework you may have witnessed weird behaviour after a failed transaction.  I had neglected to close the active session after an error is encountered and the transaction rolled back.  If you continued to use the Hibernate context after this happened for write operations you could encounter [...]

getSubversionRevision UDF

First, a confession.   I cheat hard-core on the deployment for most of my personal apps.  In almost all cases I check out a working directory in the production webroot and just use `svn update` to "deploy".  I've a couple apps that I use an Ant/Rsync-based mechanism to deploy where I actually have stuff to build, [...]