<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2japanesefull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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" version="2.0">

<channel>
	<title>jigen studylog</title>
	
	<link>http://study.aruko.net</link>
	<description>パブリッシャーからのメッセージ：ジゲンが勉強した事をツラツラとメモするブログ。(自分用の性格強し)</description>
	<lastBuildDate>Tue, 08 Jul 2008 04:09:11 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/feed/" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/studylog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="studylog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.co.jp/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fstudylog" src="http://i.yimg.jp/i/jp/my/addtomy/standard_bb.gif">myyahoo???</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://feedpath.jp/feedreader/feeds_add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fstudylog" src="http://feedpath.jp/common/images/sub_feedpath.gif">feedpath???</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/studylog" src="http://www.bloglines.com/images/sub_modern11.gif">Bloglines???</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fstudylog" src="http://buttons.googlesyndication.com/fusion/add.gif">Google???</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://r.hatena.ne.jp/append/http://feeds.feedburner.com/studylog" src="http://r.hatena.ne.jp/images/addto_w.gif">???RSS???</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://reader.livedoor.com/subscribe/http://feeds.feedburner.com/studylog" src="http://image.reader.livedoor.com/img/banner/91_17_1.gif">Livedoor???????</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://reader.goo.ne.jp/web/bookmarklet.html?,,http%3A%2F%2Ffeeds.feedburner.com%2Fstudylog" src="http://reader.goo.ne.jp/web/img/addwebrss.gif">goo RSS???????</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.fenrir.co.jp/rd/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Fstudylog" src="http://images2.fenrir.co.jp/fb/sleipnir_feed.gif">Sleipnir に追加</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://reader.excite.co.jp/subscribe/?url=http%3A%2F%2Ffeeds.feedburner.com%2Fstudylog" src="http://reader.excite.co.jp/images/add_rss_excitereader.gif">エキサイトリーダーに登録</feedburner:feedFlare><item>
		<title>javascriptでGrowlっぽい見た目を作る – jGrowl</title>
		<link>http://study.aruko.net/2008/07/08/39/</link>
		<comments>http://study.aruko.net/2008/07/08/39/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 04:09:11 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[ユーザーインターフェース]]></category>
		<category><![CDATA[言語]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[未分類]]></category>
<category>Growl</category><category>membles</category><category>ソフト</category><category>通知</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/07/08/39/</guid>
		<description>MacにはGrowlっていう様々な情報を通知する通知ツールがあるんですが、体験した事ないんだけどTwitterとかでGrowlとかの話題になるとうらやましく思ってたりして。 これを、ウェブサイトの上で同じような見た目を実 [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/photo/2008/07/08/12-17-07/400.jpg" title="javascriptでGrowlっぽい見た目を作る - jGrowl" rel="lightbox"><img src="http://media.aruko.net/photo/2008/07/08/12-17-07/200.jpg" width="200" height="138" alt="javascriptでGrowlっぽい見た目を作る - jGrowl" class="photo_rotate_l" /></a>Macには<a href="http://growl.info/" title="Growl" class="favicon_s" rel="nofollow">Growl</a>っていう様々な情報を通知する通知ツールがあるんですが、体験した事ないんだけどTwitterとかでGrowlとかの話題になるとうらやましく思ってたりして。
</p>
<p>
これを、ウェブサイトの上で同じような見た目を実現するようなライブラリがあったのでメモも含めてエントリー。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<ul>
<li><a href="http://stanlemon.net/projects/jgrowl.html#samples" title="stanlemon.net : jgrowl" class="favicon_s" rel="nofollow">stanlemon.net : jgrowl</a></li>
</ul>
<p>
これなんだけど、下の方にサンプルがあります。お知らせが時系列のような形で表示させるようなアプリケーションには使えるかもしれませんな。
</p>
<p>
関係ないけど、Linuxデスクトップを普段使ってるので、Linuxとかで同様なの無いのかなー。と思って探してみたら「<a href="http://www.mumbles-project.org/" title="mumbles-project.org » mumbles" class="favicon_s" rel="nofollow">mumbles</a>」っていうソフトがあった。今度試してみよう。
</p>
<ul>
<li><a href="http://stanlemon.net/projects/jgrowl.html#samples" title="stanlemon.net : jgrowl" class="favicon_s" rel="nofollow">stanlemon.net : jgrowl</a></li>
<li><a href="http://growl.info/" title="Growl" class="favicon_s" rel="nofollow">Growl</a></li>
<li><a href="http://www.mumbles-project.org/" title="mumbles-project.org » mumbles" class="favicon_s" rel="nofollow">mumbles-project.org » mumbles</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/CeQ12vUt2fzGK7Nmdyd-H4HMhVg/0/da"><img src="http://feedads.g.doubleclick.net/~a/CeQ12vUt2fzGK7Nmdyd-H4HMhVg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CeQ12vUt2fzGK7Nmdyd-H4HMhVg/1/da"><img src="http://feedads.g.doubleclick.net/~a/CeQ12vUt2fzGK7Nmdyd-H4HMhVg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=dsSWXwaB"><img src="http://feeds.feedburner.com/~f/studylog?i=dsSWXwaB" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=FaX0tqYm"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=qyhINC9Y"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=aHuAyMNz"><img src="http://feeds.feedburner.com/~f/studylog?i=aHuAyMNz" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=7WU6UHWF"><img src="http://feeds.feedburner.com/~f/studylog?i=7WU6UHWF" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=V9Pfe9Sd"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/07/08/39/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/07/08/39/" />
	</item>
		<item>
		<title>lighttpd のログ設定</title>
		<link>http://study.aruko.net/2008/06/17/38/</link>
		<comments>http://study.aruko.net/2008/06/17/38/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 07:34:51 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[ログ]]></category>
		<category><![CDATA[ヴァーチャルホスト]]></category>
		<category><![CDATA[アクセスログ]]></category>
		<category><![CDATA[エラーログ]]></category>
<category>アクセスログ</category><category>エラーログ</category><category>ログ</category><category>ヴァーチャルホスト</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/06/17/38/</guid>
		<description>以前、lighttpdでURLをrewriteというエントリーで、lighttpdのヴァーチャルホストの設定とURLのリライトルールに関して書いたけど、アクセスログとエラーログの設定が微妙に調べ切れなかったので、ちょっと [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/lighttpd/400.jpg" title="lighttpd のログ設定" rel="lightbox"><img src="http://media.aruko.net/logo/lighttpd/200.jpg" width="200" height="120" alt="lighttpd のログ設定" class="photo_rotate_r" /></a>以前、<a href="http://study.aruko.net/2007/11/09/17/" title="lighttpdでURLをrewrite | jigen studylog" class="favicon_s" rel="nofollow">lighttpdでURLをrewrite</a>というエントリーで、<em>lighttpd</em>の<em>ヴァーチャルホスト</em>の設定と<em>URL</em>の<em>リライトルール</em>に関して書いたけど、<em>アクセスログ</em>と<em>エラーログ</em>の設定が微妙に調べ切れなかったので、ちょっと調べてみた。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
結局、設定名が<em>エラーログ</em>と、<em>アクセスログ</em>とで違う所が分かりにくくしている原因だった。
</p>
<ul>
<li><a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModAccessLog" title="Docs:ModAccessLog - lighttpd - secure, fast, compliant, and very flexible web-server - Trac" class="favicon_s" rel="nofollow">Docs:ModAccessLog &#8211; lighttpd &#8211; secure, fast, compliant, and very flexible web-server &#8211; Trac</a></li>
</ul>
<p>
ここら辺に書いてあるんだけど、「accesslog.filename」をそのまま「error.filename」とかにするとエラーが出る。んで色々調べた結果「<strong>server.errorlog</strong>」という名前で設定すれば良かった。
</p>
<p>
以下に一応設定を書いておく、<em>カスタムログ</em>の形式もここに書けるみたい。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>$HTTP[&quot;host&quot;] =~ &quot;host\.example\.com&quot; {
    accesslog.format = &quot;%h %l %u %t \&quot;%r\&quot; %b %&gt;s \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot; \&quot;%{X-LIGHTTPD-SID}o\&quot;&quot;,
    server.document-root = &quot;/path/to/document-root/&quot;,
    server.errorlog = &quot;/path/to/error.log&quot;,
    accesslog.filename = &quot;/path/to/access.log&quot;,
    url.rewrite-once = (
        &quot;^/css/(.+)?$&quot; =&gt; &quot;$0&quot;,
        &quot;^/img/(.+)?$&quot; =&gt; &quot;$0&quot;,
        &quot;^/(.+)?$&quot; =&gt; &quot;/index.php/$1&quot;
    )
}</pre></div></div>
<h3>整理しておこう</h3>
<dl>
<dt>アクセスログ</dt>
<dd><strong>accesslog.filename</strong> = &#8220;/path/to/access.log&#8221; の形式で書く</dd>
<dt>エラーログ</dt>
<dd><strong>server.errorlog</strong> = &#8220;/path/to/error.log&#8221; の形式で書く</dd>
</dl>
<p>
というか、命名ルールをもうちょっと考えて欲しかったなぁ・・・。これバージョンアップとかで変わったりするとドヨーンとした気分になるぞ orz
</p>
<ul>
<li><a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModAccessLog" title="Docs:ModAccessLog - lighttpd - secure, fast, compliant, and very flexible web-server - Trac" class="favicon_s">Docs:ModAccessLog &#8211; lighttpd &#8211; secure, fast, compliant, and very flexible web-server &#8211; Trac</a></li>
<li><a href="http://study.aruko.net/2007/11/09/17/" title="lighttpdでURLをrewrite | jigen studylog" class="favicon_s">lighttpdでURLをrewrite | jigen studylog</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/cA0NYZQbVnDCr0pD-QoOefLNAtg/0/da"><img src="http://feedads.g.doubleclick.net/~a/cA0NYZQbVnDCr0pD-QoOefLNAtg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cA0NYZQbVnDCr0pD-QoOefLNAtg/1/da"><img src="http://feedads.g.doubleclick.net/~a/cA0NYZQbVnDCr0pD-QoOefLNAtg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=gpq0iU9X"><img src="http://feeds.feedburner.com/~f/studylog?i=gpq0iU9X" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=3jPFcAK1"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=sUGnYUBa"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=cyLCjaDe"><img src="http://feeds.feedburner.com/~f/studylog?i=cyLCjaDe" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=NfuvGdaT"><img src="http://feeds.feedburner.com/~f/studylog?i=NfuvGdaT" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=WPt1BeEe"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/06/17/38/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/06/17/38/" />
	</item>
		<item>
		<title>Firefoxの検索ボックスから新しいタブで開く</title>
		<link>http://study.aruko.net/2008/05/29/36/</link>
		<comments>http://study.aruko.net/2008/05/29/36/#comments</comments>
		<pubDate>Thu, 29 May 2008 05:33:39 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[ブラウザ]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[未分類]]></category>
<category>about:config</category><category>タブ</category><category>新しいタブ</category><category>検索</category><category>検索バー</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/05/29/36/</guid>
		<description>プチメモ。Firefoxの右上にある検索ボックスで検索した時にカレントタブ(ウィンドウ？)ではなく新しくタブを開く設定。これが無くてずっとイライラしてた。早く探せよ。俺。 google_ad_client = "pub- [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/firefox/400.jpg" title="Firefoxの検索ボックスから新しいタブで開く" rel="lightbox"><img src="http://media.aruko.net/logo/firefox/200.jpg" width="200" height="77" alt="Firefoxの検索ボックスから新しいタブで開く" class="photo_rotate_l" /></a>プチメモ。<em>Firefox</em>の右上にある<em>検索ボックス</em>で検索した時にカレント<em>タブ</em>(ウィンドウ？)ではなく新しく<em>タブ</em>を開く設定。これが無くてずっとイライラしてた。早く探せよ。俺。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
以下のサイトにまんま載ってた。
</p>
<ul>
<li><a href="http://httalk.xrea.jp/mt3/archives/2006/12/firefox_2.html" title="HORNET's TALK.. : Firefox検索バーの結果を、新しいタブで開く" class="favicon_s" rel="nofollow">HORNET&#8217;s TALK.. : Firefox検索バーの結果を、新しいタブで開く</a></li>
</ul>
<p>
自分用にもちょいとメモ。
</p>
<ol>
<li><em>about:config</em>をURL欄に入力</li>
<li>browser.search.openintabをフィルタに入力</li>
<li>ダブルクリックするなりして値をfalseからtrueにする</li>
</ol>
<p>
これ、デフォルトの<em>設定項目</em>に入れて欲しいなぁ。
</p>
<ul>
<li><a href="http://httalk.xrea.jp/mt3/archives/2006/12/firefox_2.html" title="HORNET's TALK.. : Firefox検索バーの結果を、新しいタブで開く" class="favicon_s">HORNET&#8217;s TALK.. : Firefox検索バーの結果を、新しいタブで開く</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/y5DQ-1ME-15WzFt1xUhkk28cS7k/0/da"><img src="http://feedads.g.doubleclick.net/~a/y5DQ-1ME-15WzFt1xUhkk28cS7k/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/y5DQ-1ME-15WzFt1xUhkk28cS7k/1/da"><img src="http://feedads.g.doubleclick.net/~a/y5DQ-1ME-15WzFt1xUhkk28cS7k/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=uy1YIGim"><img src="http://feeds.feedburner.com/~f/studylog?i=uy1YIGim" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=pbhvV7GV"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=xoIZit5k"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=93nYGVOs"><img src="http://feeds.feedburner.com/~f/studylog?i=93nYGVOs" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=lRWmx383"><img src="http://feeds.feedburner.com/~f/studylog?i=lRWmx383" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=3OToPx8T"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/05/29/36/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/05/29/36/" />
	</item>
		<item>
		<title>vim対応括弧の色を設定する</title>
		<link>http://study.aruko.net/2008/05/26/30/</link>
		<comments>http://study.aruko.net/2008/05/26/30/#comments</comments>
		<pubDate>Mon, 26 May 2008 05:42:08 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[未分類]]></category>
