Blog

April 13, 2011
Mobile theme and theme switcher for Mango Blog.

Since couple of days I was reviewing jQuery Mobile and really impress with work it make it easy for us. Now it was time to create practical implementation of it. Since long time I was looking for mobile theme for our blog but didn't find any and I believe it is because of Mango Blog doesn't allow us to switch theme (skin) on request also looking into code I realise that all skin related information stored at Application level and changing for any visitor will affect everyone who visit blog.

To make Mango blog for mobile device compatible I created one theme using jQuery Mobile and plugin to change theme whenever request come from mobile device.

Read More
Comments(1)
Tags: jQuery, Mobile
March 11, 2011
Installing coldfusion 9 on ubuntu server in virtualbox

In this week decided to install ColdFusion on Linux (Ubuntu) on Amazon EC2. As I am very new to Linux and having very limited knowledge about its command and installation process I have first decided to install it on local machine so choose VirtualBox for installation. After finish with Ubuntu installation my first chalange was how do I share windows directory in guest machine. After bit of googling I found very nice article from Joerg and help me out to work with sharing folder. Although ...

Read More
Comments(1)
Tags: ColdFusion, Ubuntu, Virtualbox
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)
Tags: Apache, ColdFusion, ColdFusion9, LoadBalancing
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)
Tags: Apache, ColdFusion, ColdFusion9
February 10, 2011
Running multiple instances of RAILO on tomcat.

Week ago I wrote blog about " Installing RAILO with Tomcat " this is what I have first time installed RAILO on my PC. After getting success in that I tried to run multiple instances of RAILO for different site and even single site. Below is step by step guide to create multiple instance of RAILO. Note: I assume that reader has already gone through my first blog on installing RAILO on Tomcat. Copy RAILO jar files into tomcat folder under "railojars". Open catalina.properties ...

Read More
Comments(0)
Tags: Tomcat, RAILO
February 9, 2011
Installing RAILO Tomcat on windows step by step - part ii

In part-I I have explained how to configure RAILO with Tomcat where we copied all RAILO jar files into tomcat's lib folder. If you do not want to copy it into lib folder instead keep separate folder for RAILO, that also possible ...

Read More
Comments(0)
Tags: Tomcat, RAILO
January 22, 2011
How to prevent the web pages from being index by the Search Engine

If you want to hide a page or website from search engines, you can do it in several ways. Since all search engines follow a web robots standard while crawling websites called Robots Exclusion Protocol, you can use the robots.txt file to give instructions to a search engine on what to index and what not to index. First, create a text file called robots.txt on the root of your website. Now let’s say you want to block your entire website from being indexed by the search engines, so you would ...

Read More
Comments(0)
Tags: Miscellaneous
January 21, 2011
Installing RAILO Tomcat on windows step by step

Installing RAILO with Tomcat apache in window.

1. Download war version of Railo.

2. Download tomcat apache version.

Install tomcat (just extract zipped file) any location (In my case e:/apache). Now extract downloaded Railo's war file using winrar or 7zip in temprory folder.

Now copy all jar files from /WEB-INF/lib of extracted railo's folder and paste to tomcat lib folder (in my case e:/apache/lib). Open web.xml file from railo's /WEB-INF/lib folder and copy all servlet and servlet-mapping node to tomcat/conf/web.xml file. Copy index.cfm, index.cfml welcome-file to tomcat's web.xml file under welcome-file-list tag so it look like ...

Read More
Comments(3)
Tags: Tomcat, RAILO
January 17, 2011
Listing scheduled task.

I love cfschedule tag to create/update/delete schedule and use one file to create all schedules. This is really help whenever you swich server and require to transfer all schedule task from one server to another one. As we all know Standard coldfusion server doesn't allow export facility and I am using around 25 schedule task to perform different scehdule operation. Whenever I need to add schedule file I add cfschedule tag in my cfm page and run it on server and it works great for me. But once ...

Read More
By Pritesh
Comments(0)
Tags: ColdFusion
January 12, 2011
One more good reason to define local variables in function instead of variables scope.

I used to create application variables for my cfc object which usually called many times from my coldfusion pages. This will help you to save execution time required to create object everytime. But it is highly recommand that you use local scope for all function local variables or there will be change your variables scope value may overwrite by other function. As a best practice it is always advisable to use local scope for function but by nature of programmer we always avoid to use it specially ...

Read More
By Pritesh
Comments(0)
Tags: ColdFusion