<?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>Azone's Blog</title>
	<atom:link href="http://www.firestudio.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.firestudio.cn</link>
	<description>Write the things I interested!</description>
	<lastBuildDate>Mon, 28 Jun 2010 06:27:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>批量重命名文件</title>
		<link>http://www.firestudio.cn/2010/06/28/170.html</link>
		<comments>http://www.firestudio.cn/2010/06/28/170.html#comments</comments>
		<pubDate>Mon, 28 Jun 2010 06:27:30 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=170</guid>
		<description><![CDATA[有时需要对大量文件进行重命名：如把所有.jpe文件后缀改名为.jpg文件等等。多数Windows/DOS用户可能都习惯了DOS中ren命令的使用方法： ren *.jpe *.jpg 在Linux中没有ren命令，mv命令也不支持这种使用方法，这使得不少用户误以为Linux没有批量重命名文件的功能。实际上并非如此，rename命令不仅可以轻松实现这一功能，而且还支持更为复杂的重命名操作。 rename 在多数系统中，rename是一个Perl脚本，rename的使用也支持Perl的正则表达式。 rename的基本语法是 rename perl表达式 文件名 perl表达式用于修改文件名，如s开头的串表示替换。 举几个比较实用的例子： # 删除所有的.bak后缀： rename 's/\.bak$//' *.bak   # 把.jpe文件后缀修改为.jpg： rename 's/\.jpe$/\.jpg/' *.jpe   # 把文件名改为小写： rename 'y/A-Z/a-z/' * 原文：http://www.linux-wiki.cn/index.php/%E6%89%B9%E9%87%8F%E9%87%8D%E5%91%BD%E5%90%8D%E6%96%87%E4%BB%B6]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/06/28/170.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>通过数组方式访问PHP对象属性</title>
		<link>http://www.firestudio.cn/2010/05/21/162.html</link>
		<comments>http://www.firestudio.cn/2010/05/21/162.html#comments</comments>
		<pubDate>Fri, 21 May 2010 03:59:49 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[PHP编程]]></category>
		<category><![CDATA[应用技巧]]></category>
		<category><![CDATA[ArrayAcces]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php数组访问对象]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=162</guid>
		<description><![CDATA[以前看到过新版本的Symfony的Form文档，在类中可以通过$this['key']的方法来访问当前对象中的widgets，我一直很诧异，为什么可以这样用呢？我试验过很多方法都没成功，今天终于找到答案了。 方法其实很简单，需要在类中继承PHP预定义接口ArrayAccess，并且包含offsetGet, offsetSet, offsetExists和offsetUnset四个方法就可以实现上述功能了。下面来举个例子： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 &#60; ?php class test implements ArrayAccess &#123; private $_result = array&#40;'name' =&#62; 'Yozone', 'age' =&#62; '24'&#41;; public function [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/05/21/162.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 个 cd 命令小帖示</title>
		<link>http://www.firestudio.cn/2010/04/30/159.html</link>
		<comments>http://www.firestudio.cn/2010/04/30/159.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 02:37:39 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[linux，命令行]]></category>
		<category><![CDATA[命令行]]></category>
		<category><![CDATA[小贴士]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=159</guid>
		<description><![CDATA[cd 是 Linux 命令行下最常用的命令之一。但是你真的了解 cd 命令的所有用法吗？我将在本文中向你介绍几个本人常用的 cd 命令小帖示，它们可以让你提高操作效率。 cd 不带任何参数，直接执行 cd 命令，这将转到你的 home 目录。其效果和 cd ~ 相同。 cd - 在 cd 命令后跟一个短横线，将转到你上一次访问的目录。这跟 cd .. 不同，后者将转到上一层目录。 cd ~user 这条命令和 cd ~ 很相似，不过它是转到 user 的 home 目录。 cd old new 该 cd 命令带两个参数，其作用是将上次所执行 cd 命令中的 old 替换成 new 并予以执行。比如我先前 cd 到 /usr/bin 目录，现在我想 cd 到 /opt/bin 目录，则可以执行： [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/04/30/159.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用Nginx或者Apache和PHP配合将网页变成黑白版</title>
		<link>http://www.firestudio.cn/2010/04/21/151.html</link>
		<comments>http://www.firestudio.cn/2010/04/21/151.html#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:52:26 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[PHP编程]]></category>
		<category><![CDATA[应用技巧]]></category>
		<category><![CDATA[网页相关]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[网页灰色]]></category>
		<category><![CDATA[黑白网页]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=151</guid>
		<description><![CDATA[今天看到很多网站的网页都变成灰色了，很多是使用了IE的滤镜，但是在非IE下就失效了，有的用的是另做的一套黑白图片实现网页的黑白版，这样显得又太麻烦。 记得前一段时间看到老外的一篇利用Apache的mod_rewrite模块和php结合实现网站图片水印的文章，今天受到此文章的启发我就想能不能利用同样的原理来实现将网站的所有图片都变成黑白的呢？经过今天的实验，我成功了！证明我的想法是正确的！下面就介绍一下如何利用apache或者nginx与php的结合来实现黑白版的网页。 首先修改网站的apache配置文件（.htaccess也行）或者nginx的配置文件： Apache： RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule \.(gif&#124;jpeg&#124;jpg&#124;png)$ img_to_black_write.php [QSA,NC] Nginx（在server中加入）: if (!-f $request_filename) { rewrite ^(.*)\.(jpg&#124;png&#124;gif)$ /img_to_black_write.php; } 这里是img_to_black_write.php的代码 &#38;lt; ?php $file = $_SERVER&#91;'DOCUMENT_ROOT'&#93; . $_SERVER&#91;'REQUEST_URI'&#93;; $im = imagecreatefromstring&#40;file_get_contents&#40;$file&#41;&#41;; if &#40;imageistruecolor&#40;$im&#41;&#41; &#123; imagetruecolortopalette&#40;$im, true, 256&#41;; &#125; $total_colors = imagecolorstotal&#40;$im&#41;; &#160; for &#40;$i = 0; $i &#38;lt; $total_colors; $i++&#41;&#123; $rgb = imagecolorsforindex&#40;$im, [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/04/21/151.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 个最酷的 Linux 单行命令</title>
		<link>http://www.firestudio.cn/2010/03/24/149.html</link>
		<comments>http://www.firestudio.cn/2010/03/24/149.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 09:42:30 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[命令行]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=149</guid>
		<description><![CDATA[下面是来自 Commandlinefu 网站由用户投票决出的 10 个最酷的 Linux 单行命令，希望对你有用。 sudo !! 以 root 帐户执行上一条命令。 python -m SimpleHTTPServer 利用 Python 搭建一个简单的 Web 服务器，可通过 http://$HOSTNAME:8000 访问。 :w !sudo tee % 在 Vim 中无需权限保存编辑的文件。 cd - 更改到上一次访问的目录。 ^foo^bar 将上一条命令中的 foo 替换为 bar，并执行。 cp filename{,.bak} 快速备份或复制文件。 mtr google.com traceroute + ping。 !whatever:p 搜索命令历史，但不执行。 $ssh-copy-id user@host 将 ssh keys 复制到 user@host 以启用无密码 [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/03/24/149.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wubi安装ubuntu 9.10或者升级内核后无法进入系统的解决方法</title>
		<link>http://www.firestudio.cn/2010/02/09/143.html</link>
		<comments>http://www.firestudio.cn/2010/02/09/143.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:30:52 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>
		<category><![CDATA[Wubi]]></category>
		<category><![CDATA[升级]]></category>
		<category><![CDATA[启动]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[系统]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=143</guid>
		<description><![CDATA[今天用Wubi在我的上网本上安装了Ubuntu 9.10，正在我高兴的时候发现我进不了系统了，只停留在sh:grub&#62;的画面，在网上搜到了这边文章，与大家分享以下： 今天早上开始摆弄起自己用wubi安装的linux ubuntu 9.10系统，在查找更新中看到内核升级到2.31-17了，我就选择更新，但在更新过程终有一个任务一直没有完成更新，我就直接按“Ctrl+C”给取消了，当我在重启系统时就遇到GRUB黑屏问题了。 屏幕上显示： GNU GRUB version 1.97~bea4 &#91;minimal BASH-like lin editing is supported For the first word,TAB licts possible command completions Anywhere elso TAB lists possible device/file completions&#93; sh:grub&#62;（光标，让你输入东西） 按下TAB后 Possible commands are: &#91;badram boot cat chainloader configfile cupid dump echo exit export halt help initrd insmod linux list_env load _env loopback [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/02/09/143.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>机器人也会《Nobody》</title>
		<link>http://www.firestudio.cn/2010/01/22/139.html</link>
		<comments>http://www.firestudio.cn/2010/01/22/139.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 02:15:40 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[杂谈]]></category>
		<category><![CDATA[轻松时刻]]></category>
		<category><![CDATA[Nobody]]></category>
		<category><![CDATA[机器人]]></category>
		<category><![CDATA[热潮]]></category>
		<category><![CDATA[舞曲]]></category>
		<category><![CDATA[舞步]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=139</guid>
		<description><![CDATA[一首韩国舞曲《Nobody》引发了《Nobody》的模仿热潮。相信你也会喜欢这首舞曲的迷人旋律和那动人的舞步吧。这不，连机器人都忍不住要跳起了《Nobody》…… 来源：http://tech.weiphone.com/2010-01-21/Robots_will_be_Nobody_211141.shtml]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/01/22/139.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox下javascript函数参数的怪异问题～～</title>
		<link>http://www.firestudio.cn/2010/01/20/135.html</link>
		<comments>http://www.firestudio.cn/2010/01/20/135.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:10:21 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[arguments]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Weirdness]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[参数]]></category>
		<category><![CDATA[火狐]]></category>
		<category><![CDATA[问题]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=135</guid>
		<description><![CDATA[今天由于要解决某个问题写了一个javascript函数，其中可能要向函数传递一个参数，但是测试了很久明明是没传参数进去，但是函数内部却显示有参数传入。。。，我甚是郁闷，下面我把会产生问题的代码向大家公布以下： function testArgs&#40;arg&#41; &#123; //弹出传入参数的类型和值 alert&#40;typeof arg + ': ' + arg&#41;; &#125; &#160; window.onload = function&#40;&#41; &#123; //2秒调用一次testArgs函数 setInterval&#40;testArgs, 2000&#41;; &#125; 大家可能不会想到，这段代码弹出的为&#8221;number: -1&#8243;这一类的信息，怎么？难道不是&#8221;undefined: undefined&#8221;吗？这可能算是Firefox的bug，呵呵，今天被我发现了。。 上面的代码经过稍微改进后就可以正常工作了： function testArgs&#40;arg&#41; &#123; //弹出传入参数的类型和值 alert&#40;typeof arg + ': ' + arg&#41;; &#125; &#160; window.onload = function&#40;&#41; &#123; //2秒调用一次testArgs函数 setInterval&#40;'testArgs()', 2000&#41;; &#125; 这个不知道是什么原因，如果是bug的话希望Firefox能尽快解决。。。]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/01/20/135.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Jquery实现禁用鼠标右键</title>
		<link>http://www.firestudio.cn/2009/12/31/133.html</link>
		<comments>http://www.firestudio.cn/2009/12/31/133.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 06:19:11 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[应用技巧]]></category>
		<category><![CDATA[网页相关]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/2009/12/31/133.html</guid>
		<description><![CDATA[我们有时会需要在网站的某个页面禁用右键，甚至构建个性化右键菜单，在Jquery中可以用下面代码实现： $&#40;document&#41;.bind&#40;&#34;contextmenu&#34;,function&#40;e&#41;&#123; //在这里书写代码，构建个性右键化菜单 &#160; //取消默认的右键菜单 return false; &#125;&#41;; 来源：http://css9.net/jquery-forbidden-right-click/]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2009/12/31/133.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过CSS改变网页被选文本的背景色和前景色</title>
		<link>http://www.firestudio.cn/2009/12/30/129.html</link>
		<comments>http://www.firestudio.cn/2009/12/30/129.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 07:49:46 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[应用技巧]]></category>
		<category><![CDATA[网页相关]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=129</guid>
		<description><![CDATA[下面是将所选文本的背景色变成红色，文字变成白色： 1 2 3 4 5 6 7 8 9 10 11 /* Firefox */ ::-moz-selection&#123; background:#FF0000; color:#FFF; &#125; &#160; /* Safari */ ::selection &#123; background:#FF0000; color:#FFF; &#125;]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2009/12/30/129.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
