<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.neatcn.com/styles/feedsky2.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.neatcn.com" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/neatcn" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 03 Sep 2010 13:34:00 GMT</lastBuildDate><title>飞天小肥猪的简单人生</title><description>幻想指点江山，梦中激扬文字（尽量保证每日更新；原始博客请看：http://www.cnitblog.com/neatstudio/）</description><image><url>http://www.feedsky.com/feed/neatcn/sc/gif</url><title>飞天小肥猪的简单人生</title><link>http://www.neatstudio.com/</link></image><link>http://www.neatstudio.com/</link><copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright><pubDate>Fri, 03 Sep 2010 21:43:44 GMT</pubDate><item><title>遭遇ISP劫持？</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/409326705/5179076/1/item.html</link><description>&lt;p&gt;不得不承认，2345是个垃圾站。如果没有今天这个情况的出现，或许我还愿意承认这个站点，但现在，我非常愤恨。&lt;br /&gt;
登录自己的博客花了很久，主要原因就是发现在连接时候，居然多了个forward和proxy，因为不明白原因，所以google了一下，找到了这篇文章 ：&lt;a href=&quot;http://yao-blog.appspot.com/entry/%E5%8F%88%E8%A2%ABisp%E5%8A%AB%E6%8C%81%E4%BA%86&quot;&gt;又被ISP劫持了&lt;/a&gt;，原来和我有同样问题的人在。&lt;br /&gt;
因为我没有仔细研究，也没精力来研究。我连登录都花了将近半小时。。。。所以就COPY上面说的那个链接的内容了。&lt;br /&gt;
----------start---------------&lt;/p&gt;
&lt;p&gt;最近上网时遇到过几次访问域名跳转到&lt;code&gt;http://221.231.148.195/forward.html?url=XXXXXXXX&lt;/code&gt;然后就没反应的情况，多次发生后不由得让人怀疑。今天查理一下&lt;code&gt;221.231.148.195&lt;/code&gt;这 个IP地址是南京电信的。我访问的是一个英文博客，不知道是哪国的但肯定不是中国的。一开始以为DNS被劫持了，所以手动查询DNS，用 WireShark查看没有伪造的数据包。通过国外的线路查询得到的结果是一样的，检查返回的IP确实是对方网站的。Ping对方的IP不通，通过国外线 路可以Ping通，看来劫持是在网络层。&lt;/p&gt;
&lt;p&gt;使用WireShark记录HTTP会话的内容，发现第一次访问时返回内容如下。&lt;/p&gt;
&lt;div class=&quot;codeText&quot;&gt;
&lt;div class=&quot;codeHead&quot;&gt;XML/HTML代码&lt;/div&gt;
&lt;ol class=&quot;dp-xml&quot; start=&quot;1&quot;&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span&gt;HTTP/1.1&amp;nbsp;302&amp;nbsp;Object&amp;nbsp;moved&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;Location:&amp;nbsp;http://221.231.148.195/proxy.html?&lt;span class=&quot;attribute&quot;&gt;e&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;xxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;Content-Length:&amp;nbsp;20&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;Content-Type:&amp;nbsp;text/html&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;Connection:&amp;nbsp;close&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;Expires:&amp;nbsp;0&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;Cache-control:&amp;nbsp;no-store,&amp;nbsp;no-cache,&amp;nbsp;must-revalidate,&amp;nbsp;&lt;span class=&quot;attribute&quot;&gt;post-check&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;0&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;pre-check&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;0&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;...&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;浏览器自动请求跳转地址再次返回另一个跳转。&lt;/p&gt;
&lt;div class=&quot;codeText&quot;&gt;
&lt;div class=&quot;codeHead&quot;&gt;XML/HTML代码&lt;/div&gt;
&lt;ol class=&quot;dp-xml&quot; start=&quot;1&quot;&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span&gt;HTTP/1.1&amp;nbsp;302&amp;nbsp;Moved&amp;nbsp;Temporarily&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;Server:&amp;nbsp;nginx/0.7.65&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;Date:&amp;nbsp;Thu,&amp;nbsp;12&amp;nbsp;Aug&amp;nbsp;2010&amp;nbsp;00:58:42&amp;nbsp;GMT&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;Content-Type:&amp;nbsp;text/html&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;Content-Length:&amp;nbsp;161&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;Connection:&amp;nbsp;close&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;Location:&amp;nbsp;http://221.231.148.195/forward.html?&lt;span class=&quot;attribute&quot;&gt;url&lt;/span&gt;&lt;span&gt;=原来请求的URL&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;302&amp;nbsp;Found&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;body&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;bgcolor&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;white&amp;quot;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;center&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;h1&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;302&amp;nbsp;Found&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;h1&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;center&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;hr&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;center&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;nginx/0.7.65&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;center&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;但是在我的浏览器里这一次跳转没能再返回任何东西，如果能的话会是以下内容&lt;/p&gt;
&lt;div class=&quot;codeText&quot;&gt;
&lt;div class=&quot;codeHead&quot;&gt;XML/HTML代码&lt;/div&gt;
&lt;ol class=&quot;dp-xml&quot; start=&quot;1&quot;&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;src&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;/js/jquery.min.js&amp;quot;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;src&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;/js/jquery.cookie.js&amp;quot;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;src&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;/js/jquery.query.js&amp;quot;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;attribute&quot;&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(function(){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;&lt;span class=&quot;attribute&quot;&gt;value&lt;/span&gt;&lt;span&gt;=$.cookie('_GB_ADV_STATE');&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(&lt;span class=&quot;attribute&quot;&gt;value&lt;/span&gt;&lt;span&gt;==undefined){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$.cookie('_GB_ADV_STATE',&amp;quot;1&amp;quot;,{expires:1});&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;attribute&quot;&gt;window.location.href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span class=&quot;attribute-value&quot;&gt;&amp;quot;/index.htm?3007&amp;quot;&lt;/span&gt;&lt;span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;attribute&quot;&gt;window.location.href&lt;/span&gt;&lt;span&gt;=$.query_reg(&amp;quot;url&amp;quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;tag-name&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;可以看到如果没有&lt;code&gt;_GB_ADV_STATE&lt;/code&gt;这个Cookie的设置Cookie并且会跳转到2345网址导航，如果有这个Cookie的就再跳转到原来要访问的地址。Cookie的有效期设置是一天。 另外在我的Cookie里发现了cnzz_eid的东西，2345网址导航里也嵌入了访问统计的脚本，怀疑2345网址导航在利用这种劫持手段骗取独立访问数。&lt;/p&gt;
&lt;h2&gt;让我们大家一起谴责这种行为&lt;/h2&gt;
&lt;ul&gt;
    &lt;li&gt;对方的服务器默认TTL用的是64,而劫持服务器返回的包到达我这里是2xx所以肯定不是原服务器的。TCP的建立时返回的&lt;code&gt;SYN ACK&lt;/code&gt;包的TTL是5x，但是HTTP响应的第一个包是2xx。&lt;/li&gt;
    &lt;li&gt;从代码判断，劫持设备只劫持短期内的第一次访问。不然会死循环。&lt;/li&gt;
    &lt;li&gt;为什么这两天出问题了，一直死循环跳不到要去的页面了，难道劫持设备出错了？数据包显示在第二次访问时还是被劫持了。所以死循环了。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;---OVER--&lt;br /&gt;
我没有找到上面的COOKIE，或许消失了（最后稍微正常了，果然发现了这个cookie）。或许有其他情况，反正我是在发现打开网站要很长时间后，我用firebug的net功能查看的，发现多了一个foward.html和proxy.html的记录。才想到用google搜索类似问题的。唉。什么时候有个清静的网络 ？你要做站你就做，你愿意花钱也没啥事，你不能拿普通站长的站来开心吧。我不能代表大多数人，我只能代表我自己谴责一下类似事件的发生。TMD，给我滚&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/409326705/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/409326705/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/409326705/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/409326705/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c900ee67f8fcac0684585acc96e519f8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c900ee67f8fcac0684585acc96e519f8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c8fcab9985f5d91fd299c682ea0d6182&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c8fcab9985f5d91fd299c682ea0d6182&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=5a28f77a2566f47c555986709514b9a6&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=5a28f77a2566f47c555986709514b9a6&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=9b87570451b0d94acc6bfb258394b34f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=9b87570451b0d94acc6bfb258394b34f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=7efba5d6b89bfc37f6ff91e82f9cb6fe&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=7efba5d6b89bfc37f6ff91e82f9cb6fe&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=b83863abcc2b0c9695a42ed3eddf2d18&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=b83863abcc2b0c9695a42ed3eddf2d18&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=76daf63a5d2ee90621994c980b02d596&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=76daf63a5d2ee90621994c980b02d596&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-5-1.shtml">Misc</category><pubDate>Fri, 03 Sep 2010 21:34:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1450-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1450-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/409326705/5179076</fs:itemid></item><item><title>Editplus 自动检查语法</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/409148024/5179076/1/item.html</link><description>&lt;p&gt;用惯了IDE写PHP，再次回到Editplus的时候总有点不太习惯，比如没有函数提示了（当然也可以自己打造）。不过。。语法检查总还是需要的，总不能自己程序传到服务器上后运行了才知道语法有问题吧？于是利用Editplus的小功能aftersave。改造了一下。&lt;/p&gt;
&lt;p&gt;进入editplus的选项设置，点击左侧的User tools菜单，在右侧的Group and Tools下拉框中选择 AutoSave:after save。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.neatstudio.com/attachment.php?id=685&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.neatstudio.com/attachments/date_201009/thumb_a0e0fb463072d00b5ef538198623f077.jpg&quot; border=&quot;0&quot; alt=&quot;大小: 49.06 K&amp;#13;尺寸: 469 x 376&amp;#13;浏览: 2 次&amp;#13;点击打开新窗口浏览全图&quot; width=&quot;469&quot; height=&quot;376&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;在右侧的 add tool里选择 program。然后输入：标题，程序所在位置，以及参数。。&lt;/p&gt;
&lt;p&gt;php语法检测是php.exe -l filename，这个可以通过命令行下运行 php -? 了解。然后要catch output，以及针对current file。。&lt;/p&gt;
&lt;p&gt;OK，这样就over了。&lt;/p&gt;
&lt;p&gt;看看效果？&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.neatstudio.com/attachment.php?id=686&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.neatstudio.com/attachments//date_201009/07a7a0347dfc199008e48ec904f47ca3.jpg&quot; border=&quot;0&quot; alt=&quot;大小: 39.2 K&amp;#13;尺寸: 463 x 243&amp;#13;浏览: 4 次&amp;#13;点击打开新窗口浏览全图&quot; width=&quot;463&quot; height=&quot;243&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/409148024/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/409148024/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/409148024/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/409148024/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=107fb1b962161fcebc21c992186aaf98&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=107fb1b962161fcebc21c992186aaf98&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=9ee89c7aa965ca61b57bca4ec75eac96&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=9ee89c7aa965ca61b57bca4ec75eac96&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=2812b461b38ed0f6fbdef3a11ab411d8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=2812b461b38ed0f6fbdef3a11ab411d8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=8a2b9a6459c5a3d52b5c1f0f98487e01&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=8a2b9a6459c5a3d52b5c1f0f98487e01&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=1f76da1855b521a012f549705453b6dd&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=1f76da1855b521a012f549705453b6dd&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=e85c1e5dbc787d221f9fcb9788c0ccae&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=e85c1e5dbc787d221f9fcb9788c0ccae&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=d9e566cb4756cd7bcec2ae854eea9061&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=d9e566cb4756cd7bcec2ae854eea9061&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-1-1.shtml">PHP</category><pubDate>Fri, 03 Sep 2010 11:10:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1449-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1449-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/409148024/5179076</fs:itemid></item><item><title>DNS无法连接了？</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834557/5179076/1/item.html</link><description>&lt;p&gt;众所周知，8.8.8.8和4.3.2.1等算是google的public dns。好久以来，我已经不再使用上海热线的公用DNS：202.96.209.6和202.96.209.5了。虽然这两个DNS的速度会比较慢一点。但我还是一直在使用。直到今天晚上&lt;br /&gt;
&lt;br /&gt;
突然不能访问任何网页。我本来以为是我的路由器的问题，于是乎重启路由看什么原因，但结果失败了。但QQ能够正常登录。结果也在QQ里发现有几个人也遇到同样的问题。然后希望打电话给我，也是说这个问题。原来，不是我一个人在纠结。&lt;br /&gt;
&lt;br /&gt;
于是，我心里就乱想了。为什么呢？这是为什么呢？这究竟是为什么呢？不敢乱猜了，在DNS里把202.96.209.6加上，并通过排序放在第一个。然后就可以连接上了。&lt;br /&gt;
&lt;br /&gt;
再ping 8.8.8.8又能ping通了。但愿是我多想了。阿门&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834557/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834557/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834557/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834557/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=5c72f002dfb8f38a4acf41fc490dfa6d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=5c72f002dfb8f38a4acf41fc490dfa6d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=fbc4dde1a57186d2d4dc02a2122b4d3a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=fbc4dde1a57186d2d4dc02a2122b4d3a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c64e7839ed5c597feb9a4ee0786d5c04&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c64e7839ed5c597feb9a4ee0786d5c04&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=07265ee9c49e51d93e1b1b81cb7cb9ed&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=07265ee9c49e51d93e1b1b81cb7cb9ed&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c2996f3382096d3c90f4dd83e82fcda3&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c2996f3382096d3c90f4dd83e82fcda3&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=65b42d63b8d1aacde6d001766783a005&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=65b42d63b8d1aacde6d001766783a005&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c17e80fa0863c6d43d79e291a624f3b1&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c17e80fa0863c6d43d79e291a624f3b1&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-5-1.shtml">Misc</category><pubDate>Thu, 02 Sep 2010 20:54:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1448-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1448-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834557/5179076</fs:itemid></item><item><title>笔记：svn之目标机器积极拒绝</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834558/5179076/1/item.html</link><description>&lt;p&gt;在以前的博客文章里也介绍了怎么安装svn的，昨天我又重装了一下，不过是按照网上的教程来装的。所以遇到了点问题，那就是：目标机器积极拒绝。&lt;br /&gt;
安装过程如下：&lt;br /&gt;
$apt-get update&lt;br /&gt;
$apt-get install subversion&lt;br /&gt;
$mkdir /var/svn/&lt;br /&gt;
$useradd svn&lt;br /&gt;
$passwd svn&lt;br /&gt;
$chown -R svn:svn /var/svn&lt;br /&gt;
$svnadmin create /var/svn/test&lt;br /&gt;
$vim /var/svn/test/conf/svnserve.conf&lt;br /&gt;
把几个注释去掉。。。。&lt;br /&gt;
$vim /var/svn/test/conf/passwd&lt;br /&gt;
添加用户&lt;br /&gt;
$vim /var/svn/test/conf/authz &lt;br /&gt;
增加权限&lt;br /&gt;
$svnserve -d -listen-port 9999 -r /var/svn &lt;br /&gt;
表面上看来没什么问题。但事实上连接的时候就是目标机器积极拒绝。。&lt;br /&gt;
仔细想了想，应该没什么问题。看了一下进程，也确实存在 svnserve：ps -ef|grep svnserve&lt;br /&gt;
那问题出来哪里呢？突然想到-listen-port ，会不会端口的问题？于是杀掉进程后&lt;br /&gt;
$svnserve -d -r /var/svn&lt;br /&gt;
然后就可以连上了。。&lt;br /&gt;
做个记录&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834558/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834558/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834558/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834558/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=da4f7f09b645e20d341551b78831b4df&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=da4f7f09b645e20d341551b78831b4df&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=54e64f998c5a14cc4d10592f08879eef&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=54e64f998c5a14cc4d10592f08879eef&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=fcca448111a57375a74ea68fe80908d8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=fcca448111a57375a74ea68fe80908d8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=45ed5fbca06dc0c809a79ab46e668fbd&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=45ed5fbca06dc0c809a79ab46e668fbd&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=1f850e387fbbfe6525cfc3902cc9d8e4&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=1f850e387fbbfe6525cfc3902cc9d8e4&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=1abebf590e97f1173111ec22212917f7&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=1abebf590e97f1173111ec22212917f7&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=7e27044ae7edd964a00a9f1edc267afb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=7e27044ae7edd964a00a9f1edc267afb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-13-1.shtml">Linux</category><pubDate>Wed, 01 Sep 2010 11:12:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1447-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1447-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834558/5179076</fs:itemid></item><item><title>乱弹</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834559/5179076/1/item.html</link><description>&lt;p&gt;随便的扯几句喽。。。&lt;br /&gt;
1、ipad ，突然发现sbsetting的功能超强大啊。。我明明在ipad里选择了飞行模式，居然可能通过sbsetting打开wifi。而且飞行模式的小飞机居然还存在。牛叉的。。&lt;br /&gt;
&lt;br /&gt;
2、电视连续剧《儿女冤家》，突然感觉里面的情节好真实，这是自《蜗居》以来又一个让人心动的电视。看到电视里的人物，心里觉得好揪心，啃老族这一个词已 经成了一个很让人烦的词语。有的时候，我也觉得自己也算一个啃老族  啊。工作这么多年，也成家了，却几乎没有拿过一分钱回过家。看到电视里的那对儿女，却是比我还厉害。不但吃父母用父母还要占父母的房子。唉。。。。。因为 没有看过结局，所以我就不再多下评论了。&lt;br /&gt;
&lt;br /&gt;
3、乔楚乔大姐，又想带队翻译PHP手册了。感觉乔楚还算是很专注的一个人，但事实上，翻译这种事情，一定要对PHP很深入才能翻译，否则翻译出来很可能 词不达意。所幸他们还会再做校验。同时乔楚发邮件给官方，并收到邮件，终于也可以使PHP中文版在下载列表里显示出来了。（都2年多了，中文手册一直被雪 藏。。感谢乔楚）&lt;br /&gt;
&lt;br /&gt;
4、Yii，最近我在看着Yii，并且根据Yii的代码抄一遍。这样感觉一来可以学习Yii的代码，可以更深入一点。二来，也可以了解Yii的一些设计思 想。Yii的代码还算是比较多的，而且多了一些zii,gii之类的扩展，功能是越来越强大了。只是Yii已经只支持PDO了。准备在抄的过程中还是要支 持一下默认的mysql扩展。（因为有的虚拟主机在命令行的时候，不支持PDO，很妖）&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834559/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834559/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834559/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834559/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=8688346cf07fbd46ff1de4b3f259e28a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=8688346cf07fbd46ff1de4b3f259e28a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c5e80140bf62c5c53d48ad81272e6f50&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c5e80140bf62c5c53d48ad81272e6f50&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=fc40179f876fc022b79768fa2a8def99&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=fc40179f876fc022b79768fa2a8def99&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=f3c0cedceab1aac498b07c09e55cbd78&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=f3c0cedceab1aac498b07c09e55cbd78&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=68f4a060fdaa46a25aca3d618fbf770b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=68f4a060fdaa46a25aca3d618fbf770b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=b6bb0a01e3e150f0d2c83f5516431ce8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=b6bb0a01e3e150f0d2c83f5516431ce8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=2f896b70a87569a3c80e51d252612183&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=2f896b70a87569a3c80e51d252612183&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-5-1.shtml">Misc</category><pubDate>Tue, 31 Aug 2010 21:56:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1446-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1446-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834559/5179076</fs:itemid></item><item><title>GreaseMonkey with jQuery</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834560/5179076/1/item.html</link><description>&lt;p&gt;习惯了用jQuery，因此在使用greasemonkey的时候，也总是想着用jQuery，找了下，确实有这样的例子。。&lt;/p&gt;
&lt;div class=&quot;codeText&quot;&gt;
&lt;div class=&quot;codeHead&quot;&gt;JavaScript代码&lt;/div&gt;
&lt;ol class=&quot;dp-c&quot; start=&quot;1&quot;&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;keyword&quot;&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;$;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&lt;span class=&quot;comment&quot;&gt;//&amp;nbsp;Add&amp;nbsp;jQuery&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt;&lt;span&gt;(){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;(&lt;/span&gt;&lt;span class=&quot;keyword&quot;&gt;typeof&lt;/span&gt;&lt;span&gt;&amp;nbsp;unsafeWindow.jQuery&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;'undefined'&lt;/span&gt;&lt;span&gt;)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;GM_Head&amp;nbsp;=&amp;nbsp;document.getElementsByTagName(&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;'head'&lt;/span&gt;&lt;span&gt;)[0]&amp;nbsp;||&amp;nbsp;document.documentElement,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GM_JQ&amp;nbsp;=&amp;nbsp;document.createElement(&lt;span class=&quot;string&quot;&gt;'script'&lt;/span&gt;&lt;span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GM_JQ.src&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;string&quot;&gt;'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'&lt;/span&gt;&lt;span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GM_JQ.type&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;string&quot;&gt;'text/javascript'&lt;/span&gt;&lt;span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GM_JQ.async&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;true&lt;/span&gt;&lt;span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GM_Head.insertBefore(GM_JQ,&amp;nbsp;GM_Head.firstChild);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GM_wait();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;})();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;comment&quot;&gt;//&amp;nbsp;Check&amp;nbsp;if&amp;nbsp;jQuery's&amp;nbsp;loaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt;&lt;span&gt;&amp;nbsp;GM_wait()&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;(&lt;/span&gt;&lt;span class=&quot;keyword&quot;&gt;typeof&lt;/span&gt;&lt;span&gt;&amp;nbsp;unsafeWindow.jQuery&amp;nbsp;==&amp;nbsp;'undefined')&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;window.setTimeout(GM_wait,&amp;nbsp;100);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;else&lt;/span&gt;&lt;span&gt;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$&amp;nbsp;=&amp;nbsp;unsafeWindow.jQuery.noConflict(&lt;span class=&quot;keyword&quot;&gt;true&lt;/span&gt;&lt;span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;letsJQuery();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&lt;span class=&quot;comment&quot;&gt;//&amp;nbsp;All&amp;nbsp;your&amp;nbsp;GM&amp;nbsp;code&amp;nbsp;must&amp;nbsp;be&amp;nbsp;inside&amp;nbsp;this&amp;nbsp;function&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;function&lt;/span&gt;&lt;span&gt;&amp;nbsp;letsJQuery()&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert($);&amp;nbsp;&lt;span class=&quot;comment&quot;&gt;//&amp;nbsp;check&amp;nbsp;if&amp;nbsp;the&amp;nbsp;dollar&amp;nbsp;(jquery)&amp;nbsp;function&amp;nbsp;works&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;alt&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert($().jquery);&amp;nbsp;&lt;span class=&quot;comment&quot;&gt;//&amp;nbsp;check&amp;nbsp;jQuery&amp;nbsp;version&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;li class=&quot;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;然后代码就得全部扔在letsJQuery()方法里了。&lt;br /&gt;
由于是async，所以，尽量选择快一点地址，比如本地的localhost之类的，HOHO，不过，这就得本地WEB服务常开了。&lt;/p&gt;
&lt;p&gt;原文来自：http://joanpiedra.com/jquery/greasemonkey/&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834560/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834560/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834560/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834560/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=771be5685db0747b00c6e21d702d60a9&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=771be5685db0747b00c6e21d702d60a9&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=2de8eff0d467ceec054d402e9971f26e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=2de8eff0d467ceec054d402e9971f26e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=61ad3be9eb0db35b76984aa30ddcb585&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=61ad3be9eb0db35b76984aa30ddcb585&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=ed3bfe709af1a1c74984ea706376f145&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=ed3bfe709af1a1c74984ea706376f145&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=74475febf12bd0a839b75a55e8b72e94&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=74475febf12bd0a839b75a55e8b72e94&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=b4b84f4fcb15458bdf944a93036b5206&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=b4b84f4fcb15458bdf944a93036b5206&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=bbe99ae6b12011cbf2f3ed993f569603&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=bbe99ae6b12011cbf2f3ed993f569603&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-2-1.shtml">Javascript</category><pubDate>Mon, 30 Aug 2010 10:00:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1445-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1445-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834560/5179076</fs:itemid></item><item><title>关注几个同步软件</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834561/5179076/1/item.html</link><description>&lt;p&gt;Dropbox这软件恐怕也不用多介绍，大家都明白。国内类似软件也有不少。不过我真的不太想用这类类似软件。&lt;br /&gt;
我想要什么 ？我想要有dropbox这类软件的功能，但可以自主控制，比如我可以使用FTP来做这事，做一类似于SVN的事情。因为使用ftp或者sftp，对数据可以完整的控制，也不再受限。对于一些比较重要的文件，自己也能够放心的存储 。&lt;br /&gt;
找了一下，大约有以下几款软件可能会符合我的要求，但还没有尝试。不过我得尝试一下，下周就是我的尝试了。。。&lt;br /&gt;
1、DirSync Pro,不过，看介绍好象不能同步远程的。http://www.dirsyncpro.org/features.html，看了一下是不支持。&lt;br /&gt;
2、&lt;strong&gt;Capivara&lt;/strong&gt; 是一个支持 SFTP 和 FTP 的文件同步工具，采用 Java 语言开发。通过对文件的时间戳和 SHA-1 哈希值进行文件的比较以便决定是否同步，同时可预览即将进行的同步操作，防止一些误操作。http://capivara.sourceforge.net/，这个是用java，就是不知道效率怎么样。&lt;br /&gt;
3、OpenPiczzais是一个免费版本的&lt;a target=&quot;_blank&quot; href=&quot;http://www.piczza.com/&quot;&gt;Piczza&lt;/a&gt;文件传输服务。它可以让你可以安装自己的Piczza服务功能。（事实上我真没仔细看，不过看到居然有openpiczza服务，所以准备尝试一下）&lt;br /&gt;
&lt;br /&gt;
总之，也希望看到本文的朋友推荐一些软件（需要支持自己的FTP服务，就象xmarks之类的）。总之最后如果再不行了就只有SVN或者GIT了。其实上我不需要版本控制，但如果有变动，总能够覆盖或合并本地吧？&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834561/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834561/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834561/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834561/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=9548cfdd7b70b699ef1e7986ff366dd8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=9548cfdd7b70b699ef1e7986ff366dd8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=51e40768cd080b025e048ffeccafebd8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=51e40768cd080b025e048ffeccafebd8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=d986b6bcb980abd9d4a98ce0a1065b82&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=d986b6bcb980abd9d4a98ce0a1065b82&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=50facddcb43735993111556ee73b620e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=50facddcb43735993111556ee73b620e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=283af6b3f1227a8af600c87333665382&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=283af6b3f1227a8af600c87333665382&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=5e42aa5e7a9bf45794a6d9640ca1ff92&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=5e42aa5e7a9bf45794a6d9640ca1ff92&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=86c01e944a4121fddf425e51890219db&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=86c01e944a4121fddf425e51890219db&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-3-1.shtml">Software</category><pubDate>Sun, 29 Aug 2010 22:28:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1444-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1444-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834561/5179076</fs:itemid></item><item><title>ipad 常用软件</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834562/5179076/1/item.html</link><description>&lt;p&gt;我的ipad上有几个常用的软件，嗯横。我比较不太喜欢装软件，所以在用的一般就会一直用下去。&lt;/p&gt;
&lt;p&gt;1、good reader 这个，是看书的，除了不支持chm，其他几种基本都支持了。为此我买了正版。0.99刀，但遗憾的是。。。我居然装了看不到图标了。更遗憾的是，单位的IP是192.168.10网段，而无线却是192.168.1的网段，因此，good reader在开通wifi的时候却显示让我们使用192.168.10网段。于是乎，这个功能我就永远无法使用了。&lt;/p&gt;
&lt;p&gt;2、pinball ，这个就不用多说了。。。&lt;/p&gt;
&lt;p&gt;3、愤怒的小鸟。。。娱乐软件&lt;/p&gt;
&lt;p&gt;4、会说话的TOM。给小朋友玩的。&lt;/p&gt;
&lt;p&gt;5、植物大战僵尸，纯属娱乐。。。&lt;/p&gt;
&lt;p&gt;6、UC，看wap网页的。。。&lt;/p&gt;
&lt;p&gt;7、readdleDocs。。本来以为这个才能看word，事实上，有很多都可以。。比如goodreader。所幸good reader显示不出的时候，它能够显示&lt;/p&gt;
&lt;p&gt;8、金山快盘。之所以用这个，是因为wps中有个快盘可以存word之类的，所以我可以利用ipad来同步一些资料&lt;/p&gt;
&lt;p&gt;9、evernote。。因为，手机上有，电脑上有，所以。。。理所当然喽。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834562/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834562/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834562/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834562/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=854d83f4b363c2a731c2276629988410&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=854d83f4b363c2a731c2276629988410&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=669335a21f37f22c1d10910a9459aa0e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=669335a21f37f22c1d10910a9459aa0e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=5e13df6a7a723984911400adab33e082&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=5e13df6a7a723984911400adab33e082&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=93919d02e0c4821cb95012ecc768bd4a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=93919d02e0c4821cb95012ecc768bd4a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=be2ad4a18b866c4f36b5033fd0e43a4b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=be2ad4a18b866c4f36b5033fd0e43a4b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=5e05f2b4fe7f96f9352edcec930ee766&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=5e05f2b4fe7f96f9352edcec930ee766&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=58daab92a08a9ba3e6054c34790fe4e8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=58daab92a08a9ba3e6054c34790fe4e8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-5-1.shtml">Misc</category><pubDate>Sat, 28 Aug 2010 22:02:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1443-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1443-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834562/5179076</fs:itemid></item><item><title>杂烩，附招聘信息</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834563/5179076/1/item.html</link><description>&lt;p&gt;项目中用到了memcached，类文件是不知道谁找来的MemcacheWrapper，其中有一个方法是namespace()，在正式机上跑的没问题，但是测试机上却老是显示语法有误，说是T_STRING没有正确结尾。开始的时候以为是文件编码导致，但仔细一看，原来是这个namespace名称，但为什么正式机上没问题呢？翻开手册才知道，这个名词是从5.3才开始变成关键字的。这让我想起了一些其他的名称，比如use,goto,import等 。自从命名空间开始后，很多人都认为import会变成关键字，但结果还是采用了use作为关键字。&lt;/p&gt;
&lt;p&gt;因此，在写代码的时候，可以看一下PHP附录的保留关键字等。&lt;/p&gt;
&lt;p&gt;-------------------------------&lt;/p&gt;
&lt;p&gt;一号店，是11在群里说的，说是这个网店吸引了风投，但我看了看，没有什么特别的地方，连京东都可以卖非电器类产品了，这类网站那怎么赢利呢？事实上华联等都有网站，而且送货费也不贵，所以，随便看看喽。。观望一下&lt;/p&gt;
&lt;p&gt;-------------------------------&lt;/p&gt;
&lt;p&gt;最后，给自己现在的单位进行一下招聘。&lt;/p&gt;
&lt;p&gt;条件我也不多说了，总之是PHP方面的人才，一些附加条件我也就多说了，什么精通这个精通那个的。&lt;/p&gt;
&lt;p&gt;只有几个条件：1年PHP开发经验的2名，2年+开发经验的2名。1年左右经验的，最基本的CRUD要会，顺便熟悉康盛的系统为佳。2年+的，需要有独立做项目的经验，能够根据需求独立完成项目，当然也不希望是算盘珠一样，一定要有自己的想法才行。&lt;/p&gt;
&lt;p&gt;然后就是大家都要求的，性格开朗，有团队经验犹佳之类。那句能够承受加班压力的我就不写了，项目一般不会要求加班，只希望在工作时间把任务完成，这是最佳的。要加班的话，也就是上线前几天和上线后几天，可能会有加班情况出现，但这个，其实大家都懂的吧。&lt;/p&gt;
&lt;p&gt;请身在上海，并有意愿从事PHP和已经从事PHP但想換換岗位的可以联系我。可以留言，也可以QQ我：19129540.&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834563/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834563/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834563/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834563/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=0dd2ed15e30dae7e30631cef0c1cbd63&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=0dd2ed15e30dae7e30631cef0c1cbd63&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=52b7dde6545e17e43db3eb2912c38653&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=52b7dde6545e17e43db3eb2912c38653&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=f8297220b03c800e81421516ac3bf315&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=f8297220b03c800e81421516ac3bf315&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=1c2511aec3c9dd4834202bd3ee695ec9&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=1c2511aec3c9dd4834202bd3ee695ec9&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c3c915ca8aa897987353211add049d97&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c3c915ca8aa897987353211add049d97&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=257ea13b575e2e7af10cafbe91fa59b3&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=257ea13b575e2e7af10cafbe91fa59b3&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=e10bb0dd8e7aec0aac924b30e898f36f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=e10bb0dd8e7aec0aac924b30e898f36f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-5-1.shtml">Misc</category><pubDate>Fri, 27 Aug 2010 21:46:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1442-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1442-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834563/5179076</fs:itemid></item><item><title>月光博客：用dropbox备份网站</title><link>http://item.feedsky.com/~feedsky/neatcn/~8119907/408834564/5179076/1/item.html</link><description>&lt;p&gt;DropBox最近又在准备折腾了，理由其实不算太充分，事实上，在资料方面，我一直是在用wizExplorer，但是对于文件等，除了QQ的存储，好象没有其他什么的了（当然金山的快盘也行，但不太敢用，因为，以前联想的lenovodata，突然间就成了收费盘，很郁闷的）&lt;/p&gt;
&lt;p&gt;Dropbox我在之前也有介绍，也有使用，但就在申请API的第二天，我发现，dropbox再也打不开了，现在嘛，你懂的。。。&lt;/p&gt;
&lt;p&gt;主要是我想同步一些目录，和文件，又不是特别大，但是数据比较多，如果用网上的SVN来进行同步，我想，意义也不是特别大。不过，我是有准备将我的服务器慢慢改成svn，因为，它不用备案。有域名就要备案，很繁琐啊。rsynx也可以，但是我需要互动，而不仅仅只是备份&lt;/p&gt;
&lt;p&gt;上面是月光的博客：&lt;/p&gt;
&lt;p&gt;　　虽然目前从国内访问Dropbox有小小困难，但是从国外访问还是正常的，对于拥有国外Linux虚拟主机的用户，可能会遇到这样的需求，就是如何将国外虚拟主机上的网站备份到Dropbox上，下面我以Dreamhost为例介绍一下备份的方法。&lt;br /&gt;
你需要有一个国外的虚拟主机，虚拟主机需要有SSH权限，并能访问外网，符合这样条件的虚拟主机有一些，例如Dreamhost这类主机。&lt;br /&gt;
使用SSH帐号登录到你的主机地址，之后执行下面的命令：&lt;br /&gt;
&lt;font color=&quot;#ff0000&quot;&gt;wget -O dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86&lt;/font&gt;&lt;br /&gt;
下载完成文件后，接着，你可以执行下面的命令将其解压缩：&lt;br /&gt;
&lt;font color=&quot;#ff0000&quot;&gt;tar -zxof dropbox.tar.gz&lt;/font&gt;&lt;br /&gt;
接着执行下面的命令将Dropbox程序转移到～目录。&lt;br /&gt;
&lt;font color=&quot;#ff0000&quot;&gt;mv .dropbox-dist ~&lt;/font&gt;&lt;br /&gt;
现在，执行下面的程序即可后台运行Dropbox&lt;br /&gt;
&lt;font color=&quot;#ff0000&quot;&gt;~/.dropbox-dist/dropboxd &amp;amp;&lt;/font&gt;&lt;br /&gt;
第一次执行这个程序的时候，dropboxd会显示一串很长的URL地址，你需要手动在浏览器中执行这个地址，才能将虚拟主机服务器连接到 Dropbox，执行完后，Dropbox的Events中会显示&amp;ldquo;The computer xxx was linked to your account&amp;rdquo;，表明该服务器已经连接好。&lt;br /&gt;
这时候，你的根目录下会出现一个Dropbox目录，并会自动下载，你可以使用下面命令进入你的Dropbox目录&lt;br /&gt;
&lt;font color=&quot;#ff0000&quot;&gt;cd ~/Dropbox&lt;/font&gt;&lt;br /&gt;
接着，将你的网站目录通过cp -r命令复制到~/Dropbox目录下，就能实现网站的同步备份了。&lt;br /&gt;
如果你想停止运行Dropbox，可以通过下面的命令实现：&lt;br /&gt;
&lt;font color=&quot;#ff0000&quot;&gt;killall dropbox&lt;/font&gt;&lt;br /&gt;
对于Dreamhost用户来说，其实你一退出SSH，dropbox就会自动退出，你要想让dropbox一直运行，要购买价格更高的VPS，或者使用screen命令自动挂着SSH也行。&lt;br /&gt;
最后赞一下Dropbox的速度，在国外的主机上执行Dropbox真快的吓人，几个G的文件，不到半个小时就全部下载更新完毕，这和国内完全不是一个速度啊，我昨天在国内同步几个G的文件，至少要花整整两天的时间。&lt;br /&gt;
参考文章：&lt;a href=&quot;http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall&quot; target=&quot;_blank&quot;&gt;How To Install Dropbox In An Entirely Text Based Linux Environment&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;原文来自：http://www.williamlong.info/archives/2222.html&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408834564/neatcn/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/neatcn/~8119907/408834564/5179076/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/neatcn/408834564/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/neatcn/408834564/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=93348b22c5ec8e442bc46561bbadcfae&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=93348b22c5ec8e442bc46561bbadcfae&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=9f107ff950d99378c1cbd64f5ec9997a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=9f107ff950d99378c1cbd64f5ec9997a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=fc1a9f150cdb458cc21b52920f5ee9f6&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=fc1a9f150cdb458cc21b52920f5ee9f6&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=14dba8d54f58814c4d3a733e4e6cc22d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=14dba8d54f58814c4d3a733e4e6cc22d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=e6daa9106d070f2901ddce06e1fc17bc&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=e6daa9106d070f2901ddce06e1fc17bc&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=c2adde9f9c578d862bad8a5915d72f37&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=c2adde9f9c578d862bad8a5915d72f37&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/neatcn?a=bf71c0f82810023bfcc0d8105d3cea5b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/neatcn?i=bf71c0f82810023bfcc0d8105d3cea5b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.neatstudio.com/category-5-1.shtml">Misc</category><pubDate>Thu, 26 Aug 2010 17:31:00 +0800</pubDate><author>gouki</author><guid isPermaLink="false">http://www.neatstudio.com/show-1441-1.shtml</guid><dc:creator>gouki</dc:creator><fs:srclink>http://www.neatstudio.com/show-1441-1.shtml</fs:srclink><fs:srcfeed>http://www.neatstudio.com/rss.php</fs:srcfeed><fs:itemid>feedsky/neatcn/~8119907/408834564/5179076</fs:itemid></item></channel></rss>