<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dcterms="http://purl.org/dc/terms/">
 <channel>
  	  <title><![CDATA[Zeb的博客]]></title>
	  <link>http://zeb2001.blog.163.com</link>
	  <description><![CDATA[做人两大原则：奔放,勇于尝试。 Blood and Glory]]></description>
	  <language>zh-CN</language>
	  <pubDate>Wed, 16 May 2012 20:29:32 +0800</pubDate>
	  <lastBuildDate>Wed, 16 May 2012 20:29:32 +0800</lastBuildDate>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <generator><![CDATA[NetEase Space]]></generator>
	  <managingEditor><![CDATA[zeb2001]]></managingEditor>
	  <webMaster><![CDATA[Zeb]]></webMaster>
		  <ttl>120</ttl>
	  <image>
	  	<title><![CDATA[Zeb的博客]]></title>
	  	<url>http://img.bimg.126.net/photo/OgqoTHLRpeV0Xbnnk9yitA==/170292360909958334.jpg</url>
	  	<link>http://zeb2001.blog.163.com</link>
	  </image>
  <item>
  	<title><![CDATA[绘画新作]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/507400812008622114238197</link>
    <description><![CDATA[<div><P><A href="http://img.blog.163.com/photo/KFFScqM2xc5plgessf6R7g==/2889340635935681483.jpg" target=_blank><IMG src="http://img.blog.163.com/photo/KFFScqM2xc5plgessf6R7g==/2889340635935681483.jpg"></A><A href="http://img.blog.163.com/photo/nClAWzwsHL7Ok8bMPa_w1Q==/2889340635935681484.jpg" target=_blank><IMG src="http://img.blog.163.com/photo/nClAWzwsHL7Ok8bMPa_w1Q==/2889340635935681484.jpg"></A></P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/507400812008622114238197</comments>
    <slash:comments>1</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/507400812008622114238197</guid>
    <pubDate>Tue, 22 Jul 2008 23:42:38 +0800</pubDate>
    <dcterms:modified>2008-07-22T23:49:45+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[Joe Satriani]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/507400812008428103948572</link>
    <description><![CDATA[<div><P>&nbsp; 昨天晚上画了个Joe Satriani的像。手写板就是安逸啊，终于用习惯了。<A href="http://img.blog.163.com/photo/yrIEYiYFFM9QDCBIhl8ZXg==/1125899906843100022.jpg" target=_blank><IMG src="http://img.blog.163.com/photo/yrIEYiYFFM9QDCBIhl8ZXg==/1125899906843100022.jpg"></A></P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/507400812008428103948572</comments>
    <slash:comments>5</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/507400812008428103948572</guid>
    <pubDate>Wed, 28 May 2008 10:39:48 +0800</pubDate>
    <dcterms:modified>2008-05-28T10:39:48+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[解决UltraEdit识别UTF-8编码的问题]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/5074008120083794446105</link>
    <description><![CDATA[<div><P>　　在UltraEdit的配置文件uedit32.ini里的[Setting]里加入Detect UTF-8 String=0。如果是UEStudio的话，那么对应的配置文件为uestudio.INI。</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/5074008120083794446105</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/5074008120083794446105</guid>
    <pubDate>Mon, 7 Apr 2008 09:44:46 +0800</pubDate>
    <dcterms:modified>2008-04-07T09:46:56+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[《干瞪眼》0.01 Beta]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/50740081200811544019368</link>
    <description><![CDATA[<div><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最新下载： <A href="http://stare-game.googlecode.com/files/stare-game-v0.01beta-new.zip" rel=nofollow>http://stare-game.googlecode.com/files/stare-game-v0.01beta-new.zip</A> </P>
<P>　　新版本支持Telnet协议，修改了一些bug</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/50740081200811544019368</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/50740081200811544019368</guid>
    <pubDate>Fri, 15 Feb 2008 16:40:19 +0800</pubDate>
    <dcterms:modified>2008-12-25T15:18:45+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[《干瞪眼》游戏]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/50740081200811082636449</link>
    <description><![CDATA[<div><P>　　游戏下载：<A rel="nofollow" href="http://stare-game.googlecode.com/files/stare-game-v0.01alpha.zip"  >http://stare-game.googlecode.com/files/stare-game-v0.01alpha.zip</A></P>  <P>　　今年过年，居然没人找我打麻将，实在是冷清。无聊之余写了这个《干瞪眼》游戏，算是混混时间。</P>  <P>　　游戏采用的通讯协议是XMPP，也就是说用支持XMPP的客户端都可以耍，比如：google talk。当然了，目前只有文字，没有图形表示，不过游戏乐趣依然不减。</P>  <P>　　这是第一个发布版本，可能问题多多，比如目前没有对上下线进行比较好的处理，在游戏过程中，强制下线可能会带来一些问题。日后慢慢修缮。</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/50740081200811082636449</comments>
    <slash:comments>2</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/50740081200811082636449</guid>
    <pubDate>Sun, 10 Feb 2008 20:26:36 +0800</pubDate>
    <dcterms:modified>2011-10-01T14:06:14+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[UltraEdit的自动编码识别]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/50740081200802341927716</link>
    <description><![CDATA[<div><P>　　UltraEdit是个功能很强大的文本编辑器，我日常的程序开发工作基本上都用它就完成了。</P>
<P>　　但是，最近几天我时不时的会发现我用UltraEdit保存某些带有中文注释的代码文件，结果出现了乱码，感觉异常奇怪。今天花了点时间总算是把问题搞清楚。</P>
<P>　　首先，UltraEdit的系统设置里有一项为“自动检测UTF-8文件”，如果这个项目设置了，那么UltraEdit会按照一定的规则去检测UTF-8文件。<BR>　　这个规则包含unicode中关于BOM的相关标准，这部分这里我就不说了，另外UltraEdit还支持一个很诡异的规则，就是如果文本中包含：encoding="utf-8"这样的字符串，那么，UltraEdit就会认为这个文件是utf-8编码的。可以这样做一个实验，用windows自带的记事本(notepad)创建一个文本文件，在里面输入点中文，然后写上：encoding="utf-8"，保存为ANSI编码的，然后将UltraEdit的“自动检测UTF-8文件”打开，打开刚才用notepad保存的文件，可以发现，这时显示的是乱码。这里UltraEdit把这个文件当作是utf-8编码的了。</P>
<P>　　这个规则可能在某些情况下让使用者很尴尬。因为这样的特殊文字并不那么特殊，比如XML文件，python代码文件。我放弃使用UltraEdit了，改用EmEditor。</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/50740081200802341927716</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/50740081200802341927716</guid>
    <pubDate>Wed, 23 Jan 2008 16:19:27 +0800</pubDate>
    <dcterms:modified>2008-01-23T17:24:58+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[Python,XML &amp; Encoding]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/5074008120071110436622</link>
    <description><![CDATA[<div><P>　　最近遇到一个比较郁闷的事情，终于解决了，这里记上一笔。</P>
<P>　　使用Python处理xml文件时，我使用了是xml.dom.minidom。以前比较巧合的是，处理的XML都没有包含汉字。这次的XML文件里包含了汉字，并且由于项目的其他部分的原因，这里的XML必须使用gb2312编码的，于是，xml.dom.minidom不能解析了。在网上搜索得知，Python的库处理gb2312编码的XML文件时有问题，需要转换成utf-8。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content = content.decode('gb2312').encode('utf-8')<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content = content.replace('encoding="gb2312"', 'encoding="utf-8"')</P>
<P>　　读取的问题解决了。</P>
<P>　　接下来，后来我对读出的数据进行一些处理后，再生成另外的XML的时候，问题又发生了，说有的地方编码方式错误。经过检查，发现原来使用getAttribute方法从node读出的字符串是unicode（utf-16）的。这里很让人困惑，因为之前都已经把文本转成了utf-8的，很自然让人觉得getAttribute拿出来的东西是utf-8的。于是，再次的在需要编码转换的地方加上encode&amp;decode。</P>
<P>　　总结一下：</P>
<P>　　１）python的xml.dom.minidom对gb2312编码的XML文件支持不好，需要转换成utf-8。</P>
<P>　　２）从node使用getAttribute拿出的数据是unicode的，不是想当然的utf-8。</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/5074008120071110436622</comments>
    <slash:comments>1</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/5074008120071110436622</guid>
    <pubDate>Mon, 10 Dec 2007 16:36:06 +0800</pubDate>
    <dcterms:modified>2007-12-10T16:36:06+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[[转]几个故事]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/50740081200792395949562</link>
    <description><![CDATA[<div><P><FONT color=#999999>1、宽容&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></P>
<P><FONT color=#999999>一只小猪、一只绵羊和一头乳牛，被关在同一个畜栏里。有一次，牧人捉住小猪，牠大声号叫，猛烈地抗拒。绵羊和乳牛讨厌牠的号叫，便说：「他常常捉我们，我们并不大呼小叫。小猪听了回答道：「捉你们和捉我完全是两回事，他捉你们，只是要你们的毛和乳汁，但是捉住我，却是要我的命呢!&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></P>
<P><FONT color=#999999>立场不同、所处环境不同的人，很难了解对方的感受；因此对别人的失意、挫折、伤痛，不宜幸灾乐祸，而应要有关怀、了解的心情。要有宽容的心！ <BR></FONT></P></FONT>
<P><FONT color=#999999>2、靠自己 </FONT></P>
<P><BR><FONT color=#999999>小蜗牛问妈妈：为什么我们从生下来，就要背负这个又硬又重的壳呢？ <BR>妈妈：因为我们的身体没有骨骼的支撑，只能爬，又爬不快。所以要这个壳的保护！ <BR>小蜗牛：毛虫姊姊没有骨头，也爬不快，为什么她却不用背这个又硬又重的壳呢？ <BR>妈妈：因为毛虫姊姊能变成蝴蝶，天空会保护她啊。 <BR>小蜗牛：可是蚯蚓弟弟也没骨头爬不快，也不会变成蝴蝶他什么不背这个又硬又重的壳呢？ <BR>妈妈：因为蚯蚓弟弟会钻土,大地会保护他啊。 <BR>小蜗牛哭了起来：我们好可怜，天空不保护，大地也不保护。 <BR>蜗牛妈妈安慰他：「所以我们有壳啊！」 <BR>我们不靠天，也不靠地，我们靠自己。 <BR><BR>3、鲨鱼与鱼 <BR><BR>　　曾有人做过实验，将一只最凶猛的鲨鱼和一群热带鱼放在同一个池子，然后用强化玻璃隔开，最初，鲨鱼每天不断冲撞那块看不到的玻璃，耐何这只是徒劳，它始终不能过到对面去，而实验人员每天都有放一些鲫鱼在池子里，所以鲨鱼也没缺少猎物，只是它仍想到对面去，想尝试那美丽的滋味，每天仍是不断的冲撞那块玻璃，它试了每个角落，每次都是用尽全力，但每次也总是弄的伤痕累累，有好几次都浑身破裂出血，持续了好一些日子，每当玻璃一出现裂痕，实验人员马上加上一块更厚的玻璃。 <BR><BR>　　后来，鲨鱼不再冲撞那块玻璃了，对那些斑斓的热带鱼也不再在意，好像他们只是墙上会动的壁画，它开始等着每天固定会出现的鲫鱼，然后用他敏捷的本能进行狩猎，好像回到海中不可一世的凶狠霸气，但这一切只不过是假像罢了，实验到了最后的阶段，实验人员将玻璃取走，但鲨鱼却没有反应，每天仍是在固定的区域游着它不但对那些热带鱼视若无睹，甚至于当那些鲫鱼逃到那边去，他就立刻放弃追逐，说什么也不愿再过去，实验结束了，实验人员讥笑它是海里最懦弱的鱼。&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; </FONT></P>
<P><FONT color=#999999>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 可是失恋过的人都知道为什么，它怕痛。 <BR><BR>4、神迹 <BR><BR>　　法国一个偏僻的小镇，据传有一个特别灵验的水泉，常会出现神迹，可以医治各种疾病。有一天，一个拄着拐杖，少了一条腿的退伍军人，一跛一跛的走过镇上的马路，旁边的镇民带着同情的回吻说：「可怜的家伙，难道他要向上帝祈求再有一条腿吗??」这一句话被退伍的军人听到了，他转过身对他们说：「我不是要向上帝祈求有一条新的腿，而是要祈求祂帮助我，叫我没有一条腿后，也知道如何过日子。」 <BR><BR>　　试想：学习为所失去的感恩，也接纳失去的事实，不管人生的得与失，总是要让自已的生命充满了亮丽与光彩，不再为过去掉泪，努力的活出自己的生命。 <BR><BR>5、钓竿 <BR><BR>　　有个老人在河边钓鱼，一个小孩走过去看他钓鱼，老人技巧纯熟，所以没多久就钓上了满篓的鱼，老人见小孩很可爱，要把整篓的鱼送给他，小孩摇摇头，老人惊异的问道：「你为何不要？」小孩回答：「我想要你手中的钓竿。」老人问：「你要钓竿做什么？」小孩说：「这篓鱼没多久就吃完了，要是我有钓竿，我就可以自己钓，一辈子也吃不完。」 <BR><BR>　　我想你一定会说：好聪明的小孩。错了，他如果只要钓竿，那他一条鱼也吃不到。因为，他不懂钓鱼的技巧，光有鱼竿是没用的，因为钓鱼重要的不在“钓竿”，而在“钓技”。 <BR><BR>　　有太多人认为自己拥有了人生道上的钓竿，再也无惧于路上的风雨，如此，难免会跌倒于泥泞地上。就如小孩看老人，以为只要有钓竿就有吃不完的鱼，像职员看老板，以为只要坐在办公室，就有滚进的财源。 </FONT></P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/50740081200792395949562</comments>
    <slash:comments>2</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/50740081200792395949562</guid>
    <pubDate>Tue, 23 Oct 2007 21:59:49 +0800</pubDate>
    <dcterms:modified>2007-10-23T22:03:18+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[编码的问题]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/507400812007922115113501</link>
    <description><![CDATA[<div><P>　　刚才遇到一个比较郁闷的问题，我用UltraEdit写了一个python代码文件，然后执行的时候，程序直接崩溃。</P>
<P>代码如下：</P># -*- coding: cp936 -*-<BR>
<P>xxxxxxxxxxx<BR>......</P>
<P>&nbsp;　　开头以为中什么木马病毒之类，查一下没查到。后来开始一行一行的删代码，最后发现，原来我的UltraEdit的默认编码是utf-8，而代码里指定的编码是cp936，把代码改成指定编码为utf-8，问题解决。</P>
<P>　　另外，最新的Python3000已经把utf-8作为默认的编码方式了。</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/507400812007922115113501</comments>
    <slash:comments>1</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/507400812007922115113501</guid>
    <pubDate>Mon, 22 Oct 2007 12:10:52 +0800</pubDate>
    <dcterms:modified>2007-10-22T12:10:52+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[又是一个十月]]></title>	
    <link>http://zeb2001.blog.163.com/blog/static/50740081200791991353662</link>
    <description><![CDATA[<div><P>　　每年的十月总是那么难熬，我也不知道什么原因。这样一个月份似乎注定要发生点什么事，慢慢的，我已经习惯。在这样一个多事之秋，何不让生活过得轻松点，自在点，更多的享受生活。</P>
<P>　　</P></div>]]></description>
	    <author><![CDATA[Zeb]]></author>
	    <comments>http://zeb2001.blog.163.com/blog/static/50740081200791991353662</comments>
    <slash:comments>3</slash:comments>
    <guid isPermaLink="true">http://zeb2001.blog.163.com/blog/static/50740081200791991353662</guid>
    <pubDate>Fri, 19 Oct 2007 21:26:50 +0800</pubDate>
    <dcterms:modified>2007-10-19T21:26:50+08:00</dcterms:modified>
  </item>    
 </channel>
</rss>
