By barneyb on October 11, 2007
On the Fusebox 5 mailing list this evening, Brian Kotek mentioned the inability to CFDUMP the myFusebox object because CFDUMP can't handle the cyclic nature of the object's internal data structures. While dumping myFusebox (which is a CFC instance) is probably a "silly" thing to do (Sean Corfield from the same thread: "Mind you, [...]
Posted in coldfusion, development, tools
By barneyb on October 2, 2007
Getting Slashdotted is a thing of the past, now you can get Dooced: post an entry that causes your feed subscribers to actually visit the site itself, and overwhelm your server. Note this is definition two for 'dooced', the first being "to have posted work-related things on your personal blog and get fired for it."
Posted in aside
By barneyb on September 28, 2007
I was really hoping for (though not really expecting) a nice simple solution to centering text on an image to show up as a result of the Wednesday Contest. Sadly, that wasn't the case. As you might guess, the contest was based on a real world use case that I had: gracefully [...]
Posted in coldfusion, tools
By barneyb on September 28, 2007
And here's the extra credit solution:
<cfif NOT isDefined("attributes")>
<cfset attributes = structNew() />
<cfset structAppend(attributes, form, false) />
<cfset structAppend(attributes, url, false) />
</cfif>
<cfparam name="attributes.width" default="100″ />
<cfparam name="attributes.height" default="100″ />
<cfparam name="attributes.backgroundColor" default="f7f7f7″ />
<cfparam name="attributes.borderColor" default="cccccc" />
<cfparam name="attributes.textColor" default="990000″ />
<cfparam name="attributes.text" default="Hello!" />
<cfparam name="attributes.textSize" default="16″ />
<cfparam name="attributes.textStyle" default="bolditalic" />
<cfparam name="attributes.textFont" default="courier new" />
<cfset fontArgs [...]
Posted in coldfusion, development
By barneyb on September 27, 2007
Just had my first occasion to use CFTHREAD in an app, and it's nice. As part of rendering an image gallery, I wanted to ensure that the thumbnails (which are generated server-side) exist so that they the user doesn't have to wait for them to be auto-generated as they're requested. Unfortunately, generating the thumbnails is [...]
Posted in coldfusion
By barneyb on September 27, 2007
Since I had a whopping zero takers for my contest, I'm thinking it won't be a repeat event. Here's my solution for the first portion of the challenge:
<cfif NOT isDefined("attributes")>
<cfset attributes = structNew() />
<cfset structAppend(attributes, form, false) />
<cfset structAppend(attributes, url, false) />
</cfif>
<cfparam name="attributes.width" default="100″ />
<cfparam name="attributes.height" default="100″ />
<cfparam [...]
Posted in coldfusion, development
By barneyb on September 26, 2007
For those of you who missed it, I posted a little contest this morning and have gotten a whopping zero submissions! There is still time to submit a solution, but be quick, as my solution (just the base, not extra credit) will be published tomorrow morning. I'll be posting a full solution (with the extra [...]
Posted in coldfusion, development
By barneyb on September 26, 2007
Today's contest uses the new image manipulation routines in ColdFusion 8. The objective is to take the custom tag/template skeleton below and add to it so that it'll generate the following image:
The tag/template can be invoked as a custom tag, or directly on the URL with URL and/or form parameters to set it's values. [...]
Posted in coldfusion, development
By barneyb on September 24, 2007
Scott Adams (of Dilbert fame) posted a very nice piece on Iran (specifically President Ahmadinejad) on his blog. Definitely worth a read.
Posted in aside
By barneyb on September 11, 2007
I was talking to Sandy Clark back at CFUNITED about how I still use a stripped-down FB3 for a lot of projects. She said I should publicize it, so here goes. At it's heart, it's a toolset for designing something that resembles a single-circuit FB3 application, but with some of the niceties (like [...]
Posted in cfml, fusebox