<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Emad Ibrahim - 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-8925f4bf" type="application/json"/><link>http://emadibrahim.disqus.com/</link><description></description><language>en</language><lastBuildDate>Thu, 05 Nov 2009 11:43:48 -0000</lastBuildDate><item><title>Re: Shortening URLs with bit.ly&amp;rsquo;s API in .NET</title><link>http://www.emadibrahim.com/2009/05/07/shortening-urls-with-bitlys-api-in-net/#comment-21945927</link><description>Great post, thanks for sharing this class.  I had to make one Tweak to use this in a non-web app in VS 2010 Beta 2.  HttpUtlity is in System.Web and it looks like there is no way to reference System.Web in VS 2010 Beta 2 from a console application. &lt;br&gt;&lt;br&gt;I changed the call to HttpUtility to use System.Uri.EscapeDataString and it worked like a charm.&lt;br&gt;&lt;br&gt;Good stuff!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Deweese</dc:creator><pubDate>Thu, 05 Nov 2009 11:43:48 -0000</pubDate></item><item><title>Re: Unit Test Private Methods in Visual Studio</title><link>http://www.emadibrahim.com/2008/07/09/unit-test-private-methods-in-visual-studio/#comment-21473852</link><description>That's a pretty good idea except for the  fact that it "pollutes" the  &lt;br&gt;code.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Sat, 31 Oct 2009 13:24:48 -0000</pubDate></item><item><title>Re: Unit Test Private Methods in Visual Studio</title><link>http://www.emadibrahim.com/2008/07/09/unit-test-private-methods-in-visual-studio/#comment-21460583</link><description>The downside to using PrivateObject is that it is a bit painful to maintain, since signature changes are not caught at compile-time, but instead caught at test-time.  Refactorings that change method signatures tend to catch all the compile-time stuff, but then leave test code broken, and it is tougher to fix.&lt;br&gt;&lt;br&gt;An alternative that I've always liked is to use inner-classes to test your code, like this:&lt;br&gt;&lt;br&gt;public class Foo &lt;br&gt;{&lt;br&gt;   private void Bar()&lt;br&gt;   {&lt;br&gt;     // Do so work here in a private method&lt;br&gt;   }&lt;br&gt;&lt;br&gt;#region Unit Tests&lt;br&gt;#if UNIT_TESTS&lt;br&gt;    [TestFixture] public class TestFoo&lt;br&gt;    {&lt;br&gt;        [Test] public void TestBar()&lt;br&gt;        {&lt;br&gt;            Foo foo = new Foo()&lt;br&gt;            foo.Bar();   // inner class can call this method&lt;br&gt;        }&lt;br&gt;    }  &lt;br&gt;#endif&lt;br&gt;#end region&lt;br&gt;}&lt;br&gt;&lt;br&gt;You simply define UNIT_TESTS in Debug/Release builds if you want test code enabled, and leave it out from your Ship builds.&lt;br&gt;&lt;br&gt;Also, you'll probably have a using statement wrapper, &lt;br&gt;&lt;br&gt;#if UNIT_TESTS&lt;br&gt;using MbUnit.Framework;&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;As an added check, you can write a simple app that does reflection on all the types in the DLL to verify your ship build doesn't have any classes with test attributes.  If no code references the test framework, your ship builds will automatically not load the referenced test framework DLLs, thus allowing you to ship your product like usual without pulling in test DLL dependencies (and associated bloat and licensing issues).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug de la Torre</dc:creator><pubDate>Sat, 31 Oct 2009 03:23:43 -0000</pubDate></item><item><title>Re: Ruby on Rails Crumbs - Part 1</title><link>http://www.emadibrahim.com/2008/05/02/ruby-on-rails-crumbs-part-1/#comment-21376558</link><description>Form Edit you need to add :method=&amp;gt;'get' like this:&lt;br&gt;&amp;lt;%=button_to('Editar',{:action =&amp;gt; 'edit'},{:onclick =&amp;gt; "this.form.target = 'Editar Socio'; window.open('','Editar Socio', 'height = 575, width = 300, top = 20, left = 100, scrollbars = 0, toolbar = 0, status = 0, menubar = 0, location = 0')",:method=&amp;gt; 'get'}) %&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">apatania</dc:creator><pubDate>Fri, 30 Oct 2009 14:49:05 -0000</pubDate></item><item><title>Re: Startup &amp;ndash; ASP.NET MVC, Cloud Scale &amp;amp; Deployment</title><link>http://www.emadibrahim.com/2009/08/05/startup-asp-net-mvc-cloud-scale-deployment/#comment-21004232</link><description>The website is using joomla but the yonkly application itself is built  &lt;br&gt;with &lt;a href="http://asp.net" rel="nofollow"&gt;asp.net&lt;/a&gt; mvc.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Sun, 25 Oct 2009 20:28:53 -0000</pubDate></item><item><title>Re: Startup &amp;ndash; ASP.NET MVC, Cloud Scale &amp;amp; Deployment</title><link>http://www.emadibrahim.com/2009/08/05/startup-asp-net-mvc-cloud-scale-deployment/#comment-21000236</link><description>Why does yonkly have the meta generation by joomla tag at the top of the page and several php file references?  Just wondering where &lt;a href="http://asp.net" rel="nofollow"&gt;asp.net&lt;/a&gt; mvc is being used in your app.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott</dc:creator><pubDate>Sun, 25 Oct 2009 19:17:22 -0000</pubDate></item><item><title>Re: Dynamically Build LINQ Queries Using Reflection</title><link>http://www.emadibrahim.com/2008/05/12/dynamically-build-linq-queries-using-reflection/#comment-20043662</link><description>Honestly, it has been so long since I posted this and I can't remember but&lt;br&gt;if you do find, please come back and let us know.  It will help future&lt;br&gt;readers.&lt;br&gt;Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Wed, 14 Oct 2009 10:20:26 -0000</pubDate></item><item><title>Re: The Best JavaScript Library | Emad Ibrahim</title><link>http://www.emadibrahim.com/2008/08/10/the-best-javascript-library/#comment-20005076</link><description>jquery, dojo, and prototype also have free hosting of the javascript libraries through a cdn (content delivery network for faster speed).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeff</dc:creator><pubDate>Tue, 13 Oct 2009 19:58:00 -0000</pubDate></item><item><title>Re: Dynamically Build LINQ Queries Using Reflection</title><link>http://www.emadibrahim.com/2008/05/12/dynamically-build-linq-queries-using-reflection/#comment-19919535</link><description>Nice article.  Quick question:  if i want to pass the results of the query which is in data access layer to business then to UI, what would be the return type?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kashifpervaiz</dc:creator><pubDate>Mon, 12 Oct 2009 15:19:16 -0000</pubDate></item><item><title>Re: Yonkly - Open Source Twitter</title><link>http://www.emadibrahim.com/2008/04/11/yonkly-open-source-twitter/#comment-19457785</link><description>nice work man! i just wish it was in php : (&lt;br&gt;&lt;br&gt;thanks for sharing</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Got a big Idea</dc:creator><pubDate>Wed, 07 Oct 2009 17:35:50 -0000</pubDate></item><item><title>Re: ASP.NET MVC &amp;#038; TDD Free Book Chapter</title><link>http://www.emadibrahim.com/2009/08/18/asp-net-mvc-tdd-free-book-chapter/#comment-16303277</link><description>Just picked this up last night and got through the first few chapters.  Looks like a great read, moves pretty fast, which is a good thing to me.  I'm not sure I'd recommend to anyone looking to get into TDD for the first time, but maybe once I get further into it.&lt;br&gt;&lt;br&gt;Just what I was waiting for though, just decided to get back to TDD and starting on &lt;a href="http://asp.net" rel="nofollow"&gt;asp.net&lt;/a&gt; mvc!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Klinker</dc:creator><pubDate>Thu, 10 Sep 2009 10:09:45 -0000</pubDate></item><item><title>Re: ASP.NET MVC &amp;#038; TDD Free Book Chapter</title><link>http://www.emadibrahim.com/2009/08/18/asp-net-mvc-tdd-free-book-chapter/#comment-15119035</link><description>Thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Thu, 20 Aug 2009 05:10:32 -0000</pubDate></item><item><title>Re: ASP.NET MVC &amp;#038; TDD Free Book Chapter</title><link>http://www.emadibrahim.com/2009/08/18/asp-net-mvc-tdd-free-book-chapter/#comment-15047804</link><description>Congrats Emad! Just pre-ordered my copy and look forward to reading it. Keep up the good work.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mac Alnakari</dc:creator><pubDate>Wed, 19 Aug 2009 02:46:04 -0000</pubDate></item><item><title>Re: The Best JavaScript Library | Emad Ibrahim</title><link>http://www.emadibrahim.com/2008/08/10/the-best-javascript-library/#comment-14703327</link><description>hi ,&lt;br&gt;&lt;br&gt;   My point of view JQUERY is the best javascript library for the dynamic website. The jquery has syntax ,easy to learn and good manual.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rkssaravanan12</dc:creator><pubDate>Wed, 12 Aug 2009 05:09:00 -0000</pubDate></item><item><title>Re: Startup &amp;ndash; ASP.NET MVC, Cloud Scale &amp;amp; Deployment</title><link>http://www.emadibrahim.com/2009/08/05/startup-asp-net-mvc-cloud-scale-deployment/#comment-14422288</link><description>Thanks for the article. It is great.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">geochatz</dc:creator><pubDate>Fri, 07 Aug 2009 07:05:20 -0000</pubDate></item><item><title>Re: Startup &amp;ndash; ASP.NET MVC, Cloud Scale &amp;amp; Deployment</title><link>http://www.emadibrahim.com/2009/08/05/startup-asp-net-mvc-cloud-scale-deployment/#comment-14340476</link><description>Great question.  I don't have a lot of experience with db redundancy but I&lt;br&gt;do like the idea of setting up a virtual db server and cluster it with the&lt;br&gt;real server.  That would be a nice safety measure.&lt;br&gt;My understanding is that SQL Server clustering is super easy to setup but&lt;br&gt;that's based of Microsoft presentations, marketing materials and demos :)&lt;br&gt;&lt;br&gt;I didn't talk about my backup strategy.  My database is backed up everyday&lt;br&gt;remotely to AWS S3 storage.  My source code is also backed up to AWS and is&lt;br&gt;also in source control.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Thu, 06 Aug 2009 09:35:15 -0000</pubDate></item><item><title>Re: Startup &amp;ndash; ASP.NET MVC, Cloud Scale &amp;amp; Deployment</title><link>http://www.emadibrahim.com/2009/08/05/startup-asp-net-mvc-cloud-scale-deployment/#comment-14013761</link><description>Is the next step the redundancy of the DB server (maybe a virtual instance only in case of) ?&lt;br&gt;Do you have any experience on that part (DB redundancy) on the windows platform ?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ber</dc:creator><pubDate>Wed, 05 Aug 2009 21:50:44 -0000</pubDate></item><item><title>Re: Startup &amp;ndash; ASP.NET MVC, Cloud Scale &amp;amp; Deployment</title><link>http://www.emadibrahim.com/2009/08/05/startup-asp-net-mvc-cloud-scale-deployment/#comment-13999757</link><description>I would like to thank Emad Ibrahim for his time and communication about his experience with &lt;a href="http://www.GoGrid.com" rel="nofollow"&gt;www.GoGrid.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;If you would like to test GoGrid's service we can offer you a free trial in the form of a $100 free credit.&lt;br&gt;&lt;br&gt;Please feel free to use my promo code GGRF for the $100.00 credit. &lt;br&gt;&lt;br&gt;Here is the GGRF Web Page Link, just click on it for the $100: &lt;br&gt;&lt;br&gt;&lt;a href="http://www.gogrid.com/pricing/index.php?promocode=GGRF" rel="nofollow"&gt;http://www.gogrid.com/pricing/index.php?promoco...&lt;/a&gt; &lt;br&gt;&lt;br&gt;With using this Promo Code GGRF, I am assigned as your account manager, so you receive professional, immediate attention.&lt;br&gt;&lt;br&gt;Please contact me with your questions, and comments,&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;&lt;br&gt;Richard Fox&lt;br&gt;&lt;a href="mailto:rfox@gogrid.com" rel="nofollow"&gt;rfox@gogrid.com&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RichardFox</dc:creator><pubDate>Wed, 05 Aug 2009 17:23:07 -0000</pubDate></item><item><title>Re: Testing Web App With Selenium, Explorer and .NET</title><link>http://www.emadibrahim.com/2009/01/19/testing-web-app-with-selenium-explorer-and-net/#comment-13494402</link><description>I do as your guide, however, my Sharpdeveloper response that "project is configured as dll and no execution command is specified." Pls help me, tks a lot.&lt;br&gt;haiintel</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hai</dc:creator><pubDate>Tue, 28 Jul 2009 23:15:37 -0000</pubDate></item><item><title>Re: The Best JavaScript Library | Emad Ibrahim</title><link>http://www.emadibrahim.com/2008/08/10/the-best-javascript-library/#comment-13441406</link><description>Nevertheless, you can hotlink jquery from google CDN directly and use it in your applications.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shady</dc:creator><pubDate>Tue, 28 Jul 2009 07:48:51 -0000</pubDate></item><item><title>Re: Shortening URLs Using TinyUrl API in .net</title><link>http://www.emadibrahim.com/2008/04/15/shortening-urls-using-tinyurl-api-in-net/#comment-13403102</link><description>Var is a new C#  3.0, more info at &lt;a href="http://msdn.microsoft.com/en-us/library/bb383973.aspx" rel="nofollow"&gt;http://msdn.microsoft.com/en-us/library/bb38397...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Mon, 27 Jul 2009 12:39:07 -0000</pubDate></item><item><title>Re: Themes and ASP.NET MVC</title><link>http://www.emadibrahim.com/2008/10/02/themes-and-aspnet-mvc/#comment-13403031</link><description>This is a custom class that I wrote that simply returns the path to the css file based on the current theme.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Mon, 27 Jul 2009 12:37:41 -0000</pubDate></item><item><title>Re: &amp;#8220;I Quit&amp;#8221; 1 Year Anniversary</title><link>http://www.emadibrahim.com/2009/03/09/i-quit-1-year-anniversary/#comment-12965553</link><description>His name is Derek and his site is &lt;a href="http://www.dbrigham.com/" rel="nofollow"&gt;http://www.dbrigham.com/&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Mon, 20 Jul 2009 14:27:35 -0000</pubDate></item><item><title>Re: &amp;#8220;I Quit&amp;#8221; 1 Year Anniversary</title><link>http://www.emadibrahim.com/2009/03/09/i-quit-1-year-anniversary/#comment-12935983</link><description>Hi emad, great post and progress. Good luck for your future projects. I like the ui design of yonkly. Do you mind telling me the web designer contact details. I am working on a couple of web apps and am looking for a web designer.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">neosyne</dc:creator><pubDate>Sun, 19 Jul 2009 22:50:20 -0000</pubDate></item><item><title>Re: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.</title><link>http://www.emadibrahim.com/2007/06/08/failed-to-generate-a-user-instance-of-sql-server-due-to-a-failure-in-starting-the-process-for-the-user-instance-the-connection-will-be-closed/#comment-12679880</link><description>Excellent, thanks.  Have seen many posts on other sites which didn't solve the problem because they missed out the ..\local settings\ folder in the path.  :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Richie</dc:creator><pubDate>Wed, 15 Jul 2009 05:35:03 -0000</pubDate></item></channel></rss>