<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Fumihiro Kato / 加藤 文彦 &#187; WordPressFumihiro Kato / 加藤 文彦</title>
	<atom:link href="http://fumi.me/category/software/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://fumi.me</link>
	<description>Webやガジェット好き</description>
	<lastBuildDate>Thu, 17 May 2012 14:47:24 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/category/software/wordpress/feed/" />
		<item>
		<title>MySQL4.0から5.0への移行</title>
		<link>http://fumi.me/2010/01/31/mysql/</link>
		<comments>http://fumi.me/2010/01/31/mysql/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 13:19:54 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[SharkSpace]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=2835</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2010/01/31/mysql/&amp;text=MySQL4.0から5.0への移行&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
さくらインターネットからSharkSpaceに移行するのに一番の問題がMySQLでした．MySQLは4.0と4.1とで文字の扱いが大きく変わっています．また，MySQLの文字の問題は環境によって様々なケースがあり，これを&#8230; <a href="http://fumi.me/2010/01/31/mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2010/01/31/mysql/&amp;text=MySQL4.0から5.0への移行&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="MySQL4.0から5.0への移行"  title="MySQL4.0から5.0への移行 image" /></a></div>
<!-- AdSense Now! V3.07 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadin" style="float:right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-3851768881924732";
/* 200x200 */
google_ad_slot = "9928212714";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>さくらインターネットからSharkSpaceに移行するのに一番の問題がMySQLでした．MySQLは4.0と4.1とで文字の扱いが大きく変わっています．また，MySQLの文字の問題は環境によって様々なケースがあり，これをすれば良いという解決方法がありません．きちんと現状を把握して，それぞれの環境に合わせて解決するしかありません．詳しくは<a href="http://www.mysql.gr.jp/frame/modules/bwiki/?FAQ#content_1_40">日本MySQLユーザ会のWiki</a>を参照してください．ここでは<cite>MySQL-4.0, 3.X を現在運用しているひとは原則今のままキープ</cite>，と言われてしまっています．</p>
<p>色々試行錯誤の結果，私の場合は，&#8221;<a href="http://www.moreslowly.jp/mw/index.php?title=%E3%81%95%E3%81%8F%E3%82%89%E3%81%AE%E3%83%AC%E3%83%B3%E3%82%BF%E3%83%AB%E3%82%B5%E3%83%BC%E3%83%90%E3%81%A7_MySQL_4.0_%E3%81%8B%E3%82%89_5.1_%E3%81%B8%E7%A7%BB%E8%A1%8C%E3%81%97%E3%81%9F%E8%A8%98%E9%8C%B2">さくらのレンタルサーバで MySQL 4.0 から 5.1 へ移行した記録</a>&#8220;が参考になりました．以下に手順を書きます．</p>
<p>まず，私の場合，MySQL4.0の設定はujisでしたが，データ自体はutf8にしていました．そのため，データをそのまま取得する必要があります．そこで，敢えて5.xのmysqldump を使い，&#8211;default-character-set=utf8を指定することでうまくいきました．mysqldump-4.0はutf8に対応していないため，5.xのを使う必要があります．実行時に一つ文句を言ってきましたが，問題はないようです．</p>
<pre>
$ mysqldump --user=user --password=pass --host=db --default-character-set=utf8  dbname > dump
</pre>
<p>次にdumpファイルの中に記述されている以下の行をsedなどで全部除きます．</p>
<pre>
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = @saved_cs_client;
</pre>
<p>その後，dumpファイルの最初に以下の行を加えました．これでdumpをリストアするときの環境をutf8にしてくれます．
</p>
<pre>
SET names utf8;
</pre>
<p>ここまで準備できたら，SharkSpaceのcPanelでデータベースの設定をします．cPanelは日本語化されているのでやり方はすぐわかると思います．Panel内にデータベースの項目がありますので，そこでデータベースとデータベース用ユーザを作成し，ユーザに権限を与えれば良いです．データベースはusername_hogeというデータベース名であればいくらでも作れます．</p>
<p>また，phpMyAdminで作成したデータベースを選択し，操作 -> 照合順序のところで utf8_general_ci を選択しておきました．</p>
<p>最後にsshでアクセスして，mysqlコマンドでリストアすればOKでした．</p>
<pre>
$ mysql --user=user --password=pass --host=host dbname < dump
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'MySQL4.0から5.0への移行',url: 'http://fumi.me/2010/01/31/mysql/',contentID: 'post-2835',code: 'fumi',suggestTags: 'Hosting,MySQL,SharkSpace,WordPress',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="MySQL4.0から5.0への移行 image" alt="MySQL4.0から5.0への移行" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/hosting/" title="Hosting" rel="tag">Hosting</a>, <a href="http://fumi.me/tag/mysql/" title="MySQL" rel="tag">MySQL</a>, <a href="http://fumi.me/tag/sharkspace/" title="SharkSpace" rel="tag">SharkSpace</a>, <a href="http://fumi.me/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2010/01/31/mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2010/01/31/mysql/" />
	</item>
		<item>
		<title>SharkSpaceに移転</title>
		<link>http://fumi.me/2010/01/31/sharkspace/</link>
		<comments>http://fumi.me/2010/01/31/sharkspace/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 12:09:12 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[SharkSpace]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=2830</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2010/01/31/sharkspace/&amp;text=SharkSpaceに移転&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
