<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>FloralCompany.log</title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/mt/" />
    <link rel="self" type="application/atom+xml" href="http://floralcompany.jp/mt/atom.xml" />
    <id>tag:floralcompany.jp,2010-02-04:/mt//2</id>
    <updated>2012-01-03T07:20:54Z</updated>
    <subtitle>FloralCompany のBlogらしきもの</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 5.04</generator>

<entry>
    <title>2012年始記事 
        [ふつーの]
    
        [雑談]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2012/01/2012.html" />
    <id>tag:floralcompany.jp,2012:/mt//2.312</id>

    <published>2012-01-03T07:11:59Z</published>
    <updated>2012-01-03T07:20:54Z</updated>

    <summary>もう年明けて3日も経ってしまってますが 改めまして あけましておめでとうございま...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="ふつーの" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="雑談" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>もう年明けて3日も経ってしまってますが<br />
改めまして<br />
あけましておめでとうございます</p>

<p>今年も何卒よろしくお願いいたします。</p>


<p>↓ 一応 pixiv に上げた年賀絵</p>

<script src="http://source.pixiv.net/source/embed.js" data-id="24041209_cf943e07d03e249df16e4f72e5333787" data-size="medium" data-border="off" charset="utf-8"></script><noscript><p><a href="http://www.pixiv.net/member_illust.php?mode=medium&amp;illust_id=24041209" target="_blank">あけました</a> by <a href="http://www.pixiv.net/member.php?id=12335" target="_blank">虎王 剱奈</a> on <a href="http://www.pixiv.net/" target="_blank">pixiv</a></p></noscript>
            
    </content>
</entry>

<entry>
    <title>メモ：vim(win32)からcygwin bashに入ってmakeするmakeprgを作る 
        [vim]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/11/vimwin32cygwin-.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.311</id>

    <published>2011-11-07T03:57:00Z</published>
    <updated>2011-11-07T06:09:20Z</updated>

    <summary>まず、基本。DOSプロンプトからbashを起動してその中でmakeを動かす。 &amp;...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="vim" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="vim" label="vim" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>まず、基本。DOSプロンプトからbashを起動してその中でmakeを動かす。</p>

<pre><code>&gt; x:/path/to/cygwin/bin/bash.exe -c make</code></pre>

<p>make用に環境変数を設定してからmakeする。</p>

<pre><code>&gt; x:/path/to/cygwin/bin/bash.exe
 -c &quot;export HOGE=/path/to/hoge; make&quot;</code></pre>

<p> (gccの) errorやwarning があるファイル名がCygwin　path(/cygdrive/x/...) で出てくるのでvimのerrorformatにWindowsのpathで拾ってもらうために変換しておく</p>

<pre><code>&gt; x:/path/to/cygwin/bin/bash.exe
 -c &quot;export HOGE=/path/to/hoge; make 2&gt;&amp;1 |
 sed -e 's#^/cygdrive/\([a-z]\)#\1:#'&quot;</code></pre>

<p>ファイル名じゃないのファイル名として解釈されてしまう部分を除外する</p>

<pre><code>&gt; x:/path/to/cygwin/bin/bash.exe
 -c &quot;export HOGE=/path/to/hoge; make 2&gt;&amp;1 |
 sed -e 's#^/cygdrive/\([a-z]\)#\1:#' |
 grep -v '^&lt;hogehoge&gt;'&quot;</code></pre>

<p>makeprgの書式に則って適切にエスケープさせる. ついでにmakeへの引数($*)も追加</p>

<pre><code>:se makeprg=x:/path/to/cygwin/bin/bash.exe
\ -c\ \&quot;export\ HOGE=/path/to/hoge;make\ $*\ 2&gt;&amp;1\ \\\|
\ sed\ -e's\\#^/cygdrive/\\([a-z]\\)\\#\\1:\\#'\ \\\|
\ grep\ -v\ '^&lt;command\ line&gt;'\&quot;</code></pre>

