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 the New York Javascript Meetup (Aug. 2010) with:

Gary F

Member since Dec 21, 2009

Recent Blog Comments By Gary F

  • Parsing, Traversing, And Mutating HTML With ColdFusion And jSoup

    Posted on Feb 1, 2013 at 8:17 AM

    Hi. I'm trying to use jsoup to sanitize user-submitted HTML. Regex just doesn't cut it. When I ask jsoup to add some extra attributes to its whitelist I get this error: "The addAttributes method was not found." The addTags method throws the same error if I give it a string rather than an... read more »

  • Parsing, Traversing, And Mutating HTML With ColdFusion And jSoup

    Posted on Feb 1, 2013 at 7:55 AM

    @John, just drop the jar file into the following dir on the server: c:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\lib\ The path varies on your own CF installation or if you went multi-instance or not. Then you can simply initiate it like this: <cfset jsoup = createObject("java&quo... read more »

  • The 5th Annual Regular Expression Day (And Prizes) - June 1st, 2012

    Posted on Jun 4, 2012 at 10:50 AM

    33? That's just not natural! Solving just over 1 per second. You needn't bother owning a computer with that kind of brain power inside your noggin. ;-)... read more »

  • The 5th Annual Regular Expression Day (And Prizes) - June 1st, 2012

    Posted on Jun 1, 2012 at 8:21 PM

    Wow, I was lousy at that! It would be nice if it showed which ones I got right at the end after it's insulted me with "you've got 1 right". ;-) Normally we work the other way around trying to create a regex to achieve a goal, so it was fun and proves what a great logical language regexes ... read more »

  • How Client-Side Validation Is Changing The Shape Of Server-Side Validation

    Posted on Dec 29, 2011 at 3:40 PM

    @Anna. I think Ben said that using this server-side + XHR approach to post & validate the form you're forcing the users to enable Javascript. Otherwise if it's disabled they can't post the form at all! Therefore invalid data won't end up in your database. What % of users turn off JS? And who ar... read more »

  • How Client-Side Validation Is Changing The Shape Of Server-Side Validation

    Posted on Dec 29, 2011 at 1:59 PM

    @Sangar, sorry I don't think I explained myself well. I know that HTML5 has some advanced client-side validation but you must also do server-side validation for security. For consistency it would be useful for the server-side validation to tell the browser what error message to display, especially i... read more »

  • How Client-Side Validation Is Changing The Shape Of Server-Side Validation

    Posted on Dec 29, 2011 at 1:01 PM

    @Sagar, HTML5 form validation should still be used in addition to server-side validation, so it won't reduce the work required by developers. Unless it's possible to tell the browser to trigger its built-in validation prompts through JavaScript when the XHR response from CF is returned. e.g. "T... read more »

  • How Client-Side Validation Is Changing The Shape Of Server-Side Validation

    Posted on Dec 29, 2011 at 12:07 PM

    I was so fed up having to code form validation twice, once in JavaScript for the client and again in CFML for the server that I too changed to doing it just once on the server via XHR. And you know what, submitting a form for validation via XHR doesn't appear any slower than doing it in JS on the c... read more »

  • Nylon Technology Presentation: Introduction To XPath And XmlSearch() In ColdFusion

    Posted on Aug 29, 2011 at 7:19 PM

    Ben, I just wanted to convey my gratitude for a fantastic XPath tutorial. You covered examples for just about everything and made it look easy. An old post but a timeless one.... read more »

  • A Big Hole In My Understanding Of ColdFusion Scheduled Tasks

    Posted on May 9, 2011 at 2:35 PM

    I've been a frequent user of scheduled tasks since the 3.x days and the way it works is fine with me. It's very logical once you have that (delayed) mini moment of revelation that Ben did! :-D It's actually quite flexible and I hope any change in future releases just adds to the functionality and d... read more »

  • Experimenting With java.math.BigInteger In ColdFusion

    Posted on Oct 23, 2010 at 7:26 PM

    What if you've got a massive hexidecimal number like a UUID (without any hyphens) and you want to shave 7 characters off it by converting it to base36? It would first have to be converted to decimal but the number is beyond CF's computational powers. e.g. Take d4938b0d155d011808b8d800d447d431 and c... read more »

  • Geocoding IP Addresses For Free Using IPInfoDB And ColdFusion

    Posted on Sep 30, 2010 at 4:27 PM

    IPInfoDB thinks I'm 200 miles away which is the other end of the country! I'm in England. What it located was my ISP's HQ. If I can ever find a geoIP db that works very well in the UK (I've been looking for ages) I'd love to offer visitors a localised home page when they visit one of my sites. For ... read more »

  • ColdFusion CFMailParam's New "Content" Attribute Is Awesome

    Posted on Aug 23, 2010 at 9:13 PM

    I just discovered this "new" content attribute of CF8.01. The Adobe Live Docs don't mention it unless you read the new CF9 docs, so thank you for this blog post. I was revisiting a CF7 app and needed to improve the effeciency of how the emails are generated. I've now changed it from reading in a fi... read more »

  • The ColdFusion Application Server Tagline Contest ($50 Amazon Gift Card)

    Posted on Jun 26, 2010 at 8:32 PM

    "It might be COLD in front, but not when my ass is on U". I say it as I see it. :-) Okay, more seriously... "ColdFusion is so comfy you can code in just your socks!" :-) Na, I prefer the previously suggested "Ride 'em codeboy". (Even though it's a girl in the photo)... read more »

  • GMail Seems To Ignore The Return-Path Header Defined By The CFMail FailTo Attribute

    Posted on Apr 13, 2010 at 8:38 PM

    I have a separate mailbox where I instruct Internet mail servers to send bounce messages to, thanks to FailTo. A scheduled task goes through this mailbox to take action on accounts in our database where the email address isn't working. We've had emails sent to our FailTo mailbox from gmail.com so I... read more »

  • NYC + Snow + ColdFusion + jQuery = Winter Wonderland

    Posted on Dec 21, 2009 at 5:43 AM

    We've got tons of powdery snow too in England. Tip: build the snowman as big as you can, then gently pour very cold water on it and leave for 2 mins to harden what you've built so far. Repeat. Ben, you bring comfort and joy to nerds everywhere! ;-) Have a good Christmas.... read more »