July 2009 Web Log Entries

Showing 16 - 30 of 50   < Prev | Next >

Learning ColdFusion 9: Using OnCFCRequest() To Return JSONP (JSON With Padding) API Responses

Posted: July 20, 2009 at 8:50 AM by Ben Nadel

Tags: ColdFusion

A few days ago, I blogged about the new OnCFCRequest() event handler in ColdFusion 9's Application.cfc framework . This event handler controls requests made to ColdFusion components as opposed to the OnRequest() event handler which, in ColdFusion 9, only handles requests made to ColdFusion templates (CFM file). Over the weekend, I was thinking mo... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Permalink



Free ColdFusion 9 Beta Hosting On Hostek.com

Posted: July 19, 2009 at 5:44 PM by Ben Nadel

Tags: ColdFusion

I just saw on Twitter that Hostek.com is now offering free ColdFusion 9 Beta hosting! If you're interested, check it out here: Free ColdFusion 9 Beta Hosting . ... read more »

Comments (14)  |  Post Comment  |  Ask Ben  |  Permalink


Project HUGE: Huge In A Hurry - Get Big - Phase 3 / Week 3

Posted: July 19, 2009 at 3:59 PM by Ben Nadel

Tags: Health / Fitness, Project HUGE

I am almost done with the Get Big program in Chad Waterbury's Huge In A Hurry workout . I have been really trying to stick with it; but, as I have gotten farther into the workout, I have started substituting a few of the exercise choices. This last week, Week 3 of Phase 2, I decided to substitute Barbell Box Squats in lieu of Bulgarian Split Squa... read more »

Comments (18)  |  Post Comment  |  Ask Ben  |  Permalink



Ask Ben: Dynamic Web Root And Site URL Calculations In Application.cfc

Posted: July 19, 2009 at 2:33 PM by Ben Nadel

Tags: Ask Ben, ColdFusion

I'm new to using Application.cfc. Following Ben Forta's tutorial, I've created one that calls a SiteHeader and a SiteFooter. The header has an image file which displays at the root level of the website, but breaks when you go to folders underneath that. I can make it work by setting a Request.Image_Path in Application.cfc, but only by hardcoding t... read more »

Comments (20)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: IsNull() And Working With NULL Values

Posted: July 18, 2009 at 9:10 PM by Ben Nadel

Tags: ColdFusion

Before ColdFusion 9, there was never really a sense of NULL values in ColdFusion. If you had a NULL value returned from a Java method, it simply destroyed the variable into which it was stored. If you had a NULL value come back from a query, it was presented as an empty string. While that hasn't really changed, ColdFusion 9 now has a method that m... read more »

Comments (13)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: ArrayFind() And ArrayContains() For Searching Arrays

Posted: July 18, 2009 at 7:37 PM by Ben Nadel

Tags: ColdFusion

ColdFusion 9 had added three new methods for finding values within an array. Two of them - ArrayFind() and ArrayFindNoCase() - return the index of the target value (or zero if it the value cannot be found). The third, ArrayContains(), returns a boolean as to whether or not the value was found in the array. From what I can see, I can't figure out w... read more »

Comments (14)  |  Post Comment  |  Ask Ben  |  Permalink


The Performance Cost Of Throwing Exceptions In ColdFusion

Posted: July 17, 2009 at 6:54 PM by Ben Nadel

Tags: ColdFusion

After writing my previous blog post on the performance gains offered by the Virtual File System in ColdFusion 9 , I started to think about Elliott Sprehn's recent blog post on using ARGUMENTS.Callee in ColdFusion . In it, Elliott uses manually-triggered exceptions to gain access to an instance of the Function object from within the function bo... read more »

Comments (13)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: Virtual File System vs. Actual File System

Posted: July 17, 2009 at 5:55 PM by Ben Nadel

Tags: ColdFusion

Earlier today, I blogged about the new Virtual File System available in ColdFusion 9 . I explained that the virtual file system was just like the actual file system except that you were writing to the "ram://" disk rather than to the hard drive. I wrote that the biggest benefit of this new virtual file system was the performance gain - that it wa... read more »

Comments (16)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: The Virtual File System (RAM Disk)

Posted: July 17, 2009 at 10:10 AM by Ben Nadel

Tags: ColdFusion

ColdFusion 9 introduced a new file system, called the Virtual File System, that acts just like any drive, but exists fully in the RAM of the server. It looks, acts, and feels like a regular file system, but the difference is that it's much faster due to the fact that reads and writes to and from it don't actually involve any disk access. Other tha... read more »

Comments (28)  |  Post Comment  |  Ask Ben  |  Permalink


Step Debugging jQuery Selectors

Posted: July 16, 2009 at 11:00 AM by Ben Nadel

Tags: Javascript / DHTML

