<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Jian Zhou</title> <link>http://tiaozhanshu.com</link> <description>挑战技术，挑战生命。不至顶级不罢休。</description> <lastBuildDate>Wed, 02 May 2012 23:01:26 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/jianzhou" /><feedburner:info uri="jianzhou" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license><item><title>PHP后台运行</title><link>http://feedproxy.google.com/~r/jianzhou/~3/Ju0ReXCzwmU/</link> <comments>http://tiaozhanshu.com/design/php/php-background-processes/#comments</comments> <pubDate>Wed, 02 May 2012 23:01:26 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41540</guid> <description><![CDATA[在很多时候，我们需要通过用户或其他方式触发php脚本的运行，而php执行的是批量任务或者是很耗时间的操作，这样我们就想客户端断开连接，而php的代码照样执行，起到异步操作的效果。下面这段代码，可以使用header("Connection: close")，使浏览器关闭连接[......]<p class='read-more'><a href='http://tiaozhanshu.com/design/php/php-background-processes/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>在很多时候，我们需要通过用户或其他方式触发php脚本的运行，而php执行的是批量任务或者是很耗时间的操作，这样我们就想客户端断开连接，而php的代码照样执行，起到异步操作的效果。</p><p>下面这段代码，可以使用header(&#8220;Connection: close&#8221;)，使浏览器关闭连接[......]<p class='read-more'><a href='http://tiaozhanshu.com/design/php/php-background-processes/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/design/php/php-background-processes/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=Ju0ReXCzwmU:1B77dpDESFo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=Ju0ReXCzwmU:1B77dpDESFo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=Ju0ReXCzwmU:1B77dpDESFo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Ju0ReXCzwmU:1B77dpDESFo:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/Ju0ReXCzwmU" height="1" width="1"/>]]></content:encoded> <slash:comments>5</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/design/php/php-background-processes/</feedburner:origLink></item> <item><title>Go语言单元测试</title><link>http://feedproxy.google.com/~r/jianzhou/~3/q5ufTiBW61M/</link> <comments>http://tiaozhanshu.com/computer/golang/go-unit-test/#comments</comments> <pubDate>Mon, 30 Apr 2012 00:17:21 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Golang]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41530</guid> <description><![CDATA[Go语言似乎是个偏执狂，牺牲了不必要的灵活性，带来一些强制的编程风格和约定。比如：<ol><li>无任何形式的Makefile，模块就是目录、包就是目录、编译配制就是目录！</li><li>不光目录被用上了，文件名还能指定用途。文件名后缀为_test.go的都是单元测试文件，_linux32.go[......]</li></ol><p class='read-more'><a href='http://tiaozhanshu.com/computer/golang/go-unit-test/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>Go语言似乎是个偏执狂，牺牲了不必要的灵活性，带来一些强制的编程风格和约定。比如：</p><ol><li>无任何形式的Makefile，模块就是目录、包就是目录、编译配制就是目录！</li><li>不光目录被用上了，文件名还能指定用途。文件名后缀为_test.go的都是单元测试文件，_linux32.go[......]</li></ol><p class='read-more'><a href='http://tiaozhanshu.com/computer/golang/go-unit-test/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/golang/go-unit-test/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=q5ufTiBW61M:sz9E3yXOino:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=q5ufTiBW61M:sz9E3yXOino:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=q5ufTiBW61M:sz9E3yXOino:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=q5ufTiBW61M:sz9E3yXOino:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/q5ufTiBW61M" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/computer/golang/go-unit-test/</feedburner:origLink></item> <item><title>LaTeX生成PDF标签</title><link>http://feedproxy.google.com/~r/jianzhou/~3/JCYwL2d-mgo/</link> <comments>http://tiaozhanshu.com/latex/latex-pdf-bookmarks/#comments</comments> <pubDate>Tue, 24 Apr 2012 03:43:10 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Latex]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41517</guid> <description><![CDATA[\usepackage[pdftex,bookmarks=true]{hyperref}]]></description> <content:encoded><![CDATA[<p>\usepackage[pdftex,bookmarks=true]{hyperref}</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=JCYwL2d-mgo:q2n4w_UmnQg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=JCYwL2d-mgo:q2n4w_UmnQg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=JCYwL2d-mgo:q2n4w_UmnQg:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=JCYwL2d-mgo:q2n4w_UmnQg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=JCYwL2d-mgo:q2n4w_UmnQg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/JCYwL2d-mgo" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/latex/latex-pdf-bookmarks/</feedburner:origLink></item> <item><title>Latex章节编号</title><link>http://feedproxy.google.com/~r/jianzhou/~3/khtGMsOVko4/</link> <comments>http://tiaozhanshu.com/latex/latex-section-counter/#comments</comments> <pubDate>Tue, 24 Apr 2012 03:40:02 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Latex]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41513</guid> <description><![CDATA[更改章节编号的格式：
\renewcommand\thesection{\arabic{section}.}
\renewcommand\thesection{\arabic{section}.~}
\renewcommand\thesection{\arabic{sect[......]<p class='read-more'><a href='http://tiaozhanshu.com/latex/latex-section-counter/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>更改章节编号的格式：<br /> \renewcommand\thesection{\arabic{section}.}<br /> \renewcommand\thesection{\arabic{section}.~}<br /> \renewcommand\thesection{\arabic{sect[......]<p class='read-more'><a href='http://tiaozhanshu.com/latex/latex-section-counter/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/latex/latex-section-counter/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=khtGMsOVko4:NALOLJvOnzY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=khtGMsOVko4:NALOLJvOnzY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=khtGMsOVko4:NALOLJvOnzY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=khtGMsOVko4:NALOLJvOnzY:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/khtGMsOVko4" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/latex/latex-section-counter/</feedburner:origLink></item> <item><title>Latex生成章节目录列表</title><link>http://feedproxy.google.com/~r/jianzhou/~3/xgbdzrMFrN4/</link> <comments>http://tiaozhanshu.com/latex/latex-table-of-contents/#comments</comments> <pubDate>Tue, 24 Apr 2012 03:33:13 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Latex]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41510</guid> <description><![CDATA[（1）在\begin{document}后面加入命令\tableofcontents。执行latex.exe将自动产生myfile.toc文件，该文件是文本格式，可以编辑，当然多数情况下无需编辑。（2）每次加入新的章节需要运行两次latex.exe才能更新目录。（[......]<p class='read-more'><a href='http://tiaozhanshu.com/latex/latex-table-of-contents/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>（1）在\begin{document}后面加入命令\tableofcontents。执行latex.exe将自动产生myfile.toc文件，该文件是文本格式，可以编辑，当然多数情况下无需编辑。</p><p>（2）每次加入新的章节需要运行两次latex.exe才能更新目录。</p><p>（[......]<p class='read-more'><a href='http://tiaozhanshu.com/latex/latex-table-of-contents/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/latex/latex-table-of-contents/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=xgbdzrMFrN4:-lW-h04PHSU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=xgbdzrMFrN4:-lW-h04PHSU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=xgbdzrMFrN4:-lW-h04PHSU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=xgbdzrMFrN4:-lW-h04PHSU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/xgbdzrMFrN4" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/latex/latex-table-of-contents/</feedburner:origLink></item> <item><title>A Sock 5 Proxy Server Written in Golang</title><link>http://feedproxy.google.com/~r/jianzhou/~3/1dtFlQ580Rc/</link> <comments>http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/#comments</comments> <pubDate>Sun, 22 Apr 2012 02:32:50 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Golang]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41504</guid> <description><![CDATA[I've written a <a href="http://tiaozhanshu.com/computer/software/socks5/" target="_blank">sock 5</a> proxy server in golang. The code is very ugly. However, it works!I am still not very familiar with golang. Wheneve[......]<p class='read-more'><a href='http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve written a <a href="http://tiaozhanshu.com/computer/software/socks5/" target="_blank" onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/software/socks5/','content']);">sock 5</a> proxy server in golang. The code is very ugly. However, it works!</p><p>I am still not very familiar with golang. Wheneve[......]<p class='read-more'><a href='http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=1dtFlQ580Rc:BKoUdwReptg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=1dtFlQ580Rc:BKoUdwReptg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:KwTdNBX3Jqk"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=1dtFlQ580Rc:BKoUdwReptg:KwTdNBX3Jqk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=1dtFlQ580Rc:BKoUdwReptg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=1dtFlQ580Rc:BKoUdwReptg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/1dtFlQ580Rc" height="1" width="1"/>]]></content:encoded> <slash:comments>2</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/</feedburner:origLink></item> <item><title>Shell批量执行ssh远程命令</title><link>http://feedproxy.google.com/~r/jianzhou/~3/8FjcW7SFNiY/</link> <comments>http://tiaozhanshu.com/computer/linux/shell-remote-ssh-cmd/#comments</comments> <pubDate>Fri, 20 Apr 2012 23:33:18 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Linux]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41499</guid> <description><![CDATA[通过SSH执行远程命令参考<a href="http://tiaozhanshu.com/computer/linux/ssh-cmd/" target="_blank">这里</a>，通过shell逐行读取文件参考<a href="http://tiaozhanshu.com/computer/linux/shell-read-line/" target="_blank">这里</a>，shell的参数用法在<a href="http://tiaozhanshu.com/computer/linux/shell-args/" target="_blank">这里</a>。这样一键批量执行远程命令的脚本为：<code lang="text"> for slave in $(cat ~/slaves)
do
echo $slave
ssh $slave $*
don[......]</code><p class='read-more'><a href='http://tiaozhanshu.com/computer/linux/shell-remote-ssh-cmd/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>通过SSH执行远程命令参考<a href="http://tiaozhanshu.com/computer/linux/ssh-cmd/" target="_blank" onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/ssh-cmd/','content']);">这里</a>，通过shell逐行读取文件参考<a href="http://tiaozhanshu.com/computer/linux/shell-read-line/" target="_blank" onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/shell-read-line/','content']);">这里</a>，shell的参数用法在<a href="http://tiaozhanshu.com/computer/linux/shell-args/" target="_blank" onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/shell-args/','content']);">这里</a>。</p><p>这样一键批量执行远程命令的脚本为：</p><div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;width:100%;"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer">for slave in $(cat ~/slaves)<br /> do<br /> echo $slave<br /> ssh $slave $*<br /> done</div></td></tr></tbody></table></div><p>脚本另存为a，则，运行a ls<br /> 则在所有slaves上运行一次ls命令。</p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=8FjcW7SFNiY:aelyVQwZpVc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=8FjcW7SFNiY:aelyVQwZpVc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=8FjcW7SFNiY:aelyVQwZpVc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=8FjcW7SFNiY:aelyVQwZpVc:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/8FjcW7SFNiY" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/computer/linux/shell-remote-ssh-cmd/</feedburner:origLink></item> <item><title>Linux shell参数</title><link>http://feedproxy.google.com/~r/jianzhou/~3/T0iJ7q4rdiE/</link> <comments>http://tiaozhanshu.com/computer/linux/shell-args/#comments</comments> <pubDate>Fri, 20 Apr 2012 23:25:27 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Linux]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41496</guid> <description><![CDATA[在shell编程时.可以使用参数。Shell有位置参数和内部参数
1、 位置参数
由系统提供的参数称为位置参数。位置参数的值可以用$N得到，N是一个数字，如果为1，即$1.类似C语言中的数组，Linux会把输入的命令字符串分段并给每段进行标号，标号从0开始。第0号为程序名字，[......]<p class='read-more'><a href='http://tiaozhanshu.com/computer/linux/shell-args/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>在shell编程时.可以使用参数。Shell有位置参数和内部参数<br /> 1、 位置参数<br /> 由系统提供的参数称为位置参数。位置参数的值可以用$N得到，N是一个数字，如果为1，即$1.类似C语言中的数组，Linux会把输入的命令字符串分段并给每段进行标号，标号从0开始。第0号为程序名字，[......]<p class='read-more'><a href='http://tiaozhanshu.com/computer/linux/shell-args/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/shell-args/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=T0iJ7q4rdiE:q68Ukmoid4w:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=T0iJ7q4rdiE:q68Ukmoid4w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=T0iJ7q4rdiE:q68Ukmoid4w:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=T0iJ7q4rdiE:q68Ukmoid4w:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/T0iJ7q4rdiE" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/computer/linux/shell-args/</feedburner:origLink></item> <item><title>方便使用hadoop一些脚本</title><link>http://feedproxy.google.com/~r/jianzhou/~3/Wr5jNlnscmM/</link> <comments>http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/#comments</comments> <pubDate>Tue, 17 Apr 2012 21:09:38 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Hadoop]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41491</guid> <description><![CDATA[实验中为了方便在不同版本hadoop间切换，为了一键清空还原所有hadoop设置，弄了些脚本。傻瓜脚本。。。<h2>一、环境变量</h2><code lang="text"> # .bash_profileexport HADOOP_HOME=~/hadoop
export PATH=$PATH:$HAD[......]</code><p class='read-more'><a href='http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>实验中为了方便在不同版本hadoop间切换，为了一键清空还原所有hadoop设置，弄了些脚本。傻瓜脚本。。。</p><h2>一、环境变量</h2><div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;width:100%;"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer"># .bash_profile<br /> <br /> export HADOOP_HOME=~/hadoop<br /> export PATH=$PATH:$HADOOP_HOME/bin<br /> export HADOOP_HOME_WARN_SUPPRESS='TRUE'</div></td></tr></tbody></table></div><h2>二、切换hadoop并更新配置</h2><div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;width:100%;"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer">rm ~/hadoop;<br /> ln -s $1 ~/hadoop;<br /> cp ~/jan/conf/* ~/hadoop/conf;</div></td></tr></tbody></table></div><h2>三、一键删[......]</h2><p class='read-more'><a href='http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=Wr5jNlnscmM:f_OCw4_i-jg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=Wr5jNlnscmM:f_OCw4_i-jg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=Wr5jNlnscmM:f_OCw4_i-jg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=Wr5jNlnscmM:f_OCw4_i-jg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/Wr5jNlnscmM" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/</feedburner:origLink></item> <item><title>HADOOP占用端口</title><link>http://feedproxy.google.com/~r/jianzhou/~3/SZ3OWTghttY/</link> <comments>http://tiaozhanshu.com/computer/hadoop/hadoop-ports/#comments</comments> <pubDate>Tue, 17 Apr 2012 18:53:03 +0000</pubDate> <dc:creator>Jian Zhou</dc:creator> <category><![CDATA[Hadoop]]></category><guid isPermaLink="false">http://tiaozhanshu.com/?p=41493</guid> <description><![CDATA[与HDFS有关的地址及端口属性fs.default.name位置：conf/core-site.xml
必须项：是
常用值：hdfs:// [域名或IP地址] :9000
说明：NameNode 主服务器的地址[......]<p class='read-more'><a href='http://tiaozhanshu.com/computer/hadoop/hadoop-ports/'>more...</a></p>]]></description> <content:encoded><![CDATA[<p>与HDFS有关的地址及端口属性</p><p>fs.default.name</p><p> 位置：conf/core-site.xml<br /> 必须项：是<br /> 常用值：hdfs:// [域名或IP地址] :9000<br /> 说明：NameNode 主服务器的地址[......]<p class='read-more'><a href='http://tiaozhanshu.com/computer/hadoop/hadoop-ports/' onClick="_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/hadoop/hadoop-ports/','content']);">more&#8230;</a></p> <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=SZ3OWTghttY:kb-Y62XK9-8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=SZ3OWTghttY:kb-Y62XK9-8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/jianzhou?i=SZ3OWTghttY:kb-Y62XK9-8:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jianzhou?a=SZ3OWTghttY:kb-Y62XK9-8:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/jianzhou?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/jianzhou/~4/SZ3OWTghttY" height="1" width="1"/>]]></content:encoded> <slash:comments>0</slash:comments> <feedburner:origLink>http://tiaozhanshu.com/computer/hadoop/hadoop-ports/</feedburner:origLink></item> </channel> </rss>