当サイトをSharkSpaceというホスティングサービスに移転完了しました． さくらインターネットのスタンダードを今まで使っていましたが，色々問題がありました．まず，重かったです．特に管理画面が重く，いつまで待っても編集&#8230; <a href="http://fumi.me/2010/01/31/sharkspace/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2010/01/31/sharkspace/&amp;text=SharkSpaceに移転&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="SharkSpaceに移転"  title="SharkSpaceに移転 image" /></a></div>
<p>当サイトを<a href="https://www.sharkspace.com/sharkcenter/aff.php?aff=205">SharkSpace</a>というホスティングサービスに移転完了しました．</p>
<p>さくらインターネットのスタンダードを今まで使っていましたが，色々問題がありました．まず，重かったです．特に管理画面が重く，いつまで待っても編集できないということが良くあったため，更新するのが億劫になっていました．また，自分がさくらを使い始めたときにはMySQL4.0.xしかなかったのですが，WordPress2.9からMySQL4.0をサポートしなくなったので，アップグレードできずにいました．現在さくらでもMySQL5.0.xが使えるのですが，どちらにしろ移行作業をしないといけないので，移転先を探していました．私が望んでいた要件は以下の通りです．</p>
<ol>
<li>ssh</li>
<li>WordPressの速度</li>
<li>MySQL5</li>
<li>容量 (Disk･転送)</li>
<li>価格</li>
</ol>
<p>1. のsshがなかなか厳しい条件です．何故か未だにsshを提供しない，または条件付きのホスティングサービスが多いのです．sshでアクセスするのは基本だと思うのですが，この条件でかなり選択肢が減ります．国内で且つ低価格でsshを提供するのはさくらかxrea系列くらいです．また，4. Disk容量については，さくらスタンダードの3GBでは足りなかったのと，月の転送量が10GBを越えてきたので，それを余裕を持って上回るものを探す必要がありました．</p>
<p>この条件で探すと国内では割高なので，海外のホスティングサービスを中心に探していました．その中で，安定した評判を得ていたのはBlueHost系列 (<a href="http://www.bluehost.com/">BlueHost</a>, <a href="http://www.hostmonster.com/">HostMonster</a>, <a href="http://hosting.fastdomain.com/">FastDomain</a>)でした．値段も6-7USD/monthからと，そこそこです．sshを使うには，アカウント作成後にPhoto ID (パスポートなど)を登録する必要があるというのが面倒ですが，それ以外は良さそうでした．</p>
<p>試しにHostMonsterとかを使ってみようかと思っていたところで，<a href="https://www.sharkspace.com/sharkcenter/aff.php?aff=205">SharkSpace</a>という，聞いたことのないホスティングサービスを推薦しているサイトを見つけました(<a href="http://kore1server.com/">海外サーバーコレがイチばん!</a>)．読んでみるとなかなか良さそうなことが書いてあるので，海外のホスティングサービスフォーラムとかも見てみたところ，確かに地味に評判が良さそうでした．個人的にはsshがPhoto IDなしでいけそうだというところと，値段が安いことに惹かれて，使ってみることにしました．</p>
<p>値段は，真ん中のHammerheadコースの2年契約だと7.95USD/月(190.80USD/2年)なんですが，50%offクーポン(クーポンコード: <strong>50offlife</strong>)があるので，3.975USD/月(95.4USD/2年)になります．今1USD=90JPYなので，大体360円/月です．これは安い．これでDisk容量が20GB，データ転送が500GBあります．PHPもモジュールで動きます．さくらのようにCGIモードではありません．</p>
<p>契約してわかったことですが，残念ながらsshを使うにはやはりPhoto IDが必要でした．仕方がないのでiPhoneでIDを写真に撮って，手続きしました．5分程ほどでsshアクセスできるようにしてくれたので，応対は良いですね．</p>
<p>今のところ，不満点はPhoto IDだけで，それ以外はかなり快適に使っています．まだcronで動かしているスクリプトがあるのでしばらくさくらも使いますが，少しずつ移していこうと思っています．</p>
<p>以下は参考サイトです．実際のMySQLの移転作業については別途まとめます．
</p>
<ul>
<li><a href="http://kore1server.com/">海外サーバーコレがイチばん!</a></li>
<li><a href="http://waviaei.com/2009/12/21/i-am-going-to-use-sharkspace/">レンタルサーバはSharkSpaceに決めました</a></li>
</ul>
<p><a href="https://www.sharkspace.com/sharkcenter/aff.php?aff=205"><img src=http://www.sharkspace.com/affiliates/banners/sharkspace_468x60.gif width="468" height="60" border="0" title="SharkSpaceに移転 image" alt="SharkSpaceに移転" /></a></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'SharkSpaceに移転',url: 'http://fumi.me/2010/01/31/sharkspace/',contentID: 'post-2830',code: 'fumi',suggestTags: 'Hosting,SharkSpace,WordPress',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="SharkSpaceに移転 image" alt="SharkSpaceに移転" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/hosting/" title="Hosting" rel="tag">Hosting</a>, <a href="http://fumi.me/tag/sharkspace/" title="SharkSpace" rel="tag">SharkSpace</a>, <a href="http://fumi.me/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2010/01/31/sharkspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2010/01/31/sharkspace/" />
	</item>
		<item>
		<title>wp-tmkm-amazon</title>
		<link>http://fumi.me/2009/09/27/wp-tmkm-amazon/</link>
		<comments>http://fumi.me/2009/09/27/wp-tmkm-amazon/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:34:11 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Amazon]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=2553</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2009/09/27/wp-tmkm-amazon/&amp;text=wp-tmkm-amazon&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
