Catch A Breath I have experienced it by far...

Friday, August 21, 2009

Life is Beautiful

Life is beautiful

Life is beautiful he says………………..

Is it because,

It gives us a will that makes us search the sunshine peeking through the darkest clouds...

A spirit that inspires us fight the unseen, untouched doubts...

An inspiration that makes us trek the forlorn roads...

And at the end of a tiring day...

It also does promise to open the doors of the heavenly abode...

Maybe it is so as...

Amongst a swarm of unknown faces, it made a face special,

Gave us beautiful memories to wash off the pain of lonesome hours...

Made us believe on the undying spirit of the soul that carved out these new ways...

Stroked us a touch that made the sacred heart believe,

the blooming fragrance was just a step away...

So when at times I feel life has not been fair, he says...

Give a thought again my friend...

I am sure you will find several reasons solemnizing…..

It might have been a journey with tiring and windy uphill terrains,

But it also sanctified us with thousands of springs, wishful summers and wonderful rains...

~ Dhira Sarkar

Monday, March 23, 2009


Recently, I worked on AJAX for the first time to create a small application for the web-based product I am working on. I have faced few issues and resolved them. This blog is about some important points about AJAX which one should take care.

For XML Response:
  • Set the content type to "text/xml". Eg. response.setContentType("text/xml");
  • Before creating the XML content always clear the buffer. Calling clearBuffer() of JspWriter is better than calling just clear() method as the earlier won't throw any exception. Eg. out.clearBuffer();
  • While creating the XML content there has to be a root element. Eg.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<name>Sujoy C</name>
<name>Tanmoy C</name>

To Post Data:
  • Set the content type of request header to "application/x-www-form-urlencoded"
  • Create the post parameters and set the content length. eg. xmlReqObj.setRequestHeader("Content-length", params.length);
  • Code example:
var xmlReqObj = new XMLHttpRequest();


{"POST", URL, true);

xmlReqObj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

xmlReqObj.setRequestHeader("Content-length", params.length);

xmlReqObj.setRequestHeader("Connection", "close");


} catch(err)


I shall try the following things and keep posted:
  1. How can I pass argument to the function onreadystatechange?
  2. The status attribute most of the time throws error. Why does this happen and how to resolve this?

Thursday, April 17, 2008

Setting up HUAWEI MT 841 router for Multi User

I had faced major problem setting up my HUAWEI MT 841 router for my desktop as well as my office laptop. I searched a lot on web but didn't find any direct solution. Then I tried trial and error and after a lot of set backs finally I could able to set up the router so that I can access net through my desktop and laptop simultaneously.

Please follow the steps:

1. Access your router

Most of the time the userId/password is admin/admin else you have set it to something else.

2. Go to Advanced-->ADSL
Set the following
ADSL Modulation: G. Dmt

Keep rest of the things as it is.

3. Go to Basic-->Connections
You can see there will be many PVCs. Click on the Notes where you see VPI/VCI is 0/35
Delete that PVC.

Click New
Let's say it's PVC-N

Set the followings:
VPI/VCI: 0/35
Encapsulation: LLC
Default Route: Enabled
Provide User name and Password (which you get from the service provider)
Use DNS: Enabled

4. Click on "Apply" and then Click on "Save All"
Your Router will restart. Please wait untill it restarts.

5. Follow Step 1

6. Go to Advanced --> VLAN
You will see 4 Ethernet ports here for this ADSL Modem
Click on the Notes of respective Ethernet port.

Please set the following:
VLAN Binding status: Enabled VLAN Binding
Under VLAN Port Binding properties
Select binding PVC: Check the PVC-N (Keep other PVCs checked)
[I didn't try without checking the other PVCs and it worked for me]

7. Follow Step 4

You should be all set now. You just need to connect your RJ-45 cable to your desktop/laptop from the Ethernet port of your ADSL Modem. You can keep on adding more desktop/laptop to this Modem. Don't forget the configure that Ethernet port in Step 6.

If you find any problem please leave comments.

Monday, April 14, 2008

Desktop resolution problem ("Out of range")

Recently I was really surprised by the behavior of my desktop resolution. I was looking at Kilimanjaro photographs taken by one of my colleague's cousin. I liked one picture and wanted to set that as a background image. I didn't know that my LG Flatron 15" has a limit of 1024 X 786 pixel. So when I tried to change the resolution of the picture to something like 1280 X 800 pixel, the screen went blank with a message "Out of range" with some frequency information.
I tried to restart to fix the same but it again showed me the same blank screen.
I am going to tell you now how to get rid of this problem. This solution is for Windows XP (SP2) only as I didn't try this with other OS.
1. Restart windows
2. Before the windows start up screen keep on pressing F8 untill you see some options of how to start windows.
3. Please select "Safe Mode" option.
4. Once the windows starts it shows a pop-up saying "Are you going to restore earlier configuration?". Please don't ignore this and say Yes.
5. Please select some past date you are comfortable with.
6. Save your changes and restart windows.
7. You can see your monitor working like before.

Please leave comment if you find any problem with this solution.