<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[达观.平和]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/DustinCheung</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; DustinCheung]]></copyright><item><title><![CDATA[Linux内存管理]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83924670</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83924670</guid><author>DustinCheung</author><pubDate>Sat, 21 May 2011 23:42:58 +0800</pubDate><description><![CDATA[首先提供Gustavo Duarte写的三篇非常精彩的文章：
1. Anatomy of a Program in Memory
2. How The Kernel Manages Your 
3. Page Cache, the Affair Between Memory and Files
 
然后看看Linux下malloc的实现原理：
1. Doug Lea. A Memory...]]></description><category></category></item><item><title><![CDATA[Linux服务器状态一览]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83772718</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83772718</guid><author>DustinCheung</author><pubDate>Wed, 01 Dec 2010 20:20:17 +0800</pubDate><description><![CDATA[1. 磁盘
   http://www.linuxinsight.com/how_fast_is_your_disk.html
   http://www.linuxinsight.com/iostat_screenshots.html
 
   iostat结果各个数值的直观解释：
 
扶凯[http://www.php-oa.com] 写道
举一个例子，我们在超市排队 check...]]></description><category></category></item><item><title><![CDATA[Hello, life !]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83735932</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83735932</guid><author>DustinCheung</author><pubDate>Fri, 22 Oct 2010 19:45:17 +0800</pubDate><description><![CDATA[
If you are alive, you breath. If you breath, you talk. If you talk, you ask. If you ask,﻿ you think. If you think, you search. If you search, you experience. If you experience, you learn. If you lea...]]></description><category></category></item><item><title><![CDATA[RSA算法密钥长度的选择]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83709528</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83709528</guid><author>DustinCheung</author><pubDate>Wed, 15 Sep 2010 15:07:40 +0800</pubDate><description><![CDATA[  RSA算法密钥长度的选择是安全性和程序性能平衡的结果，密钥长度越长，安全性越好，加密解密所需时间越长。
 
1. 非对称加密算法中1024 bit密钥的强度相当于对称加密算法80bit密钥的强度。有资料上说以当前的软硬件水平，破解1024bit的RSA加密密文，需要一套10亿美金的系统使用若干十年的时间，所以2015年前，1024bit的还无需太担心暴力破解的危险。
 
2. 密钥长度...]]></description><category></category></item><item><title><![CDATA[Python code snip]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83483507</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83483507</guid><author>DustinCheung</author><pubDate>Wed, 28 Oct 2009 22:22:29 +0800</pubDate><description><![CDATA[Python Tips, Tricks, and Hacks ]]></description><category></category></item><item><title><![CDATA[C++ code snip]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83453154</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83453154</guid><author>DustinCheung</author><pubDate>Sun, 23 Aug 2009 18:01:56 +0800</pubDate><description><![CDATA[1. 将文件内容读取为string
   a.
  
string readFile2(const string &amp;amp;fileName)
{
    ifstream ifs(fileName.c_str(), ios::in | ios::binary | ios::ate);

    ifstream::pos_type fileSize = ifs.tellg();
...]]></description><category></category></item><item><title><![CDATA[工欲善其事，必先利其器]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83439120</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83439120</guid><author>DustinCheung</author><pubDate>Sun, 09 Aug 2009 16:05:26 +0800</pubDate><description><![CDATA[

一、C/C++
1. STL &amp;amp; boost
    http://www.cplusplus.com/reference/

    http://www.boost.org/

2. Make GDB more friendly to STL
    http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.0...]]></description><category></category></item><item><title><![CDATA[工厂方法和抽象工厂]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369553</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369553</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 22:19:55 +0800</pubDate><description><![CDATA[   最初发表在这里。   
 
   工厂方法的使用者可能会面临两种情况：第一种情况是对于某个产品，我清楚地知道应该使用哪个具体工厂为我服务，于是，我实例化该具体工厂，生产出具体的产品来。Java Collection中的iterator() 方法即属于这种情况。第二种情况，我只是需要一种产品，而不想知道也不需要知道究竟是哪个工厂为我生产的，即最终选用哪个具体工厂的决定权在生产者一方，它们根据当...]]></description><category></category></item><item><title><![CDATA[使用DataSource的连接池何以提高性能？]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369552</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369552</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 22:03:09 +0800</pubDate><description><![CDATA[  最初发表在这里。 
 
   连接池为什么能够提高性能呢？ 打个比喻吧：     从前有一条河，河水弯弯向东流。河东有个村庄叫河东村，河西有个小镇叫河西镇，河东村的村民经常要跨过小河到河西镇去购买些日常用品，但是小河上没有桥啊，怎么办呢？村民只好每次过河的时候，千辛万苦，披荆斩棘，搭起一座独木桥，等买完东西回来的时候，再把桥给拆了。   这样过了许多年，村民们慢慢觉得这样不划算啊，每次河都要花...]]></description><category></category></item><item><title><![CDATA[Logo4me :o)]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369550</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369550</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 21:56:29 +0800</pubDate><description><![CDATA[
..
 ]]></description><category></category></item><item><title><![CDATA[1.03 - 0.42 = ?]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369546</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369546</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 21:45:32 +0800</pubDate><description><![CDATA[最初发表在这里。
 
0.61。一定确定以及肯定？看看计算机是怎样回答的：
一号选手C/C++的答案是：printf(&quot;%5.20f&quot;, 1.03-0.42);  output = 0.61000000000000010000 二号选手Java的答案是：System.out.printf(&quot;%5.20f&quot;, 1.03-0.42) ; output = 0.61000000000000010000三...]]></description><category></category></item><item><title><![CDATA[C/C++库文件简介]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369542</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369542</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 21:25:03 +0800</pubDate><description><![CDATA[   最初发表在这里。
 
   其实，C/C++世界开始时并没有库这个概念，我们编写程序的时候，都是自己搞定一切：Coding，Compile，Link，生成一个可执行文件后载入系统运行就可以了。但是，如果每个程序员都这样各自为政的话，将会导致大量的重复劳动。譬如，在很多程序中都需要输入输出的功能，按照现在这种状况，只有每个程序员都自己重新开发这样的功能模块，这样效率之低下可想而知。于是，大家渴...]]></description><category></category></item><item><title><![CDATA[多态(Polymorphism)的实现机制(下)－－Java篇]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369531</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369531</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 21:14:16 +0800</pubDate><description><![CDATA[   最初发表在这里。
 
   既然多态是面向对象的三大本质特征之一（其它两个是数据抽象和继承），那么C++为什么不将方法调用的默认方式设置为动态绑定，而要通过关键字virtual进行标记呢？Bruce Eckel在《Thinking in C++》中提到，这是由于历史原因造成的，C++是从C发展而来的，而C程序员最为关心的是性能问题，由于动态绑定比静态绑定多几条指令，性能有所下降，如果将动态绑...]]></description><category></category></item><item><title><![CDATA[多态(Polymorphism)的实现机制(上)－－C++篇]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83369522</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83369522</guid><author>DustinCheung</author><pubDate>Mon, 06 Apr 2009 20:48:44 +0800</pubDate><description><![CDATA[&amp;nbsp;&amp;nbsp; 最初发表在这里。
&amp;nbsp;
&amp;nbsp;&amp;nbsp; 多态(Polymorphism)是面向对象的核心概念，本文以C++为例，讨论多态的具体实现。C++中多态可以分为基于继承和虚函数的动态多态以及基于模板的静态多态，如果没有特别指明，本文中出现的多态都是指前者，也就是基于继承和虚函数的动态多态。至于什么是多态，在面向对象中如何使用多态，使用多态的好处等等问题，如果...]]></description><category></category></item><item><title><![CDATA[awk引用shell中带meta字符的字符串 ]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83366046</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83366046</guid><author>DustinCheung</author><pubDate>Wed, 25 Mar 2009 20:45:14 +0800</pubDate><description><![CDATA[link='http://localhost:8080 Blog='
more id_list.txt |awk &quot;{print \&quot;$link\&quot;\$1}&quot;
 
   上面这段代码完成的功能是将id_list.txt中的每一行的内容拼接到link变量后，并将拼接后的内容输出到控制台。譬如，如果id_list.txt中的内容为：
123
456
789
 
   那么，控制台将输出下面的内容：
h...]]></description><category></category></item><item><title><![CDATA[OPIC in Nutch]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83362727</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83362727</guid><author>DustinCheung</author><pubDate>Sun, 15 Mar 2009 16:28:08 +0800</pubDate><description><![CDATA[&amp;nbsp; 庄子曾说：&amp;ldquo;吾生也有涯，而知也无涯，以有涯随无涯，殆已&amp;rdquo;。当然，我们不能拿老祖宗这句话作为消极怠工的借口，不过在学习和工作的时候，的确需要要分辨事情的轻重缓急，否则一味蛮干，最终结果只能是--&amp;ldquo;殆已&amp;rdquo;。
&amp;nbsp; 突然发现这句话对于网络爬虫也是很有启发意义的，对于浩瀚无边的互联网而言，网络爬虫涉及到页面确实只是冰山一角。因此，如何...]]></description><category></category></item><item><title><![CDATA[NekoHTML 和 XPath]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83321618</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83321618</guid><author>DustinCheung</author><pubDate>Wed, 03 Dec 2008 21:43:28 +0800</pubDate><description><![CDATA[  如果需要在HTML页面中提取数据，那么NekoHTML 是个不错的工具。因为HTML跟XML不一样，可能存在一些格式不完整的元素，譬如没有end tag的table等，这个时候，NekoHTML是个很尽责的清道夫和修理工，可以帮助我们整理这些缺陷数据，最终生成一个DOM Tree。  得到DOM Tree话，使用XPath就可以轻松获取所需数据了：-）
  下面是几个需要注意的问题：
1、...]]></description><category></category></item><item><title><![CDATA[电梯测验]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83320059</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83320059</guid><author>DustinCheung</author><pubDate>Fri, 28 Nov 2008 23:53:51 +0800</pubDate><description><![CDATA[   “要对你的解决方案或是产品或是企业完全了解到一定程度，那就是能在30秒之内清晰而准确地向你的客户或是顾客或是投资者解释清楚。如果你做不到这一点，那么把你正在做的工作理解清楚以后再去推销你的解决方案。”
                                                                                                ...]]></description><category></category></item><item><title><![CDATA[常用标点符号的英文读法]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83263660</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83263660</guid><author>DustinCheung</author><pubDate>Mon, 04 Aug 2008 14:00:38 +0800</pubDate><description><![CDATA[．period 句号 
，comma 逗号 
：colon 冒号 
；semicolon 分号 
！exclamation 惊叹号 
？question mark 问号 
￣hyphen 连字符 
'apostrophe 省略号；所有格符号 
-dash 破折号 
' 'single quotation marks 单引号 
&quot; &quot;double quotation marks 双引号 
( )pa...]]></description><category></category></item><item><title><![CDATA[EventMachine: Reactor in Ruby]]></title><link>https://blog.youkuaiyun.com/DustinCheung/article/details/83263534</link><guid>https://blog.youkuaiyun.com/DustinCheung/article/details/83263534</guid><author>DustinCheung</author><pubDate>Sun, 03 Aug 2008 21:05:15 +0800</pubDate><description><![CDATA[    前段时间用C++实现过Reactor模式，今天看到InfoQ上对 EventMachine 
的介绍，原来也是基于该模式的一个框架，很想借鉴一下成熟作品的实现方式。Google了一下 Reactor Pattern，原来已经有很多成熟作品
了：
    The ADAPTIVE Communication Environment
 (C++)
    Apache MINA
 (Java)...]]></description><category></category></item></channel></rss>