昨日記事を投稿するときにwp-tmkm-amazon pluginが動かなかったのですが，原因は8月からAmazon APIが認証を要求するようになったのに，wp-tmkm-amazonが開発停止となっていて対応できてい&#8230; <a href="http://fumi.me/2009/09/27/wp-tmkm-amazon/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2009/09/27/wp-tmkm-amazon/&amp;text=wp-tmkm-amazon&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="wp tmkm amazon"  title="wp tmkm amazon image" /></a></div>
<p>昨日記事を投稿するときにwp-tmkm-amazon pluginが動かなかったのですが，原因は8月からAmazon APIが認証を要求するようになったのに，wp-tmkm-amazonが開発停止となっていて対応できていないからでした．</p>
<p>調べたところ，wp-tmkm-amazonプラグイン配布というページで，別の方が対応したバージョンをダウンロードすることができます．以前のを削除し，これをインストールすればOKです．</p>
<p>また，Amazon APIの認証のために，<a href="http://aws.amazon.com/">Amazon Web Services</a>でAccess Key IDとSecret Access Keyの対を取得する必要があります．</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'wp-tmkm-amazon',url: 'http://fumi.me/2009/09/27/wp-tmkm-amazon/',contentID: 'post-2553',code: 'fumi',suggestTags: 'Amazon,WordPress',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="wp tmkm amazon image" alt="wp tmkm amazon" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/amazon/" title="Amazon" rel="tag">Amazon</a>, <a href="http://fumi.me/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2009/09/27/wp-tmkm-amazon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2009/09/27/wp-tmkm-amazon/" />
	</item>
		<item>
		<title>tDiaryからWordPressに移行</title>
		<link>http://fumi.me/2009/02/10/tdiary-to-wordpress/</link>
		<comments>http://fumi.me/2009/02/10/tdiary-to-wordpress/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 01:45:37 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[HNS]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[tDiary]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=672</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2009/02/10/tdiary-to-wordpress/&amp;text=tDiaryからWordPressに移行&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