NOTE : This blog post was inspired by a post that Ray Camden did a while back about an AIR-based jQuery selector tester . I was talking to some people a while back about debugging jQuery selectors. To me, the hardest part about debugging jQuery selectors is that when they are not returning the set of nodes you want, or nodes at all, its ha... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


Attaching ColdFusion Error Reports To Avoid GMail Spam

Posted: July 16, 2009 at 9:29 AM by Ben Nadel

Tags: ColdFusion

I am sure that all of us keep track of the errors generated by our ColdFusion web sites. I personally like to email myself the exception data using Application.cfc's OnError() event handler. Traditionally, what I do is just CFDump out a bunch of the relevant scopes (Exception, CGI, FORM, URL) in the email body and send it off. But recently, GMail ... read more »

Comments (20)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: CFImport / New Operator Works With Tags As Well

Posted: July 15, 2009 at 8:05 PM by Ben Nadel

Tags: ColdFusion

This is a really minor post, but I just wanted to show a quick example. Several people have already demonstrated ColdFusion 9's "new" operator for use in creating ColdFusion components in lieu of the CreateObject() method. But, those demonstrations have all been done using CFScript and I wanted to kick it old-school (sometimes referred to as "Ben ... read more »

Comments (16)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: Application.cfc OnCFCRequest Event Handler For CFC Requests

Posted: July 15, 2009 at 10:44 AM by Ben Nadel

Tags: ColdFusion

Earlier this week, Ray Camden blogged about ColdFusion 9's new onCFCRequest() event handler method in Application.cfc. If you look at the Application.cfc reference guide in the ColdFusion 9 documentation, you'll notice that it is not there at all (so far the CF9 docs have been extremely under whelming). As such, there are a lot of questions th... read more »

Comments (17)  |  Post Comment  |  Ask Ben  |  Permalink


Learning ColdFusion 9: Referencing Arrays Returned From Methods

Posted: July 14, 2009 at 1:51 PM by Ben Nadel

Tags: ColdFusion

This is a really minor syntax update in ColdFusion 9, but again, one that will probably remove a good amount of friction in certain areas. In ColdFusion 9, if you perform a method call that returns an array, you can now reference the array index directly off of the method call result without creating an intermediary variable. Meaning, you can now ... read more »

Comments (12)  |  Post Comment  |  Ask Ben  |  Permalink


ColdFusion and OOP - Match Made in Heaven, or Long Road to Hell?

Posted: July 14, 2009 at 10:45 AM by Ben Nadel

Tags: ColdFusion

For a long time, Hal Helms has been my beacon of hope in the world of object oriented programming madness. With many years of OO programming experience across a variety of different languages, I thought, some how, if I could just understand the concepts that he did, I would finally be able to wrap my head around the beast which is OO. As such, I... read more »

Comments (3)  |  Post Comment  |  Ask Ben  |  Permalink

Showing 16 - 30 of 50   Pages: 1 2 3 4 < Prev | Next >

June 2009 Entries »

Recent Blog Comments
Nov 20, 2009 at 11:32 PM
Five Months Without Hungarian Notation And I'm Loving It
I've used headless camel case for years for not only ColdFusion variables, but also SQL tables and fields... pretty much everything involving code. I also subscribe to the "don't abbreviate and clea ... read »
Nov 20, 2009 at 11:00 PM
Five Months Without Hungarian Notation And I'm Loving It
@Marcel, Yeah, I always err on the side of longer but more readable variable names. As for the camel casing of CF methods and the headless camel casing of custom items, I get around this by always ... read »
Nov 20, 2009 at 10:56 PM
Five Months Without Hungarian Notation And I'm Loving It
I use the following and love it: my.namespace.MyComponents.functionMethodsOrUDF() CONSTANT_VALUES_OR_PROPERTIES One thing I always try is to CamelCaseBuiltInColdFusionFunctions() so others can tell ... read »
Nov 20, 2009 at 5:38 PM
Learning ColdFusion 8: CFImage Part I - Reading And Writing Images
Hi Ben, Great article. I've been looking around to see if ColdFusion image engine can programatically create the following "wrap around" effect: http://www.creativepro.com/article/photoshop-s-she ... read »
Nov 20, 2009 at 5:35 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Dave: I talked to Gert he suggested: <cfhttp method="get" url="http://{some cf website}" result="stuff" addtoken="yes" /> Note the addition of cfhttp attribute addtoken. That should persist y ... read »
Nov 20, 2009 at 5:23 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
@Todd, Ahh, gotcha, yeah that makes sense. ... read »
Nov 20, 2009 at 5:17 PM
Maintaining ColdFusion Sessions Across SMS Text Message Requests Without Cookies
Ben, sorry if I didn't make this clear. You can make it work like that if you want, just put <cfset session.foo = 1> (and <cfset application.foo = 1>) in your OnRequestStart() and it reve ... read »