<?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>Floyd's Thoughts...</title>
	<atom:link href="http://www.floydprice.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.floydprice.com</link>
	<description>Because Everything is Interesting!!!</description>
	<lastBuildDate>Fri, 18 Jun 2010 05:32:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rails can&#8217;t scale!</title>
		<link>http://www.floydprice.com/2010/06/rails-cant-scale/</link>
		<comments>http://www.floydprice.com/2010/06/rails-cant-scale/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 05:25:32 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Consulting]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=217</guid>
		<description><![CDATA[I&#8217;m not sure who coined the phrase &#8220;Rails can&#8217;t scale&#8221;? but its on of those things that amazingly keeps coming up, particularly when you talk to people in the corporate world who for some reason have it as the stock answer to any rails related discussions. Anyway this is my Open Source answer to that statement, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure who coined the phrase &#8220;Rails can&#8217;t scale&#8221;? but its on of those things that amazingly keeps coming up, particularly when you talk to people in the corporate world who for some reason have it as the stock answer to any rails related discussions.</p>
<p>Anyway this is my Open Source answer to that statement, so please if anybody asks you &#8220;can rails scale&#8221; or makes the statement &#8220;Rails can&#8217;t scale!&#8221; please feel free to use this answer&#8230;</p>
<blockquote>
<p>Applications built in rails are actually as capable of scaling as apps built in any other language (or on top of any other framework), in fact rails out-of-the-box is good enough for 99.9% of the applications you will ever write, and that tiny amount of apps that will have problems would have the same problems in ANY other language or framework. The benefits of Rails as a framework and Ruby as a language (Like Productivity, Maintainability, Developer Engagement, Mapping to an Agile Process) should in every case be considered over any notion of scaling issues. In fact if your app doesn&#8217;t have 8 million concurrent users right now, don&#8217;t worry about scaling at all, your wasting time that could be better spent getting 8 million users.</p>
</blockquote>
<p>Now this answer doesn&#8217;t touch the real issue with this question but in my experience it is good enough to satisfy the type of people who ask this question.</p>
<p>The only exception where i wouldn&#8217;t use this answer is if the question (or statement) comes from a &#8220;Technical Architect&#8221; in a large corperate who is paid 6 figures a year to keep a development team of 100+ moving forward, if he says &#8220;Rails can&#8217;t scale&#8221; Punch him between the fucking eyes, because he should know better.</p>
<p>The truth, is of course that, anybody who says this knows f-all about software architecture and in fact shouldn&#8217;t be in a position where they have an audience to spout their nonsense.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2010/06/rails-cant-scale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Buy &#8211; Open Sources IdeaX</title>
		<link>http://www.floydprice.com/2010/06/best-buy-open-source-ideax/</link>
		<comments>http://www.floydprice.com/2010/06/best-buy-open-source-ideax/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 21:38:17 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Didn't know Yesterday]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=209</guid>
		<description><![CDATA[Best Buy has received much acclaim for its IdeaX platform over the last year, and rightly so. For anyone who isn&#8217;t away of IdeaX its an Idea Gathering application that allows Best Buy to capture ideas and comments from customers and staff members, which can then be voted or commented on buy other customers or [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bestbuy.com">Best Buy</a> has received much acclaim for its <a href="http://bestbuyideax.com/">IdeaX</a> platform over the last year, and rightly so. For anyone who isn&#8217;t away of IdeaX its an Idea Gathering application that allows Best Buy to capture ideas and comments from customers and staff members, which can then be voted or commented on buy other customers or staff members. The basic idea is that good ideas will organically rise to the top as votes and comments increase the &#8220;score&#8221; given to an Idea. Best Buy can then take a &#8220;good&#8221; idea and make it into a reality.</p>
<p>Idea Gather Applications (also known as Idea Management Apps) are not a new thing, many American corporates have already embraced this concept including Google and Dell, and while each have great apps the Best Buy IdeaX platform stands head and shoulders about the competition.</p>
<p>While browsing Hacker News the other day i noticed a post saying that the Best Buy IdeaX platform has been open sourced! This is a great step for Best Buy, Come on, a big non-tech US corporate releasing an Open Source product!!! its unheard of! Whats more the app is written in Ruby on Rails, which in its self is a massive step for a big corporate who would traditionally have written apps like this in C# or Java.</p>
<p>Check out the <a href="http://bbyidx.com/">project home page</a> for the full story, and be sure to take a look around the code <img src='http://www.floydprice.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>The project does take some getting going, you have to me using Postgress and be sure to check out the mad Postgress Specific stuff going on in the migrations. I plan on getting a version of it up and running on EC2 over the next few days (time permitting) so I will issue some instructions in a later post.</p>
<p>All I can say is Hat Tip to Best Buy, Great job!</p>
<p> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2010/06/best-buy-open-source-ideax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I love Spotify, but why do the record labels?</title>
		<link>http://www.floydprice.com/2010/02/i-love-spotify-but-why-do-the-record-labels/</link>
		<comments>http://www.floydprice.com/2010/02/i-love-spotify-but-why-do-the-record-labels/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:43:46 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Observations]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=207</guid>
		<description><![CDATA[I absolutely love Spotify.com I have it on all my Macs, my IPhone and my Nexus One and I use it every single day. I recommend it to almost everyone I meet, i&#8217;d even go so far to say that it was the app of 2009! Ok, you now appreciate that I love Spotify right? [...]]]></description>
			<content:encoded><![CDATA[<p>I absolutely love Spotify.com I have it on all my Macs, my IPhone and my Nexus One and I use it every single day. I recommend it to almost everyone I meet, i&#8217;d even go so far to say that it was the app of 2009!</p>
<p>Ok, you now appreciate that I love Spotify right? </p>
<p>I can&#8217;t help wondering what the record labels get out of it, here is a true story about my own listening and spending habits (when it comes to music)&#8230;</p>
<p>Prior to signing up for a Spotify account in Sept 2009 I used iTunes and the Apple Music store exclusively in the 12 month prior to Sept 2009 I purchase over 1000 items from the store and spent well over £700 (I know! I was shocked too)&#8230; Since Sept 2009 I have spent £99 (a year subscription) and wont need to spend a penny until Sept 2010, yup Spotify has saved me £600+ isn&#8217;t it great?</p>
<p>Well yes it is for me (and maybe you) but what about the record industry who have been fighting a bitter battle against apple around the price of their product, yet they are loosing tons of revenue by supporting alternative suppliers who are essentially giving it away! Is this a case of biting your nose of to spite your face? Not sure, but it certainly doesn&#8217;t add up! (to me any way).</p>
<p>I can&#8217;t help but think that Great services like Spotify can&#8217;t last!</p>
<p>BTW I Love Spotify!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2010/02/i-love-spotify-but-why-do-the-record-labels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New IPhone App &#8211; TweetExpress</title>
		<link>http://www.floydprice.com/2009/11/new-iphone-app-tweetexpress/</link>
		<comments>http://www.floydprice.com/2009/11/new-iphone-app-tweetexpress/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:42:44 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=205</guid>
		<description><![CDATA[Today Apple approved our 4th IPHone app TweetExpress, it took them almost 3 weeks which was a bit disappointing, but its here now. TweetExpress allows you to receive Push Notifications from Twitter when a selected friend or mention appears on your Twitter timeline, It&#8217;s really great that you can select the Friends your interested in [...]]]></description>
			<content:encoded><![CDATA[<p>Today Apple approved our 4th IPHone app TweetExpress, it took them almost 3 weeks which was a bit disappointing, but its here now.</p>
<p>TweetExpress allows you to receive Push Notifications from Twitter when a selected friend or mention appears on your Twitter timeline, It&#8217;s really great that you can select the Friends your interested in rather than getting all your twitter noise pushed to you <img src='http://www.floydprice.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Check it out at <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=336775839&#038;mt=8">http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=336775839&#038;mt=8</a> and let me know what you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/11/new-iphone-app-tweetexpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail for business</title>
		<link>http://www.floydprice.com/2009/10/gmail-for-business/</link>
		<comments>http://www.floydprice.com/2009/10/gmail-for-business/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 17:12:38 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Happy]]></category>
		<category><![CDATA[Reality]]></category>
		<category><![CDATA[Saving Time/Money]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=203</guid>
		<description><![CDATA[Just moved our email over to Google mail, and as a result I can switch off the Active Directory and Exchange virtual servers, and use the Mac Pro for somthing useful like writing code! I did have to fire up a windows isntance to use the Google Mail Uploader but it was worth it, I [...]]]></description>
			<content:encoded><![CDATA[<p>Just moved <a title="Gmail!" href="http://www.componentworkshop.com">our</a> email over to Google mail, and as a result I can switch off the Active Directory and Exchange virtual servers, and use the Mac Pro for somthing useful like writing code!</p>
<p>I did have to fire up a windows isntance to use the Google Mail Uploader but it was worth it, I have ~9000 mails in outlook that are now in gmail.</p>
<p>Gmail has just saved us 2 windows server licenses and an exchange 2007 license, never mind all the time and effort.</p>
<p>Moving your email over to Gmail? You should be!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/10/gmail-for-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPhone Libraries</title>
		<link>http://www.floydprice.com/2009/10/iphone-libraries/</link>
		<comments>http://www.floydprice.com/2009/10/iphone-libraries/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 19:07:53 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=199</guid>
		<description><![CDATA[Mose developers collect a number of libraries and Open Source code samples during their career, which they use over and over again. Here is a list of the IPhone code that I use when building apps, please feel free to send me some suggestions for more? TouchJSONTouchJSON is parser and generator for JSON implemented in [...]]]></description>
			<content:encoded><![CDATA[<p>Mose developers collect a number of libraries and Open Source code samples during their career, which they use over and over again.</p>
<p>Here is a list of the IPhone code that I use when building apps, please feel free to send me some suggestions for more?</p>
<ul>
<li><a href="http://code.google.com/p/touchcode/wiki/TouchJSON">TouchJSON</a><br />TouchJSON is parser and generator for JSON implemented in Objective C.
</li>
<li><a href="http://github.com/joehewitt/three20">Three20</a> <br />	 Three20 is an Objective-C library for iPhone developers, featuring a Photo Viewer, Message Composer, Web Images View, Internet aware table view controllers, Better text fields, HTTP disk cache and URL-based navigation.
</li>
<li><a href="http://labratrevenge.com/httpriot/">HTTPRiot</a><br />HTTPRiot is a simple REST library designed to make interacting with REST services much easier. It supports GET, POST, PUSH and DELETE requests and HTTP Basic Authentication. HTTPRiot was inspired by John Nunemaker&#8217;s excellent httparty Ruby library.</li>
</ul>
<p>I also have a personal stash of UIKit extensions which i often re-us, I will put them together for a later post <img src='http://www.floydprice.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/10/iphone-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickTweet is Open Source</title>
		<link>http://www.floydprice.com/2009/10/quicktweet-is-open-source/</link>
		<comments>http://www.floydprice.com/2009/10/quicktweet-is-open-source/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 21:57:22 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=179</guid>
		<description><![CDATA[A while ago we developed a simple Twitter Client to scratch a personal itch I had with the existing clients. The idea was to have a simple app that loaded really quick and enabled me to post a status update to twitter, using a full screen view that contained just a keyboard and a text [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago <a href="http://www.componentworkshop.com">we</a> developed a simple Twitter Client to scratch a personal itch I had with the existing clients.</p>
<p>The idea was to have a simple app that loaded really quick and enabled me to post a status update to twitter, using a full screen view that contained just a keyboard and a text box.</p>
<p>I also wanted it to rotate nicely in to landscape when I rotated the IPhone.</p>
<p>Seems simple ey? yet all the good twitter clients have really poor implementations.</p>
<p>This is what the App looks like:</p>
<p><a  href="http://www.floydprice.com/wp-content/uploads/2009/10/original.jpg"><img style="margin: 4px; border: none;" src="http://www.floydprice.com/wp-content/uploads/2009/10/original.jpg" alt="original.jpg" border="0" width="120" /></a><a href="http://www.floydprice.com/wp-content/uploads/2009/10/original2.jpg"><img style="margin: 4px; border: none;" src="http://www.floydprice.com/wp-content/uploads/2009/10/original2.jpg" alt="original2.jpg" border="0" width="120"  /></a></p>
<p>This project will show you how to do the following things:</p>
<ul>
<li>Draw a custom control (TextField)</li>
<li>Use a Fliped Transition (settings view)</li>
<li>Save and fetch user defaults</li>
<li>Custom Rotation logic to position elements manually</li>
<li>Animation, the tweet text field animates away when you click Post</li>
<li>Integrating with a 3rd party code base (MGTwitterEngine)</li>
</ul>
<p>Go get the source from <a href="http://svn.floydprice.com/OSS/QuickTweet/trunk/">http://svn.floydprice.com/OSS/QuickTweet/trunk/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/10/quicktweet-is-open-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automatic Elastic Block snapshots with a cron job</title>
		<link>http://www.floydprice.com/2009/10/automatic-elastic-block-snapshots-with-a-cron-job/</link>
		<comments>http://www.floydprice.com/2009/10/automatic-elastic-block-snapshots-with-a-cron-job/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 22:01:46 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Code Spaces]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=158</guid>
		<description><![CDATA[Amazon EC2 really is amazing, and the Elastic Block storage is pretty darn good too, however I wish you could automate the snapshot process form the EC2 console. It is however pretty easy to do yourself using a simple cron job. Before you start make sure you have a JRE: sudo apt-get install sun-java6-jre You [...]]]></description>
			<content:encoded><![CDATA[<p>Amazon EC2 really is amazing, and the Elastic Block storage is pretty darn good too, however I wish you could automate the snapshot process form the EC2 console.</p>
<p>It is however pretty easy to do yourself using a simple cron job.</p>
<p>Before you start make sure you have a JRE:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">	<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sun-java6-jre</pre></div></div>

<p>You will also need the EC2 API tools:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">	<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>s3.amazonaws.com<span style="color: #000000; font-weight: bold;">/</span>ec2-downloads<span style="color: #000000; font-weight: bold;">/</span>ec2-api-tools.zip
	<span style="color: #c20cb9; font-weight: bold;">unzip</span> ec2-api-tools.zip</pre></div></div>

<p>At this point you should make a metal note of where you unzipped the api tools to.</p>
<p>Now that you have the prerequisites you need the following simple script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">	<span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
	<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">JAVA_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jvm<span style="color: #000000; font-weight: bold;">/</span>java-<span style="color: #000000;">6</span>-sun<span style="color: #000000; font-weight: bold;">/</span>jre<span style="color: #000000; font-weight: bold;">/</span>
	<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EC2_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>ec2-api-tools-<span style="color: #000000;">1.3</span>-<span style="color: #000000;">42584</span>
	<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EC2_PRIVATE_KEY</span>=<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>misc<span style="color: #000000; font-weight: bold;">/</span>pk-Umbongo.pem
	<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EC2_CERT</span>=<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>misc<span style="color: #000000; font-weight: bold;">/</span>cert-Umbongo.pem 
	<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">AWS_ACCESS_KEY_ID</span>=<span style="color: #ff0000;">&quot;Twinkle Twinkle Little star&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">AWS_SECRET_ACCESS_KEY</span>=<span style="color: #ff0000;">&quot;If your happy and your know it, clap your hands&quot;</span>
&nbsp;
&nbsp;
	<span style="color: #007800;">$EC2_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ec2-create-snapshot vol-<span style="color: #000000;">999999</span></pre></div></div>

<p>Obviously you need to specify your volume id where i have vol-999999</p>
<p>Once you have modified this file to be executable you are ready to test it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">	<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x snapshot.sh
&nbsp;
	.<span style="color: #000000; font-weight: bold;">/</span>snapshot.sh</pre></div></div>

<p>Once your have ran it go to the EC2 Console and verify that the snapshot process has started.</p>
<p>And thats it, the first time you run this script the snapshot will take a while to complete but the next one will be much quicker as the snapshot process is incremental, so only the changes since the last snapshot will be read.</p>
<p>Oh, don&#8217;t forget to create a cron job for this (*/5 * * * * /path/snapshot/sh) <img src='http://www.floydprice.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/10/automatic-elastic-block-snapshots-with-a-cron-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to respond to the IPhone Shake Gesture</title>
		<link>http://www.floydprice.com/2009/10/how-to-respond-to-the-iphone-shake-gesture/</link>
		<comments>http://www.floydprice.com/2009/10/how-to-respond-to-the-iphone-shake-gesture/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:48:02 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[UIKit]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=148</guid>
		<description><![CDATA[The IPhone 3.0 SDK includes support for detecting when a user &#8220;Shakes&#8221; the IPhone, this is intended to be a usability feature allowing app developers to implement Refresh or Read All functions on shake, wow those crazy guys at Apple really do know how to innovate! It&#8217;s pretty easy to implement all you need to [...]]]></description>
			<content:encoded><![CDATA[<p>The IPhone 3.0 SDK includes support for detecting when a user &#8220;Shakes&#8221; the IPhone, this is intended to be a usability feature allowing app developers to implement Refresh or Read All functions on shake, wow those crazy guys at Apple really do know how to innovate!</p>
<p>It&#8217;s pretty easy to implement all you need to do is register your view controller as the first responder and listen for the motion event.</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span> viewDidAppear<span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span>BOOL<span style="color: #009900;">&#41;</span>animated<span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#91;</span>super viewDidAppear<span style="color: #339933;">:</span>animated<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#91;</span>self becomeFirstResponder<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Once your controller is the First Responder you can receive the motion event like so:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>motionEnded<span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span>UIEventSubtype<span style="color: #009900;">&#41;</span>motion withEvent<span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span>UIEvent <span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span>event
<span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>motion <span style="color: #339933;">==</span> UIEventSubtypeMotionShake<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		refresh<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>This will work beautifully but you will however notice that any views you present over this one will not respond to all touch events, for instance the keyboard will not show when you touch a text field, this is because you need to resign the First Responder before you present the view like so:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span>IBAction<span style="color: #009900;">&#41;</span>showMyCustomView <span style="color: #009900;">&#123;</span>    
	<span style="color: #009900;">&#91;</span>self resignFirstResponder<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>	
	<span style="color: #009900;">&#91;</span>self presentModalViewController<span style="color: #339933;">:</span>myCustomViewController animated<span style="color: #339933;">:</span>YES<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>As you can see this is all pretty easy and the only gotcha is the First Responder stuff, which also is pretty trivial.</p>
<p>Enjoy and please people, Shake Responsibly!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/10/how-to-respond-to-the-iphone-shake-gesture/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search Engines&#8230;</title>
		<link>http://www.floydprice.com/2009/10/search-engines/</link>
		<comments>http://www.floydprice.com/2009/10/search-engines/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 16:56:09 +0000</pubDate>
		<dc:creator>Floyd Price</dc:creator>
				<category><![CDATA[Code Spaces]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.floydprice.com/?p=146</guid>
		<description><![CDATA[Bing loves us, Google thinks we are cool, and Yahoo would cross the road it it saw us coming&#8230; If you search for &#8220;Subversion Hosting&#8221; on the three major search engines you will see pretty mush the same bunch of results just in a very different order. for instance Bing has Code Spaces right at [...]]]></description>
			<content:encoded><![CDATA[<p>Bing loves us,<br />
Google thinks we are cool,<br />
and Yahoo would cross the road it it saw us coming&#8230;</p>
<p>If you search for &#8220;Subversion Hosting&#8221; on the three major search engines you will see pretty mush the same bunch of results just in a very different order.</p>
<p>for instance Bing has <a href="http://www.codespaces.com">Code Spaces</a> right at the top (YAY!) however Google has <a href="http://www.codespaces.com">Code Spaces</a> in at number 6 (hmmm!) and Yahoo! has <a href="http://www.codespaces.com">Code Spaces</a> at number 10 (Bah!).</p>
<p>Obviously Bing and Yahoo! mean absolutely nothing when it comes to traffic (relative to google anyway) but its interesting how all three has slightly different opinions about the web. Personally I think Bing have nailed it <img src='http://www.floydprice.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.floydprice.com/2009/10/search-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
