<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>IwazerReport</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/" />
    <link rel="self" type="application/atom+xml" href="http://www.iwazer.com/~iwazawa/diary/atom.xml" />
    <id>tag:www.iwazer.com,2011-05-31:/~iwazawa/diary//1</id>
    <updated>2012-01-16T07:40:33Z</updated>
    <subtitle>Steve Jobs, 1955 - 2011

プログラミング、書籍紹介、音楽、Webに関するあれこれなどを中心に書いています。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 5.04</generator>

<entry>
    <title>Guard::CoffeeScriptですべてコンパイルし直す</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2012/01/guardcoffeescript.html" />
    <id>tag:www.iwazer.com,2012:/~iwazawa/diary//1.7314</id>

    <published>2012-01-16T07:21:46Z</published>
    <updated>2012-01-16T07:40:33Z</updated>

    <summary>他のことを調べていて、&quot;Guard::CoffeeScriptですべてコンパイル...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Ruby" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Tools" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="guard" label="guard" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tips" label="tips" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tools" label="tools" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>他のことを調べていて、"<a href="http://higelog.brassworks.jp/?p=1652">Guard::CoffeeScriptですべてコンパイルし直す - ひげろぐ</a>"を知ったのですが、全てをコンパイルし直すなら、guardが起動しているコンソールにリターンを打ち込むだけです。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ guard
Guard uses Growl to send notifications.
Guard is now watching at '/tmp/sample'
（←ココでリターンキーを打った）
Compile coffee/app.coffee, coffee/sample1.coffee, coffee/sample2.coffee
Successfully generated Resources/app.js, Resources/sample1.js, Resources/sample2.js
</code></pre>

<p>その他、幾つか使えるコマンドがあり、<a href="https://github.com/guard/guard">https://github.com/guard/guard</a> のInteractionsの項に説明があります。</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Last.fm 50000曲超え</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2012/01/lastfm-50000.html" />
    <id>tag:www.iwazer.com,2012:/~iwazawa/diary//1.7296</id>

    <published>2012-01-02T06:13:25Z</published>
    <updated>2012-01-02T07:39:32Z</updated>

    <summary>Last.fmを2006/7/28から使ってるのですが、先ほど聴いた曲の総数が5...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Music♪" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="lanking" label="lanking" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="lastfm" label="Last.fm" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="music" label="music" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="stats" label="stats" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="summary" label="summary" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p><a href="http://www.lastfm.jp/user/iwazer">Last.fm</a>を2006/7/28から使ってるのですが、先ほど聴いた曲の総数が5万曲を超えました！</p>

<p><img alt="screenshot-20120102152421.png" src="http://www.iwazer.com/~iwazawa/diary/2012/01/02/screenshot-20120102152421.png" width="621" height="651" class="mt-image-none" style="" /></p>

<p>あと15曲というところで、もうすぐだと気付き、iTunes DJのソースを大好きな曲ばかりのPlaylistに変更して5万曲超えを確認！ヽ(´ー｀)ノ</p>

<p>50000曲目はOriginal Loveの「月の裏で会いましょう」になりました。</p>

<p>全てを対象とした再生回数の傾向はMegadeth/Iron Maiden/Steely Danがダントツで変わってないのですが、ここ12ヶ月のランキングを出してみると</p>

<pre style="color:#222; background-color:#ddd;padding:10px;font-family : monospace !important;">
Original Love     367
Bill Evans        366
aiko              293
Megadeth          289
Iron Maiden       259
Pat Metheny Group 179
Steely Dan        161
Hibria            153
In Flames         130
Herbie Hancock    114
</pre>

<p>と、Jazzがまた増えてきてるのだなと気づきます。あと、今年はOriginal Loveとaikoをたくさん聴いたんだなとか。</p>

<p>Original Love、こんなに聴いたかなぁ。意外です。</p>

<p>Bill Evansは確かによく聴いた感じがします。Bill Evansでなんでもという指定で聴くことが多い。</p>

<p>Hibriaはライブに行ったので、その直前に新譜を聴き込んだからだな。</p>

<p>In Flamesも意外と聴いてるんだなという印象。他にももっと聴いてるのがありそうな気がするけどデータは嘘つかない（笑）</p>

<p><br />
曲毎も見てみよう。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;font-family : monospace !important;">
Original Love - 月の裏で会いましょう 22
Original Love - スキャンダル         21
Original Love - ヴィーナス           20
Original Love - フレンズ             20
Pat Metheny Group - Third Wind       16
Original Love - 接吻 Kiss            16
Iron Maiden - The Evil That Men Do   14
Original Love - 時差を駆ける想い     14
Original Love - 夢を見る人           14
Original Love - 砂の花               13
Original Love - いつか見上げた空に   13
</pre>

<p>あらら、見事にOriginal Loveばかりだなｗ<br />
感触では、これほどOriginal Loveを多く聴いた気はしないので他のアーティストに比べて特定の曲を聴いてる事が多そうだということがわかります。</p>

<p>「月の裏で会いましょう」は奇しくも5万曲目をゲットして「スキャンダル」との同率首位から抜けてる私のカラオケ定番曲（笑）</p>

<p>この中ではPat Metheny Groupの「Third Wind」がめちゃめちゃ好きな曲かな。</p>

<p><br />
この集計結果、個人的にはなかなか面白いので、年末にやるまとめに今年から追加しようかな〜<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>2011年に読んだ本ベスト5</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/12/20115.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7293</id>

    <published>2011-12-31T13:12:37Z</published>
    <updated>2011-12-31T13:42:24Z</updated>

    <summary>恒例の、今年読んだベスト５を選びます。 今読ミから今年、ぼくが読んだ本を評価が高...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Book" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Diary" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="2011" label="2011" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="book" label="book" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="diary" label="diary" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>恒例の、今年読んだベスト５を選びます。</p>