HNS: Hyper NIKKI SystemとtDiaryで昔日記を書いていたのですが，ある時点で全公開はどうなのかなと思うようになったので，mixiの中に閉じて書いていました．しかし，最近またオープンにしたほうが良い&#8230; <a href="http://fumi.me/2009/02/10/tdiary-to-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2009/02/10/tdiary-to-wordpress/&amp;text=tDiaryからWordPressに移行&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="tDiaryからWordPressに移行"  title="tDiaryからWordPressに移行 image" /></a></div>
<p>HNS: Hyper NIKKI Systemと<a href="http://www.tdiary.org/">tDiary</a>で昔日記を書いていたのですが，ある時点で全公開はどうなのかなと思うようになったので，<a href="http://mixi.jp/">mixi</a>の中に閉じて書いていました．しかし，最近またオープンにしたほうが良いと思えるようになってきたので，過去日記の一部を公開しようかと考えています．</p>
<p>HNSからtDiaryには既にデータ移行してあるので，tDiaryからWordPressに移行する方法を探していました．どうやら，多くの人が，<a href="http://kenstar.org/~kenstar/computer/program/t2m.html">tDiary からMovable Typeへの移行</a>にあるスクリプトによってtDiaryからMovableType形式に変換することで，WordPressに取り込んでいるようでした．</p>
<p>私はtDiaryでWiki記法を使っていたため，変換用スクリプトにいくつか修正を加えました．またいくつか不具合も修正しました．修正点は以下の通りです．</p>
<ul>
<li>* のリスト形式を&lt;ul&gt;&lt;li&gt;で置換</li>
<li>[[|]]をリンクに変換</li>
<li>EUC-JP/UTF-8の問題解決 (<a href="http://diary.lampetty.net/20081103.html">tDiaryをWordPressに移行する(1)</a>)</li>
<li>日付が全部1970年1月になる問題を修正</li>
<li>最初から公開するようになっているのを，下書き状態で保存するように変更</li>
</ul>
<p>変換に使用したスクリプトとパッチを以下に置いておきます．</p>
<ul>
<li>スクリプト: <a href='http://fumi.me/wp-content/uploads/2009/02/t2m.pl.txt'>t2m.pl.txt</a></li>
<li><a href='http://fumi.me/wp-content/uploads/2009/02/t2mpl.diff'>オリジナルに対するパッチ</a></li>
</ul>
<h3>参考URL</h3>
<ul>
<li><a href="http://kenstar.org/~kenstar/computer/program/t2m.html">tDiary からMovable Typeへの移行</a></li>
<li><a href="http://diary.lampetty.net/20081103.html">tDiaryをWordPressに移行する(1)</a></li>
</ul>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'tDiaryからWordPressに移行',url: 'http://fumi.me/2009/02/10/tdiary-to-wordpress/',contentID: 'post-672',code: 'fumi',suggestTags: 'HNS,Perl,tDiary,WordPress',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="tDiaryからWordPressに移行 image" alt="tDiaryからWordPressに移行" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/hns/" title="HNS" rel="tag">HNS</a>, <a href="http://fumi.me/tag/perl/" title="Perl" rel="tag">Perl</a>, <a href="http://fumi.me/tag/tdiary/" title="tDiary" rel="tag">tDiary</a>, <a href="http://fumi.me/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2009/02/10/tdiary-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2009/02/10/tdiary-to-wordpress/" />
	</item>
		<item>
		<title>さくらインターネットへ移転</title>
		<link>http://fumi.me/2008/12/23/sakura/</link>
		<comments>http://fumi.me/2008/12/23/sakura/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 16:41:05 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=418</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/12/23/sakura/&amp;text=さくらインターネットへ移転&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
