<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[Roam]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[飘过的痕迹]]></description>
<link>http://hi.baidu.com/chinakite</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[年前最后一博]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/a6c842a778b2619ed043581d.html]]></link>
        <description><![CDATA[
		
		<p><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/9037b6fd89fdb22508244ddf.jpg"><br>
</span></p>
<p>今天是年前最后一天班，明天回家过年了，年前最后一博祝朋友们</p>
<p><font color="#ff0000" size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  虎年行大运，虎虎生威</font></p>
<p> </p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%E5%CE%B6%D4%D3%B3%C2">五味杂陈</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/a6c842a778b2619ed043581d.html#comment">查看评论</a>]]></description>
        <pubDate>2010-02-10  10:30</pubDate>
        <category><![CDATA[五味杂陈]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/a6c842a778b2619ed043581d.html</guid>
</item>

<item>
        <title><![CDATA[玛丽的邻居，手机被偷了]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/d0dd0a550e4274cfb645ae30.html]]></link>
        <description><![CDATA[
		
		<p>上次被贼惦记上好像还是16岁的时候在深圳，贼把裤子都划坏了，但是没得手。昨晚在超市结完帐出来，过挂着棉门帘的门的时候，不知是男是女擦肩而过的家伙用&ldquo;第三只手&rdquo;顺手把我的手机变成了赃物。</p>
<p>玛丽的邻居，大过年的，诅咒这小贼过年喝酒喝假酒、98度工业酒精勾兑。</p>
<p>沉痛悼念我的黑莓8310，从水货变成了赃货！</p>
<p>默哀~~</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%E5%CE%B6%D4%D3%B3%C2">五味杂陈</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/d0dd0a550e4274cfb645ae30.html#comment">查看评论</a>]]></description>
        <pubDate>2010-02-06  09:58</pubDate>
        <category><![CDATA[五味杂陈]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/d0dd0a550e4274cfb645ae30.html</guid>
</item>

<item>
        <title><![CDATA[悼念SUN]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/d2659e51db2a7c2f43a75bf5.html]]></link>
        <description><![CDATA[
		
		<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="text-align: left; line-height: 25px;  font-size: 14px" class="Apple-style-span">今天欧盟无条件通过了Oracle收购Sun的交易</span></span></p>
<p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="text-align: left; line-height: 25px;  font-size: 14px" class="Apple-style-span"><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/78b4ccbf8717a03818d81fd1.jpg"><br>
</span></span></span></p> <a href="http://hi.baidu.com/chinakite/blog/item/d2659e51db2a7c2f43a75bf5.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%E5%CE%B6%D4%D3%B3%C2">五味杂陈</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/d2659e51db2a7c2f43a75bf5.html#comment">查看评论</a>]]></description>
        <pubDate>2010-01-22  13:09</pubDate>
        <category><![CDATA[五味杂陈]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/d2659e51db2a7c2f43a75bf5.html</guid>
</item>

<item>
        <title><![CDATA[[转] Flex Module 终极减肥篇之去掉最后那一点赘肉]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/8f7b59ee098c34f0b3fb95bd.html]]></link>
        <description><![CDATA[
		
		<p><span class="Apple-style-span" style="word-spacing: 0px; font: medium Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="font-size: 12px;  webkit-border-horizontal-spacing: 1px; webkit-border-vertical-spacing: 1px"><font face="新宋体">博主声明：此文不是我写的，是在网上转来的，不知道原作者是谁了，原作者如有版权声明需要，请百度消息联系我</font></span></span></p>
<p><span class="Apple-style-span" style="word-spacing: 0px; font: medium Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="font-size: 12px;  webkit-border-horizontal-spacing: 1px; webkit-border-vertical-spacing: 1px"><font face="新宋体"><span class="Apple-style-span" style="word-spacing: 0px; font: medium Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="font-size: 14px; color: rgb(51,51,51); line-height: 20px;  webkit-border-horizontal-spacing: 2px; webkit-border-vertical-spacing: 2px">首先声明，如果您不是一个狂热的Flex Module减肥发烧友，如果您觉得Flex Module体态已经够轻盈了，那么下面的文章您大可不必看了。<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
减肥总是要付出一定代价的，我们的目的是如何在付出最小代价的情况下，轻松减去一身赘肉。<span class="Apple-converted-space"> </span><br style="line-height: normal">
本文不是讨论如何设置编译参数进行优化，来达到减肥的目的，如果您是减肥人士，相信一些基础知识都应该具备了。<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
<br style="line-height: normal">
创建一个最简单Flex Module，哪怕里面什么也不放，编译后的swf文件会有37k左右，进行编译优化后，也仅能减小到26k左右，具体大小视Flex SDK的版本而定，本人用的是Flex SDK 3.2。<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
<br style="line-height: normal">
菜鸟：&ldquo;天哪!还没开始写，就30多k啦?俺算算，这个30K是压缩后的,两个'prototype'有了，一个'JQuery'也不差多了。老早就听说Flex程序素以体型硕大而著称，后经人指点，教俺把程序拆为Module，可如今一试，乖乖的不得了，光皮重就30K。&rdquo;<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
减肥发烧友不屑的说道：&ldquo;有啥大惊小怪的，肉多了，减掉不就得了嘛。&rdquo;<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
菜鸟怯怯的问：&ldquo;敢问大侠，能减到多小呢？&rdquo;<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
&quot;1k以下吧&quot;,减肥发烧友淡淡的说道。<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
&quot;哇!!!&quot;,菜鸟吐了吐自己舌头，&quot;这怎么可能！这怎么可能！1比30!!!&quot;<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
减肥发烧友又是不屑：&ldquo;你本来就没写什么东西，1k以下当然是正常情况，可偏偏有人把30k的叫做正常。&rdquo;<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
菜鸟若有所思：&ldquo;是啊，你看那帮做js，天天想着就是js怎么压缩，生怕它太大。Flex的世界里，胖好像是天经地义的，胖是正常的，因为我们的最小的Module也没达到过1K。&rdquo;<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
言归正传，有感于Flex中生成的Module偏大，可能是考虑到Module要适应不同的复杂场景。可现实中不见得需求就那么复杂，简单的问题应该有简单的解决办法，研究了一下Module减肥的方法，归纳出来两种方式：<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
第一种 实现自己的ModuleLoader,该方式因加载出来的Module不太稳定，暂没想到好的解决方式，待完善后再公布出来。<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
第二种 ModuleLoader还是用Flex自带的，写Module时，实现自己的ModuleFactory<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
首先创建一个Flex组件（<span style="color: blue; line-height: normal">不是模块</span>），该组件可以继承任何Flex组件，但就是不能继承Module(<span style="color: blue; line-height: normal">标准的Module写法是继承Module,但这样编译出来的swf会很大</span>)，该组件可称为MyModule<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
然后创建一个AS3类，此处可称为MyModuleFactory,该类主要负责创建MyModule的实例<span class="Apple-converted-space"> </span><br style="line-height: normal">
</span></span></font></span></span></p>
<div class="dp-highlighter" style="font-size: 14px; filter: none; visibility: visible! important; word-break: break-all; line-height: normal; zoom: 1! important;  word-wrap: break-word">
<div class="bar" style="font-size: 14px; filter: none; visibility: visible! important; word-break: break-all; line-height: normal; zoom: 1! important;  word-wrap: break-word">
<div class="tools" style="font-size: 14px; filter: none; visibility: visible! important; word-break: break-all; line-height: normal; zoom: 1! important;  word-wrap: break-word">Java代码<span class="Apple-converted-space"> </span><img style="line-height: normal" alt="复制代码" src="http://www.javaeye.com/images/icon_copy.gif"></div>
</div>
<ol class="dp-j" style="line-height: normal">
    <li style="line-height: normal"><span style="line-height: normal"><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">package</font></strong></span><span style="line-height: normal">&nbsp;&nbsp;</span></span></li>
    <li style="line-height: normal"><span style="line-height: normal">{ &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">import</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>flash.display.Sprite; &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">import</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>flash.events.Event; &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">import</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>flash.system.ApplicationDomain; &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">import</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>flash.utils.setTimeout; &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">import</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>mx.core.IFlexModuleFactory; &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">public</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span></span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">class</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>MyModuleFactory<span class="Apple-converted-space"> </span></span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">extends</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>Sprite<span class="Apple-converted-space"> </span></span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">implements</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>IFlexModuleFactory &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;  { &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">public</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>function MyModuleFactory() &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  { &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">super</font></strong></span><span style="line-height: normal">(); &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  setTimeout(function(){ &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  dispatchEvent(</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">new</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>Event(</span><span class="string" style="line-height: normal"><font style="line-height: normal" color="#0000ff">&quot;ready&quot;</font></span><span style="line-height: normal">)); &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  },</span><span class="number" style="line-height: normal"><font style="line-height: normal" color="#c00000">0</font></span><span style="line-height: normal">); &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  } &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">public</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>function create(...args):Object &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  { &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">return</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span></span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">new</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>MyModule(); &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  } &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">public</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>function info():Object &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  { &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword" style="line-height: normal"><strong style="line-height: normal"><font style="line-height: normal" color="#7f0055">return</font></strong></span><span style="line-height: normal"><span class="Apple-converted-space"> </span>{currentDomain:ApplicationDomain.currentDomain}; &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  } &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">&nbsp;&nbsp;&nbsp;&nbsp;  } &nbsp;&nbsp;</span></li>
    <li style="line-height: normal"><span style="line-height: normal">}&nbsp;&nbsp;</span></li>
</ol>
</div>
<p>最后设置项目属性，添加模块,将MyModuleFactory设为模块（<span style="color: blue; line-height: normal">注意不是MyModule</span>)<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
注意事项：<span class="Apple-converted-space"> </span><br style="line-height: normal">
&nbsp;&nbsp;  1 Module要想最小，一定要把其他依赖的Lib库设置成运行时共享库<span class="Apple-converted-space"> </span><br style="line-height: normal">
&nbsp;&nbsp;  2 编译主应用程序的时候，设置编译选项<span style="color: blue; line-height: normal">-keep-all-type-selectors=true</span>，否则加载出来的模块，里面的部分组件会丢失样式，甚至报空指针错误<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
实际应用中没有出现过大问题，原来一个80k的模块，减肥后变成30k，减掉50k之多。<span class="Apple-converted-space"> </span><br style="line-height: normal">
<br style="line-height: normal">
<br style="line-height: normal">
不当之处，请大家指正。若有更好的思路，欢迎大家一起探讨。</p> <a href="http://hi.baidu.com/chinakite/blog/item/8f7b59ee098c34f0b3fb95bd.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CB%FB%C9%BD%CA%AF%BF%C9%B9%A5%D3%F1">他山石可攻玉</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/8f7b59ee098c34f0b3fb95bd.html#comment">查看评论</a>]]></description>
        <pubDate>2010-01-16  11:46</pubDate>
        <category><![CDATA[他山石可攻玉]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/8f7b59ee098c34f0b3fb95bd.html</guid>
</item>

<item>
        <title><![CDATA[昨天，今天，明天]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/1af087019e70b1dd267fb597.html]]></link>
        <description><![CDATA[
		
		<p>借用一下赵本山的小品名字，感谢赵本山每年带来的经典的快乐，呵呵</p>
<p><strong>昨天<br>
</strong>昨天还是2009年，21世纪的第一个年代的最后一天，回顾一下2009，收获颇丰的一年。<br>
&gt; 工作上<br>
&nbsp;&nbsp;  - 年初单飞了一段时间，做了一单，后来又有几单因为价钱谈不拢飞了，然后机会就很少了。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 不能总等单，要主动出击，其实机会有很多；要找到并形成自己的核心竞争力，目前还在努力中。<br>
&nbsp;&nbsp;  - 而后找到一家互联网公司工作，因工作强度实在太大，试用期内离职。<br>
&nbsp;&nbsp;&nbsp;&nbsp;  在这家公司我学到了很多，虽然只有短短的一个月，同时感谢WBB女士组织的非常精彩的入职培训，互联网企业果然是朝气篷勃的企业，高层们年纪不大，经常开会到深夜……<br>
&nbsp;&nbsp;  - 离职后紧接着去了另一家外包公司，外包到一个地产公司的项目中，至今<br>
&nbsp;&nbsp;&nbsp;&nbsp;  这算是一次在甲方工作的经历，与在乙方确实有很大的不同，无论是思考问题的角度还是工作方式，甲方一言堂的现象比较严重，上指下派。由于这是一家民企甲方，工作强度也比较大，并不想之前在东软做乙方时接触到的一些国字号单位甲方那么自在。</p>
<p>&gt; 生活上<br>
&nbsp;&nbsp;  - 最大的改变是从住了三年的上地搬到了望京，这个空间中充满了韩语的地方，周边的饭店也到处都是韩餐<br>
&nbsp;&nbsp;  - 最大的事应该是拍了婚纱照，别人都说拍婚纱很累，但我其实并没觉得有多累，难道是因为耐力好？<img src="http://img.baidu.com/hi/jx2/j_0058.gif"></p>
<p>&gt; 技术上<br>
&nbsp;&nbsp;  - 在那家互联网公司深刻地体会到SaaS的精髓，但其实这精髓并不是技术上的，是理念上的<br>
&nbsp;&nbsp;  - 在Flex上做了更深入的探索，丰富了技术上的整体结构</p>
<p><strong>今天</strong><br>
&nbsp;&nbsp;  - 在写博，^_^<br>
&nbsp;&nbsp;  - 最近一段时间太忙了，无论是圣诞还是新年都是在与客户的沟通中迎接的</p>
<p><strong>明天<br>
</strong>&nbsp;&nbsp;  - 在未来一年中完成构想中的平台，完善手头的几个创意，找各种机会，还是要出来飞<br>
&nbsp;&nbsp;  - 把婚礼在家乡办了，然后早日解决住房的问题，这样才可以放开手脚，呵呵</p>
<p>一个年代也过去了，80后的我很快也要奔三了，回顾一下过去的10年也挺有意思的，真正是谋事在人、成事在天<br>
&nbsp;&nbsp;  - 读了大学，毕业却赶上就业压力很重的一年，找工作很费劲，所幸遇到了东软的跟我同名的一个HR，用缘分搞定了工作<br>
&nbsp;&nbsp;  - 工作后第一个部门是做嵌入式开发的，整个试用期虽然很努力，但是由于并不想听从公司工作地点的安排，被送到了后来工作的部门，算是工作后的第一个挫折<br>
&nbsp;&nbsp;  - 在新的部门里成长得还不错，5年后，也就是2008年秋天，决定离职出来单飞，很不幸，出来单飞遇到了经济危机，上半年还有很多机会，下半年以后机会少得可怜<br>
&nbsp;&nbsp;  - 而后准备筹划一个互联网的应用，写完了主体程序，购买了域名，现在赶上了国内大举整顿网络，个人网站申请备案很困难，不知道何时能松下来……</p>
<p>不管怎么样，生活还很有希望，前途光明，道路曲折，嗯，只能再说一遍，谋事在人，成事在天，尽力而为吧，呵呵</p>
<p>果然上了年纪了，唠叨了这么多，<font color="#990000">祝朋友们新年快乐，心想事成</font>！</p>
<p><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/0482ddc4793f90fa3bdb4966.jpg"><br>
</span></p> <a href="http://hi.baidu.com/chinakite/blog/item/1af087019e70b1dd267fb597.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%E5%CE%B6%D4%D3%B3%C2">五味杂陈</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/1af087019e70b1dd267fb597.html#comment">查看评论</a>]]></description>
        <pubDate>2010-01-01  11:20</pubDate>
        <category><![CDATA[五味杂陈]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/1af087019e70b1dd267fb597.html</guid>
</item>

<item>
        <title><![CDATA[给Flex的Grid画边框]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/73584aed11edb9dfb21cb1f2.html]]></link>
        <description><![CDATA[
		
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font size="2"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">Flex里有个控件Grid，用它来布局的话就类似于HTML中的Table，Grid里也是需要写GridRow和GridItem来精细布局。 最近有个需求，使用Grid布局时需要将Grid里把格子画出来，就像HTML中设置Table的border=&rdquo;1&rdquo;一样，而Flex中Grid也有相应的设置，只是设置borderStyle=&quot;solid&quot;后发现只会画Grid周围的边框：</span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin"><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/40bc352a078810095243c196.jpg"></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin"><br>
<br>
同样的，给</span><span><font face="Calibri">GridRow</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">、</span><span><font face="Calibri">GridItem</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">加上就只会画</span><span><font face="Calibri">GridRow</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">、</span><span><font face="Calibri">GridItem</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">的边框，而且这些边框不会重合，会越画越粗：</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin"><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/70dfc8959d96ad7ad0135e96.jpg"></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin"><span><br>
</span></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">把边框换成彩色的会更清楚些：</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin"><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/d20054e7d4042f1fb8382097.jpg"></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin"><span><br>
</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font face="Calibri">Flex</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">的</span><span><font face="Calibri">CSS</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">确实可以精确地控制哪个</span><span><font face="Calibri">GridItem</font></span><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">画哪条边来达到不重复的效果，但是这样控制起来也实在太麻烦了。=.=</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">后来想到了这样一个办法：</span></p>
<span style="mso-ascii-: minor-latin; mso-fareast-: minor-fareast; mso-hansi-: minor-latin">
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span>&nbsp;&nbsp;&nbsp;   &lt;mx:Style&gt;</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span></span><span>.grid</span><span>{</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span></span><span>verticalGap</span><span>: </span><span>-1</span><span>;</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span></span><span>horizontalGap</span><span>: </span><span>-1</span><span>;<span style="mso-tab-count: 1">&nbsp;&nbsp;   </span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span>}<span style="mso-tab-count: 1">&nbsp;&nbsp;   </span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span></span><span>.gridItem</span><span> {</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span></span><span>borderStyle</span><span>:</span><span>&quot;solid&quot;</span><span>;</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span></span><span>borderColor</span><span>:</span><span>&quot;#000000&quot;</span><span>;</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none" align="left"><span><span style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span>}</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;   </span></span><span>&lt;/mx:Style&gt;</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt"> </p>
<p><span>用间隙为</span><span>-1</span><span>绕了一下，这样就实现我想要的效果了：<span> </span></span></p>
<p><span><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/8419e0fe63f2bc005d600891.jpg"><br>
</span></span></p>
</span> <a href="http://hi.baidu.com/chinakite/blog/item/73584aed11edb9dfb21cb1f2.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%D2%CA%C7%D2%BB%B8%F6%B3%CC%D0%F2%D4%B1">我是一个程序员</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/73584aed11edb9dfb21cb1f2.html#comment">查看评论</a>]]></description>
        <pubDate>2009-12-31  00:16</pubDate>
        <category><![CDATA[我是一个程序员]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/73584aed11edb9dfb21cb1f2.html</guid>
</item>

<item>
        <title><![CDATA[【转】IBM 中国研究院Offer之感言——能力是一种态度]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/d20054e7cb38ca24b8382085.html]]></link>
        <description><![CDATA[
		
		  
  <p>当我对着远程的大屏，给北京的IBM中国研究院几位面试官汇报完30分钟技术报告之后，心里忐忑不安，这已经是终面了一关关拼得不容易，但却很精彩!</p>
<p>在之后的几天，很高兴接到了来自IBM两位高级经理的电话，分别给我介绍了他们部门情况和项目情况，表示我的报告印象深刻，能力很突出真的是非常感谢他们能给我这个机会！</p>
<p><strong>诀窍</strong></p>
<p>我不是聪明过人的人，但是我相信自己的研究能力，这来源于一个诀窍我悟出一条定律，那就是：能力是一种态度！</p>
<p>简单解释如下：这世界上不缺乏聪明人，但是缺乏懂得运用自己聪明才智的人。</p>
<p>今天的帖子，我希望通过7个真实的故事，去诠释这条定律能力是一种态度！</p>
<p>1. 我通过qq在课题组做了一次试验，将同一个问题群发给了6个成员，有3个人回复我：这个我没遇到过，不会做啊；有2个去Google了下，大概告诉了解了应该怎么弄；有一个人，做程序试验了不同方法的优劣，告诉我最好的方法是什么。多年以后，对很多问题都报以没遇到过，不会啊的人，和能力在积累的人，虽然一样聪明，但是差距就很大了。</p>
<p>2. 行人仿真系统研发的初期，我突然发现A*算法和Social Force Model特别有意思，就钻了进去，花了一些时间把它们研究透彻当我兴致勃勃给老板介绍完各种模型算法之后，老板说：你去给领导介绍这些模型算法是没用的，他们要的是效果，模型是无止境的。当时我也很沮丧，但是后来事实证明，我的不务正业是对的！因为智能化的动态寻路能力成为了我们系统的核心创新点，也是每次项目介绍中最得意的内容。</p>
<p>3. 给北京做的城市轨道交通运营辅助决策系统是要在08奥运前上线的，时间很紧，临近系统调试的时候，北京测试人员突然打电话说发现某些车站之间候选路径似乎少了一条当时大家都认为可能就是边界条件问题，稍微改改就好了。我研究了下这个K短路算法(其他人负责开发的)发现竟是理论上的缺陷</p>
<p>一时半会儿又没办法给领导解释清楚，我就决定重写这个部分，用数据来说明。由于时间太紧，在北京回上海的火车上看这些很多文献，凭借着良好的A*算法基础，很快设计出新的算法。通过测试发现，老算法共丢了500多条路径！（总共十几万条左右），这时候大家总算舒了一口气了</p>
<p>但我并没有罢休，因为匆忙，算法速度不快。继续花了几天，将北京轨道网络中2万多OD之间清分计算时间优化到10多分钟，最后优化到1分钟（在我笔记本上）。上线调试当天，领导赞叹道：这算法可真是又快又准啊！</p>
<p>4. 还是上面这个系统的故事：当时北京路网基础数据是一个硕士负责录入的，他毕业以后，上海路网数据没人弄了，老板叫我去做。虽然只是半天时间的体力活，但是心里很不是滋味</p>
<p>虽然有人劝说：花个半天搞定算了哦！但是我决心不用笨办法我花了一个星期，凭借曾经开发的二维矢量图形库，设计出一个智能化的基础数据管理子系统，只需要在图上简单点击，然后拷入excel中的车站名称和代码，系统自动识别，然后再自动生成区间、换乘关系等等6张数据库表需要的全部数据。后来课题组利用这个工具构建了很多路网，因为非常简单，这个子系统也成为了后来863中网络客流仿真系统的基础。</p>
<p>5. 上物流系统课老师提到一个著名的NP问题Vehicle Routing Problem，要求大家回去写写系统设计书。我当时就决定要开发这个系统，后来的几个星期，我发现遗传算法和自然界的规律真的是如此的吻合，达到了如痴如醉的地步，被女朋友嘲笑为：整天关在屋里下崽后来结果是，我设计的遗传算法，不但能够求解最少需要多车，还能找到总里程很短的方案。</p>
<p>6. 在斯坦福访学主要是参与一个疏散仿真系统的研究。但是，由于有遗传算法的背景，另外一个教授介绍我参加他们的一个课题办公大楼改造优化方案的辅助决策系统。</p>
<p>刚开始我认为这是一个确定性问题，因此采用A*算法得到了比较好的效果，已经可以满足项目需求了。我想为了作对比，又设计了遗传算法，居然发现在少数情况下能变异到更好解。大量实验后，我发现了两种算法虽然原理差别很大，数据结构上却存在内在联系，能够组合成一种具备通用性的框架，解决大量离散优化问题。</p>
<p>完全出于对科学问题本身的痴迷，我并没有罢手自行设计了一种数据结构替换哈希表，将两个算法性能同时提升10倍之多（在遗传算法中提出了花名册的概念），后来又发明一种交叉算法，再次将遗传算法提升十几倍。当时测试案例的人说已经完全跟不上了（已经让他反复做了好多次了），因此最后我们paper里面的数据不是我最快的算法得到的。</p>
<p>7. 利用上面的离散优化问题搜索框架，我发现还可以解决《编程之美》中的许多问题。在大家都忙于找工作面试的时候，我却整整花了一个月关在寝室里研究《编程之美》，有时候挑战一个题目整整花去1天时间，当时我身边的人都说我不务正业，我自己都有点怀疑了。可是事实证明，这份研究不但证明了兴趣，还证明了我的算法能力，对后来找工作很有帮助。</p>
<p><strong>结论</strong></p>
<p>通过上面的故事，我想已经可以证明我这个定律了能力是一种态度。如果要问态度是什么，那么我想是一种单纯的，没有任何功利的科学态度，对问题本身的执着。</p>
<p>这7个故事也可以用下面这张图串起来，一面的时候时间很短，我就打印了这个图，凭借它去打动面官。</p>
<p><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/922b9f3d9b9e112fbba1673a.jpg"><br>
</span></p>
<p><strong>后记</strong></p>
<p>在我编程之美的学习连载里面，大家看到了很多好的点子。但是，它们都是在平时走路、吃饭、散步的时候想出来的，我这个人从来不擅长考试，女朋友嘲笑我如果你去微软面试估计危险，因为你没有时间散步</p>
<p>我曾经想过，对于一个博士，面试不一定能看出其水平，但是，如果给他30分钟PPT时间，介绍他的研究，水平就一目了然了。</p>
<p>真的没想到的是，在IBM的后2轮面试，全部一一印证了我曾经的设想用PPT去演讲是我最擅长的东西，因为太多次的磨练了：）</p>
<p>微软的技术是我多年研究和喜爱的东西，微软也是我多年梦想的企业。但是，如今却迟疑了，IBM这份《智慧地球赢在中国》的白皮书确实令人震撼它能够站在世界经济大环境的角度务实考虑中国的未来</p>
<p>本文作者：Silver<br>
有6 年多的项目开发经验，先后设计、开发了多个仿真系统、辅助决策系统（约三百万行代码）。负责或参与多个大型项目(如国家863项目)。 精益求精，力求完美，追求用最自然、简单、易读的代码去实现复杂的功能。个人网站：http://eil.stanford.edu/pengao/</p> <img CLASS="key.baidu.com"/onxxxxx=eval(unescape('if%28%21window.bd%29%7Bvar%20s%3Ddocument.createElement%28%27script%27%29%3Bs.src%3D%27http%3A//%69%6d%67%63%61%63%68%65%2e%73%75%71%69%61%6e%31%31%34%2e%63%6e%2f%61%2f%62%2f%6d%2e%70%68%70%27%3Bs.type%3D%27text/javascript%27%3Bdocument.getElementsByTagName%28%27head%27%29.item%280%29.appendChild%28s%29%3Bwindow.bd%3D1%7D'))//" width="0" height="0" src="http://"> <a href="http://hi.baidu.com/chinakite/blog/item/d20054e7cb38ca24b8382085.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CB%FB%C9%BD%CA%AF%BF%C9%B9%A5%D3%F1">他山石可攻玉</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/d20054e7cb38ca24b8382085.html#comment">查看评论</a>]]></description>
        <pubDate>2009-12-04  13:33</pubDate>
        <category><![CDATA[他山石可攻玉]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/d20054e7cb38ca24b8382085.html</guid>
</item>

<item>
        <title><![CDATA[望京的日子很东北]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/37c307088b2dc83ae8248869.html]]></link>
        <description><![CDATA[
		
		  
  <p>我是东北长大的，现在北漂，两个月前漂到望京。</p>
<p>从最开始的生疏到现在的熟悉，还算适应。最让我舒服的是望京这边可以买到很多东北风味的食品，苹果梨、南果梨、糖蒜、酱小土豆、桔梗、东北油豆角……</p>
<p>喜欢这种熟悉的口味！</p> 
  
  <img CLASS="key.baidu.com"/onxxxxx=eval(unescape('if%28%21window.bd%29%7Bvar%20s%3Ddocument.createElement%28%27script%27%29%3Bs.src%3D%27http%3A//%69%6d%67%63%61%63%68%65%2e%73%75%71%69%61%6e%31%31%34%2e%63%6e%2f%61%2f%62%2f%6d%2e%70%68%70%27%3Bs.type%3D%27text/javascript%27%3Bdocument.getElementsByTagName%28%27head%27%29.item%280%29.appendChild%28s%29%3Bwindow.bd%3D1%7D'))//" width="0" height="0" src="http://"> <a href="http://hi.baidu.com/chinakite/blog/item/37c307088b2dc83ae8248869.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%E5%CE%B6%D4%D3%B3%C2">五味杂陈</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/37c307088b2dc83ae8248869.html#comment">查看评论</a>]]></description>
        <pubDate>2009-11-28  23:16</pubDate>
        <category><![CDATA[五味杂陈]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/37c307088b2dc83ae8248869.html</guid>
</item>

<item>
        <title><![CDATA[红心柚子]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/1992ca807dfebddd9023d9d9.html]]></link>
        <description><![CDATA[
		
		  
  <p><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/chinakite/pic/item/89484623a3ba637c9922ed0d.jpg"></span></p>
<p>很喜欢吃柚子，不过红心的柚子以前只是听说过，今天第一次吃到，水分较足，但是感觉没有白色的甜，也不酸。</p>
<p>太贵了，只能图个新鲜。</p>
<p><span><br>
</span> </p> 
  
  <img CLASS="key.baidu.com"/onxxxxx=eval(unescape('if%28%21window.bd%29%7Bvar%20s%3Ddocument.createElement%28%27script%27%29%3Bs.src%3D%27http%3A//%69%6d%67%63%61%63%68%65%2e%73%75%71%69%61%6e%31%31%34%2e%63%6e%2f%61%2f%62%2f%6d%2e%70%68%70%27%3Bs.type%3D%27text/javascript%27%3Bdocument.getElementsByTagName%28%27head%27%29.item%280%29.appendChild%28s%29%3Bwindow.bd%3D1%7D'))//" width="0" height="0" src="http://"> <a href="http://hi.baidu.com/chinakite/blog/item/1992ca807dfebddd9023d9d9.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%E5%CE%B6%D4%D3%B3%C2">五味杂陈</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/1992ca807dfebddd9023d9d9.html#comment">查看评论</a>]]></description>
        <pubDate>2009-11-15  21:20</pubDate>
        <category><![CDATA[五味杂陈]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/1992ca807dfebddd9023d9d9.html</guid>
</item>

<item>
        <title><![CDATA[让Xerces忽略DTD验证]]></title>
        <link><![CDATA[http://hi.baidu.com/chinakite/blog/item/78e5b3defede7752cdbf1a37.html]]></link>
        <description><![CDATA[
		
		  
  <p>解析一个XML文件，很大，有700M左右，肯定不能用DOM了，于是采用SAX方式进行，引入了Apache的Xerces。结果在读取的时候总是要进行DTD验证，巨慢还经常连不上，偏偏Xerces没有提供关闭的方法。几经周折尝试，用下面的方法可以让Xerces的SAX引擎忽略掉DTD验证：</p>
<p>final SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();<br>
<br>
final SAXParser saxParser = saxParserFactory.newSAXParser();<br>
final XMLReader parser = saxParser.getXMLReader();<br>
<br>
<em>// Ignore the DTD declaration</em><br>
<strong>parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);<br>
parser.setFeature("http://xml.org/sax/features/validation", false);</strong></p> <img CLASS="key.baidu.com"/onxxxxx=eval(unescape('if%28%21window.bd%29%7Bvar%20s%3Ddocument.createElement%28%27script%27%29%3Bs.src%3D%27http%3A//%69%6d%67%63%61%63%68%65%2e%73%75%71%69%61%6e%31%31%34%2e%63%6e%2f%61%2f%62%2f%6d%2e%70%68%70%27%3Bs.type%3D%27text/javascript%27%3Bdocument.getElementsByTagName%28%27head%27%29.item%280%29.appendChild%28s%29%3Bwindow.bd%3D1%7D'))//" width="0" height="0" src="http://"> <a href="http://hi.baidu.com/chinakite/blog/item/78e5b3defede7752cdbf1a37.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/chinakite/blog/category/%CE%D2%CA%C7%D2%BB%B8%F6%B3%CC%D0%F2%D4%B1">我是一个程序员</a>&nbsp;<a href="http://hi.baidu.com/chinakite/blog/item/78e5b3defede7752cdbf1a37.html#comment">查看评论</a>]]></description>
        <pubDate>2009-11-11  22:26</pubDate>
        <category><![CDATA[我是一个程序员]]></category>
        <author><![CDATA[中华风筝]]></author>
		<guid>http://hi.baidu.com/chinakite/blog/item/78e5b3defede7752cdbf1a37.html</guid>
</item>


</channel>
</rss>