<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	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/"
	>

<channel>
	<title>PuchilogPlus &#187; Ruby</title>
	<atom:link href="http://blog.puchiplus.com/category/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.puchiplus.com</link>
	<description>Flash/Actionscript</description>
	<lastBuildDate>Tue, 10 May 2011 06:41:16 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>FlashからRubyに値を受け渡す</title>
		<link>http://blog.puchiplus.com/2010/04/flash_ruby.php</link>
		<comments>http://blog.puchiplus.com/2010/04/flash_ruby.php#comments</comments>
		<pubDate>Sat, 24 Apr 2010 20:12:06 +0000</pubDate>
		<dc:creator>laqu</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.puchiplus.com/?p=551</guid>
		<description><![CDATA[FlashからRubyに値を受け渡す。FlashからPHPとかはよく見かけるけど。 まずはFlash側。 package classes { import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.net.URLRequestMethod; import flash.net.URLVariables; public class Index extends Sprite { private var _urlLoader : URLLoader; private var _req : URLRequest; private var _variables : URLVariables; public function Index() { init(); } private function init() : void { _variables = new [...]]]></description>
			<content:encoded><![CDATA[<p>FlashからRubyに値を受け渡す。FlashからPHPとかはよく見かけるけど。</p>
<p><span id="more-551"></span></p>
<p>まずはFlash側。</p>
<pre class="brush:as3;wrap-lines: false;">
package classes
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLLoaderDataFormat;
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.net.URLVariables;

	public class Index extends Sprite
	{
		private var _urlLoader : URLLoader;
		private var _req : URLRequest;
		private var _variables : URLVariables;

		public function Index()
		{
			init();
		}

		private function init() : void
		{
			_variables = new URLVariables();
			_variables.sendData = "huga";

			_req = new URLRequest();
			_req.url = "URLを代入";
			_req.method = URLRequestMethod.POST;
			_req.data = _variables;

			_urlLoader = new URLLoader();
			_urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
			_urlLoader.addEventListener(Event.COMPLETE, complete);
			_urlLoader.load(_req);
		}

		private function complete(e : Event) : void
		{
			_urlLoader.removeEventListener(Event.COMPLETE, complete);

			var data : URLVariables = new URLVariables(_urlLoader.data);
			trace(data.reciveData);
		}
	}
}
</pre>
<p>Ruby側。</p>
<pre class="brush:ruby;">
#!/usr/bin/env ruby

require 'cgi'

print "Content-type:text/plain\n\n"

cgi = CGI.new
hoge = cgi["sendData"]
print "reciveData=" + hoge
</pre>
<p>パブリッシュしてhugaと出ればOK。<br />
まあ、簡単ですよね。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puchiplus.com/2010/04/flash_ruby.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flickr search</title>
		<link>http://blog.puchiplus.com/2010/03/flickr-search.php</link>
		<comments>http://blog.puchiplus.com/2010/03/flickr-search.php#comments</comments>
		<pubDate>Wed, 03 Mar 2010 12:38:12 +0000</pubDate>
		<dc:creator>laqu</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.puchiplus.com/?p=550</guid>
		<description><![CDATA[http://puchiplus.com/sample/flickr/ たまにAS以外の言語に触れると楽しいです。 rubyでflickrAPIたたいて表示してるだけです。 使ってるjQueryはこつら。 ・Create a Thumbnail Gallery with Slick Heading and Caption Effect with jQuery ・How to Create a Visual Image Preloader using jQuery &#171; Dino Latoga IEで見るとCSSの角丸がきいてなかったり、ロールオーバー時のキャプションの背景が透過じゃなかったり残念なのでIE以外をお薦めします。]]></description>
			<content:encoded><![CDATA[<p><a href="http://puchiplus.com/sample/flickr/" target="_blank">http://puchiplus.com/sample/flickr/</a></p>
<p>たまにAS以外の言語に触れると楽しいです。<br />
rubyでflickrAPIたたいて表示してるだけです。</p>
<p>
使ってるjQueryはこつら。<br />
・<a href="http://www.queness.com/post/484/create-a-thumbnail-gallery-with-slick-heading-and-caption-effect-with-jquery" target="_blank">Create a Thumbnail Gallery with Slick Heading and Caption Effect with jQuery</a><br />
・<a href="http://dinolatoga.com/2009/04/26/how-to-create-a-visual-image-preloader-using-jquery/" target="_blank">How to Create a Visual Image Preloader using jQuery &laquo;  Dino Latoga</a>
</p>
<p>
IEで見るとCSSの角丸がきいてなかったり、ロールオーバー時のキャプションの背景が透過じゃなかったり残念なのでIE以外をお薦めします。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puchiplus.com/2010/03/flickr-search.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate買った</title>
		<link>http://blog.puchiplus.com/2009/04/textmate.php</link>
		<comments>http://blog.puchiplus.com/2009/04/textmate.php#comments</comments>
		<pubDate>Sat, 18 Apr 2009 10:51:10 +0000</pubDate>
		<dc:creator>laqu</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.puchiplus.com/?p=459</guid>
		<description><![CDATA[2ヶ月ぶりの更新になってしまいました。 最近Rubyを勉強し始めましてMac用のいいエディタないかなーと思っていろいろ試して最終的にいきついたのがTextMate。 他に試したのはAptanaやNetBeansとかのいわゆるIDE。この2つはフリーで使えるんだけどTextMateはTrial期間1ヶ月が終わったら有料。日本円で5000円くらい。 やっぱりIDEは他にいろいろアプリ立ち上げてたら重くなっちゃう(自分の環境では)のでTextMateにしました。 ただしTextMateはデフォルトでは日本語が打てない。この辺を見ながらなんとか日本語打てるようになったけど文字幅が細い・・けど今んとこ解決方法が他にないのでしょうがないですが。 一応AS3の補完なんかもやってくれるんですがFlashDevelopには適わないのでASは当分FDで。 Flash→Ruby→XML→FlashとかFlash→Ruby→MySQLとかやって遊んでる感じです。 別にプログラマになりたいわけじゃないんだけどサーバーサイドもやれたら幅が広がるしなーと。 PHPもちょっとやったことはあるんですが自分にはRubyの方がしっくりきたんでRubyをやることに。 なのでRuby関連のエントリも書けたら書いていこうと思います。]]></description>
			<content:encoded><![CDATA[<div style="margin:0 0 10px 0;">
<img src="http://blog.puchiplus.com/img/thumbnail/TextMate_icon.png" alt="TextMate" />
</div>
<p>
2ヶ月ぶりの更新になってしまいました。
</p>
<p>
最近Rubyを勉強し始めましてMac用のいいエディタないかなーと思っていろいろ試して最終的にいきついたのが<a href="http://macromates.com/" title="TextMate" target="_blank">TextMate</a>。<br />
他に試したのは<a href="http://aptana.com/" title="Aptana" target="_blank">Aptana</a>や<a href="http://ja.netbeans.org/" title="NetBeans" target="_blank">NetBeans</a>とかのいわゆるIDE。この2つはフリーで使えるんだけどTextMateはTrial期間1ヶ月が終わったら有料。日本円で5000円くらい。
</p>
<p><span id="more-459"></span></p>
<p>
やっぱりIDEは他にいろいろアプリ立ち上げてたら重くなっちゃう(自分の環境では)のでTextMateにしました。<br />
ただしTextMateはデフォルトでは日本語が打てない。<a href="http://d.hatena.ne.jp/hetima/20061110/1163085746" target="_blank">この辺</a>を見ながらなんとか日本語打てるようになったけど文字幅が細い・・けど今んとこ解決方法が他にないのでしょうがないですが。
</p>
<p>
一応AS3の補完なんかもやってくれるんですがFlashDevelopには適わないのでASは当分FDで。
</p>
<p>
Flash→Ruby→XML→FlashとかFlash→Ruby→MySQLとかやって遊んでる感じです。<br />
別にプログラマになりたいわけじゃないんだけどサーバーサイドもやれたら幅が広がるしなーと。
</p>
<p>
PHPもちょっとやったことはあるんですが自分にはRubyの方がしっくりきたんでRubyをやることに。<br />
なのでRuby関連のエントリも書けたら書いていこうと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puchiplus.com/2009/04/textmate.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

