<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.2years.net/styles/feedsky1.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.2years.net" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/2Years" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 01 Mar 2011 18:47:29 GMT</lastBuildDate><title>2 Years</title><description>两年时间，沧海桑田</description><link>http://2years.net</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Thu, 26 Jan 2012 21:06:27 GMT</pubDate><image><title>2 Years</title><url>http://0.gravatar.com/avatar/9d856527e38dae9cb8a48f6c12442deb.png?s=48</url><link>http://2years.net</link></image><item><title>山头里的一年</title><link>http://2years.net/2011/03/02/one-year-in-kingsoft/</link><content:encoded>&lt;p&gt;有座山叫金山，里面有个山头叫WPS，最近这个山头里出现了很多生面孔，透过他们的眼睛可以看见好奇，憧憬，还有迷惘，一如一年前的我。是的，今天是三月一号，我在这个山头已经混了整整一年了。（好吧，我知道现在已经是2号了，懒散的毛病还是没改掉啊，拖着拖着就到半夜了）。&lt;/p&gt;
&lt;p&gt;审视下这一年给自己带来的变化，现在虽然不能说自己已经成了个完全的职业人，但也绝不是以前那个单纯懵懂而又伪装成熟的学生了。毕竟刚过去的这一年，也是充满了各种风波的一年，经历了大大小小的各种离合聚散，懂得了一些事，也看淡了一些事。3个项目组，4任老大，交织着激情与空虚，再铺垫着一个共同的主题：离别，这就是这一年的大体脉络。以下这个流水帐，就瑾作为对逝去时光的一个祭奠吧。&lt;/p&gt;
&lt;p&gt;去年这个时候，从家里长度跋涉，飘洋过海来到了珠海。到了新的环境，自然也认识了许多新的人。别人是一面镜子，能让人更清楚得看清自己，以前在学校里的一点小得意迅速抛开了去。在几百号人的大团队里，人外有人自不是一句空话，时时不敢相忘。&lt;/p&gt;
&lt;p&gt;我加入的第一个项目组是在线表格，老大就是校召时给了我offer的峰哥。说到峰哥，他是我相当佩服的一个技术人。无论对于技术的精研还是对于工作的敬业程度，都曾经让我感慨过。事实上那段时间是我提高最快的时候，也是最有激情的时候，而我能引以为豪的一点成果，也基本是在那时做出来的。抛开业务不说，从技术角度上讲，在线表格这个项目很合我的胃口，即能接触到WPS前辈们留下的精华，也能从无到有创造出属于自己的东西。得益于老大给与的充分信任，我基本独立完成了服务器后台支撑框架的设计和实现，对python和网络编程的理解大大加深了。那时半夜三更躺在实习宿舍的床上，想通了某个关键点时的兴奋劲还一直记忆犹新。上帝也很公平，有了耕耘自然有了收获，无论是提前转正的资格还是漂亮的绩效，都是那段拼命的时光换来的。&lt;/p&gt;
&lt;p&gt;到了9月份，一件事给了我们这些刚毕业的小白们一个当头棒喝，这就是转正评审。从没想过转正评审会这么严格，头一天还在一起吃喝玩乐的兄弟，第二天却只能送他们离开这个给了他们梦想却又无情地收了回去的地方。之前的豪言壮语忽然显得那么苍白，准备拿自己青春浇灌的公司忽然显得那么陌生。从那时起，对公司的感情已然发生了微妙的变化。&lt;/p&gt;
&lt;p&gt;那段时间从来不缺乏激情，公司组织了一场员工技能大赛，我和PZF,DJ三人组了个小队。各种加班加点、熬夜乃至通宵，换来了一堆奖状、证书，也换来了一点零花钱。话说，我从小学以后就没啥比赛获过奖了呢。&lt;/p&gt;
&lt;p&gt;世上从没有一帆风顺的事，在线表格项目也始终伴随着危机。去年下半年，公司对于在线办公的发展方向开始举棋不定，在线表格的存留已然也成了问题。峰哥被调去支援别的项目组，我的老大也换成了第二个人，涛哥。涛哥的敬业程度比之峰哥可以说有过之而无不及，如果周末里只能找到一个人在加班，那么必然就是涛哥无疑。那时我也很纠结，项目前景是一方面，谁不想看到自己的孩子能茁壮成长，但确实种种无力。另一方面，我也受够了独自摸索的日子，感受到了瓶颈，渴望着另一个大型架构能给我一些启发。这时，我的第三个老大向我伸出了橄榄枝。&lt;/p&gt;
&lt;p&gt;我的下一个组是快盘的搜索组，老大是小海南同学。小海南是一个很有个性的女子，对工作的安排有着女人特有的仔细缜密，但也从不优柔寡断。那一个月中，我经历着从python转到java的镇痛期，每天干的更多的是阅读代码和资料，确实没干多少事。紧接着，又一轮公司的风暴袭来了，业务大调整，又有许多朋友纷纷离开，而我刚调到的组也没了，抉择的困境又摆在我的面前。&lt;/p&gt;
&lt;p&gt;所幸此时我的第四个老大聪哥拉了一把，我加入了他的私有云新项目组。毕竟我最爱的方向还是服务器开发技术，如果没有这个项目，那么我面临的处境就相当尴尬。聪哥不但是技术大牛，带人也很有一套。在这段不长的时间里 ，经历了开始的磨合期，我也开始渐渐找回了以前的激情。&lt;/p&gt;
&lt;p&gt;不管怎么样，这一年，就这样一步步走过来了，虽然有曲折，有悔恨。我遇见的匆匆过客，会在我的记忆里有一席之地的。继续走下去吧，不要停，也不能停。&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;boost::enable_shared_from_this的部分实现研究&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F24%2Ffucking-wps%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;蛋疼的WPS&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408381/2Years/feedsky/s.gif?r=http://2years.net/2011/03/02/one-year-in-kingsoft/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2011/03/02/one-year-in-kingsoft/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>有座山叫金山，里面有个山头叫WPS，最近这个山头里出现了很多生面孔，透过他们的眼睛可以看见好奇，憧憬，还有迷惘，一如一年前的我。是的，今天是三月一号，我在这个山头已经混了整整一年了。（好吧，我知道现在已经是2号了，懒散的毛病还是没改掉啊，拖着拖着就到半夜了）。 审视下这一年给自己带来的变化，现在虽然不能说自己已经成了个完全的职业人，但也绝不是以前那个单纯懵懂而又伪装成熟的学生了。毕竟刚过去的这一年，也是充满了各种风波的一年，经历了大大小小的各种离合聚散，懂得了一些事，也看淡了一些事。3个项目组，4任老大，交织着激情与空虚，再铺垫着一个共同的主题：离别，这就是这一年的大体脉络。以下这个流水帐，就瑾作为对逝去时光的一个祭奠吧。 去年这个时候，从家里长度跋涉，飘洋过海来到了珠海。到了新的环境，自然也认识了许多新的人。别人是一面镜子，能让人更清楚得看清自己，以前在学校里的一点小得意迅速抛开了去。在几百号人的大团队里，人外有人自不是一句空话，时时不敢相忘。 我加入的第一个项目组是在线表格，老大就是校召时给了我offer的峰哥。说到峰哥，他是我相当佩服的一个技术人。无论对于技术的精研还是对于工作的敬业程度，都曾经让我感慨过。事实上那段时间是我提高最快的时候，也是最有激情的时候，而我能引以为豪的一点成果，也基本是在那时做出来的。抛开业务不说，从技术角度上讲，在线表格这个项目很合我的胃口，即能接触到WPS前辈们留下的精华，也能从无到有创造出属于自己的东西。得益于老大给与的充分信任，我基本独立完成了服务器后台支撑框架的设计和实现，对python和网络编程的理解大大加深了。那时半夜三更躺在实习宿舍的床上，想通了某个关键点时的兴奋劲还一直记忆犹新。上帝也很公平，有了耕耘自然有了收获，无论是提前转正的资格还是漂亮的绩效，都是那段拼命的时光换来的。 到了9月份，一件事给了我们这些刚毕业的小白们一个当头棒喝，这就是转正评审。从没想过转正评审会这么严格，头一天还在一起吃喝玩乐的兄弟，第二天却只能送他们离开这个给了他们梦想却又无情地收了回去的地方。之前的豪言壮语忽然显得那么苍白，准备拿自己青春浇灌的公司忽然显得那么陌生。从那时起，对公司的感情已然发生了微妙的变化。 那段时间从来不缺乏激情，公司组织了一场员工技能大赛，我和PZF,DJ三人组了个小队。各种加班加点、熬夜乃至通宵，换来了一堆奖状、证书，也换来了一点零花钱。话说，我从小学以后就没啥比赛获过奖了呢。 世上从没有一帆风顺的事，在线表格项目也始终伴随着危机。去年下半年，公司对于在线办公的发展方向开始举棋不定，在线表格的存留已然也成了问题。峰哥被调去支援别的项目组，我的老大也换成了第二个人，涛哥。涛哥的敬业程度比之峰哥可以说有过之而无不及，如果周末里只能找到一个人在加班，那么必然就是涛哥无疑。那时我也很纠结，项目前景是一方面，谁不想看到自己的孩子能茁壮成长，但确实种种无力。另一方面，我也受够了独自摸索的日子，感受到了瓶颈，渴望着另一个大型架构能给我一些启发。这时，我的第三个老大向我伸出了橄榄枝。 我的下一个组是快盘的搜索组，老大是小海南同学。小海南是一个很有个性的女子，对工作的安排有着女人特有的仔细缜密，但也从不优柔寡断。那一个月中，我经历着从python转到java的镇痛期，每天干的更多的是阅读代码和资料，确实没干多少事。紧接着，又一轮公司的风暴袭来了，业务大调整，又有许多朋友纷纷离开，而我刚调到的组也没了，抉择的困境又摆在我的面前。 所幸此时我的第四个老大聪哥拉了一把，我加入了他的私有云新项目组。毕竟我最爱的方向还是服务器开发技术，如果没有这个项目，那么我面临的处境就相当尴尬。聪哥不但是技术大牛，带人也很有一套。在这段不长的时间里 ，经历了开始的磨合期，我也开始渐渐找回了以前的激情。 不管怎么样，这一年，就这样一步步走过来了，虽然有曲折，有悔恨。我遇见的匆匆过客，会在我的记忆里有一席之地的。继续走下去吧，不要停，也不能停。&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&amp;from=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;推荐一个新的JMX-HTTP桥接器：Jolokia&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408381/2Years/feedsky/s.gif?r=http://2years.net/2011/03/02/one-year-in-kingsoft/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>金山</category><category>Jobs</category><pubDate>Wed, 02 Mar 2011 02:47:29 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2011/03/02/one-year-in-kingsoft/#comments</comments><guid isPermaLink="false">http://2years.net/?p=59</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2011/03/02/one-year-in-kingsoft/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408381/6609908</fs:itemid></item><item><title>更改了Blog的Feed地址:feed.2years.net</title><link>http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/</link><content:encoded>&lt;p&gt;以前这个Blog的文章发布都是烧录到FeedBurner上，无奈现在FeedBurner已经被GFW大神彻底艹翻，一个个的Connection Reset只能逼我另作选择了。现在转投到了FeedSky，确实没有以前的爽，一篇文章发布半天了，FeedSky还没有抓到。&lt;/p&gt;
&lt;p&gt;现在学乖了，不再用FeedSky提供的地址，还是用自己域名保险。毕竟是独立Blog，Blog在域名就不变，RSS也不会变。哪天FeedSky倒了，重新绑下域名就行。&lt;/p&gt;
&lt;p&gt;新的Feed地址：&lt;/p&gt;
&lt;h1&gt;&lt;a href=&quot;http://feed.2years.net&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;http://feed.2years.net&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;山头里的一年&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;boost::enable_shared_from_this的部分实现研究&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408382/2Years/feedsky/s.gif?r=http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>以前这个Blog的文章发布都是烧录到FeedBurner上，无奈现在FeedBurner已经被GFW大神彻底艹翻，一个个的Connection Reset只能逼我另作选择了。现在转投到了FeedSky，确实没有以前的爽，一篇文章发布半天了，FeedSky还没有抓到。 现在学乖了，不再用FeedSky提供的地址，还是用自己域名保险。毕竟是独立Blog，Blog在域名就不变，RSS也不会变。哪天FeedSky倒了，重新绑下域名就行。 新的Feed地址： http://feed.2years.net&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;山头里的一年&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;boost::enable_shared_from_this的部分实现研究&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408382/2Years/feedsky/s.gif?r=http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>SiteLog</category><pubDate>Mon, 06 Dec 2010 17:02:19 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/#comments</comments><guid isPermaLink="false">http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/12/06/%e6%9b%b4%e6%94%b9%e4%ba%86blog%e7%9a%84feed%e5%9c%b0%e5%9d%80feed-2years-net/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408382/6609908</fs:itemid></item><item><title>推荐一个新的JMX-HTTP桥接器：Jolokia</title><link>http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/</link><content:encoded>&lt;p&gt;最近公司的一个基于Java的项目要进行监控和管理方面的改造，使用JMX基本是唯一的选择，这已经是标准了。但在构建监控管理系统时，还是遇到了相当多的问题，譬如在监控管理界面的打造上。&lt;/p&gt;
&lt;p&gt;现在还真没有一个好用的支持JMX的通用监控管理界面解决方案，诸如Cacti、zenoss等只对JMX提供了很有限的支持，重心还是放在了SNMP监控上。而jManage这样的专精JMX的也相当老迈，被华丽Flash图表惯坏的我们也实在无法回头接受这样的Web1.0界面。说到底，通用意味着臃肿和低效，打造一个能随需求快速变化的专有系统或许是更好的选择。适应快速变化这一条，还用Java就基本做不到，所以我倾向于使用Python等动态语言打造这个界面。那么在这样的一个混搭系统之中，界面与JMX Agent之间的通信又是一个问题。&lt;/p&gt;
&lt;p&gt;MX4J和JDMK等JMX实现提供了一系列符合JSR-160标准的Connector，但基于RMI和JMXMP的Connector只适用于纯Java系统内，而基于SOAP等WebService的又太过臃肿，但我发现了另一个好用的东东，即本文的主角：Jolokia（官方网站：&lt;a href=&quot;http://www.jolokia.org&quot;&gt;http://www.jolokia.org&lt;/a&gt;）。Jolokia实现了将JMX Agent提供的服务以HTTP接口暴露出来，使用Json作为通讯格式，并且还做了一定的扩展，如支持批量操作等等。&lt;/p&gt;
&lt;p&gt;要注意到的是，Jolokia是一个JMX-HTTP Bridge，即桥接器，而不是一个Connector。这就是说，现在不需要也不能像以前那样通过一段代码创建一个Connector并跟MBeanServer绑起来。那么要怎么使用Jolokia呢？这就引出了Jolokia的一大奇妙特性：完全非侵入性的设计。Jololia提供了一个war文件和一个jar包，如果要对现有的应用服务器或者Servlet容器如WebLogic、Tomcat、Jetty等加入JMX的HTTP协议支持，只需要部署这个war文件即可。而如果要扩展普通的Java程序，那么只需要在启动程序时加入一个参数，如-javaagent:/opt/library/jolokia-jvm-jdk6-0.80-agent.jar即可（要求JRE6，因为Jolokia用到了JRE6自带的HTTP服务器）。后者用到了javaagent机制，直接拦截了对MBeanServer的调用。&lt;/p&gt;
&lt;p&gt;通过Jolokia，我们就可以对现有的所有支持JMX的Java程序都加入对HTTP和Json的支持，而且没有副作用。读取一个MBean的属性，就是调用一个如&lt;a href=&quot;http://localhost:8080/jolokia/java.lang:type=Memory/HeapMemoryUsage/used&quot;&gt;http://localhost:8080/jolokia/java.lang:type=Memory/HeapMemoryUsage/used&lt;/a&gt;的URL。除了Read，Jolokia也支持Write，Exec，List，Search操作，读写属性，调用操作，列出信息，该有的都有了。更详细的操作请查阅Jolokia的官方文档：&lt;a href=&quot;http://www.jolokia.org/documentation.html&quot;&gt;http://www.jolokia.org/documentation.html&lt;/a&gt;。以HTTP格式发布JMX也带来的别的好处，如防火墙穿透性等等。&lt;/p&gt;
&lt;p&gt;Jolokia还是一个快速发展的项目，现在作者十分活跃。不过现在Jolokia的文档还比较欠缺，我会继续带来别的教程。&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F24%2Ffucking-wps%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;蛋疼的WPS&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408383/2Years/feedsky/s.gif?r=http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>最近公司的一个基于Java的项目要进行监控和管理方面的改造，使用JMX基本是唯一的选择，这已经是标准了。但在构建监控管理系统时，还是遇到了相当多的问题，譬如在监控管理界面的打造上。 现在还真没有一个好用的支持JMX的通用监控管理界面解决方案，诸如Cacti、zenoss等只对JMX提供了很有限的支持，重心还是放在了SNMP监控上。而jManage这样的专精JMX的也相当老迈，被华丽Flash图表惯坏的我们也实在无法回头接受这样的Web1.0界面。说到底，通用意味着臃肿和低效，打造一个能随需求快速变化的专有系统或许是更好的选择。适应快速变化这一条，还用Java就基本做不到，所以我倾向于使用Python等动态语言打造这个界面。那么在这样的一个混搭系统之中，界面与JMX Agent之间的通信又是一个问题。 MX4J和JDMK等JMX实现提供了一系列符合JSR-160标准的Connector，但基于RMI和JMXMP的Connector只适用于纯Java系统内，而基于SOAP等WebService的又太过臃肿，但我发现了另一个好用的东东，即本文的主角：Jolokia（官方网站：http://www.jolokia.org）。Jolokia实现了将JMX Agent提供的服务以HTTP接口暴露出来，使用Json作为通讯格式，并且还做了一定的扩展，如支持批量操作等等。 要注意到的是，Jolokia是一个JMX-HTTP Bridge，即桥接器，而不是一个Connector。这就是说，现在不需要也不能像以前那样通过一段代码创建一个Connector并跟MBeanServer绑起来。那么要怎么使用Jolokia呢？这就引出了Jolokia的一大奇妙特性：完全非侵入性的设计。Jololia提供了一个war文件和一个jar包，如果要对现有的应用服务器或者Servlet容器如WebLogic、Tomcat、Jetty等加入JMX的HTTP协议支持，只需要部署这个war文件即可。而如果要扩展普通的Java程序，那么只需要在启动程序时加入一个参数，如-javaagent:/opt/library/jolokia-jvm-jdk6-0.80-agent.jar即可（要求JRE6，因为Jolokia用到了JRE6自带的HTTP服务器）。后者用到了javaagent机制，直接拦截了对MBeanServer的调用。 通过Jolokia，我们就可以对现有的所有支持JMX的Java程序都加入对HTTP和Json的支持，而且没有副作用。读取一个MBean的属性，就是调用一个如http://localhost:8080/jolokia/java.lang:type=Memory/HeapMemoryUsage/used的URL。除了Read，Jolokia也支持Write，Exec，List，Search操作，读写属性，调用操作，列出信息，该有的都有了。更详细的操作请查阅Jolokia的官方文档：http://www.jolokia.org/documentation.html。以HTTP格式发布JMX也带来的别的好处，如防火墙穿透性等等。 Jolokia还是一个快速发展的项目，现在作者十分活跃。不过现在Jolokia的文档还比较欠缺，我会继续带来别的教程。&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F24%2Ffucking-wps%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;蛋疼的WPS&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408383/2Years/feedsky/s.gif?r=http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Java</category><category>Programming</category><pubDate>Mon, 06 Dec 2010 16:07:11 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/#comments</comments><guid isPermaLink="false">http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/12/06/%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e6%96%b0%e7%9a%84jmx-http%e6%a1%a5%e6%8e%a5%e5%99%a8%ef%bc%9ajolokia/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408383/6609908</fs:itemid></item><item><title>又折腾回Evernote了</title><link>http://2years.net/2010/06/29/back-to-evernote/</link><content:encoded>&lt;p&gt;前几天，发现Evernote又更新了几个版本，果断装了试下。结果欣喜地发现，Evernote 3.x版本困扰我已久的对中文支持的bug终于被fix了。这么一来，我终于可以完全将我的个人知识管理工具从Onenote迁移到Evernote了。&lt;/p&gt;
&lt;p&gt;Evernote一直是Onenote的主要竞争对手，3.0版本貌似是用WPF写的，界面上确实漂亮很多。但 3.0版本对东亚语言的支持有问题，在搜索Tag时，对输入的中文词都分成了一个个单独的字。这一点已经不是瑕疵，而是完全导致了Evernote无法使用。毕竟基于Tag的管理跟基于树形分类的管理不同，前者完全依赖于搜索。所幸这个bug总算被修复了。&lt;/p&gt;
&lt;p&gt;现在看来，Evernote的优点实在是太多了。Evernote是完全基于互联网的，所有的数据都是存储在服务器上的，这解决了不同平台、设备上的数据同步问题，这比Onenote只能用Dropbox等网盘来达到同步效果实在是强多了。Evernote也有大量的客户端，除了运行在Windows上的，还拥有一个基于Web的全功能在线版，这也解决了在Linux下的使用问题。在移动设备上，它也支持WM,Android,iPhone,iPad，以后只要还在用主流智能设备，都会有Evernote。而3G网络的发展，也让Evernote以网络为中心的理念不再成为问题。事实上，最近MS也推出了在线版Office，其中就包括Onenote，编辑时手感很好，但在对数据的组织上感觉很糟，观望一下吧。至于移动版Onenote，只支持过气的WM不说，还必须通过Outlook才能同步，真是渣一般的存在。&lt;/p&gt;
&lt;p&gt;Evernote现在感觉还是很朴素的，功能只能说够用。希望Evernote能继续加强对数据共享方面功能的开发，那样我就满足了~~&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;推荐一个新的JMX-HTTP桥接器：Jolokia&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;无题&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;离别的时光&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408384/2Years/feedsky/s.gif?r=http://2years.net/2010/06/29/back-to-evernote/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/06/29/back-to-evernote/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>前几天，发现Evernote又更新了几个版本，果断装了试下。结果欣喜地发现，Evernote 3.x版本困扰我已久的对中文支持的bug终于被fix了。这么一来，我终于可以完全将我的个人知识管理工具从Onenote迁移到Evernote了。 Evernote一直是Onenote的主要竞争对手，3.0版本貌似是用WPF写的，界面上确实漂亮很多。但 3.0版本对东亚语言的支持有问题，在搜索Tag时，对输入的中文词都分成了一个个单独的字。这一点已经不是瑕疵，而是完全导致了Evernote无法使用。毕竟基于Tag的管理跟基于树形分类的管理不同，前者完全依赖于搜索。所幸这个bug总算被修复了。 现在看来，Evernote的优点实在是太多了。Evernote是完全基于互联网的，所有的数据都是存储在服务器上的，这解决了不同平台、设备上的数据同步问题，这比Onenote只能用Dropbox等网盘来达到同步效果实在是强多了。Evernote也有大量的客户端，除了运行在Windows上的，还拥有一个基于Web的全功能在线版，这也解决了在Linux下的使用问题。在移动设备上，它也支持WM,Android,iPhone,iPad，以后只要还在用主流智能设备，都会有Evernote。而3G网络的发展，也让Evernote以网络为中心的理念不再成为问题。事实上，最近MS也推出了在线版Office，其中就包括Onenote，编辑时手感很好，但在对数据的组织上感觉很糟，观望一下吧。至于移动版Onenote，只支持过气的WM不说，还必须通过Outlook才能同步，真是渣一般的存在。 Evernote现在感觉还是很朴素的，功能只能说够用。希望Evernote能继续加强对数据共享方面功能的开发，那样我就满足了~~&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;推荐一个新的JMX-HTTP桥接器：Jolokia&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F11%2F30%2F%25E6%2596%25B0%25E7%259A%2584vps%25EF%25BC%258Choho%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;新的VPS，hoho&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408384/2Years/feedsky/s.gif?r=http://2years.net/2010/06/29/back-to-evernote/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Geek</category><category>知识管理</category><pubDate>Tue, 29 Jun 2010 18:06:46 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/06/29/back-to-evernote/#comments</comments><guid isPermaLink="false">http://2years.net/?p=44</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/06/29/back-to-evernote/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408384/6609908</fs:itemid></item><item><title>近期想造的三个轮子</title><link>http://2years.net/2010/06/04/three-wheels-to-be-implemented/</link><content:encoded>&lt;p&gt;这些天在做公司项目和毕业设计的时候，因为要用Python写大量的网络服务，尝试了各种能用在Python下的网络库、框架和中间件。折腾了这么久，渐渐感觉到，目前的这些鼎鼎有名的通用型网络通信解决方案都有这种那种的问题，通用的代价就是妥协，妥协的结果就是会带来一堆不符合我需求的以及我不需要的东西。对于一个立志于长期运行的大型应用来说，造出一个完全符合自己需求的轮子几乎是一个必然的事情。而这个轮子完善后也会成为一个特定领域的通用解决方案，再以后随着运行环境、系统底层、应用模式的转变（譬如异步IO从select发展到epoll，譬如c++模板元编程的大行其道），这个轮子也变得不合时宜，再也跟不上时代的脚步，它就可以果断得光荣退休了，江山代有人才出，后来事自然不用它担心。下面说下我所遇到的那些问题。&lt;/p&gt;
&lt;p&gt;我要搭建的服务之一就是一个要支持高并发的HTTP服务器。最显而易见的方法自然是用Apache(Nginx)+FastCGI(WSGI)+Flup+Django这样的组合，但现在的情况是，这个服务是只需要处理不相关的一系列POST请求，不需要支持Session，不需要格式化HTML，不需要返回静态文件。这样一来，Django、web.py这些重型的Web框架就都成了累赘，然后我发现了Tornado(&lt;a href=&quot;http://www.tornadoweb.org&quot;&gt;http://www.tornadoweb.org&lt;/a&gt;)这个HTTP服务器。Tornado现在由Facebook维护，其定位就是高并发服务器，从大量的评测结果来看，它从性能上超过了其它对手至少2倍以上，包括基于传说中的Python网络框架一哥Twisted的那些。Twisted存在的问题，我后文中会详细说明。Tornado高性能的秘诀就在于它对epoll的高效处理，它基于epoll自己实现了一套IO事件循环机制，对所有的HTTP请求都是异步处理。而对于GIL锁带来的无法有效利用多核的问题也很好解决，多跑几个Tornado进程，使用Nginx做下负载均衡即可。我的另一个需求是需要通过HTTP连接帐号服务器做验证，这个耗时的过程必然要使用异步连接，否则阻塞时间对性能的影响是致命的。这点也不用担心，Tornado支持异步HTTP请求。&lt;/p&gt;
&lt;p&gt;另一个需求就是，我需要跟数据库通信，数据库我们用的是Redis(&lt;a title=&quot;http://code.google.com/p/redis/&quot; href=&quot;http://code.google.com/p/redis/&quot;&gt;http://code.google.com/p/redis/&lt;/a&gt;)，也是一个高性能高并发的一个东东。现有的Redis的Python客户端只有2个，其中一个是用的底层Socket同步连接，这点无疑会降低服务器的并发数。另一个客户端是异步的，但是它是用twisted写的，而且很久没有更新了，许多Redis的新特性都没有支持。要知道，2个异步事件框架是无法共存的，这就注定了twisted无法用在我要写的HTTP服务器中。这就是我想造的第一个轮子，使用Tornado底层事件循环的异步Redis数据库客户端。&lt;/p&gt;
&lt;p&gt;我的另一个需求就比较纠结了，HTTP服务器需要同大量的应用服务器进行通讯，而应用服务器要做大量的处理工作，比较耗时，所以这个连接也要是异步的。其实我需要的就是一个异步RPC机制，另外还需要考虑异构环境（x86与x64系统之间、python与c++之间）的问题。现在采用的方法又是一个通用的解决方案ICE(&lt;a title=&quot;http://www.zeroc.com/&quot; href=&quot;http://www.zeroc.com/&quot;&gt;http://www.zeroc.com/&lt;/a&gt;)。ICE的问题也是通用解决方案的通病，太过臃肿，而且不是一般的臃肿。ICE的定位是一个分布式中间件，它不仅仅包括一个RPC，还有各种的命名服务、配置服务等等。而ICE的异步RPC实现方案我也不太满意，它的做法是在后台跑一个事件接收线程，无法融入到整个异步事件处理框架中去。所以，我想造的第2个轮子就是一个使用Tornado底层事件循环的RPC客户端。&lt;/p&gt;
&lt;p&gt;为什么一直要对Tornado的底层事件循环念念不忘？因为它的高性能给我留下了深刻的印象。但直接那它来写别的网络服务也不是一件很简单的事情，因为这是在是对epoll的一层很薄的封装。这就是我要造的第3个轮子，基于Tornado IO Loop的一个异步网络库。上文说到了一哥Twisted，Twisted所存在的问题其实是与ACE一脉相承的，因为Twisted是模仿ACE而来的。ACE是这类异步网络框架的开山鼻祖，曾经光环满身，而现在也遭到了口诛笔伐，譬如“&lt;a href=&quot;http://blog.csdn.net/Solstice/archive/2010/03/10/5364096.aspx&quot;&gt;学之者生，用之者死&lt;/a&gt;”。ACE是得了模式综合症，用了大量的OO设计模式，结果就导致整个的程序风格完全被ACE所控制，Twisted也是这样。这几年，C++领域的ASIO横空出世，用模板元编程实现了一个优雅的异步网络框架，避免了ACE那样大量丑陋的继承。而在Python这样的动态语言下，更无须被OO的规则所束缚，面向对象设计模式更多的是解决静态语言的设计问题，但这些问题在动态语言里并不存在。所以，我要造的这个网络库是参见了ASIO的，模板元编程能实现的，动态语言也可以实现。我目前需要的网络库是什么：只支持Linux，只支持epoll，只支持IO复用+事件循环的方式，不支持同步IO，不需要线程安全（因为在Python下多进程优于多线程）。再接下来，自然是要以这个网络库为基础，实现上述的2个轮子，另外把我那个已经用twisted实现的RPC框架移植过来。&lt;/p&gt;
&lt;p&gt;轮子虽好，可不要贪杯哦~&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F24%2Ffucking-wps%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;蛋疼的WPS&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408385/2Years/feedsky/s.gif?r=http://2years.net/2010/06/04/three-wheels-to-be-implemented/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/06/04/three-wheels-to-be-implemented/feed/</wfw:commentRss><slash:comments>8</slash:comments><description>这些天在做公司项目和毕业设计的时候，因为要用Python写大量的网络服务，尝试了各种能用在Python下的网络库、框架和中间件。折腾了这么久，渐渐感觉到，目前的这些鼎鼎有名的通用型网络通信解决方案都有这种那种的问题，通用的代价就是妥协，妥协的结果就是会带来一堆不符合我需求的以及我不需要的东西。对于一个立志于长期运行的大型应用来说，造出一个完全符合自己需求的轮子几乎是一个必然的事情。而这个轮子完善后也会成为一个特定领域的通用解决方案，再以后随着运行环境、系统底层、应用模式的转变（譬如异步IO从select发展到epoll，譬如c++模板元编程的大行其道），这个轮子也变得不合时宜，再也跟不上时代的脚步，它就可以果断得光荣退休了，江山代有人才出，后来事自然不用它担心。下面说下我所遇到的那些问题。 我要搭建的服务之一就是一个要支持高并发的HTTP服务器。最显而易见的方法自然是用Apache(Nginx)+FastCGI(WSGI)+Flup+Django这样的组合，但现在的情况是，这个服务是只需要处理不相关的一系列POST请求，不需要支持Session，不需要格式化HTML，不需要返回静态文件。这样一来，Django、web.py这些重型的Web框架就都成了累赘，然后我发现了Tornado(http://www.tornadoweb.org)这个HTTP服务器。Tornado现在由Facebook维护，其定位就是高并发服务器，从大量的评测结果来看，它从性能上超过了其它对手至少2倍以上，包括基于传说中的Python网络框架一哥Twisted的那些。Twisted存在的问题，我后文中会详细说明。Tornado高性能的秘诀就在于它对epoll的高效处理，它基于epoll自己实现了一套IO事件循环机制，对所有的HTTP请求都是异步处理。而对于GIL锁带来的无法有效利用多核的问题也很好解决，多跑几个Tornado进程，使用Nginx做下负载均衡即可。我的另一个需求是需要通过HTTP连接帐号服务器做验证，这个耗时的过程必然要使用异步连接，否则阻塞时间对性能的影响是致命的。这点也不用担心，Tornado支持异步HTTP请求。 另一个需求就是，我需要跟数据库通信，数据库我们用的是Redis(http://code.google.com/p/redis/)，也是一个高性能高并发的一个东东。现有的Redis的Python客户端只有2个，其中一个是用的底层Socket同步连接，这点无疑会降低服务器的并发数。另一个客户端是异步的，但是它是用twisted写的，而且很久没有更新了，许多Redis的新特性都没有支持。要知道，2个异步事件框架是无法共存的，这就注定了twisted无法用在我要写的HTTP服务器中。这就是我想造的第一个轮子，使用Tornado底层事件循环的异步Redis数据库客户端。 我的另一个需求就比较纠结了，HTTP服务器需要同大量的应用服务器进行通讯，而应用服务器要做大量的处理工作，比较耗时，所以这个连接也要是异步的。其实我需要的就是一个异步RPC机制，另外还需要考虑异构环境（x86与x64系统之间、python与c++之间）的问题。现在采用的方法又是一个通用的解决方案ICE(http://www.zeroc.com/)。ICE的问题也是通用解决方案的通病，太过臃肿，而且不是一般的臃肿。ICE的定位是一个分布式中间件，它不仅仅包括一个RPC，还有各种的命名服务、配置服务等等。而ICE的异步RPC实现方案我也不太满意，它的做法是在后台跑一个事件接收线程，无法融入到整个异步事件处理框架中去。所以，我想造的第2个轮子就是一个使用Tornado底层事件循环的RPC客户端。 为什么一直要对Tornado的底层事件循环念念不忘？因为它的高性能给我留下了深刻的印象。但直接那它来写别的网络服务也不是一件很简单的事情，因为这是在是对epoll的一层很薄的封装。这就是我要造的第3个轮子，基于Tornado IO Loop的一个异步网络库。上文说到了一哥Twisted，Twisted所存在的问题其实是与ACE一脉相承的，因为Twisted是模仿ACE而来的。ACE是这类异步网络框架的开山鼻祖，曾经光环满身，而现在也遭到了口诛笔伐，譬如“学之者生，用之者死”。ACE是得了模式综合症，用了大量的OO设计模式，结果就导致整个的程序风格完全被ACE所控制，Twisted也是这样。这几年，C++领域的ASIO横空出世，用模板元编程实现了一个优雅的异步网络框架，避免了ACE那样大量丑陋的继承。而在Python这样的动态语言下，更无须被OO的规则所束缚，面向对象设计模式更多的是解决静态语言的设计问题，但这些问题在动态语言里并不存在。所以，我要造的这个网络库是参见了ASIO的，模板元编程能实现的，动态语言也可以实现。我目前需要的网络库是什么：只支持Linux，只支持epoll，只支持IO复用+事件循环的方式，不支持同步IO，不需要线程安全（因为在Python下多进程优于多线程）。再接下来，自然是要以这个网络库为基础，实现上述的2个轮子，另外把我那个已经用twisted实现的RPC框架移植过来。 轮子虽好，可不要贪杯哦~&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F11%2F30%2F%25E6%2596%25B0%25E7%259A%2584vps%25EF%25BC%258Choho%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;新的VPS，hoho&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2011%2F03%2F02%2Fone-year-in-kingsoft%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;山头里的一年&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408385/2Years/feedsky/s.gif?r=http://2years.net/2010/06/04/three-wheels-to-be-implemented/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Python</category><category>Programming</category><pubDate>Fri, 04 Jun 2010 00:57:17 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/06/04/three-wheels-to-be-implemented/#comments</comments><guid isPermaLink="false">http://2years.net/2010/06/04/%e8%bf%91%e6%9c%9f%e6%83%b3%e9%80%a0%e7%9a%84%e4%b8%89%e4%b8%aa%e8%bd%ae%e5%ad%90/</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/06/04/three-wheels-to-be-implemented/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408385/6609908</fs:itemid></item><item><title>Blog恢复了</title><link>http://2years.net/2010/06/02/blog-resumed/</link><content:encoded>&lt;p&gt;这俩月在公司和学校都是忙得昏天黑地，这段时间也就一直没有打理Blog。前端时间MLGB的合伙VPS终究还是散伙了，blog也就跟着停了。之后试用了Burst VPS一个月，速度很一般，blog也就没有迁移。问题是VPS也是翻墙之源呐，受够了这段不能稳定翻墙的日子。再次还是要忍不住艹两句TG，我又不搜不河蟹的东西，就那些邮件组里的技术文章你们也要封，这不典型非得把我们推到对立面么。&lt;/p&gt;
&lt;p&gt;今天（额，应该是昨天了）果断出手了Ecvps，到手就开始配置。Ecvps的控制面板貌似很弱，别人家的都能直接自己换操作系统的，而这个DirectAdmin安上后感觉还不如webmin。更为可恶的是，DA还依赖Apache，Mysql等一坨东东。这对于不太熟悉配置的人倒是好事，但我这么有洁癖的人就实在无法忍受这个，我还是更习惯从头到尾手工打造系统出来。操着半生不熟的英语跟服务商扯了半天淡，让他们重新给我装了个干净系统。本还想让他们给换个ubuntu10.04的，但最高只有ubuntu9.04，不过也无所谓，没啥区别，只不过感觉上不太完美了O(∩_∩)O~。&lt;/p&gt;
&lt;p&gt;第一件事当然是把这个blog恢复出来，以前用的是Apache，现在果断换用Nginx。编译Nginx倒是轻车熟路，编译Php时候出了不少问题。PHP跟Nginx的通信是用FastCGI，具体实现上5.3之前版本的PHP貌似流行SpawnCGI，而5.3以后核心开始支持FPM，江湖传闻性能更高，那自然要尝尝鲜咯。无奈5.32版核心集成FPM的方式始终链接失败，到底还是在5.31版上打了patch才算搞定。&lt;/p&gt;
&lt;p&gt;现在看着熟悉的界面，眼泪哗哗的啊。天亮了，该睡觉了，还得早早爬起来改论文，万恶的老师哇~~&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F11%2F30%2F%25E6%2596%25B0%25E7%259A%2584vps%25EF%25BC%258Choho%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;新的VPS，hoho&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;离别的时光&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408386/2Years/feedsky/s.gif?r=http://2years.net/2010/06/02/blog-resumed/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/06/02/blog-resumed/feed/</wfw:commentRss><slash:comments>5</slash:comments><description>这俩月在公司和学校都是忙得昏天黑地，这段时间也就一直没有打理Blog。前端时间MLGB的合伙VPS终究还是散伙了，blog也就跟着停了。之后试用了Burst VPS一个月，速度很一般，blog也就没有迁移。问题是VPS也是翻墙之源呐，受够了这段不能稳定翻墙的日子。再次还是要忍不住艹两句TG，我又不搜不河蟹的东西，就那些邮件组里的技术文章你们也要封，这不典型非得把我们推到对立面么。 今天（额，应该是昨天了）果断出手了Ecvps，到手就开始配置。Ecvps的控制面板貌似很弱，别人家的都能直接自己换操作系统的，而这个DirectAdmin安上后感觉还不如webmin。更为可恶的是，DA还依赖Apache，Mysql等一坨东东。这对于不太熟悉配置的人倒是好事，但我这么有洁癖的人就实在无法忍受这个，我还是更习惯从头到尾手工打造系统出来。操着半生不熟的英语跟服务商扯了半天淡，让他们重新给我装了个干净系统。本还想让他们给换个ubuntu10.04的，但最高只有ubuntu9.04，不过也无所谓，没啥区别，只不过感觉上不太完美了O(∩_∩)O~。 第一件事当然是把这个blog恢复出来，以前用的是Apache，现在果断换用Nginx。编译Nginx倒是轻车熟路，编译Php时候出了不少问题。PHP跟Nginx的通信是用FastCGI，具体实现上5.3之前版本的PHP貌似流行SpawnCGI，而5.3以后核心开始支持FPM，江湖传闻性能更高，那自然要尝尝鲜咯。无奈5.32版核心集成FPM的方式始终链接失败，到底还是在5.31版上打了patch才算搞定。 现在看着熟悉的界面，眼泪哗哗的啊。天亮了，该睡觉了，还得早早爬起来改论文，万恶的老师哇~~&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F11%2F30%2F%25E6%2596%25B0%25E7%259A%2584vps%25EF%25BC%258Choho%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;新的VPS，hoho&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;又折腾回Evernote了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;离别的时光&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408386/2Years/feedsky/s.gif?r=http://2years.net/2010/06/02/blog-resumed/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>SiteLog</category><pubDate>Wed, 02 Jun 2010 04:54:01 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/06/02/blog-resumed/#comments</comments><guid isPermaLink="false">http://2years.net/?p=32</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/06/02/blog-resumed/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408386/6609908</fs:itemid></item><item><title>一月谈</title><link>http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/</link><content:encoded>&lt;p&gt;自从放了假，人也变得懒散了，基本没更新过blog了。在家跟以前一样，都是开始雄心勃勃想看完从学校带回来的书，结果最后这半箱子书的宿命还是睡了一个月后再跟着我天南海北的大游行。但这个寒假终究有许多不同，跟家里的朋友们见面时，话题更多的是工作和考研。我们都明白，这是我们年轻时最后还能享受到的这么长的闲散时光，于是酒也更醉，歌也更浓，在网吧的疯狂dota一夜也是我们浓缩的大学回忆。&lt;/p&gt;
&lt;p&gt;正月十二终于踏上了南下的旅途，火车一路开进，各种天气也是变换非常。家乡的寒风，赣南的浓雾，粤北的艳阳，直到吹上了深圳的涩涩的海风。从深圳西到蛇口港的路上经过的都是工业x路，貌似这一片也就是当年深圳特区最先兴起的地方。路边上还不时能看见以前震动全国的标语，“时间就是金钱，效率就是生命”，“空谈误国，实业兴邦”，80年代中国的那种活力现在想来也依然让人神往，只是那个黄金时代随着天安门的枪响一去不复返了。&lt;/p&gt;
&lt;p&gt;火车晚点的2个小时，导致的直接结果就是我在珠海无所事事了2天，周末没人管事也就没位置没网线没机子。不过第二天就享受了一下公司福利，跟着自行车协会的一干人等骑行60公里跑到了淇澳岛上吃了顿农家饭，顺便也跟大家混了个脸熟，也认识了下个各大小boss。一路上沿着海岸线前行，珠海的风景还是不错的，是个修身养性的好地方。就是也太潮了点，话说我洗好的衣服晾了两天还没干呢。&lt;/p&gt;
&lt;p&gt;现在也上了2天班了，跟着峰哥做在线表格，整个项目组都是老大一手发offer的武汉帮，倒都是熟人。在金山这样遍地都是牛人的地方最大的好处就是不缺动力，继续看那ACE文档的蝌蚪文去了。&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F11%2F30%2F%25E6%2596%25B0%25E7%259A%2584vps%25EF%25BC%258Choho%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;新的VPS，hoho&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;离别的时光&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;又折腾回Evernote了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408387/2Years/feedsky/s.gif?r=http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/feed/</wfw:commentRss><slash:comments>3</slash:comments><description>自从放了假，人也变得懒散了，基本没更新过blog了。在家跟以前一样，都是开始雄心勃勃想看完从学校带回来的书，结果最后这半箱子书的宿命还是睡了一个月后再跟着我天南海北的大游行。但这个寒假终究有许多不同，跟家里的朋友们见面时，话题更多的是工作和考研。我们都明白，这是我们年轻时最后还能享受到的这么长的闲散时光，于是酒也更醉，歌也更浓，在网吧的疯狂dota一夜也是我们浓缩的大学回忆。 正月十二终于踏上了南下的旅途，火车一路开进，各种天气也是变换非常。家乡的寒风，赣南的浓雾，粤北的艳阳，直到吹上了深圳的涩涩的海风。从深圳西到蛇口港的路上经过的都是工业x路，貌似这一片也就是当年深圳特区最先兴起的地方。路边上还不时能看见以前震动全国的标语，“时间就是金钱，效率就是生命”，“空谈误国，实业兴邦”，80年代中国的那种活力现在想来也依然让人神往，只是那个黄金时代随着天安门的枪响一去不复返了。 火车晚点的2个小时，导致的直接结果就是我在珠海无所事事了2天，周末没人管事也就没位置没网线没机子。不过第二天就享受了一下公司福利，跟着自行车协会的一干人等骑行60公里跑到了淇澳岛上吃了顿农家饭，顺便也跟大家混了个脸熟，也认识了下个各大小boss。一路上沿着海岸线前行，珠海的风景还是不错的，是个修身养性的好地方。就是也太潮了点，话说我洗好的衣服晾了两天还没干呢。 现在也上了2天班了，跟着峰哥做在线表格，整个项目组都是老大一手发offer的武汉帮，倒都是熟人。在金山这样遍地都是牛人的地方最大的好处就是不缺动力，继续看那ACE文档的蝌蚪文去了。&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;近期想造的三个轮子&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;离别的时光&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F24%2Ffucking-wps%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;蛋疼的WPS&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408387/2Years/feedsky/s.gif?r=http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>金山</category><category>珠海</category><category>Life</category><pubDate>Tue, 02 Mar 2010 20:48:16 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/#comments</comments><guid isPermaLink="false">http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/03/02/%e4%b8%80%e6%9c%88%e8%b0%88/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408387/6609908</fs:itemid></item><item><title>boost::enable_shared_from_this的部分实现研究</title><link>http://2years.net/2010/02/02/enable-shared-from-this-research/</link><content:encoded>&lt;p&gt;shared_ptr是boost库实现的几个智能指针中最重要的，其使用引用计数机制来管理资源。&lt;/p&gt;
&lt;p&gt;如果一个类由shared_ptr管理，而在这个类的某个方法又需要传出一个指向自身的指针，那么这个指针也必须被shared_ptr所管理。boost库的实现方法为让被管理类继承boost::enable_shared_from_this类，此后通过shared_from_this函数获得指向自身的shared_ptr。&lt;/p&gt;
&lt;p&gt;enable_shared_from_this实质上是把一个weak_ptr作为被管理类的成员，其观察资源使用情况，在调用shared_from_this函数时就是通过这个weak_ptr生成了一个shared_ptr。研读enable_shared_from_this机制的实现时，发现以下代码：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;line_numbers&quot;&gt;&lt;pre&gt;105
106
107
108
109
110
111
112
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre class=&quot;cpp&quot; style=&quot;font-family:monospace;color: #FCFFBA;&quot;&gt;&lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;template&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;class&lt;/span&gt; X, &lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;class&lt;/span&gt; Y, &lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;class&lt;/span&gt; T &lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;inline&lt;/span&gt; &lt;span style=&quot;color: #0000ff;color: #343832;&quot;&gt;void&lt;/span&gt; sp_enable_shared_from_this&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; boost&lt;span style=&quot;color: #008080;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #007788;&quot;&gt;shared_ptr&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt;X&lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;color: #343832;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt; ppx, Y &lt;span style=&quot;color: #0000ff;color: #343832;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt; py, boost&lt;span style=&quot;color: #008080;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #007788;&quot;&gt;enable_shared_from_this&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt; T &lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;color: #343832;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt; pe &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #0000ff;color: #B83A24;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; pe &lt;span style=&quot;color: #000040;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000dd;color: #DDD;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#123;&lt;/span&gt;
        pe&lt;span style=&quot;color: #000040;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt;_internal_accept_owner&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; ppx, &lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;const_cast&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt; Y&lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; py &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;这个函数就是设置被管理类中的weak_ptr的。那么这个函数什么时候被调用呢？是在shared_ptr的构造函数中：&lt;/p&gt;

&lt;div class=&quot;wp_syntax&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;line_numbers&quot;&gt;&lt;pre&gt;186
187
188
189
190
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;code&quot;&gt;&lt;pre class=&quot;cpp&quot; style=&quot;font-family:monospace;color: #FCFFBA;&quot;&gt;&lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;template&lt;/span&gt;&lt;span style=&quot;color: #000080;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;class&lt;/span&gt; Y&lt;span style=&quot;color: #000080;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #0000ff;color: #577A61;&quot;&gt;explicit&lt;/span&gt; shared_ptr&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; Y &lt;span style=&quot;color: #000040;&quot;&gt;*&lt;/span&gt; p &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;:&lt;/span&gt; px&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; p &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt;, pn&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; p &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #666666;color: #CDC;&quot;&gt;// Y must be complete&lt;/span&gt;
&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#123;&lt;/span&gt;
    boost&lt;span style=&quot;color: #008080;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #007788;&quot;&gt;detail&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #007788;&quot;&gt;sp_enable_shared_from_this&lt;/span&gt;&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000dd;color: #8FB394;&quot;&gt;this&lt;/span&gt;, p, p &lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #008080;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008000;color: #CCC;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;这里比较奇怪的地方就是sp_enable_shared_from_this这个函数是始终被调用的，但是如果被管理类没有继承自enable_shared_from_this，那这个调用肯定是通不过的，因为指向普通类型Y的指针p不能转型为指向enable_shared_from_this类的指针。继续翻代码，发现sp_enable_shared_from_this函数的一个重载：&lt;br /&gt;
inline void sp_enable_shared_from_this( &amp;#8230; ){}&lt;br /&gt;
原来这个地方充分利用了函数重载发现机制，如果被管理类继承自enable_shared_from_this，那么第一个sp_enable_shared_from_this就是最合适的，shared_ptr的构造函数中会调用这个版本。否则，就会调用第二个sp_enable_shared_from_this函数也就是最通用化的版本，因为&amp;#8230;就是不定参数，它可以接受任何传入的类型。而这个参数又是一个空函数，什么事都不会发生。&lt;/p&gt;
&lt;p&gt;这种实现方式也避免了效率的降低，因为2个sp_enable_shared_from_this都是内联inline的，这就保证了如果不需要设置weak_ptr那么不会有任何函数调用发生。&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;离别的时光&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;又折腾回Evernote了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408388/2Years/feedsky/s.gif?r=http://2years.net/2010/02/02/enable-shared-from-this-research/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/02/02/enable-shared-from-this-research/feed/</wfw:commentRss><slash:comments>2</slash:comments><description>shared_ptr是boost库实现的几个智能指针中最重要的，其使用引用计数机制来管理资源。 如果一个类由shared_ptr管理，而在这个类的某个方法又需要传出一个指向自身的指针，那么这个指针也必须被shared_ptr所管理。boost库的实现方法为让被管理类继承boost::enable_shared_from_this类，此后通过shared_from_this函数获得指向自身的shared_ptr。 enable_shared_from_this实质上是把一个weak_ptr作为被管理类的成员，其观察资源使用情况，在调用shared_from_this函数时就是通过这个weak_ptr生成了一个shared_ptr。研读enable_shared_from_this机制的实现时，发现以下代码： 105 106 107 108 109 110 111 112 template&amp;#60; class X, class Y, class T &amp;#62; inline void sp_enable_shared_from_this&amp;#40; boost::shared_ptr&amp;#60;X&amp;#62; const * ppx, Y const * py, boost::enable_shared_from_this&amp;#60; T &amp;#62; const * pe &amp;#41; &amp;#123; if&amp;#40; pe != 0 &amp;#41; &amp;#123; pe-&amp;#62;_internal_accept_owner&amp;#40; ppx, const_cast&amp;#60; Y* &amp;#62;&amp;#40; py &amp;#41; &amp;#41;; &amp;#125; &amp;#125; 这个函数就是设置被管理类中的weak_ptr的。那么这个函数什么时候被调用呢？是在shared_ptr的构造函数中： [...]&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F29%2Fback-to-evernote%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;又折腾回Evernote了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408388/2Years/feedsky/s.gif?r=http://2years.net/2010/02/02/enable-shared-from-this-research/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>C++</category><category>Programming</category><pubDate>Tue, 02 Feb 2010 16:52:27 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/02/02/enable-shared-from-this-research/#comments</comments><guid isPermaLink="false">http://2years.net/?p=13</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/02/02/enable-shared-from-this-research/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408388/6609908</fs:itemid></item><item><title>无题</title><link>http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/</link><content:encoded>&lt;p&gt;这几天MLGBers都将自己压抑了几年的心情来了次总宣泄，怒斥武汉理工这所学校除了荼毒他们四年，什么都没有剩下。那对于我自己而言,武汉理工又意味着什么？&lt;/p&gt;
&lt;p&gt;诚心而论，武汉理工不亏欠我什么。&lt;/p&gt;
&lt;p&gt;归根到底我是中国大地上的一个凡人，做不到像Livid那样跳出五行外，不跟大学这帮死老头玩照样能风生水起。身在山东的一个普通小县城，就算对计算机的接触勉强赶上了时代的步伐又怎样？高中里从没人听说过NOI，获取信息的途径只有那一本本电脑报和电脑爱好者。如果要把这兴趣延续下去该怎么办？在大学接着读计算机就是了嘛。只是大学呢？不到山东，不知道高考的痛与泪。其他几个哥们的家乡，天津、内蒙，那是我们多么魂牵梦绕的地方，就因为分数线要低100分呐！现在是个大学生遍地跑的时代，如果学校连个211都不是谁拿正眼瞧你？只是在我这，没个600分甭想211。武汉理工档次低了点吧，武汉华科还凑合？对不起，我想我考不到640，就算考到了我也不想进一个考古系。哥几个所唾弃的武汉理工计科院，那也需要我经历2次高考的痛。底层基础决定上层建筑，我甚至应该庆幸，我至少还来到了武汉理工，而不是北大青鸟。武汉理工至少给了我一个学历，给了我一个最基本的平台，让我得以凭借之进入业界前沿的公司，认识一帮还对计算机保持着热情的人。&lt;/p&gt;
&lt;p&gt;在大学里，周围的同学死气沉沉？老师吹毛求疵？对于一个承受过中国教育史最大的不公平的人，对于一个目睹过中学同学被高不可攀的分数线逼得神经错乱的人，这算得了什么？学校没有文化底蕴，我已早已习惯，受过了12年的题海轰炸，从不知素质教育为何物，我倒想问什么叫文化底蕴？&lt;/p&gt;
&lt;p&gt;我不想抱怨我所在的环境，虽然这并不是我自己想要的选择，虽然我还想提醒一下后来人：投胎须谨慎。蛔虫们知道屁眼是他们的祖国，我也知道这个并不可爱的地方是我的家乡，这个并不诗意的地方是我的母校。抱怨没有什么意义，以逃离这个地方为荣更是一个懦夫，不需要伪装什么大公无私，但求问心无愧，正视自己的过去，改变自己能改变的。我骨子里终究还是一个山东人。&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;boost::enable_shared_from_this的部分实现研究&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F01%2F24%2Ffucking-wps%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;蛋疼的WPS&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408389/2Years/feedsky/s.gif?r=http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/feed/</wfw:commentRss><slash:comments>4</slash:comments><description>这几天MLGBers都将自己压抑了几年的心情来了次总宣泄，怒斥武汉理工这所学校除了荼毒他们四年，什么都没有剩下。那对于我自己而言,武汉理工又意味着什么？ 诚心而论，武汉理工不亏欠我什么。 归根到底我是中国大地上的一个凡人，做不到像Livid那样跳出五行外，不跟大学这帮死老头玩照样能风生水起。身在山东的一个普通小县城，就算对计算机的接触勉强赶上了时代的步伐又怎样？高中里从没人听说过NOI，获取信息的途径只有那一本本电脑报和电脑爱好者。如果要把这兴趣延续下去该怎么办？在大学接着读计算机就是了嘛。只是大学呢？不到山东，不知道高考的痛与泪。其他几个哥们的家乡，天津、内蒙，那是我们多么魂牵梦绕的地方，就因为分数线要低100分呐！现在是个大学生遍地跑的时代，如果学校连个211都不是谁拿正眼瞧你？只是在我这，没个600分甭想211。武汉理工档次低了点吧，武汉华科还凑合？对不起，我想我考不到640，就算考到了我也不想进一个考古系。哥几个所唾弃的武汉理工计科院，那也需要我经历2次高考的痛。底层基础决定上层建筑，我甚至应该庆幸，我至少还来到了武汉理工，而不是北大青鸟。武汉理工至少给了我一个学历，给了我一个最基本的平台，让我得以凭借之进入业界前沿的公司，认识一帮还对计算机保持着热情的人。 在大学里，周围的同学死气沉沉？老师吹毛求疵？对于一个承受过中国教育史最大的不公平的人，对于一个目睹过中学同学被高不可攀的分数线逼得神经错乱的人，这算得了什么？学校没有文化底蕴，我已早已习惯，受过了12年的题海轰炸，从不知素质教育为何物，我倒想问什么叫文化底蕴？ 我不想抱怨我所在的环境，虽然这并不是我自己想要的选择，虽然我还想提醒一下后来人：投胎须谨慎。蛔虫们知道屁眼是他们的祖国，我也知道这个并不可爱的地方是我的家乡，这个并不诗意的地方是我的母校。抱怨没有什么意义，以逃离这个地方为荣更是一个懦夫，不需要伪装什么大公无私，但求问心无愧，正视自己的过去，改变自己能改变的。我骨子里终究还是一个山东人。&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;近期想造的三个轮子&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F03%2F02%2F%25E4%25B8%2580%25E6%259C%2588%25E8%25B0%2588%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;一月谈&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%259B%25B4%25E6%2594%25B9%25E4%25BA%2586blog%25E7%259A%2584feed%25E5%259C%25B0%25E5%259D%2580feed-2years-net%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F29%2F%25E6%2597%25A0%25E9%25A2%2598%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;更改了Blog的Feed地址:feed.2years.net&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408389/2Years/feedsky/s.gif?r=http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Life</category><category>WHUT</category><pubDate>Fri, 29 Jan 2010 20:19:57 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/#comments</comments><guid isPermaLink="false">http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/01/29/%e6%97%a0%e9%a2%98/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408389/6609908</fs:itemid></item><item><title>离别的时光</title><link>http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/</link><content:encoded>&lt;p&gt;学期末的时光总是忙碌而又杂乱。&lt;/p&gt;
&lt;p&gt;无尽的报告是这个时期的一大主题。Happy的三峡五天也带来了这个痛苦的副产物，花了一整天抄完后手都酸了。不过毕业设计的开题报告我还是挺用心的，选分布式文件系统当设计内容现在看来相当明智，这些天看了不少东西，研究得越深入越能感觉分布式这个领域的魅力。毕业设计的指导老师奉行的也是无为而治，基本不管我们组的实际内容，只要完成必要任务即可。这样也好，没有了束缚自然可以自由飞翔，祭起我最爱的技术，创造我喜欢的东西。其实在技术上，我总有一种完美主义者的倾向，很多压力都是自己硬压给自己的。但是，谁又不想让自己的孩子更漂亮一些呢？&lt;/p&gt;
&lt;p&gt;这几天各处的饭馆餐厅也都留下了我们的身影，送走了一个个兄弟、同学。寒假已经过了无数次，但这次有些许不同。很多人，这一去就是半年不能再见了。MLGB这个团体也缺少了JB的身影，但看他的博文，能感到他在UC的快乐与充实，这就够了。昨天的金汉斯，大家都吃得很撑，但谭二还是没有去。不要为我那个善意的玩笑（切x皮）生气了，愿你的肠胃炎早日痊愈。今天插从合肥赶了过来，虽然都在QQ上扯了半年了，但真人还是第一次相见。大门口的香辣虾是我当年来武汉的第一餐，PZF也是，我们在这搓了一顿，挺好的。不久以后，我们3个就要在金山挥洒自己的青春了。MLGB的兄弟们大多都要踏上了社会，也愿OB能早日找到你的路，实现你的梦想。&lt;/p&gt;
&lt;p&gt;最伤感的还是我要和自己的宝贝分开一段时间了。已经过去的2年多时间里，我们有过争吵，有过眼泪，但更多的是甜蜜的回忆。我们经住了时间的考验，接下来的是距离。离开黄河之畔的家已有半年多了，父母的牵挂是漂泊在外的最大慰藉，现在既已真正成人，自当竭力尽孝。而年后就要去珠海实习。这两地用一个一千公里的圆串起来，圆心就是武汉。这一千公里的距离，掩藏不住的是我的担心。没有我的日子里，谁去在你生病的时候帮你带饭，在你晕车的时候给你依靠。不管怎样，答应我，照顾好自己。我永远在你身边。&lt;/p&gt;
&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F02%2F02%2Fenable-shared-from-this-research%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;boost::enable_shared_from_this的部分实现研究&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F12%2F06%2F%25E6%258E%25A8%25E8%258D%2590%25E4%25B8%2580%25E4%25B8%25AA%25E6%2596%25B0%25E7%259A%2584jmx-http%25E6%25A1%25A5%25E6%258E%25A5%25E5%2599%25A8%25EF%25BC%259Ajolokia%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;推荐一个新的JMX-HTTP桥接器：Jolokia&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408390/2Years/feedsky/s.gif?r=http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/feed/</wfw:commentRss><slash:comments>4</slash:comments><description>学期末的时光总是忙碌而又杂乱。 无尽的报告是这个时期的一大主题。Happy的三峡五天也带来了这个痛苦的副产物，花了一整天抄完后手都酸了。不过毕业设计的开题报告我还是挺用心的，选分布式文件系统当设计内容现在看来相当明智，这些天看了不少东西，研究得越深入越能感觉分布式这个领域的魅力。毕业设计的指导老师奉行的也是无为而治，基本不管我们组的实际内容，只要完成必要任务即可。这样也好，没有了束缚自然可以自由飞翔，祭起我最爱的技术，创造我喜欢的东西。其实在技术上，我总有一种完美主义者的倾向，很多压力都是自己硬压给自己的。但是，谁又不想让自己的孩子更漂亮一些呢？ 这几天各处的饭馆餐厅也都留下了我们的身影，送走了一个个兄弟、同学。寒假已经过了无数次，但这次有些许不同。很多人，这一去就是半年不能再见了。MLGB这个团体也缺少了JB的身影，但看他的博文，能感到他在UC的快乐与充实，这就够了。昨天的金汉斯，大家都吃得很撑，但谭二还是没有去。不要为我那个善意的玩笑（切x皮）生气了，愿你的肠胃炎早日痊愈。今天插从合肥赶了过来，虽然都在QQ上扯了半年了，但真人还是第一次相见。大门口的香辣虾是我当年来武汉的第一餐，PZF也是，我们在这搓了一顿，挺好的。不久以后，我们3个就要在金山挥洒自己的青春了。MLGB的兄弟们大多都要踏上了社会，也愿OB能早日找到你的路，实现你的梦想。 最伤感的还是我要和自己的宝贝分开一段时间了。已经过去的2年多时间里，我们有过争吵，有过眼泪，但更多的是甜蜜的回忆。我们经住了时间的考验，接下来的是距离。离开黄河之畔的家已有半年多了，父母的牵挂是漂泊在外的最大慰藉，现在既已真正成人，自当竭力尽孝。而年后就要去珠海实习。这两地用一个一千公里的圆串起来，圆心就是武汉。这一千公里的距离，掩藏不住的是我的担心。没有我的日子里，谁去在你生病的时候帮你带饭，在你晕车的时候给你依靠。不管怎样，答应我，照顾好自己。我永远在你身边。&lt;table class=&quot;wumii-related-items&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;clear: both;&quot;&gt;
    
    &lt;tr&gt;
        &lt;td &gt;&lt;b&gt;&lt;font size=&quot;-1&quot;  style=&quot;display: block !important; padding: 20px 0 5px !important;&quot;&gt;无觅猜您也喜欢：&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2012%2F01%2F27%2Fdoubanclaim45048fd1ae4774d9%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;doubanclaim45048fd1ae4774d9&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F11%2F30%2F%25E6%2596%25B0%25E7%259A%2584vps%25EF%25BC%258Choho%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;新的VPS，hoho&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F02%2Fblog-resumed%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;Blog恢复了&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td style=&quot;margin: 0 !important; padding: 0 !important; line-height: 20px !important;&quot;&gt;
                    &lt;img border=&quot;0&quot; src=&quot;http://static.wumii.com/images/widget/widget_solidPoint.gif&quot;&gt;
                    &lt;a target=&quot;_blank&quot; style=&quot;text-decoration: none !important;&quot; href=&quot;http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2F2years.net%2F2010%2F06%2F04%2Fthree-wheels-to-be-implemented%2F&amp;from=http%3A%2F%2F2years.net%2F2010%2F01%2F26%2F%25E7%25A6%25BB%25E5%2588%25AB%25E7%259A%2584%25E6%2597%25B6%25E5%2585%2589%2F&quot;&gt;
                        &lt;font size=&quot;-1&quot; color=&quot;#333333&quot; style=&quot;line-height: 1.65em; font-size: 12px !important;&quot;&gt;近期想造的三个轮子&lt;/font&gt;
                    &lt;/a&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    
    &lt;tr&gt;
        &lt;td  align=&quot;right&quot;&gt;
            &lt;a style=&quot;text-decoration: none !important;&quot; href=&quot;http://www.wumii.com/widget/relatedItems.htm&quot; target=&quot;_blank&quot; title=&quot;无觅相关文章插件&quot;&gt;
                &lt;font size=&quot;-1&quot; color=&quot;#bbbbbb&quot; style=&quot;display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;&quot;&gt;无觅&lt;/font&gt;
            &lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/599408390/2Years/feedsky/s.gif?r=http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Life</category><category>WHUT</category><pubDate>Tue, 26 Jan 2010 22:45:24 +0800</pubDate><author>sqrabs</author><comments>http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/#comments</comments><guid isPermaLink="false">http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/</guid><dc:creator>sqrabs</dc:creator><fs:srclink>http://2years.net/2010/01/26/%e7%a6%bb%e5%88%ab%e7%9a%84%e6%97%b6%e5%85%89/</fs:srclink><fs:srcfeed>http://2years.net/feed/</fs:srcfeed><fs:itemid>feedsky/2Years/~8505626/599408390/6609908</fs:itemid></item></channel></rss>
