<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>RikWare</title>
    <description>...</description>
    <link>http://www.rikware.com/</link>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>BlogEngine.NET 2.0.0.36</generator>
    <language>en-GB</language>
    <blogChannel:blogRoll>http://www.rikware.com/opml.axd</blogChannel:blogRoll>
    <blogChannel:blink>http://www.dotnetblogengine.net/syndication.axd</blogChannel:blink>
    <dc:creator>Richard Mason</dc:creator>
    <dc:title>RikWare</dc:title>
    <geo:lat>0.000000</geo:lat>
    <geo:long>0.000000</geo:long>
    <feedburner:info uri="richardsramblings" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://www.rikware.com/WebLog.rss" /><feedburner:emailServiceId>RichardsRamblings</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Fwww.rikware.com%2FWebLog.rss" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Fwww.rikware.com%2FWebLog.rss" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Fwww.rikware.com%2FWebLog.rss" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://www.rikware.com/WebLog.rss" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Fwww.rikware.com%2FWebLog.rss" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Fwww.rikware.com%2FWebLog.rss" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Fwww.rikware.com%2FWebLog.rss" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
      <title>Using SQL Spatial on AppHarbor</title>
      <description>&lt;p&gt;I'm now using AppHarbor for all my websites including &lt;a href="http://www.aussiebushwalking.com/"&gt;Aussie Bushwalking&lt;/a&gt;&amp;nbsp;and I'm loving it. My new site (hopefully released very soon) required some SQL Server Spatial operations in the code. No problems, hit up NuGet to grab the &lt;em&gt;Microsoft.SqlServer.Types&lt;/em&gt; assembly and we're away. But unfortunately an unmanaged DLL, &lt;em&gt;SqlServerSpatial.dll&lt;/em&gt;, is also required so you'll need to do a little more playing before it works.&lt;/p&gt;
&lt;p&gt;You'll need to copy the SqlServerSpatial.dll into the bin folder of your app, then make sure to add it to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your project - set the Build Action to Content&lt;/li&gt;
&lt;li&gt;Your source control (normally mine is set to exclude the bin folder by default)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can find SqlServerSpatial in two locations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;%SystemRoot%\System32&lt;/li&gt;
&lt;li&gt;%SystemRoot%\SysWOW64&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;AppHarbor requires the 64-bit version so grab it from SysWOW64. Once that's done, deploy and enjoy all the goodness that the spatial types give you :)&lt;/p&gt;</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/WjxhF-8XXrw/post.aspx</link>
      <comments>http://www.rikware.com/post/Using-SQL-Spatial-on-AppHarbor.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=e868e65c-cd96-427e-9118-36b3a08242c4</guid>
      <pubDate>Wed, 02 May 2012 17:34:00 -0500</pubDate>
      <dc:publisher>masonr</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=e868e65c-cd96-427e-9118-36b3a08242c4</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=e868e65c-cd96-427e-9118-36b3a08242c4</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/Using-SQL-Spatial-on-AppHarbor.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=e868e65c-cd96-427e-9118-36b3a08242c4</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=e868e65c-cd96-427e-9118-36b3a08242c4</feedburner:origLink></item>
    <item>
      <title>LINQ Distinct without IEqualityComparer</title>
      <description>&lt;p&gt;
