<?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>Hacklog</title>
	<atom:link href="http://ihacklog.com/feed" rel="self" type="application/rss+xml" />
	<link>http://ihacklog.com</link>
	<description>荒野无灯weblog</description>
	<lastBuildDate>Mon, 14 May 2012 16:47:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
				<item>
				<title>消息</title>
				<link>http://ihacklog.com</link>
				<comments>http://ihacklog.com/guestbook</comments>
				<pubDate>Thu, 17 May 2012 12:43:06 +0000</pubDate>
				<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[ 站点通知 ]]></category>
				<guid isPermaLink="false">http://ihacklog.com</guid>
				<description><![CDATA[<p>站点通知</p>]]></description>
				<content:encoded><![CDATA[<p>近期很忙，使用插件遇到问题的请先自行google或判断之后再提问，所有插件均经过测试，如果在你那里不能工作，请不要首先想到的是“插件有BUG”。<br />
又拍云WordPress用户注意：插件更新<a href="http://github.ihacklog.com/hacklog-remote-attachment-upyun/">hacklog-remote-attachment-upyun</a> ，v1.4.3 增加token防盗链功能支持 </p>
]]></content:encoded>
			</item>
					<item>
		<title>忙完这一阵之后再发各种文章</title>
		<link>http://ihacklog.com/memory/hacklog/comming-back-soon.html</link>
		<comments>http://ihacklog.com/memory/hacklog/comming-back-soon.html#comments</comments>
		<pubDate>Tue, 08 May 2012 09:18:46 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[log]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5731</guid>
		<description><![CDATA[Hello World. 如题。 目前博客堆了有大概80多篇草稿，有些是想法，有些是稍微修改下可发表的文章。 另外脑袋里面还有一些东西要写出来（关于WP,关于ArchLinux,关于Xfce)。但，不是现在。 出来冒下泡，表示我没有离开，更没有消失。 喜欢这篇文章吗?请订阅本站 RSS feed 或,欢迎点击这里捐赠以支持荒野无灯 转播到腾讯微博 作者：荒野无灯 出处：Hacklog【Hacklog】 声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒...]]></description>
			<content:encoded><![CDATA[<p>Hello World.<br />
如题。<br />
目前博客堆了有大概80多篇草稿，有些是想法，有些是稍微修改下可发表的文章。<br />
另外脑袋里面还有一些东西要写出来（关于WP,关于ArchLinux,关于Xfce)。但，不是现在。<br />
出来冒下泡，表示我没有离开，更没有消失。</p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5731";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5731" title="Permanent Link to 忙完这一阵之后再发各种文章" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5731</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/memory/hacklog/comming-back-soon.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>2012-05-01 screen shot (Archlinux + Xfce 4.10)</title>
		<link>http://ihacklog.com/linux/archlinux/2012-05-01-screen-shot-xfce-4-10.html</link>
		<comments>http://ihacklog.com/linux/archlinux/2012-05-01-screen-shot-xfce-4-10.html#comments</comments>
		<pubDate>Tue, 01 May 2012 14:59:14 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5727</guid>
		<description><![CDATA[Xfce 自带的这张壁纸还是蛮漂亮的。 另：Xfce更新到4.10 后会发现Panel居左了。解决办法（来自这里：https://makandracards.com/makandra/4489-right-align-or-center-panel-items-in-xfce）： Right-align or center panel items in XFCE Add a separator between left-aligned and right-aligned items. In the sep...]]></description>
			<content:encoded><![CDATA[<p>Xfce 自带的这张壁纸还是蛮漂亮的。<br />
<a href="http://static.ihacklog.com/wp-files/2012/05/2012-05-01-225554_1366x768_scrot.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2012/05/2012-05-01-225554_1366x768_scrot-550x309.png" alt="" title="2012-05-01 screen shot (Xfce 4.10)" width="550" height="309" class="aligncenter size-medium wp-image-5728" /> </a></p>
<p>另：Xfce更新到4.10 后会发现Panel居左了。解决办法（来自这里：https://makandracards.com/makandra/4489-right-align-or-center-panel-items-in-xfce）：</p>
<blockquote><p>Right-align or center panel items in XFCE<br />
Add a separator between left-aligned and right-aligned items.<br />
In the separator properties, set the style to “Transparent” and check “Expand”.<br />
The separator will now grab all available space and hence push the right-hand items into the corner.</p>
<p>You can also use this trick to center panel items by using two separators (one on the left, one on the right side).</p></blockquote>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5727";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5727" title="Permanent Link to 2012-05-01 screen shot (Archlinux + Xfce 4.10)" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5727</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/2012-05-01-screen-shot-xfce-4-10.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>dropbox on Archlinux</title>
		<link>http://ihacklog.com/linux/archlinux/dropbox-on-archlinux.html</link>
		<comments>http://ihacklog.com/linux/archlinux/dropbox-on-archlinux.html#comments</comments>
		<pubDate>Wed, 25 Apr 2012 02:08:47 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Archlinux]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5670</guid>
		<description><![CDATA[Linux版下载： https://www.dropbox.com/install?os=lnx Install Dropbox via command line The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal. 12345#32-bit: cd ~ &#38;&#38; wget -O - &...]]></description>
			<content:encoded><![CDATA[<p>Linux版下载：<br />
<a href="http://ihacklog.com/l.php?url=https%3A%2F%2Fwww.dropbox.com%2Finstall%3Fos%3Dlnx" target="_blank">https://www.dropbox.com/install?os=lnx</a></p>
<p>Install Dropbox via command line</p>
<p>The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#32-bit:</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~ <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-O</span> - <span style="color: #ff0000;">&quot;http://www.dropbox.com/download?plat=lnx.x86&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf -<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #666666; font-style: italic;">#64-bit:</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ~ <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-O</span> - <span style="color: #ff0000;">&quot;http://www.dropbox.com/download?plat=lnx.x86_64&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf -</div></td></tr></tbody></table></div>
<p>Next, run the Dropbox daemon from the newly created .dropbox-dist folder.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">~<span style="color: #000000; font-weight: bold;">/</span>.dropbox-dist<span style="color: #000000; font-weight: bold;">/</span>dropboxd</div></td></tr></tbody></table></div>
<p>命令行助手：<br />
<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fdropboxwiki.com%2FDropbox_Linux_CLI" target="_blank">Dropbox Linux CLI</a><br />
下载：<br />
<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fdl.getdropbox.com%2Fu%2F43645%2Fdbcli.py" target="_blank">http://dl.getdropbox.com/u/43645/dbcli.py</a></p>
<p>上传文件到dropgox :<br />
web 方式：<br />
PHP Dropbox Uploader</p>
<p>http://dropboxwiki.com/PHP_Dropbox_Uploader</p>
<p>https://github.com/jakajancar/DropboxUploader/</p>
<p>Python:</p>
<p>https://github.com/jncraton/PythonDropboxUploader</p>
<p>http://dropboxwiki.com/Dropbox_Addons#PHP</p>
<p><a href="http://ihacklog.com/l.php?url=http%3A%2F%2Flucidhacking.net%2F2011%2F12%2Fhow-to-access-dropbox-behind-a-firewall-or-proxy%2F" target="_blank">How To Access Dropbox Behind a Firewall or Pr_o_x_y </a>,使用P.r.o.x.yChains</p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5670";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5670" title="Permanent Link to dropbox on Archlinux" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5670</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/linux/archlinux/dropbox-on-archlinux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP 3.3.2 更新文件</title>
		<link>http://ihacklog.com/php/wordpress/wp-3-3-2-updated-files.html</link>
		<comments>http://ihacklog.com/php/wordpress/wp-3-3-2-updated-files.html#comments</comments>
		<pubDate>Sat, 21 Apr 2012 04:09:15 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5722</guid>
		<description><![CDATA[我后台直接一键的。 现在WP的升级是越来越智能的，能够自动检测当前文件是不是与官方发布的一样，不一样的直接覆盖。也就是说，只会更新需要更新的文件。 我修改了的class-wp-xmlrpc-server.php和wplink.js也被它覆盖了。。。Orz 12345678910111213141516171819202122232425262728293031323334文件完整性校验 文件上传成功！下面开始校验文件...... 需要检测的文件类型：php , js 正在产生当前文件校验...... 文件...]]></description>
			<content:encoded><![CDATA[<p>我后台直接一键的。<br />
现在WP的升级是越来越智能的，能够自动检测当前文件是不是与官方发布的一样，不一样的直接覆盖。也就是说，只会更新需要更新的文件。<br />
我修改了的class-wp-xmlrpc-server.php和wplink.js也被它覆盖了。。。Orz</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">文件完整性校验<br />
文件上传成功！下面开始校验文件<span style="color: #339933;">......</span><br />
需要检测的文件类型：php <span style="color: #339933;">,</span> js<br />
正在产生当前文件校验<span style="color: #339933;">......</span><br />
文件checksum生成完毕<span style="color: #339933;">.</span>下面开始检查文件完整性<span style="color: #339933;">......</span><br />
文件校验完毕，以下为校验结果：<br />
<br />
The following discrepancies were found<span style="color: #339933;">:</span><br />
<br />
&nbsp; &nbsp; add<br />
&nbsp; &nbsp; &nbsp; &nbsp; index<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>config<span style="color: #339933;">-</span>sample<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; alt<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>formatting<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>user<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>class<span style="color: #339933;">-</span>wp<span style="color: #339933;">-</span>xmlrpc<span style="color: #339933;">-</span>server<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>version<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>ms<span style="color: #339933;">-</span>functions<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>kses<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>swfobject<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>wplink<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>plupload<span style="color: #339933;">/</span>plupload<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>plupload<span style="color: #339933;">/</span>plupload<span style="color: #339933;">.</span>html4<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>plupload<span style="color: #339933;">/</span>handlers<span style="color: #339933;">.</span>dev<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>plupload<span style="color: #339933;">/</span>plupload<span style="color: #339933;">.</span>flash<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>plupload<span style="color: #339933;">/</span>plupload<span style="color: #339933;">.</span>html5<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>js<span style="color: #339933;">/</span>plupload<span style="color: #339933;">/</span>plupload<span style="color: #339933;">.</span>silverlight<span style="color: #339933;">.</span>js<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>db<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>includes<span style="color: #339933;">/</span>script<span style="color: #339933;">-</span>loader<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>comments<span style="color: #339933;">-</span>post<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>admin<span style="color: #339933;">/</span>includes<span style="color: #339933;">/</span>update<span style="color: #339933;">-</span>core<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>admin<span style="color: #339933;">/</span>about<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>admin<span style="color: #339933;">/</span>plugins<span style="color: #339933;">.</span>php<br />
&nbsp; &nbsp; &nbsp; &nbsp; wp<span style="color: #339933;">-</span>admin<span style="color: #339933;">/</span>press<span style="color: #339933;">-</span>this<span style="color: #339933;">.</span>php</div></td></tr></tbody></table></div>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5722";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5722" title="Permanent Link to WP 3.3.2 更新文件" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5722</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/php/wordpress/wp-3-3-2-updated-files.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>最近我博客的spam和尝试恶意登录的人不少啊</title>
		<link>http://ihacklog.com/memory/hacklog/fuck-spam-and-the-malicious-user.html</link>
		<comments>http://ihacklog.com/memory/hacklog/fuck-spam-and-the-malicious-user.html#comments</comments>
		<pubDate>Mon, 16 Apr 2012 14:12:23 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[log]]></category>
		<category><![CDATA[malicious]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[恶意用户]]></category>
		<category><![CDATA[非法登录]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5714</guid>
		<description><![CDATA[看了下，每个月的spam数量 5000 以上。。。 恶意登录： 我能说脏话吗？ 话说ip基本上有可能是变动的，变动不大的而且可以掌握的就是我个人的ip.因此，后来又把上面的代码替换为了下面的： 再在类的构造函数中加上： 1add_action&#40;'init', array&#40;$this,'login_gate'&#41; &#41;; 喜欢这篇文章吗?请订阅本站 RSS feed 或,欢迎点击这里捐赠以支持荒野无灯 转播到腾讯微博 作者：荒野无灯 出处：Hacklog【Hacklog】 声明:...]]></description>
			<content:encoded><![CDATA[<p>看了下，每个月的spam数量 5000 以上。。。 <img src='http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package/js/comment-editor/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  </p>
<p>恶意登录：<br />
<a href="http://static.ihacklog.com/wp-files/2012/04/fuck-the-malicious-user.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2012/04/fuck-the-malicious-user-550x377.png" alt="" title="fuck-the-malicious-user" width="550" height="377" class="aligncenter size-medium wp-image-5715" /> </a></p>
<p><strong>我能说脏话吗？</strong><br />
<a href="http://static.ihacklog.com/wp-files/2012/04/fuck-the-man-with-code.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2012/04/fuck-the-man-with-code-550x78.png" alt="" title="fuck-the-man-with-code" width="550" height="78" class="aligncenter size-medium wp-image-5716" /> </a></p>
<p>话说ip基本上有可能是变动的，变动不大的而且可以掌握的就是我个人的ip.因此，后来又把上面的代码替换为了下面的：<br />
<a href="http://static.ihacklog.com/wp-files/2012/04/login-gate.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2012/04/login-gate-550x211.png" alt="" title="login-gate" width="550" height="211" class="aligncenter size-medium wp-image-5718" /> </a><br />
再在类的构造函数中加上：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'login_gate'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5714";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5714" title="Permanent Link to 最近我博客的spam和尝试恶意登录的人不少啊" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5714</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/memory/hacklog/fuck-spam-and-the-malicious-user.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>WordPress中的数据序列化和数据可移植性问题[转]</title>
		<link>http://ihacklog.com/php/wordpress/data-portability-and-data-serialization-in-wordpress.html</link>
		<comments>http://ihacklog.com/php/wordpress/data-portability-and-data-serialization-in-wordpress.html#comments</comments>
		<pubDate>Sun, 15 Apr 2012 09:10:09 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[data portability]]></category>
		<category><![CDATA[data serialization]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5712</guid>
		<description><![CDATA[by Miriam Schwab Over at illuminea, we’ve been migrating WordPress sites for years. So we thought we’d seen it all when it came to WordPress migration. And yet, recently we encountered an issue that we had never dealt with before, that puts a snag in the ...]]></description>
			<content:encoded><![CDATA[<p>by Miriam Schwab</p>
<p>Over at illuminea, we’ve been migrating WordPress sites for years. So we thought we’d seen it all when it came to WordPress migration. And yet, recently we encountered an issue that we had never dealt with before, that puts a snag in the ease with which you can move WordPress sites: data serialization.</p>
<p>One of the reasons we love WordPress is because it’s so future-proof. What I mean by that is that once you have created a WordPress site, you aren’t stuck where you are for the following reasons:</p>
<ul>
<li>Content is separate from form so at any point you can completely redesign your site while retaining content and link structure. This is important to ensure you don’t lose traffic from search engines and inbound links.</li>
<li>As long as the WordPress software continues to be developed, it will continue to support modern web technologies so users are not left with an archaic system that, for example, adores IE7 but doesn’t know what HTML5 is.</li>
<li>Your site is portable. You need to move a site to another server, or even another domain name? No problem. A few steps related to find-and-replace, exporting and importing the database, and setting up global 301 redirects (if you’ve changed domains) and you’re there.</li>
</ul>
<p>All the above is true, except the data portability point. It’s not quite as true as I thought it was.</p>
<h3>Data serialization and its impact on data portability</h3>
<p>(I am a big newbie when it comes to data serialization, so the following is based on what I’ve managed to learn over the while and could very well be inaccurate/wrong.)</p>
<p>It seems that developers use data serialization in order to improve performance or efficiency in a database. Instead of creating a new table for data, or storing data in a table which could end up having wasteful empty fields, you can keep all the data in an array in one field. This leads to saved space and simplified SQL statements. Serialized data is stored and recovered using PHP’s serialize() and unserialize() functions. Terri Swallow explains how using serialized data for her multi-user plugin helped save her from creating hundreds of new options for every new user created.</p>
<p>Here’s an example of serialized data from Andrew Nacin:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'apple'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'banana'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orange'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/serialize"><span style="color: #990000;">serialize</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$data</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">// Result is a string we can unserialize into an array:</span><br />
<span style="color: #666666; font-style: italic;">// a:3:{i:0;s:5:&quot;apple&quot;;i:1;s:6:&quot;banana&quot;;i:2;s:6:&quot;orange&quot;;}</span></div></td></tr></tbody></table></div>
<p>But there are serious drawbacks to using serialized data. One problem is that you can’t run a MySQL query on serialized data. The data would have to be pulled out of the table via PHP, unserialized, and then searched using PHP instead of MySQL (thanks to Catch My Fame for explaining this). So let’s say you are storing user data in serialized format, but you want to find out how many of your users are from Australia, you can’t get that info easily.</p>
<p>A serious problem, in my opinion, is the impact serialization has on data portability. It makes it near-impossible to port a WordPress site from one domain to another without losing data. Another  or to port data from WordPress into another programming language – admittedly a rare occurrence, but a possible one that needs to be considered.</p>
<p>There are developers out there who are very frustrated by the use of serialized data:</p>
<p>An anonymous comment left on the PHP manual entry for serialize():</p>
<blockquote><p>Please! please! please! DO NOT serialize data and place it into your database. Serialize can be used that way, but that’s missing the point of a relational database and the datatypes inherent in your database engine. Doing this makes data in your database non-portable, difficult to read, and can complicate queries. If you want your application to be portable to other languages, like let’s say you find that you want to use Java for some portion of your app that it makes sense to use Java in, serialization will become a pain in the buttocks. You should always be able to query and modify data in the database without using a third party intermediary tool to manipulate data to be inserted…That’s not to say serialize() is useless. It’s not…Just don’t abuse serialize because the next guy who comes along will have a maintenance or migration nightmare.</p></blockquote>
<p><a href="http://ihacklog.com/l.php?url=http%3A%2F%2Falexscammon.com%2F2011%2F06%2Fmigrating-wordpress-blogs-fixing-the-serialization%2F" target="_blank">Alexander Scammon</a>: “WordPress does a silly thing.  It has serialized data inside its database.”</p>
<p>Serialized data usage that can have a serious impact on WordPress portability:</p>
<blockquote><p>Some widget data (though for some reason we’ve never had issues retaining widgets via a database dump)<br />
Some theme settings<br />
Plugin data</p></blockquote>
<p>It was related to serialized plugin data that we had our first encounter with data serialization. We had installed a plugin to help a client manage a technical issue on their site without having to get too technical. They entered hundreds of entries in the plugin, but upon moving the site from development to production, the data disappeared. By that point, there was no way to recover it unfortunately, but we had definitely learned a painful, important lesson.
</p>
<h3>So what do we do?</h3>
<p>Some suggestions:</p>
<blockquote><p>Theme and plugin developers: please seriously consider whether the benefits of serializing your data outweigh the potential future problems it could cause.<br />
Theme and plugin developers: if you must use serialized data, please try to make sure there’s some way to export and import the data. Even a simple .csv export is better than nothing.<br />
WordPress users: try to ascertain before using a theme or plugin whether the data is stored in a serialized format.
</p></blockquote>
<p>But let’s say you find yourself with a database that includes serialized data. Here are some tools created by generous souls that might be able to help you port your data without losing it:</p>
<p>Peach – an online utility that aims to deal with the fact that WordPress stores URLs in serialized format, which makes it hard to move a site from one domain to another, or from staging to production. To use this tool (which works best in Chrome) ou drag-and-drop an .sql file into the square in the middle of the page, and set a new domain.</p>
<p>WordPress Search and Replace Tool – this script can also handle multiply nested serializations and multi-byte Unicode changes, which is important now that internationalized domain names are allowed. The code will work for any platform that stores PHP serialized arrays in a MySQL database (Drupal, Joomla, etc.). You must delete the script from your server once you’re finished with it.</p>
<p>fix_serialization.php – Not much description provided with this tool</p>
<p>本文转自：<a href="http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/">Data portability and data serialization in WordPress | WP Garage</a></p>
<p>Posted via <a href="http://0x3f.org/?p=1894">UltraBlog.vim</a>.</p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5712";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5712" title="Permanent Link to WordPress中的数据序列化和数据可移植性问题[转]" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5712</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/php/wordpress/data-portability-and-data-serialization-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vim的插件管理方式</title>
		<link>http://ihacklog.com/software/powerfulvim/vim-plugin-management-solutions.html</link>
		<comments>http://ihacklog.com/software/powerfulvim/vim-plugin-management-solutions.html#comments</comments>
		<pubDate>Sat, 14 Apr 2012 05:26:31 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[插件管理]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5710</guid>
		<description><![CDATA[最原始的方式：纯人肉管理 以前我就是用的这种方式。 使用官方提供的GetLatestScript插件 下面这段介绍引用自 滇狐博客 ： 安装完毕后，创建文件 ~/.vim/GetLatest/GetLatestVimScripts.&#62;dat，按照这样的格式编写你的自动下载配置文件： 12345ScriptID SourceID Filename -------------------------- &#60;插件 id&#62; 0 [:AutoInstall:] &#60;插件文件名&#62; ...]]></description>
			<content:encoded><![CDATA[<h3>最原始的方式：纯人肉管理</h3>
<p>以前我就是用的这种方式。</p>
<h3>使用官方提供的GetLatestScript插件</h3>
<p>下面这段介绍引用自<a href="http://edyfox.codecarver.org/html/vimplugins.html"> 滇狐博客 </a>：</p>
<blockquote>
<p>安装完毕后，创建文件 ~/.vim/GetLatest/GetLatestVimScripts.&gt;dat，按照这样的格式编写你的自动下载配置文件：</p>
</blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ScriptID SourceID Filename<br />
--------------------------<br />
&lt;插件 id&gt; 0 [:AutoInstall:] &lt;插件文件名&gt;<br />
&lt;插件 id&gt; 0 [:AutoInstall:] &lt;插件文件名&gt;<br />
...</div></td></tr></tbody></table></div>
<blockquote><p>每行写一个插件的下载信息。插件 id 就是在 Vim 主页下载插件时 URL 中的 script_id= 后面的那个数字。第二个参数是前一次成功下载到的插件文件编号，第一次使用的时候该参数写 0，成功使用一次后会自动被修改为该插件最新版本的文件编号。第三个参数是该插件下载成功后是否自动安装，如果要自动安装的话就写上 :AutoInstall:。滇狐不建议使用自动安装，因此第三个参数建议省略不要写。第四个参数是插件的名称，一般和下载到的插件的文件名相同，当然即使不同也不会造成太大影响，这个参数主要用于防止某些插件自动将自己加入到这张列表，并非用于指定插件的下载文件名，更详细情况请参看该插件的文档。
</p></blockquote>
<h3>Pathogen</h3>
<p>与前面的相比，利用Pathogen 和git submodule来管理插件就方便多了。<br />
 这里有一篇很好的介绍：<a href="http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/">《Synchronizing plugins with git submodules and pathogen》 </a>，附带视频：<br />
<video width="640" height="480" controls="controls"><br />
  <source src="http://media.vimcasts.org/videos/27/sync_with_git.ogv" type="video/ogg" /><br />
  Your browser does not support the video tag.<br />
</video></p>
<h3>vundle</h3>
<p>vundle是目前我在使用的插件管理方式<br />
利用vundle的好处是，更新和安装新插件都非常方便。<br />
安装插件只要写一条:<br />
Bundle &#8216;xxxx&#8217;<br />
然后再在vim中执行：<br />
BundleInsall<br />
要卸载的话，只要注释掉或删除这一句就可以。<br />
更新插件与安装的命令相同，不过后面要加一个感叹号。</p>
<p>不好的地方是，由于一般我们喜欢让.vim目录处于git版本控制之下，而<br />
bundle目录下面通过git clone过来的插件目录下面也有.git目录，在父目录提交时<br />
，有.git的目录中的文件不会提交到远程repo.</p>
<h3>另外还有neobundle</h3>
<p>这是一个改进版的vundle,支持更多的repo格式(vundle只支持github上的repo)。基本功能同vundle。</p>
<h3>muzuiget的方法</h3>
<p>muzuiget的方法也不错。<br />
<a href="https://github.com/muzuiget/vimfiles/tree/master/scripts">vimfiles/scripts at master · muzuiget/vimfiles · GitHub</a><br />
<a href="http://qixinglu.com/archives/my_vimfiles_solution">我的vimfiles方案 | 七星庐</a></p>
<h3>vim-flavor</h3>
<p><a href="https://github.com/kana/vim-flavor">vim-flavor</a>其实其实现还是蛮好的，不过<br />
作者不太喜欢考虑插件版本的兼容性问题，这个问题我提交过issue,作者表示不愿意修改（见<a href="https://github.com/kana/vim-flavor/issues/14">issue#14</a> ).<br />
vim-flavor可以：<br />
管理插件的安装/更新/卸载<br />
管理插件的版本号与依赖关系（这一点上面所有插件都没有做到）<br />
vim-flavor不可以：<br />
安装版本号中带特殊字符的插件（如1.1@1 or v1.2,这一点非常蛋疼)<br />
因为最后一条，我弃用vim-flavor并开始使用vundle了。</p>
<p>Posted via <a href="http://0x3f.org/?p=1894">UltraBlog.vim</a>.</p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5710";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5710" title="Permanent Link to Vim的插件管理方式" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5710</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/powerfulvim/vim-plugin-management-solutions.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://media.vimcasts.org/videos/27/sync_with_git.ogv" length="19428011" type="video/ogg" />
		</item>
		<item>
		<title>如何从Git中移除不小心提交的文件？</title>
		<link>http://ihacklog.com/version-control/git/how-to-remove-accidentally-added-files-from-git.html</link>
		<comments>http://ihacklog.com/version-control/git/how-to-remove-accidentally-added-files-from-git.html#comments</comments>
		<pubDate>Fri, 13 Apr 2012 13:03:54 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[stackoverflow]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5708</guid>
		<description><![CDATA[在stackoverflow看到的： 1234567891011121314151617# create and check out a temporary branch at the location of the bad merge git checkout -b tmpfix &#60;sha1-of-merge&#62; # remove the incorrectly added file git rm somefile.orig # commit the amended merge git c...]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://stackoverflow.com/questions/307828/git-remove-file-accidentally-added-to-the-repository">stackoverflow</a>看到的：</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># create and check out a temporary branch at the location of the bad merge<br />
git checkout -b tmpfix &lt;sha1-of-merge&gt;<br />
<br />
# remove the incorrectly added file<br />
git rm somefile.orig<br />
<br />
# commit the amended merge<br />
git commit --amend<br />
<br />
# go back to the master branch<br />
git checkout master<br />
<br />
# replant the master branch onto the corrected merge<br />
git rebase tmpfix<br />
<br />
# delete the temporary branch<br />
git branch -d tmpfix</div></td></tr></tbody></table></div>
<p>下面还有一种方法，不过使用的命令比上面的复杂：</p>
<p>This is the best way:</p>
<p>http://github.com/guides/completely-remove-a-file-from-all-revisions</p>
<p>Just be sure to backup the copies of the files first.</p>
<p>EDIT</p>
<p>The edit by Neon got unfortunately rejected during review.<br />
See Neons post below, it might contain useful information!</p>
<p>E.g. to remove all *.gz files accidentally committed into git repository:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ du -sh .git ==&gt; e.g. 100M<br />
$ git filter-branch --index-filter 'git rm --cached --ignore-unmatch *.gz' HEAD<br />
$ git push origin master --force<br />
$ rm -rf .git/refs/original/<br />
$ git reflog expire --expire=now --all<br />
$ git gc --prune=now<br />
$ git gc --aggressive --prune=now</div></td></tr></tbody></table></div>
<p>That still didn&#8217;t work for me? (I am currently at git version 1.7.6.1)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ du -sh .git ==&gt; e.g. 100M</div></td></tr></tbody></table></div>
<p>Not sure why, since I only had ONE master branch. Anyways, I finally got my git repo truely cleaned up by pushing into a new empty and bare git repository, e.g.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ git init --bare /path/to/newcleanrepo.git<br />
$ git push /path/to/newcleanrepo.git master<br />
$ du -sh /path/to/newcleanrepo.git ==&gt; e.g. 5M</div></td></tr></tbody></table></div>
<p>(yes!)</p>
<p>Then I clone that to a new directory and moved over it&#8217;s .git folder into this one. e.g.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mv .git ../large_dot_git<br />
$ git clone /path/to/newcleanrepo.git ../tmpdir<br />
$ mv ../tmpdir/.git .<br />
$ du -sh .git ==&gt; e.g. 5M</div></td></tr></tbody></table></div>
<p>(yeah! finally cleaned up!)</p>
<p>After verifying that all is well, then you can delete the ../large<em>dot</em>git and ../tmpdir directories (maybe in a couple weeks or month from now, just in case&#8230;)</p>
<p>Posted via <a href="http://0x3f.org/?p=1894">UltraBlog.vim</a>.</p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5708";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5708" title="Permanent Link to 如何从Git中移除不小心提交的文件？" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5708</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/version-control/git/how-to-remove-accidentally-added-files-from-git.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用Octopress搭建基于github的博客</title>
		<link>http://ihacklog.com/version-control/git/how-to-setup-an-octopress-blog-on-github.html</link>
		<comments>http://ihacklog.com/version-control/git/how-to-setup-an-octopress-blog-on-github.html#comments</comments>
		<pubDate>Fri, 13 Apr 2012 05:03:06 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[Octopress]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5686</guid>
		<description><![CDATA[安装ruby环境 如果已经安装了ruby,就不用安装rvm 了。 Archlinux用户建议用pacman 安装ruby,方便省事。 Archlinux安装RVM教程： https://wiki.archlinux.org/index.php/RVM 1234567891011121314151617181920212223242526272829303132333435&#91;admin@huangye ~&#93;$ sudo bash &#60; &#60;&#40;curl -s https:/...]]></description>
			<content:encoded><![CDATA[<h3>安装ruby环境</h3>
<p>如果已经安装了ruby,就不用安装rvm 了。<br />
Archlinux用户建议用pacman 安装ruby,方便省事。</p>
<hr />
<p>Archlinux安装RVM教程：<br />
<a href="http://ihacklog.com/l.php?url=https%3A%2F%2Fwiki.archlinux.org%2Findex.php%2FRVM" target="_blank">https://wiki.archlinux.org/index.php/RVM</a></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>curl <span style="color: #660033;">-s</span> https:<span style="color: #000000; font-weight: bold;">//</span>raw.github.com<span style="color: #000000; font-weight: bold;">/</span>wayneeseguin<span style="color: #000000; font-weight: bold;">/</span>rvm<span style="color: #000000; font-weight: bold;">/</span>master<span style="color: #000000; font-weight: bold;">/</span>binscripts<span style="color: #000000; font-weight: bold;">/</span>rvm-installer <span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Downloading RVM from wayneeseguin branch master<br />
&nbsp; <span style="color: #000000; font-weight: bold;">%</span> Total &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">%</span> Received <span style="color: #000000; font-weight: bold;">%</span> Xferd &nbsp;Average Speed &nbsp; Time &nbsp; &nbsp;Time &nbsp; &nbsp; Time &nbsp;Current<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Dload &nbsp;Upload &nbsp; Total &nbsp; Spent &nbsp; &nbsp;Left &nbsp;Speed<br />
<span style="color: #000000;">100</span> &nbsp; <span style="color: #000000;">125</span> &nbsp;<span style="color: #000000;">100</span> &nbsp; <span style="color: #000000;">125</span> &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp; &nbsp; <span style="color: #000000;">0</span> &nbsp; &nbsp; <span style="color: #000000;">47</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">0</span>:00:02 &nbsp;<span style="color: #000000;">0</span>:00:02 --:--:-- &nbsp; &nbsp;<span style="color: #000000;">77</span><br />
<span style="color: #000000;">100</span> &nbsp;973k &nbsp;<span style="color: #000000;">100</span> &nbsp;973k &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp; &nbsp; <span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">73848</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp;<span style="color: #000000;">0</span>:00:<span style="color: #000000;">13</span> &nbsp;<span style="color: #000000;">0</span>:00:<span style="color: #000000;">13</span> --:--:-- <span style="color: #000000;">94818</span><br />
<br />
Installing RVM to <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>rvm<span style="color: #000000; font-weight: bold;">/</span><br />
&nbsp; &nbsp; Creating RVM system user group <span style="color: #ff0000;">'rvm'</span><br />
<br />
<span style="color: #666666; font-style: italic;"># RVM: &nbsp;Shell scripts enabling management of multiple ruby environments.</span><br />
<span style="color: #666666; font-style: italic;"># RTFM: https://rvm.beginrescueend.com/</span><br />
<span style="color: #666666; font-style: italic;"># HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)</span><br />
<span style="color: #666666; font-style: italic;"># Cheatsheet: http://cheat.errtheblog.com/s/rvm/</span><br />
<span style="color: #666666; font-style: italic;"># Screencast: http://screencasts.org/episodes/how-to-use-rvm</span><br />
<br />
<span style="color: #666666; font-style: italic;"># In case of any issues read output of 'rvm requirements' and/or 'rvm notes'</span><br />
<br />
Installation of RVM <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>rvm<span style="color: #000000; font-weight: bold;">/</span> is almost complete:<br />
<br />
&nbsp; <span style="color: #000000; font-weight: bold;">*</span> First you need to add all <span style="color: #c20cb9; font-weight: bold;">users</span> that will be using rvm to <span style="color: #ff0000;">'rvm'</span> group,<br />
&nbsp; &nbsp; and <span style="color: #7a0874; font-weight: bold;">logout</span> - <span style="color: #c20cb9; font-weight: bold;">login</span> again, anyone using rvm will be operating with <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">umask</span> g+<span style="color: #c20cb9; font-weight: bold;">w</span><span style="color: #000000; font-weight: bold;">`</span>.<br />
<br />
&nbsp; <span style="color: #000000; font-weight: bold;">*</span> To start using RVM you need to run <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>profile.d<span style="color: #000000; font-weight: bold;">/</span>rvm.sh<span style="color: #000000; font-weight: bold;">`</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">in</span> all your open shell windows, <span style="color: #000000; font-weight: bold;">in</span> rare cases you need to reopen all shell windows.<br />
<br />
<span style="color: #666666; font-style: italic;"># 荒野无灯,</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp; Thank you for using RVM!</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp; I sincerely hope that RVM helps to make your life easier and more enjoyable!!!</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># ~Wayne</span><br />
<br />
<br />
rvm 1.11.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> by Wayne E. Seguin <span style="color: #000000; font-weight: bold;">&lt;</span>wayneeseguin<span style="color: #000000; font-weight: bold;">@</span>gmail.com<span style="color: #000000; font-weight: bold;">&gt;</span>, Michal Papis <span style="color: #000000; font-weight: bold;">&lt;</span>mpapis<span style="color: #000000; font-weight: bold;">@</span>gmail.com<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>https:<span style="color: #000000; font-weight: bold;">//</span>rvm.beginrescueend.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></div></td></tr></tbody></table></div>
<p>添加当前用户到rvm 组</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> usermod <span style="color: #660033;">-a</span> <span style="color: #660033;">-G</span> rvm admin</div></td></tr></tbody></table></div>
<p>查看下添加成功了没：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">grep</span> rvm <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>group<br />
rvm:x:<span style="color: #000000;">1004</span>:admin</div></td></tr></tbody></table></div>
<p>再注销，登录。</p>
<blockquote><p>* To start using RVM you need to run `source /etc/profile.d/rvm.sh`<br />
    in all your open shell windows, in rare cases you need to reopen all shell windows.</p></blockquote>
<hr />
已经安装了ruby的就可以从这里开始了。</p>
<h3>安装依赖</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye public_html<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ gem <span style="color: #c20cb9; font-weight: bold;">install</span> bundler<br />
WARNING: &nbsp;You don<span style="color: #ff0000;">'t have /home/admin/.gem/ruby/1.9.1/bin in your PATH,<br />
&nbsp; &nbsp; &nbsp; gem executables will not run.<br />
vim ~/.bashrc<br />
#for ruby gem<br />
PATH=$PATH:~/.gem/ruby/1.9.1/bin<br />
export PATH</span></div></td></tr></tbody></table></div>
<p>注意路径后面不能带/，不然它还是会报错。。。。。</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> bundler<br />
<span style="color: #000000;">1</span> gem installed<br />
Installing ri documentation <span style="color: #000000; font-weight: bold;">for</span> bundler-1.1.3...<br />
Installing RDoc documentation <span style="color: #000000; font-weight: bold;">for</span> bundler-1.1.3...<br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye public_html<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> octopress<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye octopress<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ls</span><br />
CHANGELOG.markdown &nbsp;config.ru &nbsp; &nbsp;Gemfile &nbsp; &nbsp; &nbsp; plugins<span style="color: #000000; font-weight: bold;">/</span> &nbsp;README.markdown<br />
config.rb &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _config.yml &nbsp;Gemfile.lock &nbsp;Rakefile<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye octopress<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ bundle <span style="color: #c20cb9; font-weight: bold;">install</span><br />
Fetching gem metadata from http:<span style="color: #000000; font-weight: bold;">//</span>rubygems.org<span style="color: #000000; font-weight: bold;">/</span>.......<br />
Installing rake <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.9.2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing RedCloth <span style="color: #7a0874; font-weight: bold;">&#40;</span>4.2.8<span style="color: #7a0874; font-weight: bold;">&#41;</span> with native extensions <br />
Installing posix-spawn <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.3.6<span style="color: #7a0874; font-weight: bold;">&#41;</span> with native extensions <br />
Installing albino <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.3.3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing blankslate <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.1.2.4<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing chunky_png <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.2.1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing fast-stemmer <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.0.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> with native extensions <br />
Installing classifier <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.3.3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing fssm <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.2.7<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing sass <span style="color: #7a0874; font-weight: bold;">&#40;</span>3.1.5<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing compass <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.11.5<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing directory_watcher <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.4.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing ffi <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.0.9<span style="color: #7a0874; font-weight: bold;">&#41;</span> with native extensions <br />
Installing haml <span style="color: #7a0874; font-weight: bold;">&#40;</span>3.1.2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing kramdown <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.13.3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing liquid <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing syntax <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.0.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing maruku <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.6.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing jekyll <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.11.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing rubypython <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.5.1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing pygments.rb <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.1.3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing rack <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.3.2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing rb-fsevent <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.4.3.1<span style="color: #7a0874; font-weight: bold;">&#41;</span> with native extensions <br />
Installing rdiscount <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.6.8<span style="color: #7a0874; font-weight: bold;">&#41;</span> with native extensions <br />
Installing rubypants <span style="color: #7a0874; font-weight: bold;">&#40;</span>0.2.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing tilt <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.3.2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing sinatra <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.2.6<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Installing stringex <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.3.0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Using bundler <span style="color: #7a0874; font-weight: bold;">&#40;</span>1.1.3<span style="color: #7a0874; font-weight: bold;">&#41;</span> <br />
Your bundle is <span style="color: #7a0874; font-weight: bold;">complete</span><span style="color: #000000; font-weight: bold;">!</span> Use <span style="color: #000000; font-weight: bold;">`</span>bundle show <span style="color: #7a0874; font-weight: bold;">&#91;</span>gemname<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">`</span> to see where a bundled gem is installed.</div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye octopress<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ rake <span style="color: #c20cb9; font-weight: bold;">install</span><br />
rake aborted<span style="color: #000000; font-weight: bold;">!</span><br />
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle <span style="color: #7a0874; font-weight: bold;">exec</span> may solve this.<br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>See full trace by running task with --trace<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></td></tr></tbody></table></div>
<p>答案：http://stackoverflow.com/questions/7918804/how-do-i-keep-all-gems-in-gemfile-compatible-after-an-update<br />
rake aborted解决办法：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bundle <span style="color: #7a0874; font-weight: bold;">exec</span> rake db:migrate<br />
bundle update</div></td></tr></tbody></table></div>
<p>再装：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye octopress<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ rake <span style="color: #c20cb9; font-weight: bold;">install</span><br />
<span style="color: #666666; font-style: italic;">## Copying classic theme into ./source and ./sass</span><br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #7a0874; font-weight: bold;">source</span><br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> .themes<span style="color: #000000; font-weight: bold;">/</span>classic<span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>. <span style="color: #7a0874; font-weight: bold;">source</span><br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> sass<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> .themes<span style="color: #000000; font-weight: bold;">/</span>classic<span style="color: #000000; font-weight: bold;">/</span>sass<span style="color: #000000; font-weight: bold;">/</span>. sass<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> source<span style="color: #000000; font-weight: bold;">/</span>_posts<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> public</div></td></tr></tbody></table></div>
<hr />
<h3>Deploying to Github Pages</h3>
<p>http://octopress.org/docs/deploying/github/</p>
<p>首次deploy 之前的准备活动<br />
创建 username.github.com 仓库<br />
执行rake setup_github_pages来设置。</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye octopress<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ rake setup_github_pages<br />
Enter the read<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">write</span> url <span style="color: #000000; font-weight: bold;">for</span> your repository: <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>github.com:ihacklog<span style="color: #000000; font-weight: bold;">/</span>ihacklog.github.com.git<br />
Added remote <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>github.com:ihacklog<span style="color: #000000; font-weight: bold;">/</span>ihacklog.github.com.git <span style="color: #c20cb9; font-weight: bold;">as</span> origin<br />
Set origin <span style="color: #c20cb9; font-weight: bold;">as</span> default remote<br />
Master branch renamed to <span style="color: #ff0000;">'source'</span> <span style="color: #000000; font-weight: bold;">for</span> committing your blog <span style="color: #7a0874; font-weight: bold;">source</span> files<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> _deploy<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> _deploy<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> _deploy<br />
Initialized empty Git repository <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>admin<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>octopress<span style="color: #000000; font-weight: bold;">/</span>_deploy<span style="color: #000000; font-weight: bold;">/</span>.git<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>master <span style="color: #7a0874; font-weight: bold;">&#40;</span>root-commit<span style="color: #7a0874; font-weight: bold;">&#41;</span> ff105cf<span style="color: #7a0874; font-weight: bold;">&#93;</span> Octopress init<br />
&nbsp;<span style="color: #000000;">1</span> <span style="color: #c20cb9; font-weight: bold;">file</span> changed, <span style="color: #000000;">1</span> insertion<span style="color: #7a0874; font-weight: bold;">&#40;</span>+<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp;create mode <span style="color: #000000;">100644</span> index.html<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> -<br />
<br />
<span style="color: #660033;">---</span><br />
<span style="color: #666666; font-style: italic;">## Now you can deploy to http://ihacklog.github.com with `rake deploy` ##</span></div></td></tr></tbody></table></div>
<p>This will:</p>
<blockquote><p>    Ask you for your Github Pages repository url.<br />
    Rename the remote pointing to imathis/octopress from ‘origin’ to ‘octopress’<br />
    Add your Github Pages repository as the default origin remote.<br />
    Switch the active branch from master to source.<br />
    Configure your blog’s url according to your repository.<br />
    Setup a master branch in the _deploy directory for deployment.</p></blockquote>
<p>生成静态页面：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>admin<span style="color: #000000; font-weight: bold;">@</span>huangye octopress<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ rake generate<br />
<span style="color: #666666; font-style: italic;">## Generating Site with Jekyll</span><br />
directory source<span style="color: #000000; font-weight: bold;">/</span>stylesheets<span style="color: #000000; font-weight: bold;">/</span> <br />
&nbsp; &nbsp;create source<span style="color: #000000; font-weight: bold;">/</span>stylesheets<span style="color: #000000; font-weight: bold;">/</span>screen.css <br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>maruku-0.6.0<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>maruku<span style="color: #000000; font-weight: bold;">/</span>input<span style="color: #000000; font-weight: bold;">/</span>parse_doc.rb:<span style="color: #000000;">22</span>:in <span style="color: #000000; font-weight: bold;">`&lt;</span>top <span style="color: #7a0874; font-weight: bold;">&#40;</span>required<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #ff0000;">': iconv will be deprecated in the future, use String#encode instead.<br />
Configuration from /home/admin/public_html/octopress/_config.yml<br />
Building site: source -&gt; public<br />
Successfully generated site: source -&gt; public<br />
[admin@huangye octopress]$ rake deploy<br />
## Deploying branch to Github Pages <br />
rm -rf _deploy/index.html<br />
<br />
## copying public to _deploy<br />
cp -r public/. _deploy<br />
cd _deploy<br />
<br />
## Commiting: Site updated at 2012-04-07 12:06:25 UTC<br />
[master 259fbb3] Site updated at 2012-04-07 12:06:25 UTC<br />
&nbsp;61 files changed, 2658 insertions(+), 1 deletion(-)<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/background.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/blankButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/divider.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/fullscreenButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/fullscreenButtonOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/muteButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/muteButtonOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/normalscreenButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/normalscreenButtonOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/pauseButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/pauseButtonOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/playButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/playButtonOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/timeSliderBuffer.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/timeSliderCapLeft.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/timeSliderCapRight.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/timeSliderProgress.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/timeSliderRail.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/unmuteButton.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/controlbar/unmuteButtonOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/display/background.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/display/bufferIcon.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/display/muteIcon.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/display/playIcon.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/dock/button.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/glow.xml<br />
&nbsp;create mode 100644 assets/jwplayer/glow/playlist/item.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/playlist/itemOver.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/playlist/sliderCapBottom.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/playlist/sliderCapTop.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/playlist/sliderRail.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/playlist/sliderThumb.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/sharing/embedIcon.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/sharing/embedScreen.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/sharing/shareIcon.png<br />
&nbsp;create mode 100644 assets/jwplayer/glow/sharing/shareScreen.png<br />
&nbsp;create mode 100644 assets/jwplayer/player.swf<br />
&nbsp;create mode 100644 atom.xml<br />
&nbsp;create mode 100644 blog/archives/index.html<br />
&nbsp;create mode 100644 favicon.png<br />
&nbsp;create mode 100644 images/bird_32_gray.png<br />
&nbsp;create mode 100644 images/bird_32_gray_fail.png<br />
&nbsp;create mode 100644 images/code_bg.png<br />
&nbsp;create mode 100644 images/dotted-border.png<br />
&nbsp;create mode 100644 images/email.png<br />
&nbsp;create mode 100644 images/line-tile.png<br />
&nbsp;create mode 100644 images/noise.png<br />
&nbsp;create mode 100644 images/rss.png<br />
&nbsp;create mode 100644 images/search.png<br />
&nbsp;rewrite index.html (100%)<br />
&nbsp;create mode 100644 javascripts/ender.js<br />
&nbsp;create mode 100644 javascripts/github.js<br />
&nbsp;create mode 100644 javascripts/libs/ender.js<br />
&nbsp;create mode 100644 javascripts/libs/jXHR.js<br />
&nbsp;create mode 100644 javascripts/libs/swfobject-dynamic.js<br />
&nbsp;create mode 100644 javascripts/modernizr-2.0.js<br />
&nbsp;create mode 100644 javascripts/octopress.js<br />
&nbsp;create mode 100644 javascripts/pinboard.js<br />
&nbsp;create mode 100644 javascripts/twitter.js<br />
&nbsp;create mode 100644 sitemap.xml<br />
&nbsp;create mode 100644 stylesheets/screen.css<br />
<br />
## Pushing generated _deploy website<br />
Counting objects: 79, done.<br />
Delta compression using up to 2 threads.<br />
Compressing objects: 100% (72/72), done.<br />
Writing objects: 100% (79/79), 179.40 KiB, done.<br />
Total 79 (delta 1), reused 0 (delta 0)<br />
To git@github.com:ihacklog/ihacklog.github.com.git<br />
&nbsp;+ 0c118b3...259fbb3 master -&gt; master (forced update)<br />
<br />
## Github Pages deploy complete<br />
cd -</span></div></td></tr></tbody></table></div>
<p>接下来把博客源码push上去：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git add</span> .<br />
<span style="color: #c20cb9; font-weight: bold;">git commit</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;commit the source for my Octopress blog&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">git push</span> origin <span style="color: #7a0874; font-weight: bold;">source</span></div></td></tr></tbody></table></div>
<hr />
<h3>Configuring Octopress</h3>
<p>配置<br />
略，见 <a href="http://ihacklog.com/l.php?url=http%3A%2F%2Foctopress.org%2Fdocs%2Fconfiguring%2F" target="_blank">http://octopress.org/docs/configuring/</a></p>
<h3>写日志</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rake new_post<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;文章标题&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #666666; font-style: italic;">#新建页面</span><br />
rake new_page<span style="color: #7a0874; font-weight: bold;">&#91;</span>super-awesome<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></td></tr></tbody></table></div>
<p>详见 <a href="http://ihacklog.com/l.php?url=http%3A%2F%2Foctopress.org%2Fdocs%2Fblogging%2F" target="_blank">http://octopress.org/docs/blogging/</a><br />
写完了之后</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rake generate<br />
rake deploy</div></td></tr></tbody></table></div>
<p>如果想本地预览一下效果，可以用</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rake preview</div></td></tr></tbody></table></div>
<blockquote><p>要注意的是，如果修改源码和配置，是在source 分支修改和提交。<br />
而发布日志，也是在source分支，rake deploy会自动将生成的静态页面push到master分支。因此，master分支的内容不用你管。</p></blockquote>
<p>rake watch 检测文件变化，实时生成新内容<br />
rake preview 监听本机4000端口，可查看生成页面效果。</p>
<p>我的github博客页面：<a href="http://github.ihacklog.com/" target="_blank">http://github.ihacklog.com//</a></p>
<p>个性化<br />
文档： <a href="http://ihacklog.com/l.php?url=http%3A%2F%2Foctopress.org%2Fdocs%2Ftheme%2Ftemplate%2F" target="_blank">http://octopress.org/docs/theme/template/</a><br />
修改定制文件/source/_includes/custom/head.html 把google的自定义字体去掉或自行定义，如我的（自己下载了google font)：</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/assets/font/PT_Serif.css&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/assets/font/PT_Sans.css&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span></div></td></tr></tbody></table></div>
<p>我把下载的google font放在 source/assets/font 目录下面。</p>
<p>图片发布<br />
我把图片放在source/static 目录。<br />
在文章中引用（注意URL前面的/)：</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">![ Ultrablog.vim post title bug ](/static/2012/04/UltraBlog-post-title-bug.png)</div></td></tr></tbody></table></div>
<p>个性域名<br />
先去给域名建立一个CNAME记录，指向 <strong>username</strong>.github.com ,如 <strong>ihacklog.github.com</strong><br />
在source目录下建一个名为CNAME的文件，然后将自己的域名输入进去<br />
如：</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">github.ihacklog.com</div></td></tr></tbody></table></div>
<p>文档： http://help.github.com/pages/</p>
<p>其它，如sidebar的修改等，可参考文档。<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Foctopress.org%2Fdocs%2Ftheme%2Ftemplate%2F" target="_blank">http://octopress.org/docs/theme/template/</a><br />
我这就不写了。</p>
<p>其它可参考的文章： <a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fblog.devtang.com%2Fblog%2F2012%2F02%2F10%2Fsetup-blog-based-on-github%2F" target="_blank">http://blog.devtang.com/blog/2012/02/10/setup-blog-based-on-github/</a></p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5686";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5686" title="Permanent Link to 用Octopress搭建基于github的博客" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5686</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/version-control/git/how-to-setup-an-octopress-blog-on-github.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>安装UltraBlog.vim,用Vim写博客</title>
		<link>http://ihacklog.com/software/powerfulvim/write-blog-with-ultrablog-plugin-in-vim.html</link>
		<comments>http://ihacklog.com/software/powerfulvim/write-blog-with-ultrablog-plugin-in-vim.html#comments</comments>
		<pubDate>Tue, 10 Apr 2012 13:36:57 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[UltraBlog]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[神器]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5694</guid>
		<description><![CDATA[其实先前我是在用我修改版的vimrepress的。 UltraBlog.vim可以说开发也有一段时间了，记得是去年就已经有在开发了，不过我那时候觉得vimrepress还不错，自己改改用着也行。现在试了下UB,真的非常给力。 官方主页：UltraBlog.vim (ps:本文内容全部通过UltraBlog.vim发送) 安装依赖库 在Archlinux下安装： 123456789101112131415sudo pacman -S --needed python2-sqlalchemy sudo pacm...]]></description>
			<content:encoded><![CDATA[<p>其实先前我是在用我修改版的vimrepress的。<br />
UltraBlog.vim可以说开发也有一段时间了，记得是去年就已经有在开发了，不过我那时候觉得vimrepress还不错，自己改改用着也行。现在试了下UB,真的非常给力。<br />
官方主页：<a href="http://sinolog.it/?p=1894">UltraBlog.vim</a></p>
<p>(ps:本文内容全部通过UltraBlog.vim发送)</p>
<h3>安装依赖库</h3>
<p>在Archlinux下安装：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> python2-sqlalchemy<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> python2-markdown<br />
yaourt <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> python-html2text<br />
<span style="color: #666666; font-style: italic;">#sudo pacman -S --needed python-markdown</span><br />
<span style="color: #666666; font-style: italic;">#由于现在的Vim基本上是带python 2.7 接口的,因此要指定装python2版的库</span><br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> installing python-html2text &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #666666; font-style: italic;">######################] 100%</span><br />
==<span style="color: #000000; font-weight: bold;">&gt;</span> Packages no longer required by any installed package:<br />
&nbsp; &nbsp; python2-distribute<br />
missing dependency <span style="color: #000000; font-weight: bold;">for</span> mach64-dri : <span style="color: #007800;">libgl</span>=7.11.2<br />
missing dependency <span style="color: #000000; font-weight: bold;">for</span> mga-dri : <span style="color: #007800;">libgl</span>=7.11.2<br />
missing dependency <span style="color: #000000; font-weight: bold;">for</span> r128-dri : <span style="color: #007800;">libgl</span>=7.11.2<br />
missing dependency <span style="color: #000000; font-weight: bold;">for</span> sis-dri : <span style="color: #007800;">libgl</span>=7.11.2<br />
missing dependency <span style="color: #000000; font-weight: bold;">for</span> tdfx-dri : <span style="color: #007800;">libgl</span>=7.11.2<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-Ru</span> mach64-dri mga-dri r128-dri sis-dri tdfx-dri</div></td></tr></tbody></table></div>
<p>修正：<br />
经测试发现，pytho-markdown不能正常处理pre标记（代码中若有空行会被p标记包裹),后来xbot(UltraBlog.vim的作者)说他一直在用python-markdown2,速度比python-markdown<br />
要快，且没有发现此问题，于是我也把python-markdown<br />
卸载了，安装python-markdown2 .</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-Ru</span> python2-markdown<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-Ru</span> python-markdown<br />
<span style="color: #c20cb9; font-weight: bold;">git clone</span> https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>trentm<span style="color: #000000; font-weight: bold;">/</span>python-markdown2.git<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> python-markdown2<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> python2 setup.py <span style="color: #c20cb9; font-weight: bold;">install</span><br />
Password: <br />
running <span style="color: #c20cb9; font-weight: bold;">install</span><br />
running build<br />
running build_py<br />
creating build<br />
creating build<span style="color: #000000; font-weight: bold;">/</span>lib<br />
copying lib<span style="color: #000000; font-weight: bold;">/</span>markdown2.py -<span style="color: #000000; font-weight: bold;">&gt;</span> build<span style="color: #000000; font-weight: bold;">/</span>lib<br />
running build_scripts<br />
creating build<span style="color: #000000; font-weight: bold;">/</span>scripts-<span style="color: #000000;">2.7</span><br />
copying and adjusting bin<span style="color: #000000; font-weight: bold;">/</span>markdown2 -<span style="color: #000000; font-weight: bold;">&gt;</span> build<span style="color: #000000; font-weight: bold;">/</span>scripts-<span style="color: #000000;">2.7</span><br />
changing mode of build<span style="color: #000000; font-weight: bold;">/</span>scripts-<span style="color: #000000;">2.7</span><span style="color: #000000; font-weight: bold;">/</span>markdown2 from <span style="color: #000000;">644</span> to <span style="color: #000000;">755</span><br />
running install_lib<br />
copying build<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>markdown2.py -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>python2.7<span style="color: #000000; font-weight: bold;">/</span>site-packages<br />
byte-compiling <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>python2.7<span style="color: #000000; font-weight: bold;">/</span>site-packages<span style="color: #000000; font-weight: bold;">/</span>markdown2.py to markdown2.pyc<br />
running install_scripts<br />
copying build<span style="color: #000000; font-weight: bold;">/</span>scripts-<span style="color: #000000;">2.7</span><span style="color: #000000; font-weight: bold;">/</span>markdown2 -<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<br />
changing mode of <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>markdown2 to <span style="color: #000000;">755</span><br />
running install_egg_info<br />
Writing <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>python2.7<span style="color: #000000; font-weight: bold;">/</span>site-packages<span style="color: #000000; font-weight: bold;">/</span>markdown2-1.3.2-py2.7.egg-info</div></td></tr></tbody></table></div>
<h3>安装插件</h3>
<p>从git clone :<br />
这是我的一个fork版，做了一点点修改：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git clone</span> <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>github.com:ihacklog<span style="color: #000000; font-weight: bold;">/</span>UltraBlog.vim.git</div></td></tr></tbody></table></div>
<p>ps:此插件支持vundle.</p>
<h3>配置</h3>
<p>配置sample:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">let ub_blog = {'login_name':'BLOG-USER-NAME',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \'password':'USER-PASSWORD',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \'url':'http://ihacklog.com/',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \'db':'~/.vim/UltraBlog.db'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \}<br />
&quot; Default page size of local post list, see :help ub_local_pagesize for more information<br />
let ub_local_pagesize = 30<br />
<br />
&quot; Default page size of remote post list, see :help ub_remote_pagesize for more information<br />
let ub_remote_pagesize = 15<br />
<br />
&quot; Default page size of search result list, see :help ub_search_pagesize for more information<br />
<br />
let ub_search_pagesize = 30<br />
<br />
&quot; Proudly show your visitors that you are blogging with the world's most powerful editor<br />
let ub_append_promotion_link = 1<br />
<br />
&quot; Set width of the local id column in post or page lists<br />
let ub_list_col1_width = 7<br />
<br />
&quot; Set width of the remote id column in post or page lists<br />
let ub_list_col2_width = 8<br />
<br />
&quot; Set width of the status column in post or page lists<br />
let ub_list_col3_width = 11<br />
&quot; Set this value to 1 if you want to use editor mode.<br />
let ub_editor_mode = 0<br />
<br />
&quot; Set this value to 1 if you want to save posts/pages immediately after they are fetched from the blog.<br />
let ub_save_after_opened = 0<br />
&quot; Set this value to 0 if you do not want to save posts/pages immediately after they are sent to the blog.<br />
let ub_save_after_sent = 1<br />
<br />
&quot; Set the following options to use a custom extenal command as the converter.<br />
let ub_converter_command = 'pandoc'<br />
let ub_converter_options = ['--reference-links']<br />
let ub_converter_option_from = '--from=%s'<br />
let ub_converter_option_to = '--to=%s'<br />
&quot; Customize hotkeys<br />
let ub_hotkey_open_item_in_current_view='&lt;enter&gt;'<br />
let ub_hotkey_open_item_in_splitted_view='&lt;s-enter&gt;'<br />
let ub_hotkey_open_item_in_tabbed_view='&lt;c-enter&gt;'<br />
let ub_hotkey_delete_item='&lt;del&gt;'<br />
&quot;Set the link template string for images uploaded by :UBUpload<br />
&quot;let ub_tmpl_img_url=&quot;markdown###![%(file)s][%(url)s]\n[%(file)s]:%(url)s&quot;<br />
&quot; Set the default template to use when previewing posts/pages locally<br />
let ub_default_template=&quot;default&quot;</div></td></tr></tbody></table></div>
<p>把上面的内容用户名/密码/博客地址修改成你自己的。保存下。</p>
<blockquote>
<p>ps:这个python2-markdown库解析貌似有点问题，<br />
  在pre中包含的东西如有空行，会加入p标记。</p>
</blockquote>
<p>然后在.vimrc中加上：</p>
<div class="codecolorer-container vim default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="vim codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #adadad; font-style: italic;">&quot;UltraBlog.vim</span><br />
<span style="color: #804040;">if</span> <span style="color: #25BB4D;">filereadable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">$</span>HOME <span style="color: #000000;">.</span> <span style="color: #C5A22D;">'/.UltraBlog.vim.conf'</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; source <span style="color: #000000;">$</span>HOME<span style="color: #000000;">/.</span>UltraBlog<span style="color: #000000;">.</span>vim<span style="color: #000000;">.</span>conf<br />
<span style="color: #804040;">endif</span></div></td></tr></tbody></table></div>
<p>截图：<br />
<a href="http://static.ihacklog.com/wp-files/2012/04/UltraBlog.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2012/04/UltraBlog-550x341.png" alt="UltraBlog.png" title="UltraBlog.png" /> </a></p>
<h3>基本命令</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">UBNew<br />
UBNew post<br />
UBNew page<br />
UBSave<br />
UBSend<br />
UBList<br />
UBOpen post post_id <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">|</span>remote<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
UBDel post post_id <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">|</span>remote<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></td></tr></tbody></table></div>
<p>在博客中输入代码的话，建议使用pre标记，以便在WP中用插件高亮代码。</p>
<h3>演示</h3>
<p>这里录了一小部分演示，时间有限，就没有把全部命令演示了。。。</p>
<p><a href="http://static.ihacklog.com/wp-files/2012/04/UltraBlog-screenshot-2.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2012/04/UltraBlog-screenshot-2-550x328.png" alt="UltraBlog-screenshot-2.png" title="UltraBlog-screenshot-2.png" /> </a><br />
<video width="640" height="480" controls="controls"><br />
  <source src="http://storage.live.com/items/81BD8C61C6ED6A26!739?filename=UltraBlog.vim-ihacklog-demo.ogv" type="video/ogg" /><br />
  Your browser does not support the video tag.<br />
</video><br />
&#8211; EOF &#8211;<br />
markdown语法：<a href="http://daringfireball.net/projects/markdown/syntax">Daring Fireball: Markdown Syntax Documentation</a></p>
<p>Posted via <a href="http://0x3f.org/?p=1894">UltraBlog.vim</a>.</p>

                <script type="text/javascript"> 
                    var cur_host=top.location.hostname;
                    var huangye_host="ihacklog.com";
                    if ( huangye_host != cur_host) 
                    {
	                   var cur_url=top.location.href;
	                   //top.location.href = cur_url.replace(cur_host,huangye_host);
	                   top.location.href = "http://ihacklog.com/?p=5694";
                    }
            </script> 			
            <div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a rel="link" style="display:inline-block;width:90px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img style="vertical-align:middle;" border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/picMode_dark_s.png" /></a>,欢迎点击<a href="http://ihacklog.com/donate" target="_blank">这里</a>捐赠以支持荒野无灯<img style="display:inline-block;margin-bottom:-4px;" src="http://ihacklog.com/wordpress/wp-content/plugins/hacklog-package//images/weiboicon16.png" border="0" alt="转播到腾讯微博"> <a href="javascript:;" class="tmblog" id="share_btn_1329282856369" style="height:16px;font-size:12px;line-height:16px;">转播到腾讯微博</a></p></div>
                <!-- 版权声明开始 -->
   		       <div id="permissions">
		      作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		      出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【Hacklog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
                <p>
                 <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by/3.0/deed.zh_TW" target="_blank"> 署名-非商业性使用-相同方式共享 3.0</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
                </p>
                <!-- 协议声明结束 -->
                
                 <p>
                本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5694" title="Permanent Link to 安装UltraBlog.vim,用Vim写博客" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5694</a>
                </p>
             </div>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/powerfulvim/write-blog-with-ultrablog-plugin-in-vim.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
<enclosure url="http://storage.live.com/items/81BD8C61C6ED6A26!739?filename=UltraBlog.vim-ihacklog-demo.ogv" length="17613623" type="video/ogg;" />
		</item>
	</channel>
</rss>

