<?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>GaoWhen高H温 &#187; 技巧</title>
	<atom:link href="http://gaowhen.com/post/tag/%e6%8a%80%e5%b7%a7/feed" rel="self" type="application/rss+xml" />
	<link>http://gaowhen.com</link>
	<description>I just want to live while I am alive. 2009 守得云开见月明.</description>
	<lastBuildDate>Tue, 21 Feb 2012 02:05:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>VIM 保存后自动刷新 Firefox</title>
		<link>http://gaowhen.com/post/vim-saved-automatically-refresh-firefox.html</link>
		<comments>http://gaowhen.com/post/vim-saved-automatically-refresh-firefox.html#comments</comments>
		<pubDate>Wed, 20 Oct 2010 06:33:12 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://gaowhen.com/post/vim-saved-automatically-refresh-firefox.html</guid>
		<description><![CDATA[之前 @shawphy 些过一篇《文件保存后自动刷新浏览器页面》，介绍了在 windows 下几种编辑器保存后自动刷新 Firefox 的方法。这篇文章主要介绍 VIM 保存后自动刷新 Firefox 的一种方法。我在 mac 下使用的，win 下应该一样。

其实很简单，首先需要安装一个 Firefox 插件 MozRepl （在 github 的 mozrepl wiki 页安装）。然后在 VIM 配置里面加上以下设置： <a href="http://gaowhen.com/post/vim-saved-automatically-refresh-firefox.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>之前 <a href="http://twitter.com/shawphy">@shawphy</a> 些过一篇<a href="http://shawphy.com/2010/02/auto-refresh-page-after-saving-file.html">《文件保存后自动刷新浏览器页面》</a>，介绍了在 windows 下几种编辑器保存后自动刷新 Firefox 的方法。这篇文章主要介绍 VIM 保存后自动刷新 Firefox 的一种方法。我在 mac 下使用的，win 下应该一样。</p>
<p>其实很简单，首先需要安装一个 Firefox 插件 <a href="http://github.com/bard/mozrepl/wiki">MozRepl</a> （在 github 的 mozrepl wiki 页安装）。然后在 VIM 配置里面加上以下设置：<span id="more-407"></span></p>
<p>autocmd BufWriteCmd *.html,*.css,*.gtpl :call Refresh_firefox()<br />
function! Refresh_firefox()<br />
if &amp;modified<br />
write<br />
silent !echo  &#8216;vimYo = content.window.pageYOffset;<br />
\ vimXo = content.window.pageXOffset;<br />
\ BrowserReload();<br />
\ content.window.scrollTo(vimXo,vimYo);<br />
\ repl.quit();&#8217;  |<br />
\ nc localhost 4242 2&gt;&amp;1 &gt; /dev/null<br />
endif<br />
endfunction</p>
<p>其中的文件格式可以自己设置。之后每次 VIM 保存之后，Firefox 就会自动刷新了。不过现在来看有个问题，这个工具还没有智能到刷新源码对应的页面，只会刷新当前处于激活状态的标签页。不过 Firefox 对我来说，已经沦落到纯粹的开发工具了，这点小不爽可以接受。</p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/vim-saved-automatically-refresh-firefox.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>rsync + ssh 同步本地文件夹至服务器</title>
		<link>http://gaowhen.com/post/rsync-ssh-sync-a-local-folder-to-server.html</link>
		<comments>http://gaowhen.com/post/rsync-ssh-sync-a-local-folder-to-server.html#comments</comments>
		<pubDate>Mon, 06 Sep 2010 14:42:16 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[{a}Live]]></category>
		<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://gaowhen.com/?p=406</guid>
		<description><![CDATA[之前有介绍过使用 dropbox来同步 vimwiki 随时随地的 !VimWiki。之前觉得这样就足够了，没必要放到网络上。不过最近越来越觉得个人知识管理 wiki 重要了，不过本机的文件之前没规划好，wiki 模版也一直没做，有点懒散。既然是知识，何不共享出来，也能敦促自己多学习、勤整理。不过觉得发布的时候有些麻烦，之前看到 明城 的 wiki 使用 rsync 同步的，于是我也折腾了下。以下是使用 rsync 和 ssh 同步本地文件到服务器（bluehost）的方法。其他服务器不清楚，bluehost 是默认安装了 rsync 的。 <a href="http://gaowhen.com/post/rsync-ssh-sync-a-local-folder-to-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>之前有介绍过使用 <a href="http://www.dropbox.com/referrals/NTI2NTk3OTk">dropbox</a>来同步 vimwiki <a href="http://gaowhen.com/post/anytime-anywhere-vimwiki.html">随时随地的 !VimWiki</a>。之前觉得这样就足够了，没必要放到网络上。不过最近越来越觉得个人知识管理 wiki 重要了，不过本机的文件之前没规划好，wiki 模版也一直没做，有点懒散。既然是知识，何不共享出来，也能敦促自己多学习、勤整理。不过觉得发布的时候有些麻烦，之前看到 <a href="http://gracecode.com">明城</a> 的 wiki 使用 rsync 同步的，于是我也折腾了下。以下是使用 rsync 和 ssh 同步本地文件到服务器（bluehost）的方法。其他服务器不清楚，bluehost 是默认安装了 rsync 的。<span id="more-406"></span></p>
<h2 id="toc_1.1">Mactonish 安装 rsync</h2>
<h3 id="toc_1.1.1">获取 rysnc</h3>
<p>首先去 <a href="http://rsync.samba.org/">rsync 首页</a> 获取最新的源码包，当前是 3.0.7 版本。然后就是编译、安装，前提同样需要 c 编译器（如 Xcode）。</p>
<pre class="html4stricta&gt; curl -O http://rsync.samba.org/ftp/rsync/src/rsync-3.0.7.tar.gz tar -xzvf rsync-3.0.7.tar.gz cd rsync-3.0.7 ./configure make sudo make install &lt;/pre&gt; &lt;p&gt; 当然了，下载、解压都有别的工具可用，不过最近迷恋命令行，觉得命令行很有乐趣。 &lt;/p&gt; &lt;h2 id=">同步

以下另存为 rsync-example.sh 。
<pre class="html4strict"># 设置一个 lock 文件，防止多次运行
LOCK_FILE="/tmp/rsync_backup.lock"
LOG_FILE="/tmp/rsync_backup.log"
# rsync 路径
RSYNC="/usr/local/bin/rsync"

if [ -e $LOCK_FILE ]; then
	TIMESTAMP=$(date)
	echo "$TIMESTAMP: lock file exists, exit now" &gt;&gt; $LOG_FILE
	exit
fi

cat /dev/null &gt; $LOG_FILE

touch $LOCK_FILE

# 需要自己定制的命令
rsync -avz --rsh="ssh -l user" local/folder user@remotehost:remote/folder

rm $LOCK_FILE</pre>
<p>赋予它可执行权限</p>
<pre class="html4strict">chmod +x rsync-example.sh</pre>
<p>执行</p>
<pre class="html4strict">./rsync-example.sh</pre>
<p>不用这个脚本，直接用其中的命令 rsync -avz --rsh="ssh -l user" local/folder user@remotehost:remote/folder 也是一样。</p>
<h3 id="toc_1.2.1">参考资料</h3>
<ul>
<li> <a href="http://www.xelon.it/articles/rsync-mac-linux-windows/">How to use rsync on mac os x, windows and linux</a></li>
<li> <a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/rsync.1.html">rsync man</a></li>
</ul>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/rsync-ssh-sync-a-local-folder-to-server.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mercurial Hg 的配置文件 hgrc</title>
		<link>http://gaowhen.com/post/mercurial-hg-profile-hgrc.html</link>
		<comments>http://gaowhen.com/post/mercurial-hg-profile-hgrc.html#comments</comments>
		<pubDate>Sat, 04 Sep 2010 06:54:30 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[共享资源]]></category>
		<category><![CDATA[hg]]></category>
		<category><![CDATA[hgrc]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://gaowhen.com/?p=405</guid>
		<description><![CDATA[其实 hgrc 里面的配置选项是有很多的，这里只列出了目前我配置到的一些选项。 <a href="http://gaowhen.com/post/mercurial-hg-profile-hgrc.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>其实 hgrc 里面的配置选项是有很多的，这里只列出了目前我配置到的一些选项。</p>
<h2 id="toc_1.1">环境</h2>
<p>这里默认说的都是 Mac 环境。</p>
<h2 id="toc_1.2">简介</h2>
<p>用过 vi/vim 的大概一看就知道这是 Hg 的配置文件。</p>
<h2 id="toc_1.3">文件</h2>
<ul>
<li> 每个系统的配置文件
<ul>
<li> 路径 &lt;install-root&gt;/etc/mercurial/hgrc 或 &lt;install-root&gt;/etc/mercurial/hgrc.d/*.rc</li>
</ul>
</li>
<li> 每个用户的配置文件
<ul>
<li> 路径 $HOME/.hgrc</li>
</ul>
</li>
<li> * 每个项目的配置文件
<ul>
<li> 路径 &lt;repo&gt;/.hg/hgrc</li>
<li> 每个项目自己的配置文件里面的配置会覆盖掉以上两个的配置。</li>
<li> 这个文件不在版本控制之内，不会随 clone 操作被传送出去，因此里面的配置信息(尤其是密码)是安全的。</li>
</ul>
</li>
</ul>
<h2 id="toc_1.4"><span id="more-405"></span>语法</h2>
<p>配置文件是由如下形式的区块(section)组成的。</p>
<pre class="html4strict">[foo]
foo1 = bar1
foo2 = bar2</pre>
<h2 id="toc_1.5">区块 section</h2>
<h3 id="toc_1.5.1">alias</h3>
<pre class="html4strict">&lt;alias&gt; = &lt;command&gt; [&lt;argument]...</pre>
<p>例如设置了</p>
<pre class="html4strict">[alias]
latest = log --limit 5</pre>
<p>就可以使用 hg latest 命令来查看最近的 5 条 log。</p>
<h3 id="toc_1.5.2">auth</h3>
<p>用来管理多个库的验证信息，一般会在 $HOME/.hgrc 里面设置，这样就不用每次都要输入用户名和密码了。安全起见，要确保只有自己能看到这个文件。</p>
<pre class="html4strict">&lt;name&gt;.&lt;argument&gt; = &lt;value&gt;</pre>
<p>例如</p>
<pre class="html4strict">[auth]
vim.prefix = bitbucket.org/gaowhen/vim
vim.username = foo
vim.password = bar
vim.schemes = http https

lab.prefix = bitbucket.org/gaowhen/lab
lab.username = foo
lab.password = bar
lab.schemes = http https</pre>
<p>在 $HOMT/.hgrc 里面设置了 auth 之后，只需要在 &lt;repo&gt;/.hg/hgrc 里面设置好 paths 就可以了。改变版本库的时候，Hg 会根据不同的 prefix 来自动进行用户验证。</p>
<h3 id="toc_1.5.3">paths</h3>
<ul>
<li> default 拉取(pull)源代码时如果没有指定库，则从这里指定的目录或 URL 拉取。一般设置为当前库复制(clone)而来的库。</li>
<li> default-push 可选项。推送(push)的时候如果没指定库，则推送到这里指定的目录或 URL。</li>
</ul>
<h2 id="toc_1.6">参考资料</h2>
<ul>
<li> <a href="http://www.selenic.com/mercurial/hgrc.5.html">hgrc</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/mercurial-hg-profile-hgrc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac 自动获取 sentense.me 图片做为桌面背景</title>
		<link>http://gaowhen.com/post/mac-automatically-get-sentense-me-picture-as-desktop-background.html</link>
		<comments>http://gaowhen.com/post/mac-automatically-get-sentense-me-picture-as-desktop-background.html#comments</comments>
		<pubDate>Wed, 01 Sep 2010 14:41:37 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://gaowhen.com/?p=403</guid>
		<description><![CDATA[某日扫到这篇文章 自动获取 sentense.me 图片做为桌面背景。其实之前是介绍过一个挺不错的定时替换桌面的软件 desktopia的。不过这个软件是如此优秀，以至于得到了FGBFXW的认证。结果你懂的。 <a href="http://gaowhen.com/post/mac-automatically-get-sentense-me-picture-as-desktop-background.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>某日扫到这篇文章 <a href="http://yegle.net/2009/10/05/auto-fetch-sentense-me-pics-as-background/">自动获取 sentense.me 图片做为桌面背景</a>。其实之前是介绍过一个挺不错的定时替换桌面的软件 <a href="http://gaowhen.com/post/desktoptopia.html">desktopia</a>的。不过这个软件是如此优秀，以至于得到了FGBFXW的认证。结果你懂的。</p>
<p><span id="more-403"></span></p>
<p>顶着被 <a href="https://twitter.com/adamsxu">@adamsxu</a> 鉴定为闲得蛋疼的危险，开始折腾 Mac 下的使用。shell 脚本中获取图片的方法直接可用，就是后面设置为桌面的方法 Mac 还是不同的。</p>
<p>然后想到了 AppleScript，折腾了下搞定。不过当时用的 do script 方法，每次都要跳出一个 Terminal 窗口，比较不爽。</p>
<p>然后遭 <a href="https://twitter.com/adamsxu">@adamsxu</a> 鄙视，说回去给我写一个。</p>
<p>第二天参照他的方法换为 do shell，结合之前的设置为壁纸方法。然后再添加到 crontab 中，设置为每 15 分钟更换一次，收工。</p>
<h4>确保系统装有 wget、feh</h4>
<p>Mac 下安装 wget 的话，需要有 C 编译器，我是从同事那里拷来的 XCode。<br />
首先去 <a href="http://ftp.gnu.org/pub/gnu/wget/wget-1.9.1.tar.gz">官网</a>下载源程序，解压。然后 terminal 进入 wget  目录。</p>
<pre class="html4strict">  	cd ~/wget
  	./configure
	make
	sudo make install</pre>
<p>期间看 terminal 的提示操作就好了。</p>
<p>用到的脚本如下。getwallpaper.sh 和 wallpaper.scpt 在文件夹 wallpapers 中，位于 home 路径下。用得时候要修改下相应的路径。</p>
<p>* getwallpaper.sh</p>
<pre class="html4strict">	#!/bin/sh
	/usr/local/bin/wget http://sentense.me/  -O - -q |\
	sed -n 's/.*"\([^"]*14400x900[^"]*\.png\)".*/http:\/\/sentense.me\1/p'|\
	/usr/local/bin/wget -i - -P wallpapers -nc -q</pre>
<p>* wallpaper.scpt</p>
<pre class="html4strict">	do shell script "/Users/gaowhen/wallpapers/./getwallpaper.sh"
	tell application "Finder"
		set theList to files of folder "wallpapers" of folder "gaowhen" of folder "Users" of startup disk
		set theNum to random number from 1 to (count theList) with seed (time of (current date))
		set desktop picture to item theNum of theList
	end tell</pre>
<p>然后加入系统的定时任务中。terminal 中</p>
<pre class="html4strict">	crontab -e</pre>
<p>如果系统中已有 crontab 文件则打开，没有则创建一个新文件，并用 vi 打开。在其中输入</p>
<pre class="html4strict">	*/15 * * * * osascript ~/wallpapers/wallpaper.scpt</pre>
<p>保存退出(:wq)，一样要注意路径。</p>
<p>crontab 语法</p>
<pre class="html4strict">選項與參數：
-u  ：只有 root 才能進行這個任務，亦即幫其他使用者建立/移除 crontab 工作排程；
-e  ：編輯 crontab 的工作內容
-l  ：查閱 crontab 的工作內容
-r  ：移除所有的 crontab 的工作內容，若僅要移除一項，請用 -e 去編輯。

範例一：用 dmtsai 的身份在每天的 12:00 發信給自己
[dmtsai@www ~]$ crontab -e
# 此時會進入 vi 的編輯畫面讓您編輯工作！注意到，每項工作都是一行。
0   12  *  *  * mail dmtsai -s "at 12:00" &lt; /home/dmtsai/.bashrc
#分 時 日 月 週 |&lt;==============指令串========================&gt;|</pre>
<p>详情可以参考</p>
<ul>
<li> <a href="http://en.wikipedia.org/wiki/Crontab">cron维基词条</a></li>
<li> <a href="http://linux.vbird.org/linux_basic/0430cron.php">第十六章、例行性工作排程 (crontab)</a></li>
</ul>
<p>如果不想折腾，或者嫌弃 <a href="http://sentense.me/">sentense.me</a> 的壁纸过于单调的话，还可以尝试下 <a href="http://desklickr.isnot.tv/">desklickr</a>。免费软件，自动从 <a href="http://www.flickr.com/photos/gaowhen/">Flickr</a><br />
获取图片并设为桌面的，也挺不错。</p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/mac-automatically-get-sentense-me-picture-as-desktop-background.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>巧用鸭子同步更新twitter消息到饭否/叽歪</title>
		<link>http://gaowhen.com/post/sync-twitter-and-fanfou.html</link>
		<comments>http://gaowhen.com/post/sync-twitter-and-fanfou.html#comments</comments>
		<pubDate>Thu, 21 May 2009 07:50:08 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=317</guid>
		<description><![CDATA[昨天发现俗称小鸭子的 Adium 的 1.4 beta版本已经出来了.这个 beta 版本已经开始支持 twitter 帐号的登陆了。下载试用了下，终于可以关掉 Firefox 的 TwitterFox 了。 <a href="http://gaowhen.com/post/sync-twitter-and-fanfou.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>昨天发现俗称小鸭子的 Adium 的 <a href="http://beta.adium.im/">1.4 beta版本</a>已经出来了.这个 beta 版本已经开始支持 twitter 帐号的登陆了。下载试用了下，终于可以关掉 Firefox 的 TwitterFox 了。<br/><br/><img src="http://mediafarm4.ucomo.com/photo_optimaize_image/77/32/595a8616-c29d-41d4-a04a-76fe52839969.jpg" alt="adium-twitter" /><br/><br/>偶然发现，可以利用设置的一个选项来同步更新消息到饭否或者叽歪。当然，是利用的饭否和叽歪可以记录绑定的 msn 或者 gtalk 的签名。<br/><br/><img src="http://mediafarm4.ucomo.com/photo_optimaize_image/37/42/fe2c489e-61f6-4cfe-98f4-9f93c8169dc4.jpg" alt="adium-twitter" /><br/><br/>选中上图中的选项，这样，每次发送 twitter 消息的时候，就自动更新到饭否或者叽歪了。<br/><br/>话说之前可以从一个隐藏地址绑定fanfou和叽歪的，现在这个地址貌似失效了<br/><br/>twitter 饭否 叽歪 嘀咕 icloud 天那，有太多选择的时候也不是什么好事啊 -______||</p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/sync-twitter-and-fanfou.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>登陆QQ时小红伞报警的问题</title>
		<link>http://gaowhen.com/post/avira-vs-qq.html</link>
		<comments>http://gaowhen.com/post/avira-vs-qq.html#comments</comments>
		<pubDate>Wed, 10 Dec 2008 05:53:08 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=296</guid>
		<description><![CDATA[最近登陆QQ或者TM时， [小红伞Avira ] 总是报警<br/><br/>When accessing data from the URL, "http://dl_dir.qq.com/qqfile/ims/qqdoctor/tsepb.dat"<br/>a virus or unwanted program 'HEUR/Malware' [heuristic] was found.<br/><br/> <a href="http://gaowhen.com/post/avira-vs-qq.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>最近登陆QQ或者TM时， [<a target="_blank"  href="http://www.gaowhen.com/post/avira-premium-free-license.html">小红伞Avira </a>] 总是报警<br/><br/>When accessing data from the URL, &#8220;http://dl_dir.qq.com/qqfile/ims/qqdoctor/tsepb.dat&#8221;<br/>a virus or unwanted program &#8216;HEUR/Malware&#8217; [heuristic] was found.<br/><br/>弹出界面如下：<br/><br/><img src="http://pic.yupoo.com/redscorpion/539106a2cedd/430a42y3.jpg" alt="avira" title="avira" width="360" height="385"/><br/><br/>据说，这是腾讯为了强制卸载51的彩虹QQ而采取的措施造成的<br/><br/>真的是越来越对腾讯没有好感了，虽然腾讯的QQ邮箱和QQ拼音做的越来越好<br/>但是你和51的争斗不要打扰到用户好不好，很烦啊。。。<br/><br/>幸亏最近我在迁移到  [<a target="_blank"  href="http://www.gaowhen.com/post/macbook-404.html">Mac OS X </a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/avira-vs-qq.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>无信用卡申请Itunes帐号</title>
		<link>http://gaowhen.com/post/create-a-free-us-itunes-account.html</link>
		<comments>http://gaowhen.com/post/create-a-free-us-itunes-account.html#comments</comments>
		<pubDate>Tue, 28 Oct 2008 15:41:42 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[娱乐]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=289</guid>
		<description><![CDATA[目前 Itunes 帐户可获得自动专辑封面以及每月免费的音乐等资源，不过比较讨厌的是注册的时候需要信用卡<br/>没信用卡很苦恼，即使有信用卡也可能不想用，免得被无辜刷了美刀<br/>这里提供一个方法，可以不使用信用卡注册 Itunes 账户。<br/><br/>首先，必须安装有 <a href="http://www.apple.com/itunes/" target="_blank">Itunes</a>。启动 Itunes 点击右上角快速链接里面的 Redee <a href="http://gaowhen.com/post/create-a-free-us-itunes-account.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>目前 Itunes 帐户可获得自动专辑封面以及每月免费的音乐等资源，不过比较讨厌的是注册的时候需要信用卡<br/>没信用卡很苦恼，即使有信用卡也可能不想用，免得被无辜刷了美刀<br/>这里提供一个方法，可以不使用信用卡注册 Itunes 账户。<br/><br/>首先，必须安装有 <a href="http://www.apple.com/itunes/" target="_blank">Itunes</a>。启动 Itunes 点击右上角快速链接里面的 Redeem 。<br/><br/><img src="http://pic.yupoo.com/redscorpion/2475966aaa4d/68z8r3gk.jpg" alt="redeem" title="redeem" width="500" height="192"/><br/><br/>然后会跳转到一个页面，要求输入 Redeem 代码。Redeem 代码可以从<a href="http://www.retailmenot.com/view/itunes.com" target="_blank">这里</a>或者<a href="http://www.gutscheineblog.com/Anbieter/itunes/" target="_blank">这里</a>得到。<br/><br/><img src="http://pic.yupoo.com/redscorpion/2869866aaa4d/srbw5f1t.jpg" alt="redeem" title="redeem" width="500" height="311"/><br/><br/>这些 Redeem 代码失效时，Itunes 会报错。不用理会，点击位于 Itunes Store 左上角的主页图标（就是那个小房子），回到 Itunes Store 主页。<br/><br/><img src="http://pic.yupoo.com/redscorpion/9029766aaa4d/1o40ems8.jpg" alt="Redeem" title="Redeem" width="500" height="319"/><br/><br/>现在就可以点击位于 Itunes Store 右上角的登录按钮来创建账户了。如下图。<br/><br/><img src="http://pic.yupoo.com/redscorpion/4244066aaa4d/udxjvheh.jpg" alt="SignUp" title="SignUp" width="487" height="300"/><br/><br/>选择创建新帐号。在欢迎页面点击继续，接下来同意相关条例，然后就跳到最终创建账户页面。<br/><br/>[IMG=499，407,signUp]http://pic.yupoo.com/redscorpion/0848066aaa4d/604hc53d.jpg[/IMG]<br/><br/>按图填写相关资料，然后点击继续跳转到账户创建的最后一步。<br/><br/><img src="http://pic.yupoo.com/redscorpion/5220066aaa4d/evw1cgv0.jpg" alt="finish" title="finish" width="500" height="420"/><br/><br/>不出意外的话，现在就到了选择支付方式以及账户地址的时候了。这个时候支付方式里面除了可以选择信用卡以外，还多了一个 None 的选项。选择 None 就可不使用信用卡创建 Itunes 账户了。邮编、州、城市必须对应起来，其他的无所谓了，随便填。<br/>可以百度/Google下美国州城市的信息填上。<br/><br/>点击继续，就可以成功创建 Itunes Store 账户了。<br/><br/>不知时效，请合理取用。没 Ipod、 Iphone 的，注册成功了也没意义。还是留给需要的人吧。<br/><br/>本文内容意译自<a href="http://www.ghacks.net/2008/10/25/create-a-free-us-itunes-account/" target="_blank">http://www.ghacks.net/2008/10/25/create-a-free-us-itunes-account/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/create-a-free-us-itunes-account.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>将Ape以Apple Lossless导入IPOD</title>
		<link>http://gaowhen.com/post/ape-sync-to-ipod.html</link>
		<comments>http://gaowhen.com/post/ape-sync-to-ipod.html#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:37:54 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[娱乐]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=285</guid>
		<description><![CDATA[APE格式的音乐无法直接导入Itunes，也就无法直接导入IPOD了<br/>不过可以经过几个工具的转换，转换成 Apple Lossless 格式，导入Itunes。<br/><br/>Itunes当然是必需的了，另外还需要个 <a href="http://www.monkeysaudio.com/" target="_blank">MONKEY'S AUDIO</a> 以及虚拟光驱工具<br/>酒精或者Daemon tool。这里推荐 Daemon tool <a href="http://gaowhen.com/post/ape-sync-to-ipod.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>APE格式的音乐无法直接导入Itunes，也就无法直接导入<a href="http://www.holaba.com.cn/apple/mp3">IPOD</a>了<br />
不过可以经过几个工具的转换，转换成 Apple Lossless 格式，导入Itunes。</p>
<p>Itunes当然是必需的了，另外还需要个 <a href="http://www.monkeysaudio.com/" target="_blank">MONKEY&#8217;S AUDIO</a> 以及虚拟光驱工具<br />
酒精或者Daemon tool。这里推荐 Daemon tool lite， <a href="http://www.disc-tools.com/request?p=9cee146a5b182af59ab2f2702c5beb48/daemon4301-lite.exe" target="_blank">点击下载</a>。</p>
<p>安装完以上软件之后。首先，先用 Monkey&#8217;s Audio 将 ape 格式转换为 wav 格式。<br />
首先，如下图，把 Compress 调为 Decompress，然后添加需要转换的 ape 文件，按下 Decompress，就会开始转换格式<br />
转换完之后得到一个后缀名为 wav 的 ape 同名文件。</p>
<p><img title="MAC" src="http://pic.yupoo.com/redscorpion/768046590c2e/medium.jpg" alt="MAC" width="500" height="273" /></p>
<p>将后缀为 cue 的文件与后缀为 wav 的文件放于同一文件夹内。<br />
并修改 cue 文件，将对应的 xxx.ape 修改为 xxx.wav (xxx为 ape 文件名）。打开虚拟光驱软件，挂载修改完毕的 cue 文件，就得到一个虚拟CD。</p>
<p>修改 Itunes 设置。<br />
编辑 &#8211; 偏好设置 &#8211; 常规 &#8211; 插入CD时 &#8211; 询问是否导入ＣＤ<br />
导入设置里面选择　选择APPLE LOSSLESS编码器　，确认。</p>
<p><img title="itunes" src="http://pic.yupoo.com/redscorpion/640156590c2e/medium.jpg" alt="itunes" width="500" height="487" /></p>
<p>Itunes 此时会自动发现虚拟光驱中的CD，并询问是否导入Itunes，确认。</p>
<p>最后，连上 Ipod， 同步即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/ape-sync-to-ipod.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>全键盘操作终止进程</title>
		<link>http://gaowhen.com/post/kill-process-without-mouse.html</link>
		<comments>http://gaowhen.com/post/kill-process-without-mouse.html#comments</comments>
		<pubDate>Wed, 08 Oct 2008 03:09:43 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=283</guid>
		<description><![CDATA[昨天 [远程登录] 实验室机器的时候，貌似机器有点死机。想着非得跑趟实验室不行了，就没管它。后来数次远程登录都非常顺畅，感觉有点奇怪，试了下键盘操作，没有任何问题，只是鼠标不起作用了而已。估计就是 IE 登录学校主页，加载中出了问题，貌似只要结束这个 Iexplore.exe 进程就可以了。<br/><br/>于是面临一个选择，要么真人现身实验室一次，要么无鼠标全键盘解决这个问题。我毫不犹豫的选择了后者。其实当时 <a href="http://gaowhen.com/post/kill-process-without-mouse.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>昨天 [<a target="_blank"  href="http://www.gaowhen.com/post/winxp-remote-desktop.html">远程登录</a>] 实验室机器的时候，貌似机器有点死机。想着非得跑趟实验室不行了，就没管它。后来数次远程登录都非常顺畅，感觉有点奇怪，试了下键盘操作，没有任何问题，只是鼠标不起作用了而已。估计就是 IE 登录学校主页，加载中出了问题，貌似只要结束这个 Iexplore.exe 进程就可以了。<br/><br/>于是面临一个选择，要么真人现身实验室一次，要么无鼠标全键盘解决这个问题。我毫不犹豫的选择了后者。其实当时脑子里根本就没有前者的概念。<br/><br/>首先，远程登录的机器，直接 Ctrl+Alt+Delete 的话，启动的是本地任务管理器，所以要用另一个热键 Ctrl+Shift+Esc。<br/>或者用命令行启动： Win+R 启动 Run（运行），输入 taskmgr.exe 也可以启动任务管理器。<br/><br/><img src="http://pic.yupoo.com/redscorpion/8422264f9a17/medium.jpg" alt="taskmgr" title="taskmgr" width="448" height="500"/><br/><br/>成功启动任务管理器之后，焦点默认是在 Applications 上，此时 Tab 切换的话，只能在 Task、 End Task、Switch、New Task 之间切换。当然这里面也有正在运行的程序，一种方法是用 Tab 将焦点切换到 Task 里，然后用上下键选择程序， Alt+E 终止程序。<br/>不过貌似有时候不怎么奏效，或者奏效耗时比较长。另一种方法就是 Ctrl+Tab 将焦点切换到 Processes 上，然后上下键选择进程 iexplore.exe， Alt+E 中断进程就可以了。<br/><br/>问题解决了，省了我跑一趟实验室，哈哈哈哈哈。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/kill-process-without-mouse.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Editplus 的 Textmate 主题</title>
		<link>http://gaowhen.com/post/editplus-with-textmate-theme.html</link>
		<comments>http://gaowhen.com/post/editplus-with-textmate-theme.html#comments</comments>
		<pubDate>Sun, 07 Sep 2008 01:07:58 +0000</pubDate>
		<dc:creator>糖伴西红柿</dc:creator>
				<category><![CDATA[共享资源]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=274</guid>
		<description><![CDATA[一直用 Editplus 作为主力的编辑器，偶尔也用 Gvim 摇骚摇骚<br/>几乎我所有的主题都是在 Editplus 下完成的（其实也没几个主题，嘿嘿）<br/>但是 Editplus 的默认颜色主题实在是太难看了，看时间长了，眼睛也会难受<br/><br/>今日偶然发现了一个修改过的 <a href="http://www.someok.com/2008/03/editplus-3-color-theme.html" target="_blank">Editplus 配色主题</a>，改成了 Mac 下 Textmate 的一个主题方案<br/>看着很舒服<br/><br/><img src="http://pic.yupoo.com/redscorpion/22126626a40d/medium.jpg" alt="Editplus_theme" title="Editplus_theme" width="500" height="375"/> <a href="http://gaowhen.com/post/editplus-with-textmate-theme.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>一直用 Editplus 作为主力的编辑器，偶尔也用 Gvim 摇骚摇骚<br/>几乎我所有的主题都是在 Editplus 下完成的（其实也没几个主题，嘿嘿）<br/>但是 Editplus 的默认颜色主题实在是太难看了，看时间长了，眼睛也会难受<br/><br/>今日偶然发现了一个修改过的 <a href="http://www.someok.com/2008/03/editplus-3-color-theme.html" target="_blank">Editplus 配色主题</a>，改成了 Mac 下 Textmate 的一个主题方案<br/>看着很舒服<br/><br/><img src="http://pic.yupoo.com/redscorpion/22126626a40d/medium.jpg" alt="Editplus_theme" title="Editplus_theme" width="500" height="375"/><br/><br/>这里分享一下，所需文件请点击最下面的链接下载，下载后解压得到三个文件<br/>setting_u.ini     editplus_u.ini      editplus.inf<br/><br/>1、首先找到自己的 Editplus 配置文件所在路径<br/>   工具(Tool) &#8211; INF 文件目录(INI file directory)，INF 文件目录 既为配置文件路径，然后将 editplus_u.ini、setting_u.ini（ep3配置文件后面都加了个u）替换到自己配置即可，最好备份自己的配置文件。<br/><br/>2、将 editplus.inf 放到 Editplus 安装目录下，右键 &#8211; 安装 即可。<br/><br/>备注：作者只修改了 Html、XML、JSP、Java、Javascript，对我来说足够了，其他可参照修改。<br/><br/>下载：<a href="http://cn.ziddu.com/download/224801/Editplus_with_Textmate_Themem.zip.html" target="_blank">Editplus_with_Textmate_Themem.zip</a><br/><br/>原文地址：<a href="http://www.someok.com/2008/03/editplus-3-color-theme.html" target="_blank">http://www.someok.com/2008/03/editplus-3-color-theme.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://gaowhen.com/post/editplus-with-textmate-theme.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