<p>詳しくは :he make_makeprg で</p>
            
    </content>
</entry>

<entry>
    <title>SICP Excercise 4.42 
        [Perl]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/11/sicp-excercise-.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.310</id>

    <published>2011-11-01T18:19:48Z</published>
    <updated>2011-11-01T18:31:04Z</updated>

    <summary>プログラミングの魔導書 vol.2 を読んでいたら、  SIPC の練習問題を引...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Perl" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p><a href="http://longgate.co.jp/books/grimoire-vol2.html">プログラミングの魔導書 vol.2</a> を読んでいたら、  <a href="http://mitpress.mit.edu/sicp/full-text/book/book.html" title="Structure and Interpretation of Computer Programs"><span class="caps">SIPC</span></a> の練習問題を引用されているところがあって、面白そうな問題なので挑戦してみた次第。</p>

<p>ちなみに問題は、</p>

<blockquote><p>Exercise 4.42.  Solve the following ``Liars'' puzzle (from Phillips 1934):</p>

<p>    Five schoolgirls sat for an examination. Their parents -- so they thought -- showed an undue degree of interest in the result. They therefore agreed that, in writing home about the examination, each girl should make one true statement and one untrue one. The following are the relevant passages from their letters:</p>

<p>        Betty: ``Kitty was second in the examination. I was only third.''<br />
        Ethel: ``You'll be glad to hear that I was on top. Joan was second.''<br />
        Joan: ``I was third, and poor old Ethel was bottom.''<br />
        Kitty: ``I came out second. Mary was only fourth.''<br />
        Mary: ``I was fourth. Top place was taken by Betty.'' </p>

<p>    What in fact was the order in which the five girls were placed? </p>

<p><cite href="http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-28.html">4.3  Variations on a Scheme -- Nondeterministic Computing  -- <span class="caps">SIPC</span></cite></p></blockquote>

<p>こんなの。</p>

<p>そんなわけで回答してみる</p>
        <a href="http://floralcompany.jp/archives/2011/11/sicp-excercise-.html#more">more...</a>    
    </content>
</entry>

