<?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>美好时光</title>
	<atom:link href="http://yinwei.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://yinwei.org</link>
	<description>记录这浮躁的世界，记录这美好的时光</description>
	<lastBuildDate>Sat, 15 May 2010 15:34:48 +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>改变世界的Photoshop CS5</title>
		<link>http://yinwei.org/?p=29</link>
		<comments>http://yinwei.org/?p=29#comments</comments>
		<pubDate>Sat, 15 May 2010 15:34:48 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=29</guid>
		<description><![CDATA[废话不多说了，直接上图。

有一张螃蟹的照片，可惜的是右侧螯足上有一个破洞。现在我们要修补这个漏洞。

先利用磁性套索选中这个破洞。

扩大选区（Select-Modify-Expansion）5个像素。

使用Edit-Fill功能，在弹出的对话框中选择填充&#8221;Content-Aware&#8221;就得到了这样的效果。

取消选择之后的最终效果如上图所示。
这些步骤简单到难以想象，Photoshop CS5果然是改变世界的利器。
]]></description>
			<content:encoded><![CDATA[<p>废话不多说了，直接上图。</p>
<p><img class="size-full wp-image-30 alignnone" title="Step1" src="http://yinwei.org/wp-content/uploads/2010/05/Step1.png" alt="" width="250" height="250" /></p>
<p>有一张螃蟹的照片，可惜的是右侧螯足上有一个破洞。现在我们要修补这个漏洞。</p>
<p><img class="alignnone size-full wp-image-31" title="Step2" src="http://yinwei.org/wp-content/uploads/2010/05/Step2.png" alt="" width="250" height="250" /></p>
<p>先利用磁性套索选中这个破洞。</p>
<p><a href="http://yinwei.org/wp-content/uploads/2010/05/Step3.png"><img class="alignnone size-full wp-image-32" title="Step3" src="http://yinwei.org/wp-content/uploads/2010/05/Step3.png" alt="" width="250" height="250" /></a></p>
<p>扩大选区（Select-Modify-Expansion）5个像素。</p>
<p><img class="alignnone size-full wp-image-33" title="Step4" src="http://yinwei.org/wp-content/uploads/2010/05/Step4.png" alt="" width="250" height="250" /></p>
<p>使用Edit-Fill功能，在弹出的对话框中选择填充&#8221;Content-Aware&#8221;就得到了这样的效果。</p>
<p><img class="alignnone size-full wp-image-34" title="Step5" src="http://yinwei.org/wp-content/uploads/2010/05/Step5.png" alt="" width="250" height="250" /></p>
<p>取消选择之后的最终效果如上图所示。</p>
<p>这些步骤简单到难以想象，Photoshop CS5果然是改变世界的利器。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=29</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下的音频处理</title>
		<link>http://yinwei.org/?p=26</link>
		<comments>http://yinwei.org/?p=26#comments</comments>
		<pubDate>Fri, 07 May 2010 16:26:07 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[音频处理]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=26</guid>
		<description><![CDATA[最近下载了很多音乐文件，为了统一管理进行了很多转换、分割的操作，感觉Linux下做这些简单的音频处理还是很方便的。下面对这些操作做一个小小的总结。
基于cue文件的音频分割
网上能下载到的质量较高的音乐文件都是从CD直接抓轨得到的APE、FLAC、TTA甚至是TAK格式的无损压缩文件，通过一个cue列表指定音轨的名称和时间段。Linux下的播放器普遍对cue没有很好的支持，因此把完整的CD镜像分割为单个的文件不失为简单的变通方法。
cue文件的编码必须是UTF-8格式，但是喜爱日本动漫、游戏音乐的朋友会发现很多时候打开cue文件后发现音轨的标题都是乱码，其实这是因为这些cue文件采用了Shift-JIS编码。用iconv命令可以很简单的进行编码的转换：
$ iconv -c -f shift-jis -t utf8 CDImage.cue -o CDImage.utf8.cue
这里有个-c参数是为了让iconv读到一些奇怪的字符时直接忽略，因为某些cue文件过于诡异了。
转换好cue文件后通过shntool分割文件，以APE格式的CD镜像为例：
$ shntool split -t "%n.%t" -i ape -o flac -f CDImage.utf8.cue CDImage.ape
这里的-t &#8220;%n.%t&#8221;指定了输出文件的文件名由音轨编号%n和标题%t组成，-i指定输入文件格式为APE，-o指定输出文件格式为FLAC，-f指定了cue文件。
在Archlinux下读取APE和TTA格式的音频文件需要通过AUR安装mac-port和ttaenc，而处理TAK文件时则比较麻烦，需要通过wine来运行Takc.exe。这个Takc.exe可以在这里下载。运行Takc.exe先将tak文件解压为wav文件：
$ wine Takc.exe -d CDImage.tak CDImage.wav
然后运行shntool分轨：
$ shntool split -t "%n.%t" -i wav -o flac -f CDImage.utf8.cue  CDImage.wav
音频格式的转换
音频格式之间的转换通过wav格式来中转最为简单，各种常见无损格式的解压命令如下：
$ mac -d Music.ape

$ flac -d Music.flac

$ ttaenc -d Music.tta
相应的，从wav格式转化为各种常见格式的命令如下：
$ mac "Music.wav" "Music.ape"

$ flac Music.wav

$ ttaenc Music.wav

$ [...]]]></description>
			<content:encoded><![CDATA[<p>最近下载了很多音乐文件，为了统一管理进行了很多转换、分割的操作，感觉Linux下做这些简单的音频处理还是很方便的。下面对这些操作做一个小小的总结。</p>
<p><strong>基于cue文件的音频分割</strong></p>
<p>网上能下载到的质量较高的音乐文件都是从CD直接抓轨得到的APE、FLAC、TTA甚至是TAK格式的无损压缩文件，通过一个cue列表指定音轨的名称和时间段。Linux下的播放器普遍对cue没有很好的支持，因此把完整的CD镜像分割为单个的文件不失为简单的变通方法。</p>
<p>cue文件的编码必须是UTF-8格式，但是喜爱日本动漫、游戏音乐的朋友会发现很多时候打开cue文件后发现音轨的标题都是乱码，其实这是因为这些cue文件采用了Shift-JIS编码。用iconv命令可以很简单的进行编码的转换：</p>
<pre>$ iconv -c -f shift-jis -t utf8 CDImage.cue -o CDImage.utf8.cue</pre>
<p>这里有个-c参数是为了让iconv读到一些奇怪的字符时直接忽略，因为某些cue文件过于诡异了。</p>
<p>转换好cue文件后通过shntool分割文件，以APE格式的CD镜像为例：</p>
<pre>$ shntool split -t "%n.%t" -i ape -o flac -f CDImage.utf8.cue CDImage.ape</pre>
<p>这里的-t &#8220;%n.%t&#8221;指定了输出文件的文件名由音轨编号%n和标题%t组成，-i指定输入文件格式为APE，-o指定输出文件格式为FLAC，-f指定了cue文件。</p>
<p>在Archlinux下读取APE和TTA格式的音频文件需要通过AUR安装mac-port和ttaenc，而处理TAK文件时则比较麻烦，需要通过wine来运行Takc.exe。这个Takc.exe可以在<a href="http://thbeck.de/Download/TAK_2.0.0.zip">这里</a>下载。运行Takc.exe先将tak文件解压为wav文件：</p>
<pre>$ wine Takc.exe -d CDImage.tak CDImage.wav</pre>
<p>然后运行shntool分轨：</p>
<pre>$ shntool split -t "%n.%t" -i wav -o flac -f CDImage.utf8.cue  CDImage.wav</pre>
<p><strong>音频格式的转换</strong></p>
<p>音频格式之间的转换通过wav格式来中转最为简单，各种常见无损格式的解压命令如下：</p>
<pre>$ mac -d Music.ape

$ flac -d Music.flac

$ ttaenc -d Music.tta</pre>
<p>相应的，从wav格式转化为各种常见格式的命令如下：</p>
<pre>$ mac "Music.wav" "Music.ape"

$ flac Music.wav

$ ttaenc Music.wav

$ lame Music.wav

$ oggenc Music.wav

$ faac -w Music.wav</pre>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Balsamiq Mockups是个非常好玩的软件啊</title>
		<link>http://yinwei.org/?p=23</link>
		<comments>http://yinwei.org/?p=23#comments</comments>
		<pubDate>Mon, 05 Apr 2010 16:54:35 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[网站开发]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=23</guid>
		<description><![CDATA[轻轻松松就可以画出手绘质感的示意图，例如：

官方网站在这里。
]]></description>
			<content:encoded><![CDATA[<p>轻轻松松就可以画出手绘质感的示意图，例如：</p>
<p><a href="http://yinwei.org/wp-content/uploads/2010/04/01_Welcome.png"><img class="alignnone size-full wp-image-24" title="01_Welcome" src="http://yinwei.org/wp-content/uploads/2010/04/01_Welcome.png" alt="" width="780" height="600" /></a></p>
<p>官方网站在<a href="http://www.balsamiq.com/products/mockups/" target="_blank">这里</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=23</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.4下编译Squid 3.1.1</title>
		<link>http://yinwei.org/?p=20</link>
		<comments>http://yinwei.org/?p=20#comments</comments>
		<pubDate>Sun, 04 Apr 2010 11:31:20 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=20</guid>
		<description><![CDATA[下载squid最新的3.1.1版：

wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.1.tar.gz

安装编译环境：

yum install gcc-c++
yum install make

编译

./configure --prefix=/usr --includedir=/usr/include --datadir=/usr/share --bindir=/usr/sbin --libexecdir=/usr/lib/squid --localstatedir=/var --sysconfdir=/etc/squid
make &#038;&#038; make install

对RedHat系的Linux不熟悉，仅作备忘。
]]></description>
			<content:encoded><![CDATA[<p>下载squid最新的3.1.1版：</p>
<pre>
wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.1.tar.gz
</pre>
<p>安装编译环境：</p>
<pre>
yum install gcc-c++
yum install make
</pre>
<p>编译</p>
<pre>
./configure --prefix=/usr --includedir=/usr/include --datadir=/usr/share --bindir=/usr/sbin --libexecdir=/usr/lib/squid --localstatedir=/var --sysconfdir=/etc/squid
make &#038;&#038; make install
</pre>
<p>对RedHat系的Linux不熟悉，仅作备忘。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archlinux下的mplayer已编译vdpau</title>
		<link>http://yinwei.org/?p=17</link>
		<comments>http://yinwei.org/?p=17#comments</comments>
		<pubDate>Tue, 23 Mar 2010 14:23:57 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=17</guid>
		<description><![CDATA[Archlinux下的mplayer已编译vdpau，只要把mplayer的视频输出设为vdpau即可使用nVidia显卡的硬解码功能。
]]></description>
			<content:encoded><![CDATA[<p>Archlinux下的mplayer已编译vdpau，只要把mplayer的视频输出设为vdpau即可使用nVidia显卡的硬解码功能。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows x64下可用的Python及扩展</title>
		<link>http://yinwei.org/?p=12</link>
		<comments>http://yinwei.org/?p=12#comments</comments>
		<pubDate>Thu, 18 Mar 2010 05:06:34 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=12</guid>
		<description><![CDATA[Christoph Gohlke提供了非官方x64版本的Python扩展下载，例如Numpy等。可惜的是目前只有Python 2.6系列的相关下载。具体的页面在这里。
]]></description>
			<content:encoded><![CDATA[<p>Christoph Gohlke提供了非官方x64版本的Python扩展下载，例如Numpy等。可惜的是目前只有Python 2.6系列的相关下载。具体的页面在<a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/">这里</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不用fusion-icon而直接启动Compiz</title>
		<link>http://yinwei.org/?p=6</link>
		<comments>http://yinwei.org/?p=6#comments</comments>
		<pubDate>Wed, 17 Mar 2010 18:31:37 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Compiz]]></category>
		<category><![CDATA[Xfce]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=6</guid>
		<description><![CDATA[在ArchLinux上，安装完Xfce4和Compiz Fusion后，如果要求能够不用fusion-icon而直接启动Compiz的话，可按照本文的说明来实现：
1) 启动Xfce4，此时xfwm4是默认的窗口管理器；
2) 运行fusion-icon，在CompizConfig设置中启用“窗口装饰”和“移动窗口”两个功能，否则窗口无边框也不能移动；
3) 退出Xfce4返回控制台；
4) 将~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml中的
&#60;property name="Client0_Command" type="array"&#62;
    &#60;value type="string" value="xfwm4"/&#62;
&#60;/property&#62;
修改为
&#60;property name="Client0_Command" type="array"&#62;
    &#60;value type="string" value="compiz"/&#62;
    &#60;value type="string" value="ccp"/&#62;
&#60;/property&#62;
5) 删除~/.cache/sessions目录
6) 启动Xfce4，此时compiz将自动运行。退出Xfce4时建议不要保存session。
]]></description>
			<content:encoded><![CDATA[<p>在ArchLinux上，安装完Xfce4和Compiz Fusion后，如果要求能够不用fusion-icon而直接启动Compiz的话，可按照本文的说明来实现：</p>
<p>1) 启动Xfce4，此时xfwm4是默认的窗口管理器；</p>
<p>2) 运行fusion-icon，在CompizConfig设置中启用“窗口装饰”和“移动窗口”两个功能，否则窗口无边框也不能移动；</p>
<p>3) 退出Xfce4返回控制台；</p>
<p>4) 将~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml中的</p>
<pre>&lt;property name="Client0_Command" type="array"&gt;
    &lt;value type="string" value="xfwm4"/&gt;
&lt;/property&gt;</pre>
<p>修改为</p>
<pre>&lt;property name="Client0_Command" type="array"&gt;
    &lt;value type="string" value="compiz"/&gt;
    &lt;value type="string" value="ccp"/&gt;
&lt;/property&gt;</pre>
<p>5) 删除~/.cache/sessions目录</p>
<p>6) 启动Xfce4，此时compiz将自动运行。退出Xfce4时建议不要保存session。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=6</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grub在多硬盘启动时关于硬盘编号的一个特性</title>
		<link>http://yinwei.org/?p=1</link>
		<comments>http://yinwei.org/?p=1#comments</comments>
		<pubDate>Wed, 17 Mar 2010 04:45:06 +0000</pubDate>
		<dc:creator>XCHANGE</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Grub]]></category>

		<guid isPermaLink="false">http://yinwei.org/?p=1</guid>
		<description><![CDATA[假定一台主机上有多个硬盘，已经在BIOS顺序的第一块硬盘上安装了其他操作系统，例如Windows，现在需要在另一块硬盘上安装Linux系统。这种情况下，如果Linux安装成功，在Linux看来，装有Windows系统的硬盘设备应该是/dev/sda，而它自己所在的硬盘则可能是/dev/sdb之类。
如果有特殊情况导致不能将Grub安装到/dev/sda的 MBR上，只能安装到/dev/sdb，那么这时menu.list中Linux系统对应的硬盘应该是(hd0,0)而不是(hd1,0)，因为Grub对硬盘编号的顺序和BIOS以及Linux本身是不一样的。
]]></description>
			<content:encoded><![CDATA[<p>假定一台主机上有多个硬盘，已经在BIOS顺序的第一块硬盘上安装了其他操作系统，例如Windows，现在需要在另一块硬盘上安装Linux系统。这种情况下，如果Linux安装成功，在Linux看来，装有Windows系统的硬盘设备应该是/dev/sda，而它自己所在的硬盘则可能是/dev/sdb之类。</p>
<p>如果有特殊情况导致不能将Grub安装到/dev/sda的 MBR上，只能安装到/dev/sdb，那么这时menu.list中Linux系统对应的硬盘应该是(hd0,0)而不是(hd1,0)，因为Grub对硬盘编号的顺序和BIOS以及Linux本身是不一样的。</p>
]]></content:encoded>
			<wfw:commentRss>http://yinwei.org/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->