<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>subsonic &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/subsonic/</link>
	<description>Feed of posts on WordPress.com tagged "subsonic"</description>
	<pubDate>Mon, 04 Jan 2010 12:15:06 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Headhunterz - Subsonic]]></title>
<link>http://hardstyle-city.com/2009/11/24/headhunterz-subsonic/</link>
<pubDate>Tue, 24 Nov 2009 17:48:46 +0000</pubDate>
<dc:creator>Resident Dj</dc:creator>
<guid>http://hardstyle-city.com/2009/11/24/headhunterz-subsonic/</guid>
<description><![CDATA[Artist: Headhunterz Title: Subsonic Label: Scantraxx Reloaded Genre: Hardstyle Store Date: 18.02.200]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-full wp-image-106" title="Headhunterz - Subsonic" src="http://hardstyle1.wordpress.com/files/2009/11/headhunterz-subsonic.jpg" alt="" width="300" height="300" /><strong>Artist:</strong> Headhunterz<br />
<strong>Title:</strong> Subsonic<br />
<strong>Label:</strong> Scantraxx Reloaded<br />
<strong>Genre:</strong> Hardstyle<br />
<strong>Store Date:</strong> 18.02.2008<br />
<strong>Source:</strong> Vinyl<br />
<strong># Tracks:</strong> 2<br />
<strong># Vinyls:</strong> 1<br />
<strong>Lenght:</strong> 10:54<br />
<strong>Quality:</strong> 320 kbps<br />
<strong>Channels:</strong> Joint Stereo / 44 khz<br />
<strong>Nonstop mix:</strong> no<br />
<strong>*.cue:</strong> no<br />
<strong>Archive size:</strong> 25 MB<br />
<strong>Recovery record:</strong> no</p>
<p><!--more--><strong> </strong></p>
<p><strong>Tracklist:</strong><br />
A1. Subsonic [5:46]<br />
B1. Hate It Ar Love It [5:08]</p>
<p><a href="http://rapidshare.com/files/310118021/Headhunterz_-_Subsonic__2008_.rar" target="_blank"><img class="alignleft size-full wp-image-1127" src="http://hardstyle1.wordpress.com/files/2009/12/1.gif" alt="" width="200" height="100" /></a><a href="http://rapidshare.com/premium.html?ref=7989EA957D47CE0101AAA2FC585EA883" target="_blank"><img class="alignleft size-full wp-image-1128" src="http://hardstyle1.wordpress.com/files/2009/12/2.gif" alt="" width="200" height="100" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SubSonic Tutorial ( Learn basics )]]></title>
<link>http://maniish.wordpress.com/2009/11/07/subsonic-tutorial-learn-basics/</link>
<pubDate>Sat, 07 Nov 2009 17:16:52 +0000</pubDate>
<dc:creator>Manish</dc:creator>
<guid>http://maniish.wordpress.com/2009/11/07/subsonic-tutorial-learn-basics/</guid>
<description><![CDATA[Following code uses version 2.2 and Northwind database as an example to illustrate the basics. You c]]></description>
<content:encoded><![CDATA[Following code uses version 2.2 and Northwind database as an example to illustrate the basics. You c]]></content:encoded>
</item>
<item>
<title><![CDATA[Ryanair vs. BBC - who am I to comment on this one?]]></title>
<link>http://supersonicswan.wordpress.com/2009/10/12/ryanair-vs-bbc-who-am-i-to-comment-on-this-one/</link>
<pubDate>Mon, 12 Oct 2009 01:59:16 +0000</pubDate>
<dc:creator>supersonicswan</dc:creator>
<guid>http://supersonicswan.wordpress.com/2009/10/12/ryanair-vs-bbc-who-am-i-to-comment-on-this-one/</guid>
<description><![CDATA[It&#8217;s been almost two weeks since Ryanair got back into the headlines executing their promise t]]></description>
<content:encoded><![CDATA[It&#8217;s been almost two weeks since Ryanair got back into the headlines executing their promise t]]></content:encoded>
</item>
<item>
<title><![CDATA[ORA-12516: TNS:listener could not find available handler with matching protocol stack]]></title>
<link>http://karalius.wordpress.com/2009/08/27/ora-12516-tnslistener-could-not-find-available-handler-with-matching-protocol-stack/</link>
<pubDate>Thu, 27 Aug 2009 09:01:00 +0000</pubDate>
<dc:creator>karalius</dc:creator>
<guid>http://karalius.wordpress.com/2009/08/27/ora-12516-tnslistener-could-not-find-available-handler-with-matching-protocol-stack/</guid>
<description><![CDATA[Usually this error is got when Oracle express edition is used. It means, that .NET connection pool h]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Usually this error is got when Oracle express edition is used. It means, that .NET connection pool has many open connections hanging, too many for oracle.</p>
<p>To see how many sessions there are, log in as SYSDBA and execute this statement:</p>
<blockquote><p>select count(*) from gv$session</p>
</blockquote>
<p>Then check these two parameters in oracle:</p>
<blockquote><p>select name, value from v$parameter where name in (&#8216;processes&#8217;,&#8217;sessions&#8217;);</p>
</blockquote>
<p>Then alter these parameters. Oracle professional has value of processes = 300. So you can increase it till this value. Commands to do that:</p>
<blockquote><p>alter system set processes=300 scope=spfile;     <br />alter system set sessions=300 scope=spfile;</p>
<p>&#160;</p>
</blockquote>
<p>This is kind of temporary solution. Usually this means that .NET program has some problems like forgotten to close connections. Or as we had using Subsonic 2.x with custom oracle provider and Subsonic.DatabaseTransaction object.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SubSonic 3.0, part deux]]></title>
<link>http://jamesewelch.wordpress.com/2009/08/21/subsonic-3-0-part-deux/</link>
<pubDate>Fri, 21 Aug 2009 21:05:50 +0000</pubDate>
<dc:creator>Jim</dc:creator>
<guid>http://jamesewelch.wordpress.com/2009/08/21/subsonic-3-0-part-deux/</guid>
<description><![CDATA[As soon as Rob commented on my previous blog entry, I emailed him back and we had a cordial discussi]]></description>
<content:encoded><![CDATA[As soon as Rob commented on my previous blog entry, I emailed him back and we had a cordial discussi]]></content:encoded>
</item>
<item>
<title><![CDATA[SubSonic 3.0]]></title>
<link>http://jamesewelch.wordpress.com/2009/08/19/subsonic-3-0/</link>
<pubDate>Wed, 19 Aug 2009 23:14:29 +0000</pubDate>
<dc:creator>Jim</dc:creator>
<guid>http://jamesewelch.wordpress.com/2009/08/19/subsonic-3-0/</guid>
<description><![CDATA[I&#8217;ve used SubSonic 2.x for a while and I&#8217;ve blogged about how useful it was as a tool to]]></description>
<content:encoded><![CDATA[I&#8217;ve used SubSonic 2.x for a while and I&#8217;ve blogged about how useful it was as a tool to]]></content:encoded>
</item>
<item>
<title><![CDATA[Linh tinh]]></title>
<link>http://ngocvietcode.wordpress.com/2009/07/18/linh-tinh/</link>
<pubDate>Sat, 18 Jul 2009 03:43:46 +0000</pubDate>
<dc:creator>ngocvietcode</dc:creator>
<guid>http://ngocvietcode.wordpress.com/2009/07/18/linh-tinh/</guid>
<description><![CDATA[Đêm qua nằm ngủ mơ thấy bị mất dép. Hê hê, chẳng lẽ vụ mất dép ở trường Thăng Long 2 năm trước lại á]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Đêm qua nằm ngủ mơ thấy bị mất dép. Hê hê, chẳng lẽ vụ mất dép ở trường Thăng Long 2 năm trước lại ám ảnh mình đến thế cơ à?</p>
<p>Xin xỏ cho thằng béo đi làm cùng, hi vọng là sẽ tốt đẹp, chứ cứ như thời tiết mấy hôm nay thì khốn nạn. Sáng nay lúc đi làm thì thấy nắng rực rỡ, đến Kiến Trúc xuống xe bus thì mưa ầm ầm. Hay thế, chẳng lẽ ông trời cũng học cái tính mưa nắng của em yêu?</p>
<p>Đêm qua, trước lúc mơ ngủ, đọc trộm được đoạn chat, có đoạn nhân vật xyz nào đó đi làm cho một công ty abc nào đó, nhân vật này đang gặp rắc rối với Insertion Sort (đúng chính tả không nhỉ). Ôi giời. Mình đi làm cũng kha khá, làm việc với một hệ thống cũng có thể coi là phức tạp, thế mà chưa bao giờ phải dùng 1 tí kiến thức về thuật toán nào. Mà tại sao lại là Insertion Sort mà không phải là Quick Sort hay Heap Sort nhỉ? Suy nghĩ một cách hướng đối tượng, tôi cần sắp xếp một tệp các dữ liệu, tôi quẳng đống dữ liệu này cho 1 đối tượng và bảo nó: Sắp xếp cái này cho tao, từ nhỏ đến lớn. Nó sẽ trả về cho tôi một tệp dữ liệu đã được sắp xếp. Đối tượng đó sắp xếp như thế nào là việc của nó, liên quan gì đến tôi? Thế cái đối tượng ấy từ đâu ra? Google, Copy and Paste.</p>
<p>Đấy là nói 1 cách tổng quát cho nhiều ngôn ngữ lập trình, bao gồm cả những ngôn ngữ ở mức thấp, còn trên .NET thì mọi chuyện còn điên rồ hơn một tí. Tạo ra một List rồi gọi hàm Sort.</p>
<p>Nếu gặp một vấn đề, chỉ có thằng ngu mới hùng hục lao vào xử lý nó ngay. Cứ từ từ, lượn qua lượn lại xem ai đó đã làm chưa. Hỏi mọi người trong nhóm, sau đó là google. 95% công việc được hoàn thành. Nếu rơi vào 5% còn lại, nghĩa là Google không có kết quả thì phải nghĩ rằng, à, cả cái thế giới này mà chưa đứa nào gặp vấn đề này thì mình làm sai mẹ nó rồi, tìm cách khác thôi <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Định dạng file mới của bộ office 2007, có đuôi thêm chữ x ở cuối như docx, xlsx,&#8230; bản chất là một file nén. Nếu đổi đuôi nó thành zip, bung nén nó ra sẽ thấy một đống file, và cái quan trọng nhất, data nằm trong một file xml. Các file xml khác chứa định dạng và các tùy chọn khác.</p>
<p>Phải công nhận bọn Microsoft này kinh khủng thật. Hê hê. Khéo mình thành crazy fan của nó mất thôi.</p>
<p>Còn thế giới mã nguồn mở cho tới giờ vẫn là một nỗi thất vọng ê chề. Java dậm chân tại chỗ khá lâu rồi. MySQL đã bị nuốt chửng, PHP thì nói làm gì cho thêm tủi, làm việc với nó vừa mỏi tay vì code vừa mỏi mồm vì chửi. Thế giới này quả có nhiều bậc pro, có thể sống sung sướng và thanh thảnh cùng cái đống mã nguồn mở điên rồ ấy.</p>
<p>Sắp ra .NET 4.0 và Visual Studio 2010. Ngoài ra còn có ASP.NET MVC, SubSonic, &#8230; đây là những dự án mã nguồn mở dựa trên nền .NET. Windows 7 cũng quá ngon lành.</p>
<p>Còn Linux thì sao? Tầm chục năm về trước, lần đầu tiên được chạm vào cái thứ gọi là máy vi tính, mình đã nghe người ta thì thầm về Linux và mã nguồn mở. Đó là mối đe dọa của Windows, đó là tương lai, đó là một đứa bé chỉ chờ để lớn lên&#8230;</p>
<p>Chục năm sau, đứa bé ấy vẫn là mối đe dọa, vẫn là tương lai, và vẫn đang chờ để lớn lên.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hands off the database]]></title>
<link>http://sqldev.wordpress.com/2009/07/09/hands-off-the-database/</link>
<pubDate>Thu, 09 Jul 2009 08:26:12 +0000</pubDate>
<dc:creator>Coolcoder</dc:creator>
<guid>http://sqldev.wordpress.com/2009/07/09/hands-off-the-database/</guid>
<description><![CDATA[Being a SQL dev I generally poo poo most ORM tools, I want control over what SQL Server does &#8211;]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Being a SQL dev I generally poo poo most ORM tools, I want control over what SQL Server does &#8211; you know, I can squeeze so much more performance out of the queries than any mapping tool can.</p>
<p>However, there comes a time when maybe you just want to select some data and do that as easily as possible &#8211; most small to medium sized sites probably require basic querying and really dont need some whizzy dba to get the last drop of performance out of the db.</p>
<p>I have been very impressed lately by Subsonic, in particular Subsonic 3 as it introduces the best hands-off approach to databases out of all the ORM tools out there. In version 3 of this mighty tool , it comes with something called the <strong>SimpleRepository</strong> . What this does is really take away the need to worry about the database. You simply create a class to represent your object (table) and when you select, insert with that object it creates (migrations) the database objects if they are not there. It also handles changes, performaing an ALTER on the fly.</p>
<p>For more information on this , please visit <a href="http://subsonicproject.com">http://subsonicproject.com</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Remington's CBee22 ammo]]></title>
<link>http://gsagi.wordpress.com/2009/05/27/remingtons-cbee22-ammo/</link>
<pubDate>Wed, 27 May 2009 23:36:50 +0000</pubDate>
<dc:creator>gsagi</dc:creator>
<guid>http://gsagi.wordpress.com/2009/05/27/remingtons-cbee22-ammo/</guid>
<description><![CDATA[It&#8217;s hot, quiet and accurate http://www.gunsandhunting.com/forum/blog/guysagi/index.php?showen]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>It&#8217;s hot, quiet and accurate</p>
<p><a href="http://www.gunsandhunting.com/forum/blog/guysagi/index.php?showentry=330">http://www.gunsandhunting.com/forum/blog/guysagi/index.php?showentry=330</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ben Harper and Relentless7 celebrate National Earth Day]]></title>
<link>http://beginnersguidetoworldmusic.wordpress.com/2009/04/20/ben-harper-and-relentless7-celebrate-national-earth-day/</link>
<pubDate>Mon, 20 Apr 2009 19:09:58 +0000</pubDate>
<dc:creator>pascalesauvage158</dc:creator>
<guid>http://beginnersguidetoworldmusic.wordpress.com/2009/04/20/ben-harper-and-relentless7-celebrate-national-earth-day/</guid>
<description><![CDATA[  To celebrate National Earth Day, Nat Geo Music Channel have organised a concert and live broadcast]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p class="MsoNormal" style="margin:0;"> </p>
<p><span style="font-size:small;font-family:Calibri;"></p>
<div class="mceTemp">To celebrate National Earth Day, Nat Geo Music Channel have organised a concert and live broadcast from Rome’s infamous Piazza del Polopo, featuring the likes of Ben Harper and Relentless7. </div>
<p><font face="Calibri" size="3"></font></span></p>
<div class="mceTemp"><span style="font-size:small;font-family:Calibri;">In an effort to promote environmental awareness, Nat Geo Music (which is a division of National Geographic) is encouraging music lovers ‘to do what counts’. </span></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;"> </span><span style="font-size:small;font-family:Calibri;">Sydney Suissa, executive Vice President of NGCI has spoken about this new partnership explaining that; “music is an excellent way to connect people to an important issue and inspire them to act. Nat Geo Music Channel is pleased to partner with Ben Harper and Relentless7 to increase understanding about the environmental challenges facing our planet.”</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;">The concert will be aired on the 22<sup>nd</sup> of April beginning at 8pm in Italy and will be broadcast on the Nat Geo Music Channel and </span><a href="http://www.natgeotv.com/earthday"><span style="font-size:small;color:#0000ff;font-family:Calibri;">www.natgeotv.com/earthday</span></a><span style="font-size:small;font-family:Calibri;">. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;">Also playing at this one-off concert is the debut performance from Bibi Tanga and the Selenites, one of the first new artists to come from the Nat Geo Music Record Label. An Italian band famous for its fusion of electronica and rock music will also be performing at the event. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;">The concerts carbon emissions are to be offset when the organisers will plant 1,000 trees this autumn in Rome’s Riserva della Valle dell’Aniene Park. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Calibri;">For more information on Ben Harper, check out his website at </span><a href="http://www.benharper.com/"><span style="font-size:small;color:#0000ff;font-family:Calibri;">www.benharper.com</span></a><span style="font-size:small;font-family:Calibri;">. For more information on the event or organisers then have a look at </span><a href="http://worldmusicdev.nationalgeographic.com:8080/preview/view/page.basic/about"><span style="font-size:small;font-family:Calibri;">http://worldmusicdev.nationalgeographic.com:8080/preview/view/page.basic/about</span></a><span style="font-size:small;font-family:Calibri;">. </span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Project Example: ASP.NET MVC + SubSonic Architecture]]></title>
<link>http://briannoyle.wordpress.com/2009/02/20/project-example-aspnet-mvc-subsonic-architecture/</link>
<pubDate>Fri, 20 Feb 2009 22:23:21 +0000</pubDate>
<dc:creator>homebrutrout</dc:creator>
<guid>http://briannoyle.wordpress.com/2009/02/20/project-example-aspnet-mvc-subsonic-architecture/</guid>
<description><![CDATA[So I&#8217;ve thrown up a couple of posts over the past couple of months regarding our use of SubSon]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>So I&#8217;ve thrown up a couple of posts over the past couple of months regarding our use of <a href="http://subsonicproject.com" target="_blank">SubSonic </a>to provide the DAL in association with some <a href="http://www.asp.net/mvc/" target="_blank">ASP.NET MVC </a>sites and was waylaid in my original intent to throw up a post summarizing the architecture we&#8217;re using for the effort. Well I&#8217;ve finally gotten around to it.  Recall that in his <a href="http://blog.davebouwman.net/2009/01/14/AgileCodeEvolutionFakeItTillYouNeedIt.aspx" target="_blank">fake it till you need it post</a>, Dave provided a window on our architecture that I&#8217;ll build upon here.<!--more--></p>
<div id="attachment_128" class="wp-caption aligncenter" style="width: 310px"><a href="http://briannoyle.files.wordpress.com/2009/02/mvcsubsonicarchitecture.png"><img class="size-medium wp-image-128" title="MVCSubSonicArchitecture" src="http://briannoyle.wordpress.com/files/2009/02/mvcsubsonicarchitecture.png?w=300" alt="Example MVC Architecture" width="300" height="247" /></a><p class="wp-caption-text">Example MVC Architecture</p></div>
<p>In the diagram above, Dave&#8217;s original concept is shown on the left for reference with my breakout to the right, similarly color coded for consistency.</p>
<h2>The UI:</h2>
<p>No surprises here.  ASP.NET MVC drives the show from the front end with JQuery, Dojo, or both providing the shiny bits in the browser for the users.  And since we love our unit tests (and are making strides in one of the projects to be TDD), the separation of concerns/tiers within ASP.NET MVC allows us to unit test our controllers thoroughly.</p>
<h2>The Domain:</h2>
<p>The domain of our architecture is actually evolving.  Our first iteration of this architecture worked with both domain objects and POCOs (plain old CLR/C# objects) in the domain layer.  I&#8217;ve included the MVC Model in the domain as well because, with some exceptions, it is holding the data required to successfully render a View&#8230;an argument can be made that it is UI as well, but that is beyond the scope of this post.   As illustrated above, a POCO is simply a data transfer mechanism while the domain object may combine one or more POCOs in new and interesting ways to be rendered by a view. Keeping domain objects and POCOs separated allows us to unit test Model and domain object logic while still letting us &#8220;fake&#8221; all of the repository and data interaction.</p>
<p>Later iterations of this architecture take a more <a href="http://en.wikipedia.org/wiki/Domain-driven_design" target="_blank">DDD </a>approach, eliminating POCOs entirely due to their tendency to push the schema up the architecture, relying instead on the IRepository to return domain objects to the Controller or Model without the middleman.  Either way, there is sufficient abstraction to fake and unit test robustly.</p>
<h2>The Repository:</h2>
<p>This is where Dave left us off in his original post&#8230;the ISomethingRepository. Interface based repositories do all kinds of good stuff for the architecture most notably encouraging DI/IOC patterns that allow faking of repository behavior until we actually have a bona fide need to test against a live database.  One developer can unit test his Model and Controller against:</p>
<pre>public class FakeSomethingRepository : ISomethingRepository</pre>
<p>And later on we&#8217;ll flip the <a href="http://www.castleproject.org/container/index.html" target="_blank">Castle Windsor</a> switch and hit:</p>
<pre>public class SqlSomethingRepository : ISomethingRepository</pre>
<p>when the system goes live.</p>
<p>The repository layer implementation classes are the only place where facts about the data source and the domain layer are known in the same place.  And since these classes have responsibility for data CRUD in the application, unit testing is critical and supported by the nice separation in this architecture once again.</p>
<h2>The DAL:</h2>
<p>This is where SubSonic takes over.  We simply point it at our database, generate a suite of DAL classes, and off we go.  In our first iteration, the tendency for SubSonic to like to work against tables proved challenging from a domain driven perspective, but as it turns out we were handed an existing schema that we were bound to anyway.  Plenty of Sql Server Views solved most problems.</p>
<p>So a typical repository method exercising the SubSonic DAL might look something like:</p>
<pre> /// &#60;summary&#62;
 /// Gets the customer by id performing a deep load of roles.
 /// &#60;/summary&#62;
 /// &#60;param name="customerId"&#62;The customer id.&#60;/param&#62;
 /// &#60;returns&#62;&#60;/returns&#62;
 public UDSH.Domain.Customer GetCustomerById(int customerId)
 {
            //this passes back a user with all contained collections
            Domain.Customer result = null;

            //get the user using subsonic query
            result = DB.Select().From&#60;Customer&#62;().
                        Where(Customer.Customer_IdColumn).IsEqualTo(customerId).
                        ExecuteSingle&#60;Customer&#62;();

            if (result != null)
            {
                //attach roles
                result.Roles = GetRolesForUser(result.CustomerId);
            }

            return result;
 }</pre>
<p>There is acutally a little more to it than that&#8230;the call to SubSonic in our live code acutally includes a call to a custom recursive function that converts a SubSonic type to a domain object on the fly.</p>
<h2>Summary:</h2>
<p>Thus far, this archtecture has worked out very well in our agile environment, allowing front end developers and those responsible for mid-tier and back end coding to work relatively independently without running over each other.  At the same time, it allows us to thoroughly unit test all practical areas of the application with excellent code coverage, guaranteeing quality in the finished product.  And the MVC + JQueyr or Dojo combo on the front end allows us to do some very shiny things in the UI for the user&#8217;s benefit.</p>
<p>Despite the convenience of using of a code generator for the DAL, it&#8217;s likely we&#8217;ll be moving away from the use of SubSonic in the future&#8230;simply to many issues start popping up with even moderately large or complex data schemas.  The heavy dependence of stored procs to do even elementary cross joins with WHERE clauses and annoying issues with DISTINCT, among other things, have moved us to look elsewhere.  That said, development has proceeded smoothly and our sites built in this manner with this technology stack run fast and right.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SubSonic - Custom Query]]></title>
<link>http://jmalinovskis.wordpress.com/2009/02/18/subsonic-custom-query/</link>
<pubDate>Wed, 18 Feb 2009 15:03:52 +0000</pubDate>
<dc:creator>jmalinovskis</dc:creator>
<guid>http://jmalinovskis.wordpress.com/2009/02/18/subsonic-custom-query/</guid>
<description><![CDATA[SubSonic &#8211; how to execute custom query using QueryCommand and read a value from single row: st]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>SubSonic &#8211; how to execute custom query using <em>QueryCommand</em> and read a value from single row:</p>
<pre><code>string result = String.Empty;
int id = 1;
string sqlCommand = "select Col1 from Table1 where id = @IdParam";

QueryCommand cmd = new QueryCommand(sqlCommand);

// Remember to set provider name in case if multiple databases are being
// used in the current project
// (because DataService remembers the latest executed connection string)!
cmd.ProviderName = DBTable1.Schema.Provider.Name;

cmd.AddParameter("@IdParam", id, DbType.Int32);

using (IDataReader rdr = DataService.GetReader(cmd))
{
    if (rdr.Read())
    {
        result = Convert.ToString(rdr[rdr.GetOrdinal("Col1")]);
    }
    rdr.Close();
}</code></pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[.NET3.5 Hosting Fixtures with ASPHostDirectory.com]]></title>
<link>http://dotnethost.wordpress.com/2009/02/12/net35-hosting-fixtures-with-asphostdirectorycom/</link>
<pubDate>Thu, 12 Feb 2009 06:14:38 +0000</pubDate>
<dc:creator>dotnetnerd</dc:creator>
<guid>http://dotnethost.wordpress.com/2009/02/12/net35-hosting-fixtures-with-asphostdirectorycom/</guid>
<description><![CDATA[.NET Framework version 3.5 Service Pack 1 provides the following new features and improvements: 1) P]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="color:#4779ac;">.NET Framework version 3.5</span> Service Pack 1 provides the following new features and improvements:</p>
<p>1) Performance improvements to WPF (Windows Presentation Foundation), including a faster startup time and improved performance for Bitmap effects. Additional functionality for WPF includes better support for line of business applications, native splash screen support, DirectX pixel shader support, and the new WebBrowser control</p>
<p>2) LINQ to SQL includes new support for the new date and file stream capabilities in SQL Server 2008</p>
<p>3) Windows Communication Foundation now makes the DataContract Serializer easier to use by providing improved interoperability support, enhancing the debugging experience in partial trust scenarios, and extending syndication protocol support for wider usage in Web 2.0 applications</p>
<p>4) The .NET Framework Data Provider for SQL Server (SqlClient) adds new support for file stream and sparse column capabilities in SQL Server 2008</p>
<p>5) ASP.NET Dynamic Data, which provides a rich scaffolding framework that enables rapid data driven development without writing code, and a new addition to ASP.NET AJAX that provides support for managing browser history (back button support).</p>
<p><a title="ASPHostCentral.com" href="http://www.asphostdirectory.com">ASPHostDirectory.com</a> is the premier provider in ASP.NET3.5 hosting and our hosting package starts from as low as $3.99/month.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[buckshot meets mad max again]]></title>
<link>http://pdxdownhill.wordpress.com/2009/02/05/buckshot-meets-mad-max-again/</link>
<pubDate>Thu, 05 Feb 2009 20:36:58 +0000</pubDate>
<dc:creator>mildbill</dc:creator>
<guid>http://pdxdownhill.wordpress.com/2009/02/05/buckshot-meets-mad-max-again/</guid>
<description><![CDATA[So I was up on Zoobomb today and had an interesting run down mad max&#8230;.. While I was getting so]]></description>
<content:encoded><![CDATA[So I was up on Zoobomb today and had an interesting run down mad max&#8230;.. While I was getting so]]></content:encoded>
</item>
<item>
<title><![CDATA[buckshot meets mad max]]></title>
<link>http://pdxdownhill.wordpress.com/2009/02/05/buckshot-meets-mad-max/</link>
<pubDate>Thu, 05 Feb 2009 20:13:38 +0000</pubDate>
<dc:creator>mildbill</dc:creator>
<guid>http://pdxdownhill.wordpress.com/2009/02/05/buckshot-meets-mad-max/</guid>
<description><![CDATA[New runs means new fun! Here is a video Jon and I threw together a little while ago. Just started ch]]></description>
<content:encoded><![CDATA[New runs means new fun! Here is a video Jon and I threw together a little while ago. Just started ch]]></content:encoded>
</item>
<item>
<title><![CDATA[How to serialize SubSonic objects with nullable properties]]></title>
<link>http://jamesewelch.wordpress.com/2009/02/03/how-to-serialize-subsonic-objects-with-nullable-properties/</link>
<pubDate>Wed, 04 Feb 2009 00:22:48 +0000</pubDate>
<dc:creator>Jim</dc:creator>
<guid>http://jamesewelch.wordpress.com/2009/02/03/how-to-serialize-subsonic-objects-with-nullable-properties/</guid>
<description><![CDATA[Recently, I ran into the following error when trying to serialize some SubSonic generated classes. C]]></description>
<content:encoded><![CDATA[Recently, I ran into the following error when trying to serialize some SubSonic generated classes. C]]></content:encoded>
</item>
<item>
<title><![CDATA[First Steps with SubSonic]]></title>
<link>http://devio.wordpress.com/2009/01/29/first-steps-with-subsonic/</link>
<pubDate>Wed, 28 Jan 2009 22:43:14 +0000</pubDate>
<dc:creator>devio</dc:creator>
<guid>http://devio.wordpress.com/2009/01/29/first-steps-with-subsonic/</guid>
<description><![CDATA[I have already written a couple of posts regarding code generation, which described how to generate ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have already written a couple of posts regarding <a href="http://devio.wordpress.com/category/code-generation/" target="_blank">code generation</a>, which described how to generate C# or T-SQL code based on a database schema or table data.</p>
<p>My recent <a href="http://stackoverflow.com/questions/446791/i-want-to-automatically-generate-code" target="_blank">browsing</a> <a href="http://stackoverflow.com/questions/472426/what-would-you-choose-if-you-could-use-any-net-dal-technology" target="_blank">expedition</a> led me to <a href="http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx" target="_blank">T4 </a>and <a href="http://subsonicproject.com/" target="_blank">SubSonic</a>. After <a href="http://www.codeplex.com/subsonic/Release/ProjectReleases.aspx" target="_blank">downloading</a> and installing I found <a href="http://www.tonytestasworld.com/post/HowTo-SubSonic-Introduction.aspx" target="_blank">this introductory post</a> on how to use SubSonic in your project.</p>
<p>These are the necessary steps (install-path is currently C:\Program Files\SubSonic\SubSonic 2.1 Final)</p>
<ul>
<li>Install SubSonic</li>
<li><a href="http://subsonicproject.com/setup/setting-up-your-web-app-config/" target="_blank">Modify web.config</a> to include the SubSonic configuration section</li>
</ul>
<p>As you need to add a provider in the SubSonicService section, make sure the chosen name is not a C# keyword, as this will cause a compilation error.</p>
<ul>
<li>Add a reference to the SubSonic.dll C:\install-path\SubSonic directory</li>
<li>Call SubSonic SubCommander from the command line:</li>
</ul>
<pre>C:\install-path\SubCommander\sonic.exe generate
    /config \path-to-config /out \path-to-generated-source</pre>
<p>This command creates a C# file for each table and view in your database, and wrappers for stored procedures.</p>
<p>Using this code, one can generate SQL statements <a href="http://subsonicproject.com/querying/select-queries/" target="_blank">disguised as C# code</a>. I plan to leave my existing SQL code as it is, and write new functionality with the SubSonic framework.</p>
<p>I noticed that inserting records (via new Table() and .Save()) will overwrite the columns&#8217; default values with NULL even if you do not set their values in code. You have to call the table object constructor with a <em>true</em> parameter to generate default values.</p>
<p>I still need to figure out the following questions:</p>
<ul>
<li>How to run a stored procedure on a newly opened connection (connections are opened and closed automatically)</li>
<li>How to use SubSonic in conjunction with SqlDataSources for FormViews and GridViews</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to Import and Export your SSL Certificate in IIS 7?]]></title>
<link>http://dotnetnerd.wordpress.com/2009/01/21/how-to-import-and-export-your-ssl-certificate-in-iis-7/</link>
<pubDate>Wed, 21 Jan 2009 01:36:26 +0000</pubDate>
<dc:creator>dotnetnerd</dc:creator>
<guid>http://dotnetnerd.wordpress.com/2009/01/21/how-to-import-and-export-your-ssl-certificate-in-iis-7/</guid>
<description><![CDATA[PFX Backup Tutorial for Microsoft IIS 7 Servers The PFX extension is used on Windows servers for fil]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div><strong>PFX Backup Tutorial for Microsoft IIS 7 Servers</strong></div>
<p>The PFX extension is used on Windows servers for files containing both the public key files (your SSL certificate files)and the associated private key (generated by your server at the time the CSR was generated).Since both the public and private keys are needed for an SSL certificate to function, a PFX backup is always needed to transfer an SSL server security certificate from one server to another.</p>
<p>This tutorial explains how to back up your certificate from a working server, import the certificate to a second server, and then enable the certificate for use on the new server.</p>
<p> </p>
<div><strong>Exporting/Backing up your certificate/Private Key (to .pfx file format)</strong><strong></strong> </p>
<ol>
<li>On Windows Server 2008, click Start -&#62; Run</li>
<li>Type in MMC and click OK</li>
<li>Go into the File Tab &#62; select Add/Remove Snap-in</li>
<li>Click on Certificates and click on Add.</li>
<li>Select Computer Account &#62; Click Next</li>
<li>Select Local Computer &#62; Click Finish</li>
<li>Click OK to close the Add/Remove Snap-in window.</li>
<li>Double click on Certificates (Local Computer) in the center window.</li>
<li>Double click on the Personal folder, and then on Certificates.</li>
<li>Right Click on the Certificate you would like to backup and choose &#62; ALL TASKS &#62; Export</li>
<li>Follow the Certificate Export Wizard to backup your certificate to a .pfx file.</li>
<li>Choose to &#8216;Yes, export the private key&#8217;</li>
<li>Choose to &#8220;Include all certificates in certificate path if possible.&#8221; (do NOT select the delete Private Key option)</li>
<li>Enter a password you will remember</li>
<li>Choose to save file on a set location</li>
<li>Finish</li>
<li>You will receive a message &#62; &#8220;The export was successful.&#8221; &#62; Click OK</li>
<li>The .pfx file backup is now saved in the location you selected.</li>
</ol>
<div><strong>Importing your Certificate/Private Key (from .pfx file format)</strong></p>
<ol>
<li>Start &#62; Run</li>
<li>Type in MMC and click OK</li>
<li>Go into the File Tab &#62; select Add/Remove Snap-in</li>
<li>Click on Certificates and click on Add.</li>
<li>Select Computer Account &#62; Click Next</li>
<li>Select Local Computer &#62; Click Finish</li>
<li>Click OK to close the Add/Remove Snap-in window.</li>
<li>Double click on Certificates (Local Computer) in the center window.</li>
<li>Right click on the Personal Certificates Store (folder)</li>
<li>Choose &#62; ALL TASKS &#62; Import</li>
<li>Follow the Certificate Import Wizard to import your Primary Certificate from the .pfx file. You will need to browse for .pfx files.</li>
<li>Enter the password that was used when exporting the certificate to a .pfx file.</li>
<li>If desired, check the box to &#8220;Mark this key as exportable.&#8221;</li>
<li>When prompted, choose to automatically place the certificates in the certificate stores based on the type of the certificate.</li>
<li>Click Finish to close the certificate wizard.</li>
<li>Close the MMC console. In the case that you are prompted, it is not necessary to save the changes made to the MMC console.</li>
</ol>
<div><strong>Configuring Your Site &#8211; IIS 7</strong></p>
<ol>
<li>Click on Start, then Administrative Tools, then Internet Information Services (IIS) Manager.</li>
<li>Click on the server name.</li>
<li>Expand the Sites folder.</li>
<li>Select the site to be secured (usually the default web site).</li>
<li>From the &#8220;Actions&#8221; menu (on the right), click on &#8220;Bindings&#8230;&#8221; under Edit Site</li>
<li>In the &#8220;Site Bindings&#8221; window, click &#8220;Add&#8230;&#8221; This will open the &#8220;Add Site Binding&#8221; window.</li>
<li>Under &#8220;Type&#8221; choose https. The IP address should be the IP address of the site or All Unassigned, and the port over which traffic will be secured by SSL is usually 443. The &#8220;SSL Certificate&#8221; field should specify the certificate that was installed during the import process described above</li>
<li>Click &#8220;OK.&#8221;</li>
<li>Your SSL certificate is now installed, and the website configured to accept secure connections</li>
</ol>
<p> </p>
<p>Occassionally a server or IIS restart is required before your server will recognize the new certificate.</p>
<p>If you want to start your online e-commerce site on IIS7 environment, you can look for <a title="IIS7 Hosting" href="http://www.asphostdirectory.com/" target="_self"><strong><span style="color:#0a8fbc;">IIS7 hosting</span></strong></a> company that may be able to support you with the required SSL. There are few types of SSL that you need to consider and I will discuss it on my next post <img class="wp-smiley" src="http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=")" /></p>
<p>Remember! An SSL is an important measurement to indicates that your site is safe and secure for online transaction. Without an SSL to protect site, your customer will be reluctant to enter his personal financial information on your site</p></div>
<p> </p></div>
<p> </p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to install SSL in IIS7?]]></title>
<link>http://dotnetnerd.wordpress.com/2009/01/21/how-to-install-ssl-in-iis7/</link>
<pubDate>Wed, 21 Jan 2009 01:25:04 +0000</pubDate>
<dc:creator>dotnetnerd</dc:creator>
<guid>http://dotnetnerd.wordpress.com/2009/01/21/how-to-install-ssl-in-iis7/</guid>
<description><![CDATA[This post is the continuing article about getting the SSL to work on IIS7 and in order to generate t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This post is the continuing article about getting the SSL to work on IIS7 and in order to generate the SSL, I highly advise you to read my article about <a title="IIS7 Hosting - The way to generate SSL" href="http://dotnetnerd.wordpress.com/2009/01/21/how-to-generate-csr-in-iis7/" target="_blank">generating the CSR in IIS7</a> first.</p>
<p>Once you have the CSR, you can continue with the following steps:</p>
<p>1. You need to contact any SSL registrar, namely Thawte, which will be able to issue you an SSL.</p>
<p>2. The SSL will come in the format of .CER or .CRT file and the &#8220;appearance&#8221; or the &#8220;content&#8221; of this file looks similar with the CSR file, i.e. it is unreadable <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>3.  On your Windows Server 2008, click on Start, then Administrative Tools, then Internet Information Services (IIS) Manager.</p>
<p>4. Click on the server name.</p>
<p>5. From the center menu, double-click the &#8220;Server Certificates&#8221; button in the &#8220;Security&#8221; section (near the bottom of the menu).</p>
<p>6. From the &#8220;Actions&#8221; menu (on the right), click on &#8220;Complete Certificate Request.&#8221; This will open the Complete Certificate Request wizard.</p>
<p>7. Browse to your_domain_name.cer file that was provided to you by DigiCert. You will then be required to enter a friendly name. The friendly name is not part of the certificate itself, but is used by the server administrator to easily distinguish the certificate.</p>
<p>8. Clicking &#8220;OK&#8221; will install the certificate to the server.</p>
<p><strong>Note:</strong> There is a known issue in IIS 7 giving the following error: &#8220;Cannot find the certificate request associated with this certificate file. A certificate request must be completed on the computer where it was created.&#8221; You may also receive a message stating &#8220;ASN1 bad tag value met&#8221;. If this is the same server that you generated the CSR on then, in most cases, the certificate is actually installed. Simply cancel the dialog and press &#8220;F5&#8243; to refresh the list of server certificates. If the new certificate is now in the list, you can continue with the next step</p>
<p>9. Once the SSL certificate has been successfully installed to the server, you will need to assign that certificate to the appropriate website using IIS.</p>
<p>10. From the &#8220;Connections&#8221; menu in the main Internet Information Services (IIS) Manager window, select the name of the server to which the certificate was installed</p>
<p>11. Under &#8220;Sites,&#8221; select the site to be secured with SSL</p>
<p>12. From the &#8220;Actions&#8221; menu (on the right), click on &#8220;Bindings.&#8221; This will open the &#8220;Site Bindings&#8221; window</p>
<p>13. In the &#8220;Site Bindings&#8221; window, click &#8220;Add&#8230;&#8221; This will open the &#8220;Add Site Binding&#8221; window</p>
<p>14. Under &#8220;Type&#8221; choose https. The IP address should be the IP address of the site or All Unassigned, and the port over which traffic will be secured by SSL is usually 443. The &#8220;SSL Certificate&#8221; field should specify the certificate that was installed in step 7</p>
<p>15. Click &#8220;OK.&#8221;</p>
<p>16. Your SSL certificate is now installed, and the website configured to accept secure connections</p>
<p><strong>Troubleshooting:</p>
<p></strong>1. Open a web browser and visit your site using https. It is best to test with both Internet Explorer as well as Firefox, because Firefox will give you a warning if your intermediate certificate is not installed. You should not receive any browser warnings or errors. If you immediately receive a browser message about the site not being available, then IIS 7 may not yet be listening on port 443. If your web request takes a very long time, and then times out, a firewall blocking traffic on TCP port 443 to the web server</p>
<p>2. Note for ISA servers: If your ISA 2004 or 2006 server is not sending the intermediate certificate, you need to fully reboot the server. We have confirmed this to be true with many customers: ISA server will not properly send the intermedate certificate chain until after a full reboot<br />
If you want to start your online e-commerce site on IIS7 environment, you can look for <a title="IIS7 Hosting" href="http://www.asphostdirectory.com/" target="_self"><strong><span style="color:#0a8fbc;">IIS7 hosting</span></strong></a> company that may be able to support you with the required SSL. There are few types of SSL that you need to consider and I will discuss it on my next post <img class="wp-smiley" src="http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=")" /></p>
<p>Remember! An SSL is an important measurement to indicates that your site is safe and secure for online transaction. Without an SSL to protect site, your customer will be reluctant to enter his personal financial information on your site</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to generate CSR in IIS7?]]></title>
<link>http://dotnetnerd.wordpress.com/2009/01/21/how-to-generate-csr-in-iis7/</link>
<pubDate>Wed, 21 Jan 2009 01:13:50 +0000</pubDate>
<dc:creator>dotnetnerd</dc:creator>
<guid>http://dotnetnerd.wordpress.com/2009/01/21/how-to-generate-csr-in-iis7/</guid>
<description><![CDATA[On this post, I am going to elaborate the steps that you need to execute in order to generate the CS]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>On this post, I am going to elaborate the steps that you need to execute in order to generate the CSR (Certificate Signing Request). The CSR is an important key in SSL creation and without this, your SSL will never ever be generated properly. As you all know that the IIS7 settings and appearances are a lot different with the previous IIS6 version. All the menus and settings of IIS7 are now centralized into one big &#8220;panel&#8221; for easy access, unlike IIS6 in which every domain will have its own settings and menu.</p>
<p>The following are the steps to generate the CSR:</p>
<p>1. On your Windows Server 2008, Click Start, then Administrative Tools, then Internet Information Services (IIS) Manager.</p>
<p>2. Click on the server name. This is the main different with the IIS6, in which IIS7 groups all the main menus and settings on this &#8220;panel&#8221;</p>
<p>3. From the center menu, please find the item called &#8220;Server Certificates&#8221; in the &#8220;Security&#8221; section (it is near the bottom of the menu) and please double-click the item</p>
<p>4. Next, from the &#8220;Actions&#8221; menu (on the right), click on &#8220;Create Certificate Request.&#8221; This will open the Request Certificate wizard.</p>
<p>5. In the &#8220;Distinguished Name Properties&#8221; window, enter the information as follows:</p>
<p>    <strong>Common Name</strong> &#8211; The name through which the certificate will be accessed (usually the fully-qualified domain name, e.g., <a href="http://www.domain.com/">www.domain.com</a> or mail.domain.com).</p>
<p>    <strong>Organization</strong> &#8211; The legally registered name of your organization/company.</p>
<p>    <strong>Organizational unit</strong> &#8211; The name of your department within the organization (frequently this entry will be listed as &#8220;IT,&#8221; &#8220;Web Security,&#8221; or is simply left blank).</p>
<p>    <strong>City/locality</strong> &#8211; The city in which your organization is located.</p>
<p>    <strong>State/province</strong> &#8211; The state in which your organization is located.</p>
<p>    <strong>Country/region</strong> &#8211; A country name</p>
<p>6. Click Next.</p>
<p>7. In the &#8220;Cryptographic Service Provider Properties&#8221; window, leave both settings at their defaults (Microsoft RSA SChannel and 2048 ) and then click next.</p>
<p>8. Enter a filename for your CSR file.<br />
Remember the filename that you choose and the location to which you save it. You will need to open this file as a text file and copy the entire body of it (including the Begin and End Certificate Request tags) into the online order process when prompted.</p>
<p>If you want to start your online e-commerce site on IIS7 environment, you can look for <a title="IIS7 Hosting" href="http://www.asphostdirectory.com" target="_self">IIS7 hosting</a> company that may be able to support you with the required SSL. There are few types of SSL that you need to consider and I will discuss it on my next post <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Remember! An SSL is an important measurement to indicates that your site is safe and secure for online transaction. Without an SSL to protect site, your customer will be reluctant to enter his personal financial information on your site .</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
