<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Iworm&#039;s Thought</title>
	<atom:link href="http://blog.iworm.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.iworm.net</link>
	<description>有好的编程习惯，重视重构、模式、敏捷开发</description>
	<lastBuildDate>Sun, 28 Apr 2013 03:23:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
		<item>
		<title>测试密码强度的网站</title>
		<link>http://blog.iworm.net/2013/04/17/%e6%b5%8b%e8%af%95%e5%af%86%e7%a0%81%e5%bc%ba%e5%ba%a6%e7%9a%84%e7%bd%91%e7%ab%99/</link>
		<comments>http://blog.iworm.net/2013/04/17/%e6%b5%8b%e8%af%95%e5%af%86%e7%a0%81%e5%bc%ba%e5%ba%a6%e7%9a%84%e7%bd%91%e7%ab%99/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 06:12:40 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[meter]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[strength]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=1001</guid>
		<description><![CDATA[How Secure Is My Password http://howsecureismypassword.net/ Strength Test http://rumkin.com/tools/password/passchk.php Microsoft Safety And Security Center https://www.microsoft.com/security/pc-security/password-checker.aspx How Big Is Your Haystack https://www.grc.com/haystack.htm 以下几个网站的效果不是很理想，因为abc-123或者123!@#qwe这样的密码，他们也认为是强度很高的密码，有一定的误导性。 The Password Meter http://www.passwordmeter.com/ Test Your Password http://www.testyourpassword.com/ Yet Another Password Meter http://www.yetanotherpasswordmeter.com/]]></description>
				<content:encoded><![CDATA[<p>How Secure Is My Password<br />
<a href="http://howsecureismypassword.net/">http://howsecureismypassword.net/</a></p>
<p>Strength Test<br />
<a href="http://rumkin.com/tools/password/passchk.php">http://rumkin.com/tools/password/passchk.php</a></p>
<p>Microsoft Safety And Security Center<br />
<a href="https://www.microsoft.com/security/pc-security/password-checker.aspx">https://www.microsoft.com/security/pc-security/password-checker.aspx</a></p>
<p>How Big Is Your Haystack<br />
<a href="https://www.grc.com/haystack.htm">https://www.grc.com/haystack.htm</a></p>
<p>以下几个网站的效果不是很理想，因为abc-123或者123!@#qwe这样的密码，他们也认为是强度很高的密码，有一定的误导性。</p>
<p>The Password Meter<br />
<a href="http://www.passwordmeter.com/">http://www.passwordmeter.com/</a></p>
<p>Test Your Password<br />
<a href="http://www.testyourpassword.com/">http://www.testyourpassword.com/</a></p>
<p>Yet Another Password Meter<br />
<a href="http://www.yetanotherpasswordmeter.com/">http://www.yetanotherpasswordmeter.com/</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2013%2F04%2F17%2F%25e6%25b5%258b%25e8%25af%2595%25e5%25af%2586%25e7%25a0%2581%25e5%25bc%25ba%25e5%25ba%25a6%25e7%259a%2584%25e7%25bd%2591%25e7%25ab%2599%2F&amp;title=%E6%B5%8B%E8%AF%95%E5%AF%86%E7%A0%81%E5%BC%BA%E5%BA%A6%E7%9A%84%E7%BD%91%E7%AB%99" id="wpa2a_2"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2013/04/17/%e6%b5%8b%e8%af%95%e5%af%86%e7%a0%81%e5%bc%ba%e5%ba%a6%e7%9a%84%e7%bd%91%e7%ab%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>SVN培训大纲</title>
		<link>http://blog.iworm.net/2012/08/23/svn%e5%9f%b9%e8%ae%ad%e5%a4%a7%e7%ba%b2/</link>
		<comments>http://blog.iworm.net/2012/08/23/svn%e5%9f%b9%e8%ae%ad%e5%a4%a7%e7%ba%b2/#comments</comments>
		<pubDate>Thu, 23 Aug 2012 01:27:54 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=983</guid>
		<description><![CDATA[这份大纲是我在公司做SVN培训时用到的，感觉可能对其他人有用，就贴了出来。 日常操作 地址： https://svnserver/svn/hrms/trunk https://svnserver/svn/hrms/branches/release https://svnserver/svn/hrms/branches/dev 迁出 提交：顺利提交、提交失败，提示先更新 提交日志：日志内容、与Issue Tracker绑定 更新 查看历史 比较：与工作目录比较、与之前某版本比较 添加文件及文件夹：直接添加、提交时添加 解决冲突：推荐推迟解决 创建分支：方法、什么时候创建分支 查看分支历史：正常查看，stop-on-copy 合并分支：方法、什么时候合并分支 创建tag：方法、什么时候创建tag 更新到特定版本：更新、更新后如果想提交该怎么办（直接提交、提交到分支） 高级操作 Cleanup：什么时候会用到cleanup 忽略文件及文件夹 Global-ignore 切换分支：如何、安全吗 重定向仓库位置：如何、跟切换分支的区别 SVN管理 创建SVN仓库：VisualSVN的操作，TortoiseSVN的操作 备份与恢复：只有命令行操作]]></description>
				<content:encoded><![CDATA[<p>这份大纲是我在公司做SVN培训时用到的，感觉可能对其他人有用，就贴了出来。</p>
<ul>
<li>日常操作
<ul>
<li>地址：
<ul>
<li><a href="https://svnserver/svn/hrms/trunk">https://svnserver/svn/hrms/trunk</a></li>
<li><a href="https://svnserver/svn/hrms/branches/release">https://svnserver/svn/hrms/branches/release</a></li>
<li><a href="https://svnserver/svn/hrms/branches/dev">https://svnserver/svn/hrms/branches/dev</a></li>
</ul>
</li>
<li>迁出</li>
<li>提交：顺利提交、提交失败，提示先更新</li>
<li>提交日志：日志内容、与Issue Tracker绑定</li>
<li>更新</li>
<li>查看历史</li>
<li>比较：与工作目录比较、与之前某版本比较</li>
<li>添加文件及文件夹：直接添加、提交时添加</li>
<li>解决冲突：推荐推迟解决</li>
<li>创建分支：方法、什么时候创建分支</li>
<li>查看分支历史：正常查看，stop-on-copy</li>
<li>合并分支：方法、什么时候合并分支</li>
<li>创建tag：方法、什么时候创建tag</li>
<li>更新到特定版本：更新、更新后如果想提交该怎么办（直接提交、提交到分支）</li>
</ul>
</li>
<li>高级操作
<ul>
<li>Cleanup：什么时候会用到cleanup</li>
<li>忽略文件及文件夹</li>
<li>Global-ignore</li>
<li>切换分支：如何、安全吗</li>
<li>重定向仓库位置：如何、跟切换分支的区别</li>
</ul>
</li>
<li>SVN管理
<ul>
<li>创建SVN仓库：VisualSVN的操作，TortoiseSVN的操作</li>
<li>备份与恢复：只有命令行操作</li>
</ul>
</li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2012%2F08%2F23%2Fsvn%25e5%259f%25b9%25e8%25ae%25ad%25e5%25a4%25a7%25e7%25ba%25b2%2F&amp;title=SVN%E5%9F%B9%E8%AE%AD%E5%A4%A7%E7%BA%B2" id="wpa2a_4"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2012/08/23/svn%e5%9f%b9%e8%ae%ad%e5%a4%a7%e7%ba%b2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>In BCP command, database name and table name must begin with letter or underscore, and can&#8217;t contains hyphen.</title>
		<link>http://blog.iworm.net/2012/07/31/in-bcp-command-database-name-and-table-name-must-begin-with-letter-or-underscore-and-cant-contains-hyphen/</link>
		<comments>http://blog.iworm.net/2012/07/31/in-bcp-command-database-name-and-table-name-must-begin-with-letter-or-underscore-and-cant-contains-hyphen/#comments</comments>
		<pubDate>Tue, 31 Jul 2012 02:19:42 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[bcp]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=967</guid>
		<description><![CDATA[One of our database name is &#8220;0726&#8243;, and another database is &#8220;demo07-26&#8243;. We use the following command to import data: bcp 0726..abc in f:\io.txt -S. -Usa -Pmypass -c -F1 bcp demo07-26..abc in f:\io.txt -S. -Usa -Pmypass -c -F1 Both command &#8230; <a href="http://blog.iworm.net/2012/07/31/in-bcp-command-database-name-and-table-name-must-begin-with-letter-or-underscore-and-cant-contains-hyphen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>One of our database name is &#8220;0726&#8243;, and another database is &#8220;demo07-26&#8243;.</div>
<div>We use the following command to import data:</div>
<div>bcp 0726..abc in f:\io.txt -S. -Usa -Pmypass -c -F1</div>
<div>bcp demo07-26..abc in f:\io.txt -S. -Usa -Pmypass -c -F1</div>
<div></div>
<div>Both command will shows an error message:</div>
<div>An error occurred while processing the command line.</div>
<div></div>
<div>Database name or table name begin with number is not a good habit, if you insist to do this, you may use [] to surround your database name.</div>
<div>
<div>bcp [0726..abc] in f:\io.txt -S. -Usa -Pmypass -c -F1</div>
<div>bcp [demo07-26..abc] in f:\io.txt -S. -Usa -Pmypass -c -F1</div>
</div>
<div></div>
<div>That will works.</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2012%2F07%2F31%2Fin-bcp-command-database-name-and-table-name-must-begin-with-letter-or-underscore-and-cant-contains-hyphen%2F&amp;title=In%20BCP%20command%2C%20database%20name%20and%20table%20name%20must%20begin%20with%20letter%20or%20underscore%2C%20and%20can%E2%80%99t%20contains%20hyphen." id="wpa2a_6"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2012/07/31/in-bcp-command-database-name-and-table-name-must-begin-with-letter-or-underscore-and-cant-contains-hyphen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>关于产品的代码问题</title>
		<link>http://blog.iworm.net/2012/07/31/%e5%85%b3%e4%ba%8e%e4%ba%a7%e5%93%81%e7%9a%84%e4%bb%a3%e7%a0%81%e9%97%ae%e9%a2%98/</link>
		<comments>http://blog.iworm.net/2012/07/31/%e5%85%b3%e4%ba%8e%e4%ba%a7%e5%93%81%e7%9a%84%e4%bb%a3%e7%a0%81%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Mon, 30 Jul 2012 16:38:20 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[编程]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[refactor]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=962</guid>
		<description><![CDATA[本来打算写封邮件回复，后来想想还是算了吧。但是辛苦码好的字不能浪费，就贴到这里了。邮件是发给不懂代码的人，所以避开了术语。 Refactoring is the key. In my opinion, we can do this over our source code. Our current situation on source code is: we have many huge classes and long functions. For example, if I am the chef, I want &#8230; <a href="http://blog.iworm.net/2012/07/31/%e5%85%b3%e4%ba%8e%e4%ba%a7%e5%93%81%e7%9a%84%e4%bb%a3%e7%a0%81%e9%97%ae%e9%a2%98/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>本来打算写封邮件回复，后来想想还是算了吧。但是辛苦码好的字不能浪费，就贴到这里了。邮件是发给不懂代码的人，所以避开了术语。</p>
<p><span id="more-962"></span></p>
<p>Refactoring is the key.</p>
<p>In my opinion, we can do this over our source code.</p>
<p>Our current situation on source code is: we have many huge classes and long functions.</p>
<p>For example, if I am the chef, I want to cook an egg.</p>
<p>In our system, we will write the whole thing in one function:</p>
<ol>
<li>Get an egg from fridge</li>
<li>Crack it</li>
<li>Put it in to pan</li>
<li>Drop some salt</li>
<li>Flip it</li>
<li>Put it into dish</li>
<li>Take the dish to meal table</li>
</ol>
<p>This will works fine if there is no change.</p>
<p>But what about if I want 2 eggs with sauce, don’t drop salt, cook in oven, with only one side cooked. How do we change the code as usual?</p>
<ol>
<li>Get x egg(s) from fridge</li>
<li>Crack it/them</li>
<li>If is cooking use pan: Put it/them to pan otherwise, put it into oven.</li>
<li>If need salt: Drop some salt</li>
<li>If need sauce: put sauce</li>
<li>If not only need one side: Flip it</li>
<li>Put it into dish</li>
<li>Take the dish to meal table</li>
</ol>
<p>OK, this will works. But if someone want to cook the egg on rock with double sauce, double salt, how do we change the code?</p>
<p>This is our problem. We cannot change our code from time to time. We must refactoring our source code. Our code will be open for extension but closed to modification(Open Closed Principle in software design)</p>
<p>We can split the function to multiple function. So we can reuse these function when needed, and add corresponding interfaces, in order to replace one by another.</p>
<p>An improved function to do this could be:</p>
<ol>
<li>Get egg from Egg Storage(this could be anything, e.g. fridge, basket)</li>
<li>Send them to Egg Cracker(can do this by hand or anything else), and get cracked egg.</li>
<li>Sent them to Egg Cooker(can be pan or oven or microwave)</li>
<li>Decorate the egg with sauce, salt(Decorate Pattern in software design)</li>
<li>Put it into container</li>
<li>Send the container to destination</li>
</ol>
<p>Now each step is a abstract method, all methods are called by a main function. These abstract method can have various implementations. We do not care which implementation we use.</p>
<p>If we need to fry beef instead egg. We could do the following changes, make these method more abstract.</p>
<ol>
<li>Get food from Storage(this could be anything, e.g. fridge, basket)</li>
<li>Prepare food before cooking. (can do this by hand or anything else), and get prepared food.</li>
<li>Sent food to Cooker(can be pan or oven or microwave)</li>
<li>Decorate the food(with sauce, salt using Decorate Pattern in software design)</li>
<li>Put the food into container</li>
<li>Send the container to destination</li>
</ol>
<p>So, if I want to cook chicken instead of beef. I just write the different code and add to this flow. No historical code will changed. Risks can be controlled.</p>
<p>Refactoring is not stop and refactoring , but is improving in small step.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2012%2F07%2F31%2F%25e5%2585%25b3%25e4%25ba%258e%25e4%25ba%25a7%25e5%2593%2581%25e7%259a%2584%25e4%25bb%25a3%25e7%25a0%2581%25e9%2597%25ae%25e9%25a2%2598%2F&amp;title=%E5%85%B3%E4%BA%8E%E4%BA%A7%E5%93%81%E7%9A%84%E4%BB%A3%E7%A0%81%E9%97%AE%E9%A2%98" id="wpa2a_8"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2012/07/31/%e5%85%b3%e4%ba%8e%e4%ba%a7%e5%93%81%e7%9a%84%e4%bb%a3%e7%a0%81%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>3个较好用的免费DDNS提供商</title>
		<link>http://blog.iworm.net/2012/02/28/3%e4%b8%aa%e8%be%83%e5%a5%bd%e7%94%a8%e7%9a%84%e5%85%8d%e8%b4%b9ddns%e6%8f%90%e4%be%9b%e5%95%86/</link>
		<comments>http://blog.iworm.net/2012/02/28/3%e4%b8%aa%e8%be%83%e5%a5%bd%e7%94%a8%e7%9a%84%e5%85%8d%e8%b4%b9ddns%e6%8f%90%e4%be%9b%e5%95%86/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 06:43:12 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[ddns]]></category>
		<category><![CDATA[free]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=954</guid>
		<description><![CDATA[春节时买了一个Buffalo路由器。自带的固件可以上300M（虽然笔记本暂时只能以150M连接，可能是哪里没设置好），但是支持的DDNS服务商太少，只有两个，而且都是收费的。Buffalo版的DD-WRT倒是支持很多，但是只能上150M。用了一段时间的DD后，我又换回了Buffalo固件。 家里有台下载机，如果没有DDNS还是挺麻烦的。所以我想选择一个能被DD支持（这意味着这家DDNS提供商还算比较知名，以后万一DD支持300M了，直接刷，不用再换DDNS提供商了），又免费，又有API的DDNS提供商。 google到了一个大全，一个个点开看，慢慢排除，最后选择了3家。这三家服务就不一一介绍了，感兴趣的自己看看吧 DNSDynmic，稳定，更新IP之后不超过5分钟就刷新过来了。API支持HTTPS。 freedns.afraid.org，容易被墙，可能页面上有什么关键字引起的。不清楚使用API直接更新会不会被墙。 DtDNS，10分钟后新IP生效。新增加一个hostname好像也需要半小时才生效。 我目前主要使用DNSDynmic，准备把DtDNS和freedns.afraid.org当作备用。也就是更新的时候会更新他们，仅当DNSDynmic得到的不是正确的IP时才尝试看看其他两个IP是不是能用。毕竟，在天朝，网络的事情可说不准。]]></description>
				<content:encoded><![CDATA[<p>春节时买了一个Buffalo路由器。自带的固件可以上300M（虽然笔记本暂时只能以150M连接，可能是哪里没设置好），但是支持的DDNS服务商太少，只有两个，而且都是收费的。Buffalo版的DD-WRT倒是支持很多，但是只能上150M。用了一段时间的DD后，我又换回了Buffalo固件。</p>
<p>家里有台下载机，如果没有DDNS还是挺麻烦的。所以我想选择一个能被DD支持（这意味着这家DDNS提供商还算比较知名，以后万一DD支持300M了，直接刷，不用再换DDNS提供商了），又免费，又有API的DDNS提供商。</p>
<p>google到了一个<a href="http://dnslookup.me/dynamic-dns/">大全</a>，一个个点开看，慢慢排除，最后选择了3家。这三家服务就不一一介绍了，感兴趣的自己看看吧</p>
<p><a href="http://www.dnsdynamic.org/">DNSDynmic</a>，稳定，更新IP之后不超过5分钟就刷新过来了。API支持HTTPS。</p>
<p><a href="http://freedns.afraid.org/">freedns.afraid.org</a>，容易被墙，可能页面上有什么关键字引起的。不清楚使用API直接更新会不会被墙。</p>
<p><a href="https://www.dtdns.com/">DtDNS</a>，10分钟后新IP生效。新增加一个hostname好像也需要半小时才生效。</p>
<p>我目前主要使用DNSDynmic，准备把DtDNS和freedns.afraid.org当作备用。也就是更新的时候会更新他们，仅当DNSDynmic得到的不是正确的IP时才尝试看看其他两个IP是不是能用。毕竟，在天朝，网络的事情可说不准。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2012%2F02%2F28%2F3%25e4%25b8%25aa%25e8%25be%2583%25e5%25a5%25bd%25e7%2594%25a8%25e7%259a%2584%25e5%2585%258d%25e8%25b4%25b9ddns%25e6%258f%2590%25e4%25be%259b%25e5%2595%2586%2F&amp;title=3%E4%B8%AA%E8%BE%83%E5%A5%BD%E7%94%A8%E7%9A%84%E5%85%8D%E8%B4%B9DDNS%E6%8F%90%E4%BE%9B%E5%95%86" id="wpa2a_10"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2012/02/28/3%e4%b8%aa%e8%be%83%e5%a5%bd%e7%94%a8%e7%9a%84%e5%85%8d%e8%b4%b9ddns%e6%8f%90%e4%be%9b%e5%95%86/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>12306订票助手</title>
		<link>http://blog.iworm.net/2012/01/10/12306%e8%ae%a2%e7%a5%a8%e5%8a%a9%e6%89%8b/</link>
		<comments>http://blog.iworm.net/2012/01/10/12306%e8%ae%a2%e7%a5%a8%e5%8a%a9%e6%89%8b/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 04:09:48 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=951</guid>
		<description><![CDATA[今年春运，铁道部的12306.cn网站一举成名，先后夺得我为其颁发的几个之最：最烂网站、最慢网站、最傻网站。 但是在不想排队，排队也买不到票，电话订票经常无故被挂断的情况下，最靠谱的还是这个网站了。不过由于其实在是太烂了，仅仅登录都很困难，何况买票。 所以就分析了一下它登录、买票的操作，写了个bash脚本辅助登录、买票。 流程是这样的： 用户将浏览器的Cookie、用户名、密码、姓名、验证码当作参数传递给登录程序，它就自动帮你登录。 买票也是类似，不用考虑这趟车是不是有票，你只管把需要的信息填写到程序里，然后运行就可以了。 原理和参数就不解释了，感兴趣的自己下载研究吧。 login.sh http://www.box.com/s/m2t7ncgozeen8d092z95 order.sh http://www.box.com/s/i417h9ia9z2v1c9oy6x6 有人已经写了更友好的程序，直接google搜索“12306 订票 助手”即可 有个现成的(for chrome，估计firefox和ie9也能用)：https://github.com/zzdhidden/12306/raw/master/12306BookingAssistant.user.js 还有人用一个叫做iMacro的firefox插件录制脚本，自动播放，也是个办法。 八仙过海各显神通啊。]]></description>
				<content:encoded><![CDATA[<p>今年春运，铁道部的12306.cn网站一举成名，先后夺得我为其颁发的几个之最：最烂网站、最慢网站、最傻网站。</p>
<p>但是在不想排队，排队也买不到票，电话订票经常无故被挂断的情况下，最靠谱的还是这个网站了。不过由于其实在是太烂了，仅仅登录都很困难，何况买票。</p>
<p>所以就分析了一下它登录、买票的操作，写了个bash脚本辅助登录、买票。</p>
<p>流程是这样的：</p>
<p>用户将浏览器的Cookie、用户名、密码、姓名、验证码当作参数传递给登录程序，它就自动帮你登录。</p>
<p>买票也是类似，不用考虑这趟车是不是有票，你只管把需要的信息填写到程序里，然后运行就可以了。</p>
<p>原理和参数就不解释了，感兴趣的自己下载研究吧。</p>
<p>login.sh <a href="http://www.box.com/s/m2t7ncgozeen8d092z95">http://www.box.com/s/m2t7ncgozeen8d092z95</a></p>
<p>order.sh <a href="http://www.box.com/s/i417h9ia9z2v1c9oy6x6">http://www.box.com/s/i417h9ia9z2v1c9oy6x6</a></p>
<p>有人已经写了更友好的程序，直接google搜索“12306 订票 助手”即可</p>
<p>有个现成的(for chrome，估计firefox和ie9也能用)：<a href="https://github.com/zzdhidden/12306/raw/master/12306BookingAssistant.user.js" rel="nofollow" target="_blank">https://github.com/zzdhidden/12306/raw/master/12306BookingAssistant.user.js</a></p>
<p>还有人用一个叫做iMacro的firefox插件录制脚本，自动播放，也是个办法。</p>
<p>八仙过海各显神通啊。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2012%2F01%2F10%2F12306%25e8%25ae%25a2%25e7%25a5%25a8%25e5%258a%25a9%25e6%2589%258b%2F&amp;title=12306%E8%AE%A2%E7%A5%A8%E5%8A%A9%E6%89%8B" id="wpa2a_12"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2012/01/10/12306%e8%ae%a2%e7%a5%a8%e5%8a%a9%e6%89%8b/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>电视机应该挂在多高的位置</title>
		<link>http://blog.iworm.net/2011/12/23/%e7%94%b5%e8%a7%86%e6%9c%ba%e5%ba%94%e8%af%a5%e6%8c%82%e5%9c%a8%e5%a4%9a%e9%ab%98%e7%9a%84%e4%bd%8d%e7%bd%ae/</link>
		<comments>http://blog.iworm.net/2011/12/23/%e7%94%b5%e8%a7%86%e6%9c%ba%e5%ba%94%e8%af%a5%e6%8c%82%e5%9c%a8%e5%a4%9a%e9%ab%98%e7%9a%84%e4%bd%8d%e7%bd%ae/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 15:20:11 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[数码]]></category>
		<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=948</guid>
		<description><![CDATA[年底了，新买台55寸的液晶电视。我想直接放在电视柜上，老婆说还是挂起来好看。于是就来研究该挂在什么位置。 网上找了一下，简体中文的搜索结果中，大部分都是说让电视的中心距离地面130cm。我用胶布在墙上做了记号，发现电视机的位置偏上，坐在沙发上看电视需要把脖子抬起来，如同在电影院前两排一样。时间长了，肯定会脖子酸痛的。 其实这个问题很好解决，自己观察一下平时是以什么姿势看的电脑屏幕，你很有可能是让眼睛与屏幕中间（或中间偏上一点）保持相同高度。 我们来做个实验。首先让眼球与屏幕的中间在同一高度，然后尝试看屏幕顶端，再看看屏幕底端。你认为看哪里时比较费力？我是往上看的时候比较费力，相信大多数人都是这样。所以如果让眼睛与屏幕中间偏上部分保持高度一致，看电视的时候就会比较舒服，眼睛不会累。我今天想找一些关于眼睛上下角度的权威说法，但是没找到。不过有些东西是可以根据经验来猜测的。 所以无论多大的电视，安装之前，先测量一下家人坐在沙发上时，眼睛的距离地面的高度。然后让电视屏幕的60%高度与此高度保持一致。用胶布模拟电视，贴在墙上试试，感觉一下，看看这样是不是最舒服的。 但任何事都是有利有弊的，电视的位置低了，当你站着看电视的时候就会觉得不太舒服。因为可能此时眼睛的高度与电视的上边缘一致了。另外电视的位置偏低，可能对于客厅的整体布局也会有影响。具体怎么衡量这个高度，还是仁者见仁的。 以下为参考资料： http://wenda.tianya.cn/wenda/thread?tid=4f8f80f065868f77 http://tonesidar.pixnet.net/blog/post/31777771-電視施工高度與觀賞距離建議 http://5i01.com/topicdetail.php?f=347&#38;t=275143&#38;p=1 http://tw.myblog.yahoo.com/datongfurniture-168/article？mid=2645&#38;prev=2646&#38;next=2644 http://elec.it168.com/a2011/1220/1291/000001291434.shtml http://news.xinhuanet.com/jiaju/2011-12/13/c_122416588.htm]]></description>
				<content:encoded><![CDATA[<p>年底了，新买台55寸的液晶电视。我想直接放在电视柜上，老婆说还是挂起来好看。于是就来研究该挂在什么位置。</p>
<p>网上找了一下，简体中文的搜索结果中，大部分都是说让电视的中心距离地面130cm。我用胶布在墙上做了记号，发现电视机的位置偏上，坐在沙发上看电视需要把脖子抬起来，如同在电影院前两排一样。时间长了，肯定会脖子酸痛的。</p>
<p>其实这个问题很好解决，自己观察一下平时是以什么姿势看的电脑屏幕，你很有可能是让眼睛与屏幕中间（或中间偏上一点）保持相同高度。</p>
<p>我们来做个实验。首先让眼球与屏幕的中间在同一高度，然后尝试看屏幕顶端，再看看屏幕底端。你认为看哪里时比较费力？我是往上看的时候比较费力，相信大多数人都是这样。所以如果让眼睛与屏幕中间偏上部分保持高度一致，看电视的时候就会比较舒服，眼睛不会累。我今天想找一些关于眼睛上下角度的权威说法，但是没找到。不过有些东西是可以根据经验来猜测的。</p>
<p>所以无论多大的电视，安装之前，先测量一下家人坐在沙发上时，眼睛的距离地面的高度。然后让电视屏幕的60%高度与此高度保持一致。用胶布模拟电视，贴在墙上试试，感觉一下，看看这样是不是最舒服的。</p>
<p>但任何事都是有利有弊的，电视的位置低了，当你站着看电视的时候就会觉得不太舒服。因为可能此时眼睛的高度与电视的上边缘一致了。另外电视的位置偏低，可能对于客厅的整体布局也会有影响。具体怎么衡量这个高度，还是仁者见仁的。</p>
<p>以下为参考资料：<br />
<a href="http://wenda.tianya.cn/wenda/thread?tid=4f8f80f065868f77 http://tonesidar.pixnet.net/blog/post/31777771-電視施工高度與觀賞距離建議 http://5i01.com/topicdetail.php?f=347&amp;t=275143&amp;p=1 http://tw.myblog.yahoo.com/datongfurniture-168/article?mid=2645&amp;prev=2646&amp;next=2644 http://elec.it168.com/a2011/1220/1291/000001291434.shtml http://news.xinhuanet.com/jiaju/2011-12/13/c_122416588.htm"> http://wenda.tianya.cn/wenda/thread?tid=4f8f80f065868f77</a><br />
<a href="http://tonesidar.pixnet.net/blog/post/31777771-電視施工高度與觀賞距離建議"> http://tonesidar.pixnet.net/blog/post/31777771-電視施工高度與觀賞距離建議</a><br />
<a href="http://5i01.com/topicdetail.php?f=347&amp;t=275143&amp;p=1"> http://5i01.com/topicdetail.php?f=347&amp;t=275143&amp;p=1</a><br />
<a href="http://tw.myblog.yahoo.com/datongfurniture-168/article？mid=2645&amp;prev=2646&amp;next=2644"> http://tw.myblog.yahoo.com/datongfurniture-168/article？mid=2645&amp;prev=2646&amp;next=2644</a><br />
<a href="http://elec.it168.com/a2011/1220/1291/000001291434.shtml"> http://elec.it168.com/a2011/1220/1291/000001291434.shtml</a><br />
<a href="http://news.xinhuanet.com/jiaju/2011-12/13/c_122416588.htm"> http://news.xinhuanet.com/jiaju/2011-12/13/c_122416588.htm</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2011%2F12%2F23%2F%25e7%2594%25b5%25e8%25a7%2586%25e6%259c%25ba%25e5%25ba%2594%25e8%25af%25a5%25e6%258c%2582%25e5%259c%25a8%25e5%25a4%259a%25e9%25ab%2598%25e7%259a%2584%25e4%25bd%258d%25e7%25bd%25ae%2F&amp;title=%E7%94%B5%E8%A7%86%E6%9C%BA%E5%BA%94%E8%AF%A5%E6%8C%82%E5%9C%A8%E5%A4%9A%E9%AB%98%E7%9A%84%E4%BD%8D%E7%BD%AE" id="wpa2a_14"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2011/12/23/%e7%94%b5%e8%a7%86%e6%9c%ba%e5%ba%94%e8%af%a5%e6%8c%82%e5%9c%a8%e5%a4%9a%e9%ab%98%e7%9a%84%e4%bd%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>截图软件</title>
		<link>http://blog.iworm.net/2011/08/26/%e6%88%aa%e5%9b%be%e8%bd%af%e4%bb%b6/</link>
		<comments>http://blog.iworm.net/2011/08/26/%e6%88%aa%e5%9b%be%e8%bd%af%e4%bb%b6/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 02:16:17 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[screenshot]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=924</guid>
		<description><![CDATA[Updated: 2011/12/19 一直在用PicPick，昨天更新时可能没看清选项，一路Next，后来发现给我的Firefox装上的工具条、修改了默认搜索引擎、修改了首页，太卑劣了！我卸载后再安装，没有任何选项了，但也不装这些插件了。 这也算是报应，因为作者说了免费版不能商用，而我是在公司装的。 那就换一个吧。 到alternativeto.net上找PicPick的替代品，发现了好多，有收费的有免费的。 我只把免费的下载下来，然后一一测试，根据个人喜好以及功能，找到以下几款还不错的，而且都能免费商用。 Screenpresso，闭源软件，有免费版和Pro收费版，主页上没说是否可以商用，我联系了作者问问看，还没得到回复作者说免费版可以商用。自带编辑器，用起来也比较方便。 Greenshot，开源软件，免费，自带编辑器，但是编辑器里不能输入中文最新的0.8.1版可以支持中文输入了，我一般就是截图、画框，极少输入文字，这也不是一个很大的缺点。0.8.1版还支持修改快捷键定义，相对来说很完美了。 ZScreen，开源软件，免费，启动时需要注册图像文件的编辑权限，点OK就好了，不会造成不良影响，启动稍慢一点，不带编辑器。 还有好多比如JShot，Lightscreen，Lightshot，DuckCapture，Screenshot Captor等，他们都因为功能太弱，或者不能商用或者个人喜好问题而被我删掉了。 最终选择的是Screenpresso，就是每次截图完会弹出一个截图历史的窗口比较讨厌，也没有选项可以禁止自动弹出。如果作者禁止该软件商用，那我就毫不犹豫的选择Greenshot。 Screenpresso最近老是弹出一些莫名的东西，被我删掉了，还是改回Screenshop Captor。 经网友提示说Greenshot最新的0.8.1版可以支持中文输入了，而且还能自定义快捷键，我觉得已经是一个非常完美的软件了。接下来我会试用它。]]></description>
				<content:encoded><![CDATA[<p>Updated: 2011/12/19</p>
<p>一直在用PicPick，昨天更新时可能没看清选项，一路Next，后来发现给我的Firefox装上的工具条、修改了默认搜索引擎、修改了首页，太卑劣了！我卸载后再安装，没有任何选项了，但也不装这些插件了。</p>
<p>这也算是报应，因为作者说了免费版不能商用，而我是在公司装的。</p>
<p>那就换一个吧。</p>
<p>到<a title="alternativeto.net" href="http://alternativeto.net/" target="_blank">alternativeto.net</a>上找PicPick的替代品，发现了好多，有收费的有免费的。<br />
我只把免费的下载下来，然后一一测试，根据个人喜好以及功能，找到以下几款还不错的，而且都能免费商用。</p>
<ul>
<li><a title="Screenpresso" href="http://www.screenpresso.com/" target="_blank">Screenpresso</a>，闭源软件，有免费版和Pro收费版，<del>主页上没说是否可以商用，我联系了作者问问看，还没得到回复</del>作者说免费版可以商用。自带编辑器，用起来也比较方便。</li>
<li><a title="Greenshot" href="http://getgreenshot.org/" target="_blank">Greenshot</a>，开源软件，免费，自带编辑器，<del>但是编辑器里不能输入中文</del>最新的0.8.1版可以支持中文输入了，我一般就是截图、画框，极少输入文字<del>，这也不是一个很大的缺点</del>。0.8.1版还支持修改快捷键定义，相对来说很完美了。</li>
<li><a title="ZScreen" href="http://code.google.com/p/zscreen/" target="_blank">ZScreen</a>，开源软件，免费，启动时需要注册图像文件的编辑权限，点OK就好了，不会造成不良影响，启动稍慢一点，不带编辑器。</li>
</ul>
<p>还有好多比如<a title="JShot" href="http://jshot.info/" target="_blank">JShot</a>，<a title="Lightscreen" href="http://lightscreen.sourceforge.net/" target="_blank">Lightscreen</a>，<a title="Lightshot" href="http://lightshot.skillbrains.com/" target="_blank">Lightshot</a>，<a title="Duck Capture" href="http://www.ducklink.com/p/free-screen-capture-tool/" target="_blank">DuckCapture</a>，<a title="ScreenshotCaptor" href="http://www.donationcoder.com/Software/Mouser/screenshotcaptor/" target="_blank">Screenshot Captor</a>等，他们都因为功能太弱，或者不能商用或者个人喜好问题而被我删掉了。</p>
<p><del>最终选择的是Screenpresso，就是每次截图完会弹出一个截图历史的窗口比较讨厌，也没有选项可以禁止自动弹出。如果作者禁止该软件商用，那我就毫不犹豫的选择Greenshot。</del></p>
<p>Screenpresso最近老是弹出一些莫名的东西，被我删掉了，还是改回Screenshop Captor。</p>
<p>经网友提示说Greenshot最新的0.8.1版可以支持中文输入了，而且还能自定义快捷键，我觉得已经是一个非常完美的软件了。接下来我会试用它。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2011%2F08%2F26%2F%25e6%2588%25aa%25e5%259b%25be%25e8%25bd%25af%25e4%25bb%25b6%2F&amp;title=%E6%88%AA%E5%9B%BE%E8%BD%AF%E4%BB%B6" id="wpa2a_16"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2011/08/26/%e6%88%aa%e5%9b%be%e8%bd%af%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>3个在线画流程图/线框图的网站</title>
		<link>http://blog.iworm.net/2011/08/15/3%e4%b8%aa%e5%9c%a8%e7%ba%bf%e7%94%bb%e6%b5%81%e7%a8%8b%e5%9b%be%e7%ba%bf%e6%a1%86%e5%9b%be%e7%9a%84%e7%bd%91%e7%ab%99/</link>
		<comments>http://blog.iworm.net/2011/08/15/3%e4%b8%aa%e5%9c%a8%e7%ba%bf%e7%94%bb%e6%b5%81%e7%a8%8b%e5%9b%be%e7%ba%bf%e6%a1%86%e5%9b%be%e7%9a%84%e7%bd%91%e7%ab%99/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 05:26:05 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[diagram]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[wireframe]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=918</guid>
		<description><![CDATA[手头没有Visio，想画几张简单的流程图该怎么办呢？ 这几个网站可以帮到你，都提供免费和收费版本。 1. Cacoo，基于Flash的画图网站，图上可输入中文。提供基本流程图，线框图，UML等。免费用户只能保存25张图，只能导出PNG格式，收费用户不限制图数，能导出SVG、PS、PNG、PDF。查看Cacoo的各种Plan。 2. Diagram.ly，基于纯Javascript，不提供储存空间，在Web上画的图需要保存到本地，支持的保存格式有XML、PNG、JPG。能打开的格式为XML，VDG（Visio格式）。完全免费。它的收费项目是mxGraph这个Javascript的类库，不过这个跟普通用户到没多大关系。 3. Gliffy，基于Flash，免费用户可以创建5张图，但都是公开的。收费用户可以创建更多，以及图可以选择是私有的。可以导出SVG，PNG，XML格式。查看Gliffy的各种Plan。 我推荐Cacoo，这个网站虽说只能保存25张图，但一般情况下够用了。而且其界面和画出的图形也比较美观。 第二推荐的是Diagram.ly，用起来没限制，只不过所有的文件是保存在本地，不方便随时随地打开。 不太推荐Gliffy，因为有免费用户的5张图限制，没Cacoo大方。倒是他能以xml方式把图保存在本地，从某种角度说，可以突破5张图的限制，不过比较麻烦。]]></description>
				<content:encoded><![CDATA[<p>手头没有Visio，想画几张简单的流程图该怎么办呢？</p>
<p>这几个网站可以帮到你，都提供免费和收费版本。</p>
<p>1. <a href="https://cacoo.com" title="Cacoo" target="_blank">Cacoo</a>，基于Flash的画图网站，图上可输入中文。提供基本流程图，线框图，UML等。免费用户只能保存25张图，只能导出PNG格式，收费用户不限制图数，能导出SVG、PS、PNG、PDF。<a href="https://cacoo.com/profile/plans" title="Cacoo Pricing Plans" target="_blank">查看Cacoo的各种Plan</a>。</p>
<p>2. <a href="http://www.diagram.ly/" title="Diagram.ly" target="_blank">Diagram.ly</a>，基于纯Javascript，不提供储存空间，在Web上画的图需要保存到本地，支持的保存格式有XML、PNG、JPG。能打开的格式为XML，VDG（Visio格式）。完全免费。它的收费项目是<a href="http://www.jgraph.com/mxgraph.html" title="mxGraph" target="_blank">mxGraph</a>这个Javascript的类库，不过这个跟普通用户到没多大关系。</p>
<p>3. <a href="https://www.gliffy.com/" title="Gliffy" target="_blank">Gliffy</a>，基于Flash，免费用户可以创建5张图，但都是公开的。收费用户可以创建更多，以及图可以选择是私有的。可以导出SVG，PNG，XML格式。<a href="https://www.gliffy.com/products/online/pricing/" title="Gliffy Pricing Plans" target="_blank">查看Gliffy的各种Plan</a>。</p>
<p>我推荐Cacoo，这个网站虽说只能保存25张图，但一般情况下够用了。而且其界面和画出的图形也比较美观。<br />
第二推荐的是Diagram.ly，用起来没限制，只不过所有的文件是保存在本地，不方便随时随地打开。<br />
不太推荐Gliffy，因为有免费用户的5张图限制，没Cacoo大方。倒是他能以xml方式把图保存在本地，从某种角度说，可以突破5张图的限制，不过比较麻烦。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2011%2F08%2F15%2F3%25e4%25b8%25aa%25e5%259c%25a8%25e7%25ba%25bf%25e7%2594%25bb%25e6%25b5%2581%25e7%25a8%258b%25e5%259b%25be%25e7%25ba%25bf%25e6%25a1%2586%25e5%259b%25be%25e7%259a%2584%25e7%25bd%2591%25e7%25ab%2599%2F&amp;title=3%E4%B8%AA%E5%9C%A8%E7%BA%BF%E7%94%BB%E6%B5%81%E7%A8%8B%E5%9B%BE%2F%E7%BA%BF%E6%A1%86%E5%9B%BE%E7%9A%84%E7%BD%91%E7%AB%99" id="wpa2a_18"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2011/08/15/3%e4%b8%aa%e5%9c%a8%e7%ba%bf%e7%94%bb%e6%b5%81%e7%a8%8b%e5%9b%be%e7%ba%bf%e6%a1%86%e5%9b%be%e7%9a%84%e7%bd%91%e7%ab%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>Windows 7 不能连接L2TP/IPSec VPN的解决办法，以及MacOS拨上VPN后，默认路由没改的解决办法</title>
		<link>http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/</link>
		<comments>http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 06:48:18 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[l2tp]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=913</guid>
		<description><![CDATA[最近几篇都是讲不能xxx的原因&#8230;. Windows 7里连接不上L2TP/IPSec的VPN，提示无法连接主机，主机没响应。 前提是：L2TP都设置正确，协议是L2TP/IPSec，Preshared Key也填写了。 具体解决办法如下： 1. 确保服务里面“IKE and AuthIP IPSec Keying module” 和“IPSec policy agent”两个服务状态是自动，并且已经运行 2. 打开注册表，在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent里添加一个DWORD（32-bit），名称是AssumeUDPEncapsulationContextOnSendRule的key，值为2 重启电脑即可。 如果你是在公司域中，需要在VPN设置里，去掉Include Windows logon domain前面的钩即可。 如果是在MacOS中发现VPN能连上，但是默认路由还是走原来的，并没有走VPN，可以参考这篇文章，把Service Order改一下，让VPN在Wifi/Ethernet之前就好了 参考文章： 《Windows 7 IPSec/L2TP VPN connection problem》 《How to configure an L2TP/IPsec server behind a &#8230; <a href="http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>最近几篇都是讲不能xxx的原因&#8230;.</p>
<p>Windows 7里连接不上L2TP/IPSec的VPN，提示无法连接主机，主机没响应。</p>
<p>前提是：L2TP都设置正确，协议是L2TP/IPSec，Preshared Key也填写了。</p>
<p>具体解决办法如下：<br />
1. 确保服务里面“IKE and AuthIP IPSec Keying module” 和“IPSec policy agent”两个服务状态是自动，并且已经运行<br />
2. 打开注册表，在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent里添加一个DWORD（32-bit），名称是AssumeUDPEncapsulationContextOnSendRule的key，值为2</p>
<p>重启电脑即可。</p>
<p>如果你是在公司域中，需要在VPN设置里，去掉Include Windows logon domain前面的钩即可。</p>
<p>如果是在MacOS中发现VPN能连上，但是默认路由还是走原来的，并没有走VPN，可以参考<a title="VPN connection does not change the default routing on clients" href="https://discussions.apple.com/thread/2092429?start=0&amp;tstart=0" target="_blank">这篇文章</a>，把Service Order改一下，让VPN在Wifi/Ethernet之前就好了</p>
<p>参考文章：<br />
<a title="Windows 7 IPSec/L2TP VPN connection problem" href="http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/630488b8-e638-488d-803a-08ef9281e4fb/" target="_blank">《Windows 7 IPSec/L2TP VPN connection problem》</a></p>
<p><a title="How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008" href="http://support.microsoft.com/kb/926179" target="_blank">《How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008》</a></p>
<p><a title="VPN connection does not change the default routing on clients" href="https://discussions.apple.com/thread/2092429?start=0&amp;tstart=0" target="_blank">《VPN connection does not change the default routing on clients》</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2011%2F08%2F12%2Fwindows-7-%25e4%25b8%258d%25e8%2583%25bd%25e8%25bf%259e%25e6%258e%25a5l2tpipsec-vpn%25e7%259a%2584%25e8%25a7%25a3%25e5%2586%25b3%25e5%258a%259e%25e6%25b3%2595%25ef%25bc%258c%25e4%25bb%25a5%25e5%258f%258amacos%25e6%258b%25a8%25e4%25b8%258avpn%25e5%2590%258e%25ef%25bc%258c%25e9%25bb%2598%25e8%25ae%25a4%2F&amp;title=Windows%207%20%E4%B8%8D%E8%83%BD%E8%BF%9E%E6%8E%A5L2TP%2FIPSec%20VPN%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95%EF%BC%8C%E4%BB%A5%E5%8F%8AMacOS%E6%8B%A8%E4%B8%8AVPN%E5%90%8E%EF%BC%8C%E9%BB%98%E8%AE%A4%E8%B7%AF%E7%94%B1%E6%B2%A1%E6%94%B9%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95" id="wpa2a_20"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
	</channel>
</rss>
