<?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>Live in code</title>
	<atom:link href="http://www.agatezone.cn/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.agatezone.cn/code</link>
	<description>agate&#039;s tech blog</description>
	<lastBuildDate>Sun, 28 Feb 2010 08:44:29 +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>压缩 VDI 镜像文件</title>
		<link>http://www.agatezone.cn/code/archives/595</link>
		<comments>http://www.agatezone.cn/code/archives/595#comments</comments>
		<pubDate>Sun, 28 Feb 2010 08:36:12 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[软件使用]]></category>
		<category><![CDATA[vdi]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=595</guid>
		<description><![CDATA[[Windows 虚拟机]
步骤:
1. 使用 windows 自己磁盘整理把碎片都搞掉
2. 使用微软的 sdelete 把 zero 设为 0
sdelete 的下载地址: http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx
在 CMD 中输入:
sdelete -c
3. 关机
4. 在真实系统中输入:
VBoxManage modifyhd VDI_FILE_NAME --compact
[Linux 虚拟机]
步骤:
1. 用一张 LiveCD 启动虚拟机, 使用 GParted 分区软件, 无损改变硬盘大小到最小, 并把释放出来的空间建立一个新的分区
2. 在新分区上执行:
dd if=/dev/zero of=/dev/{?}
3. 删除这个新分区, 发释放出来的空间并入主分区. 关机!
4. 在真实系统中输入:
VBoxManage modifyhd VDI_FILE_NAME --compact
]]></description>
			<content:encoded><![CDATA[<p><strong>[Windows 虚拟机]</strong><br />
步骤:<br />
1. 使用 windows 自己磁盘整理把碎片都搞掉</p>
<p>2. 使用微软的 sdelete 把 zero 设为 0</p>
<blockquote><p>sdelete 的下载地址: http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx</p></blockquote>
<p>在 CMD 中输入:<br />
<code>sdelete -c</code></p>
<p>3. 关机</p>
<p>4. 在真实系统中输入:<br />
<code>VBoxManage modifyhd VDI_FILE_NAME --compact</code></p>
<p><strong>[Linux 虚拟机]</strong><br />
步骤:<br />
1. 用一张 LiveCD 启动虚拟机, 使用 GParted 分区软件, 无损改变硬盘大小到最小, 并把释放出来的空间建立一个新的分区</p>
<p>2. 在新分区上执行:<br />
<code>dd if=/dev/zero of=/dev/{?}</code></p>
<p>3. 删除这个新分区, 发释放出来的空间并入主分区. 关机!</p>
<p>4. 在真实系统中输入:<br />
<code>VBoxManage modifyhd VDI_FILE_NAME --compact</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/595/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X 下键盘映射的软件</title>
		<link>http://www.agatezone.cn/code/archives/592</link>
		<comments>http://www.agatezone.cn/code/archives/592#comments</comments>
		<pubDate>Sat, 27 Feb 2010 12:15:41 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[系统操作]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=592</guid>
		<description><![CDATA[一直以来我都没找到 mac 下键盘映射的软件. 最近在同事的介绍下我发现了: PCKeyboardHack 这个软件. 它可以然我成功地将 Caps Lock 键映射成为 ESC 键.
具体的内容可以访问: http://pqrs.org/
]]></description>
			<content:encoded><![CDATA[<p>一直以来我都没找到 mac 下键盘映射的软件. 最近在同事的介绍下我发现了: PCKeyboardHack 这个软件. 它可以然我成功地将 Caps Lock 键映射成为 ESC 键.<br />
具体的内容可以访问: http://pqrs.org/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/592/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chart Tools</title>
		<link>http://www.agatezone.cn/code/archives/583</link>
		<comments>http://www.agatezone.cn/code/archives/583#comments</comments>
		<pubDate>Sat, 13 Feb 2010 05:00:35 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[程序编码]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=583</guid>
		<description><![CDATA[今天看到 google 出了一组很酷的图形 API

地址: http://code.google.com/apis/charttools/
目前提供:
1. Image charts - using a simple URL request to a Google chart server
2. Interactive charts - using a Google developed JavaScript library
具体的就是:
1 -- [图片型图标] 只是一个图片而已
2 -- [可视化图标] 是一个 javascript 实现的可视化图形组件, 提供动态显示和鼠标事件
具体可以到: http://code.google.com/apis/charttools/docs/choosing.html 看看二者的区别
]]></description>
			<content:encoded><![CDATA[<p>今天看到 google 出了一组很酷的图形 API</p>
<p><img src="http://chart.apis.google.com/chart?cht=bhs&#038;chs=75x50&#038;chd=t:10,50,60,80,40|50,60,100,40,20&#038;chco=4d89f9,c6d9fd&#038;chbh=20&#038;chds=0,160&#038;chbh=a" title="Bar Charts" /><img src="http://chart.apis.google.com/chart?chs=75x75&#038;cht=ls&#038;chd=t0:0,17,7,6|0,30,27,54|0,45,47,46|0,63,59,60|-1,40,35,-1|-1,5,70,-1|-1,-1,80,-1&#038;chm=F,0000FF,0,1:2,10|H,0000FF,0,1:2,1:10|H,0000FF,3,1:2,1:10|H,0000FF,4,1:2,1:10|o,FF0000,5,,5|o,FF0000,6,,5" title="Box Charts" /><img src="http://chart.apis.google.com/chart?chs=75x50&#038;cht=lc&#038;chd=t0:-1,5,10,7,12,-1|-1,25,45,47,24,-1|-1,40,30,27,39,-1|-1,55,63,59,80,-1&#038;chm=F,0000FF,0,,10" title="Candlestick Charts" /><img src="http://chart.apis.google.com/chart?cht=bvs&#038;chbh=5,2&#038;chm=D,0033FF,2,0,5,1&#038;chbh=20&#038;chs=75x50&#038;chd=s2:1XQbnf4,EWoQMUB,9halxp9&#038;chco=4D89F9,C6D9FD&#038;chbh=a" title="Compound Charts" /><img src="http://chart.apis.google.com/chart?chst=d_bubble_icon_text_small&#038;chld=ski|bb|Wheeee!|FFFFFF|000000" title="Dynamic Icons" /><img src="http://chart.apis.google.com/chart?cht=tx&#038;chl=x%20=%20%5Cfrac%7B-b%20%5Cpm%20%5Csqrt%20%7Bb%5E2-4ac%7D%7D%7B2a%7D" title="Formulas" /><img src="http://chart.apis.google.com/chart?chs=75x50&#038;cht=gom&#038;chd=t:70&#038;chco=FF0000,FF8040,FFFF00,00FF00,00FFFF,0000FF,800080" title="Google-O-Meter Charts" /><img src="http://chart.apis.google.com/chart?cht=lxy&#038;chs=75x50&#038;chd=t:10,20,40,80,90,95,99|20,30,40,50,60,70,80|-1|5,10,22,35,85&#038;chco=3072F3,ff0000,00aaaa&#038;chm=s,FF0000,0,-1,2|s,0000ff,1,-1,2|s,00aa00,2,-1,2" title="Line Charts" /><img src="http://chart.apis.google.com/chart?cht=t&#038;chs=150x75&#038;chd=t:0,100,50,32,60,40,43,12,14,54,98,17,70,76,18,29&#038;chco=FFFFFF,FF0000,FFFF00,00FF00&#038;chld=DZEGMGAOBWNGCFKECGCVSNDJTZGHMZZM&#038;chtm=africa&#038;chf=bg,s,EAF7FE" title="Map Charts" /><img src="http://chart.apis.google.com/chart?cht=p3&#038;chd=s:Uf9a&#038;chs=75x50" title="Pie Charts" /><img src="http://chart.apis.google.com/chart?chs=50x50&#038;cht=qr&#038;chl=Hello+world&#038;chld=L|1&#038;choe=UTF-8" title="QR Codes" /><img src="http://chart.apis.google.com/chart?cht=rs&#038;chs=75x75&#038;chd=t:77,66,15,0,31,48,100,77|20,36,100,2,0,100&#038;chco=FF0000,FF9900&#038;chls=2.0,4.0,0.0|2.0,4.0,0.0&#038;chxt=x&#038;chxl=0:|0|45|90|135|180|225|270|315&#038;chxr=0,0.0,360.0&#038;chg=25.0,25.0,2.0,2.0&#038;chm=B,FF000080,0,1.0,5.0|B,FF990080,1,1.0,5.0&#038;chxs=0,000000,4,0" title="Radar Charts" /><img src="http://chart.apis.google.com/chart?cht=s&#038;chd=t:12,87,75,41,23,96,68,71,34,9|98,60,27,34,56,79,58,74,18,76|42,11,33,40,22,45,30,45,32,27&#038;chs=75x50&#038;chco=FF0000" title="Scatter Charts" /><img src="http://chart.apis.google.com/chart?cht=v&#038;chs=75x50&#038;chd=t:100,100,0,50" title="Venn Charts" /></p>
<p>地址: http://code.google.com/apis/charttools/</p>
<p>目前提供:<br />
1. Image charts - using a simple URL request to a Google chart server<br />
2. Interactive charts - using a Google developed JavaScript library<br />
具体的就是:<br />
1 -- [图片型图标] 只是一个图片而已<br />
2 -- [可视化图标] 是一个 javascript 实现的可视化图形组件, 提供动态显示和鼠标事件</p>
<p>具体可以到: http://code.google.com/apis/charttools/docs/choosing.html 看看二者的区别</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/583/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Hackintosh] 资料收集</title>
		<link>http://www.agatezone.cn/code/archives/548</link>
		<comments>http://www.agatezone.cn/code/archives/548#comments</comments>
		<pubDate>Tue, 09 Feb 2010 07:36:58 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[系统操作]]></category>
		<category><![CDATA[Hackintosh]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=548</guid>
		<description><![CDATA[经典网站:
1. http://www.osx86project.org/
1.1. http://wiki.osx86project.org/
1.2. http://www.insanelymac.com/
ATI 系列显卡驱动:
http://www.insanelymac.com/forum/index.php?showtopic=190586
]]></description>
			<content:encoded><![CDATA[<p>经典网站:<br />
1. http://www.osx86project.org/<br />
1.1. http://wiki.osx86project.org/<br />
1.2. http://www.insanelymac.com/</p>
<p>ATI 系列显卡驱动:</p>
<p>http://www.insanelymac.com/forum/index.php?showtopic=190586</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/548/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[APT] 使用 PROXY 设置</title>
		<link>http://www.agatezone.cn/code/archives/553</link>
		<comments>http://www.agatezone.cn/code/archives/553#comments</comments>
		<pubDate>Mon, 04 Jan 2010 00:42:39 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[系统操作]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=553</guid>
		<description><![CDATA[出于中国某种不可抗拒的力量所致, 我们很多的 apt 源都无法正常访问. 所以使用代理翻墙是必不可免的. 可是如何让 apt 也同样使用这个代理有很多人不是很清楚. 其实有两种方法:
1. apt 配置修改法 (推荐)
编辑 /etc/apt/apt.conf
$ sudo vi /etc/apt/apt.conf
Acquire::http::Proxy "http://server:port/";
2. 给 bash 设定 http_proxy 和 ftp_proxy
$ export http_proxy=http://server:port/
$ export ftp_proxy=http://server:port/
现在只要执行 apt 的各个命令就是通过 proxy 走了.
]]></description>
			<content:encoded><![CDATA[<p>出于中国某种不可抗拒的力量所致, 我们很多的 apt 源都无法正常访问. 所以使用代理翻墙是必不可免的. 可是如何让 apt 也同样使用这个代理有很多人不是很清楚. 其实有两种方法:</p>
<p>1. apt 配置修改法 (推荐)<br />
编辑 /etc/apt/apt.conf</p>
<blockquote><p>$ sudo vi /etc/apt/apt.conf<br />
<code>Acquire::http::Proxy "http://server:port/";</code></p></blockquote>
<p>2. 给 bash 设定 http_proxy 和 ftp_proxy</p>
<blockquote><p>$ export http_proxy=http://server:port/<br />
$ export ftp_proxy=http://server:port/</p></blockquote>
<p>现在只要执行 apt 的各个命令就是通过 proxy 走了.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/553/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JVI 让 Netbeans 支持 vi 式编辑</title>
		<link>http://www.agatezone.cn/code/archives/543</link>
		<comments>http://www.agatezone.cn/code/archives/543#comments</comments>
		<pubDate>Tue, 15 Dec 2009 05:37:01 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[软件使用]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=543</guid>
		<description><![CDATA[JVI 一个让 netbeans 支持 vi 键位编辑的插件. 目前已经良好支持 netbeans 的最新版本了.
官方网站: http://jvi.sourceforge.net/
安装了一下, 体验十分良好. 现在发现喜爱 netbeans 的程度大于 eclipse 了. 只是可惜 sun 被 oracle 收购了, netbeans 的未来十分灰暗...
]]></description>
			<content:encoded><![CDATA[<p>JVI 一个让 netbeans 支持 vi 键位编辑的插件. 目前已经良好支持 netbeans 的最新版本了.<br />
官方网站: http://jvi.sourceforge.net/<br />
安装了一下, 体验十分良好. 现在发现喜爱 netbeans 的程度大于 eclipse 了. 只是可惜 sun 被 oracle 收购了, netbeans 的未来十分灰暗...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/543/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BASH shortcuts</title>
		<link>http://www.agatezone.cn/code/archives/541</link>
		<comments>http://www.agatezone.cn/code/archives/541#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:33:40 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[软件使用]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=541</guid>
		<description><![CDATA[ctrl键组合
ctrl+a:光标移到行首。
ctrl+b:光标左移一个字母
ctrl+c:杀死当前进程。
ctrl+d:退出当前 Shell。
ctrl+e:光标移到行尾。
ctrl+h:删除光标前一个字符，同 backspace 键相同。
ctrl+k:清除光标后至行尾的内容。
ctrl+l:清屏，相当于clear。
ctrl+r:搜索之前打过的命令。会有一个提示，根据你输入的关键字进行搜索bash的history
ctrl+u: 清除光标前至行首间的所有内容。
ctrl+w: 移除光标前的一个单词
ctrl+t: 交换光标位置前的两个字符
ctrl+y: 粘贴或者恢复上次的删除
ctrl+d: 删除光标所在字母;注意和backspace以及ctrl+h的区别，这2个是删除光标前的字符
ctrl+f: 光标右移
ctrl+z : 把当前进程转到后台运行，使用’ fg ‘命令恢复。比如top -d1 然后ctrl+z ，到后台，然后fg,重新恢复
esc组合
esc+d: 删除光标后的一个词
esc+f: 往右跳一个词
esc+b: 往左跳一个词
esc+t: 交换光标位置前的两个单词。
摘抄自: http://www.juyimeng.com/bash-shell-bash-shortcut-collection.html
]]></description>
			<content:encoded><![CDATA[<p><strong>ctrl键组合</strong><br />
ctrl+a:光标移到行首。<br />
ctrl+b:光标左移一个字母<br />
ctrl+c:杀死当前进程。<br />
ctrl+d:退出当前 Shell。<br />
ctrl+e:光标移到行尾。<br />
ctrl+h:删除光标前一个字符，同 backspace 键相同。<br />
ctrl+k:清除光标后至行尾的内容。<br />
ctrl+l:清屏，相当于clear。<br />
ctrl+r:搜索之前打过的命令。会有一个提示，根据你输入的关键字进行搜索bash的history<br />
ctrl+u: 清除光标前至行首间的所有内容。<br />
ctrl+w: 移除光标前的一个单词<br />
ctrl+t: 交换光标位置前的两个字符<br />
ctrl+y: 粘贴或者恢复上次的删除<br />
ctrl+d: 删除光标所在字母;注意和backspace以及ctrl+h的区别，这2个是删除光标前的字符<br />
ctrl+f: 光标右移<br />
ctrl+z : 把当前进程转到后台运行，使用’ fg ‘命令恢复。比如top -d1 然后ctrl+z ，到后台，然后fg,重新恢复</p>
<p><strong>esc组合</strong><br />
esc+d: 删除光标后的一个词<br />
esc+f: 往右跳一个词<br />
esc+b: 往左跳一个词<br />
esc+t: 交换光标位置前的两个单词。</p>
<p>摘抄自: http://www.juyimeng.com/bash-shell-bash-shortcut-collection.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/541/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE 支持 CSS 伪类的方法</title>
		<link>http://www.agatezone.cn/code/archives/537</link>
		<comments>http://www.agatezone.cn/code/archives/537#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:42:49 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[程序编码]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=537</guid>
		<description><![CDATA[只要定制恰当的 doctype 就没问题了.
IE7 / IE8 都可以良好支持.
http://www.bernzilla.com/item.php?id=762
]]></description>
			<content:encoded><![CDATA[<p>只要定制恰当的 doctype 就没问题了.<br />
IE7 / IE8 都可以良好支持.</p>
<p>http://www.bernzilla.com/item.php?id=762</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/537/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu mp3 乱码解决方案</title>
		<link>http://www.agatezone.cn/code/archives/527</link>
		<comments>http://www.agatezone.cn/code/archives/527#comments</comments>
		<pubDate>Tue, 17 Nov 2009 02:50:27 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[软件使用]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=527</guid>
		<description><![CDATA[$ sudo apt-get install python-mutagen
$ cd your-mp3-dir
$ find . -iname "*.mp3" -execdir mid3iconv -e GBK {} \;
]]></description>
			<content:encoded><![CDATA[<p><code>$ sudo apt-get install python-mutagen<br />
$ cd your-mp3-dir<br />
$ find . -iname "*.mp3" -execdir mid3iconv -e GBK {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/527/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MOCK 原型设计工具搜集</title>
		<link>http://www.agatezone.cn/code/archives/524</link>
		<comments>http://www.agatezone.cn/code/archives/524#comments</comments>
		<pubDate>Mon, 09 Nov 2009 13:12:01 +0000</pubDate>
		<dc:creator>agate</dc:creator>
				<category><![CDATA[软件使用]]></category>
		<category><![CDATA[mock]]></category>

		<guid isPermaLink="false">http://www.agatezone.cn/code/?p=524</guid>
		<description><![CDATA[记录一下自己搜集的关于 原型设计 的工具:
1. Mockingbird
网址: http://gomockingbird.com/
2. MockFlow
网址: http://www.mockflow.com/
3. Balsamiq
http://www.balsamiq.com/
[更新ing]
]]></description>
			<content:encoded><![CDATA[<p>记录一下自己搜集的关于 原型设计 的工具:</p>
<p>1. Mockingbird<br />
网址: http://gomockingbird.com/</p>
<p>2. MockFlow<br />
网址: http://www.mockflow.com/</p>
<p>3. Balsamiq</p>
<p>http://www.balsamiq.com/</p>
<p>[更新ing]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.agatezone.cn/code/archives/524/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
