<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>&#32780;&#20170;&#36808;&#27493;&#20174;&#22836;&#36234; - Home</title>
  <id>tag:leeseon.com,2010:mephisto/</id>
  <generator uri="http://mephistoblog.com" version="0.8.0">Mephisto Drax</generator>
  <link href="http://leeseon.com/feed/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="http://leeseon.com/" rel="alternate" type="text/html"/>
  <updated>2010-01-16T23:47:37Z</updated>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2010-01-16:62</id>
    <published>2010-01-16T22:03:00Z</published>
    <updated>2010-01-16T23:47:37Z</updated>
    <category term="dreamhost"/>
    <category term="site5"/>
    <category term="web hosting"/>
    <category term="&#30417;&#25511;&#23453;"/>
    <category term="&#32654;&#22269;&#20027;&#26426;"/>
    <link href="http://leeseon.com/2010/1/16/bye_bye_dreamhost" rel="alternate" type="text/html"/>
    <title>ByeBye Dreamhost</title>
<content type="html">
            &lt;p&gt;因为&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 还为从其它主机转过来的用户提供了一份更多的优惠，你只需要能证明自己是从其它的主机转过来并且已经关闭了以前的帐号，你就能得到$25的“回扣”用于下一次的任何购买中。不过这份回扣是需要在购买&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 的30天内申请的。反正我的域名已经全部转到了&lt;a href=&quot;http://godaddy.com&quot;&gt;godaddy&lt;/a&gt; 网站也全迁过来了，虽然离真正到期还有一个多月，但是close掉在&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 上的帐号自己是不二之选了。关闭帐号是很简单的，只要点击close然后再确认再输入密码就行了。在最后提示我因为我的费用并没有用完，下次如果还决定回&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 的话，那笔钱还是可以作为折扣从我的价格中减去的。很公平不是吗？可惜我是真的不太准备回去了。&lt;/p&gt;


	&lt;p&gt;好吧，不管怎样我已经使用了&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 快三年了，说一说我的感受吧，可能对后来者能一点帮助，也算是一点经验或者是总结。&lt;/p&gt;


	&lt;p&gt;其实根据VPSer的&lt;a href=&quot;http://www.vpser.net/other/choose-locations-for-ur-hosting.html&quot;&gt;介绍&lt;/a&gt; &lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 自建的机房位于洛杉矶,网速其实是很快的(这个我们下面会讨论的)，而&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 是使用著名的&lt;a href=&quot;http://www.theplanet.com/&quot;&gt;The Planet&lt;/a&gt; 机房速度也不慢，不过从我的(北京联通)测试上来看还是稍慢于&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 一点点。不过我这儿谈的网速仅仅是指传输层的速度，但是真实的用户体验是&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 的速度大于&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 的，这个是得到多方(监控宝与google analytics)证实的。&lt;/p&gt;


	&lt;p&gt;为什么会是这样？我们可以先看几张我从&lt;a href=&quot;http://www.jiankongbao.com/&quot;&gt;监控宝&lt;/a&gt; 上获取的几张图&lt;/p&gt;


	&lt;p&gt;第一张是在&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 上较快的HTTP响应时间分布
&lt;img src=&quot;http://leeseon.com/assets/leeseon.com/2010/1/16/chart3.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;第二张是在&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 上转慢的HTTP响应时间分布
&lt;img src=&quot;http://leeseon.com/assets/leeseon.com/2010/1/16/chart2.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;第三张是在&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 上最慢的HTTP响应时间分布
&lt;img src=&quot;http://leeseon.com/assets/leeseon.com/2010/1/16/chart.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;第四张是在&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 上平均的HTTP响应时间分布
&lt;img src=&quot;http://leeseon.com/assets/leeseon.com/2010/1/16/chart4.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;第五张是在&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 上较慢的HTTP响应时间分布
&lt;img src=&quot;http://leeseon.com/assets/leeseon.com/2010/1/16/chart5.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;总体上来说，DNS的解析速度区别并不大，我在监控宝上关于ping值与DNS解析的速度的对比上&lt;a href=&quot;http://dreamhost.com&quot;&gt;Dreamhost&lt;/a&gt; 是要优于&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 的，不过那个区别在100ms之内，人是感觉不到的。对于网页的下载时间，其实两者区别也不大也在100ms之内，而真正引起感官上的区别的主要是服务器的计算时间的区别，DH有时比S5要慢上太多了，而且有时DH上连建立链接的时间也会很慢，这只能说明DH也太超卖(oversell)了。而&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 在这个方面控制的是比较好的吧，起码我现在的平均总的HTTP响应速度在2s左右。&lt;/p&gt;


	&lt;p&gt;总结一下吧，DH其实还是一个不错的主机，尤其是它第一年的优惠价格太诱人了，而且主机开放ssh权限，这对需要翻墙或者部署rails应用的用户来说还是很不错的。我就是因为它第一年的$24的价格被吸引去的，前不久居然还有过$7.77的第一年的价格优惠。但是第一年之后的价格就比较贵了，而且并不太物有所值了。加上它疯狂的超卖，我的那台主机开始感觉到越来越慢(第一年还好，是最近越来越糟的)，所以你如果只是一个linux或rails的初手，只是想架个Blog或者是部署下rails玩玩，我还是推荐你可以买来玩上一年，别象我似的玩了一年之后因为懒得搬家就一共呆了快三年。除此之外我还是推荐&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; 作为共享主机的一个不错的选择，当然你要用VPS我还是推荐&lt;a href=&quot;http://www.linode.com&quot;&gt;Linode&lt;/a&gt; 虽然我还没有用过，但是因为有几个我依赖的人的推荐，我相信这个是不错的。&lt;/p&gt;


	&lt;p&gt;PS:就我个人感觉&lt;a href=&quot;http://www.jiankongbao.com/&quot;&gt;监控宝&lt;/a&gt; 真的很不错，如果你有一个网站，那你一定要用用它! 关于Site5的购买你可以去&lt;a href=&quot;http://riku.me/2009/03/06/site5.html&quot;&gt;riku&lt;/a&gt; 那儿看看&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2010-01-13:61</id>
    <published>2010-01-13T15:09:00Z</published>
    <updated>2010-01-16T23:35:56Z</updated>
    <category term="google"/>
    <category term="sb"/>
    <category term="&#23385;&#20113;&#20016;"/>
    <category term="&#30334;&#24230;"/>
    <link href="http://leeseon.com/2010/1/13/writing_when_google_is_going_to_leave" rel="alternate" type="text/html"/>
    <title>&#20889;&#22312;google&#23558;&#35201;&#31163;&#24320;&#26102;</title>
