Blog

Cloning SVN repository to GIT on Windows

Since couple of weeks working on implementing Git Repository for our codebase of our all projects. Before this we were using SVN as versioning control but as Git getting more popularity we decided to move Git. Week ago wrote post regarding creating Git server and move some of code to Git which was not in any version control. Now it was time to move all our SVN repositories to GIT and of course do not want to lost all my code revision, comments etc. GIT support cloning from SVN which make job much easier for us. There are three easy steps to cloning SVN to GIT.

Read More
By Pritesh
Comments(0)
Tags: GIT, SVN
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)
Tags: OpenID, HMAC-SHA
ColdFusion Schedule Task Issue with Daily Every task

Schedule task in ColdFusion is something I love most and I guess all ColdFusion developers are too. It is really easy to schedule any page to run for given specific date - time or periodically, even you can easily add it through code by CFSCHEDULE tag. For who are new to admin interface of schedule task it will look like below. In frequency there are three option 1. One-Time 2. Recurring 3. Daily Every, I think option caption itself mention what it will do. One common thing in all three options is you need to provide start time to tell schedule task runner when to start execution.

Read More
By Pritesh
Comments(0)
Tags: ColdFusion, schedule task
Scroll issue with iPad browser for framed window

Recently one of our client report scrolling issue when they try to view their website on iPad (or any mobile device). Page they are looking has iframe with scroll so basically two scrolls on browser but when user trying to scroll within iframe anyhow iOS browser doesn't able to recognize it and always scroll main window. I have gone through iPad guide provided Apple which mention that we can scroll within iframe by two fingers and use single finger to main window. I tried but doesn't work for me (may be it support new iPad only) and ask client to do so but it doesn't work for him as well.

Read More
By Pritesh
Comments(0)
Tags: iPad, ColdFusion, iFrame
Tag SES URL throw 404 error if tag has special characters other than '-'

Recently working on MuraCMS (opensource Content Management System build on CFML) for our company website. While working on blog section where we used to have tag for each post. For one of post we have tagged which include space and dot, when we click on through tag link SES url it throws 404 error. This only happen if you are using URL rewriting to remove index.cfm from URL. After little bit of debugging I found that it was due to rewrite URL, default rewrite URL script provided by MURA doesn't support redirection of URL having special character other than '-'. This is will work fine for search by page, category etc as MURA itself change it value with SEO friendly but in case of tag it doesn't.

Read More
By Pritesh
Comments(0)
Tags: Mura CMS, ColdFusion, Regular Expression
ColdFusion Schedule Task Error: The Cron service is not available.

Recently I face strang error in five years of career in ColdFusion. 
Message: "The Cron service is not available." 
Detail: "This exception is usually caused by service startup failure. Check your server configuration."

 
Read More
By Pritesh
Comments(0)
Tags: ColdFusion, schedule task, neo-cron