<?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>haojii &#187; 杂项</title>
	<atom:link href="http://www.haojii.com/category/miscellaneous/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haojii.com</link>
	<description>一个专注于技术的IT男</description>
	<lastBuildDate>Thu, 19 Apr 2012 07:58:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>git stash</title>
		<link>http://www.haojii.com/2012/04/git-stash/</link>
		<comments>http://www.haojii.com/2012/04/git-stash/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 07:58:49 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=660</guid>
		<description><![CDATA[My git stash commands usage order: git stash [save [--patch] [-k&#124;--[no-]keep-index] [-q&#124;--quiet] [&#60;message&#62;]] git stash ( pop &#124; apply ) [--index] [-q&#124;--quiet] [&#60;stash&#62;] git stash list [&#60;options&#62;] git stash clear git stash show [&#60;stash&#62;] git stash drop [-q&#124;--quiet] [&#60;stash&#62;] git &#8230; <a href="http://www.haojii.com/2012/04/git-stash/">继续阅读 <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Foptimize-web-pages-for-iphone%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为iPhone优化网页的技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fjavascript-lyrics-show%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">javascript-lyrics-show</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fphilips-led-light%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">炫彩7色LED灯</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fsecond-post-from-iphone%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Second post from iPhone</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>My git stash commands usage order:</p>
<pre>git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet] [&lt;message&gt;]]
git stash ( pop | apply ) [--index] [-q|--quiet] [&lt;stash&gt;]
git stash list [&lt;options&gt;]
git stash clear
git stash show [&lt;stash&gt;]
git stash drop [-q|--quiet] [&lt;stash&gt;]
git stash branch &lt;branchname&gt; [&lt;stash&gt;]</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2008%2F10%2Fservlet-jsp-paging%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Servlet+JSP分页的一个例子</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplacehold-it%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">placehold.it</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Fgmail-notification-build-upon-arduino-and-ruby%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">基于arduino和ruby的gmail邮件提醒</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Fcoincidence%2F&from=http%3A%2F%2Fwww.haojii.com%2F2012%2F04%2Fgit-stash%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">阴差阳错</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2012/04/git-stash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>技巧-用迅雷打开某些打不开的种子文件</title>
		<link>http://www.haojii.com/2011/08/tip-download-a-bitcomet-only-torrent-file-with-thunder/</link>
		<comments>http://www.haojii.com/2011/08/tip-download-a-bitcomet-only-torrent-file-with-thunder/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 14:13:54 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[高手必备]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=629</guid>
		<description><![CDATA[有些时候我们从网上找到一个极具诱惑力的资源的种子，但是不幸的发现最猛的吸血迅雷却打不开这个torrent文件，非常非常的痛苦，这个时候不得不退而求其次，装个相对差一点的BitComet，发现种子文件竟然可以打开了，心情豁然开朗，但是坑爹的是等了半天竟然没有速度，这时候大家的心情我懂的！ 这个问题的root cause应该是种子文件被修改，只能特定BT下载客户端才能识别了，八成是为了抵制吸血迅雷，这个时候大家一定都是想，要是能用吸血迅雷打开这个种子该多好啊！ 好吧！Hold住！免费传授大家这招，在BitComet的你正在下载的这个任务上，右键-&#62;复制磁链，然后到迅雷里新建任务-&#62;粘贴，是不是成功了？速度也有了！ 也许可以写个脚本生成Magnet URI？今天就不研究了。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fproficient-screen%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">[高手必备]-screen</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Foptimize-web-pages-for-iphone%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为iPhone优化网页的技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F06%2Fjquery-tips-pass-more-parameters-into-ajax-callback%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">jQuery Tips : 给AJAX回调函数传递额外参数</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcss_background_image_positioning%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS分割背景图片的技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>有些时候我们从网上找到一个极具诱惑力的资源的种子，但是不幸的发现最猛的吸血迅雷却打不开这个torrent文件，非常非常的痛苦，这个时候不得不退而求其次，装个相对差一点的BitComet，发现种子文件竟然可以打开了，心情豁然开朗，但是坑爹的是等了半天竟然没有速度，这时候大家的心情我懂的！</p>
<p>这个问题的root cause应该是种子文件被修改，只能特定BT下载客户端才能识别了，八成是为了抵制吸血迅雷，这个时候大家一定都是想，要是能用吸血迅雷打开这个种子该多好啊！</p>
<p>好吧！Hold住！免费传授大家这招，在BitComet的你正在下载的这个任务上，右键-&gt;复制磁链，然后到迅雷里新建任务-&gt;粘贴，是不是成功了？速度也有了！</p>
<p>也许可以写个脚本生成Magnet URI？今天就不研究了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fproficient-screen%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">[高手必备]-screen</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Foptimize-web-pages-for-iphone%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为iPhone优化网页的技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F06%2Fjquery-tips-pass-more-parameters-into-ajax-callback%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">jQuery Tips : 给AJAX回调函数传递额外参数</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcss_background_image_positioning%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS分割背景图片的技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2011/08/tip-download-a-bitcomet-only-torrent-file-with-thunder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>空虚,贴一段代码</title>
		<link>http://www.haojii.com/2011/05/code-snip/</link>
		<comments>http://www.haojii.com/2011/05/code-snip/#comments</comments>
		<pubDate>Tue, 24 May 2011 09:15:59 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=566</guid>
		<description><![CDATA[<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F08%2Flong-time-no-java-an-interview%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">久疏战阵</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fchoose-a-java-web-framework%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">JavaWeb开发的技术选型</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fwhy-el-use-java-property-instead-of-field%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为什么EL表达式里的属性名不是javabean的字段呢？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fwhat-is-ajp%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">What is AJP?</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<pre class="brush: java; title: ; notranslate">

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

class Line implements Comparable&lt;Line&gt; {
	int start;
	int end;

	public Line(int start, int end) {
		super();
		this.start = start;
		this.end = end;
	}

	/**
	 * Line l     |----------------------------|
	 * |----|
	 * |----------------|
	 * |-------------------------------------------|
	 *            |-------------------|
	 *            |--------------------------------|
	 *                                        |------------|
	 */
	@Override
	public int compareTo(Line line) {
		if (start &lt; line.start) {
			return -1;
		} else if (end &gt; line.end) { // start &gt;= l.start
			return 1;
		} else if (start == line.start &amp;&amp; end == line.end) {
			return 0;
		} else if (start == line.start &amp;&amp; end &lt; line.end) {
			return -1;
		} else {// (start &gt; l.start &amp;&amp; end &lt;= l.end)
			return 1;
		}
	}

	public boolean isMergeable(Line line) {
		if (end &lt; line.start || start &gt; line.end)
			return false;
		return true;
	}

	public Line merge(Line line) {
		int x = (line.start &lt;= start) ? line.start : start;
		int y = (line.end &gt;= end) ? line.end : end;
		return new Line(x, y);
	}

	@Override
	public String toString() {
		return &quot;[&quot; + start + &quot;,&quot; + end + &quot;]&quot;;
	}

}

public class MergeAndSort {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		mergeAndSort(new Line[] { new Line(1, 2), new Line(1, 5),
				new Line(2, 8), new Line(4, 7), new Line(3, 9), new Line(4, 5),
				new Line(6, 7), new Line(5, 10) });

		mergeAndSort(new Line[] { new Line(1, 2), new Line(3, 5),
				new Line(7, 8), new Line(4, 7) });

		mergeAndSort(new Line[] { new Line(3, 5), new Line(1, 8),
				new Line(8, 8 ) });
	}

	private static void mergeAndSort(Line[] lineArray) {
		List&lt;Line&gt; lineList = new ArrayList&lt;Line&gt;();
		lineList.addAll(Arrays.asList(lineArray));
		System.out.print(&quot;Origin:&quot;);
		printLines(lineList);

		Collections.sort(lineList);
		System.out.print(&quot;Sorted:&quot;);
		printLines(lineList);

		List&lt;Line&gt; mergedList = merge(lineList);
		System.out.print(&quot;Merged:&quot;);
		printLines(mergedList);
		System.out.println();
	}

	private static List&lt;Line&gt; merge(List&lt;Line&gt; lineList) {
		List&lt;Line&gt; mergedList = new ArrayList&lt;Line&gt;();
		Iterator&lt;Line&gt; itr = lineList.iterator();
		if (itr.hasNext()) {
			Line current = itr.next();
			while (itr.hasNext()) {
				Line next = itr.next();
				if (current.isMergeable(next)) {
					current = current.merge(next);
				} else {
					System.out.println(&quot;[DEBUG] current &quot; + current
							+ &quot; can't merge next &quot; + next);
					mergedList.add(current);
					current = next;
				}
			}
			mergedList.add(current);
		}
		return mergedList;
	}

	private static void printLines(List&lt;Line&gt; lineList) {
		for (Line line : lineList) {
			System.out.print(line);
			System.out.print(&quot; &quot;);
		}
		System.out.println();
	}
}
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F08%2Flong-time-no-java-an-interview%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">久疏战阵</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fchoose-a-java-web-framework%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">JavaWeb开发的技术选型</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F12%2Fwhy-el-use-java-property-instead-of-field%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">为什么EL表达式里的属性名不是javabean的字段呢？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fwhat-is-ajp%2F&from=http%3A%2F%2Fwww.haojii.com%2F2011%2F05%2Fcode-snip%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">What is AJP?</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2011/05/code-snip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS下安装wget</title>
		<link>http://www.haojii.com/2010/11/how-to-install-wget-under-mac-os/</link>
		<comments>http://www.haojii.com/2010/11/how-to-install-wget-under-mac-os/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 09:56:03 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[杂项]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=444</guid>
		<description><![CDATA[Mac下的应用程序默认在/Application目录下，且看上去都是以.app结尾的目录，里面有一个binary可执行文件 所有感觉和一般的Linux系统有点不一样，若遵循一般的Linux软件安装流程，有点没有把握的。 实践证明通常的Linux安装软件的方法在此其实也是可以安装成功的： 1. 在gnu下载wget的最新版本压缩包 http://ftp.gnu.org/gnu/wget/ 2. $ cd wget-1.12 3. $ configure 4. $ make all 5. $ sudo make install 6. $ which wget /usr/local/bin/wget 新接触MacOS的人估计和我一样会发现/usr/local/bin之前差不多是空目录，感觉不像Linux原本就存在不少可执行文件，成功之后觉得不是那么理所当然，有点怪怪的感觉。。。 还有一种办法是通过DarwinPorts来安装，这是个类似于ubuntu的包管理器，貌似很容易的样子，目前还么强烈的需求要尝试这玩意。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">调节一下Mac下的Terminal配置，省点眼神</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplay-tomcat-cluster-in-macos%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">MacOS下玩tomcat cluster有点折腾啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F06%2Finstall-nodejs-express-on-virtual-linux%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Linux虚拟机下安装nodejs+express</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fubuntu-mplayer-install-problem%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">ubuntu安装mplayer遇到的一些问题及解决办法</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Mac下的应用程序默认在/Application目录下，且看上去都是以.app结尾的目录，里面有一个binary可执行文件</p>
<p>所有感觉和一般的Linux系统有点不一样，若遵循一般的Linux软件安装流程，有点没有把握的。</p>
<p>实践证明通常的Linux安装软件的方法在此其实也是可以安装成功的：</p>
<p>1. 在gnu下载wget的最新版本压缩包 http://ftp.gnu.org/gnu/wget/</p>
<p>2. $ cd wget-1.12</p>
<p>3. $ configure</p>
<p>4. $ make all</p>
<p>5. $ sudo make install</p>
<p>6. $ which wget</p>
<p>/usr/local/bin/wget</p>
<div></div>
<div>新接触MacOS的人估计和我一样会发现/usr/local/bin之前差不多是空目录，感觉不像Linux原本就存在不少可执行文件，成功之后觉得不是那么理所当然，有点怪怪的感觉。。。</div>
<div></div>
<p>还有一种办法是通过DarwinPorts来安装，这是个类似于ubuntu的包管理器，貌似很容易的样子，目前还么强烈的需求要尝试这玩意。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">调节一下Mac下的Terminal配置，省点眼神</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplay-tomcat-cluster-in-macos%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">MacOS下玩tomcat cluster有点折腾啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F06%2Finstall-nodejs-express-on-virtual-linux%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Linux虚拟机下安装nodejs+express</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fubuntu-mplayer-install-problem%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">ubuntu安装mplayer遇到的一些问题及解决办法</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/11/how-to-install-wget-under-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>你能往标准信封里装多少牛奶？</title>
		<link>http://www.haojii.com/2010/11/how-much-milk-can-you-fill-in-this-envelope/</link>
		<comments>http://www.haojii.com/2010/11/how-much-milk-can-you-fill-in-this-envelope/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 14:27:21 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[导数]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=422</guid>
		<description><![CDATA[Buzz上的兄弟们，来做个有意思的小题目，假设有下面的大号信封 324mm*229mm，且不漏水，那么理论上最多能往里面装多少牛奶呢？ 刚刚我做了一个艰难的决定，下班前花点时间给个解答： 假设高度为x，则用信封折叠成的长方体的体积方程式是：f(x)= (324-2x)*(229-2x)*x = 74196x-1106x2+4x3 对这个体积方程式求导得 f&#8216;(x)= 12x2-2212x+74196 解方程求极限，即得出x的值，带入x即可算出折叠出的最大体积<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fwhat-is-ajp%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-much-milk-can-you-fill-in-this-envelope%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">What is AJP?</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fturkey-turkey%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-much-milk-can-you-fill-in-this-envelope%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Turkey turkey</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fcss_background_image_positioning%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-much-milk-can-you-fill-in-this-envelope%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS分割背景图片的技巧</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Buzz上的兄弟们，来做个有意思的小题目，假设有下面的大号信封 324mm*229mm，且不漏水，那么理论上最多能往里面装多少牛奶呢？<br />
<img class="size-full wp-image-423 alignleft" title="envelope" src="http://www.haojii.com/wp-content/uploads/envelope.jpg" alt="" width="300" height="280" /></p>
<p><a href="http://www.haojii.com/wp-content/uploads/envelope_new.jpg"><img class="aligncenter size-full wp-image-426" title="envelope_new" src="http://www.haojii.com/wp-content/uploads/envelope_new.jpg" alt="" width="300" height="280" /></a></p>
<p><span id="more-422"></span></p>
<p>刚刚我做了一个艰难的决定，下班前花点时间给个解答：</p>
<p>假设高度为x，则用信封折叠成的长方体的体积方程式是：f(x)= (324-2x)*(229-2x)*x = 74196x-1106x<sup>2</sup>+4x<sup>3 </sup></p>
<p>对这个体积方程式求导得 f<sup>&#8216;</sup>(x)= 12x<sup>2</sup>-2212x+74196<sup> </sup></p>
<p>解方程求极限，即得出x的值，带入x即可算出折叠出的最大体积</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Fgmail-notification-build-upon-arduino-and-ruby%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-much-milk-can-you-fill-in-this-envelope%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">基于arduino和ruby的gmail邮件提醒</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F04%2Fjquery-ui-sortable-problem-with-table-tr-row-width%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-much-milk-can-you-fill-in-this-envelope%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">使用jQuery UI sortable排序表格行的宽度问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-much-milk-can-you-fill-in-this-envelope%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">调节一下Mac下的Terminal配置，省点眼神</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/11/how-much-milk-can-you-fill-in-this-envelope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分享治打嗝秘方一则</title>
		<link>http://www.haojii.com/2010/10/heal-hiccup/</link>
		<comments>http://www.haojii.com/2010/10/heal-hiccup/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 14:28:26 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=416</guid>
		<description><![CDATA[晚上从地铁出来之后突然开始打嗝了，平时用的憋气法也不管用。 干吞一汤匙白糖这个办法是之前偶然在报纸上看到的，今天亲自试验了一下，真的有用！见效很快！ 糖被证实可以减轻神经肌肉的紧张，避免肌肉发送错误的信息到隔膜，导致横膈膜痉挛性收缩，引起打嗝现象。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Fcoincidence%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">阴差阳错</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F06%2Fmy-latest-news-in-7-days-vacation%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">My Latest News in 7 Days Vacation</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fsecond-post-from-iphone%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Second post from iPhone</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F03%2Fbuying-an-apartment-with-the-help-of-our-parents%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">啃老了,贷款了,买房了</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>晚上从地铁出来之后突然开始<span style="color: #ff0000;">打嗝</span>了，平时用的憋气法也不管用。</p>
<p><strong><span style="color: #ff0000;">干吞一汤匙白糖</span></strong>这个办法是之前偶然在报纸上看到的，今天亲自试验了一下，真的有用！见效很快！</p>
<p>糖被证实可以减轻神经肌肉的紧张，避免肌肉发送错误的信息到隔膜，导致横膈膜痉挛性收缩，引起打嗝现象。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Fcoincidence%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">阴差阳错</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F06%2Fmy-latest-news-in-7-days-vacation%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">My Latest News in 7 Days Vacation</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fsecond-post-from-iphone%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Second post from iPhone</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F03%2Fbuying-an-apartment-with-the-help-of-our-parents%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F10%2Fheal-hiccup%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">啃老了,贷款了,买房了</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/10/heal-hiccup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调节一下Mac下的Terminal配置，省点眼神</title>
		<link>http://www.haojii.com/2010/09/a-terminal-style-on-mac/</link>
		<comments>http://www.haojii.com/2010/09/a-terminal-style-on-mac/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 15:26:41 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[WoW]]></category>
		<category><![CDATA[小问题]]></category>
		<category><![CDATA[杂项]]></category>
		<category><![CDATA[MacOS]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=388</guid>
		<description><![CDATA[<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">MacOS下安装wget</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplay-tomcat-cluster-in-macos%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">MacOS下玩tomcat cluster有点折腾啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F10%2Ffacetime-can-not-login-after-upgrade-to-mac-lion%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">FaceTime升级Mac Lion之后不能登陆的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">快速配置php开发环境</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-389" title="terminal_style" src="http://www.haojii.com/wp-content/uploads/terminal_style.png" alt="" width="586" height="800" /></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F11%2Fhow-to-install-wget-under-mac-os%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">MacOS下安装wget</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F01%2Fplay-tomcat-cluster-in-macos%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">MacOS下玩tomcat cluster有点折腾啊</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F10%2Ffacetime-can-not-login-after-upgrade-to-mac-lion%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">FaceTime升级Mac Lion之后不能登陆的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fconfigure-php-develop-environment%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F09%2Fa-terminal-style-on-mac%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">快速配置php开发环境</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/09/a-terminal-style-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>互联网历史上的这一天值得标记一下（更新）</title>
		<link>http://www.haojii.com/2010/03/a-notable-day-in-history-update/</link>
		<comments>http://www.haojii.com/2010/03/a-notable-day-in-history-update/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 05:27:29 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[大事件]]></category>
		<category><![CDATA[杂项]]></category>
		<category><![CDATA[站长日志]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[网事]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=253</guid>
		<description><![CDATA[昨夜忽来风雨声，一枝红杏出墙来 其实想说的是上一篇文章已被和谐处理，因为某些言辞可能触犯了伟大的XX的神圣不可侵犯的XX，用RSS阅读器的朋友貌似还能看到之前的快照 顺便在此向提供合租的大猫以及合租的其他网友致歉，以后自己注意<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fgoogle-shy-away-from-china%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">非法献花</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fgoogle-voice-recognition-api%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Google voice recognition API</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F05%2Fworkshop-walk-in-the-cloud-with-google-app-engine%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Workshop – Walk in the Cloud with Google App Engine</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Frate-limit-exceeded-clients-may-not-make-more-than-150-requests-per-hour%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Rate limit exceeded. Clients may not make more than 150 requests per hour</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨夜忽来风雨声，一枝红杏出墙来</p>
<p>其实想说的是上一篇文章已被和谐处理，因为某些言辞可能触犯了伟大的XX的神圣不可侵犯的XX，用RSS阅读器的朋友貌似还能看到之前的快照</p>
<p>顺便在此向提供合租的大猫以及合租的其他网友致歉，以后自己注意</p>
<p><a href="http://www.haojii.com/wp-content/uploads/medium.jpg"><img class="size-full wp-image-254 alignleft" title="medium" src="http://www.haojii.com/wp-content/uploads/medium.jpg" alt="" width="500" height="309" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F01%2Fgoogle-shy-away-from-china%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">非法献花</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F02%2Fgoogle-voice-recognition-api%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Google voice recognition API</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F05%2Fworkshop-walk-in-the-cloud-with-google-app-engine%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Workshop – Walk in the Cloud with Google App Engine</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2010%2F04%2Frate-limit-exceeded-clients-may-not-make-more-than-150-requests-per-hour%2F&from=http%3A%2F%2Fwww.haojii.com%2F2010%2F03%2Fa-notable-day-in-history-update%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">Rate limit exceeded. Clients may not make more than 150 requests per hour</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2010/03/a-notable-day-in-history-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>由QQ文件中转站超快速上传联想到</title>
		<link>http://www.haojii.com/2009/02/qq-super-speed-upload-file/</link>
		<comments>http://www.haojii.com/2009/02/qq-super-speed-upload-file/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 15:56:36 +0000</pubDate>
		<dc:creator>Jacky</dc:creator>
				<category><![CDATA[杂项]]></category>
		<category><![CDATA[qq]]></category>

		<guid isPermaLink="false">http://www.haojii.com/?p=173</guid>
		<description><![CDATA[今天向QQ文件中转站上传了两个文件，一个30M，一个60M，都发现上传时间仅为1s， 猜想了一下，这里应该是有算法的，如果服务器上以及同样的文件了，就不需要用户再上传，而是直接给出文件链接，这样既减轻了服务器压力，又给用户带来惊喜，真的很不错！ 然后又联想到，难怪用QQ文件中转站的时候，要求装个客户端，说是能加速文件上传，这个浏览器插件说不定就是用MD5或者CRC32算出上传文件的key值，然后做个ajax请求，如果发现服务器上该文件存在，用户就不需要上传了。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">技巧-用迅雷打开某些打不开的种子文件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F03%2Fjavascript-tools%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">记录最近用到的几个JavaScript文件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fpython-md5-checksum%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">如何用python生成文件的md5 checksum值</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F04%2Feverything-about-css-text-break%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">CSS文字折行与省略号</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天向QQ文件中转站上传了两个文件，一个30M，一个60M，都发现<strong>上传时间仅为1s</strong>，</p>
<p>猜想了一下，这里应该是有算法的，如果服务器上以及同样的文件了，就不需要用户再上传，而是直接给出文件链接，这样既减轻了服务器压力，又给用户带来惊喜，真的很不错！</p>
<p>然后又联想到，难怪用QQ文件中转站的时候，要求装个客户端，说是能加速文件上传，这个浏览器插件说不定就是用MD5或者CRC32算出上传文件的key值，然后做个ajax请求，如果发现服务器上该文件存在，用户就不需要上传了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1" color="#FF0000" style="display: block !important; padding: 20px 0 5px !important;">其他文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F08%2Ftip-download-a-bitcomet-only-torrent-file-with-thunder%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">技巧-用迅雷打开某些打不开的种子文件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F03%2Fjavascript-tools%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">记录最近用到的几个JavaScript文件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fpython-md5-checksum%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">如何用python生成文件的md5 checksum值</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.haojii.com%2F2011%2F09%2Frails-oauth-with-sina-weibo-tutorial%2F&from=http%3A%2F%2Fwww.haojii.com%2F2009%2F02%2Fqq-super-speed-upload-file%2F">
                        <font size="-1" color="#667FFA" style="line-height: 1.65em; font-size: 12px !important;">rails-oauth-连接新浪微薄记录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.haojii.com/2009/02/qq-super-speed-upload-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

