<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>D-6 [相変わらず根無し]</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/" />
    <link rel="self" type="application/atom+xml" href="http://mt.endeworks.jp/d-6/atom.xml" />
    <id>tag:mt.endeworks.jp,2007-07-27:/d-6//3</id>
    <updated>2010-08-26T01:33:41Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Open Source 4.1</generator>

<entry>
    <title>YAPCスピーカー絶賛募集中です！</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/08/yapc-1.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2506</id>

    <published>2010-08-26T00:58:06Z</published>
    <updated>2010-08-26T01:33:41Z</updated>

    <summary>YAPCスピーカー絶賛募集中です！今まで参加されてこなかった方達、是非応募してみ...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="yapcasia" label="yapcasia" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<a href="http://yapcasia.org/2010/info/yapcasia-tokyo-2010-lt.html">YAPCスピーカー絶賛募集中です</a>！<div><br /></div><div>今まで参加されてこなかった方達、是非応募してみてください。最先端技術に関して喋る必要はありません。</div><div><br /></div><div>最先端技術等は比較的「○○の紹介」という感じのトークになることが多いですが、それ以外のトークを発表する際に大事なのはあるテーマを「どうやって」成し遂げたのかを発表する事です。「ほら、みてかっこいいでしょう」ではなく「こういう仕様要求があって、これを達成するための問題はこれで、こうやって解決した」というような内容であれば必ず誰かのためになります。そしてそのテーマは特に難しいものである必要はないのです。「ログ解析」のようにありふれているものでも「ファイルの整理の仕方」とか一件技術っぽくないものでも、知らない人から見たら有用なものって必ずあるはずです。</div><div><br /></div><div>気張る必要はありません。トーク内容にアドバイスが必要でしたら運営側にもご相談ください。一人でも多く、今までYAPCで登壇されたことの内方に発表していただければと思います。</div><div><br /></div><div>もちろん、今まで参加してきた方も是非どうぞ！今年は<a href="http://yapcasia.org/2010/info/yapcasia-sponsored.html">ベストスピーカーになるとちょっとした商品がもらえるそうですよ</a>！</div><div><br /></div><div>皆様の参加をお待ちしております。</div>]]>
        
    </content>
</entry>

