<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1722636406433017828</id><updated>2024-10-25T05:05:17.221-07:00</updated><category term="javascript"/><category term="java"/><category term="ubuntu"/><category term="google reader starred"/><category term="code"/><category term="jQuery"/><category term="best practise"/><category term="regex"/><category term="AES"/><category term="CXF"/><category term="css"/><category term="dom"/><category term="eclipse"/><category term="html"/><category term="tomcat"/><category term="array"/><category term="c"/><category term="collection"/><category term="comment"/><category term="deserialization"/><category term="equals"/><category term="image"/><category term="install"/><category term="iterator"/><category term="language"/><category term="linux"/><category term="preview"/><category term="serialization"/><category term="tool"/><category term="NumberFormat"/><category term="RTX"/><category term="aop"/><category term="aptana"/><category term="background"/><category term="base64"/><category term="bit or"/><category term="bitwise"/><category term="black"/><category term="bouncycastle"/><category term="bug"/><category term="button"/><category term="caller"/><category term="characters"/><category term="checkbox"/><category term="chrome"/><category term="class"/><category term="clone"/><category term="code review"/><category term="compare"/><category term="deb"/><category term="delegate"/><category term="demo"/><category term="dialog"/><category term="difference"/><category term="encode"/><category term="error"/><category term="excel"/><category term="exception"/><category term="export"/><category term="file"/><category term="find"/><category term="function"/><category term="get"/><category term="gfw"/><category term="goagent"/><category term="green"/><category term="hashCode"/><category term="hibernate"/><category term="high quality"/><category term="hql"/><category term="html5"/><category term="ie"/><category term="indexOf"/><category term="input"/><category term="interceptor"/><category term="interface"/><category term="isolation"/><category term="jdk"/><category term="junit"/><category term="live"/><category term="local"/><category term="logging"/><category term="method"/><category term="mount"/><category term="mysql"/><category term="not"/><category term="object"/><category term="order"/><category term="parameter"/><category term="phase"/><category term="picture"/><category term="placeholder"/><category term="plugin"/><category term="post"/><category term="principle"/><category term="product manager"/><category term="programer"/><category term="proxy"/><category term="readable"/><category term="replace"/><category term="root"/><category term="rpm"/><category term="rsa"/><category term="scope"/><category term="select"/><category term="selectAll"/><category term="selector"/><category term="server"/><category term="shell"/><category term="sleep"/><category term="software"/><category term="string"/><category term="struct"/><category term="test"/><category term="theme"/><category term="this"/><category term="tom"/><category term="transaction"/><category term="ubun"/><category term="ux"/><category term="validation"/><category term="variable"/><category term="vim"/><category term="virtualbox"/><category term="wine"/><category term="zen coding"/><category term="优化"/><category term="位或"/><category term="公钥"/><category term="私钥"/><title type='text'>姚姐夫</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>96</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-5481537141846158789</id><published>2012-06-27T10:15:00.001-07:00</published><updated>2012-06-27T10:15:45.664-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>联俄抗美或是中国的战略错误</title><content type='html'>&lt;br /&gt;          &lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;br /&gt;          &lt;p&gt;　　前些日子，笔者到银行办事儿，顺手拿起一份《北京日报》，翻到评论版。头条是“从某某某事件看美国政客的拙劣表演”这篇雄文，二条是“胳膊肘般的感情”符合中俄战略利益。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　两篇文章结合起来，无疑是告诉读者，美国政客很坏，处心积虑地对付中國；俄罗斯真是哥们儿，应该珍惜并发展中俄之间的深情厚谊。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　作为黨报的《北京日报》的评论有时是中國官方的意志体现，有时是自发行为。这两条，无论是官方意志还是自发所为，都说明反美亲俄的姿态。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　拉俄罗斯抗衡美国，其实也不是什么秘密。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　最近，和一位中國外交部前高官以及一位东南亚问题专家聊南海问题。两位都集中火力谈美国，认为美国处处与中國为敌，俄罗斯才是真朋友。这位老大使，还向我透露了一个“秘密”。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　2月，在利比亚问题上中國投下反对票，令国内外大感意外。这位大使告诉笔者，本来中國想弃权，但普京发现任由西方这样颠覆一个又一个政权很危险，于是电令俄罗斯外交官投反对票，然后通知中國，中國这才投了反对票。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　难怪，众多国际问题专家听说中國投反对票时，瞠目结舌，不知为何这么干。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　其实，中俄之间在国际舞台上还有诸多配合，许多人认为这样符合双方利益，两个弱者联合对付一个强者古已有之。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　三国是吴国和蜀国两个弱者，联合起来对付强大的魏国；20世纪70年代美苏争霸时，为了缓解压力，打开了通往中國的大门，中美联合抗衡苏联。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　不要以为这么干理所当然地个中國带来好处，恰恰相反，联俄抗美将是中國最大的战略错误。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　从历史上看，俄罗斯是抢掠中國地盘最多的国家，而美国是二战中國要亡国灭种之际给予帮助最多的国家。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　新中國成立后，中國采取一边倒政策，彻底倒向苏联，结果一无所获，还在珍宝岛开战；改革开放和美国及其盟国做生意，融入西方体系后，经济才得以迅猛发展。苏联带给中國的是灾难和屈辱，而美国带给中國的是民主和普世价值。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　从政治体制看，俄罗斯表面是民主国家，实质是“警察国家”，在国际舞台上经常是出尔反尔，不讲信义。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　苏联失去了中國，失去了东欧，然后自己又分裂，显然是落后的体制。而美国及其盟友的民主体制，虽然有诸多缺陷，但依旧是这个星球上一系列坏制度里面相对较好的一个。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　从经济方面看，更是如此，中美经济合作，中國真是赚了不少钱，大家对中美之间的相互依存看得清楚。需要注意的是，虽然欧美经济出现困难，但你要相信他们自身的调节能力，不要以为中國真的多么厉害。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　再看看俄罗斯，领导一声令下，华商的财产就被俄罗斯警察抢走；中俄之间的管道，说改道日本就改道，毫不含糊。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　中國指望俄罗斯供应石油，更是天大的风险，俄罗斯倒是将扼住中國的咽喉，想断油就断油，想提价就提价，整你没商量。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　这是俄罗斯人的性格，他们多疑、善变、警惕心强，融合了西方的勇猛和东方的狡黠，他们不止对中國如此，对谁都这样。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　从人民之间的情感来看。美国人对中國人，还是有着传统的友好，当年把庚子赔款的钱，拿来建清华大学，便是美国人所为。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　而俄罗斯则不同，俄罗斯人一方面羡慕中國的经济成就，一方面难以掩饰多年来多中國的瞧不起和敌视，黄祸论在俄罗斯的流行程度，远大于中國威胁论在美国的流行程度。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　从地缘政治看，中美更不应为敌。中美远隔重洋，应该是天然的盟友，一个富强稳定的中國符合美国的利益，却未必符合俄罗斯的利益。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　基于上述原因，可以认为，联俄抗美不会给中國带来什么好处；反之，将让中國处于孤立地位，可能毁掉改革开放的成果，更有甚者，还可能面临更大的灾难。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　这些浅显的道理，为什么很多人不明白？原因很简单，有些人揣着明白装糊涂。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　中國外交界以及专家的传统是，到那个国家工作、研究哪个国家，就亲哪国，因此，对俄工作的人士希望中俄关系好，再正常不过了。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　但到了美国这里，却来了个180大转弯。在中國政府内部，甚至一些专家，越是了解美国，越是主张对美强硬，这样做的理由很简单——政治正确。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　王立军进入美国使馆，美国给足了面子，但为了政治正确，总要批判美国才安全吧？陈光诚进入美国使馆，说这是美国政客的拙劣表演，政治正确。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　中菲南海对峙有美国在背后，批判一番总是正确吧？美国发布人權报告，说中國是獨裁国家，中國立即也予以反击，批评美国的人權，隔空叫骂。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　当然，可以说这是中美双方互有默契的表演，但对民众而言，谁能分得清哪个是真、哪个是假？哪里是悉心表演、哪里是真刀实枪？&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　其实，本来没有什么敌人，你如果把一个人当做是你的敌人，每天这么想，这么说，天长日久，他便真的成为你的敌人。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　天长日久，专业人士不得不为了政治正确表演，而随和国力强大，民族主义勃兴，很多人不满足于世界第二经济体，希望中國超越美国，成为老大。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　这是可怕的想法。如果这种想法蔓延，将会军备竞赛，毫无疑问，这将拖垮中國。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　其实，中國发展到今天，休养生息一下，与民谋利，夯实基础。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　王冲，曾任《中國青年报》国际部记者，《中國周刊》国际部主任，现为互联网从业者。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;　　作者:王冲&lt;/p&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&#39;http://www.china-week.com&#39;&gt;中国报道周刊&lt;/a&gt;, 2012-06-17. | &lt;a href=&#39;http://www.china-week.com/html/6250.htm&#39;&gt;添加评论&lt;/a&gt; | &lt;a href=&#39;http://www.china-week.com/html/6250.htm#comments&#39;&gt;No comment&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;原文地址 &lt;a href=&#39;http://www.china-week.com/html/6250.htm&#39;&gt;联俄抗美或是中国的战略错误&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;通过Google Buzz关注 &lt;a title=&#39;订阅&#39; href=&#39;http://www.google.com/profiles/chinaweekly&#39;&gt;中国报道周刊&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;通过Twitter关注 &lt;a title=&#39;订阅&#39; href=&#39;http://twitter.com/chinaweek&#39;&gt;中国报道周刊&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;通过RSS &lt;a title=&#39;订阅&#39; href=&#39;http://feeds.feedburner.com/china-week&#39;&gt;全文订阅&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;通过电子邮件 &lt;a title=&#39;订阅&#39; href=&#39;mailto:chinaweek+subscribe@googlegroups.com&#39;&gt;全文订阅&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;文章分类 &lt;a rel=&#39;category tag&#39; title=&#39;查看 国际关系 的全部文章&#39; href=&#39;http://www.china-week.com/html/category/international&#39;&gt;国际关系&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;欢迎大家投稿，&lt;a href=&#39;mailto:chinaweekly+editor@gmail.com?subject=%E6%8A%95%E7%A8%BF&#39;&gt;点这里&lt;/a&gt;发送投稿邮件&lt;/p&gt;&lt;br /&gt;&lt;h4&gt;相关日志&lt;/h4&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;谁砸开了苏联专制的大门？ (2005-05-12)&#39; href=&#39;http://www.china-week.com/html/2488.htm&#39;&gt;谁砸开了苏联专制的大门？&lt;/a&gt; (6)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;警惕“普京主义” (2005-07-24)&#39; href=&#39;http://www.china-week.com/html/2591.htm&#39;&gt;警惕“普京主义”&lt;/a&gt; (2)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;苏联时代的“被精神病”恐怖 (2011-01-23)&#39; href=&#39;http://www.china-week.com/html/5866.htm&#39;&gt;苏联时代的“被精神病”恐怖&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;苏东剧变——二十年之后 (2010-07-04)&#39; href=&#39;http://www.china-week.com/html/5634.htm&#39;&gt;苏东剧变——二十年之后&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;臆想的中俄联盟 (2000-07-22)&#39; href=&#39;http://www.china-week.com/html/352.htm&#39;&gt;臆想的中俄联盟&lt;/a&gt; (14)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;缔结中俄印三角关系的一些思考 (2002-04-01)&#39; href=&#39;http://www.china-week.com/html/1383.htm&#39;&gt;缔结中俄印三角关系的一些思考&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;纪念亚历山大·索尔仁尼琴 (2008-08-09)&#39; href=&#39;http://www.china-week.com/html/4154.htm&#39;&gt;纪念亚历山大·索尔仁尼琴&lt;/a&gt; (7)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;签订《中苏特别协定》的几种可能性 (2011-08-28)&#39; href=&#39;http://www.china-week.com/html/6100.htm&#39;&gt;签订《中苏特别协定》的几种可能性&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;科恩普京冷热分明 (2000-07-21)&#39; href=&#39;http://www.china-week.com/html/344.htm&#39;&gt;科恩普京冷热分明&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;最后的红色帝国——戈尔巴乔夫、叶利钦素描 (2001-05-15)&#39; href=&#39;http://www.china-week.com/html/980.htm&#39;&gt;最后的红色帝国——戈尔巴乔夫、叶利钦素描&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;普京的十大强国战略 (2008-05-07)&#39; href=&#39;http://www.china-week.com/html/3860.htm&#39;&gt;普京的十大强国战略&lt;/a&gt; (10)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;普京的“稳定观” (2005-10-30)&#39; href=&#39;http://www.china-week.com/html/2665.htm&#39;&gt;普京的“稳定观”&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;普京与统一俄罗斯党 (2011-12-26)&#39; href=&#39;http://www.china-week.com/html/6220.htm&#39;&gt;普京与统一俄罗斯党&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;斯大林的政治遗产 (2009-08-25)&#39; href=&#39;http://www.china-week.com/html/5261.htm&#39;&gt;斯大林的政治遗产&lt;/a&gt; (2)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;斯大林与中国内战的起源 (2009-02-13)&#39; href=&#39;http://www.china-week.com/html/4745.htm&#39;&gt;斯大林与中国内战的起源&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;性感在别处 (2001-07-16)&#39; href=&#39;http://www.china-week.com/html/1111.htm&#39;&gt;性感在别处&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;强大的贪官，贫穷的人民 (2008-02-20)&#39; href=&#39;http://www.china-week.com/html/3601.htm&#39;&gt;强大的贪官，贫穷的人民&lt;/a&gt; (27)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;四海之外皆弟兄——苏维埃的故事 (2009-11-14)&#39; href=&#39;http://www.china-week.com/html/5359.htm&#39;&gt;四海之外皆弟兄——苏维埃的故事&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;后冷战时期的中俄关系 (2001-09-27)&#39; href=&#39;http://www.china-week.com/html/1198.htm&#39;&gt;后冷战时期的中俄关系&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;修版师讲述美化苏联领导照片的秘史 (2008-03-12)&#39; href=&#39;http://www.china-week.com/html/3670.htm&#39;&gt;修版师讲述美化苏联领导照片的秘史&lt;/a&gt; (5)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯，别再暧昧了 (2006-04-08)&#39; href=&#39;http://www.china-week.com/html/2810.htm&#39;&gt;俄罗斯，别再暧昧了&lt;/a&gt; (1)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯退却，中国挺进：亚洲大国政治的未来 (2003-03-16)&#39; href=&#39;http://www.china-week.com/html/1646.htm&#39;&gt;俄罗斯退却，中国挺进：亚洲大国政治的未来&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯近况 (2000-09-27)&#39; href=&#39;http://www.china-week.com/html/505.htm&#39;&gt;俄罗斯近况&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯让中国吃黄连 (2009-07-06)&#39; href=&#39;http://www.china-week.com/html/5162.htm&#39;&gt;俄罗斯让中国吃黄连&lt;/a&gt; (2)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯警察写真 (2001-06-13)&#39; href=&#39;http://www.china-week.com/html/1038.htm&#39;&gt;俄罗斯警察写真&lt;/a&gt; (2)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯衰败的外因——世纪交替中的俄罗斯 (2001-02-13)&#39; href=&#39;http://www.china-week.com/html/785.htm&#39;&gt;俄罗斯衰败的外因——世纪交替中的俄罗斯&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯的国企改革与中俄经济学家比较 (2005-09-03)&#39; href=&#39;http://www.china-week.com/html/2621.htm&#39;&gt;俄罗斯的国企改革与中俄经济学家比较&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯挑战中国模式 (2004-08-18)&#39; href=&#39;http://www.china-week.com/html/2228.htm&#39;&gt;俄罗斯挑战中国模式&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯帝国的梦想 (2008-09-01)&#39; href=&#39;http://www.china-week.com/html/4228.htm&#39;&gt;俄罗斯帝国的梦想&lt;/a&gt; (69)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯人谈珍宝岛冲突 (2000-12-13)&#39; href=&#39;http://www.china-week.com/html/658.htm&#39;&gt;俄罗斯人谈珍宝岛冲突&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯人眼中的中国 (2002-12-06)&#39; href=&#39;http://www.china-week.com/html/1566.htm&#39;&gt;俄罗斯人眼中的中国&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯上演国进民退 (2005-11-26)&#39; href=&#39;http://www.china-week.com/html/2697.htm&#39;&gt;俄罗斯上演国进民退&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄罗斯“休克疗法”再分析 (2009-02-04)&#39; href=&#39;http://www.china-week.com/html/4718.htm&#39;&gt;俄罗斯“休克疗法”再分析&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄国告诉了我们什么？ (2001-11-28)&#39; href=&#39;http://www.china-week.com/html/1280.htm&#39;&gt;俄国告诉了我们什么？&lt;/a&gt; (4)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;俄击沉中国货轮对我们的启示 (2009-02-23)&#39; href=&#39;http://www.china-week.com/html/4776.htm&#39;&gt;俄击沉中国货轮对我们的启示&lt;/a&gt; (1)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;令我吃惊的俄罗斯 (2003-10-19)&#39; href=&#39;http://www.china-week.com/html/1951.htm&#39;&gt;令我吃惊的俄罗斯&lt;/a&gt; (0)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;从苏联被拖垮得到的启示 (2002-06-20)&#39; href=&#39;http://www.china-week.com/html/1457.htm&#39;&gt;从苏联被拖垮得到的启示&lt;/a&gt; (4)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;从苏联崩溃借鉴什么 (2008-12-26)&#39; href=&#39;http://www.china-week.com/html/4593.htm&#39;&gt;从苏联崩溃借鉴什么&lt;/a&gt; (2)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;中苏琐事 (2008-04-26)&#39; href=&#39;http://www.china-week.com/html/3823.htm&#39;&gt;中苏琐事&lt;/a&gt; (4)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a title=&#39;中国经济为什么被俄罗斯迅速超越？ (2008-04-29)&#39; href=&#39;http://www.china-week.com/html/3836.htm&#39;&gt;中国经济为什么被俄罗斯迅速超越？&lt;/a&gt; (24)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;img width=&#39;1&#39; height=&#39;1&#39; src=&#39;http://feeds.feedburner.com/~r/china-week/~4/i3D_E3-RfFA&#39;/&gt;&lt;br/&gt;&lt;br /&gt;          &lt;/div&gt;&lt;br /&gt;          </content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/5481537141846158789/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/06/blog-post_27.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/5481537141846158789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/5481537141846158789'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/06/blog-post_27.html' title='联俄抗美或是中国的战略错误'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-4820206253684511689</id><published>2012-06-25T22:25:00.002-07:00</published><updated>2012-06-25T22:29:36.768-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sleep"/><title type='text'>提高睡眠的建议</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.scribd.com/doc/3932344/40-Sleep-Hacks-The-Geeks-Guide-to-Optimizing-Sleep&quot;&gt;http://www.scribd.com/doc/3932344/40-Sleep-Hacks-The-Geeks-Guide-to-Optimizing-Sleep&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/4820206253684511689/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/06/blog-post.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/4820206253684511689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/4820206253684511689'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/06/blog-post.html' title='提高睡眠的建议'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-1282936687088422645</id><published>2012-05-14T18:22:00.001-07:00</published><updated>2012-05-14T18:22:53.046-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="language"/><title type='text'>learning c-ch06</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
//打印1-100中含9的数字&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main(void){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int i = 0;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;while(i&amp;lt;100){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(gewei(i)==9||shiwei(i)==9){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot;%d\n&quot;,i);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;i++;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int gewei(int x){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return x%10;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int shiwei(int x){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(x&amp;lt;10) return 0;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return x/10;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//习题&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
#include&amp;lt;math.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
int main(void){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;//print99();&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;void diamond(int,char);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;diamond(3,&#39;*&#39;);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;diamond(5,&#39;#&#39;);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
//求两点直接距离的平方&lt;/div&gt;
&lt;div&gt;
int distance(int x1,int y1,int x2,int y2){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return (x2-x1) * (x2-x1) + (y2-y1) * (y2-y1);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
//打印菱形&lt;/div&gt;
&lt;div&gt;
void diamond(int x,char c){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int i,j;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int t =(x+1)/2;//菱形中心位置x,y坐标&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int d = x/2;//菱形离中心位置的最大距离&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(i=1;i&amp;lt;=x;i++){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(j=1;j&amp;lt;=x;j++){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(distance(i,j,t,t)&amp;gt;d*d){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;printf(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}else{&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;printf(&quot;%c&quot;,c);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
//打印99乘法口诀表&lt;/div&gt;
&lt;div&gt;
void print99(void){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;int i,j;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(i=1;i&amp;lt;10;i++){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(j=1;j&amp;lt;=i;j++){&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int temp = i*j;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot;%d&quot;,temp);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(temp&amp;lt;10){//补齐2位&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;printf(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;printf(&quot; &quot;);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;\n&quot;);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/1282936687088422645/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/05/learning-c-ch06.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/1282936687088422645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/1282936687088422645'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/05/learning-c-ch06.html' title='learning c-ch06'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-4861695427189396614</id><published>2012-05-14T18:17:00.000-07:00</published><updated>2012-05-14T18:17:04.569-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="language"/><category scheme="http://www.blogger.com/atom/ns#" term="struct"/><title type='text'>learning c-ch07</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
struct rational{double z,m;};&lt;br /&gt;
&lt;br /&gt;
int main(void){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational addr(struct rational a,struct rational b);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational subr(struct rational a,struct rational b);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational mulr(struct rational a,struct rational b);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational divr(struct rational a,struct rational b);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;void print(struct rational r);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational a={1,2};&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational b={3,4};&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;print(addr(a,b));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;print(subr(a,b));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;print(mulr(a,b));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;print(divr(a,b));&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
struct rational addr(struct rational a,struct rational b){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;struct rational c;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;c.z = a.z*b.m+b.z*a.m;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;c.m = a.m*b.m;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return c;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
struct rational subr(struct rational a,struct rational b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; struct rational c;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c.z = a.z*b.m-b.z*a.m;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c.m = a.m*b.m;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return c;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
struct rational mulr(struct rational a,struct rational b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; struct rational c;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c.z = a.z*b.z;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c.m = a.m*b.m;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return c;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
struct rational divr(struct rational a,struct rational b){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; struct rational c;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c.z = a.z*b.m;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; c.m = a.m*b.z;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return c;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void print(struct rational r){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;%f,%f\n&quot;,r.z,r.m);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/4861695427189396614/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/05/learning-c-ch07.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/4861695427189396614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/4861695427189396614'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/05/learning-c-ch07.html' title='learning c-ch07'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-1792806898673462755</id><published>2012-05-03T01:45:00.001-07:00</published><updated>2012-05-04T06:38:45.853-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu自动挂载Windows分区</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;1.先將所有硬碟在檔案總管中都開啟一次(這步驟一定要作...不然第二步會查不到磁碟機資訊),這樣查出來的硬碟資訊最正確,再用終端機查出來各自的磁碟機代號,寫入到 /etc/rc.local 這樣在進入系統中就會直接掛上去了&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;2. 查出磁碟機的資訊&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;df -h&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;文件系统 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;容量 &amp;nbsp;已用 &amp;nbsp;可用 已用% 挂载点&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;/dev/sda5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 127G &amp;nbsp; 13G &amp;nbsp;114G &amp;nbsp; 11% /media/047E-1AF0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;/dev/sda6 &amp;nbsp; &amp;nbsp; &amp;nbsp; 132G &amp;nbsp;4.5G &amp;nbsp;128G &amp;nbsp; &amp;nbsp;4% /media/237D-1AF7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;/dev/sda1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;74G &amp;nbsp; 14G &amp;nbsp; 61G &amp;nbsp; 18% /media/WINXP&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;2.先卸下所有磁碟機,再建立相對應的目錄&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo umount&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;/media/047E-1AF0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo umount&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;/media/237D-1AF7&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo umount&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;/media/WINXP&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo mkdir /media/c&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo mkdir /media/d&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo mkdir /media/e&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;3.寫到 /etc/rc.local 中&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;sudo gedit /etc/rc.local 加入以下的文字(要加在 exit 0 上面)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;filesystem类型根据&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;sudo fdisk /dev/sda -l&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;判定&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;sudo mount&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #990000; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;-t vfat -o iocharset=utf8&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;uid=yaomj,gid=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;yaomj&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&amp;nbsp;/dev/sda1 /media/c&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;sudo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;mount&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #990000; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;-t vfat -o iocharset=utf8&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;uid=yaomj,gid=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;yaomj&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&amp;nbsp;/dev/sda5 /media/d&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;sudo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;mount&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #990000; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;-t vfat&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #990000; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;-o iocharset=utf8&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 26px; text-align: left;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;uid=yaomj,gid=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;yaomj&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;/dev/sda6 /media/e&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;#注：&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;uid=yaomj,gid=&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Arial; font-size: 14px; font-weight: bold; line-height: 26px; text-align: left;&quot;&gt;yaomj 改变&lt;/span&gt;&lt;span style=&quot;font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;/media/x下文件的属主&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;4.這樣就在開機進入後就會直接掛上硬碟了..如果你的系統是10.4以前的,這樣作也可以直接就掛上磁碟機而且也不用密碼...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;5.在12.04上用所述方法不能自动加载，可以通过&lt;a href=&quot;http://yaojeff.blogspot.com/2012/04/expectroot.html&quot;&gt;expect方式&lt;/a&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;#!/usr/bin/expect&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;spawn sudo mount -t vfat -o iocharset=utf8,uid=yaomj,gid=yaomj /dev/sda1 /media/c&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;expect {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&quot;*password*&quot; { send &quot;shan\r&quot;; exp_continue}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;interact&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;然后在右上角的小齿轮-&amp;gt;添加启动程序&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;comText&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; font-family: Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, 微軟正黑體, &#39;LiHei Pro&#39;, &#39;WenQuanYi Micro Hei&#39;, &#39;Droid Sans Fallback&#39;, &#39;AR PL UMing TW&#39;, 新細明體, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
[1]&lt;a href=&quot;http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=25448&quot; style=&quot;background-color: transparent; text-align: left;&quot;&gt;http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=25448&lt;/a&gt;&lt;br /&gt;
[2]&lt;a href=&quot;http://www.linuxquestions.org/questions/linux-general-1/how-to-give-not-root-user-ability-to-mount-devices-to-any-mount-point-374417/&quot;&gt;http://www.linuxquestions.org/questions/linux-general-1/how-to-give-not-root-user-ability-to-mount-devices-to-any-mount-point-374417/&lt;/a&gt;&lt;br /&gt;
[3]&lt;a href=&quot;http://linux.die.net/man/8/mount&quot;&gt;http://linux.die.net/man/8/mount&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
[4]&lt;a href=&quot;http://hi.baidu.com/tusijifn/blog/item/0c84d652b40b476e843524f1.html&quot;&gt;http://hi.baidu.com/tusijifn/blog/item/0c84d652b40b476e843524f1.html&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/1792806898673462755/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/05/ubuntuwindows.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/1792806898673462755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/1792806898673462755'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/05/ubuntuwindows.html' title='ubuntu自动挂载Windows分区'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-7230196373442259729</id><published>2012-04-27T06:01:00.001-07:00</published><updated>2012-04-27T06:01:21.520-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="green"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>一些绿色软件下载站点</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.jayxon.com/&quot;&gt;http://www.jayxon.com/&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://search.jayxon.com/&quot;&gt;http://search.jayxon.com/&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://home.ustc.edu.cn/~jayxon/&quot;&gt;http://home.ustc.edu.cn/~jayxon/&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.hit9.net/&quot;&gt;http://www.hit9.net/&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.iwanpc.com/&quot;&gt;http://www.iwanpc.com/&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.52fengbao.com/&quot;&gt;http://www.52fengbao.com/&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.soft711.com/&quot;&gt;http://www.soft711.com/&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/7230196373442259729/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/blog-post_27.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/7230196373442259729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/7230196373442259729'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/blog-post_27.html' title='一些绿色软件下载站点'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-6809172651615627266</id><published>2012-04-27T01:18:00.004-07:00</published><updated>2012-04-27T01:18:42.682-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="deb"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu安装chrome deb异常解决</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Ubuntu 12.04 32位 安装 Chrome stable 版本, 双击提示 软件中心提示&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;“内部错误 无法打开文件 /home/user/xxxx/google-chrome-stable_current_i386.deb”&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;原因我也没有查明, 但是做了以下操作后, 就能够正确安装了&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;首先 更新软件中心&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get upgrade software-center&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strike&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;然后安装一个包 lzma 好象是 7zip 的支持吧&lt;/span&gt;&lt;/strike&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strike&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strike&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strike&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install lzma lzma-dev&lt;/span&gt;&lt;/strike&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;然后再双击下载下来的deb包 既可正确安装&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;PS: 如果无法更新software center, 尝试先注销用户, 然后使用字符界面进行更新!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/6809172651615627266/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntuchrome-deb.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6809172651615627266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6809172651615627266'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntuchrome-deb.html' title='ubuntu安装chrome deb异常解决'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-8915623714290558735</id><published>2012-04-27T00:49:00.000-07:00</published><updated>2012-04-27T10:23:49.469-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="RTX"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="wine"/><title type='text'>ubuntu install wine,winetricks and RTX</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;安装Wine&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.命令行方式&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.1添加软件源ppa&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;)Ubuntu软件中心&amp;gt;编辑&amp;gt;软件源&amp;gt;其他&amp;gt;添加&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21px; white-space: pre-wrap;&quot;&gt;输入apt行：&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ppa:ubuntu-wine/ppa&lt;/span&gt;或者&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 13px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ppa:wine-cn/ppa&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;(2)或者命令行添加软件源:&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;sudo add-apt-repository ppa:ubuntu-wine/ppa&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.2更新&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;sudo apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.3安装&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;sudo apt-get install wine&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.4&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;解决&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;中文&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;乱码&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;问题&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 13px; white-space: pre;&quot;&gt;ln -s /usr/share/fonts/truetype/wqy/wqy-microhei.ttc&amp;nbsp; ~/.wine/drive_c/windows/Fonts/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 12px; line-height: 13px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;gedit zh.reg&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter .syntaxhighlighter {     background-color: 999999 } perl  &quot; id=&quot;highlighter_514122&quot; style=&quot;background-color: white !important; font-size: 1em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; width: 773px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(225, 231, 233); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 2px; border-collapse: collapse; border-color: initial !important; border-image: initial; border-left-color: rgb(225, 231, 233); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(225, 231, 233); border-right-style: solid; border-right-width: 2px; border-style: initial !important; border-top-color: rgb(225, 231, 233); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 2px; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 5px; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 773px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f1f5f6; background-image: initial; background-origin: initial; border-bottom-color: rgb(255, 255, 255); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial !important; border-left-color: rgb(255, 255, 255); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(255, 255, 255); border-right-style: dotted; border-right-width: 1px; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px; position: static !important; right: auto !important; top: auto !important; vertical-align: middle; width: auto !important;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
1&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
2&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
3&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
4&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
5&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
6&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
7&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
8&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
9&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
10&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
11&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
12&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
13&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
14&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
15&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f1f5f6; background-image: initial; background-origin: initial; border-bottom-color: rgb(255, 255, 255); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-image: initial !important; border-left-color: rgb(255, 255, 255); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(255, 255, 255); border-right-style: dotted; border-right-width: 1px; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px; position: static !important; right: auto !important; top: auto !important; vertical-align: middle; width: 738px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;REGEDIT4&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;[HKEY_CURRENT_USER\Software\Wine]&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;Version&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;win7&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;Tahoma&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;WenQuanYi Micro Hei&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;Lucida Sans Unicode&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;wqy-microhei.ttc,wqy-microhei&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;Microsoft Sans Serif&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;wqy-microhei.ttc,wqy-microhei&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;SimSun&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;wqy-microhei.ttc,wqy-microhei&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;Tahoma&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;wqy-microhei.ttc,wqy-microhei&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;[HKEY_CURRENT_USER\Control Panel\Desktop]&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;FontSmoothing&quot;&lt;/code&gt;&lt;code class=&quot;perl plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;=&lt;/code&gt;&lt;code class=&quot;perl string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&quot;2&quot;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;执行：&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;regedit&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;zh.reg&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;1.5&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 17px;&quot;&gt;处理中文汉字前二个子为方块的 BUG&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;复制&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;oleaut32.dll,msvcirt.dll&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 17px;&quot;&gt;cp C:\WINDOWS\system32\{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;oleaut32.dll,msvcirt.dll&lt;/span&gt;&lt;span style=&quot;font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 17px;&quot;&gt;}&amp;nbsp;~/.wine/drive_c/windows/system32/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px; margin-bottom: 8px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
在 wine 的配置中,加入一个 oleaut32.dll 的原装先于内建&lt;/div&gt;
&lt;input height=&quot;306&quot; src=&quot;http://www.php-oa.com/wp-content/uploads/rtxwinebug.jpg&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; type=&quot;image&quot; width=&quot;429&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2.另外可以通过软件中心安装&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small; font-weight: bold;&quot;&gt;Microsoft Windows Compatibility Layer (meta package)&lt;/span&gt;来安装wine（&lt;span style=&quot;background-color: red;&quot;&gt;慢&lt;/span&gt;）&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;安装&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;winetricks&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;wget http://winetricks.org/winetricks&lt;br /&gt;chmod +x winetricks&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 17px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: #38761d; font-size: x-small;&quot;&gt;sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;注意会提示需要手动下载&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;http://download.cnet.com/Microsoft-XML-Parser-MSXML-3-0-Service-Pack-7-SP7/3000-7241_4-10731613.html&quot;&gt;msxml3.msi&lt;/a&gt;然后保存到&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;~/.cache/winetricks/msxml3目录&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;继续执行&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 17px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: #38761d; font-size: x-small;&quot;&gt;sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #f1f5f6; font-family: 微软雅黑, Verdana, Geneva, Tahoma, &#39;BitStream vera Sans&#39;, Arial, Helvetica, sans-serif; font-size: 12px; margin-bottom: 8px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;color: #333333;&quot;&gt;
在安装RTX的命令行上加上环境参数&lt;/div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;env LANG=zh_CN.UTF-8 wine rtx.exe&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]&lt;a href=&quot;http://wiki.winehq.org/winetricks&quot;&gt;http://wiki.winehq.org/winetricks&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[2]&lt;a href=&quot;http://tech.lezi.com/archives/75&quot;&gt;http://tech.lezi.com/archives/75&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[3]&lt;a href=&quot;http://www.php-oa.com/2009/07/28/wine-rtx.html&quot;&gt;http://www.php-oa.com/2009/07/28/wine-rtx.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[4]&lt;a href=&quot;http://www.php-oa.com/2011/01/06/linux-wine-rtx.html&quot;&gt;http://www.php-oa.com/2011/01/06/linux-wine-rtx.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[5]&lt;a href=&quot;http://www.beyondlinux.com/notes/ubuntu-11-10-wine-qq/&quot;&gt;http://www.beyondlinux.com/notes/ubuntu-11-10-wine-qq/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[6]&lt;a href=&quot;http://kegel.com/wine/scale9x/scale9x-kegel-wine.pdf&quot;&gt;wine的介绍ppt&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[7]&lt;a href=&quot;http://zaneblog.info/ubuntu/ubuntu-rtx.html&quot;&gt;http://zaneblog.info/ubuntu/ubuntu-rtx.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/8915623714290558735/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu-install-winewinetricks-and-rtx.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/8915623714290558735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/8915623714290558735'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu-install-winewinetricks-and-rtx.html' title='ubuntu install wine,winetricks and RTX'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-3188194015223003037</id><published>2012-04-25T23:37:00.004-07:00</published><updated>2012-04-25T23:37:53.777-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualbox"/><title type='text'>virtualbox VERR_DISK_FULL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #ecf3f7; color: #333333; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FAT 32 format on the drive and are trying to put a file bigger than 4 gig on it. Convert to NTFS.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;em style=&quot;color: #dd4b39; font-style: normal;&quot;&gt;FAT32&lt;/em&gt;不支持&lt;em style=&quot;color: #dd4b39; font-style: normal;&quot;&gt;4G&lt;/em&gt;以上的单个文件,将磁盘格式转换成NTFS&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]&lt;a href=&quot;https://forums.virtualbox.org/viewtopic.php?f=1&amp;amp;t=27223&quot;&gt;https://forums.virtualbox.org/viewtopic.php?f=1&amp;amp;t=27223&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/3188194015223003037/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/virtualbox-verrdiskfull.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3188194015223003037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3188194015223003037'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/virtualbox-verrdiskfull.html' title='virtualbox VERR_DISK_FULL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-1147454896371766008</id><published>2012-04-25T01:27:00.003-07:00</published><updated>2012-04-25T01:27:21.952-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>expect自动执行对话切换到root用户</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.ubuntu上安装expect:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 28px;&quot;&gt;&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install expect&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 28px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2.查看expect安装成功没&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;dpkg -s expect&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;状态：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;Status: &lt;b&gt;install ok installed&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;3.查看expect安装到哪个目录&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;whereis expect&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;结果：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;expect: &lt;b&gt;/usr/bin/expect&lt;/b&gt; /usr/bin/X11/expect /usr/share/man/man1/expect.1.gz&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #535353; line-height: 28px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;4.实现自动切换到root用户的功能&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #535353; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;$ vi su_root.exp&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #535353; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;输入如下片段&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;&lt;b&gt;#!/usr/bin/expect&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;spawn su - root&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;expect {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;&amp;nbsp;&quot;密码：&quot; { send &quot;your password\r&quot;; exp_continue }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 28px;&quot;&gt;interact&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]&lt;a href=&quot;http://fanqiang.chinaunix.net/a4/b8/20010912/1000001278.html&quot;&gt;http://fanqiang.chinaunix.net/a4/b8/20010912/1000001278.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/1147454896371766008/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/expectroot.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/1147454896371766008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/1147454896371766008'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/expectroot.html' title='expect自动执行对话切换到root用户'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-6104712834371256984</id><published>2012-04-24T04:28:00.000-07:00</published><updated>2012-04-24T21:57:51.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="jdk"/><category scheme="http://www.blogger.com/atom/ns#" term="tom"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu安装jdk,eclipse,tomcat</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html&quot;&gt;jdk下载地址&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;http://211.167.112.25/download/329973/348526/4/gz/220/244/1334138225628_244/apache-tomcat-6.0.35.tar.gz&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tomcat下载地址&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;http://mirror.bjtu.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk.tar.gz&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;eclipse下载地址&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;jdk安装&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cd ~/bin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f7f7f7; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo&amp;nbsp;sh&amp;nbsp;jdk-6u*-linux-i586.bin&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;设置环境变量&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f7f7f7; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo&amp;nbsp;gedit&amp;nbsp;/etc/environment&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong style=&quot;background-color: #f8f8f8; color: #333333; font-weight: bold; line-height: 28px; text-align: center; text-indent: 28px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;在文件中添加：&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: #f8f8f8; background-image: initial; background-origin: initial; line-height: 28px; margin-bottom: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 591px;&quot;&gt;&lt;ol class=&quot;dp-xml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f7f7f7; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; list-style-image: initial; list-style-position: initial; margin-bottom: 1px !important; margin-left: 55px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px; word-break: normal; word-wrap: break-word;&quot;&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;JAVA_HOME&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=/home/xxx/bin/jdk1.6.0_31&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;JRE_HOME&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=/home/xxx/bin/jdk1.6.0_31/jre&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;CLASSPATH&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f7f7f7; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo&amp;nbsp;gedit&amp;nbsp;/etc/profile&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;添加&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: #f8f8f8; line-height: 28px;&quot;&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-xml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #e6e6e6; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; line-height: 28px; list-style-image: initial; list-style-position: initial; margin-bottom: 1px !important; margin-left: 55px; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 5px; word-break: normal; word-wrap: break-word;&quot;&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; line-height: 28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;JAVA_HOME&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; line-height: 28px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=&lt;span style=&quot;background-color: #f7f7f7;&quot;&gt;&lt;span style=&quot;color: black; font-size: small; line-height: normal;&quot;&gt;/home/xxx&lt;/span&gt;/bin&lt;/span&gt;/jdk1.6.0_31&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;JRE_HOME&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=&lt;span style=&quot;background-color: #f7f7f7;&quot;&gt;&lt;span style=&quot;color: black; font-size: small; line-height: normal;&quot;&gt;/home/xxx&lt;/span&gt;/bin&lt;/span&gt;/jdk1.6.0_31/jre&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;CLASSPATH&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;alt&quot; style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-origin: initial; background-position: -498px -70px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: inherit; line-height: 18px; list-style-image: none; list-style-position: outside !important; list-style-type: decimal; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 10px !important; padding-right: 3px !important; padding-top: 0px !important; word-break: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;export&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot; style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;PATH&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; color: #5c5c5c; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;eclipse安装&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cd ~/bin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo tar xvfz eclipse-jee-indigo-SR2-linux-gtk.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install --no-install-recommends gnome-panel&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;gnome-desktop-item-edit ~/ --create-new&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ubuntu12.4安装不了，只有采用&lt;a href=&quot;http://blog.csdn.net/kesenhoo/article/details/7056370&quot;&gt;新建.desktop文件的形式&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;输入命令:sudo gedit /usr/share/applications/Eclipse.desktop&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;把下面的内容填入文件，做对应的修改，点击保存即可&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[Desktop Entry]&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Name=Eclipse#AP名称&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Comment=Eclipse&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;注释&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Exec=目录/bin/eclipse/eclipse&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;执行文件目录&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Icon=目录/eclipse/icon.xpm&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;图标位置&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Terminal=false&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Type=Application&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Categories=GNOME;Application;Programing&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;为这个AP分类&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;StartupNotify=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tomcat安装&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cd ~/bin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo tar zxvf apache-tomcat-6.0.35.tar.gz&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mv apache-tomcat-6.0.35 tomcat6&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo gedit&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;~/bin/tomcat6/bin/&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;catalina.sh &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;上面添加：&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;JAVA_HOME=/home/xxx/bin/jdk1.6.0_31&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;JAVA_OPTS=&quot;-server -Xms512m -Xmx1024m -XX:PermSize=600M -XX:MaxPermSize=600m -Dcom.sun.management.jmxremote&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tomcat的端口（一般默认为8080），如果发生冲突，则可以在以下文件修改。&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;~/bin/tomcat6/conf/server.xml 文件里的：&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Connector port=&quot;9090&quot; protocol=&quot;HTTP/1.1&quot; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;connectionTimeout=&quot;20000&quot; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;redirectPort=&quot;8443&quot; /&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;改成9090，或者其它均可（这里用9090吧）。&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;启动Tomcat:sh&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;~/bin/tomcat6/bin&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/starup.sh &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/6104712834371256984/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntujdkeclipsetomcat.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6104712834371256984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6104712834371256984'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntujdkeclipsetomcat.html' title='ubuntu安装jdk,eclipse,tomcat'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-6218035159952025641</id><published>2012-04-24T01:23:00.001-07:00</published><updated>2012-05-01T18:36:47.655-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu11.10 install mysql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;1.&lt;a href=&quot;http://dev.mysql.com/downloads/mysql/&quot;&gt;下载&lt;/a&gt;MySQL-server*.rpm,MySQL-client*.rpm&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;2.&lt;a href=&quot;http://yaojeff.blogspot.com/2012/04/install-rpm-package-on-ubuntu-linux.html&quot;&gt;安装rpm&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f5f5ba; color: #030303; font-family: &#39;Courier New&#39;,Courier,monospace; line-height: 17px;&quot;&gt;sudo alien&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;error&lt;/span&gt;: . * The server quit without updating PID file (/var/lib/mysql/ubuntu.pid).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;换最简单的命令行安装吧&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;sudo&amp;nbsp;&lt;span style=&quot;background-color: #f5f5ba; color: #030303; line-height: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5ba; color: #030303; line-height: 16px;&quot;&gt;apt-get install mysql-server&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; line-height: 16px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;error&lt;/span&gt;&lt;span style=&quot;color: #030303;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #f5f5ba; color: #030303; line-height: 16px;&quot;&gt;下列软件包有未满足的依赖关系：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #f5f5ba; color: #030303; line-height: 16px;&quot;&gt;mysql-server : 依赖: mysql-server-5.1 但是它将不会被安装&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f5f5ba; color: #030303; font-family: &#39;Courier New&#39;,Courier,monospace; line-height: 16px;&quot;&gt;E: 无法修正错误，因为您要求某些软件包保持现状，就是它们破坏了软件包间的依赖关系。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;换个软件源&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;国内的源列表&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;先备份&amp;nbsp;&lt;span style=&quot;background-color: #f5f5ba; color: #030303;&quot;&gt;sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;dl style=&quot;background-color: #f5f5ba; background-image: none !important; color: #030303; text-align: left;&quot;&gt;&lt;/dl&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;修改源 sudo gedit&amp;nbsp;&lt;span style=&quot;background-color: #f5f5ba; color: #030303;&quot;&gt;/etc/apt/sources.list&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;执行更新 sudo apt-get update&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #030303; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;a href=&quot;http://www.blogjava.net/yjhmily/articles/336926.html&quot;&gt;安装卸载&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;编码问题&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; line-height: 16px;&quot;&gt;在mysql中默认字符集是latin1，&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; line-height: 16px;&quot;&gt;想要设置字符集为uft-8，可以在 my.cnf 文件中添加以下设置：&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; line-height: 16px;&quot;&gt;·［client］&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; line-height: 16px;&quot;&gt;default-character-set=utf8&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; line-height: 16px;&quot;&gt;·［mysqld］&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5d5; background-image: none ! important; color: maroon; line-height: 16px; margin: 0px; padding: 0px;&quot;&gt;default-character-set=utf8&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5d5; background-image: none ! important; color: maroon; line-height: 16px; margin: 0px; padding: 0px;&quot;&gt;skip-character-set-client-handshake&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; line-height: 16px;&quot;&gt;&amp;nbsp;#此处是忽略客户端的字符集，使用服务器的设置&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;[1]&lt;a href=&quot;http://dev.mysql.com/downloads/mysql/&quot;&gt;http://dev.mysql.com/downloads/mysql/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;[2]&lt;a href=&quot;http://www.diybl.com/course/7_databases/mysql/Mysqljs/20111021/562182.html&quot;&gt;http://www.diybl.com/course/7_databases/mysql/Mysqljs/20111021/562182.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;[3]&lt;a href=&quot;http://xiaogangblog.com/archives/440&quot;&gt;http://xiaogangblog.com/archives/440&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;[4]&lt;a href=&quot;http://stuffthatspins.com/2011/01/08/ubuntu-10-x-completely-remove-and-clean-mysql-installation/&quot;&gt;http://stuffthatspins.com/2011/01/08/ubuntu-10-x-completely-remove-and-clean-mysql-installation/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;[5]&lt;a class=&quot;titles&quot; href=&quot;http://forum.ubuntu.org.cn/viewtopic.php?f=44&amp;amp;t=204749&quot; style=&quot;background-color: #f5f5d5; color: rgb(46, 121, 219) !important; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;MySql 数据库编码设置&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;[6]&lt;a class=&quot;titles&quot; href=&quot;http://forum.ubuntu.org.cn/viewtopic.php?f=44&amp;amp;t=338415&quot; style=&quot;background-color: #f5f5d5; color: rgb(46, 121, 219) !important; line-height: 21px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;shell脚本操作mysql&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[7]http://blog.163.com/yes___ican/blog/static/185062449201241113045370/&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/6218035159952025641/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu1110-install-mysql-server.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6218035159952025641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6218035159952025641'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu1110-install-mysql-server.html' title='ubuntu11.10 install mysql server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-7001333915390389583</id><published>2012-04-24T01:00:00.003-07:00</published><updated>2012-04-24T01:00:53.736-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="root"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu root相关命令</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;安装完ubuntu后sudo时操作异常：&lt;span style=&quot;background-color: white; color: #111111; line-height: 22px;&quot;&gt;su: Authentication failure&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #111111; line-height: 22px;&quot;&gt;执行&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #111111;&quot;&gt;sudo passwd root设置root用户密码&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #111111; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;如果不想使用sudo，你可以通过下面的命令锁住root用户密码&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ sudo passwd -l root&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ sudo usermod -p &#39;!&#39; root&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;如何直接使用root用户登录&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1.System -&amp;gt; Administration -&amp;gt; Login window&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #111111; line-height: 22px; margin-bottom: 1.571em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;2.Security tab, click on the check box “Allow local system administrator” as shown below. After this change, reboot the system and login directly using root account.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]&lt;a href=&quot;http://www.thegeekstuff.com/2009/09/ubuntu-tips-how-to-login-using-su-command-su-gives-authentication-failure-error-message/&quot;&gt;http://www.thegeekstuff.com/2009/09/ubuntu-tips-how-to-login-using-su-command-su-gives-authentication-failure-error-message/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/7001333915390389583/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu-root.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/7001333915390389583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/7001333915390389583'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu-root.html' title='ubuntu root相关命令'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-3828696011744148247</id><published>2012-04-18T07:24:00.002-07:00</published><updated>2012-04-18T07:46:37.633-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu11.10 install tomcat6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo apt-get install tomcat6&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;设置默认端口&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;sudo gedit&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: -webkit-auto;&quot;&gt;/etc/tomcat6/server.xml&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;修改默认openjdk&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo gedit&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;/etc/default/tomcat6&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;修改&lt;strong style=&quot;background-color: #f0eee6;&quot;&gt;/etc/tomcat6权限&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; text-align: left;&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo chgrp -R tomcat6 /etc/tomcat6&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; text-align: left;&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo chmod -R g+w /etc/tomcat6&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; text-align: left;&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;strike&gt;默认安装到/host/Program/Develop/Tomcat6目录&lt;/strike&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: #f9f9f9; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 12px; font-style: italic; line-height: 13px; text-align: -webkit-auto;&quot;&gt;/etc/init.d/tomcat6 restart/stop/start&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]&lt;a href=&quot;https://help.ubuntu.com/11.04/serverguide/C/tomcat.html&quot;&gt;https://help.ubuntu.com/11.04/serverguide/C/tomcat.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[2]&lt;a href=&quot;http://www.howtoforge.com/how-to-install-tomcat6-with-sun-java-and-apache2-integration-on-ubuntu-10.04-lucid-lynx-with-virtual-hosts&quot;&gt;http://www.howtoforge.com/how-to-install-tomcat6-with-sun-java-and-apache2-integration-on-ubuntu-10.04-lucid-lynx-with-virtual-hosts&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/3828696011744148247/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu1110-install-tomcat6.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3828696011744148247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3828696011744148247'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ubuntu1110-install-tomcat6.html' title='ubuntu11.10 install tomcat6'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-8549745013423962445</id><published>2012-04-17T20:24:00.003-07:00</published><updated>2012-04-18T19:57:25.106-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aptana"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="zen coding"/><title type='text'>Aptana&amp;Zen-Coding Eclipse Plugin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Aptana主要是协助开发HTML, CSS, JavaScript的插件，其中包含对jQuery, prototype, scriptaculous, Ext JS, dojo, Spry, YUI库的支持，对使用这些库文件开发前端的将有很大的帮助。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;a href=&quot;http://aptana.org/products/studio3/download&quot;&gt;下载地址&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://aptana.org/downloads/start#&quot; style=&quot;background-color: #f0f0f0; color: #029bc1; font-weight: bold; position: relative; text-align: -webkit-auto; text-decoration: none; z-index: 1;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;http://download.aptana.com/studio3/plugin/install&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;update:发现用eclipse&amp;nbsp;&lt;span style=&quot;background-color: #f0f0f0; color: #535353;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: #f0f0f0; color: #535353; font-weight: bold; position: relative; z-index: 1;&quot;&gt;Install New Software&lt;/strong&gt;&lt;span style=&quot;background-color: #f0f0f0; color: #535353;&quot;&gt;.&lt;/span&gt;在线安装后不能使用，只能手工&lt;a href=&quot;http://d1iwq2e2xrohf.cloudfront.net/tools/studio/plugin/install/studio3/3.1.1.201204131904/index.html&quot;&gt;下载&lt;/a&gt;安装&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;table style=&quot;table-layout: fixed; width: 100%;&quot;&gt;&lt;tbody&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4183c4; font-family: &#39;Courier New&#39;, Courier, monospace; font: inherit; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;&lt;a href=&quot;http://zen-coding.ru/eclipse/updates/&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4183c4; font-size: 15px; font: inherit; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;http://zen-coding.ru/eclipse/updates/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;eclipse j2ee plugin&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;http://download.eclipse.org/webtools/updates/&quot; rel=&quot;nofollow&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #4a6b82; cursor: pointer; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;http://download.eclipse.org/webtools/updates/&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]http://www.kuqin.com/developtool/20090318/40850.html&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[2]http://www.ajaxbbs.net/前端开发常用工具之开发工具篇/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[3]&lt;a href=&quot;http://www.css88.com/archives/685&quot; rel=&quot;bookmark&quot; style=&quot;background-color: #f5f5d5; color: rgb(46, 121, 219) !important; text-decoration: none;&quot; title=&quot;用Aptana调试JavaScript教程&quot;&gt;用Aptana调试JavaScript教程&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[4]&lt;a href=&quot;http://www.css88.com/archives/167&quot; rel=&quot;bookmark&quot; style=&quot;background-color: #f5f5d5; color: rgb(46, 121, 219) !important; text-decoration: none;&quot; title=&quot;Aptana使用入门一（中文）&quot;&gt;Aptana使用入门&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[5]&lt;a href=&quot;http://stackoverflow.com/questions/7338376/aptana-studio-3-eclipse-plugin-need-an-archived-version&quot;&gt;aptana-studio-3-eclipse-plugin-need-an-archived-version&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[6]&lt;a href=&quot;https://github.com/sergeche/eclipse-zencoding&quot;&gt;zen-coding github site&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[7]&lt;a href=&quot;http://stackoverflow.com/questions/930041/j2ee-eclipse-what-plugins-do-you-use-and-what-for&quot;&gt;http://stackoverflow.com/questions/930041/j2ee-eclipse-what-plugins-do-you-use-and-what-for&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[8]&lt;a href=&quot;http://www.oschina.net/question/127970_18706&quot;&gt;js框架支持&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[9]&lt;a href=&quot;https://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries&quot;&gt;https://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/8549745013423962445/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/aptana.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/8549745013423962445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/8549745013423962445'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/aptana.html' title='Aptana&amp;Zen-Coding Eclipse Plugin'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-3425448937289598582</id><published>2012-04-17T18:21:00.001-07:00</published><updated>2012-04-17T18:21:00.802-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>【外刊IT评论网】内疚的程序员</title><content type='html'>&lt;br /&gt;          &lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;br /&gt;          &lt;br/&gt;&lt;br /&gt;&lt;p&gt;我发现，当程序员开发了一个项目，然后要把它移交给其他程序员时，他们会对开发这个项目时做出的一些决策感到内疚。我问他们当时为什么选择这样做，他们会羞愧的说，“唉，我知道这不是最好的实现方法，如果现在再去做，肯定不会采用那样的方式。”有些人可能会辩护，或强调一下外部因素，比如工期压力。但我的观点是，程序员不需要为老的项目感到太多的内疚。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;经验&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;我承认，我曾经有一次重新发球的经验。那是一个作为内部工具使用的Ruby on Rails项目。我之前对这种技术架构了解不多。基本上就是把东西按照需求拼凑起来，它运行很正常。没有多少测试，设计上必然是没有体现出最好的设计原则。但它能用。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;接着，我做了一个6个月长的Rails项目，过程完全是TDD的。在此之后，出现了一个机会，需要调整那个内部工具，增加一些功能。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;我很高兴有这次机会。我感觉对这种技术有了更好的了解，能够看出代码中存在的问题，知道如何用更好的Rails或Ruby技术来解决这些问题。这让人很兴奋。不止一次，我惊奇于那些老的代码竟然能正常的运行。我想，绝大多数程序员都很少能有这样的机会，除非他们是在维护一个老项目，我想这是一次很有价值的经历，让我在事后看清了我自己写的程序。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;综合分析&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;但后来，我开始意识到，程序员不必要为自己开发出的产品感到内疚。新的技术和实践方法不断的出现，等待着你去学习，每一次你都要权衡取舍，总会有事后诸葛亮的情况出现。我应该现在重构这个类，还是放到以后再说？我是需要把设计的容易扩展，或者根本不需要这样？做这个项目时我们是否应该首先尽量的减少技术上的风险?&lt;/p&gt;&lt;br /&gt;&lt;p&gt;在针对某一问题我遍历群书后，对解决这类问题我学会了新的技术，新的方法。但这并不能妨碍我们当前的工作。我们不可能百分百的知道我们所需要的知识，我们能想到的方案只是能满足解决当前问题需求。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;我相信，程序员都已经尽了他们最大的努力。但这并不能免除程序员犯错误，并从错误中学到经验，也不能保证他们能够进行先知先觉的学习。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;我想说的是，程序员如果没有足够的知识以最佳的方式来解决所有的问题或在困境中做出最正确的抉择，他不必为此不安。在之后的岁月里认识到了自己的错误，这是自己进步的标识。每一次都把事情做的正确无误，这暗示一种技术的停滞，或完美主义。哪一种更有可能？&lt;/p&gt;&lt;br /&gt;&lt;p&gt;你是否也有过这样的一种愿望，希望能够重新来一次，改变某个软件项目中的某些东西？有过看着自己写过的代码感到恶心的时候？把事情做对，还是把事情做完？平衡点在哪里？在评论里留下你的想法吧！&lt;/p&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;本文来自&lt;a href=&#39;http://www.aqee.net&#39;&gt;外刊IT评论网&lt;/a&gt;(&lt;a href=&#39;http://www.aqee.net&#39;&gt;www.aqee.net&lt;/a&gt;)，原始地址：&lt;a rel=&#39;bookmark&#39; href=&#39;http://www.aqee.net/guilty-developer-syndrome/&#39;&gt;内疚的程序员&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;img width=&#39;0&#39; height=&#39;0&#39; border=&#39;0&#39; src=&#39;http://www1.feedsky.com/t1/623139485/aqee-net/feedsky/s.gif?r=http://www.aqee.net/guilty-developer-syndrome/&#39;/&gt;&lt;br/&gt;&lt;br /&gt;          &lt;/div&gt;&lt;br /&gt;          </content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/3425448937289598582/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it_4842.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3425448937289598582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3425448937289598582'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it_4842.html' title='【外刊IT评论网】内疚的程序员'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-989097543949302943</id><published>2012-04-17T17:51:00.009-07:00</published><updated>2012-04-17T18:07:56.396-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>【外刊IT评论网】你做过的最有效的提高你的编程水平的一件事情是什么</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
最近在stackexchange网站上看到了一个非常好的问答，有人问：你做过的最有效的提高你的编程水平的一件事情是什么?&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
回首作为一个程序员这些年来的生活和职业道路，我使用了很多种不同的方法来提高我的编程技能 —— 阅读代码，编写程序，阅读书籍，听讲座，看视频，等等。&lt;br /&gt;
&lt;br /&gt;
我的问题是：你做过的最有效的提高你的编程水平的一件事情是什么?对于那些想提高水平的程序员，你的建议是什么？&lt;br /&gt;
&lt;br /&gt;
我希望你们提供的答案是各种各样的，并且不是那种“放之四海而皆准”的答案 —— 我希望得到适用于不同人的不同的答案。&lt;br /&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
有很多人给出了自己的答案，在这里，我将其中最受认可的前三种答案选出来翻译给大家。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
最受欢迎的回答：学无止境&lt;/h3&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
没有特别的先后次序…&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;&lt;strong&gt;和比自己更聪明的人一起工作&lt;/strong&gt; &lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;strong&gt;永远乐意听取他人的意见，不管对方是低级水平，一般水平，资深，还是大师。职称头衔并不代表一切。&lt;/strong&gt; &lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;学习其它的框架/语言，学习它们是的工作原理和思想，拿它们跟你已知的技术做比较。&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;学习各种设计模式，最佳实践理论，然后用它们检查自己先前的知识，在需要的时候使用这些模式。&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;结对编程&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
反对Joel说的一切。 &lt;img alt=&quot;;)&quot; src=&quot;http://wkee.net/qee/wordpress/wp-includes/images/smilies/icon_wink.gif&quot; /&gt; &lt;br /&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
第二受欢迎的回答：成为多面手&lt;/h3&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;strong&gt;争取成为一个‘多面手万事通’&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
在我职业生涯的早期，我在一种数据库和编程语言上是个专家。不幸的是，这种数据库在“数据库战争”中落败了，我才发现我的职业道路…很窄。在此之后，我下定决心以后决不能把自己封在一个小空间里。我开始学习所有手头上能接触到的东西：Windows，Unix，C，C++，Java，C#，Perl，Python，Access，SQL Server，Oracle，Informix，MySQL，等等。不管什么样的新的，不常见的工具或技术，我都成为“大拿” —— “去问克雷格(作者自己)，他要是不会，他会去学会的。”结果，我做了各种各样的项目，从为环境监测做嵌入式系统，到为导弹防御做命令和控制系统。&lt;br /&gt;
&lt;br /&gt;
我在各种的公司里唯一遇到的问题是：它们坚持要把我固定在一个专门的研究方向内，而我的专门研究是要成为一个多面手。&lt;strong&gt;[编辑：&lt;/strong&gt; 也叫做&lt;a href=&quot;http://en.wikipedia.org/wiki/Polymath&quot; rel=&quot;nofollow&quot;&gt;学识渊博的人&lt;/a&gt;或多才多艺的人或多领域专家。&lt;strong&gt;]&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
有些事情需要留意 … 高科技界里知识的半衰期是多少？根据摩尔定律(Moore’s law)：18-24月内，半数你学到的知识都会过时。错误的遵循这种规律的专家会轻易的在这种技术发展的压力崩溃；一个多面手要做的事就是不断的丰富自己的技能，并从应用这些技能的经历中吸取教训。&lt;br /&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
第三受欢迎的回答：不要跟臭棋篓子下棋&lt;/h3&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
我一直认为自己在不错的程序员中也算是个“灌篮高手”。直到有个家伙——我们叫他艾伦——被招进团队。艾伦很显然在很多方面都比我优秀。也比我年轻。他让我认识到，在过去的这些年里，我没有多少长进。我是一个特定技术方向的程序员，而且是水平一般。&lt;br /&gt;
&lt;br /&gt;
这惊醒我&lt;strong&gt;应该自觉的不断提高自己的水平&lt;/strong&gt;，特别是我写的代码的水平。&lt;br /&gt;
&lt;br /&gt;
艾伦引导我学会了很多东西。他告诉我，大部分我写的代码在今后的数年里都将一直维护和进行扩展，写代码时要将这点铭记在心。我应该为我的代码写自动测试程序。艾伦说代码的开发一定不能停止在第一版上，应该不断的重构，提炼，让它达到完美。我发现，我对这些语言和工具的使用都还有还很大的改进空间。&lt;br /&gt;
&lt;br /&gt;
从艾伦那我学到的最重要的一件事情是：永远不要停止学习。&lt;br /&gt;
&lt;br /&gt;
数年后，艾伦离开了公司。我的心里突然感觉空荡荡的。这些年与他为伴让我在技能上提升到了一个全新的水平，我知道现在我比团队里的其他人优秀很多。他们仍然写着糟糕的代码，犯着以前犯过的错误。我努力教育他们，但他们对此不感兴趣。事实上，他们讨厌有人这样傲慢自大的指出他们犯的错误。&lt;br /&gt;
&lt;br /&gt;
于是，几个月后，我也离开这这个公司。我去了一个很小的公司，在一个很出色的团队里工作。那里每个人都渴望学习更多知识，我喜欢这样的。&lt;br /&gt;
&lt;br /&gt;
我很幸运能遇到艾伦。没有他，我也许现在仍然待在那家死气沉沉的公司和那帮食古不化的家伙在一起，哪都去不了，想的全是自己的私利。&lt;br /&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
这个讨论在stackexchange网站上的地址是&lt;a href=&quot;http://programmers.stackexchange.com/questions/44177/what-is-the-single-most-effective-thing-you-did-to-improve-your-programming-skil&quot;&gt;这里&lt;/a&gt;。&lt;br /&gt;
&lt;br /&gt;
从我个人而言，我觉得第三个答案对我最有价值，不知各位同行们有什么感受？请写在评论里与大家分享。&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;br /&gt;
本文来自&lt;a href=&quot;http://www.aqee.net/&quot;&gt;外刊IT评论网&lt;/a&gt;(&lt;a href=&quot;http://www.aqee.net/&quot;&gt;www.aqee.net&lt;/a&gt;)，原始地址：&lt;a href=&quot;http://www.aqee.net/what-is-the-single-most-effective-thing-you-did-to-improve-your-programming-skil/&quot; rel=&quot;bookmark&quot;&gt;你做过的最有效的提高你的编程水平的一件事情是什么&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/989097543949302943/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it_1993.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/989097543949302943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/989097543949302943'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it_1993.html' title='【外刊IT评论网】你做过的最有效的提高你的编程水平的一件事情是什么'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-2621264932363886643</id><published>2012-04-17T17:51:00.007-07:00</published><updated>2012-04-17T17:51:16.687-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>【外刊IT评论网】一个女人的故事</title><content type='html'>&lt;br /&gt;          &lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;br /&gt;          &lt;br/&gt;&lt;br /&gt;&lt;p&gt;大概是六十一、二年前的样子，一个年轻聪明的黑人女孩——格温——从多伦多艾伦比初级公办学校毕业了。她的老师给了她一张通知单，单子上有秋季她要进入的中级学校的地址，她很小心的把它带回了位于圣克莱门特大街——一个生活消费适中、主要是由中产阶级家庭聚集的地区——的家中。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;洛伊丝夫人没有上过大学，但她对女儿格温抱有很高的期望。洛伊丝的父亲——格温的祖父——从巴巴多斯岛移民加拿大，就是为了要让他的子孙们有一个更好的前程。洛伊丝的几个兄弟——勒桑和伦纳德——都上过大学，勒桑是一个工程师，曾为彩色电视的生产制作发明了好几项技术。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;洛伊丝看了通知书，目瞪口呆。格温将要去的是另外一个镇子上的职业学校，这种学校里，年轻女孩们学的是如何缝纫、烹调、打字，年轻小伙们学的是如何修理汽车或浇灌混凝土。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;第二天，洛伊丝来到校长的办公室。洛伊丝想知道，为什么她的女儿去的不是几条街外的北多伦多学院这样的传统大学。是她没有达到分数线吗？格温在学校里表现不佳吗?校长宽慰她说，格温在职业学校里会过的很开心的，她会学到一门手艺，在她建立一个家庭前的，这些手艺对她会有很大帮助。洛伊丝很生气，但没有办法。学校已经做了决定。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;洛伊丝并不是这么容易被屈服的。几天后，她再次来到校长办公室，一起同来的还有她的“家族成员”。格温的祖父和叔叔们拥挤在校长办公室里，肆意的表达着他们对学校这样对待格温的事情的自己的观点。三个男人都很强硬，校长态度软化了。&lt;/p&gt;&lt;br /&gt;&lt;div style=&#39;width:510px&#39;&gt;&lt;a href=&#39;http://wkee.net/qee/wordpress/wp-content/uploads/2012/04/North_Toronto_Collegiate_Institute.JPG.scaled500.jpg&#39;&gt;&lt;img height=&#39;384&#39; width=&#39;500&#39; title=&#39;北多伦多学院&#39; alt=&#39;北多伦多学院&#39; src=&#39;http://wkee.net/qee/wordpress/wp-content/uploads/2012/04/North_Toronto_Collegiate_Institute.JPG.scaled500.jpg&#39;/&gt; &lt;/a&gt;&lt;br /&gt;&lt;p&gt;北多伦多学院&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;于是，九月份到来时，格温去了北多伦多学院，在那里久负盛名的管弦乐队里担任第一小提琴手，这培养了她一生对音乐和舞蹈的热爱。等她毕业后，她进入了多伦多大学，她是她的家族里第一个拥有这样高学历的女性。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;像很多女生一样，格温经常去一些舞会。在一个这样的舞会中，她注意的了一个小伙，按她自己的形容，是目前为止在那里见到过的跳舞跳的最好的小伙。他的名字叫查尔斯，是个白人，他个头很高，他让她想起了美国百老汇舞蹈家阿斯泰尔。他特别爱体育运动，尤其是滑雪，整个冬天在西部工作和滑雪，夏天返回到安大略省。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;他们一起跳舞，他们坠入爱河，他们结婚了，他们想在附近租一间体面的公寓。事实证明，这是不可能的。在美国很多州里，他们的婚姻是不合法的。在多伦多，他们可以结婚，但他们无法合租一个公寓，因为房东怕惹上“麻烦”。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;他们只有买一套房子才能生活中一起，他们就这样做了。这样要比租房子住贵的多，于是他们两个都不得不出去工作。格温搜索报纸上的分类公告，她发现Empire Life保险公司真正招聘年轻人做“数据处理”工作，没有工作经验要求。他们邀请应聘人进行一个“试戏”式的面试，格温于是就去了，按时，而且穿着整洁。&lt;/p&gt;&lt;br /&gt;&lt;div style=&#39;width:510px&#39;&gt;&lt;a href=&#39;http://wkee.net/qee/wordpress/wp-content/uploads/2012/04/punch.gif.scaled500.gif&#39;&gt;&lt;img height=&#39;269&#39; width=&#39;500&#39; title=&#39;老式计算机，打孔机&#39; alt=&#39;老式计算机，打孔机&#39; src=&#39;http://wkee.net/qee/wordpress/wp-content/uploads/2012/04/punch.gif.scaled500.gif&#39;/&gt; &lt;/a&gt;&lt;br /&gt;&lt;p&gt;老式计算机，打孔机&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;按她自己的回忆，她是唯一一个女性。也是唯一一个黑人。一大片年轻人排成排站在一些桌子前，那里有几个女人在分发测试题。当格温排到了队伍最前面时，一个女人想对她做一些指点。“我们是在招聘打字员，但你进错了房间。”格温已经学会了如何表现出强硬，也学到了一些小窍门。并且，她需要这份工作。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;“何不让我试一下呢？没有任何害处？”&lt;/p&gt;&lt;br /&gt;&lt;p&gt;对方耸了耸肩，她获得了一次测试的机会，拿到了那根已经削好的铅笔。有几张空着的桌子，她选了一个坐下，没有理会来自其它应聘者异样的打量，专心开始答题。很多的题都是关于数字的，例如猜测一个序列里下一个数字是什么。有一些题是逻辑智力题，例如，你需要弄清楚骑自行车的人是面包师，住在有一扇红色的门的房子里的是机械师。有一些很奇怪的问题，例如，一个三维立体图形的草图，就像一个立方体，上面少一些方块，她需要猜出什么形状的小块能过补上这缺少的地方，或哪几个小块经过翻转或扭动能做到同样的效果。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;答完了这些问题后，格温把它交了上去，等待着有人告诉她下一步该做什么。当有人叫她的名字时，一个老人陪着她进入了一个单独的房间。老人看着她，非常的惊奇，等看完了她的答卷后，他问了她很多关于她的教育和家庭背景的问题。他思考了一会，然后走出屋子叫来了一位同事。这个同事很不友好。他想知道，是谁指挥她来做这场恶作剧的。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;格温很困惑。什么恶作剧？这个同事认定她在作弊，是有人事先告诉了她答案。这一幕就像是几十年后的电影《贫民窟的百万富翁》里的场景的重现，两位面试官尽他们最大的本事来试图让她承认：她在作弊。他们告诉她，她的分数太优秀了，不可能是真的。直觉就可以告诉你一个年轻的黑人女人不可能在一个专门为计算机编程而设计的智能测评中获得99分。&lt;/p&gt;&lt;br /&gt;&lt;div style=&#39;width:510px&#39;&gt;&lt;a href=&#39;http://wkee.net/qee/wordpress/wp-content/uploads/2012/04/757px-IBM_Electronic_Data_Processing_Machine_-_GPN-2000-001881.jpg.scaled500.jpg&#39;&gt;&lt;img height=&#39;396&#39; width=&#39;500&#39; title=&#39;IBM电子数据处理机&#39; alt=&#39;IBM电子数据处理机&#39; src=&#39;http://wkee.net/qee/wordpress/wp-content/uploads/2012/04/757px-IBM_Electronic_Data_Processing_Machine_-_GPN-2000-001881.jpg.scaled500.jpg&#39;/&gt; &lt;/a&gt;&lt;br /&gt;&lt;p&gt;IBM电子数据处理机&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;计算机&lt;em&gt;什么&lt;/em&gt;？&lt;/p&gt;&lt;br /&gt;&lt;p&gt;计算机编程。Empire Life公司从IBM购买了一台计算机，就像今天的许多公司一样，他们需要开发出软件来使他们的业务处理过程自动化。除了提供硬件外，IBM公司还提供招聘和培训所有的职员使用这些新系统，包括程序员。面试官辗转于各个客户，为他们安装计算机，培训受过教育的青年如何对IBM的计算机进行编程，他们清楚的知道何等优异的候选人才能拿到格温这样的分数。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;他们试了各种各样其它的问题，其它考试的测试题，用于更高级候选人的问题。格温尽力给予回答。两个男人惊呆了。至此，他们终于信服，她没有作弊，他们知道她将会成为一个不可多得的人才。他们推荐把她按照程序分析师来培养——给了她程序分析师这最资深的职位。她完成了培训，成为了加拿大第一位女程序员。格温将要去领导多伦多市保险业一大批大型计算机化的项目开发工作。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;如今她已经退休，像大多数退休者一样，她让她的&lt;a href=&#39;http://braythwayt.com/&#39;&gt;孩子&lt;/a&gt;帮着她使用计算机。她喜欢苹果电脑，在网上做一些卖书买书的小业务。对于打破这样一个由男性统治的行业她所面对的困难，她会说些什么？&lt;/p&gt;&lt;br /&gt;&lt;p&gt;“我很轻松。计算机并不在意我是一个女人，或我是一个黑人。大多数女人比我要辛苦的多。”&lt;/p&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;本文来自&lt;a href=&#39;http://www.aqee.net&#39;&gt;外刊IT评论网&lt;/a&gt;(&lt;a href=&#39;http://www.aqee.net&#39;&gt;www.aqee.net&lt;/a&gt;)，原始地址：&lt;a rel=&#39;bookmark&#39; href=&#39;http://www.aqee.net/a-womans-story/&#39;&gt;一个女人的故事&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;img width=&#39;0&#39; height=&#39;0&#39; border=&#39;0&#39; src=&#39;http://www1.feedsky.com/t1/628090891/aqee-net/feedsky/s.gif?r=http://www.aqee.net/a-womans-story/&#39;/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;via 外刊IT评论 http://www.aqee.net/a-womans-story/&lt;br /&gt;          &lt;/div&gt;&lt;br /&gt;          </content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/2621264932363886643/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it_17.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/2621264932363886643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/2621264932363886643'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it_17.html' title='【外刊IT评论网】一个女人的故事'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-5279958864270515825</id><published>2012-04-17T17:51:00.005-07:00</published><updated>2012-04-17T17:51:16.151-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>【外刊IT评论网】那些关于如何提高效率的文章都是在虾扯蛋</title><content type='html'>&lt;br /&gt;          &lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;br /&gt;          &lt;br/&gt;&lt;br /&gt;&lt;p&gt;Hacker News上和reddit的编程板块上有很多关于如何提高效率方面的专家。几乎每周，我们都会遇到有不同的人声称他们的工作效率提高了45.67%等等。有点像Oprah的访谈节目。在某些幸运的日子里，我们会被告知使用X web应用，使用这个应用的作者推荐的敏捷方法，你能如何的最小化员工的皱眉头的时间。你应该听说过关于使用Vim如何改变一个人的生活的故事吧。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;让我把真相揭示于天下。阅读这些关于如何提高效率的文章，其本身就是一种十分没有效率的活动。如果你把这些时间用于观看Reddit上的那些猫呀狗呀的也许会更好。请思考这样一个事实，&lt;strong&gt;你这些年来读的所有的这些如何提高效率的文章并没有丝毫提高你的工作效率&lt;/strong&gt;。你早应该用你的理智认识到这些关于如何提高效率的文章都是废话。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;你也许会打断我说，“可是Jason，我知道有人在听取了Twitter上&lt;em&gt;{这里是某位杰出程序员的名字}&lt;/em&gt;的忠告后，现在每天能写出2千行代码。”不错，我也知道这个家伙。可我也听说有很些人被闪电击中而死的这种巧事。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;那本篇文章是否是一篇能提高工作效率的文章呢。也许吧。这篇有特殊用意的文章能通过劝阻你不要再读那些关于如何提高效率的文章来真正提高你的工作效率。如果它是一篇能提高你工作效率的文章，我希望它是你读的最后一篇此类文章。&lt;/p&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;本文来自&lt;a href=&#39;http://www.aqee.net&#39;&gt;外刊IT评论网&lt;/a&gt;(&lt;a href=&#39;http://www.aqee.net&#39;&gt;www.aqee.net&lt;/a&gt;)，原始地址：&lt;a rel=&#39;bookmark&#39; href=&#39;http://www.aqee.net/productivity-posts-are-bullshit/&#39;&gt;那些关于如何提高效率的文章都是在虾扯蛋&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;img width=&#39;0&#39; height=&#39;0&#39; border=&#39;0&#39; src=&#39;http://www1.feedsky.com/t1/628090892/aqee-net/feedsky/s.gif?r=http://www.aqee.net/productivity-posts-are-bullshit/&#39;/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;via 外刊IT评论 http://www.aqee.net/productivity-posts-are-bullshit/&lt;br /&gt;          &lt;/div&gt;&lt;br /&gt;          </content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/5279958864270515825/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/5279958864270515825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/5279958864270515825'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/it.html' title='【外刊IT评论网】那些关于如何提高效率的文章都是在虾扯蛋'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-398303568710810479</id><published>2012-04-17T17:51:00.003-07:00</published><updated>2012-04-17T17:51:15.674-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>【外刊IT评论网】为什么我愿意为某个老板干活而不去做IT创业</title><content type='html'>&lt;br /&gt;          &lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;br /&gt;          &lt;br/&gt;&lt;br /&gt;&lt;p&gt;当知道了我要为微软工作后，一个朋友问我“为什么你要给那个人干活？为什么不去IT创业呢？”我的回复差不多是“我喜欢每两周领一次工资的生活”，但其实还有更多的原因。&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;不错，这正常的朝九晚五的工作的一个最大的好处是稳定。我有健康保险，休假日，薪水收入也不错。这并不是我不想IT创业的最大原因。最大的原因是，我还没有找到一个我们足够感兴趣，愿意全部精力都投入到其中的目标。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;我知道，如果我草率的与人合作，完成他人的某个理想，我不会有足够的热情来完成那些创始人们需要处理的所有的零零总总的烦事。如果我自己成立一个公司去IT创业，我将需要自己处理诸如工资结算，账务，法律等问题。我现在不想做这些事情。我想的是集中精力做出一些很酷的玩意儿。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;那么，当你为老板干活时，对于遇到的那些让人厌烦的事情怎么办呢？这些事情已不再重要。如果我忘记了提交任务进度，经理会发邮件通知我。如果我忘了偿还公司内的账务，后果只会稍微严重一点点。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;我不需要成立一个IT创业公司。我可以以一个程序员的身份加入一个公司，而且能对这个公司产生&lt;strong&gt;重要&lt;/strong&gt;的影响。这毫无置疑是有一定的吸引力的，有朝一日也许我会成为这样的人。现在，我只想为“某个老板”干活，很高兴能看到我将要去开发的软件能被百万人使用。&lt;/p&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;本文来自&lt;a href=&#39;http://www.aqee.net&#39;&gt;外刊IT评论网&lt;/a&gt;(&lt;a href=&#39;http://www.aqee.net&#39;&gt;www.aqee.net&lt;/a&gt;)，原始地址：&lt;a rel=&#39;bookmark&#39; href=&#39;http://www.aqee.net/why-im-working-for-the-man-and-not-doing-a-startup/&#39;&gt;为什么我愿意为某个老板干活而不去做IT创业&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;img width=&#39;0&#39; height=&#39;0&#39; border=&#39;0&#39; src=&#39;http://www1.feedsky.com/t1/628090894/aqee-net/feedsky/s.gif?r=http://www.aqee.net/why-im-working-for-the-man-and-not-doing-a-startup/&#39;/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;via 外刊IT评论 http://www.aqee.net/why-im-working-for-the-man-and-not-doing-a-startup/&lt;br /&gt;          &lt;/div&gt;&lt;br /&gt;          </content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/398303568710810479/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/itit.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/398303568710810479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/398303568710810479'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/itit.html' title='【外刊IT评论网】为什么我愿意为某个老板干活而不去做IT创业'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-3141808536807245482</id><published>2012-04-17T17:51:00.001-07:00</published><updated>2012-04-17T17:51:14.671-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google reader starred"/><title type='text'>【外刊IT评论网】为什么我们要学习Haskell这样的编程语言</title><content type='html'>&lt;br /&gt;          &lt;div xmlns=&#39;http://www.w3.org/1999/xhtml&#39;&gt;&lt;br /&gt;          &lt;br/&gt;&lt;br /&gt;&lt;p&gt;最近的几个月，我一直在学习一种叫Haskell的编程语言。由于里面有太多的从未遇到的编程概念，整个过程就像是完全重新学习如何编程。在&lt;a href=&#39;http://corp.i.tv/&#39;&gt;i.TV&lt;/a&gt;网站上，我写了很多JavaScript(&lt;a href=&#39;http://nodejs.org/&#39; title=&#39;Node.js&#39;&gt;node.js&lt;/a&gt;和前端代码)。虽然有不少的函数式/haskell式的编程模式不能引用进来，但仍有大量的技术思想让我在使用javascript编程语言时受益不少。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;你会发现Haskell库里有能够处理&lt;strong&gt;各种事情&lt;/strong&gt;的各种各样的函数。起初我以为这些只是一种技术上的积累，但随后我认识到，这些函数相比起其它语言里的函数，它们能应用到形式更广泛的问题中。这使得它们更有价值，因为我们都不太喜欢对一些常见的问题还不得不自己去写解决方案。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;这些函数是可以&lt;strong&gt;相互组合&lt;/strong&gt;&lt;sup&gt;&lt;a href=&#39;http://www.aqee.net/#fn:1&#39; rel=&#39;footnote&#39;&gt;1&lt;/a&gt; &lt;/sup&gt;的：它们能针对性的解决某些问题，而不对你的代码做任何依赖，所以，你可以拼装它们，组合成一个能够解决你的大问题的东西。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;高阶函数(Higher Order Functions)&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;在Haskell语言中，最多的被反复使用的函数都是&lt;a href=&#39;http://en.wikipedia.org/wiki/Higher-order_function&#39; title=&#39;Higher Order Function&#39;&gt;高阶函数(higher order functions)&lt;/a&gt;——能以函数作为参数、能返回函数的函数。这使得它们具有固有的灵活性。下面是一个不太灵活的函数：它计算一个数组里等于某个值的元素的个数。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;// 不灵活&lt;/span&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;countMatching&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;array&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;var&lt;/span&gt; &lt;span&gt;counted&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;for&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;var&lt;/span&gt; &lt;span&gt;i&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt; &lt;span&gt;i&lt;/span&gt; &lt;span&gt;&amp;lt;&lt;/span&gt; &lt;span&gt;array&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;length&lt;/span&gt;&lt;span&gt;;&lt;/span&gt; &lt;span&gt;i&lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;if&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;array&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;]&lt;/span&gt; &lt;span&gt;==&lt;/span&gt; &lt;span&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;            &lt;span&gt;counted&lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;counted&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == 2&lt;/span&gt;&lt;br /&gt;&lt;span&gt;countMatching&lt;/span&gt;&lt;span&gt;([&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;],&lt;/span&gt; &lt;span&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;它不灵活，因为它只能用来计算一个数组中&lt;strong&gt;精确匹配某个值&lt;/strong&gt;的元素的个数。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;下面是一个灵活一些的版本，它能接受一个函数，而不是一个值，作为参数。我们可以用它来对任何数据、任何对象进行比较。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;// more flexible&lt;/span&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;count&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;array&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;matching&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;var&lt;/span&gt; &lt;span&gt;counted&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;for&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;var&lt;/span&gt; &lt;span&gt;i&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt; &lt;span&gt;i&lt;/span&gt; &lt;span&gt;&amp;lt;&lt;/span&gt; &lt;span&gt;array&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;length&lt;/span&gt;&lt;span&gt;;&lt;/span&gt; &lt;span&gt;i&lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;if&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;matching&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;array&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;]))&lt;/span&gt;&lt;br /&gt;            &lt;span&gt;counted&lt;/span&gt;&lt;span&gt;++&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;counted&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == 2, same as first example&lt;/span&gt;&lt;br /&gt;&lt;span&gt;count&lt;/span&gt;&lt;span&gt;([&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;],&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;num&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;num&lt;/span&gt; &lt;span&gt;==&lt;/span&gt; &lt;span&gt;3&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;})&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == 2, now we can use our functions for ANY kind of items or match test!&lt;/span&gt;&lt;br /&gt;&lt;span&gt;count&lt;/span&gt;&lt;span&gt;([{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;bob&quot;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;henry&quot;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;jon&quot;&lt;/span&gt;&lt;span&gt;}],&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;obj&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;obj&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;length&lt;/span&gt; &lt;span&gt;&amp;lt;&lt;/span&gt; &lt;span&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;})&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;因为高阶函数更具灵活性，你就更少有机会去写它们，因为你一旦你写成一个，你可以它应用到各种不同的情况中。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;可重复利用的比较函数&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;你可能注意到了，&lt;code&gt;count&lt;/code&gt;函数的写法比&lt;code&gt;countMatching&lt;/code&gt;更冗长。但是，虽然&lt;code&gt;count&lt;/code&gt;函数可复用了，但比较函数&lt;sup&gt;&lt;a href=&#39;http://www.aqee.net/#fn:2&#39; rel=&#39;footnote&#39;&gt;2&lt;/a&gt; &lt;/sup&gt;却不可复用。如果是一些简单的情况，这就足够了，但经常，我们会需要更复杂的比较方法的函数。这样的函数不仅仅可用于计数，它们可以用于任何事情上，一但你写成或找到了这样的函数，从长期的角度看，它们会节省你大量的时间和调试功夫。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;让我们来定义一个可复用的比较函数，达到我们的目的。&lt;code&gt;==&lt;/code&gt;不是一个函数。我们是否可以定义一个&lt;code&gt;eq&lt;/code&gt;函数来帮我们完成类似的事情呢？&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;eq&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;a&lt;/span&gt; &lt;span&gt;==&lt;/span&gt; &lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;count&lt;/span&gt;&lt;span&gt;([&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;],&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;num&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;eq&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;num&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;})&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;我们向前迈进了一步：我们用了一个库函数来完成比较任务，而不是使用我们现写的代码。如果&lt;code&gt;eq&lt;/code&gt;函数很复杂，我们可以测试它并可以在其它的地方复用它。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;但这使代码变得冗长，因为&lt;code&gt;count&lt;/code&gt;函数的参数是一个只需要一个参数——数组元素——的函数，而&lt;code&gt;eq&lt;/code&gt;函数却需要两个参数。我还是要定义我们自己的匿名函数。让我们来简化一下这些代码。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;makeEq&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;// countMatchingWith wants a function that takes &lt;/span&gt;&lt;br /&gt;    &lt;span&gt;// only 1 argument, just like the one we&#39;re returning&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;eq&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// now it&#39;s only on one line!&lt;/span&gt;&lt;br /&gt;&lt;span&gt;count&lt;/span&gt;&lt;span&gt;([&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;],&lt;/span&gt; &lt;span&gt;makeEq&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;我们写了一个兼容&lt;code&gt;count&lt;/code&gt;函数的函数(一个参数——数组元素——返回true或false)。看起来就像是&lt;code&gt;count&lt;/code&gt;函数调用的是&lt;code&gt;eq(3, item)&lt;/code&gt;。这叫做偏函数用法(partial function application)。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;偏函数用法(Partial Application)&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&#39;http://en.wikipedia.org/wiki/Partial_application&#39; title=&#39;Partial Application&#39;&gt;偏函数用法(Partial Function Application)&lt;/a&gt;是指创建一个调用另外一个部分参数已经预置的函数的函数的用法。这样，它就能被别的地方，比如&lt;code&gt;count&lt;/code&gt;函数，以更少的参数形式来调用。我们在&lt;code&gt;makeEq&lt;/code&gt;函数里已经实现了这些，但是，我们并不想针对我们各种功能开发出各种版本的&lt;code&gt;makeX&lt;/code&gt;(比如makeEqt，makeGt，makeLt等)函数。让我们来找一种方法能通用于各种形式的函数。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;applyFirst&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;a&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;call&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;null&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;a&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;count&lt;/span&gt;&lt;span&gt;([&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;],&lt;/span&gt; &lt;span&gt;applyFirst&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;eq&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;3&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;现在我们不再需要一个&lt;code&gt;makeEq&lt;/code&gt;函数了。任何2个参数的库函数，我们都可以按这种方式调用。通过偏函数用法，使得定义即使是诸如&lt;code&gt;==&lt;/code&gt;这样简单功能的各种函数都变得十分有意义，我们可以在高阶函数中更容易的使用它们。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;对那些超过2个参数的函数如何办呢？下面的这一版本&lt;sup&gt;&lt;a href=&#39;http://www.aqee.net/#fn:3&#39; rel=&#39;footnote&#39;&gt;3&lt;/a&gt; &lt;/sup&gt;能让我们接受任意多的参数，高阶函数可以自己追加参数。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;var&lt;/span&gt; &lt;span&gt;args&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;Array&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;prototype&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;slice&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;call&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;arguments&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;null&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;args&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;concat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;propertyEquals&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;propertyName&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;value&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;obj&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;obj&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;propertyName&lt;/span&gt;&lt;span&gt;]&lt;/span&gt; &lt;span&gt;==&lt;/span&gt; &lt;span&gt;value&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;count&lt;/span&gt;&lt;span&gt;([{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;bob&quot;&lt;/span&gt;&lt;span&gt;},{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;john&quot;&lt;/span&gt;&lt;span&gt;}],&lt;/span&gt; &lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;propertyEquals&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;bob&quot;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt; &lt;span&gt;// == 1&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;我们预置了2个参数，“name” 和 “bob”，&lt;code&gt;count&lt;/code&gt;函数补足了最后一个参数来完成整个调用。偏函数用法使我们能接受各样的函数为参数，例如&lt;code&gt;eq&lt;/code&gt;，然后把它们用于各样的高阶函数，例如&lt;code&gt;count&lt;/code&gt;，以此来解决我们特定的问题。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;配合ES5的 Map 和 Filter 功能函数的偏函数用法&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&#39;http://kangax.github.com/es5-compat-table/&#39;&gt;ES5&lt;/a&gt;里有很多非常好的高阶函数，&lt;a href=&#39;http://documentcloud.github.com/underscore/&#39;&gt;underscore&lt;/a&gt;里的数量更多。让我们看看&lt;code&gt;filter&lt;/code&gt;函数——一个接收比较函数、过滤数组内容的函数。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;// this equals [1,3,3]&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;].&lt;/span&gt;&lt;span&gt;filter&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;num&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;num&lt;/span&gt; &lt;span&gt;&amp;lt;&lt;/span&gt; &lt;span&gt;4&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;})&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;让我们把它替换成一个可以复用的比较函数&lt;code&gt;lt&lt;/code&gt; (less than)。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;lt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;&lt;span&gt;a&lt;/span&gt; &lt;span&gt;&amp;lt;&lt;/span&gt; &lt;span&gt;b&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;].&lt;/span&gt;&lt;span&gt;filter&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lt&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;4&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;看上去添加这个&lt;code&gt;lt&lt;/code&gt;函数的做法有点傻，但是，我们可以使用偏函数用法来创造一个很简练的比较函数，当这个比较函数变的很复杂的时候，我们就能从对它的复用过程中获得好处。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;map&lt;/code&gt;函数能让你把数组里的一个东西变成另外一个东西。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;var&lt;/span&gt; &lt;span&gt;usersById&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;span&gt;&quot;u1&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;bob&quot;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt; &lt;span&gt;&quot;u2&quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;john&quot;&lt;/span&gt;&lt;span&gt;}}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var&lt;/span&gt; &lt;span&gt;user&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&quot;sean&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;friendIds&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;u1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;u2&quot;&lt;/span&gt;&lt;span&gt;]}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == [&quot;bob&quot;, &quot;john&quot;]&lt;/span&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friendsNames&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;friendIds&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;].&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;})&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;我们写一个可以复用的map变换函数，就像之前我们的可复用比较函数一样。让我们写一个叫做&lt;code&gt;lookup&lt;/code&gt;的函数。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;obj&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;key&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;obj&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;key&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == [{name:&quot;bob&quot;}, {name:&quot;john&quot;}]&lt;/span&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friends&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;friendIds&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;很接近要求，但我们需要的是名称，而不是friend对象本身。如果我们再写一个参数颠倒过来的 &lt;code&gt;lookup&lt;/code&gt;函数，通过第二次的map可以把它们的名称取出来。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;lookupFlipped&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;key&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;obj&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;obj&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;key&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == [&quot;bob&quot;, &quot;john&quot;]&lt;/span&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friendsNames&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;friends&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;            &lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lookupFlipped&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;但是我不想定义这个&lt;code&gt;lookupFlipped&lt;/code&gt;函数，这样干有点傻。这样，我们来定义一个函数，它接收参数的顺序是从右到左，而不是从左到右，于是我们就能够复用&lt;code&gt;lookup&lt;/code&gt;了。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;applyr&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;var&lt;/span&gt; &lt;span&gt;args&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;Array&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;prototype&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;slice&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;call&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;arguments&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;null&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;[&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;].&lt;/span&gt;&lt;span&gt;concat&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;args&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;// == [&quot;bob&quot;, &quot;john&quot;]&lt;/span&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friendsNames&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;friends&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;            &lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;applyr&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt; &lt;span&gt;// we can use normal lookup!&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;applyr(lookup, &quot;name&quot;)&lt;/code&gt;函数返回的函数只接受一个参数——那个对象——返回对象的名称。我们不再需要反转任何东西：我们可以按任何顺序接受参数。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;偏函数用法需要对一些常见的功能定义各种不同的函数，就像&lt;code&gt;lt&lt;/code&gt;函数，但这正是我们的目的。你可以以偏函数用法把&lt;code&gt;lt&lt;/code&gt;函数既用于&lt;code&gt;count&lt;/code&gt;函数，也可用于&lt;code&gt;Array.filter&lt;/code&gt;函数。它们可以复用，可以组合使用。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;&lt;a href=&#39;http://en.wikipedia.org/wiki/Function_composition_%28computer_science%29&#39; title=&#39;Function Composition&#39;&gt;函数组合&lt;/a&gt; &lt;/h3&gt;&lt;br /&gt;&lt;p&gt;在之前的例子中，我们遍历了数组两次，一次用来获取users，一次为了获取names。如果能在一次map映射操作中同时做这两件事情，效率会高很多。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friendsNames&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;friendIds&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;var&lt;/span&gt; &lt;span&gt;friend&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;id&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;friend&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;})&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;我们得到首次&lt;code&gt;lookup&lt;/code&gt;的结果，把它第二次传入&lt;code&gt;lookup&lt;/code&gt;。&lt;a href=&#39;http://en.wikipedia.org/wiki/Function_composition_%28computer_science%29&#39; title=&#39;Function Composition&#39;&gt;函数组合&lt;/a&gt;意思是串联多个函数，组成一个新的函数，每一次串联都是把前一个函数的输出当作下一个函数的输入。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;让我们来写一个能这样运转的高阶函数，利用它把&lt;code&gt;friendsNames&lt;/code&gt;函数重写成一个只需要单次map操作的函数。需要注意的是，函数串联的执行顺序是从右到左的，就跟你写出&lt;code&gt;f(g(x))&lt;/code&gt;这样的代码的运行方式一样。&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;compose&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;g&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;function&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;        &lt;span&gt;return&lt;/span&gt; &lt;span&gt;f&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;g&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friendsNames&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;friendIds&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;compose&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;applyr&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;),&lt;/span&gt; &lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;)))&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;对数组的遍历只进行了一次，只使用一次map操作，跟我们头一个例子一样。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;我们不能使用我们写出的&lt;code&gt;friends&lt;/code&gt;函数，因为它既包含了如何取出一个friend的业务逻辑，也包含了map操作。&lt;strong&gt;&lt;code&gt;friends&lt;/code&gt;函数是不能复用的，它的职责太多了——它是针对特定事物的&lt;/strong&gt;。如果你们再写一个&lt;code&gt;friend&lt;/code&gt;函数，让它只map一个friend，写一个&lt;code&gt;name&lt;/code&gt;函数，让它返回对象的名称呢？&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;var&lt;/span&gt; &lt;span&gt;friend&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;lookup&lt;/span&gt; &lt;span&gt;// lookup 恰巧能干我们想要的事情。&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var&lt;/span&gt; &lt;span&gt;name&lt;/span&gt; &lt;span&gt;=&lt;/span&gt; &lt;span&gt;applyr&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;lookup&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;friendsNames&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;{&lt;/span&gt;&lt;br /&gt;    &lt;span&gt;// this line is now more semantic. &lt;/span&gt;&lt;br /&gt;    &lt;span&gt;return&lt;/span&gt; &lt;span&gt;user&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;friends&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;map&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;compose&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;apply&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;friend&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span&gt;usersById&lt;/span&gt;&lt;span&gt;)))&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;相较于定义一个既包含转换操作，又包含遍历操作的&lt;code&gt;friends&lt;/code&gt;函数，我们只定义了一个可做转换操作的&lt;code&gt;friend&lt;/code&gt;函数，而我们已经有了&lt;code&gt;map&lt;/code&gt;函数为我做变换操作。&lt;code&gt;friend&lt;/code&gt;函数比&lt;code&gt;friends&lt;/code&gt;函数更具复用性，因为它包含更少的特定业务逻辑，能在更多的情形中使用。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;在&lt;a href=&#39;http://javascriptweblog.wordpress.com/2010/04/14/compose-functions-as-building-blocks/&#39; title=&#39;Compose: functions as building blocks&#39;&gt;这里&lt;/a&gt;你能找到更多的关于JavaScript里函数组合的信息。&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;函数式和功能单一化让你的代码库更整洁&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;我发现我的很多的JavaScript代码都是从无到有自己写出来的。这不仅仅是说比起使用现成的程序包要效率低，它还会暗藏更多的bug，更难阅读和维护。使用高阶函数和偏函数用法，我们可以写出可复用的程序库，每个函数都精准的对应解决它们能解决的一部分问题。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;随着时间的推移，项目会变得越来越复杂，各部分越来越耦合，如果我们拥有的是一个能够各自独立测试不依赖的程序库，我们的项目会从中受益，变得更健康，更稳定。&lt;/p&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;p&gt;一种宽泛的组合。并不特指函数或对象组合，只是一种你用小东西组建大东西的思想。&lt;a href=&#39;http://www.aqee.net/#fnref:1&#39;&gt;↩&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;p&gt;“Matching functions”被称作&lt;a href=&#39;http://en.wikipedia.org/wiki/Predicate_%28mathematical_logic%29&#39; title=&#39;Predicate&#39;&gt;predicates&lt;/a&gt;，但我这里不想引入新的编程术语。&lt;a href=&#39;http://www.aqee.net/#fnref:2&#39;&gt;↩&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&#39;http://msdn.microsoft.com/en-us/scriptjunkie/gg575560&#39; title=&#39;Partial Application in Javascript&#39;&gt;这里&lt;/a&gt;有更通用的&lt;code&gt;apply&lt;/code&gt;实现。&lt;a href=&#39;http://www.aqee.net/#fnref:3&#39;&gt;↩&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;本文来自&lt;a href=&#39;http://www.aqee.net&#39;&gt;外刊IT评论网&lt;/a&gt;(&lt;a href=&#39;http://www.aqee.net&#39;&gt;www.aqee.net&lt;/a&gt;)，原始地址：&lt;a rel=&#39;bookmark&#39; href=&#39;http://www.aqee.net/learn-you-a-haskell-for-great-good/&#39;&gt;为什么我们要学习Haskell这样的编程语言&lt;/a&gt;&lt;br/&gt;&lt;br /&gt;&lt;img width=&#39;0&#39; height=&#39;0&#39; border=&#39;0&#39; src=&#39;http://www1.feedsky.com/t1/628090895/aqee-net/feedsky/s.gif?r=http://www.aqee.net/learn-you-a-haskell-for-great-good/&#39;/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;via 外刊IT评论 http://www.aqee.net/learn-you-a-haskell-for-great-good/&lt;br /&gt;          &lt;/div&gt;&lt;br /&gt;          </content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/3141808536807245482/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ithaskell.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3141808536807245482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/3141808536807245482'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/ithaskell.html' title='【外刊IT评论网】为什么我们要学习Haskell这样的编程语言'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-6459900963189843379</id><published>2012-04-17T08:06:00.003-07:00</published><updated>2012-04-17T08:10:11.941-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="principle"/><title type='text'>最少编码原则</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;br /&gt;
本文作者是一位资深软件工程师，他根据多年的编程经验，把自己的观点组织整理成本文，希望能给大家一点启发。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
“最少编码原则”并不是说写的代码少到令意思表达不清楚。其实在很多情况下，可以只写几行代码就能执行相同的逻辑，但这对于后来接手的开发者来说是非常棘手的。&lt;strong&gt;最少编码不只是写最少量的代码，还意味着优雅的代码。&lt;/strong&gt;如果你是有经验的程序员，可能就会明白我将要说什么了。本文的目的是尝试着去阐述清楚这个原则，虽然程序员们都听过都了解该原则，却很少能在每天的工作中将其运用起来。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
最少编码指的是代码不仅仅全面解决了问题，而且除了执行能够准确地解决问题的逻辑行，没有其他多余的行。&lt;strong&gt;代码要尽可能普通，简单的代码也是优雅的代码&lt;/strong&gt;，程序员看到这样的代码会感到愉悦。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;最少编码和设计良好的解决方案之间有着密切的关系，优秀的解决方案可以大大减少代码量。&lt;/strong&gt;使用组态代码（不同功能的代码可以很容易地组合）以及减低代码行或逻辑之间的耦合度，就是很好的代码设计例子，同时也符合最少编码原则。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
将一段代码转换成最少代码就是我们通常所说的重构，&lt;strong&gt;重构可以删掉多余的不必要的部分，精简代码。&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
大量的代码需要执行大量的逻辑，很容易造成bug。没有写出来的代码才没有bug，只要在编辑器中输入了字符，那么bug也可能潜伏在其中。重点是，&lt;strong&gt;如果代码不是特别繁琐，那么潜在的bug也会相应减少，最少编码原则可以将出现bug的可能性降到最低。&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;如何写出最少代码？&lt;/strong&gt;通常在写代码前要进行代码设计，而不是一来就开始敲代码，这是毋庸置疑的。简单的、通用的逻辑能减少代码量。对第一稿代码运用代码重构可以使代码简练，将最终版本转化为优雅的解决方案等，这都遵循了最少编码的原则。&lt;strong&gt;其实反复思考以及不断运用最少编码原则能够使任何垃圾代码变得优雅。&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
原文链接：&lt;a href=&quot;http://ramblingsoullt.blogspot.de/2012/03/principle-of-least-coding.html&quot;&gt;Principle of least coding&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/6459900963189843379/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/empleoautoempleo_9447.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6459900963189843379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/6459900963189843379'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/empleoautoempleo_9447.html' title='最少编码原则'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-2945670851485270863</id><published>2012-04-17T08:06:00.001-07:00</published><updated>2012-04-17T08:09:28.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="best practise"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="comment"/><title type='text'>代码注释最佳实践</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;br /&gt;
代码注释及格式化关乎代码的可读性，而代码可读性对于代码可维护性又是至关重要的，因此一些编程的小细节有助于提高代码可维护性。本文列举了一些代码注释及格式化的优秀示例。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;一、注释&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注释是代码的一部分，其重要性显而易见。缺少注释的代码可以说是没有用的，虽然有人建议使用自文档化代码，不过我们认为自文档化+代码文档是最好的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. 只在必要时使用注释&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
也就是说不需要对每一行都使用注释&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot;&gt;
int count = 0; // 将count的初始值赋为0(?!?)&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
但缺少注释会增加维护难度，所以变量、方法的命名应该易于理解&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot;&gt;
int s = sqrt(v1) + v2 / v3 + fread(s). getChar(0)  //(?!?)
List&amp;lt;int&amp;gt; getVal(int val, int len, String op) //(?!?)&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. 错误的注释还不如没有注释，应尽量避免。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. 为重要的且没有自文档化的变量写注释。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. 为公开的方法写注释（例如JavaDoc declaration），当然，这些注释应该是真的有必要添加的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. 类似“了解”、“待办”的注释也许对当天来说很重要，但之后应该删除。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;二、格式化&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
有很多开发工具（如maven checkstyle）都提供代码格式化的功能，且格式化操作可在代码保存时自动进行，但这些格式不一定符合公司的格式规则，因此在使用之前要对其进行设置。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. 使用一致的括号格式。括号一般都加在当前行的尾部或新一行的首部，选择一种添加方式，并在所有代码行中保持相同的格式。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. 使用一致的空行。空行用于分隔代码和语义组，提高代码可读性。例如使用3行空行来表示方法的结束，没有空行或每行代码间都加空行却不利于代码美观。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. 留意首行缩进。正确的缩进对于语义块来说就像括号和空行一样重要。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. 限制每行的字符数，提高可读性。大多数程序员认可的限制数为80个左右。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. 使用一致的空格，通常以下的这些情况要使用空格：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot;&gt;
//运算符和变量之间 
a += b , c = 0; (a == b)

//语句关键字和括号之间
if (value) {, public class A { 

//循环的“；”号后
for (int i = 0; i &amp;lt; length; i++) 

//类型和变量之间
(int) value , (String) value&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
英文原文：&lt;a href=&quot;http://java.dzone.com/articles/10-best-practices-code&quot;&gt;10 Best Practices for Code Commenting &amp;amp; Formatting&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/2945670851485270863/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/empleoautoempleo_17.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/2945670851485270863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/2945670851485270863'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/empleoautoempleo_17.html' title='代码注释最佳实践'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-2497212173305830518</id><published>2012-04-17T08:05:00.001-07:00</published><updated>2012-04-17T08:08:32.610-07:00</updated><title type='text'>大数据分析</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;br /&gt;
越来越多的应用涉及到大数据，不幸的是所有大数据的属性，包括数量、速度、多样性等等都是描述了数据库不断增长的复杂性。那么大数据给我们带来了什么好处呢？&lt;strong&gt;大数据最大的好处在于能够让我们从这些数据中分析出很多智能的、深入的、有价值的信息。&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
下面我总结了分析大数据的5个方面。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1. Analytic Visualizations（可视化分析）&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
不管是对数据分析专家还是普通用户，数据可视化是数据分析工具最基本的要求。可视化可以直观的展示数据，让数据自己说话，让观众听到结果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2. Data Mining Algorithms（数据挖掘算法）&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
可视化是给人看的，数据挖掘就是给机器看的。集群、分割、孤立点分析还有其他的算法让我们深入数据内部，挖掘价值。这些算法不仅要处理大数据的量，也要处理大数据的速度。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3. Predictive Analytic Capabilities（预测性分析能力）&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
数据挖掘可以让分析员更好的理解数据，而预测性分析可以让分析员根据可视化分析和数据挖掘的结果做出一些预测性的判断。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;4. Semantic Engines（语义引擎）&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
我们知道由于非结构化数据的多样性带来了数据分析的新的挑战，我们需要一系列的工具去解析、提取、分析数据。语义引擎需要被设计成能够从“文档”中智能提取信息。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;5. Data Quality and Master Data Management（数据质量和数据管理）&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
数据质量和数据管理是一些管理方面的最佳实践。通过标准化的流程和工具对数据进行处理可以保证一个预先定义好的高质量的分析结果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
假如大数据真的是下一个重要的技术革新的话，我们最好关注大数据能给我们带来的好处，而不仅仅是挑战。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
via：&lt;a href=&quot;http://ctotodevelopers.blogspot.com/2012/03/top-five-tools-of-bigdata-analytics.html&quot;&gt;Ctotodevelopers&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
资讯来源：&lt;a href=&quot;http://www.oschina.net/news/27069/5-technics-for-bigdata-analysis&quot;&gt;开源中国社区&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/2497212173305830518/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/empleoautoempleo.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/2497212173305830518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/2497212173305830518'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/empleoautoempleo.html' title='大数据分析'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1722636406433017828.post-8329960465762349548</id><published>2012-04-16T23:12:00.002-07:00</published><updated>2012-04-16T23:13:54.875-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>linux find</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;在目录结构中搜索文件，并执行指定的操作。此命令提供了相当多的查找条件，功能很强大。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;&lt;b&gt;语法&lt;/b&gt;：find [起始目录] 寻找条件 操作&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;&lt;b&gt;说明&lt;/b&gt;：find命令从指定的起始目录开始，递归地搜索其各个子目录，查找满足寻找条件 的文件并对之采取相关的操作。 该命令提供的寻找条件可以是一个用逻辑运算符 not、and、or 组成的复合条件。逻辑运 算符 and、or、not 的含义为：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;(1) and：逻辑与，在命令中用“-a”表示，是系统缺省的选项，表示只有当所给的条 件都满足时，寻找条件才算满足。例如：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;find –name ’tmp’ –xtype c -user ’inin’&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 该命令寻找三个给定条件都满足的所有文件&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;(2) or：逻辑或，在命令中用“-o”表示。该运算符表示只要所给的条件中有一个满足 时，寻找条件就算满足。例如：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;find –name ’tmp’ –o –name ’mina*’&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 该命令查询文件名为’tmp’或是匹配’mina*’的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;(3) not：逻辑非，在命令中用“！”表示。该运算符表示查找不满足所给条件的文件 。例如：&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;find ! –name ’tmp’&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 该命令查询文件名不是’tmp’的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;需要说明的是：当使用很多的逻辑选项时，可以用括号把这些选项括起来。为了避免She ll本身对括号引起误解，在话号前需要加转义字符“\”来去除括号的意义。例：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;find \（–name ’tmp’ –xtype c -user ’inin’ \）&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;该命令的各选项含义如下：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;首先,下列各个选项中的 n 值可以有三种输入方式，假设 n 为20，则：&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;+20 表示20以后（21，22，23等）&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-20 表示20以前（19，18，17等）&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;20 表示正好是20&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;以名称和文件属性查找。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-name ’字串’ 查找文件名匹配所给字串的所有文件，字串内可用通配符 *、?、[ ]。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-lname ’字串’ 查找文件名匹配所给字串的所有符号链接文件，字串内可用通配符 *、?、[ ]。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-gid n 查找属于ID号为 n 的用户组的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-uid n 查找属于ID号为 n 的用户的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-group ’字串’ 查找属于用户组名为所给字串的所有的文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-user ’字串’ 查找属于用户名为所给字串的所有的文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-empty 查找大小为 0的目录或文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-path ’字串’ 查找路径名匹配所给字串的所有文件，字串内可用通配符*、?、[ ]。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-perm 权限 查找具有指定权限的文件和目录，权限的表示可以如711，644。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-size n[bckw] 查找指定文件大小的文件，n 后面的字符表示单位，缺省为 b，代表512字节的块。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-type x 查找类型为 x 的文件，x 为下列字符之一：&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;b 块设备文件&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;c 字符设备文件&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;d 目录文件&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;p 命名管道（FIFO）&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;f 普通文件&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;l 符号链接文件（symbolic links）&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;s socket文件&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-xtype x 与 -type 基本相同，但只查找符号链接文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;以时间为条件查找&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-amin n 查找n分钟以前被访问过的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-atime n 查找n天以前被访问过的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-cmin n 查找n分钟以前文件状态被修改过的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-ctime n 查找n天以前文件状态被修改过的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-mmin n 查找n分钟以前文件内容被修改过的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-mtime n 查找n天以前文件内容被修改过的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;可执行的操作&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-exec 命令名称 {} 对符合条件的文件执行所给的Linux 命令，而不询问用户是否需要执行该命令。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;{}表示命令的参数即为所找到的文件；命令的末尾必须以“ \；”结束。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-ok 命令名称 {} 对符合条件的文件执行所给的Linux 命令，与exec不同的是，&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;它会询问用户是否需要执行该命令。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-ls 详细列出所找到的所有文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-fprintf 文件名 将找到的文件名写入指定文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-print 在标准输出设备上显示查找出的文件名。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;-printf 格式 格式的写法请参考有关C语言的书。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;指令实例：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;find . - name ‘main*’ - exec more {} \;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 查找当前目录中所有以main开头的文件，并显示这些文件的内容。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;find . \(- name a.out - o - name ‘*.o’\)&amp;gt; - atime +7 - exec rm {} \;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 删除当前目录下所有一周之内没有被访问过的a .out或*.o文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 命令中的“.”表示当前目录，此时 find 将从当前目录开始，&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;逐个在其子目录中查找满足后面指定条件的文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% “\(” 和 “\)” 表示括号（），其中的 “\” 称为转义符。之所以这样写是由于&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;对 Shell 而言，（和）另有不同的含义，而不是这里的用于组合条件的用途。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% “-name a.out” 是指要查找名为a.out的文件；&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% “-name ‘*.o’” 是指要查找所有名字以 .o 结尾的文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;这两个 -name 之间的 -o 表示逻辑或（or），即查找名字为a.out或名字以 .o结尾的文件。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% find在当前目录及其子目录下找到这佯的文件之后，再进行判断，看其最后访问时间&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;是否在7天以前（条件 -atime +7），若是，则对该文件执行命令 rm（-exec rm {} \;）。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;其中 {} 代表当前查到的符合条件的文件名，\；则是语法所要求的。&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;% 上述命令中第一行的最后一个 \ 是续行符。当命令太长而在一行写不下时，&lt;/span&gt;&lt;br style=&quot;background-color: #f5f5d5; background-image: none !important; color: #111111; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;可输入一个 \，之后系统将显示一个 &amp;gt;，指示用户继续输入命令。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f5f5d5; color: #111111; font-size: 16px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[1]&lt;a href=&quot;http://fanqiang.chinaunix.net/app/other/2006-06-12/4527.shtml&quot;&gt;http://fanqiang.chinaunix.net/app/other/2006-06-12/4527.shtml&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yaojeff.blogspot.com/feeds/8329960465762349548/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://yaojeff.blogspot.com/2012/04/find-find-notandor-andornot-1-and-find.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/8329960465762349548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1722636406433017828/posts/default/8329960465762349548'/><link rel='alternate' type='text/html' href='http://yaojeff.blogspot.com/2012/04/find-find-notandor-andornot-1-and-find.html' title='linux find'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05733510239309836706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>