<entry>
    <title>YAPC::Asia でLTしゃべりました 
        [Perl]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/10/yapcasia-lt.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.309</id>

    <published>2011-10-15T00:32:51Z</published>
    <updated>2011-10-15T00:42:44Z</updated>

    <summary>昨日(10/14(Fir))から東京工業大学大岡山キャンパスで YAPC::As...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Perl" 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://floralcompany.jp/mt/">
        <p>昨日(10/14(Fir))から東京工業大学大岡山キャンパスで <a href="http://yapcasia.org/2011/"><span class="caps">YAPC</span>::Asia2011</a> が開催されていますが、昨日のLT Day 1にて、YAPC::Asia Tokyo 参加4年目にして初LTしゃべらせていただきました。あんな大勢の前で(っても照明のおかげでほとんど壇上からは見えてないけど）しゃべったのもはじめてなので、だいぶ緊張したし、色々不手際もあったかもしれませんが、聞いてくださった皆様ありがとうございました。 _o/L ﾋﾗﾆｰ ﾋﾗﾆｰ</p>

<p>使ったスライドは一応SlideShareに <a href="http://www.slideshare.net/turugina/perl-9702934">上げてあります</a> 。 (これまた初SlideShareだ！)</p>

<div style="width:425px" id="__ss_9702934"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/turugina/perl-9702934" title=" 日常業務にperlを使おう" target="_blank"> 日常業務にperlを使おう</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/9702934" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> <div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/turugina" target="_blank">turugina</a> </div> </div>

<p>そんなわけで、今日2日目も楽しんできます。</p>
            
    </content>
</entry>

<entry>
    <title>Androidエミュレータからproxy越えしてHTTP接続 その２ 
        [Android]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/08/androidproxyhtt-1.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.308</id>

    <published>2011-08-21T16:41:42Z</published>
    <updated>2011-08-21T17:20:27Z</updated>

    <summary>前回 の続き的なもの。 話の対象は Android SDK Tools, Rev...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Android" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p><a href="http://floralcompany.jp/archives/2011/06/androidproxyhtt.html">前回</a> の続き的なもの。</p>

<p>話の対象は Android <span class="caps">SDK</span> Tools, Revision 12 のemulatorコマンド です。</p>

<p><a href="http://developer.android.com/guide/developing/tools/emulator.html">emulatorコマンドの公式ドキュメント</a> によると、 <code>-http-proxy</code> オプション(または http_proxy環境変数) があると、全てのTCP接続(UDPは未対応)を指定されたproxy経由にしてくれるらしいです。</p>

<p>素晴らしい！ と、言いたいところなのですが、 この -http-proxy オプションを使う方法には ちょっとした罠があったのでした。</p>

<p>emulatorのソースコードの proxy/proxy_http_connector.c の connection_init関数には以下の一文が入っています</p>

<pre><code class="c">stralloc_add_format(str, &quot;CONNECT %s HTTP/&quot; HTTP_VERSION &quot;\r\n&quot;,
sock_address_to_string(&amp;root-&gt;address) );</code></pre>

<p>この文は proxy serverに発行する <span class="caps">CONNECT </span>メソッドのrequest を作ってるところですが、なんとこの時点で(proxyを越えた)接続先のIPアドレスが判明していなければなりません。(sock_address_to_string関数とか呼んでるしー)</p>

<p><span class="caps">CONNECT</span>メソッドは別に ホスト名:ポート を指定してもいいはずですが、このコードはそれを許してません。DNSへの問い合わせ等で接続先のIPアドレスが判明しないとCONNECTメソッドの発行には至りません。(アプリ側で接続先をIPアドレスで指定するとちゃんとつなぎに行ってくれます)</p>

<p>即ち、 「LAN内限定のDNSサーバしかない」とか、「そもそもDNSサーバがない」環境においては、 -http-proxy オプションを使ってproxy外のサーバに対して サーバ名を指定して接続することは 不可能 なようです。</p>

<p>いやはやなんという残念仕様.. </p>
            
    </content>
</entry>

<entry>
    <title>LLPlanetsに参加してきました </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/08/llplanets.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.306</id>

    <published>2011-08-20T04:31:41Z</published>
    <updated>2011-08-21T16:37:43Z</updated>

    <summary>去る 2011-08-20 に行われた Javascript day LLPla...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
    <category term="llplanets" label="llplanets" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>去る 2011-08-20 に行われた <del>Javascript day</del> <a href="http://ll.jus.or.jp/2011/"><span class="caps">LLP</span>lanets</a> に一般参加してきました。</p>

<p>今年のLLはJavascript関連のセッションが基調講演含めて３つも(1こはNode.jsの名前を借りた感じだったけど)あって、一体何のイベントやねんって感じでした。 そういや、Language Update が無かったですね。<br />
他には、参加者への無線LAN提供とか頑張ってくれてました。自分はノートPC開いてなかった(携帯用のバッテリーと化してた)のであまり恩恵は受けられてないのですが、多分200端末くらいを捌いてたんじゃないかと。すばらしい。</p>

<p>毎年恒例になっているLLイベントも今年で9回目だそうで、来年は10回記念ですね。<br />
自分は2009年の <span class="caps">LLTV </span>を除いて 2003年のLL Saturday からずっと参加してますが、もうそんなになったかー、と感慨もひとしお。</p>

<p>後、割とどーでもいいのですが、今年は珍しくメモを取りもって聞いてたので貼り付けておきます。</p>
        <a href="http://floralcompany.jp/archives/2011/08/llplanets.html#more">more...</a>    
    </content>
</entry>

<entry>
    <title>ServiceTestCaseを使ったテストでテストパッケージのリソースを使う 
        [Android]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/07/servicetestcase.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.305</id>

    <published>2011-07-29T09:12:44Z</published>
    <updated>2011-07-29T09:26:59Z</updated>

    <summary>ActivityTestCase など、 InstrumentationTest...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Android" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p><a href="http://developer.android.com/reference/android/test/ActivityTestCase.html">ActivityTestCase</a> など、 <a href="http://developer.android.com/reference/android/test/InstrumentationTestCase.html">InstrumentationTestCase</a> を継承してるテストの場合は、</p>

<pre><code class="java">Context context = this.getInstrumentation().getContext();
context.getResources();
// hogehoge</code></pre>

<p>で、テストパッケージ側のリソース(res/raw/assets) が使えるが、 <a href="http://developer.android.com/reference/android/test/ServiceTestCase.html">ServiceTestCase</a> 等 <a href="http://developer.android.com/reference/android/test/AndroidTestCase.html">AndroidTestCase</a> から継承しているテストの場合は同等のAPIは存在しない。</p>

<p>何とかならないものかとAndroidのソースを眺めてたら AndroidTestCase に <code>Context getTestContext()</code> なるhidden methodを見つけたので、とりあえず以下のようにしてテストパッケージ側のリソースを使うことができました。めでたしめでたし。</p>

<script src="https://gist.github.com/1113481.js?file=asset_on_servicetest.java"></script>
            
    </content>
</entry>

<entry>
    <title>Android用pixivクライアントアプリケーション &quot;pixplorer&quot; を公開しました。 
        [Android]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/07/androidpixiv-pi.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.304</id>

    <published>2011-07-10T20:12:44Z</published>
    <updated>2011-07-13T03:53:57Z</updated>

    <summary>** 公開したバージョン 20110711.01 に一時ファイルを作成しっぱなし...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Android" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p><del>** 公開したバージョン 20110711.01 に一時ファイルを作成しっぱなしで削除しないという致命的なバグが発見されたため、注意文をMarketの方に記載しました。(この記事の続きにも載せてます) ご迷惑をお掛けしてすみません **</del><br />
<ins datetime="2011-07-11T21:51:00Z9">先ほど、本バグを修正した バージョン 20110711.02 を公開しました。 ご迷惑をおかけしました</ins></p>


<p>Android Market のページ：  <a href="https://market.android.com/details?id=jp.floralcompany.android.pixivviewer">https://market.android.com/details?id=jp.floralcompany.android.pixivviewer</a></p>


<p>一月以上かかってAndroidアプリ作成の勉強がてら うにょうにょ作ってたandroid用pixivクライアントアプリが 何とか公開できるレベルにはなったと判断しましたので、公開することにしました。</p>

<p>タイトルにはpixplorer って書いてありますが、日本語環境だと「ぴくすぷろーらー」になります。</p>

<p>これで（私の認識してる範囲では）Android Marketに、pixiv公式アプリ、PxViewer、Pixroid に続いて4つ目のpixiv閲覧アプリの登場です。以後、何卒よろしくお願いいたします。</p>


<p>何か問題等ありましたら、marketのコメントや <a href="http://twitter.com/turugina">twitter</a> 等でご連絡くださいませ。<br />
<a href="http://www.pixiv.net/member.php?id=12335">pixiv</a> やこのblogのコメント欄でも多分大丈夫。</p>

<p>その内、もうちょっとちゃんとした紹介ページも作ろうとは思いますが、ちょっと分かりづらい機能だけご紹介。</p>

<ul>
<li>大きめの画像が見える画面で画像をタップすると周囲のボタン類が消えます。が、もう一回タップすると現れます</li>
<li>同画面の左上の "x1.2" とかいう倍率表示をタップしたら 等倍(x1.0) で表示します。</li>
<li>キャッシュ設定を外部ストレージ(SDカード) に設定した上で 「原寸大」ボタンを長押しすると、原寸大画像のダウンロード後に他のビューアを起動します。(多分標準のギャラリーアプリか何かが立ち上がると思います。)</li>
<li>同じくキャッシュ設定を外部ストレージ(SDカード) に設定した上で、マンガ表示のサムネイルを長押しすると以下同文</li>
</ul>


<p>そんな感じです。 それではよろしうにー</p>
        <a href="http://floralcompany.jp/archives/2011/07/androidpixiv-pi.html#more">more...</a>    
    </content>
</entry>

<entry>
    <title>メモ：Androidエミュレータからproxy越えしてHTTP接続 
        [Android]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/06/androidproxyhtt.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.303</id>

    <published>2011-06-08T06:53:44Z</published>
    <updated>2011-06-08T09:32:38Z</updated>

    <summary>対象：HTTP通信するAndroidアプリの動作確認したいけど社内のネットワーク...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Android" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>対象：HTTP通信するAndroidアプリの動作確認したいけど社内のネットワークはproxyで遮断されてるYO な環境。</p>

<p>エミュレータを起動しておいて、</p>

<pre><code>http.proxyHost=192.168.0.1
http.proxyPort=8080</code></pre>

<p>みたいなファイル devenv.prop を用意して、<code>adb push devenv.prop /data/devenv.prop</code> でエミュレータ環境に突っ込んでおく。</p>

<p>アプリケーション側で /data/devenv.prop を読み込んでProxyの設定をする。(続きにコード例掲載)</p>


<p>何かもっといい方法がありそうなもんだけど(ブラウザはAPNに設定したproxy設定使ってるし...). とりあえずはこれでproxyは越えられる。</p>

<p>manifestに</p>

<pre><code>&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;</code></pre>

<p>の設定を忘れずに。</p>
        <a href="http://floralcompany.jp/archives/2011/06/androidproxyhtt.html#more">more...</a>    
    </content>
</entry>

<entry>
    <title>sleep sortなるものが流行ってるらしいので 
        [Boo]
    
        [プログラム]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/05/sleep-sort.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.302</id>

    <published>2011-05-20T06:53:57Z</published>
    <updated>2011-05-20T06:58:21Z</updated>

    <summary>どんなものかとみてみたら、私にとっては 既に3年前に通った道 でした。ﾂﾏﾝﾅｰ...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Boo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="プログラム" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>どんなものかとみてみたら、私にとっては <a href="http://floralcompany.jp/archives/2008/07/perl-1.html">既に3年前に通った道</a> でした。ﾂﾏﾝﾅｰｲ</p>

<p>というだけではあれなので <a href="http://boo.codehaus.org/">Boo</a> で書いてみる</p>

<script src="https://gist.github.com/982470.js?file=sleepsort.boo"></script>

<p>うむ。</p>
            
    </content>
</entry>

<entry>
    <title>Boo on Windowsで.NET Framework 4.0のアセンブリを参照する 
        [Boo]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/05/boo-on-windowsn.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.301</id>

    <published>2011-05-17T10:06:21Z</published>
    <updated>2011-05-17T10:38:06Z</updated>

    <summary>経緯 Microsoft Chart Controls を使って東京電力の電力使...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Boo" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <h3>経緯</h3>

<ol>
<li><a href="http://d.hatena.ne.jp/Schima/20110330/1301478322">Microsoft Chart Controls を使って東京電力の電力使用状況をグラフ化する - Schimaの日記</a> のコードをBooで書き直してみる。</li>
<li>booi で起動しようとするも System.Windows.Forms.DataVisualization.dll が読み込めないというエラーが発生。</li>
<li>色々うにゃうにゃ調べた</li>
</ol>

<h3>結論</h3>

<ul>
<li>Booのバイナリを.NET Framework 4.0 <span class="caps">SDK</span>を使ってビルドし直さなきゃいけない。</li>
</ul>

<h3>手順</h3>

<ol>
<li><a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&amp;displaylang=en">Download details: Microsoft Windows <span class="caps">SDK </span>for Windows 7 and .NET Framework 4</a> からインストーラ持ってきてSDK入れる</li>
<li><a href="http://nant.sourceforge.net/">NAnt - A .NET Build Tool</a> から .NET Framework 4.0に対応している NAnt 0.91-alpha1 以上を持ってきて展開しておく</li>
<li><a href="http://dist.codehaus.org/boo/distributions/?C=M;O=D">Index of /boo/distributions</a> から 最新版のソースのtarballを持ってきて展開する</li>
<li>Booソースのディレクトリ下で nant -t:net-4.0 する。</li>
<li>build/ 以下にできたバイナリを使う。</li>
<li>おまけ： nant の最後の方で多分file not foundでエラーになるので、 気になる場合は scripts/update-vs2005-env.boo の最後の方で</li>
</ol>

<pre><code>for fname in fnames:
  updateProjectFile(rebase(fname))</code></pre>

<p>になってるところを</p>

<pre><code>for fname in fnames:
  if System.IO.File.Exists(rebase(fname)):
    updateProjectFile(rebase(fname))</code></pre>

<p>とでも書き換えておく。</p>

<p>boocとbooishは起動時にどのCLRを使ってるか表示してくれるので、ためしに起動して <span class="caps">CLR</span> 4.0.xxxx が表示されるのを確認しておくとよい。 (booi は表示してくれない...)</p>
        <a href="http://floralcompany.jp/archives/2011/05/boo-on-windowsn.html#more">more...</a>    
    </content>
</entry>

<entry>
    <title>わんくま勉強会大阪#42でLTってきた 
        [.NET]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/04/42lt.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.300</id>

    <published>2011-04-04T17:13:13Z</published>
    <updated>2011-04-04T17:29:42Z</updated>

    <summary>ので その時使った 発表資料±α を置いておきます。 内容は プログラミング言語...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term=".NET" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="boo" label="Boo" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="lt" label="LT" 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://floralcompany.jp/mt/">
        <p>ので その時使った <a href="http://floralcompany.jp/slide/wankuma_oosaka42/">発表資料±α</a> を置いておきます。</p>

<p>内容は <a href="http://boo.codehaus.org/">プログラミング言語Boo</a> についての簡単な紹介です。</p>

<p>時間が無かったので、 <code>callable</code> とか built-in macros とかの説明は省いてます。</p>

<p>ところで、"Hello, <span class="caps">GUI</span> World" の説明は Formにラベルを貼り付けるんじゃなくて、<br />
↓みたいにボタンを置いてイベントハンドラの例示をした方がよかったですね。 反省。</p>

<pre><code class="python">import System.Windows.Form

class Hello(Form):
  public def constructor():
    button = Button(Text: &quot;Push Me :)&quot;)
    button.Click += { MessageBox.Show(&quot;Hello, GUI World!&quot;) }
    self.Controls.Add(button)</code></pre>

