Skip to main content

Brian G

Member since Dec 11, 2008

Recent Blog Comments By Brian G

  • CFRedlock - My ColdFusion Implementation Of The Redlock Distributed Locking Algorithm From Redis

    Posted on Nov 11, 2015 at 2:52 AM

    Funny timing Ben, we just ported the redlock code to CF as part of a move to using Redis to store session data. Too bad we didn't know we were working on the same thing. :) Nice touch on offering a CF-based hack for infrastructure move.... read more »

  • Accepting PCI-Compliant Payments Without A Merchant Account Using Stripe And ColdFusion

    Posted on Feb 8, 2014 at 9:46 PM

    @Tom, funny timing. Just today Daryl on the cfpayment group said he will be giving the CF-wrapper-for-the-Java-library code a go in the next week or two. See here for details and to get in on it: groups.google.com/d/topic/cfpayment/0CyzBVGRgTc/discussion (link broken as site won't seem to let me... read more »

  • Accepting PCI-Compliant Payments Without A Merchant Account Using Stripe And ColdFusion

    Posted on Feb 6, 2013 at 3:55 PM

    Just wanted to drop a note that cfpayment ( http://cfpayment.riaforge.org ) will have full Stripe support soon as I'm implementing a version of Phil's code above. We will also have Dwolla support soon.... read more »

  • A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland

    Posted on Sep 20, 2012 at 6:56 PM

    @Ben - a thought for you. You are up on REST APIs so think of your Service Layer like a REST API. Does your API know where/how/why developers are making requests? Nope. There should be a similarly agnostic split between your Controllers (which are shuttling data to/from the user and the view) an... read more »

  • Cleaning High Ascii Values For Web Safeness In ColdFusion

    Posted on Apr 6, 2012 at 11:05 AM

    Eric, if you're still out there, would you consider this page authoritative for CF8+ on how to support i18n for CF? http://mysecretbase.com/ColdFusion_and_Unicode.cfm It seems to incorporate what you've outlined above except that the comments here are from 2008 so I don't know if/how things have... read more »

  • Redirecting Static Requests To Amazon S3 Using IIS Mod-Rewrite Or Apache Mod-Rewrite

    Posted on Apr 19, 2011 at 4:44 PM

    @Ben - it's a little better than the right track, it's production code for 2 years. ;) The trick to S3, if you don't step up to CloudFront, is that it's just a dumb content store. It won't do any of the things that we take for granted with Apache so you have to do it before you upload the files. ... read more »

  • Redirecting Static Requests To Amazon S3 Using IIS Mod-Rewrite Or Apache Mod-Rewrite

    Posted on Apr 18, 2011 at 10:20 PM

    @Ben - some thoughts for site "roots", here's something I pulled from my system: <cfset var cfg = getThemeService().getConfig() />   <!--- determine HTTP/HTTPS and current WEB_HOST ---> <cfif (isBoolean(cgi.server_port_secure) AND cgi.server_port_secure) OR (isBoolean(c... read more »

  • Short-Circuit Evaluation Is Fast

    Posted on Jun 29, 2009 at 10:46 AM

    Actually I may be wrong here - cookies get set early on in the request lifecycle even if they don't stick. I am pretty sure I need to use my own cookie rather than one of the built-ins. Like: structKeyExists(cookie, "NEEDCOOKIES") And set it AFTER that check, meaning your first request will get ... read more »

  • Short-Circuit Evaluation Is Fast

    Posted on Jun 28, 2009 at 9:37 PM

    I have something similar in mine but I use a different tack; I set the session timeout shortly for any agent without a cookie.jsessionid (using j2ee sessions). You might consider using that as your first IF check since a bot won't have a cookie.jsessionid (or a cfid/cftoken).... read more »

  • Ask Ben: Dynamically Executing ColdFusion Application.cfc Instances

    Posted on Oct 23, 2008 at 1:37 AM

    In the example where you extend a top-level Application.cfc with a sub-directory Application.cfc; can you modify parameters *other than name* and still share the application scope? E.g., could I have a subdirectory with session management disabled but still share the same Application scope as my to... read more »

  • Tracking Delta-Only Data Audits In ColdFusion Using XML

    Posted on Jun 28, 2008 at 12:00 PM

    In reading this and the last post, I don't see why you can't have both combined into one? Honestly, I think the more comfortable you become with databases, the more likely the trigger solution will feel like the "right" one for you. I generally try to keep to fairly generic SQL because it makes it... read more »

  • Regular Expression On-The-Fly Testing For ColdFusion, Java, And JavaScript

    Posted on Apr 9, 2008 at 8:08 PM

    I swear Ben... you keep coming up #2 in Google every damned time I search for something! I place bets with myself when I hit the enter key to see where you'll show up in the search results. I'm interested in how you're converting from ColdFusion to Javascript regexps and back - is there some easy ... read more »

  • ColdFusion Session Management Revisited... User vs. Spider III

    Posted on Mar 27, 2008 at 12:46 PM

    It's definitely not required for the referrer to be provided so you can't count on this. It will get dumped in a lot of cases. You could use it as a component of a check but I think the best solution (using a cookies check) to date was posted on a mailing list yesterday. I summarized it on my blo... read more »

  • ColdFusion Session Management Revisited... User vs. Spider III

    Posted on Mar 26, 2008 at 11:44 AM

    Ben, Came across the post via CFGURU; was wondering a couple of years later if this is still your preferred method for combating spiders? Brian PS - Whenever I search for something CF related, you seem to have a post come back in the first 3-5 results on Google. Either we are solving the exact... 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