<entry>
    <title>スッポン鍋食うてきた</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/08/post-163.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2505</id>

    <published>2010-08-23T02:04:43Z</published>
    <updated>2010-08-23T04:09:12Z</updated>

    <summary> すっぽん料理怖い。 というわけですっぽん料理食ってきた。場所は住宅街と慶應くら...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="IMG_0291.jpg" src="http://mt.endeworks.jp/d-6/IMG_0291.jpg" width="180" height="135" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></span>
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="IMG_0298.jpg" src="http://mt.endeworks.jp/d-6/IMG_0298.jpg" width="180" height="135" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></span>
<div>
すっぽん料理怖い。</div>
<div><br /></div>
<div>というわけですっぽん料理食ってきた。場所は住宅街と慶應くらいしかない日吉の、しかもメインの通りとかじゃなくて中原街道から蟹ヶ谷とかのほうに向かうほっそい道の途中にある「鳥八」。実はここは良く通ってて「怪しい店だなぁ」と常々思っていたのだが、ある年テレビでこの店が紹介されてて「あ、あの店本当にやってるんだ！」とわかった次第。</div><div><br /></div><div>基本的にはすっぽん鍋を食べたんだけど、味は激ウマ。鍋は本当にうまい。三つ葉とかニラとかとスッポン肉の入った鍋で、これは出汁が本当に濃くてうまかった。みんなでむさぼりくった。食べ終わったらそこにご飯と卵が入ってスッポン雑炊。うめー！隠し味の酢橘がすげーうめぇぜッ！</div><div><br /></div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="" src="http://mt.endeworks.jp/d-6/IMG_0296.jpg" width="180" height="135" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></span><div>というわけで鍋はすごいうまかったのだが、しかし飲み物類物がなんというか、怪しいとしか言いようがない。スッポンの生き血、胆汁。「マル秘」という名前のお酒（マムシとスッポンの卵と入ってるらしい）。写真は生き血。見て分かるとおりすごい色。もうこれが中世ヨーロッパだったら絶対に魔女狩りに合ってそうな勢い。ひー。</div><div><br /></div><div>生き血にしろ胆汁にしろ、焼酎で割ってあるので全然飲み口は悪くない。ただ、あとで妙な感じｗ マル秘のほうは後味になにか動物的な香りがして俺はちょっと駄目だった。半分くらい連れて行ってくれたＯさんにお願いしてしまった。</div><div><br /></div><div>というわけで、うまいんだけどこれってやっぱり現代人が食っても栄養摂取過剰じゃないの？って感じ。値段は安いし、味はうまい。おいしい雑炊は是非！興味ある人は予約して是非ゴー！</div><div><br /></div><div><br /></div><div>おまけ：店のにゃんこちゃんが超かわいかった</div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="IMG_0307.jpg" src="http://mt.endeworks.jp/d-6/IMG_0307.jpg" width="360" height="270" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>「サフォーク 大地」は正直がっかりでした</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/08/post-161.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2503</id>

    <published>2010-08-05T11:49:30Z</published>
    <updated>2010-08-05T12:04:08Z</updated>

    <summary>本日はラム肉を食べよう！ということで「サフォーク 大地」を二人で予約して午後7時...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<div>本日はラム肉を食べよう！ということで「<a href="http://r.tabelog.com/hokkaido/A0101/A010103/1002719/">サフォーク 大地</a>」を二人で予約して午後7時スタート。</div><div><br /></div><div>まずこれだけ言っておきます。</div><div>「ロース肉の鍋」の肉の質は大変よかったです。</div><div>しかし結果的にはCPが見合わないというか、気分が悪いという状態でまだ空腹のまま帰りました。</div><div><br /></div><div>というわけでいきさつ：</div><div><br /></div><div>まず7時に入店して、ちょっと迷ってからモモの刺身、サラダとウーロン茶、生ビールを注文。生ビールはすぐ来たものの、ウーロン茶は「すぐお持ちしますので」と言ってずっと来ない。結局サラダとウーロン茶は20分後、こちらがリマインドしたらようやく登場。もうこの時点でちょっとおかしい。</div><div><br /></div><div>モモの刺身。これが写真ではおいしそうな大ぶりのラム肉が載ってるんだけど、</div><div>我々の前に出てきたのは直径3ｃｍくらいのもも肉の薄っぺらいロースト。</div><div>写真のあれはどーした！</div><div><br /></div><div>その肉は中心は生だけど、大分冷たいので（冷蔵庫に入れたものをすぐ出した感じ？）硬いし、舌の上ではとろけるとかは全然ない。つーか、値段と釣り合わないだろ・・・</div><div><br /></div><div>これではいかん、ちゃんとメインに張っているメニューを食べようと思って</div><div>高い方（2980円）の「ロース肉の鍋」を注文。</div><div><br /></div><div>その間にモモ肉を食べ終わりましたが、前述の通りウーロン茶も出なければサラダも来ませんでした。後ろの団体客はどんどん注文が通るけど、こっちはなんの確認もナシ。しびれをきらして注意したらすぐでてきた。</div><div><br /></div><div>ど う い う こ と だ。</div><div><br /></div><div>その後ロース肉が出てきて、男性の眼鏡を掛けた店員が応対。説明がしどろもどろ。</div><div>まずガーリック醤油的なものが出されて、「ガーリック醤油です」とだけ宣言される。</div><div><br /></div><div>で、次にポン酢が出てくる「お野菜はこちらでお食べください」「お肉はそちらの</div><div>お塩で（ちなみに塩は10種類くらいテーブルの上にあるんだけど、なんの説明もなし）」</div><div><br /></div><div>え？じゃあさっきのガーリック醤油は？でも説明しないでどっか言っちゃった。</div><div><br /></div><div>えー。</div><div><br /></div><div>そして<a href="http://mt.endeworks.jp/d-6/2009/12/post-140.html">肉好きで、ラム肉も特に大好きな自分</a>が許せなかったのがこの点：</div><div>この店は店員がその肉と野菜を調理することになっているのに、この店員の調理が</div><div>少なくとも自分の考える肉のおいしい焼き方からするとちょっとひどい事してた。</div><div><br /></div><div>例えば熱くなった鍋が諸々（野菜を入れたのとコンロの火を弱めたのと）の理由で</div><div>熱が下がったところにおもむろに肉を投下してる。</div><div>その後肉を裏返しまくる。これでは弱火で両面をジクジク温めているだけで、</div><div>メニューに書いてある「レアで食べると一番おいしいです！」に明らかに反してるのでは・・・？&nbsp;折角うまい肉なのに・・・</div><div><br /></div><div>できあがった肉自体は大変おいしかったですが、正直もっともっとうまくできたのでは・・・</div><div><br /></div><div>というわけでもうすでにその時点で大分印象が悪かったのと、少なくとも</div><div>自分の好みにはあわないと判断し追加注文を諦めて、お腹が減っている状態で入店1時間もせずに退店を決意。</div><div><br /></div><div>ちなみにお会計も頼んでから来るのに10分ほどかかって、これでもう俺の堪忍袋は限界。</div><div><br /></div><div>もう一回言うけど肉はおいしかった。</div><div>一番印象悪いのは男性の眼鏡の店員。</div><div><br /></div><div>最後に静かに「あれはないだろ」って文句を言いに行ったんだけど、対応してくれた店長らしきおばちゃんはいい人そうでした。</div><div><br /></div>しかしお値段からすると数段階上のサービスを期待したいところ。 <div><br /></div><div><br /></div><div>正直な感想：「金返せ」</div><div>まぁあの店員だけだったのかもだけど、すこぶる印象が悪い。多分今後機会があっても5年くらいは再訪しない。</div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>perlbrew</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/08/perlbrew.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2502</id>

    <published>2010-08-02T08:15:11Z</published>
    <updated>2010-08-03T03:21:28Z</updated>

    <summary>Perl 5.6 とか Perl 5.8を今だに使ってるあなた！そうです、これを...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="perlbrew" label="perlbrew" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<div>Perl 5.6 とか Perl 5.8を今だに使ってるあなた！そうです、これを読んでるそこのあなたです。Perl5の開発チームは後方互換に関しては大変神経をつかっていますので、 Perl 5.6とかで動いてたコードをいきなり 5.12で走らせても基本的には動くはずです（多分警告とかは一杯でるだろうけど）。でもだからといって新しいバージョンで施されている様々な最適化や新しい機能を使えないのはちょっと悲しくないですか？</div><div><br /></div><div>ということで新しい Perlを使いましょう！最新安定版は5.12.1ですよ！ちなみにどのバージョンを2010年8月時点で使うべきか、は<a href="http://d.hatena.ne.jp/tokuhirom/20100721/1279675665">こちらのエントリを参照してください</a>。</div><div><br /></div><div>え？アップグレードできない？システム管理者が許してくれない？前入れてたアプリが壊れる？いやいやいや、全然いけますって。自分用のPerlをインストールすればいいんですよ！</div><div><br /></div><div>ここではそれを簡単に解説しましょう。</div><div><br /></div><div>まず短い説明は 「<a href="http://search.cpan.org/dist/App-perlbrew/">perlbrew</a>を使え」です。以上です。</div><div><br /></div><div>でもそれだけじゃわかんねーよ！って方は以下をご覧下さい。</div><div><br /></div><div>まず perlbrewをインストールします。こんな感じでスクリプトを一個ダウンロードするだけです：</div>

<pre class="code_listing">    &gt; curl -L http://xrl.us/perlbrew &gt; perlbrew
</pre>
<div><br /></div><div>curlってなってるところはwgetでもlwp-downloadでも、なんでも好きなツールを使って下さいね。</div><div><br /></div><div>そしたらこのツールを「インストール」します。/usr/localとかじゃなくて自分のホームディレクトリに入れてくれますのでご安心を。</div>
<pre class="code_listing">    &gt; perl perlbrew install
</pre>
<div><br /></div><div>一瞬で終わるので、今落としてきたファイルを消しておきます。もう使わないし。</div>
<pre class="code_listing">    &gt; rm  perlbrew
</pre>

<div><br /></div><div>で、まずperlbrewを認識できるようにちょっと調整をします：</div>
<pre class="code_listing">    # パスやシェルの種類は適時自分のものに変えて下さい
    &gt; echo 'source /home/daisuke/perl5/perlbrew/etc/bashrc' &gt;&gt; ~/.bashrc
    &gt; source ~/.bashrc
    &gt; perlbrew init
