<?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>Divide and Conquer &#187; The Project</title>
	<atom:link href="http://www.divideandconquer.se/tag/the-project/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.divideandconquer.se</link>
	<description>David's Software Development Blog</description>
	<lastBuildDate>Thu, 24 Jun 2010 13:47:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making a demo login with restful_authentication</title>
		<link>http://www.divideandconquer.se/2008/03/04/making-a-demo-login-with-restful_authentication/</link>
		<comments>http://www.divideandconquer.se/2008/03/04/making-a-demo-login-with-restful_authentication/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 08:29:07 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[The Project]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/03/04/making-a-demo-login-with-restful_authentication/</guid>
		<description><![CDATA[In order for someone to give The Project (Min Packning) a try it was required to register an account and provide a valid e-mail address. This is an obstacle, so I wanted to add a way for people to try the service without registering. It was actually very easy. I created a demo user account, [...]]]></description>
			<content:encoded><![CDATA[<p>In order for someone to give <a href="/the-project/">The Project</a> (<a href="http://www.minpackning.se/" onclick="pageTracker._trackPageview('/outgoing/www.minpackning.se/?referer=');">Min Packning</a>) a try it was required to register an account and provide a valid e-mail address. This is an obstacle, so I wanted to add a way for people to try the service without registering. It was actually very easy. I created a demo user account, added a demo method to SessionsController and added suitable routing. Now visiting <a href="http://www.minpackning.se/demo" onclick="pageTracker._trackPageview('/outgoing/www.minpackning.se/demo?referer=');">www.minpackning.se/demo</a> will give a logged in session as the demo user.</p>
<p>In app/controllers/sessions_controller.rb:</p>
<blockquote>
<pre>  def demo
    params[:login] = 'demologin'
    params[:password] = 'demopassword'
    create
  end</pre>
</blockquote>
<p>In config/routes.rb:</p>
<blockquote>
<pre>  map.demo '/demo', :controller =&gt; 'sessions', :action =&gt; 'demo'</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/03/04/making-a-demo-login-with-restful_authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First release of The Project</title>
		<link>http://www.divideandconquer.se/2008/02/11/first-release-of-the-project/</link>
		<comments>http://www.divideandconquer.se/2008/02/11/first-release-of-the-project/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 07:26:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[The Project]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/02/11/first-release-of-the-project/</guid>
		<description><![CDATA[I released the first incarnation of The Project yesterday; please visit MinPackning.se! Unfortunately it&#8217;s not so useful if you can&#8217;t read Swedish.
]]></description>
			<content:encoded><![CDATA[<p>I released the first incarnation of <a href="/the-project/">The Project</a> yesterday; please visit <a href="http://www.minpackning.se/" onclick="pageTracker._trackPageview('/outgoing/www.minpackning.se/?referer=');">MinPackning.se</a>! Unfortunately it&#8217;s not so useful if you can&#8217;t read Swedish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/02/11/first-release-of-the-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first AJAX!</title>
		<link>http://www.divideandconquer.se/2008/02/02/my-first-ajax/</link>
		<comments>http://www.divideandconquer.se/2008/02/02/my-first-ajax/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 20:01:14 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[The Project]]></category>
		<category><![CDATA[WWW]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/02/02/my-first-ajax/</guid>
		<description><![CDATA[Probably years after everyone else, I&#8217;ve made my first AJAX-enabled web page today. As I do this from within Ruby on Rails, it was virtually painless to remove or replace a piece of HTML.
My next AJAX step was to get in_place_editing working. The first problem was the InvalidAuthenticityToken and the second issue was that I [...]]]></description>
			<content:encoded><![CDATA[<p>Probably years after everyone else, I&#8217;ve made my first AJAX-enabled web page today. As I do this from within Ruby on Rails, it was virtually painless to remove or replace a piece of HTML.</p>
<p>My next AJAX step was to get in_place_editing working. The first problem was the <a href="http://www.rorsecurity.info/2008/01/18/invalidauthenticitytoken-for-in_place_editing/" onclick="pageTracker._trackPageview('/outgoing/www.rorsecurity.info/2008/01/18/invalidauthenticitytoken-for-in_place_editing/?referer=');">InvalidAuthenticityToken</a> and the second issue was that I use a <a href="http://www.paulwelty.com/ruby-on-rails/ruby-on-rails-using-a-different-controller-with-in_place_editor_field/" onclick="pageTracker._trackPageview('/outgoing/www.paulwelty.com/ruby-on-rails/ruby-on-rails-using-a-different-controller-with-in_place_editor_field/?referer=');">different controller,</a> but now it works fine!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/02/02/my-first-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing &#8220;Things&#8221; in The Project</title>
		<link>http://www.divideandconquer.se/2008/01/28/printing-things-in-the-project/</link>
		<comments>http://www.divideandconquer.se/2008/01/28/printing-things-in-the-project/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 11:25:55 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[The Project]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/01/28/printing-things-in-the-project/</guid>
		<description><![CDATA[The Project will allow users to create and edit something I call &#8220;Things&#8221; in this article. One feature that is quite high on the priority list is to be able to print Things. I found the article “Print this page” with Ruby on Rails but I wanted a separate page for printing a Thing. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/the-project">The Project</a> will allow users to create and edit something I call &#8220;Things&#8221; in this article. One feature that is quite high on the priority list is to be able to print Things. I found the article <a href="http://ariejan.net/2007/01/19/print-this-page-with-ruby-on-rails/" onclick="pageTracker._trackPageview('/outgoing/ariejan.net/2007/01/19/print-this-page-with-ruby-on-rails/?referer=');">“Print this page” with Ruby on Rails</a> but I wanted a separate page for printing a Thing. I have created a layout called &#8220;print&#8221; and my ThingsController contains a method like this:</p>
<pre>  def print
    @thing = current_user.things.find(params[:id])
    render :layout =&gt; "print"
  end</pre>
<p>My routes.rb contains something like:</p>
<pre>  map.print_thing '/things/:id/print',
    :controller =&gt; 'things', :action =&gt; 'print'</pre>
<p>The print layout is currently bare-bone HTML with this script snippet right before &lt;/body&gt;:</p>
<pre>&lt;script type="text/javascript"&gt;javascript:print()&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/01/28/printing-things-in-the-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web design and SimpleSidebar</title>
		<link>http://www.divideandconquer.se/2008/01/26/web-design-and-simplesidebar/</link>
		<comments>http://www.divideandconquer.se/2008/01/26/web-design-and-simplesidebar/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 08:32:08 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[The Project]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/01/26/web-design-and-simplesidebar/</guid>
		<description><![CDATA[I found a suitable initial web design for The Project at Open Source Web Design.  That&#8217;s a really great site!
Now I&#8217;m learning about layouts in Ruby on Rails. As suggested in the Midnight Oil blog (Beds are burning?) article SimpleSidebar &#8211; If you have sidebars, you need this plugin I now use SimpleSidebar in [...]]]></description>
			<content:encoded><![CDATA[<p>I found a suitable initial web design for <a href="/the-project/">The Project</a> at <a href="http://www.oswd.org/" onclick="pageTracker._trackPageview('/outgoing/www.oswd.org/?referer=');">Open Source Web Design</a>.  That&#8217;s a really great site!</p>
<p>Now I&#8217;m learning about layouts in Ruby on Rails. As suggested in the Midnight Oil blog (Beds are burning?) article <a href="http://blog.aisleten.com/2007/06/03/simplesidebar-if-you-have-sidebars-you-need-this-plugin/" onclick="pageTracker._trackPageview('/outgoing/blog.aisleten.com/2007/06/03/simplesidebar-if-you-have-sidebars-you-need-this-plugin/?referer=');">SimpleSidebar &#8211; If you have sidebars, you need this plugin</a> I now use SimpleSidebar in <a href="/the-project/">The Project</a>. At first it didn&#8217;t work at all, but updating config.plugins in config/environment.rb was an easy solution! :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/01/26/web-design-and-simplesidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The humble beginnings of The Project</title>
		<link>http://www.divideandconquer.se/2008/01/06/the-humble-beginnings-of-the-project/</link>
		<comments>http://www.divideandconquer.se/2008/01/06/the-humble-beginnings-of-the-project/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 21:31:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[The Project]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2008/01/06/the-humble-beginnings-of-the-project/</guid>
		<description><![CDATA[Yesterday and today I took some time to work on The Project. (Tomorrow I&#8217;m back at work, so much for a holiday project.) I tossed aside requirements on a strictly Swedish interface, so the controller names are in English and I don&#8217;t use Ola Bini&#8217;s Swedish Rails yet. Honestly I haven&#8217;t done any TDD/BDD yet [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday and today I took some time to work on The Project. (Tomorrow I&#8217;m back at work, so much for a <a href="/2007/12/20/holiday-project/">holiday project</a>.) I tossed aside requirements on a strictly Swedish interface, so the controller names are in English and I don&#8217;t use <a href="http://ola-bini.blogspot.com" onclick="pageTracker._trackPageview('/outgoing/ola-bini.blogspot.com?referer=');">Ola Bini</a>&#8217;s <a href="http://opensource.ki.se/swe_rails.html" onclick="pageTracker._trackPageview('/outgoing/opensource.ki.se/swe_rails.html?referer=');">Swedish Rails</a> yet. Honestly I haven&#8217;t done any TDD/BDD yet either. The excuse I tell myself that I only cannot learn everything at the same time.</p>
<p>I lookup things in the <a href="http://pragprog.com/titles/rails2" onclick="pageTracker._trackPageview('/outgoing/pragprog.com/titles/rails2?referer=');">Rails 1.2 book</a> but as I&#8217;m using Rails 2 I&#8217;m browsing the web quite a bit too. One very useful resource I&#8217;ve found so far is <a href="http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial" onclick="pageTracker._trackPageview('/outgoing/www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial?referer=');">Akita&#8217;s tutorial</a>. So far I have <a href="http://svn.techno-weenie.net/projects/plugins/restful_authentication/" onclick="pageTracker._trackPageview('/outgoing/svn.techno-weenie.net/projects/plugins/restful_authentication/?referer=');">restful_authentication</a> working (from the <a href="http://drnicwilliams.com/2007/06/25/rails-generators-in-rubygems/" onclick="pageTracker._trackPageview('/outgoing/drnicwilliams.com/2007/06/25/rails-generators-in-rubygems/?referer=');">restful_authentication</a><a href="http://drnicwilliams.com/2007/06/25/rails-generators-in-rubygems/" onclick="pageTracker._trackPageview('/outgoing/drnicwilliams.com/2007/06/25/rails-generators-in-rubygems/?referer=');"> gem</a>), a &#8220;welcome&#8221; controller and two domain-specific models. I&#8217;m working on two related controllers.</p>
<p>A few words about using an activation step when registering a new user. I started out with the <a href="http://www.carmelyne.com/2007/8/21/restful_authentication-activation-mailer" onclick="pageTracker._trackPageview('/outgoing/www.carmelyne.com/2007/8/21/restful_authentication-activation-mailer?referer=');">Restful_authentication &amp; Activation</a>   instructions but I thought that having a HOST global variable was really silly so I found the <a href="http://svn.devjavu.com/malaysia-rb/plugins/retardase_inhibitor/" onclick="pageTracker._trackPageview('/outgoing/svn.devjavu.com/malaysia-rb/plugins/retardase_inhibitor/?referer=');">retardase_inhibitor plugin</a> and now I can properly generate URLs in the ActionMailer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2008/01/06/the-humble-beginnings-of-the-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Holiday project!</title>
		<link>http://www.divideandconquer.se/2007/12/20/holiday-project/</link>
		<comments>http://www.divideandconquer.se/2007/12/20/holiday-project/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 12:09:59 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[BDD]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[The Project]]></category>

		<guid isPermaLink="false">http://www.divideandconquer.se/2007/12/20/holiday-project/</guid>
		<description><![CDATA[The day before yesterday I registered a domain name for a new project and yesterday (while recovering from a really upset stomach) I wrote three A5 pages with a database model, sketchy requirements and possible features. All from very basic ones (&#8221;It shall be possible to register a new user account&#8221;) to some that are [...]]]></description>
			<content:encoded><![CDATA[<p>The day before yesterday I registered a domain name for a new project and yesterday (while recovering from a really upset stomach) I wrote three A5 pages with a database model, sketchy requirements and possible features. All from very basic ones (&#8221;It shall be possible to register a new user account&#8221;) to some that are way into the future (&#8221;A user can customize font and color&#8221;).  Maybe five of those requirements will make the cut for a first version of the site&#8230;</p>
<p>I&#8217;ve promised myself to write the project in <a href="http://www.rubyonrails.org/" onclick="pageTracker._trackPageview('/outgoing/www.rubyonrails.org/?referer=');">Ruby on Rails</a> (not a PHP hack like <a href="http://www.folkmun.se/" onclick="pageTracker._trackPageview('/outgoing/www.folkmun.se/?referer=');">folkmun.se</a>) and do my best to use TDD or maybe even <a href="http://behaviour-driven.org/" onclick="pageTracker._trackPageview('/outgoing/behaviour-driven.org/?referer=');">BDD</a>. If I go for BDD there&#8217;s an <a href="http://rspec.info/" onclick="pageTracker._trackPageview('/outgoing/rspec.info/?referer=');">RSpec</a> plugin for Ruby on Rails and I&#8217;ve found some interesting reading, for example <a href="http://www.lukeredpath.co.uk/2006/8/29/developing-a-rails-model-using-bdd-and-rspec-part-1" onclick="pageTracker._trackPageview('/outgoing/www.lukeredpath.co.uk/2006/8/29/developing-a-rails-model-using-bdd-and-rspec-part-1?referer=');">Developing a Rails model using BDD and RSpec, Part 1</a>.</p>
<p>So, <a href="http://evhead.com/2007/12/how-to-evaluate-new-product-idea.asp" onclick="pageTracker._trackPageview('/outgoing/evhead.com/2007/12/how-to-evaluate-new-product-idea.asp?referer=');">will it fly?</a> Evan Williams lists a number of questions for evaluation of product ideas:</p>
<ul>
<li>Tractability:  How difficult will it be to launch a worthwhile version 1.0?</li>
<li>Obviousness:  Is it clear why people should use it?</li>
<li>Deepness: How much value can you ultimately deliver?</li>
<li>Wideness: How many people may ultimately use it?</li>
<li>Discoverability: How will people learn about your product?</li>
<li>Monetizability: How hard will it be to extract the money?</li>
<li>Personally Compelling: Do you really want it to exist in the world?</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.divideandconquer.se/2007/12/20/holiday-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
