<?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>Masao Kitamura</title>
	<atom:link href="http://www.masaokitamura.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masaokitamura.com</link>
	<description>Blog</description>
	<lastBuildDate>Wed, 25 Apr 2012 23:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-beta1-17916</generator>
		<item>
		<title>NFS: Forcing NFS clients to use NFS Version 3</title>
		<link>http://www.masaokitamura.com/2012/04/nfs-forcing-nfs-clients-to-use-nfs-version-3/</link>
		<comments>http://www.masaokitamura.com/2012/04/nfs-forcing-nfs-clients-to-use-nfs-version-3/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 16:42:21 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1369</guid>
		<description><![CDATA[/etc/auto.nfs * -nfsvers=3 nfs-server-host:/path-to-nfs-root/&#038;]]></description>
			<content:encoded><![CDATA[<pre>
/etc/auto.nfs
* -nfsvers=3 nfs-server-host:/path-to-nfs-root/&#038;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/04/nfs-forcing-nfs-clients-to-use-nfs-version-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIT: Setting up a basic repo</title>
		<link>http://www.masaokitamura.com/2012/04/git-setting-up-a-basic-repo/</link>
		<comments>http://www.masaokitamura.com/2012/04/git-setting-up-a-basic-repo/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 14:42:52 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1347</guid>
		<description><![CDATA[server $ mkdir ~/repos/ server $ cd ~/repos/ server $ GIT_DIR=project.git git init server $ cd project.git server $ git --bare update-server-info # for HTTP or HTTPS only server $ cp hooks/post-update.sample hooks/post-update By cloning: client $ git clone user@server:~/repos/project.git &#8230; <a href="http://www.masaokitamura.com/2012/04/git-setting-up-a-basic-repo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>
server $ mkdir ~/repos/
server $ cd ~/repos/
server $ GIT_DIR=project.git git init
server $ cd project.git
server $ git --bare update-server-info    # for HTTP or HTTPS only
server $ cp hooks/post-update.sample hooks/post-update
</pre>
<p>By cloning:</p>
<pre>
client $ git clone user@server:~/repos/project.git
</pre>
<p>By init:</p>
<pre>
client $ mkdir project
client $ cd project
client $ git init
client $ git remote add origin user@server:~/repos/project.git/
</pre>
<p>Adding files:</p>
<pre>
client $ touch README
client $ git add README
client $ git commit -m "Example."
client $ git push origin master
</pre>
<p><em>Source: http://www.mindfuzz.net/?p=250</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/04/git-setting-up-a-basic-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Switch Case Regex</title>
		<link>http://www.masaokitamura.com/2012/04/php-switch-case-regex/</link>
		<comments>http://www.masaokitamura.com/2012/04/php-switch-case-regex/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 21:57:02 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Languages]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1341</guid>
		<description><![CDATA[Switch-case statement works like if-elseif. As well as you can use regex for if-elseif, you can also use it in switch-case. if (preg_match('/John.*/', $name)) { // do stuff for people whose name is John, Johnny, ... } can be coded &#8230; <a href="http://www.masaokitamura.com/2012/04/php-switch-case-regex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Switch-case statement works like if-elseif.<br />
As well as you can use regex for if-elseif, you can also use it in switch-case.</p>
<pre>
if (preg_match('/John.*/', $name)) {
    // do stuff for people whose name is John, Johnny, ...
}</pre>
<p>can be coded as</p>
<pre>switch $name {
    case (preg_match('/John.*/', $name) ? true : false) :
        // do stuff for people whose name is John, Johnny, ...
        break;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/04/php-switch-case-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl: How To Fix malformed UTF-8 character in JSON string</title>
		<link>http://www.masaokitamura.com/2012/03/perl-how-to-fix-malformed-utf-8-character-in-json-string/</link>
		<comments>http://www.masaokitamura.com/2012/03/perl-how-to-fix-malformed-utf-8-character-in-json-string/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 16:07:37 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1339</guid>
		<description><![CDATA[$json = utf8::upgrade($json);]]></description>
			<content:encoded><![CDATA[<pre>
$json = utf8::upgrade($json);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/03/perl-how-to-fix-malformed-utf-8-character-in-json-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 11.04: Google Chrome Sync Server is Busy</title>
		<link>http://www.masaokitamura.com/2012/03/ubuntu-11-04-google-chrome-sync-server-is-busy/</link>
		<comments>http://www.masaokitamura.com/2012/03/ubuntu-11-04-google-chrome-sync-server-is-busy/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 15:16:02 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1337</guid>
		<description><![CDATA[Download and install the latest Google Chrome debian package: # dpkg -i google-chrome-stable_current_i386.deb (Reading database ... 214062 files and directories currently installed.) Preparing to replace google-chrome-stable 13.0.782.220-r99552 (using google-chrome-stable_current_i386.deb) ... Unpacking replacement google-chrome-stable ... Setting up google-chrome-stable (17.0.963.83-r127885) ... Processing &#8230; <a href="http://www.masaokitamura.com/2012/03/ubuntu-11-04-google-chrome-sync-server-is-busy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Download and install the latest Google Chrome debian package:</p>
<p><code># dpkg -i google-chrome-stable_current_i386.deb<br />
(Reading database ... 214062 files and directories currently installed.)<br />
Preparing to replace google-chrome-stable 13.0.782.220-r99552 (using google-chrome-stable_current_i386.deb) ...<br />
Unpacking replacement google-chrome-stable ...<br />
Setting up google-chrome-stable (17.0.963.83-r127885) ...<br />
Processing triggers for bamfdaemon ...<br />
Rebuilding /usr/share/applications/bamf.index...<br />
Processing triggers for desktop-file-utils ...<br />
Processing triggers for python-gmenu ...<br />
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...<br />
Processing triggers for man-db ...<br />
Processing triggers for python-support ...</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/03/ubuntu-11-04-google-chrome-sync-server-is-busy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 11.10: Disable System Beep</title>
		<link>http://www.masaokitamura.com/2012/03/ubuntu-11-10-disable-system-beep/</link>
		<comments>http://www.masaokitamura.com/2012/03/ubuntu-11-10-disable-system-beep/#comments</comments>
		<pubDate>Sun, 25 Mar 2012 15:39:29 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1334</guid>
		<description><![CDATA[Applications -> System Tools -> System Settings -> Sound -> Sound Effects tab Click the &#8220;Mute&#8221; checkbox next to the &#8220;Alert Volume&#8221; slider.]]></description>
			<content:encoded><![CDATA[<p>Applications -> System Tools -> System Settings -> Sound -> Sound Effects tab</p>
<p>Click the &#8220;Mute&#8221; checkbox next to the &#8220;Alert Volume&#8221; slider.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/03/ubuntu-11-10-disable-system-beep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 11.10: How To Disable Unity</title>
		<link>http://www.masaokitamura.com/2012/03/ubuntu-11-10-how-to-disable-unity/</link>
		<comments>http://www.masaokitamura.com/2012/03/ubuntu-11-10-how-to-disable-unity/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 00:59:59 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1330</guid>
		<description><![CDATA[# apt-get install -y gnome-panel]]></description>
			<content:encoded><![CDATA[<p># apt-get install -y gnome-panel</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2012/03/ubuntu-11-10-how-to-disable-unity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Get URL Content Using PHP Curl</title>
		<link>http://www.masaokitamura.com/2011/11/php-get-url-content-using-php-curl/</link>
		<comments>http://www.masaokitamura.com/2011/11/php-get-url-content-using-php-curl/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 14:56:31 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Languages]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1326</guid>
		<description><![CDATA[/* gets the data from a URL */ function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); return $data; } Source: http://davidwalsh.name/download-urls-content-php-curl]]></description>
			<content:encoded><![CDATA[<pre>
/* gets the data from a URL */
function get_data($url)
{
  $ch = curl_init();
  $timeout = 5;
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
  $data = curl_exec($ch);
  curl_close($ch);
  return $data;
}
</pre>
<p><em>Source: http://davidwalsh.name/download-urls-content-php-curl</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/11/php-get-url-content-using-php-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netgear: Using WNDR3700 as Wireless Access Point</title>
		<link>http://www.masaokitamura.com/2011/11/netgear-using-wndr3700-as-wireless-access-point/</link>
		<comments>http://www.masaokitamura.com/2011/11/netgear-using-wndr3700-as-wireless-access-point/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 18:06:54 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1321</guid>
		<description><![CDATA[Basic Configuration WNDR3700 needs to be configured using its installation CD After it is set to factory default, its default IP is 192.168.1.1 Access Point Setup Plug your Internet connection into the WAN port (yellow) on the WNDR3700 Power cycle &#8230; <a href="http://www.masaokitamura.com/2011/11/netgear-using-wndr3700-as-wireless-access-point/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div><span style="font-size: small;"><span class="Apple-style-span" style="line-height: 24px;">Basic Configuration</span></span></div>
<ul>
<li>WNDR3700 needs to be configured using its installation CD</li>
<li>After it is set to factory default, its default IP is 192.168.1.1</li>
</ul>
<div><span style="font-size: small;"><span class="Apple-style-span" style="line-height: 24px;">Access Point Setup</span></span></div>
<div>
<ul>
<li><span style="font-size: small;">Plug your Internet connection into the WAN port (yellow) on the WNDR3700</span></li>
<li><span style="font-size: small;">Power cycle the router</span></li>
<li><span style="font-size: small;">The router will get a WAN IP and distribute IPs as necessary to connected clients</span></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/11/netgear-using-wndr3700-as-wireless-access-point/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac: How To Shutdown Using Command Line</title>
		<link>http://www.masaokitamura.com/2011/10/mac-how-to-shutdown-using-command-line/</link>
		<comments>http://www.masaokitamura.com/2011/10/mac-how-to-shutdown-using-command-line/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 12:04:20 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1317</guid>
		<description><![CDATA[Crontab (shutdown every morning at 3am): 0 3 * * * /sbin/shutdown -h now]]></description>
			<content:encoded><![CDATA[<p>Crontab (shutdown every morning at 3am):</p>
<pre>
0 3 * * * /sbin/shutdown -h now
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/10/mac-how-to-shutdown-using-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

