<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/ME2.2.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>maaash.jp</title>
	<link>http://maaash.jp</link>
	<description>mash blog</description>
	<pubDate>Thu, 19 Aug 2010 03:14:31 +0900</pubDate>
	<generator>http://wordpress.org/?v=ME2.2.1</generator>
	<language>ja</language>
			<item>
		<title>Math::Random::MT benchmark</title>
		<link>http://maaash.jp/perl/mathrandommt-benchmark/</link>
		<comments>http://maaash.jp/perl/mathrandommt-benchmark/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 12:12:10 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/mathrandommt-benchmark/</guid>
		<description><![CDATA[randのばらつき方が均等になる、という理由でMath::Random::MTが使われているようです。（身近で
macにXS版を入れようとすると
In file included from _mt.c:1:
mt.h:17: error: expected specifier-qualifier-list before ‘uint32_t’
mt.h:21: error: expected ‘)’ before ‘seed’
mt.h:22: error: expected ‘)’ before ‘*’ token
_mt.c:17: error: expected declaration specifiers or ‘&#8230;’ before ‘uint32_t’
_mt.c: In function ‘mt_init_seed’:
_mt.c:20: error: ‘uint32_t’ undeclared (first use in this function)
_mt.c:20: error: (Each undeclared identifier is reported only once
_mt.c:20: error: for each function it appears in.)
_mt.c:20: [...]]]></description>
			<content:encoded><![CDATA[<p>randのばらつき方が均等になる、という理由で<a href="http://search.cpan.org/~ams/Math-Random-MT-1.11/">Math::Random::MT</a>が使われているようです。（身近で</p>
<p>macにXS版を入れようとすると<br />
<code>In file included from _mt.c:1:<br />
mt.h:17: error: expected specifier-qualifier-list before ‘uint32_t’<br />
mt.h:21: error: expected ‘)’ before ‘seed’<br />
mt.h:22: error: expected ‘)’ before ‘*’ token<br />
_mt.c:17: error: expected declaration specifiers or ‘&#8230;’ before ‘uint32_t’<br />
_mt.c: In function ‘mt_init_seed’:<br />
_mt.c:20: error: ‘uint32_t’ undeclared (first use in this function)<br />
_mt.c:20: error: (Each undeclared identifier is reported only once<br />
_mt.c:20: error: for each function it appears in.)<br />
_mt.c:20: error: ‘mt’ undeclared (first use in this function)<br />
_mt.c:22: error: ‘struct mt’ has no member named ‘mt’<br />
_mt.c:23: error: ‘seed’ undeclared (first use in this function)<br />
</code></p>
<p>っていうようなエラーがでてmakeがこけるところは、</p>
<p><code><br />
#if defined(_MSC_VER) &#038;&#038; (_MSC_VER < = 1300)<br />
typedef unsigned __int32 uint32_t;<br />
#elif defined(__linux__) || defined(__GLIBC__) || defined(__WIN32__)<br />
#include <stdint.h><br />
#elif defined(__osf__)<br />
#include <inttypes .h><br />
#else<br />
#include <sys /types.h><br />
#endif<br />
</sys></inttypes></code></p>
<p>このifdefがうまくいってないようだったのでとりあえず<br />
<code>#include &lt;inttypes.h&gt;</code><br />
と手で書いてあげたりするとうまくmake &#038;&#038; make testが通るようになりました<br />
この辺はどう書くのが鉄板なんでしょうね？</p>
<p>ということでベンチマーク</p>
<p><script src="http://gist.github.com/536889.js?file=rand.pl"></script></p>
<p>ここがボトルネックになることはあまり無いとは思いますが。</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/mathrandommt-benchmark/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iTunesの重複曲を削除する - perl</title>
		<link>http://maaash.jp/perl/itunes%e3%81%ae%e9%87%8d%e8%a4%87%e6%9b%b2%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b-perl/</link>
		<comments>http://maaash.jp/perl/itunes%e3%81%ae%e9%87%8d%e8%a4%87%e6%9b%b2%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b-perl/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 10:54:16 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/itunes%e3%81%ae%e9%87%8d%e8%a4%87%e6%9b%b2%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b-perl/</guid>
		<description><![CDATA[家のPCのWindowsを入れなおすついでに家のiTunesとmacbookのiTunesの中身を同期しようと思い、何も考えずにiTunesのホームネットワークに追加して曲をコピペしたら大量に重複曲ができていっこいっこ手で削除するなんてめんどくさくてできない場合の話。
iTunesには「重複する項目を表示」って機能はあるのに重複してる曲を削除する、っていう便利機能は無い。
ただし、同じアーティスト名、同じアルバム名（つまり同じディレクトリ）の同名曲は、
ファイル名の末尾に数字をつけてincrementしていく、ってルールでコピーしてきたファイルを置くようだ。
そこで、perlで重複曲を削除してみる

% perl remove-duplicate.pl /Users/mash/Music/iTunes/iTunes\ Media/Music/

って実行すると重複してるっぽい曲だけ消してくれる
その後、実体が無いけど曲のリストがあるiTunesを開き、上から順に →カーソルキー を押しっぱなしにしたりすると

のようにびっくりマークがつくので、表示項目に「追加日」を追加して、
びっくりマークを目印に、複数選択しながら消していくとまあ許容できるめんどくささになった
Term::Prompt がなんか楽しくて意味もなく &#8220;really?&#8221; とか聞くちょっとしたスクリプトを書く今日このごろ
PS. iTunes Music Library.xml をいっしょに編集したりすればもっと簡単なのかもしれない
]]></description>
			<content:encoded><![CDATA[<p>家のPCのWindowsを入れなおすついでに家のiTunesとmacbookのiTunesの中身を同期しようと思い、何も考えずにiTunesのホームネットワークに追加して曲をコピペしたら大量に重複曲ができていっこいっこ手で削除するなんてめんどくさくてできない場合の話。</p>
<p>iTunesには「重複する項目を表示」って機能はあるのに重複してる曲を削除する、っていう便利機能は無い。</p>
<p>ただし、同じアーティスト名、同じアルバム名（つまり同じディレクトリ）の同名曲は、<br />
ファイル名の末尾に数字をつけてincrementしていく、ってルールでコピーしてきたファイルを置くようだ。</p>
<p>そこで、perlで重複曲を削除してみる</p>
<p><script src="http://gist.github.com/507495.js?file=remove-duplicate-files-from-itunes.pl"></script></p>
<p><code>% perl remove-duplicate.pl /Users/mash/Music/iTunes/iTunes\ Media/Music/<br />
</code></p>
<p>って実行すると重複してるっぽい曲だけ消してくれる</p>
<p>その後、実体が無いけど曲のリストがあるiTunesを開き、上から順に →カーソルキー を押しっぱなしにしたりすると</p>
<p><img src="http://gyazo.com/927944080d5754616af10ffa74b63614.png" /></p>
<p>のようにびっくりマークがつくので、表示項目に「追加日」を追加して、<br />
びっくりマークを目印に、複数選択しながら消していくとまあ許容できるめんどくささになった</p>
<p><code>Term::Prompt</code> がなんか楽しくて意味もなく &#8220;really?&#8221; とか聞くちょっとしたスクリプトを書く今日このごろ</p>
<p>PS. iTunes Music Library.xml をいっしょに編集したりすればもっと簡単なのかもしれない</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/itunes%e3%81%ae%e9%87%8d%e8%a4%87%e6%9b%b2%e3%82%92%e5%89%8a%e9%99%a4%e3%81%99%e3%82%8b-perl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>daemontoolsのmultilogでエラーだけ抜き出す</title>
		<link>http://maaash.jp/daemontools/daemontools%e3%81%aemultilog%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a0%e3%81%91%e6%8a%9c%e3%81%8d%e5%87%ba%e3%81%99/</link>
		<comments>http://maaash.jp/daemontools/daemontools%e3%81%aemultilog%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a0%e3%81%91%e6%8a%9c%e3%81%8d%e5%87%ba%e3%81%99/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:28:05 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[daemontools]]></category>

		<guid isPermaLink="false">http://maaash.jp/daemontools/daemontools%e3%81%aemultilog%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a0%e3%81%91%e6%8a%9c%e3%81%8d%e5%87%ba%e3%81%99/</guid>
		<description><![CDATA[ここ： multilogによるログ収集 を読みましょう

この設定は：
- t: タイムスタンプつける
- 全部の行をこのrunスクリプトのあるディレクトリに吐く ファイルサイズ最大16MBで１００世代まで
- [error]の含まれる行のみを errorsディレクトリ以下に吐く ファイルサイズ最大16MBで１００世代まで
svc -u /service/app/log

ってするとmultilogが立ち上がって、runスクリプトのあるディレクトリ、errorsディレクトリにcurrentって空のファイルができる
appのログに[error]の含まれる行が出てきたら、
errors/current ってファイルに書き込まれるので、
errors/current ってファイルを監視してれば眠れない夜になったりならなかったり
svc -a /service/app/log

ってするとログローテーションされてcurrentはまた空ファイルになるのでいらっとしたらこれ。
]]></description>
			<content:encoded><![CDATA[<p>ここ： <a href="http://quox.org/tips/server/daemontools.html#multilog">multilogによるログ収集</a> を読みましょう</p>
<p><script src="http://gist.github.com/455677.js"></script><br />
この設定は：<br />
- t: タイムスタンプつける<br />
- 全部の行をこのrunスクリプトのあるディレクトリに吐く ファイルサイズ最大16MBで１００世代まで<br />
- [error]の含まれる行のみを errorsディレクトリ以下に吐く ファイルサイズ最大16MBで１００世代まで</p>
<p><code>svc -u /service/app/log<br />
</code></p>
<p>ってするとmultilogが立ち上がって、runスクリプトのあるディレクトリ、errorsディレクトリにcurrentって空のファイルができる</p>
<p>appのログに[error]の含まれる行が出てきたら、<br />
errors/current ってファイルに書き込まれるので、<br />
errors/current ってファイルを監視してれば眠れない夜になったりならなかったり</p>
<p><code>svc -a /service/app/log<br />
</code></p>
<p>ってするとログローテーションされてcurrentはまた空ファイルになるのでいらっとしたらこれ。</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/daemontools/daemontools%e3%81%aemultilog%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a0%e3%81%91%e6%8a%9c%e3%81%8d%e5%87%ba%e3%81%99/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WWW::Mechanize::Firefoxで簡単スクリーンショット</title>
		<link>http://maaash.jp/perl/wwwmechanizefirefox%e3%81%a7%e7%b0%a1%e5%8d%98%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88/</link>
		<comments>http://maaash.jp/perl/wwwmechanizefirefox%e3%81%a7%e7%b0%a1%e5%8d%98%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88/#comments</comments>
		<pubDate>Wed, 19 May 2010 17:06:22 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/wwwmechanizefirefox%e3%81%a7%e7%b0%a1%e5%8d%98%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88/</guid>
		<description><![CDATA[WWW::Mechanize::Firefox-すごいな
mozreplと組み合わせてこんなコードで簡単にスクリーンショットがとれる

perl mechanize-firefox.pl "yahoo.co.jp" yahoo.png
とかってやってとれたスクリーンショットはこんな

write error: filehandle isn't open at /path/to/MozRepl/Client.pm line 186

とかって出たらFirefoxのmozreplが立ち上がってない。
maximum input buffer length exceeded: 1048576 bytes at /path/to/MozRepl/Client.pm line 186

とかって出たらmozreplとperlスクリプトのtelnetのバッファが足りないようなのでgistにあるbufsizeを大きめにとる
PS: 開いてるFirefoxでとったのでMacBookProの解像度を活かしてサイズは(1899 x 1607)になってるのは自慢です
]]></description>
			<content:encoded><![CDATA[<p><a href="http://search.cpan.org/~corion/WWW-Mechanize-Firefox-0.18/">WWW::Mechanize::Firefox-</a>すごいな<br />
<a href="http://wiki.github.com/bard/mozrepl/tutorial">mozrepl</a>と組み合わせてこんなコードで簡単にスクリーンショットがとれる</p>
<p><script src="http://gist.github.com/406076.js?file=mechanize-firefox.pl"></script></p>
<p><code>perl mechanize-firefox.pl "yahoo.co.jp" yahoo.png</code><br />
とかってやってとれたスクリーンショットはこんな<br />
<a href="http://www.flickr.com/photos/99687464@N00/4620564475/" title="yahoo by maaashjp, on Flickr"><img src="http://farm5.static.flickr.com/4054/4620564475_e162124ffa_m.jpg" width="240" height="203" alt="yahoo" /></a></p>
<p><code>write error: filehandle isn't open at /path/to/MozRepl/Client.pm line 186<br />
</code><br />
とかって出たらFirefoxのmozreplが立ち上がってない。</p>
<p><code>maximum input buffer length exceeded: 1048576 bytes at /path/to/MozRepl/Client.pm line 186<br />
</code><br />
とかって出たらmozreplとperlスクリプトのtelnetのバッファが足りないようなのでgistにあるbufsizeを大きめにとる</p>
<p>PS: 開いてるFirefoxでとったのでMacBookProの解像度を活かしてサイズは(1899 x 1607)になってるのは自慢です</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/wwwmechanizefirefox%e3%81%a7%e7%b0%a1%e5%8d%98%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88/feed/</wfw:commentRss>
		</item>
		<item>
		<title>cant use webcam in Firefox3.6.3 + Flash Player 10 + Mac OSX10.6.3</title>
		<link>http://maaash.jp/diary/cant-use-webcam-in-firefox363-flash-player-10-mac-osx1063/</link>
		<comments>http://maaash.jp/diary/cant-use-webcam-in-firefox363-flash-player-10-mac-osx1063/#comments</comments>
		<pubDate>Thu, 13 May 2010 21:06:32 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[diary]]></category>

		<guid isPermaLink="false">http://maaash.jp/diary/cant-use-webcam-in-firefox363-flash-player-10-mac-osx1063/</guid>
		<description><![CDATA[今日、奇妙なFirefoxのバグ？に遭遇
ウェブカムを使うFlashで、Camera.getCameraしたCameraインスタンスをVideo.attachCameraしたりするときに、
Flashの設定パネルが表示されて、

この「許可」をクリックするとカメラから画像がとれるようになるんですが、
Firefox3.6.3 + Flash Player 10,0,42,34 + MacOSX 10.6.3
で、これがクリック出来ないんですね。周りにも何人かいたから近いバージョンでも起こるっぽい。
クリックできないから許可できないので進まない。
HTMLの要素をカットして戻して、とかってやりながら原因を切り分けていくと、、原因、というかこうなおすと直った、のはCSS
CSSの差分はこんな
PLAIN TEXT
CSS:




667c673,674


&#60;width:465px;


---


&#62; /* width:465px; */


&#62; text-align: center;


670c677


&#60;width: 465px;


---


&#62; /* width: 465px; */


673c680


&#60;border-right:1px solid #e6e6e6;


---


&#62; /* border-right:1px solid #e6e6e6; */ 






これでFlash Playerからウェブカム使えるかどうか変わるとかありえねー
けど実際ありえた
参考になるだろうと思って最小のHTMLとCSSで再現パターンつくろうと思ったけど他にも周りの要素が関係してそうだったのでめんどくさくて断念。
Firefox3.6.4のbetaでは起こらなかったようなので、一時的な不具合かもしれない。
幸運をいのる。
P.S. macにしましたよ
]]></description>
			<content:encoded><![CDATA[<p>今日、奇妙なFirefoxのバグ？に遭遇</p>
<p>ウェブカムを使うFlashで、Camera.getCameraしたCameraインスタンスをVideo.attachCameraしたりするときに、</p>
<p>Flashの設定パネルが表示されて、<br />
<img src="http://gyazo.com/b9516a686791a69ada7bec5d2e516bfa.png" alt="flash security panel" /><br />
この「許可」をクリックするとカメラから画像がとれるようになるんですが、</p>
<p>Firefox3.6.3 + Flash Player 10,0,42,34 + MacOSX 10.6.3<br />
で、これがクリック出来ないんですね。周りにも何人かいたから近いバージョンでも起こるっぽい。<br />
クリックできないから許可できないので進まない。</p>
<p>HTMLの要素をカットして戻して、とかってやりながら原因を切り分けていくと、、原因、というかこうなおすと直った、のはCSS</p>
<p>CSSの差分はこんな</p>
<div class="igBar"><span id="lcss-2"><a href="#" onclick="javascript:showPlainTxt('css-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-2">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">667c673,<span style="color: #cc66cc;color:#800000;">674</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;width:465px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&gt; <span style="color: #808080; font-style: italic;">/* width:465px; */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&gt; <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">670c677</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;width: 465px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&gt; <span style="color: #808080; font-style: italic;">/* width: 465px; */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">673c680</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;border-right<span style="color: #3333ff;">:1px </span>solid #e6e6e6;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&gt; <span style="color: #808080; font-style: italic;">/* border-right:1px solid #e6e6e6; */</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これでFlash Playerからウェブカム使えるかどうか変わるとかありえねー<br />
けど実際ありえた</p>
<p>参考になるだろうと思って最小のHTMLとCSSで再現パターンつくろうと思ったけど他にも周りの要素が関係してそうだったのでめんどくさくて断念。</p>
<p>Firefox3.6.4のbetaでは起こらなかったようなので、一時的な不具合かもしれない。<br />
幸運をいのる。</p>
<p>P.S. macにしましたよ</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/diary/cant-use-webcam-in-firefox363-flash-player-10-mac-osx1063/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Context Free Art for Actionscript3/Flash</title>
		<link>http://maaash.jp/actionscript3/context-free-art-for-actionscript3flash/</link>
		<comments>http://maaash.jp/actionscript3/context-free-art-for-actionscript3flash/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 15:29:35 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[contextfreeart]]></category>

		<category><![CDATA[actionscript3]]></category>

		<guid isPermaLink="false">http://maaash.jp/actionscript3/context-free-art-for-actionscript3flash/</guid>
		<description><![CDATA[FITC Amsterdam 2010で得た刺激を形にした1つ目
Context Free Artをas3でつくるためのライブラリをつくりました。
sourcecode: http://github.com/mash/ContextFreeArt-AS3
sample:
faster Tree - ContextFreeArtAS3 - wonderfl build flash online
cfdgは本家と同じフォーマットで記述して、
StringをContextFreeArtクラスに渡してaddChildすれば描画されたContextFreeArtを見られる、という簡単仕様。
PLAIN TEXT
Actionscript:




var art :ContextFreeArt = new ContextFreeArt&#40; cfdg &#41;;


addChild&#40; art &#41;; 






javascript+CanvasによるContext Free Artの実装があったのでそれを移植する＋Flash向けに最適化（@nutsu ++）しただけですね
jsの方の例はこちら
再帰を繰り返してベクターが多くなってきた時に描画が重くなるのを解決できたらなー
描画しおわった、removeChildされた後に掃除したりするのを追加したら、swcにしてwonderflにライブラリとして追加しようー
ContextFreeArtクラスはただのSprite継承したものなので、ContextFreeArtをBox2Dの世界につっこんだり、マウスとインタラクションしたり、いろいろ試してほしいものです。
まだ対応していないcfdg文法もたくさんあるので、興味をもった方はgithubでforkしてほしいです！
]]></description>
			<content:encoded><![CDATA[<p>FITC Amsterdam 2010で得た刺激を形にした1つ目</p>
<p>Context Free Artをas3でつくるためのライブラリをつくりました。<br />
sourcecode: <a href="http://github.com/mash/ContextFreeArt-AS3">http://github.com/mash/ContextFreeArt-AS3</a><br />
sample:</p>
<div style="text-align:center;width:465px;"><iframe title="faster Tree - ContextFreeArtAS3 - wonderfl build flash online" scrolling="no" src="http://wonderfl.net/blogparts/65186c72f5cd41fa981dd6ed3177ad47cfac3dc7" width="465" height="490" style="border:1px black solid;"></iframe><a href="http://wonderfl.net/code/65186c72f5cd41fa981dd6ed3177ad47cfac3dc7" title="faster Tree - ContextFreeArtAS3 - wonderfl build flash online">faster Tree - ContextFreeArtAS3 - wonderfl build flash online</a></div>
<p><a href="http://contextfreeart.org/mediawiki/index.php/CFDG_HOWTO">cfdgは本家と同じフォーマット</a>で記述して、<br />
StringをContextFreeArtクラスに渡してaddChildすれば描画されたContextFreeArtを見られる、という簡単仕様。</p>
<div class="igBar"><span id="lactionscript-4"><a href="#" onclick="javascript:showPlainTxt('actionscript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> art :ContextFreeArt = <span style="color: #000000; font-weight: bold;">new</span> ContextFreeArt<span style="color: #66cc66;">&#40;</span> cfdg <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">addChild<span style="color: #66cc66;">&#40;</span> art <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="http://code.google.com/p/contextfree/">javascript+CanvasによるContext Free Artの実装</a>があったのでそれを移植する＋Flash向けに最適化（<a href="http://twitter.com/nutsu">@nutsu</a> ++）しただけですね<br />
<a href="http://azarask.in/projects/contextfree/showcase.html">jsの方の例はこちら</a></p>
<p>再帰を繰り返してベクターが多くなってきた時に描画が重くなるのを解決できたらなー<br />
描画しおわった、removeChildされた後に掃除したりするのを追加したら、swcにしてwonderflにライブラリとして追加しようー<br />
ContextFreeArtクラスはただのSprite継承したものなので、ContextFreeArtをBox2Dの世界につっこんだり、マウスとインタラクションしたり、いろいろ試してほしいものです。<br />
まだ対応していない<a href="http://github.com/mash/ContextFreeArt-AS3/blob/master/todo.txt">cfdg文法もたくさんある</a>ので、興味をもった方はgithubでforkしてほしいです！</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/actionscript3/context-free-art-for-actionscript3flash/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FITC Amsterdam 2010で話してきました</title>
		<link>http://maaash.jp/wonderfl/fitc-amsterdam-2010%e3%81%a7%e8%a9%b1%e3%81%97%e3%81%a6%e3%81%8d%e3%81%be%e3%81%97%e3%81%9f/</link>
		<comments>http://maaash.jp/wonderfl/fitc-amsterdam-2010%e3%81%a7%e8%a9%b1%e3%81%97%e3%81%a6%e3%81%8d%e3%81%be%e3%81%97%e3%81%9f/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 15:06:31 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[actionscript3]]></category>

		<category><![CDATA[fitc]]></category>

		<category><![CDATA[wonderfl]]></category>

		<guid isPermaLink="false">http://maaash.jp/wonderfl/fitc-amsterdam-2010%e3%81%a7%e8%a9%b1%e3%81%97%e3%81%a6%e3%81%8d%e3%81%be%e3%81%97%e3%81%9f/</guid>
		<description><![CDATA[2/19～2/24だったのでもう1ヶ月になってしまいますね。びびる！
ではプレゼン資料をどうぞ。
Fitc Amsterdam 2010



View more presentations from Masakazu Ohtsuka.

@mariroomがiPhoneから撮ってくれた録画はこちら
slideshareでプレゼン資料からリンクしたい！けどできないので
http://twitter/maaash
http://www.kayac.com/
http://wonderfl.net/
Explore wonderfl
http://wonderfl.net/codes
http://wonderfl.net/tags
My Favorites
http://wonderfl.net/tag/graphics
http://wonderfl.net/code/b8ec2e7155357ddc65d21eb8b1fa2e94c8363cfc
http://wonderfl.net/tag/particle
http://wonderfl.net/code/6efe4c0d9b5e27e91db92b1175409f31e7005dca
http://wonderfl.net/tag/3d
http://wonderfl.net/code/d79cd85845773958620f42cb3e6cb363c2020c73
http://wonderfl.net/code/3e921a9e3eeedb891c2c09ca7792d77a94e6be7e
http://wonderfl.net/tag/sound
http://wonderfl.net/code/ce10335ea45949194f7b26b2a7906faf1860037d
http://wonderfl.net/code/a61ade6375f452e6dbcc873f241652ef0f80bb96
http://wonderfl.net/tag/game
http://wonderfl.net/code/e3ad9058e4ee2e00d7ff7a40e806e7ed82fdb0ef
Supported libraries
http://wonderfl.net/libraries
Fastest when you want samples
http://www.google.com/search?q=papervision3d
http://wonderfl.net/search?q=papervision3d
Cool idea of actionscriptbible
by Roger Braunstein
http://wonderfl.net/user/actionscriptbible
Collaboration example:
http://wonderfl.net/code/23552f1d7a0805e6a44c812715e89bf6b520e346
http://wonderfl.net/code/6e076415a6d24cbe1c1ce65fb5db5fc9284e9c10
http://wonderfl.net/code/aa66ffdabd0d60b9b0f78bc98d35054860212703
http://wonderfl.net/code/685b39a67b560fd762e25fb805c7cb30780efb78
http://wonderfl.net/code/e40b7ab8221ba0b85632726091fc9211c5f503c4
Flash LIVE Coding
http://wonderfl.net/live
]]></description>
			<content:encoded><![CDATA[<p>2/19～2/24だったのでもう1ヶ月になってしまいますね。びびる！<br />
ではプレゼン資料をどうぞ。</p>
<div style="width:425px" id="__ss_3280884"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/maaash/fitc-amsterdam-2010" title="Fitc Amsterdam 2010">Fitc Amsterdam 2010</a></strong><object width="425" height="355">
<param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=fitc-amsterdam-2010-100225212940-phpapp02&#038;rel=0&#038;stripped_title=fitc-amsterdam-2010" />
<param name="allowFullScreen" value="true"/>
<param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=fitc-amsterdam-2010-100225212940-phpapp02&#038;rel=0&#038;stripped_title=fitc-amsterdam-2010" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/maaash">Masakazu Ohtsuka</a>.</div>
</div>
<p>@mariroomが<a href="http://www.ustream.tv/recorded/4925201">iPhoneから撮ってくれた録画はこちら</a></p>
<p>slideshareでプレゼン資料からリンクしたい！けどできないので</p>
<p><a href="http://twitter/maaash">http://twitter/maaash</a><br />
<a href="http://www.kayac.com/">http://www.kayac.com/</a><br />
<a href="http://wonderfl.net/">http://wonderfl.net/</a></p>
<p>Explore wonderfl<br />
<a href="http://wonderfl.net/codes">http://wonderfl.net/codes</a><br />
<a href="http://wonderfl.net/tags">http://wonderfl.net/tags</a></p>
<p>My Favorites<br />
<a href="http://wonderfl.net/tag/graphics">http://wonderfl.net/tag/graphics</a><br />
<a href="http://wonderfl.net/code/b8ec2e7155357ddc65d21eb8b1fa2e94c8363cfc">http://wonderfl.net/code/b8ec2e7155357ddc65d21eb8b1fa2e94c8363cfc</a><br />
<a href="http://wonderfl.net/tag/particle">http://wonderfl.net/tag/particle</a><br />
<a href="http://wonderfl.net/code/6efe4c0d9b5e27e91db92b1175409f31e7005dca">http://wonderfl.net/code/6efe4c0d9b5e27e91db92b1175409f31e7005dca</a><br />
<a href="http://wonderfl.net/tag/3d">http://wonderfl.net/tag/3d</a><br />
<a href="http://wonderfl.net/code/d79cd85845773958620f42cb3e6cb363c2020c73">http://wonderfl.net/code/d79cd85845773958620f42cb3e6cb363c2020c73</a><br />
<a href="http://wonderfl.net/code/3e921a9e3eeedb891c2c09ca7792d77a94e6be7e">http://wonderfl.net/code/3e921a9e3eeedb891c2c09ca7792d77a94e6be7e</a><br />
<a href="http://wonderfl.net/tag/sound">http://wonderfl.net/tag/sound</a><br />
<a href="http://wonderfl.net/code/ce10335ea45949194f7b26b2a7906faf1860037d">http://wonderfl.net/code/ce10335ea45949194f7b26b2a7906faf1860037d</a><br />
<a href="http://wonderfl.net/code/a61ade6375f452e6dbcc873f241652ef0f80bb96">http://wonderfl.net/code/a61ade6375f452e6dbcc873f241652ef0f80bb96</a><br />
<a href="http://wonderfl.net/tag/game">http://wonderfl.net/tag/game</a><br />
<a href="http://wonderfl.net/code/e3ad9058e4ee2e00d7ff7a40e806e7ed82fdb0ef">http://wonderfl.net/code/e3ad9058e4ee2e00d7ff7a40e806e7ed82fdb0ef</a></p>
<p>Supported libraries<br />
<a href="http://wonderfl.net/libraries">http://wonderfl.net/libraries</a></p>
<p>Fastest when you want samples<br />
<a href="http://www.google.com/search?q=papervision3d">http://www.google.com/search?q=papervision3d</a><br />
<a href="http://wonderfl.net/search?q=papervision3d">http://wonderfl.net/search?q=papervision3d</a></p>
<p>Cool idea of actionscriptbible<br />
by Roger Braunstein<br />
<a href="http://wonderfl.net/user/actionscriptbible">http://wonderfl.net/user/actionscriptbible</a></p>
<p>Collaboration example:<br />
<a href="http://wonderfl.net/code/23552f1d7a0805e6a44c812715e89bf6b520e346">http://wonderfl.net/code/23552f1d7a0805e6a44c812715e89bf6b520e346</a><br />
<a href="http://wonderfl.net/code/6e076415a6d24cbe1c1ce65fb5db5fc9284e9c10">http://wonderfl.net/code/6e076415a6d24cbe1c1ce65fb5db5fc9284e9c10</a><br />
<a href="http://wonderfl.net/code/aa66ffdabd0d60b9b0f78bc98d35054860212703">http://wonderfl.net/code/aa66ffdabd0d60b9b0f78bc98d35054860212703</a><br />
<a href="http://wonderfl.net/code/685b39a67b560fd762e25fb805c7cb30780efb78">http://wonderfl.net/code/685b39a67b560fd762e25fb805c7cb30780efb78</a><br />
<a href="http://wonderfl.net/code/e40b7ab8221ba0b85632726091fc9211c5f503c4">http://wonderfl.net/code/e40b7ab8221ba0b85632726091fc9211c5f503c4</a></p>
<p>Flash LIVE Coding<br />
<a href="http://wonderfl.net/live">http://wonderfl.net/live</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/wonderfl/fitc-amsterdam-2010%e3%81%a7%e8%a9%b1%e3%81%97%e3%81%a6%e3%81%8d%e3%81%be%e3%81%97%e3%81%9f/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wonderfl本</title>
		<link>http://maaash.jp/flash/wonderfl%e6%9c%ac/</link>
		<comments>http://maaash.jp/flash/wonderfl%e6%9c%ac/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 11:40:35 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[actionscript3]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://maaash.jp/flash/wonderfl%e6%9c%ac/</guid>
		<description><![CDATA[


ブラウザで無料ではじめるActionScript 3.0 ―It's a wonderfl world―
posted with amazlet at 09.12.23

面白法人カヤック フォークビッツ ワークスコーポレーション 売り上げランキング: 3750
Amazon.co.jp で詳細を見る



wonderfl本、出ましたね。自分は、「はじめに」と「１－１」を担当させていただきました。
これからFlashやActionscript3をはじめたい、という初心者にとっては本当に役に立つサービス＆本だと思いますので、よろしければ読んでみてください。
]]></description>
			<content:encoded><![CDATA[<div class="amazlet-box" style="margin-bottom:0px;">
<div class="amazlet-image" style="float:left;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4862670776/masaishere-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://ecx.images-amazon.com/images/I/316QNrvuYzL._SL160_.jpg" alt="ブラウザで無料ではじめるActionScript 3.0 ―It's a wonderfl world―" style="border: none;" /></a></div>
<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
<div class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4862670776/masaishere-22/ref=nosim/" name="amazletlink" target="_blank">ブラウザで無料ではじめるActionScript 3.0 ―It's a wonderfl world―</a>
<div class="amazlet-powered-date" style="font-size:7pt;margin-top:5px;font-family:verdana;line-height:120%">posted with <a href="http://www.amazlet.com/browse/ASIN/4862670776/masaishere-22/ref=nosim/" title="ブラウザで無料ではじめるActionScript 3.0 ―It's a wonderfl world―" target="_blank">amazlet</a> at 09.12.23</div>
</div>
<div class="amazlet-detail">面白法人カヤック フォークビッツ <br />ワークスコーポレーション <br />売り上げランキング: 3750</div>
<div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4862670776/masaishere-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div>
</div>
<div class="amazlet-footer" style="clear: left"></div>
</div>
<p>wonderfl本、出ましたね。自分は、「はじめに」と「１－１」を担当させていただきました。<br />
これからFlashやActionscript3をはじめたい、という初心者にとっては本当に役に立つサービス＆本だと思いますので、よろしければ読んでみてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/flash/wonderfl%e6%9c%ac/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DBICでcreate_relatedをoverrideする</title>
		<link>http://maaash.jp/perl/dbic%e3%81%a7create_related%e3%82%92override%e3%81%99%e3%82%8b/</link>
		<comments>http://maaash.jp/perl/dbic%e3%81%a7create_related%e3%82%92override%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 14:11:16 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/dbic%e3%81%a7create_related%e3%82%92override%e3%81%99%e3%82%8b/</guid>
		<description><![CDATA[DBICを使っています。
User has_many Histories
っていう関係のテーブルUserとHistoryがあった時に、
Userの行それぞれに対して、最新のHistoryをUserの行の中にキャッシュしておくと便利なときがあります。
そんな時に、$user->add_to_histories ってやった時に $userもupdateしたい、という話です。
PLAIN TEXT
PERL:




CREATE TABLE user &#40;id unsigned not null auto_increment, **中略**, history unsigned not null&#41;;


CREATE TABLE history &#40;id unsigned not null auto_increment, user unsigned not null, **中略**, created_date datetime not null&#41;; 






UserのRowクラスは
PLAIN TEXT
PERL:




package Schema::Row::User;


中略


__PACKAGE__-&#62;has_many&#40; histories =&#62; 'Schema::Row::History', 'user' &#41;; 






HistoryのRowクラスは
PLAIN TEXT
PERL:




package Schema::Row::History;


中略


__PACKAGE__-&#62;belongs_to&#40; user =&#62; 'Schema::Row::User' &#41;; 






UserのRowクラスに追加されるadd_to_$relを使って
PLAIN TEXT
PERL:




$user-&#62;add_to_histories&#40;&#123; action =&#62; 'marriage' &#125;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>DBICを使っています。<br />
User has_many Histories<br />
っていう関係のテーブルUserとHistoryがあった時に、<br />
Userの行それぞれに対して、最新のHistoryをUserの行の中にキャッシュしておくと便利なときがあります。<br />
そんな時に、$user->add_to_histories ってやった時に $userもupdateしたい、という話です。</p>
<div class="igBar"><span id="lperl-11"><a href="#" onclick="javascript:showPlainTxt('perl-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-11">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CREATE TABLE user <span style="color: #66cc66;">&#40;</span>id unsigned <span style="color: #b1b100;">not</span> null auto_increment, **中略**, history unsigned <span style="color: #b1b100;">not</span> null<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CREATE TABLE history <span style="color: #66cc66;">&#40;</span>id unsigned <span style="color: #b1b100;">not</span> null auto_increment, user unsigned <span style="color: #b1b100;">not</span> null, **中略**, created_date datetime <span style="color: #b1b100;">not</span> null<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>UserのRowクラスは</p>
<div class="igBar"><span id="lperl-12"><a href="#" onclick="javascript:showPlainTxt('perl-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-12">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.perldoc.com/perl5.6/pod/func/package.html"><span style="color: #000066;">package</span></a> Schema::<span style="color: #006600;">Row</span>::<span style="color: #006600;">User</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">中略</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">__PACKAGE__-&gt;<span style="color: #006600;">has_many</span><span style="color: #66cc66;">&#40;</span> histories =&gt; <span style="color: #ff0000;">'Schema::Row::History'</span>, <span style="color: #ff0000;">'user'</span> <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>HistoryのRowクラスは</p>
<div class="igBar"><span id="lperl-13"><a href="#" onclick="javascript:showPlainTxt('perl-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-13">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.perldoc.com/perl5.6/pod/func/package.html"><span style="color: #000066;">package</span></a> Schema::<span style="color: #006600;">Row</span>::<span style="color: #006600;">History</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">中略</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">__PACKAGE__-&gt;<span style="color: #006600;">belongs_to</span><span style="color: #66cc66;">&#40;</span> user =&gt; <span style="color: #ff0000;">'Schema::Row::User'</span> <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>UserのRowクラスに追加されるadd_to_$relを使って</p>
<div class="igBar"><span id="lperl-14"><a href="#" onclick="javascript:showPlainTxt('perl-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-14">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$user</span>-&gt;<span style="color: #006600;">add_to_histories</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> action =&gt; <span style="color: #ff0000;">'marriage'</span> <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
とかってやるわけです。</p>
<p>HistoryのRowを追加する時にcreated_dateを意識せずに設定したいときとかに、<br />
HistoryのRowクラスに↓って書いておきます</p>
<div class="igBar"><span id="lperl-15"><a href="#" onclick="javascript:showPlainTxt('perl-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-15">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">sub</span> insert <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$self</span> = <a href="http://www.perldoc.com/perl5.6/pod/func/shift.html"><span style="color: #000066;">shift</span></a>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0000ff;">$self</span>-&gt;<span style="color: #006600;">created_date</span><span style="color: #66cc66;">&#40;</span> DateTime-&gt;<span style="color: #006600;">now</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">unless</span> <span style="color: #0000ff;">$self</span>-&gt;<span style="color: #006600;">created_date</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0000ff;">$self</span>-&gt;<span style="color: #006600;">next</span>::<span style="color: #006600;">method</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">@_</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.perldoc.com/perl5.6/pod/func/return.html"><span style="color: #000066;">return</span></a> <span style="color: #0000ff;">$self</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>これはよくやるんですが、同じタイミングでUserの方もupdateしたいって時に、</p>
<p>UserのRowクラスに、</p>
<div class="igBar"><span id="lperl-16"><a href="#" onclick="javascript:showPlainTxt('perl-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-16">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">sub</span> create_related <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$self</span> = <a href="http://www.perldoc.com/perl5.6/pod/func/shift.html"><span style="color: #000066;">shift</span></a>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">my</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$rel</span>, <span style="color: #0000ff;">$col_data</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #0000ff;">@_</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$ret</span> = <span style="color: #0000ff;">$self</span>-&gt;<span style="color: #006600;">next</span>::<span style="color: #006600;">method</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">@_</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$rel</span> eq <span style="color: #ff0000;">'histories'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$self</span>-&gt;<span style="color: #006600;">update</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> history =&gt; <span style="color: #0000ff;">$ret</span>-&gt;<span style="color: #006600;">id</span> <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;"># とか、$col_data-&gt;{action} とか</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.perldoc.com/perl5.6/pod/func/return.html"><span style="color: #000066;">return</span></a> <span style="color: #0000ff;">$ret</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
って書いておくと、便利だわー</p>
<p>typester++</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/dbic%e3%81%a7create_related%e3%82%92override%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[perl]32bit/64bitでメモリ使用量違うけど</title>
		<link>http://maaash.jp/perl/perl32bit64bit%e3%81%a7%e3%83%a1%e3%83%a2%e3%83%aa%e4%bd%bf%e7%94%a8%e9%87%8f%e9%81%95%e3%81%86%e3%81%91%e3%81%a9/</link>
		<comments>http://maaash.jp/perl/perl32bit64bit%e3%81%a7%e3%83%a1%e3%83%a2%e3%83%aa%e4%bd%bf%e7%94%a8%e9%87%8f%e9%81%95%e3%81%86%e3%81%91%e3%81%a9/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:39:17 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/perl32bit64bit%e3%81%a7%e3%83%a1%e3%83%a2%e3%83%aa%e4%bd%bf%e7%94%a8%e9%87%8f%e9%81%95%e3%81%86%e3%81%91%e3%81%a9/</guid>
		<description><![CDATA[同じperlのコードを、2台の違うサーバで動かした時に、やたらメモリ量が違うなぁと。
サーバ1: 50MBくらい
サーバ2: 200MBくらい
なんでだろと調べる
サーバ1で
PLAIN TEXT
CODE:




perl -V


Summary of my perl5 &#40;revision 5 version 10 subversion 0&#41; configuration:


&#160; Platform:


&#160; &#160; osname=linux, osvers=2.6.26-1-686, archname=i486-linux-gnu-thread-multi


...


&#160; &#160; use64bitint=undef, use64bitall=undef, uselongdouble=undef


...


&#160; Compiler:


&#160; &#160; cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',


&#160; &#160; optimize='-O2 -g',


&#160; &#160; cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include'


&#160; &#160; ccversion='', gccversion='4.3.2', gccosandvers=''


&#160; &#160; intsize=4, longsize=4, ptrsize=4, doublesize=8, [...]]]></description>
			<content:encoded><![CDATA[<p>同じperlのコードを、2台の違うサーバで動かした時に、やたらメモリ量が違うなぁと。</p>
<p>サーバ1: 50MBくらい<br />
サーバ2: 200MBくらい</p>
<p>なんでだろと調べる</p>
<p>サーバ1で</p>
<div class="igBar"><span id="lcode-21"><a href="#" onclick="javascript:showPlainTxt('code-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-21">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">perl -V</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Summary of my perl5 <span style="color:#006600; font-weight:bold;">&#40;</span>revision <span style="color:#800000;color:#800000;">5</span> version <span style="color:#800000;color:#800000;">10</span> subversion <span style="color:#800000;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span> configuration:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Platform:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; osname=linux, osvers=<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">6</span>.<span style="color:#800000;color:#800000;">26</span>-<span style="color:#800000;color:#800000;">1</span>-<span style="color:#800000;color:#800000;">686</span>, archname=i486-linux-gnu-thread-multi</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="">use64bitint</span>=undef, use64bitall=undef, uselongdouble=undef</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="">Compiler</span>:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cc=<span style="color:#CC0000;">'cc'</span>, ccflags =<span style="color:#CC0000;">'-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; optimize=<span style="color:#CC0000;">'-O2 -g'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cppflags=<span style="color:#CC0000;">'-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ccversion=<span style="color:#CC0000;">''</span>, gccversion=<span style="color:#CC0000;">'4.3.2'</span>, gccosandvers=<span style="color:#CC0000;">''</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; intsize=<span style="color:#800000;color:#800000;">4</span>, longsize=<span style="color:#800000;color:#800000;">4</span>, ptrsize=<span style="color:#800000;color:#800000;">4</span>, doublesize=<span style="color:#800000;color:#800000;">8</span>, byteorder=<span style="color:#800000;color:#800000;">1234</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; d_longlong=define, longlongsize=<span style="color:#800000;color:#800000;">8</span>, d_longdbl=define, longdblsize=<span style="color:#800000;color:#800000;">12</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ivtype=<span style="color:#CC0000;">'long'</span>, ivsize=<span style="color:#800000;color:#800000;">4</span>, nvtype=<span style="color:#CC0000;">'double'</span>, nvsize=<span style="color:#800000;color:#800000;">8</span>, Off_t=<span style="color:#CC0000;">'off_t'</span>, lseeksize=<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; alignbytes=<span style="color:#800000;color:#800000;">4</span>, prototype=define </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>サーバ2で</p>
<div class="igBar"><span id="lcode-22"><a href="#" onclick="javascript:showPlainTxt('code-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-22">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Summary of my perl5 <span style="color:#006600; font-weight:bold;">&#40;</span>revision <span style="color:#800000;color:#800000;">5</span> version <span style="color:#800000;color:#800000;">10</span> subversion <span style="color:#800000;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span> configuration:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Platform:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; osname=linux, osvers=<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">6</span>.<span style="color:#800000;color:#800000;">26</span>-<span style="color:#800000;color:#800000;">1</span>-vserver-amd64, archname=x86_64-linux-gnu-thread-multi</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="">use64bitint</span>=define, use64bitall=define, uselongdouble=undef</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="">Compiler</span>:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cc=<span style="color:#CC0000;">'cc'</span>, ccflags =<span style="color:#CC0000;">'-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; optimize=<span style="color:#CC0000;">'-O2 -g'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cppflags=<span style="color:#CC0000;">'-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ccversion=<span style="color:#CC0000;">''</span>, gccversion=<span style="color:#CC0000;">'4.3.2'</span>, gccosandvers=<span style="color:#CC0000;">''</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; intsize=<span style="color:#800000;color:#800000;">4</span>, longsize=<span style="color:#800000;color:#800000;">8</span>, ptrsize=<span style="color:#800000;color:#800000;">8</span>, doublesize=<span style="color:#800000;color:#800000;">8</span>, byteorder=<span style="color:#800000;color:#800000;">12345678</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; d_longlong=define, longlongsize=<span style="color:#800000;color:#800000;">8</span>, d_longdbl=define, longdblsize=<span style="color:#800000;color:#800000;">16</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ivtype=<span style="color:#CC0000;">'long'</span>, ivsize=<span style="color:#800000;color:#800000;">8</span>, nvtype=<span style="color:#CC0000;">'double'</span>, nvsize=<span style="color:#800000;color:#800000;">8</span>, Off_t=<span style="color:#CC0000;">'off_t'</span>, lseeksize=<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; alignbytes=<span style="color:#800000;color:#800000;">8</span>, prototype=define </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>longsize, ptrsizeとかが違う<br />
32bit → 64bit！</p>
<p><a href="http://iandeth.dyndns.org/mt/ian/archives/000624.html">モジュールをuseした際のメモリ使用量(増加量)を調べてみる</a>で紹介されていたGTopのスクリプトを使ってみる</p>
<p>サーバ1で</p>
<div class="igBar"><span id="lcode-23"><a href="#" onclick="javascript:showPlainTxt('code-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-23">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% script/gtop.<span style="">pl</span> <span style="color:#CC0000;">'use Catalyst'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">10</span>.5M : use Catalyst</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% script/gtop.<span style="">pl</span> <span style="color:#CC0000;">'use DBIx::Class'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;396k : use DBIx::<span style="">Class</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% script/gtop.<span style="">pl</span> <span style="color:#CC0000;">'use Moose'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Moose does not export its sugar to the <span style="color:#CC0000;">'main'</span> package.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color:#800000;color:#800000;">4</span>.6M : use Moose </div>
</li>
</ol>
</div>
</div>
</div>
<p>fmfm</p>
<p>サーバ2で</p>
<div class="igBar"><span id="lcode-24"><a href="#" onclick="javascript:showPlainTxt('code-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-24">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% script/gtop.<span style="">pl</span> <span style="color:#CC0000;">"use Catalyst"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">42</span>.6M : use Catalyst</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% script/gtop.<span style="">pl</span> <span style="color:#CC0000;">"use DBIx::Class"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;920k : use DBIx::<span style="">Class</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">% script/gtop.<span style="">pl</span> <span style="color:#CC0000;">"use Moose ()"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">17</span>.9M : use Moose <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>!!!</p>
<p>搭載してるメモリ量は4GBとかで変わらないから、<br />
リスクが無ければ32bitでコンパイルしたperlを使ったりするもんなのだろうか？</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/perl32bit64bit%e3%81%a7%e3%83%a1%e3%83%a2%e3%83%aa%e4%bd%bf%e7%94%a8%e9%87%8f%e9%81%95%e3%81%86%e3%81%91%e3%81%a9/feed/</wfw:commentRss>
		</item>
		<item>
		<title>IO::AIOお試し</title>
		<link>http://maaash.jp/perl/ioaio%e3%81%8a%e8%a9%a6%e3%81%97/</link>
		<comments>http://maaash.jp/perl/ioaio%e3%81%8a%e8%a9%a6%e3%81%97/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 23:09:14 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/ioaio%e3%81%8a%e8%a9%a6%e3%81%97/</guid>
		<description><![CDATA[AnyEvent/Coro期がわたしにもやってきましたよ。
ファイル書き込みを非同期でやりたいのでIO::AIO試してみました。
Coro::AIO使えばcallback形式ではなく綺麗に書けるようだけれどとりあえずIO::AIOの書き方で。

結果は、↓とかってなるから非同期的な感じだなぁっていうのはわかるんですが、
AnyEventの $cv->send , $cv->recv をとっぱらっても同じように動く。
なぜ？
Event loop integrationっていうのはそれが無い状態に対して、何してくれるの？
PLAIN TEXT
CODE:




perl try/anyevent_aio.pl


&#91;pre&#93; at try/anyevent_aio.pl line 5.


&#91;aft&#93; at try/anyevent_aio.pl line 13.


&#91;opened&#93;0


&#91;opened&#93;1


&#91;opened&#93;2


&#91;opened&#93;3


&#91;opened&#93;4


&#91;opened&#93;5


&#91;opened&#93;6


&#91;opened&#93;7


&#91;opened&#93;8


&#91;opened&#93;9


&#91;wrote&#93;0


&#91;wrote&#93;1


&#91;wrote&#93;2


&#91;wrote&#93;4


&#91;wrote&#93;6


&#91;wrote&#93;3


&#91;wrote&#93;7


&#91;wrote&#93;5


&#91;wrote&#93;8


&#91;closed&#93;9:0


&#91;closed&#93;8:1


&#91;closed&#93;7:2


&#91;closed&#93;6:4


&#91;closed&#93;5:6


&#91;closed&#93;4:3


&#91;closed&#93;3:7


&#91;closed&#93;2:5


&#91;wrote&#93;9


&#91;closed&#93;1:8


&#91;closed&#93;0:9 






]]></description>
			<content:encoded><![CDATA[<p>AnyEvent/Coro期がわたしにもやってきましたよ。<br />
ファイル書き込みを非同期でやりたいのでIO::AIO試してみました。</p>
<p>Coro::AIO使えばcallback形式ではなく綺麗に書けるようだけれどとりあえずIO::AIOの書き方で。<br />
<script src="http://gist.github.com/215873.js"></script></p>
<p>結果は、↓とかってなるから非同期的な感じだなぁっていうのはわかるんですが、<br />
AnyEventの $cv->send , $cv->recv をとっぱらっても同じように動く。<br />
なぜ？<br />
Event loop integrationっていうのはそれが無い状態に対して、何してくれるの？</p>
<div class="igBar"><span id="lcode-26"><a href="#" onclick="javascript:showPlainTxt('code-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-26">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">perl try/anyevent_aio.<span style="">pl</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>pre<span style="color:#006600; font-weight:bold;">&#93;</span> at try/anyevent_aio.<span style="">pl</span> line <span style="color:#800000;color:#800000;">5</span>.</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>aft<span style="color:#006600; font-weight:bold;">&#93;</span> at try/anyevent_aio.<span style="">pl</span> line <span style="color:#800000;color:#800000;">13</span>.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">5</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">6</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">7</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>opened<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">9</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">4</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">6</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">7</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">5</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">9</span>:<span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">8</span>:<span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">7</span>:<span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">6</span>:<span style="color:#800000;color:#800000;">4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">5</span>:<span style="color:#800000;color:#800000;">6</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">4</span>:<span style="color:#800000;color:#800000;">3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">3</span>:<span style="color:#800000;color:#800000;">7</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">2</span>:<span style="color:#800000;color:#800000;">5</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>wrote<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">9</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">1</span>:<span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>closed<span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#800000;color:#800000;">0</span>:<span style="color:#800000;color:#800000;">9</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/ioaio%e3%81%8a%e8%a9%a6%e3%81%97/feed/</wfw:commentRss>
		</item>
		<item>
		<title>going to Adobe MAX NA 2009</title>
		<link>http://maaash.jp/flash/going-to-adobe-max-na-2009/</link>
		<comments>http://maaash.jp/flash/going-to-adobe-max-na-2009/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:45:56 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[fitc]]></category>

		<category><![CDATA[wonderfl]]></category>

		<category><![CDATA[adobe]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://maaash.jp/flash/going-to-adobe-max-na-2009/</guid>
		<description><![CDATA[I'm going to Adobe MAX NA 2009!
to give a talk about
wonderfl build flash online, the browser-based Actionscript IDE and community
http://wonderfl.net/
at the FITC Unconference room
http://www.fitc.ca/events/schedule/?event=100
Wednesday October 7, 10:30 - 11:00
might be hard to wake up to attend a 10:30 session if you're having beer whole night long,
but FITC Unconference room has a FREE BEER for you,
so [...]]]></description>
			<content:encoded><![CDATA[<p>I'm going to Adobe MAX NA 2009!</p>
<p>to give a talk about<br />
<a href="http://www.fitc.ca/events/presentations/presentation.cfm?event=100&#038;presentation_id=1052">wonderfl build flash online, the browser-based Actionscript IDE and community</a><br />
<a href="http://wonderfl.net/" title="build flash online">http://wonderfl.net/</a></p>
<p>at the FITC Unconference room<br />
<a href="http://www.fitc.ca/events/schedule/?event=100">http://www.fitc.ca/events/schedule/?event=100</a></p>
<p>Wednesday October 7, 10:30 - 11:00</p>
<p>might be hard to wake up to attend a 10:30 session if you're having beer whole night long,<br />
but <a href="http://www.fitc.ca/events/schedule/?event=100">FITC Unconference room has a FREE BEER for you</a>,<br />
so why not have one in the morning?</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/flash/going-to-adobe-max-na-2009/feed/</wfw:commentRss>
		</item>
		<item>
		<title>おすすめのパスタレシピ本</title>
		<link>http://maaash.jp/gourmet/%e3%81%8a%e3%81%99%e3%81%99%e3%82%81%e3%81%ae%e3%83%91%e3%82%b9%e3%82%bf%e3%83%ac%e3%82%b7%e3%83%94%e6%9c%ac/</link>
		<comments>http://maaash.jp/gourmet/%e3%81%8a%e3%81%99%e3%81%99%e3%82%81%e3%81%ae%e3%83%91%e3%82%b9%e3%82%bf%e3%83%ac%e3%82%b7%e3%83%94%e6%9c%ac/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 14:57:07 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[gourmet]]></category>

		<guid isPermaLink="false">http://maaash.jp/gourmet/%e3%81%8a%e3%81%99%e3%81%99%e3%82%81%e3%81%ae%e3%83%91%e3%82%b9%e3%82%bf%e3%83%ac%e3%82%b7%e3%83%94%e6%9c%ac/</guid>
		<description><![CDATA[家で料理をすることも週末は多いので、レシピの本を何冊か持っている。
ケンタロウさんの本や、にんにくのレシピ本や他のも。
レシピ本には、たいていレシピとできあがりの画像だけ載っている。
著者によって、使う素材が違ったり、にんにくばかり使うレシピだったり。
先日ラ・ベットラ・ダ・オチアイ、という、落合さんがやってるイタリアンレストランに行って来た。
普段は長い行列のところ、何曜日だったか、その曜日に行けば並ばずに済む、という日。
スパゲッティも前菜もおいしくて、店主である落合さんの書いているレシピ本に気がついて、
ご飯を食べ終わった後しばらく読みふけり、帰ってからamazonでぽちっとした。



ラ・ベットラの定番スパゲティ (ふたりでごはん)
posted with amazlet at 09.06.13

落合 務 幻冬舎 売り上げランキング: 215921

おすすめ度の平均: 
 思ったよりシンプルでも本格的な味 やっぱりラ・ベットラ 作りやすいレシピです ちょっと残念 スパゲティを極める
Amazon.co.jp で詳細を見る



おすすめするのは、
何のためにワインを入れるのか、そしてせっかくワインを入れたのになぜ煮詰めなきゃいけないのか・・・。そういう”どうして？”をひとつひとつ解決できれば、もっとおいしい料理を作れるようになるはず。そういう理屈を知っていけば、料理はすごく楽しくなると思う。

という考えが見えるから。
そういったロジックがレシピの前後にちょろっと書いてある。
土日しか作らないから、先週つくって失敗したリベンジしようと思っても、
試行錯誤しておいしさのロジックを自分の身体で学んでいくほど味と手順を覚えていられないし、
至高の味を目指しているのにレシピの可能性は無限だ。
先人の知恵にすがるべきところ。
スパゲッティ好きな人はみんな買うといいと思います。
]]></description>
			<content:encoded><![CDATA[<p>家で料理をすることも週末は多いので、レシピの本を何冊か持っている。<br />
ケンタロウさんの本や、<a href="http://maaash.jp/taste/%E6%84%9F%E5%8B%95%E3%82%AC%E3%83%BC%E3%83%AA%E3%83%83%E3%82%AF%E3%83%88%E3%83%BC%E3%82%B9%E3%83%88%E3%83%AC%E3%82%B7%E3%83%94/">にんにくのレシピ本</a>や他のも。<br />
レシピ本には、たいていレシピとできあがりの画像だけ載っている。<br />
著者によって、使う素材が違ったり、にんにくばかり使うレシピだったり。</p>
<p>先日<a href="http://www.la-bettola.co.jp/">ラ・ベットラ・ダ・オチアイ</a>、という、落合さんがやってるイタリアンレストランに行って来た。<br />
普段は長い行列のところ、何曜日だったか、その曜日に行けば並ばずに済む、という日。<br />
スパゲッティも前菜もおいしくて、店主である落合さんの書いているレシピ本に気がついて、<br />
ご飯を食べ終わった後しばらく読みふけり、帰ってからamazonでぽちっとした。</p>
<div class="amazlet-box" style="margin-bottom:0px;">
<div class="amazlet-image" style="float:left;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4344000854/masaishere-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://ecx.images-amazon.com/images/I/41R4D19JJ8L._SL160_.jpg" alt="ラ・ベットラの定番スパゲティ (ふたりでごはん)" style="border: none;" /></a></div>
<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
<div class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4344000854/masaishere-22/ref=nosim/" name="amazletlink" target="_blank">ラ・ベットラの定番スパゲティ (ふたりでごはん)</a>
<div class="amazlet-powered-date" style="font-size:7pt;margin-top:5px;font-family:verdana;line-height:120%">posted with <a href="http://www.amazlet.com/browse/ASIN/4344000854/masaishere-22/ref=nosim/" title="ラ・ベットラの定番スパゲティ (ふたりでごはん)" target="_blank">amazlet</a> at 09.06.13</div>
</div>
<div class="amazlet-detail">落合 務 <br />幻冬舎 <br />売り上げランキング: 215921</div>
<div class="amazlet-review" style="margin-top:10px; margin-bottom:10px">
<div class="amazlet-review-average" style="margin-bottom:5px">おすすめ度の平均: <img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-4-5.gif" alt="4.5" /></div>
<p><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-5-0.gif" alt="5" /> 思ったよりシンプルでも本格的な味<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-3-0.gif" alt="3" /> やっぱりラ・ベットラ<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-5-0.gif" alt="5" /> 作りやすいレシピです<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-4-0.gif" alt="4" /> ちょっと残念<br /><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-5-0.gif" alt="5" /> スパゲティを極める</div>
<div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4344000854/masaishere-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div>
</div>
<div class="amazlet-footer" style="clear: left"></div>
</div>
<p>おすすめするのは、</p>
<blockquote><p>何のためにワインを入れるのか、そしてせっかくワインを入れたのになぜ煮詰めなきゃいけないのか・・・。そういう”どうして？”をひとつひとつ解決できれば、もっとおいしい料理を作れるようになるはず。そういう理屈を知っていけば、料理はすごく楽しくなると思う。
</p></blockquote>
<p>という考えが見えるから。<br />
そういったロジックがレシピの前後にちょろっと書いてある。</p>
<p>土日しか作らないから、先週つくって失敗したリベンジしようと思っても、<br />
試行錯誤しておいしさのロジックを自分の身体で学んでいくほど味と手順を覚えていられないし、<br />
至高の味を目指しているのにレシピの可能性は無限だ。<br />
先人の知恵にすがるべきところ。</p>
<p>スパゲッティ好きな人はみんな買うといいと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/gourmet/%e3%81%8a%e3%81%99%e3%81%99%e3%82%81%e3%81%ae%e3%83%91%e3%82%b9%e3%82%bf%e3%83%ac%e3%82%b7%e3%83%94%e6%9c%ac/feed/</wfw:commentRss>
		</item>
		<item>
		<title>県毎のiareaの数</title>
		<link>http://maaash.jp/mobile/%e7%9c%8c%e6%af%8e%e3%81%aeiarea%e3%81%ae%e6%95%b0/</link>
		<comments>http://maaash.jp/mobile/%e7%9c%8c%e6%af%8e%e3%81%aeiarea%e3%81%ae%e6%95%b0/#comments</comments>
		<pubDate>Wed, 27 May 2009 15:22:49 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://maaash.jp/mobile/%e7%9c%8c%e6%af%8e%e3%81%aeiarea%e3%81%ae%e6%95%b0/</guid>
		<description><![CDATA[memo
宮城: 4
茨城: 5
北海道: 32
福島: 4
岩手: 3
滋賀: 4
三重: 8
高知: 4
東京: 99
宮崎: 3
長野: 12
広島: 9
沖縄: 3
静岡: 15
山梨: 3
青森: 3
山形: 4
山口: 4
京都: 20
埼玉: 12
熊本: 5
福岡: 15
和歌山: 8
大阪: 27
徳島: 4
石川: 11
千葉: 10
愛媛: 4
奈良: 4
秋田: 3
兵庫: 22
神奈川: 31
富山: 5
新潟: 6
福井: 5
鹿児島: 7
岐阜: 6
大分: 5
佐賀: 2
岡山: 5
群馬: 6
島根: 6
鳥取: 3
長崎: 5
香川: 4
栃木: 6
愛知: 39
]]></description>
			<content:encoded><![CDATA[<p>memo</p>
<p>宮城: 4<br />
茨城: 5<br />
北海道: 32<br />
福島: 4<br />
岩手: 3<br />
滋賀: 4<br />
三重: 8<br />
高知: 4<br />
東京: 99<br />
宮崎: 3<br />
長野: 12<br />
広島: 9<br />
沖縄: 3<br />
静岡: 15<br />
山梨: 3<br />
青森: 3<br />
山形: 4<br />
山口: 4<br />
京都: 20<br />
埼玉: 12<br />
熊本: 5<br />
福岡: 15<br />
和歌山: 8<br />
大阪: 27<br />
徳島: 4<br />
石川: 11<br />
千葉: 10<br />
愛媛: 4<br />
奈良: 4<br />
秋田: 3<br />
兵庫: 22<br />
神奈川: 31<br />
富山: 5<br />
新潟: 6<br />
福井: 5<br />
鹿児島: 7<br />
岐阜: 6<br />
大分: 5<br />
佐賀: 2<br />
岡山: 5<br />
群馬: 6<br />
島根: 6<br />
鳥取: 3<br />
長崎: 5<br />
香川: 4<br />
栃木: 6<br />
愛知: 39</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/mobile/%e7%9c%8c%e6%af%8e%e3%81%aeiarea%e3%81%ae%e6%95%b0/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hoppyいいよ</title>
		<link>http://maaash.jp/perl/hoppy%e3%81%84%e3%81%84%e3%82%88/</link>
		<comments>http://maaash.jp/perl/hoppy%e3%81%84%e3%81%84%e3%82%88/#comments</comments>
		<pubDate>Fri, 15 May 2009 21:41:14 +0900</pubDate>
		<dc:creator>mash</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://maaash.jp/perl/hoppy%e3%81%84%e3%81%84%e3%82%88/</guid>
		<description><![CDATA[Hoppyいい
シリコンバレー行った時に参加した Flash Game Summit とかでも、FITC Toronto 2009でも、マルチプレーヤーFlash熱そうだったので自分の周りではきてる。
汎用的なXMLSocketサーバを書いた
POEとか使ったシングルプロセスシングルスレッドのデーモンでデータベース扱う時はどうするのがいいんだろう？
裏にDB扱うためだけにhttpサーバ置いてデーモンからはそれに非同期でhttpリクエストするという方法がある。
ということでまずはauthを非同期にしてみました。
http://github.com/mash/Hoppy/tree/master
$c->handlerってtcp周りのイベントのハンドラってことでいいのかな。
PLAIN TEXT
PERL:




$c-&#62;regist_service&#40;


&#160; auth =&#62; 'MyApp::Auth',


&#41;; 






ってやると $c->handler->{auth} に入るのは気のせいかと思いたかったので
s/handler/service/ してみました。めっちゃコアっぽいけどまぁいいか。
ごめんねColinちゃん。
]]></description>
			<content:encoded><![CDATA[<p>Hoppyいい<br />
シリコンバレー行った時に参加した Flash Game Summit とかでも、FITC Toronto 2009でも、マルチプレーヤーFlash熱そうだったので自分の周りではきてる。<br />
<a href="http://d.hatena.ne.jp/download_takeshi/20090425/1240641038">汎用的なXMLSocketサーバを書いた</a></p>
<p>POEとか使ったシングルプロセスシングルスレッドのデーモンでデータベース扱う時はどうするのがいいんだろう？<br />
裏にDB扱うためだけにhttpサーバ置いてデーモンからはそれに非同期でhttpリクエストするという方法がある。</p>
<p>ということでまずはauthを非同期にしてみました。<br />
<a href="http://github.com/mash/Hoppy/tree/master">http://github.com/mash/Hoppy/tree/master</a></p>
<p>$c->handlerってtcp周りのイベントのハンドラってことでいいのかな。</p>
<div class="igBar"><span id="lperl-28"><a href="#" onclick="javascript:showPlainTxt('perl-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PERL:</span>
<div id="perl-28">
<div class="perl">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$c</span>-&gt;<span style="color: #006600;">regist_service</span><span style="color: #66cc66;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; auth =&gt; <span style="color: #ff0000;">'MyApp::Auth'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ってやると $c->handler->{auth} に入るのは気のせいかと思いたかったので<br />
s/handler/service/ してみました。めっちゃコアっぽいけどまぁいいか。</p>
<p>ごめんねColinちゃん。</p>
]]></content:encoded>
			<wfw:commentRss>http://maaash.jp/perl/hoppy%e3%81%84%e3%81%84%e3%82%88/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
