<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for nutrun</title>
	<atom:link href="http://nutrun.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://nutrun.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 05 Jul 2008 16:37:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on Distributed programming with Jabber and EventMachine by Dan</title>
		<link>http://nutrun.com/weblog/distributed-programming-with-jabber-and-eventmachine/#comment-1106</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 02 Jul 2008 17:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=137#comment-1106</guid>
		<description>I haven't used the Jabber protocol as a message queue before like this, but my only concern is does it allow some sort of way to ensure that each message has guaranteed one-time delivery?  If I sent out a message to the "cloud" I would want to make sure every message is either processed by a worker or held in the queue until a worker is available.  My concern is that if workers were backed up, or (worst case) completely down, I would want to ensure no messages were lost.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t used the Jabber protocol as a message queue before like this, but my only concern is does it allow some sort of way to ensure that each message has guaranteed one-time delivery?  If I sent out a message to the &#8220;cloud&#8221; I would want to make sure every message is either processed by a worker or held in the queue until a worker is available.  My concern is that if workers were backed up, or (worst case) completely down, I would want to ensure no messages were lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Abstract resource by Mike</title>
		<link>http://nutrun.com/weblog/abstract-resource/#comment-1102</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 01 Jul 2008 04:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=147#comment-1102</guid>
		<description>A really good example of this method done well is James Golick's resource_controller.  It does a lot the things you mention with some with very nice api and it's quite flexible, too.  http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special