<content type="html">
            &lt;p&gt;2010实在是一个互联网的大年，昨天的百度被黑，本来就引不起我作为一个看客的兴趣，也引不起我的同情。一个不被人尊敬的公司被黑，反而让我有一点暗爽，也许这是百度能给我带来的最大快乐了。&lt;/p&gt;


	&lt;p&gt;然后今天“谷歌”的离去ing，却让我有点兔死狐悲的悽凉，谷歌的底线还是让人肃然起敬的，不过作为天朝的屁民，本来也不想多说什么，剧本已经由《动物庄园》写好，我们只用等着去欣赏就好了。可惜的是&lt;a href=&quot;http://www.lixiaolai.com/index.php/archives/8503.html&quot;&gt;XiaoLai&lt;/a&gt; 与&lt;a href=&quot;http://tiny4.org/jsjy/sxl/2010/01/google.html&quot;&gt;TinyFool&lt;/a&gt; 都引述了一个SB的名言，搞得我都有点无奈的想说点什么。好在我不用去百度混饭吃，也不在乎它是否收录我的网站，反正我说的也不是中文，想来它也是看不懂的。&lt;/p&gt;


	&lt;p&gt;Xiaolai表达是含蓄而自明的，tinyfool的表达是简单而达意的。我就不多重复什么了，只是这个孙云丰作为一个竞争对手的高层，居然在这个时候，不合时宜、迫不急待的跳出来将屎盆扣向谷歌，让我不禁对他的无瑕演技佩服得五体投地，以至于我开始如梦如幻如坠云里般精神恍惚并开始人戏不分了。&lt;/p&gt;


	&lt;p&gt;我不知他是真的本色出演将SB的这个角色刻划的如此如此入木三分，还是的确已入化境能如此的入戏，说出完美的台词。老大，你真的是《英雄》还是《十面埋伏》又或《头文字D》看多了，果然是对剧本理解得精妙之极，如果要打击对手这时跳出来又太急躁，远不如事情将过末过之时，来几句绵里藏针的阴损、显得既体面又圆滑而收效甚巨。抑或是急于向主人邀功献媚，那也不用说出:&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;政治环境短期内是无法改变的。在中国，每个企业或者个人，都必须戴着镣铐跳舞。&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;这样的实话来？有些事是知道而无需说的：大家都在男盗女娼，你自各儿道貌岸然、看不下去，还放出狠话来，说不玩了且宁可去死。这让喂食于你的主人情何以愖？你这难道不是给竞争对手一个将自己树立为不肯听从“世人皆浊，何不淈其泥而扬其波？ 众人皆醉，何不哺其糟而歠其酾？”的劝告一意孤行投江而死的屈原形象的口实吗？唉，情何以愖啊？养狗也不能养这么笨的嘛、、、、&lt;/p&gt;


	&lt;p&gt;噢，对不起是我搞错了，大错特错，你这样的惊人表现的确是可歌可泣，技压达斯汀•霍夫曼蝉联百届奥斯卡都不为奇。因为这部记录片的名字不是《雨人》而是《S+B+&lt;ins&gt;++&lt;/ins&gt;+》!!&lt;/p&gt;


	&lt;p&gt;PS：下次续集《SB#####》的主角你也一并演了得了。&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2010-01-10:60</id>
    <published>2010-01-10T09:05:00Z</published>
    <updated>2010-01-17T00:24:42Z</updated>
    <category term="dreamhost"/>
    <category term="migration"/>
    <category term="site5"/>
    <link href="http://leeseon.com/2010/1/10/move_away_from_dreamhost_to_site5" rel="alternate" type="text/html"/>
    <title>&#25644;&#23478;&#25104;&#21151;Dreamhost=&gt;Site5</title>
