<?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>Meta Bates &#187; General</title>
	<atom:link href="http://www.metabates.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metabates.com</link>
	<description>The technical ramblings of Mark Bates.</description>
	<lastBuildDate>Mon, 08 Feb 2010 15:06:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby 1.9 &amp; Rails 3.0</title>
		<link>http://www.metabates.com/2010/02/08/ruby-1-9-rails-3-0/</link>
		<comments>http://www.metabates.com/2010/02/08/ruby-1-9-rails-3-0/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 15:06:27 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=313</guid>
		<description><![CDATA[I&#8217;ve always been a big proponent of Ruby 1.9, I make no bones about it. My question is why wouldn&#8217;t you be? It&#8217;s faster, more powerful, easier to use, and makes things a lot clearer and cleaner than 1.8. So why then are pretty much all of us still running our applications on 1.8.x? Great [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been a big proponent of Ruby 1.9, I make no bones about it. My question is why wouldn&#8217;t you be? It&#8217;s faster, more powerful, easier to use, and makes things a lot clearer and cleaner than 1.8. So why then are pretty much all of us still running our applications on 1.8.x? Great question, and as far as I can tell there is really only 1 answer.</p>
<p>That answer? Because no one else is. It&#8217;s stupid really, but it&#8217;s the truth. We&#8217;re all afraid to run our applications in 1.9 because we don&#8217;t know many other people that are. Because of that it makes it hard for you to make your application work with 1.9 because all those gems and libraries  you use aren&#8217;t 1.9 compatible, so you&#8217;re forced to keep running your app on 1.8. And so the cycle continues.</p>
<p>Enter Rails 3.0. Here is a major upgrade to the most prominent web framework in the Ruby community, and I would argue the reason that most of us got into Ruby in the first place. This upgrade will force us all to make some pretty severe changes to our applications to make them fully compatible.  The changes in ActiveRecord alone are so sweeping and massive that we, as a community, are going to have to put some serious time into upgrade our applications. Yet, despite this, we are all going to do it.</p>
<p>Why are we all going to upgrade to Rails 3.0? Because it  looks cool and sexy, and we want those great new features and all those performance enhancements to make our applications run faster. Which leads me back to Ruby 1.9.</p>
<p>In Rails 3.0 they are dropping support for Ruby 1.8.6 and below in favor of Ruby &gt;1.8.7 and &gt;1.9.1. I propose that Rails 3.0 becomes Ruby 1.9 compatible only. Think about it. What a perfect opportunity for us all. We are all going to have to upgrade the libraries and gems we maintain to support Rails 3.0 and we are going to be upgrading our applications to Rails 3.0, so why not go full steam into Ruby 1.9?</p>
<p>There is no better time than now to push forward into the future as a whole community. Let&#8217;s put Ruby 1.8 behind and reap the benefits of what Ruby 1.9 has to offer. What do you say? Can we do it? I think we can.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2010/02/08/ruby-1-9-rails-3-0/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>APN on Rails Needs a Home</title>
		<link>http://www.metabates.com/2009/12/21/apn-on-rails-needs-a-home/</link>
		<comments>http://www.metabates.com/2009/12/21/apn-on-rails-needs-a-home/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 16:30:41 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[apn]]></category>
		<category><![CDATA[apn_on_rails]]></category>
		<category><![CDATA[apple push notifications]]></category>
		<category><![CDATA[push notification]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=304</guid>
		<description><![CDATA[Hey there everyone, recently I have been getting a lot of requests for bug fixes and new features for the APN on Rails gem that I wrote. While I appreciate that the gem is getting a lot of use and helping a lot of people out, I, unfortunately, no longer have the time to maintain [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there everyone, recently I have been getting a lot of requests for bug fixes and new features for the APN on Rails gem that I wrote. While I appreciate that the gem is getting a lot of use and helping a lot of people out, I, unfortunately, no longer have the time to maintain the gem.</p>
<p>Recent changes in my career have meant that I have moved away from doing a lot o iPhone development, and because of that I no longer have the time, nor the desire, to keep maintaining a gem I&#8217;m no longer using.</p>
<p>So, because of that, I would to find a new home for the APN on Rails gem so that it gets the love and attention it so desires. Are there any takers out there? Is someone willing to take on the ownership of this, apparently, very useful gem? If you are willing to take it on, please let me know and we can workout the details.</p>
<p>Thanks to everyone who has said good things about the gem, and I&#8217;m glad that it has helped people get to using push notifications quicker, hopefully, one of you can take this project and run with it. Thanks again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/12/21/apn-on-rails-needs-a-home/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First Book Review is a 5-Star One!</title>
		<link>http://www.metabates.com/2009/11/19/first-book-review-is-a-5-star-one/</link>
		<comments>http://www.metabates.com/2009/11/19/first-book-review-is-a-5-star-one/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 21:09:56 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[distributed programmig]]></category>
		<category><![CDATA[distributed programming with ruby]]></category>
		<category><![CDATA[distributed ruby]]></category>
		<category><![CDATA[drb]]></category>
		<category><![CDATA[rinda]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=295</guid>
		<description><![CDATA[About.com became the first, that I know about, to review my book, &#8220;Distributed Programming with Ruby&#8221;. What a great first review to have as well. They rated the book 5 out of 5 stars! The review can be found here.
&#8220;Anyone working with distributed programming in Ruby will want this book.&#8221;
The only downside they saw in [...]]]></description>
			<content:encoded><![CDATA[<p>About.com became the first, that I know about, to review my book, &#8220;Distributed Programming with Ruby&#8221;. What a great first review to have as well. They rated the book 5 out of 5 stars! The review can be found <a href="http://ruby.about.com/od/bookreviews/gr/distributedprogramming.htm">here</a>.</p>
<blockquote><p>&#8220;Anyone working with distributed programming in Ruby will want this book.&#8221;</p></blockquote>
<p>The only downside they saw in the book, was that they wanted it to be longer! I have to save something for the 2nd edition, don&#8217;t I? <img src='http://www.metabates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you haven&#8217;t purchased yours yet, I encourage you to do so. It&#8217;s on sale at <a href="http://book.markbates.com">Amazon.com</a> right now.</p>
<p>If you have reviewed the book, or know of a review of the book, please pass it along.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/11/19/first-book-review-is-a-5-star-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distributed Programming with Ruby &#8211; Now Available</title>
		<link>http://www.metabates.com/2009/11/12/distributed-programming-with-ruby-now-available/</link>
		<comments>http://www.metabates.com/2009/11/12/distributed-programming-with-ruby-now-available/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 20:40:31 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[distributed programmig]]></category>
		<category><![CDATA[distributed programming with ruby]]></category>
		<category><![CDATA[distributed ruby]]></category>
		<category><![CDATA[drb]]></category>
		<category><![CDATA[rinda]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=290</guid>
		<description><![CDATA[Well folks, it&#8217;s been a long road, nearly a year since I presented the idea for &#8220;Distributed Programming with Ruby&#8221; to Obie Fernandez in a hot tub in Florida, but finally my book is done, dusted, back from the printers and available for purchase from a variety of places, include Amazon.com!
It was an absolutely amazing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://book.markbates.com"><img class="alignleft size-medium wp-image-231" style="margin: 10px;" title="Distributed Programming with Ruby" src="http://www.metabates.com/wp-content/uploads/2009/06/0321638360_bates_mech_page_3-261x300.jpg" alt="Distributed Programming with Ruby" width="261" height="300" /></a>Well folks, it&#8217;s been a long road, nearly a year since I presented the idea for &#8220;Distributed Programming with Ruby&#8221; to Obie Fernandez in a hot tub in Florida, but finally my book is done, dusted, back from the printers and available for purchase from a variety of places, include <a href="http://book.markbates.com">Amazon.com</a>!</p>
<p>It was an absolutely amazing experience and I can&#8217;t thank everyone involved with the project enough for all of their help, guidance, and having to put up with me over the past year.</p>
<p>I would go into detail about all the people I wish to thank, but I did that already in the book, and let&#8217;s be honest, you&#8217;re going to buy it and read it anyway, so I don&#8217;t want to ruin the surprise. <img src='http://www.metabates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m sure you&#8217;ve already purchased your copy, but if you haven&#8217;t might I recommend you pop over to <a href="http://book.markbates.com">Amazon</a> right now and pick yourself up a copy. They&#8217;re selling pretty well and you don&#8217;t want to miss out, do you? I didn&#8217;t think so.</p>
<p>If you are someone with a popular blog and you would like to do a review of the book, please drop me a line and I&#8217;ll see what we can do about hooking you up with a copy. Please understand, though, the publishers aren&#8217;t going to send out copies to everyone who requests them, so there will be a bit of vetting going on.</p>
<p>Also, if you have already purchased the book if you wouldn&#8217;t mind leaving a review of it on <a href="http://book.markbates.com">Amazon</a>, that would be much appreciated. It doesn&#8217;t matter where you bought the book, if you could leave a review there, it will really make a difference. Thanks.</p>
<h3><a href="http://book.markbates.com">Buy &#8220;Distributed Programming with Ruby&#8221; Today!</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/11/12/distributed-programming-with-ruby-now-available/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Introducing Warp Drive for Rails</title>
		<link>http://www.metabates.com/2009/10/07/introducing-warp-drive-for-rails/</link>
		<comments>http://www.metabates.com/2009/10/07/introducing-warp-drive-for-rails/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 13:00:19 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[engines]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[warp drive]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=269</guid>
		<description><![CDATA[At work recently we had a need to build a large Rails application that we then wanted to, for lack of a better word, subclass. Unfortunately there is no real good way of doing that. Rails Engines and templates have way too may limitations. We wanted to bundle up the entire Rails app (models, controllers, [...]]]></description>
			<content:encoded><![CDATA[<p>At work recently we had a need to build a large Rails application that we then wanted to, for lack of a better word, subclass. Unfortunately there is no real good way of doing that. Rails Engines and templates have way too may limitations. We wanted to bundle up the entire Rails app (models, controllers, views, routes, migrations, configurations, libs, assets, etc&#8230; everything!), but there was no good way of doing that. Well, now there is, it&#8217;s called the Warp Drive.</p>
<p>I&#8217;ve decided to just include my README file below to explain what it is, since it&#8217;s a bit lengthy, and I don&#8217;t feel like retyping.</p>
<p>This is still in it&#8217;s early stages, so use with care, but it does seem to be working for us on a daily basis. Let me know what you think!</p>
<h2>What is Warp Drive?</h2>
<p>Warp Drive is what Rails Engines wish they could be, and more! They kick Rails templates in the ass, and they beat keeping an ever evolving base Rails app up to date.</p>
<h3>What are Rails Engines?</h3>
<p>Rails Engines allow you to package up some of a Rails app (controllers, models, views, routes, libs) and put them in a plugin that can be included into a new Rails app, thereby giving it the functionality you had in the engine. That sounds good, but what about the downsides of using an engine? Well, you can&#8217;t override or extend any of the functionality from the engine in your main application. You can hack at the plugin, but now you&#8217;ve made it difficult to update. So what do you do if you want to add or alter a method to a controller or model? What do you do if you want to change the look and feel of a view? You have to copy everything into your main application. Boo!</p>
<p>Rails Engines also don&#8217;t allow you to package up migrations, assets, plugins, initializers, etc&#8230; All the fun stuff that you&#8217;ve come to know and love about a Rails application.</p>
<h3>Enter the Warp Drive!</h3>
<p>So what is a Warp Drive? Great question. To put it simply a Warp Drive is a standard, full featured, Rails application that you can easily bundle up into a Ruby Gem, and include into another Rails app. That second Rails app now has all the power of the first Rails. That is all there is to it.</p>
<h2>Creating a Warp Drive.</h2>
<p>Let&#8217;s assume we have an application that implements AuthLogic for handling user registration/authentication. We have controllers, views, models, plugins, initializers, configurations, migrations, tasks, etc&#8230; it&#8217;s a full featured fully functional Rails application, we call it authenticator.</p>
<p>We want to turn our authenticator application into a Warp Drive. We can do it in three simple steps, the first two steps you only need to do the first time, to set everything up.</p>
<ol>
<li><code>$ gem install warp_drive</code></li>
<li><code>$ warpify</code><br />
That will add a little bit of code to your <code>Rakefile</code>. That code simply requires the Warp Drive gem, and gives you hooks to configure the gem of your Warp Drive application.</li>
<li>$ <code>rake warp_drive:compile</code> (<code>rake warp_drive:install</code>)This will either compile your gem for your (<code>warp_drive:compile</code>) or compile and install your gem (<code>warp_drive:install</code>)</li>
</ol>
<p>That&#8217;s it! You should now have your Rails application bundled up and/or installed as a RubyGem!</p>
<h2>Using a Warp Drive.</h2>
<p>With your fancy new Warp Drive, authenticator, built and installed how do you use it in that new application your building? Again, it&#8217;s stupid easy, and it only takes one step, that only needs to be run once:</p>
<ol> <code>$ install_warp_drive authenticator</code></ol>
<p>That will put a few lines of code in your <code>Rakefile</code>, so you have access to all the <code>Rakefile</code> tasks in your Warp Drive, and a line in your <code>config/environment.rb</code> so that it will load your Warp Drive when you launch your application.</p>
<p>That&#8217;s it! You&#8217;re done. Now you can run <code>rake db:migrate</code> to run the migrations from both your Warp Drive and your new application. Enjoy!</p>
<h2>Overriding, Extending, and Other Such Fun Things</h2>
<h3>Overriding and Extending</h3>
<p>You&#8217;ve been enjoying your new Warp Drive back application for a little while now, but you decide you really need to change an action in your controller, how do you go about that? Simple, just like you would any normal alteration to a Ruby class.</p>
<p>Example:<br />
Here is what the action looks like in our Warp Drive UsersController:</p>
<pre><code>
  def new
    @user = User.new
  end
</code></pre>
<p>In our new application we can just open up the UsersController like this:</p>
<pre><code>
  class UsersController &lt; ApplicationController

    def new_with_default_name
      new_without_default_name
      @user.login = 'default_name'
    end

    alias_method_chain :new, :default_name

  end
</code></pre>
<p>Viola! The same works for any thing else in the system, models, libs, etc&#8230; In our example we used <code>alias_method_chain</code> to retain the original method, but we could have completely rewritten the method as well.</p>
<p>You can also plop in a new view and it will override the view that was in your Warp Drive. The sky is really the limit.</p>
<h3>Assets</h3>
<p>You can easily bundle assets from your public directory in your Warp Drive. Just make sure they are in folders called <code>warp_drive</code>. Those folders will then be symlinked to your new project&#8217;s public directory when the application starts up.</p>
<h3>Keep Those Rake Tasks Private!</h3>
<p>We all them, Rake tasks we have created to help us do all sorts of things, and we usually don&#8217;t want them to ship. Well, Warp Drive has you covered there. Just place your tasks in folders called <code>private</code> and Bob&#8217;s your uncle they won&#8217;t be available in the compiled gem.</p>
<pre><code>
  lib/
    tasks/
      foo.rake
      private/
        bar.rake
</code></pre>
<p>In this example <code>foo.rake</code> will be available to clients of your Warp Drive, but <code>bar.rake</code> will not be.</p>
<p>Copyright (c) 2009 Mark Bates</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/10/07/introducing-warp-drive-for-rails/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>A Few Rails Nuggets</title>
		<link>http://www.metabates.com/2009/09/07/a-few-rails-nuggets/</link>
		<comments>http://www.metabates.com/2009/09/07/a-few-rails-nuggets/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 01:23:28 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[authlogic]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[delayed job]]></category>
		<category><![CDATA[distributed programming with ruby]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[webrat]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=282</guid>
		<description><![CDATA[So with my book, Distributed Programming with Ruby, finally finished, and a nice long weekend I was able to sit down and work on a little pet project of mine. I decided to work on a little site that I could use to track my rather large Pez collection. (Yes, I know, I collect Pez [...]]]></description>
			<content:encoded><![CDATA[<p>So with my book, <a href="http://my.safaribooksonline.com:80/9780321669919">Distributed Programming with Ruby</a>, finally finished, and a nice long weekend I was able to sit down and work on a little pet project of mine. I decided to work on a little site that I could use to track my rather large Pez collection. (Yes, I know, I collect Pez &#8211; so what!)</p>
<p>While working on it I got to use some new technologies that I really haven&#8217;t had a chance to play, so I thought I would talk a bit about some of the ones I liked the most.</p>
<h3>Authlogic</h3>
<p>Love it! Finally a decent authentication system! The thing I love most about it? It doesn&#8217;t generate a lot of crap in your project. If I were to say one bad thing about it, it would be that it doesn&#8217;t generate enough in your project. <img src='http://www.metabates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I know that sounds silly, but it&#8217;s the truth. It gives you so much power, without having to generate a ton of lib code and crazy controller code, which is awesome. However, it would be nice if it had a generator that generated a &#8216;basic&#8217; application for you. Just a little thing, apart from that, love it!</p>
<p><a href="http://github.com/binarylogic/authlogic/tree/master">http://github.com/binarylogic/authlogic/tree/master</a></p>
<h3>Cucumber/Webrat</h3>
<p>I&#8217;m sure by now everyone has heard of Cucumber. I&#8217;m not going to pretend that I&#8217;m the first to that party! Over the last month or so I&#8217;ve really started to use it and it has completely changed my life. That&#8217;s not an overstatement.</p>
<p>Cucumber lets you write features and scenario in human readable format. Combine that with Webrat, which lets you do things like click buttons and follow links, you can write some amazing tests that look like something a project manager would write! Brilliant!</p>
<p>These tests beat the hell out of Rails integration tests. Trust me! I love watching Cucumber and Webrat click around my site while I just watch.</p>
<p><a href="http://cukes.info/">http://cukes.info/</a><br />
<a href="http://github.com/brynary/webrat/tree/master">http://github.com/brynary/webrat/tree/master</a></p>
<h3>Web App Theme Generator</h3>
<p>This cool little plugin helps you to quickly generate a very useful, and laid out, theme for your application. The themes would be familiar to anyone who has used sites like Lighthouse. They&#8217;re basic, but they are very well coded and get you on your quickly so you can have something that looks fairly decent.</p>
<p>My only gripe with this plugin is that it is a bit clumsy to use, but thankfully you don&#8217;t have to run it very often, only when you create a new controller/resource.</p>
<p><a href="http://gravityblast.com/2009/07/30/2-minutes-admin-layout-with-rails-and-the-web-app-theme-generator/">http://gravityblast.com/2009/07/30/2-minutes-admin-layout-with-rails-and-the-web-app-theme-generator/</a></p>
<h3>Delayed Job</h3>
<p>The last piece of tech is Delayed Job. I first discovered Delayed Job when I wrote about it in my <a href="http://my.safaribooksonline.com:80/9780321669919">book</a>. It is a great way to handle and process background tasks. It&#8217;s easy, reliable, and scales really well. I&#8217;ve been using the Collective Idea fork of the project. It has a generator to create the migration you need. It also has a nice binary to run in the background on your server.</p>
<p>I&#8217;ve also been using a little gem I wrote that gives me hooks into Hoptoad, the is_paranoid gem, and a nice subclass for writing workers.</p>
<p>I have been completely enamored with Delayed Job from the first moment I used it, and I&#8217;m sure if you haven&#8217;t checked it out yet, and you do, you&#8217;ll feel the same!</p>
<p><a href="http://github.com/collectiveidea/delayed_job/tree/master">http://github.com/collectiveidea/delayed_job/tree/master</a><br />
<a href="http://github.com/markbates/delayed_job_extras/tree/master ">http://github.com/markbates/delayed_job_extras/tree/master</a></p>
<p>There you go, that&#8217;s just a few things I&#8217;ve been playing with lately, that I think are going to become mainstays in any Rails project I work on. Hopefully this has given you a little for for thought on things you can use in your next project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/09/07/a-few-rails-nuggets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>APN on Rails 0.3.0 Released</title>
		<link>http://www.metabates.com/2009/07/31/apn-on-rails-0-3-0-released/</link>
		<comments>http://www.metabates.com/2009/07/31/apn-on-rails-0-3-0-released/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 04:51:02 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[apn]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[push notification]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=264</guid>
		<description><![CDATA[The latest version of Apple Push Notifications on Rails (APN on Rails) has been released. This release brings a few bug fixes, a new migration, and Feedback processing.
Installing/upgrading is easy:
$ sudo gem install apn_on_rails
$ ruby script/generate apn_migrations
$ rake db:migrate

It&#8217;s important to always run the migrations generator after each update to get the latest database schema [...]]]></description>
			<content:encoded><![CDATA[<p>The latest version of Apple Push Notifications on Rails (APN on Rails) has been released. This release brings a few bug fixes, a new migration, and Feedback processing.</p>
<p>Installing/upgrading is easy:</p>
<p><code>$ sudo gem install apn_on_rails<br />
$ ruby script/generate apn_migrations<br />
$ rake db:migrate<br />
</code></p>
<p>It&#8217;s important to always run the migrations generator after each update to get the latest database schema needed for the the gem.</p>
<p>To use the new Feedback integration you have to first make sure that you update the new <code>last_registered_at</code> column when your iPhone application calls home. This column is checked against the timestamp Apple returns with the device token. If the <code>last_registered_at</code> is older than Apple&#8217;s date then the device is deleted, otherwise the Feedback is ignored.</p>
<p>To get and process the list of devices from Apple&#8217;s Feedback service just run the following Rake task:</p>
<p><code>$ rake apn:feedback:process</code></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/07/31/apn-on-rails-0-3-0-released/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Almost There&#8230; Book Wise.</title>
		<link>http://www.metabates.com/2009/07/27/almost-there-book-wise/</link>
		<comments>http://www.metabates.com/2009/07/27/almost-there-book-wise/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 01:54:02 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[delayed job]]></category>
		<category><![CDATA[distributed programming with ruby]]></category>
		<category><![CDATA[drb]]></category>
		<category><![CDATA[map reduce]]></category>
		<category><![CDATA[rinda]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=260</guid>
		<description><![CDATA[I&#8217;m now entering the home stretch of writing the Distributed Programming with Ruby book. I&#8217;m just a few weeks away, well, technically I&#8217;m hours away from finishing the last chapter (Delayed Job) in the official table of contents, however, I&#8217;m going to add another chapter and a half. Why? Mostly because I&#8217;m a glutton for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m now entering the home stretch of writing the Distributed Programming with Ruby book. I&#8217;m just a few weeks away, well, technically I&#8217;m hours away from finishing the last chapter (Delayed Job) in the official table of contents, however, I&#8217;m going to add another chapter and a half. Why? Mostly because I&#8217;m a glutton for punishment. That and I want to deliver the best book possible. The extra chapter and a half, not featured in the table of contents below, will be on MapReduce technologies. It&#8217;s a really hot topic, and I think it will fit well in the book. What do you think?</p>
<p><del datetime="2009-07-29T03:01:37+00:00">Unfortunately, the &#8220;Rough Cuts&#8221; book on O&#8217;Reilly&#8217;s Safari site hasn&#8217;t been updated in nearly 3 months! I&#8217;m not sure why. I keep asking my editor to update it, but it hasn&#8217;t happened yet. I&#8217;m sure it will soon, especially since the first draft of the entire manuscript will be done in just a few weeks!</del></p>
<p>UPDATE: Today they updated the &#8220;Rough Cuts&#8221; with nearly the latest revisions. It&#8217;s still missing the chapters on Delayed Job and BackgrounDRb, but it&#8217;s closer than it was yesterday. </p>
<p>Anyway, as a public service announcement to you, the readers, I thought I would the table of contents as it stands right now, so you have a better idea of what the book is going to be about. So here it goes:</p>
<p><script src="http://gist.github.com/156861.js"></script></p>
<p>What do you think? Does it look good? Is this something you&#8217;d buy? Let me know. This is your chance to have an influence on a book. If you think something is missing or should be laid out differently, please let me know, it might just make it into the final product.</p>
<p>Ok, enough delaying here, let me get back to writing so I can finish up the Delayed Job chapter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/07/27/almost-there-book-wise/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Apple Push Notifications on Rails</title>
		<link>http://www.metabates.com/2009/07/24/apple-push-notifications-on-rails/</link>
		<comments>http://www.metabates.com/2009/07/24/apple-push-notifications-on-rails/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 01:06:10 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[apn]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[push notification]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=250</guid>
		<description><![CDATA[The other night I submitted a new iPhone application to the Apple Store. The app, which I&#8217;ll speak about when, and if it gets approved, uses the new Apple Push Notification service available in iPhone OS 3.0. On the server side I have a Rails application that I am using to send the notifications to [...]]]></description>
			<content:encoded><![CDATA[<p>The other night I submitted a new iPhone application to the Apple Store. The app, which I&#8217;ll speak about when, and if it gets approved, uses the new Apple Push Notification service available in iPhone OS 3.0. On the server side I have a Rails application that I am using to send the notifications to Apple. The problem I ran into was how.</p>
<p>Enter the APN on Rails gem. While searching I found one plugin for Rails that mostly worked for me, Sam Soffes&#8217; apple_push_notification plugin. It was a great place to start, but I found that there were things that didn&#8217;t suite me. For starters, not having any tests is always a big turn off for me when it comes to any code. I also didn&#8217;t like that you didn&#8217;t need to save a notification in order to send it. That means you don&#8217;t have a record of what was sent and when. I also wanted to have devices stored separately from the notification. Finally, I wanted to be able to easily configure the plugin. Sam&#8217;s was using constants that would need to be changed when it hit production.</p>
<p>So, with all that said and done I took Sam&#8217;s great work, ripped it apart, and put it back together again, this time in gem form instead of a plugin, and here it is.</p>
<p>There are a few migrations, a few models, and a few Rake tasks, but here is the basic idea of how it works:</p>
<p><script src="http://gist.github.com/154516.js"></script></p>
<p>To get a better understanding of exactly how it works, and what it does, I highly recommend reading the <a href="http://apnonrails.metabates.com/">RDOC</a>.</p>
<p>There are a few things I still would like to add, for example, a controller to do CRUD for devices so iPhones can register with the Rails app. I&#8217;d also like to add a task that talks to Apple and finds out which devices are no longer accepting messages so they can be removed.</p>
<p>If you&#8217;d like to contribute, please feel free and for the project on GitHub:<br />
<a href="http://github.com/markbates/apn_on_rails/tree">http://github.com/markbates/apn_on_rails/tree</a></p>
<p>Again, a special thanks to Fabien Penso and Sam Soffes for their initial work on this project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/07/24/apple-push-notifications-on-rails/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Becoming a Recording, sorry I meant Software, Engineer</title>
		<link>http://www.metabates.com/2009/07/12/becoming-a-recording-sorry-i-meant-software-engineer/</link>
		<comments>http://www.metabates.com/2009/07/12/becoming-a-recording-sorry-i-meant-software-engineer/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 02:41:51 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[lipa]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=244</guid>
		<description><![CDATA[Recently I was sent a survey from the college I attended, the Liverpool Institute for the Performing Arts. In the survey I was asked a question about what I&#8217;ve done in the field of music, that&#8217;s what my degree is in, since I&#8217;ve graduated. I typed up a rather long winded answer to the question [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was sent a survey from the college I attended, the <a href="http://www.lipa.ac.uk">Liverpool Institute for the Performing Arts</a>. In the survey I was asked a question about what I&#8217;ve done in the field of music, that&#8217;s what my degree is in, since I&#8217;ve graduated. I typed up a rather long winded answer to the question and afterwards I thought it was actually thought it was an interesting commentary on the recording industry. It also shows the path a guy like me takes from being a musician to being a software engineer.</p>
<p>Anyway, I thought I would share this little story with you all. I hope you enjoy it.</p>
<p>About 3 – 4 after graduating I found myself unemployed and decided that I would take that opportunity and try to pursue a career as a recording engineer. I spent two years struggling and working very hard at one of the best studios around and I found that things were just not working out.</p>
<p>I don’t necessarily think it was a problem of my not having the skills needed for the job, but rather it had to do with several other factors. One, because of the state of the recording industry ‘proper’ studios are/were struggling to find work because more and more musicians are doing recording at home on their computers. While their results might not be as ‘high quality’ as those of the studios, the musicians are/were finding that it was good enough to help land them gigs in town.</p>
<p>Because the studio was struggling, and I was the lowest guy on the totem pole, because I was the ‘newest’, I found that I was only getting a few sessions each month, that compared with the ‘top’ engineers who were only getting a week or two worth of work each month.</p>
<p>It was at this point that I sat down and re-evaluated what I wanted most in life. I decided that was really important to me was to have a family and be happy with what I was doing, and to just generally enjoy my life. Realizing that, I had to decide if my current situation was really going to work for me. While I thoroughly enjoyed being a recording engineer, when I got to do it that is, I found the pay ($90 a day &#8211; awful!), the hours (usually 12-14 hours), and the lack of sessions to not be a viable way to raise a family.</p>
<p>Once I decided that being a recording engineer wasn’t going to work for me, I needed to find something that would. I thought long and hard about this, as well, and realized that I really enjoyed being a software engineer. It is strangely creative, the pay is very good, and I was damn good at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/07/12/becoming-a-recording-sorry-i-meant-software-engineer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.542 seconds -->
<!-- Cached page served by WP-Cache -->
