<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>輝夜の永遠亭</title>
	<atom:link href="http://tadvent.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tadvent.wordpress.com</link>
	<description>Lunatic Princess</description>
	<lastBuildDate>Wed, 31 Aug 2011 04:21:29 +0000</lastBuildDate>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tadvent.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>輝夜の永遠亭</title>
		<link>http://tadvent.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tadvent.wordpress.com/osd.xml" title="輝夜の永遠亭" />
	<atom:link rel='hub' href='http://tadvent.wordpress.com/?pushpress=hub'/>
		<item>
		<title>入职满月零八天</title>
		<link>http://tadvent.wordpress.com/2011/07/29/%e5%85%a5%e8%81%8c%e6%bb%a1%e6%9c%88%e9%9b%b6%e5%85%ab%e5%a4%a9/</link>
		<comments>http://tadvent.wordpress.com/2011/07/29/%e5%85%a5%e8%81%8c%e6%bb%a1%e6%9c%88%e9%9b%b6%e5%85%ab%e5%a4%a9/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 11:22:55 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[心情瑣事]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/?p=132</guid>
		<description><![CDATA[果然开始工作了就没多少时间了呢。。。 熟悉环境 + 学新知识。 某些东西还是不要丢下的好……<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=132&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2011/07/29/%e5%85%a5%e8%81%8c%e6%bb%a1%e6%9c%88%e9%9b%b6%e5%85%ab%e5%a4%a9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>USACO 5.4.4 Betsy&#8217;s Tour</title>
		<link>http://tadvent.wordpress.com/2011/06/05/usaco-5-4-4-betsys-tour/</link>
		<comments>http://tadvent.wordpress.com/2011/06/05/usaco-5-4-4-betsys-tour/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 22:38:36 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[算法研究]]></category>
		<category><![CDATA[USACO题解]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[USACO]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/?p=122</guid>
		<description><![CDATA[好吧好久没写，果然变懒了 = = 简略点好了 N x N 方阵，左上角入，左下角出，只能上下左右相邻移动，每格仅访问一次遍历所有格，求遍历方法数。 暴力 + 剪枝，没想出什么别的方法。最多就位运算优化一下：    Test 1: TEST OK [0.000 secs, 2900 KB]    Test 2: TEST OK [0.000 secs, 2900 KB]    Test 3: TEST OK [0.000 secs, 2900 KB]    Test 4: TEST OK [0.000 secs, 2900 KB]    Test 5: TEST OK [0.000 secs, 2900 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=122&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2011/06/05/usaco-5-4-4-betsys-tour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://tadvent.wordpress.com/2011/01/14/hello-world/</link>
		<comments>http://tadvent.wordpress.com/2011/01/14/hello-world/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 07:55:13 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=1&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2011/01/14/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrade your blog to WordPress.com!</title>
		<link>http://tadvent.wordpress.com/2010/09/28/upgrade-your-blog-to-wordpress-com/</link>
		<comments>http://tadvent.wordpress.com/2010/09/28/upgrade-your-blog-to-wordpress-com/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 13:00:18 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[Computers and Internet]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2010/09/28/upgrade-your-blog-to-wordpress-com</guid>
		<description><![CDATA[微软终于撑不下去了，在互联网方面真是做啥啥不行。。。果然还是早点迁走为好吗 至少先把列表保存一下 = =虽然也好久没更新了<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=5&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2010/09/28/upgrade-your-blog-to-wordpress-com/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>[转]恋爱就像TCP连接</title>
		<link>http://tadvent.wordpress.com/2010/04/27/%e8%bd%ac%e6%81%8b%e7%88%b1%e5%b0%b1%e5%83%8ftcp%e8%bf%9e%e6%8e%a5/</link>
		<comments>http://tadvent.wordpress.com/2010/04/27/%e8%bd%ac%e6%81%8b%e7%88%b1%e5%b0%b1%e5%83%8ftcp%e8%bf%9e%e6%8e%a5/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 10:09:15 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[计算机与 Internet]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2010/04/27/%e8%bd%ac%e6%81%8b%e7%88%b1%e5%b0%b1%e5%83%8ftcp%e8%bf%9e%e6%8e%a5</guid>
		<description><![CDATA[原帖 这个挺搞笑的，TCP三次握手也不顶用<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=6&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2010/04/27/%e8%bd%ac%e6%81%8b%e7%88%b1%e5%b0%b1%e5%83%8ftcp%e8%bf%9e%e6%8e%a5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>

		<media:content url="http://blog.ksplice.com/wp-content/uploads/2010/04/ksplice-synack.png" medium="image" />
	</item>
		<item>
		<title>VS2010</title>
		<link>http://tadvent.wordpress.com/2010/04/13/vs2010/</link>
		<comments>http://tadvent.wordpress.com/2010/04/13/vs2010/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 13:15:53 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2010/04/13/vs2010</guid>
		<description><![CDATA[VS2010 RTM 了对 C++ 的支持应该是最近几个版本中改进最大的。 看了下对标准库多了个 &#60;codecvt&#62; 的头文件，终于从 iostream 实现了对 UTF8 UTF16LE UTF16BE 的转码支持，大概前一段我试验的那几个 codecvt_facet 也到时候了吧。不过具体效果如何(性能问题比较难说)还是等拿到再具体判断为好。右值引用也加入标准库，然后多了个 forward_list 的单链表，几个新的 algorithm 函数，智能指针等 就我感觉类似 &#60;codecvt&#62; 应是 C++ 标准库很需要添加的内容，虽然公司的效率还是比较快，可是等着 C++ 标准委员会整好新标准还不知得等到猴年马月去。每次想到标准库里面的查找函数命名乱得一塌糊涂，就感觉那些个人工作效率真是低的要死。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=4&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2010/04/13/vs2010/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>平面最近点对与最远点对</title>
		<link>http://tadvent.wordpress.com/2009/12/04/%e5%b9%b3%e9%9d%a2%e6%9c%80%e8%bf%91%e7%82%b9%e5%af%b9%e4%b8%8e%e6%9c%80%e8%bf%9c%e7%82%b9%e5%af%b9/</link>
		<comments>http://tadvent.wordpress.com/2009/12/04/%e5%b9%b3%e9%9d%a2%e6%9c%80%e8%bf%91%e7%82%b9%e5%af%b9%e4%b8%8e%e6%9c%80%e8%bf%9c%e7%82%b9%e5%af%b9/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 01:56:58 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[算法研究]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/12/04/%e5%b9%b3%e9%9d%a2%e6%9c%80%e8%bf%91%e7%82%b9%e5%af%b9%e4%b8%8e%e6%9c%80%e8%bf%9c%e7%82%b9%e5%af%b9</guid>
		<description><![CDATA[给定平面上 N 个点的坐标，求其中最近点对与最远点对。看似相似的问题，也都可以在 O(N logN) 时间内解出，却是两种完全不同的思路<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=8&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/12/04/%e5%b9%b3%e9%9d%a2%e6%9c%80%e8%bf%91%e7%82%b9%e5%af%b9%e4%b8%8e%e6%9c%80%e8%bf%9c%e7%82%b9%e5%af%b9/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>USACO 5.2.3 Wisconsin Squares</title>
		<link>http://tadvent.wordpress.com/2009/11/25/usaco-5-2-3-wisconsin-squares/</link>
		<comments>http://tadvent.wordpress.com/2009/11/25/usaco-5-2-3-wisconsin-squares/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 08:12:13 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[USACO题解]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/11/25/usaco-5-2-3-wisconsin-squares</guid>
		<description><![CDATA[好长时间没做题了，拿这个来练练手&#8230;   时限居然有 5s ，看来得做好极限优化的准备。开始想的是用一个 int [4][4][5] 数组记录每格周围有同种羊的格数，然后 dfs 时每放一格就改变周围 8 格的数字。运行下貌似很慢，在我的机器上都 10s 多。于是想到以前写过五子棋的位运算优化，这题一共 16 格，每格数字最多不大于 4，因此可用一个 64位 unsigned int 放下，每格数字只用 4 bit 表示即可。位运算的优点是可同时操作 64 位，这样只用一句便可同时改变周围 8 格的数据。可惜在我的机器上依然跑到了 6s，考虑到还开着耗 CPU 的 APE 在听，正常应该能跑进 5s 吧。结果提交一看在评测机上只用了 2.1s 。。。哦 &#8230; 咱的机器看来该淘汰了 = = 按 6:2 来算不加位运算优化的估计也能进 5s 了&#8230;   TASK: wissquLANG: C++   Compiling&#8230;Compile: OK   Executing&#8230;   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=9&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/11/25/usaco-5-2-3-wisconsin-squares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>又一次吃了浮点数的亏 = =</title>
		<link>http://tadvent.wordpress.com/2009/11/11/%e5%8f%88%e4%b8%80%e6%ac%a1%e5%90%83%e4%ba%86%e6%b5%ae%e7%82%b9%e6%95%b0%e7%9a%84%e4%ba%8f/</link>
		<comments>http://tadvent.wordpress.com/2009/11/11/%e5%8f%88%e4%b8%80%e6%ac%a1%e5%90%83%e4%ba%86%e6%b5%ae%e7%82%b9%e6%95%b0%e7%9a%84%e4%ba%8f/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 11:11:02 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/11/11/%e5%8f%88%e4%b8%80%e6%ac%a1%e5%90%83%e4%ba%86%e6%b5%ae%e7%82%b9%e6%95%b0%e7%9a%84%e4%ba%8f</guid>
		<description><![CDATA[C++: while(step &#62; 0.02)&#123;    for(;;)&#123;        if(x+step &#60;= 100.0 &#38;&#38;            (ttlen = ttl(x+step, y)) &#60; minlength)&#123;            minlength = ttlen;            x += step;        &#125; else if(x-step &#62;=0.0 &#38;&#38;            (ttlen = ttl(x-step, y)) &#60; minlength)&#123;            minlength = ttlen;            x -= step;        &#125; else if(y+step &#60;= 100.0 &#38;&#38;            (ttlen = ttl(x, y+step)) &#60; minlength)&#123;            minlength = ttlen;            y += [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=10&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/11/11/%e5%8f%88%e4%b8%80%e6%ac%a1%e5%90%83%e4%ba%86%e6%b5%ae%e7%82%b9%e6%95%b0%e7%9a%84%e4%ba%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>File I/O 效率 C vs C++ (一)</title>
		<link>http://tadvent.wordpress.com/2009/10/30/file-io-%e6%95%88%e7%8e%87-c-vs-c-%e4%b8%80/</link>
		<comments>http://tadvent.wordpress.com/2009/10/30/file-io-%e6%95%88%e7%8e%87-c-vs-c-%e4%b8%80/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 04:15:26 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/10/30/file-io-%e6%95%88%e7%8e%87-c-vs-c-%e4%b8%80</guid>
		<description><![CDATA[继续关注文件读写&#8230;这次测试写的效率 其实关于这个问题的讨论似乎总会以类似语言信仰问题而告终，再加 C++ IO 库的复杂性，很多半调子 C++ 程序员总会出现各种误用，反过来却作为攻击 C++ IO 效率低的凭证。比如经常有人边在输出时大量使用类似    fout&#60;&#60;&#8230;&#60;&#60;endl;的语句边嚷嚷着写文件速度超慢的，只能说这些人根本不知道自己写的句子都做了什么&#8230;   所以说在评价任何东西之前先要做到最起码的了解咱也算是大致研究过 C++ IO stream 各方面的内容，虽然不能说完全掌握仍在学习中，但自认为还是可以写点东西的。   总之还是用数据说话。 平台 XPsp3 + VC2008 Express Edition SP1 + STLport / MinGW(GCC4.4.0)   实验内容：共做了三种类型写入的比较，每种类型采用几种不同方法实现：1. 纯字节流写入     (1) C fputs()     (2) C fprintf()     (3) C++ ofstream&#60;&#60;     (4) C++ ofstream.rdbuf()-&#62;sputn()2. 宽字符流通过转码写入     (1) C++ locale + wofstream&#60;&#60;     (2) C++ codecvt&#60;&#62; facet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=12&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/10/30/file-io-%e6%95%88%e7%8e%87-c-vs-c-%e4%b8%80/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>万恶的 xxx</title>
		<link>http://tadvent.wordpress.com/2009/10/23/%e4%b8%87%e6%81%b6%e7%9a%84-xxx/</link>
		<comments>http://tadvent.wordpress.com/2009/10/23/%e4%b8%87%e6%81%b6%e7%9a%84-xxx/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 13:03:33 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[计算机与 Internet]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/10/23/%e4%b8%87%e6%81%b6%e7%9a%84-xxx</guid>
		<description><![CDATA[于是连 python 也成了关键词 www.python.org/download 哪天你把 c, java, php, 或者干脆 linux windows 都封了算了。。。  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=13&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/10/23/%e4%b8%87%e6%81%b6%e7%9a%84-xxx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>fstream 文件 IO 点滴</title>
		<link>http://tadvent.wordpress.com/2009/10/06/fstream-%e6%96%87%e4%bb%b6-io-%e7%82%b9%e6%bb%b4/</link>
		<comments>http://tadvent.wordpress.com/2009/10/06/fstream-%e6%96%87%e4%bb%b6-io-%e7%82%b9%e6%bb%b4/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 03:39:33 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/10/06/fstream-%e6%96%87%e4%bb%b6-io-%e7%82%b9%e6%bb%b4</guid>
		<description><![CDATA[http://dantvt.is-programmer.com/posts/11949.html 很多时候较大数据量的文件 IO 总是成为瓶颈，为了提高效率，有时想要先将文件大块大块的读入再行处理。下面分析两种惯常的处理手法。 1. 将文件一次性读入 string 中。 貌似 std::getline 、 istream::getline 或是 operator&#60;&#60; operator&#62;&#62; 等都不提供一次读到文件结尾的机制，只有 istreambuf_iterator 可以做到： ifstream in(&#34;input.txt&#34;);string instr((istreambuf_iterator&#60;char&#62;(in)), istreambuf_iterator&#60;char&#62;()); string 的构造函数前一个参数要多加一层 () 以免编译器误认为是函数声明 = = &#8230; 这样读入 string 会随着内容动态增长，空间不足时会触发额外的 realloc 及 copy 操作，为提高效率有必要预分配足够的空间： ifstream in(&#34;input.txt&#34;);in.seekg(0, ios::end);streampos len = in.tellg();in.seekg(0, ios::beg); string instr;instr.reserve(len);instr.assign(istreambuf_iterator&#60;char&#62;(in), istreambuf_iterator&#60;char&#62;()); 2. 将文件一次性读入 stringstream 中。 filebuf 和 stringbuf 无法直接通过 rdbuf() 重定向，因此从 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=14&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/10/06/fstream-%e6%96%87%e4%bb%b6-io-%e7%82%b9%e6%bb%b4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>国庆愉快</title>
		<link>http://tadvent.wordpress.com/2009/10/01/%e5%9b%bd%e5%ba%86%e6%84%89%e5%bf%ab/</link>
		<comments>http://tadvent.wordpress.com/2009/10/01/%e5%9b%bd%e5%ba%86%e6%84%89%e5%bf%ab/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 12:34:43 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[日常琐事]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/10/01/%e5%9b%bd%e5%ba%86%e6%84%89%e5%bf%ab</guid>
		<description><![CDATA[Oh&#8230;换一篇，上一篇太不和谐啦<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=15&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/10/01/%e5%9b%bd%e5%ba%86%e6%84%89%e5%bf%ab/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>fileden 貌似挂了？</title>
		<link>http://tadvent.wordpress.com/2009/09/23/fileden-%e8%b2%8c%e4%bc%bc%e6%8c%82%e4%ba%86%ef%bc%9f/</link>
		<comments>http://tadvent.wordpress.com/2009/09/23/fileden-%e8%b2%8c%e4%bc%bc%e6%8c%82%e4%ba%86%ef%bc%9f/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 15:42:37 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[计算机与 Internet]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/09/23/fileden-%e8%b2%8c%e4%bc%bc%e6%8c%82%e4%ba%86%ef%bc%9f</guid>
		<description><![CDATA[好像几天没连上 不知是不是被 GFW 了，这一段貌似封的挺紧 过了十一再看看   果然是被墙了.&#62;&#62;最近 fg U tor puff 全部失效 &#8230; TMd gcd<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=17&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/09/23/fileden-%e8%b2%8c%e4%bc%bc%e6%8c%82%e4%ba%86%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>用 MSVC 9.0 和 MinGW (GCC 3.4.5) 编译 STLport 5.2.1</title>
		<link>http://tadvent.wordpress.com/2009/07/07/%e7%94%a8-msvc-9-0-%e5%92%8c-mingw-gcc-3-4-5-%e7%bc%96%e8%af%91-stlport-5-2-1/</link>
		<comments>http://tadvent.wordpress.com/2009/07/07/%e7%94%a8-msvc-9-0-%e5%92%8c-mingw-gcc-3-4-5-%e7%bc%96%e8%af%91-stlport-5-2-1/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 10:17:02 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/07/07/%e7%94%a8-msvc-9-0-%e5%92%8c-mingw-gcc-3-4-5-%e7%bc%96%e8%af%91-stlport-5-2-1</guid>
		<description><![CDATA[目前已发现 VC 9.0 所带 STL 的几处缺陷，为了保证在任何 C++ 编译器中使用 STL 时能够表现一致，决定将标准库都统一为 STLport 。 MinGW 下则是为了使用 wstream 的宽字符流。 大致记录下编译过程，以后也能做个参考。 编译版本 STLport-5.2.1   一、VS2008 (MSVC 9.0) 下     (1) 将压缩包解到某文件夹，如 D:\STLport (路径中无空格)     (2) 启动 VS2008 的命令行模式。(注意不是 Run&#8230; 中的 cmd)          cd D:\STLport     (3) configure msvc9 -x &#8211;with-static-rtl &#8211;use-boost D:\lib\boost_1_36_0          msvc9 指明编译器          -x 参数指明是 cross-compile ，在 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=11&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/07/07/%e7%94%a8-msvc-9-0-%e5%92%8c-mingw-gcc-3-4-5-%e7%bc%96%e8%af%91-stlport-5-2-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>海猫 EP4 汉化补丁发布</title>
		<link>http://tadvent.wordpress.com/2009/05/30/%e6%b5%b7%e7%8c%ab-ep4-%e6%b1%89%e5%8c%96%e8%a1%a5%e4%b8%81%e5%8f%91%e5%b8%83/</link>
		<comments>http://tadvent.wordpress.com/2009/05/30/%e6%b5%b7%e7%8c%ab-ep4-%e6%b1%89%e5%8c%96%e8%a1%a5%e4%b8%81%e5%8f%91%e5%b8%83/#comments</comments>
		<pubDate>Fri, 29 May 2009 17:10:42 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[动漫]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/05/30/%e6%b5%b7%e7%8c%ab-ep4-%e6%b1%89%e5%8c%96%e8%a1%a5%e4%b8%81%e5%8f%91%e5%b8%83</guid>
		<description><![CDATA[庆贺！ 可惜日语还是没学好，哎～<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=18&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/05/30/%e6%b5%b7%e7%8c%ab-ep4-%e6%b1%89%e5%8c%96%e8%a1%a5%e4%b8%81%e5%8f%91%e5%b8%83/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>Win32 + GCC 的一点尝试</title>
		<link>http://tadvent.wordpress.com/2009/05/19/win32-gcc-%e7%9a%84%e4%b8%80%e7%82%b9%e5%b0%9d%e8%af%95/</link>
		<comments>http://tadvent.wordpress.com/2009/05/19/win32-gcc-%e7%9a%84%e4%b8%80%e7%82%b9%e5%b0%9d%e8%af%95/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:36:31 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/05/19/win32-gcc-%e7%9a%84%e4%b8%80%e7%82%b9%e5%b0%9d%e8%af%95</guid>
		<description><![CDATA[前一段试用了 MinGW 5.1.4 (GCC-3.4.5) 感觉还好，但是有两点不满意： (1) GCC 自带的 libstdc++-v3 不支持宽字符流 (wcin/wcout/wstream&#8230;)，似乎是与 Win32 平台的 locale 不兼容所致，但仅用 wstring 的话还是可以的。 (2) GCC 版本有点点久远。毕竟 4.x 版都出来几年了。 (3) MSYS 对中文的支持够呛。这个我也认了，反正只用它来编译，文件名都保持鸟文的就没什么问题。 反正免费平台几乎都这样，那帮老外写的系统总是把国际化支持弄得很差，时不时就得担心来个乱码啥的，毕竟人家也不用管那么多，单就那26个字母的话啥时候也不会出问题。   当然也有优点 (1) 全套组件免费。不用总为版权问题心存愧疚      当然 VC 也有免费 Express 版，但好用的工具 Visual Assist、模拟 Vi 编辑器的 ViEmu 等都不是免费的。 (2) 体积小方便携带。一套 MinGW + MSYS 也就 100MB 出头；VC 随便一整就上 GB&#8230; (3) 运行时库默认链接到 MSVCRT.dll，不像 VC [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=20&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/05/19/win32-gcc-%e7%9a%84%e4%b8%80%e7%82%b9%e5%b0%9d%e8%af%95/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>从 std::list 中 size() 的时间复杂度引出的讨论&#8230;</title>
		<link>http://tadvent.wordpress.com/2009/05/10/%e4%bb%8e-stdlist-%e4%b8%ad-size-%e7%9a%84%e6%97%b6%e9%97%b4%e5%a4%8d%e6%9d%82%e5%ba%a6%e5%bc%95%e5%87%ba%e7%9a%84%e8%ae%a8%e8%ae%ba/</link>
		<comments>http://tadvent.wordpress.com/2009/05/10/%e4%bb%8e-stdlist-%e4%b8%ad-size-%e7%9a%84%e6%97%b6%e9%97%b4%e5%a4%8d%e6%9d%82%e5%ba%a6%e5%bc%95%e5%87%ba%e7%9a%84%e8%ae%a8%e8%ae%ba/#comments</comments>
		<pubDate>Sun, 10 May 2009 06:45:56 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/05/10/%e4%bb%8e-stdlist-%e4%b8%ad-size-%e7%9a%84%e6%97%b6%e9%97%b4%e5%a4%8d%e6%9d%82%e5%ba%a6%e5%bc%95%e5%87%ba%e7%9a%84%e8%ae%a8%e8%ae%ba</guid>
		<description><![CDATA[http://dantvt.is-programmer.com/posts/8313 两边同步吧&#8230; 很奇怪的，或者说是一个不应成为问题的问题&#8230;std::list 的 size() 方法时间复杂度是多少？第一感觉应该是 O(1) 没错吧，多一个变量用于储存链表长度应该是很轻易的事情。于是有了下面这段代码： #include&#60;iostream&#62;#include&#60;list&#62;#include&#60;ctime&#62;using namespace std; int main()&#123;    time_t start, finish;    int num = 0;    list&#60;int&#62; coll;     start = clock();    for(int i=0;i&#60;10000;++i)&#123;        coll.push_back(i);        num += coll.size();    &#125;    finish = clock();    cout&#60;&#60;finish &#8211; start&#60;&#60;&#34;   num:&#34;&#60;&#60;num&#60;&#60;endl;     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=21&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/05/10/%e4%bb%8e-stdlist-%e4%b8%ad-size-%e7%9a%84%e6%97%b6%e9%97%b4%e5%a4%8d%e6%9d%82%e5%ba%a6%e5%bc%95%e5%87%ba%e7%9a%84%e8%ae%a8%e8%ae%ba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>VC 在 Win32 平台还是强啊</title>
		<link>http://tadvent.wordpress.com/2009/05/08/vc-%e5%9c%a8-win32-%e5%b9%b3%e5%8f%b0%e8%bf%98%e6%98%af%e5%bc%ba%e5%95%8a/</link>
		<comments>http://tadvent.wordpress.com/2009/05/08/vc-%e5%9c%a8-win32-%e5%b9%b3%e5%8f%b0%e8%bf%98%e6%98%af%e5%bc%ba%e5%95%8a/#comments</comments>
		<pubDate>Thu, 07 May 2009 18:16:22 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/05/08/vc-%e5%9c%a8-win32-%e5%b9%b3%e5%8f%b0%e8%bf%98%e6%98%af%e5%bc%ba%e5%95%8a</guid>
		<description><![CDATA[小试一下 MinGW，最简单装的 5.1.4 版。看了下附带 GCC 是 3.4.5，只是06年的版本，应该是考虑稳定性的问题。现在 GCC 已经 4.4.0 了吧。 试着编译一个 iostream 输入输出的小程序居然有 400+ KB&#8230; strip 后还有 270+&#8230; 然后把前面做题目的程序试了下，只用 cstdio 的 fscanf fprintf 倒是体积小了很多只有 20KB+，虽然用了 -O3 但是效率比起 VS2008 编译的还是有挺大差距。拿 VS2008 与前两年的 GCC 比是挺不厚道，不过咱也只是随便试试而已。 果然在 Win 平台下 VC 很无敌&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=22&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/05/08/vc-%e5%9c%a8-win32-%e5%b9%b3%e5%8f%b0%e8%bf%98%e6%98%af%e5%bc%ba%e5%95%8a/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>USACO 4.3.2 The Primes</title>
		<link>http://tadvent.wordpress.com/2009/04/24/usaco-4-3-2-the-primes/</link>
		<comments>http://tadvent.wordpress.com/2009/04/24/usaco-4-3-2-the-primes/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 15:24:38 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[USACO题解]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/04/24/usaco-4-3-2-the-primes</guid>
		<description><![CDATA[够BT的一道题，改了几遍才过 &#8211; - 一开始没想费太多内存觉得稍微预存几种结果应该就差不多了，结果完全低估了数据规模。 只好把所有可能用到的模式全预算出来再循环。结果弄了快300行ORZ&#8230; 还有一次犯傻没排序就跑去提交了   TASK: prime3 LANG: C++   Compiling&#8230; Compile: OK   Executing&#8230;    Test 1: TEST OK [0.065 secs, 2984 KB]    Test 2: TEST OK [0.054 secs, 2988 KB]    Test 3: TEST OK [0.065 secs, 2984 KB]    Test 4: TEST OK [0.065 secs, 2988 KB]    Test 5: TEST OK [0.076 secs, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=23&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/04/24/usaco-4-3-2-the-primes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>VC 中的 STL string 实现</title>
		<link>http://tadvent.wordpress.com/2009/04/16/vc-%e4%b8%ad%e7%9a%84-stl-string-%e5%ae%9e%e7%8e%b0/</link>
		<comments>http://tadvent.wordpress.com/2009/04/16/vc-%e4%b8%ad%e7%9a%84-stl-string-%e5%ae%9e%e7%8e%b0/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 12:21:34 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/04/16/vc-%e4%b8%ad%e7%9a%84-stl-string-%e5%ae%9e%e7%8e%b0</guid>
		<description><![CDATA[今天小实验一下发现 VC9 的 STL string 实现中没有使用 引用计数和写时拷贝 在 VC6.0 时默认还是有这两个特性的，从 VC7.0 开始貌似就取消了，大概是考虑到线程安全问题 如果我不用多线程，这两个特性应该还是可以一定程度上提高效率的吧 不然在返回一个 string 时是否也要考虑用 auto_ptr 了呢&#8230; 看来有必要自己实现一个 string ，或者偶尔考虑用一下其他库的&#8230;   不过从一致性考虑，感觉还是显式使用智能指针实现以上功能比较好，不然其他各种自定类型是不是也有必要封装一个 share_ptr 类似特性呢。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=24&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/04/16/vc-%e4%b8%ad%e7%9a%84-stl-string-%e5%ae%9e%e7%8e%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>USACO 4.2.1 Ditch 网络最大流问题算法小结</title>
		<link>http://tadvent.wordpress.com/2009/04/07/usaco-4-2-1-ditch-%e7%bd%91%e7%bb%9c%e6%9c%80%e5%a4%a7%e6%b5%81%e9%97%ae%e9%a2%98%e7%ae%97%e6%b3%95%e5%b0%8f%e7%bb%93/</link>
		<comments>http://tadvent.wordpress.com/2009/04/07/usaco-4-2-1-ditch-%e7%bd%91%e7%bb%9c%e6%9c%80%e5%a4%a7%e6%b5%81%e9%97%ae%e9%a2%98%e7%ae%97%e6%b3%95%e5%b0%8f%e7%bb%93/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 17:36:58 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[算法研究]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/04/07/usaco-4-2-1-ditch-%e7%bd%91%e7%bb%9c%e6%9c%80%e5%a4%a7%e6%b5%81%e9%97%ae%e9%a2%98%e7%ae%97%e6%b3%95%e5%b0%8f%e7%bb%93</guid>
		<description><![CDATA[http://dantvt.is-programmer.com/posts/7974.html复制算了。MSN 居然能认出全部格式&#8230;不错 通过 USACO 4.2.1 Ditch 学习一下最大流算法 。可惜它给的测试数据几乎没有任何杀伤力，后面测试时我们采用 DD_engi 写的程序生成的加强版数据。 总体上来说，最大流算法分为两大类：增广路 (Augmenting Path) 和预流推进重标号 (Push Relabel)。也有算法同时借鉴了两者的长处，如 Improved SAP。本篇主要介绍增广路类算法，思想、复杂度及实际运行效率比较，并试图从中选择一种兼顾代码复杂度和运行效率的较好方案。以下我们将会看到，有时理论分析的时间复杂度并不能很好的反映一种算法的实际效率。 1. Ford &#8211; Fulkerson 方法 所有增广路算法的基础都是 Ford &#8211; Fulkerson 方法。称之为方法而不是算法是因为 Ford &#8211; Fulkerson 只提供了一类思想，在此之上的具体操作可有不同的实现方案。 给定一个有向网络 G(V,E) 以及源点 s 终点 t ，FF 方法描述如下： Ford-Fulkerson 方法 (G,s,t)1 将各边上流量 f 初始化为 02 while 存在一条增广路径 p3     do 沿路径 p 增广流量 f4 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=19&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/04/07/usaco-4-2-1-ditch-%e7%bd%91%e7%bb%9c%e6%9c%80%e5%a4%a7%e6%b5%81%e9%97%ae%e9%a2%98%e7%ae%97%e6%b3%95%e5%b0%8f%e7%bb%93/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>

		<media:content url="http://dantvt.is-programmer.com/user_files/dantvt/Image/maxFlowRevisited08.png" medium="image" />

		<media:content url="http://dantvt.is-programmer.com/user_files/dantvt/Image/maxFlowRevisited09.png" medium="image" />

		<media:content url="http://dantvt.is-programmer.com/user_files/dantvt/Image/maxFlowRevisited10.png" medium="image" />

		<media:content url="http://dantvt.is-programmer.com/user_files/dantvt/Image/Algorithm_compare.PNG" medium="image" />
	</item>
		<item>
		<title>Sound Horizon &#8211; Elysion ～楽園幻想物語組曲～</title>
		<link>http://tadvent.wordpress.com/2009/03/26/sound-horizon-elysion-%ef%bd%9e%e6%a5%bd%e5%9c%92%e5%b9%bb%e6%83%b3%e7%89%a9%e8%aa%9e%e7%b5%84%e6%9b%b2%ef%bd%9e/</link>
		<comments>http://tadvent.wordpress.com/2009/03/26/sound-horizon-elysion-%ef%bd%9e%e6%a5%bd%e5%9c%92%e5%b9%bb%e6%83%b3%e7%89%a9%e8%aa%9e%e7%b5%84%e6%9b%b2%ef%bd%9e/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 03:31:53 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/03/26/sound-horizon-elysion-%ef%bd%9e%e6%a5%bd%e5%9c%92%e5%b9%bb%e6%83%b3%e7%89%a9%e8%aa%9e%e7%b5%84%e6%9b%b2%ef%bd%9e</guid>
		<description><![CDATA[译文转自Popgohttp://popgo.net/bbs/showthread.php?s=&#38;threadid=413602 对歌词的说明： 1．带下划线的词，实际须念成下划线后( )中的词。如：乐园(Elysion)，念作Elysion。 2．歌中的念白，用白字表示。　 歌中的唱词，用蓝色表示。　 歌中作为背景声的唱词或念白，用粉色表示。　 极少数有二人对唱的部分，用其它两种不同彩色表示。 欢迎转载，但转载须保留本段玖羽 2006.8.22 演出： 作词·作曲·编曲：    ——Revo主唱·女性念白：     ——Aramary假面男人ABYSS：   ——Jimang (#1,3,4,7,9,11)女高音和声：          ——Miyoshi Harito (#3,4,8,11) ==================================================================================01 &#8211; エルの楽園 [→ Side：E →]  http://www.blogcastone.net/audio/player.swf?soundFile=http://dl.getdropbox.com/u/2128104/SH-Elysion-01.mp3&#038;playerID=10&#038;bg=0xeeeeee&#038;leftbg=0x99ff00&#038;lefticon=0&#215;666666&#038;rightbg=0&#215;666666&#038;rightbghover=0x99ff00&#038;righticon=0xffffff&#038;righticonhover=0xffffff&#038;text=0&#215;666666&#038;slider=0&#215;666666&#038;track=0xFFFFFF&#038;border=0&#215;666666&#038;loader=0x99ff00&#038;loop=no&#038;autostart=no 01. EL的乐园 [→ Side：E →] 私は…生涯彼女を愛することはないだろう…我…大概这一辈子都不会爱她…しかし…彼女という存在は…私にとって特別な意味を孕むだろう…但…那个被称为“她”的人…对我来说，也许孕育着极特别的意义…何故なら…生まれてくる娘の名は…遠い昔にもう決めてあるのだから…为什么呢…因为那生下来的女儿的名字…在很久以前就已经定好了… ──そして…幾度目かの楽園の扉が開かれる……——于是…乐园的门扉不知第几次被打开…… (Elysion, who ah&#8230; Elysion, who ah&#8230;) 白い大地に　緋い雫で　描かれた軌跡　罪の道標白色的大地　绯红的血滴　绘出的轨迹　是罪孽的路标古びた金貨(コイン)　握りしめたまま　這い擦りながらも　男は笑った古旧的金币(Coin)　在手中紧握　艰难地爬着　那男人笑了 廻るように　浮かんでくる　愛しい笑顔　すぐ其処に仿佛盘旋着　浮现在眼前　可爱的笑脸　就快要看见無限の果てに　手を伸ばす様に　扉に手を掛けた如同向梦幻的尽头　伸出手一般　那手扶上门扉 ──そして…彼の現実は朽ち果てる……——于是…他的现实朽腐了……(Come Down to the Elysion) 少女が小さく　咳をする度　胸の痛みが　春を遠ざける少女每一次　轻轻地咳嗽　胸口的疼痛　都使春天远离襤褸い毛布でも　夢は見られる　愛を知った日の　温もり忘れない裹在破烂(诅咒)的毛毯中　依然做着梦　知晓爱的日子　温暖难忘 眠るように　沈んでゆく　愛しい世界　水底に仿佛睡觉一样　缓缓沉入　可爱的世界　的水底夢幻の果てが　手を招く様に　扉は開かれた如同在梦幻的尽头　招着手一般　那门扉打开了──そして…彼女の現実は砕け散る……——于是…她的现实碎散了……(Come Down to the Elysion) ねぇ…お父様(パパ)　その楽園ではどんな花が咲くの？喂……爸爸　要是在乐园里的话，会有怎样的花在开着哪？ねぇ…お父様(パパ)　その楽園ではどんな鳥が歌うの？喂……爸爸　要是在乐园里的话，会有怎样的鸟在唱着哪？ねぇ…お父様(パパ)　その楽園では体はもう痛くないの？喂……爸爸　要是在乐园里的话，这身体就不会再痛了吧？ねぇ…お父様(パパ)　その楽園ではずっと一緒にいられるの？喂……爸爸　要是在乐园里的话，我们就永远在一起了吧？ねぇ…お父様(パパ)…喂……爸爸… 窓を叩く夜風　弾む吐息　薄暗い部屋　楽しそうな談笑窗外的夜风　急促的吐息　微暗的房间　似乎很快乐的谈笑虚ろな月明かり　白い吐息　薄汚い部屋　痩せた膝の少女空虚的月光　白色的吐息　微脏的房间　那双膝瘦弱的少女 幾度となく繰り返される問い掛け　尽きることのない『楽園』への興味多少次反反复复地问着　对“乐园”无尽的兴趣嗚呼…少女にはもう見えていないのだ　傍らに横たわるその屍体が…啊…少女已经看不到了　那横倒在身旁的尸体… 「ねえ、お父様(パパ)」“喂，爸爸”「なんだい、エル？」“怎么了，EL？”「明日はなんの日か知ってる？」“你知道明天是什么日子吗？”「世界で一番可愛い女の子の誕生日」“是世界上最可爱的女孩子的生日啦” [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=16&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/03/26/sound-horizon-elysion-%ef%bd%9e%e6%a5%bd%e5%9c%92%e5%b9%bb%e6%83%b3%e7%89%a9%e8%aa%9e%e7%b5%84%e6%9b%b2%ef%bd%9e/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>

		<media:content url="http://photo2.bababian.com/upload1/20090925/A65208909751BF97A450F8ADBCB736EB_500.jpg" medium="image" />

		<media:content url="http://photo2.bababian.com/upload1/20090925/DB033994FF10C5FB5B0DA61AA43CA8B4_500.jpg" medium="image" />
	</item>
		<item>
		<title>locale的使用总结</title>
		<link>http://tadvent.wordpress.com/2009/03/22/locale%e7%9a%84%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93/</link>
		<comments>http://tadvent.wordpress.com/2009/03/22/locale%e7%9a%84%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 01:29:28 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/03/22/locale%e7%9a%84%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93</guid>
		<description><![CDATA[locale 是多种 facet 的容器，每种 facet 管理与 locale 相关的一种功能。facet 除了按名称区别外，更常用的是按 category 来分类。分类情况如下：   locale::ctype 类别，包括以下 facet 模板ctype // 字符分类和转换codecvt // 字符编码转换locale::collate 类别，包括以下 facet 模板collate // 字符串校对locale::message 类别，包括以下 facet 模板messages // 从信息目录中获得本地化信息locale::numeric 类别，包括以下 facet 模板numpunct // 有关数字和布尔运算表达式中标点符号及格式信息num_get // 代表数字或布尔值的字符串的解析num_put   // 代表数字或布尔值的格式化字符串的生成locale::monetary 类别，包括以下 facet 模板moneypunct // 货币表达式中的标点符号及格式money_get   // 代表货币值的字符串的解析money_put   // 代表货币值的格式化字符串的生成locale::time 类别，包括以下 facet 模板time_get // 代表日期和时间的字符串的解析time_put // 代表日期和时间的格式化字符串的生成   使用方法：locale 对象是不可变的，即在它们的生命周期中，它们的内容不可改变。所包含的 facet 不能进行修改或替换，同时 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=25&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/03/22/locale%e7%9a%84%e4%bd%bf%e7%94%a8%e6%80%bb%e7%bb%93/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ STL IO流 与 Unicode (UTF-16 UTF-8) 的协同工作</title>
		<link>http://tadvent.wordpress.com/2009/03/07/c-stl-io%e6%b5%81-%e4%b8%8e-unicode-utf-16-utf-8-%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c/</link>
		<comments>http://tadvent.wordpress.com/2009/03/07/c-stl-io%e6%b5%81-%e4%b8%8e-unicode-utf-16-utf-8-%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 08:01:30 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/03/07/c-stl-io%e6%b5%81-%e4%b8%8e-unicode-utf-16-utf-8-%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c</guid>
		<description><![CDATA[凡用到文件读写，输入输出，就得和编码、Unicode 打交道。这系列实验来测试一下 C++ STL 的 IO流 对 ANSI 编码、Unicode 编码的支持特性，看能否找到一个自动识别编码，自动转码的解决方案。从基础开始，一步一步来：   平台 Win32 XP sp3 + VS2008. (+ Boost 1.36.0)   实验 01: #include&#60;string&#62;#include&#60;iostream&#62;#include&#60;locale&#62; using namespace std;   locale prevloc;locale loc(&#34;chs&#34;);   string str1(&#34;string class&#34;);string str2(&#34;汉字与字符&#34;);wstring wstr1(L&#34;wstring class&#34;);          //去掉L前缀则编译错误wstring wstr2(L&#34;汉字与字符&#34;);   prevloc = cout.imbue(locale(&#34;&#34;));cout&#60;&#60;&#34;Default Locale: &#34;&#60;&#60;prevloc.name()&#60;&#60;endl;cout&#60;&#60;&#34;System Locale: &#34;&#60;&#60;locale(&#34;&#34;).name()&#60;&#60;endl;cout&#60;&#60;&#34;C风格字符串\n&#34;&#60;&#60;L&#34;w-string\n&#34;&#60;&#60;str1&#60;&#60;&#8216;\n&#8217;&#60;&#60;str2&#60;&#60;&#8216;\n&#8217;&#60;&#60;endl;   prevloc = wcout.imbue(loc);   //若去掉此句，则wstr2无法正常输出wcout&#60;&#60;&#34;Default Locale: &#34;&#60;&#60;prevloc.name().c_str()&#60;&#60;endl;    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=7&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/03/07/c-stl-io%e6%b5%81-%e4%b8%8e-unicode-utf-16-utf-8-%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>Python os.walk() 函数中的陷阱</title>
		<link>http://tadvent.wordpress.com/2009/03/01/python-os-walk-%e5%87%bd%e6%95%b0%e4%b8%ad%e7%9a%84%e9%99%b7%e9%98%b1/</link>
		<comments>http://tadvent.wordpress.com/2009/03/01/python-os-walk-%e5%87%bd%e6%95%b0%e4%b8%ad%e7%9a%84%e9%99%b7%e9%98%b1/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 13:15:58 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/03/01/python-os-walk-%e5%87%bd%e6%95%b0%e4%b8%ad%e7%9a%84%e9%99%b7%e9%98%b1</guid>
		<description><![CDATA[用 VC 写程序多了会留下很多中间文件和辅助文件，浪费不少空间，一个个去清理项目又费时费力，写个脚本吧，以后也好用。   然后想当然的写下了这样的语句： for root, dirs, files in os.walk(path):    for name in files:          if splitext(name)[1] == &#8216;.sln&#8217;:            print &#34;Cleaning&#34;,join(root,splitext(name)[0]),&#34;&#8230;&#34;            dirs = []            CleanSolution(root,splitext(name)[0])   在某文件夹下发现 &#8216;.sln&#8217; 项目文件则不需再往下层文件夹寻找。根据 os.walk() 函数的解释，在循环中修改 dirs 变量即可控制下层递归访问的文件夹，语句 dirs = [] 把 dirs 置空，则递归访问应到此结束。但是在跟踪执行中发现，虽然 dirs 确实被置空了，os.walk() 的递归访问却并没有终止，仍然依次访问了下层的所有文件夹&#8230;为什么呢？ 尝试着把 dirs = [] 改为 for dir in dirs: dirs.remove(dir) 后运行得到了理想的结果 但为何 remove() [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=26&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/03/01/python-os-walk-%e5%87%bd%e6%95%b0%e4%b8%ad%e7%9a%84%e9%99%b7%e9%98%b1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>最小环 与 Floyd</title>
		<link>http://tadvent.wordpress.com/2009/02/14/%e6%9c%80%e5%b0%8f%e7%8e%af-%e4%b8%8e-floyd/</link>
		<comments>http://tadvent.wordpress.com/2009/02/14/%e6%9c%80%e5%b0%8f%e7%8e%af-%e4%b8%8e-floyd/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 12:27:33 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[算法研究]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/02/14/%e6%9c%80%e5%b0%8f%e7%8e%af-%e4%b8%8e-floyd</guid>
		<description><![CDATA[Floyd 的 改进写法可以解决最小环问题，时间复杂度依然是 O(n^3)，储存结构也是邻接矩阵   int mincircle = infinity; Dist = Graph; for(int k=0;k&#60;nVertex;++k)&#123;     //新增部分:    for(int i=0;i&#60;k;++i)        for(int j=0;j&#60;i;++j)            mincircle = min(mincircle,Dist[i][j]+Graph[j][k]+Graph[k][i]);     //通常的 floyd 部分:     for(int i=0;i&#60;nVertex;++i)        for(int j=0;j&#60;i;++j)&#123;             int temp = Dist[i][k] + Disk[k][j];             if(temp &#60; Dist[i][j])                 Dist[i][j] = Dist[j][i] = temp;         &#125; &#125;   上面是对无向图的情况。 Floyd 算法保证了最外层循环到 k 时所有顶点间已求得以 0…k-1 为中间点的最短路径。一个环至少有3个顶点，设某环编号最大的顶点为 L ，在环中直接与之相连的两个顶点编号分别为 M 和 N (M,N [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=27&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/02/14/%e6%9c%80%e5%b0%8f%e7%8e%af-%e4%b8%8e-floyd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>WMA 2-pass vs. Ogg 低音质</title>
		<link>http://tadvent.wordpress.com/2009/02/12/wma-2-pass-vs-ogg-%e4%bd%8e%e9%9f%b3%e8%b4%a8/</link>
		<comments>http://tadvent.wordpress.com/2009/02/12/wma-2-pass-vs-ogg-%e4%bd%8e%e9%9f%b3%e8%b4%a8/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 16:01:34 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[计算机与 Internet]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/02/12/wma-2-pass-vs-ogg-%e4%bd%8e%e9%9f%b3%e8%b4%a8</guid>
		<description><![CDATA[以前都是用播放器直接转音乐格式，没怎么研究过参数，当时大致比较过 128kbps 以下 ogg 的音质体积比最优。 大于 128kbps 时几乎听不出差别，没法继续……   今天试着把 WMA 的参数调成 -a_mode 3 (bitrate-based 2-pass) 和 -a_mode 4 (peak bitrate-based 2-pass)，即传说中的 2 遍扫描，使得编码器可以完整掌握一首曲子的全部信息后再编码，应该算是最优模式了吧。再拿来与 Ogg 比试下，结果大失所望&#8230;48kbps 下文件体积比 ogg 大了约 10% ，然而音质却依然比不上 ogg 。不过 ogg 的编码时间倒是比 WMA 的两遍扫描都要久 = =  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=28&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/02/12/wma-2-pass-vs-ogg-%e4%bd%8e%e9%9f%b3%e8%b4%a8/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>爸爸野猪之歌</title>
		<link>http://tadvent.wordpress.com/2009/01/23/%e7%88%b8%e7%88%b8%e9%87%8e%e7%8c%aa%e4%b9%8b%e6%ad%8c/</link>
		<comments>http://tadvent.wordpress.com/2009/01/23/%e7%88%b8%e7%88%b8%e9%87%8e%e7%8c%aa%e4%b9%8b%e6%ad%8c/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 18:10:46 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/01/23/%e7%88%b8%e7%88%b8%e9%87%8e%e7%8c%aa%e4%b9%8b%e6%ad%8c</guid>
		<description><![CDATA[爸爸野猪之歌   呜～爸爸 野猪 野猪 阿里耶病顾你 野猪 野猪 爱米那爸爸 野猪 野猪 阿里耶顾吉娜 拉阔 爱你猪肚耶爸爸 野猪 野猪 阿里耶病顾你 野猪 野猪 爱米那爸爸 野猪 野猪 阿里耶顾吉娜 喇叭 爱你猪肚撒有兔皮 来哦 叉库拉 吃一兔吐那处那他吉 呵吐死买河妈阔撒 也吐 嘿卡玛 那丝 吐那位哟挖啥没呵咧哇咧偶吐阔西 阿死吐铁卡提卡 马甲日不拉KEY你阿脱快 那有了 米了列啦 米了列爸爸 野猪 野猪 阿里耶病顾你 野猪 野猪 爱米那爸爸 野猪 野猪 阿里耶顾吉娜 拉阔 爱你猪肚撒爸爸 野猪 野猪 阿里耶病顾你 野猪 野猪 爱米那爸爸 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=32&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/01/23/%e7%88%b8%e7%88%b8%e9%87%8e%e7%8c%aa%e4%b9%8b%e6%ad%8c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
		<item>
		<title>杂七杂八</title>
		<link>http://tadvent.wordpress.com/2009/01/19/%e6%9d%82%e4%b8%83%e6%9d%82%e5%85%ab/</link>
		<comments>http://tadvent.wordpress.com/2009/01/19/%e6%9d%82%e4%b8%83%e6%9d%82%e5%85%ab/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 15:50:22 +0000</pubDate>
		<dc:creator>tadvent</dc:creator>
				<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://tadvent.wordpress.com/2009/01/19/%e6%9d%82%e4%b8%83%e6%9d%82%e5%85%ab</guid>
		<description><![CDATA[终于从千千静听全面转向Foobar了&#8230; 反正咱也没硬件条件，音质好坏听不出也无所谓，也懒得调试各种插件，千千在操作上还是比较方便的，顶多需要自己配几个命令行编码器所以一直都没换。不过最近的发展方向越来越奇怪了，一个劲增强网络播放在线音乐什么的，而视大量新出现的编码格式于不顾，内嵌cue也不支持…… 刚好赶上 foobar0.9.6 Release ，便拿来稍研究了一番，配上几个常用插件后果然是相当的好用。外观就用分栏界面+下拉列表，可定制性极强也很稳定，几个解码插件自不必说，歌词秀、批量标签+addons、DSP一个回旋混响算了，咱也不追求音效，最后再加一个流媒体……能想到的需要基本都齐了。格式转换的话自己加几行命令即可，要转 wma 得再装个 WMEncoder，自己设参数 2-pass 绝对比千千转出来的强。还有一个优点是可以直接播放压缩包里的内容，这样从驴子上抓下来的东东为了上传就不用再多占地方了。唯一不爽的一点是那个流媒体插件 mslive 貌似不太稳定，对 URL 有时候反映很慢，暂时也没找到比较好的替代插件。好在需要在线听的机会也不多影响不大。   经常玩游戏，修改器是必备。一个金山游侠用了这么多年，偶尔也该换换了，最近发现一个叫 Cheat Engine 的东东感觉很强，不光提供多种数值查找，内存修改，多级指针锁定，甚至还自带调试器，反汇编、还有方便的代码注入、脚本注入工具&#8230;OTL 快赶上那帮搞破解的了。入门教程也很有趣，通过九关挑战来熟悉软件的各种应用，除了 Step8 的多级指针稍微麻烦一些，其他题目还算厚道。   终于也该接触 boost 了，不过这玩意编译完可真大，那几个组件只挑了些用得到的参数编译还是占了五六百MB，再加上之前 wxWidgets 的600多MB，就这么1GB多就没了。以前还想一个VC++居然都有1-2GB是怎么来的，现在大概知道了，原来库的体积这么大，估计 MFC 也不会小。 Sonar 在电脑里也荒废了挺久，几日不见版本号从6变成了8，算了就我这还停留在换换音色调调参数的水平不管也罢，不过现在硬盘大了，那个1.7GB的 Hypersonic 2 还是要爽一下滴<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tadvent.wordpress.com&amp;blog=19122109&amp;post=33&amp;subd=tadvent&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://tadvent.wordpress.com/2009/01/19/%e6%9d%82%e4%b8%83%e6%9d%82%e5%85%ab/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9544234ee273f70579a9851b829fb5fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">tadvent</media:title>
		</media:content>
	</item>
	</channel>
</rss>
