<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CodeBit.cn</title>
	<atom:link href="http://www.codebit.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codebit.cn</link>
	<description>聚合小段精华代码</description>
	<lastBuildDate>Mon, 07 May 2012 01:48:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CSS3 为不同媒介设置样式的方法（CSS3 Media Queries）</title>
		<link>http://www.codebit.cn/css/css3-media-queries.html</link>
		<comments>http://www.codebit.cn/css/css3-media-queries.html#comments</comments>
		<pubDate>Sun, 06 May 2012 09:33:58 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=458</guid>
		<description><![CDATA[随着智能手机、平板电脑越来越流行，许多网站都开始考虑为这些移动设备开发一套专属布局和样式。幸好 CSS3 提供了针对不同设备的查询规则，让这一目的变得非常容易实现。 <a class="more-link" href="http://www.codebit.cn/css/css3-media-queries.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/css/css3-media-queries.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>纯 CSS3 制作的页面卷曲阴影效果</title>
		<link>http://www.codebit.cn/css/pure-css3-box-shadow-page-curl-effect.html</link>
		<comments>http://www.codebit.cn/css/pure-css3-box-shadow-page-curl-effect.html#comments</comments>
		<pubDate>Tue, 01 May 2012 07:33:37 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[transform]]></category>
		<category><![CDATA[阴影效果]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=444</guid>
		<description><![CDATA[虽然 CSS3 还没有完全定稿，但目前已知的一些功能足以让所有的前端开发攻城师激动不已，灵活的背景图片设置、轻松实现的阴影及边框，还有之前只能靠 Javascript 才能实现的动画效果，在 CSS3 中都能由前端攻城师自己来定义。

虽然 IE 系列浏览器对 CSS3 还不能很好的支持，但 CSS3 毕竟是趋势，所以本站会开始介绍一些 CSS3 的效果。更多精彩，敬请期待 :) <a class="more-link" href="http://www.codebit.cn/css/pure-css3-box-shadow-page-curl-effect.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/css/pure-css3-box-shadow-page-curl-effect.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决 PHP 中 usort 在值相同时改变原始位置的问题</title>
		<link>http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html</link>
		<comments>http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html#comments</comments>
		<pubDate>Wed, 15 Jun 2011 14:23:32 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array_multisort]]></category>
		<category><![CDATA[usort]]></category>
		<category><![CDATA[数组]]></category>
		<category><![CDATA[数组排序]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=410</guid>
		<description><![CDATA[从 PHP 4.1.0 后，usort 在比较的值相同时，原始位置可能会改变，文档中是这样说的：If two members compare as equal, their order in the sorted array is undefined. 也就是说，如果比较的2个值相同，则它们在排序结果中的顺序是随机的。如果你需要保持相同值的原始位置，可以参考本文的方法。 <a class="more-link" href="http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/php/usort-keep-the-original-order-for-elements-comparing-as-equal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 数据库中删除重复记录的方法总结</title>
		<link>http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html</link>
		<comments>http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html#comments</comments>
		<pubDate>Sat, 28 May 2011 08:39:32 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[删除]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[重复数据]]></category>
		<category><![CDATA[重复记录]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=393</guid>
		<description><![CDATA[删除 MySQL 数据库中的重复记录是新手们经常会问的一个问题，本文列出了多个解决方法，有的方法需要拥有比较大的权限，如果你也有类似的需求，可以根据自身情况，选择合适的方案。 <a class="more-link" href="http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/mysql/deleting-duplicate-rows-in-a-mysql-database.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP 中检查或过滤 IP 地址</title>
		<link>http://www.codebit.cn/php/ip-filter.html</link>
		<comments>http://www.codebit.cn/php/ip-filter.html#comments</comments>
		<pubDate>Thu, 31 Mar 2011 01:37:16 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[过滤]]></category>
		<category><![CDATA[限制访问]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=374</guid>
		<description><![CDATA[网络环境异常复杂，有时候我们不得不禁止一些恶意用户访问，禁止的方式有很多种，其中一种就是通过 IP 来限制，本文提供的方法允许你通过 IP 区间、CIDR（Classless Inter-Domain Routing）及单个 IP 格式来检查或过滤 IP 地址。 <a class="more-link" href="http://www.codebit.cn/php/ip-filter.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/php/ip-filter.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>正则表达式：匹配至少有一个非空白字符并且不超过指定长度</title>
		<link>http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html</link>
		<comments>http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html#comments</comments>
		<pubDate>Fri, 11 Mar 2011 05:29:23 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[全局匹配]]></category>
		<category><![CDATA[正则表达式]]></category>
		<category><![CDATA[环视]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=347</guid>
		<description><![CDATA[最近需要用到一个验证，规则为：至少有一个非空白字符并且不超过指定长度，想用正则表达式来处理，上网搜了一下，发现其他人也有和我一样的需求，并且有高手给了几个很精彩的解决方案，现将网上的解决方案整理一下，以备其他有相同需求的人参考。 <a class="more-link" href="http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/javascript/regex-match-at-least-one-non-space-character.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP 的 array_diff() 函数在处理大数组时的效率问题</title>
		<link>http://www.codebit.cn/php/php-526-array-diff-problem.html</link>
		<comments>http://www.codebit.cn/php/php-526-array-diff-problem.html#comments</comments>
		<pubDate>Wed, 09 Mar 2011 07:31:53 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array_dff]]></category>
		<category><![CDATA[array_flip]]></category>
		<category><![CDATA[效率]]></category>
		<category><![CDATA[数组]]></category>
		<category><![CDATA[比较]]></category>
		<category><![CDATA[问题]]></category>

		<guid isPermaLink="false">http://www.codebit.cn/?p=336</guid>
		<description><![CDATA[PHP 5.2.6 以上版本的 array_diff() 函数在处理大数组时，需要花费超长时间，这个 bug 已经被官方确认；在这个问题被修复之前或者在我们不能控制 PHP 版本的时候，可以使用本文提供的方法。 <a class="more-link" href="http://www.codebit.cn/php/php-526-array-diff-problem.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/php/php-526-array-diff-problem.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Javascript 中使用 exec 进行正则表达式全局匹配时的注意事项</title>
		<link>http://www.codebit.cn/javascript/javascript-regex-exec.html</link>
		<comments>http://www.codebit.cn/javascript/javascript-regex-exec.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 09:36:01 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[全局匹配]]></category>
		<category><![CDATA[正则表达式]]></category>

		<guid isPermaLink="false">http://250</guid>
		<description><![CDATA[在 Javascript 中使用 exec 进行正则表达式全局匹配时，有一个非常容易犯的错误，这是因为 exec() 在全局模式下的行为稍微有点复杂。本文就是介绍在使用 Javascript 中使用 exec 进行正则表达式全局匹配时的注意事项。 <a class="more-link" href="http://www.codebit.cn/javascript/javascript-regex-exec.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/javascript/javascript-regex-exec.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在 XSLTProcessor 中 registerPHPFunctions 后无法调用 php 函数</title>
		<link>http://www.codebit.cn/php/xslt-register-php-functions.html</link>
		<comments>http://www.codebit.cn/php/xslt-register-php-functions.html#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:23:32 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[registerPHPFunctions]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[xmlXPathCompiledEval]]></category>
		<category><![CDATA[XPATH]]></category>
		<category><![CDATA[XSLT]]></category>
		<category><![CDATA[XSLTProcessor]]></category>

		<guid isPermaLink="false">http://249</guid>
		<description><![CDATA[XSLT 是一个非常方便的转换 XML 的工具，PHP 里面是通过 XSLTProcessor 来实现；XSLT 中内置了许多有用的函数，同时，只需要调用 XSLTProcessor  实例的 registerPHPFunctions 方法，我们就可以在 XSLT 中直接使用 PHP 的函数，这大大增强了 XSLT 的处理能力。
 
但是，在 XSLT 中使用 PHP 函数时，很多人会遇到 “Warning: XSLTProcessor::trans bound to undefined prefix php” 的错误提示。如果你也遇到这个问题，那请继续浏览本文吧！ <a class="more-link" href="http://www.codebit.cn/php/xslt-register-php-functions.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/php/xslt-register-php-functions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 Zend Framework MVC 下禁用 view 或者 layout</title>
		<link>http://www.codebit.cn/zend-framework/zend-framework-disable-view.html</link>
		<comments>http://www.codebit.cn/zend-framework/zend-framework-disable-view.html#comments</comments>
		<pubDate>Sat, 30 Jan 2010 09:49:38 +0000</pubDate>
		<dc:creator>Artlover</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend_Layout]]></category>
		<category><![CDATA[Zend_View]]></category>

		<guid isPermaLink="false">http://248</guid>
		<description><![CDATA[Zend Framework 内置了 MVC 开发架构，功能非常强大，其中 Zend_Controller 在使用的时候会根据 module/controller/action 自动解析对应的 view ，如果找不到就会抛错；但是有时候我们并不想使用 view 层，这时候我们就需要禁用 view 或者 layout 了，本文就是对禁用 view 或者 layout 所做的总结。 <a class="more-link" href="http://www.codebit.cn/zend-framework/zend-framework-disable-view.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.codebit.cn/zend-framework/zend-framework-disable-view.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 10.996 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-08 10:11:40 -->
<!-- Compression = gzip -->
