Blog
- Calculate HMAC-SHA256 digest using user defined function in ColdFusion
Recently I am working on OpenID 2.0 protocol, in which I require HMAC-SHA256 (Hash Message Authentication Code - Secure Hash Algorithm using 256 bit key length) digest to generate Encrypted MAC key. For that, I use following UDF HMAC_SHA256(): I wrote this function by taking reference from OpenID Consumer library.
- Read More
- By Mahavir Dhruv
- Comments(2)
- January 24, 2012
- Submit form to CFWINDOW
This may be wrost title. Basically I need to submit form and submit page should render in cfwindow object, another issue was there are some javascript code/function on my submit page as well which should be render to.
Normally CFWINDOW will execute script of rendering page and you many not able to call function defined in rendering page. Below code how you can submit form to CFWINDOW with loading script as well.
- Read More
- Comments(1)
- August 19, 2011
- Work around ColdFusion local scope
Hi friends,
These days am working as a tester. I never thought that developer can also do that if they really take interest in testing! Infect someone can also learn from the testing, even testing can also test their understanding for knowledge.
While testing I saw one case where I get more variable in the array object other then I defined. Then I again take a look and I came to know that local variable was causing an issue.
Let me give you some examples and exercise. Make sure that before you see the output just think what would be the output. Consider that all following code is written in sample cfml page and we are using ColdFusion 9.
- Read More
- By Vikas
- Comments(1)
- August 17, 2011
- Bug - count() function in ColdFusion query of query
Hi,
It has been a great time since I started working on ColdFusion. I must say that it is the easiest language in the world and yet it is a powerful and can be compared to any major programming language.
In last few days, I was using ColdBox and MockBox framework in our current project. I was using query of query which is very similar to SQL query, and we can use it over query object in ColdFusion.
Count() is a math function, but if we use it with select statement like count(*), it returns a number of rows fetched in select query. I used it query of query, and it was giving me the correct count if my select statement is returning some rows, but if it is not returning any row then ideally it should give 0 as output, but it gives [empty string].
- Read More
- By Vikas
- Comments(0)
- August 6, 2011
- How to use query of query in cfscript
We can use queries of queries in cfscript with the Query.cfc. But this is possible in Coldfusion 9 because Query.cfc has introduced in Coldfusion 9.
Let's see the following code ...
- Read More
- Comments(0)
- February 25, 2011
- Load balancing with Apache Tomcat on ColdFusion standard version
This one is actually part-ii of my first blog “Running multiple tomcat instances with Coldfusion standard version - Part I” but to make it more meaningful I have changed title of this Post.
In previous post we have run single site on two instance of tomcat and on different port. Now time to run both instance under single website URI with load balancing for high availability under Apache server.
Let's install Apache http server using downloaded .msi, to avoid security issue and spacing in path I prefer to install “C:\Apache2.2” [APACHE_HOME] and make sure it is pointing to port 80. Once finish with installing browse URL http://localhost to make sure Apache server is configured and running correctly. To perform load balancing on two tomcat instance download mod_jk. Use Binary releases link and choose your appropriate platform and download file mod_jk-1.2.31-httpd-2.2.3.so. Copy it to APACHE_HOME/modules folder and rename it to mod_jk.so.- Read More
- Comments(0)
- February 25, 2011
- Running multiple tomcat instances with Coldfusion standard version - Part I
Since couple of weeks I was working with Railo and ColdFusion 9 (standard edition) to clustering and load balancing. I have started with Railo as I was new to Railo and keen to work around it. I wrote several post about Railo installation
Installing RAILO Tomcat on windows step by step
Installing RAILO Tomcat on windows step by step - part ii
Running multiple instances of RAILO on tomcat.
Now it turn of ColdFusion for load balancing. I have googled it about but mostly found articles with enterprise edition and it is easy to implement but I want to work with developer/standard edition. Below is step by step instruction to running multiple ColdFusion (standard edition) instances on one computer.- Read More
- Comments(0)
- December 13, 2010
- Updating coldfusion 9.0.0 to 9.0.1
Updation of ColdFusion is always painful for me. I am working on ERP level projects which is build on ColdFusion and we have heavily used ColdFusion inbuilt AJAX funtionality, everybody knows that CF use EXTJS for their new ajax component and my favorites are cfgrid, cflayout. But what CF is provide is not always sufficient for client specially working with large project. I have modified cfgrid to put header toolbar and in footer I want to display number of records available etc. I have started ...
- Read More
- By Pritesh
- Comments(0)
- September 24, 2010
- Automated tests using Ant integration of testing frameworks - cfunit, cfcunit and mxunit
If you have seen my previos post, then you might want to automate testing. You can automate all three popular testing frameworks (cfunit, cfcunit and mxunit) with ant.
I've tested in eclipse 3.6 version, but it will aslo work in Adobe ColdFusion Builder.
- Read More
- Comments(0)
- August 30, 2010
- Using ColdFusion Code Within .htm/.html file
Hello friends,
if you want to use .htm and .html files in coldfusion.you should follow below step.
you will need to edit the web.xml file located generally at C:\ColdFusion8\wwwroot\WEB-INF Modify and insert at the end of the other mappings ...- Read More
- Comments(0)