Skip to main content

Charlie Arehart

Member since Dec 26, 2008

Recent Blog Comments By Charlie Arehart

  • Ask Ben: Reading In A File Using CFFile And CFInclude

    Posted on Feb 22, 2012 at 9:39 AM

    @GrumpyCFer, that may surprise you (what you "can't imagine"), but it really would not surprise me at all. The things people think and assume about CF (wrongly, to their peril), stuns me. This comes from sincere experience, not just casual observation. All I do, all day, every day, is he... read more »

  • Ask Ben: Reading In A File Using CFFile And CFInclude

    Posted on Feb 18, 2012 at 6:35 PM

    @GrumpyCFer, yep, though to your last point, about how using "trusted cache" might "affect your code", it really would never affect your code. Maybe you meant that it might "affect how one's code is executed", as it does indeed impact that. I realize that's a bit peda... read more »

  • ColdFusion CFQueryParam Binding vs. SQL Execution

    Posted on Jan 5, 2012 at 2:23 PM

    Hey Lisa, thanks for sharing. But I would warn people not to get too excited about using it. The chances that it would work are somewhat slim, I'd argue. The caching mechanism keys on the EXACT sql statement that was generated when it was cached (in whatever CFML page was running when the query was... read more »

  • Ask Ben: Reading In A File Using CFFile And CFInclude

    Posted on Nov 30, 2011 at 11:02 AM

    @grumpy (Dave?), I'd like to offer a couple of thoughts if it may help readers here. First, I would just point out that that behavior you're seeing (when "Cache Template In Request" is enabled) is really to be expected. Indeed, it's the very point of the new (in 9) option: to tell CF NO... read more »

  • Ask Ben: Reading In A File Using CFFile And CFInclude

    Posted on Apr 22, 2010 at 9:25 AM

    @Robert, while you can't use DELIMITER when CFLoop'ing over a file when using the new CF8 FILE attribute (you must use Index instead), you can in fact do what you want. In fact, it's what people did before CF8 added the FILE and index="line" attributes. Instead, you want to use CFFILE Action="read"... read more »

  • Mid-Page ColdFusion Session Expiration Behavior

    Posted on Mar 25, 2010 at 4:29 PM

    Hey Ben, this is indeed interesting. Another place it could come into play is if one lowers the sessiontimeout on a page, such as for a bot, where one may set it to something really low (if detected as a bot), to like 1 or even 0 seconds. The session could "timeout" before the page ended. That said... read more »

  • The New BenNadel.com - Same Content, Fresh New Look

    Posted on May 19, 2009 at 10:18 AM

    BTW, to those who don't use the Google toolbar, you may be missing out. It's far more than "just a search box" (which now most browsers offer). There are a lot of great features (having nothing to do with filling in forms). I've blogged about it a couple times, most recently at: http://www.carehar... read more »

  • The New BenNadel.com - Same Content, Fresh New Look

    Posted on May 19, 2009 at 10:15 AM

    Ah, that's it--it's the auto-fill feature of the Google toolbar that's turning yellow fields that it recognizes. It's interesting, because I don't use that feature myself but I saw it was enabled (in the toolbar options), and when I disabled it, the yellow went away. I see your later note saying "t... read more »

  • The New BenNadel.com - Same Content, Fresh New Look

    Posted on May 14, 2009 at 11:13 PM

    Hey Ben, nice redesign. Love the pictures. Great community feel, and yes, you are a big part. Congrats on both counts. One little niggle about the new design, an issue in FF 3 (only, it seems, from my testing), regarding the search box in the upper right.While it has a black text background (and wh... read more »

  • Ask Ben: Reading In A File Using CFFile And CFInclude

    Posted on Apr 5, 2009 at 4:43 PM

    @Vivek, since you mention wanting to run this ultimately on CF8, there's a solution there which is not available in CF 7: CFLOOP's new support for looping over a FILE either per line or per character. Where the CFFILE ACTION=read reads the whole file in, CFLOOP with the FILE attribute let's you p... read more »

  • ColdFusion Scope Existence During Various Request Types And Events

    Posted on Dec 26, 2008 at 10:41 AM

    Useful stuff as always, Ben. Since this may serve as a bit of a compendium for some, I would think a couple other rather common scenarios worth pointing out would be 1) a CFHTTP invocation of a CFC (or the equivalent in other languages calling into a CF page), and 2) an Ajax call to a CFC. In case ... 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