Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at BFusion / BFLEX 2009 (Bloomington, Indiana) with: Simon Free

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 »

  • SQL Aggregates Support CASE Statements

    Posted on Mar 15, 2007 at 12:55 PM

    Just want to point out that per record functions can be quite taxing for large queries versus other solutions. I worked on a reporting site that originally ran from a log table in an Access database which was later moved to MSSQL. There was summing on t/f fields to come up with some counts and sinc... read more »

  • SQL COUNT( NULLIF( .. ) ) Is Totally Awesome

    Posted on Mar 15, 2007 at 10:03 AM

    I'm not sure if this fits in with this problem but an issue I quickly ran into when using Count(Distinct Column) was needing to count on multiple distinct fields. For anyone that is not aware, this can be done by using a subquery with groupings as a table . So you could do: Count(*) AS CountAll FRO... read more »

  • SQL COUNT( NULLIF( .. ) ) Is Totally Awesome

    Posted on Mar 15, 2007 at 9:49 AM

    That NullIf is really helpful. Someone else wrote about this recently about it being a good way to get true/false/bit fields out as always 1 or 0, by using NullIf to bring out nulls as 0. For your purposes though it would seem to be more efficient to do a Sum(did_date) and then Count(*) - Sum(did_d... 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 »