One annoying issue with the LINQ Distinct function is that it requires an IEqualityComparer. Often I&amp;#39;d (and many others based on the info out there) would prefer to just provide a lamdba indicating which field to compare on, or simply a predicate for doing the compare.
&lt;/p&gt;
&lt;p&gt;
There&amp;#39;s at least one solution out there which uses a generic implementation of IEqualityComparer which works fine and another which simply implements the Distinct iteratively. Instead I figured you could instead build it up using Reduce... woops I mean Aggregate.
&lt;/p&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;static&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&amp;nbsp;IEnumerable&amp;lt;T&amp;gt; Distinct&amp;lt;T&amp;gt;(this IEnumerable&amp;lt;T&amp;gt; list, Func&amp;lt;T, T,&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;bool&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&amp;gt; comparer)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;  return&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&amp;nbsp;list.Aggregate((IEnumerable&amp;lt;T&amp;gt;)&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&amp;nbsp;T[&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2" color="#c81efa"&gt;&lt;font face="Consolas" size="2" color="#c81efa"&gt;&lt;font face="Consolas" size="2" color="#c81efa"&gt;0&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;],&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;    (a, b) =&amp;gt; a.Any(c =&amp;gt; comparer(c, b)) ? a : a.Concat(&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;&lt;font face="Consolas" size="2" color="#0000ff"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;[] {b}),&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;    a =&amp;gt; a);&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="white-space: normal"&gt;static IEnumerable&amp;lt;T&amp;gt; Distinct&amp;lt;T&amp;gt;(IEnumerable&amp;lt;T&amp;gt; list, Func&amp;lt;T, object&amp;gt; selector)&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="white-space: normal"&gt;{&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-tab-span" style="white-space: pre"&gt;	&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: normal"&gt;return Distinct(list, (a, b) =&amp;gt; selector(a).Equals(selector(b)));&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px"&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-family: Verdana; white-space: normal; font-size: 11px"&gt;}&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;
&lt;/pre&gt;
&lt;p&gt;
Two versions, one for just specifying that the compare should happen on some calculated value and another for providing a custom compare function.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Now this might not be the most efficient method of implementing this, but it&amp;#39;s kind of nice, but I&amp;#39;m a bit unhappy with the fact that this is no longer a lazy list. I have a solution for that as well, but it&amp;#39;s nowhere near as clean as this :(
&lt;/p&gt;
</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/1ufXeT8RBCg/post.aspx</link>
      <comments>http://www.rikware.com/post/LINQ-Distinct-without-IEqualityComparer.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=b8b5ef14-c19c-4431-971c-518a64d37f92</guid>
      <pubDate>Mon, 17 Aug 2009 17:11:00 -0500</pubDate>
      <category>Programming</category>
      <category>LINQ</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=b8b5ef14-c19c-4431-971c-518a64d37f92</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=b8b5ef14-c19c-4431-971c-518a64d37f92</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/LINQ-Distinct-without-IEqualityComparer.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=b8b5ef14-c19c-4431-971c-518a64d37f92</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=b8b5ef14-c19c-4431-971c-518a64d37f92</feedburner:origLink></item>
    <item>
      <title>Quiet Time Delivers AussieBushwalking</title>
      <description>&lt;p&gt;It&amp;#39;s been a bit quiet on the RikWare blog in the last... umm... well quite a while! But whilst my blog has been quiet there&amp;#39;s been plenty of work going on behind the scenes.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve finally released my latest project - &lt;a href="http://www.aussiebushwalking.com/"&gt;Aussie Bushwalking&lt;/a&gt;&amp;nbsp;- is now in the public arena. Aussie Bushwalking is basically a collaborative site for sharing bushwalking information. It really comes about from my love of bushwalking and the lack of ideas for walks in my area :) Hopefully Aussie Bushwalking will help me, and others, find new ideas for bushwalks.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve still got a pile more ideas to add, but if you&amp;#39;ve got any ideas then please send them through. And don&amp;#39;t worry, whilst the site is focused on Australia/New Zealand, there&amp;#39;s already one European walk out there and I&amp;#39;m keen to get other overseas walks listed.&lt;/p&gt;</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/344KMpz-dbE/post.aspx</link>
      <comments>http://www.rikware.com/post/Quiet-Time-Delivers-AussieBushwalking.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=b318497d-bc80-4793-95c9-10fc51225268</guid>
      <pubDate>Tue, 26 May 2009 15:49:00 -0500</pubDate>
      <category>Bushwalking</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=b318497d-bc80-4793-95c9-10fc51225268</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=b318497d-bc80-4793-95c9-10fc51225268</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/Quiet-Time-Delivers-AussieBushwalking.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=b318497d-bc80-4793-95c9-10fc51225268</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=b318497d-bc80-4793-95c9-10fc51225268</feedburner:origLink></item>
    <item>
      <title>RikMigrations 0.2 Released</title>
      <description>&lt;p&gt;
There&amp;#39;s a new release of RikMigrations available. This includes a lot of bug fixes from the original release and is the first since the development team expanded. 
&lt;/p&gt;
&lt;p&gt;
Big thanks to Andy Stewart in particular who has pushed the release out the door and is actively working on more improvements, particularly cleaning up my original messy code. 
&lt;/p&gt;
&lt;p&gt;
This also marks the official move of the codebase from &lt;a href="http://www.codeplex.com/RikMigrations"&gt;CodePlex&lt;/a&gt; to &lt;a href="http://code.google.com/p/rikmigrations/"&gt;Google Code&lt;/a&gt;. This change is mainly to get around problems with CodePlex&amp;#39;s source control. 
&lt;/p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rikware.com%2fpost%2fRikMigrations-02-Released.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rikware.com%2fpost%2fRikMigrations-02-Released.aspx" border="0" alt="kick it on DotNetKicks.com" width="82" height="18" /&gt;&lt;/a&gt; 
</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/ZO6r7Z9xVs8/post.aspx</link>
      <comments>http://www.rikware.com/post/RikMigrations-02-Released.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=bd9adc10-3109-4aab-b569-ffc41019ecc4</guid>
      <pubDate>Tue, 13 May 2008 13:08:00 -0500</pubDate>
      <category>RikMigrations</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=bd9adc10-3109-4aab-b569-ffc41019ecc4</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=bd9adc10-3109-4aab-b569-ffc41019ecc4</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/RikMigrations-02-Released.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=bd9adc10-3109-4aab-b569-ffc41019ecc4</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=bd9adc10-3109-4aab-b569-ffc41019ecc4</feedburner:origLink></item>
    <item>
      <title>TimeSpanPicker released under BSD</title>
      <description>&lt;p&gt;A request via email has encouraged me to release the &lt;a href="http://www.rikware.com/post/TimeSpanPicker.aspx"&gt;TimeSpanPicker&lt;/a&gt;&amp;nbsp;control I blogged about a few years ago. The details are available at &lt;a href="http://www.rikware.com/page/TimeSpanPicker.aspx"&gt;http://www.rikware.com/page/TimeSpanPicker.aspx&lt;/a&gt;&amp;nbsp;but I've copied them in here for ease of reading:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The TimeSpanPicker is a Windows Forms&amp;nbsp;UpDown control for editing TimeSpan values. It is currently used in RikPVR (&lt;a href="http://www.rikpvr.com/"&gt;http://www.rikpvr.com/&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.rikware.com/image.axd?picture=TimeSpanPicker.png" alt="" width="277" height="40" /&gt;&lt;/p&gt;
&lt;p&gt;The control is provided, as is, under a BSD license (meaning it's free to use and&amp;nbsp;alter in free or commercial projects). Any improvements will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;A Visual Studio 2008 solution (including binaries) containing the project is available here:&amp;nbsp;&lt;a href="http://www.rikware.com/file.axd?file=2012%2f6%2fTimeSpanPicker.zip"&gt;TimeSpanPicker.zip (11.43 kb)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The project targets .NET 2.0 and should be simple to recompile in Visual Studio 2005.&lt;/p&gt;
&lt;p&gt;The control supports input via keyboard, mouse wheel or via the up/down buttons. It is also theme aware.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rikware.com%2fpost%2fTimeSpanPicker-released-under-BSD.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rikware.com%2fpost%2fTimeSpanPicker-released-under-BSD.aspx" border="0" alt="kick it on DotNetKicks.com" width="82" height="18" /&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/Ev8MM0I6gm0/post.aspx</link>
      <comments>http://www.rikware.com/post/TimeSpanPicker-released-under-BSD.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=b40db1f1-b779-4183-b867-9595d4c56e88</guid>
      <pubDate>Wed, 30 Apr 2008 17:49:00 -0500</pubDate>
      <category>Programming</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=b40db1f1-b779-4183-b867-9595d4c56e88</pingback:target>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=b40db1f1-b779-4183-b867-9595d4c56e88</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/TimeSpanPicker-released-under-BSD.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=b40db1f1-b779-4183-b867-9595d4c56e88</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=b40db1f1-b779-4183-b867-9595d4c56e88</feedburner:origLink></item>
    <item>
      <title>RikMigrations - There was movement at the station</title>
      <description>&lt;p&gt;
&lt;a href="http://www.codeplex.com/RikMigrations"&gt;RikMigrations&lt;/a&gt; has started rolling again recently. It appears some posts on the &lt;a href="http://tech.groups.yahoo.com/group/altdotnet/msearch?query=migrations&amp;amp;charset=windows-1252"&gt;alt.net mailing list&lt;/a&gt; prompted a few people to check it out and even better some have signed on to contribute as well. This prompted me to commit the changes I&amp;#39;ve made in the last few months (I&amp;#39;d been meaning to do it but had been lazy). 
&lt;/p&gt;
&lt;p&gt;
There&amp;#39;s already the start of an msbuild task for RikMigrations and rumblings of a NANT one as well. Plus,&amp;nbsp;a nice little tweak to use generics to define column types so you can do this: 
&lt;/p&gt;
&lt;pre&gt;
t.AddColumn&amp;lt;int&amp;gt;(&amp;quot;ID&amp;quot;); 
&lt;/pre&gt;
&lt;p&gt;
And there&amp;#39;s also discussion starting around adding some ability to populate the database with initial values in migrations as well (&lt;a href="https://www.codeplex.com/Thread/View.aspx?ProjectName=RikMigrations&amp;amp;ThreadId=24868"&gt;https://www.codeplex.com/Thread/View.aspx?ProjectName=RikMigrations&amp;amp;ThreadId=24868&lt;/a&gt;) 
&lt;/p&gt;
&lt;p&gt;
PS. For the non-Australians out there the title refers to a &lt;a href="http://www.kmike.com/oz/SnowyRiver.htm" title="famous Australian poem"&gt;famous Australian poem&lt;/a&gt;. 
&lt;/p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rikware.com%2fpost%2fRikMigrations---There-was-movement-at-the-station.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rikware.com%2fpost%2fRikMigrations---There-was-movement-at-the-station.aspx" border="0" alt="kick it on DotNetKicks.com" width="82" height="18" /&gt;&lt;/a&gt; 
</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/NRSgwkliVyQ/post.aspx</link>
      <comments>http://www.rikware.com/post/RikMigrations-There-was-movement-at-the-station.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=f238784e-7d94-4916-94c8-c1e15e57d82e</guid>
      <pubDate>Fri, 28 Mar 2008 06:17:00 -0500</pubDate>
      <category>Programming</category>
      <category>RikMigrations</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=f238784e-7d94-4916-94c8-c1e15e57d82e</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=f238784e-7d94-4916-94c8-c1e15e57d82e</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/RikMigrations-There-was-movement-at-the-station.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=f238784e-7d94-4916-94c8-c1e15e57d82e</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=f238784e-7d94-4916-94c8-c1e15e57d82e</feedburner:origLink></item>
    <item>
      <title>RikMigrations - Starting from an existing database</title>
      <description>&lt;p&gt;
RikMigrations includes support for generating an initial migration from an existing database. Currently this only supports SQL Server databases. The feature was included in the initial release, but hadn&amp;#39;t had much testing. Since then I&amp;#39;ve tested it on a database at &lt;a href="http://www.mquter.qut.edu.au"&gt;work &lt;/a&gt;and confirmed it&amp;#39;s working correctly (at least to some extent). The migration generator attempts to ensure tables are created in the correct order, but this feature was hacked in and needs improving. In doesn&amp;#39;t support circular dependencies so don&amp;#39;t even try.
&lt;/p&gt;
&lt;p&gt;
The generator only supports generating in C# at the moment, however it uses CodeDom so other support for other languages is simple to add and a quick hack of the code will provide a version for your favourite language.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
To generate a migration from a database use the following command line:
&lt;/p&gt;
&lt;p&gt;
RikMigrations auto -s:(local) -db:Test -f:Migration.cs&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
You can also add the &amp;quot;-sf&amp;quot; flag to write each table into a separate class, but make sure you include a &amp;quot;{0}&amp;quot; in the filename to indicate where to place the name of the table. 
&lt;/p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rikware.com%2fpost%2fRikMigrations---Starting-from-an-existing-database.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rikware.com%2fpost%2fRikMigrations---Starting-from-an-existing-database.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/bDYj-EhyzUU/post.aspx</link>
      <comments>http://www.rikware.com/post/RikMigrations-Starting-from-an-existing-database.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=d53b8c93-3656-4c3b-b284-17edb0200d3d</guid>
      <pubDate>Thu, 20 Dec 2007 06:44:00 -0500</pubDate>
      <category>RikMigrations</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=d53b8c93-3656-4c3b-b284-17edb0200d3d</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=d53b8c93-3656-4c3b-b284-17edb0200d3d</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/RikMigrations-Starting-from-an-existing-database.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=d53b8c93-3656-4c3b-b284-17edb0200d3d</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=d53b8c93-3656-4c3b-b284-17edb0200d3d</feedburner:origLink></item>
    <item>
      <title>SQLite for RikMigrations</title>
      <description>&lt;p&gt;
I&amp;#39;ve just added support for &lt;a href="http://www.sqlite.org/"&gt;SQLite&lt;/a&gt; to &lt;a href="http://www.rikware.com/RikMigrations.html"&gt;RikMigrations&lt;/a&gt;. This was done mainly because I use SQLite to store data in &lt;a href="http://www.rikpvr.com/"&gt;RikPVR&lt;/a&gt; and I needed to expand the schema. I tossed up whether to go with the embedded sql scripts like I have been doing or put in the time to add support to RikMigrations so I could use it. Eventually I decided it would be worth the work of adding to RikMigrations, if only to test how well it would support alternate database providers.
&lt;/p&gt;
&lt;p&gt;
As expected, I had to refactor the code to support the change - alternate database providers wasn&amp;#39;t in the original RikMigrations design, though I had already started refactoring towards a provider pattern. However, the changes were actually fairly minimal. I encourage others to sign up and start adding support for other engines.
&lt;/p&gt;
&lt;p&gt;
Unfortunately, SQLite is a bit limited in some areas so not all features are supported. The biggest one is probably the inability to drop columns. There are workarounds for this in SQLite which I may look in to, but for the moment it will just throw an exception. Other ones I&amp;#39;ve run into is that you don&amp;#39;t seem to be able to add columns with PRIMARY KEY or UNIQUE constraints on them once the table is created, but they work fine if they&amp;#39;re added during the initial table construction.
&lt;/p&gt;
&lt;p&gt;
In other news I&amp;#39;ve added a couple of extra pages to the RikMigrations doco. I&amp;#39;ll keep adding to that bit by bit but if you have any specific questions drop me a comment or an email.
&lt;/p&gt;
&lt;p&gt;
Finally, here&amp;#39;s a quick bit of code in the meantime to show how to use SQLite instead of SQL Server. (This is only for programmatic access, I haven&amp;#39;t added the command line interface yet)
&lt;/p&gt;
&lt;pre class="code"&gt;
&lt;span style="color: #2b91af"&gt;DbProvider&lt;/span&gt;.DefaultConnectionString = &lt;span style="color: #a31515"&gt;@&amp;quot;Data Source=D:/TestDB.db&amp;quot;&lt;/span&gt;;
&lt;span style="color: #2b91af"&gt;MigrationManager&lt;/span&gt;.UpgradeMax(&lt;span style="color: blue"&gt;typeof&lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Joe1&lt;/span&gt;).Assembly, &lt;span style="color: blue"&gt;typeof&lt;/span&gt;(&lt;span style="color: #2b91af"&gt;SqliteProvider&lt;/span&gt;));
&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;
&lt;p&gt;
The actual migrations stay exactly the same, except you may run into the limitations I mentioned earlier. I&amp;#39;ll try to document them somewhere.
&lt;/p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rikware.com%2fpost%2fSQLite-for-RikMigrations.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rikware.com%2fpost%2fSQLite-for-RikMigrations.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/vJrVQJrsyVE/post.aspx</link>
      <comments>http://www.rikware.com/post/SQLite-for-RikMigrations.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=7b64a55d-dcf1-4a20-8c33-806328394082</guid>
      <pubDate>Tue, 27 Nov 2007 05:55:00 -0500</pubDate>
      <category>RikMigrations</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=7b64a55d-dcf1-4a20-8c33-806328394082</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=7b64a55d-dcf1-4a20-8c33-806328394082</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/SQLite-for-RikMigrations.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=7b64a55d-dcf1-4a20-8c33-806328394082</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=7b64a55d-dcf1-4a20-8c33-806328394082</feedburner:origLink></item>
    <item>
      <title>Announcing RikMigrations</title>
      <description>&lt;p&gt;
Over the last couple of weeks I&amp;#39;ve been working on a migrations framework for .NET called RikMigrations. There&amp;#39;s a couple of existing frameworks but they&amp;#39;re mostly integrated in other large projects like SubSonic or didn&amp;#39;t quite fit my needs/wants. 
&lt;/p&gt;
&lt;p&gt;
RikMigrations is currently relatively small and simple, but I am releasing it under a BSD license on CodePlex so others can jump on board and build it up. Check out the project homepage at &lt;a href="http://www.rikware.com/RikMigrations.html"&gt;http://www.rikware.com/RikMigrations.html&lt;/a&gt; to find out more, including a simple tutorial demonstrating its use.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rikware.com%2fpost%2fAnnouncing-RikMigrations.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rikware.com%2fpost%2fAnnouncing-RikMigrations.aspx" border="0" alt="kick it on DotNetKicks.com" width="82" height="18" /&gt;&lt;/a&gt; 
&lt;/p&gt;
</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/fq3lg-FUO1Q/post.aspx</link>
      <comments>http://www.rikware.com/post/Announcing-RikMigrations.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=ec8f2fbf-376d-4b1c-8d98-5c3d969ec300</guid>
      <pubDate>Thu, 22 Nov 2007 04:45:00 -0500</pubDate>
      <category>Programming</category>
      <category>RikMigrations</category>
      <dc:publisher>Richard Mason</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=ec8f2fbf-376d-4b1c-8d98-5c3d969ec300</pingback:target>
      <slash:comments>10</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=ec8f2fbf-376d-4b1c-8d98-5c3d969ec300</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/Announcing-RikMigrations.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=ec8f2fbf-376d-4b1c-8d98-5c3d969ec300</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=ec8f2fbf-376d-4b1c-8d98-5c3d969ec300</feedburner:origLink></item>
    <item>
      <title>Redirect domain names using UrlRewrite.NET</title>
      <description>
&lt;p&gt;&lt;a href="http://www.urlrewriter.net/" class="ExternalLink"&gt;UrlRewriter.NET&lt;/a&gt; is a great tool for url rewriting in .NET. It can even be used to redirect domain names with.&lt;/p&gt;

	&lt;p&gt;e.g. RikPVR's main address is &lt;a href="http://www.rikpvr.com/," class="ExternalLink"&gt;http://www.rikpvr.com/,&lt;/a&gt; but it can also be found at &lt;a href="http://www.rikdvr.com/," class="ExternalLink"&gt;http://www.rikdvr.com/,&lt;/a&gt;&lt;a href="http://rikdvr.com/" class="ExternalLink"&gt;http://rikdvr.com/&lt;/a&gt; or &lt;a href="http://rikpvr.com/" class="ExternalLink"&gt;http://rikpvr.com/&lt;/a&gt; but ideally these should just redirect to the primary address. Using a host condition in UrlRewriter.NET makes this easy:&lt;/p&gt;

	&lt;pre class="Code" xmlns:Macro="http://rikware.com/RikWik/Macro" xmlns:xhtml="http://www.w3.org/1999/xhtml"&gt;&lt;br&gt;&amp;lt;if header="HOST" match="^((www.rikdvr.com)|(rikdvr.com)|(rikpvr.com))$"&amp;gt;&lt;br&gt;	&amp;lt;redirect name="RikDVR" url="^(.*)$" to="http://www.rikpvr.com$1" /&amp;gt;&lt;br&gt;&amp;lt;/if&amp;gt;&lt;br&gt;&lt;/pre&gt;

	</description>
      <link>http://feedproxy.google.com/~r/RichardsRamblings/~3/XnnrR1avfJs/post.aspx</link>
      <comments>http://www.rikware.com/post/Redirect-domain-names-using-UrlRewriteNET.aspx#comment</comments>
      <guid isPermaLink="false">http://www.rikware.com/post.aspx?id=56cd362a-1738-46d3-9d58-38c0bbd5e22e</guid>
      <pubDate>Tue, 30 Oct 2007 11:43:57 -0500</pubDate>
      <category>General</category>
      <dc:publisher>admin</dc:publisher>
      <pingback:server>http://www.rikware.com/pingback.axd</pingback:server>
      <pingback:target>http://www.rikware.com/post.aspx?id=56cd362a-1738-46d3-9d58-38c0bbd5e22e</pingback:target>
      <slash:comments>3</slash:comments>
      <trackback:ping>http://www.rikware.com/trackback.axd?id=56cd362a-1738-46d3-9d58-38c0bbd5e22e</trackback:ping>
      <wfw:comment>http://www.rikware.com/post/Redirect-domain-names-using-UrlRewriteNET.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.rikware.com/syndication.axd?post=56cd362a-1738-46d3-9d58-38c0bbd5e22e</wfw:commentRss>
    <feedburner:origLink>http://www.rikware.com/post.aspx?id=56cd362a-1738-46d3-9d58-38c0bbd5e22e</feedburner:origLink></item>
  </channel>
</rss>
