Friday, May 02, 2008

Strange Behaviour on D-Link DSL-302T ADSL Modem

In my home (actually my parent in law home) i have two computers connected on LAN using switch. I have an ADSL modem (D-Link DSL-302T) and want to make my two computers connected on the internet. So, i plug a modem RJ 45 to the switch and also each computers.

I configure the IP address like this : (ADSL Modem) (Computer 1) (Computer 2)

and pointing the gateway on each computer to the ADSL modem IP (

Logically, this setting have to work. But, in fact i can't browsing to the internet on each computers. I saw the log on the modem that my modem already connected and got WAN IP address.

So, what's wrong here? Ok, i try to solve this problem by changing the TCP/IP address to obtain an IP address automatically.

Check the connection using ping command and restore the TCP/IP address to the default IP address which is and

And, magically now all computers connected to the internet.

How To Change Boot Sequence on Windows XP

I have to face a situation that needed to have two operating systems installed on my single computer. In my case, i already have installed Windows XP Pro Service Pack 2 English version for a long time ago. And now, the condition force me to have Windows XP Korean version installed.

The new operating system installed successfully. When booting the computer, there are two option of which operating system will be used. The default operating system is a newer operating system installed. But, i need my English version of Windows XP as a default entry for operating system. How to do this?

You can do this by right click My Computer and choose Properties as the image below:

Then go to Advanced tab and on the Startup and Recovery section click Settings button

In here you will face the section called System startup and the list of available Default operating system.

Choose your preferred operating system and then click OK. The previous XP and newer XP operating system will have a same name. This thing can make us confuse. To edit the operating system boot name, click on the Edit button and you will be prompted with the notepad contain the boot information like this

Just change the operating system name with the name preferred, for example like the image below

Save your changes and try to reboot your computer and see the result.

Friday, April 25, 2008

JavaScript Suicide

Getting busy with a day by day working hours makes me for a long time not involved on writing this blog anymore. I do apologize for this.

In some situation, we might want to run a script (asp, php, c#, jsp, cfm) using browser and then after execute the script the browser closed automatically.

You can simply do this using the JavaScript code below. Put this code at the beginning of your script :

function doSuicide()
opener = self;

And then put this code at the end of your script :


How this JavaScript code works?

First, the browser will load all the script till the end of the script. After the browser parsing the code and found the JavaScript function that call doSuicide() function then this will make the browser forced to closed by himself.

This JavaScript code known works on Internet Explorer and Firefox 2+