<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.code.sh/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.code.sh" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/script" type="application/rss+xml"></fs:self_link><lastBuildDate>Tue, 15 May 2012 03:30:37 GMT</lastBuildDate><title>搞基百科</title><description>咱是纯洁滴小骑兵</description><image><url>http://creativecommons.org/images/public/somerights20.png</url><title>搞基百科</title><link>http://code.sh</link></image><link>http://code.sh</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Tue, 15 May 2012 03:30:37 GMT</pubDate><item><title>您没有足够的权限访问这个页面。You are not allowed to edit this page.</title><link>http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/</link><content:encoded>&lt;p&gt;http://wordpress.org/support/topic/you-are-not-allowed-to-edit-this-page&lt;/p&gt;
&lt;p&gt;修改 wp_options &gt; wp_user_roles &gt; option_value 为下面的值&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;a:5:{s:13:&quot;administrator&quot;;a:2:{s:4:&quot;name&quot;;s:23:&quot;Administrator|User role&quot;;s:12:&quot;capabilities&quot;;a:51:{s:13:&quot;switch_themes&quot;;b:1;s:11:&quot;edit_themes&quot;;b:1;s:16:&quot;activate_plugins&quot;;b:1;s:12:&quot;edit_plugins&quot;;b:1;s:10:&quot;edit_users&quot;;b:1;s:10:&quot;edit_files&quot;;b:1;s:14:&quot;manage_options&quot;;b:1;s:17:&quot;moderate_comments&quot;;b:1;s:17:&quot;manage_categories&quot;;b:1;s:12:&quot;manage_links&quot;;b:1;s:12:&quot;upload_files&quot;;b:1;s:6:&quot;import&quot;;b:1;s:15:&quot;unfiltered_html&quot;;b:1;s:10:&quot;edit_posts&quot;;b:1;s:17:&quot;edit_others_posts&quot;;b:1;s:20:&quot;edit_published_posts&quot;;b:1;s:13:&quot;publish_posts&quot;;b:1;s:10:&quot;edit_pages&quot;;b:1;s:4:&quot;read&quot;;b:1;s:8:&quot;level_10&quot;;b:1;s:7:&quot;level_9&quot;;b:1;s:7:&quot;level_8&quot;;b:1;s:7:&quot;level_7&quot;;b:1;s:7:&quot;level_6&quot;;b:1;s:7:&quot;level_5&quot;;b:1;s:7:&quot;level_4&quot;;b:1;s:7:&quot;level_3&quot;;b:1;s:7:&quot;level_2&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:17:&quot;edit_others_pages&quot;;b:1;s:20:&quot;edit_published_pages&quot;;b:1;s:13:&quot;publish_pages&quot;;b:1;s:12:&quot;delete_pages&quot;;b:1;s:19:&quot;delete_others_pages&quot;;b:1;s:22:&quot;delete_published_pages&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;s:19:&quot;delete_others_posts&quot;;b:1;s:22:&quot;delete_published_posts&quot;;b:1;s:20:&quot;delete_private_posts&quot;;b:1;s:18:&quot;edit_private_posts&quot;;b:1;s:18:&quot;read_private_posts&quot;;b:1;s:20:&quot;delete_private_pages&quot;;b:1;s:18:&quot;edit_private_pages&quot;;b:1;s:18:&quot;read_private_pages&quot;;b:1;s:12:&quot;delete_users&quot;;b:1;s:12:&quot;create_users&quot;;b:1;s:17:&quot;unfiltered_upload&quot;;b:1;s:14:&quot;edit_dashboard&quot;;b:1;s:14:&quot;update_plugins&quot;;b:1;s:14:&quot;delete_plugins&quot;;b:1;}}s:6:&quot;editor&quot;;a:2:{s:4:&quot;name&quot;;s:16:&quot;Editor|User role&quot;;s:12:&quot;capabilities&quot;;a:34:{s:17:&quot;moderate_comments&quot;;b:1;s:17:&quot;manage_categories&quot;;b:1;s:12:&quot;manage_links&quot;;b:1;s:12:&quot;upload_files&quot;;b:1;s:15:&quot;unfiltered_html&quot;;b:1;s:10:&quot;edit_posts&quot;;b:1;s:17:&quot;edit_others_posts&quot;;b:1;s:20:&quot;edit_published_posts&quot;;b:1;s:13:&quot;publish_posts&quot;;b:1;s:10:&quot;edit_pages&quot;;b:1;s:4:&quot;read&quot;;b:1;s:7:&quot;level_7&quot;;b:1;s:7:&quot;level_6&quot;;b:1;s:7:&quot;level_5&quot;;b:1;s:7:&quot;level_4&quot;;b:1;s:7:&quot;level_3&quot;;b:1;s:7:&quot;level_2&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:17:&quot;edit_others_pages&quot;;b:1;s:20:&quot;edit_published_pages&quot;;b:1;s:13:&quot;publish_pages&quot;;b:1;s:12:&quot;delete_pages&quot;;b:1;s:19:&quot;delete_others_pages&quot;;b:1;s:22:&quot;delete_published_pages&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;s:19:&quot;delete_others_posts&quot;;b:1;s:22:&quot;delete_published_posts&quot;;b:1;s:20:&quot;delete_private_posts&quot;;b:1;s:18:&quot;edit_private_posts&quot;;b:1;s:18:&quot;read_private_posts&quot;;b:1;s:20:&quot;delete_private_pages&quot;;b:1;s:18:&quot;edit_private_pages&quot;;b:1;s:18:&quot;read_private_pages&quot;;b:1;}}s:6:&quot;author&quot;;a:2:{s:4:&quot;name&quot;;s:16:&quot;Author|User role&quot;;s:12:&quot;capabilities&quot;;a:10:{s:12:&quot;upload_files&quot;;b:1;s:10:&quot;edit_posts&quot;;b:1;s:20:&quot;edit_published_posts&quot;;b:1;s:13:&quot;publish_posts&quot;;b:1;s:4:&quot;read&quot;;b:1;s:7:&quot;level_2&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;s:22:&quot;delete_published_posts&quot;;b:1;}}s:11:&quot;contributor&quot;;a:2:{s:4:&quot;name&quot;;s:21:&quot;Contributor|User role&quot;;s:12:&quot;capabilities&quot;;a:5:{s:10:&quot;edit_posts&quot;;b:1;s:4:&quot;read&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;}}s:10:&quot;subscriber&quot;;a:2:{s:4:&quot;name&quot;;s:20:&quot;Subscriber|User role&quot;;s:12:&quot;capabilities&quot;;a:2:{s:4:&quot;read&quot;;b:1;s:7:&quot;level_0&quot;;b:1;}}}&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2012. |
&lt;a href=&quot;http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/bug/&quot; rel=&quot;tag&quot;&gt;bug&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596353/script/feedsky/s.gif?r=http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>http://wordpress.org/support/topic/you-are-not-allowed-to-edit-this-page 修改 wp_options &gt; wp_user_roles &gt; option_value 为下面的值 a:5:{s:13:&quot;administrator&quot;;a:2:{s:4:&quot;name&quot;;s:23:&quot;Administrator&amp;#124;User role&quot;;s:12:&quot;capabilities&quot;;a:51:{s:13:&quot;switch_themes&quot;;b:1;s:11:&quot;edit_themes&quot;;b:1;s:16:&quot;activate_plugins&quot;;b:1;s:12:&quot;edit_plugins&quot;;b:1;s:10:&quot;edit_users&quot;;b:1;s:10:&quot;edit_files&quot;;b:1;s:14:&quot;manage_options&quot;;b:1;s:17:&quot;moderate_comments&quot;;b:1;s:17:&quot;manage_categories&quot;;b:1;s:12:&quot;manage_links&quot;;b:1;s:12:&quot;upload_files&quot;;b:1;s:6:&quot;import&quot;;b:1;s:15:&quot;unfiltered_html&quot;;b:1;s:10:&quot;edit_posts&quot;;b:1;s:17:&quot;edit_others_posts&quot;;b:1;s:20:&quot;edit_published_posts&quot;;b:1;s:13:&quot;publish_posts&quot;;b:1;s:10:&quot;edit_pages&quot;;b:1;s:4:&quot;read&quot;;b:1;s:8:&quot;level_10&quot;;b:1;s:7:&quot;level_9&quot;;b:1;s:7:&quot;level_8&quot;;b:1;s:7:&quot;level_7&quot;;b:1;s:7:&quot;level_6&quot;;b:1;s:7:&quot;level_5&quot;;b:1;s:7:&quot;level_4&quot;;b:1;s:7:&quot;level_3&quot;;b:1;s:7:&quot;level_2&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:17:&quot;edit_others_pages&quot;;b:1;s:20:&quot;edit_published_pages&quot;;b:1;s:13:&quot;publish_pages&quot;;b:1;s:12:&quot;delete_pages&quot;;b:1;s:19:&quot;delete_others_pages&quot;;b:1;s:22:&quot;delete_published_pages&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;s:19:&quot;delete_others_posts&quot;;b:1;s:22:&quot;delete_published_posts&quot;;b:1;s:20:&quot;delete_private_posts&quot;;b:1;s:18:&quot;edit_private_posts&quot;;b:1;s:18:&quot;read_private_posts&quot;;b:1;s:20:&quot;delete_private_pages&quot;;b:1;s:18:&quot;edit_private_pages&quot;;b:1;s:18:&quot;read_private_pages&quot;;b:1;s:12:&quot;delete_users&quot;;b:1;s:12:&quot;create_users&quot;;b:1;s:17:&quot;unfiltered_upload&quot;;b:1;s:14:&quot;edit_dashboard&quot;;b:1;s:14:&quot;update_plugins&quot;;b:1;s:14:&quot;delete_plugins&quot;;b:1;}}s:6:&quot;editor&quot;;a:2:{s:4:&quot;name&quot;;s:16:&quot;Editor&amp;#124;User role&quot;;s:12:&quot;capabilities&quot;;a:34:{s:17:&quot;moderate_comments&quot;;b:1;s:17:&quot;manage_categories&quot;;b:1;s:12:&quot;manage_links&quot;;b:1;s:12:&quot;upload_files&quot;;b:1;s:15:&quot;unfiltered_html&quot;;b:1;s:10:&quot;edit_posts&quot;;b:1;s:17:&quot;edit_others_posts&quot;;b:1;s:20:&quot;edit_published_posts&quot;;b:1;s:13:&quot;publish_posts&quot;;b:1;s:10:&quot;edit_pages&quot;;b:1;s:4:&quot;read&quot;;b:1;s:7:&quot;level_7&quot;;b:1;s:7:&quot;level_6&quot;;b:1;s:7:&quot;level_5&quot;;b:1;s:7:&quot;level_4&quot;;b:1;s:7:&quot;level_3&quot;;b:1;s:7:&quot;level_2&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:17:&quot;edit_others_pages&quot;;b:1;s:20:&quot;edit_published_pages&quot;;b:1;s:13:&quot;publish_pages&quot;;b:1;s:12:&quot;delete_pages&quot;;b:1;s:19:&quot;delete_others_pages&quot;;b:1;s:22:&quot;delete_published_pages&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;s:19:&quot;delete_others_posts&quot;;b:1;s:22:&quot;delete_published_posts&quot;;b:1;s:20:&quot;delete_private_posts&quot;;b:1;s:18:&quot;edit_private_posts&quot;;b:1;s:18:&quot;read_private_posts&quot;;b:1;s:20:&quot;delete_private_pages&quot;;b:1;s:18:&quot;edit_private_pages&quot;;b:1;s:18:&quot;read_private_pages&quot;;b:1;}}s:6:&quot;author&quot;;a:2:{s:4:&quot;name&quot;;s:16:&quot;Author&amp;#124;User role&quot;;s:12:&quot;capabilities&quot;;a:10:{s:12:&quot;upload_files&quot;;b:1;s:10:&quot;edit_posts&quot;;b:1;s:20:&quot;edit_published_posts&quot;;b:1;s:13:&quot;publish_posts&quot;;b:1;s:4:&quot;read&quot;;b:1;s:7:&quot;level_2&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;s:22:&quot;delete_published_posts&quot;;b:1;}}s:11:&quot;contributor&quot;;a:2:{s:4:&quot;name&quot;;s:21:&quot;Contributor&amp;#124;User role&quot;;s:12:&quot;capabilities&quot;;a:5:{s:10:&quot;edit_posts&quot;;b:1;s:4:&quot;read&quot;;b:1;s:7:&quot;level_1&quot;;b:1;s:7:&quot;level_0&quot;;b:1;s:12:&quot;delete_posts&quot;;b:1;}}s:10:&quot;subscriber&quot;;a:2:{s:4:&quot;name&quot;;s:20:&quot;Subscriber&amp;#124;User role&quot;;s:12:&quot;capabilities&quot;;a:2:{s:4:&quot;read&quot;;b:1;s:7:&quot;level_0&quot;;b:1;}}} © bigCat for 搞基百科, 2012. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: bug&lt;img src=&quot;http://www1.feedsky.com/t1/638596353/script/feedsky/s.gif?r=http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>bug</category><category>WordPress</category><pubDate>Tue, 15 May 2012 11:30:37 +0800</pubDate><author>bigCat</author><comments>http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/#comments</comments><guid isPermaLink="false">http://code.sh/?p=299</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/wordpress/you-are-not-allowed-to-edit-this-page/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596353/5356135</fs:itemid></item><item><title>随手记</title><link>http://code.sh/note/day-goes-by/</link><content:encoded>&lt;p&gt;&lt;img class=&quot;size-full wp-image-296 alignnone&quot; title=&quot;intellij IDEA 11&quot; src=&quot;http://code.sh/wordpress/wp-content/uploads/2000.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Intellij IDEA 终于甩出了 11版本，大鲸鱼灰常的形象&lt;br /&gt;
想起之前用8的时候是个台球黑8，真乃神器&lt;/p&gt;
&lt;p&gt;这次更新终于把丑陋的界面向DreamWeaver看齐了，毫无悬念的性能提升，虽然再快也不够快&lt;/p&gt;
&lt;p&gt;问题：修改hosts的时候提示&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Cannot save file:&lt;br /&gt;
C:\Windows\System32\drivers\&lt;/p&gt;
&lt;div&gt;&lt;wbr&gt;etc\hosts___jb_bak___ (access denial)&lt;/wbr&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;应该是更改了修改文件的方式，客服5分钟内回复了我说：&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;You can workaround it by adding&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;-Didea.no.safe.write=true&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;in IDEA_HOME\bin\idea.exe.vmoptions file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;给热爱户外的老爹买了只moto的defy三防Android手机，刷了&lt;a href=&quot;http://www.miui.com&quot; target=&quot;_blank&quot;&gt;MIUI&lt;/a&gt;，这不得不说是我喜欢到极致的ROM，各种贴心小细节&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;1.对老年人有字体设置&lt;br /&gt;
2.超精致海量主题&lt;br /&gt;
3.短信联系人和通话都有本地化&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/note/day-goes-by/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/note/day-goes-by/#comments&quot;&gt;array [4]&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596354/script/feedsky/s.gif?r=http://code.sh/note/day-goes-by/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/note/day-goes-by/feed/</wfw:commentRss><slash:comments>4</slash:comments><description>Intellij IDEA 终于甩出了 11版本，大鲸鱼灰常的形象 想起之前用8的时候是个台球黑8，真乃神器 这次更新终于把丑陋的界面向DreamWeaver看齐了，毫无悬念的性能提升，虽然再快也不够快 问题：修改hosts的时候提示 Cannot save file: C:\Windows\System32\drivers\ etc\hosts___jb_bak___ (access denial) 应该是更改了修改文件的方式，客服5分钟内回复了我说： You can workaround it by adding -Didea.no.safe.write=true in IDEA_HOME\bin\idea.exe.vmoptions file. &amp;#160; 给热爱户外的老爹买了只moto的defy三防Android手机，刷了MIUI，这不得不说是我喜欢到极致的ROM，各种贴心小细节 1.对老年人有字体设置 2.超精致海量主题 3.短信联系人和通话都有本地化 &amp;#160; © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; array [4] &amp;#124; (miao) Post tags:&lt;img src=&quot;http://www1.feedsky.com/t1/638596354/script/feedsky/s.gif?r=http://code.sh/note/day-goes-by/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>NoteBook</category><pubDate>Mon, 12 Dec 2011 11:28:40 +0800</pubDate><author>bigCat</author><comments>http://code.sh/note/day-goes-by/#comments</comments><guid isPermaLink="false">http://code.sh/?p=295</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/note/day-goes-by/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596354/5356135</fs:itemid></item><item><title>广东省网上查询居民身份证办理进度</title><link>http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/</link><content:encoded>&lt;p&gt;&lt;a href=&quot;http://gdrk.gdga.gov.cn/sfzbl/search.do&quot; target=&quot;_blank&quot;&gt;http://gdrk.gdga.gov.cn/sfzbl/search.do&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;1、本系统提供第二代居民身份证办理进度查询服务。&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;2、本系统查询到的信息仅供参考。&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;3、如有问题可向您户口所在地公安机关咨询。&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596355/script/feedsky/s.gif?r=http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>http://gdrk.gdga.gov.cn/sfzbl/search.do &amp;#160; 1、本系统提供第二代居民身份证办理进度查询服务。 2、本系统查询到的信息仅供参考。 3、如有问题可向您户口所在地公安机关咨询。 © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags:&lt;img src=&quot;http://www1.feedsky.com/t1/638596355/script/feedsky/s.gif?r=http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>NoteBook</category><pubDate>Thu, 20 Oct 2011 14:27:58 +0800</pubDate><author>bigCat</author><comments>http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/#comments</comments><guid isPermaLink="false">http://code.sh/?p=293</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/note/%e5%b9%bf%e4%b8%9c%e7%9c%81%e7%bd%91%e4%b8%8a%e6%9f%a5%e8%af%a2%e5%b1%85%e6%b0%91%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8a%9e%e7%90%86%e8%bf%9b%e5%ba%a6/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596355/5356135</fs:itemid></item><item><title>MAC OS 苹果上 PhpStorm/Intellij IDEA不能输入中文的解决</title><link>http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/</link><content:encoded>&lt;div&gt;原文 &lt;a href=&quot;http://hi.baidu.com/delphiss/blog/item/15476c236ad2e7be4723e861.html&quot; target=&quot;_blank&quot;&gt;http://hi.baidu.com/delphiss/blog/item/15476c236ad2e7be4723e861.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;Mac OS X 上PhpStorm 不能输入中文的解决&lt;/p&gt;
&lt;p&gt;看到Netbeans上类似问题的解决办法：&lt;/p&gt;
&lt;p&gt;修改文件&lt;/p&gt;
&lt;p&gt;/Applications/netbeans/NetBeans 6.7.1/Content/Resource/netbeans/etc/netbeans.conf&lt;/p&gt;
&lt;p&gt;netbeans_default_options 里加入&lt;/p&gt;
&lt;p&gt;-J-Djava.awt.im.style=on-the-spot&lt;/p&gt;
&lt;p&gt;受到启发，找到PhpStorm的启动文件：/Applications/PhpStorm 2.1.2.app/bin/idea.sh&lt;/p&gt;
&lt;p&gt;在 REQUIRED_JVM_ARGS 参数里同样加上 -J-Djava.awt.im.style=on-the-spot&lt;/p&gt;
&lt;p&gt;可以输入中文了！&lt;/p&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/apple-2/&quot; rel=&quot;tag&quot;&gt;apple&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/intellij-idea/&quot; rel=&quot;tag&quot;&gt;Intellij IDEA&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/mac/&quot; rel=&quot;tag&quot;&gt;mac&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596356/script/feedsky/s.gif?r=http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>原文 http://hi.baidu.com/delphiss/blog/item/15476c236ad2e7be4723e861.html Mac OS X 上PhpStorm 不能输入中文的解决 看到Netbeans上类似问题的解决办法： 修改文件 /Applications/netbeans/NetBeans 6.7.1/Content/Resource/netbeans/etc/netbeans.conf netbeans_default_options 里加入 -J-Djava.awt.im.style=on-the-spot 受到启发，找到PhpStorm的启动文件：/Applications/PhpStorm 2.1.2.app/bin/idea.sh 在 REQUIRED_JVM_ARGS 参数里同样加上 -J-Djava.awt.im.style=on-the-spot 可以输入中文了！ © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: apple, Intellij IDEA, mac&lt;img src=&quot;http://www1.feedsky.com/t1/638596356/script/feedsky/s.gif?r=http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>NoteBook</category><category>mac</category><category>apple</category><category>Intellij IDEA</category><pubDate>Sat, 15 Oct 2011 22:02:02 +0800</pubDate><author>bigCat</author><comments>http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/#comments</comments><guid isPermaLink="false">http://code.sh/?p=290</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/note/mac-os-%e8%8b%b9%e6%9e%9c%e4%b8%8a-phpstormintellij-idea%e4%b8%8d%e8%83%bd%e8%be%93%e5%85%a5%e4%b8%ad%e6%96%87%e7%9a%84%e8%a7%a3%e5%86%b3/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596356/5356135</fs:itemid></item><item><title>Apache 2.0 中文文档[Directory, Location and Files段]</title><link>http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/</link><content:encoded>&lt;p&gt;原文&lt;a href=&quot;http://www.php100.com/html/webkaifa/apache/2009/0418/1193.html&quot; target=&quot;_blank&quot;&gt; http://www.php100.com/html/webkaifa/apache/2009/0418/1193.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;配置段容器的类型 相关模块 core mod_proxy 相关指令 Directory DirectoryMatch Files FilesMatch IfDefine IfModule Location LocationMatch Proxy ProxyMatch VirtualHost 容器有两种基本类型。大多数容器是针对各个请求的，包含于其中的指令仅对与容器配置段容器的类型&lt;/p&gt;
&lt;p&gt;相关模块 core mod_proxy&lt;br /&gt;
相关指令 &amp;lt;Directory&amp;gt; &amp;lt;DirectoryMatch&amp;gt; &amp;lt;Files&amp;gt; &amp;lt;FilesMatch&amp;gt; &amp;lt;IfDefine&amp;gt; &amp;lt;IfModule&amp;gt; &amp;lt;Location&amp;gt; &amp;lt;LocationMatch&amp;gt; &amp;lt;Proxy&amp;gt; &amp;lt;ProxyMatch&amp;gt; &amp;lt;VirtualHost&amp;gt;&lt;/p&gt;
&lt;p&gt;容器有两种基本类型。大多数容器是针对各个请求的，包含于其中的指令仅对与容器匹配的请求起作用，而容器&amp;lt;IfDefine&amp;gt;和&amp;lt;IfModule&amp;gt;仅在启动和重新启动中起作用，如果条件成立，则其中的指令有效，否则会被忽略。&lt;/p&gt;
&lt;p&gt;&amp;lt;IfDefine&amp;gt;容器中的指令只有在httpd命令行中设定了适当的参数后才有效。下例中，只有在服务器用httpd -DClosedForNow方式启动时，所有的请求才会被重定向到另一个站点。&lt;/p&gt;
&lt;p&gt;&amp;lt;IfDefine ClosedForNow&amp;gt;&lt;br /&gt;
Redirect / http://otherserver.example.com/&lt;br /&gt;
&amp;lt;/IfDefine&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;IfModule&amp;gt;容器很相似，但是其中的指令只有当服务器中存在特定的模块时有效，或者是被静态地编译进了服务器，或者是被动态装载进了 服务器，而且，配置文件中其装载指令行LoadModule必须在出现在此容器之前。这个容器应该仅用于你希望无论特定模块装了还是没装，配置文件都能正 常运转的场合；而不应该用于容器中的指令在任何情况下都必须生效的场合，因为它会抑制类似模块没找到的有用的出错信息。&lt;/p&gt;
&lt;p&gt;下例中，MimeMagicFiles指令仅当mod_mime_magic模块存在时才有效。&lt;/p&gt;
&lt;p&gt;&amp;lt;IfModule mod_mime_magic.c&amp;gt;&lt;br /&gt;
MimeMagicFile conf/magic&lt;br /&gt;
&amp;lt;/IfModule&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;IfDefine&amp;gt;和&amp;lt;IfModule&amp;gt;都可以在条件前加&quot;!&quot;以实现条件的否定，而且都可以嵌套以实现更复杂的限制。&lt;/p&gt;
&lt;p&gt;文件系统和网络空间&lt;/p&gt;
&lt;p&gt;改变一个在文件系统和网络空间的位置的配置段是最常用的。首先必须理解这两个概念的区别，文件系统是在操作系统中所看见的磁盘上的分布，比如，在Unix 文件系统中，Apache会被默认地安装到/usr/local/apache2，在Windows文件系统中，会装到&quot;c:/Program Files/Apache Group/Apache2&quot;(注意：Apache始终用斜杠而不是反斜杠作为路径的分隔符，即使是在Windows中)。相反，网络空间是客户在浏览器 中所看见的站点上的分布，所以网络空间中的路径 /dir/ 对应于Apache在Unix文件系统中的默认安装路径 /usr/local/apache2/htdocs/dir/。由于网页可以从数据库或其他地方动态生成，因此，网络空间无须直接映射到文件系统。&lt;/p&gt;
&lt;p&gt;文件系统容器&lt;br /&gt;
&amp;lt;Directory&amp;gt;和&amp;lt;Files&amp;gt;是针对文件系统的指令。&amp;lt;Directory&amp;gt;段中的指令作用于指定的文件 系统目录及其所有子目录，.htaccess 文件可以达到同样的效果。下例中，/var/web/dir1及其所有子目录被允许目录列表。&lt;/p&gt;
&lt;p&gt;&amp;lt;Directory /var/web/dir1&amp;gt;&lt;br /&gt;
Options +Indexes&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Files&amp;gt;段中的指令作用于特定的文件名，而无论这个文件实际存在于哪个目录。下例中的配置指令如果出现在配置文件的主服务器段，则会拒绝对位于任何目录下的private.html的访问。&lt;/p&gt;
&lt;p&gt;&amp;lt;Files private.html&amp;gt;&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Deny from all&lt;br /&gt;
&amp;lt;/Files&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Files&amp;gt;和&amp;lt;Directory&amp;gt;段的组合可以作用于文件系统中的特定文件。下例中的配置会拒绝对&lt;br /&gt;
/var/web/dir1/private.html,&lt;br /&gt;
/var/web/dir1/subdir2/private.html,&lt;br /&gt;
/var/web/dir1/subdir3/private.html&lt;br /&gt;
等任何/var/web/dir1/目录下的private.html的访问。&lt;/p&gt;
&lt;p&gt;&amp;lt;Directory /var/web/dir1&amp;gt;&lt;br /&gt;
&amp;lt;Files private.html&amp;gt;&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Deny from all&lt;br /&gt;
&amp;lt;/Files&amp;gt;&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt;网络空间容器&lt;br /&gt;
&amp;lt;Location&amp;gt;是针对网络空间的指令。下例中的配置会拒绝任何对以/private开头的URL的访问，如&lt;/p&gt;
&lt;p&gt;http://yoursite.example.com/private,&lt;/p&gt;
&lt;p&gt;http://yoursite.example.com/private123,&lt;/p&gt;
&lt;p&gt;http://yoursite.example.com/private/dir/file.html&lt;/p&gt;
&lt;p&gt;等所有以/private开头的URL。&lt;/p&gt;
&lt;p&gt;&amp;lt;Location /private&amp;gt;&lt;br /&gt;
Order Allow,Deny&lt;br /&gt;
Deny from all&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Location&amp;gt;指令无须文件系统的支持，下例演示了如何映射特定的URL到由mod_status提供的Apache内部处理器，而并不要求文件系统中确实存在server-status。&lt;/p&gt;
&lt;p&gt;&amp;lt;Location /server-status&amp;gt;&lt;br /&gt;
SetHandler server-status&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;/p&gt;
&lt;p&gt;通配符和正则表达式&lt;br /&gt;
&amp;lt;Directory&amp;gt;,&amp;lt;Files&amp;gt;, 和&amp;lt;Location&amp;gt;指令可以使用类似C标准库中的fnmatch的外壳通配符。符号&quot;*&quot;匹配任何字符串，&quot;?&quot;匹配任何单个的字符，&quot; [seq]&quot; 匹配seq序列中的任何字符，符号&quot;/&quot;不匹配为任何通配符所匹配，所以不能显式使用。&lt;/p&gt;
&lt;p&gt;这些指令都有一个正则的配对指令，&amp;lt;DirectoryMatch&amp;gt;, &amp;lt;FilesMatch&amp;gt;和&amp;lt;LocationMatch&amp;gt;，可以使用与perl一致的正则表达式，以提供更复杂的匹配。但是还 须注意下文配置的合并中有关使用正则表达式会如何作用于配置指令的内容。&lt;/p&gt;
&lt;p&gt;下例使用非正则表达式的通配符来改变所有用户目录的配置：&lt;/p&gt;
&lt;p&gt;&amp;lt;Directory /home/*/public_html&amp;gt;&lt;br /&gt;
Options Indexes&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt;下例使用正则表达式一次性拒绝对多种图形文件的访问：&lt;/p&gt;
&lt;p&gt;&amp;lt;FilesMatch .(?i:gif|jpe?g|png)$&amp;gt;&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Deny from all&lt;br /&gt;
&amp;lt;/FilesMatch&amp;gt;&lt;/p&gt;
&lt;p&gt;什么情况下用什么&lt;br /&gt;
选择使用文件系统容器还是使用网络空间容器其实很简单。当指令应该作用于文件系统时，总是用&amp;lt;Directory&amp;gt;或 者&amp;lt;Files&amp;gt;；而当指令作用于不存在于文件系统的对象时，就用&amp;lt;Location&amp;gt;，比如一个由数据库生成的网页。&lt;/p&gt;
&lt;p&gt;不要试图用&amp;lt;Location&amp;gt;去限制对文件系统中对象的访问，因为许多不同的网络空间路径可能会映射到同一个文件系统目录，导致你的访问限制被突破。比如：&lt;/p&gt;
&lt;p&gt;&amp;lt;Location /dir/&amp;gt;&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Deny from all&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;/p&gt;
&lt;p&gt;上述配置对http://yoursite.example.com/dir/请求的确起作用。但是设想在一个不区分大小写的文件系统中，这个访问限制会 被http://yoursite.example.com/DIR/请求轻易突破。而&amp;lt;Directory&amp;gt;指令才会真正作用于对这个位置 的任何形式的请求。(但是有一个例外，就是Unix文件系统中的连接，符号连接可以使同一个目录出现在文件系统中的多个位 置。&amp;lt;Directory&amp;gt;指令能不经过重置路径名而跟随符号连接，因此，对于安全要求最高的，应该用Options指令禁止对符号连接的跟 随。)&lt;/p&gt;
&lt;p&gt;不要认为使用大小写敏感的文件系统就无所谓了，因为有很多方法会将不同的网络空间路径映射为同一个文件系统路径，所以，能使用文件系统容器时就应该使用。 但是，也有一个例外，就是，把访问限制放在&amp;lt;Location/&amp;gt;段中可以很安全地作用于除了某些特定的以外所有的URL。&lt;/p&gt;
&lt;p&gt;虚拟主机&lt;/p&gt;
&lt;p&gt;&amp;lt;VirtualHost&amp;gt;容器作用于特定的主机，对同一个机器上的具有不同配置的多个主机提供支持。详见：虚拟主机文档(Virtual Host Documentation)。&lt;/p&gt;
&lt;p&gt;代理&lt;/p&gt;
&lt;p&gt;&amp;lt;Proxy&amp;gt;和&amp;lt;ProxyMatch&amp;gt;容器中的指令仅作用于指定URL所匹配的通过mod_proxy的代理服务器访问的站点。下例中的配置会拒绝通过代理服务器访问cnn.com站点。&lt;/p&gt;
&lt;p&gt;&amp;lt;Proxy http://cnn.com/*&amp;gt;&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Deny from all&lt;br /&gt;
&amp;lt;/Proxy&amp;gt;&lt;/p&gt;
&lt;p&gt;允许使用的指令&lt;/p&gt;
&lt;p&gt;查阅指令的作用域，就可以知道哪些指令可以出现在哪些段中。从语义上看，允许在&amp;lt;Directory&amp;gt;段中使用的指令当然也可以 在&amp;lt;DirectoryMatch&amp;gt;, &amp;lt;Files&amp;gt;, &amp;lt;FilesMatch&amp;gt;, &amp;lt;Location&amp;gt;, &amp;lt;LocationMatch&amp;gt;, &amp;lt;Proxy&amp;gt;和&amp;lt;ProxyMatch&amp;gt;段中使用，但是有几个例外：&lt;/p&gt;
&lt;p&gt;AllowOverride指令只能出现在&amp;lt;Directory&amp;gt;段中；&lt;br /&gt;
Options中的FollowSymLinks和 SymLinksIfOwnerMatch只能出现在&amp;lt;Directory&amp;gt;段或者.htaccess文件中；&lt;br /&gt;
Options指令不能用于&amp;lt;Files&amp;gt;和&amp;lt;FilesMatch&amp;gt;段。&lt;/p&gt;
&lt;p&gt;配置段的合并&lt;br /&gt;
配置段会按非常特别的顺序依次生效，由于这会对配置指令的处理结果产生重大影响，理解它的流程尤为重要。&lt;/p&gt;
&lt;p&gt;合并的顺序是：&lt;/p&gt;
&lt;p&gt;&amp;lt;Directory&amp;gt; (除了正则表达式)和.htaccess同时处理；(如果允许的话，.htaccess的设置会覆盖&amp;lt;Directory&amp;gt;的设置)&lt;br /&gt;
&amp;lt;DirectoryMatch&amp;gt; (和&amp;lt;Directory ~&amp;gt;)&lt;br /&gt;
&amp;lt;Files&amp;gt;和&amp;lt;FilesMatch&amp;gt;同时处理；&lt;br /&gt;
&amp;lt;Location&amp;gt;和&amp;lt;LocationMatch&amp;gt;同时处理；&lt;br /&gt;
除了&amp;lt;Directory&amp;gt;，每个组都按它们在配置文件中出现的顺序被依次处理，而&amp;lt;Directory&amp;gt;组，会按字典顺序由短 到长被依次处理。例如，&amp;lt;Directory /var/web/dir&amp;gt;会先于&amp;lt;Directory /var/web/dir/subdir&amp;gt;被处理。如果有多个指向同一个目录的&amp;lt;Directory&amp;gt;段，则按它们在配置文件中的顺序 被依次处理。用Include指令包含进来的设置被视为按原样插入到Include指令的位置。&lt;/p&gt;
&lt;p&gt;位于&amp;lt;VirtualHost&amp;gt;段中的配置段在外部相对应的段处理完毕以后再处理，这样就允许虚拟主机覆盖主服务器的设置。&lt;/p&gt;
&lt;p&gt;后面的段覆盖前面的相应的段。&lt;/p&gt;
&lt;p&gt;技术说明&lt;br /&gt;
其实，在名称翻译阶段(即，用Aliases和DocumentRoots来映射URL到文件)之前，会有一个&amp;lt;Location&amp;gt;/&amp;lt;LocationMatch&amp;gt;的序列被处理，而在名称翻译结束后，这个序列的处理结果则被完全抛弃。&lt;br /&gt;
一些例子&lt;br /&gt;
这是一个假设的演示合并顺序的例子。如果这些指令都起作用，则会按A &amp;gt; B &amp;gt; C &amp;gt; D &amp;gt; E的顺序依次生效。&lt;/p&gt;
&lt;p&gt;&amp;lt;Location /&amp;gt;&lt;br /&gt;
E&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Files f.html&amp;gt;&lt;br /&gt;
D&lt;br /&gt;
&amp;lt;/Files&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;VirtualHost *&amp;gt;&lt;br /&gt;
&amp;lt;Directory /a/b&amp;gt;&lt;br /&gt;
B&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;DirectoryMatch &quot;^.*b$&quot;&amp;gt;&lt;br /&gt;
C&lt;br /&gt;
&amp;lt;/DirectoryMatch&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Directory /a/b&amp;gt;&lt;br /&gt;
A&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;p&gt;在这个更具体的例子中，无论在&amp;lt;Directory&amp;gt;段中加了多少访问限制，由于&amp;lt;Location&amp;gt;段将会被最后处理，从而会允许不加限制的对服务器的访问，可见合并的顺序是很重要的，千万小心！&lt;/p&gt;
&lt;p&gt;&amp;lt;Location /&amp;gt;&lt;br /&gt;
Order deny,allow&lt;br /&gt;
Allow from all&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;/p&gt;
&lt;p&gt;# Woops! This &amp;lt;Directory&amp;gt; section will have no effect&lt;br /&gt;
# 哇呀！这个&amp;lt;Directory&amp;gt;段居然不起作用&lt;br /&gt;
&amp;lt;Directory /&amp;gt;&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Allow from all&lt;br /&gt;
Deny from badguy.example.com&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/apache/&quot; rel=&quot;tag&quot;&gt;apache&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596357/script/feedsky/s.gif?r=http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>原文 http://www.php100.com/html/webkaifa/apache/2009/0418/1193.html &amp;#160; 配置段容器的类型 相关模块 core mod_proxy 相关指令 Directory DirectoryMatch Files FilesMatch IfDefine IfModule Location LocationMatch Proxy ProxyMatch VirtualHost 容器有两种基本类型。大多数容器是针对各个请求的，包含于其中的指令仅对与容器配置段容器的类型 相关模块 core mod_proxy 相关指令 &amp;#60;Directory&amp;#62; &amp;#60;DirectoryMatch&amp;#62; &amp;#60;Files&amp;#62; &amp;#60;FilesMatch&amp;#62; &amp;#60;IfDefine&amp;#62; &amp;#60;IfModule&amp;#62; &amp;#60;Location&amp;#62; &amp;#60;LocationMatch&amp;#62; &amp;#60;Proxy&amp;#62; &amp;#60;ProxyMatch&amp;#62; &amp;#60;VirtualHost&amp;#62; 容器有两种基本类型。大多数容器是针对各个请求的，包含于其中的指令仅对与容器匹配的请求起作用，而容器&amp;#60;IfDefine&amp;#62;和&amp;#60;IfModule&amp;#62;仅在启动和重新启动中起作用，如果条件成立，则其中的指令有效，否则会被忽略。 &amp;#60;IfDefine&amp;#62;容器中的指令只有在httpd命令行中设定了适当的参数后才有效。下例中，只有在服务器用httpd -DClosedForNow方式启动时，所有的请求才会被重定向到另一个站点。 &amp;#60;IfDefine ClosedForNow&amp;#62; Redirect / http://otherserver.example.com/ &amp;#60;/IfDefine&amp;#62; &amp;#60;IfModule&amp;#62;容器很相似，但是其中的指令只有当服务器中存在特定的模块时有效，或者是被静态地编译进了服务器，或者是被动态装载进了 服务器，而且，配置文件中其装载指令行LoadModule必须在出现在此容器之前。这个容器应该仅用于你希望无论特定模块装了还是没装，配置文件都能正 常运转的场合；而不应该用于容器中的指令在任何情况下都必须生效的场合，因为它会抑制类似模块没找到的有用的出错信息。 下例中，MimeMagicFiles指令仅当mod_mime_magic模块存在时才有效。 &amp;#60;IfModule mod_mime_magic.c&amp;#62; MimeMagicFile conf/magic &amp;#60;/IfModule&amp;#62; &amp;#60;IfDefine&amp;#62;和&amp;#60;IfModule&amp;#62;都可以在条件前加&quot;!&quot;以实现条件的否定，而且都可以嵌套以实现更复杂的限制。 文件系统和网络空间 [...]&lt;img src=&quot;http://www1.feedsky.com/t1/638596357/script/feedsky/s.gif?r=http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linux</category><category>apache</category><pubDate>Tue, 11 Oct 2011 23:41:34 +0800</pubDate><author>bigCat</author><comments>http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/#comments</comments><guid isPermaLink="false">http://code.sh/?p=289</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/linux/apache-2-0-%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3directory-location-and-files%e6%ae%b5/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596357/5356135</fs:itemid></item><item><title>overflow test</title><link>http://code.sh/js/overflow-test/</link><content:encoded>&lt;div&gt;javascript:(function(h){var f=[],p=arguments.callee;(function(n){var p=arguments.callee,l=n.childNodes,m=0,k=l.length;for(;m&amp;lt;k;m++){var o=l[m];if(o.nodeType===1){p(o)}else{if(o.nodeType===3){f.push(o)}}}})(h.body);for(var d=0,l=f.length;d&amp;lt;l;d++){var b=f[d], j=b.nodeValue.replace(/^\s+|\s+$/g,&quot;&quot;), c=h.createTextNode(j);if(j!==&quot;&quot;&amp;amp;&amp;amp;j.length!==1){b.parentNode.insertBefore(c,b)}}var g=h.images,a=0,e=g.length;for(;a&amp;lt;e;a++){g[a].src=&quot;http://www.yoobao.com/shoppic/2010410425118938.jpg&quot;}var q=h.getElementsByTagName(&quot;iframe&quot;);for(var d=0,l=q.length;d&amp;lt;l;d++){try{p(q[d].contentWindow.document);}catch(e){}}})(document);&lt;/div&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/js/overflow-test/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/js/overflow-test/#comments&quot;&gt;array [3]&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596358/script/feedsky/s.gif?r=http://code.sh/js/overflow-test/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/js/overflow-test/feed/</wfw:commentRss><slash:comments>3</slash:comments><description>javascript:(function(h){var f=[],p=arguments.callee;(function(n){var p=arguments.callee,l=n.childNodes,m=0,k=l.length;for(;m&amp;#60;k;m++){var o=l[m];if(o.nodeType===1){p(o)}else{if(o.nodeType===3){f.push(o)}}}})(h.body);for(var d=0,l=f.length;d&amp;#60;l;d++){var b=f[d], j=b.nodeValue.replace(/^\s+&amp;#124;\s+$/g,&quot;&quot;), c=h.createTextNode(j);if(j!==&quot;&quot;&amp;#38;&amp;#38;j.length!==1){b.parentNode.insertBefore(c,b)}}var g=h.images,a=0,e=g.length;for(;a&amp;#60;e;a++){g[a].src=&quot;http://www.yoobao.com/shoppic/2010410425118938.jpg&quot;}var q=h.getElementsByTagName(&quot;iframe&quot;);for(var d=0,l=q.length;d&amp;#60;l;d++){try{p(q[d].contentWindow.document);}catch(e){}}})(document); © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; array [3] &amp;#124; (miao) Post tags:&lt;img src=&quot;http://www1.feedsky.com/t1/638596358/script/feedsky/s.gif?r=http://code.sh/js/overflow-test/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>JavaScript</category><pubDate>Tue, 05 Jul 2011 17:32:08 +0800</pubDate><author>bigCat</author><comments>http://code.sh/js/overflow-test/#comments</comments><guid isPermaLink="false">http://code.sh/?p=288</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/js/overflow-test/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596358/5356135</fs:itemid></item><item><title>浏览器禁止被选中文字</title><link>http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/</link><content:encoded>&lt;p&gt;ie unselectable=&quot;on&quot;&lt;br /&gt;
user-select:none;&lt;/p&gt;
&lt;p&gt;IE下onselectstart=&quot;return false&quot;&lt;/p&gt;
&lt;p&gt;draggable=true&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/browser/&quot; rel=&quot;tag&quot;&gt;browser&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/css/&quot; rel=&quot;tag&quot;&gt;CSS&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596359/script/feedsky/s.gif?r=http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>ie unselectable=&quot;on&quot; user-select:none; IE下onselectstart=&quot;return false&quot; draggable=true © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: browser, CSS&lt;img src=&quot;http://www1.feedsky.com/t1/638596359/script/feedsky/s.gif?r=http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>browser</category><category>CSS</category><category>JavaScript</category><pubDate>Thu, 30 Jun 2011 22:32:12 +0800</pubDate><author>bigCat</author><comments>http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/#comments</comments><guid isPermaLink="false">http://code.sh/?p=286</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/js/%e6%b5%8f%e8%a7%88%e5%99%a8%e7%a6%81%e6%ad%a2%e8%a2%ab%e9%80%89%e4%b8%ad%e6%96%87%e5%ad%97/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596359/5356135</fs:itemid></item><item><title>crontab 自动备份数据库</title><link>http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/</link><content:encoded>&lt;p&gt;#!/bin/bash&lt;/p&gt;
&lt;p&gt;suffix=$(date +%Y%m%d)&lt;/p&gt;
&lt;p&gt;rm /home/isux/backup/$suffix.sql.gz&lt;br /&gt;
mysqldump --user=bigcat --password=abcdefg --all-databases | gzip &amp;gt; /home/isux/backup/$suffix.sql.gz&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;30 4 * * 0 /home/isux/backup/code.sh&lt;/p&gt;
&lt;p&gt;每周日早上4点30分&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/#comments&quot;&gt;return 1&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/crontab/&quot; rel=&quot;tag&quot;&gt;crontab&lt;/a&gt;, &lt;a href=&quot;http://code.sh/tag/mysql/&quot; rel=&quot;tag&quot;&gt;MySQL&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596360/script/feedsky/s.gif?r=http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/feed/</wfw:commentRss><slash:comments>1</slash:comments><description>#!/bin/bash suffix=$(date +%Y%m%d) rm /home/isux/backup/$suffix.sql.gz mysqldump --user=bigcat --password=abcdefg --all-databases &amp;#124; gzip &amp;#62; /home/isux/backup/$suffix.sql.gz &amp;#160; &amp;#160; &amp;#160; 30 4 * * 0 /home/isux/backup/code.sh 每周日早上4点30分 © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; return 1 &amp;#124; (miao) Post tags: crontab, MySQL&lt;img src=&quot;http://www1.feedsky.com/t1/638596360/script/feedsky/s.gif?r=http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linux</category><category>crontab</category><category>MySQL</category><pubDate>Thu, 02 Jun 2011 22:38:07 +0800</pubDate><author>bigCat</author><comments>http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/#comments</comments><guid isPermaLink="false">http://code.sh/?p=283</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/linux/crontab-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e6%95%b0%e6%8d%ae%e5%ba%93/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596360/5356135</fs:itemid></item><item><title>PHP检测mod_rewrite</title><link>http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/</link><content:encoded>&lt;pre&gt;&lt;code&gt;&amp;lt;?php
function module_enabled($module){
$modules = apache_get_modules();
return in_array($module, $modules);
}
if(module_enabled(&quot;mod_rewrite&quot;)){
echo &quot;mod_rewrite enabled.&quot;;
}
?&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/mod_rewrite/&quot; rel=&quot;tag&quot;&gt;mod_rewrite&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596361/script/feedsky/s.gif?r=http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>&amp;#60;?php function module_enabled($module){ $modules = apache_get_modules(); return in_array($module, $modules); } if(module_enabled(&quot;mod_rewrite&quot;)){ echo &quot;mod_rewrite enabled.&quot;; } ?&amp;#62; © bigCat for 搞基百科, 2011. &amp;#124; Permalink &amp;#124; null &amp;#124; (miao) Post tags: mod_rewrite&lt;img src=&quot;http://www1.feedsky.com/t1/638596361/script/feedsky/s.gif?r=http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>mod_rewrite</category><category>PHP</category><pubDate>Thu, 26 May 2011 21:11:51 +0800</pubDate><author>bigCat</author><comments>http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/#comments</comments><guid isPermaLink="false">http://code.sh/?p=281</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/php/php%e6%a3%80%e6%b5%8bmod_rewrite/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596361/5356135</fs:itemid></item><item><title>placeholder</title><link>http://code.sh/js/placeholder/</link><content:encoded>&lt;pre&gt;&lt;code&gt;function placeholderSupport(){
var inp = document.createElement('input');
return 'placeholder' in inp;
}
if(!placeholderSupport()){
var inputId = document.getElementById('inputID');
var placeholderWords = 'plz write sth.';
inputId.setAttribute('value',placeholderWords);
inputId.className = 'inp_txt inp_nofocus';
inputId.onfocus = (function(){
if(this.value === placeholderWords){
this.value = '';
}
});
inputId.onblur = (function(){
if(this.value === ''){
this.value = placeholderWords;
}
});
}&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;© bigCat for &lt;a href=&quot;http://code.sh&quot;&gt;搞基百科&lt;/a&gt;, 2011. |
&lt;a href=&quot;http://code.sh/js/placeholder/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a href=&quot;http://code.sh/js/placeholder/#comments&quot;&gt;null&lt;/a&gt; | &lt;a href=&quot;http://miao.in&quot;&gt;(miao)&lt;/a&gt;
&lt;br/&gt;
Post tags: &lt;a href=&quot;http://code.sh/tag/placeholder/&quot; rel=&quot;tag&quot;&gt;placeholder&lt;/a&gt;&lt;br/&gt;
&lt;/small&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/638596362/script/feedsky/s.gif?r=http://code.sh/js/placeholder/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><wfw:commentRss>http://code.sh/js/placeholder/feed/</wfw:commentRss><slash:comments>0</slash:comments><description>function placeholderSupport(){ var inp = document.createElement('input'); return 'placeholder' in inp; } if(!placeholderSupport()){ var inputId = document.getElementById('inputID'); var placeholderWords = 'plz write sth.'; inputId.setAttribute('value',placeholderWords); inputId.className = 'inp_txt inp_nofocus'; inputId.onfocus = (function(){ if(this.value === placeholderWords){ this.value = ''; } }); inputId.onblur = (function(){ if(this.value === ''){ this.value = placeholderWords; } }); } © bigCat for 搞基百科, 2011. [...]&lt;img src=&quot;http://www1.feedsky.com/t1/638596362/script/feedsky/s.gif?r=http://code.sh/js/placeholder/&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>JavaScript</category><category>placeholder</category><pubDate>Wed, 25 May 2011 22:21:21 +0800</pubDate><author>bigCat</author><comments>http://code.sh/js/placeholder/#comments</comments><guid isPermaLink="false">http://code.sh/?p=280</guid><dc:creator>bigCat</dc:creator><fs:srclink>http://code.sh/js/placeholder/</fs:srclink><fs:srcfeed>http://code.sh/feed</fs:srcfeed><fs:itemid>feedsky/script/~7246705/638596362/5356135</fs:itemid></item></channel></rss>
