<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/xsc2001" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/xsc2001" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 28 Aug 2008 08:47:00 GMT</lastBuildDate><title>相生昌专栏</title><description>忠心愿为中国的软件事业贡献自己一份微薄的力量! 年轻而追求理想，智慧而永不满足，执着而勇于进取，触角敏锐但不随波逐流!</description><link>http://blog.csdn.net/xsc2001/</link><item><title>VC用ADO访问数据库全攻略</title><link>http://blog.csdn.net/xsc2001/archive/2008/08/28/2841301.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/2841301.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/2841301.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2841301</trackback:ping><description>这是我很多年以前写的一篇技术总结性文章，由于vchelp网站被封，故将此文章转移至此，愿它能为光大VC编程者一个抛砖引玉的作用。
ADO是Microsoft为最新和最强大的数据访问范例 OLE DB 而设计的，是一个便于使用的应用程序层接口，适合于SQL,Access,VF,Excel等数据库。使用起来也是方便易用。下面将以VC6.0为例进行详细的讲解。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/2841301.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 28 Aug 2008 16:47:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2008/08/28/2841301.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2008/08/28/2841301.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>搜索引擎中的URL散列</title><link>http://blog.csdn.net/xsc2001/archive/2008/02/20/2110588.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/2110588.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/2110588.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2110588</trackback:ping><description>搜索引擎中的URL散列问题，采用先MD5再哈希的方法大大减少了哈希冲突。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/2110588.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 21 Feb 2008 07:44:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2008/02/20/2110588.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2008/02/20/2110588.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>一算法求解与讨论</title><link>http://blog.csdn.net/xsc2001/archive/2006/07/06/885342.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/885342.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/885342.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=885342</trackback:ping><description>已知给定一个排列无序的浮点型数组，数组大小是10000，如何找出其中最大的10个数，并给出时间复杂度。(一道面试题)&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/885342.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 06 Jul 2006 23:48:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/07/06/885342.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/07/06/885342.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>数学之美 系列九 -- 如何确定网页和查询的相关性</title><link>http://blog.csdn.net/xsc2001/archive/2006/06/30/856042.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/856042.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/856042.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=856042</trackback:ping><description>Google一研究员发表在Google黑板报上的文章，详细讲解了“如何确定网页和查询的相关性”问题，文章通俗易懂，真是一篇好文章，摘下来和大家共享。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/856042.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 30 Jun 2006 22:12:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/06/30/856042.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/06/30/856042.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>如何编写优质、高效、益于维护的C++代码</title><link>http://blog.csdn.net/xsc2001/archive/2006/06/16/803696.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/803696.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/803696.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=803696</trackback:ping><description>如何编写优质、高效、益于维护的代码是每个程序开发人员都关心的一个话题，尽管大家都知道一些，但是在实际写代码时还是会犯一些错误，下面就结合我的一些经验写一点总结，供大家参考：
1、.....2、.......3、......8、.......
根据自己的一点经验了也就粗略地总结了这么多，本人觉得只要能做到以上几点，你的代码就算不是很完善，但至少看上去也优美，让别人看了你的代码也觉得好维护，很舒服的感觉。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/803696.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 16 Jun 2006 22:00:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/06/16/803696.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/06/16/803696.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>关于程序BUG和问题</title><link>http://blog.csdn.net/xsc2001/archive/2006/06/10/786945.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/786945.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/786945.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=786945</trackback:ping><description>最近看了一篇关于Google的首席工程师所写的二分查找算法中的Bug问题，也看了很多人回复，大多数人的观点是“每个人的程序都有bug的!&quot;，我也比较赞同这种观点，其实可以说那不是一种Bug,因为从软件的角度来说，每个软件都是有自己的运行条件和适合范围，如果超出运行环境其实就不是在Bug范围之内了。再牛的人都不可能写出在任何条件、任何环境下无bug运行的程序。所以没有很完美的程序，只要能在设定的运行条件和环境下稳定运行就是很不错的程序。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/786945.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sun, 11 Jun 2006 03:52:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/06/10/786945.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/06/10/786945.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>多线程服务程序编程心得</title><link>http://blog.csdn.net/xsc2001/archive/2006/06/02/769242.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/769242.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/769242.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=769242</trackback:ping><description>后台服务器程序一般都要求很高的稳定性和健壮性，编写高质量的服务器程序需要注意如下几个方面：

