<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>RavenDB</title>
        <link>http://www.mostlylucid.net/category/38.aspx</link>
        <description>RavenDB</description>
        <language>en-US</language>
        <copyright>Scott Galloway</copyright>
        <generator>Subtext Version 2.1.0.5</generator>
        <item>
            <title>Back to posting this weekend&amp;hellip;</title>
            <link>http://mostlylucid.net/archive/2010/08/27/back-to-posting-this-weekendhellip.aspx</link>
            <description>&lt;p&gt;Promising to do this for a while. I only really like to post about new stuff..others can cover old stuff in detail. Right now I’m learning:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://www.google.co.uk/url?sa=t&amp;amp;source=web&amp;amp;cd=2&amp;amp;ved=0CB4QFjAB&amp;amp;url=http%3A%2F%2Fwww.fubumvc.com%2F&amp;amp;ei=skd4TNOrMsbT4waI8ZmxBg&amp;amp;usg=AFQjCNHTVxZi4A5l5X2CynZUg65Psg-MkQ"&gt;FubuMVC&lt;/a&gt;: a kind of super flexible, advanced version of an ASP.NET MVC framework.  Has proven challenging to learn but really worthwhile.&lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.ravendb.net/"&gt;RavenDB&lt;/a&gt;: fantastic, document oriented database. Fits in really well with web development but has some unique challenges.&lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.jquery.org"&gt;JQuery&lt;/a&gt;: far from new, but building lovely UIs with it, REALLY improving my general Javascript dev skills (a lot thanks to &lt;a href="http://www.amazon.co.uk/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742"&gt;this book&lt;/a&gt;).&lt;/li&gt;    &lt;li&gt;&lt;a href="http://sparkviewengine.com/"&gt;Spark View Engine&lt;/a&gt;:  an alternative view engine (was for ASP.NET MVC but my boss &lt;a href="http://www.twitter.com/robertthegrey"&gt;@robertthegrey&lt;/a&gt; has written a brilliant FubuMVC engine for it too!).&lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.dotnetopenauth.net/"&gt;Dotnetopenauth&lt;/a&gt; : Open Id authentication library for .NET  (&lt;a href="http://goo.gl/4qlL"&gt;this article&lt;/a&gt; was invaluable for simplifying the whole experience for me…)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;In all, I feel like the technologies above really hit the sweet spot for me for web development for the next little while. So, I’ll write about them all. As usual, not tutorials, more hints, tips and guidelines which may help you avoid some of the learning curve I’ve had recently…&lt;/p&gt;  &lt;p&gt;Until then here’s some lovely fish to tide you over (flash so you have to visit the site to see them :)).&lt;/p&gt;  &lt;p&gt;&lt;object type="application/x-shockwave-flash" style="outline:none;" data="http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/fish.swf?up_fishColor6=F45540&amp;amp;up_fishColor7=F45540&amp;amp;up_numFish=5&amp;amp;up_fishName=Fish&amp;amp;up_fishColor8=F45540&amp;amp;up_fishColor2=F4B540&amp;amp;up_foodColor=FCB347&amp;amp;up_fishColor3=4043F4&amp;amp;up_backgroundColor=F0F7FF&amp;amp;up_fishColor10=F45540&amp;amp;up_fishColor1=000000&amp;amp;up_backgroundImage=http://&amp;amp;up_fishColor4=46F440&amp;amp;up_fishColor9=F45540&amp;amp;up_fishColor5=F45540&amp;amp;" width="300" height="200"&gt;&lt;param name="movie" value="http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/fish.swf?up_fishColor6=F45540&amp;amp;up_fishColor7=F45540&amp;amp;up_numFish=5&amp;amp;up_fishName=Fish&amp;amp;up_fishColor8=F45540&amp;amp;up_fishColor2=F4B540&amp;amp;up_foodColor=FCB347&amp;amp;up_fishColor3=4043F4&amp;amp;up_backgroundColor=F0F7FF&amp;amp;up_fishColor10=F45540&amp;amp;up_fishColor1=000000&amp;amp;up_backgroundImage=http://&amp;amp;up_fishColor4=46F440&amp;amp;up_fishColor9=F45540&amp;amp;up_fishColor5=F45540&amp;amp;" /&gt;&lt;param name="AllowScriptAccess" value="always" /&gt;&lt;param name="wmode" value="opaque" /&gt;&lt;param name="scale" value="noscale" /&gt;&lt;param name="salign" value="tl" /&gt;&lt;/object&gt;&lt;/p&gt;&lt;img src="http://mostlylucid.net/aggbug/1338.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Scott Galloway</dc:creator>
            <guid>http://mostlylucid.net/archive/2010/08/27/back-to-posting-this-weekendhellip.aspx</guid>
            <pubDate>Fri, 27 Aug 2010 23:26:43 GMT</pubDate>
            <comments>http://mostlylucid.net/archive/2010/08/27/back-to-posting-this-weekendhellip.aspx#feedback</comments>
            <wfw:commentRss>http://mostlylucid.net/comments/commentRss/1338.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Handy indexes for versioning with RavenDB</title>
            <link>http://mostlylucid.net/archive/2010/07/12/handy-indexes-for-versioning-with-ravendb.aspx</link>
            <description>&lt;p&gt;Mainly for me to remember this but if you’re using the excellent &lt;a href="http://www.ravendb.net/bundles/versioning"&gt;Versioning bundle for RavenDB&lt;/a&gt; then you’ll find you quickly need to work out a way to get the latest version of a document if querying on any field other than ID (I *believe* ID actually only gets the latest one). The little index definitions below do just that (the secome one is just adding another field to the map so I can query by that…useful example)…&lt;/p&gt;  &lt;pre class="csharpcode"&gt;documentStore.DatabaseCommands.PutIndex(&lt;span class="str"&gt;"CurrentVersion"&lt;/span&gt;,
                                                        &lt;span class="kwrd"&gt;new&lt;/span&gt; IndexDefinition
                                                            {
                                                                Map = &lt;span class="str"&gt;@"from doc in docs
                                                                              where
                                                                                  doc["&lt;/span&gt;&lt;span class="str"&gt;"@metadata"&lt;/span&gt;&lt;span class="str"&gt;"][
                                                                                      "&lt;/span&gt;&lt;span class="str"&gt;"Raven-Document-Revision-Status"&lt;/span&gt;&lt;span class="str"&gt;"] !=
                                                                                  null &amp;amp;&amp;amp;
                                                                                  doc["&lt;/span&gt;&lt;span class="str"&gt;"@metadata"&lt;/span&gt;&lt;span class="str"&gt;"][
                                                                                      "&lt;/span&gt;&lt;span class="str"&gt;"Raven-Document-Revision-Status"&lt;/span&gt;&lt;span class="str"&gt;"] ==
                                                                                  "&lt;/span&gt;&lt;span class="str"&gt;"Current"&lt;/span&gt;&lt;span class="str"&gt;"
                                                                              select new {doc};"&lt;/span&gt;
                                                          },&lt;span class="kwrd"&gt;true&lt;/span&gt;);


                documentStore.DatabaseCommands.PutIndex(&lt;span class="str"&gt;"CurrentImageVersionBySlug"&lt;/span&gt;,
                                        &lt;span class="kwrd"&gt;new&lt;/span&gt; IndexDefinition
                                        {
                                            Map = &lt;span class="str"&gt;@"from doc in docs
                                                                              where
doc["&lt;/span&gt;&lt;span class="str"&gt;"@metadata"&lt;/span&gt;&lt;span class="str"&gt;"]["&lt;/span&gt;&lt;span class="str"&gt;"Raven-Entity-Name"&lt;/span&gt;&lt;span class="str"&gt;"] =="&lt;/span&gt;&lt;span class="str"&gt;"Images"&lt;/span&gt;&lt;span class="str"&gt;"
&amp;amp;&amp;amp; doc["&lt;/span&gt;&lt;span class="str"&gt;"Slug"&lt;/span&gt;&lt;span class="str"&gt;"]!=null &amp;amp;&amp;amp;
                                                                                  doc["&lt;/span&gt;&lt;span class="str"&gt;"@metadata"&lt;/span&gt;&lt;span class="str"&gt;"][
                                                                                      "&lt;/span&gt;&lt;span class="str"&gt;"Raven-Document-Revision-Status"&lt;/span&gt;&lt;span class="str"&gt;"] !=
                                                                                  null &amp;amp;&amp;amp;
                                                                                  doc["&lt;/span&gt;&lt;span class="str"&gt;"@metadata"&lt;/span&gt;&lt;span class="str"&gt;"][
                                                                                      "&lt;/span&gt;&lt;span class="str"&gt;"Raven-Document-Revision-Status"&lt;/span&gt;&lt;span class="str"&gt;"] ==
                                                                                  "&lt;/span&gt;&lt;span class="str"&gt;"Current"&lt;/span&gt;&lt;span class="str"&gt;"
                                                                              select new {Slug=doc["&lt;/span&gt;&lt;span class="str"&gt;"Slug"&lt;/span&gt;&lt;span class="str"&gt;"]};"&lt;/span&gt;
                                        ,  } , &lt;span class="kwrd"&gt;true&lt;/span&gt;);&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }]]&gt;&lt;/style&gt;&lt;img src="http://mostlylucid.net/aggbug/1337.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Scott Galloway</dc:creator>
            <guid>http://mostlylucid.net/archive/2010/07/12/handy-indexes-for-versioning-with-ravendb.aspx</guid>
            <pubDate>Mon, 12 Jul 2010 13:59:40 GMT</pubDate>
            <comments>http://mostlylucid.net/archive/2010/07/12/handy-indexes-for-versioning-with-ravendb.aspx#feedback</comments>
            <wfw:commentRss>http://mostlylucid.net/comments/commentRss/1337.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
