<?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>Richard Choi</title>
	<atom:link href="http://richardchoi.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://richardchoi.net</link>
	<description>Develop Log &#38; Little Life Story</description>
	<lastBuildDate>Fri, 23 Dec 2011 07:26:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Setting RewriteRule for Peaceful coexistence Rails and PHP</title>
		<link>http://richardchoi.net/setting-rewriterule-for-peaceful-coexistence-rails-and-php/</link>
		<comments>http://richardchoi.net/setting-rewriterule-for-peaceful-coexistence-rails-and-php/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 07:24:27 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=793</guid>
		<description><![CDATA[&#60;Proxy balancer://mongrel_cluster&#62; BalancerMember http://127.0.0.1:3000 BalancerMember http://127.0.0.1:3001 &#60;/Proxy&#62; RewriteEngine On # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] to RewriteEngine On # Redirect all non-static requests to cluster RewriteRule ^/$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] RewriteRule ^/(ja&#124;en&#124;zh&#124;zh\-tw&#124;ko&#124;it)/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] Knowledge DOCUMENT_ROOT /var/www/apps/xxx/public/ %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} /var/www/apps/xxx/public/aaa/ccc Reference: http://yaku.tistory.com/258 http://gypark.pe.kr/wiki/%ED%99%88%ED%8E%98%EC%9D%B4%EC%A7%80%EC%A3%BC%EC%86%8C%EA%B0%84%EB%8B%A8%ED%9E%88%ED%95%98%EA%B8%B0 http://d.hatena.ne.jp/koseki2/20090921/ModDirRewrite http://d.hatena.ne.jp/koseki2/20090611/ModRewrite http://d.hatena.ne.jp/noopable/20091009/1255067858 http://wiki.magnolia-cms.com/display/WIKI/Guide+-+How+to+configure+an+apache+load+balancer http://httpd.apache.org/docs/2.2/ja/sections.html http://mkwilson.tistory.com/entry/htaccess-%EC%84%A4%EC%A0%95 [...]]]></description>
			<content:encoded><![CDATA[<pre>&lt;Proxy balancer://mongrel_cluster&gt;
BalancerMember http://127.0.0.1:3000
BalancerMember http://127.0.0.1:3001
&lt;/Proxy&gt;</pre>
<pre>RewriteEngine On
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]</pre>
<p>to</p>
<pre>RewriteEngine On
# Redirect all non-static requests to cluster
RewriteRule ^/$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]
RewriteRule ^/(ja|en|zh|zh\-tw|ko|it)/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]</pre>
<p>Knowledge</p>
<pre>DOCUMENT_ROOT	/var/www/apps/xxx/public/
%{DOCUMENT_ROOT}/%{REQUEST_FILENAME} /var/www/apps/xxx/public/aaa/ccc</pre>
<p>Reference:</p>
<p><a href="http://yaku.tistory.com/258">http://yaku.tistory.com/258</a></p>
<p><a href="http://gypark.pe.kr/wiki/%ED%99%88%ED%8E%98%EC%9D%B4%EC%A7%80%EC%A3%BC%EC%86%8C%EA%B0%84%EB%8B%A8%ED%9E%88%ED%95%98%EA%B8%B0">http://gypark.pe.kr/wiki/%ED%99%88%ED%8E%98%EC%9D%B4%EC%A7%80%EC%A3%BC%EC%86%8C%EA%B0%84%EB%8B%A8%ED%9E%88%ED%95%98%EA%B8%B0</a></p>
<p><a href="http://d.hatena.ne.jp/koseki2/20090921/ModDirRewrite">http://d.hatena.ne.jp/koseki2/20090921/ModDirRewrite</a></p>
<p><a href="http://d.hatena.ne.jp/koseki2/20090611/ModRewrite">http://d.hatena.ne.jp/koseki2/20090611/ModRewrite</a></p>
<p><a href="http://d.hatena.ne.jp/noopable/20091009/1255067858">http://d.hatena.ne.jp/noopable/20091009/1255067858</a></p>
<p><a href="http://wiki.magnolia-cms.com/display/WIKI/Guide+-+How+to+configure+an+apache+load+balancer">http://wiki.magnolia-cms.com/display/WIKI/Guide+-+How+to+configure+an+apache+load+balancer</a></p>
<p><a href="http://httpd.apache.org/docs/2.2/ja/sections.html">http://httpd.apache.org/docs/2.2/ja/sections.html</a></p>
<p><a href="http://mkwilson.tistory.com/entry/htaccess-%EC%84%A4%EC%A0%95">http://mkwilson.tistory.com/entry/htaccess-%EC%84%A4%EC%A0%95</a></p>
<p><a href="http://httpd.apache.org/docs/2.0/ko/howto/htaccess.html">http://httpd.apache.org/docs/2.0/ko/howto/htaccess.html</a></p>
<p><a href="http://httpd.apache.org/docs/2.0/ko/howto/htaccess.html">http://httpd.apache.org/docs/2.0/ko/howto/htaccess.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/setting-rewriterule-for-peaceful-coexistence-rails-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.1.x to 5.2.x in CentOS 5.5</title>
		<link>http://richardchoi.net/php-5-1-x-to-5-2-x-in-centos-5-5/</link>
		<comments>http://richardchoi.net/php-5-1-x-to-5-2-x-in-centos-5-5/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 07:16:25 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=789</guid>
		<description><![CDATA[# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka # vi /etc/yum.repos.d/utterramblings.repo [utterramblings] name=Jason’s Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka # yum update php* remove all about mysql # service mysqld stop # yum remove mysql-server # yum remove mysql &#8211; Check rpm -qa &#124; grep mysql &#8211; # yum &#8211;enablerepo=remi,epel install php php-mbstring php-mysql mysql-server # service mysqld [...]]]></description>
			<content:encoded><![CDATA[<p># rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</p>
<p># vi /etc/yum.repos.d/utterramblings.repo</p>
<p>[utterramblings]<br />
name=Jason’s Utter Ramblings Repo<br />
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</p>
<p># yum update php*</p>
<p>remove all about mysql</p>
<p># service mysqld stop</p>
<p># yum remove mysql-server</p>
<p># yum remove mysql</p>
<p>&#8211; Check rpm -qa | grep mysql &#8211;</p>
<p># yum &#8211;enablerepo=remi,epel install php php-mbstring php-mysql mysql-server</p>
<p># service mysqld start</p>
<p># mysql_upgrade -u root -p</p>
<p>Enter password: Looking for &#8216;mysql&#8217; as: mysqlLooking for &#8216;mysqlcheck&#8217; as: mysqlcheckRunning &#8216;mysqlcheck with default connection argumentsRunning &#8216;mysqlcheck with default connection argumentscafetalk_development.additional_times              OKcafetalk_development.admins                        OKcafetalk_development.analyze_log                   OKcafetalk_development.analyze_log_daily             OKcafetalk_development.analyze_log_daily_related_users OKcafetalk_development.appeals                       OK</p>
<p>&#8230;</p>
<p># vi /etc/yum.repos.d/utterramblings.repo</p>
<p>enabled=1 -&gt; enabled=0</p>
<p># /etc/rc.d/init.d/httpd restart</p>
<p># php -v</p>
<p><strong>Reference:</strong></p>
<p><a href="http://www.bamboo.tk/archives/85.html">http://www.bamboo.tk/archives/85.html</a></p>
<p><a href="http://forum.tsukaeru.net/viewtopic.php?t=4273">http://forum.tsukaeru.net/viewtopic.php?t=4273</a></p>
<p><a href="http://d.hatena.ne.jp/red_snow/20101006/1286324567">http://d.hatena.ne.jp/red_snow/20101006/1286324567</a></p>
<p><a href="http://centossrv.com/patio/patio.cgi?mode=res&amp;no=1574&amp;pno=1">http://centossrv.com/patio/patio.cgi?mode=res&amp;no=1574&amp;pno=1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/php-5-1-x-to-5-2-x-in-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The basic of to create a Asynchronous upload (Ajax)</title>
		<link>http://richardchoi.net/the-basic-of-to-create-a-asynchronous-upload-ajax/</link>
		<comments>http://richardchoi.net/the-basic-of-to-create-a-asynchronous-upload-ajax/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:30:03 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Upload]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=783</guid>
		<description><![CDATA[See this then open something in your brain. http://hungred.com/how-to/tutorial-easiest-asynchronous-upload-file-ajax-upload/ http://hungred.com/how-to/tutorial-determine-asynchronous-upload-completion-javascript-php/ Some idea: http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery http://www.techiegyan.com/2008/06/09/ajax-file-upload-jquery-plugin/ Some library: http://valums.com/ajax-upload/ This is must be helped: http://awhile.us/blog/ko/2011/11/iframe-communicate-inside-outside/]]></description>
			<content:encoded><![CDATA[<p>See this then open something in your brain.</p>
<p><a href="http://hungred.com/how-to/tutorial-easiest-asynchronous-upload-file-ajax-upload/">http://hungred.com/how-to/tutorial-easiest-asynchronous-upload-file-ajax-upload/</a></p>
<p><a href="http://hungred.com/how-to/tutorial-determine-asynchronous-upload-completion-javascript-php/">http://hungred.com/how-to/tutorial-determine-asynchronous-upload-completion-javascript-php/</a></p>
<p>Some idea:</p>
<p><a href="http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery">http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery</a></p>
<p><a href="http://www.techiegyan.com/2008/06/09/ajax-file-upload-jquery-plugin/">http://www.techiegyan.com/2008/06/09/ajax-file-upload-jquery-plugin/</a></p>
<p>Some library:</p>
<p><a href="http://valums.com/ajax-upload/">http://valums.com/ajax-upload/</a></p>
<p>This is must be helped:</p>
<p><a href="http://awhile.us/blog/ko/2011/11/iframe-communicate-inside-outside/">http://awhile.us/blog/ko/2011/11/iframe-communicate-inside-outside/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/the-basic-of-to-create-a-asynchronous-upload-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Menu and list design reference</title>
		<link>http://richardchoi.net/menu-and-list-design-reference/</link>
		<comments>http://richardchoi.net/menu-and-list-design-reference/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:28:03 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=781</guid>
		<description><![CDATA[Showcase Of Beautiful Vertical Navigation Designs http://www.smashingmagazine.com/2010/04/19/showcase-of-beautiful-vertical-navigation-designs/ 40 Creative Navigation Menus http://www.problogdesign.com/inspiration/40-creative-navigation-menus/ How To Design The Perfect List http://webdesigntuts.com/web-design/lists-in-modern-web-design/ 50 New Beautiful Blog Designs http://www.smashingmagazine.com/2009/07/22/50-new-beautiful-blog-designs/ 25 Well-Designed Church Websites http://vandelaydesign.com/blog/galleries/church-websites/ &#160;]]></description>
			<content:encoded><![CDATA[<p>Showcase Of Beautiful Vertical Navigation Designs</p>
<p><a href="http://www.smashingmagazine.com/2010/04/19/showcase-of-beautiful-vertical-navigation-designs/">http://www.smashingmagazine.com/2010/04/19/showcase-of-beautiful-vertical-navigation-designs/</a></p>
<p>40 Creative Navigation Menus</p>
<p><a href="http://www.problogdesign.com/inspiration/40-creative-navigation-menus/">http://www.problogdesign.com/inspiration/40-creative-navigation-menus/</a></p>
<p>How To Design The Perfect List</p>
<p><a href="http://webdesigntuts.com/web-design/lists-in-modern-web-design/">http://webdesigntuts.com/web-design/lists-in-modern-web-design/</a></p>
<p>50 New Beautiful Blog Designs</p>
<p><a href="http://www.smashingmagazine.com/2009/07/22/50-new-beautiful-blog-designs/">http://www.smashingmagazine.com/2009/07/22/50-new-beautiful-blog-designs/</a></p>
<p>25 Well-Designed Church Websites</p>
<p><a href="http://vandelaydesign.com/blog/galleries/church-websites/">http://vandelaydesign.com/blog/galleries/church-websites/</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/menu-and-list-design-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parse video id using preg_match like YouTube</title>
		<link>http://richardchoi.net/parse-video-id-using-preg_match-like-youtube/</link>
		<comments>http://richardchoi.net/parse-video-id-using-preg_match-like-youtube/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:19:45 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Vimeo]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=776</guid>
		<description><![CDATA[The best answer (but just YouTube) http://stackoverflow.com/questions/2936467/parse-youtube-video-id-using-preg-match if (preg_match('%(?:youtube\.com/(?:[^/]+/.+/&#124;(?:v&#124;e(?:mbed)?)/&#124;.*[?&#38;]v=)&#124;youtu\.be/)([^"&#38;?/ ]{11})%i', $url, $match)) {     $video_id = $match[1]; } Some principle of Vimeo and YouTube http://stackoverflow.com/questions/5087681/youtube-vimeo-video-id-from-embed-code-or-from-url-with-php-regular-expression-r About Vimeo http://stackoverflow.com/questions/5612602/improving-regex-for-parsing-youtube-vimeo-urls http://stackoverflow.com/questions/2916544/parsing-a-vimeo-id-using-javascript http://stackoverflow.com/questions/4857176/problems-while-trying-to-parse-the-id-from-a-vimeo-url &#160;]]></description>
			<content:encoded><![CDATA[<p><strong>The best answer (but just YouTube)</strong></p>
<p><a title="http://stackoverflow.com/questions/2936467/parse-youtube-video-id-using-preg-match" href="http://stackoverflow.com/questions/2936467/parse-youtube-video-id-using-preg-match">http://stackoverflow.com/questions/2936467/parse-youtube-video-id-using-preg-match</a></p>
<pre><code>if (preg_match('%(?:youtube\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&amp;]v=)|youtu\.be/)([^"&amp;?/ ]{11})%i', $url, $match)) {
    $video_id = $match[1];
}</code></pre>
<p><strong>Some principle of Vimeo and YouTube</strong></p>
<p><a href="http://stackoverflow.com/questions/5087681/youtube-vimeo-video-id-from-embed-code-or-from-url-with-php-regular-expression-r">http://stackoverflow.com/questions/5087681/youtube-vimeo-video-id-from-embed-code-or-from-url-with-php-regular-expression-r</a></p>
<p><strong>About Vimeo</strong></p>
<p><a href="http://stackoverflow.com/questions/5612602/improving-regex-for-parsing-youtube-vimeo-urls">http://stackoverflow.com/questions/5612602/improving-regex-for-parsing-youtube-vimeo-urls</a></p>
<p><a href="http://stackoverflow.com/questions/2916544/parsing-a-vimeo-id-using-javascript">http://stackoverflow.com/questions/2916544/parsing-a-vimeo-id-using-javascript</a></p>
<p><a href="http://stackoverflow.com/questions/4857176/problems-while-trying-to-parse-the-id-from-a-vimeo-url">http://stackoverflow.com/questions/4857176/problems-while-trying-to-parse-the-id-from-a-vimeo-url</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/parse-video-id-using-preg_match-like-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using date in Rails</title>
		<link>http://richardchoi.net/using-date-in-rails/</link>
		<comments>http://richardchoi.net/using-date-in-rails/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 03:49:52 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=772</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre><code><%
Time.now.utc.to_s(:db) # 2011-01-01 01:01:01
Time.now.utc.strftime("%Y%m%d") # 2011-01-01 by UTC
Date.today.year.to_s + "07".to_s  # 201107 by Timezone
Date.today.month.to_s  # 10 by Timezone
Time.now.utc.strftime("%Y").to_s + sprintf('%02d', limit_month).to_s # 201107
# Yes, below code return true
(Date.today.year.to_s + "07".to_s) < (Date.today.year.to_s + "09".to_s)

if ( 1 ) ... end # is true
if ( 0 ) ... end # is TRUE
if ( true ) ... end # is true
if ( false ) ... end # is false
%>
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/using-date-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create bare git repository</title>
		<link>http://richardchoi.net/create-bare-git-repository/</link>
		<comments>http://richardchoi.net/create-bare-git-repository/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 02:42:58 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=768</guid>
		<description><![CDATA[$ mkdir some_project.git $ cd some_project.git/ $ git --bare init $ touch ./git-daemon-export-ok Reference: http://kovshenin.com/archives/howto-remote-shared-git-repository/ http://namhyung.springnote.com/pages/3132772]]></description>
			<content:encoded><![CDATA[<pre><code>$ mkdir some_project.git
$ cd some_project.git/
$ git --bare init
$ touch ./git-daemon-export-ok
</code></pre>
<h3>Reference:</h3>
<p>http://kovshenin.com/archives/howto-remote-shared-git-repository/</p>
<p>http://namhyung.springnote.com/pages/3132772</p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/create-bare-git-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using raw SQL in Rails</title>
		<link>http://richardchoi.net/using-raw-sql-in-rails/</link>
		<comments>http://richardchoi.net/using-raw-sql-in-rails/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 03:01:05 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=763</guid>
		<description><![CDATA[Executing raw SQL my_model.connection.execute('...') from http://www.rabbitcreative.com/2007/06/08/executing-raw-sql-in-rails/ Get rows Get row Reference: http://www.rabbitcreative.com/2007/06/08/executing-raw-sql-in-rails/]]></description>
			<content:encoded><![CDATA[<h3>Executing raw SQL</h3>
<pre><code>my_model.connection.execute('...')
</code></pre>
<p>from http://www.rabbitcreative.com/2007/06/08/executing-raw-sql-in-rails/</p>
<h3>Get rows</h3>
<pre><code><%
  @items = my_model.find_by_sql(["
    SELECT * FROM items WHERE 1 ORDER BY id DESC LIMIT 0, 10
  "]);
%>

<% for item in @items %>
  <%= item.user.id %>
<% end %>
</code></pre>
<h3>Get row</h3>
<pre><code><%
  @items = my_model.find_by_sql(["
    SELECT * FROM items WHERE 1 ORDER BY id DESC LIMIT 0, 10
  "]).first;
%>

<%= item.user.id %>
</code></pre>
<h3>Reference:</h3>
<p>http://www.rabbitcreative.com/2007/06/08/executing-raw-sql-in-rails/</p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/using-raw-sql-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Cookie</title>
		<link>http://richardchoi.net/using-cookie/</link>
		<comments>http://richardchoi.net/using-cookie/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 04:48:08 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Cookie]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=753</guid>
		<description><![CDATA[in PHP Environment define('COOKIE_NAME', 'my_cookie'); define('COOKIE_PATH', '/'); define('COOKIE_DOMAIN', 'www.my_site.com'); // or .my_site.com. Share cookies with sub domains. $expiration = time() + 172800; // 2 days $cookie = 'Hello Cookie!'; Set setcookie(COOKIE_NAME, $cookie, $expiration, COOKIE_PATH, COOKIE_DOMAIN); Get $cookie = empty($_COOKIE[COOKIE_NAME]) ? $_COOKIE[COOKIE_NAME] : null; Clear setcookie(COOKIE_NAME, ' ', time() - 31536000, COOKIE_PATH, COOKIE_DOMAIN); inspired from WordPress [...]]]></description>
			<content:encoded><![CDATA[<h2>in PHP</h2>
<h3>Environment</h3>
<pre><code>define('COOKIE_NAME', 'my_cookie');
define('COOKIE_PATH', '/');
define('COOKIE_DOMAIN', 'www.my_site.com'); // or .my_site.com. Share cookies with sub domains.

$expiration = time() + 172800; // 2 days
$cookie = 'Hello Cookie!';
</code></pre>
<h3>Set</h3>
<pre><code>setcookie(COOKIE_NAME, $cookie, $expiration, COOKIE_PATH, COOKIE_DOMAIN);
</code></pre>
<h3>Get</h3>
<pre><code>$cookie = empty($_COOKIE[COOKIE_NAME]) ? $_COOKIE[COOKIE_NAME] : null;
</code></pre>
<h3>Clear</h3>
<pre><code>setcookie(COOKIE_NAME, ' ', time() - 31536000, COOKIE_PATH, COOKIE_DOMAIN);
</code></pre>
<p>inspired from WordPress source code.</p>
<h3>Reference:</h3>
<p>http://php.net/manual/en/function.setcookie.php</p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/using-cookie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Node.js usages</title>
		<link>http://richardchoi.net/node-js-usages/</link>
		<comments>http://richardchoi.net/node-js-usages/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 05:36:59 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://richardchoi.net/?p=749</guid>
		<description><![CDATA[There are my favorite links. Install &#038; Basic http://nodeguide.com/beginner.html http://d.hatena.ne.jp/masaakib/20110526/1306396268 http://firejune.com/1683#p_ps Express http://d.hatena.ne.jp/edo_m18/20111003/1317654858 Socket.io &#038; Chatting server tutorial http://d.hatena.ne.jp/Jxck/20110730/1312042603 &#8211; Good! http://d.hatena.ne.jp/t_43z/20101020/1287546063 http://awhile.us/blog/ko/tag/socket-io/ &#8211; Mouse point playing https://github.com/joshmarshall/uberchat/blob/master/app.js &#8211; Chatroom http://spechal.com/2011/03/19/super-simple-node-js-chatroom/ &#8211; Chatroom http://firejune.com/1700/Socket.IO+학습+-+퍼블릭%2F브로드캐스트%2F프라이빗+구분?stext=socket.io &#8211; Public, Private, Broadcast MySQL http://sakuratan.biz/archives/3101 http://groups.google.com/group/nodejs_jp/browse_thread/thread/d42afe3863301ef1 Cloud9IDE &#038; Heroku http://mudchobo.tistory.com/525]]></description>
			<content:encoded><![CDATA[<p>There are my favorite links.</p>
<h4>Install &#038; Basic</h4>
<p>http://nodeguide.com/beginner.html</p>
<p>http://d.hatena.ne.jp/masaakib/20110526/1306396268</p>
<p>http://firejune.com/1683#p_ps</p>
<h4>Express</h4>
<p>http://d.hatena.ne.jp/edo_m18/20111003/1317654858</p>
<h4>Socket.io &#038; Chatting server tutorial</h4>
<p>http://d.hatena.ne.jp/Jxck/20110730/1312042603 &#8211; Good!</p>
<p>http://d.hatena.ne.jp/t_43z/20101020/1287546063</p>
<p>http://awhile.us/blog/ko/tag/socket-io/ &#8211; Mouse point playing<br />
https://github.com/joshmarshall/uberchat/blob/master/app.js &#8211; Chatroom<br />
http://spechal.com/2011/03/19/super-simple-node-js-chatroom/ &#8211; Chatroom<br />
http://firejune.com/1700/Socket.IO+학습+-+퍼블릭%2F브로드캐스트%2F프라이빗+구분?stext=socket.io &#8211; Public, Private, Broadcast</p>
<h4>MySQL</h4>
<p>http://sakuratan.biz/archives/3101</p>
<p>http://groups.google.com/group/nodejs_jp/browse_thread/thread/d42afe3863301ef1</p>
<h4>Cloud9IDE &#038; Heroku</h4>
<p>http://mudchobo.tistory.com/525</p>
]]></content:encoded>
			<wfw:commentRss>http://richardchoi.net/node-js-usages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

