<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[菜刀网志]]></title> 
<link>http://www.imdao.net/blog/index.php</link> 
<description><![CDATA[学习 工作 生活 游戏]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[菜刀网志]]></copyright>
<item>
<link>http://www.imdao.net/blog/read.php?122</link>
<title><![CDATA[初用Zend Studio for Eclipse——我们卖餐但不卖盐]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Fri, 14 Nov 2008 03:51:10 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?122</guid> 
<description>
<![CDATA[ 
	使用zend studio 5.5有一段时间了，最近不知什么缘故，它在代码提示上总有些奇怪的问题，让我烦恼。那么多的IDE中之所以选择了zend studio，就是因为它的自写代码提示功能，绝不是因为那些整合进来的乱七八糟的zend framwork、phpdoc、zend debugger等等对我来说太过花哨的东西。<br/><br/>前段时间尝试过zend studio for eclipse，对于没有在head标签里指定编码的非默认编码HTML文件，它会读成乱码，再加上它对内存的庞大胃口，我一度浅尝辄止。现在被zend studio 5.5的故障烦恼，我不得不再次装上了Eclipse。<br/><br/>这个大名鼎鼎的IDE马上给了我一个下马威——找遍了所有的菜单设置才发现，丫的居然默认连自动换行的功能都没有，要想实现自动换行，你得自己去找第三方的插件的实现，开源的玩意，有时候就是这么让你哭笑不得——五星饭店摆上豪华大餐，侍者躬身说：“对不起，本店食品不提供食盐，如果您有需求的话，可以在对面杂货店买到，请您慢慢享用。”<br/><br/>一个买盐的方法：http://www.gaobo.info/read.php?entryid=498&page=1&part=1
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?121</link>
<title><![CDATA[小众的《命运待临夜》之舞台剧《这不是圣杯战争》]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一个江湖]]></category>
<pubDate>Mon, 10 Nov 2008 15:58:22 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?121</guid> 
<description>
<![CDATA[ 
	由于《Fate/Stay Night》出身不是良家，虽然也有全年龄的动画版，但和谐的天朝毕竟不是化外东瀛，我认为它依然是个只能独乐乐，不堪众乐乐的小众作品。于是在youku上看到这段公开表演的舞台剧时，我忍不住发出一声不敢相信的“啊？”，尤其刚开始看时，我误以为这是哪个学校里晚会表演，所以“啊”地分外婉转动听。后来明白，这原来是某个cosplay比赛中的参赛者表演。<br/><br/>这部舞台剧，视频模糊不清，可cosplay的水准看起来也颇有几分味道，他们cosplay了《FSN》中全部的主人与从者，也就是说登场的十多位演员中有近一半是小女生。cosplay行为往往是表达对特定文艺作品的喜爱，所以这段舞台剧仍然超出了我对日本河蟹游戏之影响力的估计。<br/><br/>抛开河蟹不谈，《FSN》的确是东瀛近年少有的精品，世界观和故事性非常优秀，不以出身论英雄的话，《FSN》也配得上这些爱好者的热情。<br/><br/>或许小众文化，正随着八零后、九零后，零零后的成长，慢慢地成为大众文化。<br/><br/><embed src="http://player.youku.com/player.php/sid/XNTEzMjMxMzY=/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?120</link>
<title><![CDATA[Zend_Tool初试]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Tue, 07 Oct 2008 14:59:26 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?120</guid> 
<description>
<![CDATA[ 
	要使用zend_tool，首先要把zend framwork库文件本身，以及“Zend_Tool&#92;library&#92;”目录下的“ZendL”文件夹放置到php之include_path所包含的目录下，所以首先不得不修改php.ini的include_path参数，把加入一个你指定的文件夹，比如我的php.ini是：include_path = ".;E:&#92;www&#92;libs&#92;"，zf的库文件和zendl文件夹都放在该目录下。<br/><br/>其次，在windows系统上，你还必须把Zend_Tool的bin文件夹下 zf.bat 和 zf.php 两个文件复制到你本地 php.exe 所在的目录下，再将 zf.php 中的两个参数设为你的 zf 库文件和 zendl 文件夹的绝对路径，比如<br/><br/>$zendFrameworkPath&nbsp;&nbsp;&nbsp;&nbsp;= "E:&#92;&#92;www&#92;&#92;libs";<br/>$zendFrameworkLabPath = "E:&#92;&#92;www&#92;&#92;libs";<br/><br/>这样zend_tool就基本可以使用了。<br/><br/>在命令行下使用“ zf create project ”命令，即可自动创建一个zf项目，不过奇怪的是我创建出来的项目都处在 php.exe 所在的目录下，还不知道该如何指定目录参数。<br/><br/><br/>Tags - <a href="http://www.imdao.net/blog/tag.php?tag=zend_tool" rel="tag">zend_tool</a> , <a href="http://www.imdao.net/blog/tag.php?tag=%25E5%25AD%25A6%25E4%25B9%25A0" rel="tag">学习</a> , <a href="http://www.imdao.net/blog/tag.php?tag=%25E6%2595%2599%25E7%25A8%258B" rel="tag">教程</a> , <a href="http://www.imdao.net/blog/tag.php?tag=%25E6%258C%2587%25E5%258D%2597" rel="tag">指南</a>
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?119</link>
<title><![CDATA[宛若流氓软件一般的google浏览器：Chrome]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一人独语]]></category>
<pubDate>Thu, 04 Sep 2008 14:27:36 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?119</guid> 
<description>
<![CDATA[ 
	Google突然发布浏览器，本着对google一向的信任，我兴冲冲地第一时间下载回来试用。<br/><br/>Chrome的界面美观大方，别具一格，摒弃了几乎所有桌面程序都有的菜单栏和工具栏，把可浏览屏幕扩至最大，初见的感觉很是舒服。<br/><br/>Chrome还有个独特的最近访问页面自动抓图功能，开启新标签时，这些缩略的抓图会陈列在空页面上由你选择，Maxthon也有类似的功能，不过只是提供文字列表。<br/><br/>大概因为只是初始版，功能还很寥寥，别的方面就没有留给我什么印像。<br/><br/>一天之后，我发现了问题，Chrome虽然是标签式浏览器，但是每个标签都会新建至少一个浏览器进程，浏览很多页面时，进程列表里也会出现蔚为壮观的一排“chrome”进程；其次，在打开网页后，即便不进行任何操作，chrome进程依然会不停地使用cpu，而用maxthon打开相同的网页，不使用时完全不会占用cpu；最后，发现了一件让我很囧的事情，一个名叫“GoogleUpdate.exe”的进程，随着Chrome的安装一同出现在我的电脑进程中，不论有没有启动Chrome，只要windows一启动，这个进程就会风雨无阻的开始运行，随时占据着3-9M内存，我用安全卫士360和超级兔子，都没有在自动运行的程序列表中找到这个“GoogleUpdate.exe”，最后在运行msconfig才找到它的芳踪……额滴神啊，这该不会是个流氓软件吧……<br/><br/>不好意思了，谷歌大哥，俺不当您的试验小白鼠了，谁爱和您玩您和谁玩去吧，俺要把您卸载了。
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?118</link>
<title><![CDATA[奥运后韩国人隔靴抓痒的反省]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一个江湖]]></category>
<pubDate>Wed, 03 Sep 2008 15:01:35 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?118</guid> 
<description>
<![CDATA[ 
	自我感觉一向良好的韩国人在北京奥运会上大吃了一惊。<br/><br/>开幕式韩国进场，鸟巢鸦雀无声，日本却博得了稀稀拉拉的掌声，当然日本运动员手上都拿了中国国旗，礼尚往来倒不算很奇怪。<br/><br/>去买票看比赛吧，中国的票贩子一听咱是韩国人，就说没票了……没票就没票吧，可眼看着他一转身就卖票给了日本人。<br/><br/>也罢也罢，进了棒球赛场，韩国对日本，是不是听错了，怎么全场的中国观众鼓着劲让日本人加油来揍韩国啊？<br/><br/>哎呀呀，咱们不是正输出着滚滚“韩流”的文化宗主国吗？咱们的电视剧和整形出来的明星，不是让中国人鼻涕眼泪齐下，拥趸粉丝乱飞吗？怎么一下子就变成了最不受中国人戴见，其不受戴见程度还遥遥领先臭名昭彰的小日本？<br/><br/>奥运之后韩国几家报纸纷纷撰文琢磨这个事情，胡哥到韩国访问李明博也可劲地向胡哥讨教，这个“嫌韩”到底是咋个回事捏？<br/><br/>韩国报纸反省总结，首先想到了SBS电视台的SB泄密案，觉得这是让中国人在奥运会上嫌韩的直接原因；有记性好的，又想着了四川地震时韩国网站上出现的大量幸灾乐祸的SB言论，觉得这是中国嫌韩的远因；再次还可能是什么旅华韩人与中国人相处时倨傲不恭，埋下的潜因。<br/><br/>你要问，那些在中国网络媒体上闹得沸沸扬扬的文化侵略事件是怎么回事呢？韩国人一言蔽之——都是中国人造的假新闻。<br/><br/>韩国人说他们没说过菲尔普斯是韩国人，没说过孙中山是韩国人，没说过四大发明是韩国的，没说过汉字是韩国人发明的，这些都是中国人造的谣。<br/><br/>韩国人却没有去想，为什么中国人要给你们造谣？<br/><br/>为什么没有中国人造谣说日本人说孙中山是日本人，说四大发明是日本的，说汉字是日本发明的？<br/><br/>空穴来风，事必有因。<br/><br/>中国人的嫌韩情绪之起源是韩国抢走端午节，是韩国对高句丽的抢夺，是韩国对历史的无耻强奸。如果韩国的媒体真的原因反省的话，希望他们肯就以下这韩国书做个解释。<br/><br/><a href="http://www.imdao.net/blog/attachment.php?fid=2" target="_blank"><img src="http://www.imdao.net/blog/attachment.php?fid=2" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.imdao.net/blog/attachment.php?fid=3" target="_blank"><img src="http://www.imdao.net/blog/attachment.php?fid=3" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.imdao.net/blog/attachment.php?fid=4" target="_blank"><img src="http://www.imdao.net/blog/attachment.php?fid=4" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><a href="http://www.imdao.net/blog/attachment.php?fid=5" target="_blank"><img src="http://www.imdao.net/blog/attachment.php?fid=5" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a>
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?117</link>
<title><![CDATA[LiveUser中right表中的right_level字段的作用]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一场游戏]]></category>
<pubDate>Tue, 12 Aug 2008 14:20:02 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?117</guid> 
<description>
<![CDATA[ 
	这个字段，只在使用complex的权限等级时才发挥作用，它分为三个等级，各个等级说明如下：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp; * Level 1: requires that owner_user_id matches $this->perm_user_id<br/>&nbsp;&nbsp;&nbsp;&nbsp; * Level 2: requires that the $owner_group_id matches the id one of<br/>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the (sub)groups that $this->perm_user_id is a member of<br/>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or requires that the $owner_user_id matches a perm_user_id of<br/>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a member of one of $this->perm_user_id's (sub)groups<br/>&nbsp;&nbsp;&nbsp;&nbsp; * Level 3: no requirements<br/><br/>等级一：要求owner_user_id字段必须和perm_user_id匹配<br/>等级二：要求owner_group_id字段必须和perm_user_id所在的group匹配，或者owner_user_id匹配一个perm_user_id，而这个perm_user_id必须是当前$this->perm_user_id所在的group的某个成员<br/>等级三：无要求
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?116</link>
<title><![CDATA[LiveUser学习笔记]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一场游戏]]></category>
<pubDate>Fri, 01 Aug 2008 03:07:02 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?116</guid> 
<description>
<![CDATA[ 
	<strong>数据库字段说明：</strong><br/><br/>liveuser提供的例子里，其数据库结构似乎都是按照最通用的SQL规则设计的，所有的数据表中都没有使用Mysql的auto_increment特性，而另外建立序列表是实现的数据表id自增长，比如liveuser_users表，就对应一个liveuser_users_seq序列表。让我觉得很不适应。我会尝试数据库改成Mysql常见的使用自增长字段为序列的方式。<br/><br/>1.liveuser_users<br/><br/><span style="color: #FF0000;">auth_user_id</span>: the authentication user id. It is used to link to a permission user id in the «liveuser_perm_user» table. 用户认证id，它和用户权限表«liveuser_perm_user»中的auth_user_id字段相关联。它是一个32位的md5加密字符串，其原始未加密数据是什么，还不知晓。<br/><br/><span style="color: #FF0000;">handle</span>: the user name used during the login process 。用户登陆使用的帐号。<br/><br/><span style="color: #FF0000;">passwd</span>: the password for the login. If activated in the configuration file, the password will be encrypted. 用户登陆使用的密码。<br/><br/><span style="color: #FF0000;">lastlogin</span>: the date and time the user last logged in 上次登陆时间<br/><br/>owner_user_id: ? <br/><br/>owner_group_id: ? <br/><br/><span style="color: #FF0000;">is_active</span>: boolean specifying whether the account is still active. Note that login is denied to inactive accounts. 用户是否可用，如果不可用，此帐号将不能登陆。<br/><br/>LiveUser 配置数组说明<br/><br/>debug ：false/true or an instance of a class that implements the PEAR::Log interface 是否输出debug信息。<br/><br/>session：<br/>array(<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'name'&nbsp;&nbsp;&nbsp;&nbsp;=>&nbsp;&nbsp;'',&nbsp;&nbsp;// liveuser session name SESSION的SESSION_NAME值<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'varname' => '', // liveuser session var name session变量的值<br/>)<br/><br/>session_save_handler' ： //自定义session的处理方式<br/>&nbsp;&nbsp;array('open'=>'','close'=>'','read'=>'','write'=>'','desdroy'=>'','gc'='')<br/><br/>session_cookie_params ：//session的cookie信息在客户端存放的配置信息<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'lifetime' => 'Cookie lifetime in days',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'path'&nbsp;&nbsp;&nbsp;&nbsp; => 'Cookie path',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'domain'&nbsp;&nbsp; => 'Cookie domain',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'secure'&nbsp;&nbsp; => 'Cookie send only over secure connections',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'httponly' => 'HTTP only cookie, PHP 5.2.0+ only',<br/><br/>'cache_perm' => if the permission data should be cached inside the session //权限信息是否在session中缓存<br/><br/> 'login' ： 用户登陆的相关配置<br/>&nbsp;&nbsp;&nbsp;&nbsp;array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'force'&nbsp;&nbsp;&nbsp;&nbsp;=> 'true',&nbsp;&nbsp;//Should the user be forced to login 是否前置用户必须登陆<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'regenid'&nbsp;&nbsp;=> 'true'&nbsp;&nbsp;//'Should the session be regenerated on login' 用户登陆时session是否重生，意味着每次用户登陆，都会生成一个新的session id<br/>&nbsp;&nbsp;),<br/><br/> 'logout' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'destroy'&nbsp;&nbsp;=> true //Whether to destroy the session on logout'<br/>&nbsp;&nbsp;),<br/><br/> // The cookie options are optional. If they are specified, the Remember Me<br/> // feature is activated.<br/>//如果用户启用了Remember Me 特性，在用户端会保留的用户帐号的cookie信息，cookie的属性按如下设置<br/><br/>&nbsp;&nbsp;'cookie' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'name'&nbsp;&nbsp;&nbsp;&nbsp; => 'Name of Remember Me cookie',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'lifetime' => 'Cookie lifetime in days',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'path'&nbsp;&nbsp;&nbsp;&nbsp; => 'Cookie path',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'domain'&nbsp;&nbsp; => 'Cookie domain',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'secret'&nbsp;&nbsp; => 'Secret key used for cookie value encryption',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'savedir'&nbsp;&nbsp;=> '/absolute/path/to/writeable/directory' // No trailing slash (/) !<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'secure'&nbsp;&nbsp; => 'Cookie send only over secure connections',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'httponly' => 'HHTP only cookie, PHP 5.2.0+ only',<br/>&nbsp;&nbsp;),<br/><br/>//用户认证信息容器，如果只有一个容器的话，可能就不需要指定数据的键名了，比如下面的那个'name'<br/><br/>&nbsp;&nbsp;'authContainers' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'name' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'type'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> 'MDB2', //auth container name 容器类型<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'expireTime'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> 3600, //maximum lifetime of a session in seconds 过期时间<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'idleTime'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> 1800, //maximum amount of time between two request 两次请求的最大时间间隔<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'passwordEncryptionMode'=> 'MD5', //'what encryption method to use'，加密方法<br/><span style="color: #008000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'allowDuplicateHandles' => 0, //允许多handle</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'allowEmptyPasswords'&nbsp;&nbsp; => 0,&nbsp;&nbsp;&nbsp;&nbsp; // 0=false, 1=true //允许空密码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'secret'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> 'secret to use in password encryption', //这个好像是加密的附加码<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'storage' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'dbc' => 'db connection object, use this or dsn', //数据库连接实例<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'dsn' => 'database dsn, use this or connection',&nbsp;&nbsp;//数据库连接dsn<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'prefix'&nbsp;&nbsp;&nbsp;&nbsp;=> 'abc_', //指定数据表前缀，默认情况下容器表是 liveuser_users<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'handles' => 'array of handle fields to find a user on login, a user<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;can login with his username, email or any field you set here;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;works with DB, MDB, MDB2 and PDO containers',&nbsp;&nbsp; //可以用作登陆名的字段<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ), <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'externalValues' => array(<br/><span style="color: #008000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'values'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> 'reference to an array',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'keysToCheck' => 'array of keys to check in the array passed'<br/></span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ),<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br/>&nbsp;&nbsp;),<br/><br/>上文的'externalValues' ，是让Auch过程获取额外字段信息的设定<br/><br/>它通过如下三个数组来设置：<br/>&nbsp;&nbsp;'alias' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'lastlogin' => 'lastlogin',<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'is_active' => 'is_active',<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'email' => 'email',<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'name' => 'name',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br/>&nbsp;&nbsp; 'fields' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'lastlogin' => 'timestamp',<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'is_active' => 'boolean',<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'email' => 'text',<br/>&nbsp;&nbsp;&nbsp;&nbsp; 'name' => 'text',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br/>&nbsp;&nbsp;&nbsp;&nbsp;'tables' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'users' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'fields' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'lastlogin' => false,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'is_active' => false,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'email' => false,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'name' => true,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br/>每在auth信息里增加一个字段信息，在这三个数组中都要分别设置。第三个tables数组中，字段后面的布尔值的意义还不清楚，经试验不论是false还是true，auth都能获得改字段的信息。<br/><br/>alias别名设定中，键是要设定的新别名名称，值是原字段名称。<br/><br/>//权限容器<br/><br/>&nbsp;&nbsp;'permContainer' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'type'&nbsp;&nbsp;&nbsp;&nbsp; => 'MDB2', //perm container name 权限容器类型<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'storage'&nbsp;&nbsp;=> array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'storage container name' => array(<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'dbc' => 'db connection object, use this or dsn',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'dsn'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> 'database dsn, use this or connection',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'prefix'&nbsp;&nbsp;&nbsp;&nbsp;=> 'table prefix'<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'tables'&nbsp;&nbsp;&nbsp;&nbsp;=> 'array containing additional tables or fields in existing tables',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'fields'&nbsp;&nbsp;&nbsp;&nbsp;=> 'array containing any additional or non-default field types',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'alias'&nbsp;&nbsp;&nbsp;&nbsp; => 'array containing any additional or non-default field alias',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'force_seq' => 'if the use of (emulated) sequences should forced instead of using autoincrement where applicable',<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;),
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?115</link>
<title><![CDATA[栋笃神探，黄子华，蔡少芬]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一个江湖]]></category>
<pubDate>Sat, 26 Jul 2008 11:39:00 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?115</guid> 
<description>
<![CDATA[ 
	在几年前黄子华对我来说，是个不知所谓的名字，除了让我联想到黄日华外，没引起我更多的大脑活动。<br/><br/>那时看到则新闻，说有个叫做黄子华的人在香港电影节上对一个上台领奖的日本小演员说了句话，让他回去和日本人讲，钓鱼岛是中国的。我产生了和大多数中国人一样的感觉，这个长得随随便便的、叫做黄子华的人，首先是个有爱国心的中国人，其次是个敢讲话的主持人。大陆民众几乎都怀有对日本的不友好情绪，但没有大陆的艺人在公告场合说过这样的话，台湾就更不要提了——甚至有不少有抱持着浓浓的亲日感情，但香港人这样做了。所以我很佩服他，尊敬他。但至于这个黄子华真正是个什么样的艺人，有什么样的作品，我在之后的很长时间里，还是没有了解。<br/><br/>直至去年辞了工作全职盲流的那段时间，追看了不少肥皂剧，一时兴起搜索了下这个叫黄子华的人有什么作品，便找到了《栋笃神探》。我眼前一亮。<br/><br/>那位邋邋遢遢、不修边幅，不乏冷静机智、却又无理取闹的莫探员，和敏捷上进、咄咄逼人，甚至常有几分疯疯癫癫的蔡少芬，一冷一热，把欢喜冤家的波折起伏演绎得到了让我前不见古人，不知是否后有来者的地步——或许因为我见识浅薄的缘故吧，但确确实实让我开怀大笑，欲罢不能。<br/><br/>蔡少芬形象娇俏，颇有一些邱淑贞的风姿，可在我接触到的她的作品中，我只喜欢一个半角色，一个是在《陀枪师姐3》中的卫英姿，角色如其名，英姿飒爽，活泼又上进，和蔡少芬的细瘦俏丽外形最般配；半个是《大话西游》中的牛夫人，她把妇人的风韵，小女儿的憨态融为一身，也算少有。而《栋笃神探》中的保险界女长人李慧慧之敏捷泼辣，带一点疯婆娘性格的角色，让我对蔡少芬的演技惊叹不已。<br/><br/>《食神》中薛家燕扮演的评委阿姨，吃过“黯然销魂饭”后会潸然泪下，她为了恐怕再也吃不到那么好的饭而难过，而我也不禁生出几分类似的惆怅。如今蔡少芬已为人妇，与黄子华再携手的可能性变得渺茫，而二人其他独立参演的作品，大多让我觉得是食之无味的鸡肋，如“黯然消魂饭”那样的美味，只怕是广陵散绝，再难重续了，可惜，可惜。<br/>Tags - <a href="http://www.imdao.net/blog/tag.php?tag=%25E7%2594%25B5%25E8%25A7%2586%25E5%2589%25A7" rel="tag">电视剧</a> , <a href="http://www.imdao.net/blog/tag.php?tag=%25E6%25A0%258B%25E7%25AC%2583%25E7%25A5%259E%25E6%258E%25A2" rel="tag">栋笃神探</a> , <a href="http://www.imdao.net/blog/tag.php?tag=%25E9%25BB%2584%25E5%25AD%2590%25E5%258D%258E" rel="tag">黄子华</a> , <a href="http://www.imdao.net/blog/tag.php?tag=%25E8%2594%25A1%25E5%25B0%2591%25E8%258A%25AC" rel="tag">蔡少芬</a>
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?114</link>
<title><![CDATA[胡言之二]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[一人独语]]></category>
<pubDate>Fri, 25 Jul 2008 02:44:46 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?114</guid> 
<description>
<![CDATA[ 
	有志者立长志，无志者常立志。<br/><br/>前前后后大大小小一堆堆事情包围着我。有人让我给他盗来的网站做修补，有人让我给他的商城系统套模板，公司在要求我奥运前把一个车友网站做出来，而我想做我自己的囧网站，我想做我的垃圾站，我想学完javascript，我想看完那本Mysql书……每逢快要下班、或快要放假的前夕，这些事情就会在我脑袋里像肥皂泡一样飘来飘去，可一到自由的时间，我又酣酣大睡或不知所谓。事情越积越多。可不逼到眼前，我总能找到逃避的理由。
]]>
</description>
</item><item>
<link>http://www.imdao.net/blog/read.php?113</link>
<title><![CDATA[胡言]]></title> 
<author>耶卡菜刀 &lt;imcaidao at gmail dot com&gt;</author>
<category><![CDATA[PHP]]></category>
<pubDate>Wed, 23 Jul 2008 09:49:57 +0000</pubDate> 
<guid>http://www.imdao.net/blog/read.php?113</guid> 
<description>
<![CDATA[ 
	今天终于决定，听从pear文档的推荐，把pear的文件目录放到网站目录之外——虽说放在网站目录下，可是使得网站整体迁移灵活方便，但每个网站都重新上传pear的所有文件，不能不说是一件郁闷的事。<br/><br/>接下来开始对Liveuser包的学习，尝试用它来替代我程序中使用的Auth包和我土法炮制的权限控制。<br/><br/>不过Liveuser包至今还不是stable的版本，从06年到08年初，只有一次小更新……我怀疑这是一个濒死的包，而这个包又是使用比较普遍的。<br/><br/>所以欣欣向荣的Zend framework似乎才是以后的最佳选择。<br/><br/>而Zend Framework看起来越发得丰满了，版本号似乎很快会跳到1.6，也因为版本号变化太快，我不打算在近期开始Zend Framwork的全面学习。还值得一提的是，ZF选择了内含Dojo来作为自己的js库，而没有选择更流行的Jquery或者prototype，在zend网站的相关新闻下，有不少的评论对此抱怨。
]]>
</description>
</item>
</channel>
</rss>