<?php xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0">
<channel>
<title><![CDATA[逸林轩]]></title>
<link>http://www.rainboww.net/home/</link>
<description><![CDATA[心中的那片杉林]]></description>
<language>utf-8</language>
<copyright><![CDATA[CopyRight 2006 F2Blog.com All Rights Reserved.]]></copyright>
<webMaster><![CDATA[wind(at)rainboww.net]]></webMaster>
<generator>F2blog 1.2 build 03.01</generator> 
<image>
	<title>逸林轩</title> 
	<url>http://www.rainboww.net/home/attachments/</url> 
	<link>http://www.rainboww.net/home/</link> 
	<description>逸林轩</description> 
</image>
<item>
	<link>http://www.rainboww.net/home/read-223.html</link>
	<title><![CDATA[Last Friday, with all the hurry]]></title>
	<author>风之逸</author>
	<category><![CDATA[工作碎语]]></category>
	<pubDate>2008-10-05 22:21</pubDate>
	<guid>http://www.rainboww.net/home/read-223.html</guid>	
	<description><![CDATA[Well, I can&#39;t claim it was a good day, even though I was on half day leave in the afternoon. Actually, that&#39;s one of the reason for not doing it well: I was&nbsp;in a&nbsp;hurry for&nbsp;the leave.<br />There were quite some stuff on the day, and it&#39;s better to look at it again, possibly finding a way to improve.<br />Things didn&#39;t work out well when the email about link migration was sent out. The plan inside was not what I expected. To make it worse, the field guy refused to do it, and boss asked me with another&nbsp;colleague&nbsp;to settle it with the engineer in charge. Apparently there was some ineffective communication in between about the migration. It turned out the key was 3rd switch is not ready for migration yet, but I thought it was. That&#39;s why the details sent out involves migration at two locations, which means tough job. This could be the direct reason to trigger the guy to refuse the plan, which I have no idea... <br />From this, i see two things. If my staff talks to me about it when he found the planned site to work on was not logical, it would be much better. I could find out the problem of 3rd switch not ready a lot easier, without going through the unnecessary confusion. Another thing is if the work order was not sent out but just sent to me first, there won&#39;t be such unpleasant reaction of refusal.<br />Still it&#39;s not end of story. My colleague settled with the engineer in charge, very fast. The conclusion was to postpone it, which means cancelling any migration work on that week. I don&#39;t feel this is the best solution, as it implies one empty week with no work done. There might be other alternatives, maybe we could work on other sites instead. But no choice, it&#39;s settled and we have to follow the agreement of postponing.<br />My understanding is it could be better. Those two if conditions would help so I will do that for next link&nbsp;migration. Another thing is should talk to my colleague about who are the engineers involved and what was the agreement last time, so that I would be able to make the contacts directly next time to settle problems. Anyway, it will be officially handed over to me.<br /><br />Another question, what was the hurry for? I wanted to buy phone cards and openning an stock market account. Apparently, buying phone cards were low priority. I should gave that up but rather focus more on job tasks..<br />It turned out I missed an urgent email in the afternoon. It was sent in the noon, but I never replied. It was just so impolite and I also felt bad. The lesson is.. don&#39;t hurry for unimportant stuff... Saving $2 for two months was trivial, and there should and will be better solutions.<br /><br />After reading through emails in the afternoon, I found out another big project is supposed to be handed over to me. Good, challenging work. Real time monitoring system is already&nbsp;implemented, I also don&#39;t want to make it &quot;million dollar white elephant&quot;.<br /><br />Well, it&#39;s good to sit down&nbsp;and think&nbsp;about stuff that&nbsp;happened, no matter good or bad. It will be better tomorrow, and I believe in it.]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-222.html</link>
	<title><![CDATA[原来越狱第四季已经出来6集了]]></title>
	<author>风之逸</author>
	<category><![CDATA[时间的碎片]]></category>
	<pubDate>2008-10-05 18:36</pubDate>
	<guid>http://www.rainboww.net/home/read-222.html</guid>	
	<description><![CDATA[<p>真的是。。。彻底火星了。今天听朋友提起，才恍知越狱第四季依然进行时。而且朋友的评价不错，说是比第三季紧凑的多剧情也不错。正愁Macross Frontier看完没东西可以放松消遣，于是赶紧去找了前两集看了一饱眼福。<br /><br />本来是想去伊甸园寻找下载，可惜前几集实在有些难找。一个高清的有360M之多，那要下到何年马月？后来试了试ppstream，居然速度奇快。高清的一点都不卡，可见在新加坡这玩意已经相当流行。。。哎，双面刃啊。不晓得是否可以由此推论我们的IPTV项目也是前途无限。<br /><br />返回Prison Break的话题，确实还是蛮有看头的。节奏掌握的不错，跟第一季相比不相上下。第四季应该会有所结论吧？这也很难讲了，这种连续剧大抵是有赚就拍了。其实结局未必重要了，有看头就行～<br />跟我一般火星的又一直有看完前三季的朋友，赶快去找来尝尝鲜吧。</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-214.html</link>
	<title><![CDATA[一句奇妙的css代码]]></title>
	<author>风之逸</author>
	<category><![CDATA[学海无边]]></category>
	<pubDate>2008-10-01 21:45</pubDate>
	<guid>http://www.rainboww.net/home/read-214.html</guid>	
	<description><![CDATA[改模板遇到的一个大问题就是firefox跟ie下浏览不一致。以前也发过一篇抱怨新的firefox3会把目前的模板下日历弄乱。<br />而且就这个问题我百思不得其解，因为我有见到别人用的模板不存在这个问题，就是说css是可以改到一致的。可是我怎么也弄不出来，而且发现当初跟程序一起的default模板就有这个问题了。也难怪大多f2blog模板都有此问题。<br /><br />今天仔细对比，发现在global.css里面有这么一句：<br /><pre class="html" name="code">
*{padding:0;margin:0}
</pre>就是这么简单一句，轻易解决了我的头疼难题！而且一下解决了2个，一石二鸟。<br />看来对于这两个标签不同的浏览器会有不同的默认值。于是直接先全部归为0，轻易的解决很多潜在问题。 <br /><br />很多事情，就是如此简单。。。]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-213.html</link>
	<title><![CDATA[升级到了FCKeditor 2.6.3]]></title>
	<author>风之逸</author>
	<category><![CDATA[f2blog]]></category>
	<pubDate>2008-10-01 21:21</pubDate>
	<guid>http://www.rainboww.net/home/read-213.html</guid>	
	<description><![CDATA[因为那时候使用SyntaxHighlighter遇到了困难，前几天尝试使用fckeditor来编辑文章。感觉确实很好用。于是稍微做了点研究，发现fckeditor的最新版本已经是2.6.3。在官方站上稍微体验了一下，很是喜欢office2003的风格皮肤。<br />稍作学习，要在f2blog上升级编辑器是相当容易的事情。下载了最新版后把无用的说明性文件跟语言包通通清理掉，然后根据喜好自行配置一下fckeditor，直接就可以使用了～<br />感觉用起来很舒服，生成的html代码也很简洁。截个图：<br /><img height="338" style="cursor:pointer;" onclick="open_img(&#39;http://www.rainboww.net/home/attachments/200810/5384412457.jpg&#39;)" alt="http://www.rainboww.net/home/attachments/200810/5384412457.jpg" width="480" src="http://www.rainboww.net/home/http://www.rainboww.net/home/attachments/200810/5384412457_f2s.jpg" /><br />我把宽度调成了80%，看起来有点别扭。呵呵，因为放100%的话实在有点太宽了。不过这个不重要啦，可以随意调整的。推荐一下，真的不错，而且自己动手从官方下载很有DIY的快乐。]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-212.html</link>
	<title><![CDATA[Macross Frontier 结局观感]]></title>
	<author>风之逸</author>
	<category><![CDATA[闲笔偶记]]></category>
	<pubDate>2008-10-01 19:05</pubDate>
	<guid>http://www.rainboww.net/home/read-212.html</guid>	
	<description><![CDATA[<p>在无聊的时候还是会去想找点东西来看，或是电影，动漫也可以。<br />记得还是室友推荐看这部Macross Frontier，说是战斗场面做的很爽。当时看了感觉不错，于是就一直看了下来。说起来，室友早在中途抛弃了这无聊的三角恋剧情了，呵呵。<br /><br />不过看到最后感觉这还是一部相当优秀的作品。虽然有造作的三角恋，还有时不时走形的画风，但优点还是远胜过缺陷了。<br /><img height="272" style="cursor:pointer;" onclick="open_img(&#39;http://www.rainboww.net/home/attachments/200810/0523394104.jpg&#39;)" alt="http://www.rainboww.net/home/attachments/200810/0523394104.jpg" width="480" src="http://www.rainboww.net/home/http://www.rainboww.net/home/attachments/200810/0523394104_f2s.jpg" /><br />最后的这一话大结局，看了也是很爽。最终Boss出来还是挺惊艳的，虽然出来了也就挂了。<br /><img height="272" style="cursor:pointer;" onclick="open_img(&#39;http://www.rainboww.net/home/attachments/200810/6736347561.jpg&#39;)" alt="http://www.rainboww.net/home/attachments/200810/6736347561.jpg" width="480" src="http://www.rainboww.net/home/http://www.rainboww.net/home/attachments/200810/6736347561_f2s.jpg" /><br />战斗的场面属于宏大型的，很有气势。而值得一提的是，音乐很棒。当然这也是Macross的一大特点了，通俗的概括就是&ldquo;唱歌打飞机&rdquo;。歌是这部作品的重要元素，也是一条主线贯穿其中。<br />可以说所有的音乐都是用心制作的精品，等官方发布出来了定要收藏一份。<br /><img height="272" style="cursor:pointer;" onclick="open_img(&#39;http://www.rainboww.net/home/attachments/200810/8689563733.jpg&#39;)" alt="http://www.rainboww.net/home/attachments/200810/8689563733.jpg" width="480" src="http://www.rainboww.net/home/http://www.rainboww.net/home/attachments/200810/8689563733_f2s.jpg" /><br /><br /><img height="272" style="cursor:pointer;" onclick="open_img(&#39;http://www.rainboww.net/home/attachments/200810/5087663514.jpg&#39;)" alt="http://www.rainboww.net/home/attachments/200810/5087663514.jpg" width="480" src="http://www.rainboww.net/home/http://www.rainboww.net/home/attachments/200810/5087663514_f2s.jpg" /><br />最后是大团圆结局，也没有解决那要命的三角恋问题。主角真是有福啊，左拥右抱的。<br />嗯，了解到Macross是很有历史的主题了，而这一部可以说包含了不少以前的元素。比如说天顶星人。瓦鸠拉是不是新概念不是很清楚，不过对这种生物的能力与交流设定很是让我觉得有新意。<br />所以说我对其构思愿意给个高分～<br />所以说有让人感觉一新的构思+优秀的音乐+精彩的战斗画面，推荐大家去看看吧～<br />不过其中所谓战争时代的爱情，略有些幼稚感，可以跳过。呵呵。<br />&nbsp;</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-211.html</link>
	<title><![CDATA[今日Hari Raya公共假日]]></title>
	<author>风之逸</author>
	<category><![CDATA[时间的碎片]]></category>
	<pubDate>2008-10-01 18:36</pubDate>
	<guid>http://www.rainboww.net/home/read-211.html</guid>	
	<description><![CDATA[在祖国生日的喜庆之日，我们也幸运的拿到了一天公共假日。今天则是马来族人的新年，我们虽然不相干却多少也能体会到一些欢庆的气氛。<br />最近不知如何突然对琢磨blog程序情绪高涨，于是对自己的小窝又做了些调整。很耗时间，又有些累，似乎这一周都有些生活不规律外加睡眠不足。谁叫我喜欢这些网络的应用呢。对我能有多少帮助，我就说不上了，不过兴趣大致如此吧。<br /><br />昨天算是工作上不错的一天，老板交代的任务顺利完成了。而且是初次去参与网络的troubleshooting，对技术知识也有不少长进。忙活了一下午，终于找出问题症结，然后匆忙间向老板汇报。成功达成目的，挺有喜悦的感觉。<br />嗯，还有很多的地方有待改进。希望能完成自己定下的目标，真正的承担起工作责任。<br /><br />下午实在觉得憋闷，就去附近的购物中心逛了一下。购买了一个鼠标垫，可以把手垫高的那种。最近经常编辑程式，鼠标用久就感觉手腕很不舒服。<br />转眼这一天就又是要结束了，嗯，看来我对f2的折腾也该告一段落了。明天，一样要认真的去生活。]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-210.html</link>
	<title><![CDATA[css代码的简化跟解读]]></title>
	<author>风之逸</author>
	<category><![CDATA[学海无边]]></category>
	<pubDate>2008-09-28 22:23</pubDate>
	<guid>http://www.rainboww.net/home/read-210.html</guid>	
	<description><![CDATA[在编写CSS代码的过程中，我们可以用简化的写法，这样提高效率。更重要的是在读别人写的代码的时候能明白到底什么意思。呵呵，今天又去爬了一篇网文，觉得很是收益。<br />以margin为例<br /><pre class="html" name="code">margin-top:1px;
margin-right:1px;
margin-bottom:1px;
margin-left:1px;
</pre>代码简化为： <pre class="html" name="code">margin:1px
</pre><pre class="html" name="code">margin-top:1px;
margin-right:2px;
margin-bottom:1px;
margin-left:2px;
</pre>代码简化为： <pre class="html" name="code">margin:1px 2px</pre><pre class="html" name="code">margin-top:1px;
margin-right:2px;
margin-bottom:3px;
margin-left:2px;
</pre>代码简化为： <pre class="html" name="code">margin:1px 2px 3px</pre><pre class="html" name="code">margin-top:1px;
margin-right:2px;
margin-bottom:3px;
margin-left:4px;
</pre>代码简化为： <pre class="html" name="code">margin:1px 2px 3px 4px</pre>当属性值是0的时候单位可以不写如：0px 直接就写成0　　 padding的书写方法和margin一样，在此就不多写了。　 然后是border <pre class="html" name="code">border-width:1px;
border-style:solid;
border-color:#000000;
</pre>代码简化为： <pre class="html" name="code">border:1px solid #000 </pre>background <pre class="html" name="code">background-color:#CCFFFF;
background-image:url(图片路径);
background-repeat:repeat-x;
background-position:5px 4px;
</pre>代码简化为： <pre class="html" name="code">background:#CFF url(图片路径)  repeat-x 5px 4px </pre>font <pre class="html" name="code">font-size:26px;
font-weight:bold;
font-family: “宋体”;</pre>代码简化为：<pre class="html" name="code">font:26px bold “宋体” </pre>color属性值 <pre class="html" name="code">color:#000000;
color:#ff0000;</pre>代码简化为：<pre class="html" name="code">color:#000, color:#f00</pre>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-209.html</link>
	<title><![CDATA[如何用SQL重新排序留言跟评论的id]]></title>
	<author>风之逸</author>
	<category><![CDATA[f2blog]]></category>
	<pubDate>2008-09-28 21:59</pubDate>
	<guid>http://www.rainboww.net/home/read-209.html</guid>	
	<description><![CDATA[起因是当时blog被垃圾评论肆虐，然后删除了很多无用的评论跟留言。<br />后来自己琢磨过滤器为何无效，重新开启这个功能之后基本上就控制住了评论机器人。<br />这样id就出现了很大一段空缺。因为根据MySQL auto intrement的设计，删除了之后的id是不会重新利用的。<br />于是就有了重新排序的想法。去网上爬文，发现有效也直接的就是删除这个field，然后再生成。<br />本机测试，确实有效。<br />自然我是以f2blog的数据结构作为例子啦。其他的理论上不是问题。<br />后来发觉还是有问题，分析一下发觉是comments表里面的parent field跟id有关联。于是就需要做点别的处理。<br />去网上参照了一篇文章，<br /><a href="http://www.bbstobbs.com/thread-16-1-1.html">http://www.bbstobbs.com/thread-16-1-1.html</a><br />然后基于自己SQL的一点基础，尝试性的写了一个SQL Script，有效～<br />代码如下，相信简单的修改后对别的blog数据结构也是可以应用的。<br />重新排序guestbook id:<br /><pre class="html" name="code">ALTER TABLE `f2blog_guestbook` ADD `oldid` int(8) NOT NULL;
update f2blog_guestbook set oldid=id;
ALTER TABLE `f2blog_guestbook` DROP `id`;
ALTER TABLE `f2blog_guestbook` ADD `id` int(8) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
update f2blog_guestbook p,f2blog_guestbook q set p.parent = q.id where p.parent=q.oldid;
ALTER TABLE `f2blog_guestbook` DROP `oldid`;
</pre>重新排序comments id:<br /><pre class="html" name="code">ALTER TABLE `f2blog_comments` ADD `oldid` int(9) NOT NULL;
update f2blog_comments set oldid=id;
ALTER TABLE `f2blog_comments` DROP `id`;
ALTER TABLE `f2blog_comments` ADD `id` int(9) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
update f2blog_comments p,f2blog_comments q set p.parent = q.id where p.parent=q.oldid;
ALTER TABLE `f2blog_comments` DROP `oldid`;
</pre>完成后要记得更新缓存的。然后，不是100%确定没有任何问题，所以欢迎指正。：）]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-208.html</link>
	<title><![CDATA[在Vista环境下架建Apache+PHP+MySQL测试环境]]></title>
	<author>风之逸</author>
	<category><![CDATA[学海无边]]></category>
	<pubDate>2008-09-28 21:43</pubDate>
	<guid>http://www.rainboww.net/home/read-208.html</guid>	
	<description><![CDATA[因为上次提到的缓存的原因，我在自己的机器上架建了PHP Http环境，用来测试跟调试自己的blog。<br />参照了一篇很棒的资源，我就不重复转帖了，地址如下：<br /><a href="http://www.444p.com/tutorial/php-setup/aid2626-vista_apache_php_mysql/">http://www.444p.com/tutorial/php-setup/aid2626-vista_apache_php_mysql/</a><br />我的电脑是Vista Ultimate系统的，看来如今vista的兼容性基本不是问题了。<br />按照教程里一步一步做，架设整个localhost只要不到2个小时就可完成。值得一提的是里面推荐的文件系统很整洁，一目了然。<br />建议按照里面推荐的文件结构安装，于将来的维护都是有益无害。<br /><br />我在架设完毕后出现了http 403 error. 花了蛮久去检查问题的原因。其实并不是教程有问题，只是有一步做的不够仔细。<br />其实教程里写的也略有不明白。<br />步骤5： 配置 Apache 和 PHP<br />5.1 找到<br /><pre class="html" name="code">DocumentRoot "xxxxxxx"</pre>改成你本机的网站内容的目录。例如我的：<br /><pre class="html" name="code">DocumentRoot "D:/WWW/Web/" </pre>注意：<font color="#ff6600">这里有不止一处需要修改</font>。查找<br /><pre class="html" name="code">DocumentRoot "</pre>字样应该会出现3处。我开始只修改了第一处，就出现了403 error,后来测试知道第三处也是必须要修改的。<br />所以，请留意这步。<br />然后后面的应该就该是一帆风顺了吧。安装完MySQL后设置下root的密码，再安装个phpmyadmin来管理数据库。<br />基本上就是个蛮完美的localserver了。<br />周末我做了不少测试，确实很棒的～]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-207.html</link>
	<title><![CDATA[关于f2blog内容过滤器无效的问题代码]]></title>
	<author>风之逸</author>
	<category><![CDATA[f2blog]]></category>
	<pubDate>2008-09-28 20:43</pubDate>
	<guid>http://www.rainboww.net/home/read-207.html</guid>	
	<description><![CDATA[这篇文章接续上次弄出来的补丁。<br /><a href="http://www.rainboww.net/home/read-157.html">http://www.rainboww.net/home/read-157.html</a><br />说起来上次还卖关子，实在羞愧，胡乱发出来个补丁包却不对问题的症结进行解释。<br />如今f2官网也无法访问，感觉很是凄凉，先不论f2前途会如何，作为热爱这个程式的用户，希望能有些许的贡献。<br /><br />正题。<br />出问题文件是 /include/function.php<br />内容过滤器无效的原因在这个replace_filter function, 代码如下：<br /><pre class="html" name="code">function replace_filter($content){
	include_once("cache/cache_filters.php");
	if (!empty($filtercache1) &amp;&amp; is_array($filtercache1)){
		foreach($filtercache1 as $value){
			if (strpos(";$content",$value)&gt;0){
				return $value;
			}
		}
	}
	if (!empty($filtercache4) &amp;&amp; is_array($filtercache4)){
		foreach($filtercache4 as $value){
			if (strpos(";$content",$value)&gt;0){
				return $value;
			}
		}
	}
	return "";
}
</pre><br />这个function写的并没有问题，当时为此也纳闷了半天。问题其实只是出在这一行：<br /><pre class="html" name="code">include_once("cache/cache_filters.php");
</pre><br />这个include_once会导致实际运行时候并不加载cache下面的cache_filters.php文件。所以等于没有任何filter，自然会无效了。<br />这就是问题的症结了。不过值得一提的是引号里面的写法也不够好，相对路径可能会造成问题。最好写全，其实程序里很多地方是写全路径了的，但也有很多地方没有，因为不同的作者在维护吧。其实就我测试过程中，并未遇到问题。<br />所以改成如下，就好了：<br /><pre class="html" name="code">include(F2BLOG_ROOT."./cache/cache_filters.php");
</pre><br />然后上次那个补丁包里还有其他文件，只是修改了相对路径去完整写法。可以不必理会。<br />虽然只是一行，其实当时寻找问题的过程很是有趣。<br />尤其是最终察觉无论怎么改那个function,都没有filter的内容被加载，才恍然大悟是include出了问题。]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-206.html</link>
	<title><![CDATA[F1开跑了]]></title>
	<author>风之逸</author>
	<category><![CDATA[时间的碎片]]></category>
	<pubDate>2008-09-28 19:41</pubDate>
	<guid>http://www.rainboww.net/home/read-206.html</guid>	
	<description><![CDATA[<p>虽然没有到现场，只是在家看看电视的转播，但依然可以感受到那无法抗拒的激情。<br /> 我开过极品飞车9，体会过速度给人的振奋跟快感。让全球瞩目的夜间赛事，确实很精彩！<br /> 而且F1讲究的不只是技术跟车子，更多的是团队合作。<br /> 在赛道上急速奔驰过终点胜利的那一刻，是整个队伍欢心鼓舞的一刻，<br /> 世界在奔驰，我们都渴望的极速！<br /> <br /> 值得一提的是，这个赛事主办单位之一就是SingTel哦。</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-205.html</link>
	<title><![CDATA[SQL 更换blog用户名]]></title>
	<author>风之逸</author>
	<category><![CDATA[学海无边]]></category>
	<pubDate>2008-09-27 23:01</pubDate>
	<guid>http://www.rainboww.net/home/read-205.html</guid>	
	<description><![CDATA[一个小技巧，呵呵 简单的一句SQL,就可以批量更换blog表中的用户名。句法如下：<br />
<pre class="html" name="code">UPDATE `table_name` SET `field` = REPLACE(`field`,&quot;from_name&quot;,&quot;to_name&quot;);
</pre>
<br />我们以f2blog为例吧，比如想更换整个blog中作者&#39;admin&#39;去&#39;webadmin&#39;,可以对几个表执行这个语句即可。<br />假设表前缀为f2blog_<br />
<pre class="html" name="code">UPDATE `f2blog_members` SET `username` = REPLACE(`username`,&quot;admin&quot;,&quot;webadmin&quot;);
UPDATE `f2blog_comments` SET `author` = REPLACE(`author`,&quot;admin&quot;,&quot;webadmin&quot;);
UPDATE `f2blog_guestbook` SET `author` = REPLACE(`author`,&quot;admin&quot;,&quot;webadmin&quot;);
UPDATE `f2blog_logs` SET `author` = REPLACE(`author`,&quot;admin&quot;,&quot;webadmin&quot;);
</pre>
<br />在phpmyadmin中运行这几句SQL即大功告成了。]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-204.html</link>
	<title><![CDATA[服务器缓存 拒绝频繁的变化]]></title>
	<author>风之逸</author>
	<category><![CDATA[网络手记]]></category>
	<pubDate>2008-09-27 19:51</pubDate>
	<guid>http://www.rainboww.net/home/read-204.html</guid>	
	<description><![CDATA[<p>昨天测试Syntax Highlighter的时候被郁闷了，因为发现编辑器必然会或多或少的处理并修改代码（所谓优化）。然后我输进去的html就被改得一塌糊涂，发出来完全不对。</p> <p>于是我去修改fckeditor的配置文件，可是无论怎么修改，什么效果都没有。我很纳闷，后来才发觉是哪里缓存了这个配置文件。因为后来想修改皮肤，也是遇到一样情况。我修改了皮肤的css文件之后，又是看不出效果，果然又是被缓存了。可是这缓存到底在哪里，我也琢磨不透。我换浏览器试过了，证实缓存不在本机，那么就可能是1.RG, 2.ISP的缓存。我知道SingNet那边是有缓存的，不过是否确实因为它，我也说不清。。。</p> <p>总之这不是个办法。不然我改点什么也看不出效果，如何去测试。于是一下午都在测试在本机架建一个apache+mysql+php的环境。基本上是搞定了，看来目前vista的兼容已经没什么问题。真是累啊，等下完整的把blog克隆到本机，以后的调试就方便多了。</p> <p>然后。。。我在用Windows Live Writer, 看看能否成功发布。OK的话写blog就方便很多了。</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-203.html</link>
	<title><![CDATA[代码高亮 SyntaxHighlighter 如何应用在blog中]]></title>
	<author>风之逸</author>
	<category><![CDATA[f2blog]]></category>
	<pubDate>2008-09-27 00:53</pubDate>
	<guid>http://www.rainboww.net/home/read-203.html</guid>	
	<description><![CDATA[<p>看来是捣鼓成功了。相信有朋友会想用上自己的blog,我就把如何应用写出来吧。</p>
<p>首先这是个开源的项目，地址在这里：<a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a><br />里面有介绍。属于google code项目的一部分。<br />那么就开始介绍如何使用，顺便测试下代码的效果。</p>
<p>首先，下载它的那个应用包。地址在上面的链接里有，目前版本1.5.1，以下所有讨论都以这个版本为准。<br />下载后解压，<br />会有3个文件夹。我们把&quot;Uncompressed&quot;删掉，把&quot;Scripts&quot;改为&quot;js&quot;,把Styles改为&quot;css&quot;。</p>
<p>然后把这整个文件夹改名为&quot;SyntaxHighlighter&quot;并上传到blog根目录下。这部分完毕。</p>
<p>下面需要在blog页面里加入javascript的html代码，根据情况而定。<br />以f2blog为例，找出blog根目录下footer.php，编辑它（我使用的emeditor)，<br />找到这一行：<br /><br /></p>
<pre class="html" name="code">&lt;/body&gt;</pre>
<br />在它前面塞入以下代码：<br />
<pre class="html" name="code">&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;SyntaxHighlighter/css/SyntaxHighlighter.css&quot;&gt;
&lt;/link&gt;
&lt;script language=&quot;javascript&quot; src=&quot;SyntaxHighlighter/js/shCore.js&quot;&gt;
&lt;/script&gt;
&lt;script language=&quot;javascript&quot; src=&quot;SyntaxHighlighter/js/shBrushCSharp.js&quot;&gt;
&lt;/script&gt;
&lt;script language=&quot;javascript&quot; src=&quot;SyntaxHighlighter/js/shBrushXml.js&quot;&gt;
&lt;/script&gt;
&lt;script language=&quot;javascript&quot;&gt;
dp.SyntaxHighlighter.ClipboardSwf = &#39;SyntaxHighlighter/js/clipboard.swf&#39;;
dp.SyntaxHighlighter.HighlightAll(&#39;code&#39;);
&lt;/script&gt;
</pre>
<p><br />保存并上传。准备工作完毕。可以使用了。 </p>
<p>然后去后台写日志，需要编辑html代码，<br />在你想用这个插件高亮代码的地方用以下代码：</p>
<pre class="html" name="code">&lt;textarea name=&quot;code&quot; class=&quot;c#&quot; cols=&quot;60&quot; rows=&quot;10&quot;&gt;
... some code here ...
&lt;/textarea&gt;
</pre>
<br />
<p>&nbsp;name=&quot;code&quot; 是必需的，然后class=&quot;c#&quot;可以自己调整，根据你写的代码是什么，<br />这里有个对照表：<a href="http://code.google.com/p/syntaxhighlighter/wiki/Languages">http://code.google.com/p/syntaxhighlighter/wiki/Languages</a><br />就完毕了。根据介绍，用textarea的标签好处是不必担心一个特殊符号的问题。就是这个&amp;lt。<br />是否如此，等我发出这篇文章就知道了。</p>
<p>值得一提的是，f2blog的默认tinyeditor会自动简化代码，很头疼。所以我在用ubb模式发文章。<br />总体的原理很简单，就是个第三方js，然后以javascript代码插入页面里调用就行了。效果嘛，自然是相当不错了，呵呵。</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-202.html</link>
	<title><![CDATA[SyntaxHighlighter]]></title>
	<author>风之逸</author>
	<category><![CDATA[学海无边]]></category>
	<pubDate>2008-09-27 00:20</pubDate>
	<guid>http://www.rainboww.net/home/read-202.html</guid>	
	<description><![CDATA[<p>在别人blog上看到这个东西，感觉很好用的样子，效果也不错。<br /> 尝试一下，短短的几行代码，可以起到效果吗？</p><pre name="code" class="c-sharp">... some code here ...</pre><p>另外一种写法，textarea标签</P><textarea name="code" class="c#" cols="60" rows="10">... some code here ...</textarea>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-201.html</link>
	<title><![CDATA[新网域名的whois怎么了]]></title>
	<author>风之逸</author>
	<category><![CDATA[网络手记]]></category>
	<pubDate>2008-09-25 16:48</pubDate>
	<guid>http://www.rainboww.net/home/read-201.html</guid>	
	<description><![CDATA[<p>已经有蛮久一段时间了（至少一个多月），查询我的域名的whois信息就是看不到。去paycenter.com.cn查询一样结果，等半天之后就网页死掉。今日实在忍不住去google一下，看来确实有这样的情况发生，而且是普遍的。<br /> 转摘自网上，结论有如下：<br /> 1、新网数码屏蔽了whois信息,严重违反icann的规定.<br /> 2、新网数码的域名系统技术不行，无法对外提供whois信息<br /> 无论是哪种，都只有送它个臭鸡蛋。而且更有甚者，发现一篇文章讲述新网的操作不够安全，一张假身份证冒领了别人一个代理的所有域名。寒了，如果真是如此，拜托想办法改进一下吧！</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-200.html</link>
	<title><![CDATA[谁去做谁的事]]></title>
	<author>风之逸</author>
	<category><![CDATA[工作碎语]]></category>
	<pubDate>2008-09-24 21:35</pubDate>
	<guid>http://www.rainboww.net/home/read-200.html</guid>	
	<description><![CDATA[<p>似乎最近都被这样无聊的问题纠缠，从生活到工作，都是如此。从生活看很烦，从工作看很累心，再看看中国的奶粉跟牛奶，我很是怀疑是否真的有答案？</p><p>时间终究无法解决这样的问题，如果可以，我还是想去改变一些事情。这些，都是成长必然经历的吧。</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-199.html</link>
	<title><![CDATA[Google Chrome 出手不凡？]]></title>
	<author>风之逸</author>
	<category><![CDATA[网络手记]]></category>
	<pubDate>2008-09-04 19:26</pubDate>
	<guid>http://www.rainboww.net/home/read-199.html</guid>	
	<description><![CDATA[<p>今天安装了尝试着使用了一下，总体感觉很清爽，设置也很直白，界面使用了vista的风格，简洁也漂亮。作为普通的使用者，我还是愿意给她打个高分的。使用的时候想设置proxy,发现转去了IE的设置界面。感觉这次的版本对微软的态度很暖味啊，呵呵。</p><p>然后校内上看到朋友提起Chrome里面很多有趣的中文，比如说你要卸载的时候，输错网址的时候，云云。所以说，这次发布的版本有很随意的感觉。在浏览器这样一个激烈的竞争环境中，Chrome的出场似乎有点俏皮。不过，策略不是我们能随意揣测的了～</p><p>看来Google真的是势不可挡，我现在用着他的拼音输入法，跟金山合作的谷歌金山辞典，还有他的搜索，以及遍地都是的IE工具条，Gmail, Google Analytics, 现在又出来了Chrome浏览器。也难怪微软会忌惮，已经一家独大了。</p><p>于用户，我们又会关心什么呢？既然都是免费的，好用就行了呗。。</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-198.html</link>
	<title><![CDATA[BBC Wild China]]></title>
	<author>风之逸</author>
	<category><![CDATA[七彩的脚印]]></category>
	<pubDate>2008-09-02 22:01</pubDate>
	<guid>http://www.rainboww.net/home/read-198.html</guid>	
	<description><![CDATA[<p>今天看完了第六章，讲述候鸟的迁移和中国的沿海。太棒了，强烈推荐这一套BBC制作的专题。说实话，里面的许多场景都是我第一次见到，比如天空俯视梯田的壮观，哈尔滨冰城的色彩斑斓跟难以置信，九寨沟清澈水底的鱼群，南岛湿地候鸟群的铺天盖地，南海底部奇幻的海底生态，长白山天池的转瞬即变，春节传统风俗里长龙灯的奇舞，还有西藏贫瘠地貌上的广袤蓝天跟奇妙生物。一切的一切，我们应该去了解这片伟大的土地，这让世界震撼的地貌风俗还有历史的融合体，这足以让我们引以为豪的神州！</p><p>"BBC Wild China", 《美丽中国》，去P2P吧，去TLF找吧！</p>]]></description>
</item>
<item>
	<link>http://www.rainboww.net/home/read-197.html</link>
	<title><![CDATA[提早的雨季]]></title>
	<author>风之逸</author>
	<category><![CDATA[时间的碎片]]></category>
	<pubDate>2008-09-02 19:40</pubDate>
	<guid>http://www.rainboww.net/home/read-197.html</guid>	
	<description><![CDATA[<p>这个时节本来并没有这样多雨的。</p><p>傍晚时候看到天上密云集结，很快就是倾盆大雨落将下来。一片雨帘跟水雾之间，我可以安然的呆在房间里。这样的感觉似乎已经很久未曾体验，打开窗户，让湿润的空气透进来，我可以感觉到一点平静。短暂的也是珍贵的。 雨季在不经意间来到了呢。不知不觉，似乎也没有了以往的惊雷，只是很纯粹的雨，洗刷着，然后停下来，一切都透出清新的气味。 平常，应该都在公司里对外面一无所觉的吧，只等到走出大楼的时候，才觉察尚未干透的空气跟枝头的水滴。</p><p>如雨帘般，面对的也是充满未知跟困难。得知一点吃惊的消息，也明白挑战的不易。优秀还是愚钝，我们面对的可能真的只是自己罢了。怎样去生活，是命运还是选择呢，不过我更想去关注的，还是态度两字。于现在的我，重要的是去做吧。打开itunes 去听久藏的老歌，继续这一天的休息，感觉尽情的舒展。这样，可以饱满的去迎接明日的阳光。</p>]]></description>
</item>
</channel>
</rss>