<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="text">nulog</title>
	<!--subtitle type="text"></subtitle-->
	<link rel="self" type="application/atom+xml" href="http://lowreal.net/blog/index.atom"/>
	<link rel="alternate" type="text/html" hreflang="ja" href="http://lowreal.net/blog/index" />
	<id>tag:,2006:</id>
	<generator uri="http://www.blosxom.com/" version="2.0">Blosxom</generator>
	
	
	
	<updated>2008-01-27T12:25:00Z</updated>

	<entry>
		<id>tag:,2008:/fumino/d20080127</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2008/01/27/1.html" />

		<title type="text">文乃さん</title>
		<published>2008-01-27T12:25:00Z</published>
		<updated>2008-01-27T12:25:00Z</updated>
		<category term="/fumino"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p>なんか一昨日までちゃんと「文乃さん やばい」で一位だったのに、今日みたら三位だった。ありえん(笑)</p>
</div>
		</content>
	</entry>
	<entry>
		<id>tag:,2007:/life/d20071231</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2007/12/31/1.html" />

		<title type="text">一年のまとめ</title>
		<published>2007-12-30T16:18:00Z</published>
		<updated>2007-12-30T16:18:00Z</updated>
		<category term="/life"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p>箸の使いかたが少し上手になりました。</p>
</div>
		</content>
	</entry>
	<entry>
		<id>tag:,2007:/music/d20071202-thegoldenbellcity</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2007/12/02/1.html" />

		<title type="text">Good Dog Happy Men -  the GOLDENBELLCITY -嬉しくて悲しいこと-</title>
		<published>2007-12-02T09:54:00Z</published>
		<updated>2007-12-02T09:55:00Z</updated>
		<category term="/music"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p>3部作の完結のフルアルバムがでた。数日聴きこんでみたけど、「Groria Street から愛を込めて#3 」(原文ママ) が素晴らしい。「ただ生きるよりルール」</p>

<p>「Apple star storyS」 はヘッドフォンで聴くと面白い。ライブ音源もいいけどこれも好き。Most beautiful in the world にはASの歌詞がついてなくて、聴きとってテキストにしといたのだけど、何いってのかよくわかんなくてなんとなくで書いたりしたところがあった。でも答えあわせをしたら割とあってた (鍵カッコつけた部分まであってて笑った)。(「星空」を「この空」とまちがえてた (シャウトしててききとれない)。「たまにわからなくなるけど」を「たまにわからなくなるねと」とまちがえてた (なんで間違えたのかわからないけどw))</p>

<p>「そして列車は行く」はなんか長い部分を見ていろいろカッコいい。うまくいえない。曲としてめっちゃカッコいいのもそうだし、「今 拍手喝采とか涙よりもっと」とか、いちいちかっこいい。</p>

<p>「記憶と記録」は四人のゴブリン大いに踊るに収録されていた「微笑とメロディー」のリアレンジなんだけど、このアレンジがなんか想像の斜め上をいきまくってておもしろい。</p>

<p>でもって「黄金の鐘」なんだけど、最初の歌詞から大分歌詞が変わってて残念なところがあったりするけど、聴いてるとどうでもよくなってきた。これはたぶん聴きこむともっとじわじわきそうだなぁ。</p>

<p>ツインドラムがかっこいいからライブでききたいなぁ……</p>

<p><a href="http://www.amazon.co.jp/exec/obidos/ASIN/B000XAMC8U/nuso-22/ref=nosim/">
  <img src="http://images-jp.amazon.com/images/P/B000XAMC8U.09.MZZZZZZZ.jpg" alt=""/>
  the GOLDENBELLCITY
</a></p>
</div>
		</content>
	</entry>
	<entry>
		<id>tag:,2007:/technology/d20071117-dx</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2007/11/17/1.html" />

		<title type="text">New version of $X</title>
		<published>2007-11-16T17:25:00Z</published>
		<updated>2007-11-25T06:53:00Z</updated>
		<category term="/technology"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p>コピペメモ</p>

