<?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>Shiqi Yu's Homepage &#187; Linux</title>
	<atom:link href="http://yushiqi.cn/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://yushiqi.cn</link>
	<description></description>
	<lastBuildDate>Tue, 13 Jul 2010 09:22:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下Java程序将汉字显示为方块的解决方法</title>
		<link>http://yushiqi.cn/archives/380</link>
		<comments>http://yushiqi.cn/archives/380#comments</comments>
		<pubDate>Mon, 13 Apr 2009 06:20:04 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/?p=380</guid>
		<description><![CDATA[找一个中文字体文件，如wqy-zenhei.ttf或simsun.ttf，复制该文件到此目录中
/usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/fonts/fallback
如果目录不存在，请手动创建，另外目录中的java-6-sun-1.6.0.13请根据实际情况调整。
]]></description>
			<content:encoded><![CDATA[<p>找一个中文字体文件，如wqy-zenhei.ttf或simsun.ttf，复制该文件到此目录中</p>
<p>/usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/fonts/fallback</p>
<p>如果目录不存在，请手动创建，另外目录中的java-6-sun-1.6.0.13请根据实际情况调整。</p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/380/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Emacs中以十六进制查看文件</title>
		<link>http://yushiqi.cn/archives/374</link>
		<comments>http://yushiqi.cn/archives/374#comments</comments>
		<pubDate>Tue, 07 Apr 2009 09:46:23 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/374</guid>
		<description><![CDATA[打开文件后，用指令：
m-x hexl-mode
]]></description>
			<content:encoded><![CDATA[<p>打开文件后，用指令：<br />
m-x hexl-mode</p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/374/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GIT installation</title>
		<link>http://yushiqi.cn/archives/372</link>
		<comments>http://yushiqi.cn/archives/372#comments</comments>
		<pubDate>Tue, 07 Apr 2009 01:04:05 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/372</guid>
		<description><![CDATA[apt-get install git-core
开始apt-get install git，竟然给安装了gnuit，搜索了一下，有git-cola, git-core, git-cvs, git-daemon-run, git-doc, git-email, git-gui, git-load-dirs, git-svn, gitg &#8230;晕了
我只是想使用一下git clone而已，git命令在git-core里。
]]></description>
			<content:encoded><![CDATA[<p>apt-get install git-core</p>
<p>开始apt-get install git，竟然给安装了gnuit，搜索了一下，有git-cola, git-core, git-cvs, git-daemon-run, git-doc, git-email, git-gui, git-load-dirs, git-svn, gitg &#8230;晕了</p>
<p>我只是想使用一下git clone而已，git命令在git-core里。</p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/372/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>文泉驿微米黑：Google Droid的开源衍生字体</title>
		<link>http://yushiqi.cn/archives/300</link>
		<comments>http://yushiqi.cn/archives/300#comments</comments>
		<pubDate>Tue, 30 Dec 2008 05:02:00 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/?p=300</guid>
		<description><![CDATA[汉字历史源远流长，每个中国人都以之为骄傲。但是在文泉驿项目之前，我们几乎没有可用的开源（or免费）字体。要使用中文字体（如宋体、楷体等），首先需要获得字体制作公司的授权，比如北大方正。Windows里自带的字体都是微软购买的，是不可随意使用的，比如用到Linux系统中。也就是说，我们在电脑上使用我们自己的文字，需要直接或者间接去购买，没有免费方案可用的。按理说，政府相关部门应该制作一些常用的字体供公众免费使用，但是目前政府却没有这样做。
这项“艰巨且神圣”（我很少用这类很夸张的词汇，不过在这儿我还是忍不住用了）的任务现在由Harvard Medical School的研究人员方骞骞（FangQ）领导进行，项目名叫“文泉驿”，网站 http://wenq.org，由许多志愿者自发制作中文字体。我相信在中文信息化的历史上，将会有一块很明显的“碑”，上面刻有“文泉驿”。现在文泉驿新启动了“微米黑”字体制作，在这儿给做一下广告，希望感兴趣的朋友去“加砖添瓦”。
文泉驿微米黑：Google Droid的开源衍生字体
http://wenq.org/forum/viewtopic.php?f=4&#38;t=748
Droid字体系是Google包含在著名的开源手机平台Android系统中的默认字体，其中的Droid Sans Fallback包含CJK标准汉字16000余个，是目前所知为数不多的开源中文字体之一(也是继文泉驿正黑之后的第二个开源中文黑体)。由于该字体的 设计目标为手机等嵌入式设备，与其他常见中文字体比较，一个显著的优点是文件极为精简，只有不到3M。另外该字体汉字字型设计也非常优雅，可以与 Windows/Mac OS系统中的界面字体媲美。
文泉驿项目在过去的四年中致力于开源中文字体开发，很多发布的字体作品已经得到国内 外Linux发行版的广泛采用。在上个月末，Google的Android开发团队明确了Droid字体授权条款之后，文泉驿的开发者正式启动了对 Droid字体的补充和优化工作。该子项目的首期目标为补充Droid中所缺少的4500个GBK国家标准汉字。
目前，文泉驿的开发者采 用Ajax/Canvas/Persistent Storage等Web编程技术，完成了汉字组字界面的开发工作。用户不需要安装任何特殊的软件，仅通过浏览器(Firefox 3.0+)便可以参与汉字补全工作。为了早日让大家使用到这个开源字体，我们诚邀广大开源爱好者和使用者积极参与这个字体的开发。这项开发不要求用户拥有 任何专业编程知识，只要会写汉字就可以参与。
请感兴趣的朋友首先浏览我们的Flash动画演示，并理解制作工序和要求：
http://wenq.org/demo/fontopia_droid_tutorial.htm
进入字体的开发界面，请浏览文泉驿主页: http://wenq.org/
并点击页面中间需要制作的汉字列表。
由于字符编辑界面程序采用了部分最新的网页技术，目前只有Firefox 3.0以及更高版本支持，请使用其他浏览器的朋友下载并使用Firefox 3.0进行参与(下载地址 http://www.mozilla.com/firefox/ )。
]]></description>
			<content:encoded><![CDATA[<p>汉字历史源远流长，每个中国人都以之为骄傲。但是在文泉驿项目之前，我们几乎没有可用的开源（or免费）字体。要使用中文字体（如宋体、楷体等），首先需要获得字体制作公司的授权，比如北大方正。Windows里自带的字体都是微软购买的，是不可随意使用的，比如用到Linux系统中。也就是说，我们在电脑上使用我们自己的文字，需要直接或者间接去购买，没有免费方案可用的。按理说，政府相关部门应该制作一些常用的字体供公众免费使用，但是目前政府却没有这样做。</p>
<p>这项“艰巨且神圣”（我很少用这类很夸张的词汇，不过在这儿我还是忍不住用了）的任务现在由Harvard Medical School的研究人员方骞骞（FangQ）领导进行，项目名叫“文泉驿”，网站 http://wenq.org，由许多志愿者自发制作中文字体。我相信在中文信息化的历史上，将会有一块很明显的“碑”，上面刻有“文泉驿”。现在文泉驿新启动了“微米黑”字体制作，在这儿给做一下广告，希望感兴趣的朋友去“加砖添瓦”。</p>
<blockquote><p><strong>文泉驿微米黑：Google Droid的开源衍生字体</strong></p>
<p>http://wenq.org/forum/viewtopic.php?f=4&amp;t=748</p>
<p>Droid字体系是Google包含在著名的开源手机平台Android系统中的默认字体，其中的Droid Sans Fallback包含CJK标准汉字16000余个，是目前所知为数不多的开源中文字体之一(也是继文泉驿正黑之后的第二个开源中文黑体)。由于该字体的 设计目标为手机等嵌入式设备，与其他常见中文字体比较，一个显著的优点是文件极为精简，只有不到3M。另外该字体汉字字型设计也非常优雅，可以与 Windows/Mac OS系统中的界面字体媲美。</p>
<p>文泉驿项目在过去的四年中致力于开源中文字体开发，很多发布的字体作品已经得到国内 外Linux发行版的广泛采用。在上个月末，Google的Android开发团队明确了Droid字体授权条款之后，文泉驿的开发者正式启动了对 Droid字体的补充和优化工作。该子项目的首期目标为补充Droid中所缺少的4500个GBK国家标准汉字。</p>
<p>目前，文泉驿的开发者采 用Ajax/Canvas/Persistent Storage等Web编程技术，完成了汉字组字界面的开发工作。用户不需要安装任何特殊的软件，仅通过浏览器(Firefox 3.0+)便可以参与汉字补全工作。为了早日让大家使用到这个开源字体，我们诚邀广大开源爱好者和使用者积极参与这个字体的开发。这项开发不要求用户拥有 任何专业编程知识，只要会写汉字就可以参与。</p>
<p>请感兴趣的朋友首先浏览我们的Flash动画演示，并理解制作工序和要求：<br />
<!-- m --><a class="postlink" href="http://wenq.org/demo/fontopia_droid_tutorial.htm">http://wenq.org/demo/fontopia_droid_tutorial.htm</a><!-- m --></p>
<p>进入字体的开发界面，请浏览文泉驿主页: <!-- m --><a class="postlink" href="http://wenq.org/">http://wenq.org/</a><!-- m --><br />
并点击页面中间需要制作的汉字列表。</p>
<p>由于字符编辑界面程序采用了部分最新的网页技术，目前只有Firefox 3.0以及更高版本支持，请使用其他浏览器的朋友下载并使用Firefox 3.0进行参与(下载地址 <!-- m --><a class="postlink" href="http://www.mozilla.com/firefox/">http://www.mozilla.com/firefox/</a><!-- m --> )。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/300/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL常用命令（备忘）</title>
		<link>http://yushiqi.cn/archives/272</link>
		<comments>http://yushiqi.cn/archives/272#comments</comments>
		<pubDate>Wed, 03 Sep 2008 06:55:53 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/272</guid>
		<description><![CDATA[$ mysqladmin create databasename #创建数据库
$ mysqladmin drop databasename #删除数据库
$ mysqldump databasename &#62; databasename.sql #备份数据库到文件
mysql &#62; use databasename;
mysql &#62; source /the/sql/dir/databasename.sql; #从备份导入输入数据库
mysql &#62;   GRANT ALL PRIVILEGES ON databasename.*  TO &#8216;dbuser&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;dbpassword&#8217; WITH GRANT OPTION; #将数据库所有权限给用户dbuser，密码为dbpassword
字符问题：
 mysql&#62; SHOW VARIABLES LIKE &#8216;character%&#8217;;
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+
&#124; Variable_name            &#124; Value                      &#124;
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+
&#124; character_set_client     &#124; latin1                     &#124;
&#124; character_set_connection &#124; latin1                     &#124;
&#124; character_set_database   &#124; latin1                     [...]]]></description>
			<content:encoded><![CDATA[<p>$ mysqladmin create databasename #创建数据库</p>
<p>$ mysqladmin drop databasename #删除数据库</p>
<p>$ mysqldump databasename &gt; databasename.sql #备份数据库到文件</p>
<p>mysql &gt; use databasename;<br />
mysql &gt; source /the/sql/dir/databasename.sql; #从备份导入输入数据库</p>
<p>mysql &gt;   GRANT ALL PRIVILEGES ON databasename.*  TO &#8216;dbuser&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;dbpassword&#8217; WITH GRANT OPTION; #将数据库所有权限给用户dbuser，密码为dbpassword</p>
<p><strong>字符问题：</strong></p>
<blockquote><p> mysql&gt; SHOW VARIABLES LIKE &#8216;character%&#8217;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| Variable_name            | Value                      |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| character_set_client     | latin1                     |<br />
| character_set_connection | latin1                     |<br />
| character_set_database   | latin1                     |<br />
| character_set_filesystem | binary                     |<br />
| character_set_results    | latin1                     |<br />
| character_set_server     | latin1                     |<br />
| character_set_system     | utf8                       |<br />
| character_sets_dir       | /usr/share/mysql/charsets/ |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
8 rows in set (0.00 sec)</p></blockquote>
<p>在my.cnf中的[mysqld]和[client]中添加如下内容，统统改为UTF-8：</p>
<blockquote><p>[mysqld]<br />
default-character-set=utf8</p>
<p>[client]<br />
default-character-set=utf8</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/272/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs: Enabling Flyspell mode gave an error</title>
		<link>http://yushiqi.cn/archives/247</link>
		<comments>http://yushiqi.cn/archives/247#comments</comments>
		<pubDate>Thu, 29 May 2008 06:52:17 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/247</guid>
		<description><![CDATA[启动Emacs的拼写检查，得到错误：Enabling Flyspell mode gave an error。
解决方法：安装ispell及其依赖的软件包iamerican和wamerican，在安装过程中提示设置“系统默认的 ispell 字典”，设置为“american (American English)”。
]]></description>
			<content:encoded><![CDATA[<p>启动Emacs的拼写检查，得到错误：Enabling Flyspell mode gave an error。</p>
<p>解决方法：安装ispell及其依赖的软件包iamerican和wamerican，在安装过程中提示设置“系统默认的 ispell 字典”，设置为“american (American English)”。</p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/247/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.04 (Hardy Heron)发布</title>
		<link>http://yushiqi.cn/archives/240</link>
		<comments>http://yushiqi.cn/archives/240#comments</comments>
		<pubDate>Fri, 25 Apr 2008 01:46:44 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/240</guid>
		<description><![CDATA[Ubuntu8.04发布了，激动人心？不，我对任何新东西不感冒了，不追风了。我还会继续用我的Debian，我更喜欢平滑升级。
我开发的Scilab图像视频处理工具箱SIVP，已经进入Ubuntu 8.04了：http://packages.ubuntu.com/hardy/sivp 。Ubuntu用户可用通过下面的命令安装SIVP：
sudo apt-get install sivp
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntu.com" target="_blank">Ubuntu</a>8.04发布了，激动人心？不，我对任何新东西不感冒了，不追风了。我还会继续用我的Debian，我更喜欢平滑升级。</p>
<p>我开发的Scilab图像视频处理工具箱<a href="http://sivp.sf.net" target="_blank">SIVP</a>，已经进入Ubuntu 8.04了：<a href="http://packages.ubuntu.com/hardy/sivp" target="_blank">http://packages.ubuntu.com/hardy/sivp</a> 。Ubuntu用户可用通过下面的命令安装SIVP：</p>
<pre>sudo apt-get install sivp</pre>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/240/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian下系统时间比正常时间快8小时的问题</title>
		<link>http://yushiqi.cn/archives/233</link>
		<comments>http://yushiqi.cn/archives/233#comments</comments>
		<pubDate>Wed, 02 Apr 2008 01:20:58 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/233</guid>
		<description><![CDATA[最近碰到一个问题，Debian 4.0重启后时间总快8小时，将/etc/default/rcS这个文件中设置为UTC=yes也不能纠正这一问题。后来根据这一篇文章，成功纠正了问题。[阅读详细内容]
]]></description>
			<content:encoded><![CDATA[<p>最近碰到一个问题，Debian 4.0重启后时间总快8小时，将/etc/default/rcS这个文件中设置为UTC=yes也不能纠正这一问题。后来根据这一篇文章，成功纠正了问题。[<a href="http://os.51cto.com/art/200710/57810.htm" target="_blank">阅读详细内容</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/233/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome 2.22发布</title>
		<link>http://yushiqi.cn/archives/224</link>
		<comments>http://yushiqi.cn/archives/224#comments</comments>
		<pubDate>Thu, 13 Mar 2008 08:38:30 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/224</guid>
		<description><![CDATA[http://library.gnome.org/misc/release-notes/2.22/
与以往不同的是，Release notes开始先纪念了一下去年因交通事故去世的年轻的小伙子Raphael Higino，希望不要再有这样的纪念。
添加了一个摄像头小程序cheese，恩，比较方便。 不用每次再去调用tvtime了。

每次都有Evolution的更新，但是我已经不用它很多年。

更多新特性，请到http://library.gnome.org/misc/release-notes/2.22/ 上看吧。现在新特性已经不能让我心跳了，看来我老了。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://library.gnome.org/misc/release-notes/2.22/" target="_blank">http://library.gnome.org/misc/release-notes/2.22/</a></p>
<p>与以往不同的是，Release notes开始先纪念了一下去年因交通事故去世的年轻的小伙子Raphael Higino，希望不要再有这样的纪念。</p>
<p>添加了一个摄像头小程序cheese，恩，比较方便。 不用每次再去调用tvtime了。</p>
<p><img src="http://library.gnome.org/misc/release-notes/2.22/figures/rnusers-cheese.png.en" width="400" /></p>
<p>每次都有Evolution的更新，但是我已经不用它很多年。</p>
<p><img src="http://library.gnome.org/misc/release-notes/2.22/figures/rnusers-evolution-google-calendar.png.en" width="400" /></p>
<p>更多新特性，请到<a href="http://library.gnome.org/misc/release-notes/2.22/" target="_blank">http://library.gnome.org/misc/release-notes/2.22/</a> 上看吧。现在新特性已经不能让我心跳了，看来我老了。</p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian lenny下自动挂载U盘中文文件名乱码问题</title>
		<link>http://yushiqi.cn/archives/198</link>
		<comments>http://yushiqi.cn/archives/198#comments</comments>
		<pubDate>Wed, 16 Jan 2008 06:29:41 +0000</pubDate>
		<dc:creator>Shiqi Yu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://yushiqi.cn/archives/198</guid>
		<description><![CDATA[Debian Lenny下自动挂载U盘时，中文文件名会变成“???”。
解决方法：系统工具-&#62;配置编辑-&#62;/system/storage/default_options/vfat，双击mount_options，&#8221;添加&#8221;，在“新列表值”中填入“utf8”。

]]></description>
			<content:encoded><![CDATA[<p>Debian Lenny下自动挂载U盘时，中文文件名会变成“???”。</p>
<p>解决方法：系统工具-&gt;配置编辑-&gt;/system/storage/default_options/vfat，双击mount_options，&#8221;添加&#8221;，在“新列表值”中填入“utf8”。</p>
<p><a href="http://yushiqi.cn/wp-content/uploads/2008/01/screenshot-additem.png" title="screenshot-additem.png"><img src="http://yushiqi.cn/wp-content/uploads/2008/01/screenshot-additem.png" alt="screenshot-additem.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://yushiqi.cn/archives/198/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
