<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2" -->
<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>OHeHLium liang~ &#187; sitelog</title>
	<link>http://www.ohehlium.com/log</link>
	<description>Say something~</description>
	<pubDate>Mon, 13 Oct 2008 00:51:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>
	<language>en</language>
			<item>
		<title>Another theme</title>
		<link>http://www.ohehlium.com/log/2006/08/22/53/</link>
		<comments>http://www.ohehlium.com/log/2006/08/22/53/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 02:05:46 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/2006/08/22/53/</guid>
		<description><![CDATA[Again I changed the theme. It&#8217;s really not because I was so energetic as Scorp   who will change her theme/banner frequently to meet her kinda artist&#8217;s needs :p , but because I would like to settle down with something that I would like to hold. This blog.txt theme by Scott is neat and [...]]]></description>
			<content:encoded><![CDATA[<p>Again I changed the theme. It&#8217;s really not because I was so energetic as <a title="Jlog" href="http://www.ohehlium.com/jlog">Scorp</a>   who will change her theme/banner frequently to meet her kinda artist&#8217;s needs :p , but because I would like to settle down with something that I would like to hold. This<a rel="follow" title="blog.txt for WordPress" href="http://www.plaintxt.org/themes/blogtxt/"> blog.txt</a> theme by <a rel="follow" title="scottwallick.com" href="http://scottwallick.com/">Scott</a> is neat and clean. What&#8217;s more important, I am using it for <a title="一亩二分地" href="http://www.ohehlium.com/journal">our journal</a>   already. So I want to use the same theme, then I can maintain them in a similar way. Besides, I could test something first here using the same theme and then later apply it to <a title="一亩二分地" href="http://www.ohehlium.com/journal">our journal</a>, which is thought to be more like production run <img src='http://www.ohehlium.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/08/22/53/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Multi-byte Character</title>
		<link>http://www.ohehlium.com/log/2006/08/21/multi-byte-string/</link>
		<comments>http://www.ohehlium.com/log/2006/08/21/multi-byte-string/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 15:30:49 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[code]]></category>

		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/2006/08/21/multi-byte-string/</guid>
		<description><![CDATA[It was generally a nice experience along the way using wordpress to support our OHeHLium site. You can always find easy-to-use ways to meet various needs, such as audio plugin for scorp&#8217;s demanding for playing audio/mp3 within her post, and WPvideo 1.02 for displaying Stone&#8217;s great finding from Youtube.
Yet, there were some defects. The most [...]]]></description>
			<content:encoded><![CDATA[<p>It was generally a nice experience along the way using wordpress to support our OHeHLium site. You can always find easy-to-use ways to meet various needs, such as <a title="audio" href="http://www.1pixelout.net/code/audio-player-wordpress-plugin/">audio plugin</a> for <a href="http://www.ohehlium.com/jlog/?p=106">scorp&#8217;s demanding</a> for playing audio/mp3 within her post, and <a href="http://www.skarcha.com/wp-plugins/wpvideo/">WPvideo 1.02</a> for displaying <a href="http://www.ohehlium.com/journal/2006/08/20/95/">Stone&#8217;s great finding</a> from Youtube.</p>
<p>Yet, there were some defects. The most annoying is the chinese character support. I should say this problem shouldn&#8217;t be ascribed to wordpress, but I would rather be a little harsh here :p . When displaying the_excerpt or something similar, there will be some unknown character like &#8220;,&#8221; at the end. That&#8217;s because the_excerpt tends/(is supposed to) to retrieve only part of the whole content, such as the first 150 characters. And then the problem comes out: the script will get the 150 bytes instead of characters (like substr in php), which is not a problem for English characters but a nightmare for Chinese. Usually it&#8217;s 2 bytes for Chinese character. So if fortunatelly, there are only Chinese character or mingled with even number English characters, it will not be a problem using 150 or any even number to get the short version. But if not, bad things will happen. It seems only a 50/50 chance, not that bad. The UTF-8 encoding then uses 3 bytes for a Chinese character, so a larger chance for bad things <img src='http://www.ohehlium.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Anyway, it&#8217;s multi-byte for Chinese characters. So I need to find a way to resolve this, as the most posts we are writing are composed of both Chinese and English characters.</p>
<p>After googling, this was the solution for PHP:</p>
<p>mb_internal_encoding(&#8221;UTF-8&#8243;);<br />
$the_excerpt=mb_substr($the_content, 0, 16);</p>
<p>However, I was still not able to deal with the mysql command directly, though it is said <a href="http://dev.mysql.com/doc/refman/4.1/en/string-functions.html">SUBSTRING in mysql is multi-byte</a> safe. My guess would be the setting for the mysql server is not utf8, but I was no luck only trying to use &#8220;<a title="set names" href="http://mysql.com/doc/refman/4.1/en/charset-connection.html">SET NAMES &#8216;utf8&#8242;</a>&#8220;. There always is something more for learning <img src='http://www.ohehlium.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/08/21/multi-byte-string/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Now, the 3rd time</title>
		<link>http://www.ohehlium.com/log/2006/05/22/now-the-3rd-time/</link>
		<comments>http://www.ohehlium.com/log/2006/05/22/now-the-3rd-time/#comments</comments>
		<pubDate>Tue, 23 May 2006 02:20:15 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[linux exp.]]></category>

		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/2006/05/22/now-the-3rd-time/</guid>
		<description><![CDATA[1st year in US, what we are playing about the web is scorp&#8217;s famous Xanga (see 又开了块地 for more information), a photo album set up for our parents to view our photos (which is based on Jalbum and hosted by scorp&#8217;s Stony Brook&#8217;s webdrive back then) and the Xus&#8217; logo with animation enabled&#38;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;br /&#38;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; &#38;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&#38;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; [...]]]></description>
			<content:encoded><![CDATA[<p>1st year in US, what we are playing about the web is <a href="http://www.xanga.com/xcl_yj">scorp&#8217;s famous Xanga</a> (see <a rel="bookmark" title="Permanent Link to 又开了块地" href="http://www.ohehlium.com/jlog/?p=4">又开了块地</a> for more information), a photo album set up for our parents to view our<a href="http://photo.ohehlium.com/index.html"> photos</a> (which is based on Jalbum and hosted by scorp&#8217;s Stony Brook&#8217;s webdrive back then) and the Xus&#8217; logo with animation enabled<iframe width="40%" scrolling="no" height="200" frameborder="0" src="http://www.princeton.edu/~jieyuan">&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;,&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; </iframe></p>
<p>The 2nd year, I began to be toying with linux and set up our own web server (with url as scorparies.princeton.edu at first, then www.ohehlium.com). Along with that, I was attracted to the multifuntional <a href="http://tikiwiki.org/tiki-index.php">tiki</a> system and used it on our <a href="http://www.ohehlium.com/tiki/tiki-view_articles.php">site</a>. However, it turned out too slow to visit even hosted on a P4/512Mb machine (I know just a pre-P3/128Mb machine can already do a pretty good job for some other system; and currently this blog powered by wordpress is hosted on a P3/256Mb PC). So I had to disable many functions and gradually I lost interest managing that system. During that period, I was also learning perl so that I played some scipts on the server, but the web page functioned more like a GUI to me and rigorously I was not using perl to develop our website. Meanwhile, I read or learned something about php, which is quite perl-like but designed specifically for web scripting. Adventous I was, I even spent weeks building a small site for my research projects by php when my boss was away travelling. However, that site sort of sank with the slow progess of my project.</p>
<p>Time flies quickly and now it&#8217;s the 3rd year. I am playing with the web again. As I settled down the blog with wordpress, the wiki with the mediawiki and the photo album with gallery2, instead of intergrating all the functions together, I am turning to individual functional component for solution (though I don&#8217;t have a forum candidate now). Interestingly, as to some simple scripting, instead of perl, this year, I am learning and using python. I hope this time everything will be settled and help build a better site:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/05/22/now-the-3rd-time/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thoughts on Wiki</title>
		<link>http://www.ohehlium.com/log/2006/05/11/thoughts-on-wiki/</link>
		<comments>http://www.ohehlium.com/log/2006/05/11/thoughts-on-wiki/#comments</comments>
		<pubDate>Fri, 12 May 2006 04:39:56 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/2006/05/11/thoughts-on-wiki/</guid>
		<description><![CDATA[Getting late now, but I do want to add a comment that I may not use wiki as much often as previously.
&#8220;If weblogs are monologs, and news-style forums are dialogues, a wiki is like a catalog of knowledge&#8221; However, I am almost the only one at wiki recently. And because of large volume of spams [...]]]></description>
			<content:encoded><![CDATA[<p>Getting late now, but I do want to add a comment that I may not use <a target="_blank" href="http://www.ohehlium.com/log/wiki.ohehlium.com">wiki</a> as much often as previously.</p>
<p><em><strong>&#8220;If weblogs are monologs, and news-style forums are dialogues, a wiki is like a catalog of knowledge&#8221; </strong></em>However, I am almost the only one at wiki recently. And because of large volume of spams at the site, I had to hack into the php file and assign the editing right to specific users (Today, actually I saw an amusing sentence: &#8221; if Pfizer is going to pay, I won&#8217;t get angry with these Viagra ads&#8221;). And actually I am just building the wiki as my own knowledge base so why not use this blog instead.</p>
<p>Yes, I am going to switch. I could build pages for trivial listings and if needed I can write something down in posts as in different categories. Now I also can post from email. Great, so I&#8217;ll go with it.</p>
<p>Meanwhile, I would still keep the wiki running as it is but would contribute little there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/05/11/thoughts-on-wiki/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Post from email</title>
		<link>http://www.ohehlium.com/log/2006/05/11/post-from-email/</link>
		<comments>http://www.ohehlium.com/log/2006/05/11/post-from-email/#comments</comments>
		<pubDate>Fri, 12 May 2006 03:37:24 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/2006/05/11/post-from-email/</guid>
		<description><![CDATA[Hello, All
Currently I am writing in an email client, and I know what I write here will  be next minute in the post as you see here on the web. The feeling is so  great.
Back last year, I already learned that mail2forum  can be used to both post and  receive posts [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, All</p>
<p>Currently I am writing in an email client, and I know what I write here will  be next minute in the post as you see here on the web. The feeling is so  great.</p>
<p>Back last year, I already learned that <a target="_blank" href="http://www.mail2forum.com/wiki/Main_Page">mail2forum</a>  can be used to both post and  receive posts to/from forums via email. I tried to make it work, however, I  was daunted by setting the sendmail server and receiving spams and finally  gave up.</p>
<p>This time, when helping scorp build her new <a href="http://www.ohehlium.com/jlog">blog</a>, I find the wordpress also  has this post-via-email function. I couldn&#8217;t help but play with it. With the  help of plugin: <a target="_blank" href="http://www.economysizegeek.com/?page_id=395">postie</a> , I made  this function work properly with Gmail account now.</p>
<p>From now on, I can simply forward interesting emails to my secret gmail  account and then I can have it here on the web. Nifty <img src='http://www.ohehlium.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Liang</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Note: with modification of the format after email posting, though</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/05/11/post-from-email/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wiki OHeHLium</title>
		<link>http://www.ohehlium.com/log/2006/03/03/wiki-ohehlium/</link>
		<comments>http://www.ohehlium.com/log/2006/03/03/wiki-ohehlium/#comments</comments>
		<pubDate>Fri, 03 Mar 2006 20:02:37 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/?p=6</guid>
		<description><![CDATA[wiki.ohehlium.com has been changed a lot recently. Especially, the SideBar takes more functions now.
The wiki seems going to be my trash bin. Everything worthy of 2 cents will be deposited there  I will try hard to classify the stuffs there in a decent manner, at least later, I still can find what I have [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" title="wiki" href="http://wiki.ohehlium.com">wiki.ohehlium.com</a> has been changed a lot recently. Especially, the SideBar takes more functions now.</p>
<p>The wiki seems going to be my trash bin. Everything worthy of 2 cents will be deposited there <img src='http://www.ohehlium.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I will try hard to classify the stuffs there in a decent manner, at least later, I still can find what I have there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/03/03/wiki-ohehlium/feed/</wfw:commentRss>
		</item>
		<item>
		<title>2nd post</title>
		<link>http://www.ohehlium.com/log/2006/02/23/2nd-post/</link>
		<comments>http://www.ohehlium.com/log/2006/02/23/2nd-post/#comments</comments>
		<pubDate>Thu, 23 Feb 2006 22:42:14 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/?p=4</guid>
		<description><![CDATA[Wordpress works great with Gallery2 through the help of g2image plugin. Later I will try to embed the Gallery2 in the Wordpress as this site.
But already, I can use the image insert function of the g2image plugin to show one picture from our photo album .

]]></description>
			<content:encoded><![CDATA[<p>Wordpress works great with Gallery2 through the help of g2image <a title="g2image for wordpress" target="_blank" href="http://g2image.steffensenfamily.com/index.php?title=Main_Page">plugin</a>. Later I will try to embed the Gallery2 in the Wordpress as <a title="WPG2" target="_blank" href="http://www.steffensenfamily.com/">this site</a>.</p>
<p>But already, I can use the image insert function of the g2image plugin to show one picture from our <a title="photo" target="_blank" href="http://www.ohehlium.com/gallery2/">photo album</a> .</p>
<p><a href="http://www.ohehlium.com/gallery2/v/051224/DSC00728.JPG.html?g2_GALLERYSID=144fc48f1344789852acdfa1806f6346"><img width="150" height="150" alt="DSC00728" title="DSC00728" src="http://www.ohehlium.com/gallery2/d/156-2/DSC00728.JPG?g2_GALLERYSID=144fc48f1344789852acdfa1806f6346" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/02/23/2nd-post/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress</title>
		<link>http://www.ohehlium.com/log/2006/02/23/wordpress/</link>
		<comments>http://www.ohehlium.com/log/2006/02/23/wordpress/#comments</comments>
		<pubDate>Thu, 23 Feb 2006 21:41:46 +0000</pubDate>
		<dc:creator>liang</dc:creator>
		
		<category><![CDATA[sitelog]]></category>

		<guid isPermaLink="false">http://www.ohehlium.com/log/?p=3</guid>
		<description><![CDATA[Eventually, I decided to use Wordpress as my blog tool.
Launched at 2.23, a good day 
]]></description>
			<content:encoded><![CDATA[<p>Eventually, I decided to use Wordpress as my blog tool.</p>
<p>Launched at 2.23, a good day <img src='http://www.ohehlium.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ohehlium.com/log/2006/02/23/wordpress/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