Of course, other people have done similar things, but Golick's is the best I've seen.</description>
		<content:encoded><![CDATA[<p>A really good example of this method done well is James Golick&#8217;s resource_controller.  It does a lot the things you mention with some with very nice api and it&#8217;s quite flexible, too.  <a href="http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special" rel="nofollow">http://jamesgolick.com/2007/10/19/introducing-resource_controller-focus-on-what-makes-your-controller-special</a></p>
<p>Of course, other people have done similar things, but Golick&#8217;s is the best I&#8217;ve seen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Testing Merb controllers by Ola Bini</title>
		<link>http://nutrun.com/weblog/testing-merb-controllers/#comment-1086</link>
		<dc:creator>Ola Bini</dc:creator>
		<pubDate>Fri, 13 Jun 2008 07:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=145#comment-1086</guid>
		<description>Hey George,

My immediate answer to why the session needs to be initialized is that the FakeRequest object is optimized to improve testing speed, and you don't always need the session when testing, so that's why it doesn't create it.</description>
		<content:encoded><![CDATA[<p>Hey George,</p>
<p>My immediate answer to why the session needs to be initialized is that the FakeRequest object is optimized to improve testing speed, and you don&#8217;t always need the session when testing, so that&#8217;s why it doesn&#8217;t create it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DataMapper without a database by Dan Kubb</title>
		<link>http://nutrun.com/weblog/datamapper-without-a-database/#comment-1085</link>
		<dc:creator>Dan Kubb</dc:creator>
		<pubDate>Tue, 10 Jun 2008 04:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=144#comment-1085</guid>
		<description>Kurt, it would be relatively easy to write a DataMapper Adapter that uses in-memory storage rather than rely on an external dependency like a database.

FYI the AbstractAdapter API is getting a bit of an overhaul based on our usage patterns.  It should be more consistent and easier for Adapter authors to write new adapters.  Work is progressing on it now and it should be ready and tested within the next week or so.  The reason I say this is if you decide to write such an adapter you'll want to join us on IRC for the full details.</description>
		<content:encoded><![CDATA[<p>Kurt, it would be relatively easy to write a DataMapper Adapter that uses in-memory storage rather than rely on an external dependency like a database.</p>
<p>FYI the AbstractAdapter API is getting a bit of an overhaul based on our usage patterns.  It should be more consistent and easier for Adapter authors to write new adapters.  Work is progressing on it now and it should be ready and tested within the next week or so.  The reason I say this is if you decide to write such an adapter you&#8217;ll want to join us on IRC for the full details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DataMapper without a database by Kurt Stephens</title>
		<link>http://nutrun.com/weblog/datamapper-without-a-database/#comment-1084</link>
		<dc:creator>Kurt Stephens</dc:creator>
		<pubDate>Mon, 09 Jun 2008 22:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=144#comment-1084</guid>
		<description>DataMapper looks like a much better solution that AR::B, but again we are stuck with objects that require a database to exist.

I've been using the following which almost helped:

module DataMapper::Resource::ClassMethods
  def find_or_create search_opts, create_opts
    create create_opts
  end
  def create create_opts
    new create_opts
  end
end

But at some point it fails in AbstractAdapter#read_set append to an association proxy.

Also many_to_many does not work.

Maybe its time to create a NullAdapter so people can write unit test and use models independently of a database?  For example: serialize object graphs to a client that should not have access to a DB.

When is somebody going to create a truly orthogonal ORM for Ruby, without load-time dependencies, so we can stop modeling databases and start modeling objects with some possibility of reuse?

I'm so ready to ditch AR::Base for the right solution...</description>
		<content:encoded><![CDATA[<p>DataMapper looks like a much better solution that AR::B, but again we are stuck with objects that require a database to exist.</p>
<p>I&#8217;ve been using the following which almost helped:</p>
<p>module DataMapper::Resource::ClassMethods<br />
  def find_or_create search_opts, create_opts<br />
    create create_opts<br />
  end<br />
  def create create_opts<br />
    new create_opts<br />
  end<br />
end</p>
<p>But at some point it fails in AbstractAdapter#read_set append to an association proxy.</p>
<p>Also many_to_many does not work.</p>
<p>Maybe its time to create a NullAdapter so people can write unit test and use models independently of a database?  For example: serialize object graphs to a client that should not have access to a DB.</p>
<p>When is somebody going to create a truly orthogonal ORM for Ruby, without load-time dependencies, so we can stop modeling databases and start modeling objects with some possibility of reuse?</p>
<p>I&#8217;m so ready to ditch AR::Base for the right solution&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DataMapper without a database by David Dai</title>
		<link>http://nutrun.com/weblog/datamapper-without-a-database/#comment-1082</link>
		<dc:creator>David Dai</dc:creator>
		<pubDate>Fri, 06 Jun 2008 05:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=144#comment-1082</guid>
		<description>If you don't mind a little db dirtiness (or cleanness depending on your perspective) you can try in memory sqlite3 adapter: DataMapper.setup(:default, "sqlite3::memory:"). You can keeping mocking your way through w/ occasional SQL magics.  You'll probably want to do DataMapper.auto_migrate! as well. :)</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t mind a little db dirtiness (or cleanness depending on your perspective) you can try in memory sqlite3 adapter: DataMapper.setup(:default, &#8220;sqlite3::memory:&#8221;). You can keeping mocking your way through w/ occasional SQL magics.  You&#8217;ll probably want to do DataMapper.auto_migrate! as well. <img src='http://nutrun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RubyWorks Production Stack on Amazon EC2 by Bill G.</title>
		<link>http://nutrun.com/weblog/rubyworks-production-stack-on-amazon-ec2/#comment-1036</link>
		<dc:creator>Bill G.</dc:creator>
		<pubDate>Mon, 02 Jun 2008 15:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=112#comment-1036</guid>
		<description>This is a great write-up, thanks! It got me close to up-and-running pretty fast. Like commenter #8 above I got hung up on a missing imagemagick install. I can do this manually on the instnace after running cap instance:start, but are there hooks for me to add these steps to my 'instance:start' cap target?

Also I needed to run these commands as well before I could ssh or http to my instance fyi. You might want to add this instruction to the post (or to the gem actually):

ec2-authorize default -p 22
ec2-authorize default -p 80</description>
		<content:encoded><![CDATA[<p>This is a great write-up, thanks! It got me close to up-and-running pretty fast. Like commenter #8 above I got hung up on a missing imagemagick install. I can do this manually on the instnace after running cap instance:start, but are there hooks for me to add these steps to my &#8216;instance:start&#8217; cap target?</p>
<p>Also I needed to run these commands as well before I could ssh or http to my instance fyi. You might want to add this instruction to the post (or to the gem actually):</p>
<p>ec2-authorize default -p 22<br />
ec2-authorize default -p 80</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DataMapper without a database by Sam Smoot</title>
		<link>http://nutrun.com/weblog/datamapper-without-a-database/#comment-985</link>
		<dc:creator>Sam Smoot</dc:creator>
		<pubDate>Fri, 30 May 2008 06:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=144#comment-985</guid>
		<description>Yeah, that's annoying. I'll try to fix it up. Time is a problem. ;-)

So the reason this is happening is because the NamingConventions are per-adapter. So one database can have one set of conventions, another can have a different set.

So, to inflect the #storage_name, we need a handle on the Adapter.

Obviously there's nothing in the above code that actually needs the #storage_name at that point. So we just need to make it a little lazier, and you won't have this issue. As you discovered, a valid connection isn't necessary. Just a handle that responds to #storage_naming_convention and #field_naming_convention.

Thanks for the kind words.

On the plus-side, DM is unofficially-officially supported by my employer, Wieck Media, and I'll be dedicating some more team hours to patching up some of the remaining issues. Expect a 0.9.2 release next Friday if not sooner.</description>
		<content:encoded><![CDATA[<p>Yeah, that&#8217;s annoying. I&#8217;ll try to fix it up. Time is a problem. <img src='http://nutrun.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>So the reason this is happening is because the NamingConventions are per-adapter. So one database can have one set of conventions, another can have a different set.</p>
<p>So, to inflect the #storage_name, we need a handle on the Adapter.</p>
<p>Obviously there&#8217;s nothing in the above code that actually needs the #storage_name at that point. So we just need to make it a little lazier, and you won&#8217;t have this issue. As you discovered, a valid connection isn&#8217;t necessary. Just a handle that responds to #storage_naming_convention and #field_naming_convention.</p>
<p>Thanks for the kind words.</p>
<p>On the plus-side, DM is unofficially-officially supported by my employer, Wieck Media, and I&#8217;ll be dedicating some more team hours to patching up some of the remaining issues. Expect a 0.9.2 release next Friday if not sooner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Queueue, a portable Amazon SQS stub in Ruby by George Malamidis</title>
		<link>http://nutrun.com/weblog/queueue-a-portable-amazon-sqs-stub-in-ruby/#comment-964</link>
		<dc:creator>George Malamidis</dc:creator>
		<pubDate>Tue, 27 May 2008 17:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=103#comment-964</guid>
		<description>Mirko,

Queueue emulates the 2006-04-01 REST API which has not changed much since. I'll post here when I get some time to incorporate the changes.</description>
		<content:encoded><![CDATA[<p>Mirko,</p>
<p>Queueue emulates the 2006-04-01 REST API which has not changed much since. I&#8217;ll post here when I get some time to incorporate the changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Queueue, a portable Amazon SQS stub in Ruby by Mirko</title>
		<link>http://nutrun.com/weblog/queueue-a-portable-amazon-sqs-stub-in-ruby/#comment-963</link>
		<dc:creator>Mirko</dc:creator>
		<pubDate>Tue, 27 May 2008 17:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://new-site.nutrun.com/?p=103#comment-963</guid>
		<description>Which version of the SQS API does Queueue emulate? Since SQS was completely revamped a few months ago, I'm guessing that it supports the older version. If so, do you have any plans to update this to the latest API?</description>
		<content:encoded><![CDATA[<p>Which version of the SQS API does Queueue emulate? Since SQS was completely revamped a few months ago, I&#8217;m guessing that it supports the older version. If so, do you have any plans to update this to the latest API?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
