<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/1.5.1-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
	<title>Tom Shen's Blog</title>
	<link>http://tomshen.blogsome.com</link>
	<description>Air,Java,Love</description>
	<pubDate>Wed, 20 Jun 2007 13:03:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1-alpha</generator>
	<language>en</language>

		<item>
		<title>I am sick with grinding my teeth in sleep</title>
		<link>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep-2/</link>
		<comments>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep-2/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 13:02:55 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Love</category>
		<guid>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep-2/</guid>
		<description><![CDATA[<p>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</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>My dear wife told me that I grinded my teeth last night before I got up this morning. </p>
	<p>What a illness!</p>
	<p>Anybody tell me how to cure this disease? thanks anyway</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep-2/feed/</wfw:commentRss>
	</item>
		<item>
		<title>I am sick with grinding my teeth in sleep</title>
		<link>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep/</link>
		<comments>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 13:02:48 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Love</category>
		<guid>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep/</guid>
		<description><![CDATA[<p>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.</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>My dear wife told me that I grinded my teeth last night before I got up this morning. </p>
	<p>What a illness!</p>
	<p>Anybody tell me how to cure this disease.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/06/20/i-am-sick-with-grinding-my-teeth-in-sleep/feed/</wfw:commentRss>
	</item>
		<item>
		<title>java: Using ClassLoader to read a properties file in classes</title>
		<link>http://tomshen.blogsome.com/2007/05/19/java-using-classloader-to-read-a-properties-file-in-classes/</link>
		<comments>http://tomshen.blogsome.com/2007/05/19/java-using-classloader-to-read-a-properties-file-in-classes/#comments</comments>
		<pubDate>Sat, 19 May 2007 14:15:16 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Java</category>
		<guid>http://tomshen.blogsome.com/2007/05/19/java-using-classloader-to-read-a-properties-file-in-classes/</guid>
		<description><![CDATA[<p>Properties properties = null;
&nbsp;&nbsp;String CONFIGURETIONFILE = &quot;com/travelsky/titi/common/GlobalParameters.properties&quot;;
&nbsp;&nbsp;if (properties == null) {
&nbsp;&nbsp;&nbsp;try {
&nbsp;&nbsp;&nbsp;&nbsp;properties = new Properties();
&nbsp;&nbsp;&nbsp;&nbsp;ClassLoader cl = Thread.currentThread().getContextClassLoader();
&nbsp;&nbsp;&nbsp;&nbsp;InputStream inputStream = null;
&nbsp;&nbsp;&nbsp;&nbsp;if (cl != null) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inputStream = cl.getResourceAsStream(CONFIGURETIONFILE);
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;if (inputStream != null) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;properties.load(inputStream);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inputStream.close();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//set database parameters
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.databaseType = Integer.parseInt(properties.getProperty(&quot;database.databaseType&quot;));
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.driverClassName = properties.getProperty(&quot;database.driverClassName&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.url = properties.getProperty(&quot;database.url&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.username = properties.getProperty(&quot;database.username&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.password = properties.getProperty(&quot;database.password&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//set uploadFileDir
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GlobalParameters.uploadFileDir=properties.getProperty(&quot;uploadFileDir&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//set userId and password
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GlobalParameters.userId=properties.getProperty(&quot;userid&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GlobalParameters.password=properties.getProperty(&quot;password&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(&quot;Getting global parameters successfully!&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;} catch (Exception e) {
&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();
&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(&quot;ERRORS:error on [...]</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>Properties properties = null;<br />
&nbsp;&nbsp;String <span class="caps">CONFIGURETION</span><em><span class="caps">FILE </span>= &quot;com/travelsky/titi/common/GlobalParameters.properties&quot;;<br />
&nbsp;&nbsp;if (properties == null) {<br />
&nbsp;&nbsp;&nbsp;try {<br />
&nbsp;&nbsp;&nbsp;&nbsp;properties = new Properties();<br />
&nbsp;&nbsp;&nbsp;&nbsp;ClassLoader cl = Thread.currentThread().getContextClassLoader();<br />
&nbsp;&nbsp;&nbsp;&nbsp;InputStream inputStream = null;<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (cl != null) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inputStream = cl.getResourceAsStream(CONFIGURETION</em><span class="caps">FILE</span>);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (inputStream != null) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;properties.load(inputStream);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inputStream.close();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//set database parameters<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.databaseType = Integer.parseInt(properties.getProperty(&quot;database.databaseType&quot;));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.driverClassName = properties.getProperty(&quot;database.driverClassName&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.url = properties.getProperty(&quot;database.url&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.username = properties.getProperty(&quot;database.username&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DbUtils.password = properties.getProperty(&quot;database.password&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//set uploadFileDir<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GlobalParameters.uploadFileDir=properties.getProperty(&quot;uploadFileDir&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//set userId and password<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GlobalParameters.userId=properties.getProperty(&quot;userid&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GlobalParameters.password=properties.getProperty(&quot;password&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(&quot;Getting global parameters successfully!&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;} catch (Exception e) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<br />
&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(&quot;ERRORS:error on getting global parameters!&quot;);<br />
&nbsp;&nbsp;&nbsp;}</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/05/19/java-using-classloader-to-read-a-properties-file-in-classes/feed/</wfw:commentRss>
	</item>
		<item>
		<title>a funny scrawl</title>
		<link>http://tomshen.blogsome.com/2007/05/19/a-funny-scrawl/</link>
		<comments>http://tomshen.blogsome.com/2007/05/19/a-funny-scrawl/#comments</comments>
		<pubDate>Sat, 19 May 2007 13:54:45 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/05/19/a-funny-scrawl/</guid>
		<description><![CDATA[<pre><code>This scrawl was found on the road behind Fortune Plaza.
It must be left by an angry street hawker.
</code></pre>
]]></description>
			<content:encoded><![CDATA[	<p>
<p><a href="http://tomshen.blogsome.com/go.php?u=http%3A%2F%2Ftomshen.blogsome.com%2Fimages%2FIMG0043A.jpg&amp;i=0&amp;c=8846bc20cbff52ad88612803e1c82a17efe9d84e"><img title="" height="135" alt="" src="http://tomshen.blogsome.com/images/thumb-IMG0043A.jpg" width="180" border="0" /></a></p>
	<p>This scrawl was found on the road behind Fortune Plaza.</p>
	<p>It must be left by an angry street hawker.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/05/19/a-funny-scrawl/feed/</wfw:commentRss>
	</item>
		<item>
		<title>being a driver(I)</title>
		<link>http://tomshen.blogsome.com/2007/05/19/being-a-driveri/</link>
		<comments>http://tomshen.blogsome.com/2007/05/19/being-a-driveri/#comments</comments>
		<pubDate>Sat, 19 May 2007 13:39:20 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/05/19/being-a-driveri/</guid>
		<description><![CDATA[<pre><code>continued&amp;#8230;
</code></pre>
]]></description>
			<content:encoded><![CDATA[	<p>
<p><a href="http://tomshen.blogsome.com/go.php?u=http%3A%2F%2Ftomshen.blogsome.com%2Fimages%2Fbeing%2520a%2520driver-I-20070513_001.jpeg&amp;i=0&amp;c=e5ddfd07f42dea894a5a892f0cec9d812f632cb9"><img title="being a driver-I" height="83" alt="being a driver-I" src="http://tomshen.blogsome.com/images/thumb-being%20a%20driver-I-20070513_001.jpeg" width="180" border="0" /></a></p>
	<p>continued&#8230;</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/05/19/being-a-driveri/feed/</wfw:commentRss>
	</item>
		<item>
		<title>I am being a driver</title>
		<link>http://tomshen.blogsome.com/2007/04/18/i-am-being-a-driver/</link>
		<comments>http://tomshen.blogsome.com/2007/04/18/i-am-being-a-driver/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 14:46:17 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/04/18/i-am-being-a-driver/</guid>
		<description><![CDATA[<p>&nbsp;Test1: 91%
    &nbsp;Test2 is coming
    the training car</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>&nbsp;Test1: 91%</p>
	<p>&nbsp;Test2 is coming</p>
	<p>the training car<a href="http://tomshen.blogsome.com/go.php?u=http%3A%2F%2Ftomshen.blogsome.com%2Fimages%2FIMG0045A.jpg&amp;i=0&amp;c=416918d2344cb8a2663ef07c82f29a40a79a6cc2"><img title="" height="135" alt="" src="http://tomshen.blogsome.com/images/thumb-IMG0045A.jpg" width="180" border="0" /></a></p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/04/18/i-am-being-a-driver/feed/</wfw:commentRss>
	</item>
		<item>
		<title>Congratulations</title>
		<link>http://tomshen.blogsome.com/2007/03/29/congratulations/</link>
		<comments>http://tomshen.blogsome.com/2007/03/29/congratulations/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 15:52:11 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/03/29/congratulations/</guid>
		<description><![CDATA[<p>I got the PMP credential!</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>I got the <span class="caps">PMP</span> credential!</p>
	<p><a href="http://tomshen.blogsome.com/go.php?u=http%3A%2F%2Ftomshen.blogsome.com%2Fimages%2Fpmp-20070328.jpg&amp;i=0&amp;c=2821fd4ee504b611258747405a9dd7fb6cfd0905"><img title="PMP Certification" height="74" alt="PMP Certification" src="http://tomshen.blogsome.com/images/thumb-pmp-20070328.jpg" width="180" border="0" /></a></p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/03/29/congratulations/feed/</wfw:commentRss>
	</item>
		<item>
		<title>PMP</title>
		<link>http://tomshen.blogsome.com/2007/03/17/pmp/</link>
		<comments>http://tomshen.blogsome.com/2007/03/17/pmp/#comments</comments>
		<pubDate>Sat, 17 Mar 2007 13:12:41 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/03/17/pmp/</guid>
		<description><![CDATA[<p>WIN-WIN, Good Luck!</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p><span class="caps">WIN</span>-WIN, Good Luck!</p>
	<p><a href="http://tomshen.blogsome.com/go.php?u=http%3A%2F%2Ftomshen.blogsome.com%2Fimages%2FCrack%2520PMP%2520-by%2520Tom-20061212.jpeg&amp;i=0&amp;c=d6e43ddd8a8835df28cd3f1b6bab592d7fcb60cf"><img title="Crack PMP" height="122" alt="Crack PMP" src="http://tomshen.blogsome.com/images/thumb-Crack%20PMP%20-by%20Tom-20061212.jpeg" width="180" border="0" /></a></p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/03/17/pmp/feed/</wfw:commentRss>
	</item>
		<item>
		<title>Keep Silent</title>
		<link>http://tomshen.blogsome.com/2007/03/03/keep-silent/</link>
		<comments>http://tomshen.blogsome.com/2007/03/03/keep-silent/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 14:42:12 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/03/03/keep-silent/</guid>
		<description><![CDATA[<p>Just keep silent for a while!</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>Just keep silent for a while!</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/03/03/keep-silent/feed/</wfw:commentRss>
	</item>
		<item>
		<title>I re-lost http://tomshen.wordpress.com/</title>
		<link>http://tomshen.blogsome.com/2007/01/08/i-re-lost-httptomshenwordpresscom/</link>
		<comments>http://tomshen.blogsome.com/2007/01/08/i-re-lost-httptomshenwordpresscom/#comments</comments>
		<pubDate>Mon, 08 Jan 2007 05:42:46 +0000</pubDate>
		<dc:creator>tomshen</dc:creator>
		
	<category>Miscellaneous</category>
		<guid>http://tomshen.blogsome.com/2007/01/08/i-re-lost-httptomshenwordpresscom/</guid>
		<description><![CDATA[<p>I re-lost my old blog http://tomshen.wordpress.com/ for the government&#8217;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</p>
]]></description>
			<content:encoded><![CDATA[	<p>
<p>I re-lost my old blog http://tomshen.wordpress.com/ for the government&#8217;s re-banning to wordpress or the earthquake in Taiwan or something.<br />
:(<br />
So, please remember this address http://tomshen.blogsome.com/ as my permernent blog</p></p>
]]></content:encoded>
			<wfw:commentRss>http://tomshen.blogsome.com/2007/01/08/i-re-lost-httptomshenwordpresscom/feed/</wfw:commentRss>
	</item>
	</channel>
</rss>