<p>今読ミから<a href="http://imayomi.jp/archives/iwazer/2011?order=evaluation_desc">今年、ぼくが読んだ本を評価が高い順に並べ替えたリストはコレ</a>です。</p>

<p><br />
<script type="text/javascript" src="http://imayomi.jp/ext/book/452"></script><!-- 中原の虹 -->蒼穹の昴シリーズとしての評価とします。<br />
今年はこの本のイメージが最も強いです。<br />
全巻を通じて、全く飽きることなく読み進めることが出来ました。<br />
全く興味のなかった清後期に興味が出た。<br />
人名に中国語っぽくよみがなが振ってあって、読んでいくとその語感に慣れるのも気持よかったです。ユアン・シィカイとかとか。</p>

<p><br />
残りは評価９が10冊（-ω-）相変わらず評価が甘いなぁ...。<br />
今の記憶で選んでいきます。</p>

<p><br />
<script type="text/javascript" src="http://imayomi.jp/ext/book/6238"></script><!-- プログラマーのジレンマ 夢と現実の狭間 -->ソフトウェア開発の難しさを改めて思い知らされる内容。関わる人にはぜひ読んで欲しい。<br />
私が思うにチャンドラープロジェクトの一番の問題点は作るべきものが具体的に決まってない事に尽きるなと思う。しかしあの規模の開発体制を５年も個人で持たせるのはすごい。普通なら１年で潰れて消え、それが素晴らしいものであれば他の人によってやり方を変えて戻ってくるかしたはずだ。５年持たせてしまったケイパーの力が逆にプロジェクトにマイナスに作用したような気もする。<br />
名言の宝庫だった。</p>

<p><br />
<script type="text/javascript" src="http://imayomi.jp/ext/book/26948"></script><!-- 復活の日 -->小松左京氏が亡くなったと聞いてなぜか慌てて読み始めてしまった。<br />
私の生まれる４年前発表のSF。細かな科学的な整合性がどうなのか詳しくは分からないけど、非常にリアリティがあって怖い。愚かさから３ヶ月かけてじわじわ滅んでいく人類。そして終盤、南極に生き残ったごく一部もまさかの破局が訪れるも、結末にはかすかな救いと希望。映画も観てみようかな。</p>

<p><br />
<script type="text/javascript" src="http://imayomi.jp/ext/book/8367"></script><!-- 陽気なギャングの日常と襲撃 -->くそ、やっぱり面白れ〜。ずっと話し続けられる才、スリの才、嘘を見抜く才、時間を感じる才をもつ４人組銀行強盗による話の続編。独特な言い回しで小気味の良い会話と、張った伏線が綺麗につながるカタルシスが最高です。</p>

<p><br />
<script type="text/javascript" src="http://imayomi.jp/ext/book/5849"></script><!-- ストリート・キッズ -->全ての登場人物が非常に魅力的です。人間臭い心の揺れを見せるのだけど、やはりこれはハードボイルドだと思います。非常にいい！<br />
ミステリの翻訳は少し苦手なんですが、とても読み易かったです。続編があるらしく、楽しみです。</p>

<p>次点は</p>

<p><br />
<a href="http://imayomi.jp/books/show/1173">竜の卵 (ハヤカワ文庫 SF 468)</a><br />
<a href="http://imayomi.jp/books/show/26121">ものがたり 唐代伝奇 (中公文庫)</a><br />
<a href="http://imayomi.jp/books/show/23705">フリーランチの時代 (ハヤカワ文庫JA)</a><br />
<a href="http://imayomi.jp/books/show/27947">杜甫―偉大なる憂鬱</a><br />
<a href="http://imayomi.jp/books/show/22510">空の境界 上／中／下 (講談社文庫)</a></p>

<p>といったところでしょうか。</p>

<p>そうそう、今読んでいる途中でかなり面白い「<a href="http://imayomi.jp/books/show/28673">スティーブ・ジョブズ２</a>」「<a href="http://imayomi.jp/books/show/30788">ボーン・コレクター</a>」「<a href="http://imayomi.jp/books/show/24390">流れ行く者</a>」辺りが来年のランキングに入るかどうか興味深いです。<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>2011年振り返り</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/12/2011.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7292</id>

    <published>2011-12-31T13:06:41Z</published>
    <updated>2011-12-31T13:10:51Z</updated>

    <summary>今年もあと2時間弱となりました。 読書の総括としては、今年読み終わった本は......</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Darts" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Diary" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="2011" label="2011" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="darts" label="darts" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="diary" label="diary" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="imayomi" label="imayomi" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>今年もあと2時間弱となりました。</p>

<p>読書の総括としては、今年読み終わった本は...42冊（-ω-）毎年着々と減少しています。<br />
iPhoneのせいですね。間違いありません。</p>

<p>続いてダーツに関しては...ついに３年越しの目標Rt10 Aフラ超えを達成しました！<br />
初めて乗ったときは相当うれしかったな〜。最後に月間月末Rt値を載せますが、確か7月に一度Rt11まで行っています。<br />
絶好調だったわ〜</p>

<p>しかし11月中頃から金欠が激しくなり週一ペースの練習量に落ち込むと、やはりRtも低下し、今年の最後は8.88で迎えそうです。</p>

<p>なんか若干イップス気味になっているので、フォーム改造失敗したかな〜</p>

<p>以降、月毎の思い出です。</p>

<p>１月<br />
@macococo と組んでMJトーナメントに初出場！ロビンは抜けたが決勝トーナメント１回戦敗退（-ω-）<br />
雄一くんの舞台を観た。<br />
映画ソーシャル・ネットワークを観た。<br />
エミーズハウトー行った<br />
MacBook Airを買った！</p>

<p>２月<br />
MacBook Airが届いた！<br />
会社のスキー・スノボ</p>

