Raymond Camden
Member since Dec 11, 2008
- Profile: /members/8674-raymond-camden.htm
- URL: https://www.raymondcamden.com
- Comments: 362
Recent Blog Comments By Raymond Camden
-
Formatting Dates In The Local Timezone With Alpine.js
Posted on Nov 26, 2024 at 2:53 PM
@Ben Nadel, I would argue that it isn't cryptic at all, maybe a bit complex in terms of all the options. It does NOT, however, support passing string masks. It does, however, support a huge number of formatting options. Yes, I'm defending my baby. ;)... read more »
-
Formatting Dates In The Local Timezone With Alpine.js
Posted on Nov 20, 2024 at 4:18 PM
One word of caution for this approach. I was on a trip to CA once, attending a conference, and looking at their schedule. The web page automatically changed the times to my tz, and since it was very close (2 hours difference), I didn't know, and , I assumed the times were in PST as it was a... read more »
-
Building A Moment-Inspired .fromNow() Date Formatting Method In ColdFusion
Posted on Nov 19, 2024 at 12:42 PM
Yeah, I shoulda been more clear. Both the relative and duration features of Intl are cool, but require you to specify values, and it can be tricky. For example, if my web site is doing a countdown till Christmas, I'd use a relative time unit of days, as that's common ("X days till Chris... read more »
-
Building A Moment-Inspired .fromNow() Date Formatting Method In ColdFusion
Posted on Nov 19, 2024 at 12:41 PM
@Ben Nadel,... read more »
-
Building A Moment-Inspired .fromNow() Date Formatting Method In ColdFusion
Posted on Nov 15, 2024 at 7:51 PM
Did you know this was baked into the web platform and you don't need a library? https://developer.mozilla.org/.../Intl/RelativeTimeFormat I've got a few CodePens that show this. I presented on Intl at the Mid-Michigan CFUG. Video will be live soon. That isn't quite the same as doing it... read more »
-
JavaScript Application Size Shouldn't Affect Performance
Posted on Aug 1, 2024 at 6:46 PM
I think there's one large issue with your thinking here. You used this as an example: "How could it? To put it in concrete terms, that's akin to saying that the very existence of an "Admin page" will negatively impact the rendering and interaction speed of a "Shopping c... read more »
-
Using Range Offsets To Power Weighted Distributions In ColdFusion
Posted on Jun 4, 2024 at 1:49 PM
Awesome :)... read more »
-
Using Range Offsets To Power Weighted Distributions In ColdFusion
Posted on Jun 3, 2024 at 7:13 PM
I swear I did something similar to this a LONG time ago in a little 'ad banner' open source thing I built... Harlan I think I called it. One interesting nit - how would you handle letting a person define their weights and NOT require them to equal 100? So I may want: A = 5 B = 3 ... read more »
-
Code Kata: Parsing Strings Like "5mb" Into A Number Of Bytes In Lucee CFML 5.3.7.47
Posted on Jan 25, 2021 at 2:29 PM
Would be kind of cool if formatBytes didn't require a unit. So if I pass X to it, it recognizes, oh this is greater than 1 meg but less than a gif, so show it as N megs. Oh, this is greater than a gig, so show it as N gigs. Basically, apply the best unit to it.... read more »
-
Proxying Amazon AWS S3 Pre-Signed-URL Uploads Using Netlify Functions
Posted on Sep 3, 2020 at 9:52 AM
I'm not sure it would work in this case, but don't forget that if you need to proxy URLs, you do not need to write a function on Netlify, you can do it with their redirects support: https://www.raymondcamden.com/2020/06/10/testing-netlifys-proxy-support-for-api-hiding... read more »
-
Using ColdFusion Tags In CFScript In Lucee CFML
Posted on Apr 9, 2020 at 4:50 PM
@Igor - a lot of things, they have a ton of open source contributions, they run a great conference, but most of all (for me) is the "box" command line, which lets you go into a directory, type "box server start", and it fires up a CF or Lucee server right from the directo... read more »
-
Using ColdFusion Tags In CFScript In Lucee CFML
Posted on Feb 10, 2020 at 9:40 AM
Lucee, and Ortus, have done more for ColdFusion in the past few years than I think Adobe has done in a decade.... read more »
-
Using Chalk 2.0's Tagged Template Literals For Nested And Complex Styling
Posted on Jul 6, 2017 at 9:01 AM
Interesting - ok thanks for sharing that.... read more »
-
Using Chalk 2.0's Tagged Template Literals For Nested And Complex Styling
Posted on Jul 5, 2017 at 10:53 AM
I guess what I'm saying is - what is this? "the tagged templates are just for a small set of use-cases where the color requirements are significantly complex" Like - I'm not saying you would never have a reason for this - I just want to hear one. ;)... read more »
-
Using Chalk 2.0's Tagged Template Literals For Nested And Complex Styling
Posted on Jul 5, 2017 at 10:40 AM
I have to ask (and to be clear, "practicality" is rarely something I care about), but what is the *real* use for something like this? Don't get me wrong - I can definitely seeing using different colors in output to help point out success/error/warnings, but this seems *incredibly* complex ... read more »
-
I Wish JavaScript Had A Way To Map And Filter Arrays In A Single Operation
Posted on Jun 6, 2017 at 8:30 AM
I didn't read (yet!), but is this what you want? http://2ality.com/2017/04/flatmap.html... read more »
-
Programming JavaScript Applications By Eric Elliott - Revisited
Posted on May 18, 2015 at 8:38 AM
Thanks for this review, I've added it to my queue. "Coming from a ColdFusion / J2E background, Node.js feels like a laughably brittle environment." Big plus one. The first time I discovered that a bug in a Node.js app could kill the whole thing I was really surprised. :)... read more »
-
Using ImgIX For On-Demand Image Processing At Web Scale In ColdFusion Applications
Posted on Nov 19, 2014 at 4:23 PM
Cool. Dina (and Ben, I apologize if this too far off topic, let me know) - in your pricing plans there is a price per render. If I'm doing a blur on an image, is that render charged every time or only once if the cached version is used?... read more »
-
Using ImgIX For On-Demand Image Processing At Web Scale In ColdFusion Applications
Posted on Nov 19, 2014 at 4:14 PM
Oh wow, so it's not even on their service anymore. Yeah, that is even *more* reassuring.... read more »
-
Using ImgIX For On-Demand Image Processing At Web Scale In ColdFusion Applications
Posted on Nov 19, 2014 at 4:06 PM
@Dina: Ah, that makes a lot of sense, and thank you for taking the time to explain it. Your service sounds pretty darn cool.... read more »