Ben Nadel
Member since Dec 11, 2008
- Profile: /members/1-ben-nadel.htm
- URL: https://www.bennadel.com/
- Comments: 16,034
Recent Blog Comments By Ben Nadel
-
Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Posted on Jun 3, 2025 at 3:39 PM
As a side-note, that seems like a cool Apache library!... read more »
-
Creating Java Classes From JAR Files In Adobe ColdFusion 2025
Posted on Jun 3, 2025 at 3:31 PM
@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 th... read more »
-
Dynamically Loading Java Classes From JAR Files Using CreateObject() In Lucee 5.3.2.77
Posted on Jun 3, 2025 at 11:18 AM
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 more »
-
Rendering QR Codes With Zxing And ColdFusion
Posted on Jun 3, 2025 at 9:38 AM
@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-... read more »
-
Rendering QR Codes With Zxing And ColdFusion
Posted on Jun 2, 2025 at 3:15 PM
@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 more »
-
Rendering 1-Dimensional Barcodes With Zxing And ColdFusion
Posted on Jun 2, 2025 at 11:58 AM
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 more »
-
Using CSS Utility Classes In CFDocument In ColdFusion
Posted on Jun 1, 2025 at 9:46 AM
@Tom, Very cool - I'll have to try it out locally in Docker. I do prefer to keep things as simple as possible, I'm still in my "microservices recovery PTSD" phase of life 🤣 If I can keep everything together, I'm happy. Re: padding and margin being a dark art, I actually just ra... read more »
-
Rendering 1-Dimensional Barcodes With Zxing And ColdFusion
Posted on Jun 1, 2025 at 9:42 AM
Also, for anyone that comes across this code, I realize now that I didn't need to do this full hoop-jumping in this line of code: fromJars( "com.google.zxing.BarcodeFormat" ) .valueOf( "CODE_39" ) I used the .valueOf() call because the JavaDocs seem to imply that th... read more »
-
Rendering 1-Dimensional Barcodes With Zxing And ColdFusion
Posted on Jun 1, 2025 at 9:38 AM
@Ray, I love how relatively easy this Zxing library is to use! Barcodes have always seemed like some very mysterious thing to me (especially QR codes). But, it's all just data to "bitmatrix" and then bitmatrix to "image" calls. I mean, don't get me wrong, I have no ide... read more »
-
Using CSS Utility Classes In CFDocument In ColdFusion
Posted on May 31, 2025 at 5:03 PM
@Ken, 100% When ColdFusion introduces the Image generation and the PDF generation, it was like, "dang, this stuff is unreal!" I've been playing around a lot with HTMX lately to try and return to more of that traditional (ie, "old school") approach to web development. We... read more »
-
Using CSS Utility Classes In CFDocument In ColdFusion
Posted on May 31, 2025 at 5:02 PM
@Tom, Wow, I've never heard of WeasyPrint before; but, it looks really robust. And it seems like it's had a ton of work and support put into it - seems they even have it available as Docker images and AWS Lambda functions. How are you running it on your end? What kind of set up do you have... read more »
-
Hypermedia Systems By Carson Gross
Posted on May 20, 2025 at 5:01 PM
@Chris, I took the concept and just tweaked it a little bit. I created a function called: <hOne> #withHeadTitle( "Details", user.name )# </hOne> (using "hOne" cause my spam filter is blocking the h1 for some reason). The first argument then gets echo... read more »
-
Hypermedia Systems By Carson Gross
Posted on May 19, 2025 at 7:01 PM
@Chris, I just came across a CFWheels plug-in that you wrote: https://github.com/geirman/cfwheels-titletag-plugin I really like this approach. This is something (setting a title) that I've never felt like I had a nice approach for. I've generally been doing something like: // Local... read more »
-
HTMX Extensions Have Access To An Extended API
Posted on May 16, 2025 at 9:36 AM
@Peter, That's a really interesting idea. I think it's the general premise behind the Datastar framework (which is inspired by the HTMX framework). I know very little about Datastar, but I think it's all driven by Server-Sent Events (SSE) and OOB swaps. If you squint hard enough, SSE is ... read more »
-
What Happens When You Mutate The DOM Outside Of HTMX
Posted on May 12, 2025 at 11:17 AM
@Mike, Very cool! 🙌 I'm glad someone else is finding this stuff interesting. HTMX feels like it has a lot of potential. Right now, I'm trying to wrap my head around modal window / fly-out kind of stuff. I think that will be the biggest hurdle both mentally and technically. But, for the mo... read more »
-
Exploring Extensions In HTMX
Posted on May 12, 2025 at 11:15 AM
So, it turns out that when the init() method is called, it's passed a reference to an API . At first, I thought this was just a convenience reference to the public api; but, this is not the case. The init() argument exposes a more extensive, qausi-private API for extension authors: ... read more »
-
Using Alpine.js In HTMX
Posted on May 10, 2025 at 11:17 AM
A quick follow-up to look at things from other perspective: mutating the DOM outside of the HTMX life-cycle; and then seeing if HTMX knows about it: https://www.bennadel.com/blog/4799-what-happens-when-you-mutate-the-dom-outside-of-htmx.htm tl;dr, htmx does not . You have to be careful... read more »
-
Sanity Check For Reassigning Method Arguments In ColdFusion
Posted on May 9, 2025 at 11:33 AM
I filed bug CF-4226518 in the Adobe Bug Tracker for the fact that you can't use the Elvis operator in a default argument assignment expression (without the intermediary method call).... read more »
-
Sanity Check For Reassigning Method Arguments In ColdFusion
Posted on May 9, 2025 at 11:19 AM
After posting this, I did one more sanity check with the Adobe ColdFusion code. While this argument signature throws an error : method( string value = ( this.value ?: "" ) ) ... this argument signature works : method( string value = echoValue( this.value ?: ""... read more »
-
Core String Functions Will Accept Null / Undefined Values In ColdFusion
Posted on May 7, 2025 at 12:11 PM
@Will, Yeah, the hash() one struck me as strange too on the Lucee side. I wonder if it's converting to an empty string; or maybe the string literal null . I'll see if I can sus-out which thing it's doing. re: side-project stuff, I'm the opposite - Lucee at work, ACF in personal life. ... read more »