<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ferry to Samye</title>
	<atom:link href="http://zhongshugu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://zhongshugu.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 04 Jan 2012 04:19:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='zhongshugu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ferry to Samye</title>
		<link>http://zhongshugu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://zhongshugu.wordpress.com/osd.xml" title="Ferry to Samye" />
	<atom:link rel='hub' href='http://zhongshugu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Las Vegas &#8212; Los Angeles &#8212; San Francisco</title>
		<link>http://zhongshugu.wordpress.com/2012/01/03/las-vegas-los-angeles-san-francisco/</link>
		<comments>http://zhongshugu.wordpress.com/2012/01/03/las-vegas-los-angeles-san-francisco/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 04:19:26 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=239</guid>
		<description><![CDATA[去年寒假在纽约遇到超级暴风雪，今年学乖了去四季如春的西部，12天的旅程，Las Vegas到Los Angeles，然后遵循Sheldon的教诲坐amtrack的coast starlight去San Francisco 1. 沙漠中的Vegas总是表达得那么直白，也算是人类史上的一朵奇葩，不过治安倒是与之产业结构不相称的好 2. Circus Circus的门口的标志小丑，Vegas是个不夜城，睡个懒觉，吃个buffet，晚上开始活动了 3. 大概是童年看了太多《三国演义》中的打打杀杀，对米国的Disneyland实在是提不起兴趣，不过晚上的水幕表演倒是给了我很多的启发，中国古代文化中那么多的素材，如果建一个theme park来好好包装展现，显然要比这个Disney有意思的多，老祖宗给我们留下了许多东西，我们却白白得浪费掉了。 4. 去Mulholland Dr. 全然是为了向当年David Lynch的同名电影致敬 5. 去Beverly Hills则是去偷窥一下美国的高帅富们究竟过着怎样的一种生活 6. 真的到了Hollywood的中心地带，除了那个中国戏院算是一个亮点，其他实在是很搓，盛名之下其实难副啊! 7. Griffith Observatory可以看到LA的夜景，但是LA太大了，远不及NYC和芝加哥的downtown夜景漂亮，只能快门加长拉个线了 8. 第一天的三藩大雾封城，不过有这样的肃杀气氛，Alcatraz就反而有意境了 9. 远处的若隐若现的Bay Bridge，不知PM 2.5多少，是雾是霾 10. 第二天的三藩天气出奇的好，否则印象岂不是要大打折扣了。 三藩建在山上，这样的路比比皆是，对车技绝对是一大考验。 11. 天空一扫昨天的阴霾 12. 不能免俗得来一张明信片 13. 不能免俗得再来一张 14. 三藩华人占20%，亚裔更是占到了三成，公车上的广东话报站就能看出这座城市族群的多寡。每到一个城市，我们都会去一下当地的唐人街，一来为了解个嘴馋，二来可以看到一些中国大陆已经消亡的了几十年的场景，繁体字，青天白日旗，福建会馆，x氏宗亲会，就像那一部下档多年的民国老电影<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=239&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>去年寒假在纽约遇到超级暴风雪，今年学乖了去四季如春的西部，12天的旅程，Las Vegas到Los Angeles，然后遵循Sheldon的教诲坐amtrack的coast starlight去San Francisco</p>
<p>1. 沙漠中的Vegas总是表达得那么直白，也算是人类史上的一朵奇葩，不过治安倒是与之产业结构不相称的好</p>
<p><img class="alignnone" title="赌城的广告" src="http://farm8.staticflickr.com/7160/6632236563_945d363e69.jpg" alt="" width="338" height="500" /></p>
<p>2. Circus Circus的门口的标志小丑，Vegas是个不夜城，睡个懒觉，吃个buffet，晚上开始活动了</p>
<p><img class="alignnone" title="Circus Circus" src="http://farm8.staticflickr.com/7027/6632232153_e82ca1abed.jpg" alt="" width="500" height="370" /></p>
<p>3. 大概是童年看了太多《三国演义》中的打打杀杀，对米国的Disneyland实在是提不起兴趣，不过晚上的水幕表演倒是给了我很多的启发，中国古代文化中那么多的素材，如果建一个theme park来好好包装展现，显然要比这个Disney有意思的多，老祖宗给我们留下了许多东西，我们却白白得浪费掉了。</p>
<p><img class="alignnone" title="Disneyland" src="http://farm8.staticflickr.com/7024/6632227367_fa12a83464.jpg" alt="" width="333" height="500" /></p>
<p>4. 去Mulholland Dr. 全然是为了向当年David Lynch的同名电影致敬</p>
<p><img class="alignnone" title="Mulholland Drive" src="http://farm8.staticflickr.com/7004/6632220585_c1a61e9a48.jpg" alt="" width="500" height="382" /></p>
<p>5. 去Beverly Hills则是去偷窥一下美国的高帅富们究竟过着怎样的一种生活</p>
<p><img class="alignnone" title="Beverly Hills" src="http://farm8.staticflickr.com/7174/6632216979_b274b1fd37.jpg" alt="" width="500" height="318" /></p>
<p>6. 真的到了Hollywood的中心地带，除了那个中国戏院算是一个亮点，其他实在是很搓，盛名之下其实难副啊!</p>
<p><img class="alignnone" title="spiderman" src="http://farm8.staticflickr.com/7160/6632211555_ccdd6c685e.jpg" alt="" width="357" height="500" /></p>
<p>7. Griffith Observatory可以看到LA的夜景，但是LA太大了，远不及NYC和芝加哥的downtown夜景漂亮，只能快门加长拉个线了</p>
<p><img class="alignnone" title="LA" src="http://farm8.staticflickr.com/7001/6632206003_17166e1e37.jpg" alt="" width="500" height="333" /></p>
<p>8. 第一天的三藩大雾封城，不过有这样的肃杀气氛，Alcatraz就反而有意境了</p>
<p><img class="alignnone" title="alcatraz" src="http://farm8.staticflickr.com/7017/6632197405_467ccf86d1.jpg" alt="" width="500" height="304" /></p>
<p>9. 远处的若隐若现的Bay Bridge，不知PM 2.5多少，是雾是霾</p>
<p><img class="alignnone" title="bay bridge" src="http://farm8.staticflickr.com/7160/6632191191_a16c12f4de.jpg" alt="" width="500" height="333" /></p>
<p>10. 第二天的三藩天气出奇的好，否则印象岂不是要大打折扣了。 三藩建在山上，这样的路比比皆是，对车技绝对是一大考验。</p>
<p><img class="alignnone" title="SF" src="http://farm8.staticflickr.com/7016/6632183207_85233a0f11.jpg" alt="" width="333" height="500" /></p>
<p>11. 天空一扫昨天的阴霾</p>
<p><img class="alignnone" title="SF2" src="http://farm8.staticflickr.com/7172/6632175435_8a9605e3be.jpg" alt="" width="500" height="357" /></p>
<p>12. 不能免俗得来一张明信片</p>
<p><img class="alignnone" title="goldengate" src="http://farm8.staticflickr.com/7174/6632168731_70dd5f244a.jpg" alt="" width="500" height="333" /></p>
<p>13. 不能免俗得再来一张</p>
<p><img class="alignnone" title="bridge" src="http://farm8.staticflickr.com/7019/6632160105_be9164c539.jpg" alt="" width="333" height="500" /></p>
<p>14. 三藩华人占20%，亚裔更是占到了三成，公车上的广东话报站就能看出这座城市族群的多寡。每到一个城市，我们都会去一下当地的唐人街，一来为了解个嘴馋，二来可以看到一些中国大陆已经消亡的了几十年的场景，繁体字，青天白日旗，福建会馆，x氏宗亲会，就像那一部下档多年的民国老电影</p>
<p><img class="alignnone" title="chinatown" src="http://farm8.staticflickr.com/7169/6632154743_374a92aa9f.jpg" alt="" width="500" height="365" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/239/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/239/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=239&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2012/01/03/las-vegas-los-angeles-san-francisco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7160/6632236563_945d363e69.jpg" medium="image">
			<media:title type="html">赌城的广告</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7027/6632232153_e82ca1abed.jpg" medium="image">
			<media:title type="html">Circus Circus</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7024/6632227367_fa12a83464.jpg" medium="image">
			<media:title type="html">Disneyland</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7004/6632220585_c1a61e9a48.jpg" medium="image">
			<media:title type="html">Mulholland Drive</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7174/6632216979_b274b1fd37.jpg" medium="image">
			<media:title type="html">Beverly Hills</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7160/6632211555_ccdd6c685e.jpg" medium="image">
			<media:title type="html">spiderman</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7001/6632206003_17166e1e37.jpg" medium="image">
			<media:title type="html">LA</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7017/6632197405_467ccf86d1.jpg" medium="image">
			<media:title type="html">alcatraz</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7160/6632191191_a16c12f4de.jpg" medium="image">
			<media:title type="html">bay bridge</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7016/6632183207_85233a0f11.jpg" medium="image">
			<media:title type="html">SF</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7172/6632175435_8a9605e3be.jpg" medium="image">
			<media:title type="html">SF2</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7174/6632168731_70dd5f244a.jpg" medium="image">
			<media:title type="html">goldengate</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7019/6632160105_be9164c539.jpg" medium="image">
			<media:title type="html">bridge</media:title>
		</media:content>

		<media:content url="http://farm8.staticflickr.com/7169/6632154743_374a92aa9f.jpg" medium="image">
			<media:title type="html">chinatown</media:title>
		</media:content>
	</item>
		<item>
		<title>Madrid &amp; Toledo</title>
		<link>http://zhongshugu.wordpress.com/2011/10/21/madrid-toledo/</link>
		<comments>http://zhongshugu.wordpress.com/2011/10/21/madrid-toledo/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 13:52:38 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=236</guid>
		<description><![CDATA[开conference, 第一次去欧洲, 跟着rossetta stone学了一周的西班牙语貌似也没派上什么用场，听是完全的不行，说偶尔可以蹦一两个单词，读倒是还好, 基本能猜个八九不离十。 1. 在Puerta del Sol看到的隐身人，第一次看到的时候觉得挺神奇的，后来发现马德里到处都是，看来也是有模板的。 2. Royal Palace of Madrid门口骑马的警察 3. 街头随处可见香烟店，果然是美国人酗酒，欧洲人嗜烟，不过有那么高比例的女人抽烟我还是有点诧异的 4. Prado门口的剪刀手爱德华，看过Prado和Reina Sofía，才知道Velázquez,Goya, Picasso,Dalí这种西班牙本土画家都可以大白菜式的展示的。 5. 旅馆里正在放西班牙语版的机器猫 6. Las Ventas斗牛场，昨天刚看到一个被牛角戳爆左眼的斗牛士的新闻，太血腥了。 7. 最后一天去了Toledo，那遇到学生游行抗议削减公共教育经费，想到后来10月15日在Sol的Occupy Madrid，可惜了，没赶上<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=236&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>开conference, 第一次去欧洲, 跟着rossetta stone学了一周的西班牙语貌似也没派上什么用场，听是完全的不行，说偶尔可以蹦一两个单词，读倒是还好, 基本能猜个八九不离十。</p>
<p>1. 在Puerta del Sol看到的隐身人，第一次看到的时候觉得挺神奇的，后来发现马德里到处都是，看来也是有模板的。</p>
<div class="wp-caption alignnone" style="width: 317px"><img title="Puerta del Sol" src="http://farm7.static.flickr.com/6218/6229059580_f51ea1abf6.jpg" alt="" width="307" height="500" /><p class="wp-caption-text">Puerta del Sol</p></div>
<p>2. Royal Palace of Madrid门口骑马的警察</p>
<div class="wp-caption alignnone" style="width: 510px"><img title="Royal Palace of Madrid" src="http://farm7.static.flickr.com/6155/6228541851_06913c5665.jpg" alt="" width="500" height="419" /><p class="wp-caption-text">Royal Palace of Madrid</p></div>
<p>3. 街头随处可见香烟店，果然是美国人酗酒，欧洲人嗜烟，不过有那么高比例的女人抽烟我还是有点诧异的</p>
<div class="wp-caption alignnone" style="width: 510px"><img title="Tabacos" src="http://farm7.static.flickr.com/6153/6228540521_3f6a2bdd1d.jpg" alt="" width="500" height="371" /><p class="wp-caption-text">Tabacos</p></div>
<p>4. Prado门口的剪刀手爱德华，看过Prado和Reina Sofía，才知道Velázquez,Goya, Picasso,Dalí这种西班牙本土画家都可以大白菜式的展示的。</p>
<div class="wp-caption alignnone" style="width: 343px"><img title="Museo del Prado" src="http://farm7.static.flickr.com/6216/6229042480_3428860e1f.jpg" alt="" width="333" height="500" /><p class="wp-caption-text">Museo del Prado</p></div>
<p>5. 旅馆里正在放西班牙语版的机器猫</p>
<div class="wp-caption alignnone" style="width: 429px"><img title="Doraemon" src="http://farm7.static.flickr.com/6239/6229053860_9929677112.jpg" alt="" width="419" height="500" /><p class="wp-caption-text">Doraemon</p></div>
<p>6. Las Ventas斗牛场，昨天刚看到一个被牛角戳爆左眼的斗牛士的新闻，太血腥了。</p>
<div class="wp-caption alignnone" style="width: 343px"><img title="Las Ventas" src="http://farm7.static.flickr.com/6101/6228533355_43928c8fe9.jpg" alt="" width="333" height="500" /><p class="wp-caption-text">Las Ventas</p></div>
<p>7. 最后一天去了Toledo，那遇到学生游行抗议削减公共教育经费，想到后来10月15日在Sol的Occupy Madrid，可惜了，没赶上</p>
<div class="wp-caption alignnone" style="width: 343px"><img title="Toledo" src="http://farm7.static.flickr.com/6175/6229039082_52d28e3477.jpg" alt="" width="333" height="500" /><p class="wp-caption-text">Toledo</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=236&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2011/10/21/madrid-toledo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6218/6229059580_f51ea1abf6.jpg" medium="image">
			<media:title type="html">Puerta del Sol</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6155/6228541851_06913c5665.jpg" medium="image">
			<media:title type="html">Royal Palace of Madrid</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6153/6228540521_3f6a2bdd1d.jpg" medium="image">
			<media:title type="html">Tabacos</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6216/6229042480_3428860e1f.jpg" medium="image">
			<media:title type="html">Museo del Prado</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6239/6229053860_9929677112.jpg" medium="image">
			<media:title type="html">Doraemon</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6101/6228533355_43928c8fe9.jpg" medium="image">
			<media:title type="html">Las Ventas</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6175/6229039082_52d28e3477.jpg" medium="image">
			<media:title type="html">Toledo</media:title>
		</media:content>
	</item>
		<item>
		<title>select</title>
		<link>http://zhongshugu.wordpress.com/2011/02/28/select/</link>
		<comments>http://zhongshugu.wordpress.com/2011/02/28/select/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 04:27:08 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=217</guid>
		<description><![CDATA[http://www.lowtek.com/sockets/select.html One traditional way to write network servers is to have the main server block on accept(), waiting for a connection. Once a connection comes in, the server fork()s, the child process handles the connection and the main server is able to service new incoming requests. With select(), instead of having a process for each [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=217&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:x-small;"><a href="http://www.lowtek.com/sockets/select.html">http://www.lowtek.com/sockets/select.html</a> </span><br />
One traditional way to write network servers is to have the main server block on <em>accept()</em>, waiting for a connection. Once a connection comes in, the server <em>fork()</em>s, the child process handles the connection and the main server is able to service new incoming requests.</p>
<p>With <em>select()</em>, instead of having a process for each request, there is usually only one process that &#8220;multi-plexes&#8221; all requests, servicing each request as much as it can.</p>
<p>So one main advantage of using <em>select()</em> is that your server will only require a single process to handle all requests. Thus, your server will not need shared memory or synchronization primitives for different &#8216;tasks&#8217; to communicate.</p>
<p>One major disadvantage of using <em>select()</em>, is that your server cannot act like there&#8217;s only one client, like with a <em>fork()</em>&#8216;ing solution. For example, with a <em>fork()</em>&#8216;ing solution, after the server <em>fork()</em>s, the child process works with the client as if there was only one client in the universe &#8212; the child does not have to worry about new incoming connections or the existence of other sockets. With <em>select()</em>, the programming isn&#8217;t as transparent.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=217&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2011/02/28/select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>
	</item>
		<item>
		<title>Caller-save registers and callee-save registers</title>
		<link>http://zhongshugu.wordpress.com/2011/02/23/caller-save-registers-and-callee-save-registers/</link>
		<comments>http://zhongshugu.wordpress.com/2011/02/23/caller-save-registers-and-callee-save-registers/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 04:52:29 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=215</guid>
		<description><![CDATA[http://ozark.hendrix.edu/~burch/cs/230/cso/ch13-sub/index.html Assembly programmers divide the registers into caller-save registers and callee-save registers. Caller-save registers are those that the subroutine may change, such as R0 through R3 in the ARM convention described above: They are caller-save because since a caller of a subroutine must save the registers&#8217; values if it wants the values after the subroutine completes. Callee-save registers are those that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=215&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://ozark.hendrix.edu/~burch/cs/230/cso/ch13-sub/index.html">http://ozark.hendrix.edu/~burch/cs/230/cso/ch13-sub/index.html</a></p>
<p>Assembly programmers divide the registers into <em>caller-save registers</em> and <em>callee-save registers</em>. <strong>Caller-save registers</strong> are those that the subroutine may change, such as R0 through R3 in the ARM convention described above: They are <em>caller-save</em> because since a caller of a subroutine must save the registers&#8217; values if it wants the values after the subroutine completes. <strong>Callee-save registers</strong> are those that a subroutine must leave unchanged, like R4 through R12 is the convention described above: Upon being called, the subroutine (the <em>callee</em>) must save the registers&#8217; values if it wishes to use them.</p>
<p>It&#8217;s beneficial for a calling convention to designate both caller-save registers and callee-save registers. If the convention designated all registers as callee-save, then subroutines would not be able to use any registers at all without saving them onto the stack first — which would be a waste, since some of the saved registers would be transient values that the calling subroutine did not care about long-term. And if the convention designated all registers as caller-save, then programmers would be forced to save many registers before every call to a subroutine and to restore them afterwards, lengthening the amount of time to call a subroutine.</p>
<p>/************       comment      ******************/</p>
<p>Caller only needs to save the caller-save registers that is live *across* the subroutine call. If it will not be used after the calling, there is no need to save/restore them.</p>
<p>Callee only needs to save the callee-save registers that are used in the body of its subroutine.</p>
<p>If it is a leaf procedure, just use the caller-save registers as often as possible. If it is a non-leaf procedure, if the variable is live across the call, callee-save register is preferred.  Otherwise, just use the caller-save registers.</p>
<p><a href="http://classes.engr.oregonstate.edu/eecs/spring2009/cs472/MIPSXCallingXConventionsXSummary.pdf">http://classes.engr.oregonstate.edu/eecs/spring2009/cs472/MIPSXCallingXConventionsXSummary.pdf</a></p>
<p>For MIPS, argument registers $a0 ~ $a3 are used to pass the first four<br />
arguments to a subroutine. These arguments are not copied into the Argument Section by the calling subroutine, but the space is reserved. If this procedure is non-leaf, before calling other subroutine, it should save the argument registers(the number is according to its own argument number) in the reserved area of caller&#8217;s stack frame. Then it can reuse the argument registers to pass the arguments to the callee.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=215&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2011/02/23/caller-save-registers-and-callee-save-registers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>
	</item>
		<item>
		<title>gnome-terminal + ssh + command</title>
		<link>http://zhongshugu.wordpress.com/2011/02/15/gnome-terminal-ssh-command/</link>
		<comments>http://zhongshugu.wordpress.com/2011/02/15/gnome-terminal-ssh-command/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 03:09:51 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=211</guid>
		<description><![CDATA[gnome-terminal -e &#8220;ssh -t username@remote_machine &#8216;command; bash -l&#8217;&#8221;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=211&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>gnome-terminal -e &#8220;ssh -t username@remote_machine &#8216;command; bash -l&#8217;&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=211&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2011/02/15/gnome-terminal-ssh-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>
	</item>
		<item>
		<title>Boston&#8211;NYC&#8211;Philly&#8211;DC</title>
		<link>http://zhongshugu.wordpress.com/2011/01/03/boston-nyc-philly-dc/</link>
		<comments>http://zhongshugu.wordpress.com/2011/01/03/boston-nyc-philly-dc/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 02:09:23 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=204</guid>
		<description><![CDATA[BOSTON： MIT CSAIL 所在的Stata Center，这大概是MIT无聊乏味枯燥的建筑风格体系中唯一的亮点了，不过看到实体之后，还是感觉憋得慌，每天要看到这幢楼的计算机系的人们，会不会神经特别紧张？ MIT的Mechanical Engineering系一个professor的门口看到的，这个名字很有意思，MIT+SOS &#160; NEW YORK CITY: 纽约的生活比波士顿精彩了许多，但是对于我们这种习惯农村的人们来说，人还是太多了一点，地铁还是太脏了一点，黑哥们还是太吓人了一点。 光鲜的时代广场 自由女神前的小鸟 曼哈顿华埠的Beatles What&#8217;s going on here? @ Brooklyn Bridge 大都会博物馆的素描先生 帝国大厦下躁动的大苹果 暴风雪之后的哥大地铁站 &#160; PHILADELPHIA: 亲历纽约那场20年不遇的暴风雪，看到费城的好天气那是相当的感动 UPenn附近的medical center Benjamin Franklin Bridge下的移民壁画 &#160; WASHINGTON DC: DC很像北京城，规整而干净，可是找家吃饭的地方却是那么的麻烦 Jefferson memorial，像不像黄金圣斗士的十二宫？ 受诅咒的Hope Diamond 被遗忘的韩战<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=204&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>BOSTON：</p>
<p>MIT CSAIL 所在的Stata Center，这大概是MIT无聊乏味枯燥的建筑风格体系中唯一的亮点了，不过看到实体之后，还是感觉憋得慌，每天要看到这幢楼的计算机系的人们，会不会神经特别紧张？</p>
<p><img class="alignnone" title="Stata center" src="http://farm6.static.flickr.com/5004/5321699949_529db5c41a.jpg" alt="" width="500" height="334" /></p>
<p>MIT的Mechanical Engineering系一个professor的门口看到的，这个名字很有意思，MIT+SOS</p>
<p><img class="alignnone" title="MITSOS" src="http://farm6.static.flickr.com/5082/5322286858_9ab89f1aa6.jpg" alt="" width="500" height="333" /></p>
<p>&nbsp;</p>
<p>NEW YORK CITY:</p>
<p>纽约的生活比波士顿精彩了许多，但是对于我们这种习惯农村的人们来说，人还是太多了一点，地铁还是太脏了一点，黑哥们还是太吓人了一点。</p>
<p>光鲜的时代广场</p>
<p><img class="alignnone" title="Times Square" src="http://farm6.static.flickr.com/5287/5322267508_c414b6917c.jpg" alt="" width="429" height="500" /></p>
<p>自由女神前的小鸟</p>
<p><img class="alignnone" title="statue of liberty" src="http://farm6.static.flickr.com/5248/5321655703_122003e413.jpg" alt="" width="500" height="356" /></p>
<p>曼哈顿华埠的Beatles</p>
<p><img class="alignnone" title="chinatown" src="http://farm6.static.flickr.com/5163/5322251842_900f589264.jpg" alt="" width="341" height="500" /></p>
<p>What&#8217;s going on here? @ Brooklyn Bridge</p>
<p><img class="alignnone" title="brooklyn bridge" src="http://farm6.static.flickr.com/5048/5322241904_222ac896c4.jpg" alt="" width="468" height="500" /></p>
<p>大都会博物馆的素描先生</p>
<p><img class="alignnone" title="metr" src="http://farm6.static.flickr.com/5285/5321623035_891b308dfc.jpg" alt="" width="334" height="500" /></p>
<p>帝国大厦下躁动的大苹果</p>
<p><img class="alignnone" title="imp" src="http://farm6.static.flickr.com/5082/5321636727_eb419d43f1.jpg" alt="" width="500" height="333" /></p>
<p>暴风雪之后的哥大地铁站</p>
<p><img class="alignnone" title="columbia university" src="http://farm6.static.flickr.com/5006/5321612863_6cbb98a48b.jpg" alt="" width="500" height="320" /></p>
<p>&nbsp;</p>
<p>PHILADELPHIA:</p>
<p>亲历纽约那场20年不遇的暴风雪，看到费城的好天气那是相当的感动</p>
<p>UPenn附近的medical center</p>
<p><img class="alignnone" title="UPenn" src="http://farm6.static.flickr.com/5282/5322206946_49b12d31c4.jpg" alt="" width="500" height="370" /></p>
<p>Benjamin Franklin Bridge下的移民壁画</p>
<p><img class="alignnone" title="fesco" src="http://farm6.static.flickr.com/5048/5322194730_327ce3f6c2.jpg" alt="" width="500" height="348" /></p>
<p>&nbsp;</p>
<p>WASHINGTON DC:</p>
<p>DC很像北京城，规整而干净，可是找家吃饭的地方却是那么的麻烦</p>
<p>Jefferson memorial，像不像黄金圣斗士的十二宫？</p>
<p><img class="alignnone" title="jefferson" src="http://farm6.static.flickr.com/5243/5322176972_e705ede763.jpg" alt="" width="500" height="377" /></p>
<p>受诅咒的Hope Diamond</p>
<p><img class="alignnone" title="Hope" src="http://farm6.static.flickr.com/5242/5322170580_8c2b8d0887.jpg" alt="" width="500" height="347" /></p>
<p>被遗忘的韩战</p>
<p><img class="alignnone" title="korea war" src="http://farm6.static.flickr.com/5126/5321584457_a1b7380a14.jpg" alt="" width="500" height="400" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=204&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2011/01/03/boston-nyc-philly-dc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5004/5321699949_529db5c41a.jpg" medium="image">
			<media:title type="html">Stata center</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5082/5322286858_9ab89f1aa6.jpg" medium="image">
			<media:title type="html">MITSOS</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5287/5322267508_c414b6917c.jpg" medium="image">
			<media:title type="html">Times Square</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5248/5321655703_122003e413.jpg" medium="image">
			<media:title type="html">statue of liberty</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5163/5322251842_900f589264.jpg" medium="image">
			<media:title type="html">chinatown</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5048/5322241904_222ac896c4.jpg" medium="image">
			<media:title type="html">brooklyn bridge</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5285/5321623035_891b308dfc.jpg" medium="image">
			<media:title type="html">metr</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5082/5321636727_eb419d43f1.jpg" medium="image">
			<media:title type="html">imp</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5006/5321612863_6cbb98a48b.jpg" medium="image">
			<media:title type="html">columbia university</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5282/5322206946_49b12d31c4.jpg" medium="image">
			<media:title type="html">UPenn</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5048/5322194730_327ce3f6c2.jpg" medium="image">
			<media:title type="html">fesco</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5243/5322176972_e705ede763.jpg" medium="image">
			<media:title type="html">jefferson</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5242/5322170580_8c2b8d0887.jpg" medium="image">
			<media:title type="html">Hope</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5126/5321584457_a1b7380a14.jpg" medium="image">
			<media:title type="html">korea war</media:title>
		</media:content>
	</item>
		<item>
		<title>One tricky problem for bib of citation</title>
		<link>http://zhongshugu.wordpress.com/2010/10/07/one-tricky-problem-for-bib-of-citation/</link>
		<comments>http://zhongshugu.wordpress.com/2010/10/07/one-tricky-problem-for-bib-of-citation/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 19:57:13 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=201</guid>
		<description><![CDATA[When writing the bib for a cite and there are multiple authors for a paper, they should be separated with &#8220;and&#8221;, not with commas. This example is from wikipedia @Book{Torre2008, author = "Joe Torre and Tom Verducci", publisher = "Doubleday", title = "The Yankee Years", year = 2008, isbn = "0385527403" } Otherwise, BibTex will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=201&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When writing the bib for a cite and there are multiple authors for a paper, they should be separated with &#8220;and&#8221;, not with commas. This example is from <a href="http://en.wikipedia.org/wiki/BibTeX" target="_blank">wikipedia</a></p>
<pre>@Book{Torre2008,
 author    = "Joe Torre and Tom Verducci",
 publisher = "Doubleday",
 title     = "The Yankee Years",
 year      =  2008,
 isbn      = "0385527403"
}</pre>
<p>Otherwise, BibTex will rearrange the names. The first author will be depressed and feel unfair in that case. LOL.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/201/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/201/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=201&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2010/10/07/one-tricky-problem-for-bib-of-citation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>
	</item>
		<item>
		<title>上周末</title>
		<link>http://zhongshugu.wordpress.com/2010/08/31/%e4%b8%8a%e5%91%a8%e6%9c%ab/</link>
		<comments>http://zhongshugu.wordpress.com/2010/08/31/%e4%b8%8a%e5%91%a8%e6%9c%ab/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 00:22:59 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=198</guid>
		<description><![CDATA[小小摄影师亚克西和她的助手小松鼠 背后总是充满了不经意的喜感 在St. Joseph的Michigan Lake旁 当我们走到这家店port412门口的时候, iphone上的yelp也指到了它 恩，过往只是前言<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=198&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="小小摄影师亚克西和助手小松鼠" src="http://farm5.static.flickr.com/4128/4946930820_0e9fd7305b.jpg" alt="" width="318" height="500" /></p>
<p>小小摄影师亚克西和她的助手小松鼠</p>
<p><img class="alignnone" title="http://farm5.static.flickr.com/4100/4946337713_177bcce41a.jpg" src="http://farm5.static.flickr.com/4100/4946337713_177bcce41a.jpg" alt="" width="500" height="423" /></p>
<p>背后总是充满了不经意的喜感</p>
<p><img class="alignnone" title="http://farm5.static.flickr.com/4126/4946924386_0a5c06a956.jpg" src="http://farm5.static.flickr.com/4126/4946924386_0a5c06a956.jpg" alt="" width="500" height="304" /></p>
<p>在St. Joseph的Michigan Lake旁</p>
<p><img class="alignnone" title="http://farm5.static.flickr.com/4123/4946331669_7e00316087.jpg" src="http://farm5.static.flickr.com/4123/4946331669_7e00316087.jpg" alt="" width="500" height="333" /></p>
<p>当我们走到这家店port412门口的时候, iphone上的yelp也指到了它</p>
<p><img class="alignnone" title="http://farm5.static.flickr.com/4086/4946918292_55e2930f5a.jpg" src="http://farm5.static.flickr.com/4086/4946918292_55e2930f5a.jpg" alt="" width="500" height="327" /></p>
<p>恩，过往只是前言</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=198&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2010/08/31/%e4%b8%8a%e5%91%a8%e6%9c%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4128/4946930820_0e9fd7305b.jpg" medium="image">
			<media:title type="html">小小摄影师亚克西和助手小松鼠</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4100/4946337713_177bcce41a.jpg" medium="image">
			<media:title type="html">http://farm5.static.flickr.com/4100/4946337713_177bcce41a.jpg</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4126/4946924386_0a5c06a956.jpg" medium="image">
			<media:title type="html">http://farm5.static.flickr.com/4126/4946924386_0a5c06a956.jpg</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4123/4946331669_7e00316087.jpg" medium="image">
			<media:title type="html">http://farm5.static.flickr.com/4123/4946331669_7e00316087.jpg</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4086/4946918292_55e2930f5a.jpg" medium="image">
			<media:title type="html">http://farm5.static.flickr.com/4086/4946918292_55e2930f5a.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>sudo redirect</title>
		<link>http://zhongshugu.wordpress.com/2010/07/26/sudo-redirect/</link>
		<comments>http://zhongshugu.wordpress.com/2010/07/26/sudo-redirect/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 16:07:14 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=193</guid>
		<description><![CDATA[If you use the command like sudo echo 3 &#62; /proc/sys/vm/drop_caches it will not work because pipe does not allow privilege escalation. There are two alternatives for this 1. use sh sudo sh -c &#8216;echo 3 &#62; /proc/sys/vm/drop_caches&#8217; 2. use sudo tee echo 3 &#62; sudo tee /proc/sys/vm/drop_caches via tee(command) The usage of tee: The output of ls [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=193&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use the command like</p>
<p>sudo echo 3 &gt; /proc/sys/vm/drop_caches</p>
<p>it will not work because pipe does not allow privilege escalation.</p>
<p>There are two alternatives for this</p>
<p>1. use sh</p>
<p>sudo sh -c &#8216;echo 3 &gt; /proc/sys/vm/drop_caches&#8217;</p>
<p>2. use sudo tee</p>
<p>echo 3 &gt; sudo tee /proc/sys/vm/drop_caches</p>
<p>via <a href="http://en.wikipedia.org/wiki/Tee_(command)" target="_blank">tee(command)</a></p>
<p><img class="alignnone" title="tee" src="http://upload.wikimedia.org/wikipedia/commons/2/24/Tee.svg" alt="" width="413" height="262" /></p>
<p>The usage of <em>tee</em>: The output of <code><a title="Ls (Unix) (page does not exist)" href="/w/index.php?title=Ls_(Unix)&amp;action=edit&amp;redlink=1">ls -l</a></code> is redirected to <em>tee</em> which copies them to the file <em>file.txt</em> and to the pager <code><a title="Less (Unix)" href="/wiki/Less_(Unix)">less</a></code>. The name <em>tee</em> comes from this scheme &#8211; it looks like the capital letter <em>T</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=193&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2010/07/26/sudo-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>40.425869 -86.908066</georss:point>
		<geo:lat>40.425869</geo:lat>
		<geo:long>-86.908066</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/2/24/Tee.svg" medium="image">
			<media:title type="html">tee</media:title>
		</media:content>
	</item>
		<item>
		<title>4th of July @ chicago</title>
		<link>http://zhongshugu.wordpress.com/2010/07/05/4th-of-july-chicago/</link>
		<comments>http://zhongshugu.wordpress.com/2010/07/05/4th-of-july-chicago/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 01:50:52 +0000</pubDate>
		<dc:creator>Zhongshu Gu</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://zhongshugu.wordpress.com/?p=188</guid>
		<description><![CDATA[第一次去Chicago，是那个刚来美国寒冷的夜晚，打了个匆匆的照面，苦等机场门口的aircoach，管bus的黑人小妞蛮横的样子，给了那个来自遥远东方的迷茫小孩狠狠的下马威。 第二次去Chicago，逛field museum，走Michigan Ave，看老朋友，又一次回到大城市的生活，甚是好奇，充满感动。 第三次去Chicago，走了个遍，却又重新怀念起拉法叶的小镇生活，安宁平和而温暖。 1. 经过Hancock 附近的bus 2. Sears Tower俯瞰，华灯初上 3. Downtown的夜晚 4. 沙滩的阅读 5. 记得小时候我也这么骑在老爸的肩膀 6. Art Institute前的卖艺人 7. 画中人 8. 东西方女性<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=188&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>第一次去Chicago，是那个刚来美国寒冷的夜晚，打了个匆匆的照面，苦等机场门口的aircoach，管bus的黑人小妞蛮横的样子，给了那个来自遥远东方的迷茫小孩狠狠的下马威。</p>
<p>第二次去Chicago，逛field museum，走Michigan Ave，看老朋友，又一次回到大城市的生活，甚是好奇，充满感动。</p>
<p>第三次去Chicago，走了个遍，却又重新怀念起拉法叶的小镇生活，安宁平和而温暖。</p>
<p>1. 经过Hancock 附近的bus</p>
<p><img class="alignnone" title="Water Tower" src="http://farm5.static.flickr.com/4077/4766354554_2e5974a539.jpg" alt="" width="500" height="333" /></p>
<p>2. Sears Tower俯瞰，华灯初上</p>
<p><img class="alignnone" title="Sears1" src="http://farm5.static.flickr.com/4081/4766353876_221ee4fe0f.jpg" alt="" width="500" height="333" /></p>
<p>3. Downtown的夜晚</p>
<p><img class="alignnone" title="downtown" src="http://farm5.static.flickr.com/4100/4765714823_2a15bd99ff.jpg" alt="" width="500" height="333" /></p>
<p>4. 沙滩的阅读</p>
<p><img class="alignnone" title="beach" src="http://farm5.static.flickr.com/4116/4766348014_013a10beeb.jpg" alt="" width="500" height="258" /></p>
<p>5. 记得小时候我也这么骑在老爸的肩膀</p>
<p><img class="alignnone" title="fireworks" src="http://farm5.static.flickr.com/4096/4766346320_550bdcd1e8.jpg" alt="" width="333" height="500" /></p>
<p>6. Art Institute前的卖艺人</p>
<p><img class="alignnone" title="art museum" src="http://farm5.static.flickr.com/4139/4765712481_208208950b.jpg" alt="" width="500" height="333" /></p>
<p>7. 画中人</p>
<p><img class="alignnone" title="art pic" src="http://farm5.static.flickr.com/4101/4765710923_172dd1fa60.jpg" alt="" width="500" height="384" /></p>
<p>8. 东西方女性</p>
<p><img class="alignnone" title="woman" src="http://farm5.static.flickr.com/4143/4766349860_8edd970834.jpg" alt="" width="334" height="500" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhongshugu.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhongshugu.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zhongshugu.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zhongshugu.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhongshugu.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhongshugu.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhongshugu.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhongshugu.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhongshugu.wordpress.com&amp;blog=11677783&amp;post=188&amp;subd=zhongshugu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zhongshugu.wordpress.com/2010/07/05/4th-of-july-chicago/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>41.850033 -87.650052</georss:point>
		<geo:lat>41.850033</geo:lat>
		<geo:long>-87.650052</geo:long>
		<media:content url="http://0.gravatar.com/avatar/4cdc632ba1dc448ffab4fa3826f89313?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Damocles</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4077/4766354554_2e5974a539.jpg" medium="image">
			<media:title type="html">Water Tower</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4081/4766353876_221ee4fe0f.jpg" medium="image">
			<media:title type="html">Sears1</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4100/4765714823_2a15bd99ff.jpg" medium="image">
			<media:title type="html">downtown</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4116/4766348014_013a10beeb.jpg" medium="image">
			<media:title type="html">beach</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4096/4766346320_550bdcd1e8.jpg" medium="image">
			<media:title type="html">fireworks</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4139/4765712481_208208950b.jpg" medium="image">
			<media:title type="html">art museum</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4101/4765710923_172dd1fa60.jpg" medium="image">
			<media:title type="html">art pic</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4143/4766349860_8edd970834.jpg" medium="image">
			<media:title type="html">woman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
