Skip to main content

Ben Nadel

Member since Dec 11, 2008

Recent Blog Comments By Ben Nadel

  • Hello World In Svelte JS 4

    Posted on Feb 23, 2024 at 1:46 PM

    @Chris, There's definitely a lot to like in there. And this is Svelte 4. Apparently Svelte 5 is coming out early this year and will have a lot of big changes. I don't know too much about it, though. I'm sure I'll have more to say :)... read more »

  • Hello World In Svelte JS 4

    Posted on Feb 23, 2024 at 12:46 PM

    Hmmm, GitHub gists don't seem to want to color-code .svelte files properly. As such, I've renamed my filed to use .svelte.html extensions. GitHub seems to be happier with this.... read more »

  • Polyfill Form Field Grouping Using Bracket Notation In Adobe ColdFusion

    Posted on Feb 20, 2024 at 3:21 PM

    @Rodney, The sameFormFieldAsArray setting is good if you know that you're going to have more than one field with the same name. The problem comes about when you may have instances with only a single value. Imagine a list of checkboxes with the name sportID . If the user only checks o... read more »

  • Polyfill Form Field Grouping Using Bracket Notation In Adobe ColdFusion

    Posted on Feb 20, 2024 at 11:31 AM

    @Mike, For me, this is always the tension between leaning on server-side processing vs. client-side processing. When building a single-page app style form, this kind of stuff is significantly easier because you can just manufacture some large, arbitrary object tree and then submit it to th... read more »

  • Polyfill Form Field Grouping Using Bracket Notation In Adobe ColdFusion

    Posted on Feb 19, 2024 at 10:43 AM

    @Chris, I've always heard good things about CFWheels - it's based heavily on the Ruby on Rails mentality of building sites, I think. I haven't tried it myself.... read more »

  • Warning Users About The Windows Explorer Zip Archive Preview In JavaScript

    Posted on Feb 17, 2024 at 11:02 AM

    So, the \.zip[\\/] pattern is not working in all contexts. Some temporary URLs appear to use .zip. in the URL. As such, I've taken to softening the pattern matching to be \.zip\b . This will cover a wider range of URLs and is still unlikely to generate a false-positive match.... read more »

  • Casting Java Structs And Arrays To ColdFusion Structs And Arrays

    Posted on Feb 16, 2024 at 6:42 PM

    @Chris, So, a lot of the time you don't even have to know the difference. Usually, it only matters when: You want to mutate the underlying object. You want to call member-methods on the object. If you don't need to do that kind of stuff, ColdFusion will almost always shield you f... read more »

  • Managing Lists Of IDs Using HTML FORM Posts In Lucee CFML 5.3.7.47

    Posted on Feb 15, 2024 at 1:56 PM

    @All, Here is a follow-up post that polyfills the name[] form field grouping behavior for Adobe ColdFusion: https://www.bennadel.com/blog/4592-polyfill-form-field-grouping-using-bracket-notation-in-adobe-coldfusion.htm... read more »

  • Producing And Consuming Amazon SQS Messages In Lucee CFML 5.3.8.201

    Posted on Feb 14, 2024 at 10:50 AM

    @Oscar, So good to hear from you! It's been a long time :D Thank you for sharing the error and the solution. I am sure that will help people who google for this 💪 I was just thinking about you the other day. I was trying to update a Lucee Dockerfile , and the apt-get install is givin... read more »

  • Working Code Podcast - Episode 165: Agile Methodology With Brian Sadler

    Posted on Feb 14, 2024 at 10:44 AM

    @Charles, For me, it's the big wide-sweeping changes, like upgrading from ColdFusion 11 to Lucee 5, where I can see a huge value in testing. Specifically because everyone's fear is 100% right - you have to execute every corner of the app to find edge-cases. I remember when we switched from... read more »

  • Turning Off "InvalidTag" ScriptProtect Safely In ColdFusion 2021

    Posted on Feb 10, 2024 at 10:51 AM

    @Charlie, Great catch 😨 that was just a typo on my part. I have no idea what happened. I actually refer to "none" in the intro paragraph; but then use true later on. I just double-checked my actual CFML and I'm using "none" in my production code. Thank you for ... read more »

  • Working Code Podcast - Episode 165: Agile Methodology With Brian Sadler

    Posted on Feb 8, 2024 at 11:31 AM

    @Charles, I actually use FW/1 at work. It's a great, light-weight framework indeed. The one thing that I've always wished that it has was a subsystem-level global error handler. As far as I know, all errors have to be handled at the root Application.cfc level. What I'm building isn't so ... read more »

  • Working Code Podcast - Episode 165: Agile Methodology With Brian Sadler

    Posted on Feb 8, 2024 at 11:08 AM

    @Charles, Yeah, this submitting partial comments things is really frustrating because nothing appears to be actually "breaking". Meaning, I just plugged my phone into the computer and did some remote-debugging in Safari, and there's no errors being thrown. It seems like Hotwire... read more »

  • Lessons Learned From Sending 7 Million Emails In 5 Days Using ColdFusion

    Posted on Feb 1, 2024 at 12:25 PM

    As a follow-up post, I wanted to look at how I've improved my email validation cache logic to make sure that once an email address has been suppressed (ie, that a user unsubscribed from the Postmark broadcast stream) that their email isn't targeted again in the future: https://www.bennad... read more »

  • Comparing Binary Values In ColdFusion

    Posted on Jan 31, 2024 at 3:19 PM

    @Paul, Thank you so much for the kind words. I freakin' love this ColdFusion stuff 😎 And, it's just gravy that it actually helps other people.... read more »

  • Comparing Binary Values In ColdFusion

    Posted on Jan 31, 2024 at 1:29 PM

    A few years ago, I also looked at using the ByteBuffer class in Java to represent binary values: https://www.bennadel.com/blog/3156-experimenting-with-bytebuffer-in-coldfusion-for-binary-manipulation.htm The ByteBuffer class also as a way to compare two byte-buffers; which, in turn,... read more »

  • Generating Secure URL Signatures To Prevent Tampering In ColdFusion

    Posted on Jan 30, 2024 at 6:59 PM

    @Charles, Its only taken me 20 years to understand this fact! Ha ha, this is the story of the engineer 🤩 I'm right there with you - leaning and re-learning stuff every day.... read more »

  • Generating Secure URL Signatures To Prevent Tampering In ColdFusion

    Posted on Jan 29, 2024 at 7:56 PM

    @Charles, So, my knowledge about JWTs is not very deep. But, I do believe that they have something in the protocol to allow for encryption. But, that may have been something they added later on - so, to your point, most people avoid adding sensitive data in the payload. As far as adding ... read more »

  • Generating Secure URL Signatures To Prevent Tampering In ColdFusion

    Posted on Jan 26, 2024 at 6:13 PM

    As a quick follow-up, I was having a discussion with some people about "Unsubscribe" links at the footer of an email. And, it occurred to me that this is a great demonstrate of where a signed-URL can be very helpful. I put together a small fast-follow demo: https://www.bennadel... read more »

  • Converting Strings To Integers Using Hash, HashCode, And CRC-32 In ColdFusion

    Posted on Jan 26, 2024 at 11:21 AM

    Over on Twitter , James Moberg demonstrates that you can use the .hashCode() approach to get an even distribution if you approach the problem slightly differently. Whereas I'm basically doing this: abs( .hashCode() ) % 100 ... he checks to see where the value falls within the total... 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