</pre>
<div><br /></div><div>これで環境設定はOK。でもこのままではなんにもできないので、ここで使いたいperlのバージョンを指定してperlbrewにインストールさせます。こんな感じでやるだけで5.12.1をダウンロードし、コンパイルをしてくれます</div>
<pre class="code_listing">    &gt; perlbrew install perl-5.12.1
</pre>

<div><br /></div>ここでトイレに行くとか、軽く掃除をするとか、用事を済ませてきて下さい。perlほど大きなプログラムをコンパイルするにはそれなりに時間がかかります。<div><br /></div><div>コンパイルが失敗した場合はインストールログを見るといいでしょう。多分落ちてるとしてもどっかテストが一個こけてるとかだけだと思うので「まぁいいや」と思えるなら（コンパイルはやりなおしになってしまいますが）、-fをつけてもう一回インストールすると無理やりインストールしてくれます</div>
<pre class="code_listing">    &gt; perlbrew install -f perl-5.12.1
</pre>

<div><br /></div><div>できたらこんな感じでスイッチ！次から"perl"って打つとperl 5.12.1を使えてます！</div>
<pre class="code_listing">    &gt; perlbrew switch perl-5.12.1
    &gt; perl -v
    This is perl 5, version 12, subversion 1 (v5.12.1) built for darwin-2level
</pre>
<div><br /></div><div>この後、違うバージョンのperlを入れたければ同じようにインストールしてからswitchすればおｋ！</div>
<pre class="code_listing">    &gt; perlbrew install perl-5.13.3
    &gt; perlbrew switch perl-5.13.3 # 開発版！
</pre>

<div><br /></div><div>普段作業するときにはperl hoge.plとやれば良きにはからってもらえます。</div><div><br /></div><div>スクリプトのshebangに書く場合は「どれでもいいからperlbrewの指定するperlを使ってくれよ！」という時と「確実にこのバージョンのperlを使ってくれ！」という場合がありますが、前者の場合はenvでこんな感じにすればいいですし、</div>
<pre class="code_listing">    #/usr/bin/env perl
</pre>
<div><br /></div><div>後者の場合は絶対パスを指定すればおｋです。</div>
<pre class="code_listing">    #!/home/username/perl5/perlbrew/perls/perl-5.12.1/bin/perl
</pre>

<div><br /></div>
<div>パワーユーザー的にはこの仕組みの良い点はコンパイルオプションが違う、同一バージョンのPerlを混在させる、とかもできるところですね。例えばスレッド込みでコンパイルされたPerlを扱いたいなら以下のように-D（コンパイル時に渡すフラグ）を渡してやって、インストール時の名前を変えてやればOK!</div>
<pre class="code_listing">    &gt; perlbrew install perl-5.12.1 -as perl-5.12.1-threaded -D=useithreads
    &gt; perlbrew switch perl-5.12.1-threaded
</pre>
<div><br /></div><div>お気軽ユーザーにとっては、perl本体とモジュール群がそれぞれ別のディレクトリで管理されるので最後に「もういらね」状態になったらそのperlをrm -rfすれば全部一緒に消えてくれ、あんまり後で問題になる事がないってもグッド。やー、楽ちん！</div><div><br /></div><div>さあ、これで新しいPerlをインストールできないから使えないとか言ってられませんよ！是非新しいPerlを使ってみてください。</div>]]>
        
    </content>
</entry>

<entry>
    <title>Okayama.pmに行ってきました</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/08/okayamapm.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2501</id>

    <published>2010-08-02T03:11:21Z</published>
    <updated>2010-08-02T03:17:08Z</updated>

    <summary>7/31に久しぶりに岡山に行ってOkayama.pmに参加してきました！途中から...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="okayamapm" label="okayama.pm" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[7/31に久しぶりに岡山に行ってOkayama.pmに参加してきました！<div>途中から僕の独壇場になってしまったっぽいですが、大丈夫だったかなぁ。</div><div><br /></div><div>やはり東京のような都市との情報の格差があるんだなぁ、というのが正直な感想。XslateやCatalystの情報は結構あるはずだ、と思っていてもやはりそれの方向に興味を向けてくれる方法がないとなかなか広まらないんでしょうね。</div><div><br /></div><div>今はtwitterやらなにやらあるから、うまく活用して情報を拾ってくるといいと思います！ twitterで #perlをつけて発言するとか、 IRCで#perl-casualとかに参加するといいですね :)</div><div><br /></div><div>ちなみに資料は来週アップ予定です。</div>]]>
        
    </content>
</entry>

<entry>
    <title>なんか xslate.orgができてるよ</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/xslate-org.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2500</id>

    <published>2010-07-30T05:53:39Z</published>
    <updated>2010-07-30T05:54:28Z</updated>

    <summary>http://xslate.org/ tokuhiromがざーっと雛形作って、あ...</summary>
    <author>
        <name>D</name>
        
    </author>
    
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xslate" label="xslate" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<a href="http://xslate.org/">http://xslate.org/</a> <div><br /></div><div>tokuhiromがざーっと雛形作って、あとはどかどかみんなでコミットしてたらいつのまにかできてたよ。</div>]]>
        
    </content>
</entry>

<entry>
    <title>Geo::Hash::XS 書きました</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/geohashxs.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2499</id>

    <published>2010-07-30T05:50:19Z</published>
    <updated>2010-07-30T05:52:24Z</updated>

    <summary>geohash値を計算するためのモジュール、Geo::HashってのがすでにCP...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[geohash値を計算するためのモジュール、<a href="http://search.cpan.org/dist/Geo-Hash">Geo::Hash</a>ってのがすでにCPANにあるんだけれども、それのXS版<a href="http://search.cpan.org/dist/Geo-Hash-XS">Geo::Hash::XS</a>を作ってアップしておきました。実は特に使うアテもないんだけど、目の前で開発が進んでたロケタッチでいざ使おうと思った時にあったらいいかなぁ、と思って現実逃避のために作りました。<div><br /></div><div>もしご意見等ございましたらお気軽にどうぞ。</div>]]>
        
    </content>
</entry>

