Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 199 comments since October 23, 2012
-
Posted 5 comments since March 9, 2024
-
Posted 4 comments since November 1, 2021
-
Posted 3 comments since March 17, 2024
-
Posted 57 comments since December 11, 2008
-
Posted 4 comments since April 15, 2020
-
Posted 2 comments since December 11, 2008
-
Posted 4 comments since December 11, 2008
-
Posted 9 comments since December 11, 2008
-
Posted 4 comments since February 21, 2010
-
Posted 2 comments since May 30, 2023
-
Posted 1 comment since March 7, 2024
Recent Comments
Ben Nadel replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
Woot! 🎉 🎊 💥 💯 Thank you for confirming. I can't believe this has been broken since like last February (2023).... read entire comment from Ben Nadel.
Stuart replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
Got it 😊... read entire comment from Stuart.
Ben Nadel replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
@Stuart, Yeaahhhh, sorry about that. Over the weekend I realized that I actually broke comment emails for the last year 😱 😱 😱 Very embarrassing. But, I'm hoping that you get this email notification!... read entire comment from Ben Nadel.
Stuart replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 18, 2024
@Ben Thanks so much for the quick reply, and sorry it took so long for mine (not sure if I should have, but I didn't get an email saying you replied)! Yeah, this is the first time I've come across this buffer issue, and I had the same thought as to why this should work when the amount of data should... read entire comment from Stuart.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 18, 2024
TESTING: One more test for comment content update.... read entire comment from Ben Nadel.
Other Ben replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: I just added the One-Click unsubscribe SMTP header. Seeing if it shows up.... read entire comment from Other Ben.
Other Ben replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: Yes, I did not get previous notification. But, by leaving this comment, I will be automatically re-subscribed to the post.... read entire comment from Other Ben.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: Ok, Other Me got the notification. But, has now unsubscribed. They should not receive this notification.... read entire comment from Ben Nadel.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: One more test from Me to Other Me.... read entire comment from Ben Nadel.
Other Ben replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: As other me, I will also get new notifications (until I unsubscribe).... read entire comment from Other Ben.
Ben Nadel replied to a post I Broke The Comment Subscription System For The Last Year
Comment posted March 17, 2024
TESTING: As ME, I will automatically get all new notifications.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 17, 2024
My pleasure! The <template-root> thing is frustrating. And, it uses display:contents (to remove it from the document box model), which does have some issues. I'm not too familiar with the scope of the issues, but I believe they mostly relate to ARIA / accessibility stuff. If you look at CanIUse.com,... read entire comment from Ben Nadel.
Angelez replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 16, 2024
Hey, I also wanted thank you for writing this. I'm not a great "front ender", your template-root trick is awesome. I was using divs everywhere!... read entire comment from Angelez.
Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 16, 2024
@Angelez, Exactly - I don't love the flashing. But, I'm OK with the flashing if it means simpler code :)... read entire comment from Ben Nadel.
Angelez replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 15, 2024
I honestly like your solution more than mine. Yours is simple and when you're nuking the whole tree, who wouldn't expect to have some flashing?... read entire comment from Angelez.
Ben Nadel replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 15, 2024
On a CSP-related note, as a fun experiment, I tried to fork-lift the Angular.js 1.x parser and use it to create a custom evaluator in the Alpine.js CSP build: https://www.bennadel.com/blog/4612-using-the-angular-js-parser-to-comply-with-csp-in-alpine-js-3-13-5.htm It's just an experiment, and isn't ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 15, 2024
@Angelez, Yeah, I think that makes the most sense. At first, I tried to work around it by passing-down a valueProperty instead of a value; and then, trying to setup a $watch(valueProperty) callback that would populate the component-local value. The thought being that the $watch() would help propagat... read entire comment from Ben Nadel.
Angelez replied to a post Recursive JSON Explorer In Alpine.js 3.13.5
Comment posted March 15, 2024
I solved the root re-rendering (when changing some nested property) problem by basically destroying the tree and reconstructing it using the same logic in the template directive. For me, this was only an issue when part of the tree is deleted so I decided to reconstruct the whole tree from root when... read entire comment from Angelez.
Ben Nadel replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 13, 2024
@Steve, Yeah, CSP is a big question-mark for me at the moment. My blog has a strict CSP header; so, if I try to use Alpine.js, that's going to be a huge ergonomics limitation. As you're saying, I have Turbo, which is very CSP compatible because there are no expression in the DOM - just property labe... read entire comment from Ben Nadel.
Steve Bryant replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 13, 2024
@Ben, I definitely hear you about how verbose Stimulus.js is. We'll see if that bothers me over time. I have found that I have the controller create the "data-action" attribute itself if that is obvious from the nature of the controller, but the long attribute names can be a bit much. I'm hoping tha... read entire comment from Steve Bryant.
Ben Nadel replied to a post Creating A Template-Outlet Directive In Alpine.js 3.13.5
Comment posted March 12, 2024
This x-template-outlet was instrumental in being able to create my JSON Explorer in Alpine.js: https://www.bennadel.com/blog/4611-recursive-json-explorer-in-alpine-js-3-13-5.htm This is a great problem for exploring language functionality.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 12, 2024
Now that I've unblocked recursive template rendering, I was finally able to create a JSON Explorer in Alpine.js: https://www.bennadel.com/blog/4611-recursive-json-explorer-in-alpine-js-3-13-5.htm This is an exercise I like to do because it is small enough to be doable; but, complex enough to force m... read entire comment from Ben Nadel.
Ben Nadel replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 11, 2024
@Steve, Coming off of 13-years of Angular(js), where ColdFusion was just an API in 95% of use-cases, and Angular did all of the JSON -> DOM generation, it's really really hard (for me) to shift into a DOM-as-truth mindset. I keep wanting to make calls back into the JavaScript context to "change data... read entire comment from Ben Nadel.
Steve Bryant replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 11, 2024
I can't speak to Chris's experiences, but I've started using htmx recently myself and I really like it. It has the sort of intuitive use of ColdFusion. For my part, I typically have a URL to the parent page and then an "hx-" attribute pointing to a URL with just the part of the page I want - but tha... read entire comment from Steve Bryant.
Ben Nadel replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 11, 2024
@Angelez, Ah, I see - so you have a GUI tool that allows them to build complex filters. Very cool 🙌... read entire comment from Ben Nadel.
Ben Nadel replied to a post DateGetTime() To Get UTC Milliseconds From Date In ColdFusion
Comment posted March 11, 2024
@Scott, I don't want to shame anyone on the ColdFusion side, since we all know it's the best language ever invented 😉 but, this issue is almost certainly on the ColdFusion side 🙃... read entire comment from Ben Nadel.
Scott Stroz replied to a post DateGetTime() To Get UTC Milliseconds From Date In ColdFusion
Comment posted March 11, 2024
Thanks. I've done a few Java demos using a later version of the connector and don't recall any issues with dates but now I want to verify. If it is on the MySQL team, I can reach out to engineering and find out why this was done.... read entire comment from Scott Stroz.
Ben Nadel replied to a post DateGetTime() To Get UTC Milliseconds From Date In ColdFusion
Comment posted March 10, 2024
@Scott, I assume it's something that ColdFusion is doing something under the hood (in between what the Connector/J driver returns and what the Query object presents. In my local Dockerfile for development (ACF 2021), I've been swapping-in the mysql-connector-java-8.0.22.jar connector for the past fe... read entire comment from Ben Nadel.
Scott Stroz replied to a post DateGetTime() To Get UTC Milliseconds From Date In ColdFusion
Comment posted March 10, 2024
"In the recent ColdFusion 2021/2023 updates, MySQL query dates are no longer coming back from the database as timestamps" Are they not coming back from the DB as timestamps, or are they not coming back from the driver as timestamps, or is CF mucking with dates after it gets the data from the driver?... read entire comment from Scott Stroz.
Angelez replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 9, 2024
We want to allow the users to create custom filters for our service calls. For example (SQL): where divisions like '%301% and status != 'close' and ( pay_status = 'processing' or pay_status = 'paid' ) You could imagine the nesting as deep as the user would like. It's coming together... read entire comment from Angelez.
Ben Nadel replied to a post DateGetTime() To Get UTC Milliseconds From Date In ColdFusion
Comment posted March 9, 2024
@Chris, It's funny how much the Anchoring effect plays a role in our lives. In the abstract, I'm 100% in agreement with you. Readability rules everything! This is why I love JSON as a transport format, as opposed to some inscrutable binary format (like protobufs). But, with regard to anchoring, I th... read entire comment from Ben Nadel.
Chris G replied to a post DateGetTime() To Get UTC Milliseconds From Date In ColdFusion
Comment posted March 9, 2024
I so much prefer iso to epoch timestamps. Readability wins for me.... read entire comment from Chris G.
Ben Nadel replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 9, 2024
As a quick follow-up post, I did some thinking out loud of creating a User Defined Function (UDF) - dateGetTime() - to encapsulate this kind of breaking change: https://www.bennadel.com/blog/4609-dategettime-to-get-utc-milliseconds-from-date-in-coldfusion.htm This UDF extracts the UTC milliseconds f... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 9, 2024
@Tony, Yes, I think that would have worked as well. I was just picking something that would automagically cast it from String to Date. I didn't think too deeply beyond that.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 9, 2024
@Angelez, Very good timing then! Though, to be clear, I'm really just learning Alpine.js by playing around and doing these experiments. So, understand that my implementation may have issues :) That said, have fun with it! I'm curious what kind of recursive rendering do you need to do? It doesn't com... read entire comment from Ben Nadel.
Angelez replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 9, 2024
Amazing work sir! I'm starting to put together an internal tool for my company to create custom query filters. I can't believe you came up with did just a couple days before I google "recursive components in alpinejs". This would have been a lot of work! Thank you very much for sharing this!... read entire comment from Angelez.
Tony Monast replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 8, 2024
Hi Ben, I don't have the environment to test, but couldn't you just use ParseDateTime instead of dateAdd to make sure the variable is treated as a date?... read entire comment from Tony Monast.
Ben Nadel replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 8, 2024
@Chris, HTMX is definitely my next exploration. It seems that HTMX is often used alongside Alpine.js as well; so, this is all sounding very good. Maybe I'll start looking into it this weekend. Any hot tips for early pitfalls in learning HTMX?... read entire comment from Ben Nadel.
Chris Giminez replied to a post Various Ways To Get ColdFusion Data Into An Alpine.js Component
Comment posted March 8, 2024
I recently started using HTMX with coldfusion. It's so good. It's what I always wanted from cfdiv only better.... read entire comment from Chris Giminez.
Ben Nadel replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 8, 2024
Woot woot! Looking at the Set-Cookie HTTP header from my previous comment, I get: editToken_1890={ my long token value }; Max-Age=21600; Expires=Fri, 08-Mar-2024 07:35:35 GMT; Path=/; HttpOnly; SameSite=Lax Phew - set to expire 08-Mar-2024 - that's today 💪 On the server-side, w... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 8, 2024
@Chris, Yeah, it's a strange one. In my case, when you go to leave a comment on the blog, I set an "edit token" cookie so that you have 6-hours to come back-in and edit your comment. However, if you look at your cookies, you'll probably see that most of them are still there (from the past 5-months o... read entire comment from Ben Nadel.
Chris G replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 8, 2024
Whoa, this is a really important and difficult to find bug! Appreciate the heads-up. I haven't noticed any issues since my upgrade to 2021, but I will now be on the lookout 👀 Fortunately, there's a workaround 🙏 Great find!... read entire comment from Chris G.
Ben Nadel replied to a post ColdFusion 2021 MySQL Query No Longer Returning Dates As Dates
Comment posted March 8, 2024
In my proof-of-concept server above, I tried to set the JVM argument to turn off this behavior: -Dcoldfusion.jdbc.mysql.datetime.str=false But, it made no difference. I believe, in the latest ColdFusion update, this behavior is no longer controlled by a JVM argument and is now just the way things ar... read entire comment from Ben Nadel.
Andrew Penniman replied to a post preserveCaseForStructKey Doesn't Work Inside Application.cfc In Adobe ColdFusion 2021
Comment posted March 7, 2024
I just wanted to say thank you to you two, @Ben.Nadel and @Charlie.Arehart. I've been reading your blogs and notes for ages -- I started with CFv2 in the Allaire days. I still have, and occasionally wear, my blue cosmos shirt that I received from some CFUG convention in Austin way back when (may hav... read entire comment from Andrew Penniman.
Ben Nadel replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 5, 2024
@Stuart, I'm not familiar with the buffer over-run problem that you're speaking of. I know that you can configure (in the CF Admin) the maximum size of the request; which is maybe what you're talking about (but can't change on shared hosting). That said, I have on idea why putting things into a cfsa... read entire comment from Ben Nadel.
Stuart replied to a post Russian Doll Content Wrapping With CFSaveContent In ColdFusion
Comment posted March 5, 2024
Cool example! I've only recently started using cfsavecontent to address a problem with buffer over-run, so I'm wondering if there are any downsides I'm not seeing. I've got an application that has one page that can (in very limited circumstances) be very large and trigger the "Unable to add text to ... read entire comment from Stuart.
Ben Nadel replied to a post Working Code Podcast - Episode 165: Agile Methodology With Brian Sadler
Comment posted March 5, 2024
OK, I think I fixed the comment submission feature. I am currently writing this on my iPhone. And, it's not auto-submitting the form. I had to strip-out Hotwire on the Preview button (which was hidden from the UI) and manage the preview manually via fetch(). Thankfully, the Turbo API has a way to th... read entire comment from Ben Nadel.
Ben Nadel replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 3, 2024
@Figital, I haven't done much with recursive SQL - I think that's mostly a MS SQL Server technique; though, PostgreSQL probably has it too - people see to love Postgress for all the things; so, I just assume it can do this 😆 Recursion is fun and super helpful in the right places. But, not always th... read entire comment from Ben Nadel.
figital replied to a post Recursive Template Rendering In Alpine.js 3.13.5
Comment posted March 2, 2024
Thanks for posting your code here (I had seen the video elsewhere). I'm often fiddling with recursive trees using JSON and (especially) SQL. Have always wanted to experiment with a UI tool for importing / exporting such things. Everything in the universe seems to be a recursive list of recursive lis... read entire comment from figital.
Ben Nadel replied to a post Creating A Template-Outlet Directive In Alpine.js 3.13.5
Comment posted March 1, 2024
In the code in the post, I am using Alpine.addScopeToNode() to copy the data-stack from the <template> element over to the clone. And, that code assumes that the template has an x-data attribute. To simplify, I think I can just copy the internal expando property directly: clone._x_dataStack = Alpine... read entire comment from Ben Nadel.