<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>jgauffin's coding den - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-323258f4" type="application/json"/><link>http://jgauffin.disqus.com/</link><description></description><atom:link href="http://jgauffin.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 12 May 2013 18:50:40 -0000</lastBuildDate><item><title>Re: Repositories, Unit Of Work and ASP.NET MVC</title><link>http://blog.gauffin.org/2012/02/repositories-unit-of-work-and-asp-net-mvc/#comment-895284896</link><description>&lt;p&gt;Nice blog, in the case that you need a generically implement the Unit of Work and Repository pattern, you may want to take a look a this article.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blog.longle.net/2013/05/11/genericizing-the-unit-of-work-pattern-repository-pattern-with-entity-framework-in-mvc/" rel="nofollow"&gt;http://blog.longle.net/2013/05...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Long Le</dc:creator><pubDate>Sun, 12 May 2013 18:50:40 -0000</pubDate></item><item><title>Re: ADO.NET, the right way</title><link>http://blog.gauffin.org/2013/01/ado-net-the-right-way/#comment-881933811</link><description>&lt;p&gt;Yes, if you have a default constructor you could use the "new" generic restriction.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Thu, 02 May 2013 01:47:52 -0000</pubDate></item><item><title>Re: ADO.NET, the right way</title><link>http://blog.gauffin.org/2013/01/ado-net-the-right-way/#comment-881933172</link><description>&lt;p&gt;Some drivers allow you to create multiple transactiosn for the same connection (but most won't allow that). I do the list under the assumtion that the latest connection will get disposed first. It's not fail safe but will in most cases be enough&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Thu, 02 May 2013 01:46:52 -0000</pubDate></item><item><title>Re: ADO.NET, the right way</title><link>http://blog.gauffin.org/2013/01/ado-net-the-right-way/#comment-881930805</link><description>&lt;p&gt;Sorry, that's a typo. It should say "reader" as the DataReader implement IDataRecord. I've updated the article.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Thu, 02 May 2013 01:43:21 -0000</pubDate></item><item><title>Re: ADO.NET, the right way</title><link>http://blog.gauffin.org/2013/01/ado-net-the-right-way/#comment-881607707</link><description>&lt;p&gt;Thank you for your post, one question, in the Returning POCOs Section, in the following code:&lt;/p&gt;

&lt;p&gt;using (var reader = command.ExecuteReader())&lt;br&gt;        {&lt;br&gt;            List&amp;lt;user&amp;gt; users = new List&amp;lt;user&amp;gt;();&lt;br&gt;            while (reader.Read())&lt;br&gt;            {&lt;br&gt;                var user = new User();&lt;br&gt;                Map(record, user);&lt;br&gt;                users.Add(user);&lt;br&gt;            }&lt;br&gt;            return users;&lt;br&gt;        }&lt;/p&gt;

&lt;p&gt;When you call Map(record, user);&lt;br&gt;Where does "record" come from? &lt;/p&gt;

