日常の最近のブログ記事
YAPCスピーカー絶賛募集中です!
今まで参加されてこなかった方達、是非応募してみてください。最先端技術に関して喋る必要はありません。
最先端技術等は比較的「○○の紹介」という感じのトークになることが多いですが、それ以外のトークを発表する際に大事なのはあるテーマを「どうやって」成し遂げたのかを発表する事です。「ほら、みてかっこいいでしょう」ではなく「こういう仕様要求があって、これを達成するための問題はこれで、こうやって解決した」というような内容であれば必ず誰かのためになります。そしてそのテーマは特に難しいものである必要はないのです。「ログ解析」のようにありふれているものでも「ファイルの整理の仕方」とか一件技術っぽくないものでも、知らない人から見たら有用なものって必ずあるはずです。
気張る必要はありません。トーク内容にアドバイスが必要でしたら運営側にもご相談ください。一人でも多く、今までYAPCで登壇されたことの内方に発表していただければと思います。
もちろん、今まで参加してきた方も是非どうぞ!今年はベストスピーカーになるとちょっとした商品がもらえるそうですよ!
皆様の参加をお待ちしております。
すっぽん料理怖い。
というわけですっぽん料理食ってきた。場所は住宅街と慶應くらいしかない日吉の、しかもメインの通りとかじゃなくて中原街道から蟹ヶ谷とかのほうに向かうほっそい道の途中にある「鳥八」。実はここは良く通ってて「怪しい店だなぁ」と常々思っていたのだが、ある年テレビでこの店が紹介されてて「あ、あの店本当にやってるんだ!」とわかった次第。
基本的にはすっぽん鍋を食べたんだけど、味は激ウマ。鍋は本当にうまい。三つ葉とかニラとかとスッポン肉の入った鍋で、これは出汁が本当に濃くてうまかった。みんなでむさぼりくった。食べ終わったらそこにご飯と卵が入ってスッポン雑炊。うめー!隠し味の酢橘がすげーうめぇぜッ!

というわけで鍋はすごいうまかったのだが、しかし飲み物類物がなんというか、怪しいとしか言いようがない。スッポンの生き血、胆汁。「マル秘」という名前のお酒(マムシとスッポンの卵と入ってるらしい)。写真は生き血。見て分かるとおりすごい色。もうこれが中世ヨーロッパだったら絶対に魔女狩りに合ってそうな勢い。ひー。
生き血にしろ胆汁にしろ、焼酎で割ってあるので全然飲み口は悪くない。ただ、あとで妙な感じw マル秘のほうは後味になにか動物的な香りがして俺はちょっと駄目だった。半分くらい連れて行ってくれたOさんにお願いしてしまった。
というわけで、うまいんだけどこれってやっぱり現代人が食っても栄養摂取過剰じゃないの?って感じ。値段は安いし、味はうまい。おいしい雑炊は是非!興味ある人は予約して是非ゴー!
おまけ:店のにゃんこちゃんが超かわいかった

