<?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>Myrice&#039;s Blog</title>
	<atom:link href="http://myrice.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://myrice.me</link>
	<description>找到一些真正属于自己的东西</description>
	<lastBuildDate>Tue, 07 Sep 2010 11:02:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>清华开会小结</title>
		<link>http://myrice.me/2010/09/%e6%b8%85%e5%8d%8e%e5%bc%80%e4%bc%9a%e5%b0%8f%e7%bb%93/</link>
		<comments>http://myrice.me/2010/09/%e6%b8%85%e5%8d%8e%e5%bc%80%e4%bc%9a%e5%b0%8f%e7%bb%93/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 10:09:00 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Thinking]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=181</guid>
		<description><![CDATA[下午去了清华和Steve, Yubei, Ming 开了一次会, 虽然很普通, 但是想法很多很多. Yubei 作为一位强悍的美藉华人, 明显眼光不一样. 虽然同为大三, 但是差距巨大已完全不是一个层面上的了. 同时提到了周冬大神, 没想到, 高中OI之后居然还会与当年的OI大牛们有丁点交集. Ming 6系的, 就感觉完全比我们系强一个等级, 他们学了好多. 我的模电没学, 数电虽然考得很高, 但实际呢, 我们系数电根本什么都没学嘛. 需要到其它系补一下这2门课的说. 和Ming吃饭时, 说到SRTP, 可以直接拿这边项目申请, 当然技术上没什么问题, 但是又说到了学校关系云云, 真是无奈, 再说吧. 需要做的事情: 1. GPGPU-Sim的代码需要通读 2. 认真读书(量化, OSC, etc) 3. 开始小准备TOEFL 4. 找机会补模电数电, 尽量吧 5. 数据统计看样还是少了不Matlab, Lennie 在上, 本来想去听, 被劝退. 可想我们学校的课, 有机会自学点就好了吧.. Actually, I am very afraid. [...]]]></description>
			<content:encoded><![CDATA[<p>下午去了清华和Steve, Yubei, Ming 开了一次会, 虽然很普通, 但是想法很多很多.</p>
<p>Yubei 作为一位强悍的美藉华人, 明显眼光不一样. 虽然同为大三, 但是差距巨大已完全不是一个层面上的了. 同时提到了周冬大神, 没想到, 高中OI之后居然还会与当年的OI大牛们有丁点交集.</p>
<p>Ming 6系的, 就感觉完全比我们系强一个等级, 他们学了好多. 我的模电没学, 数电虽然考得很高, 但实际呢, 我们系数电根本什么都没学嘛. 需要到其它系补一下这2门课的说.</p>
<p>和Ming吃饭时, 说到SRTP, 可以直接拿这边项目申请, 当然技术上没什么问题, 但是又说到了学校关系云云, 真是无奈, 再说吧.</p>
<p>需要做的事情:<br />
1. GPGPU-Sim的代码需要通读<br />
2. 认真读书(量化, OSC, etc)<br />
3. 开始小准备TOEFL<br />
4. 找机会补模电数电, 尽量吧<br />
5. 数据统计看样还是少了不Matlab, Lennie 在上, 本来想去听, 被劝退. 可想我们学校的课, 有机会自学点就好了吧..</p>
<p>Actually, I am very afraid. When I talk to these &#8216;nubility&#8217; people, I know I am nothing. Many things need to be done. Remember your goal, do real things!</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/09/%e6%b8%85%e5%8d%8e%e5%bc%80%e4%bc%9a%e5%b0%8f%e7%bb%93/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>终端提示符的配置</title>
		<link>http://myrice.me/2010/08/%e7%bb%88%e7%ab%af%e6%8f%90%e7%a4%ba%e7%ac%a6%e7%9a%84%e9%85%8d%e7%bd%ae/</link>
		<comments>http://myrice.me/2010/08/%e7%bb%88%e7%ab%af%e6%8f%90%e7%a4%ba%e7%ac%a6%e7%9a%84%e9%85%8d%e7%bd%ae/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 16:36:31 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Escape]]></category>
		<category><![CDATA[PS1]]></category>
		<category><![CDATA[VT100]]></category>
		<category><![CDATA[转义]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=164</guid>
		<description><![CDATA[原来一直对终端命令提示符感到不满, 默认就是没什么特别颜色, 想回去看命令时输出与命令混在一起, 一直以为是终端模拟器问题, 从gnome-terminal换成其它也一样, 后来发现这篇文章 &#60;8个实用而有趣Bash命令提示行&#62; #1(原文在此#2)原来是设置PS1变量的问题, 在~.bashrc 里面相应位置加入/换成如下代码: ?View Code BASH1 2 3 4 5 6 7 8 if &#91; $color_prompt=yes &#93;; then PS1='\n\[\e[1;31m\][\w]\[\e[0m\] \[\e[1;35m\][ \[\e[1;36m\]$(/bin/ls -1 &#124; /usr/bin/wc -l &#124; /bin/sed &#34;s: ::g&#34;) files \[\e[1;33m\]$(/bin/ls -lah &#124; /bin/grep -m 1 total &#124; /bin/sed &#34;s/total //&#34;)b\[\e[0m\] \[\e[1;35m\]]\n`a=$?;if [ $a -ne 0 ]; then [...]]]></description>
			<content:encoded><![CDATA[<p>原来一直对终端命令提示符感到不满, 默认就是没什么特别颜色, 想回去看命令时输出与命令混在一起, 一直以为是终端模拟器问题, 从gnome-terminal换成其它也一样, 后来发现这篇文章 <a href="http://coolshell.cn/?p=1399" target="_blank">&lt;8个实用而有趣Bash命令提示行&gt;</a> #1(原文<a href="http://maketecheasier.com/8-useful-and-interesting-bash-prompts/2009/09/04" target="_blank">在此</a>#2)原来是设置PS1变量的问题, 在~.bashrc 里面相应位置加入/换成如下代码:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p164code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1642"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p164code2"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$color_prompt</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'\n\[\e[1;31m\][\w]\[\e[0m\] \[\e[1;35m\][ \[\e[1;36m\]$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed &quot;s: ::g&quot;) files \[\e[1;33m\]$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed &quot;s/total //&quot;)b\[\e[0m\] \[\e[1;35m\]]\n`a=$?;if [ $a -ne 0 ]; then echo -ne &quot;\[\e[01;36;41m\]{$a}&quot;; fi`\[\e[01;36m\][\t \u]\[\e[00m\] \[\e[01;34m\]\W`[[ -d .git ]] &amp;amp;&amp;amp; echo -ne &quot;\[\e[33;40m\](branch:$(git branch | sed -e &quot;/^ /d&quot; -e &quot;s/* \(.*\)/\1/&quot;))\[\e[01;32m\]\[\e[00m\]&quot;`\[\e[01;34m\] \$ \[\e[00m\]'</span>
    <span style="color: #666666; font-style: italic;"># PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '</span>
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'\n[\w] [ $(/bin/ls -1 | /usr/bin/wc -l | /bin/sed &quot;s: ::g&quot;) files $(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed &quot;s/total //&quot;)b ]\n`a=$?;if [ $a -ne 0 ]; then echo -ne &quot;{$a}&quot;; fi`[\t \u] \W`[[ -d .git ]] &amp;amp;&amp;amp; echo -ne &quot;(branch:$(git branch | sed -e &quot;/^ /d&quot; -e &quot;s/* \(.*\)/\1/&quot;))&quot;` \$ '</span>
    <span style="color: #666666; font-style: italic;"># PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">unset</span> color_prompt</pre></td></tr></table></div>

<p>效果如下:</p>
<p style="text-align: center;"><a href="http://myrice.me/wp-content/uploads/2010/08/PS1.png"><img class="aligncenter" title="PS1" src="http://myrice.me/wp-content/uploads/2010/08/PS1.png" alt="" width="380" height="170" /></a></p>
<p>其中, 为2行, 第一行2个中括号中间分别是 完整路径, 文件数(包括文件夹不含隐藏文件)与文件大小(不包括子文件夹的大小). 第二行是日期, 用户名, 当前文件夹, 如果是git目录话会加上branch信息(此处代码参考<a href="http://aifreedom.com/technology/155" target="_blank">Ai.Freedom的文章</a>#3), 然后是提示符, root为# 普通用户为$ 如图.</p>
<p>如果文章到此了, 你肯定自己抓狂不然就是想弄死我了&#8230; 因为提供的参考文章与此文都是不讲原理只有效果的. 那代码一坨在那,看着就想死. 而且自己无法定制. 然后经过这2天的乱搞, 终于理清如下:</p>
<p>1. 其实控制提示符变量不止PS1, 还有PS2, PS3, PS4 和PROMPT_COMMAND, 参见 <a href="http://www.thegeekstuff.com/2008/09/bash-shell-take-control-of-ps1-ps2-ps3-ps4-and-prompt_command/" target="_blank">#4</a><br />
2. 引号内容主要为 <a href="http://www.unixresources.net/linux/clf/newbie/archive/00/00/19/80/198022.html" target="_blank">命令行提示符的反斜杠转义字符</a> #5<br />
3. 其中有许多 \e[31m \033[34;40;7m 这种抓狂的东西, 是很老的终端机VT100的转义符, <a href="http://www.unixresources.net/linux/clf/newbie/archive/00/00/19/80/198022.html" target="_blank">此网页</a>#6最后有说明, 简要说明下就是 \e 与 \033 是一个东西, 都是Escape 033的8进制在ASCII里面代表ESC. 格式:"\033[字背景颜色;字体颜色m字符串" 来控制颜色,高亮等.</p>
<p>最后说一句, 代码对于可以用有颜色的终端与不能的 分别设了PS1, 对就then 与 else下的代码, else的代码用 正则替换then中等到, 表达式为:<br />
<code>\\\[.*?\\\]</code></p>
<p>References:</p>
<p>#1: <a href="http://coolshell.cn/?p=1399" target="_blank">8个实用而有趣Bash命令提示行</a> http://coolshell.cn/?p=1399<br />
#2:<a href="http://maketecheasier.com/8-useful-and-interesting-bash-prompts/2009/09/04" target="_blank"> 8 Useful and Interesting Bash Prompts</a> http://maketecheasier.com/8-useful-and-interesting-bash-prompts/2009/09/04<br />
#3: <a href="http://aifreedom.com/technology/155" target="_blank">Ai.Freedom的PS1的git配置</a> http://aifreedom.com/technology/155<br />
#4: <a href="http://www.thegeekstuff.com/2008/09/bash-shell-take-control-of-ps1-ps2-ps3-ps4-and-prompt_command/" target="_blank">PS1, PS2, PS3..的说明</a> http://www.thegeekstuff.com/2008/09/bash-shell-take-control-of-ps1-ps2-ps3-ps4-and-prompt_command/<br />
#5: <a href="http://www.unixresources.net/linux/clf/newbie/archive/00/00/19/80/198022.html" target="_blank">命令行提示符的反斜杠转义字符</a> http://www.unixresources.net/linux/clf/newbie/archive/00/00/19/80/198022.html<br />
#6: <a href="http://www.unixresources.net/linux/clf/newbie/archive/00/00/19/80/198022.html">VT100终端控制序列</a> http://www.unixresources.net/linux/clf/newbie/archive/00/00/19/80/198022.html</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/08/%e7%bb%88%e7%ab%af%e6%8f%90%e7%a4%ba%e7%ac%a6%e7%9a%84%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>超有爱的用notify-send提示(基于Wow!Ubuntu 命令修改)</title>
		<link>http://myrice.me/2010/08/%e8%b6%85%e6%9c%89%e7%88%b1%e7%9a%84%e7%94%a8notify-send%e6%8f%90%e7%a4%ba%e5%9f%ba%e4%ba%8ewowubuntu-%e5%91%bd%e4%bb%a4%e4%bf%ae%e6%94%b9/</link>
		<comments>http://myrice.me/2010/08/%e8%b6%85%e6%9c%89%e7%88%b1%e7%9a%84%e7%94%a8notify-send%e6%8f%90%e7%a4%ba%e5%9f%ba%e4%ba%8ewowubuntu-%e5%91%bd%e4%bb%a4%e4%bf%ae%e6%94%b9/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 14:55:13 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[notify]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=150</guid>
		<description><![CDATA[Wow!Ubuntu 里面有个用notify-send 提示的小命令(点这儿查看), 但是比较单调, 其实之前看过一个用如 notify [command] 形式的(找不到但是&#62;_&#60;),写了下,把notify写成脚本, 但是感觉这样Gnome-terminal的自动补全与ls等的颜色会丢&#8230;于是感觉还是Wow!Ubuntu上更好用些. (使用前请看之前链接, 只是改了 alert 命令) 在.bashrc 里面加入(请先装 sudo apt-get install libnotify-bin ) ?View Code BASH1 2 3 4 5 6 7 8 9 10 alias alert_helper='history&#124;tail -n1&#124;sed -e &#34;s/^\s*[0-9]\+\s*//&#34; -e &#34;s/;\s*alert$//&#34;' alias alert=' status=$?; if [ $status = 0 ]; then notify-send -i /usr/share/icons/Breathe/scalable/status/dialog-information.svg &#34;[$status] $(alert_helper) Finished [...]]]></description>
			<content:encoded><![CDATA[<p>Wow!Ubuntu 里面有个用notify-send 提示的小命令(<a href="http://wowubuntu.com/terminal_notify.html" target="_blank">点这儿查看</a>), 但是比较单调, 其实之前看过一个用如 notify [command] 形式的(找不到但是&gt;_&lt;),写了下,把notify写成脚本, 但是感觉这样Gnome-terminal的自动补全与ls等的颜色会丢&#8230;于是感觉还是Wow!Ubuntu上更好用些. (使用前请看之前<a href="http://wowubuntu.com/terminal_notify.html" target="_blank">链接</a>, 只是改了 alert 命令) 在.bashrc 里面加入(请先装 sudo apt-get install libnotify-bin )</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p150code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1504"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p150code4"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">alert_helper</span>=<span style="color: #ff0000;">'history|tail -n1|sed -e &quot;s/^\s*[0-9]\+\s*//&quot; -e &quot;s/;\s*alert$//&quot;'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">alert</span>=<span style="color: #ff0000;">'
status=$?;
if [ $status = 0 ]; then
     notify-send -i /usr/share/icons/Breathe/scalable/status/dialog-information.svg &quot;[$status] $(alert_helper) Finished ^_^&quot; ;
elif [ $status = 127 ]; then
     notify-send -i /usr/share/icons/Breathe/scalable/status/dialog-question.svg &quot;[$status] $(alert_helper) Command cannot be found ?_?&quot; ;
else
     notify-send -i /usr/share/icons/Breathe/scalable/status/dialog-error.svg &quot;[$status] $(alert_helper) Error &amp;gt;_&amp;lt;&quot; ;
fi'</span></pre></td></tr></table></div>

<p>截图:<br />
分别是成功\找不到命令\错误的命令的图</p>
<p><a href="http://myrice.me/wp-content/uploads/2010/08/notifyPic.png"><img class="alignnone size-full wp-image-157" title="notifyPic" src="http://myrice.me/wp-content/uploads/2010/08/notifyPic.png" alt="" width="334" height="460" /></a></p>
<p>其中图标来自一个主题叫Breathe, 位置命令所示的地方,当然也可以自己改下. 文件在此下载: <a href="http://myrice.me/wp-content/uploads/2010/08/status.tar.gz">status.tar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/08/%e8%b6%85%e6%9c%89%e7%88%b1%e7%9a%84%e7%94%a8notify-send%e6%8f%90%e7%a4%ba%e5%9f%ba%e4%ba%8ewowubuntu-%e5%91%bd%e4%bb%a4%e4%bf%ae%e6%94%b9/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CUDA深入浅出学习小结(1)</title>
		<link>http://myrice.me/2010/07/cuda%e6%b7%b1%e5%85%a5%e6%b5%85%e5%87%ba%e5%ad%a6%e4%b9%a0%e5%b0%8f%e7%bb%931/</link>
		<comments>http://myrice.me/2010/07/cuda%e6%b7%b1%e5%85%a5%e6%b5%85%e5%87%ba%e5%ad%a6%e4%b9%a0%e5%b0%8f%e7%bb%931/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 16:29:06 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[CUDA]]></category>
		<category><![CDATA[Parallel Computing]]></category>
		<category><![CDATA[study]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=119</guid>
		<description><![CDATA[平方和的并行计算 1. 直接分别使用CPU平方和, 一个Thread 一个Block的计算平方然后CPU计算平方和, 在10^7数据面前, CPU表示毫无压力(0cycle), 9600MGS惨不忍睹(多少cycles没记下) 2. 使用256个Threads后, GPU效率大大提升 3. 使用32blocks后, GPU再次提升效率 4. 此时已经有 32*256 = 8192 个线程在跑, 利用CPU计算和的时间被忽略造成不准确, 把计算和运算放在GPU中, 出现小幅性能下降 5. 计算sum可以并行化, 用树状图表示如下: 大意为第一次把1回到0上, 3加到2上, 因为所有线程都是要发起的, 对于判断哪些线程要执行加法很重要, 一个很简单想法是线程ID对offset的2倍取模看是否为0, 代码如下: ?View Code C1 2 3 4 5 6 7 8 9 __syncthreads&#40;&#41;; //make sure all threads are complete extern __shared__ share&#91;&#93;; int offset=1 [...]]]></description>
			<content:encoded><![CDATA[<p>平方和的并行计算<br />
1. 直接分别使用CPU平方和, 一个Thread 一个Block的计算平方然后CPU计算平方和, 在10^7数据面前, CPU表示毫无压力(0cycle), 9600MGS惨不忍睹(多少cycles没记下)<br />
2. 使用256个Threads后, GPU效率大大提升<br />
3. 使用32blocks后, GPU再次提升效率<br />
4. 此时已经有 32*256 = 8192 个线程在跑, 利用CPU计算和的时间被忽略造成不准确, 把计算和运算放在GPU中, 出现小幅性能下降<br />
5. 计算sum可以并行化, 用树状图表示如下:</p>
<p style="text-align: center;"><a href="http://myrice.me/wp-content/uploads/2010/07/treeCuda.png"><img class="size-medium wp-image-121 aligncenter" title="treeCuda" src="http://myrice.me/wp-content/uploads/2010/07/treeCuda-300x248.png" alt="" width="300" height="248" /></a></p>
<p>大意为第一次把1回到0上, 3加到2上, 因为所有线程都是要发起的, 对于判断哪些线程要执行加法很重要, 一个很简单想法是线程ID对offset的2倍取模看是否为0, 代码如下:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p119code8'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1198"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p119code8"><pre class="c" style="font-family:monospace;">__syncthreads<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">//make sure all threads are complete</span>
<span style="color: #000000; font-weight: bold;">extern</span> __shared__ share<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">int</span> offset<span style="color: #339933;">=</span><span style="color: #0000dd;">1</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span> offset <span style="color: #339933;">&lt;</span> THREADNUM <span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//THREADNUM is the number of threads per block</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> threadIdx.<span style="color: #202020;">x</span><span style="color: #339933;">%</span><span style="color: #009900;">&#40;</span>offset<span style="color: #339933;">+</span>offset<span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000dd;">0</span> <span style="color: #009900;">&#41;</span>
        share<span style="color: #009900;">&#91;</span>threadIdx.<span style="color: #202020;">x</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+=</span> share<span style="color: #009900;">&#91;</span>threadIdx.<span style="color: #202020;">x</span><span style="color: #339933;">+</span>offset<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    offset <span style="color: #339933;">+=</span> offset
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>然而时间并没有减少, 发现取模运算太费神, 在深入浅出书上如此写</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p119code9'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1199"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p119code9"><pre class="c" style="font-family:monospace;">    __syncthreads<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #993333;">int</span> offset <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">,</span> mask <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span>offset <span style="color: #339933;">&lt;</span> THREAD_NUM<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>tid <span style="color: #339933;">&amp;</span> mask<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  <span style="color: #666666; font-style: italic;">// tid = threadIdx.x</span>
            shared<span style="color: #009900;">&#91;</span>tid<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+=</span> shared<span style="color: #009900;">&#91;</span>tid <span style="color: #339933;">+</span> offset<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
        <span style="color: #009900;">&#125;</span> 
        offset <span style="color: #339933;">+=</span> offset<span style="color: #339933;">;</span> 
        mask <span style="color: #339933;">=</span> offset <span style="color: #339933;">+</span> mask<span style="color: #339933;">;</span> 
        __syncthreads<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>其中mask在里面的古怪作用正好使得結果如此&#8230;还是不太理解= =<br />
6. 据说这方法会有问题..他说后面再说, 而采用另一种更简单方法, 大意是前半与后半相加不断递归&#8230;</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p119code10'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11910"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p119code10"><pre class="c" style="font-family:monospace;">    offset <span style="color: #339933;">=</span> THREAD_NUM <span style="color: #339933;">&gt;&gt;</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span> 
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span>offset <span style="color: #339933;">&gt;</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>tid <span style="color: #339933;">&lt;</span> offset<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  <span style="color: #666666; font-style: italic;">//tid = threadIdx.x</span>
            shared<span style="color: #009900;">&#91;</span>tid<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+=</span> shared<span style="color: #009900;">&#91;</span>tid <span style="color: #339933;">+</span> offset<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
        <span style="color: #009900;">&#125;</span> 
        offset <span style="color: #339933;">&gt;&gt;=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span> 
        __syncthreads<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>现在看求矩阵乘法了, cudaMemcpy 与 cudaMemcpy2D 区别还是没看懂&#8230; C语言2维数组与1维数组不是一样的&#8230;吗&#8230; int a[N*M] == int a[N][M] 那用cudaMemcpy 一下复制 N*M 不就得了&#8230;谁知道为何&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/07/cuda%e6%b7%b1%e5%85%a5%e6%b5%85%e5%87%ba%e5%ad%a6%e4%b9%a0%e5%b0%8f%e7%bb%931/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>终于考完了</title>
		<link>http://myrice.me/2010/06/%e7%bb%88%e4%ba%8e%e8%80%83%e5%ae%8c%e4%ba%86/</link>
		<comments>http://myrice.me/2010/06/%e7%bb%88%e4%ba%8e%e8%80%83%e5%ae%8c%e4%ba%86/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 14:56:20 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=111</guid>
		<description><![CDATA[终于考完了，我却并没有什么喜悦，感觉全身像被抽空了一样，空虚无聊。。 是因为看到身边的一个个全都成双成对了吗？ 还是怕？ 怕回归到那个懒散的假期，有时真的很矛盾，忙时候想闲，而真正闲得时候却真的闲得蛋疼，我设法使自己忙起来。。 这学期感觉什么都没做，就考了个GRE，真是浪费时间浪费精力的活。。还好有 &#8220;大美人, 善解人意, 活泼可爱, 对我很好, 一点儿都不胖, 特别不爱学习，总睡觉，很聪明, 大好人！&#8221;[囧] 的姐姐和我一起考，才渡过了那段想死又美好的时光。 然后就华丽丽地把她送给了别人，咔咔~ 课内就萎了。。超级萎，这学期成绩肯定很难看。。。。 [囧]: 引号里不是我写的不是我写的真不是我写的。。]]></description>
			<content:encoded><![CDATA[<p>终于考完了，我却并没有什么喜悦，感觉全身像被抽空了一样，空虚无聊。。</p>
<p>是因为看到身边的一个个全都成双成对了吗？</p>
<p>还是怕？<br />
怕回归到那个懒散的假期，有时真的很矛盾，忙时候想闲，而真正闲得时候却真的闲得蛋疼，我设法使自己忙起来。。</p>
<p>这学期感觉什么都没做，就考了个GRE，真是浪费时间浪费精力的活。。还好有 &#8220;大美人, 善解人意, 活泼可爱, 对我很好, 一点儿都不胖, 特别不爱学习，总睡觉，很聪明, 大好人！&#8221;[囧] 的姐姐和我一起考，才渡过了那段想死又美好的时光。 然后就华丽丽地把她送给了别人，咔咔~</p>
<p>课内就萎了。。超级萎，这学期成绩肯定很难看。。。。</p>
<p>[囧]: 引号里不是我写的不是我写的真不是我写的。。</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/06/%e7%bb%88%e4%ba%8e%e8%80%83%e5%ae%8c%e4%ba%86/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>虫儿飞</title>
		<link>http://myrice.me/2010/06/%e8%99%ab%e5%84%bf%e9%a3%9e/</link>
		<comments>http://myrice.me/2010/06/%e8%99%ab%e5%84%bf%e9%a3%9e/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 09:17:07 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=105</guid>
		<description><![CDATA[黑黑的天空低垂 亮亮的繁星相随 虫儿飞虫儿飞 你在思念谁 天上的星星流泪 地上的玫瑰枯萎 冷风吹冷风吹 只要有你陪 虫儿飞花儿睡 一双又一对才美 不怕天黑只怕心碎 不管累不累 也不管东南西北 虽然是童谣，但突然发现这歌有种 令人愉悦的忧伤 (Agreeable Melancholy)]]></description>
			<content:encoded><![CDATA[<p><embed src="http://www.xiami.com/widget/0_78794/singlePlayer.swf" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent"></embed><br />
黑黑的天空低垂<br />
亮亮的繁星相随<br />
虫儿飞虫儿飞<br />
你在思念谁</p>
<p>天上的星星流泪<br />
地上的玫瑰枯萎<br />
冷风吹冷风吹<br />
只要有你陪</p>
<p>虫儿飞花儿睡<br />
一双又一对才美<br />
不怕天黑只怕心碎<br />
不管累不累<br />
也不管东南西北</p>
<p>虽然是童谣，但突然发现这歌有种 令人愉悦的忧伤 (Agreeable Melancholy)</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/06/%e8%99%ab%e5%84%bf%e9%a3%9e/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>吮指原味鸡与实事求是石</title>
		<link>http://myrice.me/2010/03/%e5%90%ae%e6%8c%87%e5%8e%9f%e5%91%b3%e9%b8%a1%e4%b8%8e%e5%ae%9e%e4%ba%8b%e6%b1%82%e6%98%af%e7%9f%b3/</link>
		<comments>http://myrice.me/2010/03/%e5%90%ae%e6%8c%87%e5%8e%9f%e5%91%b3%e9%b8%a1%e4%b8%8e%e5%ae%9e%e4%ba%8b%e6%b1%82%e6%98%af%e7%9f%b3/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 19:04:43 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[见闻感]]></category>
		<category><![CDATA[ruc]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[人大]]></category>
		<category><![CDATA[吮指原味鸡与实事求是石]]></category>
		<category><![CDATA[实事求是石]]></category>
		<category><![CDATA[搞]]></category>
		<category><![CDATA[见闻]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=54</guid>
		<description><![CDATA[人大东门立了一块石，上面题字“實事求是”。昨天半夜时分， 看到@___matrix转发的 &#8220;真相：“突然发现实事求是石的形状像KFC吮指原味鸡。”（via人人网）&#8221; 开始我看到的是，实事求是就像原味鸡块一样。于是感觉这个比喻太形象了，因为实事求是不是一件容易的事，就如那原味鸡块一样，即难看又难吃，每次吃全家桶省下的就是它。可是呢，另一方面，它却是最管饱的。 后来经@___matrix提示才发现，她说的是人大的&#8221;实事求是石&#8221;(&#62;_&#60;)。不过仔细加回忆发现还真是，今天特意找了图对比一下，何止是像呵！ （插播：累了，本来想写成Thinking的，后来算了，写点搞的吧） 洗完回来继续，关于这块石由来我不知，但是人大的领导实在是太有先见之明了，他们预料到了不久，必将有个快餐店，他们名字叫肯德基，必将有个产品，他们名字叫原味吮指鸡，用这块石头的形状类似原味鸡教导一代又一代吃过原味鸡知道那种充实与乏味的同学们：做学问，就要老老实实，可能开始觉得很新鲜，就像吃下第一口，会有种感觉，不错，当吃下越来越多的口时，突然发现，这鸡块怎么这么乏味啊……这种感觉就像搞研究，只有死心到底吃下去每一口的人才能体会到吃饭的那种饱感那种充实。如果饥饿如狼，就如对知识的渴望，才能体会原味鸡的真实品味。什么叫实事求是，从吃原味鸡的感受可以知道，那个过程由新鲜到乏味，再到充实。像我这样吃原味鸡这种只能感觉到乏味这一境界的，在学习也是如此（TOT)。OTZ实事求是石，下次我要去膜拜下。 还有一个疑惑，会不会下去一见到这块石头就想到一个非常大的吮指原味鸡呢?&#62;_&#60;]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 444px"><img class=" " title="KFC吮指原味鸡" src="http://img.myrice.me/pictures/KFCYuanWeiJiKuai.jpg" alt="" width="434" height="414" /><p class="wp-caption-text">KFC吮指原味鸡</p></div>
<div class="wp-caption aligncenter" style="width: 458px"><img class=" " title="人大实事求是石" src="http://img.myrice.me/pictures/ShiShiQiuShiStongAtRuc.jpg" alt="" width="448" height="298" /><p class="wp-caption-text">人大实事求是石</p></div>
<p>人大东门立了一块石，上面题字“實事求是”。昨天半夜时分， 看到@<a href="https://twitter.com/___matrix" target="_blank">___matrix</a>转发的 &#8220;真相：“突然发现实事求是石的形状像KFC吮指原味鸡。”（via人人网）&#8221;</p>
<p>开始我看到的是，实事求是就像原味鸡块一样。于是感觉这个比喻太形象了，因为实事求是不是一件容易的事，就如那原味鸡块一样，即难看又难吃，每次吃全家桶省下的就是它。可是呢，另一方面，它却是最管饱的。</p>
<p>后来经@<a href="https://twitter.com/___matrix" target="_blank">___matrix</a>提示才发现，她说的是人大的&#8221;实事求是石&#8221;(&gt;_&lt;)。不过仔细加回忆发现还真是，今天特意找了图对比一下，何止是像呵！</p>
<p>（插播：累了，本来想写成Thinking的，后来算了，写点搞的吧）</p>
<p>洗完回来继续，关于这块石由来我不知，但是人大的领导实在是太有先见之明了，他们预料到了不久，必将有个快餐店，他们名字叫肯德基，必将有个产品，他们名字叫原味吮指鸡，用这块石头的形状类似原味鸡教导一代又一代吃过原味鸡知道那种充实与乏味的同学们：做学问，就要老老实实，可能开始觉得很新鲜，就像吃下第一口，会有种感觉，不错，当吃下越来越多的口时，突然发现，这鸡块怎么这么乏味啊……这种感觉就像搞研究，只有死心到底吃下去每一口的人才能体会到吃饭的那种饱感那种充实。如果饥饿如狼，就如对知识的渴望，才能体会原味鸡的真实品味。什么叫实事求是，从吃原味鸡的感受可以知道，那个过程由新鲜到乏味，再到充实。像我这样吃原味鸡这种只能感觉到乏味这一境界的，在学习也是如此（TOT)。OTZ实事求是石，下次我要去膜拜下。</p>
<p>还有一个疑惑，会不会下去一见到这块石头就想到一个非常大的<strong>吮指原味鸡</strong>呢?&gt;_&lt;</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/03/%e5%90%ae%e6%8c%87%e5%8e%9f%e5%91%b3%e9%b8%a1%e4%b8%8e%e5%ae%9e%e4%ba%8b%e6%b1%82%e6%98%af%e7%9f%b3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>好玩的小游戏推荐《麦克斯与魔法标记》(Max and the Magic Marker)</title>
		<link>http://myrice.me/2010/02/%e5%a5%bd%e7%8e%a9%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f%e6%8e%a8%e8%8d%90%e3%80%8a%e9%ba%a6%e5%85%8b%e6%96%af%e4%b8%8e%e9%ad%94%e6%b3%95%e6%a0%87%e8%ae%b0%e3%80%8bmax-and-the-magic-marker/</link>
		<comments>http://myrice.me/2010/02/%e5%a5%bd%e7%8e%a9%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f%e6%8e%a8%e8%8d%90%e3%80%8a%e9%ba%a6%e5%85%8b%e6%96%af%e4%b8%8e%e9%ad%94%e6%b3%95%e6%a0%87%e8%ae%b0%e3%80%8bmax-and-the-magic-marker/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 10:50:24 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Crayon Physics]]></category>
		<category><![CDATA[Max and the Magic Marker]]></category>
		<category><![CDATA[小游戏]]></category>
		<category><![CDATA[有趣]]></category>
		<category><![CDATA[物理引擎]]></category>
		<category><![CDATA[蜡笔物理学]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=43</guid>
		<description><![CDATA[2D, 类蜡笔物理学. 物理引擎真是发展了. 提示下, 把Extra达到有神奇效果出现. 更多图片请见: http://www.verycd.com/topics/2798966/ Verycd上评论说有修改IE主页的情况. 点击这里下载(非VeryCD解压即玩版)]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Max and the Magic Marker" src="http://img.myrice.me/pictures/Max.and.the.Magic.Marker.png" alt="" width="250" height="353" /></p>
<p>2D, 类蜡笔物理学. 物理引擎真是发展了. 提示下, 把Extra达到有神奇效果出现.</p>
<p>更多图片请见:</p>
<p><a href="http://www.verycd.com/topics/2798966/">http://www.verycd.com/topics/2798966/</a></p>
<p>Verycd上评论说有修改IE主页的情况.</p>
<p><a href="http://www.gamersky.com/Soft/201002/23939.shtml">点击这里下载(非VeryCD解压即玩版)</a></p>
<p><a href="http://www.gamersky.com/Soft/201002/23939.shtml"> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/02/%e5%a5%bd%e7%8e%a9%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f%e6%8e%a8%e8%8d%90%e3%80%8a%e9%ba%a6%e5%85%8b%e6%96%af%e4%b8%8e%e9%ad%94%e6%b3%95%e6%a0%87%e8%ae%b0%e3%80%8bmax-and-the-magic-marker/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>找到一些真正属于自己的东西</title>
		<link>http://myrice.me/2010/02/%e6%89%be%e5%88%b0%e4%b8%80%e4%ba%9b%e7%9c%9f%e6%ad%a3%e5%b1%9e%e4%ba%8e%e8%87%aa%e5%b7%b1%e7%9a%84%e4%b8%9c%e8%a5%bf/</link>
		<comments>http://myrice.me/2010/02/%e6%89%be%e5%88%b0%e4%b8%80%e4%ba%9b%e7%9c%9f%e6%ad%a3%e5%b1%9e%e4%ba%8e%e8%87%aa%e5%b7%b1%e7%9a%84%e4%b8%9c%e8%a5%bf/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 09:45:40 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Thinking]]></category>
		<category><![CDATA[belong]]></category>
		<category><![CDATA[heart]]></category>
		<category><![CDATA[intuition]]></category>
		<category><![CDATA[myth]]></category>
		<category><![CDATA[属于]]></category>
		<category><![CDATA[神话]]></category>
		<category><![CDATA[自己]]></category>

		<guid isPermaLink="false">http://myrice.me/?p=11</guid>
		<description><![CDATA[&#60;神话&#62;这个电视剧终于在几天不懈努力下看完了, 部分3X速度. 因为CCAV也在放这个, 实在是惊奇. 总感觉审查那帮人都顽固不化, 对于这种带有&#8221;神秘&#8221;, 传播&#8221;迷信&#8221; 思想(仙剑是这么被删掉2集的)的电视居然没删减(50集整,很难得)全放出来了, 成龙果然不是盖的. 在Xunlei上看了前面的部分, 我很惊奇发现支持赵高的却很多．难道厚黑思想已经是国人基本思想. 虽然厚黑是否才可成事值得怀疑, 但也要适可而止. 赵高是很实在, 但是我却一直感觉他忘记了某些东西. 而小川这种人是不存在的, 一种美好的角色幻想而已. 一个人活2000年又怎样, 痛苦的只有钱权功利, 而责任与自由也是束缚人的枷锁. 赵高, 钱权功利; 小川在责任与自由之间挣扎. 真正属于自己的东西也只有自己的经验了, 别人抢不去的. 所以, 去体验吧, 体验跌宕起伏的生活, 去体验追求奋斗的快感, 去体验哄哄烈烈的爱情. 这些, 体验过, 结果并不重要, 那应该是理所当然的. 过程与结果, 可能只有一个结果,所有的过程都通向那个结果, 值得留恋的也只有过程中的滋味. 在Twitter上看过有趣的问题: @gaojiamin: 初三时看过，最记得里面那句“是不是选择任何一个方向，都会游向同一个宿命呢？” RT @chenxiaoming: RT @faydao: 你以为你有很多路可以选择，但是在你四周有很多看不见的墙，其实你只有一条路可以走——《悟空传》 还是我觉得很有用的一句话(摘自: Steve Jobs在Stanford 2005年毕业典礼上的演讲) Don&#8217;t be trapped by dogma And [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 250px"><img title="The Myth" src="http://img.myrice.me/pictures/TheMyth.jpg" alt="" width="240" height="360" /><p class="wp-caption-text">图:摘自Sohu.com</p></div>
<p>&lt;神话&gt;这个电视剧终于在几天不懈努力下看完了, 部分3X速度. 因为CCAV也在放这个, 实在是惊奇. 总感觉审查那帮人都顽固不化, 对于这种带有&#8221;神秘&#8221;, 传播&#8221;迷信&#8221; 思想(仙剑是这么被删掉2集的)的电视居然没删减(50集整,很难得)全放出来了, 成龙果然不是盖的.</p>
<p>在Xunlei上看了前面的部分, 我很惊奇发现支持赵高的却很多．难道厚黑思想已经是国人基本思想. 虽然厚黑是否才可成事值得怀疑, 但也要适可而止. 赵高是很实在, 但是我却一直感觉他忘记了某些东西. 而小川这种人是不存在的, 一种美好的角色幻想而已.</p>
<p>一个人活2000年又怎样, 痛苦的只有钱权功利, 而责任与自由也是束缚人的枷锁. 赵高, 钱权功利; 小川在责任与自由之间挣扎. 真正属于自己的东西也只有自己的经验了, 别人抢不去的. 所以, 去体验吧, 体验跌宕起伏的生活, 去体验追求奋斗的快感, 去体验哄哄烈烈的爱情. 这些, 体验过, 结果并不重要, 那应该是理所当然的. 过程与结果, 可能只有一个结果,所有的过程都通向那个结果, 值得留恋的也只有过程中的滋味.</p>
<p>在<a href="http://twitter.com" target="_blank">Twitter</a>上看过有趣的问题:</p>
<blockquote><p>@<a href="http://acm.buaa.edu.cn/admin/user/gaojiamin">gaojiamin</a>: 初三时看过，最记得里面那句“是不是选择任何一个方向，都会游向同一个宿命呢？” RT @<a href="http://acm.buaa.edu.cn/admin/user/chenxiaoming">chenxiaoming</a>: RT @<a href="http://acm.buaa.edu.cn/admin/user/faydao">faydao</a>: 你以为你有很多路可以选择，但是在你四周有很多看不见的墙，其实你只有一条路可以走——《悟空传》</p></blockquote>
<p>还是我觉得很有用的一句话(摘自: <a href="http://www.rubik.com.cn/steve_jobs.htm" target="_blank">Steve  	Jobs在Stanford 2005年毕业典礼上的演讲</a>)</p>
<blockquote><p><span style="color: #ffffff;"> <span style="color: #ff0000;">Don&#8217;t be trapped by dogma</span></span></p>
<p><span style="color: #ff0000;">And most  				important, have the courage to follow your heart and intuition.</span></p></blockquote>
<p><span style="color: #ff0000;"><span style="color: #000000;">嗯. <span style="color: #333399;">Follow heart and intuition.</span></span><br />
</span></p>
<p><span style="color: #ff0000;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/02/%e6%89%be%e5%88%b0%e4%b8%80%e4%ba%9b%e7%9c%9f%e6%ad%a3%e5%b1%9e%e4%ba%8e%e8%87%aa%e5%b7%b1%e7%9a%84%e4%b8%9c%e8%a5%bf/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My New Blog!</title>
		<link>http://myrice.me/2010/01/my-new-blog/</link>
		<comments>http://myrice.me/2010/01/my-new-blog/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:47:22 +0000</pubDate>
		<dc:creator>myrice</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[New Blog]]></category>

		<guid isPermaLink="false">http://myrice.me/myrice.me/?p=3</guid>
		<description><![CDATA[Very cool!]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://img.myrice.me/pictures/myrice.jpg" alt="" width="400" height="272" />Very cool!</p>
]]></content:encoded>
			<wfw:commentRss>http://myrice.me/2010/01/my-new-blog/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
