Monthly Archives: July 2005

Signal handling in Java vs. Python

I want a java program running in IBM JVM on AIX to ignore SIGINT and SIGTERM. After lots of googling, I found I can use undocumented sun classes to do it in pure Java. On Sun JVM, it said "java -Xrs Main" will work too … Continue reading

Posted in java | Leave a comment

message in fixed length vs. XML

    I am working on parsing fixed length message encoding in ISO-8859-1 and XML in UTF-8 message with the same content.  One advantage that fixed length over XML is easier to extract a certain substring based on position. It is a … Continue reading

Posted in java | Leave a comment

DB2 index design articles

    Here are a collections of article I found useful talking about DB2 index design.   http://www.quest-pipelines.com/newsletter-v5/0804_D.htm http://www-128.ibm.com/developerworks/db2/library/techarticle/0303kuznetsov/0303kuznetsov.html http://www-128.ibm.com/developerworks/db2/library/techarticle/0302kuznetsov/0302kuznetsov.html   To make the best of it, you need to think like the DB2 optimizer. grin:-).  

Posted in DB2 | 1 Comment

Unicode for Programmer

    Lately I need to read/write Java string (UTF-16) from/to file/MQ. Here is an excellent resource I found from Jason Orendorf. http://www.jorendorff.com/articles/unicode/   It also features how to do it in Python and in Windows .Net.    

Posted in java | Leave a comment

Apache configured as reverse proxy

There has been frequent needs for a reverse proxy server. a nice doc here: http://www.apacheweek.com/features/reverseproxies Apache 1.3 here: http://httpd.apache.org/docs/mod/mod_proxy.html Apache 2.0 http://httpd.apache.org/docs-2.0/mod/mod_proxy.html The #1 difference btw forward and reverse proxy is forward proxy doesn’t change the destionation server while the reverse … Continue reading

Posted in apache2, TCP | Leave a comment