<p>今までの $X は evaluate を二回する問題があってダサいので、使い勝手をそのままにしつつ新しくして使いはじめました。</p>

<ul>
<li>type 指定を導入
<ul>
<li>ECMAScript 側で受けとりたい型を指定する。 (Array, String...)</li>
<li>XPathResult.BOOLEAN_TYPE とか指定するのはめんどいし覚えられない。</li>
</ul></li>
<li>type 指定なしの場合は UNORDERED_NODE_ITERATOR_TYPE をそのまま Array に変換してかえす
<ul>
<li>たぶんこれでも殆どの場合は問題ないと思う</li>
<li>ノード集合じゃない (number とか) ならそれぞれそのままかえす (いままでとおなじ)</li>
</ul></li>
<li>type 指定で Array を指定した場合は ORDERED_NODE_SNAPSHOT_TYPE を Array に変換してかえす
<ul>
<li>UNORDERED なやつで特別問題がある場合つかう</li>
</ul></li>
</ul>

<p>あんまり type 指定するの好きじゃないので (めんどい) 基本的に指定しなくても問題ないように</p>

<p>(長いのでまだ変更するかも)</p>

<pre><code>// &#036;X(exp);
// &#036;X(exp, context);
// &#036;X(exp, type);
// &#036;X(exp, context, type);
function &#036;X (exp, context, type /* want type */) {
    if (typeof context == "function") {
        type    = context;
        context = null;
    }
    if (!context) context = document;
    var exp = (context.ownerDocument || context).createExpression(exp, function (prefix) {
        var o = document.createNSResolver(context).lookupNamespaceURI(prefix);
        if (o) return o;
        return (document.contentType == "application/xhtml+xml") ? "http://www.w3.org/1999/xhtml" : "";
    });

    switch (type) {
        case String:
            return exp.evaluate(
                context,
                XPathResult.STRING_TYPE,
                null
            ).stringValue;
        case Number:
            return exp.evaluate(
                context,
                XPathResult.NUMBER_TYPE,
                null
            ).numberValue;
        case Boolean:
            return exp.evaluate(
                context,
                XPathResult.BOOLEAN_TYPE,
                null
            ).booleanValue;
        case Array:
            var result = exp.evaluate(
                context,
                XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
                null
            );
            var ret = [];
            for (var i = 0, len = result.snapshotLength; i &lt; len; i++) {
                ret.push(result.snapshotItem(i));
            }
            return ret;
        case undefined:
            var result = exp.evaluate(context, XPathResult.ANY_TYPE, null);
            switch (result.resultType) {
                case XPathResult.STRING_TYPE : return result.stringValue;
                case XPathResult.NUMBER_TYPE : return result.numberValue;
                case XPathResult.BOOLEAN_TYPE: return result.booleanValue;
                case XPathResult.UNORDERED_NODE_ITERATOR_TYPE: {
                    // not ensure the order.
                    var ret = [];
                    var i = null;
                    while (i = result.iterateNext()) {
                        ret.push(i);
                    }
                    return ret;
                }
            }
            return null;
        default:
            throw(TypeError("&#036;X: specified type is not valid type."));
    }
}
</code></pre>
</div>
		</content>
	</entry>
	<entry>
		<id>tag:,2007:/technology/d20070915-shibuyajs-24</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2007/09/15/1.html" />

		<title type="text">出張 Shibuya.js 24 「正しい Photoshop の使い方」</title>
		<published>2007-09-15T12:38:00Z</published>
		<updated>2007-09-19T15:21:00Z</updated>
		<category term="/technology"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://www.mozilla24.com/">Mozilla 24</a> の <a href="http://shibuyajs.org/articles/2007/08/24/Shibuya-js-24">出張 Shibuya.js 24</a> で LT しました。</p>