<p>こんな感じで。</p>
            
    </content>
</entry>

<entry>
    <title>MDI子WindowでArrow KeyのKeyDownイベントを受け取る 
        [.NET]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/03/mdiwindowarrow-.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.299</id>

    <published>2011-03-29T02:51:00Z</published>
    <updated>2011-03-29T03:03:48Z</updated>

    <summary>子Windowの PreviewKeyDown イベントをハンドルしてやって P...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term=".NET" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="net" label=".NET" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="boo" label="Boo" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mdi" label="MDI" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>子Windowの <code>PreviewKeyDown</code> イベントをハンドルしてやって <code>PreviewKeyEventArgs.IsInputKey</code> を <code>true</code> にしてやれば親WindowのControlのフォーカスに使われることなく、子Windowの<code>KeyDown</code>イベントが発生するらしい。</p>

<script src="https://gist.github.com/890267.js?file=mditest.boo"></script>
            
    </content>
</entry>

<entry>
    <title>PixivViewer 
        [.NET]
    
        [bazaar]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/03/pixivviewer.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.298</id>

    <published>2011-03-18T19:13:49Z</published>
    <updated>2011-03-18T20:28:05Z</updated>

    <summary>という大変安直な名前の pixiv 専用クライアントを何かちょこちょこ作ってます...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term=".NET" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="bazaar" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>という大変安直な名前の <a href="http://www.pixiv.net/">pixiv</a> 専用クライアントを何かちょこちょこ作ってます。</p>

