By barneyb on October 17, 2007
I got around to trying the E4X-based query structure this morning, and it works like a charm. It's now possible to write your queries like this:
Query.execute(
 <query>
   update contact set
    name = :name,
    email = :email
   where id = :id
 </query>,
 {
   id: new QueryParam(id, "integer"),
   name: new QueryParam(name),
   email: new QueryParam(email)
 }
);
There's [...]
Posted in development, javascript
By barneyb on October 17, 2007
I got a lot of great comments (along with some not-so-great ones) regarding my server-side JS implementation. As expected, quite a few people were very excited about using AS3 on the server instead of JS, and I agree. It got me thinking about how much code reuse you could get within an application. [...]
Posted in development, javascript, tools
By barneyb on October 16, 2007
After my last post on CF and JS integration (via Rhino), I got several comments that can be summarized as "why?". I addressed the issue in a rather oblique manner in my last post; here's a more full treatment.
Before I start, I want to make incredibly clear that I'm not talking about a new [...]
Posted in coldfusion, development, javascript, tools
By barneyb on October 16, 2007
Show of hands, how many people like CFML? Ok, how many like the ColdFusion Platform? What's the difference, you ask? CFML is a markup language that you do most CF Platform development in. You can use CFSCRIPT (which is ECMAScript-like) for certain things, but CFML is the Platform workhorse. The [...]
Posted in coldfusion, development, javascript
By barneyb on October 15, 2007
This one has gotten me several times. With the new structure literal notation in CF8, you have to use equal signs between the key-value pairs. In other places where you use key-value pairs (like passing named params to a UDF), you can use equals signs or colons, but not so with structure literals.
1xSlots Casino https://1xslot.ru/
I [...]
Posted in coldfusion, tools
By barneyb on October 12, 2007
At our office, we've recently moved to a shared workspace instead of individual offices, and part of the deal was that we each got a set of noise canceling headphones (PXC 300 from Sennheiser). I was skeptical, but figured pumping music directly into my ears coupled with the muffling effect of the actual headphones would [...]
Posted in personal
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