Ben Nadel
Member since Dec 11, 2008
- Profile: /members/1-ben-nadel.htm
- URL: https://www.bennadel.com
- Twitter: @bennadel
- FaceBook: http://www.facebook.com/bennadel
- Comments: 15,234
Recent Blog Comments By Ben Nadel
-
Working Code Podcast - Episode 87: Note To Self
Posted on Aug 19, 2022 at 10:42 AM
@Danilo, Ok, I finally updated my cache-busting code. Now, when I reset the cache, it should include the tag-based list of posts as well. Thanks again for reminding me about this. ๐ช... read more »
-
Detecting Rendered Line Breaks In A Text Node In JavaScript
Posted on Aug 18, 2022 at 12:29 PM
Here's a fast-follow to demonstrate how I am intending to use this line-extraction technique in order to help write text to the <canvas> object: https://www.bennadel.com/blog/4311-rendering-wrapped-text-to-a-canvas-in-javascript.htm Essentially, with Canvas, there is no "wr... read more »
-
Detecting Rendered Line Breaks In A Text Node In JavaScript
Posted on Aug 18, 2022 at 9:46 AM
@Mario, I think I played around with the TreeWalker API a number of years ago because I was trying to access Comment nodes in the DOM and jQuery, at least at the time, didn't make it super easy to get at non-Element nodes. To be honest, I don't have my head wrapped around the full use-... read more »
-
Detecting Rendered Line Breaks In A Text Node In JavaScript
Posted on Aug 17, 2022 at 9:46 PM
@Hassam, Thanks! It would be great if there was something "more native" that would expose this information, though, so it could have better performance. I just assume that calculating the Range values over and over again for each character is relatively slow. But, for my pu... read more »
-
Updated Thoughts On Validating Data In My Service Layer In ColdFusion
Posted on Aug 15, 2022 at 7:15 PM
@Bilal, I used Joi for a bit a few years ago when I was on a team that was building Node.js services. It was an interesting approach. I don't love configuration-based approaches to validation; but, I think that mostly stems from me not having much hands-on experience. Sometimes, I just... read more »
-
Strangler: Building A Feature Flag System In ColdFusion
Posted on Aug 15, 2022 at 11:47 AM
As part of this POC, I had to think about data validation and normalization in a new way. I've tried to extract those concepts out into their own post: https://www.bennadel.com/blog/4308-updated-thoughts-on-validating-data-in-my-service-layer-in-coldfusion.htm I've already started using... read more »
-
Validating Complex, Nested, Dynamic Data Structures In ColdFusion
Posted on Aug 15, 2022 at 11:46 AM
@All, Regarding my previous comment, on making my Validation component responsible for validation and normalization and transformation , I have a post that goes into that concept more in-depth: https://www.bennadel.com/blog/4308-updated-thoughts-on-validating-data-in-my-servic... read more »
-
Updated Thoughts On Validating Data In My Service Layer In ColdFusion
Posted on Aug 15, 2022 at 11:42 AM
If you want to see a more real-world example of this "Validation component", check out the FeatureFlagValidation.cfc in my Stangler repository . It handles all the validation, transformation, and normalization for the aforementioned feature flag data before it gets persisted to ... read more »
-
Strangler: Building A Feature Flag System In ColdFusion
Posted on Aug 14, 2022 at 9:39 AM
@Rick, Oh man, not sure how I missed that when I was reviewing ๐ฑ I must have been distracted. I've uploaded the image and purged the CloudFlare cache. Thank you so much for the heads-up!... read more »
-
Validating Complex, Nested, Dynamic Data Structures In ColdFusion
Posted on Aug 13, 2022 at 10:24 AM
So, after fleshing-out the underlying demo, I ended up changing my approach slightly. I still have a "Validation" component; and, this component still makes sure nothing untoward gets through; but, the validation object now returns sanitized data . So, instead of just calling some... read more »
-
Working Code Podcast - Episode 87: Note To Self
Posted on Aug 10, 2022 at 4:34 PM
@Danilo, Uggg, I totally forgot that was an issue ๐ฐ I'll fix that this week! Thanks for the reminder. I got so used to a different way of clearing the cache, I forgot it didn't touch all the necessary cache entries.... read more »
-
Rendering A TemplateRef As A Child Of The Body Element In Angular 9.0.0-rc.5
Posted on Aug 10, 2022 at 11:17 AM
@Sasha, Great tip! Thank you.... read more »
-
Rendering A TemplateRef As A Child Of The Body Element In Angular 9.0.0-rc.5
Posted on Aug 10, 2022 at 11:15 AM
@Sasha, Glad you got it working! The templateRef stuff is really complex, but really powerful. I'm still trying to wrap my head around how it works. The "basic" stuff in Angular is so nice and simple; but, then it can get really complicated really fast when you need to very adv... read more »
-
Adding Strict-Transport-Security (HSTS) HTTP Header In ColdFusion 2021
Posted on Aug 10, 2022 at 11:11 AM
@Dave, My only concern was that I might not have an SSL certificate in my local environment. If I were running in something like a Docker'ized container, with nginx in front of ColdFusion, then it probably would have some sort of self-signed certificate. But, if I were running the local de... read more »
-
RequestTimeout Setting Affects CFThread Execution In Lucee CFML 5.3.6.61
Posted on Aug 10, 2022 at 11:07 AM
@BKBK, Yeah, long-running threads are an interesting beast. This is still something for which I am trying to find a good approach. It's that lack of control / clarity that makes it so challenging. And, then there always the looming threat of "Sudden Thread Death" or "Thread ... read more »
-
The Value Class java.time.LocalDateTime Cannot Be Converted To A Date In ColdFusion
Posted on Aug 7, 2022 at 9:36 AM
@Charles, Boom! ๐ฅ My brain is just getting going on this fine Sunday. Caffeine hasn't kicked in yet.... read more »
-
Rendering A TemplateRef As A Child Of The Body Element In Angular 9.0.0-rc.5
Posted on Aug 3, 2022 at 9:46 AM
@Marcel, I'm glad this post has helped. I'm a bit rusty on my Angular (been working on a lot of server-side code the last year or two); so, I had re-read this blog post in order to get my bearings ๐ I'm super excited to jump back into Angular and try the new "stand alone components&q... read more »
-
RequestTimeout Setting Affects CFThread Execution In Lucee CFML 5.3.6.61
Posted on Aug 3, 2022 at 9:39 AM
@BKBK, Honestly, I have no idea what the underlying mechanism is. I assume it's just a native part of the thread-pool in Java, which ColdFusion is built on top of. But, I only dip down in to the Java layer occasionally to take advantage of some existing library - I don't really know much a... read more »
-
Pretty-Printing JSON Using GSON In Lucee CFML 5.3.9.141
Posted on Jul 29, 2022 at 9:43 AM
@Murray, That actually sounds a lot like how the JSON.stringify() method works in JavaScript. It's signature is like this: JSON.stringify( value [, replacer [, space ]] ) ... where the second param is your callback, and the third param is for the pretty-printing functionality that I... read more »
-
Having Fun With The SpeechSynthesis API In Angular 11.0.5
Posted on Jul 27, 2022 at 9:51 AM
@Nana, Awesome! Glad you got it working. It's a really fun little API to play with.... read more »