Recent Activity
Recent Heroes of the BenNadel.com Community
-
Posted 4 comments since July 18, 2023
-
Posted 75 comments since December 11, 2008
-
Posted 45 comments since December 11, 2008
-
Posted 3 comments since November 11, 2013
-
Posted 11 comments since March 3, 2009
-
Posted 19 comments since January 15, 2014
-
Posted 7 comments since September 22, 2020
-
Posted 8 comments since March 4, 2022
-
Posted 6 comments since June 14, 2022
-
Posted 1 comment since September 1, 2023
-
Posted 1 comment since September 7, 2023
-
Posted 1 comment since September 11, 2023
-
Posted 1 comment since September 13, 2023
-
Posted 1 comment since September 18, 2023
-
Posted 1 comment since September 19, 2023
Recent Comments
Ben Nadel replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 24, 2023
@Dave, I don't personally (yet); but, take a look at this post from @James Moberg: https://dev.to/gamesover/filtering-zero-width-spaces-zwsps-using-coldfusion-122c I'm sure there are lots of good ideas I can steal from Jame's code 😜... read entire comment from Ben Nadel.
Dave Quested replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 24, 2023
Hi Ben Thanks for sharing, do you have a 'proper' trim function you've built to accommodate these extras that we can use instead of trim()? TIA Dave... read entire comment from Dave Quested.
Ben Nadel replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 20, 2023
@James, 100% on the smart-quotes. Whenever I get copy from the Marketing team that I have to add to the product, the first thing I have to do is go in and replace all the smart-quotes with regular ASCII characters. :shakes-fist:... read entire comment from Ben Nadel.
Ben Nadel replied to a post My ColdFusion "Controller" Layer Is Just A Bunch Of Switch Statements And CFIncludes
Comment posted September 19, 2023
@Aytekin, Thank you my friend!... read entire comment from Ben Nadel.
Aytekin Şahin replied to a post My ColdFusion "Controller" Layer Is Just A Bunch Of Switch Statements And CFIncludes
Comment posted September 19, 2023
Useful content, thank you! 👍... read entire comment from Aytekin Şahin.
James Moberg replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 19, 2023
I've seen characters added when data is copied from one Microsoft program to another. Excel often adds unwanted carriage returns. I've logged some hack attempts that use unsafe spaces in an attempt to bypass keyword blocklists. (ie, it looks the same but won't get blocked.) Even worse IMHO is Micros... read entire comment from James Moberg.
Ben Nadel replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 19, 2023
There must be some sort of keyboard command that people are accidentally hitting to enter stuff like this. I know that I accidentally put in all kinds of strange "accents" and "emoji" when I hit Alt/Ctrl when typing. I have to assume that the same kind of shortcuts exist for these strange spaces. Ot... read entire comment from Ben Nadel.
James Moberg replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 19, 2023
I ran into issues with NBSPs in Excel files. Clients use Excel to import data into their databases and may records weren't matching because trailing non-breaking spaces were in some of the cells and they weren't able to be trimmed using CFML or SQL functions. I use VSCode with this extension to high... read entire comment from James Moberg.
Ben Nadel replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 19, 2023
@Chris, I am lucky in so much as my IDE (SublimeText) has special notation for non-visible characters. I was processing email addresses; and, when one didn't work, I opened the underlying data-file and saw this at the end of one of the lines: <0x200b> Then, I looked up which character was 200b and t... read entire comment from Ben Nadel.
Chris G replied to a post Which Whitespace Characters Does trim() Remove In ColdFusion
Comment posted September 19, 2023
I would have been scratching my head forever if I had come across this issue 😜... read entire comment from Chris G.
Ben Nadel replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 18, 2023
@Mike, @Jacob, Thank you for the positive encouragement! I really hope that I'm able to take the love that I have for feature flags and communicate that in the book.... read entire comment from Ben Nadel.
Jacob Fifhause replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 18, 2023
I've followed your blog for a long time, love the working code podcast, and am stoked to read the book. Your thoughts on feature flags have opened my eyes to new possibilities already. I hope writing it is a great experience for you!... read entire comment from Jacob Fifhause.
Ben Nadel replied to a post Using Seekable Read Files In ColdFusion
Comment posted September 13, 2023
In the post above, I'm looking at using the fileRead() method in conjunction with seekable files. In a follow-up post, I look at using fileReadLine(): https://www.bennadel.com/blog/4515-using-filereadline-with-seekable-files-in-coldfusion.htm I'm noodling on ways to create a resumable large-text-fil... read entire comment from Ben Nadel.
Mike Peters replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 13, 2023
I'm looking forward to reading your thoughts Ben Mike... read entire comment from Mike Peters.
Ben Nadel replied to a post Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Comment posted September 12, 2023
Mark Takata - ColdFusion technical evangelist - has confirmed that this is a bug (2023 per-app datasources being broken). They are intending to have it fixed in the next updater.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Comment posted September 12, 2023
So, Dan G. Switzer had a great insight - he suggested that the GraphQL error that I'm seeing might be breaking the whole startup process. So, I tried installing the GraphQL package (even though I'm not using it) and suddenly the MySQL datasource is working 😳 I've add this note to the GitHub repo.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Comment posted September 12, 2023
I created a GitHub reproduction repo for the Adobe ColdFusion 2021 vs 2023 issue: https://github.com/bennadel/ColdFusion-Per-App-Datasource-Test... read entire comment from Ben Nadel.
Ben Nadel replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 11, 2023
@Andrew, Thanks for the link -- will take a look. I did read Adam's Refactoring UI book (which is a great book, by the way). I think this might be the same book, not sure. Anyway, Adam clearly knows what he's doing - I'll be sure to glean as much information as I can from him!... read entire comment from Ben Nadel.
Andrew Kretzer replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 11, 2023
Good luck! You may find this an interesting read: https://adamwathan.me/the-book-launch-that-let-me-quit-my-job/... read entire comment from Andrew Kretzer.
Ben Nadel replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 11, 2023
@Will, Yeah, I don't expect this to be a "money" thing. I'm not even entirely sure if I want to charge for it (though, much that contention is tied up in impostor syndrome). I figured I just need to start writing and then see how it ends up feeling. Right now, I'm still in the bulleted-lists / brain... read entire comment from Ben Nadel.
Will Belden replied to a post Coming Soon: Feature Flags - From Concept To Cultural Revolution
Comment posted September 11, 2023
I think it's great that you're writing a book. The wife wrote a couple, I co-wrote one with her. (Non-technical content.) It's very rewarding! Maybe not a path to riches, but I don't think that's always a goal!... read entire comment from Will Belden.
Bruce replied to a post Detecting Rendered Line Breaks In A Text Node In JavaScript
Comment posted September 11, 2023
Clever! 👍... read entire comment from Bruce.
Ben Nadel replied to a post Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Comment posted September 11, 2023
I'm continuing to have trouble figuring out how to get this working in ColdFusion 2023. I've been dropping some comments on the Adobe Blog: https://coldfusion.adobe.com/2022/03/the-struct-keys-in-this-datasources/ The last thing I've tried is using the most simple, hardcoded approach that I can use.... read entire comment from Ben Nadel.
Ben Nadel replied to a post Working Code Podcast - Episode 143: Moving On, Rewriting, And Replatforming
Comment posted September 11, 2023
@Peter, I feel the same way. CFML is really a joy to work with. Yes, I stumble over some things from time-to-time, but which programming language doesn't come with pit-falls. Overall, there's just so much to love about the language and the community. And, exactly to your point, I'm quite productive ... read entire comment from Ben Nadel.
Ben Nadel replied to a post Moving MySQL To A Per-Application Datasource In ColdFusion 2021
Comment posted September 10, 2023
I just tried to update my local development environment to use Adobe ColdFusion 2023 and my this.datasources is no longer working. No error, it simply says, "Datasource bennadel could not be found.". Nothing I seem to do is working. I also tried creating an instance of the CFAdmin API and accessing ... read entire comment from Ben Nadel.
Peter replied to a post Working Code Podcast - Episode 143: Moving On, Rewriting, And Replatforming
Comment posted September 10, 2023
Moving on from cfml? I find my self asking this question a lot and the fast answer is Why? I'm very productive in cfml. I have yet to hit a technical wall where the problem can not be solved in cfml. Further, a lot of the business problems I wish to solve are easier in cfml. The solution is baked in... read entire comment from Peter.
Brad Wood replied to a post Using Labeled Loops In JavaScript
Comment posted September 7, 2023
That's awesome news. I did a quick Google prior to posting and no docs from either Adobe nor Lucee came up. I've also heard Lucee present it, but not Adobe. Seems both of them need to beef up their docs!... read entire comment from Brad Wood.
Ben Nadel replied to a post The User Experience (UX) Of Disabled Form Buttons
Comment posted September 7, 2023
@Dustin, Great points - and sorry it took me so long to approve comment (it got lost in the mix).... read entire comment from Ben Nadel.
Dustin D replied to a post The User Experience (UX) Of Disabled Form Buttons
Comment posted September 7, 2023
Having just found this, I love the perspective you provide here. I hadn't heard of the robustness principle before, at least in the same vernacular. I have typically lumped that in with error tolerance. There are also a couple other UX problems that disabled buttons create that I thought should be i... read entire comment from Dustin D.
Ben Nadel replied to a post Using Labeled Loops In JavaScript
Comment posted September 6, 2023
@Brad, It seems to work in ACF 2021 as well.... read entire comment from Ben Nadel.
Brad Wood replied to a post Using Labeled Loops In JavaScript
Comment posted September 6, 2023
This is possible in CFML, but only in Lucee so far as I know. Rory covers it here: https://rorylaitila.gitbooks.io/lucee/content/control_flow.html#for-loop-with-label... read entire comment from Brad Wood.
Ben Nadel replied to a post Using Labeled Loops In ColdFusion
Comment posted September 6, 2023
@Emre, Ah, adding a check for both the search and target characters length in the outer-loop is clever. Yes, I believe this would get you want you wanted.... read entire comment from Ben Nadel.
Emre replied to a post Using Labeled Loops In ColdFusion
Comment posted September 6, 2023
I think my previous post didn't account for the last break in the outer while loop. Instead of using a break when it reaches the end, it needs a condition in the outer while, but below is the same code without the labeled out-of-sequence-breaking loops. function isFuzzyMatch(targetValue, searchValue... read entire comment from Emre.
Ben Nadel replied to a post Using Labeled Loops In ColdFusion
Comment posted September 6, 2023
@Emre, This is a great point-out. And, in fact, in my original code, I have the early return(true) to short-circuit the evaluation. I put the matchFound variable in there in order to explore the labeled-looping a bit more. That said, your second break will break the algorithm. Essentially, you stop ... read entire comment from Ben Nadel.
Emre replied to a post Using Labeled Loops In ColdFusion
Comment posted September 6, 2023
Great, but in the example you don't need any of this. On line 37 instead of setting matchFound = true, just return true. No reason to keep going any further. You don't even need the matchFound variable. Replace line 53 with a normal break, since breaking from inner loop will do same as continuing th... read entire comment from Emre.
Ben Nadel replied to a post Using Labeled Loops In ColdFusion
Comment posted September 3, 2023
@Angeli, To be fair, I think labeled-loops was only added in recent versions of ColdFusion -- the one article that I found on this references ACF 2021 as being the version in question. But, I can't find a "history" section on the docs page, like they used to have. Re: scraping, I remember waaaaay ba... read entire comment from Ben Nadel.
Angeli Wahlstedt replied to a post Using Labeled Loops In ColdFusion
Comment posted September 2, 2023
Very interesting. I've been coding in CF since late 1990's, and I had no idea the labels existed. One real-world example using them would be scraping documents for specific types of data. (Scraping is one of my specialties, and trust me, there's a lot of conditional logic going on in scraping.) But ... read entire comment from Angeli Wahlstedt.
Ben Nadel replied to a post Referencing String Characters Using Array-Notation In ColdFusion 2021
Comment posted September 2, 2023
UPDATE: I realized that my demo here is flawed and misleading. While you can reference characters via bracket notation, my for-in demo doesn't actually work. When you do this: for ( var c in "hello" ) The loop runs, but c=="hello" - it runs as a single iteration for the entire value - it does not it... read entire comment from Ben Nadel.
Ben Nadel replied to a post Using Seekable Read Files In ColdFusion
Comment posted September 2, 2023
@Chris, The .seek() just jumps to a specific location. It's the subsequent call to .read() that is pulling-out 3-bytes: dataSource.read( 3 ) And, it might be worth mentioning for completeness that calling .read() will also advance the internal pointer. Meaning, if you call .read(3) two times in a ro... read entire comment from Ben Nadel.
Chris G replied to a post Using Seekable Read Files In ColdFusion
Comment posted September 2, 2023
And it always puts 3 bytes of data from that starting point?... read entire comment from Chris G.
Ben Nadel replied to a post Firefox CSS Bug: Four-Sided Positioning With Buttons
Comment posted September 1, 2023
@Jonathan, Team work makes the dream work!... read entire comment from Ben Nadel.
Jonathan Schofield replied to a post Firefox CSS Bug: Four-Sided Positioning With Buttons
Comment posted September 1, 2023
Thanks for this write-up, Ben, which I found after discovering the same bug and then making this Pen. And thanks for the fix, Rodney.... read entire comment from Jonathan Schofield.
Ben Nadel replied to a post Using CFLoop To Iterate Over A File Line-By-Line In ColdFusion
Comment posted August 31, 2023
@Chris, I love that ColdFusion has lots of ways to do stuff; but, it does mean that it's hard to keep all the options in one's head.... read entire comment from Ben Nadel.
Chris G replied to a post Using CFLoop To Iterate Over A File Line-By-Line In ColdFusion
Comment posted August 31, 2023
I would have reached for one of the file operators too. My eyes are now open to the loop option 👀! Thanks 🙏... read entire comment from Chris G.
Ben Nadel replied to a post Working Code Podcast - Episode 141: Building Stuff So You Can Build Stuff
Comment posted August 23, 2023
@Will, I would believe it. I've heard some good interviews with Guy - very smart!... read entire comment from Ben Nadel.
Will Belden replied to a post Working Code Podcast - Episode 141: Building Stuff So You Can Build Stuff
Comment posted August 23, 2023
(from ChatGPT, and how I always heard it:) Guy Kawasaki is a well-known entrepreneur and author who has worked for companies like Apple and has been involved in various startups and ventures. He has emphasized the importance of "eating your own dog food" in his writings and talks.... read entire comment from Will Belden.
Adam Cameron replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted August 18, 2023
This is a bug. Log it. Type should be a string. And CF should never be bubbling a Java type back to CFML. Also if you check what the type actually is (writeDump(error.type.getClass().getName())), it's just java.lang.Class which will not be intentional. It's just sloppy dev from the CF Team.... read entire comment from Adam Cameron.
Ben Nadel replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted August 16, 2023
@Allen, Please report back when you've figured it out :D... read entire comment from Ben Nadel.
Allen Graetz replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted August 16, 2023
Great timing. I'm just poking into why some errors getting logged in a legacy application. It does assume that type will always exist and be a string. That may be part of the problem. Cheers.... read entire comment from Allen Graetz.
Ben Nadel replied to a post Error "Type" Isn't Always A String In Adobe ColdFusion
Comment posted August 14, 2023
Ha ha, I just ran into this again, but for basically the same reason. I accidentally used an integer at the array="" portion of cfloop.... read entire comment from Ben Nadel.