<?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>samurai-apps &#187; iPhone</title>
	<atom:link href="http://samurai-apps.com/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://samurai-apps.com</link>
	<description>Geisha, Fujiyama, Samurai-apps.</description>
	<lastBuildDate>Sun, 22 Jan 2012 15:30:27 +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>Arduino uno + ethernet shield + iPhone + iOSC(OSC Application)</title>
		<link>http://samurai-apps.com/2011/06/11/arduino-osc/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/2011/06/11/arduino-osc/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 01:31:41 +0000</pubDate>
		<dc:creator>tamori</dc:creator>
				<category><![CDATA[arduino]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=755</guid>
		<description><![CDATA[Arduino uno にethernet shieldを乗っけて、iPhoneアプリのiOSCから、OSCのUDPパケットを受信してArduinoに接続された液晶を変更するスケッチ。 液晶接続のポートですが、最初 LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2); としてたら液晶が表示されなかったので、下のスケッチのようにしたら動くようになりました。接続ポートに注意。また、UDPの受信コードはExamplesのUDPSendReceiveStringを参考にしました。というかそのまんま使いました。 /* UDPSendReceive.pde: */ #include // needed for Arduino versions later than 0018 #include #include // UDP library from: bjoern@cs.stanford.edu 12/30/2008 #include // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="225" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.flickr.com/apps/video/stewart.swf?v=71377" /><param name="flashvars" value="intl_lang=en-us&amp;photo_secret=20fd7a9700&amp;photo_id=5804698592" /><param name="bgcolor" value="#000000" /><param name="allowFullScreen" value="true" /><param name="src" value="http://www.flickr.com/apps/video/stewart.swf?v=71377" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="400" height="225" src="http://www.flickr.com/apps/video/stewart.swf?v=71377" allowfullscreen="true" bgcolor="#000000" flashvars="intl_lang=en-us&amp;photo_secret=20fd7a9700&amp;photo_id=5804698592" data="http://www.flickr.com/apps/video/stewart.swf?v=71377"></embed></object></p>
<p>Arduino uno にethernet shieldを乗っけて、iPhoneアプリのiOSCから、OSCのUDPパケットを受信してArduinoに接続された液晶を変更するスケッチ。</p>
<p>液晶接続のポートですが、最初</p>
<pre class="brush:c">LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);</pre>
<p>としてたら液晶が表示されなかったので、下のスケッチのようにしたら動くようになりました。接続ポートに注意。また、UDPの受信コードはExamplesのUDPSendReceiveStringを参考にしました。というかそのまんま使いました。</p>
<pre class="brush:c">/*
  UDPSendReceive.pde:
 */

#include          // needed for Arduino versions later than 0018
#include
#include          // UDP library from: bjoern@cs.stanford.edu 12/30/2008
#include 

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[]	= { 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
byte ip[]	= { 192 , 168 , 1 , 1 } ;  //

unsigned int localPort = 10000;      // local port to listen on

// the next two variables are set when a packet is received
byte remoteIp[4];        // holds received packet's originating IP
unsigned int remotePort; // holds received packet's originating port

// buffers for receiving and sending data
char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
char  ReplyBuffer[] = "acknowledged";       // a string to send back
LiquidCrystal lcd(8, 7, 6, 5, 4, 3, 2);

void setup() {
  // start the Ethernet and UDP:
  Ethernet.begin(mac,ip);
  Udp.begin(localPort);

  lcd.begin(16,2);
  lcd.clear();
  lcd.setCursor(0, 0);

  Serial.begin(9600);
}

void loop() {
  // if there's data available, read a packet
  int packetSize = Udp.available(); // note that this includes the UDP header
  if(packetSize)
  {
    packetSize = packetSize - 8;      // subtract the 8 byte header
    Serial.print("Received packet of size ");
    Serial.println(packetSize);

    // read the packet into packetBufffer and get the senders IP addr and port number
    Udp.readPacket(packetBuffer,UDP_TX_PACKET_MAX_SIZE, remoteIp, remotePort);
    char* c = packetBuffer;
    if( strcmp(c, "/osc/button1") == 0 ){
      lcd.setCursor(0,0);
      lcd.print("button 1 pushed");
    }
    if ( strcmp(c, "/osc/button2") == 0 ){
      lcd.setCursor(0,0);
      lcd.print("button 2 pushed");
    }
    Udp.sendPacket( ReplyBuffer, remoteIp, remotePort);
  }
  delay(500);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/2011/06/11/arduino-osc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iPhone Programming : OpenCV + AVFoundation &#8211; First step of AR</title>
		<link>http://samurai-apps.com/2010/08/02/opencv-avfoundation-first-step-of-ar/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/2010/08/02/opencv-avfoundation-first-step-of-ar/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 07:28:05 +0000</pubDate>
		<dc:creator>tamori</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[開発者ブログ]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=456</guid>
		<description><![CDATA[OpenCV + AVFoundation &#8211; First step of AR カメラからリアルタイムキャプチャして，OpenCVでFFTしたスペクトルをだすプログラム． ARはこんなところから始まるんでしょう，という例です． プロジェクトのダウンロード(Xcode Project &#8211; Source) こんな感じのプログラムです．下の方に表示されているのはプレビュー画像，上がスペクトルです． このプログラムに対して，samurai-appsは一切責任を持ちません．自己責任で，またサンプルとして利用してください．]]></description>
			<content:encoded><![CDATA[<p>OpenCV + AVFoundation &#8211; First step of AR<br />
カメラからリアルタイムキャプチャして，OpenCVでFFTしたスペクトルをだすプログラム．<br />
ARはこんなところから始まるんでしょう，という例です．</p>
<p><a href="http://samurai-apps.com/wp-content/uploads/2010/08/LiveCapturing2.zip" target="_blank">プロジェクトのダウンロード</a>(Xcode Project &#8211; Source)</p>
<p>こんな感じのプログラムです．下の方に表示されているのはプレビュー画像，上がスペクトルです．</p>
<p><a href="http://samuraiapps.sakura.ne.jp/wp-content/uploads/2010/08/fft.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="alignnone size-medium wp-image-461" title="fft" src="http://samuraiapps.sakura.ne.jp/wp-content/uploads/2010/08/fft-200x300.png" alt="" width="200" height="300" /></a></p>
<p>このプログラムに対して，samurai-appsは一切責任を持ちません．自己責任で，またサンプルとして利用してください．</p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/2010/08/02/opencv-avfoundation-first-step-of-ar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>隠レター　公開開始</title>
		<link>http://samurai-apps.com/2010/06/12/invisiletter/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/2010/06/12/invisiletter/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:13:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[隠レター]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=350</guid>
		<description><![CDATA[samurai-appsは本日，iPhone/iPod Touch/iPadアプリ　隠レター・隠Readerをリリースしました． 隠レターは，いわゆる電子透かしアプリです．自分の撮った，あるいはカメラロールにある写真に，自分の指で描いた秘密の画像を埋め込むことができます．埋め込んだ画像は受け取り手の隠レターで抽出することができます．秘密の通信に使いましょう．６月２５日までは無料キャンペーンをしておりますので，ダウンロードして頂き，ぜひご感想をお寄せください． 隠Readerは，抽出に特化した無料アプリです。秘密の画像を受け取っても、これさえあればその秘密の画像を見ることができます。 詳しくはこちらから！ &#8211; 開発はObjective-Cはもちろんのこと，今回はOpenCVを使って書いています．画像処理はやはりOpenCVに任せてしまうのがいいですね．しかし，iPhone3Gで計算速度を出すのが大変でした．インタフェースにはまだまだ改良の余地がありますが，ぜひ電子透かしの新しい使い方を模索してみてください．]]></description>
			<content:encoded><![CDATA[<p>samurai-appsは本日，iPhone/iPod Touch/iPadアプリ　<a href="http://samurai-apps.com/ja/invisiletter/">隠レター・隠Reader</a>をリリースしました．</p>
<div>
<p>隠レターは，いわゆる電子透かしアプリです．自分の撮った，あるいはカメラロールにある写真に，自分の指で描いた秘密の画像を埋め込むことができます．埋め込んだ画像は受け取り手の隠レターで抽出することができます．秘密の通信に使いましょう．６月２５日までは無料キャンペーンをしておりますので，ダウンロードして頂き，ぜひご感想をお寄せください．</p>
<p>隠Readerは，抽出に特化した無料アプリです。秘密の画像を受け取っても、これさえあればその秘密の画像を見ることができます。</p>
<p><a href="http://samurai-apps.com/ja/invisiletter/">詳しくはこちらから！</a></p>
<p>&#8211;</p>
<p>開発はObjective-Cはもちろんのこと，今回はOpenCVを使って書いています．画像処理はやはりOpenCVに任せてしまうのがいいですね．しかし，iPhone3Gで計算速度を出すのが大変でした．インタフェースにはまだまだ改良の余地がありますが，ぜひ電子透かしの新しい使い方を模索してみてください．</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/2010/06/12/invisiletter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calolog FREE 公開開始</title>
		<link>http://samurai-apps.com/2010/03/17/calolog-free-%e5%85%ac%e9%96%8b%e9%96%8b%e5%a7%8b/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/2010/03/17/calolog-free-%e5%85%ac%e9%96%8b%e9%96%8b%e5%a7%8b/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 00:48:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[カロログ]]></category>
		<category><![CDATA[Diet]]></category>

		<guid isPermaLink="false">http://samurai-apps.com/?p=129</guid>
		<description><![CDATA[ご好評いただいているCalolog(カロログ)の無料配布版を本日，公開しました． 機能的な制限はありませんが，広告が出ます． 今後ともsamurai-appsをよろしくお願い申し上げます． Calolog FREE (iTunes)]]></description>
			<content:encoded><![CDATA[<p>ご好評いただいている<a href="http://samurai-apps.com/calolog/">Calolog(カロログ)</a>の無料配布版を本日，公開しました．</p>
<p>機能的な制限はありませんが，広告が出ます．</p>
<p>今後ともsamurai-appsをよろしくお願い申し上げます．</p>
<p><a href="http://itunes.apple.com/jp/app/calolog-free/id361679749?mt=8">Calolog FREE (iTunes)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/2010/03/17/calolog-free-%e5%85%ac%e9%96%8b%e9%96%8b%e5%a7%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>アイデアの小槌＋ Build 20091007.00 公開</title>
		<link>http://samurai-apps.com/2009/10/19/%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%ef%bc%8b-build-20091007-00-%e5%85%ac%e9%96%8b/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/2009/10/19/%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%ef%bc%8b-build-20091007-00-%e5%85%ac%e9%96%8b/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 12:55:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[アイデアの小槌]]></category>
		<category><![CDATA[リリース情報]]></category>

		<guid isPermaLink="false">http://samuraiapps.sakura.ne.jp/?p=49</guid>
		<description><![CDATA[5秒の強制思考時間のON/OFFを選択できるようになりました．]]></description>
			<content:encoded><![CDATA[<p>5秒の強制思考時間のON/OFFを選択できるようになりました．</p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/2009/10/19/%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%ef%bc%8b-build-20091007-00-%e5%85%ac%e9%96%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>アイデアの小槌/アイデアの小槌＋ Build 20090811.00 公開</title>
		<link>http://samurai-apps.com/2009/10/18/%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%ef%bc%8b-build-20090811-00-%e5%85%ac%e9%96%8b/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://samurai-apps.com/2009/10/18/%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%ef%bc%8b-build-20090811-00-%e5%85%ac%e9%96%8b/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 22:00:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[アイデアの小槌]]></category>
		<category><![CDATA[リリース情報]]></category>

		<guid isPermaLink="false">http://samuraiapps.sakura.ne.jp/?p=11</guid>
		<description><![CDATA[twitter対応 (アイデアの小槌/アイデアの小槌＋) 気づきを @samuraiapps としてつぶやく機能です． samuraiappsをfollowしてください！みなさんから得られたつぶやきを１時間に１回つぶやきます．(RSS2Twitter,Yahoo!Pipesを利用したサービスです）． はてなキーワード対応 (アイデアの小槌＋) はてなキーワードからの連想語を取得できるようになりました．]]></description>
			<content:encoded><![CDATA[<p><span id="more-11"></span></p>
<h3>twitter対応 (アイデアの小槌/アイデアの小槌＋)</h3>
<p>気づきを @samuraiapps としてつぶやく機能です．</p>
<p><a href="http://twitter.com/samuraiapps">samuraiapps</a>をfollowしてください！みなさんから得られたつぶやきを１時間に１回つぶやきます．(RSS2Twitter,Yahoo!Pipesを利用したサービスです）．</p>
<h3>はてなキーワード対応 (アイデアの小槌＋)</h3>
<p>はてなキーワードからの連想語を取得できるようになりました．</p>
]]></content:encoded>
			<wfw:commentRss>http://samurai-apps.com/2009/10/18/%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%e3%82%a2%e3%82%a4%e3%83%87%e3%82%a2%e3%81%ae%e5%b0%8f%e6%a7%8c%ef%bc%8b-build-20090811-00-%e5%85%ac%e9%96%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

