Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Dan Roberts

Member since Dec 11, 2008

Recent Blog Comments By Dan Roberts

  • Ask Ben: Enforcing An SSL (HTTPS) Connection Based On Request

    Posted on Aug 4, 2009 at 3:50 PM

    Mark, When you say some pages do you mean only encrypting the login for example, or maybe only pages with sensitive info? I'm no expert on the subject but here are my thoughts. Many people don't initially think about the fact that every request to a domain/app includes applicable cookies. One thing ... read more »

  • Ask Ben: Enforcing An SSL (HTTPS) Connection Based On Request

    Posted on Jul 28, 2009 at 5:16 PM

    For some reason I went the route of creating a custom error template in IIS for this failure, which redirects, by way of a CF page, to the https address. I seem to recall that if I used SSL I had to require it, but it has been a while since I set this up so I could be mistaken. Otherwise it would se... read more »

  • Ask Ben: How To Build A Home Gym

    Posted on Jul 28, 2008 at 9:44 AM

    Great advice Ben! I got onto the book "Starting Strength" a couple years ago and it really taught me the importance of the compounds lifts. The home gym you suggested is really all someone needs to get started, and is a great base to build off. With that said, there are some amazing exercise progr... read more »

  • Be Careful Using "#" In ColdFusion DE() Expressions

    Posted on Jun 24, 2008 at 2:09 PM

    #reReplace(strExt,"^(.)"," x\1")#... read more »

  • ColdFusion CFQueryParam Varchar-List Puts In Single Quotes For You

    Posted on Jun 17, 2008 at 10:03 AM

    I'm just going from memory on this so someone correct me if I'm wrong ... I believe that CF will convert a boolean value to 0 or 1 if the cfsqltype is set to "bit". This eliminates the need to do any condition statements to get the correct value to the database. It also allows for boolean expression... read more »

  • Dig Deep Fitness iPhone Fitness Application Beta

    Posted on Feb 29, 2008 at 4:20 PM

    I noticed that the styles are being included in each page. Is this necessary for the iPhone or something that could speed up performance if moved to its own file that could be cached?... read more »

  • Target ColdFusion Template Gets Compiled Even If Not Executed

    Posted on Oct 2, 2007 at 9:48 AM

    At CFUnited this year someone (New Atlanta, Microsoft?) showed how IIS8 can use any ISAPI application to handle IIS requests. I don't recall the exact details but I think one of the examples was for security of any file.... read more »

  • Using ColdFusion Structures To Remove Duplicate List Values

    Posted on Jul 27, 2007 at 2:43 PM

    I'm not actually advocating a loop through each piece of data, rather an REFind on an entire list string using the delimiter in regular expression to detect dupes. The benefit with a regular expression in this instance over an array loop is that you are only looping as many times as there are matche... read more »

  • Using ColdFusion Structures To Remove Duplicate List Values

    Posted on Jul 27, 2007 at 12:33 PM

    The regular expression idea interests me. I'm curious about the efficiency of checking for duplicates across a list in a single regular expression search. Not as efficient as structs for deduping but if you have to find dupes it may be faster than looping for every item in list. First you would nee... read more »

  • Mom! Ben Broke My CFInterface!

    Posted on Jul 9, 2007 at 5:16 PM

    Isn't the point that it implements at least the interface, but can also have more functionality... thus allowing it to implement multiple interfaces. Ex: Dog and BombSniffingAnimal. In your example it appeared that you didn't break the contract, justed added on functionality....?... read more »

  • ColdFusion Optimizing Case Study: Writing Orders To A CSV File

    Posted on May 4, 2007 at 11:19 AM

    "It would be interesting to know what the StringBuffer is actually doing underneath the covers." What I've read back when I first started using string buffer is that CF is creating a new variable for every cfset. That means if you are doing 10k concatenations CF is actually recreating a variable 10... read more »

  • ColdFusion Optimizing Case Study: Writing Orders To A CSV File

    Posted on May 4, 2007 at 9:14 AM

    The string buffer makes a huge difference. Years ago I optimized some ColdFusion code as much as possible in create a csv string and the time just grew relative with the number of records. Hundreds of records took an acceptable amount of time but something like 10k records would take a few minutes,... read more »

  • My First Experience With Model Glue

    Posted on Apr 3, 2007 at 4:04 PM

    I've heard such comments from people before for various conventions. It has really just come down to jumping into code out of the blue to do something quickly, without any documentation of the conventions or application architecture. Lack of documentation is often more the issue than the actual conv... read more »

  • I Know Ben Forta Is Not Starring In 300

    Posted on Mar 16, 2007 at 6:02 PM

    :-) couldn't resist... read more »

  • I Know Ben Forta Is Not Starring In 300

    Posted on Mar 16, 2007 at 4:51 PM

    understandable http://img471.imageshack.us/img471/5504/benfortain300nx1.jpg... read more »

  • Insane ColdFusion Query Of Queries Madness (PLEASE HELP!)

    Posted on Mar 7, 2007 at 4:57 PM

    woah. Didn't notice at first that you were dumping NotesTable the second time. That is crazy Is the NotesTable query variable being created in code or from a live query? Does this happen with other queries as well?... read more »

  • Did You Know That "000" Equals "00A" In ColdFusion?

    Posted on Mar 7, 2007 at 9:30 AM

    Thanks Gary. That gives me some idea of what's probably going on. Oddly though I can only get it to happen with EQ using 0 and 0A. Doesn't happen with 1 and 1A for example or 13 and 1P. GT and LT only compare like this if you include letters on both strings. Anyways, something to keep in mind.... read more »

  • Did You Know That "000" Equals "00A" In ColdFusion?

    Posted on Mar 6, 2007 at 7:06 PM

    The company I work for manages a database of federal and states legislators. For some odd reason my boss decide way back when that the district field should have leading zeros, which he says makes it easier to eyeball problems. For example a district 1 is 001, a district A is 00A and officials witho... read more »

  • Did You Know That "000" Equals "00A" In ColdFusion?

    Posted on Mar 6, 2007 at 6:49 PM

    I submitted a bug report to Adobe not much earlier today. Thanks for testing all of the equality functions/operators. I had to add some extra code to deal with this but will probably just switch it out with Compare() tomorrow.... read more »

  • ColdFusion Arguments Object Can Act As Ghetto Pass-By-Reference Array

    Posted on Feb 7, 2007 at 10:23 AM

    This reminds me of a problem I ran into a while back. I was trying to get some code working for grabbing info from some websites. I had to get cookies working properly and the documentation for cfhttp said cookies are returned in an array. I had random problems and I think it worked at one point but... read more »