Map, Reduce, and Filter functions in ColdFusion

Functional programming has gained popularity in the recent past. Using functional programming techniques, you can write code that is relatively bug-free, easier to debug and test, and easier to refactor. One of the reasons why functional programming has become popular is its ability to manipulate data structures easily and efficiently when compared to traditional methods. In this blog, we shall take a close look at the pillars of functional programming, map, reduce, and filter, and how you can use these […]

How to configure DSN using service name for Oracle 12c RAC in CF2016?

You may come across a situation where you need to set up a DSN for Oracle database(RAC) using service name instead of SID. In such scenario, you could use JDBC connection string to define the DSN. In this article, we will see how to set up DSN using service name in two simple steps. Log in to CF admin page -> Navigate to Data Sources-> Create a new DSN -> Select “Other” as  driver. Specify the following settings: jdbc:macromedia:oracle://hostname:port;ServiceName=servicename;AlternateServers=(alternatehostname:port);ConnectionRetryCount=2; ConnectionRetryDelay=5 […]

Installing Add-on installer for ColdFusion

Recently, we saw few queries where, PDFg service manager was not starting, post installation. Installing an Add-on installer resolves the issue often. However, installing an Add-on installer can be a bit tricky sometimes. Let me walk you through the steps involved: Firstly, we recommend that you take a backup of your ColdFusion Installer. Uninstall the Add-on services from Add/Remove Programs panel within the Control Panel. After the uninstallation is complete, ensure that there are no residual files/folders in \ColdFusion2016\cfusion\jetty\. Download the Add–on […]

Unioning queries using query of query

Here is how you can union together two queries using query of query. This function would take two queries and use query of query to combine them into a single query. The code below assumes the columns from the two source queries are identical. You would need to modify if that isn’t the case. private any function combineQuery(qA, qB) { var qry1Result = arguments.qA; var qry2Result = arguments.qB; var qoqResult = ”; // create new query object var qoq = […]

All you want to know about Adobe ColdFusion Summit Podcast

It’s not too late to sign up for Adobe ColdFusion Summit 2017. In case you wanted to find out more information, please check out this podcast interview from TeraTech with Elishia Dvorak that goes over some Q&A about what we’re planning for the event. Everything you need to know about Adobe ColdFusion Summit http://teratech.com/029-everything-cf-summit-need-know-elishia-dvorak/ The preconference sessions are sold out now, but we still have some slots available for the full conference pass so don’t waste any time and register […]

Introduction To MVC in ColdFusion

As part of my “Introduction to MVC in ColdFusion” presentation that I’ve given at CF Summit 2016 and NCDevCon 2017, I have a sample application written three ways: In procedural style (all CFMs), As a FW/1 MVC application, and As a ColdBox MVC application. This might be a useful reference for folks contemplating starting to write applications in MVC or migrating existing apps to MVC. Here’s the repo on GitHub (along with the presentation slide deck): https://github.com/cfvonner/Intro-to-MVC-ColdFusion

Best method to code bulk emails

Hi. I’m interested to find out if anyone else has written some frequently used code that generates at least 100,000 personalised emails at a time? e.g. a mailing list. Have you done anything in particular to optimise the process such as sharing the work between multiple servers or splitting the task into multiple smaller threads? All of the recipients are in a query and I’m using <cfmail query=”#query#”> to loop through it. There are several cfif/cfelse parts to provide some personalisation based on what’s […]

ColdFusion Builder 2016 Fails to Launch

Have you ever experienced ColdFusion Builder crash on launch itself? In this scenario, when you try to launch ColdFusion Builder, here’s not response from Builder. This occurs due to corrupted workspace files. To fix this issue, follow the steps below: Navigate to “C:Users{useraccount}” and rename the “ColdFusion Builder 2016 workspace”. We recommend that you take a backup of the workspace as it would have existing settings for projects which might be required for reference later onwards. Launch command prompt as “Run as […]

Connection String for ColdFusion (using Oracle advanced Security)

Oracle has introduced a new security feature, Oracle Advanced security, for Oracle databases. This feature provides better data encryption other advanced security features to secure user data. For more details on OAS, please refer: http://www.oracle.com/technetwork/database/options/advanced-security/overview/index.html After enabling this feature with an Oracle database, a user can create the connection using the connection string provided by Oracle with the help of Oracle JBDC drivers. However, when creating the secure connection using ColdFusion, there is an error when using the basic connection […]

ColdFusion 2016 Security Enhancements: EncodeFor

ColdFusion 2016 added a handy enhancement to make writing secure CFML code easier for developers. This enhancement helps developers protect large chunks of code from a security vulnerability known as Cross Site Scripting or XSS. What is Cross Site Scripting? A cross site scripting vulnerability allows the attacker to execute client side code on the victim’s browser. In many cases the cross site scripting vulnerability can be used to exploit additional vulnerabilities or even leverage browser vulnerabilities to install malware on the victims […]

Adobe ColdFusion Survey – 2017

It is that time of the year when we post our annual survey to ColdFusion users. I request you to take time to provide your valuable feedback via the survey. The results of the survey will help us validate certain hypothesis we have to build the future versions of the product. We are already in the process of building the next version of ColdFusion, codenamed Aether. Your feedback can help shape the future of the product. Here is the survey […]

CF Summit 2017- Preconference almost sold out!

There are only a few seats available for our preconference workshops on Developing an Enterprise API Strategy, Hands on CFML Security Workshop and Migrating Legacy Applications Into an MVC Framework, so we will be closing registration very soon due to capacity limitations.  Please register today if you haven’t yet! All the three workshops are full day BYOD hands on labs and would be a great learning opportunity. Below is a summary of the workshops: Developing an Enterprise API Strategy with Adobe ColdFusion API Manager […]