<?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; Comet</title>
	<atom:link href="http://blog.frost.tw/tag/comet/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.frost.tw</link>
	<description>夢醒之時，驚覺一切都是虛幻。前行吧！迷途者。</description>
	<lastBuildDate>Wed, 26 Oct 2011 13:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.frost.tw/?pushpress=hub'/>
		<item>
		<title>Node.js 的 Comet Chat</title>
		<link>http://blog.frost.tw/code/poston-2010-10-30/postid-800</link>
		<comments>http://blog.frost.tw/code/poston-2010-10-30/postid-800#comments</comments>
		<pubDate>Sat, 30 Oct 2010 11:13:58 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=800</guid>
		<description><![CDATA[今天幫朋友把 Comet Chat 的雛型大致上都做出來了！ 其實也是可以直接上戰場，不過還有點缺陷。 像是 Server Time 比 Client Time 還大時，就會慘遭洗頻…… 不過我想訪客都中原標準時間，應該不會有事（喂 來張測試時的玉照。 因為使用了 jQuery UI 的加持，整個威能很大。 不過，因為時間有限…… （畢竟我摸了一整天，社刊的收尾還沒弄） 很多調整都不能加上，像是調整聊天視窗大小、時間校正、指令功能等等。 不過，目前也是有「支援」的指令喔！ 那就是「/nick 暱稱」指令，可以替換暱稱。 之後我想我會陸續加入各種功能吧…… 不過，在這之前還有一大堆任務得完成。 如網誌改版、社刊、同人社團Amber Clover網站製作等等。 希望下次我有很大威能可以「強化」這款聊天室。 &#62; 經過這次經驗，我可以說是對 Real Time WebGame的雛型有個概念了呢！<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">談起 APE 和 node.js</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用 Node.js 寫聊天室的心得～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-11-08%2Fpostid-820&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">才…才不會讓你看全部呢！</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天幫朋友把 Comet Chat 的雛型大致上都做出來了！<br />
其實也是可以直接上戰場，不過還有點缺陷。</p>
<p>像是 Server Time 比 Client Time 還大時，就會慘遭洗頻……</p>
<p>不過我想訪客都中原標準時間，應該不會有事（喂<br />
<span id="more-800"></span><br />
<a href="http://blog.frost.tw/wp-content/uploads/2010/10/2010-10-30-19-08-53.png" rel="lightbox[800]" title="AR測試中玉照"><img class="alignnone size-medium wp-image-801" title="AR測試中玉照" src="http://blog.frost.tw/wp-content/uploads/2010/10/2010-10-30-19-08-53-300x204.png" alt="" width="300" height="204" /></a></p>
<p>來張測試時的玉照。<br />
因為使用了 jQuery UI 的加持，整個威能很大。</p>
<p>不過，因為時間有限……<br />
（畢竟我摸了一整天，社刊的收尾還沒弄）<br />
很多調整都不能加上，像是調整聊天視窗大小、時間校正、指令功能等等。</p>
<p>不過，目前也是有「支援」的指令喔！<br />
那就是「/nick 暱稱」指令，可以替換暱稱。</p>
<p>之後我想我會陸續加入各種功能吧……</p>
<p>不過，在這之前還有一大堆任務得完成。<br />
如網誌改版、社刊、同人社團Amber Clover網站製作等等。</p>
<p>希望下次我有很大威能可以「強化」這款聊天室。<br />
&gt; 經過這次經驗，我可以說是對 Real Time WebGame的雛型有個概念了呢！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">談起 APE 和 node.js</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用 Node.js 寫聊天室的心得～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-11-08%2Fpostid-820&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">才…才不會讓你看全部呢！</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-10-30/postid-800/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comet Caht on GAE 筆記</title>
		<link>http://blog.frost.tw/code/poston-2010-10-21/postid-777</link>
		<comments>http://blog.frost.tw/code/poston-2010-10-21/postid-777#comments</comments>
		<pubDate>Thu, 21 Oct 2010 11:11:00 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=777</guid>
		<description><![CDATA[昨晚默默的把Core寫出一個雛型。 雖然不知道在 Http Servlet 上用 loop 去延遲Response是否有效。 不過，也算是在基本狀況上完成了模型。 而架構，大致上就如昨天的網誌紀錄一樣。 今天則是概述我做的處理。 經過實做之後，主要做了一些調整。 因為是個簡單的 Chat Room 所以就只有兩個檔案去完成。 chatCore.java 與 User.java 兩個。 chatCore物件繼承HttpServlet並且重寫doGet方法。 在doGet方法中，我又針對請求的網址做了另外處理。 （在Web設定中有 /join , /get , /quit , /post 四個路徑。） 當然，首要就是分辨是哪個路徑。 因此從HttpServletRequest物件路徑資料並且加以處理。 目前僅將 join 方法實做。 當開啟 /join 路徑時，則呼叫 join 方法。 &#8230; <a href="http://blog.frost.tw/code/poston-2010-10-21/postid-777">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Java的物件導向與Comet</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet 的世界</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-08-31%2Fpostid-682&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google App Engine 與 Java 和 Comet 技術</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨晚默默的把Core寫出一個雛型。<br />
雖然不知道在 Http Servlet 上用 loop 去延遲Response是否有效。<br />
不過，也算是在基本狀況上完成了模型。</p>
<p>而架構，大致上就如昨天的網誌紀錄一樣。<br />
今天則是概述我做的處理。<br />
<span id="more-777"></span><br />
經過實做之後，主要做了一些調整。<br />
因為是個簡單的 Chat Room 所以就只有兩個檔案去完成。<br />
chatCore.java 與 User.java 兩個。</p>
<p>chatCore物件繼承HttpServlet並且重寫doGet方法。<br />
在doGet方法中，我又針對請求的網址做了另外處理。<br />
（在Web設定中有 /join , /get , /quit , /post 四個路徑。）<br />
當然，首要就是分辨是哪個路徑。<br />
因此從HttpServletRequest物件路徑資料並且加以處理。</p>
<p>目前僅將 join 方法實做。<br />
當開啟 /join 路徑時，則呼叫 join 方法。</p>
<pre class="brush:java">public static int join(String username){
  User session = new User(username);
  sessions.add(session);
  return sessions.indexOf(session);
}
</pre>
<p>也就只是「建立一個 User 物件」<br />
不過我想之後對 Session 的處理會依靠 HttpServelt 來處理「客戶端可更動使用者」的問題。</p>
<p>而 User 物件就只有簡單的建構式，並且紀錄username而已。</p>
<p>在Java上，其static和共用進程的方式。<br />
跟PHP比起來，可以節省更多資源。<br />
這算是我在Java上開發Comet Chat時感受到的方便性吧！</p>
<p>期待我完成的那一天。<br />
（如果有颱風假，大概就會完成吧……）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Java的物件導向與Comet</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet 的世界</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-08-31%2Fpostid-682&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google App Engine 與 Java 和 Comet 技術</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-10-21/postid-777/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java的物件導向與Comet</title>
		<link>http://blog.frost.tw/code/poston-2010-10-20/postid-776</link>
		<comments>http://blog.frost.tw/code/poston-2010-10-20/postid-776#comments</comments>
		<pubDate>Wed, 20 Oct 2010 10:59:46 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[程式]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=776</guid>
		<description><![CDATA[昨晚突然想要寫一下Comet相關的應用。 於是就打開Netbeans和以前做失敗的Comet Chat專案來修改。 不過，我也不過是簡單的修改而已。 我想，哪天我就能把這個Realtime Chatroom做出來吧！ 說起物件導向，就會讓我想到JavaScript, PHP 和 Java 的差別了！ 在 Node.js 撰寫 Comet Chatroom 的過程中。 我紀錄User, Session等等，都是採用陣列的方式。 而JavaScript把陣列本身就當成一個 Object 因此儲存東西進去後，就可以用各種方法存取。 但是，在Java上沒有這種方便的處理。 主要得靠自己撰寫List/ArrayList等儲存自己撰寫的物件。 並且用自己物件的方法來做處理。 我想，如果是習慣PHP, JavaScript的人，大概會很難去思考出如何處理吧！ 最近隨著經驗的增加，我也大致上理解了做法。 目前，我大致上做了這樣的處理。 建立 User 物件，來當作每個使用者的資訊。 並且有一個Main物件來處理 join, quit 等等動作。 我想，之後會結合 HttpServlet 來下達各個指令。 再加上task等等，其實Comet大致上就成型了！ &#8230; <a href="http://blog.frost.tw/code/poston-2010-10-20/postid-776">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet Caht on GAE 筆記</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet 的世界</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-08-31%2Fpostid-682&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google App Engine 與 Java 和 Comet 技術</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨晚突然想要寫一下Comet相關的應用。<br />
於是就打開Netbeans和以前做失敗的Comet Chat專案來修改。</p>
<p>不過，我也不過是簡單的修改而已。<br />
我想，哪天我就能把這個Realtime Chatroom做出來吧！<br />
<span id="more-776"></span><br />
說起物件導向，就會讓我想到JavaScript, PHP 和 Java 的差別了！</p>
<p>在 Node.js 撰寫 Comet Chatroom 的過程中。<br />
我紀錄User, Session等等，都是採用陣列的方式。<br />
而JavaScript把陣列本身就當成一個 Object 因此儲存東西進去後，就可以用各種方法存取。</p>
<p>但是，在Java上沒有這種方便的處理。<br />
主要得靠自己撰寫List/ArrayList等儲存自己撰寫的物件。<br />
並且用自己物件的方法來做處理。</p>
<p>我想，如果是習慣PHP, JavaScript的人，大概會很難去思考出如何處理吧！</p>
<p>最近隨著經驗的增加，我也大致上理解了做法。</p>
<p>目前，我大致上做了這樣的處理。</p>
<blockquote><p>建立 User 物件，來當作每個使用者的資訊。<br />
並且有一個Main物件來處理 join, quit 等等動作。<br />
我想，之後會結合 HttpServlet 來下達各個指令。<br />
再加上task等等，其實Comet大致上就成型了！</p></blockquote>
<p>我猜這週就能將社刊做完，之後就利用閒暇時間來簡單做一下吧！<br />
期待我完成的那一天和大家分享喜悅。</p>
<p>註：這個是基於Google App Engine 開發的 Chatroom</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet Caht on GAE 筆記</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet 的世界</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-08-31%2Fpostid-682&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google App Engine 與 Java 和 Comet 技術</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-10-20/postid-776/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Node.js 上的 MySQL</title>
		<link>http://blog.frost.tw/life/poston-2010-07-12/postid-585</link>
		<comments>http://blog.frost.tw/life/poston-2010-07-12/postid-585#comments</comments>
		<pubDate>Mon, 12 Jul 2010 10:55:23 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[生活雜記]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=585</guid>
		<description><![CDATA[昨天寫完聊天室之後，今天就是進行 Web Game 撰寫了！ 因為 Node.js 沒有明確支援哪種資料庫，可用的大概只有檔案讀寫。 為了處理這種問題，很多人開發了 Module 去支援。 但是很可惜，目前我所知的兩種MySQL模組都不適合。 在探索 Comet 技術中，我想 Node.js 可能和我非常合得來。 再加上其也是備受推薦的語言，因此算是容易上手和好用吧！ 不過，他卻有個惱人的問題。 基本支援不多，相較習慣 PHP 的人，在 Node.js 可能會感覺有點辛苦。 （畢竟 PHP 擁有大量的函式支援，很多功能可以輕而易舉做到。） 那麼該如何連接MySQL呢？ 我想，沒有其他選擇了！ 只能使用 Node.js 內建的 Net 模組（ Socket 相關）來手動連接。 當然，在這之前要先確認是否有高手做出模組。 很幸運的，在官方模組列表上有兩款。 （如果我沒看錯，應是有兩款。） 我選了一款名為 Node-MySQL &#8230; <a href="http://blog.frost.tw/life/poston-2010-07-12/postid-585">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">談起 APE 和 node.js</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用 Node.js 寫聊天室的心得～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-03-07%2Fpostid-1141&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JSApp.US – 免費的 Node.JS 伺服器</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨天寫完聊天室之後，今天就是進行 Web Game 撰寫了！<br />
因為 Node.js 沒有明確支援哪種資料庫，可用的大概只有檔案讀寫。<br />
為了處理這種問題，很多人開發了 Module 去支援。<br />
但是很可惜，目前我所知的兩種MySQL模組都不適合。<br />
<span id="more-585"></span><br />
在探索 Comet 技術中，我想 Node.js 可能和我非常合得來。<br />
再加上其也是備受推薦的語言，因此算是容易上手和好用吧！</p>
<p>不過，他卻有個惱人的問題。<br />
基本支援不多，相較習慣 PHP 的人，在 Node.js 可能會感覺有點辛苦。<br />
（畢竟 PHP 擁有大量的函式支援，很多功能可以輕而易舉做到。）</p>
<p>那麼該如何連接MySQL呢？<br />
我想，沒有其他選擇了！<br />
只能使用 Node.js 內建的 Net 模組（ Socket 相關）來手動連接。</p>
<p>當然，在這之前要先確認是否有高手做出模組。<br />
很幸運的，在官方模組列表上有兩款。<br />
（如果我沒看錯，應是有兩款。）</p>
<p>我選了一款名為 Node-MySQL 的模組使用。<br />
（後來發現另一組，不過看起來似乎不堪使用呢！）</p>
<p>當我興致勃勃的將 Web Game 的基礎結構製作好。<br />
（其實就只是登出和登入兩個動作而已……）<br />
我就馬上測試（其實寫太多 Bug 也跟著多，而且也有上百行了……）</p>
<p>很可惜，我自身的錯誤處理完畢後。<br />
竟然是 Node-MySQL 的錯誤，仔細一看，卻發現似乎是自己的失誤。</p>
<p>不過，當我成功連上資料庫時。<br />
卻碰上「無法查詢」的窘境……</p>
<p>總而言之，那Ajax連接就這麼持續到超時斷開。</p>
<p>也許，該換個方法處理吧！<br />
（目前正在考慮檔案讀寫，不過可能會比較吃資源的樣子……）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">談起 APE 和 node.js</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用 Node.js 寫聊天室的心得～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-03-07%2Fpostid-1141&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JSApp.US – 免費的 Node.JS 伺服器</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/life/poston-2010-07-12/postid-585/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用 Node.js 寫聊天室的心得～</title>
		<link>http://blog.frost.tw/code/poston-2010-07-11/postid-583</link>
		<comments>http://blog.frost.tw/code/poston-2010-07-11/postid-583#comments</comments>
		<pubDate>Sun, 11 Jul 2010 11:06:23 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=583</guid>
		<description><![CDATA[就我看來，用 Node.js 比 Ajax Push Engine 困難很多。 不過，做出來的東西不論是自由度或者延展性，真的「好很多！」 雖然目前自己寫的 Chat Room 出了點 Bug (又忘記備份原始碼) 不過還是能正常使用啦！ 不過既然是使用 Ajax 技術來實踐，那麼跨域的問題真的就很惱人。 雖然 jQuery 有提供所謂的 JSONP 來實踐跨域。 不過我用 FireBug 看到那不斷增加的HTML我就頭昏（目前暫時使用 jQuery-JSONP Plugin ） 那麼，就小小說一下我的「心得」吧！ 我是參考官方的 Chat Room Deoms 原始碼來撰寫（縮減成練習的版本） 這種聊天室執行時，會消耗「記憶體」 不過就官方的程式運作來看，幾百筆資料似乎也才吃掉數MB(還是數千筆我忘了……) 聊天室整體的構造大致如下： 1. channel &#8230; <a href="http://blog.frost.tw/code/poston-2010-07-11/postid-583">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">談起 APE 和 node.js</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-03-07%2Fpostid-1141&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JSApp.US – 免費的 Node.JS 伺服器</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>就我看來，用 Node.js 比 Ajax Push Engine 困難很多。<br />
不過，做出來的東西不論是自由度或者延展性，真的「好很多！」<br />
雖然目前自己寫的 Chat Room 出了點 Bug (又忘記備份原始碼)<br />
不過還是能正常使用啦！<br />
<span id="more-583"></span><br />
不過既然是使用 Ajax 技術來實踐，那麼跨域的問題真的就很惱人。<br />
雖然 jQuery 有提供所謂的 JSONP 來實踐跨域。<br />
不過我用 FireBug 看到那不斷增加的HTML我就頭昏（目前暫時使用 jQuery-JSONP Plugin ）</p>
<p>那麼，就小小說一下我的「心得」吧！<br />
我是參考官方的 Chat Room Deoms 原始碼來撰寫（縮減成練習的版本）</p>
<p>這種聊天室執行時，會消耗「記憶體」<br />
不過就官方的程式運作來看，幾百筆資料似乎也才吃掉數MB(還是數千筆我忘了……)</p>
<p>聊天室整體的構造大致如下：<br />
1. channel (應該說物件嗎？)<br />
2. sessions (Array )<br />
3.  methods (Array)</p>
<p>其中 channel 負責聊天訊息, sessions 負責紀錄進入聊天室的人，而 methods 則是我用來儲存HTTP請求回應的陣列……</p>
<p>channel 包含兩個函式，一個負責在 messages 陣列新增聊天紀錄，另一個則負責存取 messages 陣列。<br />
sessions 則儲存所有使用者的id, 並有 createSession() 函式負責加入新使用者。<br />
* sessions[id].destory() 是消除的函式（放在每個使用者的資料裡面）</p>
<p>而 methods 是一個陣列，並且對應一個 handler (官網好像是這樣稱呼)<br />
當 HTTP Server 接到請求，會判斷抓哪一個陣列出來使用。<br />
這樣大致上就完成架構了！</p>
<p>在撰寫過程中，幾乎沒有停下來。<br />
（大概是昨晚有簡單做一個收發的 test 所以才得力很多。）</p>
<p>最後中途是修正了幾次 Bug 才完成運行。<br />
* Node.js 發生程式錯誤會終止程式執行。</p>
<p>不過我很佩服官方的聊天室，好像運行一個多月都沒停止。<br />
（原始碼裡面明明有會卡死的部份，不過似乎不受影響）</p>
<p>晚點檢查完我的聊天室和跨域，就要進一步發展啦！<br />
（製作特製的 lib 來寫 Web Game~）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">談起 APE 和 node.js</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-03-07%2Fpostid-1141&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JSApp.US – 免費的 Node.JS 伺服器</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-07-11/postid-583/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>談起 APE 和 node.js</title>
		<link>http://blog.frost.tw/life/poston-2010-07-10/postid-582</link>
		<comments>http://blog.frost.tw/life/poston-2010-07-10/postid-582#comments</comments>
		<pubDate>Sat, 10 Jul 2010 11:15:09 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[生活雜記]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=582</guid>
		<description><![CDATA[說到我學習使用 Comet 技術，不外乎就是開發 Web Game 了！ 不過，在今天進行 Ajax Push Engine 的撰寫過程中，我發現了問題！ Ajax Push Engine 本身是一個 Server, 在其上的JavaScript(Server Side)都只是個 Module 而已！ 就因為這點，我改為向 node.js 發展。 （最近有網友反應網誌內容閱讀難度提高，所以今天我盡量簡單說明……） 要比喻 Ajax Push Engine 和 Node.js 的差異，大概可以用下面的方法形容。 APE 是一個完整的程式，其 Server Side只不過是個「擴充套件」 而 Node.js 則是一種程式語言，其Server Side就是完整的程式。 如此比較，就會發現 &#8230; <a href="http://blog.frost.tw/life/poston-2010-07-10/postid-582">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用 Node.js 寫聊天室的心得～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-03-07%2Fpostid-1141&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JSApp.US – 免費的 Node.JS 伺服器</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>說到我學習使用 Comet 技術，不外乎就是開發 Web Game 了！<br />
不過，在今天進行 Ajax Push Engine 的撰寫過程中，我發現了問題！<br />
Ajax Push Engine 本身是一個 Server, 在其上的JavaScript(Server Side)都只是個 Module 而已！<br />
就因為這點，我改為向 node.js 發展。<br />
（最近有網友反應網誌內容閱讀難度提高，所以今天我盡量簡單說明……）<br />
<span id="more-582"></span><br />
要比喻 Ajax Push Engine 和 Node.js 的差異，大概可以用下面的方法形容。<br />
APE 是一個完整的程式，其 Server Side只不過是個「擴充套件」<br />
而 Node.js 則是一種程式語言，其Server Side就是完整的程式。</p>
<p>如此比較，就會發現 Node.js 不會受限於原本的限制。<br />
（好玩的是，使用APE時會用到他的JSF框架，就如同開發者被框住一樣！）<br />
#所謂的限制，其實就是 APE 無法開發多個程式，而 Node.js 可以。</p>
<p>目前某弦正在閱讀 Node.js 的 API 文件（可以說是開發文檔，或者函式/事件手冊吧！）<br />
也許哪天我寫出個心得，就會來做個簡單的教學！</p>
<p>就我所看到的網路教學中，建立一個HTTP伺服器最為簡單。<br />
（其實 Comet 技術本身就是 Ajax 的運用，和HTTP關係很大～）<br />
在加上 Node.js 本身內建 HTTP 伺服器/客戶端功能，所以建立「超容易！」</p>
<p>有興趣的朋友可以用 coLinux 在 Windows 下建立環境，然後安裝來測試。<br />
node xxx.js 是運行指令，想停止可以用 Ctrl+C 停止～</p>
<p>呼呼～<br />
繼續把閱讀到一半的文件看完～</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-07-11%2Fpostid-583&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用 Node.js 寫聊天室的心得～</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2011-03-07%2Fpostid-1141&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-10%2Fpostid-582">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JSApp.US – 免費的 Node.JS 伺服器</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/life/poston-2010-07-10/postid-582/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comet 的世界</title>
		<link>http://blog.frost.tw/life/poston-2010-07-09/postid-580</link>
		<comments>http://blog.frost.tw/life/poston-2010-07-09/postid-580#comments</comments>
		<pubDate>Fri, 09 Jul 2010 11:17:23 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[生活雜記]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Comet]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=580</guid>
		<description><![CDATA[昨晚裝好 Ajax Push Engine  之後，就開始研讀開發文件啦！ 這類 Comet 伺服器似乎都能讓 JavaScrtip 跑在 Server Side&#8230; (因為我不太瞭解 Comet, 所以稱這些叫做 Comet伺服器) 在 Ajax Push Engine 官方網站上，有一個 MMORPG 的 Demos 我看了之後，二話不說，馬上決定選用 Ajax Push Engine 當作我接觸 Comet 的管道。 不過，經過自己實際撰寫之後，才發現這根本不可能阿（誤 為什麼不可能呢？ 1. 官方文件沒說 Server Side 的檔案怎樣用才會動起來 2. 雖然寫好了JavaScript也debug了，但是測試時還是發生錯誤。 &#8230; <a href="http://blog.frost.tw/life/poston-2010-07-09/postid-580">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Java的物件導向與Comet</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet Caht on GAE 筆記</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨晚裝好 Ajax Push Engine  之後，就開始研讀開發文件啦！<br />
這類 Comet 伺服器似乎都能讓 JavaScrtip 跑在 Server Side&#8230;<br />
(因為我不太瞭解 Comet, 所以稱這些叫做 Comet伺服器)<br />
<span id="more-580"></span></p>
<p>在 Ajax Push Engine 官方網站上，有一個 MMORPG 的 Demos<br />
我看了之後，二話不說，馬上決定選用 Ajax Push Engine 當作我接觸 Comet 的管道。</p>
<p>不過，經過自己實際撰寫之後，才發現這根本不可能阿（誤<br />
為什麼不可能呢？<br />
1. 官方文件沒說 Server Side 的檔案怎樣用才會動起來<br />
2. 雖然寫好了JavaScript也debug了，但是測試時還是發生錯誤。</p>
<p>也許我該選用 node.js 這款最被推薦的 Comet 伺服器呢！</p>
<p>不過，我想今天就暫時先將就 Ajax Push Engine 吧！<br />
畢竟，有始有終，我這個失敗的作品，多少也得要把他除錯完！</p>
<p>明天再來挑戰 node.js<br />
不過 Comet 讓我如此興奮的原因，不外乎是「可以製作MMORPG」<br />
如果多年前有玩WebGame的朋友，想必會知道一款叫做「創世之光」的遊戲。<br />
可惜現在台服關了，跑去中國開……</p>
<p>我想，我會如此熱衷這個，就是因為那款遊戲！<br />
那麼，我要繼續研究啦！<br />
（每次一開始研究我就停不下來……）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-30%2Fpostid-800&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 的 Comet Chat</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-20%2Fpostid-776&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Java的物件導向與Comet</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-10-21%2Fpostid-777&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Comet Caht on GAE 筆記</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-12%2Fpostid-585&from=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-07-09%2Fpostid-580">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Node.js 上的 MySQL</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/life/poston-2010-07-09/postid-580/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

