Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 279 comments since October 23, 2012
-
Posted 10 comments since December 11, 2008
-
Posted 7 comments since October 29, 2012
-
Posted 2 comments since June 3, 2025
-
Posted 21 comments since December 11, 2008
-
Posted 92 comments since December 11, 2008
-
Posted 65 comments since December 11, 2008
-
Posted 37 comments since December 11, 2008
-
Posted 6 comments since January 14, 2010
-
Posted 2 comments since September 7, 2011
-
Posted 5 comments since May 10, 2017
-
Posted 2 comments since February 7, 2020
-
Posted 29 comments since August 12, 2021
-
Posted 2 comments since August 31, 2024
-
Posted 1 comment since June 11, 2025
-
Posted 1 comment since June 12, 2025
-
Posted 1 comment since June 19, 2025
-
Posted 1 comment since July 2, 2025
Recent Comments
Ben Nadel replied to a post CF_SaveFile Custom Tag In ColdFusion
Comment posted July 2, 2025
@Gregory, Ha ha, great minds think alike I suppose 😉... read entire comment from Ben Nadel.
Gregory Alexander replied to a post CF_SaveFile Custom Tag In ColdFusion
Comment posted July 2, 2025
I was just looking to see if cfcontent added a file argument in one of the new CF versions and came across your post, thanks!... read entire comment from Gregory Alexander.
Ben Nadel replied to a post Closures Do Not Work In Adobe ColdFusion Custom Tags
Comment posted July 2, 2025
I filed bug CF-4227145 in the Adobe Tracker.... read entire comment from Ben Nadel.
Roberto Marzialetti replied to a post Using Google reCAPTCHA v3 In ColdFusion
Comment posted July 2, 2025
I think there is a mistake in the code, or it could be subject to misunderstanding: Here: cfhttpparam( type="formfield", name="secret", value=apiKey ); The ApiKey should not be sent, but the ApiSecret. HTH... read entire comment from Roberto Marzialetti.
Chris G replied to a post Using ColdFusion Custom Tags And Modules In CFWheels
Comment posted July 1, 2025
@Ben Nadel, For sure! Striking that balance between brevity and clarity is always a struggle. Personally, I tend to err on the side of clarity over brevity. But this is definitely a "choose your own adventure" sort of endeavor. My helpers really needs some organization and general clean-up. They've ... read entire comment from Chris G.
Ben Nadel replied to a post Using ColdFusion Custom Tags And Modules In CFWheels
Comment posted July 1, 2025
re: CFSaveContent, that's part of what I'm trying to get around. Ideally, there are some UI elements that I'd like to put in a custom tag instead of a helper function, because I think it just lends well to that form-factor. But, I'm still very much exploring.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using ColdFusion Custom Tags And Modules In CFWheels
Comment posted July 1, 2025
@Chris, Ha, yeah, I settled on helpers because it was kind of a thing in Wheels already - I thought it might reduce confusion 😜 but yeah, like I said I'm just making this up as a I go. I agree that something more explicitly "wheelsy" would be good, like injectWheelsFunctions(). I was trying to bala... read entire comment from Ben Nadel.
Chris G replied to a post Using ColdFusion Custom Tags And Modules In CFWheels
Comment posted July 1, 2025
Cleaver! And elegant. I've just been making ample use of CF's saveContentall over the place. Naming things is so hard. I'm wondering how you settled on helpers(). Since there's already a concept of "helpers" in CFWheels, this name confused me initially. I'm thinking more like like cfw_magic() lol Se... read entire comment from Chris G.
Ben Nadel replied to a post Creating Service Objects In The CFWheels ColdFusion Framework
Comment posted June 30, 2025
@Chris, Very similar approaches - just a matter of timing mostly. I certainly have built my fair-share of applications that boot-up all the CFCs in the onApplicationStart() event, so that feels very familiar. I know that CFWheels 2.5 -> 3.x is going to be pretty big; but this is my first real Wheels... read entire comment from Ben Nadel.
Chris G replied to a post Creating Service Objects In The CFWheels ColdFusion Framework
Comment posted June 30, 2025
@Ben Love this. Firstly, I find a service() function to be incredibly useful within CFWheels and it fits nicely with it's conventions. I implemented my service layer using this 13-year-old gist by rip747 a long time ago, which instantiates every service on start up. I like that yours only caches a s... read entire comment from Chris G.
Ben Nadel replied to a post Movie Ranking With Sortable.js And Kendall Tau Distance
Comment posted June 29, 2025
@Chris, Here's what I came up with: https://www.bennadel.com/blog/4819-creating-service-objects-in-the-cfwheels-coldfusion-framework.htm In the end, it was just a few lines of code, really. Hopefully this is on the right track.... read entire comment from Ben Nadel.
Chris G replied to a post Movie Ranking With Sortable.js And Kendall Tau Distance
Comment posted June 25, 2025
@Ben Nadel, With Peter Amiri at your disposal, you're set! Maybe you can even sway the add services()as a blessed part of the framework. I think it would be a great add..and much needed in my opinion. I imagine the reason it has not already been added is because (maybe) it's not part of the Ruby on ... read entire comment from Chris G.
Ben Nadel replied to a post Movie Ranking With Sortable.js And Kendall Tau Distance
Comment posted June 25, 2025
@Chris, I actually work for Peter Amiri right now :D re: Services, I was thinking about creating a global helper function called service() that would essentially look up a table-less model class, but prefix it with an implicit folder name. Basically, instead of doing: model( "services.Timezone" ) ..... read entire comment from Ben Nadel.
Chris G replied to a post Movie Ranking With Sortable.js And Kendall Tau Distance
Comment posted June 23, 2025
@Ben Nadel, You're super smart to want a service model. Back when I first started, I read some obscure article about how someone integrated services into CFWheels, I did it, and now I cannot even begin to remember how/what I did to make it happen. But I have a folder /services which contains several... read entire comment from Chris G.
Ben Nadel replied to a post Movie Ranking With Sortable.js And Kendall Tau Distance
Comment posted June 23, 2025
@Chris, How dare you! 😆 as far as Phoenix - it seems pretty solid. This is my first Boostrap project, though, at a new job, in a new business sector, with a new ColdFusion framework. I feel like I'm drinking from 8 fire hoses at once! 🔥 It would actually be great to pick your brain about Wheels at... read entire comment from Ben Nadel.
Ben Nadel replied to a post My Adobe ColdFusion 2025 Hackathon Entry
Comment posted June 23, 2025
@All, I'm excited to announce that I came in 2nd place in the ACF 2025 Hackathon - Mark Takata announced it on LinkedIn. Woot woot! Can't wait to see the other contestant code - will share a link here when I know what it is. @Jeff, All good - any 555 number in the US is "fake". It's what they use in... read entire comment from Ben Nadel.
Chris G replied to a post Movie Ranking With Sortable.js And Kendall Tau Distance
Comment posted June 22, 2025
For the record, never once have I wondered how romantically compatible we are 😜 I'm planning to check out Phoenix through. Would you recommend? I also think you could build the next big dating app from the idea of movie, food, book...Compatability. It couldn't be worse than all the sciency apps tha... read entire comment from Chris G.
Ben Nadel replied to a post Ask Ben: Destructuring Complex Queries Into ColdFusion Objects
Comment posted June 21, 2025
@Brendan, Ummmm, because I completely forgot that the group attribute works on the cfloop tag 🤪 Just did a little Google search and apparently I wrote about it back in 2012: https://www.bennadel.com/blog/2359-coldfusion-10-using-the-group-attribute-with-cfloop-to-group-query-rows.htm Ha! So, somewh... read entire comment from Ben Nadel.
Brendan Gallagher replied to a post Ask Ben: Destructuring Complex Queries Into ColdFusion Objects
Comment posted June 21, 2025
For the first sollution why not use a query <cfloop> with the same grouping applied? I took your first example and replaced the cfoutput in the grouping outputs with cfloops. I just had to drop the encodFor attribute and it worked while within outer cfoutput tags. (I'm using CF2023).... read entire comment from Brendan Gallagher.
Jeff Davis replied to a post My Adobe ColdFusion 2025 Hackathon Entry
Comment posted June 20, 2025
I'm trapped in a windoze machine world, but I want to try to get it going in docker... And I hope those are bogus phone numbers (though I messaged yours) cause you don't want every curious yahoo (like me) reaching out to you... (or maybe you do!) Anyway looking forward to wading through your code an... read entire comment from Jeff Davis.
Ray V replied to a post Struct Keys That Contain Dots "Just Work" In Adobe ColdFusion
Comment posted June 20, 2025
Hi Ben! I found that Lucee can do some serious acrobatics with struct keys. When wrestling with the OpenAPI spec I stumbled into using StructKeyTranslate() and SetVariable() to do some heavy lifting. I planned to write something on the Lucee Dev site based on the notes I'd made. Ever hear the joke a... read entire comment from Ray V.
Rolando R replied to a post Submitting Forms With CMD+Enter In Alpine.js
Comment posted June 19, 2025
Thanks. This was really helpful and covered all cases.... read entire comment from Rolando R.
Ben Nadel replied to a post Encoding "FFFFFFFF" Into An INT In Adobe ColdFusion
Comment posted June 18, 2025
@Chris, No problem! Glad that it was still in the logs (I'm on the BugSnag free tier, so not sure how long that data sticks around).... read entire comment from Ben Nadel.
Chris G replied to a post Encoding "FFFFFFFF" Into An INT In Adobe ColdFusion
Comment posted June 18, 2025
@Ben Ahhh...I thought it was weird that my comment was being blocked. I spent a little time trying to figure out which part was blocking, then gave up. I thought all was lost and abandoned the comment entirely. Was surprised to see it survived. Nice! Thanks for clearing up the mystery!... read entire comment from Chris G.
Ben Nadel replied to a post Rendering QR Codes With Zxing And ColdFusion
Comment posted June 18, 2025
@All, As a quick follow-up, I had written this code in Lucee CFML and it works as is. But, over the weekend, while working on my Adobe ColdFusion 2025 hackathon, I went to generate a QR code, and it broke. Turns out, ACF doesn't like stuffing FF____ into a Java signed int. As such, I had to use the ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using InputBaseN() To Encode HEX Colors Into An INT In ColdFusion
Comment posted June 18, 2025
@Danilo, That's a really interesting question. And, on point for something I was thinking about over the weekend. When I was working on my ACF 2025 hackathon project, one thing I did was generate a QR Code. And, I used the ColdFusion logo colors as the on/off colors of the QR Code. But, they are bot... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using InputBaseN() To Encode HEX Colors Into An INT In ColdFusion
Comment posted June 18, 2025
@All, As an update, this code actually breaks in Adobe ColdFusion (ACF). For reasons that I don't fully understand, Lucee CFML seems to be able to cast ffffffff to an int, but ACF cannot. At least not without using the "two's complement" approach. I've outlined that here: https://www.bennadel.com/bl... read entire comment from Ben Nadel.
Ben Nadel replied to a post Ask Ben: Destructuring Complex Queries Into ColdFusion Objects
Comment posted June 12, 2025
@Peter, Ha ha, it's all connected. The whole .normalizeQuery() concept (the bulk of this post) was directly inspired by the fact that CFWheels ORM can bring back nested objects from the database. I still haven't really dove into the SQL-generation level under the hood - but, I have to image Wheels i... read entire comment from Ben Nadel.
Peter Amiri replied to a post Ask Ben: Destructuring Complex Queries Into ColdFusion Objects
Comment posted June 12, 2025
I love how Ben gets more done getting ready for work than most of us get done in a full day.... read entire comment from Peter Amiri.
Ben Nadel replied to a post Light-Weight DumpModel() Function For CFWheels In ColdFusion
Comment posted June 12, 2025
@Will, Hundo-p, I almost never care about functions. Historically, it's never been a real issue for me since I've never worked with an ORM before, so all of my "things" have just been Structs / Queries. This is the first time I've had a data-access layer return CFCs. The fact that Lucee CFML shows t... read entire comment from Ben Nadel.
Will B. replied to a post Light-Weight DumpModel() Function For CFWheels In ColdFusion
Comment posted June 12, 2025
This is my standard dump keyboard macro. I am rarely looking at functions. <cfdump var='#somevar#' showUDFs=false/> <cfabort /> Usually I just dump using our model.getSimpleVariables(), a custom base function that exists at the core of our model inheritance. (We just have our base and baseModel inhe... read entire comment from Will B..
Ben Nadel replied to a post Image Paste Bug In Lucee CFML
Comment posted June 11, 2025
@Zac, Good catch on the duplicate() - that will be good to know going forward.... read entire comment from Ben Nadel.
Zachary Spitzer replied to a post Image Paste Bug In Lucee CFML
Comment posted June 11, 2025
Thanks for the repo Ben, seems to be possibly a Lucee 6 regression On trycf, Lucee 5.4 has the image extension 2.0.0.26 vs Lucee 6.2.1 having 2.0.0.29 Workaround, doing a duplicate after the paste seems to work https://luceeserver.atlassian.net/browse/LDEV-5640... read entire comment from Zachary Spitzer.
Ben Nadel replied to a post Ask Ben: Destructuring Complex Queries Into ColdFusion Objects
Comment posted June 11, 2025
@Robin, Always a pleasure - I appreciate letting me go down a rabbit hole on this one 😆 And, for the readers' benefit, I just wanted to mention that you had come up with a MSSQL Server STRING_AGG() solution on your end. Which, I think is the equivalent of GROUP_CONCAT() in the MySQL world.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Rendering QR Codes With Zxing And ColdFusion
Comment posted June 11, 2025
As an aside, at the end I had mentioned a BufferedImage bug in Lucee CFML - turns out, it's more of an imagePaste() bug. I isolated the case for Zac Spitzer: https://www.bennadel.com/blog/4811-image-paste-bug-in-lucee-cfml.htm... read entire comment from Ben Nadel.
Robin replied to a post Ask Ben: Destructuring Complex Queries Into ColdFusion Objects
Comment posted June 11, 2025
Thank you for your fast response tackling my request. As usual, you knocked it out of the park. I appreciate it!... read entire comment from Robin.
Ben Nadel replied to a post ColdFusion: Comparison Method Violates Its General Contract
Comment posted June 9, 2025
@Pete, Awww yeah! It takes a village :)... read entire comment from Ben Nadel.
Pete Freitag replied to a post ColdFusion: Comparison Method Violates Its General Contract
Comment posted June 9, 2025
Ben, I also want to thank you for posting, this - I ran into this issue today, due to not returning zero in my sort callback function. This is one of those error messages that makes sense in hind sight, but really puzzling at first.... read entire comment from Pete Freitag.
Brian replied to a post Dynamically Enabling / Disabling Session Management In Lucee CFML 5.3.8.201
Comment posted June 4, 2025
I know this isn't the best place for it, but just as a follow up in case anyone comes here from a web search with a similar issue. What I encountered appears to be a regression of some sort related to a previous bug that CF had regarding ORM stuff. It's not directly related to session management. Mo... read entire comment from Brian.
Chris G replied to a post Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Comment posted June 3, 2025
Nothing to add to the conversation...I'm just wishing I could react to existing comments with a thumbs-up, heart, etc. Sometimes, the comments are as interesting as the article :) I've always found the DX of loading java classes in CF to be confusing, and I (always) have to refer back to the documen... read entire comment from Chris G.
Ben Nadel replied to a post Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Comment posted June 3, 2025
As a side-note, that seems like a cool Apache library!... read entire comment from Ben Nadel.
Julian Halliwell replied to a post Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Comment posted June 3, 2025
@Ben, yes it's only likely to be an issue if you're loading a library that ACF or Lucee happens to be using already with a different version. In my case it was Apache Tika.... read entire comment from Julian Halliwell.
Ben Nadel replied to a post Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Comment posted June 3, 2025
@Julian, Oh interesting! I am very much not a Java developer; so it's almost certain that I'm missing some of the lower-level details. And, I literally just learned about the CFC-level class loading from Zac like last week 😂 (Lucee only). That said, I'm trying to think if I've run into that issue. ... read entire comment from Ben Nadel.
Julian Halliwell replied to a post Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Comment posted June 3, 2025
I'm no java expert but unfortunately I don't think this completely avoids the class conflict issue. It didn't with Lucee and I doubt it would be any different with ACF (although happy to be shown otherwise). My admittedly limited understanding is that even if there's a separate classloader this will... read entire comment from Julian Halliwell.
Ben Nadel replied to a post Dynamically Loading Java Classes From JAR Files Using CreateObject() In Lucee 5.3.2.77
Comment posted June 3, 2025
Just a quick update that Adobe ColdFusion 2025 now has this ability as well (to load Java classes from JAR files via createObject()): https://www.bennadel.com/blog/4809-creating-java-classes-from-jar-files-in-adobe-coldfusion-2025.htm... read entire comment from Ben Nadel.
Ben Nadel replied to a post Rendering QR Codes With Zxing And ColdFusion
Comment posted June 3, 2025
@James, Yeah, I also noticed the white lines in the SVG. I'm not sure why that is happening. The pixels are just being rendered as rect elements in the SVG. And I double-checked the output - it's not using random decimals or anything. I'm assuming it's just the scaling-up (the actual QR-code data is... read entire comment from Ben Nadel.
James Moberg replied to a post Rendering QR Codes With Zxing And ColdFusion
Comment posted June 2, 2025
I haven't noticed this before, but the SVG image looks like a lot of individual squares. I can see white outlines throughout the image. I don't think I've ever noticed that before with SVG QR codes that I generate using Zint (command line). For SVG, I target 600x600 output and then modify the SVG so... read entire comment from James Moberg.
Ben Nadel replied to a post Rendering QR Codes With Zxing And ColdFusion
Comment posted June 2, 2025
@Chris, It's cool stuff - I think there's a lot of complicated math that goes into it; and the error correction kind of blows my mind. My brain can't even begin to guess at how that works. Luckily, someone else already figured it out :D... read entire comment from Ben Nadel.
Chris G replied to a post Rendering QR Codes With Zxing And ColdFusion
Comment posted June 2, 2025
This was a fascinating read! I know so much more about QR codes than I ever did before, and now I know how to generate them if I need to? Bonus! I always wondered how they incorporated the logo into a QR code...Mystery solved! Great stuff 👏🙏... read entire comment from Chris G.
Ben Nadel replied to a post Rendering 1-Dimensional Barcodes With Zxing And ColdFusion
Comment posted June 2, 2025
A quick follow-up to render QR Codes with the Zxing library and ColdFusion: https://www.bennadel.com/blog/4808-rendering-qr-codes-with-zxing-and-coldfusion.htm... read entire comment from Ben Nadel.