本日はラム肉を食べよう!ということで「サフォーク 大地」を二人で予約して午後7時スタート。
まずこれだけ言っておきます。
「ロース肉の鍋」の肉の質は大変よかったです。
しかし結果的にはCPが見合わないというか、気分が悪いという状態でまだ空腹のまま帰りました。
というわけでいきさつ:
まず7時に入店して、ちょっと迷ってからモモの刺身、サラダとウーロン茶、生ビールを注文。生ビールはすぐ来たものの、ウーロン茶は「すぐお持ちしますので」と言ってずっと来ない。結局サラダとウーロン茶は20分後、こちらがリマインドしたらようやく登場。もうこの時点でちょっとおかしい。
モモの刺身。これが写真ではおいしそうな大ぶりのラム肉が載ってるんだけど、
我々の前に出てきたのは直径3cmくらいのもも肉の薄っぺらいロースト。
写真のあれはどーした!
その肉は中心は生だけど、大分冷たいので(冷蔵庫に入れたものをすぐ出した感じ?)硬いし、舌の上ではとろけるとかは全然ない。つーか、値段と釣り合わないだろ・・・
これではいかん、ちゃんとメインに張っているメニューを食べようと思って
高い方(2980円)の「ロース肉の鍋」を注文。
その間にモモ肉を食べ終わりましたが、前述の通りウーロン茶も出なければサラダも来ませんでした。後ろの団体客はどんどん注文が通るけど、こっちはなんの確認もナシ。しびれをきらして注意したらすぐでてきた。
ど う い う こ と だ。
その後ロース肉が出てきて、男性の眼鏡を掛けた店員が応対。説明がしどろもどろ。
まずガーリック醤油的なものが出されて、「ガーリック醤油です」とだけ宣言される。
で、次にポン酢が出てくる「お野菜はこちらでお食べください」「お肉はそちらの
お塩で(ちなみに塩は10種類くらいテーブルの上にあるんだけど、なんの説明もなし)」
え?じゃあさっきのガーリック醤油は?でも説明しないでどっか言っちゃった。
えー。
そして肉好きで、ラム肉も特に大好きな自分が許せなかったのがこの点:
この店は店員がその肉と野菜を調理することになっているのに、この店員の調理が
少なくとも自分の考える肉のおいしい焼き方からするとちょっとひどい事してた。
例えば熱くなった鍋が諸々(野菜を入れたのとコンロの火を弱めたのと)の理由で
熱が下がったところにおもむろに肉を投下してる。
その後肉を裏返しまくる。これでは弱火で両面をジクジク温めているだけで、
メニューに書いてある「レアで食べると一番おいしいです!」に明らかに反してるのでは・・・? 折角うまい肉なのに・・・
できあがった肉自体は大変おいしかったですが、正直もっともっとうまくできたのでは・・・
というわけでもうすでにその時点で大分印象が悪かったのと、少なくとも
自分の好みにはあわないと判断し追加注文を諦めて、お腹が減っている状態で入店1時間もせずに退店を決意。
ちなみにお会計も頼んでから来るのに10分ほどかかって、これでもう俺の堪忍袋は限界。
もう一回言うけど肉はおいしかった。
一番印象悪いのは男性の眼鏡の店員。
最後に静かに「あれはないだろ」って文句を言いに行ったんだけど、対応してくれた店長らしきおばちゃんはいい人そうでした。
正直な感想:「金返せ」
まぁあの店員だけだったのかもだけど、すこぶる印象が悪い。多分今後機会があっても5年くらいは再訪しない。
Perl 5.6 とか Perl 5.8を今だに使ってるあなた!そうです、これを読んでるそこのあなたです。Perl5の開発チームは後方互換に関しては大変神経をつかっていますので、 Perl 5.6とかで動いてたコードをいきなり 5.12で走らせても基本的には動くはずです(多分警告とかは一杯でるだろうけど)。でもだからといって新しいバージョンで施されている様々な最適化や新しい機能を使えないのはちょっと悲しくないですか?
ということで新しい Perlを使いましょう!最新安定版は5.12.1ですよ!ちなみにどのバージョンを2010年8月時点で使うべきか、はこちらのエントリを参照してください。
え?アップグレードできない?システム管理者が許してくれない?前入れてたアプリが壊れる?いやいやいや、全然いけますって。自分用のPerlをインストールすればいいんですよ!
ここではそれを簡単に解説しましょう。
まず短い説明は 「perlbrewを使え」です。以上です。
でもそれだけじゃわかんねーよ!って方は以下をご覧下さい。
まず perlbrewをインストールします。こんな感じでスクリプトを一個ダウンロードするだけです:
> curl -L http://xrl.us/perlbrew > perlbrew
curlってなってるところはwgetでもlwp-downloadでも、なんでも好きなツールを使って下さいね。
そしたらこのツールを「インストール」します。/usr/localとかじゃなくて自分のホームディレクトリに入れてくれますのでご安心を。
> perl perlbrew install
一瞬で終わるので、今落としてきたファイルを消しておきます。もう使わないし。
> rm perlbrew
で、まずperlbrewを認識できるようにちょっと調整をします:
# パスやシェルの種類は適時自分のものに変えて下さい
> echo 'source /home/daisuke/perl5/perlbrew/etc/bashrc' >> ~/.bashrc
> source ~/.bashrc
> perlbrew init
これで環境設定はOK。でもこのままではなんにもできないので、ここで使いたいperlのバージョンを指定してperlbrewにインストールさせます。こんな感じでやるだけで5.12.1をダウンロードし、コンパイルをしてくれます
> perlbrew install perl-5.12.1
コンパイルが失敗した場合はインストールログを見るといいでしょう。多分落ちてるとしてもどっかテストが一個こけてるとかだけだと思うので「まぁいいや」と思えるなら(コンパイルはやりなおしになってしまいますが)、-fをつけてもう一回インストールすると無理やりインストールしてくれます
> perlbrew install -f perl-5.12.1
できたらこんな感じでスイッチ!次から"perl"って打つとperl 5.12.1を使えてます!
> perlbrew switch perl-5.12.1
> perl -v
This is perl 5, version 12, subversion 1 (v5.12.1) built for darwin-2level
この後、違うバージョンのperlを入れたければ同じようにインストールしてからswitchすればおk!
> perlbrew install perl-5.13.3
> perlbrew switch perl-5.13.3 # 開発版!
普段作業するときにはperl hoge.plとやれば良きにはからってもらえます。
スクリプトのshebangに書く場合は「どれでもいいからperlbrewの指定するperlを使ってくれよ!」という時と「確実にこのバージョンのperlを使ってくれ!」という場合がありますが、前者の場合はenvでこんな感じにすればいいですし、
#/usr/bin/env perl
後者の場合は絶対パスを指定すればおkです。
#!/home/username/perl5/perlbrew/perls/perl-5.12.1/bin/perl
パワーユーザー的にはこの仕組みの良い点はコンパイルオプションが違う、同一バージョンのPerlを混在させる、とかもできるところですね。例えばスレッド込みでコンパイルされたPerlを扱いたいなら以下のように-D(コンパイル時に渡すフラグ)を渡してやって、インストール時の名前を変えてやればOK!
> perlbrew install perl-5.12.1 -as perl-5.12.1-threaded -D=useithreads
> perlbrew switch perl-5.12.1-threaded
お気軽ユーザーにとっては、perl本体とモジュール群がそれぞれ別のディレクトリで管理されるので最後に「もういらね」状態になったらそのperlをrm -rfすれば全部一緒に消えてくれ、あんまり後で問題になる事がないってもグッド。やー、楽ちん!
さあ、これで新しいPerlをインストールできないから使えないとか言ってられませんよ!是非新しいPerlを使ってみてください。
7/31に久しぶりに岡山に行ってOkayama.pmに参加してきました!
途中から僕の独壇場になってしまったっぽいですが、大丈夫だったかなぁ。
やはり東京のような都市との情報の格差があるんだなぁ、というのが正直な感想。XslateやCatalystの情報は結構あるはずだ、と思っていてもやはりそれの方向に興味を向けてくれる方法がないとなかなか広まらないんでしょうね。
今はtwitterやらなにやらあるから、うまく活用して情報を拾ってくるといいと思います! twitterで #perlをつけて発言するとか、 IRCで#perl-casualとかに参加するといいですね :)
ちなみに資料は来週アップ予定です。
geohash値を計算するためのモジュール、Geo::HashってのがすでにCPANにあるんだけれども、それのXS版Geo::Hash::XSを作ってアップしておきました。実は特に使うアテもないんだけど、目の前で開発が進んでたロケタッチでいざ使おうと思った時にあったらいいかなぁ、と思って現実逃避のために作りました。
もしご意見等ございましたらお気軽にどうぞ。
えー、とうとう33歳になってしまいまして。
で思い返すに最近・・・そうですなぁ、ここ2年くらいですかね。なんだか急速に体の衰えを感じているのです。特に飯。どうもね満腹中枢と理性と内蔵の処理能力がいまいちシンクロしてないのです。
例えばお昼に出るじゃないですか。気分的にはお腹も減っていてそれこそ近所のもうやんカレーとか食べられるんじゃないかという感じなんですが、最近それをやってしまうともう後で膨満感で仕事にならない。他の店でも例えば昔はぺろりといけていた大盛り注文も最近は後で来るので食べられない。その食べてる瞬間はいける、と思うし実際完食まではできるんだけど、後でくるんだよなぁ・・・
まぁそんなわけでさすがに僕も馬鹿じゃないのでだんだんその事が分かってきて昼飯は今までと比べると軽めにしてみてうどんとか食べたりしてるわけですが、それでもやっぱり「あ、この店大盛りがあるんだ・・・」とか見てると腹のほうは「いけるいける、おまえ食えるぞ!」って言ってくるんですな。そこは理性でなんとか抑えるんだけど、なんか一抹の残念感というかなんというか・・・そういうものをもって店を出たりするわけです。で、歩いているとだんだんこなれてきて「あ、やっぱり大盛りにしなくてよかった」とかなるんで、まぁ最終的にはいいんですが。
とまぁこんな感じで、理性では「おれはもう大食いはできない」と分かっていても今までの癖で「まだ食える」と感じてしまうというちぐはぐな状態なわけです。
これからはなるたけ若人連中に食わせてそれを見て喜ぶ人になろうかと思います。
去年相方に連れられて初めてPUFFYのライブに行きました。で、今年もなんかいつのまにやらどこからかチケットを手に入れてきたらしく、この間三軒茶屋の昭和女子大学人見記念講堂でのライブにも行ってきました。
あいにくの雨の中、満席状態。デビュー14周年とか言ってたけど、好きな人も多いんですなぁ。
正直自分はそんなにファンでもないので大盛り上がりはしないんだけど、でも一つだけ言いたかったのは、自分みたいに「え、PUFFYってなんちゃってアイドルくずれポップでしょ?」とか思ってると意外とライブではびっくりさせられるということ。
PUFFY達のトークとかもまったりしてていいんだけど、バックバンドがまぁなんというか、こういう言い方は失礼かもしれないけど「ちゃんとしたロックバンド」なんだよね。骨太ロックが聴けます。おかげでそんなにPUFFYファンじゃない自分も大変楽しかったです。あ、ちなみに別にPUFFY嫌いとかでもないんで。要はフツーの観客です。
ところでやっぱり「大人の席」が欲しいです。1人3万円くらい、4人席で10万円くらいでボックス席になってて、ビールの一杯も着く感じの席。遠くていいので、落ち着いてライブを見られる場所。そんなのがメタリカライブとかであったら絶対いく!
新宿の地下にある某パン屋でよく朝食を食べてるのだけど、そこが最近「チキン南蛮パン」というものを発売した。結果は予想されてたんだけど、それでも一応チャレンジということで今日食してきたのだが・・・うーむ。
というわけで宮崎県人でもないが、いわせてくれ。
衣は小麦粉+卵。鶏肉(個人的には鶏胸肉推奨)をそれで揚げたら、あついうちに南蛮タレにつけておく。ちなみに鶏肉は多分大きめのほうがうまいと思うけど、家だと難しいので普通の唐揚げっぽく一口大でよろしいかと。鶏胸肉だとパサつくと言う方は揚げ方がよろしくないのだと思う。鶏胸肉に限らずだけど、揚げ物は余熱で火を通すんですよ!それだけでだいぶジューシーになるはず。
南蛮タレは色々あるようだけど、砂糖、お酢、醤油(少量)、みりん、ケチャップあたりをいい感じに混ぜたものが一般的っぽい。タレはかなり甘く、かなり酸っぱい方がそれらしいと思う。
で、これが重要なんだけど、タルタルソース。マヨネーズじゃねぇぞ、タルタルソースだ。外食では滑らかなソースが出てくることが多いけど、家で作るなら野菜たっぷりのソースをおすすめする。キュウリやらタマネギやら、そして忘れちゃいけないピクルス。これらを小さく賽の目に切って、マヨネーズで和えるんだよ。この野菜が重要だ。なんせ揚げた鶏肉とマヨネーズだから、ここで野菜をたくさん入れておかないと重くなりすぎる。チキン南蛮はなんといってもこのタルタルソースにどれだけさわやかさを入れられるかがポイントだ。あ、忘れてた。ゆで卵も当然入りますね>タルタルソース。
キャベツ山盛りの上にチキンをのせて、野菜たっぷりタルタルソースをもっちゃりかけてやれば完成。あーいいねぇ。甘酸っぱくてキュウリがうまくていいねぇ。
・・・と、ふと今朝食ったパンのせいでかっとなって書いてしまったわけだが。
今朝食べたパンは甘酢っぱいタレがついてただけよかったが、タルタルソースとかは当然ないし・・・残念すぎた。というわけで、チキン南蛮と銘打つならちゃんと作ってくれ。じゃなきゃ唐揚げマヨネーズとか甘酢チキン揚げにしろ。
あー、うまいチキン南蛮食いたい。
This is a meta-entry about the effort that Gabor Szabo is pushing for right now (grant request, blog entry). 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.
Anyways.
I'm the head director of Japan Perl Association (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.
Without further ado here goes:
OOPS, DID I JUST SAY THAT?
JPA originally came about when during a dinner after YAPC::Asia Tokyo 2008, I (Daisuke Maki a.k.a. lestrrat) blurted out "Hosting YAPC without a real organization sucks, let's make one!"
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.
There was much that the Japanese Perl community could benefit from such and organization, but we had find the right raison d'etre, so that we could bring in enough people and organizations to the new entity.
MISSION STATEMENT
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.
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:
"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"
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.
So to be more convincing, we narrowed that what would be our goals:
(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).
(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.
(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.
(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.
For somebody with minimal technological background, having an official backer takes away a lot of uncertainty and doubt about our beloved tool.
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).
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
OPERATION IN THE REAL WORLD, AND $MONEY
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.
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.
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.
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.
Having made the choice about the structure of the organization, the rest pretty much came as a no brainer.
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.
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.
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.
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.
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.
THEN THERE WAS JPA
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.
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. 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.
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.
As for staff, we have 5 directors. Most daily chores are divided up between these directors. 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). 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.
We have YAPC::Asia Tokyo 2010 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).
TODO, AND PLANS
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
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.
However, I do believe that an actual fiscal plan, 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.
Hope this story wasn't too boring. Happy Marketing Perl!

