<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/xml.xsl" type="text/xsl"?><feed xmlns="http://www.w3.org/2005/Atom">
  <title>nulog, NULL::something : out of the headphone &gt; 2004 &gt; November</title>
  <link href="http://lowreal.net/logs/2004/11"/>
  <icon>http://lowreal.net/img/banner.png</icon>
  <link rel="self" type="application/atom+xml" href="http://lowreal.net/logs/2004/11.atom"/>
  <link rel="alternate" type="application/xhtml+xml" href="http://lowreal.net/logs/2004/11.xhtml"/>
  <updated>2004-11-30T15:51:44+09:00</updated>
  <author>
    <name>cho45(砂糖)</name>
  </author>
  <id>http://lowreal.net/2004/11</id>
  <entry>
    <title>サイト構造とか。子供のとき好きだった絵とか</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/02/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/02/1.xhtml"/>
    <updated>2004-11-02T00:22:29+09:00</updated>
    <published>2004-11-02T00:22:29+09:00</published>
    <id>http://lowreal.net/2004/11/02/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>常に綺麗なサイト構造を考えたい。直感的でないナヴィゲーションや構造を省きたい。ユーザビリティ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>気がつけば ママの姿は消えていた</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/02/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/02/2.xhtml"/>
    <updated>2004-11-03T01:05:31+09:00</updated>
    <published>2004-11-03T01:05:31+09:00</published>
    <id>http://lowreal.net/2004/11/02/2</id>
    <category term="self"/>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>親の話とか聞いているとだいぶ俺のアレと違っていたりするわけで、その中でも一番最初にアレだと思ったのは「迷子になったことがない」話。確かにアナウンスされるような迷子にはなっていないにしても、親の姿を完全に見失って迷子になったと不安になったことはあるわけで、そんなこと全く気付いていなかったりするんだなぁと。<span class="fn">迷子になったとき冷や汗書くと同時に服の色思い出して目に集中しろと考えてた。自分が思うかぎり結構迷子（未遂）があった気がする……</span></p>
      </div>
    </content>
  </entry>
  <entry>
    <title>だいぶ死んでますけど</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/05/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/05/1.xhtml"/>
    <updated>2004-11-05T02:02:10+09:00</updated>
    <published>2004-11-05T02:02:10+09:00</published>
    <id>http://lowreal.net/2004/11/05/1</id>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>フリクリとかアレしてナニしてるんですけど、4話後半の入国管理局の画面に <abbr title="Hyper Text Markup Language">HTML</abbr> (<del title="DTD なかったしパッっとみ HTML に見えるだけだから invalid とは言えないか。">Invalid かつ </del>TABLE レイアウト) が映し出されてる謎。</p>
        <p>正直、今、僕、だいぶ、おかしいです。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>abbr IE</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/05/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/05/2.xhtml"/>
    <updated>2004-11-05T13:53:47+09:00</updated>
    <published>2004-11-05T13:53:47+09:00</published>
    <id>http://lowreal.net/2004/11/05/2</id>
    <category term="soft"/>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><abbr title="Document Object Model">DOM</abbr> からも abbr 要素使えないんだなぁ。abbr 要素自体は列挙されるけど <code>childNodes</code> の中身が常に空だ。<code class="ECMAScript">abbr.getAttribute("title")</code> は成功するけど中身が取得できないから <abbr title="Document Object Model">DOM</abbr> 的に abbr を acronym に置き換えてみようというのは無理くさい。abbr の扱いは <abbr title="Miocrosoft">MS</abbr> がわざとやってるように思えて仕方ない。<q>acronym 流行らそうと思ってやった。<abbr title="Internet Explorer">IE</abbr> が市場一番だったら何でも良かった。今もまだ反省していない。</q></p>
      </div>
    </content>
  </entry>
  <entry>
    <title>userContent.css の文字コード</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/05/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/05/3.xhtml"/>
    <updated>2004-11-05T15:38:21+09:00</updated>
    <published>2004-11-05T15:38:21+09:00</published>
    <id>http://lowreal.net/2004/11/05/3</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>userContent.css の文字コードは UTF-8 でないといけないらしい。少なくとも Shift_JIS じゃだめ。<code class="CSS">@charset "Shift_JIS"</code> とかも無駄くさい。フォント指定で悩んだ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Javascript.prototype</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/06/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/06/1.xhtml"/>
    <updated>2004-11-06T15:13:44+09:00</updated>
    <published>2004-11-06T15:13:44+09:00</published>
    <id>http://lowreal.net/2004/11/06/1</id>
    <category term="prog"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>結局一番無難と思われる方法を使うことしてみる。</p>
        <pre class="ECMAScript">function Foo() {
}

