Posts

Showing posts with the label coldfusion 8

*SOLVED* Adobe ColdFusion Scheduled Task and PDF fail/error/not running - June 2016

The Adobe ColdFusion servers on Windows Servers and having SSL could develop and issue with Scheduled Tasks not able to run after June 2016. We have experienced this issue with one of our servers. The only information we receive when saving the output of a scheduled task to a file is "Connection Failure". Along with that while PDF is generated, it is missing the styles and image.

Converting a number in ColdFusion to specified base (binary, hexadecimal etc)

Image
Just a quick post on converting numbers to different base using ColdFusion . The FormatBaseN can be used to convert a number to a different base. Function Syntax FormatBaseN(number, radix) Parameter Description number Number to convert radix  Base of the result (2, 10, 16) More details on the Adobe link  

Working with large numbers in ColdFusion

I just thought of sharing my friend's experience with managing large numbers using ColdFusion. They got an assignment that will manipulate numbers and things seem good at first. When the numbers started getting larger(20 digits), we had a problem. In CF, the limit of Integer is -2,147,483,648 and 2,147,483,647 (32-bit signed integers) and the calculations started giving unexpected results. After quite a bit of Googling and posting in forums, they got the solution from a user in the Adobe forums. It is to use the Java Math object and convert the number to BigInteger. Here is the code:

Using .jar (Java Archive) file with ColdFusion

Image
" Java is running under the hood of ColdFusion and it is easier to use Java / Java Archives" with ColdFusion. I have been hearing about this since I have started studying ColdFusion. So I decided to take a look at it. I have studied Java only during my course and does not have much experience with it. Now, with the help of Eclipse , it is very easy to create a Java project and export it as archive.

Backup and restore settings, DSN from your ColdFusion server

Image
When you have to re-install the Operating System or re-install Adobe ColdFusion server in your machine, you think of the tedious task of having to re-do all the settings and create the datasources again. Using the ColdFusion Archives available in the ColdFusion Administrator, you can backup and restore the settings from your ColdFusion server. The settings are stored as .car files and can be used to port the settings.

Analyze ColdFusion code for errors and code compatibility using ColdFusion Administrator

Image
ColdFusion Administrator gives the facility to analyze your code for compatibility with current version of ColdFusion and also for errors. To start the Code Analyzer, go to ColdFusion Administrator (should be available at http://localhost/CFIDE/administrator/index.cfm) and go to 'Debugging & Logging' -> 'Code Analyzer'.