<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Gawain&apos;s Jail</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/" />
    <link rel="self" type="application/atom+xml" href="http://blog.khsing.net/atom.xml" />
    <id>tag:blog.khsing.net,2008-07-03://2</id>
    <updated>2009-06-03T04:04:36Z</updated>
    <subtitle>有一种生活叫监狱生活</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>

<entry>
    <title>python-ldap与python25以及CentOS 4.x</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/06/python-ldappython25centos-4x.html" />
    <id>tag:blog.khsing.net,2009://2.74</id>

    <published>2009-06-03T03:45:42Z</published>
    <updated>2009-06-03T04:04:36Z</updated>

    <summary>最近写的一个东东要用python25和python-ldap，但是使用的那台主机是python23、ldap2.2.x和python-ldap2.0.1。安装了一个python25，python-ldap是2.3.8，编译失败，openldap2.2太老了，python-ldap2.3.8不向下兼容了。 那我就用python-ldap2.0.x，这个版本已经不提供下载了，从sf.net的cvs上拉了一份2.0.11的版本，这次倒是编过去了。用的时候出问题了 *** glibc detected *** free(): invalid pointer: 0xb7f60728 *** Aborted 查来查去有三个文章有说这种情况 problem using python-ldap under fcgi python-cdb double free 解决之道：python-cdb 0.32 (-5.2ubuntu2) with Python 2.5 causes double-free corruption crash on dealloc 主要原因是PyMem_DEL的调用已经不被推荐了，应该用PyObject_Del。所以要对两个C文件做一些改动。 sed -i.orig &apos;s/PyMem_DEL/PyObject_Del/g&apos; Modules/LDAPObject.c sed -i.orig...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="development" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="shared" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="build" label="build" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="install" label="install" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ldap" label="ldap" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="python" label="python" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>最近写的一个东东要用python25和python-ldap，但是使用的那台主机是python23、ldap2.2.x和python-ldap2.0.1。安装了一个python25，python-ldap是2.3.8，编译失败，openldap2.2太老了，python-ldap2.3.8不向下兼容了。</p>
<p>那我就用python-ldap2.0.x，这个版本已经不提供下载了，从sf.net的cvs上拉了一份2.0.11的版本，这次倒是编过去了。用的时候出问题了</p>
<pre>
*** glibc detected *** free(): invalid pointer: 0xb7f60728 ***
Aborted
</pre>
<p>查来查去有三个文章有说这种情况
<ul>
<li><a href="http://www.mail-archive.com/python-ldap-dev@lists.sourceforge.net/msg00369.html">problem using python-ldap under fcgi</a></li>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/python-cdb/+bug/157251">python-cdb double free</a></li>
<li>解决之道：<a href="http://www.notes.xythian.net/2007/10/24/python-cdb-032-52ubuntu2-with-python-25-causes-double-free-corruption-crash-on-dealloc/">python-cdb 0.32 (-5.2ubuntu2) with Python 2.5 causes double-free corruption crash on dealloc</a></li>
</ul>
主要原因是PyMem_DEL的调用已经不被推荐了，应该用PyObject_Del。所以要对两个C文件做一些改动。
</p>
<pre>
sed -i.orig 's/PyMem_DEL/PyObject_Del/g' Modules/LDAPObject.c 
sed -i.orig 's/PyMem_DEL/PyObject_Del/g' Modules/ldapcontrol.c 
</pre>
<p>然后再build，install就OK了</p>
]]>
        
    </content>
</entry>

<entry>
    <title>终端下的Spotlight</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/05/spotlight-in-terminal.html" />
    <id>tag:blog.khsing.net,2009://2.73</id>

    <published>2009-05-21T07:40:59Z</published>
    <updated>2009-05-21T07:55:00Z</updated>

    <summary>在终端下也可以使用spotlight----mdfind。 找所有metadata包含something的东东 mdfind something 在~/Downloads里找something mdfind -onlyin ~/Downloads something 找~/Pictures下的所有图片 mdfind -onlyin ~/Pictures &quot;kMDItemKind == *image&quot; 还有mdls查看文件metadata的工具...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="shared" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="spotlight" label="spotlight" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="terminal" label="terminal" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>在终端下也可以使用spotlight----<code>mdfind</code>。</p>
