<?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>残酷の青春 &#187; 技术</title>
	<atom:link href="http://www.cruelyouth.com/subjects/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cruelyouth.com</link>
	<description>journey continues</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:33:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>red5教程</title>
		<link>http://www.cruelyouth.com/2010/07/05/red5%e6%95%99%e7%a8%8b/</link>
		<comments>http://www.cruelyouth.com/2010/07/05/red5%e6%95%99%e7%a8%8b/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 09:58:02 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[FLEX & ACTION SCRIPT]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=250</guid>
		<description><![CDATA[版权声明：转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://vsheyan.blogbus.com/logs/46456225.html
公司今天需要装一台RED5的服务器用来开发程序。发现RED5的0.6已经正式放出，以前我写过一篇关于用SVN进行抽取，然后建立RED5项目的文 章。而对于一般的开发者来说，不需要去修改RED5本身的程序，只需要建立自己的应用程序就可以了。现在把建立过程记录下来，希望对各位有所帮助。本文适 合第一次接触RED5（WIN平台下），而不知道如何开始建立自己的应用程序的用户。
流程：
1.下载最新版本的RED5 http://osflash.org/red5
2.安装RED5，注意在安装RED5前要先安装好JRE，安装RED5的时候会要求指定JRE的目录的。
3.到RED5的安装目录，找到doc/templates目录，该目录中存放了一个标准的RED5应用程序模版myapp，将其复制到RED5安装目录 中的webapps目录下，并改名为你喜欢的文件夹名，比如你要开发一个聊天的程序，那么可以把myapp改为myChat，这个名字就是以后你要连接的 服务名了。
4.在WEB-INF中新建一个文件夹src用来存放程序的源代码，新建一个classes文件夹用来存放编译后的文件。
5.打开Eclipse，将工作区指定为RED5安装目录下webapps，然后新建一个项目，项目名为myChat.这个时候你应该发现刚才 myChat中的文件都被加载进来了,我们首先把src目录指定为源代码目录，右键选择src,在弹出的菜单中选择Build Path->Use as Source Folder，即将其指定为代码文件夹。接下来要指定项目的目标目录，在项目名上右键选择Properties，选择Java Bulid Path,在选择Source标签，在下面的Browse中选择Classes目录，将其指定为目标目录。然后选择Libraries，点击Add External JARs，将RED5安装目录下的red5.jar包含进来。
6.这个时候，在Eclipse的左边应该多了WEB-INF/src这样一个东东，我们将要在这里开始写入我们的第一个项目代码。右键选择它，在弹出的 菜单中选择New->Package，新建一个包，举例，包名可以为org.d5.first，然后再在生成的org.d5.first这个包上继 续右键选择New->File,输入文件名Application.java。并在建好的文件中输入以下代码：
package org.d5.first;
import org.red5.server.adapter.ApplicationAdapter;
public class Application extends ApplicationAdapter {
public String login(){
return &#8220;Welcome to Chat Servers&#8221;;
}
}
7.进行配置。编辑WEB-INF下的red5-web.xml,找到bean id=”web.handler”一句，将class=”XXX”中的XXX位置修改为org.d5.first.Application，这样本程序将 以刚才写的Application来运行。删除后面的bean id=”server.handler…整句，因为我们暂时用不到这个东东。编辑web.xml，找到webAppRootKey，将其下面的 param-value标签中的值修改为/myChat。编辑red5-web.properties，将第一句修改为 webapp.contextPath=/myChat
8.编译项目
9.重新启动RED5服务器
10.在FLASH中新建一个文件，输入以下代码：
import flash.net.NetConnection;
import flash.net.Responder;
var responder:Responder = new Responder(chat);
var nc:NetConnection = new NetConnection();
nc.connect(&#8220;rtmp://localhost/mytest&#8221;);
nc.addEventListener(NetStatusEvent.NET_STATUS,statusHandler);
function chat(obj:Object):void{
    trace(obj);
}
function statusHandler(event:NetStatusEvent):void
{
    trace(event.info.code);
 [...]]]></description>
			<content:encoded><![CDATA[<p>版权声明：转载时请以超链接形式标明文章原始出处和作者信息及本声明</p>
<p>http://vsheyan.blogbus.com/logs/46456225.html</p>
<p>公司今天需要装一台RED5的服务器用来开发程序。发现RED5的0.6已经正式放出，以前我写过一篇关于用SVN进行抽取，然后建立RED5项目的文 章。而对于一般的开发者来说，不需要去修改RED5本身的程序，只需要建立自己的应用程序就可以了。现在把建立过程记录下来，希望对各位有所帮助。本文适 合第一次接触RED5（WIN平台下），而不知道如何开始建立自己的应用程序的用户。</p>
<p>流程：</p>
<p>1.下载最新版本的RED5 http://osflash.org/red5</p>
<p>2.安装RED5，注意在安装RED5前要先安装好JRE，安装RED5的时候会要求指定JRE的目录的。</p>
<p>3.到RED5的安装目录，找到doc/templates目录，该目录中存放了一个标准的RED5应用程序模版myapp，将其复制到RED5安装目录 中的webapps目录下，并改名为你喜欢的文件夹名，比如你要开发一个聊天的程序，那么可以把myapp改为myChat，这个名字就是以后你要连接的 服务名了。</p>
<p>4.在WEB-INF中新建一个文件夹src用来存放程序的源代码，新建一个classes文件夹用来存放编译后的文件。</p>
<p>5.打开Eclipse，将工作区指定为RED5安装目录下webapps，然后新建一个项目，项目名为myChat.这个时候你应该发现刚才 myChat中的文件都被加载进来了,我们首先把src目录指定为源代码目录，右键选择src,在弹出的菜单中选择Build Path->Use as Source Folder，即将其指定为代码文件夹。接下来要指定项目的目标目录，在项目名上右键选择Properties，选择Java Bulid Path,在选择Source标签，在下面的Browse中选择Classes目录，将其指定为目标目录。然后选择Libraries，点击Add External JARs，将RED5安装目录下的red5.jar包含进来。</p>
<p>6.这个时候，在Eclipse的左边应该多了WEB-INF/src这样一个东东，我们将要在这里开始写入我们的第一个项目代码。右键选择它，在弹出的 菜单中选择New->Package，新建一个包，举例，包名可以为org.d5.first，然后再在生成的org.d5.first这个包上继 续右键选择New->File,输入文件名Application.java。并在建好的文件中输入以下代码：</p>
<p>package org.d5.first;</p>
<p>import org.red5.server.adapter.ApplicationAdapter;</p>
<p>public class Application extends ApplicationAdapter {</p>
<p>public String login(){<br />
return &#8220;Welcome to Chat Servers&#8221;;<br />
}</p>
<p>}</p>
<p>7.进行配置。编辑WEB-INF下的red5-web.xml,找到bean id=”web.handler”一句，将class=”XXX”中的XXX位置修改为org.d5.first.Application，这样本程序将 以刚才写的Application来运行。删除后面的bean id=”server.handler…整句，因为我们暂时用不到这个东东。编辑web.xml，找到webAppRootKey，将其下面的 param-value标签中的值修改为/myChat。编辑red5-web.properties，将第一句修改为 webapp.contextPath=/myChat</p>
<p>8.编译项目</p>
<p>9.重新启动RED5服务器</p>
<p>10.在FLASH中新建一个文件，输入以下代码：<br />
import flash.net.NetConnection;<br />
import flash.net.Responder;</p>
<p>var responder:Responder = new Responder(chat);<br />
var nc:NetConnection = new NetConnection();<br />
nc.connect(&#8220;rtmp://localhost/mytest&#8221;);<br />
nc.addEventListener(NetStatusEvent.NET_STATUS,statusHandler);<br />
function chat(obj:Object):void{<br />
    trace(obj);<br />
}<br />
function statusHandler(event:NetStatusEvent):void<br />
{<br />
    trace(event.info.code);<br />
    switch (event.info.code)<br />
    {<br />
        case &#8220;NetConnection.Connect.Success&#8221;:<br />
            trace(&#8220;The connection was made successfully&#8221;);<br />
            break;<br />
        case &#8220;NetConnection.Connect.Rejected&#8221;:<br />
            trace (&#8220;sorry, the connection was rejected&#8221;);<br />
            break;<br />
        case &#8220;NetConnection.Connect.Failed&#8221;:<br />
            trace(&#8220;Failed to connect to server.&#8221;);<br />
            break;<br />
    }<br />
}<br />
nc.call(&#8220;login&#8221;,responder);</p>
<p>运行程序，显示结果为Welcome to Chat Servers。第一个RED5应用程序诞生了，呵呵：）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2010/07/05/red5%e6%95%99%e7%a8%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>win7下安装zend studio 5.5</title>
		<link>http://www.cruelyouth.com/2010/05/17/win7%e4%b8%8b%e5%ae%89%e8%a3%85zend-studio-5-5/</link>
		<comments>http://www.cruelyouth.com/2010/05/17/win7%e4%b8%8b%e5%ae%89%e8%a3%85zend-studio-5-5/#comments</comments>
		<pubDate>Mon, 17 May 2010 07:10:05 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=248</guid>
		<description><![CDATA[装了windows 7,发现普通模式不兼容zendstudio,又装了zendstudio 7,发现那个难用啊，晕死，下面是win7上安装
zendstudio 5.5的步骤
01、下载并安装最新版本的 JRE for Windows: http://java.com/en/download/manual.jsp
02、使用WINRAR解压 Zend Studio 5.5.1.exe
03、 进入解压后的文件夹 Zend Studio 5.5.1Windows(下面简称A文件夹) ，将resource目录下的jre文件夹重命名为jre.back(或其他名称都可)
04、复制 C:Program Files (x86)Javajre6到第三步中的目录，并将jre6重命名为jre
05、执行安装 A文件夹下的 Zend Studio 5.5.1.exe
06、安装完成后将 A文件夹 下 resource 目录中的jre.back文件夹复制到Zend Studio 的安装目录中，
07、重命名安装目录中的 jre 文件夹为 jre6
08、重命名安装目录中的 jre.back 文件夹为 jre
09、在ZendStudio图标上点击右键/属性/兼容性 设置兼容模式为 Vista
10、启动Zend Studio 
]]></description>
			<content:encoded><![CDATA[<p>装了windows 7,发现普通模式不兼容zendstudio,又装了zendstudio 7,发现那个难用啊，晕死，下面是win7上安装<br />
zendstudio 5.5的步骤</p>
<p>01、下载并安装最新版本的 JRE for Windows: http://java.com/en/download/manual.jsp</p>
<p>02、使用WINRAR解压 Zend Studio 5.5.1.exe</p>
<p>03、 进入解压后的文件夹 Zend Studio 5.5.1Windows(下面简称A文件夹) ，将resource目录下的jre文件夹重命名为jre.back(或其他名称都可)</p>
<p>04、复制 C:Program Files (x86)Javajre6到第三步中的目录，并将jre6重命名为jre</p>
<p>05、执行安装 A文件夹下的 Zend Studio 5.5.1.exe</p>
<p>06、安装完成后将 A文件夹 下 resource 目录中的jre.back文件夹复制到Zend Studio 的安装目录中，</p>
<p>07、重命名安装目录中的 jre 文件夹为 jre6</p>
<p>08、重命名安装目录中的 jre.back 文件夹为 jre</p>
<p>09、在ZendStudio图标上点击右键/属性/兼容性 设置兼容模式为 Vista</p>
<p>10、启动Zend Studio </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2010/05/17/win7%e4%b8%8b%e5%ae%89%e8%a3%85zend-studio-5-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>遨游等IE内核浏览器执行AS ExternalInterface遇到的问题</title>
		<link>http://www.cruelyouth.com/2010/04/27/%e9%81%a8%e6%b8%b8%e7%ad%89ie%e5%86%85%e6%a0%b8%e6%b5%8f%e8%a7%88%e5%99%a8%e6%89%a7%e8%a1%8cas-externalinterface%e9%81%87%e5%88%b0%e7%9a%84%e9%97%ae%e9%a2%98/</link>
		<comments>http://www.cruelyouth.com/2010/04/27/%e9%81%a8%e6%b8%b8%e7%ad%89ie%e5%86%85%e6%a0%b8%e6%b5%8f%e8%a7%88%e5%99%a8%e6%89%a7%e8%a1%8cas-externalinterface%e9%81%87%e5%88%b0%e7%9a%84%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 05:59:52 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[FLEX & ACTION SCRIPT]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=229</guid>
		<description><![CDATA[写了一个swf嵌入html页面中作跨域ajax提交使用，可是发现在IE内核的遨游，360浏览器中第一次载入可以运行，第二次则报对象没有该方法的错误。
google了一下，基本是这些浏览器处理缓存的问题，在swf已存在本地缓存时初始化第一帧的时候会出问题，解决方法1：在嵌入swf处加上?+Math.random()不管用，按照方法2，将
ExternalInterface.addCallback(&#8220;ajax&#8221;, ajax);
延迟50毫秒执行
setTimeout(function():void{
	ExternalInterface.addCallback(&#8220;ajax&#8221;, ajax);
}, 50);
这样就解决了。。
以前也遇到过，如果在flex里写一as project，swf没有规定固定大小，而是在第一帧运行代码中动态获取stage的宽高的时候，在遨游等浏览器中第二次浏览的时候布局会乱，因为获得的stage宽高都是0，应该也是这个道理，我恨这些二手浏览器啊。
]]></description>
			<content:encoded><![CDATA[<p>写了一个swf嵌入html页面中作跨域ajax提交使用，可是发现在IE内核的遨游，360浏览器中第一次载入可以运行，第二次则报对象没有该方法的错误。<br />
google了一下，基本是这些浏览器处理缓存的问题，在swf已存在本地缓存时初始化第一帧的时候会出问题，解决方法1：在嵌入swf处加上?+Math.random()不管用，按照方法2，将</p>
<p>ExternalInterface.addCallback(&#8220;ajax&#8221;, ajax);</p>
<p>延迟50毫秒执行</p>
<p>setTimeout(function():void{<br />
	ExternalInterface.addCallback(&#8220;ajax&#8221;, ajax);<br />
}, 50);</p>
<p>这样就解决了。。</p>
<p>以前也遇到过，如果在flex里写一as project，swf没有规定固定大小，而是在第一帧运行代码中动态获取stage的宽高的时候，在遨游等浏览器中第二次浏览的时候布局会乱，因为获得的stage宽高都是0，应该也是这个道理，我恨这些二手浏览器啊。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2010/04/27/%e9%81%a8%e6%b8%b8%e7%ad%89ie%e5%86%85%e6%a0%b8%e6%b5%8f%e8%a7%88%e5%99%a8%e6%89%a7%e8%a1%8cas-externalinterface%e9%81%87%e5%88%b0%e7%9a%84%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>打倒jQuery!</title>
		<link>http://www.cruelyouth.com/2009/03/08/%e6%89%93%e5%80%92jquery/</link>
		<comments>http://www.cruelyouth.com/2009/03/08/%e6%89%93%e5%80%92jquery/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 04:34:40 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=164</guid>
		<description><![CDATA[说起来我完全不喜欢jQuery，把所有东西都变成$对象很让人抓狂，也许对于初学者和UI设计人员来说jQuery是个快速简单的选择，但是对于开发一个复杂的js应用，jQuery就会觉得很奇怪，比如继承，比如oo都很不舒服，当然他也有一些很实用的method，但是我觉得这些只是一些书写上的方便，而不是核心的东西。
如果抛弃了prototype，我会选择Mootools，看了一下他的文档，更像是prototype的进化版本，也更符合程序员面向对象的习惯。
jQuery是有很大的用户基础，而且插件资源也很让人羡慕，但觉得他太花哨要做一些底层的使用很困难，在js框架的选用上还是要慎重，选用了一个别的就无法使用了，工作上由于以前页面里已经有大量的jQuery，所以还是不得不用下去，而prototype变成了心里永远的痛。
]]></description>
			<content:encoded><![CDATA[<p>说起来我完全不喜欢jQuery，把所有东西都变成$对象很让人抓狂，也许对于初学者和UI设计人员来说jQuery是个快速简单的选择，但是对于开发一个复杂的js应用，jQuery就会觉得很奇怪，比如继承，比如oo都很不舒服，当然他也有一些很实用的method，但是我觉得这些只是一些书写上的方便，而不是核心的东西。</p>
<p>如果抛弃了prototype，我会选择Mootools，看了一下他的文档，更像是prototype的进化版本，也更符合程序员面向对象的习惯。</p>
<p>jQuery是有很大的用户基础，而且插件资源也很让人羡慕，但觉得他太花哨要做一些底层的使用很困难，在js框架的选用上还是要慎重，选用了一个别的就无法使用了，工作上由于以前页面里已经有大量的jQuery，所以还是不得不用下去，而prototype变成了心里永远的痛。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2009/03/08/%e6%89%93%e5%80%92jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使iptables下可以使用ftp的pasv模式</title>
		<link>http://www.cruelyouth.com/2008/10/23/%e4%bd%bfiptables%e4%b8%8b%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8ftp%e7%9a%84pasv%e6%a8%a1%e5%bc%8f/</link>
		<comments>http://www.cruelyouth.com/2008/10/23/%e4%bd%bfiptables%e4%b8%8b%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8ftp%e7%9a%84pasv%e6%a8%a1%e5%bc%8f/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 08:37:44 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/2008/10/23/%e4%bd%bfiptables%e4%b8%8b%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8ftp%e7%9a%84pasv%e6%a8%a1%e5%bc%8f/</guid>
		<description><![CDATA[启动这些模块
modprobe iptable_nat
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
写在/etc/rc.local里
]]></description>
			<content:encoded><![CDATA[<p>启动这些模块</p>
<p>modprobe iptable_nat<br />
modprobe ip_conntrack<br />
modprobe ip_conntrack_ftp<br />
modprobe ip_nat_ftp</p>
<p>写在/etc/rc.local里</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2008/10/23/%e4%bd%bfiptables%e4%b8%8b%e5%8f%af%e4%bb%a5%e4%bd%bf%e7%94%a8ftp%e7%9a%84pasv%e6%a8%a1%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux LVM HOWTO</title>
		<link>http://www.cruelyouth.com/2008/10/09/linux-lvm-howto/</link>
		<comments>http://www.cruelyouth.com/2008/10/09/linux-lvm-howto/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 08:55:15 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=152</guid>
		<description><![CDATA[http://www.chinaunix.net/jh/4/72921.html
]]></description>
			<content:encoded><![CDATA[<p>http://www.chinaunix.net/jh/4/72921.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2008/10/09/linux-lvm-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lvs部署</title>
		<link>http://www.cruelyouth.com/2008/10/07/lvs%e9%83%a8%e7%bd%b2/</link>
		<comments>http://www.cruelyouth.com/2008/10/07/lvs%e9%83%a8%e7%bd%b2/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 03:34:29 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[lvs]]></category>
		<category><![CDATA[负载均衡]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=144</guid>
		<description><![CDATA[原文http://sery.blog.51cto.com/10037/54645
]]></description>
			<content:encoded><![CDATA[<p>原文<a href="http://sery.blog.51cto.com/10037/54645">http://sery.blog.51cto.com/10037/54645</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2008/10/07/lvs%e9%83%a8%e7%bd%b2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows下的tail工具</title>
		<link>http://www.cruelyouth.com/2008/10/06/windows%e4%b8%8b%e7%9a%84tail%e5%b7%a5%e5%85%b7/</link>
		<comments>http://www.cruelyouth.com/2008/10/06/windows%e4%b8%8b%e7%9a%84tail%e5%b7%a5%e5%85%b7/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 05:13:59 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=142</guid>
		<description><![CDATA[最近发现看windows下的日志很麻烦，搜索了一下也有人有类似问题，有人已经做了tail的windows版，跟linux下一样。
下载, tail -f filepath, 详细使用说明见压缩包内的doc
]]></description>
			<content:encoded><![CDATA[<p>最近发现看windows下的日志很麻烦，搜索了一下也有人有类似问题，有人已经做了tail的windows版，跟linux下一样。</p>
<p><a href="http://www.cruelyouth.com/wp-content/uploads/2008/10/tail.zip">下载</a>, tail -f filepath, 详细使用说明见压缩包内的doc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2008/10/06/windows%e4%b8%8b%e7%9a%84tail%e5%b7%a5%e5%85%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz页面静态化rewrite rules(转载)</title>
		<link>http://www.cruelyouth.com/2008/10/06/discuz%e9%a1%b5%e9%9d%a2%e9%9d%99%e6%80%81%e5%8c%96rewrite-rules%e8%bd%ac%e8%bd%bd/</link>
		<comments>http://www.cruelyouth.com/2008/10/06/discuz%e9%a1%b5%e9%9d%a2%e9%9d%99%e6%80%81%e5%8c%96rewrite-rules%e8%bd%ac%e8%bd%bd/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 03:02:23 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=140</guid>
		<description><![CDATA[重新开放了Minidx帮助论坛,虽然目前没什么内容，不过顺便想SEO一下，实现伪静态链接。在后台开启了“URL Rewrite”，看起来一切正常，可是点击某一栏目的时候却怎么都进不去，显示的依然是论坛的首页。看了一下论坛目录下，原来这下面并没有自己的.htaccess文件，所以默认使用的应该是Godaddy主机的.htaccess，而默认的肯定不会有针对Discuz的Rewrite规则，所以加入了下面的语句，一切都正常了~
RewriteEngine On
RewriteBase /
RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&#38;page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&#38;extra=page\%3D$3&#38;page=$2
RewriteRule ^profile-(username&#124;uid)-(.+)\.html$ viewpro.php?$1=$2
RewriteRule ^space-(username&#124;uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
注：倒数第二行是针对Discuz的SupeSite/X-Space，我并没有安装，实际上并不需要。
]]></description>
			<content:encoded><![CDATA[<p>重新开放了<a href="http://forum.minidx.com/">Minidx帮助论坛</a>,虽然目前没什么内容，不过顺便想SEO一下，实现伪静态链接。在后台开启了“<strong><span style="text-decoration: underline;"><em>URL Rewrite</em></span></strong>”，看起来一切正常，可是点击某一栏目的时候却怎么都进不去，显示的依然是论坛的首页。看了一下论坛目录下，原来这下面并没有自己的.htaccess文件，所以默认使用的应该是Godaddy主机的.htaccess，而默认的肯定不会有针对Discuz的Rewrite规则，所以加入了下面的语句，一切都正常了~</p>
<p>RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1<br />
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&amp;page=$2<br />
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&amp;extra=page\%3D$3&amp;page=$2<br />
RewriteRule ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2<br />
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2<br />
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1</p>
<pre>注：倒数第二行是针对Discuz的SupeSite/X-Space，我并没有安装，实际上并不需要。</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2008/10/06/discuz%e9%a1%b5%e9%9d%a2%e9%9d%99%e6%80%81%e5%8c%96rewrite-rules%e8%bd%ac%e8%bd%bd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何在flex builder中使用flash 9的组件</title>
		<link>http://www.cruelyouth.com/2008/06/06/%e5%a6%82%e4%bd%95%e5%9c%a8flex-builder%e4%b8%ad%e4%bd%bf%e7%94%a8flash-9%e7%9a%84%e7%bb%84%e4%bb%b6/</link>
		<comments>http://www.cruelyouth.com/2008/06/06/%e5%a6%82%e4%bd%95%e5%9c%a8flex-builder%e4%b8%ad%e4%bd%bf%e7%94%a8flash-9%e7%9a%84%e7%bb%84%e4%bb%b6/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:43:51 +0000</pubDate>
		<dc:creator>Mars</dc:creator>
				<category><![CDATA[FLEX & ACTION SCRIPT]]></category>

		<guid isPermaLink="false">http://www.cruelyouth.com/?p=129</guid>
		<description><![CDATA[网上搜了一下，老外有篇blog是写这个的，试了一下可以用，原文地址
简单说一下怎么做：
首先，建一个fla，把需要导出的组件拽进舞台（库）中
然后选导出影片
导出对话框选生成swc
然后在在flex中的project 属性里把lib path加上这个swc就可以了
不知道为何直接用flash安装目录里components下的那些swc为什么不行，不过经过以上步骤就可以直接用flash中的组件了～～
其实flash中其他的mc/字体/图片等也可以在link了class后输出swc这么使用。
]]></description>
			<content:encoded><![CDATA[<p>网上搜了一下，老外有篇blog是写这个的，试了一下可以用，<a href="http://www.moock.org/blog/archives/000253.html">原文地址</a></p>
<p>简单说一下怎么做：</p>
<p>首先，建一个fla，把需要导出的组件拽进舞台（库）中<br />
然后选导出影片<br />
导出对话框选生成swc</p>
<p>然后在在flex中的project 属性里把lib path加上这个swc就可以了</p>
<p>不知道为何直接用flash安装目录里components下的那些swc为什么不行，不过经过以上步骤就可以直接用flash中的组件了～～</p>
<p>其实flash中其他的mc/字体/图片等也可以在link了class后输出swc这么使用。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cruelyouth.com/2008/06/06/%e5%a6%82%e4%bd%95%e5%9c%a8flex-builder%e4%b8%ad%e4%bd%bf%e7%94%a8flash-9%e7%9a%84%e7%bb%84%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