<p>３月<br />
震災がありました。翌日のIRON MAIDENライブが中止。<br />
停電が複数回あったので怖くなり、このブログや今読ミを自宅サーバからさくらに移した。</p>

<p>４月<br />
自宅の住宅ローンを借り換えた。<br />
雄一くんの舞台を観た。</p>

<p>５月<br />
さくらいま先生の個展を観に行った。<br />
@hide_yo とMJトーナメントに出場。結果は前回と同じ（-ω-）<br />
HIBRIAのライブ行った。</p>

<p>６月<br />
久々にパチスロをうちに行った。THUNDER V。負け orz<br />
ビアンコハウトー。<br />
雄一くんの舞台を観た。<br />
あかぬこ合宿 in SSLログハウス。</p>

<p>７月<br />
@hikapyon2 と組んでDJO横浜に出場。ロビン抜け、決勝Ｔ２回戦負け。今までで最高の結果。<br />
KAZAの多摩川飲み会。みんなで多摩川に飛び込んだ。ちょ〜クサイ（-ω-）</p>

<p>８月<br />
@guti0831 と組んでADAJクリケットセッションに出場。ロビン抜け、決勝Ｔ１回戦負け...<br />
@hikapyon2 と組んでDJO恵比寿に出場。ロビン落ち（-ω-）会場が狭すぎて辛い...<br />
SSLオープントーナメント。サカタさんと組んでまさかの優勝ヽ(´ー｀)ノ</p>

<p>９月<br />
JOY'sハウトー。ダブルスで初めて３位に！セカンドのヒロさんのお陰だが。</p>

<p>１０月<br />
@macococo 結婚式。懐かしい人達にたくさん会った。おめでとう。<br />
au iPhone 4Sに変更！<br />
前の会社の友達に案内してもらっての奈良。<br />
CLAPPERSからDDT参加。</p>

<p>１１月<br />
映画1911辛亥革命、ミッション：８ミニッツを観た。<br />
サカタさんと組んでMJトーナメント出場。残念ながらロビン落ち（-ω-）</p>

<p>１２月<br />
SSLダーツ部忘年会。<br />
久々にKAZAGURUMAハウトーに参加。<br />
@aranami2 と組んでDJO平和島。二人とも不調で残念ながらロビン落ち（-ω-）</p>

<p><br />
なんか、今年は大きなイベントがほとんどない一年だったのな〜。<br />
なんとなくカレンダーに登録し忘れているだけのイベントもありそうな気がするが。</p>

<p>ダーツの大会にたくさん出た。前半はほぼロビン抜けてたのに後半は全くダメ orz</p>

<p><br />
最後に今年もダーツのレーティング推移を残しておきます。</p>

<p>1月 7.92<br />
2月 7.89<br />
3月 7.57<br />
4月 7.55<br />
5月 7.89<br />
6月 8.85<br />
7月 9.37<br />
8月 10.12<br />
9月 9.51<br />
10月 9.54<br />
11月 10.14<br />
12月 10.02</p>

<p>後半はRt10前後をさまよってますね。<a href="http://www.iwazer.com/~iwazawa/diary/2010/12/2010.html">去年のスタッツ</a>考えたら雲泥の差だ！(・∀・)</p>

<p>だがしかし！今のRt8.88 orz<br />
練習してないから維持できなかった(´・ω・｀)<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Twitterの強化されたEmbed機能</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/12/new-twitter-embed.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7269</id>

    <published>2011-12-14T04:52:42Z</published>
    <updated>2011-12-14T08:20:15Z</updated>

    <summary>TwitterのUIが新しくなりましたね。 UIだけでなくEmbed機能も強化さ...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Twitter" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="embed" label="embed" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="twitter" label="twitter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="web" label="web" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>TwitterのUIが新しくなりましたね。</p>

<p>UIだけでなくEmbed機能も強化されているということなので、使ってみました。</p>

<p>一部のつぶやきだけ、リプライ元が付いてくるのの外し方が分からなかったので、前のつぶやきを省略しながら。</p>

