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

<channel>
	<title>bbpet`s blog &#187; Tech</title>
	<atom:link href="http://blog.bbpet.org/archives/category/tech/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bbpet.org</link>
	<description>Just 4 fun~</description>
	<pubDate>Sat, 02 Aug 2008 14:14:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>设置.indent.pro</title>
		<link>http://blog.bbpet.org/archives/12</link>
		<comments>http://blog.bbpet.org/archives/12#comments</comments>
		<pubDate>Thu, 10 Jul 2008 16:06:27 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[indent]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/12</guid>
		<description><![CDATA[为了将原来linux下用的顺手的indent移到freebsd下用，要设下.indent.pro 原来用-nut -st -orig，其中
The style of the original Berkeley indent may be obtained by specifying `-orig?(or by specifying `&#8211;original? using the long option name). This style is equivalent to the following settings: -nbad -nbap -bbo -bc -br -brs -c33 -cd33 -cdb -ce -ci4 -cli0 -cp33 -di16 -fc1 -fca -hnl -i4 -ip4 -l75 -lp -npcs -nprs [...]]]></description>
			<content:encoded><![CDATA[<p>为了将原来linux下用的顺手的indent移到freebsd下用，要设下.indent.pro <br/>原来用-nut -st -orig，其中</p>
<blockquote><p>The style of the original Berkeley indent may be obtained by specifying `-orig?(or by specifying `&#8211;original? using the long option name). This style is equivalent to the following settings: <br/>-nbad -nbap -bbo -bc -br -brs -c33 -cd33 -cdb -ce -ci4 -cli0 <br/>-cp33 -di16 -fc1 -fca -hnl -i4 -ip4 -l75 -lp -npcs -nprs -psl <br/>-saf -sai -saw -sc -nsob -nss -ts8</p>
</blockquote>
<p>由于freebsd下的indent与linux的有些不同，并不是所有选项都能对应的上，有些不是很要紧的就去掉了。.indent.pro的内容</p>
<blockquote><p>-nbad <br/>-nbap <br/>-nbbb <br/>-nbc <br/>-br <br/>-c33 <br/>-cd33 <br/>-cdb <br/>-ce <br/>-ci4 <br/>-cli0 <br/>-di16 <br/>-ndj <br/>-ei <br/>-fbs <br/>-fc1 <br/>-fcb <br/>-i4 <br/>-ip <br/>-l78 <br/>-lp <br/>-npcs <br/>-psl <br/>-sc <br/>-nsob <br/>-st <br/>-nut <br/>-nv <br/></p>
</blockquote>
<p>做个备忘</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/12/feed</wfw:commentRss>
		</item>
		<item>
		<title>在vim里搞定indent</title>
		<link>http://blog.bbpet.org/archives/11</link>
		<comments>http://blog.bbpet.org/archives/11#comments</comments>
		<pubDate>Wed, 09 Jul 2008 16:46:50 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[vim indent]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/11</guid>
		<description><![CDATA[在linux下用indent和vim配合得很好，每次摁下=就轻松把代码给格式化了
map = ggVG:!indent -nut -st -orig 2&#62;/dev/null&#60;CR&#62;G

没想到在freebsd下不好使了，真晕，man之，fb下的indent
SYNOPSIS indent [input-file [output-file]] [-bad &#124; -nbad] [-bap &#124; -nbap] [-bbb &#124; -nbbb] [-bc &#124; -nbc] [-bl] [-br] [-cn] [-cdn] [-cdb &#124; -ncdb] [-ce &#124; -nce] [-cin] [-clin] [-dn] [-din] [-fbs &#124; -nfbs] [-fc1 &#124; -nfc1] [-fcb &#124; -nfcb] [-in] [-ip &#124; -nip] [-ln] [-lcn] [-ldin] [-lp &#124; -nlp] [...]]]></description>
			<content:encoded><![CDATA[<p>在linux下用indent和vim配合得很好，每次摁下=就轻松把代码给格式化了</p>
<blockquote><p>map = ggVG:!indent -nut -st -orig 2&gt;/dev/null&lt;CR&gt;G</p>
</blockquote>
<p>没想到在freebsd下不好使了，真晕，man之，fb下的indent</p>
<blockquote><p>SYNOPSIS <br/>indent [input-file [output-file]] [-bad | -nbad] [-bap | -nbap] <br/>[-bbb | -nbbb] [-bc | -nbc] [-bl] [-br] [-cn] [-cdn] <br/>[-cdb | -ncdb] [-ce | -nce] [-cin] [-clin] [-dn] [-din] <br/>[-fbs | -nfbs] [-fc1 | -nfc1] [-fcb | -nfcb] [-in] [-ip | -nip] <br/>[-ln] [-lcn] [-ldin] [-lp | -nlp] [-npro] [-pcs | -npcs] <br/>[-psl | -npsl] [-sc | -nsc] [-sob | -nsob] [-st] [-troff] <br/>[-ut | -nut] [-v | -nv]</p>
</blockquote>
<p>与linux下的</p>
<blockquote><p>SYNOPSIS <br/>indent [options] [input-files] <br/>indent [options] [single-input-file] [-o output-file]</p>
</blockquote>
<p>居然不一样，而且很衰的，fb下的选项都在后边，比较难组织有效的单行命令，貌似用-代替标准输入也不行；</p>
<p>有人建议用indent %取巧，但这样就要e!重新载入，而且不利于indent出错时recover回去~~~ <br/>这种时候，只好出绝招了，把选项统统地写.indent.pro里去，再ggVG:!indent&lt;CR&gt;G <br/>大功告成，亲个嘴儿，顺便腹诽下这俩os的base怎么老有些不同的地方~</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/11/feed</wfw:commentRss>
		</item>
		<item>
		<title>总算知道cp936是啥意思了</title>
		<link>http://blog.bbpet.org/archives/8</link>
		<comments>http://blog.bbpet.org/archives/8#comments</comments>
		<pubDate>Thu, 03 Jul 2008 15:56:47 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[cp936]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/8</guid>
		<description><![CDATA[常在设置编码的时候看到cp936，譬如samba里就有，见过有人说是GB2312，又有说GBK的，今天查字库时意外的看到了。 原来cp936指的是系统的936号编码格式，code page 936~~ 
微软在它出品的Windows 98中，采用了GBK编码，而在系统内称为cp936字码表。 根据西方资料，GBK最初是由微软对GB2312的扩展，也就是cp936，最初出现于Windows 95简体中文版中，由于Windows产品的流行在大陆广泛使用，国家有关部门将其作为技术规范。

感觉这个有关部门跟搞麒麟os的一样，拉了个别人的东西过来凑数~
]]></description>
			<content:encoded><![CDATA[<p>常在设置编码的时候看到cp936，譬如samba里就有，见过有人说是GB2312，又有说GBK的，今天查<a href="http://baike.baidu.com/view/1127103.htm">字库</a>时意外的看到了。 <br/>原来cp936指的是系统的936号编码格式，code page 936~~ <br/></p>
<blockquote><p>微软在它出品的Windows 98中，采用了GBK编码，而在系统内称为cp936字码表。 <br/>根据西方资料，GBK最初是由微软对GB2312的扩展，也就是cp936，最初出现于Windows 95简体中文版中，由于Windows产品的流行在大陆广泛使用，国家有关部门将其作为技术规范。</p>
</blockquote>
<p><br/>感觉这个有关部门跟搞麒麟os的一样，拉了个别人的东西过来凑数~</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/8/feed</wfw:commentRss>
		</item>
		<item>
		<title>给screen打广告</title>
		<link>http://blog.bbpet.org/archives/7</link>
		<comments>http://blog.bbpet.org/archives/7#comments</comments>
		<pubDate>Thu, 26 Jun 2008 15:51:11 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/7</guid>
		<description><![CDATA[在console下，screen是个相当的好用的工具啊，可惜广告少，不太出名~ screen的窗口管理功能貌似极其强大，支持detach/reattach，忽略SIGHUP信号；可以在运行些耗时长的程序时退出终端，去wc便便3个小时回来后，再联上终端看结果。这样就可以彻底无视nohup的存在了，反正有些人也不晓得nohup是起什么作用的，啥时候该加&#38;，或为什么该加&#38;，囧 不过我也只是贪图screen可以在console下做copy/paste，牛刀小用了（太上老君的青牛杀得悟空哇哇叫，平时也只是用来骑或看门）；screen还支持滚屏，支持不同的语言编码，不过似乎就eucCN, Big5, GBK, UTF-8几个比较常用；自从ports了它，scr2txt/scr2png就彻底从俺机器上消失鸟…… 备忘~ 
C-a ? (help) Show key bindings. C-a [ C-a C-[ C-a esc (copy) Enter copy/scrollback mode. C-a ] (paste .) Write the contents of the paste buffer to the stdin queue of the current window. C-a C-\ (quit) Kill all windows and terminate screen.

好东西来的，强烈建议常在console下干活的兄弟试试看！！！
]]></description>
			<content:encoded><![CDATA[<p>在console下，<a href="http://www.gnu.org/software/screen/">screen</a>是个相当的好用的工具啊，可惜广告少，不太出名~ <br/>screen的窗口管理功能貌似极其强大，支持detach/reattach，忽略SIGHUP信号；可以在运行些耗时长的程序时退出终端，去wc便便3个小时回来后，再联上终端看结果。这样就可以彻底无视nohup的存在了，反正有些人也不晓得nohup是起什么作用的，啥时候该加&amp;，或为什么该加&amp;，囧 <br/>不过我也只是贪图screen可以在console下做copy/paste，牛刀小用了（太上老君的青牛杀得悟空哇哇叫，平时也只是用来骑或看门）；screen还支持滚屏，支持不同的语言编码，不过似乎就eucCN, Big5, GBK, UTF-8几个比较常用；自从ports了它，scr2txt/scr2png就彻底从俺机器上消失鸟…… <br/>备忘~ <br/></p>
<blockquote><p>C-a ? (help) Show key bindings. <br/>C-a [ <br/>C-a C-[ <br/>C-a esc (copy) Enter copy/scrollback mode. <br/>C-a ] (paste .) Write the contents of the paste buffer to the stdin queue of the current window. <br/>C-a C-\ (quit) Kill all windows and terminate screen.</p>
</blockquote>
<p>好东西来的，强烈建议常在console下干活的兄弟试试看！！！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/7/feed</wfw:commentRss>
		</item>
		<item>
		<title>通过w3c认证</title>
		<link>http://blog.bbpet.org/archives/6</link>
		<comments>http://blog.bbpet.org/archives/6#comments</comments>
		<pubDate>Sat, 21 Jun 2008 19:49:31 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/6</guid>
		<description><![CDATA[改了好些地方，终于通过w3c认证，恭喜自己一把~

]]></description>
			<content:encoded><![CDATA[<p>改了好些地方，终于通过w3c认证，恭喜自己一把~</p>
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" style="DISPLAY: inline" alt="Valid XHTML 1.0 Transitional"/></a><a href="http://jigsaw.w3.org/css-validator/"><img src="http://jigsaw.w3.org/css-validator/images/vcss" style="DISPLAY: inline" alt="Valid CSS!"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/6/feed</wfw:commentRss>
		</item>
		<item>
		<title>给Firefox 3装插件</title>
		<link>http://blog.bbpet.org/archives/5</link>
		<comments>http://blog.bbpet.org/archives/5#comments</comments>
		<pubDate>Sat, 21 Jun 2008 16:26:07 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[Firefox add-ons]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/5</guid>
		<description><![CDATA[装了Firefox 3之后裸奔是很无趣的事情，不管怎样，都得装几个插件才趁手。 adblock，dta，flash player，unmht（或者maf）那是一定要的啦，其它的倒没啥特别的要求，只不过各插件的维护者不见得很勤快，有些几百年都没更新过，而又有maxVersion标签作限制，小白们装不上，可能会重回ie阵营；这设计还小小影响了Firefox的推广…… 我装那几个插件，adobe要运行安装程序，unmht和dta都装得很顺利，只有adblock由于是对应2.x要特别处理一下。 对于这种对应低版本Firefox的情况，网上充斥着各种各样的解决方法，大体思路就是关闭或蒙骗Extension Compatibility Check，这有个比较简单的做法，只不过我从没尝试过，不知道能用否。俺碰到add-ons对应的版本太低一般都是手改xpi中install.rdf，到现在还没出过问题，算rp不错的~ 另偷赞一把谷歌金山词霸，出货及时~~ 
更新日志： 2008.05.20 新增功能： 1. 支持 Firefox 3 取词。

装adblock时倒是被Firefox add-ons给逗笑，它竟然还自行检查一下browser是否符合要求，不符合的自作主张不给下载

令人十分无语，正常的逻辑应该在安装时检查，而不是在浏览时越俎代庖~ 那像我们这种懒人就只好用ie先把xpi下到本地，修改了再装。更搞笑的是装上之后它神志不清居然又变成可用的了

果然自欺欺人，囧…… 
]]></description>
			<content:encoded><![CDATA[<p>装了Firefox 3之后裸奔是很无趣的事情，不管怎样，都得装几个插件才趁手。 <br/>adblock，dta，flash player，unmht（或者maf）那是一定要的啦，其它的倒没啥特别的要求，只不过各插件的维护者不见得很勤快，有些几百年都没更新过，而又有maxVersion标签作限制，小白们装不上，可能会重回ie阵营；这设计还小小影响了Firefox的推广…… <br/>我装那几个插件，adobe要运行安装程序，unmht和dta都装得很顺利，只有adblock由于是对应2.x要特别处理一下。 <br/>对于这种对应低版本Firefox的情况，网上充斥着各种各样的解决方法，大体思路就是关闭或蒙骗Extension Compatibility Check，<a href="http://just-thinkin.net/2008/02/firefox-3-beta-3-disabling-extension-compatibility-check">这有个比较简单的做法</a>，只不过我从没尝试过，不知道能用否。俺碰到add-ons对应的版本太低一般都是手改xpi中install.rdf，到现在还没出过问题，算rp不错的~ <br/>另偷赞一把谷歌金山词霸，出货及时~~ <br/></p>
<blockquote><p>更新日志： <br/>2008.05.20 <br/>新增功能： <br/>1. 支持 Firefox 3 取词。</p>
</blockquote>
<p>装adblock时倒是被<a href="https://addons.mozilla.org/en-US/firefox">Firefox add-ons</a>给逗笑，它竟然还自行检查一下browser是否符合要求，不符合的自作主张不给下载</p>
<p><img src="http://blog.bbpet.org/wp-content/uploads/2008/06/unable.jpg" style="DISPLAY: inline" alt="add-ons unusable"/></p>
<p>令人十分无语，正常的逻辑应该在安装时检查，而不是在浏览时越俎代庖~ <br/>那像我们这种懒人就只好用ie先把xpi下到本地，修改了再装。更搞笑的是装上之后它神志不清居然又变成可用的了</p>
<p><img src="http://blog.bbpet.org/wp-content/uploads/2008/06/able.jpg" style="DISPLAY: inline" alt="add-ons usable"/></p>
<p>果然自欺欺人，囧…… <br/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/5/feed</wfw:commentRss>
		</item>
		<item>
		<title>Firefox 3 available today at 1700 UTC (10am PDT)</title>
		<link>http://blog.bbpet.org/archives/4</link>
		<comments>http://blog.bbpet.org/archives/4#comments</comments>
		<pubDate>Sat, 21 Jun 2008 16:21:58 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/4</guid>
		<description><![CDATA[http://developer.mozilla.org/devnews/index.php/2008/06/17/firefox-3-available-today-at-1700-utc-10am-pdt/ 嘿嘿嘿嘿哈哈哈哈，等了这么久，总算是等到头了~~ http://www.spreadfirefox.com/en-US/worldrecord/ 二话不说，报名去鸟~ 哇嘎嘎嘎，仰天狂笑不已啊:-(
]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.mozilla.org/devnews/index.php/2008/06/17/firefox-3-available-today-at-1700-utc-10am-pdt/">http://developer.mozilla.org/devnews/index.php/2008/06/17/firefox-3-available-today-at-1700-utc-10am-pdt/</a> <br/>嘿嘿嘿嘿哈哈哈哈，等了这么久，总算是等到头了~~ <br/><a href="http://www.spreadfirefox.com/en-US/worldrecord/">http://www.spreadfirefox.com/en-US/worldrecord/</a> <br/>二话不说，报名去鸟~ <br/>哇嘎嘎嘎，仰天狂笑不已啊:-(</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/4/feed</wfw:commentRss>
		</item>
		<item>
		<title>ie8 beta，初体验</title>
		<link>http://blog.bbpet.org/archives/3</link>
		<comments>http://blog.bbpet.org/archives/3#comments</comments>
		<pubDate>Sat, 21 Jun 2008 16:19:47 +0000</pubDate>
		<dc:creator>bbpet</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[ie8 Firefox css3 acid2 acid3]]></category>

		<guid isPermaLink="false">http://blog.bbpet.org/archives/3</guid>
		<description><![CDATA[六月十六，丁亥日，宜沐浴取渔，余事勿取 -。-！ 心血来潮，抢在Firefox 3发布的前一天装了个ie8 beta看看效果，装上之后直接被雷倒，竟然还有个模仿ie7的按钮，本来就是想体验下ie8的，结果它还要模仿回去，莫非我没用过ie7都被ms知道了？ 不知道是我没装好还是ie8本身的问题，mop的登陆界面上的文本框不能选中，更别谈输入了，初步善意的怀疑是损坏了mshtmled.dll（真离谱）；至于chinaren校友录就更别想进入了，输入框在哪都看不到，囧rz 测下ie8，先测css3，得到这么个结果 
From the 43 selectors 14 have passed, 4 are buggy and 25 are unsupported (Passed 335 out of 578 tests)

而Firefox 3是这个
From the 43 selectors 36 have passed, 0 are buggy and 7 are unsupported (Passed 373 out of 578 tests) 

测acid2倒是都支持的不错，起码小脸蛋是能看到了~ 而acid3的测试让我差点抓狂，ie8直接来了个fail，10-18/100，Firefox 3是71/100 无语，幸好明天Firefox 3就正式release了~
]]></description>
			<content:encoded><![CDATA[<p>六月十六，丁亥日，宜沐浴取渔，余事勿取 -。-！ <br/>心血来潮，抢在Firefox 3发布的前一天装了个ie8 beta看看效果，装上之后直接被雷倒，竟然还有个模仿ie7的按钮，本来就是想体验下ie8的，结果它还要模仿回去，莫非我没用过ie7都被ms知道了？ <br/>不知道是我没装好还是ie8本身的问题，mop的登陆界面上的文本框不能选中，更别谈输入了，初步善意的怀疑是损坏了mshtmled.dll（真离谱）；至于chinaren校友录就更别想进入了，输入框在哪都看不到，囧rz <br/>测下ie8，先测<a href="http://www.css3.info/selectors-test/test.html">css3</a>，得到这么个结果 <br/></p>
<blockquote><p>From the 43 selectors 14 have passed, 4 are buggy and 25 are unsupported (Passed 335 out of 578 tests)</p>
</blockquote>
<p>而Firefox 3是这个</p>
<blockquote><p>From the 43 selectors 36 have passed, 0 are buggy and 7 are unsupported (Passed 373 out of 578 tests) <br/></p>
</blockquote>
<p>测<a href="http://www.webstandards.org/files/acid2/test.html">acid2</a>倒是都支持的不错，起码小脸蛋是能看到了~ <br/>而<a href="http://acid3.acidtests.org/">acid3</a>的测试让我差点抓狂，ie8直接来了个fail，10-18/100，Firefox 3是71/100 <br/>无语，幸好明天Firefox 3就正式<a href="http://developer.mozilla.org/devnews/index.php/2008/06/11/coming-tuesday-june-17th-firefox-3/">release</a>了~</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bbpet.org/archives/3/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
