Aaron Terry
Member since Oct 8, 2020
- Profile: /members/14227-aaron-terry.htm
- URL: http://www.AaronTerry.com
- Comments: 14
Recent Blog Comments By Aaron Terry
-
Adding jreExtract() To Pluck Captured Groups Using Regular Expressions In ColdFusion
Posted on Jun 20, 2022 at 10:58 AM
Man, I need to start using your library instead of doing all of my own maps, loops, etc whenever I need to do fancy regex things. I had the exact same need of splitting a url into parts a couple of month back — all the same parts that you have except I went above and beyond and also added po... read more »
-
Using jSoup To Extract Open Graph / Twitter Card Images In ColdFusion 2021
Posted on Feb 14, 2022 at 2:59 PM
Another Option to file away ... Libvips is the image processing library used by several image transformation projects -- including the imagor project I shared earlier. https://github.com/libvips/libvips It claims to prioritize speed/memory use https://github.com/libvips/libvips/wi... read more »
-
Using jSoup To Extract Open Graph / Twitter Card Images In ColdFusion 2021
Posted on Feb 14, 2022 at 2:38 PM
@Ben, Yeah, I'm with you. Here are a few snippets about the ImageMagick Pixel Cache .... their internal format. In short, a uniform way to handle the needs of all of the supported image formats and the ease of coding/debugging were prioritized over memory/disk/CPU usage concerns. h... read more »
-
Using jSoup To Extract Open Graph / Twitter Card Images In ColdFusion 2021
Posted on Feb 13, 2022 at 9:00 PM
@Ben, Yeah, would be overkill on a personal site where you are in full control of the images. At work the main thing was getting the ram usage of cfimage out of the JVM. Nothing like a 100KB PNG causing a 300MB ram spike due to cfimage's internal 8-bit TIFF (or whatever it uses internally)... read more »
-
Using jSoup To Extract Open Graph / Twitter Card Images In ColdFusion 2021
Posted on Feb 12, 2022 at 10:18 PM
Ben, For image sizing, we deployed a backend service running Thumbor. We moved away from cfimage for multiple reasons. We've been super happy with Thumbor's smart cropping which uses face and object detection to make intelligent cropping decisions. https://thumbor.readthedocs.io/en/lat... read more »
-
Download A GitHub Gist As JSON Using A Proxy End-Point In ColdFusion
Posted on Jan 24, 2022 at 10:15 PM
You're right on {32} .... No worries on moderation. if IP address is a factor, I switched locations (coworking office -> home) in-between comments.... read more »
-
Download A GitHub Gist As JSON Using A Proxy End-Point In ColdFusion
Posted on Jan 24, 2022 at 9:35 PM
@Ben, Anytime. Like I said that basic regex should be sufficient. You could make it tighter if you found the actual spec for GIST IDs. Having not put any thought into it before, I just assumed they were SHA1 -- like git commit IDs. But, GistID seem to be only 32 characters long instead of ... read more »
-
Download A GitHub Gist As JSON Using A Proxy End-Point In ColdFusion
Posted on Jan 24, 2022 at 9:04 PM
If I were you, I'd consider doing some validation to make sure that request.attributes.gistID matches the expected pattern and return an HTTP 403 otherwise. Even if it's just a simple regex to match an alphanumeric string like ^[A-Za-z0-9]+$ Should be enough to keep some bad actor from ... read more »
-
Using A Task CFThread To Run And Restart Daemon CFThreads Indefinitely In Lucee CFML 5.3.6.61
Posted on May 5, 2021 at 7:04 AM
@Ben, Did you leave this as an experiment or have you used this approach further? Looking at ways to keep a "persistent" consumer up and running to process Amazon SQS Messages.... read more »
-
ColdFusion Custom Tag Performance Differences Between CFModule And CFImport In Lucee CFML 5.3.7.47
Posted on Mar 17, 2021 at 11:11 PM
Ok, found your thread in dev.lucee and I see you've been down the ram path. https://dev.lucee.org/t/cfmodule-vs-cfimport-radically-different-performance/7999/48... read more »
-
ColdFusion Custom Tag Performance Differences Between CFModule And CFImport In Lucee CFML 5.3.7.47
Posted on Mar 17, 2021 at 6:18 PM
Ben, Random thought on this. Have you considered loading your custom tags into a ram disk onApplicationStart or something and then trying to use that as the path for your custom tags? Then lucee would be checking ram on every request instead of the disk. Might still be horrible, but though... read more »
-
Using SMTP Headers To Send Custom MetaData Through Postmark In Lucee CFML 5.3.6.61
Posted on Oct 11, 2020 at 10:17 AM
On sparkpost, it's the metadata struct within X-MSYS-API header. https://developers.sparkpost.com/api/smtp/#header-using-the-x-msys-api-custom-header Like Sendgrid's X-SMTP-API header .... you embed a JSON struct in that header that controls a slew of options and features, with custom ... read more »
-
Including Custom SMTP Headers For Debugging Using CFMailParam In Lucee CFML 5.3.6.61
Posted on Oct 8, 2020 at 6:33 AM
@Ben, No doubt, powerful stuff at your fingertips. We're on the tail end of an outbound email sending rearchitecture, so I've been neck deep in it for the past couple of months. Amazing how you can analyze it all. Happy building -- and maybe I'll see another blog post about your discoverie... read more »
-
Including Custom SMTP Headers For Debugging Using CFMailParam In Lucee CFML 5.3.6.61
Posted on Oct 8, 2020 at 6:06 AM
@Ben, @Ben, you can actually "Level Up" what you're doing here by taking advantage of the features that your email sending provider offers, Postmark for you. Looks like Postmark has a feature called Custom Metadata that you pass as SMTP headers -- exactly what you're doing here... read more »