<blockquote class="twitter-tweet" lang="ja"><p>フリクションボール（消せるペン）、いいね！今やっているお仕事にピッタリどす。</p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146513226119643136" data-datetime="2011-12-13T08:54:09+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>マジすか学園！？RT @<a href="https://twitter.com/iwazer">iwazer</a> いいよね。しかしドライヤーで一気に消えるらしいので注意ｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: フリクションボール（消せるペン）、いいね！今やっているお仕事にピッタリどす。</p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146523320261681152" data-datetime="2011-12-13T09:34:16+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>知ったら試してみたくなるでしょ、やろっかｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: マジすか学園！？RT @<a href="https://twitter.com/iwazer">iwazer</a> いいよね。しかしドライヤーで一気に消えるらしいので注意ｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: フリクションボール（消せるペン）、いいね！今やっているお仕事にピッタリどす。</p>&mdash; Eiji Iwazawa (@iwazer) <a href="https://twitter.com/iwazer/status/146528087167864832" data-datetime="2011-12-13T09:53:12+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>ビフォー！"@<a href="https://twitter.com/iwazer">iwazer</a>: 知ったら試してみたくなるでしょ、やろっかｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: マジすか学園！？RT @<a href="https://twitter.com/iwazer">iwazer</a> いいよね。しかしドライヤーで一気に消えるらしいので注意ｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: フリクション <a href="http://t.co/cgmNPMR8" title="http://twitter.com/ai_ver2/status/146536527642640384/photo/1">twitter.com/ai_ver2/status...</a></p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146536527642640384" data-datetime="2011-12-13T10:26:46+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>アフター！RT "@<a href="https://twitter.com/iwazer">iwazer</a>: 知ったら試してみたくなるでしょ、やろっかｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: マジすか学園！？RT @<a href="https://twitter.com/iwazer">iwazer</a> いいよね。しかしドライヤーで一気に消えるらしいので注意ｗ <a href="http://t.co/KowkKuue" title="http://twitter.com/ai_ver2/status/146539520765067264/photo/1">twitter.com/ai_ver2/status...</a></p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146539520765067264" data-datetime="2011-12-13T10:38:39+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>やるｗ 赤がFBねｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: アフター！RT "@<a href="https://twitter.com/iwazer">iwazer</a>: 知ったら試してみたくなるでしょ、やろっかｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: マジすか学園！？RT @<a href="https://twitter.com/iwazer">iwazer</a> いいよね。しかしドライヤーで一気に消えるらし... <a href="http://t.co/HJ8tW93O" title="http://bit.ly/vKIaP2">bit.ly/vKIaP2</a></p>&mdash; Eiji Iwazawa (@iwazer) <a href="https://twitter.com/iwazer/status/146540133926174720" data-datetime="2011-12-13T10:41:05+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>やるに決まってますでしょ。"@<a href="https://twitter.com/iwazer">iwazer</a>: やるｗ 赤がFBねｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: アフター！RT "@<a href="https://twitter.com/iwazer">iwazer</a>: 知ったら試してみたくなるでしょ、やろっかｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: マジすか学園！？RT @<a href="https://twitter.com/iwazer">iwazer</a> いいよね。しかしドライヤーで一気に消え</p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146541122536226816" data-datetime="2011-12-13T10:45:00+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>ちょっと冷やしてくる！RT @<a href="https://twitter.com/hide_yo">hide_yo</a> そして冷凍庫で復元する俺がいる(￣ー￣) QT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: やるに決まってますでしょ。"@<a href="https://twitter.com/iwazer">iwazer</a>: やるｗ 赤がFBねｗ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: アフター！RT "@<a href="https://twitter.com/iwazer">iwazer</a>: 知ったら試してみたくなるでしょ</p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146571465775517696" data-datetime="2011-12-13T12:45:35+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>熱で消えるのは、復元するはず。自分のは冷したら出てくるタイプだったけど同じタイプじゃなかったら、ごめんなさい(^_^;) QT @<a href="https://twitter.com/iwazer">iwazer</a>: 復元はしないでしょjk RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: ちょっと冷やしてくる！RT @<a href="https://twitter.com/hide_yo">hide_yo</a> そして冷凍庫で復元する俺がいる(￣ー￣</p>&mdash; hide_yo (@hide_yo) <a href="https://twitter.com/hide_yo/status/146574885848760320" data-datetime="2011-12-13T12:59:10+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>じゃ〜ん！！"@<a href="https://twitter.com/iwazer">iwazer</a>: 復元はしないでしょjk RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: ちょっと冷やしてくる！RT @<a href="https://twitter.com/hide_yo">hide_yo</a> そして冷凍庫で復元する俺がいる(￣ー￣) <a href="http://t.co/QRtgV6Qs" title="http://twitter.com/ai_ver2/status/146576015920074752/photo/1">twitter.com/ai_ver2/status...</a></p>&mdash; アイ (@ai_ver2) <a href="https://twitter.com/ai_ver2/status/146576015920074752" data-datetime="2011-12-13T13:03:40+00:00">12月 13, 2011</a></blockquote>

<blockquote class="twitter-tweet" lang="ja"><p>復元～＼(^o^)／ QT @<a href="https://twitter.com/iwazer">iwazer</a>: 復元した！ワラタ RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: じゃ〜ん！！"@<a href="https://twitter.com/iwazer">iwazer</a>: 復元はしないでしょjk RT @<a href="https://twitter.com/ai_ver2">ai_ver2</a>: ちょっと冷やしてくる！RT @<a href="https://twitter.com/hide_yo">hide_yo</a> そして冷凍庫で復元する俺がいる(￣ー￣) ht</p>&mdash; hide_yo (@hide_yo) <a href="https://twitter.com/hide_yo/status/146579014855835648" data-datetime="2011-12-13T13:15:35+00:00">12月 13, 2011</a></blockquote>

<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
]]>
        

    </content>
</entry>

<entry>
    <title>Heroku+Rails3+MongoLab(+MongoMapper)で起動できるとこまで</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/12/heroku-rails3-mongolab-mongomapper.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7266</id>

    <published>2011-12-13T07:12:39Z</published>
    <updated>2011-12-13T07:26:18Z</updated>

    <summary>HerokuでRails3アプリケーションを作成するさいストレージにMongoD...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Server" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="heroku" label="heroku" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mongo" label="mongo" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mongodb" label="mongodb" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mongolab" label="mongolab" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mongomapper" label="mongomapper" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rails" label="rails" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rails3" label="rails3" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>HerokuでRails3アプリケーションを作成するさいストレージにMongoDBを、ORMにMongoMapperを使用する場合の手順です。
＃他にも方法があるかも知れませんが...</p>

<p>まだ、やってなかったらherokuモジュールを入れたり、Railsを入れたりアップデートしたりしときます。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ gem install heroku
$ gem update rails
</code></pre>

<p>アプリケーションを生成します。MongoMapperを使うのでデフォルトのactive-recordを切っときます。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ rails new test-app --skip-active-record
$ cd test-app
$ git init
$ git add .
$ git commit -m 'Initial commit.'
</code></pre>

<p>必要なモジュールを追加しましょう。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ vi Gemfile

gem "mongo_mapper", '>=0.8.2'
gem "bson_ext"
gem "rails3-generators"
gem "rspec-rails"

$ bundle install
</code></pre>

<p>GeneratorにMongoMapperの設定を追加してもらいます。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ script/rails g mongo_mapper:install test-app-db
</code></pre>

<p>ローカルではデフォルトのlocalhost:27017を使うとするとconfig/database.mongo.ymlは何も変える必要はありません。</p>