<entry>
    <title>食べる量。</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/post-160.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2497</id>

    <published>2010-07-13T00:35:56Z</published>
    <updated>2010-07-13T00:45:25Z</updated>

    <summary>えー、とうとう３３歳になってしまいまして。で思い返すに最近・・・そうですなぁ、こ...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[えー、とうとう３３歳になってしまいまして。<div><br /></div><div>で思い返すに最近・・・そうですなぁ、ここ２年くらいですかね。なんだか急速に体の衰えを感じているのです。特に飯。どうもね満腹中枢と理性と内蔵の処理能力がいまいちシンクロしてないのです。</div><div><br /></div><div>例えばお昼に出るじゃないですか。気分的にはお腹も減っていてそれこそ近所の<a href="http://www.moyan.jp/">もうやんカレー</a>とか食べられるんじゃないかという感じなんですが、最近それをやってしまうともう後で膨満感で仕事にならない。他の店でも例えば昔はぺろりといけていた大盛り注文も最近は後で来るので食べられない。その食べてる瞬間はいける、と思うし実際完食まではできるんだけど、後でくるんだよなぁ・・・</div><div><br /></div><div>まぁそんなわけでさすがに僕も馬鹿じゃないのでだんだんその事が分かってきて昼飯は今までと比べると軽めにしてみてうどんとか食べたりしてるわけですが、それでもやっぱり「あ、この店大盛りがあるんだ・・・」とか見てると腹のほうは「いけるいける、おまえ食えるぞ！」って言ってくるんですな。そこは理性でなんとか抑えるんだけど、なんか一抹の残念感というかなんというか・・・そういうものをもって店を出たりするわけです。で、歩いているとだんだんこなれてきて「あ、やっぱり大盛りにしなくてよかった」とかなるんで、まぁ最終的にはいいんですが。</div><div><br /></div><div>とまぁこんな感じで、理性では「おれはもう大食いはできない」と分かっていても今までの癖で「まだ食える」と感じてしまうというちぐはぐな状態なわけです。</div><div><br /></div><div>これからはなるたけ若人連中に食わせてそれを見て喜ぶ人になろうかと思います。</div>]]>
        
    </content>
</entry>

<entry>
    <title>PUFFYライブ</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/puffy-1.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2498</id>

    <published>2010-07-11T01:02:40Z</published>
    <updated>2010-07-13T01:11:49Z</updated>

    <summary>去年相方に連れられて初めてPUFFYのライブに行きました。で、今年もなんかいつの...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[去年相方に連れられて初めてPUFFYのライブに行きました。で、今年もなんかいつのまにやらどこからかチケットを手に入れてきたらしく、この間三軒茶屋の昭和女子大学人見記念講堂でのライブにも行ってきました。<div><br /></div><div>あいにくの雨の中、満席状態。デビュー１４周年とか言ってたけど、好きな人も多いんですなぁ。</div><div><br /></div><div>正直自分はそんなにファンでもないので大盛り上がりはしないんだけど、でも一つだけ言いたかったのは、自分みたいに「え、PUFFYってなんちゃってアイドルくずれポップでしょ？」とか思ってると意外とライブではびっくりさせられるということ。</div><div><br /></div><div>PUFFY達のトークとかもまったりしてていいんだけど、バックバンドがまぁなんというか、こういう言い方は失礼かもしれないけど「ちゃんとしたロックバンド」なんだよね。骨太ロックが聴けます。おかげでそんなにPUFFYファンじゃない自分も大変楽しかったです。あ、ちなみに別にPUFFY嫌いとかでもないんで。要はフツーの観客です。</div><div><br /></div><div><br /></div><div><br /></div><div>ところでやっぱり「大人の席」が欲しいです。１人３万円くらい、４人席で１０万円くらいでボックス席になってて、ビールの一杯も着く感じの席。遠くていいので、落ち着いてライブを見られる場所。そんなのがメタリカライブとかであったら絶対いく！</div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>slow query logとかをTest::mysqldで出す</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/slow-query-logtestmysqld.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2496</id>

    <published>2010-07-08T03:41:47Z</published>
    <updated>2010-07-08T03:51:03Z</updated>

    <summary>以前ここで書いたTest::mysqldの仕組み、すこーしずつ毎回変えながら使っ...</summary>
    <author>
        <name>D</name>
        
    </author>
    
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="testmysqld" label="Test::mysqld" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<div><a href="http://mt.endeworks.jp/d-6/2009/10/things-ive-done-while-using-test-mysqld.html">以前ここで書いたTest::mysqldの仕組み</a>、すこーしずつ毎回変えながら使ってる。今は継承はしてないが、まぁやってることはだいたい一緒。</div><div><br /></div><div>で、テーブルのインデックスとか使ってるクエリとかを確認したいなーと思って、slow query logと general log をぼこっと出せるようにした。</div><div><br /></div>
<pre class="code_listing">    if (! $ENV{ TEST_DSN }) {
        my %my_cnf = (
            'skip_networking'     =&gt; '',
        );

        if ( $ENV{SLOW_QUERY_LOG} ) {
            $my_cnf{ slow_query_log } = 1;
            $my_cnf{ slow_query_log_file } = $ENV{SLOW_QUERY_LOG};
            $my_cnf{ long_query_time } = $ENV{SLOW_QUERY_TIME} || 0.1;
        }
        if ( $ENV{GENERAL_QUERY_LOG} ) {
            $my_cnf{ general_log } = 1;
            $my_cnf{ general_log_file } = $ENV{GENERAL_QUERY_LOG};
        }
        my $mysql = Test::mysqld-&gt;new(
            my_cnf =&gt; \%my_cnf,
        );

        if (! $mysql) {
            confess "Could not establish mysqld";
        }

        $ENV{TEST_DSN} = $mysql-&gt;dsn();
        $self-&gt;{_mysql} = $mysql;
    }
</pre>

<div>一回もう少しハードコードに近い形にしてみたんだけど、テストなので環境変数が一番楽だという結論にいたった。使うときはこんな感じ。ログの位置を絶対パスにしないと Test::mysqldが閉じると同時に消されるディレクトリに書き込まれるので要注意。</div><div><br /></div>

<pre class="code_listing">    SLOW_QUERY_LOG=`pwd`/slow_query.log \
    GENERAL_QUERY_LOG=`pwd`/general_query.log \
        make test
</pre>]]>
        
    </content>
</entry>