今までハッスルサーバーという安いサーバーを使っていたのですが，ここ数日のはてなやスラッシュドットからのアクセス増加のために503を返すことが多かったので，さくらインターネットのスタンダードプランに移行してみました．これで&#8230; <a href="http://fumi.me/2008/12/23/sakura/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/12/23/sakura/&amp;text=さくらインターネットへ移転&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="さくらインターネットへ移転"  title="さくらインターネットへ移転 image" /></a></div>
<p>今までハッスルサーバーという安いサーバーを使っていたのですが，ここ数日のはてなやスラッシュドットからのアクセス増加のために503を返すことが多かったので，<a href="http://www.sakura.ne.jp/">さくらインターネット</a>のスタンダードプランに移行してみました．これで改善するといいですね．個人的にはsshが使えるというのはやはり楽です．前よりも自由度があるので色々変更する予定です．</p>
<p>今までテンプレートをほとんどいじらずに使っていたためにこのサイトについて突っ込まれましたが，少しずつ直せるところは直しています．PHP5になったことだし携帯変換のプラグインも使えるかな．</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'さくらインターネットへ移転',url: 'http://fumi.me/2008/12/23/sakura/',contentID: 'post-418',code: 'fumi',suggestTags: '',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="さくらインターネットへ移転 image" alt="さくらインターネットへ移転" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>この投稿にタグはありません。]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2008/12/23/sakura/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2008/12/23/sakura/" />
	</item>
		<item>
		<title>Microformats &#8211; マイクロフォーマット</title>
		<link>http://fumi.me/2008/09/08/microformats/</link>
		<comments>http://fumi.me/2008/09/08/microformats/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 17:00:13 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[microformats]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Semantic]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=243</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/09/08/microformats/&amp;text=Microformats &#8211; マイクロフォーマット&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
MICROFORMATS &#8211; マイクロフォーマット 読了。microformatsは、既存の(X)HTMLの枠組の中で、HTMLに足りない意味情報を追加していく方法の一つです。この本はmicroformats&#8230; <a href="http://fumi.me/2008/09/08/microformats/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/09/08/microformats/&amp;text=Microformats &#8211; マイクロフォーマット&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /></a></div>
<div class="hreview">
<h2 class="item"><span class="fn">MICROFORMATS &#8211; マイクロフォーマット</span></h2>
<div class="description">
<p>読了。<a href="http://microformats.org/">microformats</a>は、既存の(X)HTMLの枠組の中で、HTMLに足りない意味情報を追加していく方法の一つです。この本は<a href="http://microformats.org/">microformats</a>について日本語で書かれた初めての本なので、資料として良いのではないでしょうか。<a href="http://microformats.org/">microformats</a>は既にこのサイトでもたくさん使っていますが、まだ使ったことのないツールの紹介が結構あったので参考になりました。この記事は、本に書かれていた<a href="http://www.aes.id.au/?page_id=28">hReview WordPress plugin</a> を使って記述してみています。このpluginで不満なのはdescriptionの要素にblockquoteを使うことです。何故自分の文章をblockquoteする必要がある<br />
んでしょうか。<a href="http://microformats.org/wiki/hreview">hReview 0.3</a>ではdivの例が書いてあるんですよね。他サイトにblockquoteで取り込まれることを前提に書いているんでしょうか。
</p>
<p>文書を構造的に書くメリットや、意味情報を付加するメリットというのはなかなかうまく人に教えづらい話なのですが、<a href="http://microformats.org/">microformats</a>やその関連のツール、例えば<a href="https://addons.mozilla.org/ja/firefox/addon/4106">Firefox operator</a>に触れるのは、良いきっかけになるのかもしれません。
</p>
</div>
<p class="myrating">My rating: <span class="rating">4.0</span> stars<br /><img class="hreview_image" width="20" height="20" src="http://fumi.me/wp-content/plugins/hreview-support-for-editor/starfull.gif" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /><img class="hreview_image" width="20" height="20" src="http://fumi.me/wp-content/plugins/hreview-support-for-editor/starfull.gif" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /><img class="hreview_image" width="20" height="20" src="http://fumi.me/wp-content/plugins/hreview-support-for-editor/starfull.gif" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /><img class="hreview_image" width="20" height="20" src="http://fumi.me/wp-content/plugins/hreview-support-for-editor/starfull.gif" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /><img class="hreview_image" width="20" height="20" src="http://fumi.me/wp-content/plugins/hreview-support-for-editor/starempty.gif" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /></p>
</div>
<div class="tmkm-amazon-view">
	<p><a href="http://www.amazon.co.jp/%E3%83%9E%E3%82%A4%E3%82%AF%E3%83%AD%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88-%7EWeb%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E3%82%88%E3%82%8A%E4%BE%BF%E5%88%A9%E3%81%AB%E3%81%99%E3%82%8B%E6%9C%80%E6%96%B0%E3%83%9E%E3%83%BC%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF%7E-Web-Designing-BOOKS/dp/4839925445%3FSubscriptionId%3DAKIAIAILLLDE7T4Q5BMQ%26tag%3Dtorrydiary-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4839925445"><img src="http://ecx.images-amazon.com/images/I/41vZZo0080L._SL160_.jpg" border="0" alt="Microformats   マイクロフォーマット"  title="Microformats   マイクロフォーマット image" /></a></p>
	<p><a href="http://www.amazon.co.jp/%E3%83%9E%E3%82%A4%E3%82%AF%E3%83%AD%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88-%7EWeb%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E3%82%88%E3%82%8A%E4%BE%BF%E5%88%A9%E3%81%AB%E3%81%99%E3%82%8B%E6%9C%80%E6%96%B0%E3%83%9E%E3%83%BC%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF%7E-Web-Designing-BOOKS/dp/4839925445%3FSubscriptionId%3DAKIAIAILLLDE7T4Q5BMQ%26tag%3Dtorrydiary-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4839925445">マイクロフォーマット ~Webページをより便利にする最新マークアップテクニック~ (Web Designing BOOKS)</a></p>
	<p><em>著者／訳者：</em>John Allsopp</p>
	<p><em>出版社：</em>毎日コミュニケーションズ( 2008-07-23 )</p>
	<p><em>定価：</em>￥ 3,780</p>
	<p>単行本（ソフトカバー） ( 463 ページ )</p>
	<p>ISBN-10 : 4839925445</p>
	<p>ISBN-13 : 9784839925444</p>