<p>スライドは CodeRepos にコミットしました。psd でプレゼンしましたがたぶん見れない人のほうが多いので png に変換してあります。</p>

<p><a href="http://coderepos.org/share/browser/docs/cho45/20070915-shibuyajs-mozilla24/outputs/">出張 Shibuya.js 24 「正しい Photoshop の使い方」変換済み</a></p>

<p>時間の関係で全部できませんでしたが、<a href="http://coderepos.org/share/browser/docs/cho45/20070915-shibuyajs-mozilla24/test.jsx">実演のシナリオ</a>も一応あります。</p>

<hr />

<p>あのシェルも CodeRepos にコミットしてあります。<a href="http://svn.coderepos.org/share/lang/javascript/pshell/">pshell</a> (追記: <a href="http://www.slideshare.net/cho45/shibuyajs-24-lt">SlideShare にもアップしました</a>)</p>

<p>Windows 版の CS3 を持っていないのでうごくのかよくわからないですが、基本的にファイルのよみかきしか行なっていないので、ruby と CS3 があればうごくんじゃないかと思います。</p>

<hr />

<p>追記</p>

<p>そういえば深夜にやっていた<a href="http://livecoding.org/">ライブコーディング</a>にもせかんどらいふさん経由で飛び入り参加しました。ネタがあまりにもうかばないのでかなり困った。結局 10 分ではてダのセクションならびを統一する Greasemonkey スクリプトを書きました。むかしに書いたことあったのですが、いつのまにかアンインストールされてたのでスクラッチから書きなおしみたいなものです。(書いたの10行だけ)</p>

<p><a href="http://coderepos.org/share/browser/lang/javascript/userscripts/hatenasortentries.user.js?rev=190
">CodeRepos にコミットしてあります</a></p>
</div>
		</content>
	</entry>
	<entry>
		<id>tag:,2007:/web/d20070906-alc</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2007/09/06/1.html" />

		<title type="text">英和辞書ひきまくる Greasemonkey スクリプトを更新</title>
		<published>2007-09-06T13:22:00Z</published>
		<updated>2007-09-06T13:22:00Z</updated>
		<category term="/web"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://lowreal.net/blog/2006/12/03/1">英和辞書ひきまくる Greasemonkey スクリプト</a> なんてのを書いたのですが、最近 alc が新しくなったっぽいので新しいほうを使うように変更して更新。</p>

<p><a href="http://userscripts.org/scripts/show/12024">http://userscripts.org/scripts/show/12024</a></p>
</div>
		</content>
	</entry>
	<entry>
		<id>tag:,2007:/web/d20070905-mixi-community</id>
		<link rel="alternate" type="text/html" href="http://lowreal.net/blog/2007/09/05/1.html" />

		<title type="text">mixi のコミュニティのメンバーリストでその人が入っているコミュニティの数を表示する GM</title>
		<published>2007-09-04T16:34:00Z</published>
		<updated>2007-09-04T16:37:00Z</updated>
		<category term="/web"/>
		<author>
			<name>cho45</name>
			<uri>http://lowreal.net/</uri>
      <email>cho45@lowreal.net</email>
		</author>
		<content type="xhtml" xml:lang="ja" xml:base="http://lowreal.net/">
			<div xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://userscripts.org/scripts/show/11985">http://userscripts.org/scripts/show/11985</a></p>

<p>ひさしぶりに Greasemonkey スクリプト書いた。どうでもいいけどどうしても GreaseMonkey と書いてしまう。</p>

<p>list_member.pl で、ユーザアイコンにマウスホバーにひっかけて、その人が所属しているコミュニティの数を表示する。</p>

<p>list_community.pl に直接アクセスしているので足あとはつかないはず。そのかわり51以上はいってる人は正確な数字が一発でとれないのでてきとーな数字になってる。51 のコミュニティに入っていても *100 と表示される。51 以上はだいたいたいして変わらないのでどうでもいい。</p>
</div>
		</content>
	</entry>
</feed>