&lt;p&gt;Thank you for your help.&amp;lt;/user&amp;gt;&amp;lt;/user&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul Villalobos</dc:creator><pubDate>Wed, 01 May 2013 16:50:42 -0000</pubDate></item><item><title>Re: How to handle errors in ASP.NET MVC</title><link>http://blog.gauffin.org/2011/11/how-to-handle-errors-in-asp-net-mvc/#comment-881283934</link><description>&lt;p&gt;.FormatWith.. i'm getting an error on that?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark Perry</dc:creator><pubDate>Wed, 01 May 2013 10:28:01 -0000</pubDate></item><item><title>Re: Adding a required indicator in ASP.NET MVC3 using jQuery</title><link>http://blog.gauffin.org/2012/06/adding-a-required-indicator-in-asp-net-mvc3-using-jquery/#comment-878062746</link><description>&lt;p&gt;yes.  This is the Shit.  Thanks!!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zachary R. Bennett</dc:creator><pubDate>Sat, 27 Apr 2013 16:13:37 -0000</pubDate></item><item><title>Re: About</title><link>http://jgauffin-blog.azurewebsites.net/about/#comment-868823895</link><description>&lt;p&gt;Thanks for the information.  The guys over on NancyFX do not believe it's possible.  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JCWRequests</dc:creator><pubDate>Fri, 19 Apr 2013 21:42:54 -0000</pubDate></item><item><title>Re: About</title><link>http://jgauffin-blog.azurewebsites.net/about/#comment-867841228</link><description>&lt;p&gt;yes. It do support SSL without netsh (Griffin.WebServer do not do it yet, but C# WebServer do)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Fri, 19 Apr 2013 01:46:59 -0000</pubDate></item><item><title>Re: Griffin.MvcContrib &amp;#8211; The plugin system</title><link>http://blog.gauffin.org/2012/05/griffin-mvccontrib-the-plugin-system/#comment-863963353</link><description>&lt;p&gt;Found that I had to add the FileProvider to the PluginService as it was not present. Everythig works fine, even in Mvc 4 ;o)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Overgaard</dc:creator><pubDate>Mon, 15 Apr 2013 01:02:33 -0000</pubDate></item><item><title>Re: Griffin.MvcContrib &amp;#8211; The plugin system</title><link>http://blog.gauffin.org/2012/05/griffin-mvccontrib-the-plugin-system/#comment-860598698</link><description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I have set up a fully working example of the plugin system, I have one question though. When I add a css file to a plugin and add it to a _Layout.cshtml file and run the site the styles does not get loaded. When I view the source and click on the css file, I get an 404 File not found error. I have marked it as Embedded Resource and I call i like @Url.Content("~/Areas/Page/Content/page.css").&lt;/p&gt;

&lt;p&gt;I use the latest source from NuGet and I can't see why it should not work. When I use IlSpy to check the Plugin.Page.dll the css file is under resources. Am I doing somthing wrong here ?&lt;/p&gt;

