<?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>きぬろぐ &#187; コンピュータ</title>
	<atom:link href="http://www.kinusati.net/category/computer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kinusati.net</link>
	<description>だめでつれづれな日記</description>
	<lastBuildDate>Sun, 15 Jan 2012 23:42:13 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/category/computer/feed/" />
		<item>
		<title>tarコマンドの&#8211;newer-mtimeオプション</title>
		<link>http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/</link>
		<comments>http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 23:42:13 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1117</guid>
		<description><![CDATA[CentOS5に付属しているtarコマンド(GNU tar)が高機能で、ある日付以後に修正が入ったファイルだけをバックアップするというオプションがついています。&#8211;newer-mtimeオプションというやつです &#8230; <a href="http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>CentOS5に付属しているtarコマンド(GNU tar)が高機能で、ある日付以後に修正が入ったファイルだけをバックアップするというオプションがついています。&#8211;newer-mtimeオプションというやつです。</p>
<p>以下、man tarを抜粋</p>
<pre>
       --newer-mtime DATE
              like --newer, but with a DATE
</pre>
<p>例えばこのコマンドを使って、2012/01/01以後に出力されたログファイルだけを対象にバックアップを取得するには以下を実行すればいいわけです。</p>
<pre>
$ tar cvfz /var/tmp/backup.tar.gz --newer-mtime 2012-01-01 /var/log
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/" />
	</item>
		<item>
		<title>Windows(cygwin)でのrsync</title>
		<link>http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/</link>
		<comments>http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 23:37:31 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1114</guid>
		<description><![CDATA[Windows 7からFreeBSDに対して差分バックアップを取得したかったので、rsync(cygwin)を導入しました。導入は至ってかんたんで、cygwinのsetup.exeから導入しました。 ただ普通にバックアッ &#8230; <a href="http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Windows 7からFreeBSDに対して差分バックアップを取得したかったので、rsync(cygwin)を導入しました。導入は至ってかんたんで、cygwinのsetup.exeから導入しました。</p>
<p>ただ普通にバックアップしようとすると、以下のエラーが出て困りました。。</p>
<pre>
$ rsync.exe -avz --delete  /cygdrive/d/Java/ www.example.com:/backup/Java
sending incremental file list
created directory /backup/Java
./
rsync: failed to modify permissions on "/backup/Java.": Permission denied (13)
rsync: opendir "/backup/Java." failed: Permission denied (13)
apache-maven-3.0.3/
</pre>
<p>cygwin上ではWindows上のパーティション(Cドライブとか)は/cygdrive/c配下にマウントされますが、cygdrive上のパーミッションが以下のように見えていて、ディレクトリが権限不足になることが原因のようですね。ま、環境によると思います。</p>
<pre>
d---------+ 1 ????????       ????????             0 Mar 21  2011 Program Files
d---------+ 1 ????????       ????????             0 Sep 24 15:44 tmp
d---------+ 1 ????????       ????????             0 Oct 16 15:34 Java
d---------+ 1 ????????       ????????             0 Dec 18 22:00 Program Files (x86)
</pre>
<p>今回は以下chmodオプションで回避しましたが、少々ださいな・・・</p>
<pre>
rsync.exe -avz --delete --chmod=u+rwx /cygdrive/d/Java/ www.example.com:/backup/Java
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/" />
	</item>
		<item>
		<title>CakePHPでのキャッシュコントロール</title>
		<link>http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/</link>
		<comments>http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 09:18:57 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1107</guid>
		<description><![CDATA[Webアプリケーションではキャッシュさせない実装が割と多いと思います。 CakePHP 1.3の場合、boforeFilter()に$this-&#62;disableCache()を追加するだけでキャッシュを無効化できる &#8230; <a href="http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Webアプリケーションではキャッシュさせない実装が割と多いと思います。</p>
<p>CakePHP 1.3の場合、boforeFilter()に$this-&gt;disableCache()を追加するだけでキャッシュを無効化できるから楽ちんですね。ちなみにソースは以下。cake/libs/controller/controller.phpに書いてます。</p>
<pre>
function disableCache() {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
}
</pre>
<p>Cache-Control: post-check/pre-checkの意味は<a href="http://msdn.microsoft.com/en-us/library/ms533020(v=vs.85).aspx">MSDN</a>参照。</p>
<p>Cache-Control: no-store, no-cache, must-revalidate/Pragma: no-cacheは<a href="http://www.ipa.go.jp/security/awareness/vendor/programmingv2/contents/405.html">IPA</a>参照。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/" />
	</item>
		<item>
		<title>FreeBSD 9.0 RELEASEがでるぞー</title>
		<link>http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/</link>
		<comments>http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 09:03:25 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1101</guid>
		<description><![CDATA[FreeBSD 9.0 RELEASEが 2012/01/06付けで出るようですね。 タグをRELENG_9_0_0_RELEASEでcsupしたらダウンロードできたし、/usr/src/UPDATINGファイルには以下 &#8230; <a href="http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>FreeBSD 9.0 RELEASEが 2012/01/06付けで出るようですね。</p>
<p>タグをRELENG_9_0_0_RELEASEでcsupしたらダウンロードできたし、/usr/src/UPDATINGファイルには以下の記述が。</p>
<pre>
20120106:
        9.0-RELEASE.
</pre>
<p>ただいま、BUILD中。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/" />
	</item>
		<item>
		<title>FreeBSDのCVSタグ</title>
		<link>http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/</link>
		<comments>http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 13:32:28 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1098</guid>
		<description><![CDATA[このホストはFreeBSD-9.0をcsup経由でbuildして使っていますが、freebsd-updateでRELEASE-9.0等にアップデートしようとすると以下のエラーが出たので。。。 # freebsd-upda &#8230; <a href="http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>このホストはFreeBSD-9.0をcsup経由でbuildして使っていますが、freebsd-updateでRELEASE-9.0等にアップデートしようとすると以下のエラーが出たので。。。</p>
<pre>
# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from update4.FreeBSD.org... failed.
Fetching public key from update5.FreeBSD.org... failed.
Fetching public key from update3.FreeBSD.org... failed.
Fetching public key from update2.FreeBSD.org... failed.
No mirrors remaining, giving up.
</pre>
<p>freebsd-updateはRELEASE間のアップデートには対応しているけどstable -> releaseって対応していないんですね。</p>
<p>なので、csupでreleaseに対応するstableを引っ張ってくる方法を探していました。</p>
<p>FreeBSDのページに<a href="http://www.freebsd.org/doc/handbook/cvs-tags.html">CVS tag</a>というところがあり、ばっちり書いていますね。参考になりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/" />
	</item>
		<item>
		<title>FreeBSD 9.0(PRERELEASE) on ZFS root</title>
		<link>http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/</link>
		<comments>http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 14:00:38 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1091</guid>
		<description><![CDATA[FreeBSD 9.0 (PRERELEASE) on ZFS rootにチャレンジしてみました。安定して動くのでおすすめですね。早くインストーラがZFSインストールに対応してくれればいいのにな。 http://wiki &#8230; <a href="http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>FreeBSD 9.0 (PRERELEASE) on ZFS rootにチャレンジしてみました。安定して動くのでおすすめですね。早くインストーラがZFSインストールに対応してくれればいいのにな。</p>
<p><a href="http://wiki.kinusati.net/index.php/FreeBSD:FreeBSD9.0(amd64)_on_ZFS">http://wiki.kinusati.net/index.php/FreeBSD:FreeBSD9.0(amd64)_on_ZFS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/" />
	</item>
		<item>
		<title>VMware Playerのサービス化</title>
		<link>http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/</link>
		<comments>http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 09:14:03 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1078</guid>
		<description><![CDATA[sexeを使うと簡単にVMware Playerをサービス化できます。 1. sexeをインストール 2. sexeを起動してサービスを登録。起動時オプションにVMXファイルのパスをフルパスで指定する必要があります。登録 &#8230; <a href="http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>sexeを使うと簡単にVMware Playerをサービス化できます。</p>
<p>1. <a href="http://www.nanshiki.co.jp/software/index.html?sexe">sexe</a>をインストール</p>
<p>2. sexeを起動してサービスを登録。起動時オプションにVMXファイルのパスをフルパスで指定する必要があります。登録が終わったらOKボタンを教えてください。</p>
<p><a href="http://www.kinusati.net/wp-content/uploads/2011/10/WS0000001.png"><img src="http://www.kinusati.net/wp-content/uploads/2011/10/WS0000001.png" alt="" title="WS000000" class="alignnone size-full wp-image-1082" /></a></p>
<p>3. サービスの画面から、アカウントでログオンする設定を追加する。</p>
<p><a href="http://www.kinusati.net/wp-content/uploads/2011/10/WS000001.png"><img src="http://www.kinusati.net/wp-content/uploads/2011/10/WS000001.png" alt="" title="WS000001" class="alignnone size-full wp-image-1083" /></a></p>
<p>これで無事登録完了です。自動起動はすてきです。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/" />
	</item>
		<item>
		<title>MySQL4.0以前に作成したアカウントがMySQL5.5で利用できない</title>
		<link>http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/</link>
		<comments>http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 08:28:57 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1075</guid>
		<description><![CDATA[MySQLを5.5にバージョンアップしたら、PHP経由でデータベースに接続できないという不具合にぶち当たりました。 よくよく調べてみると、MySQL4.0以前に作成したアカウントだけ接続できない模様。 http://de &#8230; <a href="http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>MySQLを5.5にバージョンアップしたら、PHP経由でデータベースに接続できないという不具合にぶち当たりました。</p>
<p>よくよく調べてみると、MySQL4.0以前に作成したアカウントだけ接続できない模様。</p>
<p><a href=http://dev.mysql.com/doc/refman/5.5/en/old-client.html>http://dev.mysql.com/doc/refman/5.5/en/old-client.html</a></p>
<pre>
C.5.2.4. Client does not support authentication protocol
MySQL 5.5 uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older (pre-4.1) clients. If you upgrade the server from 4.0, attempts to connect to it with an older client may fail with the following message:
...
</pre>
<p>とりあえず平文パスワードはわかったので、パスワードを再設定して事なきを得ました。パスワードをリセットする方法もあると公式ページで書いているので間違いないでしょう。</p>
<pre>
Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function:

mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
Alternatively, use UPDATE and FLUSH PRIVILEGES:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
Substitute the password you want to use for “newpwd” in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/" />
	</item>
		<item>
		<title>Linuxのcron</title>
		<link>http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/</link>
		<comments>http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 08:22:07 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1072</guid>
		<description><![CDATA[Solarisと違って、Linuxのcronで「%」(パーセント)を利用するためにはエスケープしないとダメなんですね。はまりました。 $ man 5 crontab ... 「 第 6」フィールド (行の残りの部分) に &#8230; <a href="http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Solarisと違って、Linuxのcronで「%」(パーセント)を利用するためにはエスケープしないとダメなんですね。はまりました。</p>
<pre>
$ man 5 crontab
...
「 第 6」フィールド (行の残りの部分) には実行されるコマンドを指定する。その行のコマンド部 (改行文字ま
たは % 文字まで) が /bin/sh (またはその crontab ファイルの SHELL 環境変数で指定されたシェル) によって
実 行される。コマンド中にパーセント記号 (%) がバックスラッシュ (\) によってエスケープされずに置かれて
いると、改行文字に置き換えられ、最初に現れた % 以降の全てのデータは標準入力としてコマンドに送られる。
</pre>
<p>覚えておきましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/" />
	</item>
		<item>
		<title>WordPressでのpngリサイズって対応していないの?</title>
		<link>http://www.kinusati.net/2011/09/24/wordpress%e3%81%a7%e3%81%aepng%e3%83%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%a3%e3%81%a6%e5%af%be%e5%bf%9c%e3%81%97%e3%81%a6%e3%81%84%e3%81%aa%e3%81%84%e3%81%ae/</link>
		<comments>http://www.kinusati.net/2011/09/24/wordpress%e3%81%a7%e3%81%aepng%e3%83%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%a3%e3%81%a6%e5%af%be%e5%bf%9c%e3%81%97%e3%81%a6%e3%81%84%e3%81%aa%e3%81%84%e3%81%ae/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 14:36:40 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1060</guid>
		<description><![CDATA[pngのスクリーンショットをWindows Live Writerから(XMLRPC経由)WordPress 3.2.1-jaに登録しようとしたら、XML-RPCで登録できないというエラーが・・・試しにpngをgifに変 &#8230; <a href="http://www.kinusati.net/2011/09/24/wordpress%e3%81%a7%e3%81%aepng%e3%83%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%a3%e3%81%a6%e5%af%be%e5%bf%9c%e3%81%97%e3%81%a6%e3%81%84%e3%81%aa%e3%81%84%e3%81%ae/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>pngのスクリーンショットをWindows Live Writerから(XMLRPC経由)WordPress 3.2.1-jaに登録しようとしたら、XML-RPCで登録できないというエラーが・・・試しにpngをgifに変更して登録するとうまくいく・・・</p>
<p>なぜだ？と思って調査。</p>
<p>- ./wp-includes/media.php</p>
<p>254行目のimagecreatefromstring()でApacheがabortしてた。</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:812469c5-0cb0-4c63-8c15-c81123a09de7:3e63277f-2c0d-4146-abb2-4bbcd9c7deae" class="wlWriterEditableSmartContent">
<pre name="code" class="php">    function wp_load_image( $file ) {
            if ( is_numeric( $file ) )
                    $file = get_attached_file( $file );

            if ( ! file_exists( $file ) )
                    return sprintf(__('File &amp;#8220;%s&amp;#8221; doesn&amp;#8217;t exist?'), $file);

            if ( ! function_exists('imagecreatefromstring') )
                    return __('The GD image library is not installed.');

            // Set artificially high because GD uses uncompressed images in memory
            @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
            $image = imagecreatefromstring( file_get_contents( $file ) );

            if ( !is_resource( $image ) )
                    return sprintf(__('File &amp;#8220;%s&amp;#8221; is not an image.'), $file);

            return $image;
    }
</pre>
</div>
<p>GD/libpng経由でのリサイズ用png画像生成時に失敗するようだ。 こまりましたな。とりあえずgifで運用します。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/09/24/wordpress%e3%81%a7%e3%81%aepng%e3%83%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%a3%e3%81%a6%e5%af%be%e5%bf%9c%e3%81%97%e3%81%a6%e3%81%84%e3%81%aa%e3%81%84%e3%81%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/09/24/wordpress%e3%81%a7%e3%81%aepng%e3%83%aa%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%a3%e3%81%a6%e5%af%be%e5%bf%9c%e3%81%97%e3%81%a6%e3%81%84%e3%81%aa%e3%81%84%e3%81%ae/" />
	</item>
	</channel>
</rss>

