Monday, July 13, 2009

InetAddress.getByName( ) cached result

java.net.InetAddress.getByName( ) will cached the result, even when the host name IP is changed. To fix this, issue the following option to Java VM:

-Dsun.net.inetaddr.ttl=0

It sets the timeout of the DNS cache to zero.

Friday, September 26, 2008

Using netsh for IP config import/export

2 lines only:

netsh -c interface dump > filename

netsh -f filename

Ref: http://www.alibutt.com/?p=250

Some more about netsh to read at http://www.builderau.com.au/program/windows/print.htm?TYPE=story&AT=339272916-339024644t-320000994c

Friday, August 29, 2008

Saturday, August 2, 2008

How to check physical memory

1. winmsd.exe

2. pstat.exe (from resource kit)

3. memory.exe (http://www.savilltech.com/download/memory.zip)

From windowsitpro.com

Wednesday, April 16, 2008

Enable Java assertion

Just a soft reminder in case I want to use Java assertion. Given a class Cls:

> java -ea:Cls Cls

The comment will execute Cls which assertion enabled.

Thursday, April 10, 2008

Remove system folder in windows explorer

Some program will create a system folder which could be viewed in your windows explorer. Sometimes when uninstalling the program, they cannot remove the system folder for you. To remove it, find those system folder are in:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\Explorer\MyComputer\NameSpace\

References are from technospot

Monday, March 17, 2008

IE progress bar keeps loading

Solution and discussion found in:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320731

http://dangermoose.blogspot.com/2006/01/why-status-bar-keeps-loading-in.html

Thursday, November 15, 2007

Moodle error: Query failed in load_user_capability

In Moodle 1.8 platform, whenever you encounter the captioned error during login, the /var is likely to be full.

The solution, obviously... clean up the /var to feed more free space to it.

Thursday, November 1, 2007

Tracing IP and e-mail header information

I found some resources for tracing IP and e-mail header stuff...

Find the IP of the e-mail sender via header:
http://www.infobanc.com/articles/faida5_12.htm

Trace the IP location:
http://visualroute.visualware.com/

Wednesday, October 31, 2007

List and comparisons of emulators...

Mayank Sharma provided a nice articles on some alternative emulators other than VPC:

Ref:  http://www.linux.com/articles/60742

They are QEMU, Bochs, Virtual Box, VMware Player and VMware server...

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...