<p>接続できているか確認しましょう。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ rails console
Loading development environment (Rails 3.1.3)
ruby-1.9.2-p290 :001 > class Hoge
ruby-1.9.2-p290 :002?>   include MongoMapper::Document
ruby-1.9.2-p290 :003?>   key :name, String
ruby-1.9.2-p290 :004?>   end
 => #<MongoMapper::Plugins::Keys::Key:0x00000100fc3928 @type=String, @name="name", @options={}, @default_value=nil> 
ruby-1.9.2-p290 :005 > Hoge.create!(:name => 'Nanashi San')
 => #<Hoge _id: BSON::ObjectId('4ee6f1f15ce68e3de8000001'), name: "Nanashi San"> 
ruby-1.9.2-p290 :006 > 
</code></pre>

<p>mongoに直接つないでも確認してみます。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ mongo
MongoDB shell version: 1.6.5
connecting to: test
> show dbs
test-app-db_development
> use test-app-db_development
switched to db test-app-db_development
> db.getCollectionNames()
[ "hoges", "system.indexes" ]
> db.hoges.find()    
{ "_id" : ObjectId("4ee6f1f15ce68e3de8000001"), "name" : "Nanashi San" }
> 
</code></pre>

<p>ローカルの接続設定ができたので、一度コミットしておきます。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ git add .
$ git st
$ git commit -m 'local mongo setting'
</code></pre>

<p>次は、いよいよHeroku上でもMongoLabに繋がるようにしたいと思います。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ heroku create
Creating warm-sunrise-3496...
 done, stack is bamboo-mri-1.9.2
http://warm-sunrise-3496.heroku.com/ | git@heroku.com:warm-sunrise-3496.git
Git remote heroku added
</code></pre>

<p>warm-sunrise-3496 という名前でHeroku上にアプリケーションができました。</p>

<p>MongoLab Add-onをアプリケーションに追加します。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ heroku addons:add mongolab:starter
-----> Adding mongolab:starter to warm-sunrise-3496... done, (free)
       Welcome to MongoLab.
</code></pre>

<p>（MongoLabを使用するにはFree版を使う場合でもクレジットカードなどで課金情報を有効にしておく必要があります）</p>

<p>Herokuで作成したアプリケーションの設定ページを表示します。</p>

<p><code>https://api.heroku.com/myapps/warm-sunrise-3496</code></p>

<p>右上にAdd-onsというメニューがあるので、MongoLabを選択します。</p>

<p>Usersタブを表示して、Addボタンをクリックしアプリケーションが接続するためのユーザを登録します。</p>

<p>また、タブの上部に</p>

<p><code>mongodb://<user>:<password>@ds000000.mongolab.com:11111/heroku_app2222222</code></p>

<p>このような接続URI情報が表示されているのを確認し、config/database.mongo.yml のproductionモードにHerokuの設定を追加します。
usernameとpasswordは先ほどUserタブで追加したものです。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ vi config/database.mongo.yml
 ：
production:
  <<: *defaults
  host: ds000000.mongolab.com
  port:11111
  username: hogehoge
  password: password
  database: heroku_app2222222
 ：
</code></pre>

<p>あと、もう一点。このままではポートの変更が効かないようで、初期化ファイルを少しだけ変更します。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ vi config/initializers/mongo_mapper.rb

-  MongoMapper.connection = Mongo::Connection.new(mongo['host'])
　　↓
+  MongoMapper.connection = Mongo::Connection.new(mongo['host'], mongo['port'])
</code></pre>

<p>いよいよHerokuに送ります。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;"><code>$ git add .
$ git commit
$ git push heroku master
</code></pre>

<p>動いたかな？</p>

<p><code>http://warm-sunrise-3496.heroku.com/</code></p>

<p>大丈夫そうです(｀･ω･´)</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Jenkins Mac OS X InstallerでJenkinsを入れる</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/11/jenkins-mac-os-x-installer.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7231</id>

    <published>2011-11-17T10:45:54Z</published>
    <updated>2011-11-17T10:51:42Z</updated>

    <summary>ローカルのMacBook ProにJenkinsを入れて色々試したくなりました。...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Mac" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Server" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="install" label="install" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="jenkins" label="jenkins" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="osx" label="osx" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="setup" label="setup" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tips" label="tips" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>ローカルのMacBook ProにJenkinsを入れて色々試したくなりました。
<a href="http://jenkins-ci.org/">サイト</a>に行ったらMac OS X用のインストーラがあったので、これはラクチンだと入れてみたら少しハマったので回避方法を書いておきます。</p>

<p>まず、pkgをダウンロードしてインストールしてpsを見てみると既に起動してます。</p>

<p>コマンドオプションが何も指定されていないので、<code>http://localhost:8080/</code>を叩いてみると404 Not Found orz</p>

<p>システム環境設定を見てもJenkinsの設定などなく一旦終了しようと<code>kill -KILL</code>しても自動再起動してしまう...</p>

<p>調べたところLaunchDaemonで起動されているようです。
ここにドキュメントがインストールされてました。</p>

<script src="https://gist.github.com/1372885.js?file=gistfile1.sh"></script>

<p>しかしまず起動と停止の方法が知りたいのですが書いてません。LaunchDaemonで調べると下記コマンドで行える事が分かりました。</p>

<script src="https://gist.github.com/1372886.js?file=gistfile1.sh"></script>

<p>まぁ、ちゃんと動いてないので再起動しただけでは状況は変わらず。</p>

<p><code>/Library/LaunchDaemons/org.jenkins-ci.plist</code>の内容を見てみると、</p>

<script src="https://gist.github.com/1372887.js?file=gistfile1.xml"></script>

<p>という指定があるのでディレクトリを見ると<code>/Users/Shared/Jenkins</code>までしかなく、ディレクトリの所有者がrootです。</p>

<p>jenkinsの実行ユーザはdaemonであるので、ここにHomeディレクトリを作れなくて実行できないと推測されます。</p>

<script src="https://gist.github.com/1372888.js?file=gistfile1.sh"></script>