1、对于后台的多个并行工作线程最好不要用另一个线程来统一管理。大多数人认为专门用一个调度线程来调度各线程是一个比较好的方案。但是在实际应用中这种方法并不一定好，因为如果你的任务处理特别频繁而且需要将各线程不停地在挂起与激活之间切换，就会出现一些意想不到的问题，各线程的调度状态和实际的状态不符合。所以最好是由各线程自己负责自己的调度。如果没有任务了就Sleep一下，时间可自己设定也可以按实际情况动态确定。如果任务缓冲区中有任务就取一个任务来执行。这种方法即简单又不会出现问题。

2、如果各工作线程需要一定的内存缓冲，最好是在线程初始化时就一次性创建自己的缓冲区，每次都是反复利用，不用每来一个任务就去申请一块内存，执行完后再删除，这样运行很长一段时间后会留下很多内存碎片。

3、如果多个线程之间需要互斥地访问多个共享对象，每个线程对共享对象的申请最好是一次性申请到(一次性加锁)，否则会出现一些死锁现象。
&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/769242.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 02 Jun 2006 18:11:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/06/02/769242.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/06/02/769242.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>全文检索系统中海量数据的增量索引</title><link>http://blog.csdn.net/xsc2001/archive/2006/05/02/706138.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/706138.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/706138.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=706138</trackback:ping><description>全文检索系统中如果每天处理至少10多万条的文本数据，那么如何对这些新增加的数据进行增量索引并进行有效地管理是整个系统的关键。通过采用联合表或者并行表的方式来管理这些数据，但是每一个并行表的粒度应该设多大，设多少个子表或者并并行表都需要系统的应用规模来定。如果并行表的粒度过大，即使是在索引过程中采用的是拉链索引的方式来组织索引数据，也是需要大量的索引数据的遍历，若不是拉链更需要索引数据的大量移动来进行索引合并，进而严重影响系统性能。但是如果数据粒度过小，这样子表会很多，这样在检索时会影响到检索的性能，因为需要查询很多个子表才能返回结果。而如果对子表定期地合并，这样在合并的次数也会大大增加，合并完后还需要作一次整体索引。所以设计子表粒度和子表的个数时需要慎重考虑，根据自己系统的实际情况而定。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/706138.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 03 May 2006 07:30:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/05/02/706138.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/05/02/706138.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>关于切词程序的一点启发</title><link>http://blog.csdn.net/xsc2001/archive/2006/04/30/698610.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/698610.aspx</wfw:comment><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/698610.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=698610</trackback:ping><description>文本切词是中文信息处理的基础，除了英文以外大多和语言如中文、韩文、日文都是需要切词的。由于不同的编码形式给我们的切词带来了不便，ANS码是一个字符一个字符，而GB2312等都是两个字节表示一个字符。一般一个字符是否是多字节编码可以通过最高位来判断，如果最高位是0则是ANS码，否则多字节编码。通常人们进行切词都是将待切分文本转换成Unicode再进行切分，在实际中我经过实验这种方法其实不是很好，效率比较低。在实际中可不必将词表中的词条的切分文本转换成unicode，因为在转换过程中浪费大量的CPU时间，在词表上建立索引时也不必根据Unicode去建，直接根据字符的内码建立索引。在切词过程中不过字符移动可根据自己的实际情况两字节移动或者单字节移动。&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/698610.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sun, 30 Apr 2006 23:13:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/04/30/698610.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/04/30/698610.aspx</guid><dc:creator>程序人生</dc:creator></item><item><title>搜索引擎开发日志</title><link>http://blog.csdn.net/xsc2001/archive/2006/04/27/679917.aspx</link><wfw:comment>http://blog.csdn.net/xsc2001/comments/679917.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/xsc2001/comments/commentRss/679917.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=679917</trackback:ping><description>这两天一直在构思关于图片搜索的的实现，在目前蜘蛛的基础上增加图片抓取和Flash抓取的功能，这样就可以实现图片搜索和Flash搜索功能。对于图片的抓取已经实现，而对Flash的实现相对来说是比较麻烦一些，不过也不是太难。对这些对象我都是以二进制对象的形式存储到数据库中去了，目前采用的是中国知网的KBase系统，通过简单的功能性测试已经通过了，由于图片数据都可能比网面数据大，因则我在蜘蛛里抓取时采用了断点续抓功能，如果网络超时则可从断点处重试。下一步的目标有两个：&lt;img src =&quot;http://blog.csdn.net/xsc2001/aggbug/679917.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Fri, 28 Apr 2006 00:52:00 +0800</pubDate><author>程序人生</author><comments>http://blog.csdn.net/xsc2001/archive/2006/04/27/679917.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/xsc2001/archive/2006/04/27/679917.aspx</guid><dc:creator>程序人生</dc:creator></item></channel></rss>