<?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 &#187; Everything Else</title>
	<atom:link href="http://www.masaokitamura.com/category/everything-else/feed/?category_name=everything-else" 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>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>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>Xbox: Westinghouse LCD TV and Xbox 360 Universal Remote</title>
		<link>http://www.masaokitamura.com/2011/09/xbox-westinghouse-lcd-tv-and-xbox-360-universal-remote/</link>
		<comments>http://www.masaokitamura.com/2011/09/xbox-westinghouse-lcd-tv-and-xbox-360-universal-remote/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 22:53:37 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1310</guid>
		<description><![CDATA[Use Sony Xbox Remote Codes: 0123 Also, if PC input sound fails, toggle the mute on the LCD TV.]]></description>
			<content:encoded><![CDATA[<p>Use Sony Xbox Remote Codes: 0123</p>
<p>Also, if PC input sound fails, toggle the mute on the LCD TV.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/xbox-westinghouse-lcd-tv-and-xbox-360-universal-remote/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Subversion: svn undo delete before commit</title>
		<link>http://www.masaokitamura.com/2011/09/subversion-svn-undo-delete-before-commit/</link>
		<comments>http://www.masaokitamura.com/2011/09/subversion-svn-undo-delete-before-commit/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 16:11:14 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1302</guid>
		<description><![CDATA[svn revert file [file] [file] ...]]></description>
			<content:encoded><![CDATA[<pre>
svn revert file [file] [file] ...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/subversion-svn-undo-delete-before-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache: Redirect All Queries From HTTP to HTTPS</title>
		<link>http://www.masaokitamura.com/2011/09/apache-redirect-all-queries-from-http-to-https/</link>
		<comments>http://www.masaokitamura.com/2011/09/apache-redirect-all-queries-from-http-to-https/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 14:39:57 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1269</guid>
		<description><![CDATA[RedirectMatch (.*) https://host.example.com$1]]></description>
			<content:encoded><![CDATA[<pre>
  RedirectMatch (.*) https://host.example.com$1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/apache-redirect-all-queries-from-http-to-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: MySQL Set Root Password</title>
		<link>http://www.masaokitamura.com/2011/09/linux-mysql-set-root-password/</link>
		<comments>http://www.masaokitamura.com/2011/09/linux-mysql-set-root-password/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 18:09:46 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1252</guid>
		<description><![CDATA[For Windows, do this: shell> mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd'); mysql> SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('newpwd'); mysql> SET PASSWORD FOR 'root'@'%' = PASSWORD('newpwd'); The last statement is unnecessary if the mysql.user table has no &#8230; <a href="http://www.masaokitamura.com/2011/09/linux-mysql-set-root-password/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For Windows, do this:</p>
<pre>
shell> mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
mysql> SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('newpwd');
mysql> SET PASSWORD FOR 'root'@'%' = PASSWORD('newpwd');
</pre>
<p>The last statement is unnecessary if the mysql.user table has no root account with a host value of %.</p>
<p>For Unix, do this:</p>
<pre>
shell> mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
mysql> SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('newpwd');
mysql> SET PASSWORD FOR 'root'@'host_name' = PASSWORD('newpwd');
</pre>
<p>You can also use a single statement that assigns a password to all root accounts by using UPDATE to modify the mysql.user table directly. This method works on any platform:</p>
<pre>
shell> mysql -u root
mysql> UPDATE mysql.user SET Password = PASSWORD('newpwd')
    ->     WHERE User = 'root';
mysql> FLUSH PRIVILEGES;
</pre>
<p>The FLUSH statement causes the server to reread the grant tables. Without it, the password change remains unnoticed by the server until you restart it.</p>
<p>To assign passwords to the root accounts using mysqladmin, execute the following commands:</p>
<pre>
shell> mysqladmin -u root password "newpwd"
shell> mysqladmin -u root -h host_name password "newpwd"
</pre>
<p>Those commands apply both to Windows and to Unix. The double quotation marks around the password are not always necessary, but you should use them if the password contains spaces or other characters that are special to your command interpreter.</p>
<pre>
GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY 'password';
</pre>
<p><em>Source: dev.mysql.com</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/09/linux-mysql-set-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion: How To Fix  &#8220;format: permission denied&#8221;</title>
		<link>http://www.masaokitamura.com/2011/08/subversion-how-to-fix-format-permission-denied/</link>
		<comments>http://www.masaokitamura.com/2011/08/subversion-how-to-fix-format-permission-denied/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 16:40:37 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1242</guid>
		<description><![CDATA[# chmod 775 /abspath/to/svnroot]]></description>
			<content:encoded><![CDATA[<pre># chmod 775 /abspath/to/svnroot</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/08/subversion-how-to-fix-format-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: How To Fix &#8220;WARNING: The following packages cannot be authenticated!&#8221;</title>
		<link>http://www.masaokitamura.com/2011/08/ubuntu-how-to-fix-warning-the-following-packages-cannot-be-authenticated/</link>
		<comments>http://www.masaokitamura.com/2011/08/ubuntu-how-to-fix-warning-the-following-packages-cannot-be-authenticated/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 01:52:51 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1228</guid>
		<description><![CDATA[apt-get update]]></description>
			<content:encoded><![CDATA[<pre>apt-get update</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/08/ubuntu-how-to-fix-warning-the-following-packages-cannot-be-authenticated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How To Partition and Mount a Second Drive</title>
		<link>http://www.masaokitamura.com/2011/07/linux-how-to-partition-and-mount-a-second-drive/</link>
		<comments>http://www.masaokitamura.com/2011/07/linux-how-to-partition-and-mount-a-second-drive/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 17:12:00 +0000</pubDate>
		<dc:creator>Masao</dc:creator>
				<category><![CDATA[Everything Else]]></category>

		<guid isPermaLink="false">http://www.masaokitamura.com/?p=1149</guid>
		<description><![CDATA[If your Linux server is configured with two hard disks, and you want to partition your second drive, you must: Partition the secondary hard disk. Create a file system for the new partition. Mount the partition to make it accessible. &#8230; <a href="http://www.masaokitamura.com/2011/07/linux-how-to-partition-and-mount-a-second-drive/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If your Linux server is configured with two hard disks, and you want to partition your second drive, you must:</p>
<ul>
<li>Partition the secondary hard disk.</li>
<li>Create a file system for the new partition.</li>
<li>Mount the partition to make it accessible.</li>
</ul>
<p>These instructions are specific to servers setup after July 15, 2005,<br />
for servers prior to this, the path in the following steps will need to<br />
be modified slightly. The &#8216;df&#8217; command will show you how the current<br />
filesystem is mounted, normally /dev/hdc was used for the new<br />
partition.  For more advanced partitioning and mounting options, please<br />
see the vendor provided documentation for your Operating System.  </p>
<p class="note"><strong>NOTE:</strong> This article assumes you are working with a new, un-formatted disk. If this procedure is followed on a disk that contains data, the data will be destroyed.</p>
<h4>To Create a Hard Disk Partition</h4>
<ol>
<li>Via SSH, log in to your dedicated server as &#8216;root.&#8217;</li>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>/sbin/fdisk /dev/sdb</pre>
</div>
</li>
<li>Type <code>n</code> to create a new partition.</li>
<li>For extended or Primary (1-4), type <code>p</code>.</li>
<li>Accept the defaults for the partition size.</li>
<li>Accept the default for the first cylinder.</li>
<li>Accept the default for last cylinder.</li>
<li>Type <code>w</code> and press <strong>Enter</strong> to write partition information.</li>
</ol>
<h4>To Create a File System</h4>
<ol>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>/sbin/mkfs -t ext3 /dev/sdb1</pre>
</div>
<p>It takes a few minutes to create the new file system on your secondary hard drive.</li>
</ol>
<h4>To Mount the File System</h4>
<ol>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>cd /sbin</pre>
</div>
</li>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>mkdir /mnt/disk2</pre>
</div>
</li>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>chmod 777 /mnt/disk2</pre>
</div>
</li>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>/bin/mount /dev/sdb1 /mnt/disk2</pre>
</div>
</li>
<li>To ensure that your dedicated server mounts the new file system<br />
after each reboot, you need to add the command to mount the new file<br />
system to /etc/fstab.</li>
<li>We recommend a backup of /etc/fstab before the update:
<p>&bull; Type the following where mm_dd_yyyy represents the date of the backup, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>cp /etc/fstab /etc/fstab_mm_dd_yyyy</pre>
</div>
<p>&bull; Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>
echo "/dev/sdb1 /mnt/disk2  ext3 defaults 0 0" &gt;&gt; /etc/fstab</pre>
</div>
</li>
<li>Type the following, and then press <strong>Enter</strong>.
<div class="hacker">
<pre>/dev/sdb1 /mnt/disk2 ext3 defaults 0 0</pre>
</div>
</li>
</ol>
<p><em>Source: GoDaddy</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masaokitamura.com/2011/07/linux-how-to-partition-and-mount-a-second-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

