<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>web开发专栏</title><link>http://blog.csdn.net/wz_910/</link><description>nicholas</description><dc:language>zh-CN</dc:language><lastUpdateTime>Thu, 03 Jul 2008 09:13:36 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>nicholas</dc:creator><title>权限算法</title><link>http://blog.csdn.net/wz_910/archive/2008/07/03/2607043.aspx</link><pubDate>Thu, 03 Jul 2008 09:13:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2008/07/03/2607043.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/2607043.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2008/07/03/2607043.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/2607043.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2607043</trackback:ping><description>原理：
位与运算，顾名思义就是对位进行与运算：
以上面的式子为例：purview &amp; 2^3 也就是　28&amp;8
将它们化成二进制有
　11100
＆ 01000
-------------------
　 01000 == 8(十进制)　＝＝　2^3
同理，如果要验证是否有删除Ａ－－－0的权限
可以用：purview &amp;((int)Math.pow(2,0));
即：
　11100
＆ 00001
------------------------
　 00000 == 0(十进制)　　！＝　2^0 

这种算法的一个优点是速度快。可以同时处理Ｎ个权限
如果想验证是否同时有删除Ａ－－－0和删除Ｂ－－－3的权限
可以用purview&amp;(2^0+2^3)==(2^0+2^3)?true:false;
设置多角色用户。根据权限值判断用户的角色。。。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/2607043.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>smarty 中文截取truncate_cn</title><link>http://blog.csdn.net/wz_910/archive/2008/03/26/2220481.aspx</link><pubDate>Wed, 26 Mar 2008 15:53:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2008/03/26/2220481.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/2220481.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2008/03/26/2220481.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/2220481.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2220481</trackback:ping><description>放到smarty的plugins目录下命名为 modifier.truncate_cn.php.
调用时直接
&lt;img src ="http://blog.csdn.net/wz_910/aggbug/2220481.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>网站设计</title><link>http://blog.csdn.net/wz_910/archive/2007/11/12/1880617.aspx</link><pubDate>Mon, 12 Nov 2007 16:40:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/11/12/1880617.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1880617.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/11/12/1880617.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1880617.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1880617</trackback:ping><description>如果您认为一般的用户会完完整整地阅读您的网页，那么您就错了。

无论您在网页中发布了多么有用的信息，一个访问者在决定是否继续阅读之前仅仅会花几秒钟的时间进行浏览。

