<?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>Technical LeoLo</title>
	<atom:link href="http://blog.leolo.cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.leolo.cc</link>
	<description>My Learning note</description>
	<lastBuildDate>Thu, 12 Mar 2009 08:58:42 +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>jQuery.getJSON 取得跨網域(cross domain)的JSON資料</title>
		<link>http://blog.leolo.cc/2009/03/12/267/</link>
		<comments>http://blog.leolo.cc/2009/03/12/267/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 08:58:42 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.leolo.cc/2009/03/12/267/</guid>
		<description><![CDATA[在jQuery1.2之後，jQuery.getJSON支援cross domain取得JSON資料 
client端: 
&#60;script&#62;       $.getJSON(&#34;http://your.url.com/jsoncallback=?&#34;,       &#160;&#160;&#160;&#160;&#160;&#160;&#160; function(data){       &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.each(data.items, function(i,item){       &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;&#60;img/&#62;&#34;).attr(&#34;src&#34;, item.media.m).appendTo(&#34;#images&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });       &#160;&#160;&#160;&#160;&#160;&#160;&#160; });       &#60;/script&#62;

要注意的是雖然我們是傳&#34;jsoncallback=?&#34;，jQuery會自動地把?轉換成適當地method name。 [...]]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2009/03/12/267/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Toggle auto-indenting for code paste in vim</title>
		<link>http://blog.leolo.cc/2009/01/22/249/</link>
		<comments>http://blog.leolo.cc/2009/01/22/249/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 03:11:06 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[indent]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[toggle]]></category>

		<guid isPermaLink="false">http://blog.leolo.cc/?p=249</guid>
		<description><![CDATA[Pasting text into a terminal running Vim with &#8216;autoindent&#8217; or &#8217;smartindent&#8217; set can destroy the indenting of the pasted text.
How to solve this problem?
Before paste
:set paste
After paste
:set nopaste
Or we can just add this in .vimrc config file, so that we can make a toggle for this action.
set pastetoggle=&#60;F9&#62;
Reference:Toggle auto-indenting for code paste
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2009/01/22/249/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Firefox feed reader option page back</title>
		<link>http://blog.leolo.cc/2008/12/17/244/</link>
		<comments>http://blog.leolo.cc/2008/12/17/244/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 09:22:21 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[reader]]></category>

		<guid isPermaLink="false">http://blog.leolo.cc/2008/12/17/244/</guid>
		<description><![CDATA[
about:config in location bar.
Find browser.contentHandlers by  using filter.
You can find something like this
『browser.contentHandlers.auto.application/vnd.mozilla.maybe.feed』
and then  reset the value of this item.
Restart Firefox!

reference: Adding feed readers to Firefox
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/12/17/244/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[CSS] a:link,a:visited,a:hover,a:active order</title>
		<link>http://blog.leolo.cc/2008/11/20/18/</link>
		<comments>http://blog.leolo.cc/2008/11/20/18/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 23:23:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[visited]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/11/20/css-alinkavisitedahoveraactive-order/</guid>
		<description><![CDATA[
a:link &#123;color: #FF0000&#125;     /* unvisited link */
a:visited &#123;color: #00FF00&#125;  /* visited link */
a:hover &#123;color: #FF00FF&#125;   /* mouse over link */
a:active &#123;color: #0000FF&#125;   /* selected link */

Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!
Note: a:active MUST come after a:hover in the CSS definition [...]]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/11/20/18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Shell Script</title>
		<link>http://blog.leolo.cc/2008/10/29/17/</link>
		<comments>http://blog.leolo.cc/2008/10/29/17/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 17:34:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sheel]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/10/29/php-shell-script/</guid>
		<description><![CDATA[We can use php as a shell script by adding the line below at the top of the php script file.#!/usr/local/bin/php -CqC means do not change working directory  to that of the script.q means do not send HTTP header.
There is a reference manual 『Using PHP from the command line』 in php.net
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/10/29/17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP中include和require的差異</title>
		<link>http://blog.leolo.cc/2008/10/16/16/</link>
		<comments>http://blog.leolo.cc/2008/10/16/16/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 19:36:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[require]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/10/16/php%e4%b8%adinclude%e5%92%8crequire%e7%9a%84%e5%b7%ae%e7%95%b0/</guid>
		<description><![CDATA[PHP中include和require的差異在於找不到引入的檔案時，require會停止解譯php程式，include則不會。
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/10/16/16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Oracle中找出重複的紀錄的方法</title>
		<link>http://blog.leolo.cc/2008/05/06/15/</link>
		<comments>http://blog.leolo.cc/2008/05/06/15/#comments</comments>
		<pubDate>Tue, 06 May 2008 06:38:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[PLSQL]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/05/06/%e5%9c%a8oracle%e4%b8%ad%e6%89%be%e5%87%ba%e9%87%8d%e8%a4%87%e7%9a%84%e7%b4%80%e9%8c%84%e7%9a%84%e6%96%b9%e6%b3%95/</guid>
		<description><![CDATA[在Oracle中找出重複的紀錄的方法SELECT aid FROM atable GROUP BY aid HAVING COUNT(*) &#62;1;
刪除重複的記錄DELETE FROM atable a where a.ROWID!=(SELECT MAX(ROWID) FROM atable b WHERE a.aid=b.aid;
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/05/06/15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ORACLE/PLSQL裡使用游標FOR迴圈(cursor FOR loop)</title>
		<link>http://blog.leolo.cc/2008/05/06/14/</link>
		<comments>http://blog.leolo.cc/2008/05/06/14/#comments</comments>
		<pubDate>Tue, 06 May 2008 05:55:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[PLSQL]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/05/06/%e5%9c%a8oracleplsql%e8%a3%a1%e4%bd%bf%e7%94%a8%e6%b8%b8%e6%a8%99for%e8%bf%b4%e5%9c%88cursor-for-loop/</guid>
		<description><![CDATA[藉由從abc_stu資料表內抓取該學號的生日，來更新stu資料表裡每個學號的生日。
DECLARE   CURSOR cur IS       SELECT stuid FROM stu;BEGIN   FOR rec IN cur   LOOP        UPDATE stu           SET (birth_yr,birth_mm,birth_dd)=          [...]]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/05/06/14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle/PLSQL: If Exists Update Else Insert</title>
		<link>http://blog.leolo.cc/2008/05/04/13/</link>
		<comments>http://blog.leolo.cc/2008/05/04/13/#comments</comments>
		<pubDate>Sun, 04 May 2008 06:35:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[exist]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[PLSQL]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/05/04/oracleplsql-if-exists-update-else-insert/</guid>
		<description><![CDATA[If data exists then update it, otherwise insert it.In Oracle/PLSQL
BEGINUPDATE TABLE_NAME SET COL=&#8217;a&#8217; WHERE ID=&#8217;foobar&#8217;;IF sql%rowcount = 0 THENINSERT INTO TABLE_NAME (ID,COL) VALUES(&#8216;foobar&#8217;,'a&#8217;);END IF;END;
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/05/04/13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>some problem with PHP SESSION Array</title>
		<link>http://blog.leolo.cc/2008/05/04/12/</link>
		<comments>http://blog.leolo.cc/2008/05/04/12/#comments</comments>
		<pubDate>Sun, 04 May 2008 04:27:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/05/04/some-problem-with-php-session-array/</guid>
		<description><![CDATA[session_test.php
&#60;?phpsession_start();$_SESSION['IDNO']=&#8217;A1234&#8242;;$_SESSION['DPT_COD'][0]=&#8217;1402&#8242;;$_SESSION['DPT_COD'][1]=&#8217;B402&#8242;;Print_r($_SESSION);echo 『&#60;br /&#62;&#60;a href=』session_test2.php』&#62;next!&#60;/a&#62;』;?&#62;
The browser show:Array ( [IDNO] =&#62; A1234 [DPT_COD] =&#62; Array ( [0] =&#62; 1402 [1] =&#62; B402 ) )next!
session_test2.php
&#60;?phpsession_start();echo 『Original SESSION array values:&#60;br /&#62;』;Print_r($_SESSION);echo 『&#60;br /&#62;&#60;br /&#62;』;
echo 『New SESSION array values:&#60;br /&#62;』;$IDNO=&#8217;Z5678&#8242;;$DPT_COD=&#8217;foobar&#8217;;Print_r($_SESSION);
session_unset();session_destroy();?&#62;
In machine 1The browser show:Original SESSION array values:Array ( [IDNO] =&#62; A1234 [DPT_COD] =&#62; Array ( [0] =&#62; 1402 [1] =&#62; [...]]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/05/04/12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