Foo.prototype = new Array();
copy(Foo.prototype, {
    unk : function () {}
});</pre>
        <p><code>copy()</code> はオブジェクトのプロパティをコピーする関数。何か結局そこらのサンプルと同じなわけで、何を無駄なことをやっていたんだと……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>ｗＷｗ</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/06/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/06/2.xhtml"/>
    <updated>2004-11-06T17:48:13+09:00</updated>
    <published>2004-11-06T17:48:13+09:00</published>
    <id>http://lowreal.net/2004/11/06/2</id>
    <category term="net"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>ʬ (U+02AC) は準 sakage</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Taglibro namazu</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/06/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/06/3.xhtml"/>
    <updated>2004-11-06T22:35:45+09:00</updated>
    <published>2004-11-06T22:35:45+09:00</published>
    <id>http://lowreal.net/2004/11/06/3</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>この日記を namazu 検索できるように試行錯誤。セクションごとに <abbr title="Hyper Text Markup Language">HTML</abbr> を切り分けるスクリプトを書いて、インデックス作成。</p>
        <p>テンプレート書くのが面倒だ。検索ページだけ統一感がないのはどう考えても変だよなぁ……それにたぶん <abbr title="Extensible Hyper Text Markup Language">XHTML</abbr> は使えないだろうし。<span class="fn"><a href="http://www.namazu.org/pipermail/namazu-devel-ja/2004-July/000020.html">[Namazu-devel-ja 21] Re: [Namazu-users-ja]検索ページの妥当性について</a> みたいなのをあるけど割と最近なので XREA では使えないっぽいし</span></p>
        <ins datetime="2004-11-06T23:27:06+09:00">
          <p>mknmz で何時も躓く。てかホントにいつもだ……既存インデックスを全削除して mknmz 実行、続けてもう一度実行すると <q>存在するインデックスは古い形式です。今は対応していません</q> とでる。</p>
          <p>--template-dir= が効いてない。インデックスと同じディレクトリになる。いみふ</p>
        </ins>
        <ins datetime="2004-11-06T23:40:02+09:00">
          <p>あー --template-dir を付けなければ <q>古い形式</q> はでない……全然わからない……どういう挙動なんだろう？</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>Taglibro namazu 2</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/07/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/07/1.xhtml"/>
    <updated>2004-11-07T13:35:30+09:00</updated>
    <published>2004-11-07T13:35:30+09:00</published>
    <id>http://lowreal.net/2004/11/07/1</id>
    <category term="web"/>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>とりあえずやったけども検索ボックスをつけるのが（というよりその周りのスタイルを考えるのが）面倒くさいとかなんとか。そのうちやろう……</p>
        <p>とりあえず俺は namazu 君と相性があまり良くないらしい。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>ぬねぬねするリスト from 10x10</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/07/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/07/2.xhtml"/>
    <updated>2004-11-07T15:50:57+09:00</updated>
    <published>2004-11-07T15:50:57+09:00</published>
    <id>http://lowreal.net/2004/11/07/2</id>
    <category term="web"/>
    <category term="prog"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><a href="http://tenbyten.org/10x10.html">10x10</a> の右側のヌネヌネが面白いなぁとか思いつつ、なんでフラッシュなんだこのやろうとかなんとか考えてたので Javascript でヌネヌネの部分だけ<a href="/2004/nunenune-sample">再現した</a>。んで<a href="/2004/nunenune">そのスクリプト</a>。</p>
        <p>ホントは 10x10 相当までやろうとしたけどめんどくなりましたとさ。めんどくさくなったってのはなんていうか Gecko でしか見てないっつうことで <abbr title="Internet Explorer">IE</abbr> なんかもうめんどいのでいいです。誰か Strict 10x10 作ってくだｓ</p>
        <ins datetime="2004-11-07T16:19:54+09:00">
          <p>とりあえず addEventListener のクロスブラウザ化したら動いた。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>python を読み間違えてた</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/07/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/07/3.xhtml"/>
    <updated>2004-11-07T22:14:36+09:00</updated>
    <published>2004-11-07T22:14:36+09:00</published>
    <id>http://lowreal.net/2004/11/07/3</id>
    <category term="prog"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>フィスオンって読んでた……ふぃすおん……ふぃすおん……python がもうちょっと苦手になりました。<em>ふぃすおん</em> って何か響きが好きだったのに。そもそも食わず嫌いなわけですけど。あーほら cygwin のインタプリタが何か変なので……</p>
        <p><a href="http://hhungry.com/bitt/contents/yougo.html">torrent 系のページ</a> 見ていて <q title="bitt.mine.nu" cite="http://hhungry.com/bitt/contents/yougo.html">スト2に出てくるのはバイソン</q> って書いてあったから、もしかしてパイソンなのか！？　俺は壮大な（大げさ）勘違いをしていたのか！？　とか思いつつ <abbr title="Internet Relay Chat">IRC</abbr> で聞いて見たらそうだよって言われました。<abbr>orz</abbr></p>
      </div>
    </content>
  </entry>
  <entry>
    <title>アイコン</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/07/4.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/07/4.xhtml"/>
    <updated>2004-11-07T23:33:04+09:00</updated>
    <published>2004-11-07T23:33:04+09:00</published>
    <id>http://lowreal.net/2004/11/07/4</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><a href="http://www.kde-look.org/content/show.php?content=16479">cezanne</a> っつうアイコンセット凄すぎ。しばらく放置しといたアレとかソレとか設定しなおした。んで途中で気付いたのだけれど、Firefox に関連付けられているファイルタイプのアイコンが変わらない。</p>
        <ins datetime="2004-11-08T03:33:25+09:00">
          <p><samp>IconHandler</samp> の先にある OldIcon\DefaultIcon を変更しないといけないらしい。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>夢</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/07/5.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/07/5.xhtml"/>
    <updated>2004-11-08T01:20:19+09:00</updated>
    <published>2004-11-08T01:20:19+09:00</published>
    <id>http://lowreal.net/2004/11/07/5</id>
    <category term="self"/>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>昨日も今日も夢を起きる直前まで見ていたけれど忘れてしまった。でもかなり起きたくなくなる夢だった。街とか空とかキラキラ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>uxtheme.dll</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/08/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/08/1.xhtml"/>
    <updated>2004-11-08T13:13:23+09:00</updated>
    <published>2004-11-08T13:13:23+09:00</published>
    <id>http://lowreal.net/2004/11/08/1</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><abbr title="Service Pack">SP</abbr>2 着たので当てなおして WaterColor 当てた。Luna 有効にすると OpenJane の描画が糞重くなるけど今はもう使ってないので無問題。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>右クリックで Bash</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/08/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/08/2.xhtml"/>
    <updated>2004-11-08T19:22:42+09:00</updated>
    <published>2004-11-08T19:22:42+09:00</published>
    <id>http://lowreal.net/2004/11/08/2</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a xmlns="http://www.w3.org/2005/Atom" href="/view-img/2004/1108" title="/2004/1108" class="img">
            <img xmlns="http://www.w3.org/1999/xhtml" src="/2004/1108s" width="252" height="185" alt="ck - wator color skin"/>
          </a>
        </p>
        <p>右クリックでコマンドプロンプトを多様していたのだけれど、<a href="http://www.geocities.jp/cygwin_ck/">ck</a> という半透明なターミナルエミュレータを見つけたのでいっそのこと右クリックからこれを呼べたらいいなと。</p>
        <p>Bash はログインするとホームディレクトリに移ってしまう。検索したら <a href="http://www.sixnine.net/cygwin/cygwin-doc/smalltips.html">ごく些細な Tips 集</a> を見つけたので /etc/profile の <code>cd "$HOME"</code> をコメントアウト。あとはレジストリに設定するだけ。</p>
        <dl>
          <dt>
            <a href="/2004/bash.reg">bash.reg</a>
          </dt>
          <dd>フォルダの右クリックに “Console” を追加する。</dd>
          <dt>
            <a href="/2004/.Xdefaults">.Xdefaults</a>
          </dt>
          <dd>ck の設定。</dd>
          <dt>
            <a href="/2004/ck.png">ck.png</a>
          </dt>
          <dd>ck 用 WatorColor スキン</dd>
        </dl>
        <p>ちなみに マイ ドキュメント のディレクトリは /home/sugar に (cygwin は d: 直下にインスコ) して環境変数 HOME に設定してある。この方が色々いいよね。.xyzzy とかとか。</p>
        <ins datetime="2004-11-08T22:44:10+09:00">
          <p>やっぱ白は眩しいので <kbd>-fg #CCCCCC</kbd> 付けて実行してみる。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>レッサーパンダの憂鬱</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/08/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/08/3.xhtml"/>
    <updated>2004-11-08T23:07:44+09:00</updated>
    <published>2004-11-08T23:07:44+09:00</published>
    <id>http://lowreal.net/2004/11/08/3</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>サーチバーが実装されてから検索しにくくなった。Find As You Type も上手く動かないし <kbd>Ctrl+F</kbd> しても開かないことがしばしば。日本語入力になっているときも何も表示が出ないから分からない。サーチバー周辺の <abbr title="User Interface">UI</abbr> は好きじゃない。てかダメだろコレ。多言語的じゃない感じ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>昼間まで寝るときの夢について</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/09/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/09/1.xhtml"/>
    <updated>2004-11-09T15:05:59+09:00</updated>
    <published>2004-11-09T15:05:59+09:00</published>
    <id>http://lowreal.net/2004/11/09/1</id>
    <category term="self"/>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>昼ぐらいまで寝ていると<em class="point">少し問題があるけどかなり幸せな夢</em>を見る。</p>
        <p>あー起きたくねーなー。でも起きないと時間もったいないなーというジレンマ</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Firefox 1.0 リリース</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/09/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/09/2.xhtml"/>
    <updated>2004-11-09T19:40:35+09:00</updated>
    <published>2004-11-09T19:40:35+09:00</published>
    <id>http://lowreal.net/2004/11/09/2</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a xmlns="http://www.w3.org/2005/Atom" href="/view-img/2004/firefox10" title="/2004/firefox10">
            <img src="/2004/firefox10" width="306" height="416" alt="Firefox 1.0 バージョン情報スクリーンショット"/>
          </a>
        </p>
        <p>正式リリース。これでもっと宣伝できるわけだ。</p>
        <p>ところで<a href="http://start.mozilla.org/firefox">スタートページ</a>が Google へのリダイレクトになっているけど Google はこういう<em class="point">サービス</em>をしてるんですかな。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>画像にテキスト</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/09/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/09/3.xhtml"/>
    <updated>2004-11-09T20:03:27+09:00</updated>
    <published>2004-11-09T20:03:27+09:00</published>
    <id>http://lowreal.net/2004/11/09/3</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>png にテキストデータを埋め込みできるってのはいいんだけど、肝心の埋め込み機能を持っているソフトがあんまりないんじゃないかと……</p>
        <p>なんかいいソフトないかなぁ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>the pillows</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/10/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/10/1.xhtml"/>
    <updated>2004-11-10T03:02:55+09:00</updated>
    <published>2004-11-10T03:02:55+09:00</published>
    <id>http://lowreal.net/2004/11/10/1</id>
    <category term="music"/>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>GOOD DREAMS のせいで（というのよりフリクリまた見たせいで）ピロウズのアレとかソレとかがかなり燃焼。ポータブルプレイヤー（256MB）にも the pillows ディレクトリ作って入れまくった。</p>
        <p>ところで最近 Blues Drive Monster 聞いているとヤバいですよ。喩えるなら<em class="point">心臓に下から繋がっているパイプを素手で掴んでひっぱってくる</em>ような感じ。本当に格好いいなぁ……</p>
        <p>たのしいことがしたい。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>ろっく</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/10/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/10/2.xhtml"/>
    <updated>2004-11-10T03:23:21+09:00</updated>
    <published>2004-11-10T03:23:21+09:00</published>
    <id>http://lowreal.net/2004/11/10/2</id>
    <category term="self"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>何か知らないけどいろんなところで微妙に価値観がずれているらしい。学校では控えめに言っても納得できないことが<em>かなり</em>多い。色々あって黙っているのが一番いいと気付いたわけだけど、完全に諦め切れない部分で困る。ちゃんとマルチスレッドにしないと……別スレッドに納得できないことを移して kill すれば（感情用のプロパティに直接 nil を代入しようとすると TypeError なのだ）消える。素敵だ。問題はどうやって実装するかだけれど。</p>
        <p>俺は嫌いなことが多いっぽい。例えば俺の管理下にある部分で全く Strict じゃない部分があるのは嫌いだ。フレームが大嫌いだ。気取ったやつが嫌いだ。<em class="point">まぁ</em>を多様するやつが嫌いだ。解ったふりするやつが嫌いだ。勘違いが嫌いだ。C 言語至上主義者が嫌いだ。汚い実装が嫌いだ。あまり使わない漢字を強いポリシーがないのに使っているのが嫌いだ。他人に影響されすぎるやつが嫌いだ。聞いてもいない音楽を批判するのは頭が腐ってるとしか思えない。勉強できるやつが嫌いだ。理解力が低いやつが嫌いだ。満員電車が嫌いだ。遅刻しても<abbr title="各駅停車">各駅</abbr>に乗る。体育会系が大嫌いだ。体育教師は例外なく嫌いだ。挙動不審なやつが嫌いだ。神話至上主義者が嫌いだ。緊張感が嫌いだ。調べようとしないやつが嫌いだ。神経症だからと言うやつが嫌いだ。テレビのニュースが大嫌いだ。空気読めないやつが嫌いだ。くだらないラブソングが嫌いだ。想像力がないやつが大嫌いだ。こういう中で自分が当てはまっている部分があると本当嫌気がさす。</p>
        <p>マンガ読まないのに MANGA SICK。可愛いあの子は夢の中とか、インチキ空間の次元は幾つだろうとか。もやしは日のないところで育つ。なんかそれっぽいこと言っておけばOK。</p>
        <p>これからしばらく<em class="point">です</em><em class="point">ます</em>と<em class="point">僕</em>を使うようにしようと思う。なんかアフォっぽくなって素敵そうだから。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>PNG チャンク編集ツール</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/10/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/10/3.xhtml"/>
    <updated>2004-11-10T12:59:44+09:00</updated>
    <published>2004-11-10T12:59:44+09:00</published>
    <id>http://lowreal.net/2004/11/10/3</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>もっとちゃんと調べてみました。でもあんまり見つからない。(<a href="http://www.google.co.jp/search?q=png+iTXt">google: png iTXt</a>)</p>
        <dl>
          <dt>
            <a href="http://pmt.sourceforge.net/pngcrush/">PNGCRUSH</a>
          </dt>
          <dd>iTXt を埋め込めるらしいですが、コマンドラインで、僕の環境では起動したら CRUSH しました。なるほど。</dd>
          <dt>
            <a href="http://entropymine.com/jason/tweakpng/">TweakPNG</a>
          </dt>
          <dd>チャンクエディタ(&amp;ビューワ) 。でも iTXt は (存在していても問題ないみたいですが) キーワードの表示しかできません。編集・追加もできません。と README に書いてありました。</dd>
          <dt>
            <a href="http://ofo.jp/osakana/software/of_mjum.phtml">もじうめ</a>
          </dt>
          <dd>読むかぎり tEXt を使用しているようです。説明にはちゃんと<q title="comment.ini">PNGの仕様上、アルファベットだけにしてください。</q>と書いてあります。</dd>
          <dt>
            <a href="http://hp.vector.co.jp/authors/VA012780/graphic.htm">PNG Comment Editor</a>
          </dt>
          <dd>tEXt に Shift_JIS データをそのまま書き込むようです。説明書に書いてないのでバイナリエディタで開きました。</dd>
        </dl>
        <p><a href="http://tech.millto.net/~pngnews/kndh/PngSpec1.2/PNGcontents.html" title="日本語訳">PNG 仕様書</a>の tEXt チャンクの仕様には</p>
        <blockquote cite="http://tech.millto.net/~pngnews/kndh/PngSpec1.2/PNG-Chunks.html#C.tEXt" title="PNG 仕様書: チャンク仕様書">
          <p>テキストは ISO/IEC 8859-1 (Latin-1) [ISO/IEC-8859-1] 文字集合に従って解釈されます。テキスト文字列はどのような Latin-1 も格納できます。テキスト文字列中の改行は LF 文字（十進 10）ひとつで表現されるべきです。ほかのコントロール文字をテキスト中に使うことは推奨されません。</p>
        </blockquote>
        <p>と書いてあるので、マルチバイトは含めないみたいです。日本語に拘るなよとか言われたらそれまでという感じですけど、<abbr title="Extensible Markup Language">XML</abbr> 格納するなら <abbr title="Internationalization">I18N</abbr> 必須じゃないかなぁと思います。</p>
        <ul title="関連リンク">
          <li>
            <a href="http://www.minc.ne.jp/~konda/new/png/software.html">PNG 対応ソフトウェア</a>
          </li>
          <li>
            <a href="http://susu.whitesnow.jp/pastnote/03/12/#d23_03">煤 - Note 0312</a>
          </li>
        </ul>
        <p class="weak">てか<em class="point">です</em><em class="point">ます</em><em class="point">僕</em>ってなんか……</p>
        <ins datetime="2004-11-10T17:54:11+09:00">
          <p>
            <a href="/2004/png.rb">png.rb</a>
          </p>
          <p>スーパー適当実装 iTXt 埋め込み用クラス（でもサイズとかも取得できるよ）。微妙に中途半端だけど力尽きたのでまた今度にします。デバッグ用のコード (<code>p</code>) 満載。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>PNG チャンク編集ツール 2</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/11/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/11/1.xhtml"/>
    <updated>2004-11-11T03:58:29+09:00</updated>
    <published>2004-11-11T03:58:29+09:00</published>
    <id>http://lowreal.net/2004/11/11/1</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a xmlns="http://www.w3.org/2005/Atom" href="/view-img/2004/1111" title="/2004/1111" class="img">
            <img xmlns="http://www.w3.org/1999/xhtml" src="/2004/1111s" width="342" height="90" alt="拙作編集ツールスクリーンショット"/>
          </a>
        </p>
        <p>結局自分で作ってみた。exerb で EXE 化しようと思ったら mswin32 版の Ruby では zlib が原因不明の SEGV で落ちるのでどうしたものかと。</p>
        <p>Ruby + VisualuRuby で <abbr title="Grachical User Interface">GUI</abbr> 作った。iTXt 以外は TweakPNG があるので何もしない。<abbr title="User Interface">UI</abbr> は見ての通り TweakPNG のパクり。</p>
        <dl>
          <dt>
            <a href="/2004/pngtxt.rb">pngtxt.rb</a>
          </dt>
          <dd><abbr title="Grachical User Interface">GUI</abbr> 部分。VisualuRuby 使ってます。何故かポップアップメニューが右<em>ダブル</em>クリックじゃないと出ない謎。</dd>
          <dt>
            <a href="/2004/png.rb">png.rb</a>
          </dt>
          <dd>iTXt を編集するのに使える部分だけ実装。ただ UTF-8 への変換はこのクラスはやらない。</dd>
        </dl>
        <p>使っているライブラリは Uconv と zlib と VisualuRuby かな。VisualuRuby が Win32API 使ってるか。といいますかですね、<abbr title="Grachical User Interface">GUI</abbr> まですぐ作れる Ruby ってやっぱ偉大なんですよ。</p>
        <ins datetime="2004-11-11T17:41:30+09:00">
          <p>zlib.dll を変えていったら（？）直った。よく分からないけどめでたし。</p>
        </ins>
        <p>
          <a xmlns="http://www.w3.org/2005/Atom" href="/view-img/2004/1111" title="/2004/1111" class="img">
            <img xmlns="http://www.w3.org/1999/xhtml" src="/2004/1111s" width="342" height="90" alt="拙作編集ツールスクリーンショット"/>
          </a>
        </p>
        <p>Made PNG iTXt chunk editor. <abbr title="Grachical User Interface">GUI</abbr> is like TweakPNG.</p>
        <dl>
          <dt>
            <a href="/2004/pngtxt.rb">pngtxt.rb</a>
          </dt>
          <dd><abbr title="Grachical User Interface">GUI</abbr> Script using <a href="http://www.osk.3web.ne.jp/~nyasu/software/vrproject.html">VisualuRuby</a>.</dd>
          <dt>
            <a href="/2004/png.rb">png.rb</a>
          </dt>
          <dd>A simple iTXt chunk edit class. written by <a href="http://www.ruby-lang.org/">Ruby</a>. But converting UTF-8 is not in this class.</dd>
        </dl>
      </div>
    </content>
  </entry>
  <entry>
    <title>PNG への RDF メタデータ埋め込み</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/11/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/11/2.xhtml"/>
    <updated>2004-11-11T23:10:28+09:00</updated>
    <published>2004-11-11T23:10:28+09:00</published>
    <id>http://lowreal.net/2004/11/11/2</id>
    <category term="web"/>
    <category term="sw"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>とりあえず iTXt への書き込み/読み込み方法はできたので実際にどうやって埋め込むかを考える。考えるっていっても、メタデータを埋め込んでいる PNG ファイルというと <a href="http://www.ilrt.bristol.ac.uk/people/cmdjb/2001/04/rdf-icon/"><abbr title="Resource Description Framework">RDF</abbr> のアイコン</a>が既にあるのでそいつをそのまま真似ればいいかなと。</p>
        <p>この埋め込み方法は二つのチャンクを使う。一つはメディアタイプを明確にする <em>Metadata Type</em> チャンク。もう一つは実際にデータを埋め込む <em>Metadata</em> チャンク。<abbr title="Resource Description Framework">RDF</abbr> アイコンではこれらは tEXt チャンクに入っているけど、日本語を (というか国際化のために) 使うので<em>どちらも</em> iTXt に入れる。Metadata Type (ASCII しか使われないっぽい) も iTXt にするのは tEXt, zTXt チャンクが iTXt 登場のおかげで既に古くさい感じが漂うから。</p>
        <p>ってか実際何を埋め込んで何をしたら面白いかをちゃんと考えてない。まだあくまで<em class="point">こういう方法もできる</em>という保険みたいなもん。何かいいことできないかな。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>PNG iTXt チャンク編集ツール</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/12/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/12/1.xhtml"/>
    <updated>2004-11-12T19:43:36+09:00</updated>
    <published>2004-11-12T19:43:36+09:00</published>
    <id>http://lowreal.net/2004/11/12/1</id>
    <category term="soft"/>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><a href="/2004/pngtxt.zip">pngtxt.zip (458KB)</a> MD5:44fda2b7421e94e6f181ee80a134e814</p>
        <p>exerb で固めてみた。たぶん zlib.dll がいる。んでファイルサイズが大きい。</p>
        <p>iTXt 以外のチャンクは (tEXt, zTXt チャンクも) 見ることさえできません。tEXt, zTXt チャンクを全部 iTXt に変換する機能とかあるけども、文字コード変換はやらないからあんまり意味ない。ついでに変換するやつに Unicode 文字以外があると微妙に危険。</p>
        <p>Compress にチェックを入れても、圧縮しないほうがデータサイズが小さいときは自動的に無圧縮で保存されます。つまり Compress にチェックを入れても必ず圧縮されるわけじゃないです。たぶん多くの場合はこのほうが便利だと思うので……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>夢。図書室にて</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/12/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/12/2.xhtml"/>
    <updated>2004-11-13T01:11:30+09:00</updated>
    <published>2004-11-13T01:11:30+09:00</published>
    <id>http://lowreal.net/2004/11/12/2</id>
    <category term="self"/>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>図書室から寝ぼけながら教室の自分の机に戻ると、知っている女の子が二人いる。一言二言話して行ってしまう。机の上に何か色々書いてある紙が置いてある。白黒でペンによって書かれている。右上から左下にかけて斜めに女の子の絵が描いてある。二人のうちの一人が書いたらしい。その周りにはいろいろメッセージがぎっしり書いてある。カバンの中に手帳が入っている。二人のうち一人のらしい。妙に幸せな気分だった。</p>
        <p>起きたらなんか妙に切なかった。なんかそれでしばらく混乱しててひとつ授業受けそびれた……別にいいんだけど出席がやばめ。</p>
        <p>とにかくごちゃごちゃ書いてある紙の絵が好きだった。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>zsh</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/16/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/16/1.xhtml"/>
    <updated>2004-11-16T00:50:52+09:00</updated>
    <published>2004-11-16T00:50:52+09:00</published>
    <id>http://lowreal.net/2004/11/16/1</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>zsh にしてみたけど日本語のディレクトリ名が正しく表示されない……あんまり困らないけども。</p>
        <p>他人のプロンプトの設定を見ていて時々疑問なのだけど、ホスト名とユーザ名ってなんで左側なんだろう。リモートで操作するとそんな頻繁に変わるもんなのかな。</p>
        <pre class="SH">PROMPT='%(?..exit %?
)
 %{^[[33m%}%~%{^[[m%}
%{^[[32m%}%(!.#.$)%{^[[m%}%{^[[m%} '
RPROMPT='%{^[[32m%}[%n@%m]%{^[[m%}'</pre>
        <pre> ~/data
$                                                             [cho45@C12H22O11]</pre>
        <p><code>^[</code> = <kbd>C-q</kbd><kbd>ESC</kbd></p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Linux ディストロ</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/16/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/16/2.xhtml"/>
    <updated>2004-11-16T02:58:56+09:00</updated>
    <published>2004-11-16T02:58:56+09:00</published>
    <id>http://lowreal.net/2004/11/16/2</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>いっぱいありすぎてドレがいいのかサッパリ。何にしても機械がないのでインスコできないんだけども……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>あー</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/16/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/16/3.xhtml"/>
    <updated>2004-11-16T14:42:45+09:00</updated>
    <published>2004-11-16T14:42:45+09:00</published>
    <id>http://lowreal.net/2004/11/16/3</id>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>さっさと試験受けさせろよ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>ContactXML?</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/17/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/17/1.xhtml"/>
    <updated>2004-11-17T02:02:00+09:00</updated>
    <published>2004-11-17T02:02:00+09:00</published>
    <id>http://lowreal.net/2004/11/17/1</id>
    <category term="web"/>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>なんかこういうのを見つけて仕様 (<abbr title="Portable Document Format">PDF</abbr>) を見てみたけど、<abbr title="Extensible Markup Language">XML</abbr> である意味が薄いところが多々あると思う。それと仕様が緩くて仕様の意味が薄かったり、そもそもアプリケーション間のエクスポート・インポートにしか使えない。手で書いたとき creator 属性には何を入れればいいんだろう？　想定外なんだろうけど、メールで <abbr title="Extensible Markup Language">XML</abbr> を送ってインポートさせてあげられれば相手の手間が省けるんじゃないかなぁ。</p>
        <p>なんていうか ExtensionItem なんて要素作らずにアプリケーション個別の拡張のためなら独自のネームスペースでやればいいのになぁとか思った。せっかく <em>eXtensible</em> なのに……何か理由があるんだろうか。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>画像メタデータの管理法</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/18/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/18/1.xhtml"/>
    <updated>2004-11-18T15:39:07+09:00</updated>
    <published>2004-11-18T15:39:07+09:00</published>
    <id>http://lowreal.net/2004/11/18/1</id>
    <category term="web"/>
    <category term="sw"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>画像に埋め込んであるだけだといちいち編集するのが面倒なので、簡単な管理方法を考えた。っていっても <samp>firefox.png</samp> に対して <samp>firefox<em>-meta</em>.rdf</samp> というファイルを作っておいて<a href="/2004/img-rdf">スクリプト</a>で一括合成させるだけのものだけど……</p>
        <p>本当は <samp>firefox.rdf</samp> にしようと思ったけど、そのままアップロードしたとき MultiViews のネゴシエーションで <abbr title="Resource Description Framework">RDF</abbr> のほうが優先されて困るので -meta というサフィックスをつけた。<samp>playing.xml</samp> を変換するスタイルシートに <samp>playing-style.xsl</samp> と同じような雰囲気。</p>
        <p>むしろ画像データ (<samp>firefox.png</samp>) をリクエストしてメタデータ (<samp>firefox.rdf</samp>) が返ってくるは少し変な気もする。いやでも <samp>firefox.png</samp> はメタデータを含んでいるし、image/png を受け入れないなら <abbr title="Resource Description Framework">RDF</abbr> を返してもいいか。実際 <abbr title="World Wide Web Consortium">W3C</abbr> もそういう方法 (photoRDF) を考えているみたいだし……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>coLinux, WebDAV, SSL</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/19/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/19/1.xhtml"/>
    <updated>2004-11-19T23:58:46+09:00</updated>
    <published>2004-11-19T23:58:46+09:00</published>
    <id>http://lowreal.net/2004/11/19/1</id>
    <category term="web"/>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>coLinux をインスコして Debian を弄ってみる。わかんないこと多すぎだけどとりあえず手探りで……とりあえず仮想的にコンピュータがもう一個あるのは遊べるなぁ。最初にやったのはころがってるチュートリアル見ながら <abbr title="Secure Shell">SSH</abbr> の設定と環境構築 (zsh インスコとか)</p>
        <p>一通り <abbr title="K Desktop Environment">KDE</abbr> とかインスコしてみて <abbr title="Virtual Network Computing">VNC</abbr> で遊んだので Apache をインスコ。</p>
        <p>何となく WebDAV って楽しそうじゃん？とか思って mod_dav をインスコ。しかしながら XP SP2 の Web フォルダでは <abbr title="Hyper Text Transfer Protocol Secure sockets">HTTPS</abbr> でないと Basic 認証ができないらしく mod_ssl を入れる。ついでにログイン時のユーザ名がわけわかになって絶対認証に失敗するので Web Client サービスをとめる。</p>
        <p>なんかできたっぽいかなと思ったので、この状態でこのウェブサーバに外部から接続するにはどうしたらいいだろうと考えた。普通の <abbr title="Hyper Text Transfer Protocol">HTTP</abbr> はホストコンピュータ上の Apache からバーチャルホスト設定 (ホストの Apache はそのまま使うため) と内部 Proxy 使っていってらっしゃい。<abbr title="Secure Sockets Layer">SSL</abbr> のほうは <a href="http://www.hh.iij4u.or.jp/~yukon/soft/tcptunnel/index-jp.html">TCPTunnel</a> 使ってポートフォワーディング。めでたしめでたし。</p>
        <p>xyzzy のキーバインドを一部覚えててよかった。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>もののけ姫</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/19/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/19/2.xhtml"/>
    <updated>2004-11-20T01:10:18+09:00</updated>
    <published>2004-11-20T01:10:18+09:00</published>
    <id>http://lowreal.net/2004/11/19/2</id>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>がやってたから見た。</p>
        <p>ところで、いつかに一回書いたんだけれど、よろしい作品を見る (読む) となんともいえない感覚になる。その感覚のことをうまく説明できないわけだけど……虚無っつうか喪失感っつうか、おなかごろごろっつうか……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>夢。廃墟の namazu</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/20/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/20/1.xhtml"/>
    <updated>2004-11-20T13:11:41+09:00</updated>
    <published>2004-11-20T13:11:41+09:00</published>
    <id>http://lowreal.net/2004/11/20/1</id>
    <category term="self"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>namazu <span class="fn">検索エンジン</span> の夢を見た。namazu はある大学の一つの建物で、中がかなり広い。namazu は工事中らしい。中に入るとコンクリート片やらパイプやらが散らばっている。中に入っていくつかの部屋を抜ける間に何人かの学生を見た。何をしていたかは知らない。かなり中のほうの部屋までいった。そこでパイプの残骸を見つめて、そこで目が覚めた。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>年賀状</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/22/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/22/1.xhtml"/>
    <updated>2004-11-22T01:52:38+09:00</updated>
    <published>2004-11-22T01:52:38+09:00</published>
    <id>http://lowreal.net/2004/11/22/1</id>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>もしかしてそろそろ年賀状買ったほうがいい系？　ここ数年年賀状をまともに出してない (きたらだす) から年賀状のあれがどういうシステムかを完全に忘却してる……</p>
        <p>あーほら、キリのいい年だからこっちから出そうかと思ったけどめんどくなってきｔ</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>RDF on Ruby</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/22/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/22/2.xhtml"/>
    <updated>2004-11-22T14:55:48+09:00</updated>
    <published>2004-11-22T14:55:48+09:00</published>
    <id>http://lowreal.net/2004/11/22/2</id>
    <category term="sw"/>
    <category term="web"/>
    <category term="prog"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>なにやら w3.org ドメインに<a href="http://www.w3.org/2001/12/rubyrdf/intro.html" title="RubyRDF: RDF programming in Ruby">ある</a>じゃないですか！　っていってもどれほど使えるかわかりませんけど……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>次期スタイルに向けて</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/23/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/23/1.xhtml"/>
    <updated>2004-11-23T00:57:27+09:00</updated>
    <published>2004-11-23T00:57:27+09:00</published>
    <id>http://lowreal.net/2004/11/23/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>いくつか目標的な何か</p>
        <ul>
          <li>パット見のバランス。何か左側に偏っててキモイ</li>
          <li>余白のとりかた。余白とかない</li>
          <li>border を最小限に……つまり余白のとりかた</li>
          <li>フォントグラフィをちゃんと考える。今めんどくさがりすぎ</li>
          <li>配色の再考。各種アクセシビリティツール使ってみるとかしてみる</li>
          <li>かっこよく……</li>
        </ul>
        <p>そんなわけで <a href="http://cssvault.com/">CSS Vault</a> とかで<del>パクる</del><ins>参考にする</ins>サイトを探す。もっと綺麗な方向にしたい……</p>
        <p>なんか細々したグラデーションとボーダー (not <abbr title="Cascading Style Sheets">CSS</abbr>) が流行ってるみたいだからパクろう。うん。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>新しいスタイル</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/24/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/24/1.xhtml"/>
    <updated>2004-11-24T01:21:30+09:00</updated>
    <published>2004-11-24T01:21:30+09:00</published>
    <id>http://lowreal.net/2004/11/24/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>なんか殆どできちゃったけどまだ適用しない。<abbr title="Internet Explorer">IE</abbr> の <code>:first-child</code> 非対応の対策のために元のマークアップを少し変えて (新しく class を導入) しまった。</p>
        <p>結局配色について殆ど考えなかった。というか画像を今のスタイルから流用しているから、全体的に殆ど今のまま。</p>
        <p>アクセシビリティツールもまだ使ってない。白ベースの青と黒だから殆ど問題ないと思うけどやっぱやってみなくちゃなぁ。</p>
        <ul title="todo">
          <li>画像と重なる部分のナヴィゲーションが読み難い。</li>
          <li>検索ページもちゃんとサイト全体と同じ <abbr title="Cascading Style Sheets">CSS</abbr> を適用する。</li>
          <li>本文のスタイルをもっとちゃんと考える。</li>
          <li>もっと細かく</li>
          <li>骨まで美味しく。</li>
        </ul>
        <ins datetime="2004-11-24T04:16:15+09:00">
          <p><a href="http://design.fujitsu.com/jp/universal/assistance/colordoctor/">ColorDoctor</a> を使って検証してみたけど、とりあえず大丈夫みたいだ。</p>
          <p>それより、この ColorDocter <q>メモリ : 256MB以上 (推奨 : 2GB以上)</q> って書いてあって 2GB 以上は嘘だろう、とか思ってたら本気でメモリ足りなくなった。むしろ最初起動すらしなかった。起動したと思ったら Firefox が落ちた。どこにそんなメモリ使ってんだろ…….Net だからっすか。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>namazu のカスタマイズ</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/24/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/24/2.xhtml"/>
    <updated>2004-11-24T23:40:28+09:00</updated>
    <published>2004-11-24T23:40:28+09:00</published>
    <id>http://lowreal.net/2004/11/24/2</id>
    <category term="prog"/>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>テンプレートに <abbr title="XSL Transformations">XSLT</abbr> を使う namazu.cgi の代替を書いて置き換えた。これで namazu だけ <abbr title="Hyper Text Markup Language">HTML</abbr>4.01 だったり、適用している <abbr title="Cascading Style Sheets">CSS</abbr> が違うということがなくなった。</p>
        <p>Ruby 拡張ライブラリの <a href="http://www.tietew.jp/ruby/">search-namazu</a> を使ってクエリ投げて、いったんデータを <abbr title="Extensible Markup Language">XML</abbr> に変換。んでそれを <abbr title="XSL Transformations">XSLT</abbr> エンジンに渡してやる。</p>
        <p>遠回りだけど、namazu のやつだけ統一感がないのはいくないからこれでよし。もちろん common.xsl が適用されているからスタイルシート追加したきゃ common.xsl を書き換えるだけ。全部変わる！</p>
        <p>あーそうだ。Ruby 用の <abbr title="XSL Transformations">XSLT</abbr> エンジンがなかったから <a href="http://raa.ruby-lang.org/project/sablot/">sablot</a> を使った。何か <abbr title="Common Gateway Interface">CGI</abbr> 経由でコンパイルするっていう方法がずっと頭から抜けてて、Ruby で <abbr title="XSL Transformations">XSLT</abbr> エンジンつかえないじゃん！って思ってた。想像力が減ってる。だめだ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>全統マーク</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/24/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/24/3.xhtml"/>
    <updated>2004-11-25T00:36:56+09:00</updated>
    <published>2004-11-25T00:36:56+09:00</published>
    <id>http://lowreal.net/2004/11/24/3</id>
    <category term="life"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>やっと帰ってきた。てか模試やっても自己採点してないとか、見直してないとかであんまり意味ない。英語て長文が面白いか面白くないかでめっさ偏差値変わるんですが。</p>
        <p>とりあえず重要なのは、出席番号を間違えて書いても (該当する出席番号の人はこの模試を受けていない) ちゃんと帰ってくるってことだ！　でも印刷は間違ってるから、学校の先生が出席番号しか見ていなかったら帰ってこなかっただろうなぁ。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>xsl:param にノード集合を渡す。</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/25/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/25/1.xhtml"/>
    <updated>2004-11-25T16:25:52+09:00</updated>
    <published>2004-11-25T16:25:52+09:00</published>
    <id>http://lowreal.net/2004/11/25/1</id>
    <category term="web"/>
    <category term="xslt"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>予め <code class="XML">xmlns:t="http://temporary/"</code> とかやっておく。既存の空間が利用できるならそれ使ってもいいと思う。</p>
        <pre title="呼び出し側" class="XML">&lt;xsl:call-template name="tempfoo"&gt;
    &lt;xsl:with-param name="foo" xmlns="http://temporary/"&gt;
        &lt;foo&gt;Foo&lt;/foo&gt;
        &lt;foo&gt;Bar&lt;/foo&gt;
    &lt;/xsl:with-param&gt;
&lt;/xsl:call-template&gt;</pre>
        <pre title="テンプレート" class="XML">&lt;xsl:template name="tempfoo"&gt;
    &lt;xsl:param name="foo"/&gt;
    &lt;ol&gt;
        &lt;xsl:for-each select="$foo/t:foo"&gt;
            &lt;li&gt;&lt;xsl:value-of select="."/&gt;&lt;/li&gt;
        &lt;/xsl:for-each&gt;
    &lt;/ol&gt;
&lt;/xsl:template&gt;</pre>
        <pre title="変換後" class="XML">&lt;ol&gt;
    &lt;li&gt;Foo&lt;/li&gt;
    &lt;li&gt;Bar&lt;/li&gt;
&lt;/ol&gt;</pre>
        <p>渡すほうに名前空間を指定しない場合は、(あたりまえだけど) デフォルトの空間になる。でもそのまま template のほうで接頭辞なしでアクセスしようとしても無理。</p>
        <p>できないと思ってた方法ができると分かって、いろいろ楽できる！　諦めかけていたなか光をくれた (謎) <a xmlns="http://www.w3.org/2005/Atom" href="http://orz.cc/blog">哀さん</a> にありがとう</p>
        <p><a href="/namazu-style.xsl">namazu スタイルシート</a>をつくるときに、一個の option 要素ごとに selected を入れるかの if を作るのが面倒でごちゃごちゃやってた。だいぶスッキリしていい感じ。</p>
        <ins datetime="2004-11-26T17:08:20+09:00">
          <p>ソース間違ってたのをちょっと修正。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>新スタイル適用</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/25/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/25/2.xhtml"/>
    <updated>2004-11-25T17:07:29+09:00</updated>
    <published>2004-11-25T17:07:29+09:00</published>
    <id>http://lowreal.net/2004/11/25/2</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>少し修正してだいぶやる気がなくなったので適用。公開するとまたアレな部分がいっぱい見えてくる。不思議だ。</p>
        <ins datetime="2004-11-25T21:38:13+09:00">
          <p>タイトルフォントについて書くのを忘れてた……</p>
          <p>NULL の部分は <a href="http://www.dafont.com/en/font.php?file=amerika_sans">Amerika Sans</a>。残りの部分は <a href="http://www.dafont.com/en/font.php?file=brie_light">Brie Light</a> っつうフォントどす。</p>
        </ins>
      </div>
    </content>
  </entry>
  <entry>
    <title>Namazu について</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/26/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/26/1.xhtml"/>
    <updated>2004-11-26T17:24:58+09:00</updated>
    <published>2004-11-26T17:24:58+09:00</published>
    <id>http://lowreal.net/2004/11/26/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>今まで散々 namazu と書いてきましたが、全部 Namazu の意味です。コマンドラインなんてつかたことない。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>日記とか</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/26/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/26/2.xhtml"/>
    <updated>2004-11-26T23:23:07+09:00</updated>
    <published>2004-11-26T23:23:07+09:00</published>
    <id>http://lowreal.net/2004/11/26/2</id>
    <category term="life"/>
    <category term="self"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>tDiary のデータを楽チンにインポートできないかなぁと思ってデータファイル見ていたのだけど、二年前の日記とかキモすぎて段々へこんでくる。だからもうインポートとかできなくていいや……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>暇なので最近のめも</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/27/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/27/1.xhtml"/>
    <updated>2004-11-27T00:42:36+09:00</updated>
    <published>2004-11-27T00:42:36+09:00</published>
    <id>http://lowreal.net/2004/11/27/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>メタデータと密着した画像管理システム。例えば複数の画像から一つの画像に合成したら dc:source 使って元の画像の <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> を記録しておくとか。ライセンスも画像に一緒に記録しとけば一番いいはず。</p>
        <p>更にキーワードとかを書いておけば画像を検索できたりとか。</p>
        <p>結局のとこ、<a href="http://www.flickr.com/creativecommons/">Flickr</a> に似たような感じになるわけだけども……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>cygwin sablotron</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/27/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/27/2.xhtml"/>
    <updated>2004-11-27T03:19:34+09:00</updated>
    <published>2004-11-27T03:19:34+09:00</published>
    <id>http://lowreal.net/2004/11/27/2</id>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>動かない。sabcmd は (たぶん) 動いてるけど、Ruby の sablot 作ろうと (ruby extconf.rb で) すると libsablot.a で大量にエラーが出る。検索しても何か妙に情報なし。壮大な勘違いでもしてるんだろうか？</p>
        <p>ローカルにこれ入れられないといちいち XREA にうぷしてやらなきゃいけない……嫌だ。wakewakame.</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>画像メタデータを表示</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/27/3.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/27/3.xhtml"/>
    <updated>2004-11-27T17:05:29+09:00</updated>
    <published>2004-11-27T17:05:29+09:00</published>
    <id>http://lowreal.net/2004/11/27/3</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a xmlns="http://www.w3.org/2005/Atom" href="/view-img/2004/20040807" title="/2004/20040807" class="img">
            <img xmlns="http://www.w3.org/1999/xhtml" src="/2004/20040807s" alt="メタデータを含む画像の例"/>
          </a>
        </p>
        <p>とりあえず中途半端だけど書いた。画像に含まれる <abbr title="Resource Description Framework">RDF</abbr> を抽出して表示するだけ。そのうちちゃんと整形させたい。</p>
        <p>nulog の画像参照については全部こっちにリンクが張られるようにした。nulog のデータの href とか src はそのままにして、img を含むリンクや、img 単体が存在する場合に view-img を付けてリンクをはる (はりなおす)</p>
        <p><abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> が微妙だよなぁ……もっといい感じにならないかなぁ。</p>
        <p>特定ディレクトリ以下の画像を一覧表示 (サムネイルで。なければない旨の画像？　サイズもちゃんと書いておいて条件分岐？　面倒) とかも面白いかなぁ……形にならないとよくわからない。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>FOAF Explorer でのエラー</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/27/4.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/27/4.xhtml"/>
    <updated>2004-11-27T17:51:02+09:00</updated>
    <published>2004-11-27T17:51:02+09:00</published>
    <id>http://lowreal.net/2004/11/27/4</id>
    <category term="web"/>
    <category term="xslt"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>なんかエラーでるので原因を特定すると、foaf:nick に rdf:Alt があるとエラーになる。FOAF Explorer の <abbr title="XSL Transformations">XSLT</abbr> を見てみると &lt;xsl:template mode="title" match="*"&gt; というテンプレートの中身が悪さしてる。xsl:choose で選択しているので上のほうに書いてある要素で rdf:Alt を含まなければエラーにならないんじゃないかと思ってやってみたらヒット。foaf:name は書いていなかったので適当に書いておいた。この回避法だと foaf:name を既に書いていてエラーが出る場合無理。あっちの対策を待ちましょうみたいな？</p>
        <p>でもこっちで回避するより何かフィードバック送ったほうがいいだろうなぁ。っていっても既に誰か送ってると思うんだけど……むしろエンジンのエラーな気がする。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>XSLT での name()</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/27/5.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/27/5.xhtml"/>
    <updated>2004-11-27T21:09:44+09:00</updated>
    <published>2004-11-27T21:09:44+09:00</published>
    <id>http://lowreal.net/2004/11/27/5</id>
    <category term="web"/>
    <category term="xslt"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>マジメな実装をするなら <code>name()</code> を select や @test で使う機会はまずないはず。 (もちろん <code>name()</code> をそのまま出力する用途では使うけど) そのかわりにちゃんと <code>namespace-uri()</code> と <code>local-name()</code> を使うはずだから。</p>
        <p>今まで <code>name()</code> を使うときなんかひっかかりつつ使っていたけどやっと変なことに気付いた。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Sablotron にノード集合を渡す。</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/28/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/28/1.xhtml"/>
    <updated>2004-11-28T12:42:59+09:00</updated>
    <published>2004-11-28T12:42:59+09:00</published>
    <id>http://lowreal.net/2004/11/28/1</id>
    <category term="xslt"/>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><abbr title="XSL Transformations">XSLT</abbr> エンジンにノード集合渡したいことが多々あるけど、params にナマの <abbr title="Extensible Markup Language">XML</abbr> を渡しても当たり前にサニタライズされたただの文字列が渡るだけ。じゃあどうすりゃいいねんと諦めていたわけだけど、FOAF Explorer のソース見ててわかった。arguments のほうに <abbr title="Extensible Markup Language">XML</abbr> とか <abbr title="XSL Transformations">XSLT</abbr> とか渡すのと同じように渡せばいいんだ。</p>
        <p>Sablotron は arguments を内部的に <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> として (スキーム arg:) 扱っているから、そっちに適当に渡してやればやりほうだいらしい。エロイ。</p>
        <pre title="PHP でのコード" class="PHP">$arguments = array(
    '/_xml' =&gt; file_get_contents($xml),
    '/_xsl' =&gt; file_get_contents($xsl),
    '/foo' =&gt; "&lt;test&gt;&lt;f&gt;aa&lt;/f&gt;&lt;f&gt;bb&lt;/f&gt;&lt;/test&gt;"
    );
$result = xslt_process($xh, 'arg:/_xml', "arg:/_xsl", NULL, $arguments);
</pre>
        <p>で、<abbr title="XSL Transformations">XSLT</abbr> 側からは <code>document('arg:/foo')</code> でアクセスできる。結局 <code class="XML">&lt;xsl:param name="foo" select="document('arg:/foo')"/&gt;</code> とかやっとけば OK。Sablotron イイ</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>XSLT と XPath の理解</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/29/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/29/1.xhtml"/>
    <updated>2004-11-29T14:35:21+09:00</updated>
    <published>2004-11-29T14:35:21+09:00</published>
    <id>http://lowreal.net/2004/11/29/1</id>
    <category term="web"/>
    <category term="xslt"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>とりあえずカレントノードとコンテキストノード。</p>
        <p>カレントノード = <code>current()</code> で、コンテキストノード = <code>self::node()</code>。カレントノードは <abbr title="XSL Transformations">XSLT</abbr> のもの。<abbr title="XML Path language">XPath</abbr> には <code>current()</code> という関数はないし、そもそも必要ない。</p>
        <p><code>current()</code> が変わるのは <code>xsl:template</code> 又は <code>xsl:for-each</code>。選択 (select) されたノードが current() になる。</p>
        <p><code>self::node()</code> が変わるのは <code>/</code>, <code>[</code><code>]</code>。(別に変わるとは限らない……)</p>
        <p>基準点とノードテストがまだあんまり理解できてない……</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>画像をてきとーに一覧表示する。</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/29/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/29/2.xhtml"/>
    <updated>2004-11-29T23:29:56+09:00</updated>
    <published>2004-11-29T23:29:56+09:00</published>
    <id>http://lowreal.net/2004/11/29/2</id>
    <category term="sw"/>
    <category term="web"/>
    <category term="xslt"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><a href="/view-img/2003/">/view-img/2003/</a> みたいな。</p>
        <p><abbr title="Resource Description Framework">RDF</abbr> は画像ファイル自身に埋め込んだのを取り出していちいち動的に合成してる。現状では同じディレクトリに <samp>samp-meta.rdf</samp> があるからそっち直接読んでもいいんだけど……実験ってことで……</p>
        <p>合成するとき REXML 使ってるから怪しい <abbr title="Extensible Markup Language">XML</abbr> (名前空間接頭辞が他のファイルと違うとか) があるとたぶんパースエラーになる。稀なケースだし Ruby のライブラリでガッチリキッチリ実装した使いやすいやつを知らないので仕方ない。</p>
        <p>ローカル側では <abbr title="Resource Description Framework">RDF</abbr> を埋め込む (ファイル名に -meta.rdf をつけたやつを突っ込む) ときに画像サイズが一定以上だったらサムネイルを作って、その情報 (<code>foaf:thumbnail</code>) も追加して埋め込む。</p>
        <p>サーバー側は同じディレクトリの画像をスキャンして <abbr title="Resource Description Framework">RDF</abbr> を取り出し、<code>@rdf:about</code> を書き換えて合成。合成したヤツを <abbr title="XSL Transformations">XSLT</abbr> エンジンに渡す。あとはまぁ普通に <abbr title="XSL Transformations">XSLT</abbr> テンプレの仕事で……</p>
        <p>ちなみにファイル名のリストは別に <abbr title="Extensible Markup Language">XML</abbr> 作って渡してる。丁度いい語彙があれば <abbr title="Resource Description Framework">RDF</abbr> に <abbr title="Resource Description Framework">RDF</abbr> として突っ込んだほうがスマートだけど考えるのが面倒だった。</p>
        <p>だいぶソースが汚い。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>CRON で殺される。</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/30/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/30/1.xhtml"/>
    <updated>2004-11-30T07:50:13+09:00</updated>
    <published>2004-11-30T07:50:13+09:00</published>
    <id>http://lowreal.net/2004/11/30/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>何か Killed って言われるので6時から3時にしてみた。Ruby で日記の <abbr title="Extensible Markup Language">XML</abbr> をセクションごとに <abbr title="Hyper Text Markup Language">HTML</abbr> にわけるところで Killed。mknmz も中途半端に終わったらしく NMZ.lock2 が残ってた。謎。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>横スクロール</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2004/11/30/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2004/11/30/2.xhtml"/>
    <updated>2004-11-30T15:51:44+09:00</updated>
    <published>2004-11-30T15:51:44+09:00</published>
    <id>http://lowreal.net/2004/11/30/2</id>
    <category term="web"/>
    <category term="soft"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>img 要素がはみ出したり、Gecko では <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> が折り返されなかったりで横スクロールがでるけど確実にうざいので対策。</p>
        <p><abbr title="Cascading Style Sheets">CSS</abbr> で <code class="CSS">img { max-with: 100% }</code>, <code class="CSS">p, dt, dd, li { overflow: hidden }</code> にしてみた。どんな弊害があるかしら。</p>
        <p>と思ったら後者で float したところに流れ込まなくなった。なんでだろう。</p>
        <ins datetime="2004-11-30T16:05:21+09:00">
          <p>float させてる中に画像があると大きさが 0 になっちゃうか。だめだなこりゃ。さくじょー</p>
        </ins>
      </div>
    </content>
  </entry>
</feed>