<p>找所有metadata包含something的东东</p>
<pre>
mdfind something
</pre>
<p>在~/Downloads里找something</p>
<pre>
mdfind -onlyin ~/Downloads something
</pre>
<p>找~/Pictures下的所有图片</p>
<pre>mdfind -onlyin ~/Pictures "kMDItemKind == *image"</pre>
<p>还有<code>mdls</code>查看文件metadata的工具</p>
]]>
        
    </content>
</entry>

<entry>
    <title>菜单栏图标的排序</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/05/sort-of-menu-bar.html" />
    <id>tag:blog.khsing.net,2009://2.72</id>

    <published>2009-05-19T09:15:30Z</published>
    <updated>2009-05-19T09:19:36Z</updated>

    <summary>Mac OS X里菜单栏图标的顺序可以按着苹果键拖放，拖出菜单栏就删除了。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="shared" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tips" label="tips" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        Mac OS X里菜单栏图标的顺序可以按着苹果键拖放，拖出菜单栏就删除了。
        
    </content>
</entry>

<entry>
    <title>人生大事</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/05/biggest-thing-in-my-life.html" />
    <id>tag:blog.khsing.net,2009://2.71</id>

    <published>2009-05-19T02:53:45Z</published>
    <updated>2009-05-19T09:21:21Z</updated>

    <summary>上月29号回家开始办终身大事，直到上周末在北京的朋友同事宴请结束，我的人生大事终于办完了。 老家在内蒙古阿拉善，是巴丹吉林沙漠的边缘地区。四月底五月初正是沙漠发狂的时节，这次回家也算是天公做美，竟然接连四五天都是放晴的好日子，倒有了一种秋高气爽的感觉。老家的一切基本照旧，只是随着西部大开发和重污染企业的西迁，空气和饮用水质量下降的太多。同学和朋友大多也都外出打工或学习，在家的少之又少，没见到几个。 婚礼当天请了我初中的语文老师做主持人，并宣读了结婚证书。席间老师在祝福我们的同时也顺便向我老婆揭发了一下我当年的恶习。:-D 来了不少的亲戚，说了不少祝福的话，也说了不少&quot;要好好过日子&quot;之类的话。结婚就是一个成人礼。 在内蒙办完大事，和爸妈告别后就去了辽宁老婆的老家待客。见了许些老婆家的亲戚、朋友、同学，也听了许些祝福的话。这才回到北京招待了一下朋友同事。 人生最大事，在不到20天的时间里过去了，当然了这只是一个开始。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="life" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="wedding" label="wedding" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>上月29号回家开始办终身大事，直到上周末在北京的朋友同事宴请结束，我的人生大事终于办完了。</p>
<p>老家在内蒙古阿拉善，是巴丹吉林沙漠的边缘地区。四月底五月初正是沙漠发狂的时节，这次回家也算是天公做美，竟然接连四五天都是放晴的好日子，倒有了一种秋高气爽的感觉。老家的一切基本照旧，只是随着西部大开发和重污染企业的西迁，空气和饮用水质量下降的太多。同学和朋友大多也都外出打工或学习，在家的少之又少，没见到几个。</p>
<p>婚礼当天请了我初中的语文老师做主持人，并宣读了结婚证书。席间老师在祝福我们的同时也顺便向我老婆揭发了一下我当年的恶习。:-D</p>
<p>来了不少的亲戚，说了不少祝福的话，也说了不少"要好好过日子"之类的话。结婚就是一个成人礼。</p>
<p>在内蒙办完大事，和爸妈告别后就去了辽宁老婆的老家待客。见了许些老婆家的亲戚、朋友、同学，也听了许些祝福的话。这才回到北京招待了一下朋友同事。</p>
<p>人生最大事，在不到20天的时间里过去了，当然了这只是一个开始。</p>]]>
        
    </content>
</entry>