<category>カッコ</category><category>カラースキーム</category><category>対応括弧</category><category>括弧</category><category>色</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/05/26/30/</guid>
		<description>プチメモ。vimでは「(」の上にカーソルを持っていくとそれに対応する「)」も併せて指し示してくれる対応括弧のハイライト機能がありますが、デフォルトの色がドギツイので、色を変えたいと思って調べた結果をメモ。 google_ [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/vim2/400.jpg" title="vim対応括弧の色を設定する" rel="lightbox"><img src="http://media.aruko.net/logo/vim2/200.jpg" width="200" height="110" alt="vim対応括弧の色を設定する" class="photo_rotate_r" /></a>プチメモ。<em>vim</em>では「<strong>(</strong>」の上に<em>カーソ</em>ルを持っていくとそれに対応する「<strong>)</strong>」も併せて指し示してくれる対応<em>括弧</em>の<em>ハイライト</em>機能がありますが、デフォルトの色がドギツイので、色を変えたいと思って調べた結果をメモ。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
<em>カラースキーム</em>の項目に以下を追加する感じ。別に特別な感じはしない。グレイとかにすると目に優しいのでグレイにした。
</p>
<p>
いつもの事ながらちゃんと<em>マニュアル</em>読めよ俺って感じです。
</p>
<div class="hl-surround" style="height:16.8px;"><div class="hl-main"><pre>hi MatchParen term=standout ctermbg=LightGrey ctermfg=Black guibg=LightGrey guifg=Black</pre></div></div>
<ul>
<li><a href="http://www.ac.cyberhome.ne.jp/~yakahaira/vimdoc/syntax.html" title="Vim documentation: syntax" class="favicon_s">Vim documentation: syntax</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/2p_SrCC3RGXJ3zBGMa2I3Rrv1cc/0/da"><img src="http://feedads.g.doubleclick.net/~a/2p_SrCC3RGXJ3zBGMa2I3Rrv1cc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2p_SrCC3RGXJ3zBGMa2I3Rrv1cc/1/da"><img src="http://feedads.g.doubleclick.net/~a/2p_SrCC3RGXJ3zBGMa2I3Rrv1cc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=9gZnYAZN"><img src="http://feeds.feedburner.com/~f/studylog?i=9gZnYAZN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=2W0rvhAu"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=iG54xeOE"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=nUSZQpF4"><img src="http://feeds.feedburner.com/~f/studylog?i=nUSZQpF4" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=FnuVKwhG"><img src="http://feeds.feedburner.com/~f/studylog?i=FnuVKwhG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=58pHShpI"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/05/26/30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/05/26/30/" />
	</item>
		<item>
		<title>mod_rewriteを使うにはFollowSymLinksが必要</title>
		<link>http://study.aruko.net/2008/05/22/35/</link>
		<comments>http://study.aruko.net/2008/05/22/35/#comments</comments>
		<pubDate>Thu, 22 May 2008 03:13:27 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[未分類]]></category>
		<category />