<hr class="tmkm-amazon-clear" /></div>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Microformats &amp;#8211; マイクロフォーマット',url: 'http://fumi.me/2008/09/08/microformats/',contentID: 'post-243',code: 'fumi',suggestTags: 'Microformats,Semantic,Web',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="Microformats   マイクロフォーマット image" alt="Microformats   マイクロフォーマット" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/microformats/" title="Microformats" rel="tag">Microformats</a>, <a href="http://fumi.me/tag/semantic/" title="Semantic" rel="tag">Semantic</a>, <a href="http://fumi.me/tag/web/" title="Web" rel="tag">Web</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2008/09/08/microformats/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2008/09/08/microformats/" />
	</item>
		<item>
		<title>wp-mixipublisherのpatch</title>
		<link>http://fumi.me/2008/07/29/wp-mixipublisher-patch/</link>
		<comments>http://fumi.me/2008/07/29/wp-mixipublisher-patch/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 07:39:38 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[Mixi]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=112</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/07/29/wp-mixipublisher-patch/&amp;text=wp-mixipublisherのpatch&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
以前のエントリで言っていた、Wp-MixiPublisherでmixiに投稿できないバグが取れました。user_can_edit_postがdeprecatedだったのが原因のようです。以下のパッチでとりあえずこのハッス&#8230; <a href="http://fumi.me/2008/07/29/wp-mixipublisher-patch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/07/29/wp-mixipublisher-patch/&amp;text=wp-mixipublisherのpatch&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="wp mixipublisherのpatch"  title="wp mixipublisherのpatch image" /></a></div>
<p><a href="http://fumi.me/2008/07/27/wp-mixipublisher/">以前のエントリ</a>で言っていた、<a href="http://factage.com/yu-ji/archives/2006/09/05/wp-mixipublisher-1_0_0rc2/">Wp-MixiPublisher</a>で<a href="http://mixi.jp/">mixi</a>に投稿できないバグが取れました。<code>user_can_edit_post</code>がdeprecatedだったのが原因のようです。以下のパッチでとりあえずこの<a href="http://px.a8.net/svt/ejp?a8mat=1C2BMF+8PRGKY+HQW+60OXE" target="_blank">ハッスルサーバー</a><img border="0" width="1" height="1" src="http://www18.a8.net/0.gif?a8mat=1C2BMF+8PRGKY+HQW+60OXE" alt="wp mixipublisherのpatch"  title="wp mixipublisherのpatch image" />では問題なく投稿できるようです。</p>
<pre><code>
--- wp-mixipublisher.php.backup 2008-07-29 15:05:00.000000000 +0900
+++ wp-mixipublisher.php        2008-07-29 16:15:33.081006700 +0900
@@ -112,7 +112,7 @@
     function publishToMixi($postId) {
         global $wpdb, $user_ID;

-        if(!user_can_edit_post($user_ID, $postId)) {
+        if(!current_user_can('edit_post', $postId)) {
             return $postId;
         }
</code></pre>
<p>修正後のwp-mixipublisher.phpをzipにして置いておきます。これは二つの変更(<a href="http://exth.net/~togabito/wordpress/2007/12/19/631/">1</a>, <a href="http://decama.info/wordpress/137">2</a>)もすでに適用されています。<br />
<a href='http://fumi.me/wp-content/uploads/2008/07/wp-mixipublisher.zip'>wp-mixipublisher.zip</a></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'wp-mixipublisherのpatch',url: 'http://fumi.me/2008/07/29/wp-mixipublisher-patch/',contentID: 'post-112',code: 'fumi',suggestTags: 'Mixi,WordPress',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="wp mixipublisherのpatch image" alt="wp mixipublisherのpatch" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/mixi/" title="Mixi" rel="tag">Mixi</a>, <a href="http://fumi.me/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2008/07/29/wp-mixipublisher-patch/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2008/07/29/wp-mixipublisher-patch/" />
	</item>
		<item>
		<title>WordPressからmixiへ投稿</title>
		<link>http://fumi.me/2008/07/27/wp-mixipublisher/</link>
		<comments>http://fumi.me/2008/07/27/wp-mixipublisher/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 15:30:34 +0000</pubDate>
		<dc:creator>fumi</dc:creator>
				<category><![CDATA[Mixi]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://fumi.me/?p=80</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/07/27/wp-mixipublisher/&amp;text=WordPressからmixiへ投稿&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
Wp-MixiPublisher 1.0.0 RC2というプラグインがあるのを知ったので試していたましたが、うまく投稿できません。mixiのWordPressコミュニティによると、変更版に差し替えて、さらにこの修正を行え&#8230; <a href="http://fumi.me/2008/07/27/wp-mixipublisher/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: left; padding-right: 5px;"><a href="http://twitter.com/share?url=http://fumi.me/2008/07/27/wp-mixipublisher/&amp;text=WordPressからmixiへ投稿&amp;via=fumi1&amp;related=DolcePixel"><img align="left" src="http://fumi.me/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="WordPressからmixiへ投稿"  title="WordPressからmixiへ投稿 image" /></a></div>
<p><a href="http://factage.com/yu-ji/archives/2006/09/05/wp-mixipublisher-1_0_0rc2/">Wp-MixiPublisher 1.0.0 RC2</a>というプラグインがあるのを知ったので試していたましたが、うまく投稿できません。mixiのWordPressコミュニティによると、<a href="http://exth.net/~togabito/wordpress/2007/12/19/631/">変更版</a>に差し替えて、さらに<a href="http://decama.info/wordpress/137">この修正</a>を行えばよいらしいですが、、動いていない人も多数います。どうもPHP5だと動き、PHP4だと駄目なようで。確かにここで使っているハッスルサーバーもPHP4。</p>
<p>@ITのPHP5とPHP4の変更点の記事(<a href="http://www.atmarkit.co.jp/fcoding/articles/php5/01/php501a.html">a</a>,<a href="http://www.atmarkit.co.jp/fcoding/articles/php5/01/php501b.html">b</a>)を見ましたが、大きな変更点はオブジェクトの代入らしい。そこらへんが間違っているんでしょうか。</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'WordPressからmixiへ投稿',url: 'http://fumi.me/2008/07/27/wp-mixipublisher/',contentID: 'post-80',code: 'fumi',suggestTags: 'Mixi,WordPress',providerName: 'Fumihiro Kato / 加藤 文彦',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-jp.png" class="evernoteSiteMemoryButton" title="WordPressからmixiへ投稿 image" alt="WordPressからmixiへ投稿" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>
	Tags: <a href="http://fumi.me/tag/mixi/" title="Mixi" rel="tag">Mixi</a>, <a href="http://fumi.me/tag/wordpress/" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://fumi.me/2008/07/27/wp-mixipublisher/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fumi.me/2008/07/27/wp-mixipublisher/" />
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