<entry>
    <title>参加CocoaHeads北京分舵的处女会</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/04/cocoaheads-1st-meeting.html" />
    <id>tag:blog.khsing.net,2009://2.70</id>

    <published>2009-04-19T06:09:35Z</published>
    <updated>2009-04-19T07:20:58Z</updated>

    <summary>昨天下午正好在海淀就去了CocoaHeads北京分舵的处女会（其实是1st meeting）。 刚一开始就是免费送书活动----《Cocoa入门－使用Objective-C》，因为后来书还有剩，我不仅自己拿了一本，还给朋友带了一本。暖场过程是让大家做自我介绍及活动的了解途径，发现twiiter真的不是一般的火，很多人都是看到了Apple4.us的推来的。有位大哥热情真是高涨，从天津专程过来，可见大家欲火焚身，也可见Ben Chen同志真是为大家败火呀。场内共有三个MM，只有一位是开发人员，可见这还是个男人的世界，不过我们还是非常欢迎对Cocoa开发感兴趣不感兴趣的PLMM来调和阴阳。 进入正场之后，Ben Chen手绘了Cocoa历史、OOP、MVC、GC等内容，又现场写了Demo，非常牛逼，然后Sunyong又讲了输入法相关问题。端木同学在中间插了许多有趣的故事，比如送的那本书是他一个人一个字一个字的翻写出来的（原书第二版只盖到10.2，他给盖到了10.5），结果他只在序里被提了一句，还有Mac自带的输入法比较烂，Motorola的输入法也比较烂，原因是这两个全世界输入法最烂的团队在同一栋大厦里工作等等了。 处女会显的比较羞涩不要联想，不够开放，讨论也不多。不过毕竟只是处女会嘛，已经很好了。有趣的东西会越来越多的。 活动的成果见：Cocoaheads BJ 另外最近我必须要闭关还债了，欠了公司好多东西，5.1前要有个了结了。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="beijing" label="beijing" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="cocoa" label="cocoa" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="dev" label="dev" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="meeting" label="meeting" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>昨天下午正好在海淀就去了<a href="http://cocoaheads.org">CocoaHeads</a><a href="http://cocoaheadsbj.org">北京分舵</a>的处女会（其实是1st meeting）。</p>
<p>刚一开始就是免费送书活动----<a href="http://www.douban.com/subject/2382413/">《Cocoa入门－使用Objective-C》</a>，因为后来书还有剩，我不仅自己拿了一本，还给朋友带了一本。暖场过程是让大家做自我介绍及活动的了解途径，发现<a href="http://twiiter.com">twiiter</a>真的不是一般的火，很多人都是看到了<a href="http://apple4.us">Apple4.us</a>的推来的。有位大哥热情真是高涨，从天津专程过来，可见大家欲火焚身，也可见Ben Chen同志真是为大家败火呀。场内共有三个MM，只有一位是开发人员，可见这还是个男人的世界，不过我们还是非常欢迎对Cocoa开发感兴趣不感兴趣的PLMM来调和阴阳。</p>
<p>进入正场之后，Ben Chen手绘了Cocoa历史、OOP、MVC、GC等内容，又现场写了Demo，非常牛逼，然后Sunyong又讲了输入法相关问题。端木同学在中间插了许多有趣的故事，比如送的那本书是他一个人一个字一个字的翻写出来的（原书第二版只盖到10.2，他给盖到了10.5），结果他只在序里被提了一句，还有Mac自带的输入法比较烂，Motorola的输入法也比较烂，原因是这两个全世界输入法最烂的团队在同一栋大厦里工作等等了。</p>
<p>处女会显的比较羞涩<sup><em>不要联想</em></sup>，不够开放，讨论也不多。不过毕竟只是处女会嘛，已经很好了。有趣的东西会越来越多的。</p>
<p>活动的成果见：<a href="http://cocoaheadsbj.org/?p=33">Cocoaheads BJ</a></p>
<p>另外最近我必须要闭关还债了，欠了公司好多东西，5.1前要有个了结了。</p>]]>
        
    </content>
</entry>

<entry>
    <title>后悔药是没有卖的</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/04/no-regret.html" />
    <id>tag:blog.khsing.net,2009://2.69</id>

    <published>2009-04-18T05:10:47Z</published>
    <updated>2009-04-18T05:21:29Z</updated>

    <summary>刚才写了一个关于被选择文字高亮的东西，发现是我自己的错，马上把文章给删了，结果Google还是把那篇给抓走了。可见这个世界上是没有后悔药卖的。 因为Mac对被选文字也是有相应的处理的，不过不是反色。之前之是颜色相近没看出来而已，后来换了一个highlight color就可以看清楚了。 以下是那篇文的全篇 很多网站在放一个问题（更多的是迷）时，会把答案的颜色和背景调成一致，想知道答案的人呢就把答案部分选中要不就看源码吧。 Windows中选中文字会做反色的处理，而Mac是在上面盖了一层。然后之前的小技巧在Mac上就失效了。 我很反感这种做法。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="highlight" label="highlight" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="regret" label="regret" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>刚才写了一个关于被选择文字高亮的东西，发现是我自己的错，马上把文章给删了，结果Google还是把那篇给抓走了。可见这个世界上是没有后悔药卖的。</p>
