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,224
Recent Blog Comments By Ben Nadel
-
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 »
-
Pretty-Printing JSON Using GSON In Lucee CFML 5.3.9.141
Posted on Jul 27, 2022 at 9:49 AM
@Murray, Yeah, I tried looking at the GSON "builder" to see if I could define some sort of setting for numbers. They have some number strategy options, but it looks like they were for the deserialization aspects, not the serialization aspects. You can define some sort of cust... read more »
-
Pretty-Printing A ColdFusion Query Object In Lucee CFML 5.2.9.31
Posted on Jul 27, 2022 at 9:45 AM
@Adam, So cool!! I've heard of Fuseless, but haven't tried it out yet. I'm not really that experienced with Lambda to begin with. Will definitely check out your project. Glad to be able to have helped in some small way!... read more »
-
Understanding Struct Key-Casing Using SerializeJson() In Lucee 5.3.2.77
Posted on Jul 25, 2022 at 12:05 PM
@Frederic, Oh heck yeah! I've been a big fan of ordered-structs since I realized that Lucee (and ACF) have this syntax. For the most part, in a production app it doesn't really matter what order keys are in. But, when doing demos with screen shots or outputting JSON , seeing the keys in... read more »
-
Having Fun With The SpeechSynthesis API In Angular 11.0.5
Posted on Jul 25, 2022 at 12:03 PM
@Nana, Unfortunately, I don't have any experience with Ionic. But, my understanding is that the Ionic package is just a UI framework for the web; so, I don't think it would impose any additional constraints. As such, I think you can just use the Browser's native speech synthesis API (as I ... read more »
-
Validating Complex, Nested, Dynamic Data Structures In ColdFusion
Posted on Jul 25, 2022 at 11:59 AM
@Roberto, Do you have a sense of where in the application should be responsible for this kind of JSON validation? I've been struggling to wrap my head around a solution that feels right. I think for the JSON validation itself - ie, the data that is to be persisted - then that should be i... read more »
-
Validating Complex, Nested, Dynamic Data Structures In ColdFusion
Posted on Jul 20, 2022 at 9:52 AM
@Adam, You are 100% correct. The tests within a rule are and'ed but the rules are or'ed . Basically, I am just looping over the rules and finding the first one that matches all the tests and then returning it's variant (based on the rollout, which is either a single value or a weigh... read more »
-
Building-Up A Complex Objects Using Form POST-Backs In ColdFusion
Posted on Jul 7, 2022 at 12:26 PM
@All, As a fast-follow to this post, I wanted to rework the demo into a multi-step wizard . I realized that using JSON to post the pending form state back to the server with each submission actually unlocks some very interesting potential. Specifically, we can break our form up into par... read more »
-
Working Code Podcast - Episode 82: GitHub Charging For Copilot
Posted on Jul 6, 2022 at 2:49 PM
@Will, I've heard people say great things about Tabnine as well, though I haven't tried it myself. Do you have an idea where it gets its test data from? Wasn't sure if it was also using GitHub public repos or something.... read more »
-
Thought Experiment: Splitting A Single Data Table Up Into High-Writes And High-Reads For Better Performance In MySQL
Posted on Jul 6, 2022 at 12:19 PM
@Bryan, My big hesitation with Kafka is that, as a technology, it's not something you can lightly "sprinkle" into an existing application. From what I've seen, pulling in Kafka usually means that you are fundamentally changing the way the application is architected and wired toge... read more »
-
Building-Up A Complex Objects Using Form POST-Backs In ColdFusion
Posted on Jul 5, 2022 at 4:23 PM
@John, I'm just going to have to say that "Great minds think alike" ๐คช but, seriously, I think my code is probably little more than the "more modern" version of what Brian was doing. By that, I just mean that the syntax / build-in methods are lighter-weight and easier t... read more »