June 20, 2007

I am sick with grinding my teeth in sleep

My dear wife told me that I grinded my teeth last night before I got up this morning.

What a illness!

Anybody tell me how to cure this disease? thanks anyway

I am sick with grinding my teeth in sleep

My dear wife told me that I grinded my teeth last night before I got up this morning.

What a illness!

Anybody tell me how to cure this disease.

May 19, 2007

java: Using ClassLoader to read a properties file in classes

Properties properties = null;
  String CONFIGURETIONFILE = "com/travelsky/titi/common/GlobalParameters.properties";
  if (properties == null) {
   try {
    properties = new Properties();
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    InputStream inputStream = null;
    if (cl != null) {
     inputStream = cl.getResourceAsStream(CONFIGURETION
FILE);
    }
    if (inputStream != null) {
     properties.load(inputStream);
     inputStream.close();
     //set database parameters
     DbUtils.databaseType = Integer.parseInt(properties.getProperty("database.databaseType"));
     DbUtils.driverClassName = properties.getProperty("database.driverClassName");
     DbUtils.url = properties.getProperty("database.url");
     DbUtils.username = properties.getProperty("database.username");
     DbUtils.password = properties.getProperty("database.password");
     //set uploadFileDir
     GlobalParameters.uploadFileDir=properties.getProperty("uploadFileDir");
     //set userId and password
     GlobalParameters.userId=properties.getProperty("userid");
     GlobalParameters.password=properties.getProperty("password");
     
     System.out.println("Getting global parameters successfully!");
    }
    
   } catch (Exception e) {
    e.printStackTrace();
    System.out.println("ERRORS:error on getting global parameters!");
   }

a funny scrawl

This scrawl was found on the road behind Fortune Plaza.

It must be left by an angry street hawker.

being a driver(I)

being a driver-I

continued…

April 18, 2007

I am being a driver

 Test1: 91%

 Test2 is coming

the training car

March 29, 2007

Congratulations

I got the PMP credential!

PMP Certification

March 17, 2007

PMP

WIN-WIN, Good Luck!

Crack PMP

March 3, 2007

Keep Silent

Just keep silent for a while!

January 8, 2007

I re-lost http://tomshen.wordpress.com/

I re-lost my old blog http://tomshen.wordpress.com/ for the government’s re-banning to wordpress or the earthquake in Taiwan or something.
:(
So, please remember this address http://tomshen.blogsome.com/ as my permernent blog