<p>一応 <a href="http://launchpad.net/">launchpad</a> に <a href="http://launchpad.net/pixivviewer">プロジェクトページ</a> をこさえてみました。<br />
<a href="http://bazaar.canonical.com/en/">Bazaar</a> をお持ちであれば、 <code>bzr branch lp:pixivviewer/trunk</code> で多分最新のコードが取って来れます。<br />
プロジェクトページにも書いてありますが、 <a href="http://www.sharpdevelop.net/opensource/sd/">SharpDevelop</a> 4.0 で <a href="http://boo.codehaus.org/">Boo言語</a> を使って書いてます。</p>

<p>「コードとかしらねぇよ。使える奴よこせよ」とかいう向きには、 <a href="http://floralcompany.jp/PixivViewer/">ダウンロード用ディレクトリ</a> に適当においておくので、適当にあれしてください。<br />
なお、実行には 無駄に .NET Framework 4.0 が必要です。入ってない人はWindowsUpdateなり <a href="http://msdn.microsoft.com/ja-jp/netframework/ff687189.aspx">.NET Framework 4.0 のダウンロードページ</a> なりでダウンロードしてインストールしてやってください。</p>

<p>レジストリとか多分使ってないので、アンインストールの際は展開したフォルダと <strong>画像キャッシュディレクトリ</strong> を消してあげてください。 </p>

