<?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>便便代码人生</title>
	<atom:link href="http://bianbian.org/feed" rel="self" type="application/rss+xml" />
	<link>http://bianbian.org</link>
	<description>关注技术, 偶尔动动手</description>
	<lastBuildDate>Fri, 27 Apr 2012 15:48:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>[原] 总算实现SWFUpload和easyui的DataGrid整合了</title>
		<link>http://bianbian.org/technology/javascript/424.html</link>
		<comments>http://bianbian.org/technology/javascript/424.html#comments</comments>
		<pubDate>Sat, 24 Dec 2011 15:25:19 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[easyui]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[swfupload]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=424</guid>
		<description><![CDATA[不好意思，最近又忙又懒。拖了很久，总算差不多完成了： &#169;2012 便便代码人生. All Rights Reserved.. 标签: easyui, jQuery, swfupload遵守创作共用协议，转载请链接形式注明来自http://bianbian.org 做人要... ]]></description>
			<content:encoded><![CDATA[<p>不好意思，最近又忙又懒。拖了很久，总算差不多完成了：<br />
<a href="http://bianbian.org/wp-content/uploads/2011/12/未命名.jpg"><img src="http://bianbian.org/wp-content/uploads/2011/12/未命名.jpg" alt="" title="未命名" width="620" height="342" class="alignnone size-full wp-image-425" /></a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/easyui" title="easyui" rel="tag">easyui</a>, <a href="http://bianbian.org/tag/jquery" title="jQuery" rel="tag">jQuery</a>, <a href="http://bianbian.org/tag/swfupload" title="swfupload" rel="tag">swfupload</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/349.html" title="[原] 基于jQuery的自动TAB选项卡实现 (2009-07-24)">[原] 基于jQuery的自动TAB选项卡实现</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/360.html" title="[原] jquery-easyui的combotree在.net开发中不显示数据的问题 (2010-08-29)">[原] jquery-easyui的combotree在.net开发中不显示数据的问题</a> (2)</li>
	<li><a href="http://bianbian.org/technology/javascript/414.html" title="[原] 基本实现swfupload和easyui的结合 (2011-08-05)">[原] 基本实现swfupload和easyui的结合</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/394.html" title="[原] 建了一个google code项目：jquery myhint plugin (2011-01-16)">[原] 建了一个google code项目：jquery myhint plugin</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/424.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] Powerpoint(PPT) 2003和2007添加http开头的图片的问题解决</title>
		<link>http://bianbian.org/technology/417.html</link>
		<comments>http://bianbian.org/technology/417.html#comments</comments>
		<pubDate>Thu, 11 Aug 2011 08:50:14 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[AddPicture]]></category>
		<category><![CDATA[PowerPoint]]></category>
		<category><![CDATA[PPT]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=417</guid>
		<description><![CDATA[powerpoint 2003 直接 “AddPicture (http://” 可行，如： string pic = &#34;http://bianbian.org/example.gif&#34;; _Slide.Shapes.AddPicture(pic, MsoTriState.msoFalse, MsoTriState.msoTrue, &#160;&#160; &#160;0, 0, _Pres.PageSetup.SlideWidth, _Pres.P... ]]></description>
			<content:encoded><![CDATA[<p>powerpoint 2003 直接 “AddPicture (http://” 可行，如：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">string pic = &quot;http://bianbian.org/example.gif&quot;;</li>
<li>_Slide.Shapes.AddPicture(pic, MsoTriState.msoFalse, MsoTriState.msoTrue,</li>
<li>&nbsp;&nbsp; &nbsp;0, 0, _Pres.PageSetup.SlideWidth, _Pres.PageSetup.SlideHeight);</li></ol></div>
<p>但在ppt 2007中，无法通过AddPicture添加http开头的图片，必须先AddShape，然后Fill：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">PPT.Shape shape = _Slide.Shapes.AddShape(MsoAutoShapeType.msoShapeRectangle,</li>
<li>&nbsp;&nbsp; &nbsp;0, 0, _Pres.PageSetup.SlideWidth, _Pres.PageSetup.SlideHeight);</li>
<li>shape.Fill.UserPicture(pic);</li></ol></div>
<p>详见：http://support.microsoft.com/kb/928983/en-us</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/addpicture" title="AddPicture" rel="tag">AddPicture</a>, <a href="http://bianbian.org/tag/c" title="C#" rel="tag">C#</a>, <a href="http://bianbian.org/tag/powerpoint" title="PowerPoint" rel="tag">PowerPoint</a>, <a href="http://bianbian.org/tag/ppt" title="PPT" rel="tag">PPT</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/361.html" title="[原] 一种将数据表DataTable转为JSON格式的新方法 (2010-09-23)">[原] 一种将数据表DataTable转为JSON格式的新方法</a> (11)</li>
	<li><a href="http://bianbian.org/technology/332.html" title="[原] C# 3.0的委托(delegate)及Lambda表达式应用实例 (2009-03-02)">[原] C# 3.0的委托(delegate)及Lambda表达式应用实例</a> (1)</li>
	<li><a href="http://bianbian.org/not-it/meteorology/352.html" title="[原] 自动生成天气会商PPT了 (2010-02-21)">[原] 自动生成天气会商PPT了</a> (0)</li>
	<li><a href="http://bianbian.org/technology/c/356.html" title="[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题 (2010-04-16)">[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/417.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 基本实现swfupload和easyui的结合</title>
		<link>http://bianbian.org/technology/javascript/414.html</link>
		<comments>http://bianbian.org/technology/javascript/414.html#comments</comments>
		<pubDate>Fri, 05 Aug 2011 08:36:42 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[easyui]]></category>
		<category><![CDATA[swfupload]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=414</guid>
		<description><![CDATA[不得不说，前台全用js来做还是很累的。上图一张（半成品）： &#169;2012 便便代码人生. All Rights Reserved.. 标签: easyui, swfupload遵守创作共用协议，转载请链接形式注明来自http://bianbian.org 做人要厚... ]]></description>
			<content:encoded><![CDATA[<p>不得不说，前台全用js来做还是很累的。上图一张（半成品）：<br />
<a href="http://bianbian.org/wp-content/uploads/2011/08/training.png"><img src="http://bianbian.org/wp-content/uploads/2011/08/training.png" alt="" title="training" width="868" height="512" class="alignnone size-full wp-image-415" /></a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/easyui" title="easyui" rel="tag">easyui</a>, <a href="http://bianbian.org/tag/swfupload" title="swfupload" rel="tag">swfupload</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/424.html" title="[原] 总算实现SWFUpload和easyui的DataGrid整合了 (2011-12-24)">[原] 总算实现SWFUpload和easyui的DataGrid整合了</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/360.html" title="[原] jquery-easyui的combotree在.net开发中不显示数据的问题 (2010-08-29)">[原] jquery-easyui的combotree在.net开发中不显示数据的问题</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/414.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] Linq不能使用CLR Stored Procedure返回ISingleResult</title>
		<link>http://bianbian.org/technology/411.html</link>
		<comments>http://bianbian.org/technology/411.html#comments</comments>
		<pubDate>Wed, 27 Jul 2011 04:53:07 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[存储过程]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=411</guid>
		<description><![CDATA[使用C#写CLR存储过程确实很方便。 不过遗憾的是，如果CLR里通过SqlContext.Pipe.Send()返回Select结果的话，并不能被Linq to SQL自动识别而返回ISingleResult的。（因为部署CLR存储过程实际产生的代码是不... ]]></description>
			<content:encoded><![CDATA[<p>使用C#写CLR存储过程确实很方便。<br />
不过遗憾的是，如果CLR里通过SqlContext.Pipe.Send()返回Select结果的话，并不能被Linq to SQL自动识别而返回ISingleResult的。（因为部署CLR存储过程实际产生的代码是不包含select语句的）<br />
换句话说，所有CLR存储过程的返回值在Linq to SQL里都会被当成int。<br />
解决办法：<br />
1）如果该存储过程没有out的参数，比较好办：使用ExecuteQuery<T>并EXEC 存储过程<br />
如：<br />
var query = DataContext.ExecuteQuery<Entity>(&#8220;EXEC P_LoadUserWithTraining @trainingId={0}&#8221;, id).Single();<br />
这种方法能取到结果，但是没有办法获得out参数。</p>
<p>2）如果该存储过程又有out的参数需要获得值，又返回select结果集的：<br />
非常麻烦，只能部署CLR存储过程前，先手动在数据库里create procedure（同名，里面填上参数和select语句），<br />
然后骗取Linq to SQL生成返回ISingleResult的代码，然后drop procedure，再部署CLR存储过程。<br />
否则，即使把返回int的代码手动改成返回ISingleResult的，也会报错。我这里一直报 ArgumentOutOfRangeException<br />
所以针对这种存储过程，最好还是T-SQL语句写。CLR的反而好麻烦。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/clr" title="CLR" rel="tag">CLR</a>, <a href="http://bianbian.org/tag/linq" title="Linq" rel="tag">Linq</a>, <a href="http://bianbian.org/tag/%e5%ad%98%e5%82%a8%e8%bf%87%e7%a8%8b" title="存储过程" rel="tag">存储过程</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/52.html" title="[原]用PL/pgSQL写postgreSQL的存储过程 (2006-10-27)">[原]用PL/pgSQL写postgreSQL的存储过程</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/411.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] /libtool: line xxx: X&#8211;tag=CC: command not found的问题解决</title>
		<link>http://bianbian.org/technology/linux/408.html</link>
		<comments>http://bianbian.org/technology/linux/408.html#comments</comments>
		<pubDate>Wed, 06 Apr 2011 13:52:33 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[libtool]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=408</guid>
		<description><![CDATA[今天编译rsl，是在一台完全空白的ubuntu上（对，完全空白，连gcc也没有）。 apt-get install gcc autoconf automake libtool 略过不表。 make的时候，一直提示如下错误： /libtool: line 646: X&#8211;tag=CC: command not ... ]]></description>
			<content:encoded><![CDATA[<p>今天编译rsl，是在一台完全空白的ubuntu上（对，完全空白，连gcc也没有）。<br />
apt-get install gcc autoconf automake libtool<br />
略过不表。<br />
make的时候，一直提示如下错误：<br />
/libtool: line 646: X&#8211;tag=CC: command not found<br />
&#8230;<br />
google了半天，终于找到这个：</p>
<p>http://processors.wiki.ti.com/index.php/DMAI_GStreamer_Plug-In_Getting_Started_Guide</p>
<p>../libtool: line 763: X&#8211;tag=CC: command not found<br />
The libtool on your host computer is causing the problem (using $(echo) when it is not defined). Either install an older libtool version (1.5.26) or define the echo environment variable. </p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">export echo=echo</li></ol></div>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/libtool" title="libtool" rel="tag">libtool</a>, <a href="http://bianbian.org/tag/linux" title="Linux" rel="tag">Linux</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/211.html" title="[原]第一次完整地编译了Linux内核 (2007-09-17)">[原]第一次完整地编译了Linux内核</a> (1)</li>
	<li><a href="http://bianbian.org/technology/212.html" title="[原]Linux下的c/c++ GDB调试 (2007-09-18)">[原]Linux下的c/c++ GDB调试</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/linux/408.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>[原] 手擀寿面祝妈妈生日快乐</title>
		<link>http://bianbian.org/not-it/bianbian-xuxu/402.html</link>
		<comments>http://bianbian.org/not-it/bianbian-xuxu/402.html#comments</comments>
		<pubDate>Wed, 23 Mar 2011 03:37:44 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[手擀面]]></category>
		<category><![CDATA[生日]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=402</guid>
		<description><![CDATA[发信人: Net (@便便嘘嘘), 信区: FOOD 标 题: [转载] 祝妈妈生日快乐 发信站: 南京大学小百合站 (Tue Mar 22 22:56:40 2011) 今天是老妈60岁生日。 我早上6点起来给她做她最喜欢吃的手工面。 我很小的时... ]]></description>
			<content:encoded><![CDATA[<p>发信人: Net (@便便嘘嘘), 信区: FOOD<br />
标  题: [转载] 祝妈妈生日快乐<br />
发信站: 南京大学小百合站 (Tue Mar 22 22:56:40 2011)</p>
<p>今天是老妈60岁生日。<br />
我早上6点起来给她做她最喜欢吃的手工面。<br />
我很小的时候（高中？）看过她做，有个朦胧的印象。<br />
这么多年不近灶台，其实心里是没有多少底的。</p>
<p>和面： 这张已经成形，前面粉状过程可惜忘拍了。<br />
<img src="http://bbs.nju.edu.cn/file/N/Net/2011-03-22-06.47.47.jpg"/></p>
<p>打薄： 砧板太小，秘籍可以折起来打<br />
<img src="http://bbs.nju.edu.cn/file/N/Net/2011-03-22-06.52.37.jpg"/><br />
<img src="http://bbs.nju.edu.cn/file/N/Net/2011-03-22-07.09.39.jpg"/></p>
<p>切丝：<br />
<img src="http://bbs.nju.edu.cn/file/N/Net/2011-03-22-07.16.24.jpg"/></p>
<p>成品：<br />
<img src="http://bbs.nju.edu.cn/file/N/Net/2011-03-22-07.21.11.jpg"/></p>
<p>完工：<br />
<img src="http://bbs.nju.edu.cn/file/N/Net/2011-03-22-07.32.54.jpg"/></p>
<p>妈妈今天非常高兴。<br />
祝妈妈健康长寿，天天开心！<br />
<a href="http://bbs.nju.edu.cn/bbstcon?board=FOOD&#038;file=M.1300805800.A" target="_blank">http://bbs.nju.edu.cn/bbstcon?board=FOOD&#038;file=M.1300805800.A</a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e6%89%8b%e6%93%80%e9%9d%a2" title="手擀面" rel="tag">手擀面</a>, <a href="http://bianbian.org/tag/%e7%94%9f%e6%97%a5" title="生日" rel="tag">生日</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/240.html" title="[哎] 这个生日在装系统中度过 (2007-12-30)">[哎] 这个生日在装系统中度过</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/bianbian-xuxu/402.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[原] 建了一个google code项目：jquery myhint plugin</title>
		<link>http://bianbian.org/technology/javascript/394.html</link>
		<comments>http://bianbian.org/technology/javascript/394.html#comments</comments>
		<pubDate>Sat, 15 Jan 2011 16:24:19 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=394</guid>
		<description><![CDATA[在这里：http://code.google.com/p/jquery-myhint-plugin/ easy to use myhint plugin: &#60;script src=&#34;jquery.myhint.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; &#60;link&#160;href=&#34;jquery.myhint.css&#34; type=&#34;text/css&#... ]]></description>
			<content:encoded><![CDATA[<p>在这里：<a href="http://code.google.com/p/jquery-myhint-plugin/" target="_blank">http://code.google.com/p/jquery-myhint-plugin/</a></p>
<p>easy to use myhint plugin: </p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">script</span><span style="color: Gray;"> </span><span style="color: #00008b;">src</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">jquery.myhint.min.js</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/javascript</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">jquery.myhint.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">...</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">tag</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">_hint</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">hint</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">...</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">tag</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">tag</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">_hint</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">hint</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">(left,top)text</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">...</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">tag</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">tag</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">_hint</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">hint</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#tipid</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">...</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">tag</span><span style="color: Olive;">&gt;&lt;</span><span style="color: Green;">div</span><span style="color: Gray;"> </span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">tipid</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">text</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">tag</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">_hint</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">hint</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">(left,top)#tipid</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">...</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">tag</span><span style="color: Olive;">&gt;&lt;</span><span style="color: Green;">div</span><span style="color: Gray;"> </span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">tipid</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">text</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p>效果：<br />
<img src="/wp-content/uploads/2011/01/screenshot.png"/></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/google" title="google" rel="tag">google</a>, <a href="http://bianbian.org/tag/jquery" title="jQuery" rel="tag">jQuery</a>, <a href="http://bianbian.org/tag/plugin" title="plugin" rel="tag">plugin</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/424.html" title="[原] 总算实现SWFUpload和easyui的DataGrid整合了 (2011-12-24)">[原] 总算实现SWFUpload和easyui的DataGrid整合了</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/349.html" title="[原] 基于jQuery的自动TAB选项卡实现 (2009-07-24)">[原] 基于jQuery的自动TAB选项卡实现</a> (0)</li>
	<li><a href="http://bianbian.org/technology/307.html" title="[原] gmail真是太强悍了！！！ (2008-05-16)">[原] gmail真是太强悍了！！！</a> (4)</li>
	<li><a href="http://bianbian.org/technology/javascript/360.html" title="[原] jquery-easyui的combotree在.net开发中不显示数据的问题 (2010-08-29)">[原] jquery-easyui的combotree在.net开发中不显示数据的问题</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/394.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 找找我在哪</title>
		<link>http://bianbian.org/not-it/meteorology/388.html</link>
		<comments>http://bianbian.org/not-it/meteorology/388.html#comments</comments>
		<pubDate>Thu, 23 Dec 2010 16:37:49 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[交流]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=388</guid>
		<description><![CDATA[IMSG Trains Chinese Air Traffic Bureau Officials &#169;2012 便便代码人生. All Rights Reserved.. 标签: 交流遵守创作共用协议，转载请链接形式注明来自http://bianbian.org 做人要厚道 相关日志 [原] 珠三角航空气象... ]]></description>
			<content:encoded><![CDATA[<p> <img src='http://bianbian.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://www.imsg.com/index.php/news-events/imsg-trains-chinese-air-traffic-bureau-officials/" target="_blank">IMSG Trains Chinese Air Traffic Bureau Officials</a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e4%ba%a4%e6%b5%81" title="交流" rel="tag">交流</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/meteorology/355.html" title="[原] 珠三角航空气象工作小组第二次会议 (2010-03-18)">[原] 珠三角航空气象工作小组第二次会议</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/meteorology/351.html" title="[原] 向香港天文台好好学习 (2010-02-08)">[原] 向香港天文台好好学习</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/meteorology/388.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 搞定ArcGis的切片原理和离线服务</title>
		<link>http://bianbian.org/technology/373.html</link>
		<comments>http://bianbian.org/technology/373.html#comments</comments>
		<pubDate>Fri, 03 Dec 2010 16:00:45 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[arcgis]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[切片]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=373</guid>
		<description><![CDATA[搞定ArcGis的切片原理和离线服务，需要继承TiledMapServiceLayer 另外完善了下午写的程序，批量下载ArcGis的切片或从Service上抓切片 另外晚上写了个程序，自动根据REST服务生成新的TiledMapServiceLayer ... ]]></description>
			<content:encoded><![CDATA[<p>搞定ArcGis的切片原理和离线服务，需要继承TiledMapServiceLayer<br />
另外完善了下午写的程序，批量下载ArcGis的切片或从Service上抓切片<br />
另外晚上写了个程序，自动根据REST服务生成新的TiledMapServiceLayer<br />
哈哈，现在从无开始部署一个离线的Flex ArcGis平台非常方便。。。。<br />
<img src="http://bianbian.org/wp-content/uploads/2010/12/arcgis.gif" alt="" title="arcgis" width="533" height="353" class="alignnone size-full wp-image-374" /><br />
<img src="http://bianbian.org/wp-content/uploads/2010/12/arcgis_rest.gif" alt="" title="arcgis_rest" width="566" height="497" class="alignnone size-full wp-image-375" /></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/arcgis" title="arcgis" rel="tag">arcgis</a>, <a href="http://bianbian.org/tag/flex" title="flex" rel="tag">flex</a>, <a href="http://bianbian.org/tag/%e5%88%87%e7%89%87" title="切片" rel="tag">切片</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/358.html" title="[原] Flex的全屏模式 (2010-05-08)">[原] Flex的全屏模式</a> (0)</li>
	<li><a href="http://bianbian.org/technology/364.html" title="[原] 在协同决策系统内实现基于Flex+ArcGIS的航班天气展示 (2010-12-02)">[原] 在协同决策系统内实现基于Flex+ArcGIS的航班天气展示</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/373.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 在协同决策系统内实现基于Flex+ArcGIS的航班天气展示</title>
		<link>http://bianbian.org/technology/364.html</link>
		<comments>http://bianbian.org/technology/364.html#comments</comments>
		<pubDate>Thu, 02 Dec 2010 01:13:49 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CDM]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://bianbian.org/?p=364</guid>
		<description><![CDATA[最近在忙这个，呵呵。 集成真实航班和天气数据： &#169;2012 便便代码人生. All Rights Reserved.. 标签: CDM, flex遵守创作共用协议，转载请链接形式注明来自http://bianbian.org 做人要厚道 相关日志 [原] F... ]]></description>
			<content:encoded><![CDATA[<p>最近在忙这个，呵呵。<br />
集成真实航班和天气数据：<br />
<img src="/wp-content/uploads/2010/12/weather.gif" alt="" title="CDM" class="alignnone" /></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/cdm" title="CDM" rel="tag">CDM</a>, <a href="http://bianbian.org/tag/flex" title="flex" rel="tag">flex</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/358.html" title="[原] Flex的全屏模式 (2010-05-08)">[原] Flex的全屏模式</a> (0)</li>
	<li><a href="http://bianbian.org/technology/373.html" title="[原] 搞定ArcGis的切片原理和离线服务 (2010-12-04)">[原] 搞定ArcGis的切片原理和离线服务</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/364.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 一种将数据表DataTable转为JSON格式的新方法</title>
		<link>http://bianbian.org/technology/javascript/361.html</link>
		<comments>http://bianbian.org/technology/javascript/361.html#comments</comments>
		<pubDate>Thu, 23 Sep 2010 07:17:37 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[DataTable]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/javascript/361.html</guid>
		<description><![CDATA[最近实现一种将数据表转为JSON表示的新方法。 这种方法表示的JSON数据更省空间（尤其是网络传输，能省很多数据量），使用起来也很方便。 假设有这样一张数据表： ID Name Location 1 周杰伦 香... ]]></description>
			<content:encoded><![CDATA[<p>最近实现一种将数据表转为JSON表示的新方法。<br />
这种方法表示的JSON数据更省空间（尤其是网络传输，能省很多数据量），使用起来也很方便。<br />
假设有这样一张数据表：</p>
<table width="200" border="1">
<tr>
<td>ID</td>
<td>Name</td>
<td>Location</td>
</tr>
<tr>
<td>1</td>
<td>周杰伦</td>
<td>香港</td>
</tr>
<tr>
<td>2</td>
<td>侯佩岑</td>
<td>台湾</td>
</tr>
<tr>
<td>3</td>
<td>张靓颖</td>
<td>大陆</td>
</tr>
</table>
<p>一般的JSON表示方法为：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">[</span></li>
<li><span style="color: Olive;">{</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">ID</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Maroon;">1</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Name</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">: </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">周杰伦</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Location</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">: </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">香港</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">}</span><span style="color: Gray;">,</span></li>
<li><span style="color: Olive;">{</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">ID</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Maroon;">2</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Name</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">: </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">侯佩岑</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Location</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">: </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">台湾</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">}</span><span style="color: Gray;">,</span></li>
<li><span style="color: Olive;">{</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">ID</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Maroon;">3</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Name</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">: </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">张靓颖</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Location</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">: </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">大陆</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">}</span></li>
<li><span style="color: Olive;">]</span></li></ol></div>
<p>可以看到，数据表的字段信息(column)在每条记录里都写了一遍，比较浪费空间。如果字段很多很长，甚至会比有效内容更多。随着记录数增加，浪费的数据量是很可观的。尤其像以前小百合BBS自己付流量费的时候，流量啊流量。。。。。。</p>
<p>我实现的表示方法产生的JSON格式是这样的：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">{</span></li>
<li><span style="color: #8b0000;">&quot;</span><span style="color: Red;">C</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Olive;">{</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">ID</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Maroon;">0</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Name</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Maroon;">1</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Location</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Maroon;">2</span><span style="color: Olive;">}</span><span style="color: Gray;">,</span></li>
<li><span style="color: #8b0000;">&quot;</span><span style="color: Red;">D</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">:</span><span style="color: Olive;">[</span></li>
<li><span style="color: Olive;">[</span><span style="color: Maroon;">1</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">周杰伦</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">香港</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">]</span><span style="color: Gray;">,</span></li>
<li><span style="color: Olive;">[</span><span style="color: Maroon;">2</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">侯佩岑</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">台湾</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">]</span><span style="color: Gray;">,</span></li>
<li><span style="color: Olive;">[</span><span style="color: Maroon;">3</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">张靓颖</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">大陆</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">]</span></li>
<li><span style="color: Olive;">]}</span></li></ol></div>
<p>这种方法将字段信息单独提取到C属性里，而D属性是纯粹的记录数据。<br />
其实D属性本身已经完全能表示记录内容，C属性只是为了使用时方便。<br />
在这短短几个字段及几条数据的极端情况下，已经省下几十字节。</p>
<p>下面对比使用方法，我承认这种方法稍微比通用的方法复杂一点，但是带来的节省，个人认为还是值得的：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">通用方法取周杰伦：</span><span style="color: Olive;">[</span><span style="color: Maroon;">0</span><span style="color: Olive;">]</span><span style="color: Gray;">.</span><span style="color: Blue;">Name</span></li>
<li><span style="color: Gray;">我的方法取周杰伦：</span><span style="color: Blue;">D</span><span style="color: Olive;">[</span><span style="color: Maroon;">0</span><span style="color: Olive;">][</span><span style="color: Blue;">C</span><span style="color: Gray;">.</span><span style="color: Blue;">Name</span><span style="color: Olive;">]</span></li></ol></div>
<p>下面是上述<a href="http://bianbian.org/technology/javascript/361.html">DataTable转JSON的C#代码</a>：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">using</span><span style="color: Gray;"> </span><span style="color: Blue;">System</span><span style="color: Gray;">;</span></li>
<li><span style="color: Green;">using</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">System</span><span style="color: Gray;">.</span><span style="color: Blue;">Text</span><span style="color: Gray;">;</span></li>
<li><span style="color: Green;">using</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">System</span><span style="color: Gray;">.</span><span style="color: Blue;">Web</span><span style="color: Gray;">.</span><span style="color: Blue;">Script</span><span style="color: Gray;">.</span><span style="color: Blue;">Serialization</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: #ffa500;">/// 一种JSON表示DataTable的新方法</span></li>
<li><span style="color: #ffa500;">/// &lt;see href=&quot;http://bianbian.org/technology/javascript/361.html&quot; /&gt;</span></li>
<li><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">static</span><span style="color: Gray;"> </span><span class="hl-types">class</span><span style="color: Gray;"> </span><span style="color: Blue;">JsonUtil</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span class="hl-types">static</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">JavaScriptSerializer</span><span style="color: Gray;"> </span><span style="color: Blue;">_jss</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">JavaScriptSerializer</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// DataTable 转换成 JSON string。</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;param name=&quot;dt&quot;&gt;需要转换的DataTable&lt;/param&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;returns&gt;JSON结构字符串&lt;/returns&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">static</span><span style="color: Gray;"> </span><span style="color: Blue;">string</span><span style="color: Gray;"> </span><span style="color: Blue;">FromDataTable</span><span style="color: Olive;">(</span><span style="color: Blue;">System</span><span style="color: Gray;">.</span><span style="color: Blue;">Data</span><span style="color: Gray;">.</span><span style="color: Blue;">DataTable</span><span style="color: Gray;"> </span><span style="color: Blue;">dt</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">StringBuilder</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">sb</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">StringBuilder</span><span style="color: Olive;">(</span><span style="color: Maroon;">256</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">FormDataTable</span><span style="color: Olive;">(</span><span style="color: Blue;">dt</span><span style="color: Gray;">, </span><span style="color: Blue;">sb</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">return</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">ToString</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// DataTable 转换成 JSON string。</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;param name=&quot;dt&quot;&gt;需要转换的DataTable&lt;/param&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;param name=&quot;sb&quot;&gt;StringBuilder&lt;/param&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">static</span><span style="color: Gray;"> </span><span class="hl-types">void</span><span style="color: Gray;"> </span><span style="color: Blue;">FormDataTable</span><span style="color: Olive;">(</span><span style="color: Blue;">System</span><span style="color: Gray;">.</span><span style="color: Blue;">Data</span><span style="color: Gray;">.</span><span style="color: Blue;">DataTable</span><span style="color: Gray;"> </span><span style="color: Blue;">dt</span><span style="color: Gray;">, </span><span style="color: Blue;">StringBuilder</span><span style="color: Gray;"> </span><span style="color: Blue;">sb</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">{C:{</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">// -&gt; {&quot;ID&quot;:0, &quot;Name&quot;:1}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">for</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span class="hl-types">int</span><span style="color: Gray;"> </span><span style="color: Blue;">j</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">; </span><span style="color: Blue;">j</span><span style="color: Gray;"> &lt; </span><span style="color: Blue;">dt</span><span style="color: Gray;">.</span><span style="color: Blue;">Columns</span><span style="color: Gray;">.</span><span style="color: Blue;">Count</span><span style="color: Gray;">; </span><span style="color: Blue;">j</span><span style="color: Gray;">++</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">j</span><span style="color: Gray;"> &gt; </span><span style="color: Maroon;">0</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">','</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">'</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">').Append(dt.Columns[j].ColumnName).Append('</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">'</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">':'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Blue;">j</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">},D:[</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">for</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span class="hl-types">int</span><span style="color: Gray;"> </span><span style="color: Blue;">i</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">; </span><span style="color: Blue;">i</span><span style="color: Gray;"> &lt; </span><span style="color: Blue;">dt</span><span style="color: Gray;">.</span><span style="color: Blue;">Rows</span><span style="color: Gray;">.</span><span style="color: Blue;">Count</span><span style="color: Gray;">; </span><span style="color: Blue;">i</span><span style="color: Gray;">++</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">i</span><span style="color: Gray;"> &gt; </span><span style="color: Maroon;">0</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">','</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">'</span><span style="color: Olive;">[</span><span style="color: Gray;">');</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">for</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span class="hl-types">int</span><span style="color: Gray;"> </span><span style="color: Blue;">j</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">; </span><span style="color: Blue;">j</span><span style="color: Gray;"> &lt; </span><span style="color: Blue;">dt</span><span style="color: Gray;">.</span><span style="color: Blue;">Columns</span><span style="color: Gray;">.</span><span style="color: Blue;">Count</span><span style="color: Gray;">; </span><span style="color: Blue;">j</span><span style="color: Gray;">++</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">j</span><span style="color: Gray;"> &gt; </span><span style="color: Maroon;">0</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">','</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">_jss</span><span style="color: Gray;">.</span><span style="color: Blue;">Serialize</span><span style="color: Olive;">(</span><span style="color: Blue;">dt</span><span style="color: Gray;">.</span><span style="color: Blue;">Rows</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">][</span><span style="color: Blue;">j</span><span style="color: Olive;">]</span><span style="color: Gray;">, </span><span style="color: Blue;">sb</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: Gray;">']'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; }</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">sb</span><span style="color: Gray;">.</span><span style="color: Blue;">Append</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">]}</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; }</span></li>
<li><span style="color: Gray;">}</span></li></ol></div>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/c" title="C#" rel="tag">C#</a>, <a href="http://bianbian.org/tag/datatable" title="DataTable" rel="tag">DataTable</a>, <a href="http://bianbian.org/tag/json" title="JSON" rel="tag">JSON</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/333.html" title="[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法 (2009-03-02)">[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法</a> (2)</li>
	<li><a href="http://bianbian.org/technology/332.html" title="[原] C# 3.0的委托(delegate)及Lambda表达式应用实例 (2009-03-02)">[原] C# 3.0的委托(delegate)及Lambda表达式应用实例</a> (1)</li>
	<li><a href="http://bianbian.org/technology/javascript/190.html" title="[原] C的struct和JSON交互 (2007-07-15)">[原] C的struct和JSON交互</a> (1)</li>
	<li><a href="http://bianbian.org/technology/c/356.html" title="[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题 (2010-04-16)">[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/361.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>[原] jquery-easyui的combotree在.net开发中不显示数据的问题</title>
		<link>http://bianbian.org/technology/javascript/360.html</link>
		<comments>http://bianbian.org/technology/javascript/360.html#comments</comments>
		<pubDate>Sun, 29 Aug 2010 04:07:41 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[combotree]]></category>
		<category><![CDATA[easyui]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/javascript/360.html</guid>
		<description><![CDATA[最近使用jquery-easyui 1.2，遇到一个问题。 一搜索，发现好多人在问： 问题见：http://jquery-easyui.wikidot.com/forum/t-248817/combotree-net “combotree在.net开发中，一直不显示数据。 单独html页面就可以显示... ]]></description>
			<content:encoded><![CDATA[<p>最近使用<a href="http://jquery-easyui.wikidot.com/" target="_blank">jquery-easyui 1.2</a>，遇到一个问题。<br />
一搜索，发现好多人在问：<br />
问题见：http://jquery-easyui.wikidot.com/forum/t-248817/combotree-net<br />
“combotree在.net开发中，一直不显示数据。<br />
单独html页面就可以显示出来。同一数据文件，json格式绝对正确。”</p>
<p>解决问题首先要发现原因，用firebug试了一下，发现是combotree读取json的时候是用POST方法。<br />
而.net环境不支持静态文件用POST方法获取内容。错误如下：<br />
POST app_user.js</p>
<p>http://localhost:9655/js/app_user.js</p>
<p>405 Method Not Allowed</p>
<p>发现原因后，解决问题就简单很多。<br />
找到easyui的js代码：<br />
_41.addClass(&#8220;tree-loading&#8221;);<br />
$.ajax({type:&#8221;post&#8221;,url:_3e.url,data:_3c,dataType:&#8221;json&#8221;,success:function(_42){<br />
_41.removeClass(&#8220;tree-loading&#8221;);</p>
<p>在我的应用中，因为不需要POST方式获取json，就把type:&#8221;post&#8221;改为type:&#8221;get&#8221;即可。<br />
已在easyui的官方论坛中说明这个问题，希望以后能多个method的设置选项。</p>
<p>2010.12.18 更新：<br />
新版本jquery-easyui 1.2.1提供了tree组件的method方法设置，但是在用css自动解析方式时无效。<br />
即通过《input class=&#8221;easyui-combotree&#8221; url=&#8221;&#8230;js&#8221; method=&#8221;get&#8221; /》调用时，仍然使用POST。<br />
查看代码，原来是这里parseOptions时未对method进行解析：<br />
$.fn.tree.parseOptions=function(_13c){<br />
var t=$(_13c);<br />
return {url:t.attr(&#8220;url&#8221;),&#8230;</p>
<p>加上对method的解析：<br />
return {url:t.attr(&#8220;url&#8221;),method:(t.attr(&#8220;method&#8221;)?t.attr(&#8220;method&#8221;):&#8221;post&#8221;),&#8230;</p>
<p>问题解决。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/combotree" title="combotree" rel="tag">combotree</a>, <a href="http://bianbian.org/tag/easyui" title="easyui" rel="tag">easyui</a>, <a href="http://bianbian.org/tag/jquery" title="jQuery" rel="tag">jQuery</a>, <a href="http://bianbian.org/tag/post" title="post" rel="tag">post</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/424.html" title="[原] 总算实现SWFUpload和easyui的DataGrid整合了 (2011-12-24)">[原] 总算实现SWFUpload和easyui的DataGrid整合了</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/414.html" title="[原] 基本实现swfupload和easyui的结合 (2011-08-05)">[原] 基本实现swfupload和easyui的结合</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/349.html" title="[原] 基于jQuery的自动TAB选项卡实现 (2009-07-24)">[原] 基于jQuery的自动TAB选项卡实现</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/394.html" title="[原] 建了一个google code项目：jquery myhint plugin (2011-01-16)">[原] 建了一个google code项目：jquery myhint plugin</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/360.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[晕] 中wmdrtc32.dll木马了（Sality virus）</title>
		<link>http://bianbian.org/technology/359.html</link>
		<comments>http://bianbian.org/technology/359.html#comments</comments>
		<pubDate>Tue, 11 May 2010 10:52:30 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[木马]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/359.html</guid>
		<description><![CDATA[晕，话说我这个只上少数几个网站的人也会中木马。。。。 这个wmdrtc32.dll可不是一般的木马，具有注入、驱动等多种手段 而且更狠的是，无法安全模式启动，一进安全模式就蓝屏。。。 这次... ]]></description>
			<content:encoded><![CDATA[<p>晕，话说我这个只上少数几个网站的人也会中木马。。。。<br />
这个wmdrtc32.dll可不是一般的木马，具有注入、驱动等多种手段<br />
而且更狠的是，无法安全模式启动，一进安全模式就蓝屏。。。<br />
这次中招的居然是从sourceforge.net下的一个项目的执行文件，在这里曝光一下：</p>
<p>http://sourceforge.net/projects/flvconverternet/</p>
<p>360能检测到威胁，但是没办法彻底杀干净。。。<br />
郁闷，还没找到解决办法。。。有谁知道怎么清除告诉我一声，谢了。<br />
我的机器不可能重装，里面eclipse有5个（java、aptana、IDL、Flex、php），visual studio有3个(vc6、2005、2008），Delphi有2个，还有python、ArcGis、oracle、ENVI、。。。<br />
要重装直接杀了我吧。。。<br />
这个网页对这个病毒进行了详细的分析：</p>
<p>http://www.threatexpert.com/report.aspx?md5=8f0020f81ab2be1e9136ce831fbc525f</p>
<p>最后补充：无奈下装了360杀毒软件。。。<br />
这个无良的Sality，居然把硬盘的exe全感染了。。。一点毒品都没有！！！</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e6%9c%a8%e9%a9%ac" title="木马" rel="tag">木马</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/35.html" title="[原]杀了个816.exe木马 (2006-09-21)">[原]杀了个816.exe木马</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/359.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] Flex的全屏模式</title>
		<link>http://bianbian.org/technology/358.html</link>
		<comments>http://bianbian.org/technology/358.html#comments</comments>
		<pubDate>Sat, 08 May 2010 09:09:17 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[allowfullscreen]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[全屏]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/358.html</guid>
		<description><![CDATA[除了这篇文章里提到的需要传入参数 allowFullScreen=true 以外： http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html 经我的血泪测试（啊啊啊，我的时光啊），以下这条语句似乎必须点击操作触... ]]></description>
			<content:encoded><![CDATA[<p>除了这篇文章里提到的需要传入参数 allowFullScreen=true 以外：</p>
<p>http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html</p>
<p>经我的血泪测试（啊啊啊，我的时光啊），以下这条语句似乎必须点击操作触发才有效：<br />
stage.displayState = StageDisplayState.FULL_SCREEN;<br />
也就是说，用Timer之类调用这条语句都无法全屏，错误号是#2152 Full screen mode is not allowed.<br />
应该是flash故意禁止这么做，不然一载入就全屏算是个安全问题。<br />
郁闷的是，我准备做的这个东西就是要一载入就全屏。。。。<br />
啊啊啊啊，怎么办？弄个巨大的按钮？点击以后全屏、隐藏按钮？<br />
太邪恶了。。。。啊啊啊啊。。。。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/allowfullscreen" title="allowfullscreen" rel="tag">allowfullscreen</a>, <a href="http://bianbian.org/tag/flex" title="flex" rel="tag">flex</a>, <a href="http://bianbian.org/tag/%e5%85%a8%e5%b1%8f" title="全屏" rel="tag">全屏</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/364.html" title="[原] 在协同决策系统内实现基于Flex+ArcGIS的航班天气展示 (2010-12-02)">[原] 在协同决策系统内实现基于Flex+ArcGIS的航班天气展示</a> (0)</li>
	<li><a href="http://bianbian.org/technology/373.html" title="[原] 搞定ArcGis的切片原理和离线服务 (2010-12-04)">[原] 搞定ArcGis的切片原理和离线服务</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/358.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[哈] 便便嘘嘘红双喜</title>
		<link>http://bianbian.org/not-it/bianbian-xuxu/357.html</link>
		<comments>http://bianbian.org/not-it/bianbian-xuxu/357.html#comments</comments>
		<pubDate>Thu, 22 Apr 2010 11:00:01 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[SCI]]></category>
		<category><![CDATA[执照]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/bianbian-xuxu/357.html</guid>
		<description><![CDATA[今天真是好日子。。。。。。。 一喜呢 便便嘘嘘经过超十年甜蜜长跑 转战长三角、珠三角四个城市 今天终于执证上岗 虽然喜糖早早就发过啦 不过这里没有鼓楼大妈的拍照环境 只好帖个执照... ]]></description>
			<content:encoded><![CDATA[<p>今天真是好日子。。。。。。。</p>
<p>一喜呢<br />
便便嘘嘘经过超十年甜蜜长跑<br />
转战长三角、珠三角四个城市<br />
今天终于执证上岗<br />
虽然喜糖早早就发过啦<br />
不过这里没有鼓楼大妈的拍照环境<br />
只好帖个执照合影了<br />
<img src="http://lilybbs.net/file/sysop/bianbianxuxu.jpg"/></p>
<p>二喜呢<br />
SCI终于accept啦<br />
看看过程，真是好不容易呢<br />
眼泪哗哗地<br />
Manuscript ID：AAS20090056<br />
Submitting Date：2009-3-8<br />
Conclusion，Date of return for revision，Date of revision：<br />
major revision required before peer review，2009-6-29，2009-9-9<br />
returned for revision upon submission，2009-9-10，2009-9-21<br />
major revision，2009-11-3，2010-3-18<br />
manuscript accepted for publication，2010-4-22</p>
<p>感谢所有朋友一直以来对我们的祝福和帮助~</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/sci" title="SCI" rel="tag">SCI</a>, <a href="http://bianbian.org/tag/%e6%89%a7%e7%85%a7" title="执照" rel="tag">执照</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/bianbian-xuxu/357.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题</title>
		<link>http://bianbian.org/technology/c/356.html</link>
		<comments>http://bianbian.org/technology/c/356.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 16:42:13 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[CreateObject]]></category>
		<category><![CDATA[PowerPoint]]></category>
		<category><![CDATA[PPT]]></category>
		<category><![CDATA[进程]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/c/356.html</guid>
		<description><![CDATA[前阵子一直纳闷一件事，不是写了个早上10点自动生成天气会商ppt的程序嘛，不过时好时坏。具体的说：我去维护了一下后第二天是正常的，但是第三天就又不行了。看cron的日志（顺便推荐一... ]]></description>
			<content:encoded><![CDATA[<p>前阵子一直纳闷一件事，不是写了个早上10点自动生成天气会商ppt的程序嘛，不过时好时坏。具体的说：我去维护了一下后第二天是正常的，但是第三天就又不行了。看cron的日志（顺便推荐一下nnCron Lite），程序都正常启动了，但是ppt就是没有正常生成。<br />
像我现在写的代码一般都不会有问题了，很少需要debug；看了几遍也没问题，所以很纳闷呀很纳闷。<br />
后来没办法，开始在程序里输出log，才发现cron运行的时候（用户是SYSTEM），第二次运行：<br />
using PPT = Microsoft.Office.Interop.PowerPoint;<br />
_App = new PPT.Application();<br />
这里会报COMException，真是奇怪了。<br />
而调试的时候又是一切正常（用户是Administrator）。</p>
<p>最后总算捕捉到问题出现的情形：<br />
cron运行，第一次正常产生ppt后，进程里仍驻留了PowerPNT.exe这个程序。<br />
尽管程序是写了：<br />
_App.Quit();<br />
_App = null;<br />
但是进程不会退出。不退出就算了，关键在SYSTEM用户下，第二次再跑程序的时候就会报前面提到的COMException，似乎一Quit()，这个PowerPNT.exe就挂在那里了。而在有用户界面的Administrator用户下，即使上一次进程没退出，也是可以正常工作的。</p>
<p>试了两种办法，可以使功能正常：<br />
1）暴力一点，用完直接把进程kill掉：<br />
Process ps = Process.GetProcessesByName(&#8220;POWERPNT.EXE&#8221;)[0];<br />
ps.Kill();</p>
<p>2）最后不写 _App.Quit() ，让进程在内存里驻留。</p>
<p>最后还是选了2），毕竟服务器内存有10G，一个PPT进程也就20多M，而且PPT进程一个用户只有一个，相当于preload了，呵呵。。。</p>
<p>回家后找了一下文章，这个确实是Microsoft的问题。希望这篇文章对遇到这个问题的朋友有用。</p>
<p>如下是相关地址：<br />
<a href="http://support.microsoft.com/kb/226766/en-us" target="_blank">PPT2000: PowerPoint 2000 Remains in Memory After Getting a Presentation and Being Closed</a><br />
<a href="http://www.keyongtech.com/1842655-powerpnt-exe-remains-running-after" target="_blank">powerpnt.exe remains running after OLE Quit()</a><br />
<a href="http://support.microsoft.com/kb/288902/EN-US/" target="_blank">GetObject and CreateObject behavior of Office automation servers</a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/c" title="C#" rel="tag">C#</a>, <a href="http://bianbian.org/tag/com" title="COM" rel="tag">COM</a>, <a href="http://bianbian.org/tag/createobject" title="CreateObject" rel="tag">CreateObject</a>, <a href="http://bianbian.org/tag/powerpoint" title="PowerPoint" rel="tag">PowerPoint</a>, <a href="http://bianbian.org/tag/ppt" title="PPT" rel="tag">PPT</a>, <a href="http://bianbian.org/tag/%e8%bf%9b%e7%a8%8b" title="进程" rel="tag">进程</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/meteorology/352.html" title="[原] 自动生成天气会商PPT了 (2010-02-21)">[原] 自动生成天气会商PPT了</a> (0)</li>
	<li><a href="http://bianbian.org/technology/212.html" title="[原]Linux下的c/c++ GDB调试 (2007-09-18)">[原]Linux下的c/c++ GDB调试</a> (7)</li>
	<li><a href="http://bianbian.org/technology/333.html" title="[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法 (2009-03-02)">[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法</a> (2)</li>
	<li><a href="http://bianbian.org/technology/130.html" title="[原]C#里更改控件的显示Z顺序 (2007-03-01)">[原]C#里更改控件的显示Z顺序</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/c/356.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 珠三角航空气象工作小组第二次会议</title>
		<link>http://bianbian.org/not-it/meteorology/355.html</link>
		<comments>http://bianbian.org/not-it/meteorology/355.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 16:45:52 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[交流]]></category>
		<category><![CDATA[气象]]></category>
		<category><![CDATA[珠海]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/meteorology/355.html</guid>
		<description><![CDATA[珠三角航空气象工作小组第二次会议在珠海召开，期待未来珠三角更多的合作。 PS. 珠海真是适合生活的好地方。 &#169;2012 便便代码人生. All Rights Reserved.. 标签: 交流, 气象, 珠海遵守创作共用协... ]]></description>
			<content:encoded><![CDATA[<p>珠三角航空气象工作小组第二次会议在珠海召开，期待未来珠三角更多的合作。<br />
PS. 珠海真是适合生活的好地方。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e4%ba%a4%e6%b5%81" title="交流" rel="tag">交流</a>, <a href="http://bianbian.org/tag/%e6%b0%94%e8%b1%a1" title="气象" rel="tag">气象</a>, <a href="http://bianbian.org/tag/%e7%8f%a0%e6%b5%b7" title="珠海" rel="tag">珠海</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/308.html" title="[转] 民航气象区域预警预报 (2008-05-21)">[转] 民航气象区域预警预报</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/meteorology/351.html" title="[原] 向香港天文台好好学习 (2010-02-08)">[原] 向香港天文台好好学习</a> (1)</li>
	<li><a href="http://bianbian.org/not-it/259.html" title="[转] 深圳空管站与深圳气象局将实现气象信息共享 (2008-02-23)">[转] 深圳空管站与深圳气象局将实现气象信息共享</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/meteorology/388.html" title="[原] 找找我在哪 (2010-12-24)">[原] 找找我在哪</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/meteorology/355.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 自动生成天气会商PPT了</title>
		<link>http://bianbian.org/not-it/meteorology/352.html</link>
		<comments>http://bianbian.org/not-it/meteorology/352.html#comments</comments>
		<pubDate>Sun, 21 Feb 2010 09:03:27 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[PPT]]></category>
		<category><![CDATA[天气会商]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/meteorology/352.html</guid>
		<description><![CDATA[每天的例行天气会商PPT，现在由程序自动采集数据、图片，通过PowerPoint的COM功能，来自动化生成了。 &#169;2012 便便代码人生. All Rights Reserved.. 标签: PPT, 天气会商遵守创作共用协议，转载请链接... ]]></description>
			<content:encoded><![CDATA[<p>每天的例行天气会商PPT，现在由程序自动采集数据、图片，通过PowerPoint的COM功能，来自动化生成了。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/ppt" title="PPT" rel="tag">PPT</a>, <a href="http://bianbian.org/tag/%e5%a4%a9%e6%b0%94%e4%bc%9a%e5%95%86" title="天气会商" rel="tag">天气会商</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/417.html" title="[原] Powerpoint(PPT) 2003和2007添加http开头的图片的问题解决 (2011-08-11)">[原] Powerpoint(PPT) 2003和2007添加http开头的图片的问题解决</a> (0)</li>
	<li><a href="http://bianbian.org/technology/c/356.html" title="[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题 (2010-04-16)">[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/meteorology/352.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] 向香港天文台好好学习</title>
		<link>http://bianbian.org/not-it/meteorology/351.html</link>
		<comments>http://bianbian.org/not-it/meteorology/351.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 14:21:20 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[HKO]]></category>
		<category><![CDATA[交流]]></category>
		<category><![CDATA[香港天文台]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/meteorology/351.html</guid>
		<description><![CDATA[好久没有写blog，快过年了记个小结，2009这一年最大感受是向香港天文台好好学习。 http://www.hko.gov.hk/hkonews/A2/news-CAAC_uc.htm &#169;2012 便便代码人生. All Rights Reserved.. 标签: HKO, 交流, 香港天文台遵... ]]></description>
			<content:encoded><![CDATA[<p>好久没有写blog，快过年了记个小结，2009这一年最大感受是向香港天文台好好学习。<br />
<a href="http://www.hko.gov.hk/hknews/A2/news-CAAC_uc.htm" target="_blank">http://www.hko.gov.hk/hkonews/A2/news-CAAC_uc.htm</a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/hko" title="HKO" rel="tag">HKO</a>, <a href="http://bianbian.org/tag/%e4%ba%a4%e6%b5%81" title="交流" rel="tag">交流</a>, <a href="http://bianbian.org/tag/%e9%a6%99%e6%b8%af%e5%a4%a9%e6%96%87%e5%8f%b0" title="香港天文台" rel="tag">香港天文台</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/meteorology/355.html" title="[原] 珠三角航空气象工作小组第二次会议 (2010-03-18)">[原] 珠三角航空气象工作小组第二次会议</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/meteorology/388.html" title="[原] 找找我在哪 (2010-12-24)">[原] 找找我在哪</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/meteorology/351.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[荐] 推荐RSL（Radar Software Library，雷达软件库）</title>
		<link>http://bianbian.org/not-it/350.html</link>
		<comments>http://bianbian.org/not-it/350.html#comments</comments>
		<pubDate>Wed, 30 Sep 2009 12:36:25 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[RSL]]></category>
		<category><![CDATA[格式]]></category>
		<category><![CDATA[雷达]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/350.html</guid>
		<description><![CDATA[各种雷达不同的格式害死人啊害死人，这个库就是为统一读取各种格式而生的。 可以在这个基础上方便地加入其它格式的支持，我现在加入了深圳机场ADWR多普勒雷达的格式。 当然，它本身已... ]]></description>
			<content:encoded><![CDATA[<p>各种雷达不同的格式害死人啊害死人，这个库就是为统一读取各种格式而生的。<br />
可以在这个基础上方便地加入其它格式的支持，我现在加入了深圳机场ADWR多普勒雷达的格式。<br />
当然，它本身已经自带了很多格式：<br />
HDF 1B-51 and 1C-51、Lassen (Darwin)、WSR-88d (Nexrad)、UF (Universal Format from NCAR)、SIGMET (Version 1)、SIGMET (Version 2)、McGill、TOGA、RAPIC (Berrimah)、RADTEC (SPANDAR)、EDGE &#8230;</p>
<p>The best feature of RSL is the ability to ingest many different RADAR data file formats with a single<br />
library call. It can, also, read compressed files &#8212; compressed with GZIP or the older COMPRESS.<br />
The routine is called RSL_anyformat_to_radar. You give it a filename and it will return a pointer to<br />
a C structure called Radar. The structure Radar contains all the information found in the input file.<br />
The structure is intended to represent a superset of all RADAR data formats.<br />
<a href="http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/index.html" target="_blank">RSL</a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/rsl" title="RSL" rel="tag">RSL</a>, <a href="http://bianbian.org/tag/%e6%a0%bc%e5%bc%8f" title="格式" rel="tag">格式</a>, <a href="http://bianbian.org/tag/%e9%9b%b7%e8%be%be" title="雷达" rel="tag">雷达</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/298.html" title="[原] IDL的格式化字符串太让人faint了 (2008-05-01)">[原] IDL的格式化字符串太让人faint了</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/350.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] 基于jQuery的自动TAB选项卡实现</title>
		<link>http://bianbian.org/technology/javascript/349.html</link>
		<comments>http://bianbian.org/technology/javascript/349.html#comments</comments>
		<pubDate>Thu, 23 Jul 2009 17:03:23 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[TAB]]></category>
		<category><![CDATA[选项卡]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/javascript/349.html</guid>
		<description><![CDATA[jQuery挺好用，我就不说啥了。 今天实现了“自动TAB”，下面分享一下。有人会问为啥不用jquery-ui，主要是页面css已经全弄好了，实在不想为ui再写一次；其次是ui毕竟是那么大个家伙，心疼我的... ]]></description>
			<content:encoded><![CDATA[<p>jQuery挺好用，我就不说啥了。<br />
今天实现了“自动TAB”，下面分享一下。有人会问为啥不用jquery-ui，主要是页面css已经全弄好了，实在不想为ui再写一次；其次是ui毕竟是那么大个家伙，心疼我的性能。<br />
HTML页面非常简单：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">tabBox</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">&lt;!--选项卡菜单--&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">ul</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">tabMenu</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">li</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">on</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;&lt;</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">选项卡1</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">li</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">li</span><span style="color: Olive;">&gt;&lt;</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">选项卡2</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">li</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">ul</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">&lt;!-- 选项卡内容--&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">hide</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">选项卡1内容</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">hide</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">选项卡2内容</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p>之后就是用jQuery自动对这个.tabBox进行处理，加上鼠标点击自动切换的功能（当然可以加上鼠标移过的选项支持，作为示例，我就没写那么完善）：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">$</span><span style="color: Olive;">(</span><span style="color: Green;">function</span><span style="color: Gray;"> </span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//===== TAB自动切换 tabBox =====</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// &lt;div class=&quot;tabBox&quot;&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//&nbsp;&nbsp; &lt;ul class=&quot;tabMenu&quot;&gt;&lt;li class=&quot;on&quot;&gt;&lt;a&gt;选项卡1&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//&nbsp;&nbsp; &lt;div class=&quot;hide&quot;&gt;内容1&lt;/div&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// &lt;/div&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// (1) li增加&quot;index&quot;记录偏移量（第i项），给a增加click方法</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; $</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">.tabBox .tabMenu li</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">each</span><span style="color: Olive;">(</span><span style="color: Green;">function</span><span style="color: Olive;">(</span><span style="color: Blue;">i</span><span style="color: Gray;">, </span><span style="color: Blue;">li</span><span style="color: Olive;">)</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">li</span><span style="color: Gray;"> = $</span><span style="color: Olive;">(</span><span style="color: Blue;">li</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">li</span><span style="color: Gray;">.</span><span style="color: Blue;">attr</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">index</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: Blue;">i</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</span><span style="color: Blue;">children</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">a</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">attr</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">href</span><span style="color: #8b0000;">'</span><span style="color: Gray;">, </span><span style="color: #8b0000;">'</span><span style="color: Red;">javascript:;</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">click</span><span style="color: Olive;">(</span><span style="color: Green;">function</span><span style="color: Olive;">()</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//点击项的li的class设为on</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">li_on</span><span style="color: Gray;"> = $</span><span style="color: Olive;">(</span><span style="color: Green;">this</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">parent</span><span style="color: Olive;">()</span><span style="color: Gray;">,</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">index</span><span style="color: Gray;"> = </span><span style="color: Blue;">li_on</span><span style="color: Gray;">.</span><span style="color: Blue;">attr</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">index</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">li_on</span><span style="color: Gray;">.</span><span style="color: Blue;">parent</span><span style="color: Olive;">()</span><span style="color: Gray;">.</span><span style="color: Blue;">children</span><span style="color: Olive;">()</span><span style="color: Gray;">.</span><span style="color: Blue;">removeClass</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">on</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">li_on</span><span style="color: Gray;">.</span><span style="color: Blue;">addClass</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">on</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//显示对应的div内容。注意get(index)返回的是DOM节点，因此需要再$()转为jQuery对象</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $</span><span style="color: Olive;">(</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">li_on</span><span style="color: Gray;">.</span><span style="color: Blue;">parent</span><span style="color: Olive;">()</span><span style="color: Gray;">.</span><span style="color: Blue;">parent</span><span style="color: Olive;">()</span><span style="color: Gray;">.</span><span style="color: Blue;">children</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">div</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">addClass</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">hide</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">get</span><span style="color: Olive;">(</span><span style="color: Blue;">index</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">removeClass</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">hide</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">})</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//显示现有的li class=on对应的div内容</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">li</span><span style="color: Gray;">.</span><span style="color: Blue;">hasClass</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">on</span><span style="color: #8b0000;">'</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">li</span><span style="color: Gray;">.</span><span style="color: Blue;">children</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">a</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">click</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">})</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">})</span><span style="color: Gray;">;</span></li></ol></div>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/jquery" title="jQuery" rel="tag">jQuery</a>, <a href="http://bianbian.org/tag/tab" title="TAB" rel="tag">TAB</a>, <a href="http://bianbian.org/tag/%e9%80%89%e9%a1%b9%e5%8d%a1" title="选项卡" rel="tag">选项卡</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/394.html" title="[原] 建了一个google code项目：jquery myhint plugin (2011-01-16)">[原] 建了一个google code项目：jquery myhint plugin</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/360.html" title="[原] jquery-easyui的combotree在.net开发中不显示数据的问题 (2010-08-29)">[原] jquery-easyui的combotree在.net开发中不显示数据的问题</a> (2)</li>
	<li><a href="http://bianbian.org/technology/javascript/424.html" title="[原] 总算实现SWFUpload和easyui的DataGrid整合了 (2011-12-24)">[原] 总算实现SWFUpload和easyui的DataGrid整合了</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/349.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[嗯] 5.10订婚</title>
		<link>http://bianbian.org/not-it/345.html</link>
		<comments>http://bianbian.org/not-it/345.html#comments</comments>
		<pubDate>Sat, 02 May 2009 09:19:36 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[订婚]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/345.html</guid>
		<description><![CDATA[按老家习俗，似乎是要订婚的 可惜我和嘘嘘都不热衷，汗 辛苦小时候就和我最亲的阿姨了，汗 择日子，定佳期 两家长辈嘘来问去，就定到5.10了 当然是按农历4.16定的，不过阳历谐音也是还可... ]]></description>
			<content:encoded><![CDATA[<p>按老家习俗，似乎是要订婚的<br />
可惜我和嘘嘘都不热衷，汗<br />
辛苦小时候就和我最亲的阿姨了，汗<br />
择日子，定佳期<br />
两家长辈嘘来问去，就定到5.10了<br />
当然是按农历4.16定的，不过阳历谐音也是还可以<br />
“我要你”，虽然肉麻，也是蛮符合 订 的意思的嘛<br />
高一走到现在，快十一年了<br />
两个小屁孩要成家了，真是不容易呀<br />
幸好我们两个都不贪心<br />
尽管沿途有好多风景<br />
只紧紧拽着彼此的手心<br />
祝福我们吧<br />
也祝大家幸福开心</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e8%ae%a2%e5%a9%9a" title="订婚" rel="tag">订婚</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/345.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>[原] Thinkpad T400在Windows XP下装蓝牙的办法</title>
		<link>http://bianbian.org/technology/344.html</link>
		<comments>http://bianbian.org/technology/344.html#comments</comments>
		<pubDate>Thu, 30 Apr 2009 18:50:41 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[T400]]></category>
		<category><![CDATA[蓝牙]]></category>
		<category><![CDATA[驱动]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/344.html</guid>
		<description><![CDATA[我的驱动都是手装的，只安装了必要的驱动（Think的那一大陀软件只安装了硬盘防震动的），发现XP下无法识别T400的蓝牙设备。 症状：Fn+F5没反应，bluetooth的指示灯不亮（机器左下角的硬件已经... ]]></description>
			<content:encoded><![CDATA[<p>我的驱动都是手装的，只安装了必要的驱动（Think的那一大陀软件只安装了硬盘防震动的），发现XP下无法识别T400的蓝牙设备。<br />
症状：Fn+F5没反应，bluetooth的指示灯不亮（机器左下角的硬件已经拨到启动无线、主板BIOS也已经Enable蓝牙）。<br />
安装了蓝牙软件后一直提示“未找到buletooth设备”。<br />
后来经过不断尝试，写出解决办法：<br />
安装HOTKEY（鄙视Thinkpad啊。。。。非要多装个垃圾。。。。）。<br />
找到HOTKEY的安装目录，手动运行TpFnF5.exe（其实就是按Fn+F5组合键后启动的程序，不知道为什么我全手动<br />
装的驱动为什么不支持Fn+F5的监听）。<br />
一运行，就提示找到新硬件，然后就可以安装Windows XP的蓝牙补充驱动和软件了，这时就可以看出蓝牙设备原来是个USB。<br />
装完后，不能卸载HOTKEY，否则声音控制的那几个键不能用了，卸载程序太暴力。<br />
只好在注册表里禁止开机运行。<br />
记在这里，搜索过来确实有用的朋友请吱一声。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/t400" title="T400" rel="tag">T400</a>, <a href="http://bianbian.org/tag/%e8%93%9d%e7%89%99" title="蓝牙" rel="tag">蓝牙</a>, <a href="http://bianbian.org/tag/%e9%a9%b1%e5%8a%a8" title="驱动" rel="tag">驱动</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/334.html" title="[转] T400 XP系统安装步骤 (2009-03-13)">[转] T400 XP系统安装步骤</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/344.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[原] Paragon Partition Manager真是太牛了</title>
		<link>http://bianbian.org/technology/342.html</link>
		<comments>http://bianbian.org/technology/342.html#comments</comments>
		<pubDate>Mon, 06 Apr 2009 09:31:09 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[分区]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/342.html</guid>
		<description><![CDATA[作为DOS下的分区工具，Paragon Partition Manager实在是太牛了！ 上次装系统已经感慨过一次了：DOS下能直接对AHCI模式（高级主控接口）下的SATA硬盘进行操作，要知道这个模式Windows XP都没办法！ 今... ]]></description>
			<content:encoded><![CDATA[<p>作为DOS下的分区工具，Paragon Partition Manager实在是太牛了！<br />
上次装系统已经感慨过一次了：DOS下能直接对AHCI模式（高级主控接口）下的SATA硬盘进行操作，要知道这个模式Windows XP都没办法！<br />
今天因为想格式化Temp分区（5G，用来放pagefile、asp.net的编译结果等；系统的Temp和IE的Temp我是放在内存盘里的，哇咔咔，内存一定要大），又进了一次这个软件。结果发现，它居然把插在USB上面的512G的移动硬盘也识别出来了。。。<br />
太牛了，微软赶快把它收购吧。。。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/dos" title="DOS" rel="tag">DOS</a>, <a href="http://bianbian.org/tag/sata" title="SATA" rel="tag">SATA</a>, <a href="http://bianbian.org/tag/%e5%88%86%e5%8c%ba" title="分区" rel="tag">分区</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/334.html" title="[转] T400 XP系统安装步骤 (2009-03-13)">[转] T400 XP系统安装步骤</a> (0)</li>
	<li><a href="http://bianbian.org/technology/214.html" title="[哎]WD800JD的SATA 80G无法被VIA8237识别 (2007-09-28)">[哎]WD800JD的SATA 80G无法被VIA8237识别</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/342.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] Total Commander Service to show/hide TC by hotkey/boss key/shortcut key</title>
		<link>http://bianbian.org/technology/336.html</link>
		<comments>http://bianbian.org/technology/336.html#comments</comments>
		<pubDate>Mon, 16 Mar 2009 18:48:41 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[TC]]></category>
		<category><![CDATA[Total Commander]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/336.html</guid>
		<description><![CDATA[Total Commander Service is a NT service, which supports: 1. Auto-launch TC when starting Windows 2. Hotkey: Win+Q to show/hide TC, or start TC when exit Please put the TotalCMDService.exe (52K) in TC&#8217;s directory, and run to install/uninstall the NT... ]]></description>
			<content:encoded><![CDATA[<p>Total Commander Service is a NT service, which supports:<br />
1. Auto-launch TC when starting Windows<br />
2. Hotkey: Win+Q to show/hide TC, or start TC when exit</p>
<p>Please put the TotalCMDService.exe (52K) in TC&#8217;s directory, and run to install/uninstall the NT service.</p>
<p>Tips, the best configuration:<br />
Operation:<br />
 Check &#8220;Allow only 1 copy of Total Commander at a time&#8221;<br />
 Uncheck &#8220;Move icon to system tray when minimized&#8221;</p>
<p>Feel free to modify or distribute this code in any medium as long as these following two lines  remain unchanged:<br />
Total Commander Service, by bianbian.org@gmail.com<br />
<a href="http://bianbian.org/technology/336.html">http://bianbian.org/technology/336.html</a></p>
<p>Download exe:<a href='http://bianbian.org/wp-content/uploads/2009/03/totalcmdservice.zip' title='totalcmdservice.zip'>TotalCmdService.zip</a> (22K) , and src:<a href='http://bianbian.org/wp-content/uploads/2009/03/totalcmdservicesrc.zip' title='totalcmdservicesrc.zip'>TotalCmdServiceSrc.zip</a> (10K, VC++6.0)</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/service" title="Service" rel="tag">Service</a>, <a href="http://bianbian.org/tag/tc" title="TC" rel="tag">TC</a>, <a href="http://bianbian.org/tag/total-commander" title="Total Commander" rel="tag">Total Commander</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/335.html" title="[原] 自制Total Commander自动启动和呼出热键 (2009-03-16)">[原] 自制Total Commander自动启动和呼出热键</a> (11)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/336.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>[原] 自制Total Commander自动启动和呼出热键</title>
		<link>http://bianbian.org/technology/335.html</link>
		<comments>http://bianbian.org/technology/335.html#comments</comments>
		<pubDate>Mon, 16 Mar 2009 12:25:56 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[TC]]></category>
		<category><![CDATA[Total Commander]]></category>
		<category><![CDATA[服务]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/335.html</guid>
		<description><![CDATA[经历多次安装卸载安装卸载，我这次终于静下心来琢磨了一下传说中的Total Commander。 总算有点上手了，确实方便，尤其现在内存大，根本不在乎耗多少资源。哈哈 不过郁闷的是这个玩意定义了... ]]></description>
			<content:encoded><![CDATA[<p>经历多次安装卸载安装卸载，我这次终于静下心来琢磨了一下传说中的Total Commander。<br />
总算有点上手了，确实方便，尤其现在内存大，根本不在乎耗多少资源。哈哈<br />
不过郁闷的是这个玩意定义了那么多快捷键，却不支持呼出自己的快捷键。。。<br />
好吧，我写个了windows NT 服务，来启动Total Commander。。。<br />
同时注册了个全局热键（快捷键）：Win+Q 来呼出Total Commander<br />
Win+Q：T400的键盘这两个键，对我的手来说刚好是左手拇指和小指很舒服的位置。如果要改您下源码改吧<br />
在注册表里扫了一遍，居然没有total commander的任何信息，果然绿色。<br />
好吧，我承认，现在由于忙的关系，这个服务只做了个框。。。。过几天发布。。。。<br />
补充：<br />
好吧，发布了，嘿嘿：<a href="http://bianbian.org/technology/336.html">[原] Total Commander Service to show/hide TC by hotkey/boss key/shortcut key</a><br />
1. 是系统服务（意味着没登录就启动TC了）<br />
2. Win+Q隐藏或者呼出TC<br />
下载到TC的目录里运行，安装/反安装（第一次运行安装，第二次卸载，。。。）。<br />
由于是系统服务（默认用户是LocalSystem），如果直接启动TC也将以LocalSystem的身份运行，会带来很多问题（比如输入法就启动不了了）。<br />
因此程序调用API（LogonUser）先进行了模拟登录，所以安装的时候需要输入用户密码。</p>
<p>Download exe:<a href='http://bianbian.org/wp-content/uploads/2009/03/totalcmdservice.zip' title='totalcmdservice.zip'>TotalCmdService.zip</a> (22K) , and src:<a href='http://bianbian.org/wp-content/uploads/2009/03/totalcmdservicesrc.zip' title='totalcmdservicesrc.zip'>TotalCmdServiceSrc.zip</a> (10K, VC++6.0)</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/tc" title="TC" rel="tag">TC</a>, <a href="http://bianbian.org/tag/total-commander" title="Total Commander" rel="tag">Total Commander</a>, <a href="http://bianbian.org/tag/%e6%9c%8d%e5%8a%a1" title="服务" rel="tag">服务</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/336.html" title="[原] Total Commander Service to show/hide TC by hotkey/boss key/shortcut key (2009-03-17)">[原] Total Commander Service to show/hide TC by hotkey/boss key/shortcut key</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/335.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>[转] T400 XP系统安装步骤</title>
		<link>http://bianbian.org/technology/334.html</link>
		<comments>http://bianbian.org/technology/334.html#comments</comments>
		<pubDate>Fri, 13 Mar 2009 09:09:10 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[AHCI]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[T400]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/334.html</guid>
		<description><![CDATA[A. 首先开机按F1进入BIOS设置，进入configuration，然后在SATA里面将SATA模式设置compatibility（兼容模式），默认的是AHCI模式（高级主控接口），这一步很重要，否则安装XP时会蓝屏。其原因是因为XP... ]]></description>
			<content:encoded><![CDATA[<p>A. 首先开机按F1进入BIOS设置，进入configuration，然后在SATA里面将SATA模式设置compatibility（兼容模式），默认的是AHCI模式（高级主控接口），这一步很重要，否则安装XP时会蓝屏。其原因是因为XP系统安装盘一般不带SATA驱动。然后按F10，回车，退出BIOS设置。注意，在Ghost系统之前，也必须将此选项设置成compatibility，不然一般的DOS启动盘会发现不了硬盘的存在，导致Ghost失败，囧…</p>
<p>B. 开机按F12键选择从光驱启动</p>
<p>C. 系统安装（具体过程不再详解）</p>
<p>D. XP2的系统安装完毕。接下来的事情就是安装驱动程序了</p>
<p>E. 驱动安装（一共17个驱动）<br />
1. 首先安装Intel主板驱动程序<br />
2. 安装显卡驱动，注意，解压缩后，不要点击其子目录下的setup，而是分别安装driver和CCC两个子目录下的setup，然后再装一个.net fx 2.0<br />
3. 安装显示器驱动，在桌面显示属性里面手工升级驱动<br />
4. 安装无线网卡和网卡，看清楚自己的两个网卡型号了！无线网卡可直接setup，有线网卡必须用驱动更新方式手工安装<br />
5. 检查一下设备管理器中的系统设备下是否有“M$用于High Definition Audio的UAA总线驱动”，这个是安装MODOM和声卡的前提，如果没有的话，得先去找个M$的HD总线补丁打上（Thinkpad T400主板驱动中好像有，所以一般不要另装）<br />
6. 接下来声卡驱动、猫驱动、摄像头驱动安装<br />
7. 安装蓝牙驱动<br />
8. 接下来安装3个“基本系统设备”（4in1读卡器）<br />
9. 再安装智能读卡器驱动（这个貌似有点问题…需要inf手工右键点安装）<br />
10. 接下来安装指纹的驱动程序<br />
11. 再安装AMT，这个比较恶心，对应着两个未知设备，一个叫“PCI简易通讯控制器”，一个叫“PCI串行口”，两个联想的AMT驱动都必须装<br />
12. 接下来再装迅盘驱动，对应着设备管理器中的“PCI内存控制器”，必须手工升级驱动。虽然迅盘在XP下不起作用，但还是要安装的，不然每次重启都提示找到新硬件，甚烦！<br />
13. 安装SATA驱动程序。这个是个难点。解开驱动压缩，首先运行其中prepare子目录中的install.bat，然后重启，记得进系统前一定要先将BIOS SATA configuration从compatibility改为AHCI；重启后，再在设备管理器中，展开IDE ATA/ATAPI控制器，发现其中有个”PCI Device”，然后手工升级这个驱动，SATA这才安装完毕。<br />
14. 再安装TPM安全芯片驱动，这个在设备管理器中对应着某个“未知设备”，必须手工升级驱动，驱动在TPM子目录里面<br />
15. 然后安装电源管理驱动和电源管理软件，至此，在设备管理器中扫描检测硬件改动，不会发现有任何未识别的设备。</p>
<p>F. 最后，可根据需要，把检测硬盘震动、Access Connections、Presentation Director、Hotkey Features等软件装上</p>
<p>from: http://www.cppblog.com/w2001/archive/2009/02/24/74741.html</p>
<p>AMT可以在BIOS里禁用，呵呵。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/ahci" title="AHCI" rel="tag">AHCI</a>, <a href="http://bianbian.org/tag/bios" title="BIOS" rel="tag">BIOS</a>, <a href="http://bianbian.org/tag/sata" title="SATA" rel="tag">SATA</a>, <a href="http://bianbian.org/tag/t400" title="T400" rel="tag">T400</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/342.html" title="[原] Paragon Partition Manager真是太牛了 (2009-04-06)">[原] Paragon Partition Manager真是太牛了</a> (1)</li>
	<li><a href="http://bianbian.org/technology/344.html" title="[原] Thinkpad T400在Windows XP下装蓝牙的办法 (2009-05-01)">[原] Thinkpad T400在Windows XP下装蓝牙的办法</a> (3)</li>
	<li><a href="http://bianbian.org/technology/214.html" title="[哎]WD800JD的SATA 80G无法被VIA8237识别 (2007-09-28)">[哎]WD800JD的SATA 80G无法被VIA8237识别</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/334.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法</title>
		<link>http://bianbian.org/technology/333.html</link>
		<comments>http://bianbian.org/technology/333.html#comments</comments>
		<pubDate>Mon, 02 Mar 2009 13:26:57 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Marshal]]></category>
		<category><![CDATA[struct]]></category>
		<category><![CDATA[泛型]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/333.html</guid>
		<description><![CDATA[背景简单提一下：好多个C/C++构成的结构体（struct）数据需要在C#中读取，他们可能在文件中或网络中（总之有办法转为流Stream）。 在C#中用Marshal的PtrToStructure()可以实现byte[]向struct的转变。 不... ]]></description>
			<content:encoded><![CDATA[<p>背景简单提一下：好多个C/C++构成的结构体（struct）数据需要在C#中读取，他们可能在文件中或网络中（总之有办法转为流Stream）。<br />
在C#中用Marshal的PtrToStructure()可以实现byte[]向struct的转变。<br />
不过如果每个struct都要写个方法也太低效了，尤其是我现在遇到几十个struct的情况。。。。<br />
研究了一下泛型（C#2.0就支持了），发现方法泛型可以解决这个问题。<br />
<span id="more-333"></span><br />
实现了从流中读取struct的通用方法。代码如下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: #ffa500;">/// 从流中读取struct的通用方法</span></li>
<li><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: #ffa500;">/// &lt;param name=&quot;_struct&quot;&gt;struct类型&lt;/param&gt;</span></li>
<li><span style="color: #ffa500;">/// &lt;param name=&quot;stream&quot;&gt;流&lt;/param&gt;</span></li>
<li><span style="color: #ffa500;">/// &lt;returns&gt;字节读取数&lt;/returns&gt;</span></li>
<li><span style="color: #ffa500;">/// &lt;see&gt;http://bianbian.org/technology/333.html&lt;/see&gt;</span></li>
<li><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">static</span><span style="color: Gray;"> </span><span class="hl-types">int</span><span style="color: Gray;"> </span><span style="color: Blue;">ReadStruct</span><span style="color: Gray;">&lt;</span><span style="color: Blue;">T</span><span style="color: Gray;">&gt;</span><span style="color: Olive;">(</span><span style="color: Blue;">ref</span><span style="color: Gray;"> </span><span style="color: Blue;">T</span><span style="color: Gray;"> </span><span style="color: Blue;">_struct</span><span style="color: Gray;">, </span><span style="color: Blue;">Stream</span><span style="color: Gray;"> </span><span style="color: Blue;">stream</span><span style="color: Olive;">)</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; </span><span class="hl-types">int</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">size</span><span style="color: Gray;"> = </span><span style="color: Blue;">Marshal</span><span style="color: Gray;">.</span><span style="color: Blue;">SizeOf</span><span style="color: Olive;">(</span><span style="color: Blue;">_struct</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">byte</span><span style="color: Olive;">[]</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">buffer</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">byte</span><span style="color: Olive;">[</span><span style="color: Blue;">size</span><span style="color: Olive;">]</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">size</span><span style="color: Gray;"> = </span><span style="color: Blue;">stream</span><span style="color: Gray;">.</span><span style="color: Blue;">Read</span><span style="color: Olive;">(</span><span style="color: Blue;">buffer</span><span style="color: Gray;">, </span><span style="color: Maroon;">0</span><span style="color: Gray;">, </span><span style="color: Blue;">size</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: #ffa500;">//已读取字节，用size少用一个变量</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">GCHandle</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">pinned</span><span style="color: Gray;"> = </span><span style="color: Blue;">GCHandle</span><span style="color: Gray;">.</span><span style="color: Blue;">Alloc</span><span style="color: Olive;">(</span><span style="color: Blue;">buffer</span><span style="color: Gray;">, </span><span style="color: Blue;">GCHandleType</span><span style="color: Gray;">.</span><span style="color: Blue;">Pinned</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">_struct</span><span style="color: Gray;"> = </span><span style="color: Olive;">(</span><span style="color: Blue;">T</span><span style="color: Olive;">)</span><span style="color: Blue;">Marshal</span><span style="color: Gray;">.</span><span style="color: Blue;">PtrToStructure</span><span style="color: Olive;">(</span><span style="color: Blue;">pinned</span><span style="color: Gray;">.</span><span style="color: Blue;">AddrOfPinnedObject</span><span style="color: Olive;">()</span><span style="color: Gray;">, </span><span style="color: Blue;">typeof</span><span style="color: Olive;">(</span><span style="color: Blue;">T</span><span style="color: Olive;">))</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Blue;">pinned</span><span style="color: Gray;">.</span><span style="color: Blue;">Free</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Green;">return</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">size</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<p>使用也很简单，实现了对struct数据的通用读取：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">Struct_bianbian_org</span><span style="color: Gray;"> </span><span style="color: Blue;">tmp</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">Struct_bianbian_org</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">.</span><span style="color: Blue;">ReadStruct</span><span style="color: Gray;">&lt;</span><span style="color: Blue;">Struct_bianbian_org</span><span style="color: Gray;">&gt;</span><span style="color: Olive;">(</span><span style="color: Blue;">ref</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">tmp</span><span style="color: Gray;">, </span><span style="color: Blue;">stream</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Blue;">Struct2_bianbian_org</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">tmp2</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">Struct2_bianbian_org</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">.</span><span style="color: Blue;">ReadStruct</span><span style="color: Gray;">&lt;</span><span style="color: Blue;">Struct2_bianbian_org</span><span style="color: Gray;">&gt;</span><span style="color: Olive;">(</span><span style="color: Blue;">ref</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">tmp2</span><span style="color: Gray;">, </span><span style="color: Blue;">stream</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li></ol></div>
<p>遗憾的是，从C/C++的struct转到C#的struct需要耗费比较多的人品。<br />
我观察了一下，倒是可以考虑写个脚本自动切换。类似以前写的<a href="http://bianbian.org/technology/292.html">根据struct生成基于JSON-C的json_object代码</a></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/c" title="C#" rel="tag">C#</a>, <a href="http://bianbian.org/tag/marshal" title="Marshal" rel="tag">Marshal</a>, <a href="http://bianbian.org/tag/struct" title="struct" rel="tag">struct</a>, <a href="http://bianbian.org/tag/%e6%b3%9b%e5%9e%8b" title="泛型" rel="tag">泛型</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/332.html" title="[原] C# 3.0的委托(delegate)及Lambda表达式应用实例 (2009-03-02)">[原] C# 3.0的委托(delegate)及Lambda表达式应用实例</a> (1)</li>
	<li><a href="http://bianbian.org/technology/c/356.html" title="[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题 (2010-04-16)">[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题</a> (0)</li>
	<li><a href="http://bianbian.org/technology/292.html" title="[原] 根据struct生成基于JSON-C的json_object代码(auto generate function of C struct to JSON) (2008-04-09)">[原] 根据struct生成基于JSON-C的json_object代码(auto generate function of C struct to JSON)</a> (6)</li>
	<li><a href="http://bianbian.org/technology/javascript/190.html" title="[原] C的struct和JSON交互 (2007-07-15)">[原] C的struct和JSON交互</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/333.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[原] C# 3.0的委托(delegate)及Lambda表达式应用实例</title>
		<link>http://bianbian.org/technology/332.html</link>
		<comments>http://bianbian.org/technology/332.html#comments</comments>
		<pubDate>Mon, 02 Mar 2009 03:27:54 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[delegate]]></category>
		<category><![CDATA[Lambda]]></category>
		<category><![CDATA[Micaps]]></category>
		<category><![CDATA[委派]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/332.html</guid>
		<description><![CDATA[C# 3.0新增了很多特性，其中委托（delegate）配合Lambda表达式使得程序简洁了很多。 我也就来尝尝鲜（其实也不算鲜了，C# 4.0都出来了。。。），说说我的应用实例：读取Micaps（一种气象上用的... ]]></description>
			<content:encoded><![CDATA[<p>C# 3.0新增了很多特性，其中委托（delegate）配合Lambda表达式使得程序简洁了很多。<br />
我也就来尝尝鲜（其实也不算鲜了，C# 4.0都出来了。。。），说说我的应用实例：读取Micaps（一种气象上用的软件）数据文件。<br />
Micaps有各类数据文件，比如第一类表示地面填图，格式是：<br />
<em>diamond  1  屏幕上需显示的内容<br />
年  月  日  时次  总站点数<br />
区站号  经度  纬度 &#8230;&#8230;（后面的你也不关心，就略掉了）</em><br />
第二类表示高空填图，格式是：<br />
<em>diamond  2  屏幕上需显示的内容<br />
年  月  日  时次  层次 总站点数<br />
&#8230;&#8230; （参数与地面当然不一样）</em></code><br />
如上，第一行是所有文件的通用信息，表示了该文件的类型、标题等，后面就是具体数据，每类文件格式不一。<br />
于是，就要针对不同类型写不同的处理方法，但是，打开文件、关闭文件、检验第一行 这些又是一样的，导致代码重复。<br />
这时候，委托就非常有意义：可以在父类里完成通用处理，而具体的数据处理通过委托交给子类具体负责。<br />
<span id="more-332"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: #ffa500;">/// Micaps 数据格式基类</span></li>
<li><span style="color: #ffa500;">/// v1.0&nbsp; 090301, bianbian.org</span></li>
<li><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">abstract</span><span style="color: Gray;"> </span><span class="hl-types">class</span><span style="color: Gray;"> </span><span style="color: Blue;">Base</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//文件数据类型</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">protected</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">int</span><span style="color: Gray;"> </span><span style="color: Blue;">DataType</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: Blue;">get</span><span style="color: Gray;">; </span><span style="color: Blue;">set</span><span style="color: Gray;">; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//委派：LoadHandler</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">protected</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">delegate</span><span style="color: Gray;"> </span><span class="hl-types">bool</span><span style="color: Gray;"> </span><span style="color: Blue;">LoadHandler</span><span style="color: Olive;">(</span><span style="color: Blue;">StreamReader</span><span style="color: Gray;"> </span><span style="color: Blue;">reader</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// 读Micaps数据文件</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;param name=&quot;path&quot;&gt;文件路径&lt;/param&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;param name=&quot;handler&quot;&gt;&lt;/param&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">/// &lt;returns&gt;true：成功&nbsp; false：失败&lt;/returns&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">protected</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">bool</span><span style="color: Gray;"> </span><span style="color: Blue;">Load</span><span style="color: Olive;">(</span><span style="color: Blue;">string</span><span style="color: Gray;"> </span><span style="color: Blue;">path</span><span style="color: Gray;">, </span><span style="color: Blue;">LoadHandler</span><span style="color: Gray;"> </span><span style="color: Blue;">handler</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">StreamReader</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">reader</span><span style="color: Gray;"> = </span><span style="color: Blue;">null</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">try</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">reader</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">StreamReader</span><span style="color: Olive;">(</span><span style="color: Blue;">path</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//micaps数据第一行: &quot;DIAMOND 类型编号 title&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">string</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">line</span><span style="color: Gray;"> = </span><span style="color: Blue;">reader</span><span style="color: Gray;">.</span><span style="color: Blue;">ReadLine</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="hl-mlcomment">/*此处是对第一行的类型检查，跟本文主题无关，略)*/</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//后续load交给子类完成</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">return</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">handler</span><span style="color: Olive;">(</span><span style="color: Blue;">reader</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">catch</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">Exception</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">return</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">false</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">finally</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Olive;">(</span><span style="color: Blue;">reader</span><span style="color: Gray;"> != </span><span style="color: Blue;">null</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">reader</span><span style="color: Gray;">.</span><span style="color: Blue;">Close</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<p>如上，基类创建了LoadHandler这个委托类型，使得可以动态调用子类具体的操作。<br />
如下是第一类数据格式的子类</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #ffa500;">/// &lt;summary&gt;</span></li>
<li><span style="color: #ffa500;">/// Micaps第一类数据格式（地面）：</span></li>
<li><span style="color: #ffa500;">/// &lt;/summary&gt;</span></li>
<li><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">class</span><span style="color: Gray;"> </span><span style="color: Blue;">Surface</span><span style="color: Gray;"> : </span><span style="color: Blue;">Base</span></li>
<li><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">Surface</span><span style="color: Olive;">()</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">DataType</span><span style="color: Gray;"> = </span><span style="color: Maroon;">1</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">bool</span><span style="color: Gray;"> </span><span style="color: Blue;">Load</span><span style="color: Olive;">(</span><span style="color: Blue;">string</span><span style="color: Gray;"> </span><span style="color: Blue;">path</span><span style="color: Olive;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//C# 3.0 Lambda表达式，实际建立了匿名delegate方法</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">return</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">Load</span><span style="color: Olive;">(</span><span style="color: Blue;">path</span><span style="color: Gray;">, </span><span style="color: Olive;">(</span><span style="color: Blue;">StreamReader</span><span style="color: Gray;"> </span><span style="color: Blue;">reader</span><span style="color: Olive;">)</span><span style="color: Gray;"> =&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="hl-mlcomment">/*此处为具体的读取数据处理方法，每个子类不同*/</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">return</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">false</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">})</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Olive;">}</span></li></ol></div>
<p>其中的 (StreamReader reader) => {} 就是传说中的Lambda表达式，实际相当于：<br />
delegate(StreamReader reader) {}<br />
当然，C#3.0编译器够聪明，第14行甚至可以写成 return Load(path, reader => ...<br />
不过我觉得这样写以后看代码可能会晕，既然编译结果是一样的，何必省那么几个字呢。。。。<br />
关于C#1.0 2.0 3.0的delegate演变可以看看这篇文章，总结得很好了：</p>
<p>http://huan-lin.blogspot.com/2009/01/delegate-revisited-csharp-1-to-2-to-3.html</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/c" title="C#" rel="tag">C#</a>, <a href="http://bianbian.org/tag/delegate" title="delegate" rel="tag">delegate</a>, <a href="http://bianbian.org/tag/lambda" title="Lambda" rel="tag">Lambda</a>, <a href="http://bianbian.org/tag/micaps" title="Micaps" rel="tag">Micaps</a>, <a href="http://bianbian.org/tag/%e5%a7%94%e6%b4%be" title="委派" rel="tag">委派</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/212.html" title="[原]Linux下的c/c++ GDB调试 (2007-09-18)">[原]Linux下的c/c++ GDB调试</a> (7)</li>
	<li><a href="http://bianbian.org/technology/javascript/361.html" title="[原] 一种将数据表DataTable转为JSON格式的新方法 (2010-09-23)">[原] 一种将数据表DataTable转为JSON格式的新方法</a> (11)</li>
	<li><a href="http://bianbian.org/technology/c/356.html" title="[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题 (2010-04-16)">[原] COM调用PowerPoint后PowerPNT.exe进程仍驻留内存的问题</a> (0)</li>
	<li><a href="http://bianbian.org/technology/333.html" title="[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法 (2009-03-02)">[原] C#泛型实现流中C/C++格式的struct数据的通用读取方法</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/332.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] 去除csdn的blog上复制下来代码的行号</title>
		<link>http://bianbian.org/technology/331.html</link>
		<comments>http://bianbian.org/technology/331.html#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:08:34 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[csdn]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/331.html</guid>
		<description><![CDATA[001 line 1 002 line 2 ==> line 1 line 2 不好意思，shell不太熟悉，只好用个php。。。欢迎补充其他语言的一行代码： php -r&#160;'$a=file(&#34;src.cpp&#34;); for($i=0;$i&#60;count($a);$i++)$a[$i]=substr($a[$i],4); echo join($a,&#... ]]></description>
			<content:encoded><![CDATA[<p>001 line 1<br />
002 line 2<br />
==><br />
line 1<br />
line 2<br />
不好意思，shell不太熟悉，只好用个php。。。欢迎补充其他语言的一行代码：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">php</span><span style="color: Gray;"> -</span><span style="color: Blue;">r</span><span style="color: Gray;">&nbsp;</span><span style="color: #8b0000;">'</span><span style="color: Red;">$a=file(&quot;src.cpp&quot;); for($i=0;$i&lt;count($a);$i++)$a[$i]=substr($a[$i],4); echo join($a,&quot;&quot;);</span><span style="color: #8b0000;">'</span><span style="color: Gray;"> &gt; </span><span style="color: Blue;">src</span><span style="color: Gray;">.</span><span style="color: Blue;">cpp</span></li>
</ol></div>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/csdn" title="csdn" rel="tag">csdn</a>, <a href="http://bianbian.org/tag/php" title="php" rel="tag">php</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/141.html" title="[原]php版md5,sha-1哪个更快 (2007-03-16)">[原]php版md5,sha-1哪个更快</a> (0)</li>
	<li><a href="http://bianbian.org/technology/295.html" title="[原] php读取二进制流（C语言结构体struct数据文件） (2008-04-20)">[原] php读取二进制流（C语言结构体struct数据文件）</a> (9)</li>
	<li><a href="http://bianbian.org/technology/140.html" title="[原]发现php几个很方便的函数 (2007-03-16)">[原]发现php几个很方便的函数</a> (2)</li>
	<li><a href="http://bianbian.org/technology/143.html" title="[原]超级简单访问PostgreSQL的小型php类 (2007-03-17)">[原]超级简单访问PostgreSQL的小型php类</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/331.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] 评杂技剧《齐风鲁韵·粉墨》</title>
		<link>http://bianbian.org/not-it/entertainment/328.html</link>
		<comments>http://bianbian.org/not-it/entertainment/328.html#comments</comments>
		<pubDate>Wed, 26 Nov 2008 10:01:56 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[粉墨]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/entertainment/328.html</guid>
		<description><![CDATA[有幸又去了保利剧院一次，这次看的是杂技剧《齐风鲁韵·粉墨》。 主要特色是在杂技内混入了京剧的元素，用京剧的场景带出杂技表演。 其实单单从京剧的眼光看，比较胡乱；单单从杂技的... ]]></description>
			<content:encoded><![CDATA[<p>有幸又去了保利剧院一次，这次看的是杂技剧《齐风鲁韵·粉墨》。<br />
主要特色是在杂技内混入了京剧的元素，用京剧的场景带出杂技表演。<br />
其实单单从京剧的眼光看，比较胡乱；单单从杂技的眼光看，也并不非常出彩，甚至N多失误的。<br />
不过从我普通百姓的角度，挺有意思的，单幕之间的小穿插也很有趣；从大家热烈的鼓掌来看也比上次太过需要艺术欣赏力的《马可波罗·神游》的大众效果要好多了。<br />
所以，什么东西互相结合一下，炒作个概念就是创新，就能博得掌声。<br />
IT其实一直在做这个事情，不是吗？</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e7%b2%89%e5%a2%a8" title="粉墨" rel="tag">粉墨</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/entertainment/328.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[转] 记南京大学</title>
		<link>http://bianbian.org/not-it/327.html</link>
		<comments>http://bianbian.org/not-it/327.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:42:03 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Not IT]]></category>
		<category><![CDATA[南京大学]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/327.html</guid>
		<description><![CDATA[1、1956年，北大北师大成为全国重点大学时，这所学校不是重点大学。1960年，连合肥工业大学等60所高校成为全国重点大学时，这所学校依然不是重点大学。直到1978年，这所大学才成为80余所重... ]]></description>
			<content:encoded><![CDATA[<p>    1、1956年，北大北师大成为全国重点大学时，这所学校不是重点大学。1960年，连合肥工业大学等60所高校成为全国重点大学时，这所学校依然不是重点大学。直到1978年，这所大学才成为80余所重点大学之一。<br />
　　<br />
　　2、这所大学的老校长在国家教委门前的雪地里坐了一夜，才侥幸与北大北师大一起办起了研究生院。<br />
　　<br />
　　3、这所大学不是第一批16所副部级高校之一，确切的说，第二批也不是，只是后来增补的而已。<br />
　　<br />
　　4、这所大学党委书记直到2003年开始才由中组部任命，至于中央直接任命，那还差得远.<br />
　　<br />
　　5、这所学校的百年校庆7个中央政治局常委一个也没有出席，25个中央政治局委员一个也没出席，唯一一个出席的和中央沾点边的是一个刚刚当选的中央委员，说出来大家也不认识，从来没在新闻联播上听过。<br />
　　<br />
　　6、霍金访华的时候没有去过这所大学，尽管他的论文中曾经数十次引用过这所大学天文、物理系发表在《science》、《nature》上的论文。<br />
　　<br />
　　7、联合国秘书长曾经到过这所大学，但是百年校庆的时候谁也没有提醒他应该发个贺电过来。</p>
<p>　　8、人民日报十年刊登的关于这所大学的新闻不超过十条。而且多数都是一笔带过或者偶尔提到。<br />
　　<br />
　　9、这所大学的学生不能确定自己的母校是不是被国人尊敬<br />
　　<br />
　　10、这所大学得师生从来不敢在外面说自己是中国最杰出的***之一<br />
　　<br />
　　11、90年代，这所大学的校长因为学校日益困难窘迫，愤而辞职。这所学校的党委书记因为全校帐上只剩下5万块钱不得不四处借款给老师发工资<br />
　　<br />
　　12、97年，这所学校为了筹措经费，曾经万不得已，打算卖掉有着百年历史的老校区，卖掉自己的根，甚至打算把象征学校精神的老建筑出租给酒店。<br />
　　<br />
　　13、这所学校20年前动工兴建的新校区到前几年还没有图书馆，只有一个用建筑工棚组成的阅览室。新校区里的很多建筑和景观都是历届师生义务劳动建设起来的，里面的一草一木，国家没有投资一分钱。<br />
　　<br />
　　14、曾经是国立中央大学，这就是她的原罪。被国家拆成十几份中央大学的残余——南京大学，在建国后，忍受着国家对其规模的和投资的严格限制，在91年-98年以区区300位教授和不到北大五分之一的拨款，连续8年SCI收录、引用全国第一，至今其引用指标依然独占鳌头，令有千余位教授的北大汗颜不止。<br />
　　<br />
　　15、永远无法忘记，那一年风雪交加的元旦之夜。前校长曲钦岳先生在校广播里致新年贺词和辞职声明：“国家对教育口惠而实不至， 我已身心疲惫，万难继续校长的工作。”<br />
　　<br />
　　16、位列前五的大学,科研经费全国30名之外,得不到国家的帮助,要靠南大人自己奋斗.</p>
<p>     进入南京大学的校门，你或许会惊讶于他的朴素，然而低矮的围墙和破旧的铁门并没让他减色。门旁的两边墙壁上赫然写着：团结紧张，严肃活泼。不禁让人暗笑——可爱而朴实，恍然置身小学的校门。</p>
<p>   记得蒋树声校长说——南大最大的一个传统是“诚”——诚心做人做事做学问，并踏实的去做。</p>
<p>    也记得校友台湾经济设计者李国鼎先生曾为南大写下“与世界一流大学齐名”，也记得校友两弹一星程怀甲先生热烈盼望南大早日成为世界一流大学，还记得杨振宁先生说中国曾经走出国门留学的物理科学家堪称世界第一流的只有两位——南京大学的施士元先生和吴健雄女士。</p>
<p>    这就是南大，一个静默而清净的地方，若一位博学多才而超然出世的老者，笑容可掬地看着现在的世界，他没有点头迎合，也没有摇头赞赏，因为这些都不是他所关注的，那一卷古书，一缕墨香，一盏枯灯才是他灵魂的所在。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e5%8d%97%e4%ba%ac%e5%a4%a7%e5%ad%a6" title="南京大学" rel="tag">南京大学</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/327.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[唉] 最近太忙太累，郁闷</title>
		<link>http://bianbian.org/not-it/325.html</link>
		<comments>http://bianbian.org/not-it/325.html#comments</comments>
		<pubDate>Tue, 21 Oct 2008 14:19:27 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Not IT]]></category>
		<category><![CDATA[郁闷]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/325.html</guid>
		<description><![CDATA[开会、调研刚回来，又连着开一星期会 晚上还要改标书，还要准备这样那样的事情 累的一比，真像陀便便了 HK的水平和财力我们真是没法比 唉，一万年能不能赶上？ 太忙太累真是郁闷啊！ 可... ]]></description>
			<content:encoded><![CDATA[<p>开会、调研刚回来，又连着开一星期会<br />
晚上还要改标书，还要准备这样那样的事情<br />
累的一比，真像陀便便了</p>
<p>HK的水平和财力我们真是没法比<br />
唉，一万年能不能赶上？</p>
<p>太忙太累真是郁闷啊！<br />
可能唯一的好处就是省钱（横坐标为10月份，纵坐标为每天的支出）：<br />
<img src='http://bianbian.org/wp-content/uploads/2008/10/money.JPG' alt='money.JPG' /><br />
9号那么多是因为房租。十一过后就没怎么休息过，哪天才能好好睡一觉啊？？？？？<br />
55555555，哪里能收留我这个可怜的小孩啊？再这样下去我要废了！</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e9%83%81%e9%97%b7" title="郁闷" rel="tag">郁闷</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/325.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[嗯] 最后一个长假之总结篇</title>
		<link>http://bianbian.org/not-it/323.html</link>
		<comments>http://bianbian.org/not-it/323.html#comments</comments>
		<pubDate>Sat, 04 Oct 2008 14:40:36 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[十一]]></category>
		<category><![CDATA[购物]]></category>
		<category><![CDATA[长假]]></category>
		<category><![CDATA[骑车]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/323.html</guid>
		<description><![CDATA[关键词：购物、骑车、美剧、宅 购物： 天虹商场100送50，而且送的钱12月底才过期；满1000送500积分（不过积分没啥用，3000才换30元） 跟其他商场的券不太一样，能直接买化妆品、超市（天虹都... ]]></description>
			<content:encoded><![CDATA[<div style="float:right"><img src='http://bianbian.org/wp-content/uploads/2008/10/chouxian.JPG' alt='chouxian.JPG' /></div>
<p>关键词：购物、骑车、美剧、宅<br />
<strong>购物</strong>：<br />
天虹商场100送50，而且送的钱12月底才过期；满1000送500积分（不过积分没啥用，3000才换30元）<br />
跟其他商场的券不太一样，能直接买化妆品、超市（天虹都带超市）<br />
艾格居然5折后还送<br />
我买了两件衬衫、一件马甲、一条长裤<br />
嘘嘘买了两件衣服、一条长裤、一条连衣裙<br />
最后算下来花去839&#8230;<br />
太便宜了</p>
<p>这里的超市也很方便，嘘嘘的折叠自行车能直接骑进去<br />
买完菜保安直接帮你拎到门口</p>
<p>总之，你就掏出积分卡，掏出提货卡，刷刷刷!</p>
<p><strong>骑车</strong>：<br />
自从抢了迪卡侬的下市打折款，另外从淘宝上补了400的装备后（右侧是装备臭显图），只骑出去过两次。<br />
一次是早上7点起来，准备骑到单位试试看16公里需要多久，结果因为嘘嘘一定要跟去而导致半路骑不动只好折回；<br />
一次是傍晚出去，准备到保利剧院那最高档的天虹看看，结局就是到了海岸城转了一圈没地方安全停车于是折回。<br />
不过说实话，早上骑车没有傍晚骑车舒服，在徐徐的海风下，全身真是舒适到极点。（也许是不够早的缘故）<br />
不过深圳没有自行车道，很是郁闷和鄙视城市规划的，自行车按规定要在人行道上骑<br />
——那怎么骑啊？！某些路段还必须上天桥！所以很多路不得不抢机动车道啊。<br />
<span id="more-323"></span><br />
<strong>美剧</strong>：<br />
总算把LOST第四季、Gossip Girl第一季看完了，追着看了heroes第三季<br />
感觉LOST越来越玄乎编剧越来越扯了，heroes和第二季接不上。<br />
看多了，美剧也就那样了，还有最致命的一点：美剧都是太监剧（拍太好了续集，直到拍不好了咔嚓。。。）</p>
<p>宅就不说了，这里感谢嘘嘘烧饭给我吃~~~</p>
<p>总结：最后一个长假过得非常平淡充实，其实那就是生活的真谛。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e5%8d%81%e4%b8%80" title="十一" rel="tag">十一</a>, <a href="http://bianbian.org/tag/%e8%b4%ad%e7%89%a9" title="购物" rel="tag">购物</a>, <a href="http://bianbian.org/tag/%e9%95%bf%e5%81%87" title="长假" rel="tag">长假</a>, <a href="http://bianbian.org/tag/%e9%aa%91%e8%bd%a6" title="骑车" rel="tag">骑车</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/323.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[嗯] 得消掉一些信用卡，实在太多了</title>
		<link>http://bianbian.org/not-it/322.html</link>
		<comments>http://bianbian.org/not-it/322.html#comments</comments>
		<pubDate>Fri, 03 Oct 2008 03:15:29 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[信用卡]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/322.html</guid>
		<description><![CDATA[工行： 太平人生信用卡 牡丹寻味美食卡 牡丹岁宝联名卡 国康保健信用卡 高尔夫畅打卡 招行： young卡 招行普卡 奥运卡 其他： 民生 兴业 交行 中信 浦发 &#169;2012 便便代码人生. All Rights Reserved... ]]></description>
			<content:encoded><![CDATA[<p>工行：<br />
<table cellspacing=0 cellpadding=1 border=1>
<tr>
<td><img src="http://www.51credit.com/ZhuanTiZongHui/ZhuanTi-Bank/gonghang/mudanka/images/card2-1.jpg" width=100/><br />太平人生信用卡</td>
<td><img src="http://cc.51credit.com/cim/resources/image/ICBC/1021027001.jpg" width=100/><br />牡丹寻味美食卡</td>
<td><img src="http://www.yongka.com/UpFile/BankCardIcon/9d41c53f0b2e4a1d9b1ad8f8576feb4f.GIF" width=100/><br />牡丹岁宝联名卡</td>
<td><img src="http://cc.51credit.com/cim/resources/image/ICBC/1021033001.jpg" width=100/><br />国康保健信用卡</td>
<td><img src="http://cc.51credit.com/cim/resources/image/ICBC/1021034001.jpg" width=100/><br />高尔夫畅打卡</td>
</tr>
</table>
<p>招行：<br />
<table cellspacing=0 cellpadding=1 border=1>
<tr>
<td><img src="http://cc.51credit.com/cim/resources/image/CMB/3081005001.gif" width=100/><br />young卡</td>
<td><img src="http://cc.51credit.com/cim/resources/image/CMB/3081006001.gif" width=100/><br />招行普卡</td>
<td><img src="http://cc.51credit.com/cim/resources/image/CMB/3081045001.jpg" width=100/><br />奥运卡</td>
</tr>
</table>
<p>其他：<br />
<table cellspacing=0 cellpadding=1 border=1>
<tr>
<td><img src="http://cc.51credit.com/cim/resources/image/MIN/3051007004.jpg" width=100/><br />民生</td>
<td><img src="http://cc.51credit.com/cim/resources/image/CIB/3091003004.jpg" width=100/><br />兴业</td>
<td><img src="http://cc.51credit.com/cim/resources/image/BOCM/3011006001.jpg" width=100/><br />交行</td>
<td><img src="http://cc.51credit.com/cim/resources/image/CITIC/3021030002.jpg" width=100/><br />中信</td>
<td><img src="http://cc.51credit.com/cim/resources/image/SPDB/3101003001.jpg" width=100/><br />浦发</td>
</tr>
</table>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e4%bf%a1%e7%94%a8%e5%8d%a1" title="信用卡" rel="tag">信用卡</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/138.html" title="[呜]可怜的信用卡终于申请下来了 (2007-03-14)">[呜]可怜的信用卡终于申请下来了</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/147.html" title="[怒]招行信用卡800破系统气死我了 (2007-03-22)">[怒]招行信用卡800破系统气死我了</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/322.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[嗯] 搞了辆迪卡侬Rockrider 5.2</title>
		<link>http://bianbian.org/not-it/320.html</link>
		<comments>http://bianbian.org/not-it/320.html#comments</comments>
		<pubDate>Tue, 30 Sep 2008 15:11:07 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[车]]></category>
		<category><![CDATA[运动]]></category>
		<category><![CDATA[迪卡侬]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/320.html</guid>
		<description><![CDATA[在嘘嘘看中一小店一款折叠小车之后，谨慎的我们回到家准备search一番相关信息避免被忽悠。 这时候，历来脑残的我又一次打开了迪卡侬的网站，脑残地发现上次试骑的Rockrider 5.2国庆促销降价... ]]></description>
			<content:encoded><![CDATA[<p>在嘘嘘看中一小店一款折叠小车之后，谨慎的我们回到家准备search一番相关信息避免被忽悠。<br />
这时候，历来脑残的我又一次打开了迪卡侬的网站，脑残地发现上次试骑的Rockrider 5.2国庆促销降价了2百，而且库存只剩<5辆！！！<br />
哇，这个晴天霹雳太有魅力了。。。。<br />
和嘘嘘准备冲到小店砍了小车，再打车到迪卡侬搞大车，最后夫妻双双骑车把家还。。。<br />
朋友们，作出这个豪迈的决定时宜家淘回来的小钟战战兢兢快跳到20点半了（迪卡侬22点谢客）<br />
<span id="more-320"></span><br />
。。。（略去和小店砍价的一千八百字，换回三十五大洋）。。。<br />
。。。（略去试车的三百字）。。。<br />
。。。（略去天仙配的几百字）。。。<br />
太监帖结束，上图一张（广告效果图）：<br />
<img src='http://bianbian.org/wp-content/uploads/2008/09/gd-asset_13216904.jpg' alt='Decathlon Rockrider 5.2' /></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e8%bd%a6" title="车" rel="tag">车</a>, <a href="http://bianbian.org/tag/%e8%bf%90%e5%8a%a8" title="运动" rel="tag">运动</a>, <a href="http://bianbian.org/tag/%e8%bf%aa%e5%8d%a1%e4%be%ac" title="迪卡侬" rel="tag">迪卡侬</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li>无相关日志.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/320.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[嗯] 有了这个就稍微爽一点了</title>
		<link>http://bianbian.org/not-it/318.html</link>
		<comments>http://bianbian.org/not-it/318.html#comments</comments>
		<pubDate>Sun, 28 Sep 2008 12:13:03 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[机场]]></category>
		<category><![CDATA[深圳]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/318.html</guid>
		<description><![CDATA[可以送人上飞机，上飞机接人了。走过路过深圳千万联系我。^_^ 又胖了，5555 听说在候机楼吃饭还能打折，ft &#169;2012 便便代码人生. All Rights Reserved.. 标签: 机场, 深圳遵守创作共用协议，转载... ]]></description>
			<content:encoded><![CDATA[<p>可以送人上飞机，上飞机接人了。走过路过深圳千万联系我。^_^<br />
又胖了，5555<br />
<img src='http://bianbian.org/wp-content/uploads/2008/09/airport.jpg' alt='airport.jpg' /><br />
听说在候机楼吃饭还能打折，ft</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e6%9c%ba%e5%9c%ba" title="机场" rel="tag">机场</a>, <a href="http://bianbian.org/tag/%e6%b7%b1%e5%9c%b3" title="深圳" rel="tag">深圳</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/312.html" title="[图] 深圳生活剪影 (2008-08-13)">[图] 深圳生活剪影</a> (1)</li>
	<li><a href="http://bianbian.org/not-it/259.html" title="[转] 深圳空管站与深圳气象局将实现气象信息共享 (2008-02-23)">[转] 深圳空管站与深圳气象局将实现气象信息共享</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/318.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[呜] 嘘嘘出差后</title>
		<link>http://bianbian.org/not-it/317.html</link>
		<comments>http://bianbian.org/not-it/317.html#comments</comments>
		<pubDate>Mon, 22 Sep 2008 14:52:32 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[嘘嘘]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/317.html</guid>
		<description><![CDATA[彻彻底底的宅男了 没饭吃了。。。 一个星期花了50块，，其中30还是班车费。。。 啊。。。谁来救救我。。。 &#169;2012 便便代码人生. All Rights Reserved.. 标签: 嘘嘘遵守创作共用协议，转载请链... ]]></description>
			<content:encoded><![CDATA[<p>彻彻底底的宅男了<br />
没饭吃了。。。<br />
一个星期花了50块，，其中30还是班车费。。。<br />
啊。。。谁来救救我。。。 </p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e5%98%98%e5%98%98" title="嘘嘘" rel="tag">嘘嘘</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/115.html" title="[嗯]嘘嘘照片。:) (2007-01-29)">[嗯]嘘嘘照片。:)</a> (8)</li>
	<li><a href="http://bianbian.org/not-it/44.html" title="[嗯]找了个好老婆，嘿嘿 (2006-10-16)">[嗯]找了个好老婆，嘿嘿</a> (2)</li>
	<li><a href="http://bianbian.org/bianbian" title="便便 bianbian (2008-01-15)">便便 bianbian</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/317.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[图] 好久没来了，帖个图吧</title>
		<link>http://bianbian.org/not-it/315.html</link>
		<comments>http://bianbian.org/not-it/315.html#comments</comments>
		<pubDate>Fri, 19 Sep 2008 15:25:11 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[照片]]></category>

		<guid isPermaLink="false">http://bianbian.org/uncategorized/315.html</guid>
		<description><![CDATA[惠州巽寮湾，海水温泉真的很不错的。 &#169;2012 便便代码人生. All Rights Reserved.. 标签: 照片遵守创作共用协议，转载请链接形式注明来自http://bianbian.org 做人要厚道 相关日志 [补]上次去四川出差... ]]></description>
			<content:encoded><![CDATA[<p>惠州巽寮湾，海水温泉真的很不错的。<br />
<img src='http://bianbian.org/wp-content/uploads/2008/09/dsc02919.jpg' alt='dsc02919.jpg' /></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e7%85%a7%e7%89%87" title="照片" rel="tag">照片</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/180.html" title="[补]上次去四川出差的照片 (2007-06-15)">[补]上次去四川出差的照片</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/115.html" title="[嗯]嘘嘘照片。:) (2007-01-29)">[嗯]嘘嘘照片。:)</a> (8)</li>
	<li><a href="http://bianbian.org/not-it/163.html" title="[哈]珍珠泉还不错噢~~ (2007-04-19)">[哈]珍珠泉还不错噢~~</a> (4)</li>
	<li><a href="http://bianbian.org/not-it/entertainment/97.html" title="[哈]圣诞节奖了个数码相机，^_^ (2006-12-25)">[哈]圣诞节奖了个数码相机，^_^</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/315.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[图] 深圳生活剪影</title>
		<link>http://bianbian.org/not-it/312.html</link>
		<comments>http://bianbian.org/not-it/312.html#comments</comments>
		<pubDate>Tue, 12 Aug 2008 16:01:37 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[深圳]]></category>
		<category><![CDATA[照片]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/312.html</guid>
		<description><![CDATA[今天单位运动会，深圳靠近热带，不得不说太阳实在太毒辣。呆了一下午，见光的部位就这样了（火辣辣地疼）： &#169;2012 便便代码人生. All Rights Reserved.. 标签: 深圳, 照片遵守创作共用协议，... ]]></description>
			<content:encoded><![CDATA[<p>今天单位运动会，深圳靠近热带，不得不说太阳实在太毒辣。呆了一下午，见光的部位就这样了（火辣辣地疼）：<br />
<span id="more-312"></span><br />
<img src='http://bianbian.org/wp-content/uploads/2008/09/sun.jpg' alt='sun.jpg' /></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e6%b7%b1%e5%9c%b3" title="深圳" rel="tag">深圳</a>, <a href="http://bianbian.org/tag/%e7%85%a7%e7%89%87" title="照片" rel="tag">照片</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/259.html" title="[转] 深圳空管站与深圳气象局将实现气象信息共享 (2008-02-23)">[转] 深圳空管站与深圳气象局将实现气象信息共享</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/171.html" title="[嗯]咱也到过首都了。。。 (2007-05-24)">[嗯]咱也到过首都了。。。</a> (1)</li>
	<li><a href="http://bianbian.org/not-it/entertainment/97.html" title="[哈]圣诞节奖了个数码相机，^_^ (2006-12-25)">[哈]圣诞节奖了个数码相机，^_^</a> (7)</li>
	<li><a href="http://bianbian.org/not-it/115.html" title="[嗯]嘘嘘照片。:) (2007-01-29)">[嗯]嘘嘘照片。:)</a> (8)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/312.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] ftp4j的解析list的bug及解决</title>
		<link>http://bianbian.org/technology/311.html</link>
		<comments>http://bianbian.org/technology/311.html#comments</comments>
		<pubDate>Thu, 19 Jun 2008 12:08:52 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[ftp4j]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/311.html</guid>
		<description><![CDATA[上次推荐的ftp4j在解析部分FTP站点的目录list的时候遇到了FTPListParseException（也怪FTP协议没有对LIST格式作出标准）。查看源码发现，主要是两个问题： 1）文件权限不只rwx这三个，附加了s、t（详... ]]></description>
			<content:encoded><![CDATA[<p>上次<a href="http://bianbian.org/technology/294.html" target=_blank>推荐的ftp4j</a>在解析部分FTP站点的目录list的时候遇到了FTPListParseException（也怪FTP协议没有对LIST格式作出标准）。查看源码发现，主要是两个问题：<br />
1）文件权限不只rwx这三个，附加了s、t（详见<a href="http://en.wikipedia.org/wiki/File_system_permissions" target=_blank>http://en.wikipedia.org/wiki/File_system_permissions</a>）<br />
2）部分ftpd似乎直接调用的“ls -l”输出目录，第一行是“total xxx”<br />
给作者写信了，说不定下个版本就有Sepcial Thanks to bianbian 了。嘿嘿嘿嘿。。。<br />
修正后的代码（省略后面没有变化的部分）：<br />
<span id="more-311"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">public</span><span style="color: Gray;"> </span><span style="color: Green;">class</span><span style="color: Gray;"> </span><span style="color: Blue;">UnixListParser</span><span style="color: Gray;"> </span><span style="color: Green;">implements</span><span style="color: Gray;"> </span><span style="color: Blue;">FTPListParser</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">// bianbian.org: Pattern有问题，修正</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">private</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">static</span><span style="color: Gray;"> </span><span class="hl-types">final</span><span style="color: Gray;"> </span><span style="color: Blue;">Pattern</span><span style="color: Gray;"> </span><span style="color: Blue;">PATTERN</span><span style="color: Gray;"> = </span><span style="color: Blue;">Pattern</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .</span><span style="color: Blue;">compile</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">^([dlcbsp</span><span style="color: Navy;">\\</span><span style="color: Red;">-])[r</span><span style="color: Navy;">\\</span><span style="color: Red;">-][w</span><span style="color: Navy;">\\</span><span style="color: Red;">-][xsS</span><span style="color: Navy;">\\</span><span style="color: Red;">-][r</span><span style="color: Navy;">\\</span><span style="color: Red;">-][w</span><span style="color: Navy;">\\</span><span style="color: Red;">-][xsS</span><span style="color: Navy;">\\</span><span style="color: Red;">-][r</span><span style="color: Navy;">\\</span><span style="color: Red;">-][w</span><span style="color: Navy;">\\</span><span style="color: Red;">-][xtT</span><span style="color: Navy;">\\</span><span style="color: Red;">-]</span><span style="color: Navy;">\\</span><span style="color: Red;">s+</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">(?:</span><span style="color: Navy;">\\</span><span style="color: Red;">d+</span><span style="color: Navy;">\\</span><span style="color: Red;">s+)?</span><span style="color: Navy;">\\</span><span style="color: Red;">S+</span><span style="color: Navy;">\\</span><span style="color: Red;">s*</span><span style="color: Navy;">\\</span><span style="color: Red;">S+</span><span style="color: Navy;">\\</span><span style="color: Red;">s+(</span><span style="color: Navy;">\\</span><span style="color: Red;">d+)</span><span style="color: Navy;">\\</span><span style="color: Red;">s+(?:(</span><span style="color: Navy;">\\</span><span style="color: Red;">w{3})</span><span style="color: Navy;">\\</span><span style="color: Red;">s+(</span><span style="color: Navy;">\\</span><span style="color: Red;">d{1,2}))</span><span style="color: Navy;">\\</span><span style="color: Red;">s+</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">(?:(</span><span style="color: Navy;">\\</span><span style="color: Red;">d{4})|(?:(</span><span style="color: Navy;">\\</span><span style="color: Red;">d{1,2}):(</span><span style="color: Navy;">\\</span><span style="color: Red;">d{1,2})))</span><span style="color: Navy;">\\</span><span style="color: Red;">s+</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">([^</span><span style="color: Navy;">\\\\</span><span style="color: Red;">/*?</span><span style="color: Navy;">\&quot;</span><span style="color: Red;">&lt;&gt;|]+)(?: -&gt; ([^</span><span style="color: Navy;">\\\\</span><span style="color: Red;">*?</span><span style="color: Navy;">\&quot;</span><span style="color: Red;">&lt;&gt;|]+))?$</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">private</span><span style="color: Gray;">&nbsp;</span><span class="hl-types">static</span><span style="color: Gray;"> </span><span class="hl-types">final</span><span style="color: Gray;"> </span><span style="color: Blue;">DateFormat</span><span style="color: Gray;"> </span><span style="color: Blue;">DATE_FORMAT</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">SimpleDateFormat</span><span style="color: Olive;">(</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">MMM dd yyyy HH:mm</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">, </span><span style="color: Blue;">Locale</span><span style="color: Gray;">.</span><span style="color: Blue;">US</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Green;">public</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">FTPFile</span><span style="color: Olive;">[]</span><span style="color: Gray;"> </span><span style="color: Blue;">parse</span><span style="color: Olive;">(</span><span style="color: Blue;">String</span><span style="color: Olive;">[]</span><span style="color: Gray;"> </span><span style="color: Blue;">lines</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Green;">throws</span><span style="color: Gray;"> </span><span style="color: Blue;">FTPListParseException</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="hl-types">int</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">currentYear</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">GregorianCalendar</span><span style="color: Olive;">()</span><span style="color: Gray;">.</span><span style="color: Blue;">get</span><span style="color: Olive;">(</span><span style="color: Blue;">Calendar</span><span style="color: Gray;">.</span><span style="color: Blue;">YEAR</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="hl-types">int</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">i</span><span style="color: Gray;">, </span><span style="color: Blue;">jump</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">, </span><span style="color: Blue;">size</span><span style="color: Gray;"> = </span><span style="color: Blue;">lines</span><span style="color: Gray;">.</span><span style="color: Blue;">length</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">//bianbian.org: glftpd 的第一行和 ls -l 一样，会丢个&quot;total N&quot;过来，先去掉</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">size</span><span style="color: Gray;"> &gt; </span><span style="color: Maroon;">0</span><span style="color: Gray;"> &amp;&amp; </span><span style="color: Blue;">lines</span><span style="color: Olive;">[</span><span style="color: Maroon;">0</span><span style="color: Olive;">]</span><span style="color: Gray;">.</span><span style="color: Blue;">startsWith</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">total</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">size</span><span style="color: Gray;">--;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">jump</span><span style="color: Gray;"> = </span><span style="color: Maroon;">1</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">FTPFile</span><span style="color: Olive;">[]</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">ret</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">FTPFile</span><span style="color: Olive;">[</span><span style="color: Blue;">size</span><span style="color: Olive;">]</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">for</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">i</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">; </span><span style="color: Blue;">i</span><span style="color: Gray;"> &lt; </span><span style="color: Blue;">size</span><span style="color: Gray;">; </span><span style="color: Blue;">i</span><span style="color: Gray;">++</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">Matcher</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">m</span><span style="color: Gray;"> = </span><span style="color: Blue;">PATTERN</span><span style="color: Gray;">.</span><span style="color: Blue;">matcher</span><span style="color: Olive;">(</span><span style="color: Blue;">lines</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Gray;"> + </span><span style="color: Blue;">jump</span><span style="color: Olive;">])</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">matches</span><span style="color: Olive;">())</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">ret</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">]</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">FTPFile</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">// Retrieve the data.</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="hl-types">char</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">typeChar</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">1</span><span style="color: Olive;">)</span><span style="color: Gray;">.</span><span style="color: Blue;">charAt</span><span style="color: Olive;">(</span><span style="color: Maroon;">0</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">sizeString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">2</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">monthString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">3</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">dayString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">4</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">yearString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">5</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">hourString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">6</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">minuteString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">7</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">nameString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">8</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">String</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">linkedString</span><span style="color: Gray;"> = </span><span style="color: Blue;">m</span><span style="color: Gray;">.</span><span style="color: Blue;">group</span><span style="color: Olive;">(</span><span style="color: Maroon;">9</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #ffa500;">// Parse the data.</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">-cbsp</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">.</span><span style="color: Blue;">indexOf</span><span style="color: Olive;">(</span><span style="color: Blue;">typeChar</span><span style="color: Olive;">)</span><span style="color: Gray;"> &gt; -</span><span style="color: Maroon;">1</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">ret</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">]</span><span style="color: Gray;">.</span><span style="color: Blue;">setType</span><span style="color: Olive;">(</span><span style="color: Blue;">FTPFile</span><span style="color: Gray;">.</span><span style="color: Blue;">TYPE_FILE</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">else</span><span style="color: Gray;"> </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">typeChar</span><span style="color: Gray;"> == </span><span style="color: #8b0000;">'</span><span style="color: Red;">d</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">ret</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">]</span><span style="color: Gray;">.</span><span style="color: Blue;">setType</span><span style="color: Olive;">(</span><span style="color: Blue;">FTPFile</span><span style="color: Gray;">.</span><span style="color: Blue;">TYPE_DIRECTORY</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">else</span><span style="color: Gray;"> </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">typeChar</span><span style="color: Gray;"> == </span><span style="color: #8b0000;">'</span><span style="color: Red;">l</span><span style="color: #8b0000;">'</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">ret</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">]</span><span style="color: Gray;">.</span><span style="color: Blue;">setType</span><span style="color: Olive;">(</span><span style="color: Blue;">FTPFile</span><span style="color: Gray;">.</span><span style="color: Blue;">TYPE_LINK</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">ret</span><span style="color: Olive;">[</span><span style="color: Blue;">i</span><span style="color: Olive;">]</span><span style="color: Gray;">.</span><span style="color: Blue;">setLink</span><span style="color: Olive;">(</span><span style="color: Blue;">linkedString</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">else</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">throw</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">FTPListParseException</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; ...</span></li></ol></div>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/bug" title="bug" rel="tag">bug</a>, <a href="http://bianbian.org/tag/ftp" title="FTP" rel="tag">FTP</a>, <a href="http://bianbian.org/tag/ftp4j" title="ftp4j" rel="tag">ftp4j</a>, <a href="http://bianbian.org/tag/%e8%a7%a3%e5%86%b3" title="解决" rel="tag">解决</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/296.html" title="[原] 关于正则表达式批量替换字符串解决方案答网友问 (2008-04-20)">[原] 关于正则表达式批量替换字符串解决方案答网友问</a> (0)</li>
	<li><a href="http://bianbian.org/technology/280.html" title="[原] IDL剪贴板绘图在其他语言调用下失效的bug (2008-03-26)">[原] IDL剪贴板绘图在其他语言调用下失效的bug</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/202.html" title="[原]iframe跨域访问解决方案 (2007-08-24)">[原]iframe跨域访问解决方案</a> (9)</li>
	<li><a href="http://bianbian.org/uncategorized/169.html" title="[呜]招行的系统咋那么多问题，这次是ATM存款 (2007-05-13)">[呜]招行的系统咋那么多问题，这次是ATM存款</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/311.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>[啊] 好久没更新了，I&#8217;m back now!</title>
		<link>http://bianbian.org/not-it/310.html</link>
		<comments>http://bianbian.org/not-it/310.html#comments</comments>
		<pubDate>Tue, 03 Jun 2008 02:25:44 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Not IT]]></category>
		<category><![CDATA[照片]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/310.html</guid>
		<description><![CDATA[都在忙一件事情： &#169;2012 便便代码人生. All Rights Reserved.. 标签: 照片遵守创作共用协议，转载请链接形式注明来自http://bianbian.org 做人要厚道 相关日志 [补]上次去四川出差的照片 (0) [嗯]嘘嘘... ]]></description>
			<content:encoded><![CDATA[<p>都在忙一件事情：<br />
<img src='http://bianbian.org/wp-content/uploads/2008/06/bianbian_master.PNG' alt='bianbian_master.PNG' /></p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e7%85%a7%e7%89%87" title="照片" rel="tag">照片</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/180.html" title="[补]上次去四川出差的照片 (2007-06-15)">[补]上次去四川出差的照片</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/115.html" title="[嗯]嘘嘘照片。:) (2007-01-29)">[嗯]嘘嘘照片。:)</a> (8)</li>
	<li><a href="http://bianbian.org/not-it/312.html" title="[图] 深圳生活剪影 (2008-08-13)">[图] 深圳生活剪影</a> (1)</li>
	<li><a href="http://bianbian.org/not-it/107.html" title="[哈]镇江旅游归来～ (2007-01-14)">[哈]镇江旅游归来～</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/310.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[转] 民航气象区域预警预报</title>
		<link>http://bianbian.org/not-it/308.html</link>
		<comments>http://bianbian.org/not-it/308.html#comments</comments>
		<pubDate>Wed, 21 May 2008 08:02:47 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Meteorology]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[区域预警]]></category>
		<category><![CDATA[民航]]></category>
		<category><![CDATA[气象]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/308.html</guid>
		<description><![CDATA[随着我国民航运输业的迅猛发展，区域预警预报的作用日益突显，对此项技术的研究已成为迫在眉睫的任务。民航气象系统应加强综合立体探测系统的建设，加快精细化航空数值预报系统的建... ]]></description>
			<content:encoded><![CDATA[<p>    随着我国民航运输业的迅猛发展，区域预警预报的作用日益突显，对此项技术的研究已成为迫在眉睫的任务。民航气象系统应加强综合立体探测系统的建设，加快精细化航空数值预报系统的建设，通过加强实时探测资料的联网应用、建立航空危险天气要素预警预报模型和资料共享平台等手段，提高危险天气的预警和临近预报水平，为保障飞行安全、提高空域容量、提升运行效率提供辅助决策工具。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/%e5%8c%ba%e5%9f%9f%e9%a2%84%e8%ad%a6" title="区域预警" rel="tag">区域预警</a>, <a href="http://bianbian.org/tag/%e6%b0%91%e8%88%aa" title="民航" rel="tag">民航</a>, <a href="http://bianbian.org/tag/%e6%b0%94%e8%b1%a1" title="气象" rel="tag">气象</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/meteorology/355.html" title="[原] 珠三角航空气象工作小组第二次会议 (2010-03-18)">[原] 珠三角航空气象工作小组第二次会议</a> (0)</li>
	<li><a href="http://bianbian.org/not-it/259.html" title="[转] 深圳空管站与深圳气象局将实现气象信息共享 (2008-02-23)">[转] 深圳空管站与深圳气象局将实现气象信息共享</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/308.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原] gmail真是太强悍了！！！</title>
		<link>http://bianbian.org/technology/307.html</link>
		<comments>http://bianbian.org/technology/307.html#comments</comments>
		<pubDate>Thu, 15 May 2008 16:30:40 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/307.html</guid>
		<description><![CDATA[今天偶然又发现一个gmail强悍的功能： 把exe文件改名为doc，比如cmd.exe.doc，然后当附件上载。（因为不允许直接上载exe） 然后收到以后因为是doc结尾，会列出“在 HTML 格式下查看 以 Google 文档... ]]></description>
			<content:encoded><![CDATA[<p>今天偶然又发现一个gmail强悍的功能：<br />
把exe文件改名为doc，比如cmd.exe.doc，然后当附件上载。（因为不允许直接上载exe）<br />
然后收到以后因为是doc结尾，会列出“在 HTML 格式下查看 以 Google 文档打开 下载”功能，这时候点了“在HTML格式下查看”。我想出个乱码应该是常理。<br />
结果，强悍的gmail取出了exe里的格式信息（exe由几个段构成，详细请查询exe文件格式，此不赘述）：<br />
<span id="more-307"></span><br />
WINDOWS EXECUTABLE<br />
32bit for Windows 95 and Windows NT<br />
Technical File Information:<br />
Image File Header<br />
&#8230;.<br />
Image Optional Header<br />
&#8230;.<br />
Import Table<br />
&#8230;.<br />
Section Table<br />
&#8230;.<br />
Header Information<br />
&#8230;.<br />
太强悍了~~~一个email系统能做到这个份上，google怎能不强大~~~</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/gmail" title="gmail" rel="tag">gmail</a>, <a href="http://bianbian.org/tag/google" title="google" rel="tag">google</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/394.html" title="[原] 建了一个google code项目：jquery myhint plugin (2011-01-16)">[原] 建了一个google code项目：jquery myhint plugin</a> (0)</li>
	<li><a href="http://bianbian.org/technology/255.html" title="[晕] 发现gmail的问题 (2008-02-20)">[晕] 发现gmail的问题</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/307.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[原] Shibboleth 2.0 Identity Provider (IdP) LDAP认证配置指南</title>
		<link>http://bianbian.org/technology/306.html</link>
		<comments>http://bianbian.org/technology/306.html#comments</comments>
		<pubDate>Wed, 14 May 2008 05:15:19 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[IdP]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Shibboleth]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/306.html</guid>
		<description><![CDATA[首先佩服老外：1）把简单的东西搞得很复杂 2）很会创造标准和协议 这次遇到的Shibboleth就是这么个东西，看了两天英文，对人为复杂、创造协议痛恨中。简单写个配置指南，给其他人做个参考... ]]></description>
			<content:encoded><![CDATA[<p>首先佩服老外：1）把简单的东西搞得很复杂 2）很会创造标准和协议<br />
这次遇到的Shibboleth就是这么个东西，看了两天英文，对人为复杂、创造协议痛恨中。简单写个配置指南，给其他人做个参考，少走弯路。</p>
<p>注意：<br />
1) 系统时间必须设置正确<br />
2) apache 需要 mod_ssl mod_proxy_ajp，假设安装在 /etc/httpd<br />
3) 必须使用 tomcat-5.5.x+，假设安装在 /opt/apache-tomcat-5.5.26<br />
4) 如果需要改变安装目录重新安装，必须退到解压那步（否则很多和目录有关的代码不会重新编译，导致严重错误&#8211;啊！我整整一天的痛苦啊！）<br />
<span id="more-306"></span><br />
# 取消tomcat的AJP身份认证<br />
vi /opt/apache-tomcat-5.5.26/conf/server.xml<br />
# 找到 Define an AJP 1.3 Connector 那，初始为：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">Connector</span><span style="color: Gray;"> </span><span style="color: #00008b;">port</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">8009</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">enableLookups</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">false</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">redirectPort</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">8443</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">protocol</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">AJP/1.3</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li></ol></div>
<p># 修改为（端口改变没有特殊目的，只是我系统上跑了好几个tomcat，防止冲突）：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">Connector</span><span style="color: Gray;"> </span><span style="color: #00008b;">port</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">8019</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">enableLookups</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">false</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">redirectPort</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">8443</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">protocol</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">AJP/1.3</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">request</span><span style="color: Gray;">.</span><span style="color: #00008b;">tomcatAuthentication</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">false</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">address</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">127.0.0.1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li></ol></div>
<p># apache httpd 配置AJP反向代理<br />
vi /etc/httpd/conf.d/proxy_ajp.conf<br />
# 添加：<br />
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so<br />
ProxyPass /idp/ ajp://localhost:8019/idp/</p>
<p># 安装Shibboleth 2.0 Identity Provider (IdP)<br />
unzip shibboleth-idp-2.0.0-bin.zip<br />
cd identityprovider<br />
cp endorsed/*.jar /opt/apache-tomcat-5.5.26/common/endorsed/<br />
sh ant.sh install<br />
# 提示是否新安装，yes<br />
# 提示选择安装目录，/opt/idp<br />
# 提示hostname，根据实际填写<br />
# 提示加密密匙，随便写</p>
<p># 部署war<br />
vi /opt/apache-tomcat-5.5.26/conf/Catalina/localhost/idp.xml<br />
# 内容：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;?</span><span style="color: Green;">xml</span><span style="color: Gray;"> </span><span style="color: #00008b;">version</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">1.0</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">encoding</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">UTF-8</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">?&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">Context</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">docBase</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">/opt/idp/war/idp.war</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">privileged</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">true</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">antiResourceLocking</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">false</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">antiJARLocking</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">false</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">unpackWAR</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">false</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">/&gt;</span></li></ol></div>
<p># 测试：应该能看到“ok”<br />
httpd -k restart<br />
links http://127.0.0.1/idp/profile/Status</p>
<p># 配置用户名/密码认证方式<br />
vi /opt/idp/conf/handler.xml<br />
# 找到 Login Handlers 那，注释掉&#8221;RemoteUser&#8221;认证方式，启用UsernamePassword方式。修改为：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">LoginHandler</span><span style="color: Gray;"> </span><span style="color: #00008b;">xsi:type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">UsernamePassword</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">jaasConfigurationLocation</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">file:///opt/idp/conf/login.config</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">AuthenticationMethod</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">AuthenticationMethod</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">AuthenticationMethod</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">AuthenticationMethod</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">LoginHandler</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p># 配置LDAP连接方式<br />
vi /opt/idp/conf/login.config</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ShibUserPassAuth {</li>
<li>&nbsp;&nbsp; edu.vt.middleware.ldap.jaas.LdapLoginModule required</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;host=&quot;ldap.bianbian.org&quot;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;base=&quot;dc=test,dc=bianbian,dc=org&quot;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;serviceUser=&quot;cn=Directory Manager&quot;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;serviceCredential=&quot;11111111&quot;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;subtreeSearch=&quot;true&quot;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp;userField=&quot;uid&quot;;</li>
<li>};</li></ol></div>
<p># 配置SP（关键！加入SP的Metadata描述）<br />
vi /opt/idp/conf/relying-party.xml<br />
# 找到 MetadataProvider 那，注意修改id和backingFile要不同<br />
# 假设某通过apache模块工作的SP位于 http://bianbian.org/</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Green;">MetadataProvider</span><span style="color: Gray;"> </span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">URLMD</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">xsi:type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">FileBackedHTTPMetadataProvider</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">xmlns</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">urn:mace:shibboleth:2.0:metadata</span><span style="color: #8b0000;">&quot;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">metadataURL</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://bianbian.org/Shibboleth.sso/Metadata</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span><span style="color: #00008b;">backingFile</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">/opt/idp/metadata/bianbian.org-metadata.xml</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">/&gt;</span></li></ol></div>
<p># 配置传递属性，这跟每个SP有关，要与SP联合配置</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/apache" title="apache" rel="tag">apache</a>, <a href="http://bianbian.org/tag/idp" title="IdP" rel="tag">IdP</a>, <a href="http://bianbian.org/tag/ldap" title="LDAP" rel="tag">LDAP</a>, <a href="http://bianbian.org/tag/shibboleth" title="Shibboleth" rel="tag">Shibboleth</a>, <a href="http://bianbian.org/tag/tomcat" title="tomcat" rel="tag">tomcat</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/55.html" title="[原]apache模块的编写实例 (反向透明代理实现方式之一) (2006-10-30)">[原]apache模块的编写实例 (反向透明代理实现方式之一)</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/306.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>[呵] 好久没叠沙拉了，这次叠了个尽兴</title>
		<link>http://bianbian.org/not-it/304.html</link>
		<comments>http://bianbian.org/not-it/304.html#comments</comments>
		<pubDate>Sat, 10 May 2008 13:23:50 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[bianbian & xuxu]]></category>
		<category><![CDATA[Not IT]]></category>
		<category><![CDATA[pizzahut]]></category>
		<category><![CDATA[必胜客]]></category>
		<category><![CDATA[沙拉]]></category>

		<guid isPermaLink="false">http://bianbian.org/not-it/304.html</guid>
		<description><![CDATA[用了2罐黄瓜（这次的黄瓜实在太小，中间停工一次，等店里补充），1罐菠萝（菠萝只剩残渣，因此中间不整齐），2罐黄桃（中间全是黄桃，哈哈哈哈） &#169;2012 便便代码人生. All Rights Reserved..... ]]></description>
			<content:encoded><![CDATA[<p><a href='http://bianbian.org/wp-content/uploads/2008/05/pizzahut_174.jpg' title='pizzahut_174.jpg' target=_img><img src='http://bianbian.org/wp-content/uploads/2008/05/pizzahut_174.thumbnail.jpg' alt='pizzahut_174.jpg' /></a>  <a href='http://bianbian.org/wp-content/uploads/2008/05/pizzahut_176.jpg' title='pizzahut_174.jpg' target=_img><img src='http://bianbian.org/wp-content/uploads/2008/05/pizzahut_176.thumbnail.jpg' alt='pizzahut_176.jpg' /></a><br />
用了2罐黄瓜（这次的黄瓜实在太小，中间停工一次，等店里补充），1罐菠萝（菠萝只剩残渣，因此中间不整齐），2罐黄桃（中间全是黄桃，哈哈哈哈）</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/pizzahut" title="pizzahut" rel="tag">pizzahut</a>, <a href="http://bianbian.org/tag/%e5%bf%85%e8%83%9c%e5%ae%a2" title="必胜客" rel="tag">必胜客</a>, <a href="http://bianbian.org/tag/%e6%b2%99%e6%8b%89" title="沙拉" rel="tag">沙拉</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/not-it/48.html" title="[哈]第一次叠沙拉 (2006-10-22)">[哈]第一次叠沙拉</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/not-it/304.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[原] 给LilyBBS新增源代码语法高亮功能</title>
		<link>http://bianbian.org/technology/javascript/300.html</link>
		<comments>http://bianbian.org/technology/javascript/300.html#comments</comments>
		<pubDate>Tue, 06 May 2008 13:12:56 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[BBS]]></category>
		<category><![CDATA[Lily]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/javascript/300.html</guid>
		<description><![CDATA[原文：[公告] WEB新增源代码语法高亮功能 使用方法： [code] 代码 [/code] 目前支持：C/C++、Java、Python、Bash、SQL、HTML、XML、CSS、Javascript、Makefile、Ruby、PHP、Awk、Perl 效果示例： #include &#60;stdio.h&#62;... ]]></description>
			<content:encoded><![CDATA[<p>原文：<a href="http://lilybbs.net/bbstcon?board=sysop&#038;file=M.1210049875.A" target=_blank>[公告] WEB新增源代码语法高亮功能</a></p>
<p>使用方法：<br />
[code]<br />
代码<br />
[/code]</p>
<p>目前支持：C/C++、Java、Python、Bash、SQL、HTML、XML、CSS、Javascript、Makefile、Ruby、PHP、Awk、Perl</p>
<p>效果示例：<br />
<span id="more-300"></span><br />
<PRE class=prettyprint><SPAN class=com>#include &lt;stdio.h&gt;</SPAN><SPAN class=pln><BR></SPAN><SPAN class=kwd>int</SPAN><SPAN class=pln> main</SPAN><SPAN class=pun>()</SPAN><SPAN class=pln> </SPAN><SPAN class=pun>{</SPAN><SPAN class=pln><BR>&nbsp; &nbsp; printf</SPAN><SPAN class=pun>(</SPAN><SPAN class=str>&#8220;Many people think they are full of niubility,&#8221;</SPAN><SPAN class=pun>);</SPAN><SPAN class=pln><BR></SPAN><SPAN class=pun>}</SPAN></PRE><br />
<PRE class=prettyprint><SPAN class=kwd>import</SPAN><SPAN class=pln> org</SPAN><SPAN class=pun>.</SPAN><SPAN class=pln>bianbian</SPAN><SPAN class=pun>.</SPAN><SPAN class=pln>code</SPAN><SPAN class=pun>;</SPAN><SPAN class=pln><BR></SPAN><SPAN class=kwd>class</SPAN><SPAN class=pln> </SPAN><SPAN class=typ>CodeTest</SPAN><SPAN class=pun>()</SPAN><SPAN class=pln> </SPAN><SPAN class=pun>{</SPAN><SPAN class=pln><BR>&nbsp; &nbsp; </SPAN><SPAN class=kwd>public</SPAN><SPAN class=pln> </SPAN><SPAN class=kwd>static</SPAN><SPAN class=pln> </SPAN><SPAN class=kwd>void</SPAN><SPAN class=pln> main</SPAN><SPAN class=pun>(</SPAN><SPAN class=typ>String</SPAN><SPAN class=pun>[]</SPAN><SPAN class=pln> args</SPAN><SPAN class=pun>)</SPAN><SPAN class=pln> </SPAN><SPAN class=pun>{</SPAN><SPAN class=pln><BR>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN class=typ>System</SPAN><SPAN class=pun>.</SPAN><SPAN class=kwd>out</SPAN><SPAN class=pun>.</SPAN><SPAN class=pln>println</SPAN><SPAN class=pun>(</SPAN><SPAN class=str>&#8220;and like to play zhuangbility,&#8221;</SPAN><SPAN class=pun>);</SPAN><SPAN class=pln><BR>&nbsp; &nbsp; </SPAN><SPAN class=pun>}</SPAN><SPAN class=pln><BR></SPAN><SPAN class=pun>}</SPAN></PRE><br />
<PRE class=prettyprint><SPAN class=pun>&lt;?</SPAN><SPAN class=pln>php<BR>&nbsp; &nbsp; echo </SPAN><SPAN class=str>&#8216;which only reflect their shability.&#8217;</SPAN><SPAN class=pun>;</SPAN><SPAN class=pln><BR></SPAN><SPAN class=pun>?&gt;</SPAN></PRE></p>
<p>采用的是<a href="http://code.google.com/p/google-code-prettify/" target=_blank>prettify</a>，为LilyBBS的客户端解析UBB做了点修改。推荐一下，还是挺好用的。</p>
<style>.str { color: #080; } .kwd { color: #008; font-weight: bold; } .com { color: #800; } .typ { color: #606; font-weight: bold; } .lit { color: #066; } .pun { color: #660; } .pln { color: #000; } .tag { color: #008; font-weight: bold; } .atn { color: #606; } .atv { color: #080; } .dec { color: #606; } pre.prettyprint { font-family:Courier New,Fixdays,宋体; margin: 0 20px 0 20px; padding: 1px; border: 1px solid #ccc; }</style>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/bbs" title="BBS" rel="tag">BBS</a>, <a href="http://bianbian.org/tag/lily" title="Lily" rel="tag">Lily</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/javascript/263.html" title="[原] 整理了小百合BBS的Javascript脚本，注意关键字 (2008-02-29)">[原] 整理了小百合BBS的Javascript脚本，注意关键字</a> (4)</li>
	<li><a href="http://bianbian.org/technology/283.html" title="[原] 未来分布式BBS的可能实现架构 (2008-04-04)">[原] 未来分布式BBS的可能实现架构</a> (0)</li>
	<li><a href="http://bianbian.org/technology/285.html" title="[原] BBS日志和点击率的优化方向及静态化 (2008-04-06)">[原] BBS日志和点击率的优化方向及静态化</a> (0)</li>
	<li><a href="http://bianbian.org/technology/javascript/286.html" title="[原] 关于web访问小百合BBS的脚本问题 (2008-04-07)">[原] 关于web访问小百合BBS的脚本问题</a> (37)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/javascript/300.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[原] solr 1.3 multicore使用指南</title>
		<link>http://bianbian.org/technology/299.html</link>
		<comments>http://bianbian.org/technology/299.html#comments</comments>
		<pubDate>Mon, 05 May 2008 02:42:51 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Lucene]]></category>
		<category><![CDATA[solr]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/299.html</guid>
		<description><![CDATA[尽管solr 1.3还是dev版，目前还没release，它比1.2多的很多特性（特别是multicore的支持）还是让我选择了1.3（1.2用了一段时间，多个索引要复制多份，非常麻烦）。 使用基本和solr 1.2差不多，几乎... ]]></description>
			<content:encoded><![CDATA[<p>尽管solr 1.3还是dev版，目前还没release，它比1.2多的很多特性（特别是multicore的支持）还是让我选择了1.3（1.2用了一段时间，多个索引要复制多份，非常麻烦）。<br />
使用基本和solr 1.2差不多，几乎没什么难度就切换到1.3了。只是多了multicore的配置：<br />
solr/home比如设为/opt/solrs<br />
在/opt/solrs下新建multicore.xml</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;?</span><span style="color: Green;">xml</span><span style="color: Gray;"> </span><span style="color: #00008b;">version</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">1.0</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">encoding</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">UTF-8</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">?&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">multicore</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">adminPath</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">/admin/multicore</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">persistent</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">true</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">sharedLib</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">lib</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">&lt;</span><span style="color: Green;">core</span><span style="color: Gray;"> </span><span style="color: #00008b;">name</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">core0</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">instanceDir</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">core0</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">default</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">true</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">&lt;</span><span style="color: Green;">core</span><span style="color: Gray;"> </span><span style="color: #00008b;">name</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">core1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">instanceDir</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">core1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">multicore</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p><span id="more-299"></span><br />
默认跑了，发现索引数据存放目录dataDir全跑到web-app容器的./solr/data目录下去了。。。。要知道multicore最关键的就是dataDir要不同。。。<br />
参考wiki：<a href="http://wiki.apache.org/solr/MultiCore" target=_blank>MultiCore</a><br />
上面说可以在core里加dataDir属性，于是加上，测试。ft，还是没用。<br />
于是看solr源码，发现上面dataDir的部分根本没有读取（至少今天我svn check出来的代码里面没有，汗）。<br />
于是跟踪源码，发现new SolrCore的时候dataDir为null，如果为null，则从SolrConfig中读取。<br />
看到这里，知道原来得在SolrConfig中设置dataDir才行。那么SolrConfig是什么呢，就是对应到配置文件conf/solrconfig.xml：<br />
第29行：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #ffa500;">&lt;!-- Used to specify an alternate directory to hold all index data</span></li>
<li><span style="color: #ffa500;">&nbsp; &nbsp; &nbsp;&nbsp; other than the default ./data under the Solr home.</span></li>
<li><span style="color: #ffa500;">&nbsp; &nbsp; &nbsp;&nbsp; If replication is in use, this should match the replication configuration. --&gt;</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">dataDir</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">${solr.data.dir:./solr/data}</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">dataDir</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p>终于发现居然在这里设置。把这行注释掉，就默认在core/data下了。。。。<br />
配置方式比较汗，我觉得应该支持直接在multicore.xml里设置dataDir（按wiki说明，solr 1.3也是这样想的，不过目前的dev版本未实现）。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/java" title="Java" rel="tag">Java</a>, <a href="http://bianbian.org/tag/lucene" title="Lucene" rel="tag">Lucene</a>, <a href="http://bianbian.org/tag/solr" title="solr" rel="tag">solr</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/88.html" title="[译]volatile关键字有什么用？ (2006-12-13)">[译]volatile关键字有什么用？</a> (4)</li>
	<li><a href="http://bianbian.org/technology/84.html" title="[原]Java正则表达式获取匹配结果 (2006-12-02)">[原]Java正则表达式获取匹配结果</a> (0)</li>
	<li><a href="http://bianbian.org/technology/297.html" title="[原] spring的事件监听和java反射及IoC注入还是很强大的 (2008-04-25)">[原] spring的事件监听和java反射及IoC注入还是很强大的</a> (7)</li>
	<li><a href="http://bianbian.org/technology/74.html" title="[嗯]OSCache很不错啊 (2006-11-07)">[嗯]OSCache很不错啊</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/299.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] IDL的格式化字符串太让人faint了</title>
		<link>http://bianbian.org/technology/298.html</link>
		<comments>http://bianbian.org/technology/298.html#comments</comments>
		<pubDate>Thu, 01 May 2008 13:25:00 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[ENVI & IDL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[IDL]]></category>
		<category><![CDATA[格式]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/298.html</guid>
		<description><![CDATA[也许跟FORTRAN差不多，那也是我为什么讨厌FORTRAN最大的原因 比如我要输出 YY-MM-DD hh_mm_ss 的时间格式： IDL> PRINT, FORMAT= $ IDL> '(C(CYI2.2,"-",CMOI2.2,"-",CDI2.2,CHI3.2,"_",CMI2.2,"_",CSI2.2))', $ IDL> SYSTIME(/JULIAN) OM... ]]></description>
			<content:encoded><![CDATA[<p>也许跟FORTRAN差不多，那也是我为什么讨厌FORTRAN最大的原因</p>
<p>比如我要输出 YY-MM-DD hh_mm_ss 的时间格式：<br />
<code><br />
IDL> PRINT, FORMAT= $<br />
IDL>   '(C(CYI2.2,"-",CMOI2.2,"-",CDI2.2,CHI3.2,"_",CMI2.2,"_",CSI2.2))', $<br />
IDL>   SYSTIME(/JULIAN)<br />
</code><br />
OMG&#8230;..Orz&#8230;&#8230;</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/format" title="format" rel="tag">format</a>, <a href="http://bianbian.org/tag/idl" title="IDL" rel="tag">IDL</a>, <a href="http://bianbian.org/tag/%e6%a0%bc%e5%bc%8f" title="格式" rel="tag">格式</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/273.html" title="[原] IDL的数组存储是行顺序，下标引用是列在前 (2008-03-17)">[原] IDL的数组存储是行顺序，下标引用是列在前</a> (1)</li>
	<li><a href="http://bianbian.org/not-it/350.html" title="[荐] 推荐RSL（Radar Software Library，雷达软件库） (2009-09-30)">[荐] 推荐RSL（Radar Software Library，雷达软件库）</a> (1)</li>
	<li><a href="http://bianbian.org/technology/274.html" title="[原] 自定义IDL调色板指南 (2008-03-21)">[原] 自定义IDL调色板指南</a> (2)</li>
	<li><a href="http://bianbian.org/technology/266.html" title="[原] IDL 7.0测试截图 (2008-03-08)">[原] IDL 7.0测试截图</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/298.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[原] spring的事件监听和java反射及IoC注入还是很强大的</title>
		<link>http://bianbian.org/technology/297.html</link>
		<comments>http://bianbian.org/technology/297.html#comments</comments>
		<pubDate>Fri, 25 Apr 2008 13:16:02 +0000</pubDate>
		<dc:creator>bianbian</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[IoC]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://bianbian.org/technology/297.html</guid>
		<description><![CDATA[这几天做了一个东西：在DAO上往数据库插入一个bean的时候，用java反射机制自动产生SQL语句，同时publishEvent触发bean更新事件，事件监听类根据配置文件处理bean并自动提交到Lucene（Solr）全文检索... ]]></description>
			<content:encoded><![CDATA[<p>这几天做了一个东西：在DAO上往数据库插入一个bean的时候，用java反射机制自动产生SQL语句，同时publishEvent触发bean更新事件，事件监听类根据配置文件处理bean并自动提交到Lucene（Solr）全文检索（主要是bean的属性跟Solr字段的对应）进行准实时的索引更新（当然bean有缓冲）；反过来，检索结果有望自动转成bean丢给用户callback。<br />
danny这个巨牛完成的基于spring的再次开发框架除了自动controller Action绑定、ResultSet自动转成bean、自动分页、自动View视图等等快捷开发功能外（Orz），现在支持自动全文检索了，而且整个过程对其他开发人员是无缝过渡的，建立全文索引不需要修改任何一处代码（其实概念上用AOP比事件监听更适合：“可热插拔”的全文检索切面，但是事件监听最大的优势是异步的，全文检索准实时索引更新这种需求用AOP同步包装一层实在是太不实际了）：只要在配置文件里指定哪些数据表的bean哪些字段需要全文检索，OK。。。添加或者全记录更新的时候索引都会准实时更新——而且几乎近似热插拔。</p>
<p>&copy;2012 <a href="http://bianbian.org">便便代码人生</a>. All Rights Reserved.</p>.
	标签: <a href="http://bianbian.org/tag/ioc" title="IoC" rel="tag">IoC</a>, <a href="http://bianbian.org/tag/java" title="Java" rel="tag">Java</a>, <a href="http://bianbian.org/tag/spring" title="Spring" rel="tag">Spring</a><br /><br/>遵守创作共用协议，转载请链接形式注明来自<a href="http://bianbian.org" target=_blank>http://bianbian.org</a> 做人要厚道

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://bianbian.org/technology/84.html" title="[原]Java正则表达式获取匹配结果 (2006-12-02)">[原]Java正则表达式获取匹配结果</a> (0)</li>
	<li><a href="http://bianbian.org/technology/299.html" title="[原] solr 1.3 multicore使用指南 (2008-05-05)">[原] solr 1.3 multicore使用指南</a> (1)</li>
	<li><a href="http://bianbian.org/technology/74.html" title="[嗯]OSCache很不错啊 (2006-11-07)">[嗯]OSCache很不错啊</a> (0)</li>
	<li><a href="http://bianbian.org/technology/88.html" title="[译]volatile关键字有什么用？ (2006-12-13)">[译]volatile关键字有什么用？</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://bianbian.org/technology/297.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

