Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 4 comments since May 9, 2023
-
Posted 73 comments since December 11, 2008
-
Posted 8 comments since March 3, 2009
-
Posted 27 comments since December 21, 2009
-
Posted 184 comments since October 23, 2012
-
Posted 4 comments since October 22, 2013
-
Posted 15 comments since January 15, 2014
-
Posted 1 comment since May 10, 2023
-
Posted 1 comment since May 19, 2023
-
Posted 1 comment since May 24, 2023
-
Posted 1 comment since May 30, 2023
Recent Comments
Ben Nadel replied to a post Firefox CSS Bug: Four-Sided Positioning With Buttons
Comment posted May 30, 2023
@Rodney, Oh very cool! 🙌 I tried applying that to the demo and it works perfectly. I just did some Googling and it doesn't look like there's much information on this property, so thanks for the tip.... read entire comment from Ben Nadel.
Rodney Enke replied to a post Firefox CSS Bug: Four-Sided Positioning With Buttons
Comment posted May 30, 2023
Adding the following style to your button will also fix the issue. min-width: -moz-available.... read entire comment from Rodney Enke.
Ben Nadel replied to a post Serving Secure Files With CFContent Tag's File Attribute In ColdFusion
Comment posted May 25, 2023
@Russ, Oh yeah, after the CFContent tag is executed the rest of the request is aborted, so anything you want to run must go before that tag. Sorry you ran into that problem, there's no really much to go on - no error or warning or anything like that. Glad you got it figured out!... read entire comment from Ben Nadel.
Russ replied to a post Serving Secure Files With CFContent Tag's File Attribute In ColdFusion
Comment posted May 24, 2023
Great post! I found out something interesting that I was pulling my hair out for quite some time on: I grabbed some source from another site that did a cfcontent... and cfheader name="Content-disposition". The file downloaded fine, but the filename was always the name of the ColdFusion source file, ... read entire comment from Russ.
Ben Nadel replied to a post Using CSS Flexbox To Create A Simple Bar Chart In ColdFusion
Comment posted May 22, 2023
@Chris, Yeah, I haven't done much with CFChart in forever. Though, to also be fair, I don't generate too many graphs. I think I forgot that CFChart existed (I'm not even sure if it is supported in Lucee, which is what I use at work). It might be worth another look (for me).... read entire comment from Ben Nadel.
Chris G. replied to a post Using CSS Flexbox To Create A Simple Bar Chart In ColdFusion
Comment posted May 19, 2023
This is pretty great actually...and useful. I really DO NOT love CFChart. It feels way to cumbersome for most of my (minimal) charting needs and rarely gives me what I want. Instead, I find myself stopping at "good enough" and calling it a day.... read entire comment from Chris G..
Ben Nadel replied to a post Looking For Database Performance Bottlenecks And Optimizations Using The Sys Schema In MySQL 5.7
Comment posted May 19, 2023
@Colin, That's a great question, I actually have no idea. Sadly, where I work, I was never granted access to our production performance schema, so I haven't really had much chance to make this stuff more second nature 😞... read entire comment from Ben Nadel.
Colin replied to a post Looking For Database Performance Bottlenecks And Optimizations Using The Sys Schema In MySQL 5.7
Comment posted May 19, 2023
How old is the data in tables like: sys.x$schema_table_statistics Is it since the last reboot? Is there anywhere outside of a reboot to clear these tables to get fresh/current data? Thanks!... read entire comment from Colin.
Christian Sedlmair replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 17, 2023
Hi Ben, it just seems like building will become increasingly complex and the app becomes increasingly robust Yes, in fact this exactly is the challenge. If it is true that DHH is the or one of the first which really is going in this direction, like seems a little bit from this words «Fullfilling a v... read entire comment from Christian Sedlmair.
Ben Nadel replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 17, 2023
@Chris, Yeah, I'm still struggling quite a bit with the progressive enhancement stuff. I can absolutely see a way to follow a progressive mindset with a relatively simple view (like a "normal" web site). But, it just seems like building will become increasingly complex and the app becomes increasing... read entire comment from Ben Nadel.
Christian Sedlmair replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 17, 2023
@Peter If you want to integrate Hotwired in a framework other than Rails and if you want to have a complete workflow along with a complete testing strategy: The frontend part should be easy, just follow hotwired. In the backend part you can read the READMEs of the gems turbo-rails and render_turbo_s... read entire comment from Christian Sedlmair.
Christian Sedlmair replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 17, 2023
Hi pleasant guys on that page :) Ben Thanks for your comment. Now I have released version 4 of render_turbo_stream and I hope that at least my gem code is easier to follow. 4 major releases in one month! Finding a consistent naming convention was not easy, but I think the groundwork is done now. And... read entire comment from Christian Sedlmair.
Ben Nadel replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 17, 2023
@Peter, That's actually a really fascinating idea! I agree that the Turbo Stream stuff is really cool. It took me a while to start to wrap my head around it, and to figure out how this kind of stuff dove-tails with the application control flow. But yeah, being able to re-render chunks of HTML is rea... read entire comment from Ben Nadel.
Peter replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 17, 2023
The wiz bang feature IMO of Hotwire is Turbo Streams. The idea of being able to re-render islands of content on the page and deliver fresh content to the client all from the same cfml template. No need to ship json to the client and have view specific code to unpack it and update UI elements. Using ... read entire comment from Peter.
Ben Nadel replied to a post Maintaining White Space Using jSoup And ColdFusion
Comment posted May 16, 2023
As a fast-follow, here's another post in which I'm using jSoup to parse and transform GitHub Gist data into a consumable data structure. This is where the .prettyPrint(false) comes into play: https://www.bennadel.com/blog/4464-parsing-github-gist-embeds-into-a-normalized-data-structure-using-jsoup-i... read entire comment from Ben Nadel.
Ben Nadel replied to a post Maintaining White Space Using jSoup And ColdFusion
Comment posted May 15, 2023
Here's a PR from the jSoup repository that examines the white-space expectation depending on the pretty-print setting. This is where I found out about this setting.... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion Custom Tags Can Use Dashed Attributes
Comment posted May 13, 2023
@James, Interesting. I wonder if that is something specific to some magic going on in a Custom Tag context. Because, I'm pretty sure I've used the CFParam tag for ages to param URL-scoped names that have dashes in them: <cfparam name="url.my-thing" /> ... kind of stuff. And, I don't remember having ... read entire comment from Ben Nadel.
James Moberg replied to a post ColdFusion Custom Tags Can Use Dashed Attributes
Comment posted May 12, 2023
Passing strings that fail isvalid("variablename") work when passed as parameters to CFTags using EOL versions of ACF, like CF2016... but using the bracket notation with CFPARAM throws an error. For better cross-platform support, the ternary operator works. This is what I've had to do in order to sup... read entire comment from James Moberg.
Ben Nadel replied to a post Using A Transient CSS Stylesheet To Remove Scrolling On Body While Modal Is Open
Comment posted May 11, 2023
@Mark, I actually have an older post that explores this exact concept (in the context of "reduced motion", but it has all the same technical details): https://www.bennadel.com/blog/4132-applying-multiple-animation-keyframes-to-support-prefers-reduced-motion-in-css.htm... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using A Transient CSS Stylesheet To Remove Scrolling On Body While Modal Is Open
Comment posted May 11, 2023
@Mark, Using the CSS transition property is great for when something is always visible in the DOM and you are just transitioning from one rendered value to another. It can be tricky when you are applying it to temporary DOM elements where the browser may not have time to render the "initial" state b... read entire comment from Ben Nadel.
Mark Urbanski replied to a post Using A Transient CSS Stylesheet To Remove Scrolling On Body While Modal Is Open
Comment posted May 10, 2023
Hi there! I just wanted to thank you for this code! It's been very helpful as I've been slightly redesigning my website offline. I have a question though...when the modal opens, I want it to have a fade-in in opacity transition effect: "transition: opacity 600ms ease-in-out;", but it's not working f... read entire comment from Mark Urbanski.
Ben Nadel replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 9, 2023
@Chris, It looks like you're really laying down a good foundation for solving problems in a Hotwire context. I'm only vaguely familiar with how Ruby / Rails work, so it's not super easy for me to follow your gem code; but, I think I get the gist of it. You're essentially removing a lot of the boiler... read entire comment from Ben Nadel.
Christian Sedlmair replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 9, 2023
Thank you, Ben, for this honest article. Some answers: Naming stimulus controllers: I wrote https://www.npmjs.com/package/vite-stimulus-initializer. The goal is to prevent spaghetti names from getting longer and longer, and it throws an exception if there are naming conflicts. Long spaghetti strings... read entire comment from Christian Sedlmair.
Ben Nadel replied to a post ColdFusion Custom Tags Can Use Dashed Attributes
Comment posted May 7, 2023
@Angel, They are pretty cool! Hotwire, especially, uses them a lot in all of the DOM-bindings. I was also just listening to a podcast yesterday about using Cypress for testing, and they suggest using data- attributes as a way to target DOM elements in your UI tests. So flexible!... read entire comment from Ben Nadel.
Angel Gonzalez replied to a post ColdFusion Custom Tags Can Use Dashed Attributes
Comment posted May 7, 2023
The data- attribute has been the saving grace of some of our newer json projects. To be able to send multiple values via one form control is priceless!... read entire comment from Angel Gonzalez.
Ben Nadel replied to a post ColdFusion Custom Tags Can Use Dashed Attributes
Comment posted May 7, 2023
One thing worth mentioning here is that if you're going to use the CFParam tag internally to the ColdFusion custom tag to define any defaults for attributes that contain dashes, the attributes still have to be valid variable names. Meaning, you cannot do this: <cfparam name="attributes.data-foo" typ... read entire comment from Ben Nadel.
Ben Nadel replied to a post On Starting A Side-Project: Hotwire vs. Angular
Comment posted May 7, 2023
The other relatively large drawback to using Hotwire is that it doesn't working with .cfm file extensions natively. Which means, any site that uses Hotwire will also have to use some sort of URL-rewriting that maps all .htm requests to .cfm requests. This isn't a huge deal; but, it does add another ... read entire comment from Ben Nadel.
Ben Nadel replied to a post ColdFusion Custom Tags Can Use Dashed Attributes
Comment posted May 7, 2023
As an aside, the foo: name-spacing also works with basically any other ColdFusion construct (components, functions). This is how a number of dependency-injection systems work to annotate the code. I played around with this a long time ago: https://www.bennadel.com/blog/1685-building-a-simple-coldfus... read entire comment from Ben Nadel.
Ben Nadel replied to a post Replacing jQuery (110kb) With Umbrella JS (8kb)
Comment posted May 7, 2023
@Will, When I was looking for a jQuery alternative, I did look at some of the other ones you mentioned. I don't remember all the details; but, I think it came down to a cross between developer ergonomics and how much it would take to make the transition. Umbrella JS felt like the sweet spot from tha... read entire comment from Ben Nadel.
Will Belden replied to a post Replacing jQuery (110kb) With Umbrella JS (8kb)
Comment posted May 7, 2023
I know this is an older post, but I saw Umbrella mentioned from your latest Hotwire post. Decided to look into it. Seemed awesome (smaller size, equivalent functionality, etc.) until I started Google "vs" results. Ending up coming across some other variations like Cash and Zepto. Found a speed compa... read entire comment from Will Belden.
Ben Nadel replied to a post Hosting Google Fonts Locally For GDPR Compliance
Comment posted May 6, 2023
@Gary, To be honest, I don't really understand how this all works! I agree though, it seems like something about it is "not right"; and, maybe in the long run, things will starts to find more balance? I don't know.... read entire comment from Ben Nadel.
Gary F replied to a post Hosting Google Fonts Locally For GDPR Compliance
Comment posted May 6, 2023
This doesn't make much sense for lots of reasons. The regional German court is not the EU court or even the ECHR, so how can it apply to the rest of the EU? The German court said Google Fonts isn't GDPR compliant because it collects IP addresses (without permission). On that basis, every CDN would b... read entire comment from Gary F.
Ben Nadel replied to a post Using COUNT(), COUNT(column), And COUNT(expression) Variations To Extract Row Metadata In MySQL 5.7.32
Comment posted May 5, 2023
Yesterday, I just used a CASE/END statement inside a COUNT() block. Just another way to leverage the ability to evaluate statements inside the aggregate functions. I had a SQL statement that had several LEFT OUTER JOIN clauses; and, I had to find some counts based on a combination of values. It was ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Hosting Google Fonts Locally For GDPR Compliance
Comment posted May 2, 2023
One of the other things that I've done recently for GDPR compliance is dropping Google Analytics for tracking. Pre-GA4, Google Analytics was not GDPR compliant. Google claims that GA4 is compliant; but, the co-founders of Termageddon are waiting to see how GA4 pans-out legally.... read entire comment from Ben Nadel.
Ben Nadel replied to a post DHH On The Freedom Of Server-Side Programming
Comment posted May 1, 2023
@Adam, You seem very wedded to the idea of moving away from CFML; so, maybe let's not cloud our conversation with a CFML flavor. What about Ruby on Rails. If DHH / Basecamp is going to create another product (I did hear them say they are going to start a new product soon) - do you think they should ... read entire comment from Ben Nadel.
Ben Nadel replied to a post DHH On The Freedom Of Server-Side Programming
Comment posted May 1, 2023
@Adam, I think you're assessment of DHH is a bit unfair. He doesn't get to choose what he wants because he's well known - he's been choosing what he wants for decades; and, he's well known because he's obtained success doing it. The way you are coloring it, it sounds like he's been doing PHP for yea... read entire comment from Ben Nadel.
Adam Cameron replied to a post DHH On The Freedom Of Server-Side Programming
Comment posted May 1, 2023
Yes. Well. DHH is speaking from a privileged position of being "famous" so he can indulge himself and do whatever he wants because ppl will pay him for being DHH, not because he likes Ruby. In reality, people don't necessarily have the option to just do whatever language they like, or stick with one... read entire comment from Adam Cameron.
Ben Nadel replied to a post I'm Beginning To Think That Much Of Programming Is Wildly Subjective
Comment posted May 1, 2023
I was recently listening to an old episode of Full Stack Radio, and Adam Wathan was interviewing DHH. In the episode, DHH talked about how the miracle of server-side programming allows us to choose technologies that we happen to love. It really spoke to me. Adam said I could repost a portion of it o... read entire comment from Ben Nadel.
Ben Nadel replied to a post Working Code Podcast - Episode 120: Freelancing With Nolan Erck
Comment posted April 26, 2023
@Andy, Thanks - glad you enjoyed it 💪... read entire comment from Ben Nadel.
Andy globe replied to a post Working Code Podcast - Episode 120: Freelancing With Nolan Erck
Comment posted April 26, 2023
Hello, the content is to the point, 👍 Thanks for sharing.... read entire comment from Andy globe.
Dave Quested replied to a post John Gall's Law On Building Complex Systems
Comment posted April 24, 2023
Too true!... read entire comment from Dave Quested.
Chris G. replied to a post John Gall's Law On Building Complex Systems
Comment posted April 24, 2023
Love this 💕... read entire comment from Chris G..
Ben Nadel replied to a post EventSource And Generating Server-Sent Events In ColdFusion / Lucee CFML
Comment posted April 20, 2023
@Jeff, Yeah, delivering to multiple users gets more complicated. And, I'll admit that I don't have a lot of experience. I believe that you really have to know ahead of time which users should receive the message. And then, figure out a way to deliver the message to each of those people At work, we a... read entire comment from Ben Nadel.
Jeff Smallwood replied to a post EventSource And Generating Server-Sent Events In ColdFusion / Lucee CFML
Comment posted April 20, 2023
Ben, helpful info. In using poll() method it is my understanding that actually removes the item from the head of the queue, which means in a multi-user/requestor system only one requestor would get the message. i.e. if 5 different people are connected to the event stream, only one of them will get t... read entire comment from Jeff Smallwood.
Ben Nadel replied to a post Selecting Portions Of A Turbo Stream Template With Custom Actions
Comment posted April 20, 2023
I've been thinking more about this, and doing some experimentation, and I'm thinking that maybe using querySelectorAll() is a problem. I'm thinking that maybe it should only select a single node, ala querySelector(). And, the reason for this is that having only a single selected node allows other op... read entire comment from Ben Nadel.
Ben Nadel replied to a post Associating Submit Buttons With Any Form Using Button Attributes In Native HTML
Comment posted April 18, 2023
@Adam, With HTML and CFML 😉 there's nothing we can't accomplish!... read entire comment from Ben Nadel.
Adam Cameron replied to a post Associating Submit Buttons With Any Form Using Button Attributes In Native HTML
Comment posted April 18, 2023
Ha! I did not know this!! Cheers for writing it up man.... read entire comment from Adam Cameron.
Ben Nadel replied to a post Creating Custom Turbo Stream Actions In Hotwire And Lucee CFML
Comment posted April 18, 2023
Here's a follow-up post that looks at some additional custom actions for Turbo Streams: https://www.bennadel.com/blog/4450-selecting-portions-of-a-turbo-stream-template-with-custom-actions.htm In this case, I'm re-creating the native actions, but allowing each <turbo-stream> element to have a [selec... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using Nested Stimulus Controllers With Hotwire And Lucee CFML
Comment posted April 15, 2023
Here's a related post on accessing a child controller from the parent controller: https://www.bennadel.com/blog/4449-accessing-stimulus-controllers-from-a-given-dom-element-in-hotwire.htm This uses Hotwire's ability to get a controller instance from the DOM (using the identifier that the bound the c... read entire comment from Ben Nadel.
Chris G. replied to a post Associating Submit Buttons With Any Form Using Button Attributes In Native HTML
Comment posted April 12, 2023
@Ben, Definitely! Huge fan of K.I.S.S (keep it simple stupid) or (keep it stupid simple)... read entire comment from Chris G..