&lt;p&gt;/Martin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Overgaard</dc:creator><pubDate>Fri, 12 Apr 2013 03:51:23 -0000</pubDate></item><item><title>Re: Do NOT catch that exception!</title><link>http://blog.gauffin.org/2010/11/do-not-catch-that-exception/#comment-857208255</link><description>&lt;p&gt;fixed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Tue, 09 Apr 2013 02:27:25 -0000</pubDate></item><item><title>Re: Azure shut me down again</title><link>http://blog.gauffin.org/2013/03/azure-shut-me-down-again/#comment-857161074</link><description>&lt;p&gt;Agree with Joseph. I'd love to use Azure for my hobby sites and services - but a few months of getting killed with high bills I didn't really expect (my fault, but feel tricked) has left a very bad taste in my mouth. I'm looking elsewhere. Great platform, but not for this kind of use unless you have lots of cash to burn.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rc</dc:creator><pubDate>Tue, 09 Apr 2013 02:01:43 -0000</pubDate></item><item><title>Re: Updated the localization administration area</title><link>http://blog.gauffin.org/2012/08/updated-the-localization-administration-area/#comment-850542282</link><description>&lt;p&gt;How can I delete a Language ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vijesh r pillai</dc:creator><pubDate>Wed, 03 Apr 2013 05:24:06 -0000</pubDate></item><item><title>Re: Open source projects</title><link>http://blog.gauffin.org/sample-page/#comment-847384325</link><description>&lt;p&gt;Hi, do you have an example available authentication usage?&lt;br&gt;Seems so be a very usefull library!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stijn</dc:creator><pubDate>Sat, 30 Mar 2013 16:05:39 -0000</pubDate></item><item><title>Re: About</title><link>http://jgauffin-blog.azurewebsites.net/about/#comment-845532484</link><description>&lt;p&gt;Hi Jonas I came across your webserver project and was wondering does it support SSL without using netsh?  What I am looking to do is to use NancyFX with a with self hosting but that requires netsh to bind the cert to the port and was hoping your library found a way around the issue.  Thanks,  Jason Wyglendowski&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JCWRequests</dc:creator><pubDate>Thu, 28 Mar 2013 21:04:48 -0000</pubDate></item><item><title>Re: Data layer, the right way.</title><link>http://blog.gauffin.org/2013/01/data-layer-the-right-way/#comment-844052035</link><description>&lt;p&gt;Nice and insightful article (not only just this one, many other posts in your blog, too). I was not aware about most of the things you have mentioned, hence my query: Are not denormalization and SRP (for database tables) mutually exclusive?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">S Krupa Shankar</dc:creator><pubDate>Wed, 27 Mar 2013 12:39:02 -0000</pubDate></item><item><title>Re: More relevant ads please.</title><link>http://blog.gauffin.org/2013/03/more-relevant-ads-please/#comment-843087971</link><description>&lt;p&gt;Oh, I get it now. You set preferences in the browser and those get sent with the request. Must have read this way too fast.&lt;br&gt;I'd rather have 3rd party cookies on though, for statistics like Google Analytics. In public facing web applications, these can be really valuable, not to mention free and implemented very fast.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David De Sloovere</dc:creator><pubDate>Tue, 26 Mar 2013 13:22:28 -0000</pubDate></item><item><title>Re: Get an unique session in each browser tab</title><link>http://blog.gauffin.org/2012/02/get-a-unique-session-in-each-browser-tab/#comment-841925769</link><description>&lt;p&gt;Nice.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Mon, 25 Mar 2013 15:04:18 -0000</pubDate></item><item><title>Re: More relevant ads please.</title><link>http://blog.gauffin.org/2013/03/more-relevant-ads-please/#comment-841924815</link><description>&lt;p&gt;Most ads are based on content which are downloaded from the ad servers (js/flash/img). Hence the browser have to download the ads too (which means that they should get the header)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JonasGauffin</dc:creator><pubDate>Mon, 25 Mar 2013 15:03:04 -0000</pubDate></item><item><title>Re: Get an unique session in each browser tab</title><link>http://blog.gauffin.org/2012/02/get-a-unique-session-in-each-browser-tab/#comment-841918425</link><description>&lt;p&gt;I've created a nuget package which simplifies session handling in tabbed browsing scenarios. &lt;a href="http://blog.micic.ch/net/asp-net-mvc-conversational-session" rel="nofollow"&gt;http://blog.micic.ch/net/asp-n...&lt;/a&gt; Maybe you will find it useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DaMi</dc:creator><pubDate>Mon, 25 Mar 2013 14:54:53 -0000</pubDate></item><item><title>Re: More relevant ads please.</title><link>http://blog.gauffin.org/2013/03/more-relevant-ads-please/#comment-841916245</link><description>&lt;p&gt;That's a great idea, but I'm not sute ad providers will be able to pick up the header though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David De Sloovere</dc:creator><pubDate>Mon, 25 Mar 2013 14:52:12 -0000</pubDate></item><item><title>Re: ADO.NET, the right way</title><link>http://blog.gauffin.org/2013/01/ado-net-the-right-way/#comment-839900525</link><description>&lt;p&gt;Hi! Very, very good! I was looking for this, exactly like this.&lt;br&gt;One question: in the Map method instead of passing User, one could use reflection and make it more generic, passing &amp;lt;t&amp;gt; for exemple?&lt;/p&gt;

&lt;p&gt;Thank you and keep up good work!&amp;lt;/t&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ramires Souza</dc:creator><pubDate>Sat, 23 Mar 2013 17:10:06 -0000</pubDate></item><item><title>Re: Three reasons to why you should use view models</title><link>http://blog.gauffin.org/2011/07/three-reasons-to-why-you-should-use-view-models/#comment-837174742</link><description>&lt;p&gt;could you please explain how to remove logic from view with ViewModel in such scenario like @(model.Age != 0 ? model.Age.ToString() : "n/a").&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohsen Esmailpour</dc:creator><pubDate>Thu, 21 Mar 2013 08:25:26 -0000</pubDate></item><item><title>Re: Azure shut me down again</title><link>http://blog.gauffin.org/2013/03/azure-shut-me-down-again/#comment-835014092</link><description>&lt;p&gt;I ditched Azure. Too expensive for hobbyists. A VPS gets me way more control and power for way less money.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joseph Sauve</dc:creator><pubDate>Tue, 19 Mar 2013 16:54:24 -0000</pubDate></item></channel></rss>