如果您希望用户阅读您的文字，请确保在页面段落的第一句就说明您的观点。另外，您还需要在整个页面中使用简短的段落以及有趣的标题。
&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1880617.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>网站构建</title><link>http://blog.csdn.net/wz_910/archive/2007/11/12/1880607.aspx</link><pubDate>Mon, 12 Nov 2007 16:36:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/11/12/1880607.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1880607.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/11/12/1880607.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1880607.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1880607</trackback:ping><description>每个网站开发者都必须了解以下Web构件：HTML 4.01 CSS的使用 （样式表） XHTML XML 和 XSLT 客户端脚本 服务器端脚本 通过SQL管理数据 Web的未来 &lt;img src ="http://blog.csdn.net/wz_910/aggbug/1880607.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>怀念奶奶</title><link>http://blog.csdn.net/wz_910/archive/2007/11/01/1861234.aspx</link><pubDate>Thu, 01 Nov 2007 14:21:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/11/01/1861234.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1861234.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/11/01/1861234.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1861234.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1861234</trackback:ping><description>哭了，听到消息就掉眼泪了，下车就嚎啕大哭，长跪不起，想奶奶。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1861234.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>web3.0概念</title><link>http://blog.csdn.net/wz_910/archive/2007/10/23/1839928.aspx</link><pubDate>Tue, 23 Oct 2007 16:59:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/23/1839928.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1839928.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/23/1839928.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1839928.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1839928</trackback:ping><description>web3.0&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1839928.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>ASP.NET下MVC设计模式的实现</title><link>http://blog.csdn.net/wz_910/archive/2007/10/19/1832590.aspx</link><pubDate>Fri, 19 Oct 2007 13:03:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/19/1832590.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1832590.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/19/1832590.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1832590.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1832590</trackback:ping><description>本文从视图、控制器、模型三个方面简要介绍了在Asp.net环境下,经典MVC设计模式的实现，并讨论了MVC设计模式的扩展，最后对MVC的优点及不足之处进行了分析。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1832590.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>设置session和cookie的类，安全。</title><link>http://blog.csdn.net/wz_910/archive/2007/10/19/1832181.aspx</link><pubDate>Fri, 19 Oct 2007 09:12:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/19/1832181.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1832181.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/19/1832181.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1832181.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1832181</trackback:ping><description>设置session和cookie的类，安全。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1832181.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>php缓存类</title><link>http://blog.csdn.net/wz_910/archive/2007/10/19/1832159.aspx</link><pubDate>Fri, 19 Oct 2007 09:08:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/19/1832159.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1832159.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/19/1832159.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1832159.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1832159</trackback:ping><description>一个整在用的php缓存代码，很好用，贡献出来。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1832159.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>数据库操作类</title><link>http://blog.csdn.net/wz_910/archive/2007/10/18/1831078.aspx</link><pubDate>Thu, 18 Oct 2007 15:07:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/18/1831078.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1831078.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/18/1831078.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1831078.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1831078</trackback:ping><description>用C#是用的数据库操作了，没有实现数据抽象层，这代码太早了，不过很好用，适合快速开发小型项目。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1831078.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>一个工程的小块代码，发送邮件的。</title><link>http://blog.csdn.net/wz_910/archive/2007/10/18/1831045.aspx</link><pubDate>Thu, 18 Oct 2007 14:54:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/18/1831045.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1831045.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/18/1831045.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1831045.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1831045</trackback:ping><description>在某个项目里写的一个发送email的代码，希望对大家有帮助吧。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1831045.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>vi编辑器命令图例</title><link>http://blog.csdn.net/wz_910/archive/2007/10/18/1831032.aspx</link><pubDate>Thu, 18 Oct 2007 14:49:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/18/1831032.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1831032.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/18/1831032.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1831032.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1831032</trackback:ping><description>vi编辑器，是个看着不起眼，但很重好的工具，新浪等大网站面试就拷了这个操作，还有shell命令。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1831032.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>数组排序面试题php解决代码</title><link>http://blog.csdn.net/wz_910/archive/2007/10/18/1830840.aspx</link><pubDate>Thu, 18 Oct 2007 12:45:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/18/1830840.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1830840.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/18/1830840.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1830840.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1830840</trackback:ping><description>最近在招人，题目中就有这个题，所以自己先做了，试试，希望对新人有用，对了，这个用了传说中的“冒泡法”。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1830840.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>PHP抓取天气预报的代码</title><link>http://blog.csdn.net/wz_910/archive/2007/10/18/1830800.aspx</link><pubDate>Thu, 18 Oct 2007 12:33:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/18/1830800.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1830800.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/18/1830800.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1830800.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1830800</trackback:ping><description>刚学PHP时写了个http://www.cma.gov.cn抓取天气预报的，呵呵，也许有用。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1830800.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>nicholas</dc:creator><title>获取正则表达式匹配的字符串</title><link>http://blog.csdn.net/wz_910/archive/2007/10/17/1829098.aspx</link><pubDate>Wed, 17 Oct 2007 12:48:00 GMT</pubDate><guid>http://blog.csdn.net/wz_910/archive/2007/10/17/1829098.aspx</guid><wfw:comment>http://blog.csdn.net/wz_910/comments/1829098.aspx</wfw:comment><comments>http://blog.csdn.net/wz_910/archive/2007/10/17/1829098.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/wz_910/comments/commentRss/1829098.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1829098</trackback:ping><description>自己写的一个抓取程序中用到的一段代码，拿出来分享，希望大家有用。&lt;img src ="http://blog.csdn.net/wz_910/aggbug/1829098.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>