<?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/"
	>

<channel>
	<title>Seateng Blog</title>
	<atom:link href="http://blog.seateng.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.seateng.cn</link>
	<description>[spawn(fun()-&#62;Browser ! {self(), share(X)}end) &#124;&#124; X &#60;- [&#34;Web开发&#34;, &#34;网站构架&#34;, &#34;分布式开发&#34;]]</description>
	<lastBuildDate>Sat, 19 May 2012 13:57:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Mac 下Virtualbox Nat port forwarding</title>
		<link>http://blog.seateng.cn/archives/2012/05/mac-virtualbox-nat-port-forwarding.html</link>
		<comments>http://blog.seateng.cn/archives/2012/05/mac-virtualbox-nat-port-forwarding.html#comments</comments>
		<pubDate>Sat, 19 May 2012 13:47:06 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=323</guid>
		<description><![CDATA[Mac 下 VirtualBox nat + port forwarding 1024 以下端口]]></description>
			<content:encoded><![CDATA[<p>折腾了一下午Mac 下的VirtualBox 搭 debian 的nat + port forwarding 未果。<br />
仔细查阅 VirtualBox 文档如下：<br />
Forwarding host ports < 1024 impossible:<br />
On Unix-based hosts (e.g. Linux, Solaris, Mac OS X) it is not possible to bind to ports below 1024 from applications that are not run by root. As a result, if you try to configure such a port forwarding, the VM will refuse to start.</p>
<p>在Unix类系统下如果要 port forwarding 1024以下的端口要用root权限。用root试之搞定。不过考虑到安全因素还是牺牲一些易用性用1024以上端口。</p>
<p>备注：windows 下无此问题。</p>
<p>参考地址：<a href="http://www.virtualbox.org/manual/ch06.html#natforward" target="_blank">http://www.virtualbox.org/manual/ch06.html#natforward</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2012/05/mac-virtualbox-nat-port-forwarding.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>创建 Null Route (Blackhole Route) 保护系统</title>
		<link>http://blog.seateng.cn/archives/2011/12/creating-a-blackhole-route.html</link>
		<comments>http://blog.seateng.cn/archives/2011/12/creating-a-blackhole-route.html#comments</comments>
		<pubDate>Tue, 06 Dec 2011 07:53:54 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[网站构架]]></category>
		<category><![CDATA[blackhole route]]></category>
		<category><![CDATA[null route]]></category>
		<category><![CDATA[黑洞]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=304</guid>
		<description><![CDATA[空路由或者说黑洞路由是一个没有最终目的地的路由。匹配的包将被删除或者抛弃而不是转发。这种空路由的行为也被称做黑洞过滤。简单说空路由就是不路由。 创建空路由主要用于保护你的系统，使其不发送任何响应数据给远程系统。]]></description>
			<content:encoded><![CDATA[<p>空路由或者说黑洞路由是一个没有最终目的地的路由。匹配的包将被删除或者抛弃而不是转发。这种空路由的行为也被称做黑洞过滤。简单说空路由就是不路由。 创建空路由主要用于保护你的系统，使其不发送任何响应数据给远程系统。<br />
<strong>创建一个空路由</strong></p>
<p>创建空路由通常使用 `route` 命令。尽管语法上存在一些差异，但是 Window 和 Unix 系统都支持这个命令。</p>
<p>&nbsp;</p>
<p><strong>创建一个C 网段的空路由:</strong></p>
<p># route add 193.252.19.0 0.0.0.0 add net 193.252.19.0: Glossary Link gateway 0.0.0.0</p>
<p>用`netstat -nr`命令我们可以看到新添加的空路由:</p>
<p># netstat -nr<br />
Routing tables<br />
Internet:<br />
Destination Gateway Flags Refs Use Netif Expire<br />
…<br />
193.252.19 0.0.0.0 UGS 0 0 fxp0<br />
..</p>
<p>命令结果显示无论我们从这个网段收到什么数据包，都不会做任何应答。空路由通常用于防止那些发送垃圾邮件的服务器和网络上一些无聊的人。</p>
<p>&nbsp;</p>
<p><strong>在Linux下用 iproute2 创建空路由</strong></p>
<p>$ ip route add blackhole 192.168.32.128/32</p>
<p>&nbsp;</p>
<p><strong>在Solaris 和 BSD 下用 route 创建空路由:</strong></p>
<p>$ route add -host 10.10.0.1 127.0.0.1 -blackhole<br />
$ route add -net 10.10.64.0/18 127.0.0.1 -blackhole</p>
<p>&nbsp;</p>
<p><strong>Cisco IOS 上可以路由到 Null0 接口:</strong></p>
<p>ip route 192.168.0.0 255.255.0.0 Null0</p>
<p>在Windows XP/Vista下不支持reject或者blackhole参数</p>
<p>指向路由，不过可以指定一个不存在的IP地址（例如：192.168.32.254）作为目标网关来实现。</p>
<p>route -p ADD 192.168.32.128 MASK 255.255.255.255 192.168.32.254</p>
<p>译自：<br />
<a href="http://mayur.gondaliya.com/computer-networks/creating-a-null-route-341.html" target="_blank">http://mayur.gondaliya.com/computer-networks/creating-a-null-route-341.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/12/creating-a-blackhole-route.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS 支持 L2TP 一键搞定。</title>
		<link>http://blog.seateng.cn/archives/2011/12/vps-l2tp-install.html</link>
		<comments>http://blog.seateng.cn/archives/2011/12/vps-l2tp-install.html#comments</comments>
		<pubDate>Thu, 01 Dec 2011 09:46:06 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[茶余饭后]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=298</guid>
		<description><![CDATA[wget http://mirror.zeddicus.com/auto-l2tp/1.2/centos/l2tp.sh chmod +x l2tp.sh ./l2tp.sh window 7 支持L2TP 需要修改注册表 下载 l2tp.rar window xp l2tp 设置参考： http://www.vpsyou.com/2010/10/04/l2tp-vpn.html 具体参考： http://www.vpsyou.com/2010/10/04/l2tp-vpn.html]]></description>
			<content:encoded><![CDATA[<p>wget http://mirror.zeddicus.com/auto-l2tp/1.2/centos/l2tp.sh<br />
chmod +x l2tp.sh<br />
./l2tp.sh</p>
<p>window 7 支持L2TP 需要修改注册表</p>
<p><a href="http://blog.seateng.cn/wp-content/uploads/2011/12/l2tp.rar">下载 l2tp.rar</a></p>
<p>window xp l2tp 设置参考：<br />
<a href="http://www.vpsyou.com/2010/10/04/l2tp-vpn.html" target="_blank">http://www.vpsyou.com/2010/10/04/l2tp-vpn.html</a></p>
<p>具体参考：<br />
<a href="http://www.vpsyou.com/2010/10/04/l2tp-vpn.html" target="_blank">http://www.vpsyou.com/2010/10/04/l2tp-vpn.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/12/vps-l2tp-install.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrome 语音识别输入</title>
		<link>http://blog.seateng.cn/archives/2011/11/chrome-voice-input.html</link>
		<comments>http://blog.seateng.cn/archives/2011/11/chrome-voice-input.html#comments</comments>
		<pubDate>Sat, 26 Nov 2011 04:24:30 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[网站构架]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[语音识别]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=281</guid>
		<description><![CDATA[Chrome 语音识别输入input。]]></description>
			<content:encoded><![CDATA[<p>发现<a href="http://www.taobao.com" target="_blank">淘宝</a>首页的搜索框支持语音识别输入。</p>
<p>稍微研究了下发现是Google Chrome 支持语音识别输入。</p>
<p>做了个简单的Demo：</p>
<pre class="brush: xml; title: ;">
&lt;!Doctype html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;zh&quot; lang=&quot;zh&quot;&gt;
&lt;head&gt;
  &lt;title&gt;test&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;input type=&quot;text&quot; id=&quot;a&quot; name=&quot;a&quot; autofocus=&quot;true&quot; autocomplete=&quot;off&quot;
 x-webkit-speech=&quot;&quot; x-webkit-grammar=&quot;builtin:translate&quot; /&gt;

&lt;/body&gt;

&lt;/html&gt;
</pre>
<p>注意:</p>
<pre class="brush: xml; title: ;">
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;zh&quot; lang=&quot;zh&quot;&gt;
</pre>
<p>lang务必用<strong>zh</strong><br />
要不然对着麦克风说半天中文识别出来的都是废。</p>
<p>用Chrome同学可以在下面的输入框里看到个麦克风。</p>
<input type="text" id="a" name="a" autofocus="true" autocomplete="off" x-webkit-speech="" x-webkit-grammar="builtin:translate" />
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/11/chrome-voice-input.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让Emacs在终端上和在窗口模式保持显示一致</title>
		<link>http://blog.seateng.cn/archives/2011/08/emacs-teminal-color.html</link>
		<comments>http://blog.seateng.cn/archives/2011/08/emacs-teminal-color.html#comments</comments>
		<pubDate>Wed, 31 Aug 2011 07:19:25 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[网站构架]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=272</guid>
		<description><![CDATA[编辑 ~/.bashrc 增加: export TERM=xterm-256color]]></description>
			<content:encoded><![CDATA[<p>编辑 ~/.bashrc<br />
增加:<br />
export TERM=xterm-256color</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/08/emacs-teminal-color.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用wget下Adobe CS5.5 For Mac</title>
		<link>http://blog.seateng.cn/archives/2011/08/wget-adobe-cs-5-5-dmg-download.html</link>
		<comments>http://blog.seateng.cn/archives/2011/08/wget-adobe-cs-5-5-dmg-download.html#comments</comments>
		<pubDate>Tue, 09 Aug 2011 16:15:51 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Adobe]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=268</guid>
		<description><![CDATA[wget &#8211;save-headers=on &#8211;save-cookies=cookie &#8211;keep-session-cookies &#8220;https://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&#038;loc=cn&#8221; screen wget -r -x &#8211;load-cookies=cookie &#8211;keep-session-cookies &#8220;http://trials2.adobe.com/AdobeProducts/PHSP/12_1/osx10/Photoshop_12_1_LS3.dmg&#8221;]]></description>
			<content:encoded><![CDATA[<p>wget &#8211;save-headers=on &#8211;save-cookies=cookie &#8211;keep-session-cookies &#8220;https://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&#038;loc=cn&#8221;</p>
<p>screen wget -r -x &#8211;load-cookies=cookie &#8211;keep-session-cookies &#8220;http://trials2.adobe.com/AdobeProducts/PHSP/12_1/osx10/Photoshop_12_1_LS3.dmg&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/08/wget-adobe-cs-5-5-dmg-download.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Mac下用Pygments给终端cat加颜色</title>
		<link>http://blog.seateng.cn/archives/2011/07/pygments_mac_terminal_color.html</link>
		<comments>http://blog.seateng.cn/archives/2011/07/pygments_mac_terminal_color.html#comments</comments>
		<pubDate>Fri, 29 Jul 2011 01:51:21 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[网站构架]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Pygments]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=265</guid>
		<description><![CDATA[在Mac下用Pygments给终端cat加颜色]]></description>
			<content:encoded><![CDATA[<p>1. sudo easy_install Pygments<br />
2. emacs ~/.bash_profile<br />
增加<br />
# for syntax highlight<br />
alias xcat=&#8217;pygmentize -f console&#8217;<br />
3. xcat jquery.js</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/07/pygments_mac_terminal_color.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chrome高亮输入框颜色调整</title>
		<link>http://blog.seateng.cn/archives/2011/06/chrome-input-area-highlighting.html</link>
		<comments>http://blog.seateng.cn/archives/2011/06/chrome-input-area-highlighting.html#comments</comments>
		<pubDate>Thu, 23 Jun 2011 03:18:49 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[WEB前端开发]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=260</guid>
		<description><![CDATA[input[type="text"]:focus, input[type="password"]:focus, textarea:focus { outline: 2px solid #6FA1D9 !important; -webkit-box-shadow:0px 0px 5px #6FA1D9 !important; } input[type="checkbox"]:focus,input[type="submit"]:focus,input[type="reset"]:focus, input[type="radio"]:focus { outline: 1px solid #6FA1D9 !important; } 参考： http://www.douban.com/group/topic/13291053/ http://fis.io/firefox-input-area-highlighting.html]]></description>
			<content:encoded><![CDATA[<p>input[type="text"]:focus, input[type="password"]:focus, textarea:focus {<br />
outline: 2px solid #6FA1D9 !important;<br />
-webkit-box-shadow:0px 0px 5px #6FA1D9 !important;<br />
} </p>
<p>input[type="checkbox"]:focus,input[type="submit"]:focus,input[type="reset"]:focus, input[type="radio"]:focus {<br />
outline: 1px solid #6FA1D9 !important;<br />
} </p>
<p>参考：<br />
<a href="http://www.douban.com/group/topic/13291053/">http://www.douban.com/group/topic/13291053/</a><br />
<a href="http://fis.io/firefox-input-area-highlighting.html">http://fis.io/firefox-input-area-highlighting.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2011/06/chrome-input-area-highlighting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mockups 注册码</title>
		<link>http://blog.seateng.cn/archives/2010/09/mockups-%e6%b3%a8%e5%86%8c%e7%a0%81.html</link>
		<comments>http://blog.seateng.cn/archives/2010/09/mockups-%e6%b3%a8%e5%86%8c%e7%a0%81.html#comments</comments>
		<pubDate>Thu, 16 Sep 2010 09:26:54 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[网站构架]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=246</guid>
		<description><![CDATA[http://www.balsamiq.com NGEN eJzzzU/OLi0odswsqvFzd/WrsUQCNc41hmBRAO9oC9s=]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.balsamiq.com">http://www.balsamiq.com</a><br />
NGEN<br />
eJzzzU/OLi0odswsqvFzd/WrsUQCNc41hmBRAO9oC9s=</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2010/09/mockups-%e6%b3%a8%e5%86%8c%e7%a0%81.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat Cookie base64 truncated =</title>
		<link>http://blog.seateng.cn/archives/2010/06/tomcat-cookie-base64-truncated.html</link>
		<comments>http://blog.seateng.cn/archives/2010/06/tomcat-cookie-base64-truncated.html#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:21:36 +0000</pubDate>
		<dc:creator>Seateng</dc:creator>
				<category><![CDATA[网站构架]]></category>

		<guid isPermaLink="false">http://blog.seateng.cn/?p=233</guid>
		<description><![CDATA[private String convertToValidBase64Encode(String cookieParam) { switch(cookieParam.length()%4) { case 3: cookieParam=cookieParam+&#8221;=&#8221;; break; case 2: cookieParam=cookieParam+&#8221;==&#8221;; break; case 1: cookieParam=cookieParam+&#8221;===&#8221;; break; default: System.out.println(&#8220;Default: the cookieParam value is&#8211;&#8221;+cookieParam); } return cookieParam; }]]></description>
			<content:encoded><![CDATA[<p>private String convertToValidBase64Encode(String cookieParam)<br />
{<br />
switch(cookieParam.length()%4)<br />
{<br />
case 3:<br />
cookieParam=cookieParam+&#8221;=&#8221;;<br />
break;<br />
case 2:<br />
cookieParam=cookieParam+&#8221;==&#8221;;<br />
break;<br />
case 1:<br />
cookieParam=cookieParam+&#8221;===&#8221;;<br />
break;<br />
default:<br />
System.out.println(&#8220;Default: the cookieParam value is&#8211;&#8221;+cookieParam);<br />
}<br />
return cookieParam;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seateng.cn/archives/2010/06/tomcat-cookie-base64-truncated.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