<p>因为Mac对被选文字也是有相应的处理的，不过不是反色。之前之是颜色相近没看出来而已，后来换了一个highlight color就可以看清楚了。</p>
<p>以下是那篇文的全篇</p>
<blockquote>
<del><p>很多网站在放一个问题（更多的是迷）时，会把答案的颜色和背景调成一致，想知道答案的人呢就把答案部分选中要不就看源码吧。</p>
<p>Windows中选中文字会做反色的处理，而Mac是在上面盖了一层。然后之前的小技巧在Mac上就失效了。</p>
<p>我很反感这种做法。</p>
<del>
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>又是万恶的户口制度</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/04/post-4.html" />
    <id>tag:blog.khsing.net,2009://2.67</id>

    <published>2009-04-15T09:59:55Z</published>
    <updated>2009-04-15T15:39:44Z</updated>

    <summary>看一条新闻：北京6月起6岁以下儿童免费体检。注意其中有一句是&quot;居住在北京市且具有北京市户籍的0至6岁儿童可享有这一免费服务&quot;。你妈了个逼的！我上税是上在北京了还是上到老家了。 Update: 再来一条北京将对适龄妇女免费筛查宫颈癌乳腺癌。看看吧，受惠人群是京藉适龄妇女，怎么也脱不了户口的关系。至于费用则是&quot;两癌的检查费用由北京市、区（县）两级财政承担，子宫颈癌筛查每人按20元标准，乳腺癌筛查每人按60标准。&quot;。北京市地税局每年给我寄税单有个屁用，背面的&quot;谢谢您为北京市作出的贡献&quot;，只能是谢谢而已。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="tmd" label="tmd" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>看一条新闻：<a href="http://news.sina.com.cn/c/edu/2009-04-15/133015471044s.shtml">北京6月起6岁以下儿童免费体检</a>。注意其中有一句是"居住在北京市且具有北京市户籍的0至6岁儿童可享有这一免费服务"。你妈了个逼的！我上税是上在北京了还是上到老家了。</p>
<p>Update: 再来一条<a href="http://www.bj.xinhuanet.com/bjpd_sdzx/2009-04/15/content_16262403.htm">北京将对适龄妇女免费筛查宫颈癌乳腺癌</a>。看看吧，受惠人群是京藉适龄妇女，怎么也脱不了户口的关系。至于费用则是"两癌的检查费用由北京市、区（县）两级财政承担，子宫颈癌筛查每人按20元标准，乳腺癌筛查每人按60标准。"。北京市地税局每年给我寄税单有个屁用，背面的"谢谢您为北京市作出的贡献"，只能是谢谢而已。</p>
]]>
        
    </content>
</entry>

<entry>
    <title>DNS dynamic update and Notify </title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/04/dns-dynamic-update-and-notify.html" />
    <id>tag:blog.khsing.net,2009://2.66</id>

    <published>2009-04-15T09:23:40Z</published>
    <updated>2009-04-15T09:48:12Z</updated>

    <summary>DNS的动态更新是在RFC 2136里引入的，BIND8以后就支持了这一特性。用起来还是挺不错的。 Notify机制是在RFC 1996中提出来的，也是在BIND8以后支持的，微软的DNS服务器也是支持这一特性的。 Notify的工作原理是这样的：发现一个master zone的序列号发生改变之后，向该zone的所有slave发送一个变更通知。而确定slave的方法就是查NS记录，然后去掉SOA记录中的master。 上面这个机制在一个有load balancer的环境里就有问题了，NS记录里只记录的是load balancer的一个虚拟IP，master的notify就不可能完整的送达所有的slave。BIND有一个also-notify的参数，以解决这类问题。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="shared" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="bind" label="bind" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="dns" label="dns" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="dynamic" label="dynamic" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="notify" label="notify" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="update" label="update" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>DNS的动态更新是在RFC 2136里引入的，BIND8以后就支持了这一特性。用起来还是挺不错的。</p>