<category>FollowSymLinks</category><category>htaccess</category><category>mod rewrite</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/05/22/35/</guid>
		<description>タイトル通りだけど、つい昨日にハマったのでメモ。 URLの書き換えとかに利用するApacheの拡張であるmod_rewriteですが、Apacheの設定で「FollowSymLinks」設定がオフになっていると使えないよ [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/apache/400.jpg" title="mod_rewriteを使うにはFollowSymLinksが必要" rel="lightbox"><img src="http://media.aruko.net/logo/apache/200.jpg" width="200" height="100" alt="mod_rewriteを使うにはFollowSymLinksが必要" class="photo_rotate_l" /></a>タイトル通りだけど、つい昨日にハマったのでメモ。
</p>
<p>
URLの書き換えとかに利用する<em>Apache</em>の拡張である<em>mod_rewrite</em>ですが、<em>Apache</em>の設定で「<em>FollowSymLinks</em>」設定がオフになっていると使えないようです。ただし<em>mod_rewrite</em>の設定を<em>.htaccess</em>から呼ぶ場合ね(<strong>ここ重要</strong>)。ちなみに、<em>mod_rewrite</em>の<em>マニュアル</em>は下記。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<ul>
<li><a href="http://httpd.apache.org/docs/2.2/ja/mod/mod_rewrite.html" title="mod_rewrite - Apache HTTP Server" class="favicon_s" rel="nofollow">mod_rewrite &#8211; Apache HTTP Server</a></li>
</ul>
<p>
と、上のリンクの<em>マニュアル</em>を読み進めていくと以下のような文章が・・・。
</p>
<blockquote title="mod_rewrite - Apache HTTP Server" cite="http://httpd.apache.org/docs/2.2/ja/mod/mod_rewrite.html"><p>
The rewrite engine may be used in .htaccess files. To enable the rewrite engine for these files you need to set &#8220;RewriteEngine On&#8221; and &#8220;Options FollowSymLinks&#8221; must be enabled. If your administrator has disabled override of FollowSymLinks for a user&#8217;s directory, then you cannot use the rewrite engine. This restriction is required for security reasons.
</p></blockquote>
<p>
あら、マニュアルにも書いてあるわいな。あっちゃー。ま、ざっくり言うと「Options -FollowSymLinks」ではダメで「Options <em>FollowSymLinks</em>」とかにしないとダメって事です。
</p>
<p>
私信になっちゃいますが、サーバーの対応してもらったMさん。本当にスイマセンm(_ _)m
</p>
<ul>
<li><a href="http://www.pistolfly.jp/weblog/2008/04/mod-rewriteforbidden-you-dont.html" title="mod_rewriteでForbidden You don't have permission to access - Memorandum" class="favicon_s" rel="nofollow">mod_rewriteでForbidden You don&#8217;t have permission to access &#8211; Memorandum</a></li>
<li><a href="http://kawama.jp/archives/2007/03/mod_rewriteopti.html" title="kawama.jp: mod_rewriteを使うには「Options FollowSymLinks」が必要" class="favicon_s" rel="nofollow">kawama.jp: mod_rewriteを使うには「Options FollowSymLinks」が必要</a></li>
</ul>
<h3>昔のエントリー</h3>
<ul>
<li><a href="http://jigen.aruko.net/2006/07/26/method-to-make-an-opening-sentence-in-log-of-apache-from-php/" title="PHPからApacheのログに書き出し | jigelog" class="favicon_s" rel="nofollow">PHPからApacheのログに書き出し | jigelog</a></li>
<li><a href="http://jigen.aruko.net/2007/01/18/logging-of-apache-in-high-speed-bufferedlogs/" title="Apacheのロギングを高速に - BufferedLogs | jigelog" class="favicon_s" rel="nofollow">Apacheのロギングを高速に &#8211; BufferedLogs | jigelog</a></li>
<li><a href="http://jigen.aruko.net/2006/11/02/the-basic-certification-is-changed-if-i-make-it-apache22/" title="Apache2.2にしたらBasic認証がスゲー変わってる・・・。 | jigelog" class="favicon_s" rel="nofollow">Apache2.2にしたらBasic認証がスゲー変わってる・・・。 | jigelog</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/xnZTZ3lrqWy5SeXkKT7LNnN1n_Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/xnZTZ3lrqWy5SeXkKT7LNnN1n_Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xnZTZ3lrqWy5SeXkKT7LNnN1n_Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/xnZTZ3lrqWy5SeXkKT7LNnN1n_Y/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=QIkoJRBR"><img src="http://feeds.feedburner.com/~f/studylog?i=QIkoJRBR" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=aq4leSV3"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=eDauNY4h"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=pjHUWcvu"><img src="http://feeds.feedburner.com/~f/studylog?i=pjHUWcvu" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=U2hIxjMu"><img src="http://feeds.feedburner.com/~f/studylog?i=U2hIxjMu" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=sJgvnext"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/05/22/35/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/05/22/35/" />
	</item>
		<item>
		<title>先日のvimとgaucheの連携をちょっと改良</title>
		<link>http://study.aruko.net/2008/04/25/34/</link>
		<comments>http://study.aruko.net/2008/04/25/34/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 07:35:19 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[言語]]></category>
		<category><![CDATA[gauche]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[未分類]]></category>
<category>ウィンドウ</category><category>パイプ</category><category>リダイレクション</category><category>開発</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/04/25/34/</guid>
		<description>先日、「vimのgaucheの出力をウィンドウ分割して表示」というエントリーで、vimでgaucheでの開発をする時の事とか書いたけど、ちょっとした事に気が付いた。 先日の形だとインタラクティブモード(gosh -i)の [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/photo/2008/04/18/14-54-26/400.jpg" title="先日のvimとgaucheの連携をちょっと改良" rel="lightbox"><img src="http://media.aruko.net/photo/2008/04/18/14-54-26/200.jpg" width="200" height="94" alt="先日のvimとgaucheの連携をちょっと改良" class="photo_rotate_r" /></a>先日、「<a href="http://study.aruko.net/2008/04/18/32/" title="vimのgaucheの出力をウィンドウ分割して表示 | jigen studylog" class="favicon_s" rel="nofollow">vimのgaucheの出力をウィンドウ分割して表示</a>」というエントリーで、<em>vim</em>で<em>gauche</em>での開発をする時の事とか書いたけど、ちょっとした事に気が付いた。
</p>
<p>
先日の形だと<em>インタラクティブモード</em>(<em>gosh</em> -i)の設定が意味をなしてないので、毎回式が評価されるように(表現あってる？)してみた。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
いや、単純に<em>gosh</em>を起動する時にファイル名を渡すのではなくて<em>パイプ</em>(<em>リダイレクション</em>)で渡すようにしただけなんすけどね。修正したのを一応再掲。
</p>
<p>
今度は<em>ヴィジュアルモード</em>で選択した部分の評価を表示させたいなぁ。チト調べてみよう。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>fun! GoshRunAll()
  &quot; とりあえず保存をする。あと現在のファイル名を保存しておく
  w%
  let fname = expand(&quot;%&quot;)

  &quot; 5行のバッファを「gosh_out」という名前でウィンドウの下に作る
  below 5new gosh_out

  &quot; 前の出力があるかも知れんので削除する
  execute &quot;:0,%delete&quot;

  &quot; goshを起動する。pathは設定してない。(!!!ここを直した)
  execute &quot;r !gosh -i &lt;&quot;.fname

  &quot; 出力結果を保存しておく
  w /path/to/gosh_out

endfun

nmap &lt;c-s&gt; :call GoshRunAll()&lt;cr&gt;</pre></div></div>
<ul>
<li><a href="http://study.aruko.net/2008/04/18/32/" title="vimのgaucheの出力をウィンドウ分割して表示 | jigen studylog" class="favicon_s" rel="nofollow">vimのgaucheの出力をウィンドウ分割して表示 | jigen studylog</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/YzJiqd4s0Ykn8OJJ6bZcjKegbho/0/da"><img src="http://feedads.g.doubleclick.net/~a/YzJiqd4s0Ykn8OJJ6bZcjKegbho/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YzJiqd4s0Ykn8OJJ6bZcjKegbho/1/da"><img src="http://feedads.g.doubleclick.net/~a/YzJiqd4s0Ykn8OJJ6bZcjKegbho/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=jE2EM61b"><img src="http://feeds.feedburner.com/~f/studylog?i=jE2EM61b" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=c6YWg6B1"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=EYoX3Mu9"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=xwYW3LyQ"><img src="http://feeds.feedburner.com/~f/studylog?i=xwYW3LyQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=TxUdbULG"><img src="http://feeds.feedburner.com/~f/studylog?i=TxUdbULG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=FlsxfD2e"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/04/25/34/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/04/25/34/" />
	</item>
		<item>
		<title>vimのgaucheの出力をウィンドウ分割して表示</title>
		<link>http://study.aruko.net/2008/04/18/32/</link>
		<comments>http://study.aruko.net/2008/04/18/32/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 07:39:04 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[言語]]></category>
		<category><![CDATA[gauche]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[未分類]]></category>
<category>バッファ</category><category>分割</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/04/18/32/</guid>
		<description>地味ーにschemeやってます。全然身になってないですが＞＜。こういうのは諦め悪くやるのが良いかなっと。 最近「プログラミングGauche」も買い風呂場とかでチマチマ読んでます。ところで、やっぱりエディタはEmacsとの [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/photo/2008/04/18/14-54-26/400.jpg" title="vimのgaucheの出力をウィンドウ分割して表示" rel="lightbox"><img src="http://media.aruko.net/photo/2008/04/18/14-54-26/200.jpg" width="200" height="94" alt="vimのgaucheの出力をウィンドウ分割して表示" class="photo_rotate_l" /></a>地味ーに<em>scheme</em>やってます。全然身になってないですが＞＜。こういうのは諦め悪くやるのが良いかなっと。
</p>
<p>
最近「<a href="http://www.amazon.co.jp/gp/product/4873113482?ie=UTF8&#038;tag=jigelog-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=4873113482" rel="nofollow">プログラミングGauche</a>」も買い風呂場とかでチマチマ読んでます。ところで、やっぱり<em>エディタ</em>はEmacsとの相性が良いらしくて、読んでるだけで便利そうで「<em>scheme</em>を効率よく勉強するのはEmacsやるのがいいのかなぁ？」とか思って、何回か試してみるんですが<em>vim</em>に慣れているものでどうもダメだ。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
しかも、Emacsに慣れてしまうと<em>vim</em>を使った時にEmacsのキーを連打してしまう。んじゃ、<em>vim</em>でどこまでイケるかやってみようかという経過をメモ代わりにエントリー。
</p>
<h3>カラースキームとかは適当</h3>
<p>
まだ、<em>scheme</em>を理解してないってのもあるんだけど、カラースキームとかにはあんまり不満がないのでデフォルトで入ってる<em>scheme</em>のカラースキームでOK(オイ)。他に以下のような物があるらしいです。慣れてきたらインストールしてみようと思う。
</p>
<ul>
<li><a href="http://e.tir.jp/wiliki?vim%3Ascheme.vim" title="vim:scheme.vim" class="favicon_s" rel="nofollow">vim:scheme.vim</a></li>
</ul>
<h3>こっから本題</h3>
<p>
んで、結局何をしたいかと言うと、<em>gosh</em>の結果を新しい<em>ウィンドウ</em>(<em>バッファ</em>)に出力を表示したいって事です。以下のような、MzSchemeのインターフェースを追加する方法を書いている方がいたのだけど、やりたいのは<em>gauche</em>の結果を取りたいのだ。(あと、<em>vim</em>のコンパイルとか面倒だった。)
</p>
<ul>
<li><a href="http://d.hatena.ne.jp/reinyannyan/20061123/p1" title="ソース・パッチをリモートから直接展開・適用する - (new Hatena).blog()" class="favicon_s" rel="nofollow">ソース・パッチをリモートから直接展開・適用する &#8211; (new Hatena).blog()</a></li>
</ul>
<p>
多分、普通は以下リンクのように「:!gosh %」とか外部コマンド扱いで現在編集しているファイルをgoshに送るというのが普通なのかも知れないけど、Emacsみたいにショートカット一発でバッファに出したいなぁと。出力が長いと見れなくなるし、あとカーソル移動とかもできないので結果のコピペとかも面倒。
</p>
<ul>
<li><a href="http://jijixi.azito.com/cgi-bin/diary/index.rb?date=20051129#p04" title="jijixi's diary - 関数型言語への恐怖心は薄れたことだし、そろそろ Lisp 系に手を出しても良いのではないか , どうでも良いけど… , いちいち区別.." class="favicon_s" rel="nofollow">jijixi&#8217;s diary &#8211; 関数型言語への恐怖心は薄れたことだし、&#8230;</a></li>
</ul>
<p>
例えば、「プログラミングGauche」の中にあるデバッグコード出力する例にすると。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>(define (fact n)
  (if (= n 0)
    1
    (* n #?=(fact (-n 1)))))</pre></div></div>
<p>
↑こんなのを普通に「:!gosh %」するとこんな感じになる↓。あ、ちなみに「%」は現在編集しているファイルのパスを入れるって事らしいです。
</p>
<p>
<a href="http://media.aruko.net/photo/2008/04/18/15-52-26/600.jpg" title="goshをvimから起動すると" rel="lightbox"><img src="http://media.aruko.net/photo/2008/04/18/15-52-26/400.jpg" width="400" height="287" alt="goshをvimから起動すると" class="photo" /></a>
</p>
<p style="clear:left;">
実行すると…。
</p>
<p>
<a href="http://media.aruko.net/photo/2008/04/18/15-54-52/600.jpg" title="表示されるけど…" rel="lightbox"><img src="http://media.aruko.net/photo/2008/04/18/15-54-52/400.jpg" width="400" height="287" alt="表示されるけど…" class="photo" /></a>
</p>
<h3 style="clear:left;">vimスクリプトをゴニョゴニョしてみた</h3>
<p>
なので、<em>vimスクリプト</em>でどうにかなるかなっと、書いた事もない<em>vimスクリプト</em>をいじってみた。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>fun! GoshRunAll()
  &quot; とりあえず保存をする。あと現在のファイル名を保存しておく
  w%
  let fname = expand(&quot;%&quot;)

  &quot; 5行のバッファを「gosh_out」という名前でウィンドウの下に作る
  below 5new gosh_out

  &quot; 前の出力があるかも知れんので削除する
  execute &quot;:0,%delete&quot;

  &quot; goshを起動する。pathは設定してない。
  execute &quot;r !gosh -i &quot;.fname

  &quot; 出力結果を保存しておく
  w /path/to/gosh_out

endfun

nmap &lt;c-s&gt; :call GoshRunAll()&lt;cr&gt;</pre></div></div>
<p>
これを<em>scheme</em>ファイルを編集する時に読み込まれる<em>vimスクリプト</em>に入れておく、syntaxとかftpluginあたりの奴に入れたらいいと思う。今回はCtrl-Sキーで<em>gosh</em>に送り込むように設定しておいた。んで、実際Ctrl-Sで起動してみる。
</p>
<p>
<a href="http://media.aruko.net/photo/2008/04/18/16-28-14/600.jpg" title="分割して表示されるよ！" rel="lightbox"><img src="http://media.aruko.net/photo/2008/04/18/16-28-14/400.jpg" width="400" height="299" alt="分割して表示されるよ！" class="photo_rotate_l" /></a>
</p>
<p style="clear:left;">
無事出来るようになった。便利！
</p>
<h3>不満＋今後</h3>
<p>
多分、もっとスマートな方法があるんだろうけど自分的にはこれで十分満足。ただ気になるのはEmacsと違って、スクラッチバッファ的な物がないので(俺が知らないだけかもだけど)、ファイルのような処理にしなければならないのがちとイマイチ。
</p>
<p>
後は、ヴィジュアルモードで選択した場所だけをgoshに送って評価とかしたいな・・・<em>vimscript</em>やろうかなぁ・・・。うーん。誰かプラグインとか配布してないのかしらん。
</p>
<ul>
<li><a href="http://e.tir.jp/wiliki?vim%3Ascheme.vim" title="vim:scheme.vim" class="favicon_s">vim:scheme.vim</a></li>
<li><a href="http://jijixi.azito.com/cgi-bin/diary/index.rb?date=20051129#p04" title="jijixi's diary - 関数型言語への恐怖心は薄れたことだし、そろそろ Lisp 系に手を出しても良いのではないか , どうでも良いけど… , いちいち区別.." class="favicon_s">jijixi&#8217;s diary &#8211; 関数型言語への恐怖心は薄れたことだし、&#8230;</a></li>
<li><a href="http://d.hatena.ne.jp/reinyannyan/20061123/p1" title="ソース・パッチをリモートから直接展開・適用する - (new Hatena).blog()" class="favicon_s">ソース・パッチをリモートから直接展開・適用する &#8211; (new Hatena).blog()</a></li>
<li><a href="http://www.amazon.co.jp/gp/product/4873113482?ie=UTF8&#038;tag=jigelog-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=4873113482" rel="nofollow">プログラミングGauche</a></li>
</ul>
<p>
<a href="http://www.amazon.co.jp/gp/product/4873113482?ie=UTF8&#038;tag=jigelog-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=4873113482" title="プログラミングGauche"><img src="http://rcm-images.amazon.com/images/I/51Exg14b4uL._SL100_.jpg" width="78" height="100" alt="プログラミングGauche" class="photo_rotate_l" /></a>
</p>
<p><img src="http://www.assoc-amazon.jp/e/ir?t=jigelog-22&#038;l=as2&#038;o=9&#038;a=4873113482" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>

<p><a href="http://feedads.g.doubleclick.net/~a/cIurZ_ha9P4GHLe6SViKxrij1yQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/cIurZ_ha9P4GHLe6SViKxrij1yQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cIurZ_ha9P4GHLe6SViKxrij1yQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/cIurZ_ha9P4GHLe6SViKxrij1yQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=fgQNtg5p"><img src="http://feeds.feedburner.com/~f/studylog?i=fgQNtg5p" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=5PtaetFv"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=OTAEQnTM"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=P8IIX2yY"><img src="http://feeds.feedburner.com/~f/studylog?i=P8IIX2yY" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=l9jxDsLn"><img src="http://feeds.feedburner.com/~f/studylog?i=l9jxDsLn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=Eb5j8n7T"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/04/18/32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/04/18/32/" />
	</item>
		<item>
		<title>Inkscapeで画像をスライスする</title>
		<link>http://study.aruko.net/2008/04/16/31/</link>
		<comments>http://study.aruko.net/2008/04/16/31/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 07:22:30 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[デザイン]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[未分類]]></category>
<category>inkscape</category><category>デザイン</category><category>未分類</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/04/16/31/</guid>
		<description>Webデザインをする時にはFireworks(Adobe)をずっと使っている(いた？)。 Fireworksはあんまり噂にならない感じの目立たない存在だけど、illustratorとかより軽いしWebデザインするときには [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/inkscape/400.jpg" title="Inkscapeで画像をスライスする" rel="lightbox"><img src="http://media.aruko.net/logo/inkscape/200.jpg" width="200" height="137" alt="Inkscapeで画像をスライスする" class="photo_rotate_r" /></a><em>Webデザイン</em>をする時にはFireworks(Adobe)をずっと使っている(いた？)。
</p>
<p>
Fireworksはあんまり噂にならない感じの目立たない存在だけど、illustratorとかより軽いしWebデザインするときには<em>モックアップ</em>が一枚のファイルで管理できたり(多分illustratorとかも多分出来るけど、面倒)、動作が軽かったり、<em>スライス</em>(一部の画像のみを切り出す)が簡単に作れたりと、Fireworksファンであり続けたんです。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
ただ、フリーで他に良い物は無いのか？とここ数年探してたりしてた。<a href="http://www.inkscape.org/" title="Inkscape 自由に描く。" class="favicon_s" rel="nofollow">Inkscape</a>は<em>ベクターグラフィック</em>(<em>ドローソフト</em>)として評価も高いので、ずっと気になっている存在ではあったんだけど、スライスの方法がずっと分からなくて(知らなくて)やっぱりFireworksに戻ってきてしまう。というのを繰り返していたんだけど、フトしたきっかけで<em>スライス</em>も出来るという事を説明した動画を見つけた。
</p>
<p>
あ、その前に<em>Inkscape</em>の簡易説明を公式サイトより引用。
</p>
<blockquote title="Inkscape 自由に描く。" cite="http://www.inkscape.org/"><p>
InkscapeはW3C標準のScalable Vector Graphics（SVG）フォーマットを使ったオープンソースのベクターグラフィックソフトで、IllustratorやFreeHand、 CorelDrawや Xara Xに類似しています。<br />
～中略～<br />
InkscapeはJPEG、PNG、TIFFなどのビットマップ画像をインポートでき、PNGとしてエクスポートできます。また、様々なベクターベースのフォーマットにも対応しています。</p></blockquote>
<p>
さて、肝心の動画はこちら。(英語分からない俺が観ても大丈夫なので、理解できると思う)
</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/NAKRS2TcKmQ&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/NAKRS2TcKmQ&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>
そうかー！透明度が高い状態の四角形のオブジェクトを貼り付けてその領域を書き出すって形になるのか！腑に落ちた。でもちょっと面倒かもなぁ。
</p>
<p>
ただ、<em>スライス</em>が出来るという事が分かったので、今後は<em>Inkscape</em>率が高くなるかも知れません。<em>SVG</em>形式での保存ですので、そのままモックを見せ合う事も簡単に出来そうだし(まーFireworksもPNG形式だから同じだけどね)。
</p>
<p>
あとは自動化ツールがあるってのも面白そうだ。軽く調べた所だと、<em>SVG</em>形式は<em>XML</em>だからその結果を外部プログラム(スクリプト)に渡して編集して、結果を戻すって形式になるみたい。この形式だったら言語とか選ばないしイイね。
</p>
<ul>
<li><a href="http://www.inkscape.org/" title="Inkscape 自由に描く。" class="favicon_s">Inkscape 自由に描く。</a></li>
<li><a href="http://ja.wikipedia.org/wiki/Inkscape" title="Inkscape - Wikipedia" class="favicon_s">Inkscape &#8211; Wikipedia</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/01jfnkyNkuH_1C48bFA24EWmjFc/0/da"><img src="http://feedads.g.doubleclick.net/~a/01jfnkyNkuH_1C48bFA24EWmjFc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/01jfnkyNkuH_1C48bFA24EWmjFc/1/da"><img src="http://feedads.g.doubleclick.net/~a/01jfnkyNkuH_1C48bFA24EWmjFc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=a1eYIjOG"><img src="http://feeds.feedburner.com/~f/studylog?i=a1eYIjOG" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=xlJAosQ5"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=fA3RWJvt"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=m8l9HBFV"><img src="http://feeds.feedburner.com/~f/studylog?i=m8l9HBFV" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=G3NWZgJp"><img src="http://feeds.feedburner.com/~f/studylog?i=G3NWZgJp" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=CoOC9wnz"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/04/16/31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/04/16/31/" />
	</item>
		<item>
		<title>vimでcssファイルに色付け</title>
		<link>http://study.aruko.net/2008/04/14/28/</link>
		<comments>http://study.aruko.net/2008/04/14/28/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 03:04:31 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[言語]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[未分類]]></category>
<category>css</category><category>vim</category><category>エディタ</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/04/14/28/</guid>
		<description>東京嫉妬経由。cssファイルをvimで編集している時に、一番確認に時間がかかるのは私の場合色指定だったりします。 ブラウザでオートロードとかしてもその色指定の場所をブラウザ上で探すのも結構手間。それにちゃんとした色を作る [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/vim2/400.jpg" title="vimでcssファイルに色付け" rel="lightbox"><img src="http://media.aruko.net/logo/vim2/200.jpg" width="200" height="110" alt="vimでcssファイルに色付け" class="photo_rotate_l" /></a><a href="http://tokyoenvious.xrea.jp/" title="東京嫉妬" class="favicon_s" rel="nofollow">東京嫉妬</a>経由。<em>css</em>ファイルを<em>vim</em>で編集している時に、一番確認に時間がかかるのは私の場合色指定だったりします。
</p>
<p>ブラウザでオートロードとかしてもその色指定の場所をブラウザ上で探すのも結構手間。それにちゃんとした色を作るときはドローソフトとか使ってたりするので、その二度手間もある。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
んで、<em>css</em>を編集している時に「#ffff00」とかの指定を「<span style="background:#ffff00;">#ffff00</span>」みたいに指定された色で文字の背景に色をつけるという<em>vim</em><em>プラグイン</em>を配布されていたので紹介。
</p>
<ul>
<li><a href="http://tokyoenvious.xrea.jp/b/vim/immediate_css_color.html" title="[Vim7]CSSで使っている色を分かりやすくする | 東京嫉妬" class="favicon_s" rel="nofollow">[Vim7]CSSで使っている色を分かりやすくする | 東京嫉妬</a></li>
</ul>
<p>
自分の場合は、~/runtime/syntax/css.vimの最後に追加した。htmlファイルとかphpファイルとかの編集でも<em>css</em>の<em>シンタックス</em>を読み込んでいるしね。
</p>
<p>
黒い色を指定すると文字自体が読みにくくなるのはご愛嬌だけど、かなーり便利。微妙な色指定には使えないけどデバッグやら簡単なチェックには激しく使える。
</p>
<ul>
<li><a href="http://tokyoenvious.xrea.jp/b/vim/immediate_css_color.html" title="[Vim7]CSSで使っている色を分かりやすくする | 東京嫉妬" class="favicon_s">[Vim7]CSSで使っている色を分かりやすくする | 東京嫉妬</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/iRwKeemjP4xXoCoq68xI8NNiPvE/0/da"><img src="http://feedads.g.doubleclick.net/~a/iRwKeemjP4xXoCoq68xI8NNiPvE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iRwKeemjP4xXoCoq68xI8NNiPvE/1/da"><img src="http://feedads.g.doubleclick.net/~a/iRwKeemjP4xXoCoq68xI8NNiPvE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=lR9GoR7w"><img src="http://feeds.feedburner.com/~f/studylog?i=lR9GoR7w" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=CfKBOA9T"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=chNzvO3F"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=lmJqME36"><img src="http://feeds.feedburner.com/~f/studylog?i=lmJqME36" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=wOPLWCc0"><img src="http://feeds.feedburner.com/~f/studylog?i=wOPLWCc0" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=mXFC7aGu"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/04/14/28/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/04/14/28/" />
	</item>
		<item>
		<title>vimの一つのウィンドウで複数タブで編集する</title>
		<link>http://study.aruko.net/2008/04/07/29/</link>
		<comments>http://study.aruko.net/2008/04/07/29/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 06:43:41 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[ウィンドウ]]></category>
		<category><![CDATA[タブ]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
<category>vim</category><category>エディタ</category><category>未分類</category>
		<guid isPermaLink="false">http://study.aruko.net/2008/04/07/29/</guid>
		<description>なんか、前書いたような気がするけど、サクっと探して見当たらなかったので備忘録も兼ねてメモ。 vim7から、タブ表示が可能になったのですが、複数のファイルを一気に開ける事ってのはあんまりなくて、Windowsで作業を行って [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/vim2/400.jpg" title="vimの一つのウィンドウで複数タブで編集する" rel="lightbox"><img src="http://media.aruko.net/logo/vim2/200.jpg" width="200" height="110" alt="vimの一つのウィンドウで複数タブで編集する" class="photo_rotate_r" /></a>なんか、前書いたような気がするけど、サクっと探して見当たらなかったので備忘録も兼ねてメモ。
</p>
<p>
<em>vim</em>7から、<em>タブ</em>表示が可能になったのですが、複数のファイルを一気に開ける事ってのはあんまりなくて、Windowsで作業を行っている場合はエキスプローラから開こうとする事が私は多い。もしくはサーバー上のを<em>WinSCP</em>経由とか。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
そんな時に毎回別の<em>vim</em>ウィンドウが立ち上がってしまうので、一つの<em>ウィンドウ</em>の中の<em>タブ</em>に読み込みたいんだよー。って時に使う立ち上げオプション。
</p>
<p>
結論から言うと以下のように「&#8211;remote-tab-silent」を追加する。ちなみにLinux環境(私の場合はUbuntu)の場合は「&#8211;remote-tab」でイケる。
</p>
<div class="hl-surround" style="height:16.8px;"><div class="hl-main"><pre>gvim -f --remote-tab-silent</pre></div></div>
<p>
vim以外のエディタも最近気になるんだよなー。関係ないけど。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/3R7vjtRmPBe88ssf5bc6aLnkZV0/0/da"><img src="http://feedads.g.doubleclick.net/~a/3R7vjtRmPBe88ssf5bc6aLnkZV0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/3R7vjtRmPBe88ssf5bc6aLnkZV0/1/da"><img src="http://feedads.g.doubleclick.net/~a/3R7vjtRmPBe88ssf5bc6aLnkZV0/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=sMW1hf7U"><img src="http://feeds.feedburner.com/~f/studylog?i=sMW1hf7U" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=u8VAqZPS"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=tc7J2Idx"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=30e3LNnr"><img src="http://feeds.feedburner.com/~f/studylog?i=30e3LNnr" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=VGPPKx2l"><img src="http://feeds.feedburner.com/~f/studylog?i=VGPPKx2l" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=WbOJ4MUN"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2008/04/07/29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2008/04/07/29/" />
	</item>
		<item>
		<title>プログレスバーのような棒グラフ</title>
		<link>http://study.aruko.net/2007/12/20/26/</link>
		<comments>http://study.aruko.net/2007/12/20/26/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 09:20:38 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[ユーザーインターフェース]]></category>
		<category><![CDATA[グラフ]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[プログレスバー]]></category>
		<category><![CDATA[棒グラフ]]></category>
<category>javascript</category><category>グラフ</category><category>ユーザーインターフェース</category><category>未分類</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/12/20/26/</guid>
		<description>Bram.us経由。棒グラフを表示をする際に処理の進捗を視覚的に表示するプログレスバーがありますが(何％終わりましたっていうアレです)、これを棒グラフに利用して視覚的に棒グラフを表示するjavascriptライブラリらし [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/photo/2007/12/20/18-05-31/400.jpg" title="プログレスバーのような棒グラフ" rel="lightbox"><img src="http://media.aruko.net/photo/2007/12/20/18-05-31/200.jpg" width="200" height="125" alt="プログレスバーのような棒グラフ" class="photo_rotate_l" /></a><a href="http://www.bram.us/" title="Bram.us" class="favicon_s" rel="nofollow">Bram.us</a>経由。棒グラフを表示をする際に処理の進捗を視覚的に表示するプログレスバーがありますが(何％終わりましたっていうアレです)、これを棒グラフに利用して視覚的に棒グラフを表示するjavascriptライブラリらしいです。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
<a href="http://www.bram.us/projects/js_bramus/jsprogressbarhandler/" title="jsProgressBarHandler" class="favicon_s" rel="nofollow">jsProgressBarHandler</a>という奴で、デモはこちら→(<a href="http://www.bram.us/demo/projects/jsprogressbarhandler/" title="jsProgressBarHandler Demo" class="favicon_s" rel="nofollow">jsProgressBarHandler Demo</a>)。実際動かすと左側からグイーっと伸びてくるのが結構気持ちよい。こういうアニメだったらウザったくならないのかな。特にデモのようにToDo管理とかに使うと少しやる気が出るかも。
</p>
<p>
最近、グラフにちょっとご執心。
</p>
<ul>
<li><a href="http://www.bram.us/projects/js_bramus/jsprogressbarhandler/" title="Bram.us » jsProgressBarHandler (Dynamic Unobtrusive Javascript Progress/Percentage Bar)" class="favicon_s">Bram.us » jsProgressBarHandler (Dynamic Unobtrusive Javascript Progress/Percentage Bar)</a></li>
<li><a href="http://www.bram.us/demo/projects/jsprogressbarhandler/" title="jsProgressBarHandler Demo | Javascript Progress/Percentage Bar" class="favicon_s">jsProgressBarHandler Demo | Javascript Progress/Percentage Bar</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/9YS-Pi_xI9xV7E4hF5aLRAVghDM/0/da"><img src="http://feedads.g.doubleclick.net/~a/9YS-Pi_xI9xV7E4hF5aLRAVghDM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9YS-Pi_xI9xV7E4hF5aLRAVghDM/1/da"><img src="http://feedads.g.doubleclick.net/~a/9YS-Pi_xI9xV7E4hF5aLRAVghDM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=2trooYhH"><img src="http://feeds.feedburner.com/~f/studylog?i=2trooYhH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=sjF3iYme"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=w9bxFgr3"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=sV3wU5XA"><img src="http://feeds.feedburner.com/~f/studylog?i=sV3wU5XA" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=TGsCYvL0"><img src="http://feeds.feedburner.com/~f/studylog?i=TGsCYvL0" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=DLOaYGJm"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/12/20/26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/12/20/26/" />
	</item>
		<item>
		<title>フェードしながらコンテンツ表示 jQueryライブラリ</title>
		<link>http://study.aruko.net/2007/12/18/25/</link>
		<comments>http://study.aruko.net/2007/12/18/25/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 08:11:11 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[言語]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[未分類]]></category>
<category>javascript</category><category>jQuery</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/12/18/25/</guid>
		<description>JavaScript Kit経由。フェードしながらコンテンツ表示をするjQueryライブラリだそうな。 タブのようなインターフェースで隠されているコンテンツをボックスの中で入れ替わるのはよくありますが、フェードしながらっ [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/photo/2007/12/18/17-02-12/400.jpg" title="フェードしながらコンテンツ表示 jQueryライブラリ" rel="lightbox"><img src="http://media.aruko.net/photo/2007/12/18/17-02-12/200.jpg" width="200" height="149" alt="フェードしながらコンテンツ表示 jQueryライブラリ" class="photo_rotate_r" /></a><a href="http://www.javascriptkit.com/" title="JavaScript Kit- Comprehensive JavaScript, DHTML, CSS tutorials and over 400+ free JavaScripts!" class="favicon_s" rel="nofollow">JavaScript Kit</a>経由。フェードしながらコンテンツ表示をするjQueryライブラリだそうな。
</p>
<p>
タブのようなインターフェースで隠されているコンテンツをボックスの中で入れ替わるのはよくありますが、フェードしながらってのは少なかったのでメモも含めてエントリー。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
<a href="http://www.javascriptkit.com/script/script2/fadeincontentviewer.shtml" title="Fade In Content Viewer" class="favicon_s">Fade In Content Viewer</a>という名前のライブラリでjQueryと併用して使うものなので最近良く使っているjavascriptフレームワークがjQueryの私としてはうれしい限り。
</p>
<p>
あと、スイッチというかトリガーになるコンテンツ側の設定も楽そう。
</p>
<ul>
<li><a href="http://www.javascriptkit.com/script/script2/fadeincontentviewer.shtml" title="Cut &amp; Paste Fade In Content Viewer" class="favicon_s" rel="nofollow">Cut &amp; Paste Fade In Content Viewer</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/wP3QxC1vT0m6-yJJnRQgy0pU7w8/0/da"><img src="http://feedads.g.doubleclick.net/~a/wP3QxC1vT0m6-yJJnRQgy0pU7w8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wP3QxC1vT0m6-yJJnRQgy0pU7w8/1/da"><img src="http://feedads.g.doubleclick.net/~a/wP3QxC1vT0m6-yJJnRQgy0pU7w8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=iNlhmz67"><img src="http://feeds.feedburner.com/~f/studylog?i=iNlhmz67" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=D5RIQaSP"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=B6KhGI9z"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=nzx6BgbS"><img src="http://feeds.feedburner.com/~f/studylog?i=nzx6BgbS" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=1IgZDMUu"><img src="http://feeds.feedburner.com/~f/studylog?i=1IgZDMUu" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=ob6ZFui7"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/12/18/25/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/12/18/25/" />
	</item>
		<item>
		<title>lighttpdのlogrotate設定</title>
		<link>http://study.aruko.net/2007/12/06/23/</link>
		<comments>http://study.aruko.net/2007/12/06/23/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 09:45:16 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[未分類]]></category>
<category>lighttpd</category><category>サーバ管理</category><category>未分類</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/12/06/23/</guid>
		<description>elanbeat&amp;#8217;s wiki経由。lighttpdを入れてログをlogrotateしてたんですが、ちゃんと再起動してくれないみたいで、困ったなと思ってた時に見つけた物。 ま、要するにpidを保存してあるファ [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/lighttpd/400.jpg" title="lighttpdのlogrotate設定" rel="lightbox"><img src="http://media.aruko.net/logo/lighttpd/200.jpg" width="200" height="120" alt="lighttpdのlogrotate設定" class="photo_rotate_l" /></a><a href="http://wiki.elanbeat.com/instiki/published/HomePage" title="elanbeat's wiki" class="favicon_s" rel="nofollow">elanbeat&#8217;s wiki</a>経由。lighttpdを入れてログを<a href="http://linuxcommand.org/man_pages/logrotate8.html" title="logrotate" class="favicon_s" rel="nofollow">logrotate</a>してたんですが、ちゃんと再起動してくれないみたいで、困ったなと思ってた時に見つけた物。
</p>
<p>
ま、要するにpidを保存してあるファイルを指定してあげた方が良いでっせ。という事らしい。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>/path/to/lighttpd/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /path/to/lighttpd.pid 2&gt;/dev/null` 2&gt; /dev/null || true
    endscript
}</pre></div></div>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
上のようにlogrotate.dの中に置いてある設定ファイルを書く感じ。もちろんpidのファイルの場所と、ログの場所は変更する必要アリ。
</p>
<ul>
<li><a href="http://wiki.elanbeat.com/instiki/published/LighttpdLogRotation" title="LighttpdLogRotation in elanbeat's wiki" class="favicon_s" rel="nofollow">LighttpdLogRotation in elanbeat&#8217;s wiki</a></li>
<p><a href="http://linuxcommand.org/man_pages/logrotate8.html" title="logrotate" class="favicon_s" rel="nofollow">logrotate</a>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/iNmlKb9HMwD6_4wgZD9L7w6Zn2U/0/da"><img src="http://feedads.g.doubleclick.net/~a/iNmlKb9HMwD6_4wgZD9L7w6Zn2U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iNmlKb9HMwD6_4wgZD9L7w6Zn2U/1/da"><img src="http://feedads.g.doubleclick.net/~a/iNmlKb9HMwD6_4wgZD9L7w6Zn2U/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=4BLO21u9"><img src="http://feeds.feedburner.com/~f/studylog?i=4BLO21u9" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=n8CEjZDh"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=WoIN2z8c"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=vq35QlDO"><img src="http://feeds.feedburner.com/~f/studylog?i=vq35QlDO" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=FRYcuOK3"><img src="http://feeds.feedburner.com/~f/studylog?i=FRYcuOK3" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=dYK6tz3O"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/12/06/23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/12/06/23/" />
	</item>
		<item>
		<title>scheme 四則演算</title>
		<link>http://study.aruko.net/2007/11/19/21/</link>
		<comments>http://study.aruko.net/2007/11/19/21/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 14:38:55 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[言語]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[未分類]]></category>
<category>lisp</category><category>scheme</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/19/21/</guid>
		<description>え～っとschemeで四則演算ですが、いきなりちょいビビッてます。 これはschemeがどうこうと言うよりも自分の数学(算数？ｗ)とかの素養が余りない事が原因かと思われまする。これから数学とか再勉強してみようかなー。ちょ [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/scheme/400.jpg" title="scheme 四則演算" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/scheme/200.jpg" width="200" height="125" alt="scheme 四則演算" class="photo_rotate_r" /></a>え～っとschemeで四則演算ですが、いきなりちょいビビッてます。
</p>
<p>
これはschemeがどうこうと言うよりも自分の数学(算数？ｗ)とかの素養が余りない事が原因かと思われまする。これから数学とか再勉強してみようかなー。ちょっと遅いかな。
</p>
<h4>まずは簡単に</h4>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
さて、四則演算(+-*/)って奴です。単純に<strong>(算術記号 数字 数字)</strong>ってのが基本形。<a href="http://ja.wikipedia.org/wiki/S%E5%BC%8F" title="S式 - Wikipedia" class="favicon_s" rel="nofollow">S式</a>って呼ばれてるみたい。</p>
<p>
違う書き方すれば<strong>(命令 引数 引数 &#8230;)</strong>って事かな。多分演算子も関数って事なんだろう(多分)。色々インタラクティブシェルに入力して試してみた流れをメモ。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (+ 1 2)
3</pre></div></div>
<p>
ハイ、1+2=3 って答えね。フム。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (+ 1 2 5)
8</pre></div></div>
<p>
計算する要素というか引数は複数入れられるっと。色々やってみんべ。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (* 2 3)
6
gosh&gt; (/ 6 2)
3
gosh&gt; (* 3 3 5 6)
270
gosh&gt; (/ 1248 24)
52</pre></div></div>
<h3>少数は？</h3>
<p>
少数ってどうなるんだろうか。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (+ 1.1 3.3)
4.4
gosh&gt; (+ 1.2 3)
4.2
gosh&gt;(* 24.2 3)
72.6</pre></div></div>
<p>
少数もそのまま書けるね。更に少数表記(.どっと)と整数表記の混在でもOKっと。
</p>
<h3>除算で割り切れない場合は？</h3>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (/ 14 3)
14/3
gosh&gt; (/ 2 4 3)
1/6</pre></div></div>
<p>
なるほど～分数表記なのね。素敵。ってことは？
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (/ 1/2 1/3)
3/2</pre></div></div>
<p>
おお！分数の表記を引数にも取れるのか。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (/ 3.3 333)
0.00990990990990991</pre></div></div>
<p>
むむ。少数が含まれているのは分数だったとしても少数表記になるのね。(当たり前かｗ)
</p>
<h3>引数が一個の場合は？</h3>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (+ 1)
1
gosh&gt; (- 1)
-1
gosh&gt; (/ 1)
1
gosh&gt; (* 1)
1
gosh&gt; (/ 4)
1/4
gosh&gt; (/ 2.3)
0.4347826086956522</pre></div></div>
<p>
引数が一個の場合は「1」との演算になるみたい。上記のように少数で行うと少数表記になるようだ。
</p>
<h3>んじゃ引数が０の場合は？</h3>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (+)
0
gosh&gt; (-)
Error: comile Error: procedure - requires at least one argument: (-)
gosh&gt; (/)
Error: comile Error: procedure - requires at least one argument: (/)
gosh&gt; (*)</pre></div></div>
<p>
ん？減算(-)と除算(/)だけエラーになる。引数が無しでも実行できるのは個人的には衝撃的だな～。という事は？
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (- 0 0)
0
gosh&gt; (- 0)
0</pre></div></div>
<p>
これはOKだ。んじゃ除算は？
</p>
<div class="hl-surround" ><div class="hl-main"><pre>gosh&gt; (/ 0 0)
#&lt;nan&gt;
gosh&gt; (/ 0)
#i1/0</pre></div></div>
<p>
おおお？<strong>なんぞこれ</strong>。と言うわけでちょっと調べてみた。
</p>
<blockquote title="Scheme:初心者の質問箱" cite="http://practical-scheme.net/wiliki/wiliki.cgi?Scheme%3a%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e8%b3%aa%e5%95%8f%e7%ae%b1#H-7pd5b6"><p>#i1/0 は正の無限大です。&#8221;#i&#8221; は非正確数であることを明示するプリフィクスです (cf. Scheme:非正確な整数)。このような特別な数は他に負の無限大 (#i-1/0) と NaN (#i0/0) があります。 (なお、ここでの「無限大」は数学的な無限大の概念ではなくて、「計算機上で表現しきれないほど大きな数」という意味なので、常に非正確数です。正確な無限大はGaucheにはありません。)</p></blockquote>
<ul>
<li><a href="http://practical-scheme.net/wiliki/wiliki.cgi?Scheme%3a%e5%88%9d%e5%bf%83%e8%80%85%e3%81%ae%e8%b3%aa%e5%95%8f%e7%ae%b1#H-7pd5b6" title="Scheme:初心者の質問箱" class="favicon_s" rel="nofollow">Scheme:初心者の質問箱</a></li>
</ul>
<p>
おおおう。無限大かいな！その後ちょいと調べてみた結果処理系によって表示される表記が違うみたいだ。まぁ。NaNだの#i1/0 って表示されてもビビらないようにだけ心に留めよう。
</p>
<p>
いやー。どうしましょう。＾＾；<br />
これ以上難しい数学になったら着いていけるか？心配。ｗ
</p>
<ul>
<li><a href="http://www.shido.info/lisp/scheme2.html" tilte="Scheme 入門 2. Scheme を電卓代わりに使う" class="favicon_s" rel="nofollow">Scheme 入門 2. Scheme を電卓代わりに使う</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/U7lqssWIX46V4uIWdR7Dqf-J1d0/0/da"><img src="http://feedads.g.doubleclick.net/~a/U7lqssWIX46V4uIWdR7Dqf-J1d0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/U7lqssWIX46V4uIWdR7Dqf-J1d0/1/da"><img src="http://feedads.g.doubleclick.net/~a/U7lqssWIX46V4uIWdR7Dqf-J1d0/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=kuQEIAzE"><img src="http://feeds.feedburner.com/~f/studylog?i=kuQEIAzE" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=Hnv48346"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=Z5Nklwxg"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=97FBaYFZ"><img src="http://feeds.feedburner.com/~f/studylog?i=97FBaYFZ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=UAL3J3Fm"><img src="http://feeds.feedburner.com/~f/studylog?i=UAL3J3Fm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=stvsbXdH"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/19/21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/19/21/" />
	</item>
		<item>
		<title>goshではledit使う</title>
		<link>http://study.aruko.net/2007/11/16/22/</link>
		<comments>http://study.aruko.net/2007/11/16/22/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 07:12:54 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[言語]]></category>
		<category><![CDATA[gauche]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[未分類]]></category>
<category>gauche</category><category>lisp</category><category>scheme</category><category>エディタ</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/16/22/</guid>
		<description>jijixi&amp;#8217;s diary経由。gosh立ち上げて色々schemeの練習・勉強をちょぼちょぼしてるんですが、BackSpace効かないとかちょいとイライラしてて見つけたもの。 % ledit gosh -i [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/gauche/400.jpg" title="goshではledit使う" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/gauche/200.jpg" width="200" height="44" alt="goshではledit使う" class="photo_rotate_r" /></a><a href="http://jijixi.azito.com/cgi-bin/diary/index.rb" title="jijixi's diary" class="favicon_s" rel="nofollow">jijixi&#8217;s diary</a>経由。gosh立ち上げて色々schemeの練習・勉強をちょぼちょぼしてるんですが、BackSpace効かないとかちょいとイライラしてて見つけたもの。
</p>
<div class="hl-surround" style="height:16.8px;"><div class="hl-main"><pre>% ledit gosh -i</pre></div></div>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
leditをインストールして、上記のコマンドでgosh立ち上げると編集が色々簡単になってヨサゲなので( ..)φメモメモ。readlineみたいなもんかしらん。
</p>
<p>
leditはocamlで作られているらしく、aptとかだと簡単に入れられるけど他だと試していないけど大変かも知れない。公式はココみたいです→<del datetime="2007-11-17T01:25:52+00:00">/var/www/public_html/xs4all/treasure/ledit</del><br />
<a href="http://pauillac.inria.fr/~ddr/ledit/" title="ledit" class="favicon_s" rel="nofollow">ledit</a>
</p>
<p><ins datetime="2007-11-17T01:25:52+00:00">
<p>↑leditの新しい公式サイト教えてもらいました！(<a href="http://d.hatena.ne.jp/keita_yamaguchi/" title="￢￢日常日記" class="favicon_s" rel="nofollow">keita.yamaguchi</a>さん。thanks!)</p>
<p></ins></p>
<ul>
<li><a href="http://pauillac.inria.fr/~ddr/ledit/" title="ledit" class="favicon_s" rel="nofollow">ledit</a></li>
<li><a href="http://www.xs4all.nl/~wrvh/treasure/ledit/list.html" tilte="/var/www/public_html/xs4all/treasure/ledit" class="favicon_s" rel="nofollow">/var/www/public_html/xs4all/treasure/ledit</a></li>
<li><a href="http://hfujita.air-nifty.com/blog/2004/10/where_is_ledit.html" tilte="#include &lt;fujita.h&gt;: Where is ledit?" class="favicon_s" rel="nofollow">#include &lt;fujita.h&gt;: Where is ledit?</a></li>
<li><a href="http://jijixi.azito.com/cgi-bin/diary/index.rb?date=20051129" tilte="jijixi's diary - 関数型言語への恐怖心は薄れたことだし、そろそろ Lisp 系に手を出しても良いのではないか , どうでも良いけど… , いちいち区別.." class="favicon_s" rel="nofollow">jijixi&#8217;s diary &#8211; 関数型言語への恐怖心..</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/u1i2XkBoRb43-VPjx2VNih8N4tc/0/da"><img src="http://feedads.g.doubleclick.net/~a/u1i2XkBoRb43-VPjx2VNih8N4tc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/u1i2XkBoRb43-VPjx2VNih8N4tc/1/da"><img src="http://feedads.g.doubleclick.net/~a/u1i2XkBoRb43-VPjx2VNih8N4tc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=bauMR67R"><img src="http://feeds.feedburner.com/~f/studylog?i=bauMR67R" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=noSvKyFO"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=7VQBHH6n"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=O5hbdA8Q"><img src="http://feeds.feedburner.com/~f/studylog?i=O5hbdA8Q" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=jWDBptQI"><img src="http://feeds.feedburner.com/~f/studylog?i=jWDBptQI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=nFixF9T4"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/16/22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/16/22/" />
	</item>
		<item>
		<title>処理系はgaucheをインストールしてみる</title>
		<link>http://study.aruko.net/2007/11/14/20/</link>
		<comments>http://study.aruko.net/2007/11/14/20/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 08:57:28 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[言語]]></category>
		<category><![CDATA[gauche]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[未分類]]></category>
<category>gauche</category><category>lisp</category><category>scheme</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/14/20/</guid>
		<description>schemeやってみるにしても、とりあえず処理系入れないとな。悩んだんだけど結局Gaucheにしてみた。 ゴーシュって読むのね、サイトとかで処理系を眺めててずっとガウチェって読んでたよ。 google_ad_client [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/scheme/400.jpg" title="処理系はgaucheをインストールしてみる" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/scheme/200.jpg" width="200" height="125" alt="処理系はgaucheをインストールしてみる" class="photo_rotate_l" /></a>schemeやってみるにしても、とりあえず処理系入れないとな。悩んだんだけど結局<a href="http://practical-scheme.net/gauche/index-j.html" title="Gauche - A Scheme Interpreter" class="favicon_s" rel="nofollow">Gauche</a>にしてみた。
</p>
<p>
<strong>ゴーシュ</strong>って読むのね、サイトとかで処理系を眺めててずっとガウチェって読んでたよ。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
(使った事もないのに偉そうに)選んだ理由としては以下。
</p>
<ol>
<li>スクリプトインタプリタがある(大体どの処理系にもあるみたいだけど)</li>
<li>最初から多国語対応を考慮していること(マルチバイトに頭悩ませるのは最初は辛い)</li>
<li>最初は<a href="http://www.gnu.org/software/mit-scheme/" title="MIT/GNU Scheme - GNU Project - Free Software Foundation (FSF)" class="favicon_s" rel="nofollow">MIT/GNU Scheme</a>にしようかなと思ったんだけど、なんか挙動がおかしいって指摘があったので却下</li>
<li>Ubuntuでやればパッケージでインストールできるので楽</li>
</ol>
<p>
3.は<a href="http://www.shido.info/lisp/idx_scm.html" title="もうひとつの Scheme 入門" class="favicon_s" rel="nofollow">もうひとつの Scheme 入門</a>で紹介されているんだけど、その中でも指摘されてた。
</p>
<blockquote title="Scheme 入門 5. 分岐" cite="http://www.shido.info/lisp/scheme5.html"><p>R<sup>5</sup>RS では偽を表す >#f と、<br />
  空リストを表す &#8216;() は別のものであるように規定されていますが、<br />
  MIT-Scheme は両者を区別していません（少し問題！）。<br />
つまり、R<sup>5</sup>RS では &#8216;() は真ですが、 MIT-Scheme では偽になります。<br />
他の Scheme との互換性を考えて、#f と &#8216;() を区別して<br />
コードを書く必要があります。</p></blockquote>
<p>
というわけで、aptパッケージで入れちゃいました。
</p>
<div class="hl-surround" style="height:16.8px;"><div class="hl-main"><pre>apt-get install gauche</pre></div></div>
<p>
これで終了！（オイ）。<br />
いいんだすよ。勉強するだけなんだからｗ
</p>
<div class="hl-surround" ><div class="hl-main"><pre>&gt; # goshのバージョン表示
&gt; gosh -V
Gauche scheme interpreter, version 0.8.8 [utf-8,pthread]
&gt; 
&gt; # gosh立ち上げ
&gt; gosh
gosh&gt;</pre></div></div>
<p>
バージョンがちょっと古いような気がするけど、気にしな～い。
</p>
<ul>
<li><a href="http://practical-scheme.net/gauche/index-j.html" title="Gauche - A Scheme Interpreter" class="favicon_s" rel="nofollow">Gauche &#8211; A Scheme Interpreter</a></li>
<li><a href="http://www.shido.info/lisp/scheme5.html" title="Scheme 入門 5. 分岐" class="favicon_s" rel="nofollow">Scheme 入門 5. 分岐</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/pOVWXVkZ3A0LCSn1BMvKZy_olBc/0/da"><img src="http://feedads.g.doubleclick.net/~a/pOVWXVkZ3A0LCSn1BMvKZy_olBc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pOVWXVkZ3A0LCSn1BMvKZy_olBc/1/da"><img src="http://feedads.g.doubleclick.net/~a/pOVWXVkZ3A0LCSn1BMvKZy_olBc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=XAmLjPmS"><img src="http://feeds.feedburner.com/~f/studylog?i=XAmLjPmS" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=u9tn5mEX"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=eNmNBQi5"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=3BamPSU0"><img src="http://feeds.feedburner.com/~f/studylog?i=3BamPSU0" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=vuyoXRCM"><img src="http://feeds.feedburner.com/~f/studylog?i=vuyoXRCM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=VTZ6a8HI"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/14/20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/14/20/" />
	</item>
		<item>
		<title>schemeやってみようかな</title>
		<link>http://study.aruko.net/2007/11/14/19/</link>
		<comments>http://study.aruko.net/2007/11/14/19/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 08:07:05 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[言語]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[未分類]]></category>
<category>lisp</category><category>scheme</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/14/19/</guid>
		<description>最近、新しい事勉強したいなと思っているんだけど、Schemeやってみようかな。 最初Objective Caml(Ocaml)にしようかと思ったんだけど、関数型言語は初めてなので基本から徐々にやっていった方が良いかなと。 [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/scheme/400.jpg" title="schemeやってみようかな" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/scheme/200.jpg" width="200" height="125" alt="schemeやってみようかな" class="photo_rotate_r" /></a>最近、新しい事勉強したいなと思っているんだけど、<a href="http://ja.wikipedia.org/wiki/Scheme" title="Scheme - Wikipedia" class="favicon_s" rel="nofollow">Scheme</a>やってみようかな。
</p>
<p>
最初<a href="http://ja.wikipedia.org/wiki/Objective_Caml" title="Objective Caml - Wikipedia" class="favicon_s" rel="nofollow">Objective Caml</a>(Ocaml)にしようかと思ったんだけど、関数型言語は初めてなので基本から徐々にやっていった方が良いかなと。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
色々入門用のサイト漁って「<a href="http://www.shido.info/lisp/idx_scm.html" title="もうひとつの Scheme 入門" class="favicon_s" rel="nofollow">もうひとつの Scheme 入門</a>」が分かりやすそう。
</p>
<p>
せっかく勉強ログとか称してわざわざ別にブログ書いてるんだし、新しい事にも挑戦しないとな。ちょっとLispとかへの苦手意識(「()」括弧多すぎとか)が取れるといいなぁ。ま、マイペースにやって行きますわ。
</p>
<ul>
<li><a href="http://www.shido.info/lisp/idx_scm.html" title="もうひとつの Scheme 入門" class="favicon_s" rel="nofollow">もうひとつの Scheme 入門</a></li>
<li><a href="http://ja.wikipedia.org/wiki/Scheme" title="Scheme - Wikipedia" class="favicon_s" rel="nofollow">Scheme &#8211; Wikipedia</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/ZvwgQIKaf2UIFqjpTFTQwxlIa2Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZvwgQIKaf2UIFqjpTFTQwxlIa2Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZvwgQIKaf2UIFqjpTFTQwxlIa2Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZvwgQIKaf2UIFqjpTFTQwxlIa2Q/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=Qo15z5vM"><img src="http://feeds.feedburner.com/~f/studylog?i=Qo15z5vM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=E2FNM5XE"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=jCfM1aa2"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=ImG11vhH"><img src="http://feeds.feedburner.com/~f/studylog?i=ImG11vhH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=qIo26cVt"><img src="http://feeds.feedburner.com/~f/studylog?i=qIo26cVt" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=N9pHipfi"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/14/19/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/14/19/" />
	</item>
		<item>
		<title>display:noneをする時にはスクリーンリーダにも配慮</title>
		<link>http://study.aruko.net/2007/11/12/18/</link>
		<comments>http://study.aruko.net/2007/11/12/18/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 08:17:27 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[言語]]></category>
		<category><![CDATA[未分類]]></category>
<category>css</category><category>未分類</category><category>言語</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/12/18/</guid>
		<description>456 Berea Street経由。cssに関してのアクセシビリティの記事でこんなのがありました。 cssの「display:none;」該当要素は表示しないというプロパティ設定は、音声読み込みソフトであるスクリーンリ [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/css/400.jpg" title="display:noneをする時にはスクリーンリーダにも配慮" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/css/200.jpg" width="200" height="60" alt="display:noneをする時にはスクリーンリーダにも配慮" class="photo_rotate_l" /></a><a href="http://www.456bereastreet.com/" title="456 Berea Street: Articles and news on web standards, accessibility, and usability" class="favicon_s" rel="nofollow">456 Berea Street</a>経由。cssに関してのアクセシビリティの記事で<a href="http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone/" title="こんなの" class="favicon_s" rel="nofollow">こんなの</a>がありました。
</p>
<p>
cssの「display:none;」該当要素は表示しないというプロパティ設定は、音声読み込みソフトであるスクリーンリーダなどでは機能しないという事らしい。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
元々CSSには文章構造と見た目を区別するためのもので、アクセシビリティ向上の意味合いもあると思っています。これがdisplay:none;を使うだけで意味のない要素がスクリーンリーダなどで読まれてしまうってのはちょいと問題がありそうな気がする。
</p>
<p>
スクリーンリーダ自体が視覚障害のある方々のためのツールというのが発祥だと思うので、なるべくならCSS側でも対応が出来る事があれば対応した方がよさそうです。一応引用先では「このような対応はどう？」というのが示されていました。
</p>
<div class="hl-surround" ><div class="hl-main"><pre><span class="hl-identifier">.hidden </span><span class="hl-brackets">{
 </span><span class="hl-reserved">display:</span><span class="hl-string">none</span><span class="hl-reserved"></span><span class="hl-code">;
 </span><span class="hl-reserved">visibility:</span><span class="hl-string">hidden</span><span class="hl-reserved"></span><span class="hl-code">;
</span><span class="hl-brackets">}</span></pre></div></div>
<p>
つまり、visibility:hiddenも入れましょうっつーこってすな。気をつけよう。
</p>
<ul>
<li><a href="http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone/" title="Screen readers sometimes ignore display:none | 456 Berea Street" class="favicon_s" rel="nofollow">Screen readers sometimes ignore display:none | 456 Berea Street</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/OOqTyNCIbeGiAqlSTs9MScRu2PA/0/da"><img src="http://feedads.g.doubleclick.net/~a/OOqTyNCIbeGiAqlSTs9MScRu2PA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OOqTyNCIbeGiAqlSTs9MScRu2PA/1/da"><img src="http://feedads.g.doubleclick.net/~a/OOqTyNCIbeGiAqlSTs9MScRu2PA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=cyPoK3RU"><img src="http://feeds.feedburner.com/~f/studylog?i=cyPoK3RU" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=l4DO9Snt"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=2ceFhca8"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=pkqRbysb"><img src="http://feeds.feedburner.com/~f/studylog?i=pkqRbysb" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=fhF3dnlT"><img src="http://feeds.feedburner.com/~f/studylog?i=fhF3dnlT" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=uCCbx4go"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/12/18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/12/18/" />
	</item>
		<item>
		<title>lighttpdでURLをrewrite</title>
		<link>http://study.aruko.net/2007/11/09/17/</link>
		<comments>http://study.aruko.net/2007/11/09/17/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 08:16:11 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[未分類]]></category>
<category>lighttpd</category><category>サーバー管理</category><category>未分類</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/09/17/</guid>
		<description>ちょと、サーバーの負荷が高くなってきたのでlighttpdはどうだろうかと思って色々試している(まだ公開してないけど)。rhacoでもなんか作りたいので、rhacoがlighttpdで動作するのかとかも含めてやっとります [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/lighttpd/400.jpg" title="lighttpdでURLをrewrite" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/lighttpd/200.jpg" width="200" height="120" alt="lighttpdでURLをrewrite" class="photo_rotate_r" /></a>ちょと、サーバーの負荷が高くなってきたので<a href="http://www.lighttpd.net/" title="lighttpd fly light" class="favicon_s" rel="nofollow">lighttpd</a>はどうだろうかと思って色々試している(まだ公開してないけど)。<a href="http://www.rhaco.org/" title="rhaco.org - Meet Rhaco" class="favicon_s" rel="nofollow">rhaco</a>でもなんか作りたいので、rhacoがlighttpdで動作するのかとかも含めてやっとります。
</p>
<p>
今回は自分でも忘れそうな部分だけですが、設定でApacheでいうmod_rewriteのようなURL書き換え機能の設定をメモ。
</p>
<div class="inline_ad_l"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
何をしたいかと言えば、「http://example.com?id=1&#038;name=hoge」とかを「<strong>http://example.com/1/hoge/</strong>」とかで処理したいわけでやんす。逆にいうと「1/hoge/」の部分をgetで渡しちゃった方がいいかなという事で以下のような設定になるそうです。
</p>
<p>
lighttpdはApacheのようなディレクトリ毎の「.htaccess」のような設定ファイルは使えないので、lighttpd.confなどのlighttpdを設定するファイルの方に書く必要があります。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>$HTTP[&quot;host&quot;] =~ &quot;sub.example.com&quot; {
  server.document-root  = &quot;/path/to/document/root/&quot;
  url.rewrite-once = ( &quot;^/(.+)$&quot; =&gt; &quot;/index.php?pathinfo=$1&quot; )
}</pre></div></div>
<p>
ちなみに、上はVirtualHostを設定していて「sub.example.com」というホストでアクセスしてきたらで、ドキュメントルートの設定とRwriteルールを設定している。また、index.phpにgetパラメータで<strong>pathinfo</strong>という名前で上記「1/hoge/」に当たる値を取れるようにしてる。
</p>
<div class="hl-surround" ><div class="hl-main"><pre>server.modules              = (
                               &quot;mod_rewrite&quot;,
                               &quot;mod_evhost&quot;)</pre></div></div>
<p>
また、上記のmoduleの部分でmod_rewriteの部分がデフォルトだとコメントアウトしてあるのでこれを外さないとダメ。モジュールの名前はmod_rewriteでApacheと同じでやんすね。
</p>
<p>
ちょと情報が錯綜しますがrhacoはlighttpdでもちゃんと動作しました(当たり前か)。メデタシメデタシ。
</p>
<ul>
<li><a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModRewrite" title="Docs:ModRewrite - lighttpd - secure, fast, compliant, and very flexible web-server - Trac" class="favicon_s" rel="nofollow">Docs:ModRewrite &#8211; lighttpd &#8211; secure, fast, compliant, and very flexible web-server &#8211; Trac</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/LUgx27p6ejwqLLT3JxkSfhmfi7Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/LUgx27p6ejwqLLT3JxkSfhmfi7Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LUgx27p6ejwqLLT3JxkSfhmfi7Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/LUgx27p6ejwqLLT3JxkSfhmfi7Q/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=mrCqtvF2"><img src="http://feeds.feedburner.com/~f/studylog?i=mrCqtvF2" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=S1I7vhmM"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=VBbIVYEg"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=fhRLpzhf"><img src="http://feeds.feedburner.com/~f/studylog?i=fhRLpzhf" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=SdTJo8AJ"><img src="http://feeds.feedburner.com/~f/studylog?i=SdTJo8AJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=iVA3LnDu"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/09/17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/09/17/" />
	</item>
		<item>
		<title>vimで選択範囲を置換</title>
		<link>http://study.aruko.net/2007/11/08/15/</link>
		<comments>http://study.aruko.net/2007/11/08/15/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 12:28:56 +0000</pubDate>
		<dc:creator>jigen</dc:creator>
				<category><![CDATA[エディタ]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[未分類]]></category>
<category>vim</category><category>エディタ</category><category>未分類</category>
		<guid isPermaLink="false">http://study.aruko.net/2007/11/08/15/</guid>
		<description>名無しのvim使い経由。うわーん。これやりかたかったんだよー！知らなかったよー！ なにかというと、vimでビジュアルモードで範囲選択をした部分だけを置換する方法。 google_ad_client = "pub-2501 [...]</description>
			<content:encoded><![CDATA[<p>
<a href="http://media.aruko.net/logo/vim2/400.jpg" title="vimで選択範囲を置換" rel="lightbox" rel="nofollow"><img src="http://media.aruko.net/logo/vim2/200.jpg" width="200" height="110" alt="vimで選択範囲を置換" class="photo_rotate_l" /></a><a href="http://nanasi.jp/" title="名無しのvim使い" class="favicon_s" rel="nofollow">名無しのvim使い</a>経由。うわーん。これやりかたかったんだよー！知らなかったよー！
</p>
<p>
なにかというと、vimでビジュアルモードで範囲選択をした部分だけを置換する方法。
</p>
<div class="inline_ad_r"><script type="text/javascript">
google_ad_client = "pub-2501747524357731";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text";
google_ad_channel = "1168060233";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = ["FF9900","779C45","4981B8","CD3D3D"];
google_color_text = "999999";
google_color_url = "939F35";
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
詳しくは<a href="http://nanasi.jp/articles/howto/editing/replace-selecttext.html" title="こちら" class="favicon_s" rel="nofollow">こちらを</a>見て頂くとして、ざっくりと方法をメモしておく。
</p>
<p>
vとかをクリックしてビジュアルモード(visual)に入って、対象範囲を選択したら以下のような感じで入力して普通の置換みたいに出来る。以下の例だとbeforeという単語をafterに置換する。<br />
ビジュアルモードの状態で「<strong>:</strong>」を入力すると自動的に「<strong>:&#8217;<,'></strong>」までは自動的に入力されるので後は「<strong>:s/before/after/g</strong>」を入力すればOK。
</p>
<div class="hl-surround" style="height:16.8px;"><div class="hl-main"><pre>:'&lt;,'&gt;:s/before/after/g</pre></div></div>
<p>
うーん、便利。名無しさん最高～。まだまだ私はvim使いには程遠いなー。
</p>
<ul>
<li><a href="http://nanasi.jp/articles/howto/editing/replace-selecttext.html" title="visualモードで選択した範囲に含まれる「行」ではなく、選択した「テキスト」にだけ置換処理を適用する。 — 名無しのvim使い" class="favicon_s" rel="nofollow">visualモードで選択した範囲に含まれる「行」ではなく、選択した「テキスト」にだけ置換処理を適用する。 — 名無しのvim使い</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/eeTUXFgcnybwcT5zCaJjctvOkYI/0/da"><img src="http://feedads.g.doubleclick.net/~a/eeTUXFgcnybwcT5zCaJjctvOkYI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eeTUXFgcnybwcT5zCaJjctvOkYI/1/da"><img src="http://feedads.g.doubleclick.net/~a/eeTUXFgcnybwcT5zCaJjctvOkYI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/studylog?a=Hv55MJ00"><img src="http://feeds.feedburner.com/~f/studylog?i=Hv55MJ00" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=IlE4DWRz"><img src="http://feeds.feedburner.com/~f/studylog?d=95" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=gRtglYoy"><img src="http://feeds.feedburner.com/~f/studylog?d=98" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=3b6fzE3v"><img src="http://feeds.feedburner.com/~f/studylog?i=3b6fzE3v" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=C0VcRyer"><img src="http://feeds.feedburner.com/~f/studylog?i=C0VcRyer" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/studylog?a=TwvqKQtU"><img src="http://feeds.feedburner.com/~f/studylog?d=100" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://study.aruko.net/2007/11/08/15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.aruko.net/2007/11/08/15/" />
	</item>
	</channel>
</rss>

