<?xml version="1.0" encoding="UTF-8"?><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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chunhao&#039;s Blog &#187; OS</title>
	<atom:link href="http://chunhao.net/blog/category/os/feed/" rel="self" type="application/rss+xml" />
	<link>http://chunhao.net/blog</link>
	<description>Life happens. Love helps.</description>
	<lastBuildDate>Fri, 28 May 2021 12:36:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Slax Linux, with Chinese</title>
		<link>http://chunhao.net/blog/slax-linux-with-chinese/</link>
		<comments>http://chunhao.net/blog/slax-linux-with-chinese/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 16:54:48 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://chunhao86.cn/blog/slax-linux-with-chinese</guid>
		<description><![CDATA[A few days ago, I decided to installed linux on my 1GB USB Drive. In order for the ability to do some recovering when my system crashes(hope not) and for fun. After considering several distro, I chose slax linux. I think I&#8217;ve been influenced a lot by my friend Jiawei who had used slax linux [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>A few days ago, I decided to installed linux on my 1GB USB Drive. In order for the ability to do some recovering when my system crashes(hope not) and for fun.</p>
<p>After considering several  distro, I chose <a href="http://www.slax.org">slax linux</a>. I think I&#8217;ve been influenced a lot by my friend Jiawei who had used slax linux when his hard drive was down.</p>
<p>After installing slax linux on my USB drive correctly following the <a href="http://www.slax.org/documentation_install_slax.php">official manual</a>, I found it didn&#8217;t support Chinese at all. When I googled that, I found <a href="http://fanx.org.cn">fanx</a>, a localized slax. Since I am the people who like solving problems in a more challenge way, I didn&#8217;t choose that.</p>
<p>For the first thing, I downloaded the modules for i18n of Chinese packages from <a href="http://www.itsdisk.cn/mypane.aspx?Path=zzzz88%2fSlax%2fChinese/">here</a>. The only packages I needed are the files start with 001, 002, 003, 004, 010 and 011. Put them on  <font color="#33cccc">/slax/modules</font> on my USB drive.</p>
<p>After started it(don&#8217;t choose the &#8220;fresh mode&#8221; or &#8220;copy to ram&#8221; mode), modify <font color="#33cccc">/etc/profile.d/lang.sh</font>. Added the following lines:</p>
<blockquote><p>export LC_ALL=zh_CN.UTF-8</p>
<p>export LANG=zh_CN.UTF-8</p></blockquote>
<p>And commented all other lines by add &#8216;#&#8217; at the first of the line. So simple!</p>
<p>You may also want to use your favourite fonts. Then, copy the &#8216;.ttf&#8217; fonts to the folder  <font color="#33cccc">/usr/share/fonts/TTF</font></p>
<p>Every thing is OK now. After short configurations, it can display Chinese characters as well as with Chinese input method available. Let&#8217;s enjoying the beautiful, lightweight and portable linux.</p>
<p>Before writing <a href="http://www.testking.net/testking-70-647.htm">70-647</a> and <a href="http://www.testking.net/testking-640-816.htm">640-816</a>, make sure that basics like <a href="http://www.testking.net/testking-70-271.htm">70-271</a> and <a href="http://www.testking.net/testking-70-293.htm">70-293</a> are cleared well in advance for <a href="http://www.testking.net/testking-PMI-001.htm">PMI-001</a> and eventually <a href="http://www.testking.net/testking-350-018.htm">350-018</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chunhao.net/blog/slax-linux-with-chinese/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Interesting Unix Time</title>
		<link>http://chunhao.net/blog/interesting-unix-time/</link>
		<comments>http://chunhao.net/blog/interesting-unix-time/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 23:00:36 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://chunhao86.cn/blog/interesting-unix-time</guid>
		<description><![CDATA[If you set the preference of you system time, you will find a clock type called &#8220;UNIX time&#8220;. If &#8220;UNIX time&#8221; is selected, what will happen? Cool! This is the time here. Isn&#8217;t it interesting? Well, it may be confusing as hell, and you may ask what&#8217;s the time it is. Let&#8217;s investigate what&#8217;s Unix [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you set the preference of you system time, you will find a clock type called &#8220;<strong>UNIX time</strong>&#8220;.</p>
<p><a href="http://chunhao.net/blog/wp-content/uploads/2008/03/screenshot16.png" title="screenshot16.png"><img src="http://chunhao.net/blog/wp-content/uploads/2008/03/screenshot16.thumbnail.png" alt="screenshot16.png" /></a></p>
<p>If &#8220;UNIX time&#8221; is selected, what will happen?</p>
<p><a href="http://chunhao.net/blog/wp-content/uploads/2008/03/screenshot17.png" title="screenshot17.png"><img src="http://chunhao.net/blog/wp-content/uploads/2008/03/screenshot17.thumbnail.png" alt="screenshot17.png" /></a></p>
<p>Cool! This is the time here. Isn&#8217;t it interesting?  Well, it may be confusing as hell, and you may ask what&#8217;s the time it is. Let&#8217;s investigate what&#8217;s Unix Time.</p>
<p>Unix time is displayed in seconds elapsed since January 1, 1970. It is stored in a 32-bits integer, <em><strong>time_t</strong>. </em>So, it looks like this.</p>
<p>But there is a small issue there, say, as long as the largest integer a 31-bits(1 bit for sign bit) number can represent is  2^31 that is 2147483648. So large? What time it is? It is exactly 03:14:07am(GMT), January, 19th, 2038. This is the famous<strong> 2038</strong> problem. After this time, the variable will turn into 10000000000000000000000000000000, which is -2147483648 in decimal. Is that tricky? What&#8217;s the time then? May be 8:45:52pm, December, 13rd, 1901. Wow, it&#8217;s really a big problem, almost all the computer will be crashed at that time. Is that true? Of course, but I don&#8217;t think that will be a critical problem, because after 30 years, almost all the computer will be upgraded in to 64-bits or even 128-bits(256-bits?). The problem will be easily fixed then. So, just think it as a tricky, rather a problem.</p>
<p>At last, I want to say, enjoy your Unix time! You know, developers are the primary users of it.</p>
<p>Not all <a href="http://www.testking.net/testking-650-393.htm">650-393</a> students are qualified for <a href="http://www.testking.net/testking-642-446.htm">642-446</a> or <a href="http://www.testking.net/testking-642-503.htm">642-503</a>. They need to write <a href="http://www.testking.net/testking-156-215.htm">156-215</a> as well as <a href="http://www.testking.net/testking-642-436.htm">642-436</a> in order to prepare for <a href="http://www.testking.net/testking-70-284.htm">70-284</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chunhao.net/blog/interesting-unix-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