<p>これで無事、起動することができました。</p>

<p>デフォルトは8080ポートで起動するのですが、8080は開発マシンとしては空けておきたいところです。</p>

<p>先程のドキュメントを見ると、OSXのdefaultsというコマンドで設定できるようです。</p>

<p>HTTPを18080ポート、AJP13を18009、ヒープサイズを128mに設定するには下記のようにします。</p>

<script src="https://gist.github.com/1372892.js?file=gistfile1.txt"></script>

<p>これで、まっさらなローカルJenkins環境ができました。</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Hash(Object)からURLパラメータを作る(Ruby,CoffeeScript)</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/11/hash-object-url-ruby-coffeescript.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7228</id>

    <published>2011-11-15T05:57:21Z</published>
    <updated>2011-11-15T06:01:23Z</updated>

    <summary>Titaniumを使うときCoffeeScriptで書いているのですが便利ですね...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="CoffeeScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Ruby" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="coffeescript" label="coffeescript" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="javascript" label="JavaScript" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="titanium" label="titanium" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>Titaniumを使うときCoffeeScriptで書いているのですが便利ですね。</p>

<p>しかしRubyでこう書いてたのは、CoffeeScriptではどう書くの？（・ω・）って事が多いです。</p>

<p>さっきひとつ新しい発見があったので書いておきます。</p>

<p>外部サービスのAPIとかをたたくときクエリーパラメータをHashにためておいて下記の様にURLパラメータを作成しますよね？</p>

<script src="https://gist.github.com/1366267.js?file=gistfile1.rb"></script>

<p>CoffeeScriptだと同じように書く方法が分からなくて普通にループして配列に突っ込んで作ってました。</p>

<p>ここは包括？（Comprehensions）を使えば良いのですね！</p>

<script src="https://gist.github.com/1366287.js?file=gistfile1.coffee"></script>

<p>とてもイイ！</p>
]]>
        

    </content>
</entry>

<entry>
    <title>カラム追加したいけど新しいカラムの初期値に既存のカラム値を入れたい(SQLite3)</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/11/alter-table-add-column-set-other-column-value-sqlite3.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7224</id>

    <published>2011-11-14T04:56:52Z</published>
    <updated>2011-11-14T05:02:30Z</updated>

    <summary>例えばこんなテーブルがあって、 updated_atを既存レコード分はregis...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="SQLite" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="add" label="add" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="alter" label="alter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="column" label="column" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="default" label="default" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqlite" label="sqlite" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sqlite3" label="sqlite3" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="table" label="table" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>例えばこんなテーブルがあって、</p>

<script src="https://gist.github.com/1363270.js?file=gistfile1.sql"></script>

<p><code>updated_at</code>を既存レコード分は<code>registered_at</code>の値で追加したい時。</p>

<p><code>ALTER TABLE</code>にそんな機能があるかなと探したがなさげ。</p>

<p>ここに素晴らしいアイディアが書いてありました。<br />
<a href="http://stackoverflow.com/questions/3027438/add-not-null-datetime-column-to-sqlite-without-default-value"><br />
Add not null DateTime column to <span class="caps">SQL</span>ite without default value?<br />
</a></p>

<p>この回答では既存テーブルの最後にカラムを追加する形で<code>INSERT INTO</code>には<code>SELECT *</code>を使ってますが、<code>SELECT句</code>をちゃんと指定すれば、どこだって構わない。</p>

<script src="https://gist.github.com/1363275.js?file=gistfile1.sql"></script>

<p><code>ALTER TABLE ADD COLUMN</code>すると、<code>.schema t_member</code>でDDLを表示したとき改行が入らずフォーマットが崩れるのだけど、<code>CREATE TABLE</code>し直すこの方法だとそっちも綺麗に表示されてナイス。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Ruby 1.9.3をさっそくOSXに入れてみましょうね、rvmで</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/11/ruby-193osxrvm.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7208</id>

    <published>2011-11-01T08:08:23Z</published>
    <updated>2011-11-01T08:15:38Z</updated>

    <summary>下記でサクっと入ります。 ...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Mac" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Ruby" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="install" label="install" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macosx" label="macosx" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="osx" label="osx" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby193" label="ruby1.9.3" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rvm" label="rvm" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>下記でサクっと入ります。</p>

<script src="https://gist.github.com/1330129.js?file=gistfile1.sh"></script>
]]>
        

    </content>
</entry>

<entry>
    <title>Amazon Product Advertising API仕様変更</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/09/amazon-product-advertising-api.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7166</id>

    <published>2011-09-29T02:09:59Z</published>
    <updated>2011-09-29T02:25:13Z</updated>

    <summary>Amazon Product Advertising APIチームからのメール。...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="imayomi" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="amazon" label="Amazon" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="api" label="API" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="imayomi" label="imayomi" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="今読ミ" label="今読ミ" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>Amazon Product Advertising APIチームからのメール。</p>

<pre style="color:#222; background-color:#ddd;padding:10px;">重要：アマゾンProduct Advertising APIの仕様変更について

Product Advertising API開発者のみなさま
平素は格別のご愛顧を頂きありがとうございます。

今年7月下旬にご案内いたしましたProduct Advertising APIの仕様変更で
すが、当初の予定通り2011年10月26日（水）に実施いたします。 つきま
しては、仕様変更に先立ちProduct Advertising API開発者のみなさまに
余裕を持ってご準備頂けるよう、実際の変更内容を体験頂く機会をご用意
いたしました。日程は下記となります：

■2011年10月19日（水）午後3:00 - 午後7:00

期間中は仕様変更後と同じオペレーションおよびレスポンスグループを体
験頂くことができます。
</pre>

<p>仕様変更の内容は</p>

