<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Pokeal.COM</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/" />
    <link rel="self" type="application/atom+xml" href="http://www.pokeal.com/atom.xml" />
    <id>tag:www.pokeal.com,2007-01-06://2</id>
    <updated>2008-07-16T10:24:47Z</updated>
    <subtitle><![CDATA[The development site of  Pokeal Player - flash based virtual turntable. 
Copyright &copy; 2007 Utabi Hirokawa All rights reserved.]]></subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.1</generator>

<entry>
    <title>効率的な JavaScript</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/07/-javascript.html" />
    <id>tag:www.pokeal.com,2008://2.215</id>

    <published>2008-07-16T10:22:09Z</published>
    <updated>2008-07-16T10:24:47Z</updated>

    <summary>http://www.hyuki.com/yukiwiki/wiki.cgi?E...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="javascript" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p><a href="http://www.hyuki.com/yukiwiki/wiki.cgi?EfficientJavaScript">http://www.hyuki.com/yukiwiki/wiki.cgi?EfficientJavaScript</a></p>

<p>js構築で結構重要なことがたくさん。</p>]]>
        
    </content>
</entry>

<entry>
    <title>いまさらながらターゲット指定</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/03/post-1.html" />
    <id>tag:www.pokeal.com,2008://2.214</id>

    <published>2008-03-22T16:05:19Z</published>
    <updated>2008-03-22T16:48:55Z</updated>

    <summary>いまさらながら、イベントハンドラメソッド定義でのターゲット指定を全然理解していな...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="ActionScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p>いまさらながら、イベントハンドラメソッド定義でのターゲット指定を全然理解していなかった。<br />
イベントハンドラメソッド内は、そこはもう別の世界なんだと理解。</p>

<p>３つのボタンがあり、それぞれロールオーバーしたときに、それぞれの中でgotoAndPlayする、というものを作るばあい、</p>

<p>間違った例　：　tgtMC.gotoAndStop(&quot;over&quot;)<br />
<pre><cord><br />
for (var i = 0; i&lt;3; i++) {<br />
		var tgtMC = this[&quot;menu&quot;+i];<br />
		tgtMC.onRollOver = function() {<br />
			initButtons();<br />
			tgtMC.gotoAndStop(&quot;over&quot;);<br />
		};<br />
}<br />
</pre></cord></p>

<p>正しい例　：　this.gotoAndStop(&quot;over&quot;)<br />
<pre><cord><br />
for (var i = 0; i&lt;3; i++) {<br />
		var tgtMC = this[&quot;menu&quot;+i];<br />
		tgtMC.onRollOver = function() {<br />
			initButtons();<br />
			this.gotoAndStop(&quot;over&quot;);<br />
		};<br />
}<br />
</pre></cord></p>

