<?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>Note</title>
	<atom:link href="http://note.farawaysky.net/feed" rel="self" type="application/rss+xml" />
	<link>http://note.farawaysky.net</link>
	<description>遠い空を見つめながらの健忘録。</description>
	<lastBuildDate>Thu, 24 Nov 2011 03:32:49 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHPの &#8220;0&#8243; という文字列の真偽</title>
		<link>http://note.farawaysky.net/201101/php-323.html</link>
		<comments>http://note.farawaysky.net/201101/php-323.html#comments</comments>
		<pubDate>Wed, 26 Jan 2011 20:54:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201101/php-323.html</guid>
		<description><![CDATA[if (&#8220;0&#8243;) { echo &#8220;真&#8221;; } else { echo &#8220;偽&#8221;; } これは「偽」と表示される。]]></description>
			<content:encoded><![CDATA[<blockquote><p>if (&#8220;0&#8243;) {<br />
 echo &#8220;真&#8221;;<br />
} else {<br />
 echo &#8220;偽&#8221;;<br />
}</p></blockquote>
<p>これは「偽」と表示される。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=72f89446-b5be-8481-bd34-25d93d27157b" /></div>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201101/php-323.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5 の参照渡し。</title>
		<link>http://note.farawaysky.net/201011/php-319.html</link>
		<comments>http://note.farawaysky.net/201011/php-319.html#comments</comments>
		<pubDate>Fri, 12 Nov 2010 16:31:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201011/php-319.html</guid>
		<description><![CDATA[超基本。 普通に。 $a = 'Test'; $b = $a; $a = 'Change'; echo "b: $b"; // b: Test 参照渡し。 $a = 'Test'; $b = &#38;$a; $a =  &#8230; <a href="http://note.farawaysky.net/201011/php-319.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>超基本。<br />
<b>普通に。</b></p>
<pre>
$a = 'Test';
$b = $a;
$a = 'Change';
echo "b: $b"; // b: Test
</pre>
<p><b>参照渡し。</b></p>
<pre>
$a = 'Test';
$b = &amp;$a;
$a = 'Change';
echo "b: $b"; // b: Change
</pre>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=e3453050-f2d8-8bb7-b000-f05b47c3c6d8" /></div>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201011/php-319.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>function 内の include</title>
		<link>http://note.farawaysky.net/201011/php-315.html</link>
		<comments>http://note.farawaysky.net/201011/php-315.html#comments</comments>
		<pubDate>Tue, 09 Nov 2010 16:18:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201011/uncategories-315.html</guid>
		<description><![CDATA[test1.php function foo() { global $color; $fruit = 'SUIKA'; include 'test2.php'; echo "A $color $fruit\n"; } f &#8230; <a href="http://note.farawaysky.net/201011/php-315.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>test1.php</p>
<pre>function foo() {
    global $color;
    $fruit = 'SUIKA';

    include 'test2.php';
    echo "A $color $fruit\n";
}

for ($i=0; $i&lt;100; $i++) {
    foo();
    echo memory_get_usage() . "\n\n";
}</pre>
<p>test2.php</p>
<pre>$color = 'green';
$fruit = 'apple';</pre>
<p><del>test1.php を実行したとき、メモリが増加する。</del></p>
<p>メモリ増加の原因は、ダブルクォーテーション内の変数展開であった。関数内のincludeはメモリを増やさない事がわかった。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=ea5fd965-96a7-8a7f-994a-779c69456ac9" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201011/php-315.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CoreServer で PHP CGIモード（セーフモード：オフ）</title>
		<link>http://note.farawaysky.net/201008/php-305.html</link>
		<comments>http://note.farawaysky.net/201008/php-305.html#comments</comments>
		<pubDate>Tue, 24 Aug 2010 22:26:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CoreServer]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201008/php-305.html</guid>
		<description><![CDATA[セーフモードの回避策で、 AddHandler application/x-httpd-phpcgi .php とするのだが、CGI版のPHPを動かすということである。しかし、CGIのPHPでも問題がある。 HTTPのレ &#8230; <a href="http://note.farawaysky.net/201008/php-305.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>セーフモードの回避策で、<br />
<blockquote>AddHandler application/x-httpd-phpcgi .php</p></blockquote>
<p>とするのだが、CGI版のPHPを動かすということである。<br />しかし、CGIのPHPでも問題がある。</p>
<p><b>HTTPのレスポンスヘッダーが常に <span class=" ">Content-Type: </span><code role="listitem" class="focusRow subFocusRow ">text/html としてしまう。</p>
<p></code></b><code role="listitem" class="focusRow subFocusRow ">CGIのPHPでFireFoxを使って管理画面が崩れてしまうのは、このせいである。<br />この回避策として、load-styles.phpのみをモジュール版に戻すという手段もあるが、他の手段としてphp.ini を各ディレクトリに設置するということをする。記述は下記の通り。<br /></code><br />
<blockquote><code role="listitem" class="focusRow subFocusRow ">cgi.nph = 1<br />default_mimetype =</code><br /><code role="listitem" class="focusRow subFocusRow ">default_charset =</code><br /><code role="listitem" class="focusRow subFocusRow "></code></p></blockquote>
<p>しかし、次の条件の時はまだ足らない、
<ul>
<li>セーフモード：オフでないとならない場合。かつ、</li>
<li>レスポンスヘッダーがPHPで設定した<span class=" ">Content-Typeでならないとき。かつ</span></li>
<li>レスポンスヘッダーがStatus:304でならないとき。</li>
</ul>
<p>このとき、なにが足らないかというと<b>Statusが常に200となってしまう。</b><br />一応回避策はあって、
<ul>
<li>先頭行に、#!/usr/local/bin/php -q とする。</li>
<li>アクセス権を755とする。</li>
<li>.htaaccess で<filesmatch>などで該当ファイルを<br />AddHandler cgi-script .php　とする。</filesmatch></li>
</ul>
<p>でも、この方法は面倒だなぁ。</p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=76a63e3e-74b3-8834-925d-ed7a061db847" /></div>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201008/php-305.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>trac インストール</title>
		<link>http://note.farawaysky.net/201003/value-domain/coreserver-298.html</link>
		<comments>http://note.farawaysky.net/201003/value-domain/coreserver-298.html#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:36:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CoreServer]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201003/value-domain/coreserver-298.html</guid>
		<description><![CDATA[ここで流れを把握http://d.hatena.ne.jp/re_guzy/20071002/p1 python 2.5インストールhttp://blog.wiredeffect.com/archives/1198 py &#8230; <a href="http://note.farawaysky.net/201003/value-domain/coreserver-298.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>ここで流れを把握<br />http://d.hatena.ne.jp/re_guzy/20071002/p1</p>
<p>python 2.5インストール<br />http://blog.wiredeffect.com/archives/1198</p>
<p>python 本店<br />http://www.python.org/download/releases/2.6.4/<br />python 日本語<br />http://www.python.jp/Zope/download/pythoncore</p>
<p>trac日本語<br />http://www.i-act.co.jp/project/products/products.html</p>
<p>Mysql-Python<br />http://blog.srengine.com/2008/02/python-mysql-python.html</p>
<p>参考<br />さくらでtrac<br />http://weekbuild.sakura.ne.jp/trac/wiki/TracDoc/SakuraInternet</p>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201003/value-domain/coreserver-298.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>フロントページの表示</title>
		<link>http://note.farawaysky.net/201003/wordpress-296.html</link>
		<comments>http://note.farawaysky.net/201003/wordpress-296.html#comments</comments>
		<pubDate>Mon, 01 Mar 2010 19:08:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201003/wordpress-296.html</guid>
		<description><![CDATA[フロントページの表示 最新の投稿 固定ページ (以下を選択) フロントページ: 投稿ページ: とあるが、まず、「最新の投稿」は読んだまま。問題の固定ページを選んだ場合は、「フロントページ」「投稿ページ」は同じページは指定 &#8230; <a href="http://note.farawaysky.net/201003/wordpress-296.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>フロントページの表示</p>
<ul>
<li>最新の投稿</li>
<li>固定ページ (以下を選択)
<ul>
<li>フロントページ:</li>
<li>投稿ページ: </li>
</ul>
</li>
</ul>
<p>とあるが、まず、「最新の投稿」は読んだまま。<br />問題の固定ページを選んだ場合は、「フロントページ」「投稿ページ」は同じページは指定できない。</p>
<p>違うページを指定した場合、「フロントページ」はトップページを表示する。内容はPAGEで入力したコンテンツ。「投稿ページ」は<b>PAGEで入力したコンテンツは無視される</b>。投稿で入力した最新の記事たちが表示される。テンプレートはhome.phpを優先的に使用する。なければ、index.php。page.phpは使用されない。</p>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201003/wordpress-296.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress TinyMCE Advanced 3.2.7</title>
		<link>http://note.farawaysky.net/201002/uncategories-294.html</link>
		<comments>http://note.farawaysky.net/201002/uncategories-294.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 16:25:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/?p=294</guid>
		<description><![CDATA[リンク photo credit: m.eckelberg]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/plugins/tinymce-advanced/">リンク</a></p>
<p><a title="TSA Graphic Design" href="http://www.flickr.com/photos/8857517@N05/4347902280/" target="_blank"><img src="http://farm3.static.flickr.com/2785/4347902280_fa2827b871_t.jpg" border="0" alt="TSA Graphic Design" /></a><br />
<small><a title="Attribution License" href="http://creativecommons.org/licenses/by/2.0/" target="_blank"><img src="http://note.farawaysky.net/wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> <a href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a title="m.eckelberg" href="http://www.flickr.com/photos/8857517@N05/4347902280/" target="_blank">m.eckelberg</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201002/uncategories-294.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CoreServer で Subversion が突然使えなくなった。</title>
		<link>http://note.farawaysky.net/201001/mac-os-x-290.html</link>
		<comments>http://note.farawaysky.net/201001/mac-os-x-290.html#comments</comments>
		<pubDate>Tue, 26 Jan 2010 18:31:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CoreServer]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201001/uncategories-290.html</guid>
		<description><![CDATA[なにやら、本日突然、CoreServerに設置してあるSVNが使用できなくなった。 expected format &#8217;3&#8242; of repository found format &#8217;5&#038; &#8230; <a href="http://note.farawaysky.net/201001/mac-os-x-290.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>なにやら、本日突然、CoreServerに設置してあるSVNが使用できなくなった。</p>
<blockquote><p>expected format &#8217;3&#8242; of repository found format &#8217;5&#8242;
</p></blockquote>
<p>というエラーが出る。なぜだ〜？昨日まではでなかったのに。<br />
まあ、原因究明ができなかったが、対処はできた。</p>
<p>エラーの内容は、formatつまり、バージョンが違うことらしい。<br />
CoreServerは標準で、1.2のsvnが入ってる。そこに、ユーザーホームに1.6をインストールし、使用している。突然、1.6の使用が断たれたようだ。<br />
.bashrc に svnへのパスを記述すれば良いとあちらこちらに書いてあるが、もちろん、そうなっている。以前から変更もしていない。</p>
<p>アクセスは「svn+ssh」を用いていて、sshがsvnserveを稼働させるようにしてある。<br />
そこで、authorized_keyに</p>
<blockquote><p>command=&#8221;/path/to/svnserve -t&#8221; シェルアクセスとは別の公開鍵の記述
</p></blockquote>
<p>を追加し、ホームディレクトリに設置してあるsvnserve 1.6 で稼働することを明示した。</p>
<p>クライアントはMacOSXである。クライアント側の.bashrcに $SVN_SSH 環境変数を下記のようにセットした</p>
<blockquote><p>export SVN_SSH=&#8221;ssh -i /path/to/svn_rsa&#8221;
</p></blockquote>
<p>svn_rsa はssh-keygenで作成した秘密鍵のファイルである。シェルのアクセスと同じ鍵にすると、シェルアクセスがsvnserveを稼働させてしまいコントロールできなくなる。なので、別の鍵のセットを作成する必要があった。</p>
<p>あと、確実に秘密鍵を参照しにいくように、~/user_name/.ssh/configというファイルを作成し、そこに下記のように記述した。</p>
<blockquote><p><span class="config"><code>IdentitiesOnly yes</code></span>
</p></blockquote>
<p>この記述がないと、<code><span class="nm">ssh-agentがサーバーに対し、１つの鍵を保持し、それを使いまわすようだ。シェルとsvnserveで鍵を使い分けができなくなり、不便な状態が続いてしまう。</p>
<p></span></code>これで、シェルによる、svnserveへのアクセスは可能になった。しかし、svnXというアプリケーションはこれでもformatのエラーをはく。.bashrcを認識しない模様。</p>
<p>そこで、~./subversion/configの[tunnel]のセクションに下記のように追加した。<br />
ssh = $SVN_SSH ssh -i /path/to/svn_rsa -q<br />
これで、svnXも使える様になった。最後の-qは「Killed by signal 15.」の非表示のための対処である。</p>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201001/mac-os-x-290.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3.6</title>
		<link>http://note.farawaysky.net/201001/uncategories-288.html</link>
		<comments>http://note.farawaysky.net/201001/uncategories-288.html#comments</comments>
		<pubDate>Tue, 26 Jan 2010 17:48:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201001/uncategories-288.html</guid>
		<description><![CDATA[Firefox 3.6 リリースされましたね。 とにかく、速いです。 私の使っているマシンは Mac G4 しかもシングル 1.25MHz CPU です。 それでも（だから）3.5に比べ劇的な速度アップを体感できます。  &#8230; <a href="http://note.farawaysky.net/201001/uncategories-288.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Firefox 3.6 リリースされましたね。<br />
とにかく、速いです。<br />
私の使っているマシンは Mac G4 しかもシングル 1.25MHz CPU です。<br />
それでも（だから）3.5に比べ劇的な速度アップを体感できます。<br />
JavaScriptの処理が改善された恩恵です。</p>
<p><a href="http://mozilla.jp/firefox/">次世代ブラウザ Firefox – 高速・安全・カスタマイズ自在な無料ブラウザ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201001/uncategories-288.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacでOpenOfficeのPDFエクスポート</title>
		<link>http://note.farawaysky.net/201001/mac-os-x-286.html</link>
		<comments>http://note.farawaysky.net/201001/mac-os-x-286.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 13:41:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://note.farawaysky.net/201001/mac-os-x-286.html</guid>
		<description><![CDATA[MacでOpenOffice3のPDFエクスポートしたとき、デフォルトフォントのヒラギノのままで、作成するとフォントが化けてしまう症状の解決策。IPAフォントを使うと化けない。IPAフォントでもなくても、ヒラギノとOpe &#8230; <a href="http://note.farawaysky.net/201001/mac-os-x-286.html">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>MacでOpenOffice3のPDFエクスポートしたとき、デフォルトフォントのヒラギノのままで、作成するとフォントが化けてしまう症状の解決策。<br /><span style="font-weight: bold;">IPAフォントを使うと化けない。</span><br />IPAフォントでもなくても、ヒラギノとOpenOfficeの相性に問題があるのかも。<br />さておき、下記リンクからIPAフォントをダウンロード。<br /><a href="http://ossipedia.ipa.go.jp/ipafont/">IPAフォントのダウンロード || OSS iPedia</a></p>
<p>Macだけではなく、OpenOfficeの日本語環境を強化する情報はこちらから。<br /><a href="http://openoffice-docj.sourceforge.jp/wiki/Documentation/start3">Documentation/オープンオフィス3始める人のページ &#8211; OpenOffice.org_Document_Project_Wiki</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=b1098da3-e6ab-8138-a41c-9706f1e6a12e" /></div>
]]></content:encoded>
			<wfw:commentRss>http://note.farawaysky.net/201001/mac-os-x-286.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