<p>Notify机制是在RFC 1996中提出来的，也是在BIND8以后支持的，微软的DNS服务器也是支持这一特性的。</p>
<p>Notify的工作原理是这样的：发现一个master zone的序列号发生改变之后，向该zone的所有slave发送一个变更通知。而确定slave的方法就是查NS记录，然后去掉SOA记录中的master。</p>
<p>上面这个机制在一个有load balancer的环境里就有问题了，NS记录里只记录的是load balancer的一个虚拟IP，master的notify就不可能完整的送达所有的slave。BIND有一个<code>also-notify</code>的参数，以解决这类问题。</p>]]>
        
    </content>
</entry>

<entry>
    <title>留学回国人太少</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/04/post-3.html" />
    <id>tag:blog.khsing.net,2009://2.65</id>

    <published>2009-04-03T03:57:32Z</published>
    <updated>2009-04-03T04:02:41Z</updated>

    <summary>教育部透露30年来逾百万留学生留在国外，这新闻想起了《论语》里的一句话： 孔子曰：&quot;求，君子疾夫舍曰欲之，而必为之辞。丘也，闻有国有家者，不患寡而患不均，不患贫而患不安，盖均无贫，和无寡，安无倾。夫如是，故远人不服，则修文德以来之。既来之，则安之。今由与求也，相夫子，远人不服而不能来也，邦分崩离析而不能守也，而谋动干戈于邦内，吾恐季孙之忧，不在颛臾，而在萧墙之内也。&quot; 人家出去了不回来到底是谁的原因？...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="china" label="china" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<a href="http://news.163.com/09/0402/06/55SIQ4RF0001124J.html">教育部透露30年来逾百万留学生留在国外</a>，这新闻想起了《论语》里的一句话：
<blockquote>
孔子曰："求，君子疾夫舍曰欲之，而必为之辞。丘也，闻有国有家者，不患寡而患不均，不患贫而患不安，盖均无贫，和无寡，安无倾。夫如是，<strong>故远人不服，则修文德以来之。</strong>既来之，则安之。今由与求也，相夫子，远人不服而不能来也，邦分崩离析而不能守也，而谋动干戈于邦内，吾恐季孙之忧，不在颛臾，而在萧墙之内也。"
</blockquote>
人家出去了不回来到底是谁的原因？]]>
        
    </content>
</entry>

<entry>
    <title>一个记录地球变化的blog</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/03/blog-1.html" />
    <id>tag:blog.khsing.net,2009://2.64</id>

    <published>2009-03-25T10:27:57Z</published>
    <updated>2009-03-25T10:34:05Z</updated>

    <summary>Jackos最近整了一个专门记录地球变化的blog－－暴风地球，域名是刚刚的(www.think-earth.org)。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="shared" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="blog" label="blog" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="earth" label="earth" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<a href="http://jackos.org">Jackos</a>最近整了一个专门记录地球变化的blog－－<a href="http://www.think-earth.org">暴风地球</a>，域名是刚刚的(www.think-earth.org)。]]>
        
    </content>
</entry>

<entry>
    <title>毒的下半部分是毋还是母</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/03/post-2.html" />
    <id>tag:blog.khsing.net,2009://2.63</id>

    <published>2009-03-13T04:10:16Z</published>
    <updated>2009-03-18T04:19:39Z</updated>

    <summary>2会上有个人大代表提了个废除简体字的案，想起几年前有篇《简化汉字到底简化了什么》里提到的&quot;毒&quot;字。查国语辞典： 毒，部首：毋，部首外筆畫：4，總筆畫：8 查汉语在线词典 会意。从屮(象草木初生),毒声。本义:毒草滋生。 再查zhongwen.com的释意里有这样一句。 bottom usually written as 母 &quot;下半部通常写作母&quot;，看来毒的下半部确实是毋，但无论是现行的繁体字和简体字都是写做母的。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="others" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="chinese" label="chinese" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[2会上有个人大代表提了个废除简体字的案，想起几年前有篇《简化汉字到底简化了什么》里提到的"毒"字。查<a href="http://dict.revised.moe.edu.tw/">国语辞典</a>：
<blockquote>
毒，部首：毋，部首外筆畫：4，總筆畫：8
</blockquote>
查<a href="http://fawen.cn/hanyu-zidian.html">汉语在线词典</a>
<blockquote>
会意。从屮(象草木初生),毒声。本义:毒草滋生。
</blockquote>
再查<a href="http://zhongwen.com">zhongwen.com</a>的<a href="http://zhongwen.com/d/172/d114.gif">释意</a>里有这样一句。
<blockquote>
bottom usually written as 母
</blockquote>
"下半部通常写作母"，看来毒的下半部确实是毋，但无论是现行的繁体字和简体字都是写做母的。]]>
        
    </content>