<ul>
<li>Associate Tag パラメータ: 全てのAPIへのリクエストにおいて、有効なAssociate Tagを含めていただくことが必要となります。有効なAssociate Tagを含まない全てのリクエストはエラーとなり、エラーメッセージが表示されます。Associate Tagパラメータの詳細については開発者ガイド をご参照ください。</li>
<li>SellerLookup, SellerListingLookup および SellerListingSearch オペレーションはAPIでのサポートを終了いたします。</li>
<li>ItemSearch リクエストの結果として返されるItemPage パラメータは、最大10ページまでに制限されます。</li>
<li>MerchantId パラメータは、オファー、バリエーションおよび検索結果の絞り込み要素としてのサポートを終了いたします。</li>
<li>Offers および ItemAttributes レスポンスグループにおいて返されるデータは、最も頻繁に使用される属性に制限されます。</li>
</ul>

<p>（https://affiliate.amazon.co.jp/gp/advertising/api/detail/main.html?ref<em>=pe</em>9502_26347112 より）</p>

<p>ぱっとみ大丈夫そう。「ItemSearch リクエストのItemPageが最大10に制限される」がひょっとしたら関係するかもしれないが、おそらくシステムが止まってしまうことはないと思われる。</p>

<p>念のため10/19 15:00〜19:00の予行演習でざっとチェックしときたいが、平日じゃん！（-ω-）</p>

<p>Amazon APIを使用しているみなさま、お気をつけ下さい。</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Snow LeopardでEmacs 24をBuildしてみた</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/09/snowleopard-emacs24-build.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7154</id>

    <published>2011-09-19T10:58:27Z</published>
    <updated>2011-09-20T01:43:30Z</updated>

    <summary>最近、RubyやScalaを書くことが多く、メインのエディタがすっかりEmacs...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="emacs" label="Emacs" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="osx" label="osx" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="snowleopard" label="Snow Leopard" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>最近、RubyやScalaを書くことが多く、メインのエディタがすっかりEmacsに戻っています。</p>

<p>ただEmacsを使い始めてからIMにGoogle日本語入力を使うようになりました。</p>

<p>というのもATOKではEmacsでShiftキーを使用する記号が全角で入れられなかったからです。</p>

<p>しかし、やはりIMはATOKが使いたい。TwitterやBlogを書くとき明らかに変換ストレスがATOKの方が少ないです。
＃三国志の武将の名前などGoogle日本語入力の方が楽な場合もありますけど（笑）</p>

<p>少し調べてみたら、有名な問題のようで
http://github.com/downloads/typester/emacs/fix-shiftmodifier-with-ime.patch
これを当てると解消されるということらしい。</p>

<p>さっそく、今最新のEmacs 23.3aを<a href="http://ftp.gnu.org/pub/gnu/emacs/">Gnuのページ</a>からダウンロードしてビルドしてみると</p>

<pre style="background-color:#333"><code>$ curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.gz
$ curl -O https://github.com/downloads/typester/emacs/fix-shiftmodifier-with-ime.patch
$ tar zxvf emacs-23.3a.tar.gz
$ cd emacs-23.3
$ patch -p1 < ../fix-shiftmodifier-with-ime.patch
$ ./configure --with-ns --without-x
$ make bootstrap
　：
0x105000000 (sz:   0x5bff/0x7f8000)
0x10067e000 (sz:        0/  0x1000)
--- Load Commands written to Output File ---
Writing segment __PAGEZERO       @        0 (       0/0x100000000 @          0)
Writing segment __TEXT           @        0 (0x1db000/0x1db000 @ 0x100000000)
Writing segment __DATA           @ 0x1db000 (0x368000/0x368000 @ 0x1001db000)
        section __program_vars   at 0x1db000 - 0x1db028 (sz:     0x28)
        section __nl_symbol_ptr  at 0x1db028 - 0x1db038 (sz:     0x10)
unexec: unrecognized section name in __DATA segment
make[2]: *** [bootstrap-emacs] Error 1
make[1]: *** [src] Error 2
make: *** [bootstrap] Error 2
</code></pre>

<p>なにやら一筋縄ではいかなそうなエラーです orz</p>

<p>仕方なく開発版の24を取ってきてみると、Shiftキーパッチの箇所はどうやら修正されているようで、ダメもとでビルドしてみた。</p>

<pre style="background-color:#333"><code>$ git clone git://git.savannah.gnu.org/emacs.git
$ cd emacs
$ ./autogen.sh
$ ./configure --with-ns --without-x
$ make bootstrap
$ make install
$ open nextstep/Emacs.app
</code></pre>

<p>（autogen.shするときautoconfとautomakeが古いと言われたのでそれもビルドしました）</p>

<p>無事成功ヽ(´ー｀)ノ</p>

<p>予想通りATOKで全角記号もちゃんと入力できます。</p>

<p>あと.emacsで設定していたwindow-systemによる位置とサイズ指定が、24では少々おかしな 動きをしたので、微調整したら使えるようになりました。</p>

<p>そして、なんだか動作も速い気がします。しばらく使って様子を見よう。</p>

<h3>追記</h3>

<ul>
<li>window-systemでheightが大きすぎるとタイトルバーが表示領域よりどんどん上にずれてしまい、移動などができなくなるようです。</li>
<li>partial-completion-mode がなくなっているようで、.emacsで指定されているとエラーとなります。標準で (partial-completion-mode t) が指定されているのと同じ動きをするようになったようです。</li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>分割されたApacheのログをマージする。This program merge divided Apache log.</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/08/apachethis-program-merge-divid.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7119</id>

    <published>2011-08-25T02:45:09Z</published>
    <updated>2011-08-25T03:14:36Z</updated>

    <summary>負荷分散された環境で、SYSLOGなどを使わずにApacheやProxyのログが...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Ruby" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="apache" label="apache" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="log" label="log" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="merge" label="merge" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="tool" label="tool" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>負荷分散された環境で、SYSLOGなどを使わずにApacheやProxyのログが複数サーバにそのままはかれる設定になっている場合、ログを調査する際に複数の巨大なファイルを扱わなくてはならず面倒ですね。</p>