<content type="html">
            &lt;p&gt;&lt;img src=&quot;/assets/leeseon.com/2010/1/10/promo-save-35-instantly-sprsum.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;其实早在几个月前，当我的&lt;a href=&quot;http://www.newrelic.com/&quot;&gt;new relic&lt;/a&gt; 发给我的报告表明在Dreamhost上的得分从fair到了poor与让我很不爽的Unacceptable之后，又鉴于已有的&lt;a href=&quot;http://www.robinlu.com/blog/archives/475&quot;&gt;前例&lt;/a&gt; ，我已经另寻乐土之意。&lt;/p&gt;


	&lt;p&gt;赶在美国传统的打折季，新年动手吧，反正离我的dreamhost的过期时间有不到两个月的时间了。对于&lt;a href=&quot;http://www.linode.com&quot;&gt;Linode&lt;/a&gt; 我虽然很有向往，但是对于自己的需求来说，VPS的价格还是偏高。因此在shared的主机中选择是比较正常的，其实一开始我并没有直奔&lt;a href=&quot;http://site5.com&quot;&gt;Site5&lt;/a&gt; 而已，而是绕了个小弯去试试一下&lt;a href=&quot;http://www.hostmonster.com/&quot;&gt;HostMonster&lt;/a&gt; 因为它打折之后$4.95/m的价格还是很让我心动的，不过在试用的感觉中我感觉可能是因为被dreamhost上ssh的方便给惯坏了，它需要身份验证(发个身份证的照片过去)才能开ssh的默认流程，就让我有预感HostMonster可能与rails不合，而且它那繁复的控制界面让我比较头大，试用了三天就直接要求退款了，好在它退款还是很方便。教训是没有关注一下rails社区对它的评价。这年头国内国外谈论的居然都是&lt;a href=&quot;http://www.linode.com&quot;&gt;Linode&lt;/a&gt; 与&lt;a href=&quot;http://www.slicehost.com/&quot;&gt;slicehost&lt;/a&gt; 甚至&lt;a href=&quot;http://www.joyent.com/&quot;&gt;joynet&lt;/a&gt; 。我就一个想要找个地方hosting自己的mephisto偶尔玩一下rails的小网民容易吗？&lt;/p&gt;


	&lt;p&gt;有了这次教训，最后也就选中了&lt;a href=&quot;http://www.site5.com/in.php?id=78968-43&quot;&gt;Site5&lt;/a&gt; ：SSH自动开启也算是我想要的，总体上来说$9.95/m的费用是与dreamhost相当的，不过因为我当年曾经将dreamhost的空间一起与&lt;a href=&quot;http://blog.cnliufeng.com/&quot;&gt;LiuFeng&lt;/a&gt; 分享，所以还是与它商量了一下，我们一起合租site5了，我出hostpro的价钱，他出turbo的费用。这样我们就又可以一起合租了，而且还额外得到了一个独立IP，的确是一个很好的方案噢。&lt;/p&gt;


	&lt;p&gt;虽然Site5本来就有60天回款的保证，但是为了麻烦，我还是使用了一个可以试用30天的coupon，不过事后证明这一步好象是多余的，因为我一开始试用就开始喜欢上site5了，居然它已经为你建立好一个/home/username/ruby/gems，而且还有一个已经写得不太完整的.gemrc。噢，看来site5为rails的用户已经想得足够多了。&lt;/p&gt;


	&lt;p&gt;至于site5的好处，liufeng已经在&lt;a href=&quot;http://www.cnliufeng.com/blog/2009/12/exciting.html&quot;&gt;这里&lt;/a&gt; 讲过了，我就不多说了，只记得他当时太兴奋，在gtalk里面也不停的说site5的好处。对我而言最深的感受，它的网速与机器速度很快，我最喜欢的是它的live chat的客户支持，虽然我的英文足够糟到可以让它的客服刚好了解我要说什么，但是他们总是能很耐心且及时的解答我的很多问题，比起Dreamhost糟糕的live chat系统要好上太多了。&lt;/p&gt;


	&lt;p&gt;其实我是在中国时区的25号使用了一个30%折扣购买了一年的hostPro+Turbo主机计划，但是就是一个小时之后，就发现的主页上的折扣因为圣诞促销变成了35%，杯具啊。感觉就象被玩弄了一般，在我有点恼羞成怒地急躁的与Site5的交涉之后，他们居然很大方的答应将5%直接refund给我，呵呵，这种感觉让我一下子喜欢上了Site5。&lt;/p&gt;


	&lt;p&gt;就算了是site5没有其它好过dreamhost太多的优点，我也会因为这一点而喜欢site5的。噢噢&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-07-05:59</id>
    <published>2009-07-05T16:17:00Z</published>
    <updated>2009-07-05T16:55:35Z</updated>
    <category term="business"/>
    <category term="translate"/>
    <category term="&#21019;&#19994;"/>
    <category term="&#32763;&#35793;"/>
    <link href="http://leeseon.com/2009/7/5/the_natural_evolution_from_side_project_to_full-time_business" rel="alternate" type="text/html"/>
    <title>&#20174;&#21103;&#19994;&#21040;&#20840;&#32844;&#30340;&#33258;&#28982;&#28436;&#21464;</title>