<entry>
    <title>チキン南蛮は唐揚げにマヨネーズじゃないんだよ。</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/post-159.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2495</id>

    <published>2010-07-06T00:20:37Z</published>
    <updated>2010-07-06T01:14:36Z</updated>

    <summary>新宿の地下にある某パン屋でよく朝食を食べてるのだけど、そこが最近「チキン南蛮パン...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<div>新宿の地下にある某パン屋でよく朝食を食べてるのだけど、そこが最近「チキン南蛮パン」というものを発売した。結果は予想されてたんだけど、それでも一応チャレンジということで今日食してきたのだが・・・うーむ。</div><div><br /></div><div>というわけで宮崎県人でもないが、いわせてくれ。</div><div><br /></div>長いことチキン南蛮って唐揚げにマヨネーズだと思ってました。だって東京でチキン南蛮弁当って銘打ってるものってほとんどそうなんだもの。そしたら相方が「違うよ、それ全然違うよ！」って教えてくれ、その後宮崎の洋食小倉のチキン南蛮を食べる機会もあり、なるほど！と合点がいったのです。<div><br /></div><div>衣は小麦粉＋卵。鶏肉（個人的には鶏胸肉推奨）をそれで揚げたら、あついうちに南蛮タレにつけておく。ちなみに鶏肉は多分大きめのほうがうまいと思うけど、家だと難しいので普通の唐揚げっぽく一口大でよろしいかと。鶏胸肉だとパサつくと言う方は揚げ方がよろしくないのだと思う。鶏胸肉に限らずだけど、揚げ物は余熱で火を通すんですよ！それだけでだいぶジューシーになるはず。</div><div><br /></div><div>南蛮タレは色々あるようだけど、砂糖、お酢、醤油（少量）、みりん、ケチャップあたりをいい感じに混ぜたものが一般的っぽい。タレはかなり甘く、かなり酸っぱい方がそれらしいと思う。</div><div><br /></div><div>で、これが重要なんだけど、タルタルソース。マヨネーズじゃねぇぞ、タルタルソースだ。外食では滑らかなソースが出てくることが多いけど、家で作るなら野菜たっぷりのソースをおすすめする。キュウリやらタマネギやら、そして忘れちゃいけないピクルス。これらを小さく賽の目に切って、マヨネーズで和えるんだよ。この野菜が重要だ。なんせ揚げた鶏肉とマヨネーズだから、ここで野菜をたくさん入れておかないと重くなりすぎる。チキン南蛮はなんといってもこのタルタルソースにどれだけさわやかさを入れられるかがポイントだ。あ、忘れてた。ゆで卵も当然入りますね＞タルタルソース。</div><div><br /><div>キャベツ山盛りの上にチキンをのせて、野菜たっぷりタルタルソースをもっちゃりかけてやれば完成。あーいいねぇ。甘酸っぱくてキュウリがうまくていいねぇ。</div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div>・・・と、ふと今朝食ったパンのせいでかっとなって書いてしまったわけだが。</div><div><br /></div><div>今朝食べたパンは甘酢っぱいタレがついてただけよかったが、タルタルソースとかは当然ないし・・・残念すぎた。というわけで、チキン南蛮と銘打つならちゃんと作ってくれ。じゃなきゃ唐揚げマヨネーズとか甘酢チキン揚げにしろ。</div></div><div><br /></div><div>あー、うまいチキン南蛮食いたい。</div>]]>
        
    </content>
</entry>