<p><a href="http://www.fumiononaka.com/TechNotes/Flash/FN0601002.html">ここ</a>を読んでみて、わかったようなわからないような。というかthisが本当にわけわからない。<br />
逆に、これを記述したフレームのメソッド(initButtons())を、イベントハンドラメソッド内から使う場合、あたりまえにthisから始めると認識されない。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Pokeal Playerを何となくふっかつ</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/02/pokeal-player.html" />
    <id>tag:www.pokeal.com,2008://2.213</id>

    <published>2008-02-02T16:29:42Z</published>
    <updated>2008-02-02T16:33:34Z</updated>

    <summary>なんとなく復活させてみた。ログインできない、検索できない、全然すすんでない。とい...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="ActionScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Pokeal Player" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.pokeal.com/images/pokealimg.html" onclick="window.open('http://www.pokeal.com/images/pokealimg.html','popup','width=672,height=614,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.pokeal.com/images/pokealimg-thumb-200x182.jpg" width="200" height="182" alt="pokealimg.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>なんとなく復活させてみた。ログインできない、検索できない、全然すすんでない。というかAS3でpopforge使って書き直すのが当面の目標。</p>

<p>なんとなく復活版は<a href="http://www.pokeal.com/categories/pokeal-player/pokealplayer_ver028.html">こちら</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Flash CS3 でゼロからはじめよう　 AIRアプリケーション作成講座 Vol.1</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/02/flash-cs3-air-vol1.html" />
    <id>tag:www.pokeal.com,2008://2.208</id>

    <published>2008-01-31T15:35:51Z</published>
    <updated>2008-02-01T14:05:54Z</updated>

    <summary>AIR開発しようといろいろ試行錯誤してるけど、Flash CS3を使うのが超早く...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="ActionScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Adobe AIR" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.pokeal.com/%E7%84%A1%E9%A1%8C.html" onclick="window.open('http://www.pokeal.com/%E7%84%A1%E9%A1%8C.html','popup','width=1024,height=768,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.pokeal.com/無題-thumb-200x150.jpg" width="200" height="150" alt="browser.jpg" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span>AIR開発しようといろいろ試行錯誤してるけど、Flash CS3を使うのが超早くて便利。<br />
アプリケーション作成までボタンだけで操作可能。</p>

<p>ということで、<a href="http://www.adobe.com/jp/newsletters/edge/september2007/articles/article2/index.html"> Flash CS3 でゼロからはじめよう　AIRアプリケーション作成講座 Vol.1</a><br />
に挑戦してみたところ、なんとブラウザもどきがあっという間に完成した。<br />
今回もAIR Beta3アップデートによる修正が必要だった。</p>

<p><code><pre><br />
import flash.html.HTMLLoader;<br />
import flash.net.URLRequest;</p>

<p>//読み込む外部HTMLデータの設定<br />
var urlReq:URLRequest = new URLRequest(&quot;http://www.apple.com/jp/&quot;);</p>

<p>//HTMLデータの読み込みと表示設定<br />
var html:HTMLLoader = new HTMLLoader();<br />
html.width = stage.stageWidth;<br />
html.height = stage.stageHeight;<br />
html.load(urlReq);</p>

<p>//表示処理<br />
this.addChild(html);<br />
</code></pre></p>

<p>とりあえず最初のサンプルだけやってみた。<br />
修正はHTMLControlをHTMLLoaderにするだけ。</p>

<p>本当にブラウザにしてしまうには、たくさんコードを書く必要があるが、ここには可能性を感じる。<br />
例えばファイルをアップするときに、いちいちファイル選択ダイアログを開いて...とやらなくてもドラッグ＆ドロップだけで済んでしまう。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Movable Type 4.1</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/movable-type-41.html" />
    <id>tag:www.pokeal.com,2008://2.207</id>

    <published>2008-01-24T15:15:37Z</published>
    <updated>2008-01-24T15:23:35Z</updated>

    <summary>Movable Typeを4.1にアップデートした。 今回の新機能で注目すべきな...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p><a href="http://www.sixapart.jp/movabletype/">Movable Type</a>を4.1にアップデートした。<br />
今回の新機能で注目すべきなのは、何といってもカスタムフィールド。<br />
待ちに待っていた標準機能。</p>

<p>フィールドを自分なりにカスタムするには、今までは<a href="http://www.staggernation.com/mtplugins/RightFields/">rightfield</a>か<a href="http://plugins.movalog.com/customfields/">customfields</a>などを使うしかなかったが、これが標準装備されたことになる。</p>

<p>使い勝手もなかなかよさそうなので、後日ポキールを復活させる予定。</p>]]>
        
    </content>
</entry>

<entry>
    <title>flashでhttpsサーバにアクセスする場合の注意</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/flashhttps.html" />
    <id>tag:www.pokeal.com,2008://2.206</id>

    <published>2008-01-23T12:10:48Z</published>
    <updated>2008-01-23T16:23:15Z</updated>

    <summary>FlashからXMLやphpなどのデータを取得する場合、おなじみクロスドメインが...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="ActionScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p>FlashからXMLやphpなどのデータを取得する場合、おなじみクロスドメインが必要。<br />
書き方はこんな感じ</p>

<p><cord><pre><br />
&lt;?xml version=&quot;1.0&quot;?&gt;<br />
&lt;!DOCTYPE cross-domain-policy SYSTEM &quot;http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd&quot;&gt;<br />
&lt;cross-domain-policy &gt;<br />
    &lt;allow-access-from domain=&quot;*.yourflashpage.co.jp&quot; secure=&quot;false&quot;/&gt;<br />
&lt;/cross-domain-policy&gt;<br />
</pre></cord></p>

<p>普通のクロスドメインと違うところは、<br />
secure="false"<br />
が必要だという点。<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Mind Hacksに出てくるURL一覧</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/mind-hacksurl.html" />
    <id>tag:www.pokeal.com,2008://2.205</id>

    <published>2008-01-19T13:12:44Z</published>
    <updated>2008-01-19T13:31:43Z</updated>

    <summary>O&apos;REILLY出版「Mind Hacks」を読んでいる。URLがたくさん出てく...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="ハック" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p>O'REILLY出版「Mind Hacks」を読んでいる。URLがたくさん出てくるので、<br />
<a href="http://www.oreilly.co.jp/books/4873112710/links.html">http://www.oreilly.co.jp/books/4873112710/links.html</a><br />
から引用。さらに自分用にカスタムしていく予定。</p>

<p><br />
<UL><H3>1章　脳の構造</H3><br />
[Hack #1]　脳のはたらきを外から調べる<br />
<UL><br />
<LI><A HREF="http://www.oreilly.co.jp/books/4873111366/">http://www.oreilly.co.jp/books/4873111366/</A></LI><br />
<LI><A HREF="http://pp.kpnet.fi/seirioa/cdenn/cogscirv.htm">http://pp.kpnet.fi/seirioa/cdenn/cogscirv.htm</A></LI><br />
</UL><br />
[Hack #2]　EEG</LI><br />
<UL><br />
<LI><A HREF="http://openeeg.sourceforge.net">http://openeeg.sourceforge.net</A></LI><br />
</UL><br />
[Hack #5]　TMS：脳内の電気的活動を人為的に操作する</p>

<p><UL><br />
<LI><A HREF="http://www.nytimes.com/2003/06/22/magazine/22SAVANT.html">http://www.nytimes.com/2003/06/22/magazine/22SAVANT.html</A></LI><br />
<LI><A HREF="http://www.cognitiveliberty.org/neuro/TMS_NYT.html">http://www.cognitiveliberty.org/neuro/TMS_NYT.html</A><br />
</UL></LI><br />
[Hack #6]　fMRI：最先端の映像化技術<br />
<UL><br />
<LI><A HREF="http://www.csicop.org/si/9903/ten-percent-myth.html">http://www.csicop.org/si/9903/ten-percent-myth.html</A></LI><br />
<LI><A HREF="http://www.snopes.com/science/stats/10percnt.htm">http://www.snopes.com/science/stats/10percnt.htm</A></LI><br />
<LI><A HREF="http://faculty.washington.edu/chudler/tenper.html">http://faculty.washington.edu/chudler/tenper.html</A></LI><br />
<LI><A HREF="http://www.brainconnection.com/topics/?main=fa/brain-myth">http://www.brainconnection.com/topics/?main=fa/brain-myth</A></LI><br />
</UL></p>

<p>[Hack #7]　中枢神経系<br />
<UL><br />
<LI><A HREF="http://www.med.harvard.edu/AANLIB/home.html">http://www.med.harvard.edu/AANLIB/home.html</A></LI><br />
<LI><A HREF="http://www.msu.edu/~brains/humanatlas">http://www.msu.edu/~brains/humanatlas</A></LI><br />
<LI><A HREF="http://braininfo.rprc.washington.edu/mainmenu.html">http://braininfo.rprc.washington.edu/mainmenu.html</A></LI><br />
<LI><A HREF="http://brainmuseum.org">http://brainmuseum.org</A></LI><br />
<LI><A HREF="http://www.brainvoyager.com">http://www.brainvoyager.com</A></LI><br />
</UL><br />
[Hack #9]　ニューロン<br />
<UL><br />
<LI><A HREF="http://www.ncbi.nlm.nih.gov/books/bv.fcgi?call=bv.View..ShowSection&rid=mcb.chapter.6074">http://www.ncbi.nlm.nih.gov/books/bv.fcgi?call=bv.View..ShowSection&rid=mcb.chapter.6074</A></LI></p>

<p><LI><A HREF="http://www.foresight.gov.uk/cognitive.html">http://www.foresight.gov.uk/cognitive.html</A></LI><br />
<LI><A HREF="http://members.aol.com/Bio50/LecNotes/lecnot11.html">http://members.aol.com/Bio50/LecNotes/lecnot11.html</A></LI><br />
<LI><A HREF="http://www.thebrain.mcgill.ca/flash/index_a.html">http://www.thebrain.mcgill.ca/flash/index_a.html</A></LI><br />
<LI><A HREF="http://www.thebrain.mcgill.ca/flash/a/a_01/a_01_m/a_01_m_fon/a_01_m_fon.html">http://www.thebrain.mcgill.ca/flash/a/a_01/a_01_m/a_01_m_fon/a_01_m_fon.html</A></LI><br />
<LI><A HREF="http://www.ninds.nih.gov/health_and_medical/pubs/NINDS_Neuron.htm">http://www.ninds.nih.gov/health_and_medical/pubs/NINDS_Neuron.htm</A></LI><br />
</UL><br />
[Hack #12]　感覚性ホムンクルスを作ってみる<br />
<UL><br />
<LI><A HREF="http://www.cs.uta.fi/~jh/homunculus.html">http://www.cs.uta.fi/~jh/homunculus.html</A></LI><br />
<LI><A HREF="http://owen.nhm.ac.uk/piclib/www/image.php?img=87494&cat=6">http://owen.nhm.ac.uk/piclib/www/image.php?img=87494&cat=6</A></LI></p>

<p></UL><br />
</UL><br />
<UL><H3>2章　視覚</H3><br />
[Hack #14]　解像度<br />
<UL><br />
<LI><A HREF="http://www.exploratorium.edu/snacks/peripheral_vision.html">http://www.exploratorium.edu/snacks/peripheral_vision.html</A></LI><br />
<LI><A HREF="http://psy.ucsd.edu/~sanstis/SABlur.html">http://psy.ucsd.edu/~sanstis/SABlur.html</A></LI><br />
<LI><A HREF="http://hyperphysics.phy-astr.gsu.edu/hbase/hph.html">http://hyperphysics.phy-astr.gsu.edu/hbase/hph.html</A></LI><br />
<LI><A HREF="http://hyperphysics.phy-astr.gsu.edu/hbase/vision/rodcone.html">http://hyperphysics.phy-astr.gsu.edu/hbase/vision/rodcone.html</A></LI><br />
<LI><A HREF="http://white.stanford.edu/~brian/numbers/node1.html">http://white.stanford.edu/~brian/numbers/node1.html</A></LI><br />
<LI><A HREF="http://webvision.med.utah.edu/facts.html">http://webvision.med.utah.edu/facts.html</A></LI></p>

<p></UL><br />
[Hack #15]　能動的な視覚<br />
<UL><br />
<LI><A HREF="http://www.poynterextra.org/eyetrack2004/">http://www.poynterextra.org/eyetrack2004/</A></LI><br />
<LI><A HREF="http://ilab.usc.edu/bu">http://ilab.usc.edu/bu</A></LI><br />
<LI><A HREF="http://www.personal.psu.edu/users/e/l/elm173/schlwork/semester3/psych/complete.htm">http://www.personal.psu.edu/users/e/l/elm173/schlwork/semester3/psych/complete.htm</A></LI><br />
</UL><br />
[Hack #16]　盲点を探す<br />
<UL><br />
<LI><A HREF="http://serendip.brynmawr.edu/bb/blindspot">http://serendip.brynmawr.edu/bb/blindspot</A></LI><br />
<LI><A HREF="http://www.exploratorium.edu/snacks/cheshire_cat.html">http://www.exploratorium.edu/snacks/cheshire_cat.html</A></LI><br />
<LI><A HREF="http://serendip.brynmawr.edu/bb/blindspot1.html">http://serendip.brynmawr.edu/bb/blindspot1.html</A></LI></p>

<p></UL><br />
[Hack #20]　平面に奥行きを見る<br />
<UL><br />
<LI><A HREF="http://www.kare.com/MakePortfolioPage.cgi?page=6">http://www.kare.com/MakePortfolioPage.cgi?page=6</A></LI><br />
<LI><A HREF="http://psy.ucsd.edu/~sanstis/SAStocking.htm">http://psy.ucsd.edu/~sanstis/SAStocking.htm</A></LI><br />
</UL><br />
[Hack #21]　光源は動かない<br />
<UL><br />
<LI><A HREF="http://gandalf.psych.umn.edu/~kersten/kersten-lab/images/ball-in-a-box.mov">http://gandalf.psych.umn.edu/~kersten/kersten-lab/images/ball-in-a-box.mov</A></LI><br />
<LI><A HREF="http://gandalf.psych.umn.edu/~kersten/kersten-lab/demos/BallInaBox.mov">http://gandalf.psych.umn.edu/~kersten/kersten-lab/demos/BallInaBox.mov</A></LI><br />
<LI><A HREF="http://www.kyb.tue.mpg.de/links/demo.html">http://www.kyb.tue.mpg.de/links/demo.html</A></LI><br />
<LI><A HREF="http://gandalf.psych.umn.edu/~kersten/kersten-lab">http://gandalf.psych.umn.edu/~kersten/kersten-lab</A></LI></p>

<p><LI><A HREF="http://gandalf.psych.umn.edu/~kersten/kersten-lab/images/kersten-shadow-cine.mov">http://gandalf.psych.umn.edu/~kersten/kersten-lab/images/kersten-shadow-cine.mov</A></LI><br />
</UL><br />
[Hack #22]　三次元認識<br />
<UL><br />
<LI><A HREF="http://www.bardel.info/downloads/Depth_cues.pdf">http://www.bardel.info/downloads/Depth_cues.pdf</A></LI><br />
<LI><A HREF="http://www.ultimatesymbol.com">http://www.ultimatesymbol.com</A></LI><br />
</UL><br />
[Hack #23]　明るさと輝度<br />
<UL><br />
<LI><A HREF="http://web.mit.edu/persci/people/adelson/checkershadow_illusion.html">http://web.mit.edu/persci/people/adelson/checkershadow_illusion.html</A></LI><br />
<LI><A HREF="http://www.michaelbach.de/ot/lum_adelson_check_shadow">http://www.michaelbach.de/ot/lum_adelson_check_shadow</A></LI><br />
</UL></p>

<p>[Hack #24]　プルフリッヒ効果<br />
<UL><br />
<LI><A HREF="http://www.combsmusic.com/RosesReview.html">http://www.combsmusic.com/RosesReview.html</A></LI><br />
<LI><A HREF="http://www.siu.edu/~pulfrich">http://www.siu.edu/~pulfrich</A></LI><br />
</UL><br />
[Hack #25]　動かないものが動く<br />
<UL><br />
<LI><A HREF="http://www.biols.susx.ac.uk/home/George_Mather/Motion/MAE.HTML">http://www.biols.susx.ac.uk/home/George_Mather/Motion/MAE.HTML</A></LI><br />
<LI><A HREF="http://www.at-bristol.org.uk/Optical/AfterEffects_main.htm">http://www.at-bristol.org.uk/Optical/AfterEffects_main.htm</A></LI><br />
<LI><A HREF="http://www.naturalhighs.net/waterfalls/illusion.htm">http://www.naturalhighs.net/waterfalls/illusion.htm</A></LI><br />
<LI><A HREF="http://psylux.psych.tu-dresden.de/i1/kaw/diverses%20Material/www.illusionworks.com/html/motion_aftereffect.html">http://psylux.psych.tu-dresden.de/i1/kaw/diverses%20Material/www.illusionworks.com/html/motion_aftereffect.html</A></LI></p>

<p></UL><br />
[Hack #26]　順応<br />
<UL><br />
<LI><A HREF="http://faculty.washington.edu/chudler/chems.html">http://faculty.washington.edu/chudler/chems.html</A></LI><br />
</UL><br />
[Hack #27]　動かないものを動かす<br />
<UL><br />
<LI><A HREF="http://www.psych.purdue.edu/~coglab/VisLab/ApparentMotion/AM.html">http://www.psych.purdue.edu/~coglab/VisLab/ApparentMotion/AM.html</A></LI><br />
<LI><A HREF="http://www.cs.tufts.edu/~kreisman/phi/index.html">http://www.cs.tufts.edu/~kreisman/phi/index.html</A></LI><br />
<LI><A HREF="http://ase.tufts.edu/cogstud/papers/multdrft.htm">http://ase.tufts.edu/cogstud/papers/multdrft.htm</A></LI><br />
<LI><A HREF="http://epmalab.uoregon.edu/writings/Chapter%205%20summary.pdf">http://epmalab.uoregon.edu/writings/Chapter%205%20summary.pdf</A></LI><br />
<LI><A HREF="http://gregegan.customer.netspace.net.au/BIBLIOGRAPHY/Online.html">http://gregegan.customer.netspace.net.au/BIBLIOGRAPHY/Online.html</A></LI></p>

<p></UL><br />
[Hack #28]　閃光遅延現象<br />
<UL><br />
<LI><A HREF="http://www.michaelbach.de/ot/mot_flashlag1">http://www.michaelbach.de/ot/mot_flashlag1</A></LI><br />
<LI><A HREF="http://nba.uth.tmc.edu/homepage/eagleman/flashlag">http://nba.uth.tmc.edu/homepage/eagleman/flashlag</A></LI><br />
<LI><A HREF="http://nba.uth.tmc.edu/homepage/eagleman/flashlag/r1.html">http://nba.uth.tmc.edu/homepage/eagleman/flashlag/r1.html</A></LI><br />
<LI><A HREF="http://fisio.icb.usp.br/~vinicius/Public_pdf/Baldo_Ranvaud_Morya.pdf">http://fisio.icb.usp.br/~vinicius/Public_pdf/Baldo_Ranvaud_Morya.pdf</A></LI><br />
</UL><br />
[Hack #29]　足踏み錯覚<br />
<UL><br />
<LI><A HREF="http://psy.ucsd.edu/~sanstis/Foot.html">http://psy.ucsd.edu/~sanstis/Foot.html</A></LI><br />
<LI><A HREF="http://www.michaelbach.de/ot/mot_feet_lin">http://www.michaelbach.de/ot/mot_feet_lin</A></LI></p>

<p><LI><A HREF="http://psy.ucsd.edu/~sanstis/SAPub.html">http://psy.ucsd.edu/~sanstis/SAPub.html</A></LI><br />
<LI><A HREF="http://psy.ucsd.edu~sanstis/PDFs/YorkChapter.pdf">http://psy.ucsd.edu~sanstis/PDFs/YorkChapter.pdf</A></LI><br />
</UL><br />
[Hack #30]　蛇の回転<br />
<UL><br />
<LI><A HREF="http://www.ritsumei.ac.jp/~akitaoka/index-e.html">http://www.ritsumei.ac.jp/~akitaoka/index-e.html</A></LI><br />
<LI><A HREF="http://viperlib.york.ac.uk/Pimages/Lightness-Brightness/Shading/8cycles.DtoL.CW.jpg">http://viperlib.york.ac.uk/Pimages/Lightness-Brightness/Shading/8cycles.DtoL.CW.jpg</A></LI><br />
<LI><A HREF="http://www.ritsumei.ac.jp/~akitaoka/index-j.html">http://www.ritsumei.ac.jp/~akitaoka/index-j.html</A></LI><br />
<LI><A HREF="http://web.sfn.org">http://web.sfn.org</A></LI><br />
<LI><A HREF="http://mathworld.wolfram.com/OuchiIllusion.html">http://mathworld.wolfram.com/OuchiIllusion.html</A></LI></p>

<p></UL><br />
[Hack #31]　想像の世界<br />
<UL><br />
<LI><A HREF="http://www.uwm.edu/People/johnchay/mrp.htm">http://www.uwm.edu/People/johnchay/mrp.htm</A></LI><br />
<LI><A HREF="http://www.sparknotes.com/psychology/cognitive/perception/section1.html">http://www.sparknotes.com/psychology/cognitive/perception/section1.html</A></LI><br />
</UL><br />
[Hack #33]　役立つノイズ<br />
<UL><br />
<LI><A HREF="http://neurodyn.umsl.edu/sr/">http://neurodyn.umsl.edu/sr/</A></LI><br />
</UL><br />
</UL><br />
<UL><H3>3章　注意</H3><br />
<UL></p>

<p><A HREF="http://plato.stanford.edu/entries/james">http://plato.stanford.edu/entries/james</A></LI><br />
</UL><br />
[Hack #35]　サビタイジング<br />
<UL><br />
<LI><A HREF="http://www.hps.cam.ac.uk/readinglists/p5mcm-2.html">http://www.hps.cam.ac.uk/readinglists/p5mcm-2.html</A></LI><br />
</UL><br />
[Hack #36]　物体の追跡<br />
<UL><br />
<LI><A HREF="http://ruccs.rutgers.edu/finstlab/demos.htm">http://ruccs.rutgers.edu/finstlab/demos.htm</A></LI><br />
<LI><A HREF="http://ruccs.rutgers.edu/finstlab/mot.mov">http://ruccs.rutgers.edu/finstlab/mot.mov</A></LI><br />
<LI><A HREF="http://ruccs.rutgers.edu/finstlab/mot-occ-occlusion.mov">http://ruccs.rutgers.edu/finstlab/mot-occ-occlusion.mov</A></LI><br />
<LI><A HREF="http://ruccs.rutgers.edu/finstlab/mot-occ-virtocc.mov">http://ruccs.rutgers.edu/finstlab/mot-occ-virtocc.mov</A></LI></p>

<p><LI><A HREF="http://ruccs.rutgers.edu/finstlab/mot-occ-implosion.mov">http://ruccs.rutgers.edu/finstlab/mot-occ-implosion.mov</A></LI><br />
<LI><A HREF="http://ruccs.rutgers.edu/finstlab/ZPPublications.htm">http://ruccs.rutgers.edu/finstlab/ZPPublications.htm</A></LI><br />
</UL><br />
[Hack #37]　無意識の注意<br />
<UL><br />
<LI><A HREF="http://www.bbc.co.uk/radio4/reith2003/lecture2.shtml">http://www.bbc.co.uk/radio4/reith2003/lecture2.shtml</A></LI><br />
</UL><br />
[Hack #38]　後ろは振り返らない<br />
<UL><br />
<LI><A HREF="http://www.spymuseum.org/games/mole.html">http://www.spymuseum.org/games/mole.html</A></LI><br />
</UL><br />
[Hack #39]　注意の瞬き<br />
<UL></p>

<p><LI><A HREF="http://www.flashreader.com">http://www.flashreader.com</A></LI><br />
<LI><A HREF="http://www.icebreaker.net/gnomersvp">http://www.icebreaker.net/gnomersvp</A></LI><br />
<LI><A HREF="http://krsvp.sourceforge.net">http://krsvp.sourceforge.net</A></LI><br />
</UL><br />
[Hack #40]　変化盲<br />
<UL><br />
<LI><A HREF="http://www.mindhacks.com/book/44/changeblindness.gif">http://www.mindhacks.com/book/44/changeblindness.gif</A></LI><br />
<LI><A HREF="http://nivea.psycho.univ-paris5.fr/ASSChtml/couple.gif">http://nivea.psycho.univ-paris5.fr/ASSChtml/couple.gif</A></LI><br />
<LI><A HREF="http://nivea.psycho.univ-paris5.fr/ASSChtml/dottedline.gif">http://nivea.psycho.univ-paris5.fr/ASSChtml/dottedline.gif</A></LI><br />
<LI><A HREF="http://viscog.beckman.uiuc.edu/djs_lab/demos.html">http://viscog.beckman.uiuc.edu/djs_lab/demos.html</A></LI></p>

<p><LI><A HREF="http://nivea.psycho.univ-paris5.fr/ASSChtml/ASSC.html">http://nivea.psycho.univ-paris5.fr/ASSChtml/ASSC.html</A></LI><br />
</UL><br />
[Hack #41]　不注意による盲目<br />
<UL><br />
<LI><A HREF="http://viscog.beckman.uiuc.edu/media/mindhacks.html">http://viscog.beckman.uiuc.edu/media/mindhacks.html</A></LI><br />
<LI><A HREF="http://viscog.beckman.uiuc.edu/reprints/index.php">http://viscog.beckman.uiuc.edu/reprints/index.php</A></LI><br />
</UL><br />
[Hack #42]　オオカミ少年は信じてもらえない<br />
<UL><br />
<LI><A HREF="http://eis.bris.ac.uk/~psmfed/papers/np.html">http://eis.bris.ac.uk/~psmfed/papers/np.html</A></LI><br />
<LI><A HREF="http://www.psych.utoronto.ca/~hasher/abstracts/may_95.htm">http://www.psych.utoronto.ca/~hasher/abstracts/may_95.htm</A></LI><br />
<LI><A HREF="http://www.l.u-tokyo.ac.jp/AandC/HLV/DataBase/NP/intro.html">http://www.l.u-tokyo.ac.jp/AandC/HLV/DataBase/NP/intro.html</A></LI></p>

<p></UL><br />
[Hack #43]　テレビゲームによる訓練<br />
<UL><br />
<LI><A HREF="http://www.bcs.rochester.edu/people/daphne/visual.html">http://www.bcs.rochester.edu/people/daphne/visual.html</A></LI><br />
<LI><A HREF="http://www.bootstrap.org/augdocs/friedewald030402/augmentinghumanintellect/ahi62index.html">http://www.bootstrap.org/augdocs/friedewald030402/augmentinghumanintellect/ahi62index.html</A></LI><br />
</UL><br />
</UL><br />
<UL><H3>4章　聴覚と言語</H3><br />
[Hack #44]　「タイミング」に敏感な聴覚<br />
<UL><br />
<LI><A HREF="http://www.mindhacks.com/book/44/24Hz.mp3">http://www.mindhacks.com/book/44/24Hz.mp3</A></LI><br />
<LI><A HREF="http://www.mindhacks.com/book/44/48Hz.mp3">http://www.mindhacks.com/book/44/48Hz.mp3</A></LI></p>

<p><LI><A HREF="http://www.mindhacks.com/book/44/96Hz.mp3">http://www.mindhacks.com/book/44/96Hz.mp3</A></LI><br />
</UL><br />
[Hack #45]　音源の位置の特定<br />
<UL><br />
<LI><A HREF="http://www.soundalert.com/pdfs/impact.pdf">http://www.soundalert.com/pdfs/impact.pdf</A></LI><br />
</UL><br />
[Hack #46]　音の高さ<br />
<UL><br />
<LI><A HREF="http://physics.mtsu.edu/~wmr/julianna.html">http://physics.mtsu.edu/~wmr/julianna.html</A></LI><br />
<LI><A HREF="http://www.umaine.edu/visualperception/summer">http://www.umaine.edu/visualperception/summer</A></LI><br />
<LI><A HREF="http://www.design.kyushu-u.ac.jp/~ynhome/JPN/Demo/illusions2nd.html">http://www.design.kyushu-u.ac.jp/~ynhome/JPN/Demo/illusions2nd.html</A></LI><br />
<LI><A HREF="http://133.5.113.80/~ynhome/JPN/Demo/2nd/03.html">http://133.5.113.80/~ynhome/JPN/Demo/2nd/03.html</A></LI></p>

<p></UL><br />
[Hack #48]　ランダムなパターンから意味を読み取る<br />
<UL><br />
<LI><A HREF="http://www.mindhacks.com/book/48/whitechristmas.mp3">http://www.mindhacks.com/book/48/whitechristmas.mp3</A></LI><br />
</UL><br />
[Hack #49]　言語の理解<br />
<UL><br />
<LI><A HREF="http://www.hei.org/research/depts/aip/audiodemos.htm">http://www.hei.org/research/depts/aip/audiodemos.htm</A></LI><br />
<LI><A HREF="http://www.hei.org/research/depts/aip/increase_channels.mp3">http://www.hei.org/research/depts/aip/increase_channels.mp3</A></LI><br />
<LI><A HREF="http://www.biols.susx.ac.uk/home/Chris_Darwin/SWS">http://www.biols.susx.ac.uk/home/Chris_Darwin/SWS</A></LI><br />
</UL><br />
[Hack #50]　「音」の持つ意味<br />
<UL></p>

<p><LI><A HREF="http://www.catb.org/~esr/jargon/html/F/frobnicate.html">http://www.catb.org/~esr/jargon/html/F/frobnicate.html</A></LI><br />
<LI><A HREF="http://www.catb.org/~esr/jargon/index.html">http://www.catb.org/~esr/jargon/index.html</A></LI><br />
<LI><A HREF="http://psy.ucsd.edu/chip/pdf/Synaesth_JCS.pdf">http://psy.ucsd.edu/chip/pdf/Synaesth_JCS.pdf</A></LI><br />
<LI><A HREF="http://www.stanford.edu/class/linguist34/Unit_08/blackberry.htm">http://www.stanford.edu/class/linguist34/Unit_08/blackberry.htm</A></LI><br />
<LI><A HREF="http://www.wired.com/wired/archive/5.06/es_namemachine.html">http://www.wired.com/wired/archive/5.06/es_namemachine.html</A></LI><br />
</UL><br />
[Hack #51]　フレーズとバッファ<br />
<UL><br />
<LI><A HREF="http://cogprints.ecs.soton.ac.uk/archive/00000623">http://cogprints.ecs.soton.ac.uk/archive/00000623</A></LI><br />
</UL><br />
[Hack #52]　エラーに強い並列処理</p>

<p><UL><br />
<LI><A HREF="http://www.mrc-cbu.cam.ac.uk/personal/matt.davis/Cmabrigde">http://www.mrc-cbu.cam.ac.uk/personal/matt.davis/Cmabrigde</A></LI><br />
<LI><A HREF="http://cognitrn.psych.indiana.edu/rgoldsto/cogsci/Feldman.pdf">http://cognitrn.psych.indiana.edu/rgoldsto/cogsci/Feldman.pdf</A></LI><br />
</UL><br />
</UL><br />
<UL><H3>5章　感覚どうしの関係</H3><br />
[Hack #53]　視覚と聴覚の連携<br />
<UL><br />
<LI><A HREF="http://neuro.caltech.edu/~lshams/demo.html">http://neuro.caltech.edu/~lshams/demo.html</A></LI><br />
<LI><A HREF="http://www.niceproject.com/publications/CACM04.pdf">http://www.niceproject.com/publications/CACM04.pdf</A></LI><br />
</UL><br />
[Hack #55]　ストループ効果</p>

<p><UL><br />
<LI><A HREF="http://psychclassics.yorku.ca/Stroop">http://psychclassics.yorku.ca/Stroop</A></LI><br />
<LI><A HREF="http://faculty.washington.edu/chudler/java/ready.html">http://faculty.washington.edu/chudler/java/ready.html</A></LI><br />
<LI><A HREF="http://faculty.washington.edu/chudler/java/ready3.html">http://faculty.washington.edu/chudler/java/ready3.html</A></LI><br />
<LI><A HREF="http://faculty.washington.edu/chudler/neurok.html">http://faculty.washington.edu/chudler/neurok.html</A></LI><br />
</UL><br />
[Hack #56]　方向への反応<br />
<UL><br />
<LI><A HREF="http://www.nici.ru.nl/~ardiroel/Rts.htm">http://www.nici.ru.nl/~ardiroel/Rts.htm</A></LI><br />
</UL><br />
[Hack #57]　複数の感覚情報の組み合わせ<br />
<UL></p>

<p><LI><A HREF="http://www.psych.ox.ac.uk/xmodal/default.htm">http://www.psych.ox.ac.uk/xmodal/default.htm</A></LI><br />
</UL><br />
[Hack #59]　目で聴く（マガーク効果）<br />
<UL><br />
<LI><A HREF="http://www.media.uio.no/personer/arntm/McGurk_english.html">http://www.media.uio.no/personer/arntm/McGurk_english.html</A></LI><br />
<LI><A HREF="http://ccms.ntu.edu.tw/~karchung/Phonetics%20II%20page%20seventeen.htm">http://ccms.ntu.edu.tw/~karchung/Phonetics%20II%20page%20seventeen.htm</A></LI><br />
</UL><br />
[Hack #61]　2つの声の聞き分け<br />
<UL><br />
<LI><A HREF="http://www.wjh.harvard.edu/~lds">http://www.wjh.harvard.edu/~lds</A></LI><br />
<LI><A HREF="http://www.abacon.com/berk/ica/research.html">http://www.abacon.com/berk/ica/research.html</A></LI><br />
</UL></p>

<p></UL><br />
<UL><H3>6章　運動</H3><br />
[Hack #69]　右脳と左脳<br />
<UL><br />
<LI><A HREF="http://perception.st-and.ac.uk/hemispheric/explanation.html">http://perception.st-and.ac.uk/hemispheric/explanation.html</A></LI><br />
<LI><A HREF="http://www.michaelparker.com">http://www.michaelparker.com</A></LI><br />
<LI><A HREF="http://perception.st-and.ac.uk">http://perception.st-and.ac.uk</A></LI><br />
<LI><A HREF="http://web.archive.org/web/20040214164445/http://www.btinternet.com/~neuronaut/webtwo_features_leftbrain.html">http://web.archive.org/web/20040214164445/http://www.btinternet.com/~neuronaut/webtwo_features_leftbrain.html</A></LI><br />
<LI><A HREF="http://www.abc.net.au/rn/science/mind/stories/s1137394.htm">http://www.abc.net.au/rn/science/mind/stories/s1137394.htm</A></LI><br />
<LI><A HREF="http://faculty.washington.edu/chudler/split.html">http://faculty.washington.edu/chudler/split.html</A></LI></p>

<p><LI><A HREF="http://members.aol.com/sakrug/dualbrain.html">http://members.aol.com/sakrug/dualbrain.html</A></LI><br />
</UL><br />
</UL><br />
<UL><H3>7章　推論</H3><br />
[Hack #70]　人間は数字が苦手<br />
<UL><br />
<LI><A HREF="http://www-gap.dcs.st-and.ac.uk/~history/HistTopics/Zero.html">http://www-gap.dcs.st-and.ac.uk/~history/HistTopics/Zero.html</A></LI><br />
</UL><br />
[Hack #71]　確率より頻度<br />
<UL><br />
<LI><A HREF="http://www.oakland.edu/enp">http://www.oakland.edu/enp</A></LI><br />
<LI><A HREF="http://ams.allenpress.com/pdfserv/i1520-0477-080-07-1385.pdf">http://ams.allenpress.com/pdfserv/i1520-0477-080-07-1385.pdf</A></LI></p>

<p><LI><A HREF="http://bmj.bmjjournals.com/cgi/reprint/327/7417/741">http://bmj.bmjjournals.com/cgi/reprint/327/7417/741</A></LI><br />
<LI><A HREF="http://www.cut-the-knot.org/hall.shtml">http://www.cut-the-knot.org/hall.shtml</A></LI><br />
</UL><br />
[Hack #72]　論理的思考<br />
<UL><br />
<LI><A HREF="http://www.psych.ucsb.edu/research/cep/primer.html">http://www.psych.ucsb.edu/research/cep/primer.html</A></LI><br />
</UL><br />
[Hack #74]　現状維持のバイアス<br />
<UL><br />
<LI><A HREF="http://en.wikipedia.org/wiki/List_of_cognitive_biases">http://en.wikipedia.org/wiki/List_of_cognitive_biases</A></LI><br />
<LI><A HREF="http://ams.allenpress.com/pdfserv/i1520-0477-080-07-1385.pdf">http://ams.allenpress.com/pdfserv/i1520-0477-080-07-1385.pdf</A></LI><br />
</UL></p>

<p></UL><br />
<UL><H3>8章　構造を知る</H3><br />
[Hack #75]　ゲシュタルト原理<br />
<UL><br />
<LI><A HREF="http://tepserver.ucsd.edu:16080/~jlevin/gp">http://tepserver.ucsd.edu:16080/~jlevin/gp</A></LI><br />
<LI><A HREF="http://psy.ed.asu.edu/~classics/Wertheimer/Forms/forms.htm">http://psy.ed.asu.edu/~classics/Wertheimer/Forms/forms.htm</A></LI><br />
</UL><br />
[Hack #76]　共通運命の原理<br />
<UL><br />
<LI><A HREF="http://psy.ucsd.edu/chip/illu_mot_capt_grpng.html">http://psy.ucsd.edu/chip/illu_mot_capt_grpng.html</A></LI><br />
<LI><A HREF="http://tepserver.ucsd.edu/~jlevin/gp/time-example-common-fate">http://tepserver.ucsd.edu/~jlevin/gp/time-example-common-fate</A></LI><br />
<LI><A HREF="http://www.biols.susx.ac.uk/home/George_Mather/Motion/KDE.HTML">http://www.biols.susx.ac.uk/home/George_Mather/Motion/KDE.HTML</A></LI></p>

<p><LI><A HREF="http://tepserver.ucsd.edu:16080/~jlevin/gp">http://tepserver.ucsd.edu:16080/~jlevin/gp</A></LI><br />
</UL><br />
[Hack #77]　「人間」の認知<br />
<UL><br />
<LI><A HREF="http://www.lifesci.sussex.ac.uk/home/George_Mather/Motion/BM.HTML">http://www.lifesci.sussex.ac.uk/home/George_Mather/Motion/BM.HTML</A></LI><br />
<LI><A HREF="http://www.at-bristol.org.uk/Optical/DancingLights_main.htm">http://www.at-bristol.org.uk/Optical/DancingLights_main.htm</A></LI><br />
<LI><A HREF="http://www.bml.psy.ruhr-uni-bochum.de/Demos/BMLwalker.html">http://www.bml.psy.ruhr-uni-bochum.de/Demos/BMLwalker.html</A></LI><br />
<LI><A HREF="http://www.kyb.tuebingen.mpg.de/bu/demo/chimericwalker">http://www.kyb.tuebingen.mpg.de/bu/demo/chimericwalker</A></LI><br />
<LI><A HREF="http://www.lifesci.sussex.ac.uk/home/George_Mather/Motion/index.html">http://www.lifesci.sussex.ac.uk/home/George_Mather/Motion/index.html</A></LI><br />
<LI><A HREF="http://www.perceptionweb.com/perc0303/p5010.pdf">http://www.perceptionweb.com/perc0303/p5010.pdf</A></LI></p>

<p></UL><br />
[Hack #78]　「生命」の認知<br />
<UL><br />
<LI><A HREF="http://research.yale.edu/perception/animacy/HS-Blocks-Flash.mov">http://research.yale.edu/perception/animacy/HS-Blocks-Flash.mov</A></LI><br />
<LI><A HREF="http://research.yale.edu/perception/animacy/HS-Darts-Flash.mov">http://research.yale.edu/perception/animacy/HS-Darts-Flash.mov</A></LI><br />
<LI><A HREF="http://en.wikipedia.org/wiki/Hanlon's_Razor">http://en.wikipedia.org/wiki/Hanlon's_Razor</A></LI><br />
</UL><br />
[Hack #79]　因果関係の認知<br />
<UL><br />
<LI><A HREF="http://web.archive.org/web/20040226172716/http://www.carleton.ca/~warrent/210/michotte/michotte.html">http://web.archive.org/web/20040226172716/http://www.carleton.ca/~warrent/210/michotte/michotte.html</A></LI><br />
<LI><A HREF="http://cogweb.ucla.edu/Discourse/Narrative/michotte-demo.swf">http://cogweb.ucla.edu/Discourse/Narrative/michotte-demo.swf</A></LI><br />
<LI><A HREF="">http://research.yale.edu/perception/causality/temporalGap.mov</A></LI></p>

<p><LI><A HREF="http://pantheon.yale.edu/~bs265/demos/causality.html">http://pantheon.yale.edu/~bs265/demos/causality.html</A></LI><br />
</UL><br />
[Hack #80]　「自分の意志」の認知<br />
<UL><br />
<LI><A HREF="http://en.wikipedia.org/wiki/Ideomotor_effect">http://en.wikipedia.org/wiki/Ideomotor_effect</A></LI><br />
<LI><A HREF="http://www.wjh.harvard.edu/~wegner">http://www.wjh.harvard.edu/~wegner</A></LI><br />
</UL><br />
</UL><br />
<UL><H3>9章　記憶</H3><br />
[Hack #81]　プライミング<br />
<UL><br />
<LI><A HREF="http://www.newscientist.com/lastword/article.jsp?id=lw613">http://www.newscientist.com/lastword/article.jsp?id=lw613</A></LI></p>

<p></UL><br />
[Hack #82]　サブリミナル効果<br />
<UL><br />
<LI><A HREF="http://www.hotornot.com">http://www.hotornot.com</A></LI><br />
<LI><A HREF="http://www.snopes.com/business/hidden/popcorn.asp">http://www.snopes.com/business/hidden/popcorn.asp</A></LI><br />
</UL><br />
[Hack #83]　「見覚えがある」という感覚<br />
<UL><br />
<LI><A HREF="http://www.uplink.com.au/lawlibrary/Documents/Docs/Doc51.html">http://www.uplink.com.au/lawlibrary/Documents/Docs/Doc51.html</A></LI><br />
</UL><br />
[Hack #84]　記憶の出所<br />
<UL><br />
<LI><A HREF="http://www.psychologicalscience.org/teaching/tips/tips_0403.html">http://www.psychologicalscience.org/teaching/tips/tips_0403.html</A></LI></p>

<p><LI><A HREF="http://www.search-engine-lists.com/marktwain/unconscious-plagiarism.html">http://www.search-engine-lists.com/marktwain/unconscious-plagiarism.html</A></LI><br />
</UL><br />
[Hack #85]　偽物の記憶<br />
<UL><br />
<LI><A HREF="http://www.fmsfonline.org">http://www.fmsfonline.org</A></LI><br />
</UL><br />
[Hack #86]　文脈干渉効果<br />
<UL><br />
<LI><A HREF="http://www.health.uottawa.ca/hkgrad/mllab/cieffe.html">http://www.health.uottawa.ca/hkgrad/mllab/cieffe.html</A></LI><br />
</UL><br />
[Hack #87]　記憶を助けるコンテキスト<br />
<UL><br />
<LI><A HREF="http://en.wikipedia.org/wiki/Von_Neumann_architecture">http://en.wikipedia.org/wiki/Von_Neumann_architecture</A></LI></p>

<p></UL><br />
[Hack #89]　道筋を使った記憶術<br />
<UL><br />
<LI><A HREF="http://www.keeslau.com/TomWaitsSupplement/Lyrics/common.htm">http://www.keeslau.com/TomWaitsSupplement/Lyrics/common.htm</A></LI><br />
<LI><A HREF="http://www.imdb.com/title/tt0209144">http://www.imdb.com/title/tt0209144</A></LI><br />
<LI><A HREF="http://eleganthack.com/blueprint/sample.php">http://eleganthack.com/blueprint/sample.php</A></LI><br />
</UL><br />
[Hack #92]　コーヒーの味はカップで変わる？<br />
<UL><br />
<LI><A HREF="http://coffeegeek.com">http://coffeegeek.com</A></LI><br />
<LI><A HREF="http://www.bps.org.uk">http://www.bps.org.uk</A></LI><br />
<LI><A HREF="http://www.elitetrack.com/caffeine.pdf">http://www.elitetrack.com/caffeine.pdf</A></LI></p>

<p></UL><br />
</UL><br />
<UL><H3>10章　他者との関係</H3><br />
[Hack #94]　感情の表現<br />
<UL><br />
<LI><A HREF="http://www.test.org.uk">http://www.test.org.uk</A></LI><br />
<LI><A HREF="http://www.morguefile.com">http://www.morguefile.com</A></LI><br />
<LI><A HREF="http://www.ecs.soton.ac.uk/~harnad/Papers/Py104/pullum.learn.html">http://www.ecs.soton.ac.uk/~harnad/Papers/Py104/pullum.learn.html</A></LI><br />
<LI><A HREF="">http://www.emotionsrevealed.com</A><br />
<LI><A HREF="http://www.neuropsychologycentral.com/interface/content/resources/page_material/resources_general_materials_pages/resources_document_pages/neuropsychosocial_factors_in_emotion_recognition.pdf">http://www.neuropsychologycentral.com/interface/content/resources/page_material/...</A></LI><br />
<LI><A HREF="http://www.neuropsychologycentral.com">http://www.neuropsychologycentral.com</A></LI></p>

<p><LI><A HREF="http://www.gladwell.com/2002/2002_08_05_a_face.htm">http://www.gladwell.com/2002/2002_08_05_a_face.htm</A></LI><br />
</UL><br />
[Hack #95]　表情の感情に与える影響<br />
<UL><br />
<LI><A HREF="http://www.abc.net.au/catalyst/stories/s1139554.htm">http://www.abc.net.au/catalyst/stories/s1139554.htm</A></LI><br />
</UL><br />
[Hack #96]　感情の記憶への影響<br />
<UL><br />
<LI><A HREF="http://www.ptsdalliance.org/home2.html">http://www.ptsdalliance.org/home2.html</A></LI><br />
</UL><br />
[Hack #97]　視線<br />
<UL><br />
<LI><A HREF="http://www.lowcoders.net">http://www.lowcoders.net</A></LI></p>

<p></UL><br />
[Hack #98]　人は真似をする<br />
<UL><br />
<LI><A HREF="http://faculty.fuqua.duke.edu/~tlc10/bio/pdf_articles/article_index.htm">http://faculty.fuqua.duke.edu/~tlc10/bio/pdf_articles/article_index.htm</A></LI><br />
<LI><A HREF="http://www.edge.org/3rd_culture/ramachandran/ramachandran_p1.html">http://www.edge.org/3rd_culture/ramachandran/ramachandran_p1.html</A></LI><br />
</UL><br />
<BR><br />
<BR><br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>問題解決のパターン</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/post.html" />
    <id>tag:www.pokeal.com,2008://2.204</id>

    <published>2008-01-18T18:33:38Z</published>
    <updated>2008-01-20T08:42:10Z</updated>

    <summary>あまり意識して考えたことがなかったけど、メタ認知について。 仕事（プログラミング...</summary>
    <author>
        <name>utabi</name>
        
    </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://www.pokeal.com/">
        <![CDATA[<p>あまり意識して考えたことがなかったけど、メタ認知について。<br />
仕事（プログラミング・ウェブデザイン）をしていると必ず問題にぶちあたる。そしてパターンがる。</p>

<p>1. 小さな問題（～10分）<br />
2. 前にも似たような経験をした問題（～1時間）<br />
3. ハマる問題（1時間～）</p>

<p>1は比較的短時間で解決できてしまう、すぐに解決法が思い浮かぶ問題。<br />
2は作業しているうちに、「ああこういうのは前にもぶちあたった」と思い出すので、<br />
そのうち解けるだろうとなんとなくわかる問題。<br />
3は、2かと思いきや見事に裏切られて原因の憶測すら困難な問題。</p>

<p>経験の積み重ねで、3だったものがどんどん1のほうへシフトしていき、1に堆積するイメージ。<br />
不思議なのは、3を解決する瞬間というのは、だいたいが休憩を入れた直後だということ。</p>

<p>それはなんでか？と自問自答してみた。</p>

<p>だいたいの場合、1と2の延長で3をやっているので、完全に解決法がパターン化されてしまっている。すでに発想が出尽くしているのにもかかわらず、そこに執着し続けている。2のパターンに違いないと信じて、これでもか、これでもか、と頑張って本当に2ならいいのだが、それでもダメなときは「もうだめだー」と言って休憩する。実はこれが今までの方法には見切りをつけようという合図。休憩中は同じ回路に信号を流さないので、ちょっとRAMがクリアされる。そして再開したとき、「2の中に答えはないから3へ旅をはじめよう。」と要点をある程度客観視できる。そこにそれまでと大きな違いがある。重要なのは、それまでのフローをいかに忘れているかどうか。</p>

<p>絵を描いていたときのことを思い出す。描いた絵はひっくりかえしたり、顔を傾けてみてみたり、遠くからながめてみたり。<br />
作曲をしていたときのことを思い出す。一度つくりあげたものを壊すと、全く新しい聴こえ方になるのが楽しくてしょうがなかったり。</p>

<p>何をするときも同じだと思った。3の前に妥協するという技術が一般的なのかもしれないが、それを解決したときの快感はこの上ないからやめられない。<br />
そして、小さな単位で毎日それの繰り返しなのだが、生き方においてもっと休憩が必要だなと思う今日このごろ。<br />
人間の、「忘れる」という能力はすばらしいと思う。</p>

<p>＊追記<br />
そういえば2や3で、人に相談すると自己解決するパターンもある。人に説明しているうちに勝手に要点がまとまって、まだ試していない選択肢が思い浮かぶからだ。</p>]]>
        
    </content>
</entry>

<entry>
    <title>iTunes　アートワークのフォルダ構造</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/itunes.html" />
    <id>tag:www.pokeal.com,2008://2.203</id>

    <published>2008-01-12T15:47:47Z</published>
    <updated>2008-01-14T09:05:38Z</updated>

    <summary>任意のアルバムアートワーク画像の探し方を探していたら、みつかったのでメモ。 ht...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="iTunes" 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://www.pokeal.com/">
        <![CDATA[<p>任意のアルバムアートワーク画像の探し方を探していたら、みつかったのでメモ。</p>

<p><a href="http://forums.macosxhints.com/showthread.php?p=325382">http://forums.macosxhints.com/showthread.php?p=325382</a><br />
こちらから引用：<br />
<blockquote><br />
These are Persistent IDs, which you can find in iTunes Music Library.xml and folder structure is like this:</p>

<p>Library Persistent ID -> decimal value of last hex digit in tracks persistent ID -> dec value of before last hex digit -> dec value of 3rd hex digit from the end -> Library persistent ID - Track persistent ID .itc<br />
</blockquote></p>

<p><br />
まず、XMLの先頭にあるLibrary Persistent IDという部分がある：<br />
<code><pre><br />
&lt;key&gt;Library Persistent ID&lt;/key&gt;&lt;string&gt;B77A88149B472EF5&lt;/string&gt;<br />
</code></pre></p>

<p>そしてそれぞれのトラックは下記のように、ひとまとまりのエレメントになっている。<br />
<code><pre><br />
&lt;key&gt;142&lt;/key&gt;<br />
	&lt;dict&gt;<br />
		&lt;key&gt;Track ID&lt;/key&gt;&lt;integer&gt;142&lt;/integer&gt;<br />
		&lt;key&gt;Name&lt;/key&gt;&lt;string&gt;ハニー・ムーン&lt;/string&gt;<br />
		&lt;key&gt;Artist&lt;/key&gt;&lt;string&gt;Tei Towa + Natural Calamity&lt;/string&gt;<br />
		&lt;key&gt;Composer&lt;/key&gt;&lt;string&gt;細野晴臣&lt;/string&gt;<br />
		&lt;key&gt;Album&lt;/key&gt;&lt;string&gt;細野晴臣トリビュート・アルバム Tribute to Haruomi Hosono [Disc 1]&lt;/string&gt;<br />
		&lt;key&gt;Genre&lt;/key&gt;&lt;string&gt;Pop&lt;/string&gt;<br />
		&lt;key&gt;Kind&lt;/key&gt;&lt;string&gt;AAC オーディオファイル&lt;/string&gt;<br />
		&lt;key&gt;Size&lt;/key&gt;&lt;integer&gt;4811001&lt;/integer&gt;<br />
		&lt;key&gt;Total Time&lt;/key&gt;&lt;integer&gt;294293&lt;/integer&gt;<br />
		&lt;key&gt;Disc Number&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;<br />
		&lt;key&gt;Disc Count&lt;/key&gt;&lt;integer&gt;2&lt;/integer&gt;<br />
		&lt;key&gt;Track Number&lt;/key&gt;&lt;integer&gt;9&lt;/integer&gt;<br />
		&lt;key&gt;Track Count&lt;/key&gt;&lt;integer&gt;11&lt;/integer&gt;<br />
		&lt;key&gt;Year&lt;/key&gt;&lt;integer&gt;2007&lt;/integer&gt;<br />
		&lt;key&gt;Date Modified&lt;/key&gt;&lt;date&gt;2007-12-11T16:21:09Z&lt;/date&gt;<br />
		&lt;key&gt;Date Added&lt;/key&gt;&lt;date&gt;2007-11-18T07:02:11Z&lt;/date&gt;<br />
		&lt;key&gt;Bit Rate&lt;/key&gt;&lt;integer&gt;128&lt;/integer&gt;<br />
		&lt;key&gt;Sample Rate&lt;/key&gt;&lt;integer&gt;44100&lt;/integer&gt;<br />
		&lt;key&gt;Rating&lt;/key&gt;&lt;integer&gt;20&lt;/integer&gt;<br />
		&lt;key&gt;Album Rating&lt;/key&gt;&lt;integer&gt;40&lt;/integer&gt;<br />
		&lt;key&gt;Album Rating Computed&lt;/key&gt;&lt;true/&gt;<br />
		&lt;key&gt;Compilation&lt;/key&gt;&lt;true/&gt;<br />
		&lt;key&gt;Artwork Count&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;<br />
		&lt;key&gt;Persistent ID&lt;/key&gt;&lt;string&gt;34B5886AA718721C&lt;/string&gt;<br />
		&lt;key&gt;Track Type&lt;/key&gt;&lt;string&gt;File&lt;/string&gt;<br />
		&lt;key&gt;Location&lt;/key&gt;&lt;string&gt;file://localhost/L:/stage/nanmaci/%E3%83%8D%E3%82%BF/1-09%20%E3%83%8F%E3%83%8B%E3%83%BC%E3%83%BB%E3%83%A0%E3%83%BC%E3%83%B3.m4a&lt;/string&gt;<br />
		&lt;key&gt;File Folder Count&lt;/key&gt;&lt;integer&gt;-1&lt;/integer&gt;<br />
		&lt;key&gt;Library Folder Count&lt;/key&gt;&lt;integer&gt;-1&lt;/integer&gt;<br />
	&lt;/dict&gt;<br />
</code></pre><br />
その中の、&lt;key&gt;Persistent ID&lt;/key&gt;&lt;string&gt;34B5886AA718721C&lt;/string&gt;という部分を使う。</p>

<p>これらを組み合わせて下記のように解析できる。<br />
Library Persistent IDが<br />
B77A88149B472EF5<br />
Persistent IDが<br />
34B5886AA718721C<br />
の場合、<br />
Persistent IDの<br />
下1の桁の値「C」を10進数にして13<br />
10の桁の値「1」を10進数にして01<br />
100の桁の値「2」を10進数にして02<br />
なので、</p>

<p>アートワークがiTunesで自動的にダウンロードされたものなら、<br />
iTunes > Album Artwork > Download > B77A88149B472EF5 > 13 > 01 > 02 > B77A88149B472EF5-34B5886AA718721C.itc</p>

<p>アートワークが自分で追加したものなら、<br />
iTunes > Album Artwork > Local > B77A88149B472EF5 > 13 > 01 > 02 > B77A88149B472EF5-34B5886AA718721C.itc</p>

<p></p>

<p>という感じ。とりあえず今回はiTunes7.5.0.20、Windows XP環境でのチェックのみだったのでMacでのフォルダ構造については不明。この複雑な仕組みは、別ソフトなどで画像を簡単に利用されないようにアップルが工夫したものな気がする。なのでiTunesのバージョンアップで変わる可能性がおおいにあり。</p>

<p><small>＊ただし、アルバム単位で画像を決めている場合、トラックごとに画像が保存されているわけではなく、共有画像として動いているらしいが、その仕組みはよくわからない。</p>

<p>＊以前はjpgで保存されていた気がするが、今はitcという拡張子になっている。itcファイルに関しては<a href="http://d.hatena.ne.jp/naruhito_t/20070107">ここ</a>や<a href="http://tbboy.cocolog-nifty.com/tbboys_room/2006/09/itunesjpgpng_5603.html">ここ</a>を参考。<br />
</small><br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title><![CDATA[&lt;a&gt;がクリックできない]]></title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/a.html" />
    <id>tag:www.pokeal.com,2008://2.202</id>

    <published>2008-01-10T13:32:15Z</published>
    <updated>2008-01-10T13:44:14Z</updated>

    <summary><![CDATA[ &lt;div id="A"&gt; &lt;p&gt;&lt;a&gt;so...]]></summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="css" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p><code><pre><br />
&lt;div id="A"&gt;<br />
&lt;p&gt;&lt;a&gt;something link&lt;/a&&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
</pre></code></p>

<p>となっているときに、&lt;a&gt;タグが効かないことがあった。<br />
その場合、<br />
#A {position:static;}<br />
とすると動くようになった。もともとrelativeだった。理由はよくわからないけど、iepngfixが絡んでいる可能性あり。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Ruby on RailsとAdobe AIRでデスクトップアプリを作る</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/ruby-on-railsadobe-air.html" />
    <id>tag:www.pokeal.com,2008://2.201</id>

    <published>2008-01-05T10:45:55Z</published>
    <updated>2008-01-06T17:27:50Z</updated>

    <summary> Think ITのこちらの記事を読みながら、オンライン付箋を実際に作ってみたも...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="Adobe AIR" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Ruby on Rails" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image"><a href="http://www.pokeal.com/husen.html" onclick="window.open('http://www.pokeal.com/husen.html','popup','width=1024,height=768,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.pokeal.com/assets_c/2008/01/husen-thumb-300x225.jpg" width="300" height="225" alt="husen.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span><br />
Think ITの<a href="http://www.thinkit.co.jp/free/article/0709/3/1/">こちらの記事</a>を読みながら、オンライン付箋を実際に作ってみたものの、RoRとAIRのバージョンがあがっていてうまく動作しなかったり、最後までできたけどスクリプト中途半端だっりしたたので、ある程度動くものに改造してみた。</p>

<p>とはいうものの、<br />
ActionScript2は結構さわっていたけど、AS3は今回はじめて。<br />
AIRもはじめて。<br />
Ruby on Railsもはじめて。<br />
コマンドプロンプトなんていうのもよくわからない。<br />
と新年早々初めて三昧気味だったので、全体的にやっつけ感もあるけど、まぁ最初はこんなもんだ。</p>

<p>以下覚えている注意点</p>

<p><strong><big>Ruby on Rails (Rails v2.0.2, ruby v1.6.8) :</big></strong></p>

<p>●「scaffold_resource」は「scaffold」になった（<a href="http://railsforum.com/viewtopic.php?id=12431">参考</a>）</p>

<p>●database.yamlでsyntax エラーが発生する（<a href="http://real-creation.com/memo/2007/01/databaseyaml_syntax.html">参考</a>）<br />
  adapter: mysql<br />
  encoding: utf8<br />
  database: stickes_development<br />
  username: root<br />
  password: *********<br />
  host: localhost<br />
というかんじで「:」のあとにスペースが必要。<br />
それぞれの項目の前にタブをいれてもエラーになった。</p>

<p>●InvalidAuthenticityTokenというエラーが出る（<a href="http://d.hatena.ne.jp/go-kun/20071221">参考</a>）<br />
protect_from_forgeryというので解決。 </p>

<p><br />
<strong><big>AIR (beta3):</big></strong><br />
●&lt;rootContent&gt;というタグはなくなったので&lt;initialWindow&gt;の中に&lt;content&gt;として入れる（<a href="http://gihyo.jp/dev/serial/01/adobe-apollo/0014?page=2">参考</a>）</p>

<p>●xmlns="http://ns.adobe.com/air/application/1.0.M6"</p>

<p>あとの仕様の変更はたくさんありすぎて、覚えていない。<br />
そういうのを調べつつ、記事を読みながら完成させたが、ちょっとご本人もお忙しかったのか、あまり良い出来のものではなかった。</p>

<p>そこでカスタムし、<br />
<ul><br />
	<li>アプリケーションを立ち上げると自動で付箋を読み込む</li><br />
	<li>付箋を移動すると、自動保存</li><br />
	<li>テキストエリアに書き込むと、自動保存</li><br />
	<li>xボタンを押すと、削除</li><br />
</ul><br />
と、ある程度実用的なものにしてみた。<br />
（RoR側の変更はなし。）</p>

<p><br />
<strong>stickies-app.xml</strong><br />
<pre><code><br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />
    &lt;application xmlns=&quot;http://ns.adobe.com/air/application/1.0.M6&quot; minimumPatchLevel=&quot;1047&quot;&gt;<br />
        &lt;id&gt;jp.onlinehusen&lt;/id&gt;<br />
        &lt;version&gt;1.0&lt;/version &gt;<br />
        &lt;filename&gt;オンライン付箋&lt;/filename&gt;<br />
        &lt;name&gt;オンライン付箋&lt;/name&gt;<br />
        &lt;description&gt;Ruby on RailsとAdobe AIRでデスクトップアプリを作るデモ&lt;/description&gt;<br />
        &lt;copyright&gt;Copyright  2006&lt;/copyright&gt;<br />
        &lt;installFolder&gt;Adobe/Examples&lt;/installFolder&gt;<br />
        &lt;programMenuFolder&gt;Adobe/Examples&lt;/programMenuFolder&gt;<br />
        &lt;initialWindow&gt;<br />
            &lt;content&gt;menu.swf&lt;/content&gt;<br />
            &lt;title&gt;online husen&lt;/title&gt;<br />
            &lt;systemChrome&gt;standard&lt;/systemChrome&gt;<br />
            &lt;transparent&gt;false&lt;/transparent&gt;<br />
            &lt;visible&gt;true&lt;/visible&gt;<br />
            &lt;width&gt;60&lt;/width&gt;<br />
            &lt;height&gt;20&lt;/height&gt;<br />
            &lt;x&gt;250&lt;/x&gt;<br />
            &lt;y&gt;0&lt;/y&gt;<br />
            &lt;minSize&gt;10 10&lt;/minSize&gt;<br />
            &lt;maxSize&gt;100 100&lt;/maxSize&gt;<br />
            &lt;minimizable&gt;true&lt;/minimizable&gt;<br />
            &lt;maximizable&gt;false&lt;/maximizable&gt;<br />
            &lt;resizable&gt;false&lt;/resizable&gt;<br />
        &lt;/initialWindow&gt;<br />
        &lt;icon&gt;<br />
        &lt;/icon&gt;<br />
        &lt;customUpdateUI&gt;false&lt;/customUpdateUI&gt;<br />
        &lt;allowBrowserInvocation&gt;false&lt;/allowBrowserInvocation&gt;<br />
    &lt;/application&gt;<br />
</code></pre></p>

<p><br />
<strong>menu.mxml</strong><br />
<pre><code><br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />
&lt;mx:WindowedApplication xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot; width=&quot;100&quot; height=&quot;20&quot; creationComplete=&quot;load();&quot; closing=&quot;onClosing(event);&quot; &gt;<br />
  &lt;mx:Script&gt;<br />
    &lt;![CDATA[<br />
		public var stickies:Array = new Array();<br />
		public var stickNum:Number = new Number();<br />
		public function create():void {<br />
        var sticky:Sticky = new Sticky();<br />
		stickNum++;<br />
        sticky.id = stickNum;<br />
        var request:URLRequest;<br />
        request = new URLRequest(&quot;http://localhost:3000/stickies.xml&quot;);<br />
        request.method = 'POST';<br />
        <br />
            var variables : URLVariables = new URLVariables ();<br />
            variables['sticky[x]'] = sticky.window.x ;// Capabilities.screenResolutionX;<br />
            variables['sticky[y]'] = sticky.window.y ;// Capabilities.screenResolutionY;<br />
            variables['sticky[width]'] = sticky.window.width;<br />
            variables['sticky[height]'] = sticky.window.height;<br />
            variables['sticky[body]'] = sticky.editor.text;<br />
            request.data = variables;<br />
        <br />
        var loader:URLLoader = new URLLoader();<br />
        loader.load(request);<br />
        sticky.show();<br />
        stickies.push(sticky);<br />
       }<br />
       public function load():void {   <br />
         var request:URLRequest = new URLRequest(&quot;http://localhost:3000/stickies.xml&quot;);<br />
         request.method = 'GET';<br />
         var loader:URLLoader = new URLLoader();<br />
         loader.addEventListener(Event.COMPLETE, function(e:Event):void {<br />
           var xml:XML = new XML(e.target.data);<br />
           var sL:Number = xml.sticky.length();<br />
           for each(var element:Object in xml.sticky){<br />
           var sticky:Sticky = new Sticky();<br />
           sticky.createNew = new Boolean(false);<br />
           sticky.id = element.id;<br />
           sticky.editor.text = element.body;<br />
           sticky.window.x = element.x; //* Capabilities.screenResolutionX;<br />
           sticky.window.y = element.y; //* Capabilities.screenResolutionY;<br />
           sticky.window.width = element.width;<br />
           sticky.window.height = element.height;<br />
		   sticky.show();<br />
           stickNum = sticky.id;<br />
         stickies.push(sticky);<br />
         }<br />
         });<br />
         loader.load(request);<br />
       }</p>

<p>	   private function onClosing(event:Event):void {<br />
		   for each (var sticky:Sticky in stickies) {<br />
			   if(sticky){<br />
			   sticky.window.close();<br />
			   }}<br />
	   }<br />
     ]]&gt;<br />
   &lt;/mx:Script&gt;<br />
   &lt;mx:Button left=&quot;10&quot; top=&quot;10&quot; label=&quot;new&quot; id=&quot;new_btn&quot; click=&quot;create();&quot; /&gt;<br />
   &lt;!--&lt;mx:Button right=&quot;60&quot; top=&quot;10&quot; label=&quot;load&quot; id=&quot;load_btn&quot; click=&quot;load();&quot; /&gt;  --&gt;<br />
   &lt;!-- &lt;mx:Button right=&quot;10&quot; top=&quot;10&quot; label=&quot;save&quot; id=&quot;save_btn&quot; /&gt; click=&quot;save();&quot; --&gt;<br />
   &lt;!--&lt;mx:TextArea right=&quot;10&quot; top=&quot;40&quot; left=&quot;10&quot; bottom=&quot;10&quot; id=&quot;messages&quot; /&gt;--&gt;<br />
 &lt;/mx:WindowedApplication&gt;<br />
</code></pre></p>

<p><br />
<strong>menu.mxml</strong><br />
<pre><code><br />
package {<br />
  import flash.text.*;<br />
  import flash.display.*;<br />
  import flash.events.*;<br />
  import flash.system.*;<br />
  import mx.controls.*;<br />
  import flash.net.*;<br />
  import flash.utils.Timer;</p>

<p>  public class Sticky extends Sprite{<br />
    public var window:NativeWindow;<br />
     public var editor:TextField; <br />
     public var id:Number;<br />
     public var createNew:Boolean;<br />
	 public var button:SimpleButton = new SimpleButton( );<br />
     public var timer:Timer = new Timer(1000,1);<br />
     public static var RESIZE_HANDLE_SIZE:int = 20;</p>

<p>     public function Sticky():void {<br />
     timer.addEventListener(TimerEvent.TIMER,onTick);<br />
       var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();<br />
       initOptions.systemChrome = NativeWindowSystemChrome.NONE;<br />
       initOptions.transparent = false;<br />
       initOptions.type = NativeWindowType.LIGHTWEIGHT;<br />
       window = new NativeWindow(initOptions);<br />
       window.stage.align = StageAlign.TOP_LEFT;<br />
       window.stage.scaleMode = StageScaleMode.NO_SCALE;<br />
       editor = new TextField();<br />
       editor.x = editor.y = 0;<br />
       editor.selectable = true;<br />
       editor.border = false;<br />
       editor.type = TextFieldType.INPUT;<br />
       editor.multiline = true;<br />
       editor.background = true;<br />
       editor.wordWrap = true;<br />
       editor.backgroundColor = 0xE6E082;<br />
       window.stage.addChild(editor);<br />
       window.width = editor.width = 300;<br />
       window.height = editor.height = 100;</p>

<p>       window.stage.addEventListener(Event.RESIZE, function(evt:Event):void {<br />
         resized();<br />
       });</p>

<p>       window.stage.addEventListener(MouseEvent.MOUSE_DOWN,<br />
         function(evt:MouseEvent):void {<br />
           var x:Number = evt.stageX;<br />
           var y:Number = evt.stageY;<br />
           if (y &gt; window.height - RESIZE_HANDLE_SIZE &amp;&amp; x &gt; window.width - RESIZE_HANDLE_SIZE) {<br />
             window.startResize(NativeWindowResize.BOTTOM_RIGHT);<br />
           }<br />
           else {<br />
             window.startMove();<br />
           }<br />
         }<br />
       );<br />
       window.stage.addEventListener(MouseEvent.MOUSE_UP,<br />
         function(evt:MouseEvent):void {<br />
           save();<br />
         }<br />
       );<br />
       editor.addEventListener(TextEvent.TEXT_INPUT,<br />
         function(evt:TextEvent):void {<br />
              if(timer){<br />
				timer.stop();<br />
			}<br />
         timerSave();<br />
         } <br />
       );<br />
     } // end of function Sticky</p>

<p>	 public function show():void {<br />
       window.visible = true;<br />
	   //閉じるボタンの生成<br />
            button.x = window.width-15;<br />
			button.y = 5;<br />
            button.upState = createBox( 0xE6E082, 10 ,0.3);<br />
            button.overState = createBox( 0xE6E082, 10 ,1);<br />
            button.downState = createBox( 0xCCCCCC, 10 ,1);<br />
            button.hitTestState = button.upState;<br />
            button.addEventListener( MouseEvent.CLICK, onMouseDown );<br />
            window.stage.addChild( button );	<br />
     }<br />
	 <br />
     public function resized():void {<br />
         editor.width = window.width;<br />
         editor.height = window.height;<br />
         button.x = window.width-15;<br />
		 button.y = 5;<br />
         save();<br />
     }<br />
     public function save():void {<br />
            var request:URLRequest;<br />
              request = new URLRequest(&quot;http://localhost:3000/stickies/&quot;+id+&quot;.xml&quot;);<br />
              request.method = 'PUT';<br />
            var variables : URLVariables = new URLVariables ();<br />
            variables['sticky[x]'] = window.x ;// Capabilities.screenResolutionX;<br />
            variables['sticky[y]'] = window.y ;// Capabilities.screenResolutionY;<br />
            variables['sticky[width]'] = window.width;<br />
            variables['sticky[height]'] = window.height;<br />
            variables['sticky[body]'] = editor.text;<br />
            request.data = variables;<br />
            var loader:URLLoader = new URLLoader();<br />
            loader.load(request);<br />
       }<br />
     private function onMouseDown(e:MouseEvent):void{<br />
            trace(&quot;onMouseDown&quot;);<br />
            var requ:URLRequest = new URLRequest(&quot;http://localhost:3000/stickies/&quot;+id+&quot;.xml&quot;);<br />
            requ.method = 'DELETE';<br />
            var loader:URLLoader = new URLLoader();<br />
            loader.load(requ);<br />
            window.close();<br />
        }<br />
	private function createBox( color:uint, radius:Number ,vis:Number):Shape {<br />
            var xShape:Shape = new Shape( );<br />
            xShape.graphics.lineStyle( 1, 0x000000 );<br />
            xShape.graphics.beginFill( color );<br />
			xShape.graphics.drawRect( 0, 0, radius ,radius);<br />
            xShape.graphics.moveTo( 0, radius );<br />
			xShape.graphics.lineTo( radius, 0);<br />
			xShape.graphics.moveTo( radius, radius );<br />
			xShape.graphics.lineTo( 0, 0);<br />
            xShape.graphics.endFill( );<br />
			xShape.alpha = vis;<br />
            return xShape;<br />
        }<br />
     public function timerSave():void{<br />
	 timer.start();<br />
     }<br />
     public function onTick (evt:TimerEvent):void {<br />
     timer.stop();<br />
     save();<br />
     }</p>

<p>   } // end of class Sticky</p>

<p> } // end of package<br />
</code></pre></p>]]>
        
    </content>
</entry>

<entry>
    <title>mt4インストール</title>
    <link rel="alternate" type="text/html" href="http://www.pokeal.com/2008/01/mt4.html" />
    <id>tag:www.pokeal.com,2008://2.199</id>

    <published>2008-01-05T09:11:47Z</published>
    <updated>2008-01-05T14:31:02Z</updated>

    <summary>ロリポップのサーバがこわれてデータが全部消えたので、mt4にしてみた。 righ...</summary>
    <author>
        <name>utabi</name>
        
    </author>
    
        <category term="思ってること" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.pokeal.com/">
        <![CDATA[<p>ロリポップのサーバがこわれてデータが全部消えたので、mt4にしてみた。<br />
<a href="http://www.staggernation.com/mtplugins/">rightfields</a>がまだmt4に対応していないので、それまでpokeal playerは復活できません。<br />
最近はflashにとどまらず、Ruby on RailsやAirのお勉強もしているので、そのへんのよしなしごとをメモしていきます。</p>]]>
        
    </content>
</entry>

</feed>
