Skip to main content

Brad Roberts

Member since Dec 11, 2008

Recent Blog Comments By Brad Roberts

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

    Posted on Oct 12, 2010 at 10:09 PM

    Didn't think through it enough. The directories need to be specific to the request, application name, and a session identifier. Still might work. The wheels are turning.... read more »

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

    Posted on Oct 12, 2010 at 10:07 PM

    I really like the idea of scope specific files in ram. I wonder if a work around would be to use directories like: ram://request/ ram://session/ ram://application/ Then use onRequestEnd, onSessionEnd, onApplicationEnd, etc to recursively delete files in those directories. Think I'll go try it out... read more »

  • Geocoding IP Addresses For Free Using IPInfoDB And ColdFusion

    Posted on Sep 30, 2010 at 3:57 AM

    Good stuff! A few months ago we started geocoding visitors for our online church services to show where everyone is watching from. We're using onSessionEnd to remove the visitors marker when they leave. Pretty cool to see markers appear and disappear. We went with Maxmind's web API. Not free but ... read more »

  • A Problem With My Coding Methodology That's Driving Me Crazy

    Posted on Dec 4, 2009 at 12:37 PM

    @Ben Nadel, Sweet! I didn't know that. Just another reason to appreciate the guys at Adobe. They shape CF around how developers are using it, and make it easier/faster for us to do the day to day stuff. Very cool!... read more »

  • A Problem With My Coding Methodology That's Driving Me Crazy

    Posted on Dec 3, 2009 at 12:13 PM

    It looks like CF 9 allows you to declare var anywhere in the function. I still think it's a good coding practice (even in JS) to declare all of your local vars at the top. It just feels right, and it gives you a map of all the local variables. It would be cool to have a shorter syntax in CF like ... read more »

  • ColdFusion 8 CFloop Array Iteration / XML Bug?

    Posted on Oct 30, 2009 at 4:07 PM

    You may have written about it elsewhere, but it looks like this has been changed in CF9. The index now points to the XML node. Very cool!... read more »

  • Unexpected CF_SQL_BIT Behavior In ColdFusion ValueList() Function

    Posted on Aug 14, 2009 at 5:28 PM

    I hesitated checking for "true" in case this issue is ever fixed. Ended up checking for both 1 and true. Welcome back one liner. Don't know why I didn't think of that 2 years ago.... read more »

  • Unexpected CF_SQL_BIT Behavior In ColdFusion ValueList() Function

    Posted on Aug 14, 2009 at 5:22 PM

    Just opened some code I worked on a couple of years ago and found this comment: "Tried to use <cfif listFind(valueList(qResults.showDislaimer, ","), 1, ",")> but CF 8 outputs true,false instead of 1,0. Bug in CF?" I ended up looping over the query. Just wondering if you had a better alterna... read more »

  • Awesome ColdFusion Custom Tag Tip : CFExit Method / Loop

    Posted on Jan 30, 2008 at 1:15 PM

    Yeah. I'm clear on what it does. I use CFExist quite often to exit tags and templates. I just thought method="loop" is a little misleading. It's funny, I've been using CF for 7 years, and I've never used a custom tag to loop over something.... read more »

  • Awesome ColdFusion Custom Tag Tip : CFExit Method / Loop

    Posted on Jan 29, 2008 at 8:17 PM

    Correction... I should have said, I could wrap CFTRY tags around everything inside the loop.... read more »

  • Awesome ColdFusion Custom Tag Tip : CFExit Method / Loop

    Posted on Jan 29, 2008 at 8:07 PM

    Seems like it should be method="endTag", or something. I just ran into a situation where I'd like to be able to exit the current iteration without breaking the loop. Here's the idea: <cfloop from="1" to="20" index="i"> Process some stuff <cftry> Try something here that may cause an... read more »

  • Testing ColdFusion Custom Tag Processing Overhead

    Posted on Nov 29, 2007 at 12:55 PM

    That stinks. So you end up with a greater performance hit when the variable is valid. I thought it would be the opposite. In my applications, an invalid value is the exception, not the rule.... read more »

  • CFSilent vs. CFContent Reset = True

    Posted on Nov 28, 2007 at 2:19 PM

    Ben, I gotta hand it to you. Your blog is the missing manual for ColdFusion. It seems like every time I Google a Coldfusion tag, your site comes up, and it's usually the missing piece of information I'm looking for. This entry is a great example. Up until now, I've "hugged" my business logic wit... read more »

  • Final Thoughts On CFParam And Data Type Validation

    Posted on Nov 27, 2007 at 9:52 AM

    Thanks. I'm seriously considering a cf_param tag (as Ben talked about). If Adobe decides to add this feature in CF9, it would be easy to replace the custom tag. I'm just not sure of the performance hit.... hmmm... who cares... I'm doing it!... read more »

  • Final Thoughts On CFParam And Data Type Validation

    Posted on Nov 27, 2007 at 9:34 AM

    I think in most cases, it would make sense to use the default attribute's value if the type validation failed. Maybe the catch attribute should be a boolean that determines if the programmer wants the exception caught. Maybe a better name for this attribute would be something like failOnError. He... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel