CfBlogs
 Posts  Blogs  Active Blogs  Contact  RSS
 
Blogs Adobe/Lucee/Ortus Software Support

ColdFusion Posts Around the World

MessagePack Support for ColdFusion / CFML - A pure ColdFusion port of msgpack-lite for encoding and decoding MessagePack binary format. Compatible with ColdFusion 2016+ and Java 11+.
MessagePack Support for ColdFusion / CFML - A pure ColdFusion port of msgpack-lite for encoding and decoding MessagePack binary format. Compatible with ColdFusion 2016+ and Java 11+.
James Moberg
MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. It's supported by over 50 programming languages and environments, but not ColdFusion... until now....
ColdFusion CSV Processing Speed Test Results: October 2025
ColdFusion CSV Processing Speed Test Results: October 2025
James Moberg
DuckDB dominates with the lowest mean (362 ms) and high consistency (low std relative to scale). OctoSQL follows closely (542 ms mean), making these ideal for low-latency CSV processing. CSVRead_2025 and CSVProcess_2025 (~51166–299 ms) are moderately slow with decent consistency....
ColdFusion CSV Processing Speed Test
ColdFusion CSV Processing Speed Test
James Moberg
While in the process of developing "real world" unit tests to compare purist ColdFusion/CFML-only approaches against alternatives available using the command line (via CFExecute), I came across staggering performance issues that kinda suprised me....
CustomTag CFScript
CustomTag CFScript "Nuance" - Use thisTag.executionMode to ensure logic only runs once
James Moberg
When calling a ColdFusion custom tag using CFScript syntax (cf_customTagName()), it executes twice-once in start mode and once in end mode-unlike the single execution with tag-based syntax (<cf_customTagName>). This subtle behavior can cause unexpected results. To handle this, I use thisTag.ex...
Who's Who - Survey Status Update - It's crunch time... I'm finalizing my Adobe ColdFusion
Who's Who - Survey Status Update - It's crunch time... I'm finalizing my Adobe ColdFusion "first time" presentation and working on publishing this survey. I need help locating some people.
James Moberg
I've identified many developers through the archived articles and code samples that I've accrued over the last 28 years. I could use some assistance locating some developers from the past....
"Who's Who" Survey - Highlighting ColdFusion developers over the last 30 years
James Moberg
I've recently started re-reading the original Steven Levy's "Hackers: Heroes of the Computer Revolution" book from 1984 and I like how the author paid homage to the pioneers with a dedicated "Who's Who" section. In my opinion, the past & current CFML plat...
Convert Unicode to ASCII7 using AnyASCII Java Library - AnyAscii provides ASCII-only replacement strings for practically all Unicode characters.
Convert Unicode to ASCII7 using AnyASCII Java Library - AnyAscii provides ASCII-only replacement strings for practically all Unicode characters.
James Moberg
"Sanitizing inputs" is critical and it goes beyond checking for SQLi and XSS. For example, some filename naming conventions that work on one OS may not work on another. (Don't name your file "NUL.txt" on Windows or you won't be able to delete it.) As a pr...
ColdFusion Wrapper for Zint Barcode Generator - CFML source with 93 example barcode images in 3 formats
ColdFusion Wrapper for Zint Barcode Generator - CFML source with 93 example barcode images in 3 formats
James Moberg
Zint is able to generate 93 different barcode formats using the command line on multiple platforms. I haven't found any java library that is capable of supporting the same formats or outputting files as BMP, EPS, GIF, PCX, TIF, EMF, PNG or SVG....
ColdFusion Pseudolocalization for Generating
ColdFusion Pseudolocalization for Generating "Fake Translations" - This is beneficial when preparing your app for Iñtërnâtiônàlizætiøn (i18n) compliance.
James Moberg
About 10 years ago, I wrote a ColdFusion User Defined Function (UDF) named pseudolocalize for transforming a given string by replacing its Roman (Latin) characters with similar-looking characters that have simple diacritical marks (accents, tildes, etc.)....
ColdFusion Gemini Vibes Gone Wrong - ... or maybe I'm just not doing it right.
ColdFusion Gemini Vibes Gone Wrong - ... or maybe I'm just not doing it right.
James Moberg
I like creating custom tag wrappers for command line executable that match built-in ColdFusion functions and utilize the same parameters. I do my best to match the same output when it matters. I thought that this would be a simple task to test AI LLM sinc...
Moving to MyCFML.com
Moving to MyCFML.com
James Moberg
Blogging on the dev.to platform was a nice change from Tumblr. I really liked that I could embed my Github and
nameFaker - A CFML-based Function to Generate Fake Identity Data - Inspired by DataFaker, Faker.js and cbMockData. CF2016+
nameFaker - A CFML-based Function to Generate Fake Identity Data - Inspired by DataFaker, Faker.js and cbMockData. CF2016+
James Moberg
A project I'm working on needs to be able to generate lots of fictitious/fake identities for testing purposes. I wanted a mock library that works with CF2016+, not have any dependencies (java JAR, EXE, API, etc) and offers both granularity & customization when it comes to results and name l...
Using ColdFusion and Xpdf to extract PDF metadata
Using ColdFusion and Xpdf to extract PDF metadata
James Moberg
Xpdf is an open source projects that includes a PDF viewer, but it also includes a collection of command line tools for Linux, Windows and Mac that can perform some helpful functions: xpdf: PDF vie...
Using ColdFusion and Xpdf to extract PDF metadata - Xpdf's Pdfinfo.exe outputs the contents of the 'Info' dictionary (plus some other useful information) from a Portable Document Format (PDF) file.
Using ColdFusion and Xpdf to extract PDF metadata - Xpdf's Pdfinfo.exe outputs the contents of the 'Info' dictionary (plus some other useful information) from a Portable Document Format (PDF) file.
James Moberg
A quick dive into the powerful combination of ColdFusion and Xpdf for extracting PDF metadata. Xpdf, an open-source project, provides a robust set of command-line tools, including pdfinfo.exe, which excels at metadata extraction....
IsIPv6 - What does this built-in function do for your application?
IsIPv6 - What does this built-in function do for your application?
James Moberg
isIPv6 has been around since 2009. Are you using it? Is it beneficial? Does it perform a connection to a host? Does it test an IP string for validity? Are the results consistent in Adobe ColdFusion, Lucee and BoxLang?...
Support Unlimited Forwarded Email Messages via API (and ColdFusion)
Support Unlimited Forwarded Email Messages via API (and ColdFusion)
James Moberg
We have clients that use dedicated email addresses to receive and process messages and attachments. I had previously developed some functions to bulk download EML files directly from a mail server's file system (using Fast...
Support Unlimited Forwarded Email Messages via API (and ColdFusion) - Forward Email Webhook and Taffy API
Support Unlimited Forwarded Email Messages via API (and ColdFusion) - Forward Email Webhook and Taffy API
James Moberg
In tackling the challenge of processing email attachments from dedicated email addresses, we initially built a system to process EML using javax.mail. We sought out a more efficient approach and are exploring Forward Email's service, which offers unlimited domains and webhook-supported email fo...
CF_Timer Revisited
CF_Timer Revisited
James Moberg
I posted an update to my ColdFusion CF_Timer custom tag on my new myCFML blog with the same title. It has an allowedIPs option so that it can be safely integrated without displayed data to us...
CF_Timer Revisited - Timer functionality without enabling CF Debugging
CF_Timer Revisited - Timer functionality without enabling CF Debugging
James Moberg
The CF_Timer custom ColdFusion tag measures the execution time of the code block it encloses. Upon encountering the CF_Timer start tag, it records a timestamp with nanosecond or millisecond precision. When the corresponding end tag is reached, it calculates the elapsed time. This duration can then b...
Ryan & Ben Show Guest Appearance & myCFML
Ryan & Ben Show Guest Appearance & myCFML
James Moberg
I was recently invited to be a guest on the "Ben & Ryan Show" podcast to share some custom ColdFusion UDFs. The episode just aired on Tuesday, 2025-04-22. This served as motivation...
Ben & Ryan Show Guest Appearance - ColdFusion Custom UDFs - I get to share and explain some of my custom UDFs on a podcast with Ben & Ryan.
Ben & Ryan Show Guest Appearance - ColdFusion Custom UDFs - I get to share and explain some of my custom UDFs on a podcast with Ben & Ryan.
James Moberg
I was invited to be a guest on the Ben & Ryan Show (hosted by xByte Solutions and Ben Nadel) to share some custom ColdFusion user-defined functions (UDFs). UDFs are custom code blocks that you can create to perform specific tasks in your web applications,...
createShadowHtml UDF - Allows embedding of a full HTML document in a webpage; (ie, inline email/PDF preview)
createShadowHtml UDF - Allows embedding of a full HTML document in a webpage; (ie, inline email/PDF preview)
James Moberg
The createShadowHtml CFML user-defined function (UDF) generates HTML and inline JavaScript to create a dynamic, client-side preview of a given HTML document within a shadow DOM. It optionally disables links within the preview and uses a placeholder text before the HTML is loaded. This allows for iso...
streamFindnocase UDF - Searches the output buffer to determine if a string exists; Used for lazy dependency injection
streamFindnocase UDF - Searches the output buffer to determine if a string exists; Used for lazy dependency injection
James Moberg
The streamFindNoCase user-defined function (UDF) searches the currently accumulated output buffer for the presence of a given string, performing a case-insensitive comparison. It utilizes different methods for accessing and searching the output buffer dep...
generateEmailHashCode UDF - Useful for identifying and blocking comment form abuse; SQL queries using INTs are faster
generateEmailHashCode UDF - Useful for identifying and blocking comment form abuse; SQL queries using INTs are faster
James Moberg
The generateEmailHashCode user-defined function (UDF) processes an email address by extracting the domain, sanitizing the username by removing periods (dots) and any part after the first "+", converting both parts to lowercase, and then returning a consistent Java-generated integer hash co...
tempCache UDF - Leverages cacheput/get to store temporary secrets; ie short-lived client variables-on-demand without having to enable client variables
tempCache UDF - Leverages cacheput/get to store temporary secrets; ie short-lived client variables-on-demand without having to enable client variables
James Moberg
The tempCache user-defined function (UDF) allows you to temporarily store data in the ColdFusion cache and retrieve it using a generated UUID. This is particularly useful for preserving data across HTTP redirects, with options for automatic expiration and single-use retrieval....
jreEscape UDF - Escapes regular expression control characters within a string
jreEscape UDF - Escapes regular expression control characters within a string
James Moberg
The jreEscape user-defined function (UDF) ensures strings can be safely used in regex patterns by preventing special characters from being interpreted as regex metacharacters. The reescape function exists in Adobe ColdFusion, but not Lucee....
maskCC UDF - Strips all credit card variations from a string. Useful when sending/storing user-submitted data in order to remain compliant with VISA Payment Card Industry Data Security Standard (PCI DSS) requirements
maskCC UDF - Strips all credit card variations from a string. Useful when sending/storing user-submitted data in order to remain compliant with VISA Payment Card Industry Data Security Standard (PCI DSS) requirements
James Moberg
The maskCC user-defined function (UDF) takes a text string as input, searches for patterns that resemble credit card numbers, attempts to validate these potential numbers using ColdFusion's built-in credit card validation, and then masks the validated numbers by replacing all but the last four ...
enableWKHTMLTOPDFForms UDF - Modifies PDF bits so Adobe Reader treats non-Adobe PDF as
enableWKHTMLTOPDFForms UDF - Modifies PDF bits so Adobe Reader treats non-Adobe PDF as "editable"
James Moberg
This enableWKHTMLTOPDFForms user-defined function (UDF) modifies the binary of a non-Adobe-generated PDF file to enable the editing of form fields in Adobe Acrobat. The function works by finding specific patterns within the PDF's data related to annotation parents and replacing the word "P...
hashid / ishashidValid UDFs - Protect against sequential traversal when using INT keys
hashid / ishashidValid UDFs - Protect against sequential traversal when using INT keys
James Moberg
The hashid and ishashidValid CFML user-defined functions (UDFs) provide a simple mechanism for generating and validating hash-based identifiers.
PDF Generation, Bloat and Optimization
PDF Generation, Bloat and Optimization
James Moberg
The State of myCFML PDF Generation My current comparison is with CFDocument on the deprecated CF2016 Developer Edition. I'm planning on performing tests with CF2021 & CF2023 soon and will perform this on my personal developer workstation using
CFFrankenstein: Choosing to use EXEs instead of CFML BIFs
CFFrankenstein: Choosing to use EXEs instead of CFML BIFs
James Moberg
I **choose** to use a lot of third-party Windows command line programs as part of our ColdFusion/CFML stack. Much of the functionality could be considered duplicated since official built-in functions (BIFs) already exist, but I perceive it as a "customer-controlled functions that always return ...
CFFrankenstein: Choosing to use EXEs instead of CFML BIFs
CFFrankenstein: Choosing to use EXEs instead of CFML BIFs
James Moberg
I choose to use a lot of third-party Windows command line programs as part of our ColdFusion/CFML stack. Much of the functionality could be considered duplicated since official built-in functions (BIFs) already exist, but I perceive it as a "customer-controlled functions that alw...
Using ColdFusion to Generate Pre-Signed Wasabi Download URL
Using ColdFusion to Generate Pre-Signed Wasabi Download URL
James Moberg
There was an internal decision to use Wasabi Cloud Storage instead of Amazon S3 and I needed to use ColdFusion to generate a pre-signed URL to allow access to AI-...
Using ColdFusion to Generate Pre-Signed Wasabi Download URL
Using ColdFusion to Generate Pre-Signed Wasabi Download URL
James Moberg
There was an internal decision to use Wasabi Cloud Storage instead of Amazon S3 and I needed to use ColdFusion to generate a pre-signed URL to allow access to AI-generated content for a limited time. I had used the Sv4Util.cfc and aws-cfml libraries before with Amazon and thought it was just as simp...
ColdFusion getQRSVG() UDF - Returns responsive SVG source
ColdFusion getQRSVG() UDF - Returns responsive SVG source
James Moberg
In a project I'm working on, I needed to generate a QR code and display it within an HTML file that is converted to a PDF using WKHTMLTOPDF. I didn't want to rely upon physical, statically-hosted SVG image...
Backporting New ColdFusion 2025 Function listGetDuplicates()
Backporting New ColdFusion 2025 Function listGetDuplicates()
James Moberg
I saw a post on Linkedin regarding the "Unlocking the Power of listGetDuplicates". I like...                                      
isValidHexString ColdFusion UDF
isValidHexString ColdFusion UDF
James Moberg
While working on my ColdFusion colorTools CFC, I wondered if isValid() supported a "hex" type since "guid" & "UUID" both rely on validating hexadecim...
ColdFusion colorTools CFC (In Progress)
ColdFusion colorTools CFC (In Progress)
James Moberg
While working on some internal graphs to represent daily Fastly WAF/CDN statistics, I realized that I needed to generate some additional random colors. I started to use the returnRandomHEXColors UDF from
Java HashCode Identity Crisis
Java HashCode Identity Crisis
James Moberg
I was unit testing a global UDF that accepts a string and leverages Java's built-in hashCode method to return a signed 32bit integer. This seemed trivial, but I wondered if different versions of ColdFusion that are outside of my internal control would consistently return the same values. I past...
ColdFusion Dump Alternative
ColdFusion Dump Alternative
James Moberg
The cfdump tag (AKA cfscript "writedump" function) outputs the contents of a variable of any type for debugging purposes. The variable can be as simple as a string or as complex as a cfc component instance. If you've ever u...
Testing if IP is within a CIDR Range
Testing if IP is within a CIDR Range
James Moberg
I recently wrote a blog entry about using a third-party Java library to standardize IPv4 & IPv6 IP addresses using ColdFusion. The Apache Commons Java library (th...
Using IPAddress Java Library with ColdFusion to Standardize IPv4 & IPv6 Addresses
Using IPAddress Java Library with ColdFusion to Standardize IPv4 & IPv6 Addresses
James Moberg
Our Microsoft IIS web server is configured to accept IPv4 connections and, since 1996, we've recorded IPs in databases using VARCHAR(15). We weren't impacted in 2012 when the ARIN and World IPv6 Launch Day intro...
phoneFormat & makeTelLink ColdFusion UDFs
phoneFormat & makeTelLink ColdFusion UDFs
James Moberg
Standardization & validation is important, but good luck getting all you clients and your client's visitors on board with adhering to ISO standards. When it comes to phone numbers, we've embraced the E.164 international standard (
getLastWorkWeekInMonth() ColdFusion - Returns Last Full Work Week
getLastWorkWeekInMonth() ColdFusion - Returns Last Full Work Week
James Moberg
While integrating a new feature for a client to flag customers that were requesting vouchers to be reissued, a business rule was required to determine whether the action should be performed during the current or next month. My client indicated that anything flagged during the last week of a month...
ColdFusion Wrapper for Zint Barcode Generator
ColdFusion Wrapper for Zint Barcode Generator
James Moberg
I referenced Zint Barcode Generator in a post from 2020 and included a very basic command line syntax for a QR code. Zint able to generate 9...
structToTable - Generate HTML/Text Output for Display/Email
structToTable - Generate HTML/Text Output for Display/Email
James Moberg
When working on new logic and I want to dump a variable, I often use an internal CF_DumpLite CFC/CFTag that we developed that minimizes HTML output, honors original form & query column order & case, redacts CC values and is
ColdFusion PayPal REST API CFC
ColdFusion PayPal REST API CFC
James Moberg
PayPal's NVP/SOAP API for Website Payments Pro accounts suddenly                                      
Hack WKHTMLTOPDF PDF to enable Adobe Acrobat Field Editing
Hack WKHTMLTOPDF PDF to enable Adobe Acrobat Field Editing
James Moberg
I recently integrated the auto-generation of survey results into a downloadable PDF using ColdFusion and WKHTMLTOPDF 0.12.6. Our client provided a pre-generated PDF cover page with some editable fields that we prepended to the PDF u...
HeatColor UDF (based on jQuery library)
HeatColor UDF (based on jQuery library)
James Moberg
When displaying values in a table, I like to use color to visually indicate whether the number is high or low. When displaying data on a webpage, it was trivial for us to use the jquery-heatcolor library ...
ColdFusion Summit History (Tourist Edition)
ColdFusion Summit History (Tourist Edition)
James Moberg
I wouldn't call myself a regular at conferences, but I've enjoyed attending some CF-related conferences in the past. Luckily my Monument 2 Photo device, a self-hosted Google Photos device, makes...
CDN, WAF, WAAP... What do you use?
CDN, WAF, WAAP... What do you use?
James Moberg
In the early 2000s, many of our customers still viewed the internet as a passing trend. During this period, we operated a ColdFusion 4.5 (or 5) web application on a Windows server utilizing an Access database. Initially, we relied on a dedicated T1 connection. Over time, we upgraded to a dual T1 ...
Embed a Full HTML Document Inline Using Shadow DOM
Embed a Full HTML Document Inline Using Shadow DOM
James Moberg
We use ColdFusion/CFML to generate valid HTML documents for PDF generation using jsoup & WKHTMLTOPDF. If the generated HTML content is simply outputted onto an existing ...
Searching the CFML Output Buffer for a String
Searching the CFML Output Buffer for a String
James Moberg
In one of our projects about 10 years ago, we were fetching HTML fragments from a trusted third-party for inclusion on the website. Instead of using an iFrame or incorporating ajax, which could negatively impact our SEO, we would occasionally fetch the content in the background and update the we...
CFML wrapper for emoji-java (identify, sanitize & convert emojis)
CFML wrapper for emoji-java (identify, sanitize & convert emojis)
James Moberg
A ColdFusion application that we developed a couple years ago worked with Twilio to log incoming text messages. The UTF-8 message payloads were saved in a MSSQL database using the NVARCHAR datatype and could be displayed on webpages without any issue. When importing a CSV file into a third-party...
Transforming TSV data using ColdFusion & Miller (Command line FTW!)
Transforming TSV data using ColdFusion & Miller (Command line FTW!)
James Moberg
We license data from multiple providers and discovered that not all data can be treated equally even though it's the same specification. For example, we work with two (2) separate Real Estate Transaction Standards (RETS) providers and their implementations are slightly different. The west coast ...
Comparing Language Detection Libraries (& API) Using Java/ColdFusion/CFML
Comparing Language Detection Libraries (& API) Using Java/ColdFusion/CFML
James Moberg
Language detection is a feature that we needed in a past project. I wrote an article in 2020 regarding the use of kju2 fork of th...
Importing Data from a Pre-95 Excel 2 Worksheet XLS file.
Importing Data from a Pre-95 Excel 2 Worksheet XLS file.
James Moberg
Q: How do you solve a problem you don't know how to solve? A: Turn it into a problem that you do know how to solve. How can I import data to a MSSQL Se...
Convert Numbers to Text using ColdFusion and ICU4J
Convert Numbers to Text using ColdFusion and ICU4J
James Moberg
(This is a repost from my abandoned tumblr blog; dated 2016-11-17) A client requested that we spell out numbers on their website in order to clarify some financial totals.  I initially planned on using the ColdFusion
TempCache ColdFusion UDF
TempCache ColdFusion UDF
James Moberg
There's been many occasions where a user-specific payload has been generated (shopping cart, check out, config settings, processing results) and the user needs to be directed to a new destination with the data, but I want to avoid non-securely passing data as URL or form parameters or having to e...
Database .NET Review
Database .NET Review
James Moberg
                                      
How to Check SSL Certificate using ColdFusion & CURL.exe
How to Check SSL Certificate using ColdFusion & CURL.exe
James Moberg
A CFML developer in the ColdFusion Programmers Facebook Group referenced my DEV article regarding how to identify the SSL expiration date using ColdFus...
I'm Heading to Adobe ColdFusion Summit 2023
I'm Heading to Adobe ColdFusion Summit 2023
James Moberg
I'm getting ready to drive 500 miles to attend to the 11th CFSummit taking place in Las Vegas on October 2-3. I'm looking forward to reconnecting with CFML developers that I've communicated & collaborated with online during my past 26 years of developing in CFML. I'll be arriving ear...
Filtering Zero-Width SPaces (ZWSPs) using ColdFusion
Filtering Zero-Width SPaces (ZWSPs) using ColdFusion
James Moberg
This is a follow-up to a January 11, 2019 article I wrote on my old Tumber blog. The Hacker News posted an article regarding the ability to bypass Microsoft Office 365's "Safe Links" security feat...
createIsoString() - A ColdFusion User-Defined Function (UDF) to replace dateTimeFormat(
createIsoString() - A ColdFusion User-Defined Function (UDF) to replace dateTimeFormat("iso")
James Moberg
This ColdFusion UDF converts a date object or string into a UTC, ISO8601, RFC 339, ATOM or W3C string
Generate Sanitized Email Hash (as Integer)
Generate Sanitized Email Hash (as Integer)
James Moberg
While reviewing the logs of failed contact form submissions, I identified a couple email address variations that were exploiting some
Convert XML to JSON in 1 line of code using ColdFusion
Convert XML to JSON in 1 line of code using ColdFusion
James Moberg
I was researching methods of converting XML to JSON using ColdFusion. I didn't want to use xmlParse() because ...
Caching Repetitive UDF Access to Request Scope Using Argument Stringified+Hashed Key
Caching Repetitive UDF Access to Request Scope Using Argument Stringified+Hashed Key
James Moberg
While viewing FusionReactor logs for a ColdFusion app, I noticed lots of repetitive JDBC entries in a requ...
ColdFusion IsValid(
ColdFusion IsValid("regex") vs reFind() vs Java Regex Pattern
James Moberg
I was recently notified of a slow ColdFusion script on a project and, after some isolation, determined that it was due to a regex-based UDF that we used in place of Adobe's built-in function (BIF) for isValid("url"). We used a regex rule with isValid("regex") to validate only HTTP/S URLs with valid...
Undocumented Change to ColdFusion 2021 CFHTMLHead & CFContent
Undocumented Change to ColdFusion 2021 CFHTMLHead & CFContent
James Moberg
According to my unit tests, after ColdFusion 2018.0.0-15, Adobe changed the way that CFHTMLHead works with CFContent. Prior to CF2021, any strings that were added to the header buffer via CFHTMLHead was outputted to the HTML HEAD section (or top of the page if you neglected to include a HEAD section...
Safely Fetching Scoped Variables (while avoiding Scope Injection)
Safely Fetching Scoped Variables (while avoiding Scope Injection)
James Moberg
I'm testing some ideas. I'm not sure if I'm on the right path or not, but thought I'd share. I have some UDF & CFC libraries that we've built over the year and I have some checks to determine whether default application variables exist and use them to override default values. In order to avoid pos...
areBracesValid UDF for ColdFusion/CFML
areBracesValid UDF for ColdFusion/CFML
James Moberg
Useful to determine if braces are correctly matched before processing. Helps reduce SQLi. I was using a version of smartSearch from CFLib.org that I had updated with some simple regex detection for SQLi strings, but it wasn't catching everything. I considered disabling the bracket matchin...
getIntsFromRangeString UDF for ColdFusion
getIntsFromRangeString UDF for ColdFusion
James Moberg
Useful for validating a human-entered list of integers. I was working on a search interface for a client where public visitors would be searching for a range of different values regarding event years, event place, ago, # of competitions, hours of training etc. I initially searched Google...
CustomTag CFScript
CustomTag CFScript "Nuance"
James Moberg
I still have some CustomTags that we've used in production for years and, now that I'm writing more cfscript, I thought I'd continue using some of them (for now) using the following syntax that I learned about on StackOverflow: CFML tag-based approach: CFSc...
Use Exiv2 to extract GPS data from Images using CFML
Use Exiv2 to extract GPS data from Images using CFML
James Moberg
I mentioned Exiv2 on a blog post from 2 years ago regarding Supporting ColdFusion with Command Line Programs. Someone in the Adobe ColdFusion Forum recently inquired how to "use ImageGetEXIFMetaData to try to get gps coordinates of an image". I've been down that road before and have found the buil...
CF_Timer: No Debugging IP Address Required; Introducing nanoTime
CF_Timer: No Debugging IP Address Required; Introducing nanoTime
James Moberg
While reviewing reports on Lucee's Dev Forum regarding performance differences between using an application-based CFC singleton and a global UDF, I thought I'd release our replacement for Adobe's CFTimer that I wrote back in 2013. No more editing "Debugging IP Addresses" If you wanted to...
Parsing Width/Height from SVG File using ColdFusion
Parsing Width/Height from SVG File using ColdFusion
James Moberg
Someone on the Lucee website asked how to get width/height of SVG image file in Lucee. I tend use a lot of SVG images when generating PDFs using WKHTMLTOPDF with ColdFusion 2016-2021 and Lucee. I thought I'd try writing a cross-compatible UDF to parse this information. I've added support for desc,...
Client Cookie Conversion Requirements for ColdFusion
Client Cookie Conversion Requirements for ColdFusion
James Moberg
Anyone aware of any information regarding best practices for client-side cookie generation for ColdFusion/Lucee CFML? I'm working on an admin tool and created a client-side cookie with an email address or two (for email testing). Upon the next page request using ColdFusion 2016-2021, only the conte...
Identifying Random Uploaded Form Files
Identifying Random Uploaded Form Files
James Moberg
I'm developing a flexible processing CFML script that accepts (authenticated) FORM posts and processes the data. The data is stored based on form field prefixes, but I don't have any hints regarding which fields may contain a file when processing a "multipart/form-data" form posts. I found Ryan Sti...
CFDump ShowUDFs Behavior
CFDump ShowUDFs Behavior
James Moberg
I was writing some unit tests to identify the output of CFDump under different conditions and discovered that Adobe and Lucee treat the showUDFs parameter differently. I also use 3rdparty CF_Dump since it provides consistent behavior between CFML platforms. Since I've written my own internal Dumplit...



Footer Logo

Powered by Galaxy Blog

If you have an ideathat you want to share, please contact us! This community can only thrive if we continue to work together.

Images and Photography:

Gregory Alexander either owns the copyright, or has the rights to use, all images and photographs on the site. If an image is not part of the "Galaxie Blog" open sourced distribution package, and instead is part of a personal blog post or a comment, please contact us and the author of the post or comment to obtain permission if you would like to use a personal image or photograph found on this site.

Credits:

Portions of Galaxie Blog are powered on the server side by BlogCfc, an open source blog developed by Raymond Camden. Revitalizing BlogCfc was a part of my orginal inspiration that prompted me to design this site.

Version:

Galaxie Blog Version 3.0 (Toby's Edition) June 14th 2022 Tropical Wave theme