<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>蓝色的华</title>
	<atom:link href="http://bluehua.org/feed" rel="self" type="application/rss+xml" />
	<link>http://bluehua.org</link>
	<description>分享所学,backup一切~</description>
	<lastBuildDate>Tue, 14 May 2013 09:18:27 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>[转载]我眼中的各Linux发行版用户</title>
		<link>http://bluehua.org/2013/05/14/2149.html</link>
		<comments>http://bluehua.org/2013/05/14/2149.html#comments</comments>
		<pubDate>Tue, 14 May 2013 09:18:27 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=2149</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p><a href="http://bluehua.org/wp-content/uploads/2013/05/我眼中的各Linux发行版用户.jpg"><img src="http://bluehua.org/wp-content/uploads/2013/05/我眼中的各Linux发行版用户.jpg" alt="我眼中的各Linux发行版用户" width="440" height="654" class="alignnone size-full wp-image-2150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2013/05/14/2149.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vim tip:设置终端标题</title>
		<link>http://bluehua.org/2013/02/26/2112.html</link>
		<comments>http://bluehua.org/2013/02/26/2112.html#comments</comments>
		<pubDate>Tue, 26 Feb 2013 04:32:39 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=2112</guid>
		<description><![CDATA[由于同时编辑的文件比较多,项目也不在一块，通过buffer切换不太方便，所以按项目分开编辑，并设置了一下标题， [...]]]></description>
				<content:encoded><![CDATA[<p>由于同时编辑的文件比较多,项目也不在一块，通过buffer切换不太方便，所以按项目分开编辑，并设置了一下标题，清晰许多。</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #000000;">:</span><span style="color: #804040;">set</span> <span style="color: #668080;">title</span>
<span style="color: #000000;">:</span><span style="color: #804040;">set</span> <span style="color: #668080;">titlestring</span>=任务调度</pre></td></tr></table></div>

<p><a href="http://bluehua.org/wp-content/uploads/2013/02/屏幕快照-2013-02-26-下午12.21.44.png"><img src="http://bluehua.org/wp-content/uploads/2013/02/屏幕快照-2013-02-26-下午12.21.44.png" alt="屏幕快照 2013-02-26 下午12.21.44" width="854" height="541" class="alignnone size-full wp-image-2113" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2013/02/26/2112.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>蛇年话Python</title>
		<link>http://bluehua.org/2013/02/21/2098.html</link>
		<comments>http://bluehua.org/2013/02/21/2098.html#comments</comments>
		<pubDate>Thu, 21 Feb 2013 11:56:57 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=2098</guid>
		<description><![CDATA[又做了个Python分享，一批又一批的同事成了前同事，Python还是要继续忽悠的，呵呵～，分享之前还专门发到 [...]]]></description>
				<content:encoded><![CDATA[<p>又做了个Python分享，一批又一批的同事成了前同事，Python还是要继续忽悠的，呵呵～，分享之前还专门发到<a href="http://www.v2ex.com/t/60889#reply26">v2ex</a>征求大家的意见，反映还不错，所以信心也足了些。40页的ppt，花了近2个小时分享完毕，主要两个主题：Python好学易用，Python是现在进行时。</p>
<p>PPT:<a href="http://emptyhua.github.com/python2013/">http://emptyhua.github.com/python2013/</a><br />
项目:<a href="https://github.com/emptyhua/python2013">https://github.com/emptyhua/python2013</a></p>
<p>这也算间接为Python社区做了小小贡献。</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2013/02/21/2098.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>backup:关于coroutine(协程)和事件驱动的一些文章</title>
		<link>http://bluehua.org/2013/02/16/2086.html</link>
		<comments>http://bluehua.org/2013/02/16/2086.html#comments</comments>
		<pubDate>Sat, 16 Feb 2013 03:18:18 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[coroutine]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=2086</guid>
		<description><![CDATA[node.js为什么不用coroutine？ node.js和coroutine 风格之争：Coroutine [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://spartan1.iteye.com/blog/1722356">node.js为什么不用coroutine？</a><br />
<a href="http://shiningray.cn/node-js-coroutine.html">node.js和coroutine</a><br />
<a href="http://www.spnguru.com/2011/07/%E9%A3%8E%E6%A0%BC%E4%B9%8B%E4%BA%89%EF%BC%9Acoroutine-vs-callback/">风格之争：Coroutine vs Callback</a><br />
<a href="http://blog.kghost.info/index.php/2011/10/callcc-and-node-js/">Call/CC与Node.js</a></p>
<p>最早听说协程的概念来源于Lua,后来逛论坛听说了stackless python，再后来听说erlang也是用这种方法，但是一直没怎么细看。正好要准备个年后的python的分享，中间涉及到pypy和stackless python,又得扯到协作式多线程（微线程，协程）的概念，便又了解了一番。</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2013/02/16/2086.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZeroMQ Guide 笔记</title>
		<link>http://bluehua.org/2013/01/31/2045.html</link>
		<comments>http://bluehua.org/2013/01/31/2045.html#comments</comments>
		<pubDate>Thu, 31 Jan 2013 06:12:09 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[zeromq]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=2045</guid>
		<description><![CDATA[首先强烈谴责ZMQ的作者，本身不是一个消息中间件的产品，为毛要起这么个名字，严重误导新手。 ZMQ是什么 1. [...]]]></description>
				<content:encoded><![CDATA[<p>首先强烈谴责ZMQ的作者，本身不是一个消息中间件的产品，为毛要起这么个名字，严重误导新手。</p>
<h3>ZMQ是什么</h3>
<p>1. ZMQ定义了一套“智能”的应用层传输协议。<br />
2. ZMQ为协议提供了多种语言的实现</p>
<h3>ZMQ解决什么问题</h3>
<p>相比HTTP,XMPP等等其他协议，ZMQ自认为”更好的“解决了网络编程的常见问题。</p>
<p>这里假设我们从头开始制定一个像QQ一样的聊天协议，并封装成库给别人用，那我们就不得不考虑下面的问题:<br />
1. 异步IO的需求，这是最基本的需求<br />
2. 兼容多种传输层协议的需求。为了兼容不同的传输层协议,TCP/UDP,ipv4/ipv6我们肯定要做一下封装<br />
3. 连接库的可靠性，需要有buffer，需要有掉线处理的逻辑，需要有消息重传的需求<br />
4. 分布式扩展的需求。随着系统规模的扩展，我们需要对系统进行横向的或纵向的拆分，有了队列和路由的需求，所以我们也要在协议中考虑。<br />
5. 协议的扩展性，支持分片，支持传输流媒体<br />
6. 协议的多语言支持的需求。可能一开始只有PC端，用C语言就够了，但是未来还可能有osx客户端(objc),air客户端(actionscript),.net客户端(C#)。</p>
<p>想想好像也不复杂，协议可以用现成的XMPP，定义自己的二进制协议也更简单，库的话libev，libuv啥的再封装一层就搞定了。正当你想着造一个自己的nb之轮的时候，ZMQ瞟了你一眼，轻蔑的说“你有哥实现的好嘛，乖乖用我的协议吧，细节屏蔽到你感觉不到哥的存在，弯路也帮你走了不少，不止啊，哥的协议包罗万象，帮你实现这个破IM协议算是屈才了。。“</p>
<p>从<a href="http://zguide.zeromq.org/page:all">guide</a>和<a href="http://www.infoq.com/cn/news/2010/09/introduction-zero-mq">一些文章</a>中给我的感觉就是，zmq几乎把其他协议鄙视一圈。总结起来就是，比起TCP这种低级协议，哥更高级，比起XMPP,AMQP这些高级协议，哥更快，比起商业软件来，哥开源免费。比起同步的来哥异步。。。</p>
<p>那ZMQ到低做了神马nb的设计呢，我觉得可以简单的这么描述：ZMQ实现了一套虚拟的应用层的socket，可以拿tcp做个对比。<br />
TCP的socket，传输的是字节流，buffer里是字节流。<br />
ZMQ的socket，传输以Message为单位，buffer是mesage队列。<br />
TCP的socket，只有两个角色client,server<br />
ZMQ的socket, 有更多角色PUB，SUB，REQ，REP，DEALER，ROUTER&#8230;<br />
TCP的socket, 只能是点到点的连接<br />
ZMQ的socket，可以是1-1,1-n,n-1,n-m的任意模型</p>
<p>ZMQ中可以通过各种角色组合来适应不同的应用场景。REQ/REP可以支持传统的c/s应用，PUB/SUB可以实现订阅模式的消息中间件，DEALER/ROUTER可以实现一个中间路由或7层负载的角色。通过把这些组合积木一样的混搭，便可以构建几乎所有复杂的应用拓扑。</p>
<p>这么nb的东西，最关键的是提供的接口很简单，而且使用起来感觉和普通的socket也很像,这里贴个echo server的例子</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$context</span> = new ZMQContext<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #007800;">$responder</span> = new ZMQSocket<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$context</span>, ZMQ::SOCKET_REP<span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #007800;">$responder</span>-<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;tcp://*:5555&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #007800;">$responder</span>-<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;tcp://*:9999&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">true</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #007800;">$request</span> = <span style="color: #007800;">$responder</span>-<span style="color: #000000; font-weight: bold;">&gt;</span>recv<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
    <span style="color: #007800;">$responder</span>-<span style="color: #000000; font-weight: bold;">&gt;</span>send<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$request</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>ZMQ可以当做消息队列用嘛？因为好多人拿来跟rabbitmq啥的做了对比评测啊，千万别。。。ZMQ自带的队列是人家的协议buffer啊，完全没有中间件的特性，只能说利用ZMQ完全可以做一个天生扩展性和可靠性灰常高的消息中间件出来。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2013/01/31/2045.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php &amp; node.js &amp; nginx-lua</title>
		<link>http://bluehua.org/2013/01/06/2024.html</link>
		<comments>http://bluehua.org/2013/01/06/2024.html#comments</comments>
		<pubDate>Sun, 06 Jan 2013 07:28:10 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[nginx-lua]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=2024</guid>
		<description><![CDATA[做了个benchmark，了解下node.js和nginx-lua的能量，结果分享下。 报告:http://b [...]]]></description>
				<content:encoded><![CDATA[<p>做了个benchmark，了解下node.js和nginx-lua的能量，结果分享下。<br />
报告:<a href="http://bluehua.org/demo/php.node.lua.html">http://bluehua.org/demo/php.node.lua.html</a></p>
<p>结论:nginx-lua无论性能还是资源占用都很惊艳,node.js CPU耗的有点高</p>
<p>warning：请不要因为这个报告为您造成误导，每种语言都有它存在的价值和适用的场景：）</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2013/01/06/2024.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>fix:ssh主机管理工具～</title>
		<link>http://bluehua.org/2012/11/28/1975.html</link>
		<comments>http://bluehua.org/2012/11/28/1975.html#comments</comments>
		<pubDate>Wed, 28 Nov 2012 13:28:00 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshgo]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1975</guid>
		<description><![CDATA[从一开使用ubuntu,到后来换到mac，一直使用系统自带的ssh命令，上传文件使用scp命令，由于平时使用并 [...]]]></description>
				<content:encoded><![CDATA[<p>从一开使用ubuntu,到后来换到mac，一直使用系统自带的ssh命令，上传文件使用scp命令，由于平时使用并不频繁，也不觉得麻烦。再后来每天用到的机器多了，就不得不每次去公司wiki上查一下机器名，然后粘贴一下，次数多了，就迫切需要一个能像securecrt一样管理主机列表的功能。<br />
首先发掘的用的是mac自带终端<br />
<a href="http://bluehua.org/wp-content/uploads/2012/11/屏幕快照-2012-11-28-下午5.13.14.png"><img src="http://bluehua.org/wp-content/uploads/2012/11/屏幕快照-2012-11-28-下午5.13.14.png" alt="" title="屏幕快照 2012-11-28 下午5.13.14" width="536" height="536" class="alignnone size-full wp-image-1979" /></a><br />
这个用了不到一周，发现撮的不行，总是会新开一个窗口，不能在新标签中打开，只能手工再从菜单里选一个合并所有窗口。再高级点的功能搜索，分组更是木有。。</p>
<p>之后装了一个mac版securecrt，当然对于我来说，securecrt就比mac自带终端多一个好用的列表管理，其他功能基本不用。。，用了一个月到期啦。。。<br />
<a href="http://bluehua.org/wp-content/uploads/2012/11/屏幕快照-2012-11-28-下午8.29.13.png"><img src="http://bluehua.org/wp-content/uploads/2012/11/屏幕快照-2012-11-28-下午8.29.13.png" alt="" title="屏幕快照 2012-11-28 下午8.29.13" width="455" height="310" class="alignnone size-full wp-image-1982" /></a></p>
<p>嘿嘿，对于猿类来说，最终极的解决方案就是自己写一个，于是有了这个简单，易用的ssh列表管理脚本sshgo （<a href="http://github.com/emptyhua/sshgo">http://github.com/emptyhua/sshgo</a>),是个python写的命令行小脚本，只依赖python>=2.4, 不需要gui，所以不但可以本地使用，也可以很方便的放到跳板机上使用。</p>
<p><a href="http://bluehua.org/wp-content/uploads/2012/11/屏幕快照-2012-11-18-上午9.51.24.png"><img src="http://bluehua.org/wp-content/uploads/2012/11/屏幕快照-2012-11-18-上午9.51.24.png" alt="" title="屏幕快照 2012-11-18 上午9.51.24" width="718" height="499" class="alignnone size-full wp-image-1976" /></a></p>
<h3>软件特性:</h3>
<ul>
<li>单python文件,仅依赖python版本 >= 2.4,适用于mac，linux系统</li>
<li>分组功能</li>
<li>搜索功能（支持python正则表达式）</li>
</ul>
<h3>使用方法:</h3>
<p>将主机列表文件放置在~/.ssh_hosts,使用tab或4个空格来创建分组结果,举个例子:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="text" style="font-family:monospace;">Home
    root@192.168.1.106
Work
    root@comp1 -p 9999
    root@comp2 -p 9999
    root@comp3 -p 9999
VHost
    VMWare
        test@vm1
        test@vm2
        test@vm3
        test@vm4
    VirtualBox:
        test@vbox1
        test@vbox2
        test@vbox3
        test@vbox4
MacOS
    hi@mymac</pre></td></tr></table></div>

<p>然后下载管理脚本</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #ff0000;">&quot;https://raw.github.com/emptyhua/sshgo/master/sshgo&quot;</span> <span style="color: #660033;">-O</span> .<span style="color: #000000; font-weight: bold;">/</span>sshgo
<span style="color: #666666; font-style: italic;">#添加执行权限</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x .<span style="color: #000000; font-weight: bold;">/</span>sshgo
＃GO，就可以看到前面截图所示的效果了
.<span style="color: #000000; font-weight: bold;">/</span>sshgo</pre></td></tr></table></div>

<h3>快捷键:</h3>
<ul>
<li>退出: q</li>
<li>向上滚动: k</li>
<li>向下滚动: j</li>
<li>选择主机: space</li>
<li>搜索: /</li>
<li>退出搜索结果: q</li>
<li>展开分组: o</li>
<li>收起分组: c</li>
<li>展开所有分组: O</li>
<li>收起所有分组: C</li>
</ul>
<h3>使用Zmodem?</h3>
<p>Zmodem的确是另一个偶尔会用下的功能,可以通过安装zssh实现,在Mac下可以通过macports安装</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> zssh lrzsz</pre></td></tr></table></div>

<p>假如安装了zssh，sshgo会优先使用zssh连接主机。连接前zssh会有提示</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="text" style="font-family:monospace;">Press ^@ (C-Space) to enter file transfer mode, then ? for help
#意思是按ctrl + 空格进入文件传输模式(Mac下的这个组合已经被右上角的Spotlight搜索功能占用了,可以在快捷键设置里给他换到其他快捷键组合)</pre></td></tr></table></div>

<h4>上传文件</h4>
<p>按ctrl + 空格进入文件传输模式,之后使用`sz example.txt`上传文件</p>
<h4>下载文件</h4>
<p>在服务端`sz example.txt`,然后ctrl + 空格，然后｀rz` 接收文件</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2012/11/28/1975.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过tcpdump粗略了解web server的qps</title>
		<link>http://bluehua.org/2012/11/10/1944.html</link>
		<comments>http://bluehua.org/2012/11/10/1944.html#comments</comments>
		<pubDate>Fri, 09 Nov 2012 17:51:51 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[qps]]></category>
		<category><![CDATA[tcpdump]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1944</guid>
		<description><![CDATA[如果关掉了web server的日志，又想知道qps怎样，可以用下这个tcpdump脚本 qps.sh #0x [...]]]></description>
				<content:encoded><![CDATA[<p>如果关掉了web server的日志，又想知道qps怎样，可以用下这个tcpdump脚本<br />
qps.sh</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#0x4745=GE 0x504F=PO 分别匹配GET请求和POST请求</span>
tcpdump <span style="color: #660033;">-n</span> <span style="color: #660033;">-i</span> eth0 dst port <span style="color: #000000;">80</span> and \<span style="color: #7a0874; font-weight: bold;">&#40;</span> tcp<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">20</span>:<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=0x4745 or tcp<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">20</span>:<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=0x504F \<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>tty <span style="color: #000000; font-weight: bold;">&amp;</span>
<span style="color: #666666; font-style: italic;">#如果系统自带timeout命令，可以替代这种山寨限时方法</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">killall</span> tcpdump
<span style="color: #666666; font-style: italic;">#结果中的packets captured基本代表了实时的qps</span></pre></td></tr></table></div>

<p><a href="http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html">tcpdump使用详解</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2012/11/10/1944.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>发现一个好用的python版js压缩工具</title>
		<link>http://bluehua.org/2012/09/18/1899.html</link>
		<comments>http://bluehua.org/2012/09/18/1899.html#comments</comments>
		<pubDate>Tue, 18 Sep 2012 05:18:32 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1899</guid>
		<description><![CDATA[https://github.com/rspivak/slimit 灰常好的工具，压缩比高，代码兼容性好，可媲 [...]]]></description>
				<content:encoded><![CDATA[<p><a href="https://github.com/rspivak/slimit">https://github.com/rspivak/slimit</a><br />
灰常好的工具，压缩比高，代码兼容性好，可媲美主流压缩工具~<br />
做了下简单的benchmark:</p>
<pre>
#raw
256K jquery-1.8.1.js
#download from jquery.com
 92K jquery-1.8.1.min.js
 36K jquery-1.8.1.min.js.gz
#http://closure-compiler.appspot.com
 84K jquery-1.8.1.google.advanced.js
 32K jquery-1.8.1.google.advanced.js.gz
 92K jquery-1.8.1.google.simple.js
 36K jquery-1.8.1.google.simple.js.gz
#http://dean.edwards.name/packer
120K jquery-1.8.1.packer.js
 40K jquery-1.8.1.packer.js.gz
#http://refresh-sf.com/yui
#Uncaught SyntaxError: Unexpected token } 
 64K jquery-1.8.1.yui.js
 24K jquery-1.8.1.yui.js.gz
#slimit
 96K jquery-1.8.1.slimit.js
 36K jquery-1.8.1.slimit.js.gz
</pre>
<p>yui的虽然最nb，拉开其他工具一大截，但是压出来已经不能用了，难道是我点击提交按钮的方式不对？？</p>
<p>实际使用时，我用的环境是redhat5.x,python环境较为恶劣，slimit只兼容到python 2.7，于是单独做了一个&#8221;便携版本&#8221;，可以兼容到2.4，并且相关依赖也放到一起，下载即用：）<br />
<a href="https://github.com/emptyhua/js-css-minify-portable">https://github.com/emptyhua/js-css-minify-portable</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2012/09/18/1899.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分享个暗黑3的台服繁体中文的mac版下载器</title>
		<link>http://bluehua.org/2012/05/30/1884.html</link>
		<comments>http://bluehua.org/2012/05/30/1884.html#comments</comments>
		<pubDate>Wed, 30 May 2012 08:25:07 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[Diablo3]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1884</guid>
		<description><![CDATA[之前找了3个都用不了，这个ok，开始看起来没啥反应，多等会就ok了～～ Diablo-III-8370-zhT [...]]]></description>
				<content:encoded><![CDATA[<p>之前找了3个都用不了，这个ok，开始看起来没啥反应，多等会就ok了～～</p>
<p><a href='http://bluehua.org/wp-content/uploads/2012/05/Diablo-III-8370-zhTW-Installer-downloader.app_.rar'>Diablo-III-8370-zhTW-Installer-downloader.app</a></p>
<p>tag:冥王星2011#3360，纯娱乐玩家，美服or台服不定期在线。感觉暗黑3明显比较适合个人娱乐，一个人虐虐僵尸，打打boss啥的～</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2012/05/30/1884.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.468 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-06-06 20:44:21 -->
