<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Gregor&#039;s work related blog</title>
	<atom:link href="http://gregorsuttie.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregorsuttie.com</link>
	<description>.net development and more</description>
	<lastBuildDate>Wed, 22 Feb 2012 09:38:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gregorsuttie.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Gregor&#039;s work related blog</title>
		<link>http://gregorsuttie.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gregorsuttie.com/osd.xml" title="Gregor&#039;s work related blog" />
	<atom:link rel='hub' href='http://gregorsuttie.com/?pushpress=hub'/>
		<item>
		<title>Host your RavendDB based MVC app on Appharbor</title>
		<link>http://gregorsuttie.com/2012/02/21/host-your-ravenddb-based-mvc-app-on-appharbor/</link>
		<comments>http://gregorsuttie.com/2012/02/21/host-your-ravenddb-based-mvc-app-on-appharbor/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 19:28:44 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[RavenDB]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=1198</guid>
		<description><![CDATA[In this blog post I will walk through how to host an MVC application which uses RavenDB as the back-end &#8230;<p><a href="http://gregorsuttie.com/2012/02/21/host-your-ravenddb-based-mvc-app-on-appharbor/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1198&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img alt="RavenDB" src="http://static.ravendb.net/badges/standard/badge1.png" class="alignleft" width="165" height="72" />In this blog post I will walk through how to host an MVC application which uses RavenDB as the back-end document database hosted up on Appharbor, Appharbor now allows us to host RavenDB in the cloud.</p>
<p>In the blog post I am going to make several assumptions, the post itself is more to do with getting an application deployed and running up on AppHarbor using RavenDB as the document database. </p>
<p>I am assuming you have you have a github account and know how to get your code up onto github, an Appharbor account and know how to deploy your code to github to Appharbor.</p>
<p>If you need some help with doing this then check <a href="http://gregorsuttie.com/2012/02/01/host-your-mvc-app-in-the-cloud-with-appharbor/">here</a>.</p>
<p>Ok lets create a brand new MVC Web application project, I used MVC 3 application</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven2.png?w=529" alt="Raven2" /></p>
<p>And then I chose the internet template. </p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven3.png?w=529" alt="Raven3" /></p>
<p>You can either download RavenDB from RavenDB.net or use Nuget to get RavenDB. For the demo I just installed it using Nuget<br />
as follows, within Visual Studio goto Tools, Library Package Manager and then select Package Manager Console and then type:-</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven1.png?w=529" alt="Raven" /></p>
<p>RavenDB is now downloaded using NuGet and you will find it within the packages folder in the same location on disk as your project solution files, to start RavenDB locat the packages folder and then go to the RavenDB.1.0.616 folder and then the Server folder and double click on Raven.Server.exe as below:-</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven4.png?w=529" alt="Raven4" /></p>
<p>By default RavenDb runs on http://localhost:8080, once started you can view the Raven Studio from within a browser, and you should see something like this:- (if it says Create Sample Data then click on the button to create sample data)</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/ravendb10.png?w=529" alt="Raven10" /></p>
<p>Moving back to our MVC Application we now need to wire a couple of things up to use RavenDB as below:-</p>
<p>In the global.asax add in the following in the Application_Start event:-</p>
<p><pre class="brush: csharp;"> 
protected void Application_Start()
{
    AreaRegistration.RegisterAllAreas();

    RegisterGlobalFilters(GlobalFilters.Filters);
    RegisterRoutes(RouteTable.Routes);

    var parser = ConnectionStringParser&lt;RavenConnectionStringOptions&gt;.FromConnectionStringName(&quot;RavenDB&quot;);
    parser.Parse();

    Store = new DocumentStore
    {
        ApiKey = parser.ConnectionStringOptions.ApiKey,
        Url = parser.ConnectionStringOptions.Url,
    }.Initialize();
}
</pre> </p>
<p>Add in a connection string in your web.config as follows:- </p>
<p><pre class="brush: csharp;"> 
&lt;connectionStrings&gt;
    &lt;add name=&quot;RavenDB&quot; connectionString=&quot;Url=http://localhost:8080&quot; /&gt;
  &lt;/connectionStrings&gt;
</pre> </p>
<p>All new Controllers will inherit from RavenController which is below:-</p>
<p><pre class="brush: csharp;"> 
public class RavenController : Controller
{
    public IDocumentSession RavenSession { get; private set; }

    protected override void OnActionExecuting(ActionExecutingContext filterContext)
    {
        if (filterContext.IsChildAction)
            return;
        RavenSession = MvcApplication.Store.OpenSession();
        base.OnActionExecuting(filterContext);
    }

    protected override void OnActionExecuted(ActionExecutedContext filterContext)
    {
        if (filterContext.IsChildAction)
            return;
         using (RavenSession)
         {
             if (filterContext.Exception != null)
             return;

             if (RavenSession != null)
             RavenSession.SaveChanges();
         }
     }
}
</pre> </p>
<p>Below is some example code for some basic CRUD.</p>
<p><pre class="brush: csharp;"> 
public class AlbumController : RavenController
    {
        public ActionResult Index()
        {
            var model = this.RavenSession.Query&lt;Album&gt;().ToList();
            return View(model);
        }

        public ActionResult Create()
        {
            var model = new Category();
            return View(model);
        }

        [HttpPost]
        public ActionResult Create(Album album)
        {
            this.RavenSession.Store(album);
            return RedirectToAction(&quot;Index&quot;);
        }

        public ActionResult Edit(string id)
        {
            var model = this.RavenSession.Load&lt;Album&gt;(id);
            return View(model);
        }

        [HttpPost]
        public ActionResult Edit(Album album)
        {
            this.RavenSession.Store(album);
            return RedirectToAction(&quot;Index&quot;);
        }

        public ViewResult Details(string id)
        {
            var model = this.RavenSession.Load&lt;Album&gt;(id);
            return View(model);
        }

        public ActionResult Delete(string id)
        {
            var model = this.RavenSession.Load&lt;Album&gt;(id);
            return View(model);
        }

        [HttpPost, ActionName(&quot;Delete&quot;)]
        public ActionResult DeleteConfirmed(string id)
        {
            this.RavenSession.Advanced.DatabaseCommands.Delete(id, null);
            return RedirectToAction(&quot;Index&quot;);
        }
    }
</pre> </p>
<p>Within Appharbor choose RavenDB as an add-on, appharbor will provision you with a connection string if you choose<br />
RavenDB as an add-on, wait a couple of seconds and you will be supplied with a connection string for your RavenDB instance in the cloud.</p>
<p>Step 1</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven5.png?w=529" alt="Step1" /></p>
<p>Step 2</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven6.png?w=529" alt="Step 2" /></p>
<p>Step 3</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/raven7.png?w=529" alt="Step 3" /></p>
<p>Step 4<br />
<img src="http://gregorsuttie.files.wordpress.com/2012/02/raven8.png?w=529" alt="Step 4" /></p>
<p>Step 5<br />
<img src="http://gregorsuttie.files.wordpress.com/2012/02/raven9.png?w=529" alt="Step 5" /></p>
<p>This setting is the one you will change to within your web.config, for testing locally use http://localhost:8080 but for deploying to the cloud use the connection string setting supplied to us by Appharbor.</p>
<p>Getting RavenDB from NuGet means quite a large download, we dont want to have to upload all of this content to github so we can do a nice little thign within our solution, roght click on the entire solution within Visual Studio and choose:-</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/ravendb11.png?w=529" alt="Package Restore" /></p>
<p>This means our github repository doesnt have to contain all of the Nuget packages and will pull them down for us when building.</p>
<p>Once your code is building and running locally send it up to github and use the service hook to deploy to Appharbor.</p>
<p>If you come across any build errors then you may have to turn customerrors=&#8221;Off&#8221; in your web.config as well as checking the build log on Appharbor to see what went wrong.</p>
<p>At this point we should have a working MVC application which is using RavenDB as the back-end document database &#8211; sweet.</p>
<p>If I missed anything or anyone has any questions or comments please tweet me @gsuttie or leave a comment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/1198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/1198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1198&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/21/host-your-ravenddb-based-mvc-app-on-appharbor/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://static.ravendb.net/badges/standard/badge1.png" medium="image">
			<media:title type="html">RavenDB</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven2.png" medium="image">
			<media:title type="html">Raven2</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven3.png" medium="image">
			<media:title type="html">Raven3</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven1.png" medium="image">
			<media:title type="html">Raven</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven4.png" medium="image">
			<media:title type="html">Raven4</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/ravendb10.png" medium="image">
			<media:title type="html">Raven10</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven5.png" medium="image">
			<media:title type="html">Step1</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven6.png" medium="image">
			<media:title type="html">Step 2</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven7.png" medium="image">
			<media:title type="html">Step 3</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven8.png" medium="image">
			<media:title type="html">Step 4</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/raven9.png" medium="image">
			<media:title type="html">Step 5</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/ravendb11.png" medium="image">
			<media:title type="html">Package Restore</media:title>
		</media:content>
	</item>
		<item>
		<title>Book Review:- Dependency Injection in .Net</title>
		<link>http://gregorsuttie.com/2012/02/14/book-review-dependency-injection-in-net/</link>
		<comments>http://gregorsuttie.com/2012/02/14/book-review-dependency-injection-in-net/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 21:06:23 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[Book Reviews]]></category>
		<category><![CDATA[Dependency Injection]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=908</guid>
		<description><![CDATA[Dependency Injection in .Net written by Mark Seesman @ploeh on twitter This book is one of the best books I &#8230;<p><a href="http://gregorsuttie.com/2012/02/14/book-review-dependency-injection-in-net/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=908&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://gregorsuttie.files.wordpress.com/2012/02/di.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/02/di.jpg?w=529" alt="" title="di"   class="alignleft size-full wp-image-1181" /></a><a href="http://www.manning.com/seemann/" target="_Blank">Dependency Injection in .Net</a> written by Mark Seesman @ploeh on twitter </p>
<p>This book is one of the best books I have read regarding .Net development due to its style &#8211; it covers misconceptions, what not to do, and then shows you step by step what to do and why. If you&#8217;re looking for the definitive guide to dependency injection as a subject matter within the .net world then buy this book &#8211; don&#8217;t bother with anything else.</p>
<p>My main reason for reading this book was to basically make sure my understanding of the subject matter wasnt distorted from what dependency injection and IoC is. It&#8217;s quite easy to good articles on the subject but I wanted a point of reference I can pick up or go to when I need to refresh my memory on the subject.</p>
<p>I am willing to bet there are a lot of developers who don&#8217;t actually understand what dependency injection is used for and what it brings to the table. </p>
<p><strong>Part 1 Putting Dependency injection on he map</strong></p>
<ul>
<li>
Chapter 1 &#8211; Covers misconceptions about dependency injection and what its purpose and the benefits if it are.
</li>
<li>
Chapter 2 &#8211; Explores a comprehensive example, starting by showing you not to do and then discussing why not and then shows you how it should be done properly.
</li>
<li>
Chapter 3 &#8211; Explores Dependency Injection containers and DI containers.
</li>
</ul>
<p><strong>Part 2 DI Catalog</strong></p>
<ul>
<li>
Chapter 4 &#8211; DI Patterns, including constructor injection, property injection, method injection and ambient context, of which I really only understood one before reading this part of the book. Each is taken in turn and described, has a code example, and discusses the advantages and disadvantages of each.
</li>
<li>
Chapter 5 &#8211; DI AntiPatterns, covers all the different wrong ways to do dependency injection some of them named by Mark who admits to having done all of them, having read through this chapter I recognised a few.
</li>
<li>
Chapter 6 &#8211; DI Refactorings, how to spot issues and basically ways to fix the code so that its using proper dependency injection methods.
</li>
</ul>
<p><strong>Part 3 DIY DI</strong></p>
<ul>
<li>
Chapter 7 &#8211; Object Composition, how to correctly use and setup object composition in different types of .net applications.
</li>
<li>
Chapter 8 &#8211; Object Lifetime, managing dependency lifetime disposable dependencies and more.
</li>
<li>
Chapter 9 &#8211; Interception, cross cutting concerns, AOP and dynamic interceptions.
</li>
</ul>
<p><strong>Part 4 DI Containers</strong></p>
<ul>
<li>
Chapter 10 &#8211; Covers Castle Windsor.
</li>
<li>
Chapter 11 &#8211; Covers StructureMap.
</li>
<li>
Chapter 12 &#8211; Covers Spring.Net.
</li>
<li>
Chapter 13 &#8211; Covers Autofac.
</li>
<li>
Chapter 14 &#8211; Covers Unity.
</li>
<li>
Chapter 15 &#8211; Covers MEF.
</li>
</ul>
<p>This book was enjoyable to read and is all you need to know about DI in once place &#8211; go get it now.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/908/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/908/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/908/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=908&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/14/book-review-dependency-injection-in-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/di.jpg" medium="image">
			<media:title type="html">di</media:title>
		</media:content>
	</item>
		<item>
		<title>RavenDB Useful Tools</title>
		<link>http://gregorsuttie.com/2012/02/12/ravendb-useful-tools/</link>
		<comments>http://gregorsuttie.com/2012/02/12/ravendb-useful-tools/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 14:08:39 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[RavenDB]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=1141</guid>
		<description><![CDATA[Here I will list all of the useful tools I come across when using RavenDB. So here is the list:- &#8230;<p><a href="http://gregorsuttie.com/2012/02/12/ravendb-useful-tools/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1141&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here I will list all of the useful tools I come across when using RavenDB.</p>
<p>So here is the list:-</p>
<ul>
<li>RavenDB add on for Glimpse <a href="http://nuget.org/packages/Glimpse.RavenDb" target="_blank">Glimpse RavenDB</a>.
</li>
<li>RavenDB Mini Profiler  &#8211; more info can be found <a href="http://ayende.com/blog/38913/ravendb-mvc-profiler-support">here</a> and <a href="http://csainty.blogspot.com/2011/06/ravendb-profiling-with-aspnet-mvc.html" target="_blank">here</a>.
</li>
<li>LinqPad which can be found <a href="http://www.linqpad.net/" target="_blank">here</a> is a great tool which you can use to query RavenDB using Linq statements &#8211; if you have the correct third party driver installed.
<span style="text-align:center; display: block;"><a href="http://gregorsuttie.com/2012/02/12/ravendb-useful-tools/"><img src="http://img.youtube.com/vi/XgsPvyk0bjM/2.jpg" alt="" /></a></span>
<p>To learn how to get Linqpad to query RavenDB you will find all you need to do <a href="https://github.com/ronnieoverby/RavenDB-Linqpad-Driver" target="_blank">here</a>.</p>
</li>
<li>
Rest-Client which can be found <a href="http://code.google.com/p/rest-client/" target="_blank">here</a> is extremely handy for testing Restful webservices which RavenDB is.</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/restclient.png?w=529" alt="RestClient" /></p>
<p>Click the downloads tab and then select the following:-</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/restclient2.png?w=529" alt="RestClient" /></p>
<p>Once selected rest-client will fire up, it&#8217;s very straight forward to use, put in the url to your database where RavenDB is running and then you can use the POST, GET and so on as below:-</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/restclient3.png?w=529" alt="RestClient3" /></p>
</li>
<li>Fiddler 2 which can be found <a href="http://fiddler2.com/fiddler2/" target="_blank">here</a>
<p>&#8220;<em>Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect traffic, set breakpoints, and &#8220;fiddle&#8221; with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language</em>&#8220;</p>
<p>We can use Fiddler to monitor what is going on when we work with RavenDB as well as use it to inject documents on the fly which is shown in the Tekpub video series.
</li>
<p>If anyone has any other useful tools for working with RavenDB then please let me know and I will add to this list.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/1141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/1141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/1141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/1141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/1141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/1141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/1141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/1141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1141&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/12/ravendb-useful-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/restclient.png" medium="image">
			<media:title type="html">RestClient</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/restclient2.png" medium="image">
			<media:title type="html">RestClient</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/restclient3.png" medium="image">
			<media:title type="html">RestClient3</media:title>
		</media:content>
	</item>
		<item>
		<title>RavenDB Video Tutorials</title>
		<link>http://gregorsuttie.com/2012/02/12/ravendb-video-tutorials/</link>
		<comments>http://gregorsuttie.com/2012/02/12/ravendb-video-tutorials/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 13:07:00 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[Pluralsight]]></category>
		<category><![CDATA[RavenDB]]></category>
		<category><![CDATA[Tekpub]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=1124</guid>
		<description><![CDATA[RavenDB is fast becoming pretty popular and 2 of the best resources I find for learning is TekPub and Pluralsight, &#8230;<p><a href="http://gregorsuttie.com/2012/02/12/ravendb-video-tutorials/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1124&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>RavenDB is fast becoming pretty popular and 2 of the best resources I find for learning is TekPub and Pluralsight, these sites are for developer training and require you to pay for them.</p>
<p>Both sites offer subscriptions but Tekpub also offers the ability to pay for a single course such as the RavenDB course, which is a nice addition.</p>
<ul>
<li>
Tekpub Course Details:- <a href="http://tekpub.com/productions/raven" target="_blank">Tekpub RavenDB course</a> </p>
<p>&#8220;<em>In this production, Oren Eini walks Rob through the various aspects of RavenDB &#8211; from the basics through to advanced Administrative Tasks. Along the way you&#8217;ll learn how to query with the core Lucene engine, how to index your documents for searches, backups, sharding, replication to SQL Server, and how to plug all of this in to an ASP.NET MVC application.</p>
<p>This series is In Production which means we are actively recording and producing content for it. Currently we have 10-12 episodes planned.&#8221;</em>
</li>
<li>
Pluralsight Course Details:- <a href="http://www.pluralsight-training.net/microsoft/Courses/TableOfContents?courseName=ravendb" target="_blank">Pluralsight RavenDB course</a>
</li>
</ul>
<p>I have watched both courses and they are both superb and I encourage you to check them both out.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/1124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1124&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/12/ravendb-video-tutorials/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>
	</item>
		<item>
		<title>RavenDB Series</title>
		<link>http://gregorsuttie.com/2012/02/05/ravendb-series/</link>
		<comments>http://gregorsuttie.com/2012/02/05/ravendb-series/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 19:41:55 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[RavenDB]]></category>

		<guid isPermaLink="false">http://gregorsuttie.wordpress.com/?p=1093</guid>
		<description><![CDATA[This will be the home for my blogging on RavenDB &#8211; hope you find this useful. Useful Tools for RavenDB &#8230;<p><a href="http://gregorsuttie.com/2012/02/05/ravendb-series/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1093&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This will be the home for my blogging on RavenDB &#8211; hope you find this useful.</p>
<ul>
<li>Useful Tools for RavenDB development <a href="http://gregorsuttie.com/2012/02/12/ravendb-useful-tools/" target="_blank">Useful Tools</a>.
</li>
<li>Tekpub and Pluralsight courses on RavenDB <a href="http://gregorsuttie.com/2012/02/12/ravendb-video-tutorials/" target="_blank">RavenDB Video Tutorials</a>
</li>
<li>Learning RavenDB &#8211; <a href="http://gregorsuttie.com/2011/11/27/learning-ravendb/" target="_Blank">Learning RavenDB</a>
</li>
<li>Adding RavenDB to an MVC application &#8211; <a href="http://gregorsuttie.com/2012/02/05/using-ravendb-in-a-mvc-application/" target="_blank">RavenDB in MVC 3 App</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/1093/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/1093/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/1093/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1093&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/05/ravendb-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding RavenDB to an MVC application</title>
		<link>http://gregorsuttie.com/2012/02/05/using-ravendb-in-a-mvc-application/</link>
		<comments>http://gregorsuttie.com/2012/02/05/using-ravendb-in-a-mvc-application/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 19:37:11 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[RavenDB]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=1091</guid>
		<description><![CDATA[Adding RavenDB to an MVC 3 application is very straightforward &#8211; in this post I will add RavenDB via Nuget &#8230;<p><a href="http://gregorsuttie.com/2012/02/05/using-ravendb-in-a-mvc-application/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1091&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Adding RavenDB to an MVC 3 application is very straightforward &#8211;  in this post I will add RavenDB via Nuget and it will run RavenDB in embedded mode.</p>
<ol>
<li>Start Visual Studio 2010 and Add a new MVC 3 Application, choose Internet Application from the project template option. This will create our new app ready to add RavenDB to.
</li>
<li>
Ok now to Add RavenDB into your application lets use Nuget to add in the RavenDB Embedded package, go to the Tools Menu and then select Library Package Manager and then Manage Nuget Packages &#8211; search for RavenDB Embedded as seen below:- </p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/ravendb.png?w=529" alt="RavenDB via Nuget" /></p>
<p>Click install and wait a little, it&#8217;s a larger package compared to most, also accept the license agreement.
</li>
<li>
That&#8217;s it RavenDB has been added to our MVC 3 application, in the next blog post we will make use of RavenDB in our application.
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/1091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/1091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/1091/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1091&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/05/using-ravendb-in-a-mvc-application/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/ravendb.png" medium="image">
			<media:title type="html">RavenDB via Nuget</media:title>
		</media:content>
	</item>
		<item>
		<title>I feel fortunate where I work</title>
		<link>http://gregorsuttie.com/2012/02/05/i-feel-fortunate-where-i-work/</link>
		<comments>http://gregorsuttie.com/2012/02/05/i-feel-fortunate-where-i-work/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 18:39:48 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregorsuttie.wordpress.com/?p=1069</guid>
		<description><![CDATA[I moved jobs a little under 3 months ago and I know work for Maclean Electrical as a developer in &#8230;<p><a href="http://gregorsuttie.com/2012/02/05/i-feel-fortunate-where-i-work/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1069&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I moved jobs a little under 3 months ago and I know work for <a href="http://www.maclean.co.uk/" target="_Blank">Maclean Electrical</a> as a developer in a small team. </p>
<p>At Maclean&#8217;s I work in an Agile development team working on a number of projects which we use to drive the business forward and make the company more productive.</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/macleanelectrical1.png?w=529" alt="Maclean Electrical" /></p>
<p>Our code base is a made of a number of different projects including some windows service projects, some MVC web apps, a Windows Forms application and even an ASP.NET 2 web app.</p>
<p>The development team strive for a number of goals a couple of which are below as below:-</p>
<ul>
<li>Test Driven Development &#8211; write a failing test, write the code tp make the test pass, refactor your code.
</li>
<li>Code Coverage &#8211; the code you write should meet a high level of test code coverage, each project had individual levels but should be around 70% as a minimum.
</li>
<li>Refactor where possible &#8211; refactoring the code you come across so that you always leave it better than you found it where possible.
</li>
<li>If you break the build, its your responsibility to fix it, yeah it&#8217;s normally me I know.
</li>
</ul>
<p>We have a very nice setup at work using TeamCity as our build server and we have ported over a few things as Nuget packages to make life easier going forward &#8211; I can push a deployment of the code which runs all the unit tests from the build server to deployment or the test environment in one click.</p>
<p>At work we are about to start looking at using <a href="http://ravendb.net/" target="_blank">RavenDB</a> and the developers are all being sent on a course in London for training on a 2 day course.</p>
<p>Working for a company who listens to their developers and has fantastic communication with everyone in the team is always good in my book. The developer&#8217;s in the team often chat about what technologies are new and who&#8217;s looking at what and what they have thought about it. We don&#8217;t stick with what we know and are always looking at new technology as a way of sharpening our skills which I love to do anyway.</p>
<p>I guess we have a team of passionate developers who communicate well and who really enjoy their jobs &#8211; if you enjoy your job it makes a huge difference. If you want a book on a particular subject then it&#8217;s ordered, if you come across a tool that you find helpful its bought.</p>
<p>Do you enjoy your job as much as I do? &#8211; I do hope so.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/1069/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/1069/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/1069/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/1069/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/1069/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/1069/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/1069/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=1069&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/05/i-feel-fortunate-where-i-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/macleanelectrical1.png" medium="image">
			<media:title type="html">Maclean Electrical</media:title>
		</media:content>
	</item>
		<item>
		<title>Host your MVC app in the Cloud with AppHarbor</title>
		<link>http://gregorsuttie.com/2012/02/01/host-your-mvc-app-in-the-cloud-with-appharbor/</link>
		<comments>http://gregorsuttie.com/2012/02/01/host-your-mvc-app-in-the-cloud-with-appharbor/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 21:33:42 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=988</guid>
		<description><![CDATA[Deploy your MVC 3 application to the cloud and have it hosted for free, you can even get 20MB SQL &#8230;<p><a href="http://gregorsuttie.com/2012/02/01/host-your-mvc-app-in-the-cloud-with-appharbor/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=988&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Deploy your MVC 3 application to the cloud and have it hosted for <strong>free</strong>, you can even get 20MB SQL Server for <strong>free</strong> should your app use a SQL database backend.</p>
<p>If your unfamiliar with <a href="www.appharbor.com" target="_blank"><strong>Appharbor</strong></a> let me introduce you.</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/01/app1.png?w=529" alt="AppHarbor" /></p>
<p>&#8220;AppHarbor is a fully hosted .NET Platform as a Service. <a href="www.appharbor.com" target="_blank"><strong>Appharbor</strong></a> can deploy and scale any standard .NET application.&#8221;</p>
<p>Deploy and host host your application for free using GitHub to publish the content to <a href="www.appharbor.com" target="_blank"><strong>Appharbor</strong></a> &#8211; couldnt be easier and ultra fast, and did I mention its <strong>free</strong>?</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/01/github.png?w=529" alt="GitHub" /></p>
<p>Basically build your application locally &#8211; put it up onto <a href="https://github.com/" target="_blank"><strong>Github</strong></a>, setup the <a href="https://github.com/" target="_blank"><strong>Github</strong></a> service hook ( cut and paste 2 lines) and job done &#8211; AppHarbor will build your code and deploy it and host it in the cloud for you!</p>
<p>The following are the steps to deploying a blank MVC 3 project to <a href="www.appharbor.com" target="_blank"><strong>Appharbor</strong></a> using Git and <a href="https://github.com/" target="_blank"><strong>Github</strong></a>, if your unfamiliar with Git and <a href="https://github.com/" target="_blank"><strong>Github</strong></a> then its worth spending some time reading up on both, Git is very straight forward to get going and GitHub is the site to host your git content.</p>
<p>I will assume you have git installed and setup a local repository on your machine &#8211; let&#8217;s get started.</p>
<ol>
<li>
Open Up Visual Studio 2010 and create an empty MVC 3 Application, I chose an Internet Application and didn&#8217;t select to add a Unit Test Project.
</li>
<li>
I changed the text on the main page that will do for now. Then I copied the contents of the solution and the folder to my Github local repository folder.
</li>
<li>Go to  <a href="https://github.com/" target="_blank"><strong>Github</strong></a> and create yourself an account &#8211; this is free and allows you to put up your code &#8211; very useful for open source projects or you can use it to publish to <a href="www.appharbor.com" target="_blank"><strong>Appharbor</strong></a> like we are about to do.
</li>
<li>
Create a new Repository on GitHub as below and GitHub will show you the steps to adding the code to your repository on GitHub, similar to the screen shot below.</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/01/github2.png?w=529" alt="Github Repo" /></p>
<p>Go ahead and follow these steps to add your content onto GitHub.
</li>
<li>
Now we want to add a .gitignore file into the git repository so that when we deploy to AppHarbor it builds without any issues. Create a .gitignore file and add this into your repository &#8211; the contents of my .gitignore file was as follows:- </p>
<p>[Bb]in<br />
[Oo]bj<br />
*.suo<br />
*.user
</li>
<li>At this point our source code is up on GitHub and now we want to deploy it from GitHub to AppHarbor &#8211; this step is very easy indeed and makes everything worthwhile and definitely worth any effort in having to learn git and setup accounts on both GitHub and AppHarbor.
</li>
<li>Log onto your AppHarbor Account and then create a new application as below:-
<p><img src="http://gregorsuttie.files.wordpress.com/2012/01/app2.png?w=529" alt="AppHarbor" />
</li>
<li>Now click on the Build URL link on the blue part of the screen shot below:-
<p><img src="http://gregorsuttie.files.wordpress.com/2012/01/app3.png?w=529" alt="AppHarbor" /></p>
<p>This copies the url you need to paste into GitHub in order for it to deploy your code to AppHarbor, firstly paste this link from your clipboard into notepad.
</li>
<li>
Here is the url for a potential app:-</p>
<p><a href="http://gregorsuttie.files.wordpress.com/2012/02/app5.png" target="_blank"><img src="http://gregorsuttie.files.wordpress.com/2012/02/app5.png?w=529" alt="AppHarbor Build URL" /></a>
</li>
<li>Ok now go back to GitHub and go to the admin link once you are on the page displaying your GitHub repository.
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/github4.png?w=529" alt="GitHub Admin Link" />
</li>
<li>
Click on Service Hooks on the left hand side and then select AppHarbor &#8211; this is where you need to be careful to paste in the Slug from the notepad link we have and then paste in the authorization code into the correct part within GitHub as below:-</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/github6.png?w=529" alt="AppHarbor Details" />
</li>
<li>
Back to AppHarbor and we should see something like the screenshot below, AppHarbor has built my code and deployed it, clicking on the &#8216;Go To Your Application&#8217; link will show you the app deployed to the url for your site hosted on AppHarbor &#8211; free.</p>
<p><img src="http://gregorsuttie.files.wordpress.com/2012/02/app7.png?w=529" alt="View App" />
</ol>
<p><strong>Conclusion</strong><br />
AppHarbor is really cool and very handy indeed, after deploying your first app you can deploy straight from GitHub just by pushing up file changes. Its superb, also comes with a host of add-ons, please go check it out now.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/988/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=988&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/02/01/host-your-mvc-app-in-the-cloud-with-appharbor/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/app1.png" medium="image">
			<media:title type="html">AppHarbor</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/github.png" medium="image">
			<media:title type="html">GitHub</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/github2.png" medium="image">
			<media:title type="html">Github Repo</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/app2.png" medium="image">
			<media:title type="html">AppHarbor</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/app3.png" medium="image">
			<media:title type="html">AppHarbor</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/app5.png" medium="image">
			<media:title type="html">AppHarbor Build URL</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/github4.png" medium="image">
			<media:title type="html">GitHub Admin Link</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/github6.png" medium="image">
			<media:title type="html">AppHarbor Details</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/02/app7.png" medium="image">
			<media:title type="html">View App</media:title>
		</media:content>
	</item>
		<item>
		<title>Glencoe Scotland &#8211; road trip</title>
		<link>http://gregorsuttie.com/2012/01/28/glencoe-scotland-road-trip/</link>
		<comments>http://gregorsuttie.com/2012/01/28/glencoe-scotland-road-trip/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 22:58:19 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=970</guid>
		<description><![CDATA[Today I went for a run and having never been to Glencoe in Scotland I decided to go for a &#8230;<p><a href="http://gregorsuttie.com/2012/01/28/glencoe-scotland-road-trip/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=970&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I went for a run and having never been to Glencoe in Scotland I decided to go for a drive and see the stunning scenery for myself &#8211; unfortunately my pics don&#8217;t do the place justice, but here are a few of the ones that turned out some what ok. If you ever get the chance to visit then you should take a run up there its awesome &#8211; Scotland has some stunning scenery.</p>
<p><a href="http://gregorsuttie.files.wordpress.com/2012/01/img_0568.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/01/img_0568.jpg?w=529" alt="Pic1" /></a><br />
<a href="http://gregorsuttie.files.wordpress.com/2012/01/img_0561.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/01/img_0561.jpg?w=529" alt="Pic2" /></a><br />
<a href="http://gregorsuttie.files.wordpress.com/2012/01/img_0536.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/01/img_0536.jpg?w=529" alt="Pic3" /></a><br />
<a href="http://gregorsuttie.files.wordpress.com/2012/01/img_0534.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/01/img_0534.jpg?w=529" alt="Pic4" /></a><br />
<a href="http://gregorsuttie.files.wordpress.com/2012/01/img_0525.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/01/img_0525.jpg?w=529" alt="Pic5" /><br />
<a href="http://gregorsuttie.files.wordpress.com/2012/01/img_0562.jpg"><img src="http://gregorsuttie.files.wordpress.com/2012/01/img_0562.jpg?w=529" alt="Pic6" /></a></p>
<p>In 2012 I plan to see more of the beautiful country I live in &#8211; hope you enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/970/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=970&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/01/28/glencoe-scotland-road-trip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/img_0568.jpg" medium="image">
			<media:title type="html">Pic1</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/img_0561.jpg" medium="image">
			<media:title type="html">Pic2</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/img_0536.jpg" medium="image">
			<media:title type="html">Pic3</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/img_0534.jpg" medium="image">
			<media:title type="html">Pic4</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/img_0525.jpg" medium="image">
			<media:title type="html">Pic5</media:title>
		</media:content>

		<media:content url="http://gregorsuttie.files.wordpress.com/2012/01/img_0562.jpg" medium="image">
			<media:title type="html">Pic6</media:title>
		</media:content>
	</item>
		<item>
		<title>Real World MVC 3 Development</title>
		<link>http://gregorsuttie.com/2012/01/25/real-world-mvc-3-development/</link>
		<comments>http://gregorsuttie.com/2012/01/25/real-world-mvc-3-development/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 21:46:59 +0000</pubDate>
		<dc:creator>Gregor Suttie</dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://gregorsuttie.com/?p=916</guid>
		<description><![CDATA[During the last couple of months I have been working with MVC 3 daily and I have used Nuget&#160;packages and &#8230;<p><a href="http://gregorsuttie.com/2012/01/25/real-world-mvc-3-development/">Continue reading &#187;</a></p><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=916&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>During the last couple of months I have been working with MVC 3 daily and I have used Nuget&nbsp;packages and tools which have helped in a number of areas, in this post I will give a shout out to these tools which help make MVC 3 a pleasure to work with. For the most part Nuget&nbsp;packages can be found for these tools so you can add them very easily and get going quickly.</p>
<p><span style="text-decoration:underline;">Routing</span></p>
<ul>
<ul>
<li><a href="http://gregorsuttie.com/2012/01/12/attributerouting-for-mvc/" target="_blank">Attribute routing for MVC</a> &#8211; Remove any routing concerns/issues and start using this now.</li>
<li><a href="http://gregorsuttie.com/2012/01/10/t4mvc-for-mvc/" target="_blank">T4MVC</a> helps make your MVC code much more maintainable, enough said.</li>
</ul>
</ul>
<p><span style="text-decoration:underline;">Page Performace</span></p>
<ul>
<ul>
<ul>
<li><a href="http://gregorsuttie.com/2012/01/11/chirpy-for-mvc/" target="_blank">Chirpy</a> is an open source Visual Studio Add In For Handling JavaScript, Css, DotLess, and T4&nbsp;Files, which in essence improves page performance.</li>
<li><a title="Cassette" href="http://getcassette.net/download" target="_blank">Cassette</a> &#8211; Cassette automatically sorts, concatenates, minifies, caches and versions all your JavaScript, CoffeeScript, CSS, LESS and HTML templates.</li>
</ul>
</ul>
</ul>
<p><span style="text-decoration:underline;">Profiling</span></p>
<ul>
<ul>
<ul>
<li><a title="MVC Mini Profiler" href="http://code.google.com/p/mvc-mini-profiler/" target="_blank">Mvc&nbsp;Mini Profiler</a> &#8211; A simple but effective mini-profiler for ASP.NET MVC and ASP.NET.</li>
<li><a title="Glimpse" href="http://getglimpse.com/" target="_blank">Glimpse</a> &#8211; What Firebug&nbsp;is for the client, Glimpse does for the server&#8230; in other words, a client side Glimpse into whats going on in your server.</li>
</ul>
</ul>
</ul>
<p><span style="text-decoration:underline;">Error Logging</span></p>
<ul>
<ul>
<ul>
<li><a title="ELMAH" href="http://code.google.com/p/elmah/" target="_blank">ELMAH</a> &#8211; ELMAH (Error Logging Modules and Handlers) is an application wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment</li>
</ul>
</ul>
</ul>
<p><span style="text-decoration:underline;">All MVC posts</span></p>
<ul>
<ul>
<ul>
<ul>
<li>All of my MVC blog posts can be found <a href="http://gregorsuttie.com/category/mvc/" target="_blank">here.</a></li>
</ul>
</ul>
</ul>
</ul>
<p><span style="text-decoration:underline;">Conclusion</span></p>
<p>MVC is great to work with on its own but these tools can only enhance the development process. Please leave feedback or comments, and also let me know if I have missed out on any tools which I can add to this list.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregorsuttie.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregorsuttie.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregorsuttie.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregorsuttie.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregorsuttie.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregorsuttie.wordpress.com/916/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregorsuttie.wordpress.com/916/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregorsuttie.wordpress.com/916/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregorsuttie.com&amp;blog=18438908&amp;post=916&amp;subd=gregorsuttie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gregorsuttie.com/2012/01/25/real-world-mvc-3-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/01ebf1680ef063faa3d3b5dddb999d15?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gregorsuttie</media:title>
		</media:content>
	</item>
	</channel>
</rss>