<p>なんとなく既にあって車輪の再発明をしている気がギュンギュンするのですが、ざっとググったところ見つからなかったので書いてみました。</p>

<script src="https://gist.github.com/1169757.js?file=aplogmerge.rb"></script>

<h2>使い方</h2>

<pre style="border:dashed 1px #ccc; padding:5px; margin-bottom:20px;"><code>$ aplogmerge.rb 1.log 2.log 3.log...
</code></pre>

<p>色々なケースにおけるテストとか全然やってないのですが何となく動いてそう。
あ、Ruby1.9.2でしか動作確認してません（汗）</p>

<p>Apacheのログはアクセスされた時間をレスポンスした時に出力するため、それぞれのファイル内で前後している行がある可能性があります。
その場合このプログラムでマージすると純粋に正しい出力にはならないかもしれませんが、概ね目的の出力は得られると思います。</p>

<p>日時を数値に変換してるとこはテキトーです。各行の前後関係が分かればよいだけなので、もっと速くていいロジックがありそう。</p>

<p>Cで書かないと実用に耐えないかな？と思いましたが約1GBのログ3つで実行したところ6分くらいで返ってきたので十分かなと。</p>

<p>profileすると現状、遅いのは比較のため日付を数値に変換している処理と、まだ先読みしてないファイルを特定するため<code>Array#reject</code>してるとこ。
気が向いたらもう少しチューニングしたいですが、現状十分な速度なのでもういいかなと（笑）</p>
]]>
        

    </content>
</entry>

<entry>
    <title>mongrelとかじゃなくてthinだね。あとnginx</title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/08/mongrelthinnginx.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7107</id>

    <published>2011-08-19T05:17:13Z</published>
    <updated>2011-08-19T05:31:51Z</updated>

    <summary>昨日、mongrelの事を書いたばかりですが、Ruby1.9.2、Rails3じ...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mongrel" label="mongrel" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mongrel_cluster" label="mongrel_cluster" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="nginx" label="nginx" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rails3" label="rails3" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rubyonrails" label="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby192" label="ruby1.9.2" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="thin" label="thin" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="varnish" label="varnish" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[<p>昨日、<a href="http://www.iwazer.com/~iwazawa/diary/2011/08/ruby19mongrelpre-release2011-0.html">mongrelの事を書いたばかり</a>ですが、Ruby1.9.2、Rails3じゃmongrel_clusterが全然動かない（＞ω＜）</p>

<p>みんなどうしてるんだろうなと、ネットを徘徊してみると時代はthinなんですね！</p>

<p><big><big><big><big><big>nginx+thin</big></big></big></big></big></p>

<p>いや〜、導入も簡単で動きも、varnish+mongrel_clusterより速い気がしますな〜</p>

<p><a href="http://imayomi.jp/">今読ミ</a>もRails3化したら<code>nginx+thin</code>に移行しよう(｀･ω･´)</p>]]>
        
    </content>
</entry>

<entry>
    <title>Ruby1.9でmongrelをインストールするにはpre release版じゃないとコンパイルできないよ(2011-08-18現在) </title>
    <link rel="alternate" type="text/html" href="http://www.iwazer.com/~iwazawa/diary/2011/08/ruby19mongrelpre-release2011-0.html" />
    <id>tag:www.iwazer.com,2011:/~iwazawa/diary//1.7106</id>

    <published>2011-08-18T11:34:18Z</published>
    <updated>2011-08-19T02:17:36Z</updated>

    <summary>新しい環境にmongrelをインストールしようとして毎回ググってる事に気付き、備...</summary>
    <author>
        <name>iwazer</name>
        <uri>http://www.iwazer.com/~iwazawa/diary/</uri>
    </author>
    
        <category term="Ruby" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="gem" label="gem" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mongrel" label="mongrel" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ruby" label="ruby" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rubyonrails" label="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.iwazer.com/~iwazawa/diary/">
        <![CDATA[新しい環境にmongrelをインストールしようとして毎回ググってる事に気付き、備忘のため。<br />
<br />
<script src="https://gist.github.com/1153890.js?file=gistfile1.sh"></script><br />
ちなみに<code> --pre </code>付けないと、こんなエラー吐きます。<br />
<pre style="border:dashed 1px #999;background-color:#ccc;color:#222;">INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Building native extensions.  This could take a while...
ERROR:  Error installing mongrel_cluster:
	ERROR: Failed to build gem native extension.

        /Users/iwazawa/opt/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefile

make
gcc -I. -I/Users/iwazawa/opt/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/Users/iwazawa/opt/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/iwazawa/opt/ruby-1.9.2-p290/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -o http11.o -c http11.c
http11.c: In function 'http_field':
http11.c:77: error: 'struct RString' has no member named 'ptr'
http11.c:77: error: 'struct RString' has no member named 'len'
http11.c:77: 警告: カンマ演算子の左側の式に効力がありません
http11.c: In function 'header_done':
http11.c:172: error: 'struct RString' has no member named 'ptr'
http11.c:172: error: 'struct RString' has no member named 'ptr'
http11.c:172: error: 'struct RString' has no member named 'ptr'
http11.c:174: error: 'struct RString' has no member named 'ptr'
http11.c:176: error: 'struct RString' has no member named 'ptr'
http11.c:177: error: 'struct RString' has no member named 'len'
http11.c: In function 'HttpParser_execute':
http11.c:298: error: 'struct RString' has no member named 'ptr'
http11.c:299: error: 'struct RString' has no member named 'len'
make: *** [http11.o] エラー 1


Gem files will remain installed in /Users/iwazawa/opt/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5 for inspection.
Results logged to /Users/iwazawa/opt/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/gem_make.out
</pre>]]>
        
    </content>
</entry>

</feed>