<entry>
    <title>How JPA works / What JPA does (in English)</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/07/how-jpa-works-what-jpa-does-in.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2494</id>

    <published>2010-07-02T08:29:46Z</published>
    <updated>2010-07-05T05:52:37Z</updated>

    <summary>This is a meta-entry about the effort th...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="jpa" label="JPA" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[This is a meta-entry about the effort that Gabor Szabo is pushing for right now (<a href="http://news.perlfoundation.org/2010/06/hague-grant-application-perl-e.html">grant request</a>, <a href="http://blogs.perl.org/users/gabor_szabo/2010/07/what-would-you-like-tpf-to-do.html">blog entry</a>). I'm writing on my blog because for the life of me blogs.perl.com doesn't accept my OpenID login, and somehow my MT account there was suspended. WTF.&nbsp;<div><br /></div><div>Anyways.</div><div><br /></div><div>I'm the head director of <a href="http://japan.perlassociation.org">Japan Perl Association</a> (JPA), which is kind of similar to What Gabor is proposing, but not quite. I thought this story on how JPA came to be, things we had to do, and other considerations will shed some new light into the conversation.</div><div><br /></div><div>Without further ado here goes:<br /><div><div><br /></div><div><span style="font-size: 1.2em; font-weight: bold">OOPS, DID I JUST SAY THAT?</span></div><div><br /></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div>JPA originally came about when during a dinner after <a href="http://yapcasia.org/2008/">YAPC::Asia Tokyo 2008</a>, I (Daisuke Maki a.k.a. lestrrat) blurted out "Hosting YAPC without a real organization sucks, let's make one!"</div></div></div></blockquote></blockquote><div><div><div><br /></div><div>Of course, when you speak up, you get to do it. So Emmerson Mills and I started planning and executing the efforts to bring this organization to reality.</div><div><br /></div><div>There was much that the Japanese Perl community could benefit from such and organization, but we had find the right&nbsp;<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: arial, sans-serif; font-size: small; line-height: 20px; "><em style="font-weight: bold; font-style: normal; ">raison d'etre</em></span>, so that we could bring in enough people and organizations to the new entity.</div><div><br /></div><div><span style="font-size: 1.2em; font-weight: bold">MISSION STATEMENT</span></div><div><br /></div><div>Well, actually the mission statement is on JPA site, but that's kind of a general, beautified-for-people-that-only-came-to-glance-at-it type of statement.</div><div><br /></div><div>What this organization really aims for is to create an environment / atmosphere where corporations can hire more Perl engineers (easily). Basically, we want to convey this message:</div><div><br /></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div>&nbsp;"Look (you corporations, employers), Perl is a serious language, and you can get stuff done with it. You also don't have to worry about legacy code, because we will make sure there are more Perl programmers"</div></div></div></blockquote><div><div><div><br /></div><div><br /></div><div>That statement alone would just be some random guy saying that for the heck of it. We were going to either prove that the above was true, or make an effort to make those things happen.</div><div><br /></div><div>So to be more convincing, we narrowed that what would be our goals:</div><div><br /></div><div>(1) We need more exposure about the fact that serious companies uses Perl. A lot of people -- especially those that are learning about Perl -- still think that Perl is a CGI-ish, Web-ish language. Sure sure, we can use it for the Web, but we can also use it for tons of other things. And we need to tell them that there's evidence for it (i.e. that there are companies using it).</div><div><br /></div><div>(2) We need to reach out to the (relatively) non-geeks and newbies. Let's face it: if you're a geek, you don't need our help. You know what's good for you, and you will probably pick up the right tool/language for the job in hand. Instead, we need to reach out for those people who are just learning about, or are just using Perl to get some daily duties done. We need to tell them that some stories are just FUD, or plain outdated. We need to tell them how to be lazy and productive with the language.</div><div><br /></div><div>(3) We need a "local" voice. Just translating news, delivering maybe not all, but at least selected news about the language development and such, so that people who don't actively follow foreign tech news hear about what's going on.</div><div><br /></div><div>(4) ... and finally. We need to have Perl look "official". Official in a sense that it's not just a handful of hackers doing what they want, when they want, how they want. Hey, I know how OSS goes, so I know that part of that statement will always be true, but the important thing here is how the general audience *perceives* Perl is.</div><div><br /></div><div>For somebody with minimal technological background, having an official backer takes away a lot of uncertainty and doubt about our beloved tool.&nbsp;</div><div><br /></div><div>So then we knew who our target audience was: Corporations and non-hackers of Perl (people who just started, people who only use it because it's part of their job, or people who don't currently use Perl).&nbsp;</div><div><br /></div><div>Back in winter of 2008, I don't think I could articulate these messages, but still, I believe the gist of the above goals were there already. So based on that, we started on the next mission: $money</div><div><br /></div><div><br /></div><div><span style="font-size: 1.2em; font-weight: bold">OPERATION IN THE REAL WORLD, AND $MONEY</span></div><div><br /></div><div>After going back and forth between doing an NPO and a real company or some other choice, we decided to form a 社団法人 (probably called an "incorporated association" in English, but I'm not sure). I don't know how that translates in other countries, but it's somewhere between a company-for-profit and an NPO.&nbsp;</div><div><br /></div><div>An NPO in Japan can, but is limited in ways to, make a profit. Also, an NPO is eligible for some tax breaks but in general requires a LOT more paperwork that must be made public. The reasoning for this is that (1) an NPO is something for the general public, so you need to let everybody know what you're doing, and (2) if you get tax breaks, you're using other taxpayer's money, and therefore you need to let everybody know what you're doing (duh). That's a big blocker for us, because we don't have enough man power. More on that later.</div><div><br /></div><div>On the other hand with a company-for-profit you're allowed to do what you want. It's a self-governing entity, so you can make your own decisions, do whatever you want --within the general rules of the law. However, a company-for-profit's entire reason to exist is to grow. After all, we just want a better environment for Perl. We're not trying to rule the world or anything. So this wasn't a great choice either.</div><div><br /></div><div>That lead us to 社団法人. You get to be a self governing entity, you can make a profit, and you don't have to aim to be the next Microsoft or anything.</div><div><br /></div><div>Having made the choice about the structure of the organization, the rest pretty much came as a no brainer.</div><div><br /></div><div>JPA asks companies for some subscription fee to be a member. We calculated that, to keep hosting YAPC::Asia and our organization, we needed somewhere along USD 30K ~ USD 50K per year, so we used that estimate to calculate back how much we ask for companies. We currently have about 20 members. Some members pay more than the other, etc. You do the math.</div><div><br /></div><div>Since our organization isn't a company-for-profit, we don't have the basic stated capital to base our initial activities on. So we decided to create a way to accept funds from our members. If you didn't know, fund in this context is sort of a loan without interest. JPA cannot, unless we somehow royally f*cked it up, keep the money as profit -- we must pay back when we can. So we worked with Mixi (one of the major SNS providers in Japan) to give us a base fund of USD 10K. JPA will not use that money actively, but instead we will keep it as a buffer so that our balance doesn't go negative.</div><div><br /></div><div>That only covers the initial cost. We need to keep this organization running, so we need to have revenue coming in. Unfortunately for the time being we must rely on subscription fee for the bulk of the costs, but we have... yes, YAPC::Asia Tokyo! YAPC used to be a completely non-profit activity, but we're trying to generate somewhere around USD 5K to USD 10K per yea from it. Don't worry, we're not trying to sell you stuff (we learned our lesson form last year ;). We'll just simply cut costs where we can, and make the event a bit more attractive for non-hard-core Perl people, which should translated to more ticket sales. Anyway, that's a different story. Just saying that we do plan to make some money out of YAPC.</div><div><br /></div><div>Also, we teach courses and charge people for it. This particular business hasn't really taken off, but then again we can't really keep it up if we had offers to teach courses every week. We all have day jobs. It would be nice if we can do this maybe once per month in the future -- that would give us room to grow.</div><div><br /></div><div>BTW, when we incorporated JPA in the winter of 2008, I personally put in about USD 10K (of which JPA refunded about USD 5K) for this preparation. This is not to brag about it, but to state the fact that, damn it, you need money to make these sort of things become a reality. Dreams without a financial plan is like a building without a ground to stand on. I hate it, but it's a necessity.</div><div><br /></div><div><span style="font-size: 1.2em; font-weight: bold">THEN THERE WAS JPA</span></div><div><br /></div><div>Anyway, so we planned those things out, I talked to a bunch of Japanese Perl Hackers, got in fights, I talked to more corporations, did a lot of legal munbo-jumbo... and there it was, Dec 26, 2008, JPA was born.</div><div><br /></div><div>We waited until April 2009 (which is when most Japanese companies start their fiscal year) to "officially" announce the creation of JPA. We had a press conference, and made sure at least some people heard of us.&nbsp;I've been to many PM group meetings north and south of Japan, we held conferences, we started some online papers to market Perl, got involved with legal stuff when we needed to... etc.&nbsp;</div><div><br /></div><div>I believe currently we're still in "let our presence be known"-state. So I travel around Japan, telling people that JPA exists, and that Perl dying is a FUD. I believe these efforts are gradually paying off.</div><div><br /></div><div>As for staff, we have 5 directors. Most daily chores are divided up between these directors.&nbsp;We currently don't have any paid staff. Accounting is managed by my real-life partner (I really want to compensate her for her great job, but I sweet talk to her instead of paying her for now).&nbsp;I don't think we can have a paid staff until our yearly revenue reaches somewhere around USD 100K -- but we still have long way to go.</div><div><br /></div><div>We have <a href="http://yapcasia.org/2010/">YAPC::Asia Tokyo 2010</a> coming up this October. Our budget's on track, and we should make a slight profit this year. Oh, last year we had a completely dried out balance and the end of the fiscal year (the funds were safe -- I was really glad we decided to have that fund thing).</div><div><br /></div><div><span style="font-size: 1.2em; font-weight: bold">TODO, AND PLANS</span></div><div><br /></div><div>This blog. I initially started writing about JPA in English to compare with Gabor's ideas, but this turned out to be a massive summary, which I really should write in Japanese as well. Japanese readers, yes it's coming. please hold</div><div><br /></div><div>I personally hate to be the head honcho, as I'd rather be an unknown who do the dirty deeds behind the scenes, but I believe for the past year and half, JPA has been successful so far. There are a lot more things we should do, but just like any other non-$dayjob activity, I believe that doing what you can now, and gradually keep moving forward is the answer for long term success.&nbsp;</div><div><br /></div><div>However, I do believe that an actual fiscal plan, &nbsp;clear targets, goals, and separation of concerns (i.e. we're not doing anything that TPF would do -- we focus on Japanese corporations and engineers) are required to make an organization like this active and successful.</div><div><br /></div><div><br /></div><div>Hope this story wasn't too boring. Happy Marketing Perl!</div></div></div>]]>
        
    </content>
