Why use ColdFusion?
At work, we sometimes get asked why we use ColdFusion. This is usually because another company that has quoted for the job is using PHP. As a result I wrote some copy to go on our website stating Why...
View ArticleRunning the same Code on ColdFusion & Railo
I've been working on some code which needs to be able to run on ColdFusion and Railo. There are several posts about running them on top of a servlet container or JEE server, but I've gone for a quick...
View ArticleUsing Slice() in ColdFusion
I just asked on Twitter, if there was a ColdFusion equivalent of JavaScript's .slice() method. Marc Esher replied pointed me at Java's subList method.
View ArticleColdFusion, Railo & JSON
Just a quick blog post about a minor difference between ColdFusion and Railo when returning a query as JSON.
View ArticleColdFusion v Railo ORM
I've been working on an ColdFusion ORM application so that it also runs on Railo and found a few differences.
View ArticleURL rewriting before proxying request to Tomcat
With Apache, the request is proxied to Tomcat before the .htacess file is processed containing the URL rewriting rules and as such never gets rewritten.
View ArticleReplicating C's ComputeHash and PHP's pack in CFML
I've been working on integrating the eKashu Online Payment Gateway into a site. One of the security options is to generate a unique hash per order. The documentation only gives code examples in C and PHP.
View ArticleBackup MySQL to Amazon S3
I've recently launched a site using MySQL as a database, and wanted to be able to schedule database backups to Amazon S3.
View ArticleTomcat JVM settings on Windows
Changing the Railo Tomcat JVM settings when running as a Windows service.
View ArticleORM Paging - under the hood
Ever wondered if ColdFusion ORM gets all the records from the database and then filter them, or does it only get the records it needs from the database.
View ArticleUsing bCrypt in Railo
Yesterday I blogged about using bCrypt in ColdFusion 10. Today I'm working on a client site running on Railo, so I thought I'd see if I could get it running in Railo.
View ArticlesingletonPattern and DI1
I've been playing around with Sean Corfield's DI1, a simple convention-based IoC framework. My preferred file structure doesn't work with the default convention, so I started thinking about a...
View Articlevar scoping and nulls
Do you need to var scope a variable again if it was previously set to null?
View ArticleIsNull() bug?
I've been updating some error handling code and was using IsNull to detect if the URL and FORM scope exist (as some remote calls may not URL or form scopes). However, IsNull was always returning true.
View ArticleString concatenation performance reprise
Way back in 2008 I did a blog post on performant ways to concatinate strings in ColdFusion. I've just been working on improving the speed of an old website and thought it was good time to revisit the...
View ArticleEntityToQuery Gotcha
EntityToQuery method returns no columns if the array is empty on ColdFusion 9.
View ArticleScoping and closures
I wanted to explore how the variables are scoped when working with closures.
View ArticleUsing thin wrappers around arrays of structs
I noticed that Sean Corfield had posted on the FW1 mailing list about using a thin wrapper around arrays of structs. This is something that I've experimented with before and I find it to be a useful...
View Articlefind the last occurrence of an uppercase character
A really quick post on how to find the last occurrence of an uppercase character in a string
View Articlepresenting a free webinar this Wednesday
I'll be presenting a free webinar this Wednesday
View Article