Functions are first class citizens
In CFML, functions are first class citizens. That means that you can assign functions to variables, pass them around or return them. When support for closures was added in ColdFusion 10, then this...
View ArticleOther social resources for ColdFusion
The CF Community is vast. Aside from the ColdFusion Community Portal, here’s some other places you can turn to in order to find help or network within the ColdFusion community. Don’t forget about...
View ArticleSorting an array using ArraySort, BubbleSort and QuickSort
I didn’t study Computer Science so when I read about sorting algorithms I know what they achieve but not really how they work. So I thought I’d have a go at two well known ones; Bubble Sort and Fast...
View ArticleReverse an array in ColdFusion and other tricks using slice syntax
In ColdFusion there is a dedicated function to reverse a string but there isn’t one to reverse an array. With the slice functionality added in ColdFusion 2018 you can easily reverse an array: foo =...
View ArticlerunAsync, futures and callbacks in ColdFusion
One of the enhancements in ColdFusion 2018 is the addition of the runAsync method which allows for asynchronous programming. In ColdFusion the RunAsync function returns a Future object. A Future is...
View ArticleConvert a string To Title Case
A question came up on the CFML Slack channel today about converting a string to Title Case. I thought I’d see if I could solve it using a regular expression and this is what I came up with: s = "iTSy...
View ArticleCreating a ColdFusion Product Demo Using ColdFusion and CubePortfolio
Often times on an eCommerce or product information web site, you will need to display product images that your client’s potential customers will be able click and zoom into. People typically prefer to...
View ArticleIt’s Up To Us To Stop Hackers
The first month of 2019 has passed and it was full of year end wrap up articles about anything and everything from 2018. Most were fluff articles on pop culture and such. What I found most interesting...
View ArticleSorting Text containing characters with diacritical marks
Sorting text is a common task and can be done when getting data, such as from a database, or once we have the data using in-built functions such as arraySort. Here’s a quick example: foo = [ "z 50", "a...
View ArticleA look at unsynchronised arrays in CFML
In the ColdFusion 2016 release, the ability to create unsynchronised arrays was added. Adobe’s ColdFusion 2016 Performance Whitepaper claims a significant speed increase when you use them. I thought...
View ArticleStructCount vs StructIsEmpty
There was a question the other day on the CFML slack channel asking how you’d find if a struct was empty. I posted an answer that you could use StructCount to do it, someone else posted StructIsEmpty....
View ArticleColdFusion and Java 8 and Java 11 Updates
As many of you are aware Oracle has changed their licensing for Java 1.8 and making it a pay to play for all commercial purposes. Here’s a link to the licensing announcement. I’m not a lawyer and I’m...
View ArticleWhy you should limit password length
It’s good practice to allow your users to have long passwords. These passwords can be stored as a hash and because the hashed version is a predictable length, the password can be stored in a database...
View ArticleAMEX Express Checkout Implementation
Has anyone implemented AMEX Express Checkout in CF? I am looking for a tutorial or code to get started. Thanks The post AMEX Express Checkout Implementation appeared first on ColdFusion.
View ArticleWatch this 4-part series of webinars on troubleshooting CF with FusionReactor
If you’re ever facing troubleshooting problems, in any version of CF, FusionReactor is a great tool to help. And to help you consider it and get started, note that I did a free 4-part webinar series on...
View ArticleColdFusion licensing for Docker and other containers
[Originally authored March 19, 2019, latest update Feb 27 2021] You may know that Adobe offers Docker images for CF and related CF services, for CF2021, CF2018 and CF2016. But have you wondered what...
View ArticleColdFusion Summit East 2019 and Q2 Roadshows
We are very excited to meet ColdFusion Developers from East Coast at the fourth Annual ColdFusion Summit East. The event would be held at Renaissance Washington, DC Downtown Hotel, 999 Ninth Street NW,...
View ArticleFix available for CF11 update 18 query caching bug
If you have moved to CF11 update 18, or plan to, note that there is a known bug affecting use of query caching, such as via the cachedwithin attribute of cfquery, causing it to sporadically return...
View ArticleDid you know the CF2018 installer has removed the web server integration step?
If you’re moving to ColdFusion 2018, note that its installer no longer offers the step for integrating CF with your external web server (IIS or Apache), which is a real surprise for those who may have...
View Article500 – Internal server error. There is a problem with the resource you are...
This error used to be solved by unchecking a box in CFAdministrator labeled Enable HTTP Status Codes. This setting is well hidden in 2018. Where do I find it? Why isn’t it on the debugging info page...
View Article