</entry>

<entry>
    <title>goto 北海道</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/06/goto-hokkaido.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2493</id>

    <published>2010-06-16T05:32:36Z</published>
    <updated>2010-06-16T06:17:11Z</updated>

    <summary>株式会社ノア様よりJPAに研修の依頼をいただいたので、先週北海道に行ってきました...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<a href="http://www.noah.jp/">株式会社ノア様</a>より<a href="http://japan.perlassociation.org/">JPA</a>に研修の依頼をいただいたので、先週北海道に行ってきました！<div><br /></div><div>何を隠そう、初北海道。日本住まいもやっと6年目の僕にとって北海道のイメージはじゃがいも、とうもろこし、鮭にミルクくらいで、もうあとは北海道はでっかいどうくらいしかでてきません。そんな状況の中、色々と公私にわたって忙しかったのも相まってスライド類を用意した以外はなんの下調べもせずに北海道は札幌に行ったわけです。</div><div><br /></div><div>とりあえず前の晩に現地に着き、チェックインして飯を食いがてら街へ繰り出すと、場所がすすきのだからでしょうね、もうホストとホステスばかり。別にあなたたちの職業に関しては文句は言わないからせめて道を占拠しないでくれないか。ともあれ、適当に入った回転寿司ははずれ。このあたりからもう少し下調べをしておけばよかったと大分後悔。</div><div><br /></div><div>二日目は研修。札幌は碁盤の目で、住所も「南２西２」とかわかりやすいので自分みたいな初めての人には大変嬉しい。というわけで時間に若干余裕を持って歩いていった。研修はCatalystに関して。Catalystに限らずWAFとかを教える時に思うのはフレームワークの使い方だけわかってても効率的な開発や問題を解くことに繋がらないからどうしても話題が広がってしまう。本当はもう少しピンポイントでやったほうが教えるほうも教えられるほうも良いかな、とは思う。まぁ時間がない中ではあまり選択肢はないんだけどね。</div><div><br /></div><div>ともあれ、研修自体は朝からみっちり。また機会があったら是非続きをしたいですね。</div><div><br /></div><div>夜は<a href="http://www.local.or.jp/">LOCAL</a>の澤田さん達とお食事。初対面の方達ばかりで正直向こうもどう接したらいいのかとまどったとは思うけどｗ、いいお話ができたのでよかったです。北海道はある意味関東よりもオープンソースのコミュニティが良い感じで活動できてるんじゃないか・・・？とうっすら思ってしまったくらい良いお話が聞けました。今度活動開始する<a href="http://perl-hokkaido.org">Hokkaido.pm</a>の事も皆様で見守ってあげてください！</div><div><br /></div><div>ちなみに連れて行ってもらったお店で予約をすると必ず人数分山盛りの刺身盛り合わせが出てくるらしいのだが、それを今まで食べきって他の料理を注文したことがないとのこと。ところがこの日は4人で予約して後から1人増えたのでみんなが「他のものが注文できるぞ！」と沸き立ち、餃子を注文。大変貴重な瞬間に立ち会えた。</div><div><br /></div><div>その後お腹いっぱいだったのもあったけど、もうワールドカップが始まるのでホテルに帰る。帰り道は大学生くらいの集団があちこちかけずり回ってた。<a href="http://www.yosakoi-soran.jp/">YOSAKOIソーラン祭り</a>ってやつだったらしい。街中すごいことになってた。自分は帰ってずっとサッカー観戦。この晩寝たのは午前4時くらい。</div><div><br /></div><div>そして最終日はなぜか朝6時くらいに起きてしまった。どういうことだ。ともあれ、11時半の飛行機に乗るのに、空いてる時間が微妙。ちょっとぐぐってみたらこの時間にやってそうな施設は札幌中央市場くらいしかなさそうだったのでホテルをチェックアウトしてタクシーで一路市場へ。</div><div><br /></div><div>タクシーの運転手さんが待っててくれるっていうので貴重品だけもって外部市場をふらふら。適当な店で海鮮丼食ったら2800円。どんなのかと思って期待してたら結構ふつー。うーむ、うまいが・・・2000円くらいにしてくれ・・・。相方にスルメのお土産を買って、一路札幌駅へ。</div><div><br /></div><div>札幌駅ではトイレに入ったらトイレットペーパーがなくて右往左往したりとかそれなりに色々あったのだが、まぁとりあえず普通に飛行機に乗って帰京。</div><div><br /></div><div>なお次回8月にまた北海道に行く予定なのだが、気をつけようと思ったこと：</div><div><br /></div><div><ul><li>ズボンを下げる前にトイレットペーパー（っていうかホルダーさえなかったのだが）の有無を確かめること</li><li>新千歳空港から札幌まで意外と電車賃がかかるので現金をちゃんと持ってること。</li><li>YOSAKOIソーラン祭りの時にはすすきのに近寄らない</li></ul><div><br /></div></div><div><br /></div><div>写真も結構とったんだけど、またあとで載せる。</div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>自分の最近のCatalystのモデル部分の書き方</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/06/catalyst-2.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2492</id>

    <published>2010-06-14T01:56:23Z</published>
    <updated>2010-06-14T02:12:08Z</updated>

    <summary>こちらのブログでなんか呼ばれた気がしたのでとりあえず書いてみた。あくまで自分はど...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="開発" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="catalyst" label="catalyst" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<div><a href="http://blog.riywo.com/2010/06/14/011506">こちらのブログでなんか呼ばれた気がしたので</a>とりあえず書いてみた。</div><div><br /></div>あくまで自分はどうしてるか、って話ですが、最近はCatalystでなんか書くときはこんな感じで使ってます。<div><br /></div><div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="my_catalyst_model_setup.png" src="http://mt.endeworks.jp/d-6/my_catalyst_model_setup.png" width="400" height="228" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></span></div><div>色んな事がこの図に詰まっているので、箇条書きしてみる：</div><div><br /></div><div><ul><li>Model::APIがAPIオブジェクトを作成して、使用時にはModel::APIに対して`find()`というメソッドを使って実際のAPIオブジェクトを持ってくる</li><li>Schema等はMyApp::Schemaに定義し、Model::APIのアトリビュートとして持っている。cacheも同等。これらの初期化引数は設定ファイルのModel::APIから取れるようにしておく</li><li>Catalyst::Model::DBIC::Schemaは＊使ってない＊</li><li>Model::APIではACCEPT_CONTEXTが呼ばれた時点で、もしまだ初期化が行われていなければ、SchemaやAPIの初期化を行っている。Catalyst::Model::Adaptorは＊使ってない＊</li></ul><div>蛇足だけど、Catalyst::Plugin::AuthenticationでStore::DBIx::Classを使うときはどうしてもDBIC::Schema的な形で認証データが入っているモデルを要求されるので、DBIC::Schemaを使いたくなってしまう・・・が、実は単純にその認証データが入っているresultsetが欲しいだけなので、こんな感じの小さいモデルを一個作ってやりすごしている：</div>