<p>基本的に自分用に作ってるので、使いやすいかどうかは知りません。というか、個人差があるもんですよこういうのは。<br />
後、本ソフトを使用する事によって生じるあらゆる事象については、私は責任を持たないものとします。あくまでも自己責任で使ってください。</p>


<p>質問等ありましたらこのエントリのコメントなり、 <a href="http://twitter.com/turugina">twitter</a> なり launchpadのプロジェクトページなりでどうぞ。</p>
            
    </content>
</entry>

<entry>
    <title>AnyEvent::Twitter::Stream 0.20 でjson decode エラーが発生する件 
        [Perl]
    </title>
    <link rel="alternate" type="text/html" href="http://floralcompany.jp/archives/2011/02/anyeventtwitter.html" />
    <id>tag:floralcompany.jp,2011:/mt//2.297</id>

    <published>2011-02-10T07:32:32Z</published>
    <updated>2011-02-10T07:56:41Z</updated>

    <summary>既に  Bug #64471 for AnyEvent-Twitter-Stre...</summary>
    <author>
        <name>turugina</name>
        <uri>http://floralcompany.jp/</uri>
    </author>
    
        <category term="Perl" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://floralcompany.jp/mt/">
        <p>既に  <a href="https://rt.cpan.org/Public/Bug/Display.html?id=64471">Bug #64471 for AnyEvent-Twitter-Stream: <span class="caps">JSON </span>parsing errors</a> としてRTには登録されていますが、</p>

<p>twitterのUserStreamを使うと <span class="caps">JSON</span>文字列の前に <span class="caps">JSON</span>文字列(+改行分?)長 のHEX文字列が入り込んでくることがあるみたいで(UserStreamのドキュメント見ても見つけられなかった、誰か知ってたら教えてください)、 AnyEvent::Twitter::Stream-&gt;new に no_decode_json =&gt; 1 を指定しておかないと <span class="caps">HEX</span>文字列が来たときに <span class="caps">JSON</span>::decode_json がcroak してしまい、UserStreamの読み込みが出来なくなってしまうようです。</p>

<p>んで、とりあえずやってきた文字列がJSONオブジェクトじゃなさそうな場合は読み飛ばすようにするパッチを作ってみた。</p>

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

<p>pull-requestとかは送ってない。</p>
            
    </content>
</entry>

</feed>

