<?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>Ivan Porto Carrero &#187; ASP.NET MVC</title>
	<atom:link href="http://flanders.co.nz/category/aspnet-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://flanders.co.nz</link>
	<description>thoughts.each { &#38;:propagandise }</description>
	<lastBuildDate>Fri, 12 Mar 2010 12:24:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A rant on a talk falling to pieces</title>
		<link>http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/</link>
		<comments>http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:45:21 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[caricature]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[IronRuby MVC]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/</guid>
		<description><![CDATA[Earlier this week I had the pleasure of doing a talk for the Belgian .NET user group.&#160; During this talk I ran in to all kinds of problems. I&#8217;ve done presentations where I was royally underprepared and to avoid that this time I actually started prepping for this talk on time. I was done on [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this week I had the pleasure of doing a talk for the Belgian .NET user group.&#160; During this talk I ran in to all kinds of problems. I&#8217;ve done presentations where I was royally underprepared and to avoid that this time I actually started prepping for this talk on time. I was done on time, was prepared had 5 backups of my presentation and samples. What did I learn from this, if you&#8217;re prepared other things will go wrong.    <br />I&#8217;ll share the story of stuff that can go wrong. </p>
<p>Before starting the rant I have some links to share.</p>
<ul>
<li><a href="http://www.slideshare.net/casualjim/ruby-loves-dot-net" target="_blank">Slides</a> </li>
<li>IronRubyMvc sample – <a href="http://irtodo.koolkraft.net/" target="_blank">live demo</a> – <a href="http://github.com/casualjim/ironrubymvc-sample/tree/master" target="_blank">source</a> </li>
<li>Silverlight sample – <a href="http://samples.koolkraft.net/picture_view/" target="_blank">live demo</a> – <a href="http://samples.koolkraft.net/picture_view.zip" target="_blank">source</a> </li>
<li>IronRubyMVC specs – <a href="http://github.com/casualjim/ironrubymvc/tree" target="_blank">source</a> </li>
<li>Sinatra – <a href="http://samples.koolkraft.net/sinatra.zip" target="_blank">source</a></li>
<li>Metaprogramming &#8211; <a href="http://samples.koolkraft.net/metaprogramming.zip" target="_blank">source</a>&#160;</li>
</ul>
<p>I have a device that I call internet on a stick, which is a vodafone usb 3G modem that I plug in to my system and it gets me on the internet (mistake 1). Since I assumed that that thing would continue to work I made most of my demos internet enabled (mistake 2). For example I have a demo where I go download pics from flickr and then show them with some animations with silverlight.    <br />Before my presentation I changed the fonts, opened all the files I was going to talk about ran all the demos again to make sure they would work and everything went fine.     <br />I unplug the USB device and go into the room to hook up the projector etc. The presentation starts and for the first hour everything went really well (from my perspective at least don&#8217;t know about the people attending).     <br />We have a break and I plug the USB device in, at this point the vodafone program hangs (first time ever I swear). What&#8217;s more I can&#8217;t make it go away at all so I reboot my pc (this is still during the break). </p>
<p>Now I&#8217;m getting a little desperate because it still doesn&#8217;t work. With rebooting I also lost all my carefully opened files earlier (I&#8217;m showing code in about 3 different environments and 2 different OS&#8217;es).    <br />So during the presentation I apologise and try to reboot once more while taking questions from the audience and hoping somebody will try to start a discussion with me. After rebooting I got a message saying my date was set to 2001 which I thought was peculiar but clicked it away.&#160; I boot vmware fusion with windows 7 (this took fairly&#160; long and is a little bit funky as the screen resolution changes a lot during this process).     <br />Ok so far so good, by now I&#8217;ve already skipped the silverlight demo promising that it will be available as a download on my blog and will be moving on to the ironrubymvc sample. To prove I do actually use visual studio at times I wanted to open my demo project in visual studio. I open visual studio only for it to tell me that my trial has expired and I can either upgrade or close the application. Oooooookay this is completely weird because i get my software through my msdn subscription and I had been using it earlier that day. </p>
<p>Moral of the story: Either go vastly underprepared and wing it. Or don&#8217;t rely on the internet and always take at least 2 laptops that have identical configurations but I&#8217;m pretty sure those would or explode in my face or something will fall from the ceiling, building collapses or other mishaps. </p>
<p>Instead of having one demo go bad on me now I&#8217;m probably facing a reinstall of my mac because it lost a bunch of settings, for which I&#8217;m holding the vodafone responsible. At this moment I&#8217;m fairly certain that I should go less prepared and just wing it just out of fear for bigger disasters, people may die. </p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c3bf1872-2d44-4a67-91a3-8b41f485f175" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/IronRuby" rel="tag">IronRuby</a>,<a href="http://technorati.com/tags/IronRuby+MVC" rel="tag">IronRuby MVC</a>,<a href="http://technorati.com/tags/caricature" rel="tag">caricature</a>,<a href="http://technorati.com/tags/Presentation" rel="tag">Presentation</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Very simple IronRuby MVC sample application</title>
		<link>http://flanders.co.nz/2009/06/09/very-simple-ironruby-mvc-sample-application/</link>
		<comments>http://flanders.co.nz/2009/06/09/very-simple-ironruby-mvc-sample-application/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 22:45:03 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[IronRuby MVC]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2009/06/09/very-simple-ironruby-mvc-sample-application/</guid>
		<description><![CDATA[Over the weekend I wrote a very simple task list application with IronRuby MVC and LightSpeed as an OR/M.&#160; And I’ve just put a demo live. This demo is running on a windows 2008 vps with IIS 7 as webserver. The source of this sample is also available.
 
At this moment I’m working on the [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend I wrote a very simple task list application with IronRuby MVC and LightSpeed as an OR/M.&#160; And I’ve just put a demo live. This demo is running on a windows 2008 vps with IIS 7 as webserver. The source of this sample is also available.</p>
<p> <span id="more-359"></span>
<p>At this moment I’m working on the <a href="http://github.com/jschementi/ironrubymvc/" target="_blank">Ironruby mvc</a> sample for my book. And while I was playing around to get some samples together I tried building the simplest application possible that has some degree relations in the db and does some crud.&#160; And I came up with the original idea of creating a task list application.</p>
<p>As an OR/M I choose to use <a href="http://www.mindscape.co.nz/products/LightSpeed/" target="_blank">LightSpeed</a> and it runs on a sqlite database so it should be immediately usable after checking out.&#160; There is one caveat though. If you’re using a 32-bit OS you’ll need to replace the sqlite dll that is included in the dependencies tree with a 32-bit version of the dll and rebuild the solution.</p>
<p>The links:</p>
<p>Demo:    <br /><a href="http://irtodo.koolkraft.net/">http://irtodo.koolkraft.net/</a></p>
<p>Source of sample:   <br /><a href="http://github.com/casualjim/ironrubymvc-sample">http://github.com/casualjim/ironrubymvc-sample</a></p>
<p>IronRubyMVC source:</p>
<p><a href="http://github.com/jschementi/ironrubymvc">http://github.com/jschementi/ironrubymvc</a></p>
<p>LightSpeed:   <br /><a href="http://www.mindscape.co.nz/products/LightSpeed/">http://www.mindscape.co.nz/products/LightSpeed/</a></p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4d3a8ee4-af1e-4a71-8952-a2568042a958" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/IronRuby+MVC" rel="tag">IronRuby MVC</a>,<a href="http://technorati.com/tags/IronRuby" rel="tag">IronRuby</a>,<a href="http://technorati.com/tags/ASP.NET+MVC" rel="tag">ASP.NET MVC</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2009/06/09/very-simple-ironruby-mvc-sample-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Binder for ironruby mvc</title>
		<link>http://flanders.co.nz/2009/04/08/binder-for-ironruby-mvc/</link>
		<comments>http://flanders.co.nz/2009/04/08/binder-for-ironruby-mvc/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 18:07:22 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[IronRuby MVC]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2009/04/08/binder-for-ironruby-mvc/</guid>
		<description><![CDATA[I’ve progressed far enough with IronRuby MVC to start thinking about a sample and I’ve decided to write 2 separate samples both on the same technologies. As an OR/M I will be using LightSpeed from Mindscape, just because it’s an awesome piece of technology.

 
At this moment I’m looking at creating a binder for objects [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve progressed far enough with <a href="http://ironruby.net" target="_blank">IronRuby</a> MVC to start thinking about a sample and I’ve decided to write 2 separate samples both on the same technologies. As an OR/M I will be using <a href="http://www.mindscape.co.nz/products/LightSpeed/default.aspx" target="_blank">LightSpeed</a> from Mindscape, just because it’s an awesome piece of technology.</p>
</p>
<p> <span id="more-322"></span>
<p>At this moment I’m looking at creating a binder for objects that takes a hash as input. The default model binder of ASP.NET MVC doesn’t quite fit all that well with the ironruby implementation so I’m creating a ruby binder implementation. This stuff is just something that makes ruby shine.</p>
<p>While doing so I came up with this little tidbit of code:</p>
<pre class="ruby" name="code">class System::Object

  class &lt;&lt; self

    def create_from_hash(options)
      result = self.new
      result.populate_from_hash options
      result
    end

  end

  def populate_from_hash(options)
    options.each do |k, v|
      mn = &quot;#{k}=&quot;.to_sym
      self.send(mn, v) if self.respond_to?(mn)
    end
  end
end</pre>
<p>This code allows you to populate any .NET object from a hash.</p>
<p>So doing Person.create_from_hash(:username =&gt; “joe”) would create a user instance with the property username set to joe.</p>
<p>You do need to provide a hash where the values have the correct type. </p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:85bf8444-c929-421f-b37b-6d02d5b8a306" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/IronRuby+MVC" rel="tag">IronRuby MVC</a>,<a href="http://technorati.com/tags/IronRuby" rel="tag">IronRuby</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2009/04/08/binder-for-ironruby-mvc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IronRuby MVC progress</title>
		<link>http://flanders.co.nz/2009/03/09/ironruby-mvc-progress/</link>
		<comments>http://flanders.co.nz/2009/03/09/ironruby-mvc-progress/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 18:18:22 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[IronRuby MVC]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2009/03/09/ironruby-mvc-progress/</guid>
		<description><![CDATA[If you follow my tweets or the IronRuby mailinglist then you would know that I’ve been working on taking IronRuby ASP.NET MVC from the prototype stages to a more complete application. For me this has been a great experience getting familiar with the insides of ASP.NET MVC as well as playing around with integrating IronRuby [...]]]></description>
			<content:encoded><![CDATA[<p>If you follow my tweets or the <a href="http://ironruby.net" target="_blank">IronRuby</a> mailinglist then you would know that I’ve been working on taking <a href="http://ironruby.net" target="_blank">IronRuby</a> ASP.NET MVC from the prototype stages to a more complete application. For me this has been a great experience getting familiar with the insides of ASP.NET MVC as well as playing around with integrating <a href="http://ironruby.net" target="_blank">IronRuby</a> in an existing C# application.&#160;&#160; </p>
<p> <span id="more-307"></span>
<p>The guys over at MSFT (<a href="http://www.iunknown.com" target="_blank">John Lam</a>, <a href="http://blog.jimmy.schementi.com" target="_blank">Jimmy Schementi</a> and <a href="http://haacked.com" target="_blank">Phil Haack</a>) had previously created a prototype and I built upon their work. You can read more about the previous versions of the prototype.     <br /><a title="http://www.iunknown.com/2008/06/ironruby-and-aspnet-mvc.html" href="http://www.iunknown.com/2008/06/ironruby-and-aspnet-mvc.html">http://www.iunknown.com/2008/06/ironruby-and-aspnet-mvc.html</a>     <br /><a title="http://blog.jimmy.schementi.com/2008/07/aspnet-and-dynamic-languages.html" href="http://blog.jimmy.schementi.com/2008/07/aspnet-and-dynamic-languages.html">http://blog.jimmy.schementi.com/2008/07/aspnet-and-dynamic-languages.html</a>     <br /><a title="http://haacked.com/archive/2008/06/12/ironruby-and-asp.net-bffs-forever.aspx" href="http://haacked.com/archive/2008/06/12/ironruby-and-asp.net-bffs-forever.aspx">http://haacked.com/archive/2008/06/12/ironruby-and-asp.net-bffs-forever.aspx</a>     <br /><a title="http://haacked.com/archive/2008/07/20/ironruby-aspnetmvc-prototype.aspx" href="http://haacked.com/archive/2008/07/20/ironruby-aspnetmvc-prototype.aspx">http://haacked.com/archive/2008/07/20/ironruby-aspnetmvc-prototype.aspx      <br /></a><a title="http://haacked.com/archive/2009/02/17/aspnetmvc-ironruby-with-filters.aspx" href="http://haacked.com/archive/2009/02/17/aspnetmvc-ironruby-with-filters.aspx">http://haacked.com/archive/2009/02/17/aspnetmvc-ironruby-with-filters.aspx</a></a></p>
<p>In a previous post I explained what I had done I explained how I found an entry point and how to get started building your own mvc framework on top of asp.net MVC.</p>
<p><a title="http://flanders.co.nz/2009/01/25/created-a-basic-integration-for-ironruby-and-aspnet-mvc/" href="http://flanders.co.nz/2009/01/25/created-a-basic-integration-for-ironruby-and-aspnet-mvc/">http://flanders.co.nz/2009/01/25/created-a-basic-integration-for-ironruby-and-aspnet-mvc/</a></p>
<p>How far am I now since my last post? Well we’ve got action filters, result filters, exception filters and authorization filters.&#160; We have an IronRubyMvcApplication as a base HttpApplication. Which should get you pretty far when building apps with <a href="http://github.com/casualjim/ironrubymvc" target="_blank">IronRuby MVC</a>. </p>
<p>I’m currently looking at implementing selectors and aliased actions. When I’m done with that I guess I’ve got a fairly working implementation of asp.net MVC and I’ll start developing a sample with it. </p>
<p>I’ve actually started building the sample to find out if I’ve missed something. The sample will be using <a href="http://www.mindscape.co.nz/products/LightSpeed/default.aspx" target="_blank">LightSpeed</a>, <a href="http://github.com/jschementi/ironrubymvc" target="_blank">IronRubyMVC</a> as well as youtube and flickr.</p>
<p>I would love to hear from people that submit bugs or even patches. I’d also like to get some discussion going on what is going to happen to it in the future <img src='http://flanders.co.nz/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fflanders.co.nz%2f2009%2f03%2f09%2fironruby-mvc-progress%2f"><img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fflanders.co.nz%2f2009%2f03%2f09%2fironruby-mvc-progress%2f" border="0" /></a></p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c97f82ba-92a9-4ed0-b47b-856573e898c7" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/IronRuby" rel="tag">IronRuby</a>,<a href="http://technorati.com/tags/ASP.NET+MVC" rel="tag">ASP.NET MVC</a>,<a href="http://technorati.com/tags/IronRuby+MVC" rel="tag">IronRuby MVC</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2009/03/09/ironruby-mvc-progress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