<pre class="code_listing">    package MyApp::Web::Model::DBIC::Member;
    use Moose;
    use namespace::autoclean;
    BEGIN { extends "Catalyst::Model" }

    has schema =&gt; (is =&gt; 'rw');

    sub ACCEPT_CONTEXT {
          my ($self, $c) = @_;
          if (! $self-&gt;schema) {
              $self-&gt;schema( $c-&gt;model('API')-&gt;schema ); # Model::APIからschemaを盗んでくる
          }
          return $self-&gt;schema-&gt;resultset('Member');
    }
    __PACKAGE__-&gt;meta-&gt;make_immutable();
    1;
</pre>
<div><br /></div><div>ちなみに MyApp::CLI::Hogeとかを書くときには、以下のような感じのでやっている：</div><div><br /></div><div><ul><li>全部のAPIが必要じゃないことのほうが多いので適時スクリプトの中身によって必要なSchemaやらAPIやらを作成している。(Model::APIに相当するものはない）</li><li>WithDBICっていうRoleを作って、DBスキーマが必要な場合のSchema生成等のコードを一元化している</li><li>引数等はCatalystの設定ファイルを流用するようなことは＊してない＊。MooseX::Getopt（もしくはMooseX::SimpleConfig）を使ってコマンドラインで --connect_info=dbi:mysql:dbname=hoge と指定できるようにしている</li></ul></div></div><div>Orochiとか使えたほうがもっと楽な気はするんだけど、とりあえず依存関係を増やすのもあれなのでこんな感じでやっております。</div>]]>
        
    </content>
</entry>

<entry>
    <title>Perl Trademark in Japan</title>
    <link rel="alternate" type="text/html" href="http://mt.endeworks.jp/d-6/2010/06/perl-trademark-in-japan.html" />
    <id>tag:mt.endeworks.jp,2010:/d-6//3.2491</id>

    <published>2010-06-14T01:04:45Z</published>
    <updated>2010-06-14T05:00:08Z</updated>

    <summary>(This post is posted on my personal blog...</summary>
    <author>
        <name>D</name>
        
    </author>
    
        <category term="日常" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="wtf" label="WTF" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://mt.endeworks.jp/d-6/">
        <![CDATA[<div>(This post is posted on my personal blog, since it contains personal rants and what not -- JPA will probably issue some statements after we've talked to the specialists handling these cases)</div><div><br /></div>So since it's probably of general interest, I'm here to let you know that Testuya Kitahara of <a href="http://www.apache.org/foundation/records/minutes/2009/board_minutes_2009_11_18.txt">the Apache Foundation fiasco fame</a> has filed (and has been accepted!!!!) for the trademark of "Perl" in Japan. WTF? Although it's in Japanese, a more detailed history of events can be found <a href="http://neta.ywcafe.net/001096.html">around</a> <a href="http://neta.ywcafe.net/001099.html">here</a>.<div><br /></div><div>Weee. So some dude is trying to claim that the name "Perl", a language that has been around, used and abused for the past 20+ years, is his to claim.&nbsp;</div><div><br /></div><div>(.oO Just to give you some context, this same person is claimed to have been involved with pyramid sales scheme, has attempted to squat on and sell the domain twitter.co.jp to twitter, and is also currently applying to register the words "Ruby" and "Opensource" as his trademark as well )</div><div><br /></div><div>As the head director of <a href="http://japan.perlassociation.org">Japan Perl Association (JPA)</a>, I'm having to deal with this crud. Sigh. I really don't understand the mind twisting that these kind of people go through to persuade themselves that this is a Good Idea -- and I really hate the fact that both JPA and myself have to spend a significant amount of time and resource on this silly issue.</div><div><br /></div><div><br /></div><div>Anyways, unfortunately the trademark is already accepted. We now have to formally work on repealing it or at least make sure that it does not make working with Perl problematic going forward. So we're going work with specialists, and do the legal dance :/</div><div><br /></div><div><br /></div><div><br /></div><div>BTW&nbsp;I've already sent emails to <a href="http://www.perlfoundation.org">The Perl Foundation</a>'s trademark mailing list as well as to friends who I know involved in TPF, but currently no official response has been heard.&nbsp;I wonder what The Perl Foundation is willing to do with all of this.&nbsp;</div><div><br /></div><div>I'm not trying to blame TPF or anybody here, but a guidance as to what they want to do with this situation would be most welcome, so here's my public plea :)</div><div><br /></div><div>Also, this is probably going to cost some amount of money -- probably in the thousands of dollars range. We may have to ask for assistance then. oh well.</div><div><br /></div><div><br /></div><div><br /></div><div>Anyway, just a heads up for Perl mongers all over the world, so you know the current situation. Stay tuned.</div><div><br /></div>]]>
        
    </content>
</entry>

</feed>