</entry>

<entry>
    <title>备份很重要</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/03/backup-is-important.html" />
    <id>tag:blog.khsing.net,2009://2.62</id>

    <published>2009-03-05T02:00:41Z</published>
    <updated>2009-03-05T02:20:03Z</updated>

    <summary>周末，机器硬盘挂了，只有DB做了备份，所以blog还在，其他的wiki呀，www呀全挂了。备份真的很重要。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="backup" label="backup" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="diskfail" label="diskfail" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[周末，机器硬盘挂了，只有DB做了备份，所以<a href="http://blog.khsing.net">blog</a>还在，其他的<a href="http://wiki.khsing.net">wiki</a>呀，<a href="http://www.khsing.net">www</a>呀全挂了。备份真的很重要。]]>
        
    </content>
</entry>

<entry>
    <title>django m2m自包含</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/02/django-m2m.html" />
    <id>tag:blog.khsing.net,2009://2.61</id>

    <published>2009-02-10T07:12:34Z</published>
    <updated>2009-02-12T02:40:57Z</updated>

    <summary>设计一个group，可以包含user也可以包含group。user和group都可以被多个group包含。 class Group(models.Model): users = models.ManyToManyField(User) groups = models.ManyToManyField(&apos;self&apos;) update: ManyToMany对象有一个symmetrical的参数，当为True时的意思是对象间有互相拥有的关系，是双向的，反之为False时就是单向的。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="development" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="shared" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="design" label="design" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="django" label="django" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[设计一个group，可以包含user也可以包含group。user和group都可以被多个group包含。
<pre>
class Group(models.Model):
    users = models.ManyToManyField(User)
    groups = models.ManyToManyField('self')
</pre>
update: <code>ManyToMany</code>对象有一个<code>symmetrical</code>的参数，当为<code>True</code>时的意思是对象间有互相拥有的关系，是双向的，反之为<code>False</code>时就是单向的。]]>
        
    </content>
</entry>

<entry>
    <title>大裤叉配楼火灾</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/02/post-1.html" />
    <id>tag:blog.khsing.net,2009://2.60</id>

    <published>2009-02-10T06:49:38Z</published>
    <updated>2009-02-10T06:58:23Z</updated>

    <summary>引自《阿房宫赋》： 楚人一炬，可怜焦土！...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="fire" label="fire" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[引自《阿房宫赋》：
<blockquote>
楚人一炬，可怜焦土！
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>对待平等</title>
    <link rel="alternate" type="text/html" href="http://blog.khsing.net/2009/02/post.html" />
    <id>tag:blog.khsing.net,2009://2.59</id>

    <published>2009-02-06T02:07:57Z</published>
    <updated>2009-02-06T02:47:20Z</updated>

    <summary>云风的一篇平等讲述了他们团队对平等的一些理解。herock又对平等产生了许些质疑。我从电影King Arthur里觉的人与人之间的平等是重要的，也是人与人之间互相尊敬的一个基础。其实真正的平等并不存在，herock重在说明这一情况（唯物）。而云风则更注重人对人的平等，且不论平等是否存在（唯心）。 摘电影里的一句话 Every man must be equal. 我当时取名Gawain(圆桌骑士之一)即是受这部电影的影响。...</summary>
    <author>
        <name>Guixing</name>
        <uri>http://blog.khsing.net</uri>
    </author>
    
        <category term="diary excerpt" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="life" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="equality" label="equality" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="life" label="life" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.khsing.net/">
        <![CDATA[<p>云风的一篇<a href="http://blog.codingnow.com/2009/02/equality.html">平等</a>讲述了他们团队对平等的一些理解。<a href="http://herock.net/2009/02/post_16.html">herock</a>又对平等产生了许些质疑。我从电影<a href="http://www.douban.com/subject/1308837/">King Arthur</a>里觉的人与人之间的平等是重要的，也是人与人之间互相尊敬的一个基础。其实真正的平等并不存在，herock重在说明这一情况（唯物）。而云风则更注重人对人的平等，且不论平等是否存在（唯心）。</p>
<p>摘电影里的一句话</p>
<blockquote>
Every man must be equal.
</blockquote>
<p>我当时取名Gawain(圆桌骑士之一)即是受这部电影的影响。</p>]]>
        
    </content>
</entry>

</feed>