<content type="html">
            &lt;p&gt;下文翻译自&lt;a href=&quot;http://www.37signals.com/svn/posts/1764-the-natural-evolution-from-side-project-to-full-time-business&quot;&gt;Signal vs. Noise&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;有人怀疑我们认为应该在开展副业的同时保留日常工作的建议。他们认为建立一样事业需要如此多的坚持不懈地努力，以致于你需要投入所有的时间来将它做好。&lt;/p&gt;


	&lt;p&gt;的确如此建立一样事业需要大量的时间和精力。但是这种认为需要辞职的才能将它做好观点是一种误导。一旦你辞职，你就改变一切。你并没有获取多的时间，而是失去了它。你等于使自己的业务进入了倒计时。将自己自缚于要么马上赚钱或者完蛋的境地。你必须要么马上成功否则就只能永远放弃。&lt;/p&gt;


	&lt;p&gt;保留日常工作可以给您一个较长的时间来构建想法。它可以使您随着时间的推移提供持续不断的努力。没有快速致富的选项。但可以日积月累地缓慢建构。&lt;/p&gt;


	&lt;p&gt;是的，你需要寻找的时间做副业和日常工作。但是如果使用得当总会有足够的时间的:致力于您的想法，而不是看电视或玩《侠盗猎车手》。11点而不是10点去睡觉。这并不意味着通宵达旦或每天工作16小时，我们指的是每周有少许额外的时间。这就有足够的时间去做一些事情，然后不断给它加油。&lt;/p&gt;


	&lt;p&gt;让你的副业自然地发展成为一个全职的业务。让它有机地增长。开始一项副业。缓慢的构建它。持续的花点时间。随着项目的发展，你就可以判断是否投入更多资源。最后，如果一切按计划进行，您就可以辞职并全职于它（如果这正是你想要的） 。但是如果一开始就这样做的话那就是本末倒置。&lt;/p&gt;


	&lt;p&gt;想一想，自然中的演变是如何发生的。没有巨大的飞跃。事情逐渐发生变化。这是一种我们力争能达到的模式。&lt;/p&gt;


	&lt;p&gt;PS: 其实文章简单明了，本不用翻译，只是正好拿它来试试google 不久前出的&lt;a href=&quot;http://translate.google.com/toolkit&quot;&gt;翻译辅助工具&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;不错，一个很好用的工具，虽然它的翻译总会给你点误导:) 只可惜它现在的共享功能不太全，不能提供共享给大家，有点遗憾&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-06-03:55</id>
    <published>2009-06-03T01:41:00Z</published>
    <updated>2009-06-03T02:27:42Z</updated>
    <category term="Ruby"/>
    <category term="ruby"/>
    <category term="scheme"/>
    <link href="http://leeseon.com/2009/6/3/scheme_interpreter_in_15-minutes" rel="alternate" type="text/html"/>
    <title>Scheme interpreter in 15 minutes</title>
<content type="html">
            &amp;lt;object height=&quot;290&quot; width=&quot;400&quot;&gt;
&amp;lt;param /&gt;
&amp;lt;param /&gt;
&amp;lt;param /&gt;
&amp;lt;/object&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-05-22:54</id>
    <published>2009-05-22T22:00:00Z</published>
    <updated>2009-05-25T06:02:47Z</updated>
    <category term="37signals"/>
    <category term="business"/>
    <category term="dhh"/>
    <category term="vedio"/>
    <link href="http://leeseon.com/2009/5/22/david_heinemeier_hansson_at_startup_school_08" rel="alternate" type="text/html"/>
    <title>David Heinemeier Hansson at Startup School 08 </title>
<content type="html">
            &amp;lt;object&gt;&amp;lt;param /&gt;&amp;lt;param /&gt;&amp;lt;param /&gt;&amp;lt;param /&gt;&amp;lt;param /&gt;&amp;lt;/object&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-04-24:52</id>
    <published>2009-04-24T10:01:00Z</published>
    <updated>2009-05-25T05:17:30Z</updated>
    <category term="from"/>
    <category term="mail"/>
    <category term="proxy"/>
    <category term="rising"/>
    <category term="send"/>
    <link href="http://leeseon.com/2009/4/24/email_send_successed_but_never_get_it" rel="alternate" type="text/html"/>
    <title>&#37038;&#20214;&#21457;&#36865;&#25552;&#31034;&#25104;&#21151;&#65292;&#20294;&#26159;&#26080;&#27861;&#25509;&#25910;</title>
<content type="html">
            &lt;p&gt;自己写了一段发送邮件的客户端程序，一直运行良好。可是某天开始，程序发送能提示成功，但是一直接收不到，深感诧异。将笔记本带回家中，程序又运行良好。第二天上班，发现问题依旧。&lt;/p&gt;


	&lt;p&gt;随决定使用最原始的telnet命令查看问题原因，命令如下&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
