<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>脱兎.dat</title>
	
	<link>http://dat.plastica-romantica.com</link>
	<description />
	<lastBuildDate>Mon, 30 Jan 2012 16:43:08 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/feed" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/plastica-romantica/DmoE" /><feedburner:info uri="plastica-romantica/dmoe" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>TitaniumのWebViewでProcessing.jsを使ってみる。</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/TclbshUjNqk/log677.html</link>
		<comments>http://dat.plastica-romantica.com/log677.html#comments</comments>
		<pubDate>Mon, 30 Jan 2012 14:58:21 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[titanium]]></category>
		<category><![CDATA[アプリ]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=677</guid>
		<description><![CDATA[タイトルの通りTitaniumのWebView内でprocessing.jsを動かしてみました。Titanium側からevalJSを使ってprocessingのloopを操作 しています。それだけですが、思ってたより全然 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dat.plastica-romantica.com/wp-content/uploads/2012/01/Web.jpg" rel="lightbox[677]"><img src="http://dat.plastica-romantica.com/wp-content/uploads/2012/01/Web-500x327.jpg" alt="" title="WebView" width="500" height="327" class="aligncenter size-large wp-image-686" /></a></p>
<p>タイトルの通りTitaniumのWebView内でprocessing.jsを動かしてみました。<br />Titanium側からevalJSを使ってprocessingのloopを操作 しています。<br />それだけですが、思ってたより全然簡単で驚きました。簡単なリズムゲームとか作ったら楽しそう。<br />webViewでやった方が簡単だから…的記事時々見かけるのなんでかなんとなくわかった気がする。</p>
<p>processingに慣れてないなら普通にjavascriptでやった方がいい気もします。僕は慣れてない方の人です。おいおい！って。</p>
<p>雑なコードは以下。</p>
<p><strong>app.js</strong></p>
<pre class="brush: jscript; title: ; notranslate">
Ti.UI.setBackgroundColor('#000');
var tt = {}
tt.ui = {};
tt.ui.createProcessingView = function() {
	var win = Ti.UI.createWindow();
	var web = Ti.UI.createWebView({top:0,right:0,bottom:0,left:0});
	web.url = '/src/processing.html';
	win.add(web);
	
	var controller = Ti.UI.createView({
		bottom: 0,
		width: Ti.Platform.displayCaps.platformWidth,
		height: 50,
		layout: &quot;horizontal&quot;
	});
	var labelSetting = {
		width: controller.width/2,
		textAlign: &quot;center&quot;,
		backgroundColor: &quot;#FFF&quot;,
		font: {fontSize:16, fontWeight:'bold', fontFamily:'Helvetica'},
		height: controller.height,
		text: &quot;start&quot;
	};
	var startLabel = Ti.UI.createLabel(labelSetting);
	startLabel.text = &quot;start&quot;;
	controller.add(startLabel);
	var stopLabel = Ti.UI.createLabel(labelSetting);
	stopLabel.text = &quot;stop&quot;;
	controller.add(stopLabel);
	win.add(controller);
	
	startLabel.addEventListener(&quot;click&quot;, function() {
		web.evalJS(&quot;startSketch()&quot;);
	});
	stopLabel.addEventListener(&quot;click&quot;, function() {
		web.evalJS(&quot;stopSketch()&quot;);
	});
	
	return win;
}

var wwin = tt.ui.createProcessingView();
wwin.open();
</pre>
<p><strong>processing.html</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;Hello Web&lt;/title&gt;
 	&lt;script src=&quot;processing-1.3.6.min.js&quot;&gt;&lt;/script&gt;
 	&lt;style&gt;
 		* { margin:0; padding:0; }
		html, body { width:100%; height:100%; }
		canvas { display:block; }
 	&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;canvas id=&quot;sketch&quot;&gt;&lt;/canvas&gt;
&lt;script type=&quot;application/javascript&quot;&gt;
	function sketchProc(processing) {
		var Ps = processing;
		var width = window.innerWidth;
		var height = window.innerHeight;
		Ps.setup = function(){
			Ps.size(width, height);
			Ps.smooth();
		};
		Ps.draw = function() {
			Ps.background(100);
			Ps.fill(200);
			Ps.noStroke();
			for(var i=0; i&lt;100; i++){
				var c = Ps.random(10, 15);
				Ps.ellipse(Ps.random(width), Ps.random(height), c, c);
			}
		};
	}
	
	var canvas = document.getElementById(&quot;sketch&quot;);
	var processingInstance = new Processing(canvas, sketchProc);

	function startSketch() {
		processingInstance.loop();
	}
	
	function stopSketch() {
		processingInstance.noLoop();
	}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<span style="text-align: center;">目が悪くなりそうなcanvasなのはお許しをば。<br />テキトーに書き換えて実行しましょ。 </span></pre>
<p><div style="padding:40px 0 40px 0">
<script type="text/javascript"><!--
google_ad_client = "pub-1892160014656999";
/* 468x60, 作成済み 10/03/01 */
google_ad_slot = "2508790326";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/V523VCwcUUSjlTu08IJb99txqcs/0/da"><img src="http://feedads.g.doubleclick.net/~a/V523VCwcUUSjlTu08IJb99txqcs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/V523VCwcUUSjlTu08IJb99txqcs/1/da"><img src="http://feedads.g.doubleclick.net/~a/V523VCwcUUSjlTu08IJb99txqcs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/TclbshUjNqk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log677.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log677.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log677.html</feedburner:origLink></item>
		<item>
		<title>わらったない</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/d6Yp9Euxh50/log675.html</link>
		<comments>http://dat.plastica-romantica.com/log675.html#comments</comments>
		<pubDate>Sun, 29 Jan 2012 17:34:36 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[雑文]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=675</guid>
		<description><![CDATA[ネットで見かける「笑った」って、笑ってないですよね。 「ワロタ」とか「www」とかネット上の笑いの表現は東京オリンピックあたりから存在してたみたいに浸透しちゃってるけど、これらって別に「私はパソコンの前で笑ってますよ」っ [...]]]></description>
			<content:encoded><![CDATA[
<p>ネットで見かける「笑った」って、笑ってないですよね。</p>
<p>「ワロタ」とか「www」とかネット上の笑いの表現は東京オリンピックあたりから存在してたみたいに浸透しちゃってるけど、これらって別に「私はパソコンの前で笑ってますよ」ってことを伝えようとしているわけじゃないですよね？</p>
<p>衆人環視の中、しかめっ面で「笑った」っていう6バイトの情報をネットの海に吐き捨ててる人なんてザラにいると思うし、むしろ笑えない状況だからこそ、笑いたい欲求を「笑った」っていう文字情報にして発散してるって場合もありますよね。そこで「面白い」と書かずに「笑った」って書く。強引かもだけど、それはきっと「笑いたい」だったりするんじゃない、って。</p>
<p>まぁ、もちろん実際笑ってるから「笑った」って書いてる人もいるだろうし、もしかしたら僕以外の人間はみなそうで、笑ってないのに「笑った」とか書いてるひねくれ者は僕だけかもしれないね。実際わかんない。個室トイレの中で皆逆立ちしてるの知らないのあなただけかもしれない。</p>
<p>話それちゃったけど、「笑った」に限らずネット上の文字って変なエネルギーありますよね。<br />キーボード、タッチパネルを通してエネルギーを込めるのですよ。「よろしくお願いします！」って。</p>
<p> こういうのって全世界共通？平安時代から？ <br />少なくとも日本人なら「マジワロス」の音の響きには何か惹かれるものがある気がするね。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/oau9ak68XKPyF7OpceI2BS0TGfE/0/da"><img src="http://feedads.g.doubleclick.net/~a/oau9ak68XKPyF7OpceI2BS0TGfE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oau9ak68XKPyF7OpceI2BS0TGfE/1/da"><img src="http://feedads.g.doubleclick.net/~a/oau9ak68XKPyF7OpceI2BS0TGfE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/d6Yp9Euxh50" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log675.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log675.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log675.html</feedburner:origLink></item>
		<item>
		<title>超欲張りじゃん</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/gL9b2vwQZtU/log672.html</link>
		<comments>http://dat.plastica-romantica.com/log672.html#comments</comments>
		<pubDate>Sat, 28 Jan 2012 15:28:26 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[日記]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=672</guid>
		<description><![CDATA[超欲張りじゃんと思って、迷わず手に取りました。＠LAWSON残念ながらダイスキです。こういうの。  でもこのロゴなんて読むんだろ。Cは読むの？デザイン？とかどーでもいいこと気になっちゃって調べたら「ビタミンレモン乳酸菌飲 [...]]]></description>
			<content:encoded><![CDATA[
<p style="text-align: center;"><a href="http://dat.plastica-romantica.com/wp-content/uploads/2012/01/2012-01-29-12-09-01-504.jpg" rel="lightbox[672]"><img src="http://dat.plastica-romantica.com/wp-content/uploads/2012/01/2012-01-29-12-09-01-504-500x299.jpg" title="2012-01-29 12-09-01-504" width="500" height="250" class="aligncenter  wp-image-673" /></a></p>
<p>超欲張りじゃんと思って、迷わず手に取りました。＠LAWSON<br />残念ながらダイスキです。こういうの。<br /> <br /> でもこのロゴなんて読むんだろ。Cは読むの？デザイン？<br />とかどーでもいいこと気になっちゃって調べたら「ビタミンレモン乳酸菌飲料」 が正式名称でした。<br />潔いね。男前だね。<br />「ピルクル-ビタミンレモン味-」って名前の方が売れそうじゃんとかちょっと思ったけど。</p>
<p>話題のステマじゃないですよ。<br />お金じゃなくて、お金払ってビタミンCもらって書いてます。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/oTeAUB34z8bco3vbBHNo5BegIp0/0/da"><img src="http://feedads.g.doubleclick.net/~a/oTeAUB34z8bco3vbBHNo5BegIp0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oTeAUB34z8bco3vbBHNo5BegIp0/1/da"><img src="http://feedads.g.doubleclick.net/~a/oTeAUB34z8bco3vbBHNo5BegIp0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/gL9b2vwQZtU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log672.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log672.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log672.html</feedburner:origLink></item>
		<item>
		<title>safariでWebGLを有効にするのはまだ面倒。2012/01</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/COj6YztbicI/log668.html</link>
		<comments>http://dat.plastica-romantica.com/log668.html#comments</comments>
		<pubDate>Sat, 28 Jan 2012 06:12:36 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[インターネット]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[プログラミング]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=668</guid>
		<description><![CDATA[面倒っていうほどじゃないんだけど。 processing.jsで3dを描く、ちょっとだけ。 &#124; 脱兎.dat 先日、WebGL使った記事書いてみたんだけど、対応してないブラウザに配慮が足りてなかった。 そもそもcanva [...]]]></description>
			<content:encoded><![CDATA[
<p>面倒っていうほどじゃないんだけど。</p>
<p><a href="http://dat.plastica-romantica.com/log570.html" target="_blank">processing.jsで3dを描く、ちょっとだけ。 | 脱兎.dat</a></p>
<p>先日、WebGL使った記事書いてみたんだけど、対応してないブラウザに配慮が足りてなかった。</p>
<p>そもそもcanvasタグに対応してないブラウザのためにcanvasタグを飾ってメッセージを入れてあげなきゃなんない。<br />以下の記事が参考になる。</p>
<blockquote>
<p>HTML5 Canvas &amp; Processing JS<br /><a href="http://joeycadle.com/blog/article/1/2012/22/01/html5-canvas-and-processing-js#comments " target="_blank">http://joeycadle.com/blog/article/1/2012/22/01/html5-canvas-and-processing-js#comments </a></p></blockquote>
<p>Chromeに誘導しちゃうのね。</p>
<p>それでもなんなのこの記事わけわかんない！って言われたから<br />うちのSafari見てみたらcanvasタグが空き地になってた。<br />canvasタグには対応しているけどWebGLが有効になってないの原因?</p>
<p>safariでWebGLを有効にする方法。(2012/01現在)</p>
<p>1.メニュー「環境設定 &gt; 詳細」より「メニューバーに&#8221;開発&#8221;メニューを表示」をオンに。<br />2.メニュー「開発」より「WebGLを有効にする」をオンに。</p>
<p>以上。<br />いちいち、有効にしてくださいね。ってcanvas外に書くのもcoolじゃないし<br />設定取得する方法とかないのかな。ま、早めにデフォルト有効になることを願ってます。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/tpSANcOZU9aRvslZciKP6Wg5qqo/0/da"><img src="http://feedads.g.doubleclick.net/~a/tpSANcOZU9aRvslZciKP6Wg5qqo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/tpSANcOZU9aRvslZciKP6Wg5qqo/1/da"><img src="http://feedads.g.doubleclick.net/~a/tpSANcOZU9aRvslZciKP6Wg5qqo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/COj6YztbicI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log668.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log668.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log668.html</feedburner:origLink></item>
		<item>
		<title>必然とブログが書きたくなる１つの方法</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/h9V8fv7ebJc/log658.html</link>
		<comments>http://dat.plastica-romantica.com/log658.html#comments</comments>
		<pubDate>Thu, 26 Jan 2012 14:13:29 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[雑文]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=658</guid>
		<description><![CDATA[「深夜に残念なタイトルの記事をポストする」 たったこれだけです。あなたは次の日の日中気になって仕方なくなります。 「ああ、こうしている間もマスタベーションなんて言葉がブログのトップにでかでかと居座ってる。早く次の投稿しな [...]]]></description>
			<content:encoded><![CDATA[
<p>「深夜に残念なタイトルの記事をポストする」</p>
<p>たったこれだけです。<br />あなたは次の日の日中気になって仕方なくなります。</p>
<p>「ああ、こうしている間もマスタベーションなんて言葉がブログのトップにでかでかと居座ってる。早く次の投稿しないと！」</p>
<p>自らを追い込むアスリートのようなストイックさが時として必要になります。<br />以上、皆様が戦略的なブログライフを送れることを願っております。</p>
<p>P.S. 深夜のラブレターにはくれぐれもお気をつけを。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/sA6Gk-Md1qu9L4WBQheriOEXFz0/0/da"><img src="http://feedads.g.doubleclick.net/~a/sA6Gk-Md1qu9L4WBQheriOEXFz0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sA6Gk-Md1qu9L4WBQheriOEXFz0/1/da"><img src="http://feedads.g.doubleclick.net/~a/sA6Gk-Md1qu9L4WBQheriOEXFz0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/h9V8fv7ebJc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log658.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log658.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log658.html</feedburner:origLink></item>
		<item>
		<title>射幸性ってマスタベーションの時のあれでしょ？</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/xkqZ6Y_B-8A/log656.html</link>
		<comments>http://dat.plastica-romantica.com/log656.html#comments</comments>
		<pubDate>Wed, 25 Jan 2012 17:17:24 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[雑文]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=656</guid>
		<description><![CDATA[「射幸性」って字面からして、これはきっと男性がマスタベーションの時に感じる一種独特な幸福感のことだろう。ならば、「射幸心を煽るゲーム」なんてものがあろうならそれはきっとエロスにドロッドロにまみれてて、規制規制規制だ−って [...]]]></description>
			<content:encoded><![CDATA[
<p>「射幸性」って字面からして、これはきっと男性がマスタベーションの時に感じる一種独特な幸福感のことだろう。ならば、「射幸心を煽るゲーム」なんてものがあろうならそれはきっとエロスにドロッドロにまみれてて、規制規制規制だ−ってどこかの誰かが叫んじゃっても、まぁそれも致し方ないことだよと、</p>
<p>誰かが言ってました。<br />僕にも 自分をよく見せたい願望というものが人並みにありますので誰かに言ってもらいました。誰かの正体は闇の中ですが、射幸心の意味は<a href="http://ja.wikipedia.org/wiki/%E5%B0%84%E5%B9%B8%E5%BF%83" target="_blank">Wikipedia</a>にあります。</p>
<p>「射幸心」って言葉とはモバイルゲーム関係のニュースで出くわしたわけですが、この自分をよく見せたい願望というのにもモバイルゲームやってたらよく出くわします。<br />お金を払ってアイテムを買って、アバターにえくぼとかつけるわけですよ。エヘン。<br />アバターにえくぼに限らずモバイルゲームって欲と蜜月ですよね。ちょっと前まで「ゲーム」って単語から連想できてたそれらよりはエロスじゃないにしてもドロドロはしてる気がします。</p>
<p>敵を倒す(殺すと書くのは忍びない)、成長する、成長を実感する(数値でタイムリーに)、つながる、ほめられる、 運ぶ、戦う、増える、そして食べられる(悪乗り)とか、どこを切り取っても隙がない。全部仮想体験出来ちゃう、結構簡単に。特に最近、お金で大抵解決出来てしまうのとか、解決すること自体だけじゃなくて「お金で」ってとこまで含めて実現したい欲求なんじゃないのかなと考えてしまいます。札束で人の頬を叩いてみたい的欲求が仮想世界で渦巻いているんじゃなかろうか、これはなかなか凄まじいよね、と。たぶん皮肉とかじゃなく、なんだろう、リアルな家族ものの小劇場演劇観てる感覚？え、いや、そんなとこまで見せちゃうの、っていう。日本人的裏ゲーミフィケーションみたいな。(ゲーミフィケーションって言ってみたかっただけ）もちろん健全な仕組みにすべきところは修正して、うまく説明できないドロドロ感がうまい具合になったゲームが出てくればいいなと思います。基本的に僕は「ゲームって要するに未来だぜ」みたいな残念な思考の持ち主ではあります。</p>
<p>ちなみに、今日のこれ、なんだか本気でよくわかんない文章になっちゃったのは、実はブログに「ゲーム性」を持たせているからです。この記事の中に動物が五匹隠れていますいぬ。君は何匹見つけられるかなねこ。三匹のこぶた。</p>
<p>&nbsp;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/AJ57tW7wALuTxMB9d07091pdDnI/0/da"><img src="http://feedads.g.doubleclick.net/~a/AJ57tW7wALuTxMB9d07091pdDnI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AJ57tW7wALuTxMB9d07091pdDnI/1/da"><img src="http://feedads.g.doubleclick.net/~a/AJ57tW7wALuTxMB9d07091pdDnI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/xkqZ6Y_B-8A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log656.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log656.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log656.html</feedburner:origLink></item>
		<item>
		<title>三日坊主じゃなきゃダメなんですか？</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/_raxOFgONy4/log650.html</link>
		<comments>http://dat.plastica-romantica.com/log650.html#comments</comments>
		<pubDate>Tue, 24 Jan 2012 15:15:19 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[雑文]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=650</guid>
		<description><![CDATA[四日坊主ならいいんですか？むしろ、四日坊主ならいいんじゃないですか。上出来じゃないですか。 内なる自分がそそのかします。 ちょっとググッてみたら三日坊主の語源には諸説あるらしいんですが、基本的に坊主はお坊さんのことみたい [...]]]></description>
			<content:encoded><![CDATA[
<p>四日坊主ならいいんですか？むしろ、四日坊主ならいいんじゃないですか。上出来じゃないですか。</p>
<p>内なる自分がそそのかします。</p>
<p>ちょっとググッてみたら三日坊主の語源には諸説あるらしいんですが、<br />基本的に坊主はお坊さんのことみたい。ん、あたりまえ？<br />なんとなく三日坊主は飴持ったワルガキのイメージでした。</p>
<p>「母ちゃんが3日続けろって言ったから続けただけだい！4日なんて言ってないやい！」<br />いや、ほんとなんとなくで。</p>
<p>このエントリが新年5つめ。<br />そろそろだな。そろそろな感じがする。<br />栄養ドリンクのCMなら上司の五日坊主が「頑張り過ぎんなよ」って肩叩くシーン。</p>
<p>いや、もう上出来じゃないですか。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/W5TYREoSQDGDtSOBNqKVbF_viy4/0/da"><img src="http://feedads.g.doubleclick.net/~a/W5TYREoSQDGDtSOBNqKVbF_viy4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/W5TYREoSQDGDtSOBNqKVbF_viy4/1/da"><img src="http://feedads.g.doubleclick.net/~a/W5TYREoSQDGDtSOBNqKVbF_viy4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/_raxOFgONy4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log650.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log650.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log650.html</feedburner:origLink></item>
		<item>
		<title>マジで、わだち助かる、マジでわだち</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/w607x_9IxBg/log647.html</link>
		<comments>http://dat.plastica-romantica.com/log647.html#comments</comments>
		<pubDate>Mon, 23 Jan 2012 17:05:20 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[日常]]></category>
		<category><![CDATA[日記]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=647</guid>
		<description><![CDATA[とか、唱えながら帰宅した@imaimiamiです。 雪ですね。常時Crocs(ジョージ・クロックス)で過ごす怠惰な自分には雪道は難易度高いです。轍に助けられました。 わだちマジでラブ、ラブマジでわだち。 ただね、帰宅して [...]]]></description>
			<content:encoded><![CDATA[
<p style="text-align: center;"><a href="http://dat.plastica-romantica.com/wp-content/uploads/2012/01/2012-01-23-11-50-53-910.jpg" rel="lightbox[647]"><img src="http://dat.plastica-romantica.com/wp-content/uploads/2012/01/2012-01-23-11-50-53-910-500x299.jpg" title="2012-01-23 11-50-53-910" width="500" height="200" class="aligncenter  wp-image-648" /></a></p>
<p style="text-align: left;">とか、唱えながら帰宅した@imaimiamiです。</p>
<p style="text-align: left;">雪ですね。常時Crocs(ジョージ・クロックス)で過ごす怠惰な自分には雪道は難易度高いです。轍に助けられました。</p>
<p style="text-align: left;">わだちマジでラブ、ラブマジでわだち。</p>
<p style="text-align: left;">ただね、帰宅してからカバンの奥底に眠る返却しそびれたレンタルDVDの存在に気づいたんです。今日期限ですよ。明日の開店までにボックスに叩きこめばセーフ。よりによって雪の日に。昨日美容院で読んだメンズノンノの12年に1度の運気ってなんだったんでしょう。読んでたのはメンズノンノ演義だったのでしょうか。表紙の瑛太指さしてこんなにしてくださいって横暴振りかざせる猛者にのみ当てはまる占いなのでしょうか。</p>
<p style="text-align: left;">何にしろ、明日の朝も雪道と格闘しなければならないはずです。<br />マジでわだち助けて、わりとマジで。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ELDJ_HJLsOo3oczD_NZS666OLyk/0/da"><img src="http://feedads.g.doubleclick.net/~a/ELDJ_HJLsOo3oczD_NZS666OLyk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ELDJ_HJLsOo3oczD_NZS666OLyk/1/da"><img src="http://feedads.g.doubleclick.net/~a/ELDJ_HJLsOo3oczD_NZS666OLyk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/w607x_9IxBg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log647.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log647.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log647.html</feedburner:origLink></item>
		<item>
		<title>titanium mobile 入門にあたって参考になったURL</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/_zoZSmOPkcg/log619.html</link>
		<comments>http://dat.plastica-romantica.com/log619.html#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:06:05 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[titanium]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=619</guid>
		<description><![CDATA[titaniumいじってます。iPhoneとandroidアプリをjavascriptで書ける開発環境です。軟弱者なんでとりあえず簡単なのないかなとphoneGap試した後、titaniumに辿り着きました。phoneG [...]]]></description>
			<content:encoded><![CDATA[<p>titaniumいじってます。<br />iPhoneとandroidアプリをjavascriptで書ける開発環境です。軟弱者なんでとりあえず簡単なのないかなとphoneGap試した後、titaniumに辿り着きました。</p><h3>phoneGapについて</h3><p>自分はphoneGapの中身をjQueryMobileで作って、実行速度、固定タブあたりに不満を感じ、titaniumに移りました。<br />最近はjQmobiとか出てきたりjQueryMobileアップデートしてるようなので、また試してみたいなとも思ってます。</p><blockquote><p>スマフォのHTML5環境向けに作られたjQueryライクな軽量フレームワーク・jQ.Mobiの日本語サンプル作った &#8211; かちびと. net<br /><a href="http://kachibito.net/software/jq-mobi.html" target="_blank" data-mce-href="http://kachibito.net/software/jq-mobi.html">http://kachibito.net/software/jq-mobi.html</a></p></blockquote><h3>はじめてのtitanium</h3><p>とりあえずざっと理解するためには以下のサイトがめちゃ役に立ちました。全体的に目を通せば何が出来るかわかると思います。</p><blockquote><p>titanium-mobile-doc-ja &#8211; Appcelerator Titanium Mobileに関するドキュメントを日本語でまとめていくプロジェクト &#8211; Google Project Hosting<br /> <a href="http://code.google.com/p/titanium-mobile-doc-ja/" target="_blank" data-mce-href="http://code.google.com/p/titanium-mobile-doc-ja/">http://code.google.com/p/titanium-mobile-doc-ja/</a></p></blockquote><p>次に実機にインストール出来る人は公式デモのKitchenSinkをインストールして電車の中とかで触ってみればいいと思います。<br />インストールできなくてもローカルに保存しておけば今後お世話になるはずです。</p><blockquote><p>appcelerator/KitchenSink &#8211; GitHub <br /><a href="https://github.com/appcelerator/KitchenSink" target="_blank" data-mce-href="https://github.com/appcelerator/KitchenSink">https://github.com/appcelerator/KitchenSink</a></p></blockquote><p>モバイルアプリは場所問わず実際に触りながら考えまとめられるから良いですね。風呂でUI考えられたりね。</p><h3>やってみよう、そのまえに</h3><p>やや、これは楽しそう、作ってみようと思ったら、まず逸る気持ちを抑えて「titanium シングルコンテキスト」でググってみましょう。僕はこれで軽く衝撃を受けました。以下のサイトがわかりやすいですが、KitchenSinkのような構造がオススメされているわけではないようです。特に自分の場合、androidでのパフォーマンスはシングルコンテキストじゃないと納得できない状態でした。まぁ、このへんは自分の書き方にも寄るのでしょうけどね。精進。</p><blockquote><p>[Titanium] window.urlは推奨されないプログラミング手法らしい &#8211; もぎゃろぐ <br /><a href="http://blog.mogya.com/2011/08/window-url-is-not-recommended.html" target="_blank" data-mce-href="http://blog.mogya.com/2011/08/window-url-is-not-recommended.html">http://blog.mogya.com/2011/08/window-url-is-not-recommended.html</a></p><p>titanium でシングルコンテキストな書き方にチャレンジ &#8211; インターネット時代のキャリアプランとは？<br /><a href="http://d.hatena.ne.jp/h5y1m141/20110930/p1" target="_blank" data-mce-href="http://d.hatena.ne.jp/h5y1m141/20110930/p1">http://d.hatena.ne.jp/h5y1m141/20110930/p1</a></p></blockquote><p>で、シングルコンテキストに心奪われたならばtweetaniumのソースを眺めてみると良いと思います。<br />シングルコンテキストの書き方以外にも大いに参考になります。特に独自タブ周りでしょうか。<br />androidの環境依存のタブは<del>ださ</del>ダサ可愛いので、独自実装したくなります。そんな時は以下ソースのApplicationWindow.jsが参考になるでしょう。</p><blockquote><p>appcelerator-titans/tweetanium &#8211; GitHub<br /><a href="https://github.com/appcelerator-titans/tweetanium" target="_blank" data-mce-href="https://github.com/appcelerator-titans/tweetanium">https://github.com/appcelerator-titans/tweetanium<br /></a></p></blockquote><h3>さいごに</h3><p>あとは公式リファレンスとか見ながらガシガシ作れる気がします。気がするだけかもしれないのでググッても良いと思います。日本語情報も結構あります。日本にユーザー多いってどこかで見かけたけどそうなのかな。<br />あと、同じコードでマルチデバイス対応は無理です。具体的な完成イメージがあるならば尚更。当然かもしれませんが、titaniumでプロトタイピングやるならiPhone、androidどちらかでやるべきだと思います。(こだわりなければiPhone)UIまで含めると両対応させるのは想像以上に時間とられます。</p><blockquote><p>Appcelerator Developer Center &#8211; API for (version 1.0)<br /><a href="http://developer.appcelerator.com/apidoc/mobile/1.0/" target="_blank" data-mce-href="http://developer.appcelerator.com/apidoc/mobile/1.0/">http://developer.appcelerator.com/apidoc/mobile/1.0/<br /></a></p></blockquote><p>以上、<br />自分もようやくスタートな感じなんで頑張ります。</p>
<p><a href="http://feedads.g.doubleclick.net/~a/oIm0nwATnkM8MDsnco2U1CeBuEs/0/da"><img src="http://feedads.g.doubleclick.net/~a/oIm0nwATnkM8MDsnco2U1CeBuEs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oIm0nwATnkM8MDsnco2U1CeBuEs/1/da"><img src="http://feedads.g.doubleclick.net/~a/oIm0nwATnkM8MDsnco2U1CeBuEs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/_zoZSmOPkcg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log619.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log619.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log619.html</feedburner:origLink></item>
		<item>
		<title>processing.jsで3dを描く、ちょっとだけ。</title>
		<link>http://feedproxy.google.com/~r/plastica-romantica/DmoE/~3/NOfu24_MCTs/log570.html</link>
		<comments>http://dat.plastica-romantica.com/log570.html#comments</comments>
		<pubDate>Sat, 21 Jan 2012 10:06:46 +0000</pubDate>
		<dc:creator>imaimiami</dc:creator>
				<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://dat.plastica-romantica.com/?p=570</guid>
		<description><![CDATA[ちょっと確認したいことあって書いてみたのだけど、当初の目的には使えなそう。残念。 chromeでしか確認してませんぜ。 Please upgrade your browser to something newer, li [...]]]></description>
			<content:encoded><![CDATA[<p>ちょっと確認したいことあって書いてみたのだけど、当初の目的には使えなそう。残念。</p>
<p>chromeでしか確認してませんぜ。</p>
<script type="text/javascript" src="http://dat.plastica-romantica.com/src/processing-1.3.6.min.js"></script>
<script type="text/processing" data-processing-target="pjs">
void setup() {
	size(540, 200, OPENGL);
	frameRate(50);
	noStroke();
	fill(153, 0, 0);
	smooth();
}
void draw() {
	background(0);
	ambientLight(63, 31, 31); 
	lights();
	for(int i = 1; i < 5;  i++){
		pushMatrix();
		translate(i * width/5, height/2, 0);
		rotateX(mouseX * 0.05);
		rotateY(mouseY * 0.05);
		box(45);
		popMatrix();
	}
}
</script>
<style>
#pjs, #pjs p {
    width: 540px;
    height: 200px;
    background-color: #f5f5f5;
    color: #555;
    text-align: center;
}
</style>
<canvas id="pjs">
<p>Please upgrade your browser to something newer, like <a href="http://chrome.google.com" target="_blank">Google Chrome</a></p>
</canvas>
<p>ソースは以下。</p>
<pre class="brush: java; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;processing-1.3.6.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/processing&quot; data-processing-target=&quot;pjs&quot;&gt;
void setup() {
	size(540, 200, OPENGL);
	frameRate(50);
	noStroke();
	fill(153, 0, 0);
	smooth();
}
void draw() {
	background(0);
	ambientLight(63, 31, 31); 
	lights();
	for(int i = 1; i &lt; 5;  i++){
		pushMatrix();
		translate(i * width/5, height/2, 0);
		rotateX(mouseX * 0.05);
		rotateY(mouseY * 0.05);
		box(45);
		popMatrix();
	}
}
&lt;/script&gt;
&lt;canvas id=&quot;pjs&quot;&gt;&lt;/canvas&gt;
</pre>
<p>今年はprocessingもちゃんと使ってみよう。</p>

<p><a href="http://feedads.g.doubleclick.net/~a/5yEZ3dpX09mFhIdDmdVtkZuYZHo/0/da"><img src="http://feedads.g.doubleclick.net/~a/5yEZ3dpX09mFhIdDmdVtkZuYZHo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5yEZ3dpX09mFhIdDmdVtkZuYZHo/1/da"><img src="http://feedads.g.doubleclick.net/~a/5yEZ3dpX09mFhIdDmdVtkZuYZHo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/plastica-romantica/DmoE/~4/NOfu24_MCTs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://dat.plastica-romantica.com/log570.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://dat.plastica-romantica.com/log570.html" />
	<feedburner:origLink>http://dat.plastica-romantica.com/log570.html</feedburner:origLink></item>
	</channel>
</rss>

