Monday, June 16, 2014

Coldfusion 10/11 Case Sensitive URLs?!?

I just migrated my CF8 site to CF11  and noticed that  issues were occuring with missing images. 
A link to "BLUEBALL.jpg" will not bring up "blueball.jpg".

look for context.xml under {drive}\ColdFusion11\cfusion\runtime\conf

Change the context tag to look like:

<Context AllowLinking="true" caseSensitive="true">

Restart the CF service 

Monday, October 28, 2013

How to know External IP of a intranet IP

Let say you have a situation that your application runs on Intranet and you want to communicate with  other application which is behind the firewall. so they need the External IP to allow traffic
from fixed IP(s).

Below is the code which shows how to get the External IP in colfusion / Java.

IN ColdFusion
create a File IPAddress.cfm
<cfset sURL = "">
 <cfhttp method="get" url="#sURL#>
 <cfdump var="#cfhttp.filecontent#">

create a class


public class IPAddress {

    public static String getIp() throws Exception {
        URL whatismyip = new URL("");
        BufferedReader in = null;
        try {
            in = new BufferedReader(new InputStreamReader(
            String ip = in.readLine();
            return ip;
        } finally {
            if (in != null) {
                try {
                } catch (IOException e) {
    public static void main(String[] args) {
        // TODO Auto-generated method stub

        catch(Exception e){

compile this file on your machine and run you will get the External ip.

Tuesday, July 17, 2012

Blessed with a baby


Just want to share about me and my child.
I blessed with a baby boy recently.....faced lot of challenges untill his birth....
he just started feeding of mother milk...
when i came to home in the evening , my wife told me that he was sleeping whole day....
however last 2 days he was not doing so...
May be it's due to he just started feeding mother's milk...

Along with he is delivering loose motion from morning around 6-7 times in whole day...
i was very worried about this... i rang my mother's phone and asked her about this...
Also my wife called her sister about this... and she found that it is  a normal activity

I am having lot's of question right now about loose motion of my baby...
therefor i took an appointment with doctor tomorrow .

Let's see what the doctor said....

Will post all question and answer in tomorrow's post....

Wednesday, March 14, 2012

automatic coldfusion server update

automatic coldfusion update page in coldfusion admin
I just saw this feature , now we don't need to download and install hotfixes/patches manually.

Adobe has simplified this process...

to install an update :
1. click on the start icon on the right top corner
2. click on download and install
that's it . Your patch is installed.
during installation your server will stop and start.

Tuesday, January 10, 2012

Employing and engaging individuals at work must be a core focus for any leader who wants to create a bigger company.

Friday, July 30, 2010

Common java error - Unsupported major.minor version 50.0

When this error occur:
There may be more den one JRE you have installed either from different application like java, oracle... etc.
you need to remove those extra JRE paths from the "path" environment variable.

How to resolve this error:
check your "path" environment variable... if der is more den one JRE , then please remove extra JRE....
Leave der only one JRE path ....

Thursday, June 17, 2010

Logging in Javascript

Using Logging in Javascript
It's very usefull to have logging statement in your code .
console.log(); statement is very handy to log information in javascript .
sample code
<script type="text/javascript" src=""></script>
$(document).ready(function() {
console.log('current value is prashant gupta');'this is information')
console.warn('this is warning')
console.error('this is error.')
console.debug('this is debug.')


what you need to do is
1. just include the jquery file in your code
<script type="text/javascript" src=""></script>
2. and now you can use
for loggin.

How to see the logged statement:
to check javascript logs , I uses Firebug extension in Mozilla.
just see below image how it is easy to see your logs in firebug.......