16:52:22 [rx] 220 XXX.com ESMTP(EQManager V6.0) ESMTP
16:52:22 [tx] EHLO computer1
16:52:22 [rx] 250-XXX.com ESMTP(EQManager V6.0)
16:52:22 [rx] 250-STARTTLS
16:52:22 [rx] 250-AUTH LOGIN PLAIN
16:52:22 [rx] 250-AUTH=LOGIN PLAIN
16:52:22 [rx] 250-PIPELINING
16:52:22 [rx] 250-SIZE 25530692
16:52:22 [rx] 250 8BITMIME
16:52:22 [tx] AUTH LOGIN
16:52:22 [rx] 334 VXNlcm5hbWU6
16:52:22 [tx] e===========
16:52:22 [rx] 334 UGFzc3dvcmQ6
16:52:22 [tx] N===========
16:52:22 [rx] 235 ok, go ahead (#2.0.0)
16:52:22 [tx] MAIL FROM: &amp;lt;account@XXX.com&amp;gt;
16:52:22 [rx] 250 ok
16:52:22 [tx] RCPT TO: &amp;lt;account@sina.com&amp;gt;
16:52:22 [rx] 250 ok
16:52:22 [tx] DATA
16:52:22 [rx] 354 Send from Rising mail proxy
16:52:22 [tx] 
.
&lt;/pre&gt;

	&lt;p&gt;执行完DATA命令，发送结束符，然后等待从服务器的信息，等待足够长的时间后，系统提示超时。
邮件一直发送不成功。看到DATA命令紧跟着 Send from Rising mail proxy，猜测可能与瑞星
防毒软件有关，之后关闭了瑞星，再次发送，ok，一切正常，所有命令没有任何问题。DATA命令
也能返回响应，但是登录sina还是接受不到。考虑到网络延时，又等待了20分钟，还是接受不到。
至此黔驴技穷，无计可施了。遂放弃，回家休息了。&lt;/p&gt;


	&lt;p&gt;第二日上班后，登录sina，一下接收了n多封信，至此我的问题解决。&lt;/p&gt;


	&lt;p&gt;究其原因
1.确实是瑞星杀毒软件导致邮件接收不到。因为安装的是网络版，所以回家就关闭了瑞星，到公司
才打开，解释了为什么在家可以发送成功，而在公司不成功。
2.sina信箱使用的是免费信箱，上网查找，发现不止我一人，很多使用sina免费信箱的用户都抱怨
邮件接收延时大，夸张的需要隔一天才可以接收到，可能和他的服务器繁忙有关，当然也可能是不重视
免费的用户。&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-03-28:48</id>
    <published>2009-03-28T18:33:00Z</published>
    <updated>2009-04-02T17:03:57Z</updated>
    <category term="dhh"/>
    <category term="dream"/>
    <category term="education"/>
    <category term="time"/>
    <category term="&#32763;&#35793;"/>
    <link href="http://leeseon.com/2009/3/28/there_is_always_time_to_launch_your_dream" rel="alternate" type="text/html"/>
    <title>&#24635;&#20250;&#26377;&#26102;&#38388;&#26469;&#23454;&#29616;&#20320;&#30340;&#26790;&#24819;</title>
<content type="html">
            &lt;blockquote&gt;
		&lt;p&gt;“I’d love to start a company / become a great programmer / write an awesome blog, but there’s just not enough time in the day!” Bullshit. There’s always enough time, you’re just not spending it right.&lt;/p&gt;
	&lt;/blockquote&gt;


看到了&lt;a href=&quot;http://www.loudthinking.com/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;DHH&lt;/span&gt;&lt;/a&gt; 的这篇&lt;a href=&quot;http://www.37signals.com/svn/posts/1619-theres-always-time-to-launch-your-dream&quot;&gt;post&lt;/a&gt; 当时感触就很深，本想译出来偏不得闲，恰今天遇一事忆起且又有闲，试译一下，原文就很简单本不需译，纯当练手好玩尔;)
&lt;blockquote&gt;&lt;p&gt;“I’d love to start a company / become a great programmer / write an awesome blog, but there’s just not enough time in the day!” Bullshit. There’s always enough time, you’re just not spending it right.&lt;/p&gt;

	&lt;p&gt;Now that’s some tough love, but I’m sick and tired of hearing “no time” as an excuse for why you can’t be great. It really doesn’t take that much time to get started, but it does take wanting it really bad. Most people just doesn’t want it bad enough and protect their ego with the excuse of time.&lt;/p&gt;


	&lt;p&gt;This excuse is particularly depressing when it comes from students. Oh, I have so many classes. Oh, I have so much home work. There’s simply no time to learn outside of school. Then you’re doing it wrong!&lt;/p&gt;


	&lt;p&gt;Never let your schooling interfere with your education, someone clever once said. Being willing to sacrifice at the edges is one of the most important skills you’ll ever learn.&lt;/p&gt;


	&lt;p&gt;I’ve received plenty of Bs and even Cs for classes that I was incredibly proud of because they came from hardly no time spent at all. Time that I could then spend on reading my own curriculum, starting my own projects, and running my own businesses.&lt;/p&gt;


	&lt;p&gt;And I did. During my undergrad, I created Instiki, Rails, Basecamp, and got on the path to being a partner at 37signals. Do you think I could fit all that and still get straight As and have lots of time left over for playing World of Warcraft? No.&lt;/p&gt;


	&lt;p&gt;If you want it bad enough, you’ll make the time, regardless of your other obligations. Don’t let yourself off the hook with excuses. It’s too easy and, to be honest, nobody cares on the other side.&lt;/p&gt;


&lt;p&gt;It’s entirely your responsibility to make your dreams come through.
&lt;/p&gt;&lt;/blockquote&gt;

	&lt;p&gt;“我非常希望开一家公司/成为一个伟大的程序员/写一篇令人惊叹博客，但是没有足够的时间！”屁话。总有足够的时间，你只是没有正确使用！&lt;/p&gt;


	&lt;p&gt;爱之深责之切吧，现我已经十分厌倦听到以“没有时间”作为自己为何不足够强大的借口。不需要太多时间就可以开始，但这取决于是否真的非常想要。大多数人并不是真的足够想要，仅仅是拿时间作为自我开脱的借口而已。&lt;/p&gt;


	&lt;p&gt;尤其是听到学生说出这个借口时，会特别令人沮丧。“噢，我有这么多课。噢，我有那么多的家庭工作。有根本没有时间学习的学校以外的东西。”你错了！&lt;/p&gt;


	&lt;p&gt;绝不让学业干扰了您的教育，曾有智者如是说。为了取得优势情愿付出是你需要学习的最重要技能之一。&lt;/p&gt;


	&lt;p&gt;我的成绩曾得过大量的B，甚至还有C，但我仍然为此非常自豪，因为我几乎没有时间管它们。当时我的时间都花在阅读自己的课程，开始自己的项目，并运行自己的业务上了。&lt;/p&gt;


	&lt;p&gt;我做到了。在我大学阶段，我创建Instiki ，Rails，BaseCamp，并走上了37signals合伙人之路。那么你会认为我能搞定上面所说的这一切，并有很多时间来魔兽世界？No&lt;/p&gt;


	&lt;p&gt;如果你真的非常想要，无论怎样你都会抽出时间。不要拿借口来开脱。这是太容易了，并坦率地说，别人鬼在乎你这些。&lt;/p&gt;


	&lt;p&gt;让你梦想成真完全你自己的责任。&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-03-10:47</id>
    <published>2009-03-10T16:34:00Z</published>
    <updated>2009-03-10T16:43:20Z</updated>
    <category term="dhh"/>
    <category term="dream"/>
    <category term="good blog"/>
    <category term="&#26790;&#24819;"/>
    <link href="http://leeseon.com/2009/3/10/there_is_always_time_to_launch_your_dream_if_it_is_your_real_dream" rel="alternate" type="text/html"/>
    <title>&#24635;&#20250;&#26377;&#26102;&#38388;&#26469;&#23454;&#29616;&#33258;&#24049;&#30340;&#26790;&#24819;&#65292;&#22914;&#26524;&#37027;&#30495;&#30340;&#26159;&#20320;&#30340;&#26790;&#24819;&#30340;&#35805;</title>
<content type="html">
            &lt;p&gt;看来DHH是在厌倦了别人向他抱怨，或者是什么刺激之后吧，说出了一个真理，虽然是大白话，但是听上去还是让人不得不深思一番，这不，俺虽然也困得不行，也只好上来先发个post占个位先，等醒了之后再好好品读一下。志之&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-02-17:38</id>
    <published>2009-02-17T18:52:00Z</published>
    <updated>2009-05-10T17:17:17Z</updated>
    <category term="data migrate"/>
    <category term="dreamhost"/>
    <category term="export"/>
    <category term="mysql"/>
    <category term="rails"/>
    <category term="sqlite3"/>
    <link href="http://leeseon.com/2009/2/17/export_mysql_data_to_sqlite3_for_rails" rel="alternate" type="text/html"/>
    <title>&#23558;mysql&#25968;&#25454;&#23548;&#20837;&#21040;sqlite&#20013;</title>
<content type="html">
            &lt;p&gt;自&lt;a href=&quot;http://www.rubyonrails.org&quot;&gt;rails&lt;/a&gt; 2.0将默认配置的数据库改成&lt;a href=&quot;http://www.sqlite.org&quot;&gt;sqlite&lt;/a&gt; 之后，我才真的开始使用这个&#8221;self-contained, serverless, zero-configuration, transactional&#8221;小巧，轻便的嵌入式的数据库、、、以下省去 溢美之词n多字&lt;/p&gt;


	&lt;p&gt;不对sqlite对我来说最大的好处就是不用安装与启动服务，完全就是一个绿色版，只要拷贝过来，放在路径之下就能直接使用了，而且数据库也就是一个文件也是可以随身携带的&lt;/p&gt;


	&lt;p&gt;如果不喜欢二进制文件也可以将数据转成文本，命令如下：&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
sqlite3 dbfile.sqlite3 &amp;quot;.dump&amp;quot; &amp;gt; sqlite3db.sql
&lt;/pre&gt;

	&lt;p&gt;不过我倒是没有试过在生产环境中使用它，平时在开发与测试时才使用，因此需要将一些mysql中的数据导入到我本地的sqlite3中&lt;/p&gt;


自然是先google之，看到一个比较直白的&lt;a href=&quot;http://www.dangarland.co.uk/2008/09/27/exporting-mysql-data-into-sqlite3/&quot;&gt;解决方案&lt;/a&gt; 它使用mysqldump导出sql语句并从中仅grep(提取)出insert语句，然后在使用
&lt;pre class=&quot;blackboard&quot;&gt;
rake db:create
rake db:migrate
&lt;/pre&gt;
之后用
&lt;pre class=&quot;blackboard&quot;&gt;
sqlite3 dbfile.sqlite3 &amp;lt; backup.sql
&lt;/pre&gt;
将数据导入到sqlite3中

	&lt;p&gt;不过其中有一点小问题：正如文中所说，mysql与sqlite3的转义符并不一致，&lt;code&gt;除了需要将\'转成''(两个单引号)之外，还需要将&quot;\r&quot;(0x5c0x72)与&quot;\n&quot;(0x5c0x6e)转成\r(0x0d)\n(0x0a)，此外\&quot;也是需要转成&quot;(双引号)的&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;并且文中的替换方法是使用编辑器手工替换的，这点与我懒惰的习惯实在是不符，还是用sed来自动化一下吧！最终拼成一个脚本如下：&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
#!/bin/sh
mysqldump  --opt --no-create-db --no-create-info --default-character-set=utf8 --extended-insert=0 -u user -ppassword database \
| grep 'INSERT' \
| sed -e &amp;quot;s/\\\'/''/g&amp;quot; -e &amp;quot;s/\\\r/\r/g&amp;quot; -e &amp;quot;s/\\\n/\n/g&amp;quot; -e 's/\\\&amp;quot;/&amp;quot;/g' &amp;gt; backup.sql
&lt;/pre&gt;

	&lt;p&gt;如果你需要每天将服务器上的数据备份并应用在日常的开发中的话，可以参考上次所写的&lt;a href=&quot;/2009/1/24/daily_backup_dreamhost_mysql_database_to_gmail&quot;&gt;DreamHost每日mysql数据库备份方案&lt;/a&gt; 将上面这段合并到&lt;a href=&quot;http://www.dreamhost.com/r.cgi?282910&quot;&gt;Dreamhost&lt;/a&gt; 的cron任务中&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-02-14:37</id>
    <published>2009-02-14T21:09:00Z</published>
    <updated>2009-02-14T21:17:20Z</updated>
    <category term="Interesting"/>
    <category term="interesting"/>
    <category term="Ruby"/>
    <category term="ruby"/>
    <category term="time zone"/>
    <category term="unix time"/>
    <category term="valentine's day"/>
    <category term="&#24773;&#20154;&#33410;"/>
    <link href="http://leeseon.com/2009/2/14/an_interesting_unix_time_just_at_valentines_day" rel="alternate" type="text/html"/>
    <title>&#26377;&#36259;&#30340;&#24773;&#20154;&#33410;&#26102;&#38388;&#23494;&#30721;</title>
<content type="html">
            &lt;pre class=&quot;blackboard&quot;&gt;
&lt;span class=&quot;Keyword&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;rubygems&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Keyword&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;active_support&lt;span class=&quot;String&quot;&gt;'&lt;/span&gt;&lt;/span&gt;

&lt;span class=&quot;Support&quot;&gt;Time&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;at&lt;/span&gt; &lt;span class=&quot;Constant&quot;&gt;1234567890&lt;/span&gt; &lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; =&amp;gt; Sat Feb 14 07:31:30 +0800 2009&lt;/span&gt;

&lt;span class=&quot;Support&quot;&gt;Time&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;zone&lt;/span&gt; &lt;span class=&quot;Keyword&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;String&quot;&gt;&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;Beijing&lt;span class=&quot;String&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; =&amp;gt; &amp;quot;Beijing&amp;quot;&lt;/span&gt;

&lt;span class=&quot;Support&quot;&gt;Time&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;zone&lt;/span&gt;.&lt;span class=&quot;Entity&quot;&gt;at&lt;/span&gt; &lt;span class=&quot;Constant&quot;&gt;1234567890&lt;/span&gt; &lt;span class=&quot;Comment&quot;&gt;&lt;span class=&quot;Comment&quot;&gt;#&lt;/span&gt; =&amp;gt; Sat, 14 Feb 2009 07:31:30 CST +08:00&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;可惜今天一天都在加班，早上6:30才回，倒头就睡了，在不知不觉中就已经错过了这个有趣时间:(&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-01-24:36</id>
    <published>2009-01-24T07:49:00Z</published>
    <updated>2009-04-02T17:18:09Z</updated>
    <category term="backup"/>
    <category term="dreamhost"/>
    <category term="gmail"/>
    <category term="mysql"/>
    <link href="http://leeseon.com/2009/1/24/daily_backup_dreamhost_mysql_database_to_gmail" rel="alternate" type="text/html"/>
    <title>DreamHost&#27599;&#26085;mysql&#25968;&#25454;&#24211;&#22791;&#20221;&#26041;&#26696;</title>
<content type="html">
            &lt;p&gt;因为&lt;a href=&quot;http://www.dreamhost.com/r.cgi?282910&quot;&gt;DreamHost&lt;/a&gt; 本身就提供了数据库的备份功能，尤其是象我这样更新不多blog数据也不多:( 一般出了问题restore一下就行了。&lt;/p&gt;


不过前几天我犯了一个相当低级的错误，执行了一次
&lt;pre&gt;&lt;code&gt;rake db:reset&lt;/code&gt;&lt;/pre&gt;

谁知&lt;a href=&quot;http://www.dreamhost.com/r.cgi?282910&quot;&gt;DreamHost&lt;/a&gt; 居然只能在命令行中执行
&lt;pre&gt;&lt;code&gt;drop database&lt;/code&gt;&lt;/pre&gt;
却不能执行
&lt;pre&gt;&lt;code&gt;create database&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;再去找panel里的数据库还在，但是restore居然提示没有任何内容，也不知出了什么事，只好发邮件问support.,但是网页总不能总是空的啊，好在幸好前几天为&lt;a href=&quot;http://leeseon.com/2009/1/2/port_inove_wordpress_theme_to_mephisto&quot;&gt;移植一个WordPress下的theme&lt;/a&gt; 导了一份数据出来，换了个数据改了database.yml就搞定了&lt;/p&gt;


	&lt;p&gt;只好亡羊补牢google了一下，自然是有现成的方案的，只是因为我想使用gmail来作为接受邮箱，但是gmail会拒收tar.gz, zip之类的文件，我修改了一下使用rar来打包，脚本如下：&lt;/p&gt;


&lt;pre class=&quot;blackboard&quot;&gt;
#!/bin/bash
cd /home/yourname/backups/ 
mkdir mysql 
suffix=$(date +%y%m%d)
mysqldump --opt --default-character-set=utf8 -uyourname -ppassword -h yourhost.com database | sed &amp;quot;s/\\\'/''/g&amp;quot; &amp;gt; mysql/database.$suffix.sql
rar a archives/mysql_backup.$suffix.rar -r mysql/*
rm -r mysql/
mutt youname@gmail.com -a /home/yourname/backups/archives/mysql_backup.$suffix.rar -s &amp;quot;MySQL Backup&amp;quot;
&lt;/pre&gt;

	&lt;p&gt;其中，mysqldump之后需要加上&#8212;default-character-set=utf8 而且再一个sed &#8220;s/\\\&#8217;/&#8217;&#8217;/g&#8221; 通道比较好，这样导出的文件会将\&#8217;替成&#8221;看起来比较方便&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-01-02:35</id>
    <published>2009-01-02T18:36:00Z</published>
    <updated>2009-01-10T01:03:49Z</updated>
    <category term="just for fun"/>
    <category term="port"/>
    <category term="wordpress theme"/>
    <link href="http://leeseon.com/2009/1/2/port_inove_wordpress_theme_to_mephisto" rel="alternate" type="text/html"/>
    <title>&#33258;&#24049;&#31227;&#26893;&#20102;&#19968;&#20010;&#27604;&#36739;&#21916;&#27426;&#30340;wordpress&#20027;&#39064;&#29992;&#29992;</title>
<content type="html">
            &lt;p&gt;一直垂涎于Wordpress有很多好看的theme可以用，mephisto这两年的更新与发展也太慢了，看来rails的blog系统，相对于PHP来说还真的有一些小众的感觉。&lt;/p&gt;


	&lt;p&gt;等着别人port我看基本是没戏，自己动手吧，虽然不难，但是有一点啰嗦，加上我的CSS知识也很一般，好在做port这种事其实与CSS基本无关，对于mephisto来说，其实要了解的主要是liquid与mephisto自己的一点变量而已。&lt;/p&gt;


	&lt;p&gt;截了以前的样子，留个记录吧&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://www.slide.com/s/Zm5xneBv1z8bWbV7FtDfAKCYPCJl5_u0?referrer=hlnk&quot;&gt;&lt;img title=&quot;免费无限存放图片在slide.com!&quot; src=&quot;http://widget.slide.com/rdr/1/1/1/W/250000000c9da7f3/1/231/z_ZiBIoh6T-vmw_b8qKm1ZZWrx3ijB2n.jpg&quot; alt=&quot;免费无限存放图片在slide.com!&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2009-01-01:34</id>
    <published>2009-01-01T13:27:00Z</published>
    <updated>2009-01-01T13:47:41Z</updated>
    <category term="new year"/>
    <category term="wish"/>
    <category term="&#23637;&#26395;"/>
    <category term="&#24863;&#24819;"/>
    <category term="&#24895;&#26223;"/>
    <link href="http://leeseon.com/2009/1/1/wishes_in_the_new_year" rel="alternate" type="text/html"/>
    <title>&#26032;&#24180;&#26032;&#27668;&#35937;</title>
<content type="html">
            &lt;p&gt;2008年混杂着奥运的狂喜与自然灾害及金融危机呼啸而过，时间真的是过的越来越快，果然是：”我觉察他去的匆匆了，伸出手遮挽时，他又从遮挽着的手边过去“。&lt;/p&gt;


	&lt;p&gt;此去经年是我最爱在元旦时留下的标题，而今又是“流光容易把人抛，红了樱桃，绿了芭蕉“了、、、然掩而叹息亦不能改变我又老去了一岁，在过去的一年中我又一事无成的事实。&lt;/p&gt;


	&lt;p&gt;看来历史总是重复的基本上也是对的吧，不过人总会不满足于现状，在回首看看逝去的一年，心中不由的生出的恐惧与懊恼，追悔不及自然是有的，但是后悔是不能解决问题的，真的问题是需要解决问题，让自己成长，能在自己曾经的时光废墟中立起来，也算是新年新气象吧。&lt;/p&gt;


	&lt;p&gt;特此立酸文志之，只需要在明年的元旦再看时不再心中有悔，此愿足矣！&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://leeseon.com/">
    <author>
      <name>leeseon</name>
    </author>
    <id>tag:leeseon.com,2008-11-19:31</id>
    <published>2008-11-19T16:08:00Z</published>
    <updated>2008-11-24T13:08:43Z</updated>
    <category term="apple advertisement"/>
    <category term="mac"/>
    <link href="http://leeseon.com/2008/11/19/so_cool_apple_advertisement" rel="alternate" type="text/html"/>
    <title>&#22826;&#37239;&#30340;&#24191;&#21578;&#20102;</title>
<content type="html">
            &amp;lt;object&gt;
&amp;lt;param /&gt;
&amp;lt;/object&gt;
          </content>  </entry>
</feed>
