<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1072346227628177543</id><updated>2012-02-16T16:30:11.735-08:00</updated><category term='poem'/><category term='tree'/><category term='rails'/><title type='text'>诗非树</title><subtitle type='html'>I think that I shall never see
A poem lovely as a tree.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-8803863052242042305</id><published>2009-03-28T04:22:00.000-07:00</published><updated>2009-03-28T04:24:55.665-07:00</updated><title type='text'>www.liageren.com  给我们俩的礼物</title><content type='html'>好长时间没有在这里写，以后也很难保证会再上来。&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;如果大家有机会看到这里的话，我向大家推介我的站点  &lt;a href="http://www.liageren.com"&gt;www.liageren.com&lt;/a&gt;(俩个人)。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;希望你能喜欢 ：）&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-8803863052242042305?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/8803863052242042305/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=8803863052242042305' title='2 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/8803863052242042305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/8803863052242042305'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2009/03/wwwliagerencom.html' title='www.liageren.com  给我们俩的礼物'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-5529772911979094296</id><published>2008-10-10T06:40:00.000-07:00</published><updated>2008-10-10T06:55:03.803-07:00</updated><title type='text'>gitx,不得不推介了</title><content type='html'>在mac上用git的人们也许有过和我一样的不爽，本来git自带的gitk是个不错的工具，可以方便的查看所有提交的痕迹。但可惜gitk是用gtk写的,在mac下界面很不友好，功能大打折扣。&lt;br /&gt;但我们这个世界上总有一些人有着崇高的情怀来面对生活，并随手就写下一个gitx造福人类。引用作者的介绍&lt;br /&gt;&lt;pre&gt;&lt;blockquote&gt;# What is GitX?&lt;br /&gt;&lt;br /&gt;GitX is a gitk like clone written specifically for OS X Leopard and higher.&lt;br /&gt;This means that it has a native interface and tries to integrate with the&lt;br /&gt;operating system as good as possible. Examples of this are drag and drop&lt;br /&gt;support and QuickLook support.&lt;/blockquote&gt;&lt;br /&gt;项目的&lt;a href="http://github.com/pieter/gitx/wikis"&gt;wiki&lt;/a&gt;上写着很清楚的安装及使用方法，但要注意这一点&lt;blockquote&gt;After you have started it once, you can install the command-line tool&lt;br /&gt;through the menu (GitX-&gt;Enable Terminal Usage…). This will install a&lt;br /&gt;“gitx” binary in /usr/bin.&lt;/blockquote&gt; 安装后，在git项目的根目录下输入gitx:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/__QNXhKzMFhw/SO9epfdNWGI/AAAAAAAAAHM/KPGHCz4CkYQ/s1600-h/Picture+1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/__QNXhKzMFhw/SO9epfdNWGI/AAAAAAAAAHM/KPGHCz4CkYQ/s400/Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5255523357076314210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-5529772911979094296?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/5529772911979094296/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=5529772911979094296' title='2 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/5529772911979094296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/5529772911979094296'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/10/gitx.html' title='gitx,不得不推介了'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/__QNXhKzMFhw/SO9epfdNWGI/AAAAAAAAAHM/KPGHCz4CkYQ/s72-c/Picture+1.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-6151001320765753207</id><published>2008-10-08T05:33:00.000-07:00</published><updated>2008-10-08T08:04:32.287-07:00</updated><title type='text'>十月的雨</title><content type='html'>国庆回了家，虽然是请假回去的。国庆于我意义不大，我似乎天天都在假期中，但回家就不一样了。我上大学后还没有在秋天回过家。以前到这个时候，我在校园里就会想家乡那边人们在忙什么，割麦子，起山药，拔菜籽，打苍蝇。这个时候已经有点冷了，人们穿着线衣，线裤，满脸堆笑的老农们，满脸堆笑的老农们站在晴朗的天空下拿着爬犁或者拿着铁锹或者其他什么工具，他们的手里总会拿着工具的。在早上阵阵的寒意里，在下午徐徐的暖风中。&lt;br /&gt;但事实证明四年的时间让我的记忆出现了偏差，回家的前俩天天气好的很，接着俩天下起了雨。我没看到麦子，没看到老农，只看到了苍蝇，于是痛痛快快感受了一把当年一下打死七个的雄风。现在我们的小镇大不如从前景象，人走的越来越多，街道越来越破，今年很多人种了胡萝卜，但似乎收成也一般,只剩下苍蝇们还依旧生机盎然，成群结队。不对，还有漫街边巷的小狗，现在大家治安不靠狗了，那些个大饭量也大的big guy都换成了小毛犬，每天争斗于剩饭剩菜旁，make love于光天化日下，不避老幼男女。&lt;br /&gt;行文至此，BTV6正在直播的“利物浦vs曼城”是高潮一波又一波，曼城上半场进了俩个，下半场由被扳回三个。这是红军的专长，所以利物浦球迷是幸福的。相比之下我们国米球迷气短了很多，荡气回肠的球很长时间与国米无关了。&lt;br /&gt; 这篇文章的题目是我很喜欢的俩首歌的结合，&lt;a href="http://www.yobo.com/song/view/405343?fr=2042"&gt;October&lt;/a&gt;, &lt;a href="http://www.yobo.com/song/view/104161?fr=2042"&gt;November Rain&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__QNXhKzMFhw/SOzLOGYobTI/AAAAAAAAAHE/xwnzxEU7APA/s1600-h/%E7%85%A7%E7%89%87+232.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/__QNXhKzMFhw/SOzLOGYobTI/AAAAAAAAAHE/xwnzxEU7APA/s320/%E7%85%A7%E7%89%87+232.jpg" alt="" id="BLOGGER_PHOTO_ID_5254798308327058738" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/__QNXhKzMFhw/SOzLONEYA9I/AAAAAAAAAG8/X0Bv4hloxaI/s1600-h/%E7%85%A7%E7%89%87+267.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/__QNXhKzMFhw/SOzLONEYA9I/AAAAAAAAAG8/X0Bv4hloxaI/s320/%E7%85%A7%E7%89%87+267.jpg" alt="" id="BLOGGER_PHOTO_ID_5254798310121145298" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__QNXhKzMFhw/SOzLNzEvyvI/AAAAAAAAAGs/uJVn0mMuJXU/s1600-h/%E7%85%A7%E7%89%87+247.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/__QNXhKzMFhw/SOzLNzEvyvI/AAAAAAAAAGs/uJVn0mMuJXU/s320/%E7%85%A7%E7%89%87+247.jpg" alt="" id="BLOGGER_PHOTO_ID_5254798303143381746" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__QNXhKzMFhw/SOzLNxrbnLI/AAAAAAAAAG0/x8IpJlRLYWc/s1600-h/%E7%85%A7%E7%89%87+259.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/__QNXhKzMFhw/SOzLNxrbnLI/AAAAAAAAAG0/x8IpJlRLYWc/s320/%E7%85%A7%E7%89%87+259.jpg" alt="" id="BLOGGER_PHOTO_ID_5254798302768766130" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-6151001320765753207?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/6151001320765753207/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=6151001320765753207' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/6151001320765753207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/6151001320765753207'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/10/blog-post.html' title='十月的雨'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/__QNXhKzMFhw/SOzLOGYobTI/AAAAAAAAAHE/xwnzxEU7APA/s72-c/%E7%85%A7%E7%89%87+232.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-1643946828772963287</id><published>2008-09-22T04:35:00.000-07:00</published><updated>2009-01-07T07:16:43.228-08:00</updated><title type='text'>JQuery: Drag Drop Sort</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__QNXhKzMFhw/SNeH-aHyooI/AAAAAAAAAGc/4LeHVV8dxT8/s1600-h/Picture+1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/__QNXhKzMFhw/SNeH-aHyooI/AAAAAAAAAGc/4LeHVV8dxT8/s320/Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5248813396957241986" border="0" /&gt;&lt;/a&gt;updated:  add the html,&lt;br /&gt;&lt;br /&gt;this is the html,&lt;br /&gt;&lt;br /&gt;&lt;ul id="sort"&gt;&lt;br /&gt;      &lt;% @pages.each do |p| %&gt; &lt;br /&gt;            &lt;li class="sortable" id=""&gt;"&gt;  &lt;br /&gt;                &lt;%= p.title %&gt; &lt;br /&gt;                &lt;% if p.has_children? %&gt;&lt;br /&gt;                  &lt;ul class="sort_submenu" style="margin-left:10px;" id=""&gt;"&gt;&lt;br /&gt;                      &lt;% p.children.each do |c| %&gt; &lt;br /&gt;                        &lt;li id=""&gt;" class="sortable_submenu"&gt;&lt;%= c.title %&gt;&lt;/li&gt;&lt;br /&gt;                      &lt;% end -%&gt;   &lt;br /&gt;                   &lt;/ul&gt;  &lt;br /&gt;                &lt;% end -%&gt;   &lt;br /&gt;            &lt;/li&gt;&lt;br /&gt;      &lt;% end -%&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;if you know the rails, it is easy :) .&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;I need a  "Drag Drop Sort " tree in my project.  I found some jquery plugins, but all of them seems can't solve my problem, so I decided to  solve it use&lt;a href="http://ui.jquery.com/"&gt; JQuery UI&lt;/a&gt;.&lt;br /&gt;All I need are 'jquery-ui-core', 'jquery-draggable', 'jquery-droppable','jquery-sortable',&lt;br /&gt;these you can download from &lt;a href="http://ui.jquery.com/download"&gt;JQuery site&lt;/a&gt;.&lt;br /&gt;Then some code like this:&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint" style="overflow: auto;"&gt;&lt;br /&gt;&lt;div class="line" id="LC1"&gt;  $(".assets li").draggable({&lt;/div&gt;&lt;div class="line" id="LC2"&gt;          helper: 'clone'&lt;/div&gt;&lt;div class="line" id="LC3"&gt;  });&lt;br /&gt;&lt;/div&gt;&lt;div class="line" id="LC4"&gt;  $(".drop").droppable({&lt;/div&gt;&lt;div class="line" id="LC5"&gt;    accept: ".drag",&lt;/div&gt;&lt;div class="line" id="LC6"&gt;    activeClass: 'droppable-active',&lt;/div&gt;&lt;div class="line" id="LC7"&gt;    hoverClass: 'droppable-hover',   &lt;/div&gt;&lt;div class="line" id="LC8"&gt;    drop: function(ev, ui){   &lt;/div&gt;&lt;div class="line" id="LC9"&gt;      var drag = ui.draggable; &lt;/div&gt;&lt;div class="line" id="LC10"&gt;      drag.appendTo($(this).siblings('ul.assets'))&lt;/div&gt;&lt;div class="line" id="LC11"&gt; &lt;/div&gt;&lt;div class="line" id="LC12"&gt;      $.ajax({ &lt;/div&gt;&lt;div class="line" id="LC13"&gt;        dataType: "script", &lt;/div&gt;&lt;div class="line" id="LC14"&gt;        type: "PUT", &lt;/div&gt;&lt;div class="line" id="LC15"&gt;        url: url, &lt;/div&gt;&lt;div class="line" id="LC16"&gt;        data: "asset[category_id]=" + $(this).attr('id')&lt;/div&gt;&lt;div class="line" id="LC17"&gt;      });    &lt;/div&gt;&lt;div class="line" id="LC18"&gt;    }&lt;/div&gt;&lt;div class="line" id="LC19"&gt;  });  &lt;/div&gt;&lt;div class="line" id="LC20"&gt;  $("#sort").sortable({  &lt;/div&gt;&lt;div class="line" id="LC21"&gt;     items: '.sortable', &lt;/div&gt;&lt;div class="line" id="LC22"&gt;     stop: function(e, ui){   &lt;/div&gt;&lt;div class="line" id="LC23"&gt;       var data = $(this).sortable("serialize")&lt;/div&gt;&lt;div class="line" id="LC24"&gt;       $.ajax({&lt;/div&gt;&lt;div class="line" id="LC25"&gt;           url: "/back/pages/sort",&lt;/div&gt;&lt;div class="line" id="LC26"&gt;           type: "POST",&lt;/div&gt;&lt;div class="line" id="LC27"&gt;           data: data,  &lt;/div&gt;&lt;div class="line" id="LC28"&gt;           dataType: "script"   &lt;/div&gt;&lt;div class="line" id="LC29"&gt;       });&lt;/div&gt;&lt;div class="line" id="LC30"&gt;     }   &lt;/div&gt;&lt;div class="line" id="LC31"&gt;   });   &lt;/div&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The code is simple, there are some useful callbacks you can use, like start, stop, drop..., you can find them in the &lt;a href="http://docs.jquery.com/UI/Sortables/sortable#options"&gt;doc.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the sort, this function "$(this).sortable("serialize") " will return the sort result.It works by default by looking at the id of each item in the format 'setname_number', and it spits out a hash like "setname[]=number&amp;amp;setname[]=number".&lt;br /&gt;&lt;br /&gt;So do you think JQuery is amazing?  &lt;a href="http://jquery.com/"&gt; Let's Rock&lt;/a&gt;!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-1643946828772963287?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/1643946828772963287/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=1643946828772963287' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/1643946828772963287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/1643946828772963287'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/09/jquery-drag-drop-sort.html' title='JQuery: Drag Drop Sort'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/__QNXhKzMFhw/SNeH-aHyooI/AAAAAAAAAGc/4LeHVV8dxT8/s72-c/Picture+1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-303016047548813091</id><published>2008-08-29T06:19:00.000-07:00</published><updated>2008-08-29T07:14:46.350-07:00</updated><title type='text'>Add Paypal checkout for Spree</title><content type='html'>The &lt;a href="http://railsenvy.com/"&gt;RailsEnvy&lt;/a&gt; guys begin their own casts business---&lt;a href="http://envycasts.com/products/advanced-activerecord"&gt;Envycast&lt;/a&gt; .They used the &lt;a href="http://spreehq.org/"&gt;Spree&lt;/a&gt; to build the site, and allow customer checkout by Paypal.&lt;br /&gt;Some days ago, I  use Spree in a site.I think it's better than &lt;a href="http://code.google.com/p/substruct/"&gt;substruct&lt;/a&gt;,because it's more simple and extendable. I also needed to integrate Paypal to it, but some thing make me confused.&lt;br /&gt;1) There are&lt;a href="https://www.paypal.com/IntegrationCenter/ic_standard_home.html"&gt; many ways&lt;/a&gt; to integrate Paypal, and many articles introduced these ways.First you need to know which way would you like to use? I used &lt;a href="https://www.paypal.com/IntegrationCenter/ic_standard_home.html"&gt;Website Payments Standard&lt;/a&gt; , if you don't  use this way, this article maybe not help you.&lt;br /&gt;&lt;br /&gt;2) For test it, you need signup a develop account,then use this account to create a buyer account, and a seller account.&lt;br /&gt;&lt;br /&gt;3)   When you test your application, you must login the develop account.&lt;br /&gt;&lt;br /&gt;4) install the &lt;a href="http://github.com/Gregg/spree-pp-website-standard/tree/master"&gt;Spree Paypal extension&lt;/a&gt; , this extension isn't mature, but can be used.&lt;br /&gt;&lt;br /&gt;5) change the extension's default account and some urls to your  own&lt;br /&gt;&lt;br /&gt;5)there are some &lt;a href="https://www.paypal.com/IntegrationCenter/ic_std-variable-ref-buy-now.html"&gt;html field&lt;/a&gt; the paypal server  can accept, you  need to find what  you would like to use.   &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/__QNXhKzMFhw/SLgD7jrsrQI/AAAAAAAAAGU/ozZQdjrtHGs/s1600-h/Picture+1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/__QNXhKzMFhw/SLgD7jrsrQI/AAAAAAAAAGU/ozZQdjrtHGs/s320/Picture+1.png" alt="" id="BLOGGER_PHOTO_ID_5239942488171261186" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-303016047548813091?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/303016047548813091/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=303016047548813091' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/303016047548813091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/303016047548813091'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/08/add-paypal-checkout-for-spree.html' title='Add Paypal checkout for Spree'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/__QNXhKzMFhw/SLgD7jrsrQI/AAAAAAAAAGU/ozZQdjrtHGs/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-1634890556328899811</id><published>2008-08-22T06:55:00.000-07:00</published><updated>2008-08-22T07:47:52.409-07:00</updated><title type='text'>rails crop image use paperclip and jquery</title><content type='html'>More and more sites begin to allow user to crop their avatar.&lt;br /&gt;After some time google, I haven't found a easy way to implement this in rails use jquery and &lt;a href="http://github.com/thoughtbot/paperclip/tree/master"&gt;paperclip&lt;/a&gt;.&lt;br /&gt;So I think maybe this article is helpful.&lt;br /&gt;&lt;br /&gt;First I install a jquery plugin &lt;a href="http://odyniec.net/projects/imgareaselect/"&gt;imaareaselect&lt;/a&gt; , it works well.&lt;br /&gt;&lt;br /&gt;I add it in the view,&lt;br /&gt;&lt;pre class="prettyprint" style="overflow: auto;"&gt; &lt;br /&gt;&lt;% content_for  :head do %&gt;&lt;br /&gt;   &lt;%= javascript_include_tag  'jquery-areaselect' %&gt;&lt;br /&gt; &lt;% javascript_tag do  -%&gt;&lt;br /&gt;     $(window).load(function () { $('#duck').imgAreaSelect({ x1: 120, y1: 90, x2: 280, y2: 210, onSelectEnd: set_crop });&lt;br /&gt;     });&lt;br /&gt; function set_crop(img, selection){&lt;br /&gt;     $('#crop_left').val(selection.x1)&lt;br /&gt;     $('#crop_top').val(selection.y1)&lt;br /&gt;     $('#crop_width').val(selection.width)&lt;br /&gt;     $('#crop_height').val(selection.height)&lt;br /&gt; }&lt;br /&gt; &lt;%  end  -%&gt;&lt;br /&gt;&lt;% end %&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;and these lines in a form&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint" style="overflow: auto;"&gt; &lt;br /&gt;&lt;div id="crop_form_fields"&gt;&lt;br /&gt;&lt;%= hidden_field_tag "crop_left", "0" %&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;%= hidden_field_tag "crop_top", "0" %&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;%= hidden_field_tag "crop_width", "1" %&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;%= hidden_field_tag "crop_height", "1" %&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;%= image_tag current_user.photo.url(:large), :id =&gt; "duck" %&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;then I write some codes in a moudle, this is the file:&lt;br /&gt;&lt;script src="http://gist.github.com/6795.js"&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;I will extract this as a paperclip extention later. In fact, you can this with prototype too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-1634890556328899811?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/1634890556328899811/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=1634890556328899811' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/1634890556328899811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/1634890556328899811'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/08/rails-crop-image-use-paperclip-and.html' title='rails crop image use paperclip and jquery'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-5127814805663960917</id><published>2008-08-09T01:10:00.000-07:00</published><updated>2008-08-11T20:57:49.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tree'/><title type='text'>Todo on MAC</title><content type='html'>Im not a 'getting things done' fan,but sometimes  TODO list is necessary.You know, the fun of TODO list is writing it, not implement it.&lt;br /&gt;I found two useful tools on Mac, &lt;a href="http://henrik.nyh.se/2007/08/tasks-bundle"&gt; Tasks bundle of Textmate&lt;/a&gt;  and &lt;a href="http://evernote.com/"&gt;evernote&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;Tasks bundle is pretty simple, but useful. when you install the bundle,  then it is there.&lt;br /&gt;The Tasks grammar and commands by default apply to files with the &lt;code&gt;.todo&lt;/code&gt;, &lt;code&gt;.todolist&lt;/code&gt; and &lt;code&gt;.tasks&lt;/code&gt; extensions.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://henrik.nyh.se/uploads/textmate_tasks-bundle.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://henrik.nyh.se/uploads/textmate_tasks-bundle.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;code&gt;There is a littel problem, the default hotkey use ⌅, which sometimes make you confused.&lt;br /&gt;so I just changed it in the bundle editor, this is the easist way to fix this.For more info,you need to read &lt;a href="http://henrik.nyh.se/2007/08/tasks-bundle"&gt;the original article.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;a href="http://evernote.com/"&gt;Evernote&lt;/a&gt; is another amazing software,it  allows you to easily &lt;strong&gt;capture&lt;/strong&gt; information in any environment using whatever device or platform you find most convenient, and makes this information &lt;strong&gt;accessible&lt;/strong&gt; and &lt;strong&gt;searchable&lt;/strong&gt; at any time, from anywhere.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://evernote.com/about/img/bnr_home-grand.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://evernote.com/about/img/bnr_home-grand.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;when you find some useful pictures or web pages,   &lt;a href="http://evernote.com/"&gt;Evernote&lt;/a&gt;  is a great tool to store them and write some note for them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://henrik.nyh.se/uploads/textmate_tasks-bundle.png"&gt;&lt;code&gt;&lt;/code&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-5127814805663960917?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/5127814805663960917/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=5127814805663960917' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/5127814805663960917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/5127814805663960917'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/08/todo-on-mac.html' title='Todo on MAC'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-904180398311412635</id><published>2008-08-07T10:26:00.000-07:00</published><updated>2008-08-07T11:00:01.110-07:00</updated><title type='text'>四年前</title><content type='html'>四年前的现在，我正在享受上学以来最悠长美妙的一个假期。我试图沿着残留的记忆追溯回去，但来时的路已然模糊。我只记得我们玩得很开心，在故乡的我们，很少会有压抑的时候。&lt;br /&gt;四年过去了，我没有长高，也没有变胖，没有什么可以赢得掌声的事在我身上发生。幸好我不是那种不赢得聚光灯就无法快乐的人，我希望我可以享受自己的生活。享受不算健壮但还很是健康的身体，享受编程，每一次刷新浏览器看到新页面时的成就感，享受对音乐，对阅读，对体育活动的热爱，享受有限的全家人呆在一起的假期，享受总给我带来烦恼但总让我独自傻笑的木头，享受我的小黄猫（我知道我很对不起你），享受我家的小白狗和她的我未曾谋面的小黑狗孩子。享受我选择做自己的网站的勇气，我知道，也许我不会成功，但我想，带给你们一点我创造的东西。&lt;br /&gt;我不知道我能不能让你们快乐，但我真的想那么做。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-904180398311412635?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/904180398311412635/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=904180398311412635' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/904180398311412635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/904180398311412635'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/08/blog-post_07.html' title='四年前'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-1403898337805712595</id><published>2008-08-02T23:07:00.000-07:00</published><updated>2008-08-03T00:29:51.300-07:00</updated><title type='text'>下一个腾讯？</title><content type='html'>我接触电脑是从初中时开始。和大多同学一样，电脑游戏成了我的新大陆。到现在仍然念念不忘当年玩游戏的激情澎湃，感叹现在有了自己的电脑，但再无当初的热情了。&lt;br /&gt;我接触网络是从初三开始。和大多同学一样，qq让我惊诧于网络的魅力。那时候我们以为聊qq就是上网的全部。&lt;br /&gt;时至今日，我从事了互联网行业, 也可以拍着胸脯讲自己是半个互联网人了。我几乎天天都要上网，有比牛毛多的web2.的网站我也注册了比牛毛多的帐号。国外的网站界面大都很美观舒服，功能也有特别之处，我试着把他们介绍给我的同学，但大家似乎都不怎么感冒。我想原因很简单，因为上面没几个和我们有关的人。&lt;br /&gt;如果你有机会去网吧看看，你会明白为什么你觉得很酷的网站用户很少的原因了。上网对大多数中国网民来说就是聊qq，六七年前是这样，六七年后似乎还是这样。当然大家多了一个选择叫网络游戏。这个情况让我失望了很长时间，我希望我们都能多一点geek精神，但这仅仅是个希望。&lt;br /&gt;最近的一俩个月情况有点改变（多少有那么一点）。我突然发现我的同学们似乎都在使用一个网站，地球人都知道，我就不给出链接了。这个网站我是去年十月份注册的，那时候我的大学同学有一部分已经开始使用这个网站了，我不知道那个时候它的用户量是多大，但到了现在，我觉得可能它的用户量增长了能有一倍。因为我的高中，初中，甚至小学同学都开始现身了。衡量一个站点的影响力，可以去网吧观察，看人们在打开ie后第一个登录的网站是什么。我确实这样做了，我以我并不是完全善意的眼光去观察，发现有不少人开机后做了俩件事，一曰上qq，一曰上校内。&lt;br /&gt;我不是说校内会成为下一个qq，但校内确实成为了qq之后又一个让你不能忽视的东西。不能忽视的意思就是你周围的大多数人都向你说起过这个东西，你感觉这的却是个时髦又有些用处的东西。我也不是说校内会不成为下一个qq，现在我们确实不像原来那样重视qq了。互联网越来越普及，人们的选择越来越多。几年前有几个人想到开网店，网上购物，到现在我的很多一直呆在县城里的同学都开始托我网上买点东西。腾讯也发布了自己的sns，但我们可以肯定它不会威胁到校内的。&lt;br /&gt;我还想说的是中国的sns市场竞争是不已经结束了，真得没有机会去和校内扳手腕了？事实上这不是一个问题。互联网是一片充满奇迹的土地，任何成功在它实现以前都是一件不可能的事。如果你做一个网站总是要考虑已经有了那些‘大家伙’，你的网站该如何立足的话，那么你还不具有互联网的创业精神。&lt;br /&gt;话说回来，什么样的sns可以和校内叫板？我自己认为，太酷的不行，功能太花哨的不行，没新意的不行。在中国互联网混，一定要有草根精神，明白用户真正需要的是什么，不能看了国外的酷站眼光就高了。也不能想当然，觉得这么好的功能一推出肯定火，事实上喜欢尝试新东西的人不多，而且你的新功能也许并没有你想象中的那么好。至于新意嘛，在一个已经有人做大了的市场里推出新产品，总是要有点不一样的东西，有个词叫做差异化竞争。你不能指望那些去网吧上网的人也和你一样有空申请那么多帐号只是为了进去看看是个什么网站。&lt;br /&gt;&lt;br /&gt;最后表达一下我对豆瓣和土豆的敬意。他们坚持自己的东西，用优秀的产品，优秀的服务来吸引人，而不是用那些无聊，污染视觉的东西壮大声势。事实上，只要你的产品足够好，就不怕没人用。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-1403898337805712595?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/1403898337805712595/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=1403898337805712595' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/1403898337805712595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/1403898337805712595'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/08/blog-post.html' title='下一个腾讯？'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-8200778351367636900</id><published>2008-07-25T05:50:00.000-07:00</published><updated>2008-07-25T06:25:47.225-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tree'/><title type='text'>Use Yml2tex  with LaTeX Beamer  on Mac to make Presentation</title><content type='html'>Im not good at make presentation. But i know sometimes a good presentation will help your business a lot.&lt;br /&gt;I don't mean use PPT can't make  good presentation, but for  me PPT is hard to use,sometimes I would rather use Word or Html to make my presentation.&lt;br /&gt;Today I found a good tool called   LaTeX Beamer, thanks to &lt;a href="http://zedshaw.com/"&gt; ZedShaw&lt;/a&gt; , he give&lt;a href="http://arthurkoziel.com/2008/07/03/yml2tex-presentation-from-uas-dortmund/"&gt; this link&lt;/a&gt; that saved my life.&lt;div&gt;I haven't used LaTex or Tex on mac, so if you are a beginner like me,&lt;/div&gt;&lt;div&gt;these links maybe useful for you:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;   first you need to install MacTex from &lt;a href="http://www.tug.org/mactex/"&gt;here.&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;   Then follow &lt;a href="http://arthurkoziel.com/2008/06/02/how-to-install-latex-beamer-for-tex-live-on-mac-os-x/"&gt;this link&lt;/a&gt; to install  LaTex Beamer.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;   If you are a coder you may need to insert code to your presentation, you may like to try &lt;a href="http://arthurkoziel.com/2008/06/23/latex-beamer-presentations-from-yaml-files/"&gt;this small python project&lt;/a&gt; to make your things cool ;).&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;   Enjoying it!&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;   &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-8200778351367636900?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/8200778351367636900/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=8200778351367636900' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/8200778351367636900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/8200778351367636900'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/07/use-yml2tex-with-latex-beamer-on-mac-to.html' title='Use Yml2tex  with LaTeX Beamer  on Mac to make Presentation'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-5364753231863437864</id><published>2008-07-19T08:12:00.001-07:00</published><updated>2008-07-19T09:17:16.000-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tree'/><title type='text'>关于 ‘呵呵’</title><content type='html'>我越来越发现朋友有俩种，一种是前三句聊天中必有一句‘呵呵’的，另一种是‘呵呵’在三句之外的。&lt;br /&gt;（特指IM，WEB或者短信） &lt;br /&gt;   ‘呵呵’这个东西大概是伴着IM或者短信发展壮大的，现在在各种手指交流的媒介中占有举足轻重的地位。我一直在想这个词或者这个短语代表的是什么意思，是‘哈哈’吗？是‘嘿嘿’吗？抑或是人们羡慕狗类特有的‘汪汪’或猫类特有的‘喵喵’而自己创造了属于自己的叫声？&lt;br /&gt;   我觉得如果用‘呵呵’来表达笑声，似乎浅了点。你想郭德纲在台上抖了一个自以为高明的包袱，结果下面一片‘呵呵’声，他是不感觉有点不爽？像郁达夫写的“&lt;span class="b"&gt;正象是黄酒之与白干，稀饭之与馍馍，鲈鱼之与大蟹，黄犬之与骆驼&lt;/span&gt;”，有点不够劲？&lt;br /&gt;    如果用‘呵呵’表达自谦，又似乎虚了点。譬如有人说我踢球好，我诚惶诚恐，我知道我球技很烂，我得说“没这回事，差的远呢，我哪行”；要有人说我长的帅，我就说“呵呵，那里那里”，因为我自认为这张老脸确实是有水准的：》。所以我说‘呵呵’的时候就向老罗说得“批评批不到点子上，表扬又表扬的不够”的感觉。说是自谦，不说说是迎合奉承。&lt;br /&gt;   所以说‘呵呵’这个东西不是什么好东西，今天这个时代，写书信的朋友是一种，打电话的朋友是一种，其他的我们可以统称‘说呵呵’的朋友，和外国人的‘say hi’型朋友有相似之处。写书信的朋友&lt;br /&gt;通常是有事没事都会写，短则半月二十天一封，长则数月半年一封，有的十多页长，有的不过半页。打电话的朋友没事也打的居少，打的时间长的更少，我个人的体验是有时候刚开始打心疼话费，有时候打了一小回儿觉得很多原准备要说的话不说也无所谓了，然后开始心疼话费。一个哥们曾说打电话时就感觉拿着一个一个大馒头往外扔。打电话打的很过瘾的时候也有，很少。&lt;br /&gt;   至于说‘呵呵’的朋友，很久没聊，刚聊俩句就开始呵呵。有时候一看聊天记录，你来我往都是‘呵呵’。发短信也如此，有一类型短信统称‘呵呵’短信，不回复吧有碍情面，回复吧确实没意思。现在SNS也多了，可仔细一看，只看出俩个字，‘呵呵’。想一想这大概就是时代特点吧，有这先进工具了，多和朋友联系总是有好处的。多几声‘呵呵’，也算跟的上时代。但我自己做网站，我不想做成一个‘呵呵’型网站，我不是说‘顶一下’，‘踩踩’，‘吼吼’这些词不好，但我们做互联网总是希望他能为人们带来更多的一点东西。电话打过了就没了，短信满了就删了，我希望我的网站能像书信一样，虽然不多，但多年后仍可以找到那种触动，起码记得有过这么回事。&lt;br /&gt;  所以我就说嘛，是有些道理的。呵呵。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-5364753231863437864?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/5364753231863437864/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=5364753231863437864' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/5364753231863437864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/5364753231863437864'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/07/blog-post_19.html' title='关于 ‘呵呵’'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-3081837200059875590</id><published>2008-07-19T00:45:00.000-07:00</published><updated>2008-07-19T12:11:01.354-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><title type='text'>ajax upload use jquery + respond-to-parent</title><content type='html'>Ajax upload is cool.If you want to imeplement this in rails and your js libraray happen to  is jquery, I think jquery and &lt;a href="http://github.com/markcatley/responds_to_parent/tree/master"&gt;respond-to-parent plugin&lt;/a&gt; will make it easy.Maybe &lt;a href="http://www.phpletter.com/Demo/AjaxFileUpload-Demo/"&gt;this plugin &lt;/a&gt;of jquey is also a way, but it can't be easy to use for me.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First you need to install the plugin,&lt;/div&gt;&lt;div&gt; in rails2.1, you can  &lt;/div&gt;&lt;div style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;blockquote&gt;     &lt;tt&gt;&lt;/tt&gt;./script/plugin install&lt;br /&gt;git://github.com/markcatley/responds_to_parent.git&lt;/blockquote&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0); font-weight: bold;"&gt;or&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span&gt;&lt;span&gt;       &lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt; cd vender/plugins &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;        git clone git://github.com/markcatley/responds_to_parent.git&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;        cd ../..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;then in your views,  you need a form&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;            form method="post" action="/couples/1/albums/1/pictures.js" target="background-uploader" enctype="multipart/form-data" id="background-upload-form"  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;        &lt;%= file_field_tag "picture_data[]", :id =&gt; 'ajax_upload_file' %&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;and an iframe&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;         iframe width="1" height="1" name="background-uploader" src="about:blank" style="display:none;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;maybe you also need a "loading" to make your site better:&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                    div id="loading" style="display: none;"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;            &lt;%= image_tag 'loading.gif' %&gt;                          上传中...                     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;look, the iframe's name is same as form's tagret,so you can  target your file upload forms to a child IFRAME.&lt;br /&gt;&lt;br /&gt;then in js file,we can just use few lines to handle this :&lt;br /&gt;   &lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;    $('#ajax_upload_file').change(function(){ &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                  $("#background-upload-form").hide()                 &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                 $('#loading').show()         $("#background-upload-form").submit()     &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;            });&lt;/span&gt;&lt;br /&gt;and in controller we can use respond-to-parent link this:&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;               respond_to do |wants|                &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                   wants.js do              &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                        responds_to_parent do &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                            render :text =&gt; "jsFunction" &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                        end                    &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;                  end          &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;             end    &lt;/span&gt;&lt;br /&gt;That's all, so your browser will excute  the js function that render in the controller.&lt;br /&gt;&lt;br /&gt;is this awesome?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-3081837200059875590?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/3081837200059875590/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=3081837200059875590' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/3081837200059875590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/3081837200059875590'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/07/ajax-upload-use-jquery-respond-to.html' title='ajax upload use jquery + respond-to-parent'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-95778552896686904</id><published>2008-07-17T09:58:00.000-07:00</published><updated>2008-07-17T11:01:18.910-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='poem'/><title type='text'>在细雨中呼喊</title><content type='html'>昨天一个下午看完了余华的&lt;a href="http://www.douban.com/subject/1082138/"&gt;在细雨中呼喊&lt;/a&gt; ，似乎好久没有这么迅速的阅读体验了。作者的故事和故事中的人物以及人物的情感，命运，像&lt;a href="http://baike.baidu.com/view/428964.htm"&gt;京津动车组&lt;/a&gt;一样扑向我的身体然后穿了过去。余华的书我看过一些，长篇有&lt;a href="http://www.douban.com/subject/1029791/"&gt;许三观卖血记&lt;/a&gt;，中篇有挺多的。至于活着，太多的介绍，太多的分析，让我失去了阅读最基本的快感---接下去发生什么？所以一直没去看。&lt;br /&gt; 事实上我喜欢余华是从高中开始的，读了一篇后来听说是他的处女作的小说&lt;a href="http://www.sxsky.net/book/2003new/da/y/yuhua/000/010.htm"&gt;十八岁出门远行&lt;/a&gt;。这篇小说我读了很多遍，现在让我印象依旧深刻的是它的俩个特点， 一是文采好，比喻新颖。恰当，又有一种幽默在里边。比如说这一小段：    &lt;span style="font-size:100%;"&gt;&lt;blockquote&gt;天色完全黑了，四周什么都没有，只有遍体鳞伤的汽车和遍体鳞伤的我。我无限悲伤地看着汽车，汽车也无限悲伤地看着我。我伸出手去抚摸了它。它浑身冰凉。那时候开始起风了，风很大，山上树叶摇动时的声音像是海涛的声音，这声音使我恐惧，使我也像汽车一样浑身冰凉。&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;二是用很正常的逻辑与语言来描写荒诞的故事，像这一小段：&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-size:100%;"&gt;司机这时在公路中央做起了广播操，他从第一节做到最后一节，做得很认真。做完又绕着汽车小跑起来。司机也许是在驾驶室里呆得太久，现在他需要锻炼身体了。看着他在外面活动，我在里面也坐不住，于是，打开车门也跳了下去。但我没做放手操也没小跑。我在想着旅店和旅店。&lt;/span&gt;&lt;/blockquote&gt;&lt;div style="text-align: left;"&gt;余华最让人惊讶的地方不是他运用文字的能力，而是他直面死亡，剖析死亡的冷静态度。而我对这种对于血腥，死亡过于详细到了近似与科普说明文的描写有着过敏般的反应。所以在看&lt;a href="http://www.douban.com/subject/1029791/"&gt;许三观卖血记&lt;/a&gt;时我由于身体的反应不得不中断了一段时间的阅读。至于&lt;a href="http://www.douban.com/subject/1071921/"&gt;现实一种&lt;/a&gt; 我根本就没仔细去看。&lt;br /&gt;而看这本&lt;a href="http://www.douban.com/subject/1082138/"&gt;在细雨中呼喊&lt;/a&gt;是好多了。这是余华的第一本长篇小说，似乎那时候的他并没有完全发现自己对于血腥和死亡如此坦然的潜力。每当这种苗头有所骚动时他恰当的中止了它。所以我可以放心的阅读了。看完后觉得是本好书，但似乎确实比  &lt;a href="http://www.douban.com/subject/1029791/"&gt;许三观卖血记&lt;/a&gt;差了点。许中那种大环境的残忍与小人物的幽默交相辉映，让人印象深刻。像这句&lt;br /&gt;&lt;blockquote&gt;“你知道吗？为什么工厂停工了、商店关门了、学校不上课、你也用不着去炸抽条了？为什么有人被吊在了树上、有人被关进了牛棚、有人被活活打死？你知道吗？ 为什么毛主席一说话，就有人把他的话编成了歌，就有人把他的话刷到了墙上、刷到了地上、刷到了汽车上和轮船上、床单上和枕巾上、杯子上和锅上，连厕所的墙 上和痰盂上都有。毛主席的名字为什么会这么长予你听着：伟大的领袖伟大的导师伟大的统帅伟大的舵手毛主席万岁万岁万万岁。一共有三十个字，这些都要一口气 念下来，中间不能换气。你知道这是为什么？因为文化大革命来了。”&lt;/blockquote&gt;我喜欢看书，但讨厌文学欣赏之类的东西。我觉得写小说重要的俩点是技巧和文采，写得是什么故事，是在其次的。也许余华不这么想，不过他起码是符合了我的标准。至于他的近作兄弟，大家有褒有贬。我自己并没有完整的阅读，其中大部分原因是上部有点血腥，让我脆弱的神经有点不舒服，下部有点残忍，再加上肉体的冲击，让我原本就脆弱的神经更消受不了。罢了。&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-95778552896686904?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/95778552896686904/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=95778552896686904' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/95778552896686904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/95778552896686904'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/07/blog-post_17.html' title='在细雨中呼喊'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1072346227628177543.post-3025654024364390707</id><published>2008-07-14T21:15:00.000-07:00</published><updated>2008-07-14T21:20:49.543-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='poem'/><title type='text'>Yet Another Hello World</title><content type='html'>天上白玉京,五楼十二城.&lt;div&gt;仙人抚我顶,结发授长生.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1072346227628177543-3025654024364390707?l=poemisnottree.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://poemisnottree.blogspot.com/feeds/3025654024364390707/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1072346227628177543&amp;postID=3025654024364390707' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/3025654024364390707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1072346227628177543/posts/default/3025654024364390707'/><link rel='alternate' type='text/html' href='http://poemisnottree.blogspot.com/2008/07/blog-post.html' title='Yet Another Hello World'/><author><name>l_w_j</name><uri>http://www.blogger.com/profile/07563836114268984530</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
