• Testing

    Posted on January 19th, 2009

    Written by Emad Ibrahim

    Tags

    , ,

    Testing Web Apps With Selenium, Explorer and .NET

    Here are the steps to run your Selenium tests against Internet Explorer. Create the tests Install Selenium IDE from http://seleniumhq.org Record your tests in Firefox using the Selenium IDE Click File > Create New Test Click the record button and create your test Click the record button to stop the test Save your test Click [...]

  • ASP.NET MVC, Programming

    Posted on October 2nd, 2008

    Written by Emad Ibrahim

    Tags

    , , , ,

    Themes and ASP.NET MVC

    I wanted to easily add theme support to yonkly, so that others can install it and modify its look and feel as they please.  I also wanted it to be as easy as installing a theme in wordpress. I created a themes folder under the content folder Then I referenced my css file in the [...]

  • Programming

    Posted on July 10th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , , ,

    Database Schema Compare & Upgrade

    I spent a few days playing with Ruby on Rails a while back.  During the learning experience, there was one particular feature that I really liked.  It was the database migration scripts that get automatically generated for you.  I always wished I had something like this in the windows (asp.net) world.  It turns out there [...]

  • Unit Test Private Methods in Visual Studio

    I am working on a feature that will let me import twitter messages to yonkly and wanted to write a test for it.  The method is private and I couldn’t get the unit test to see it.  I also didn’t want to use the private accessor class generate by Visual Studio because I was mocking [...]

  • Uncategorized

    Posted on April 15th, 2008

    Written by Emad Ibrahim

    Tags

    , , ,

    Shortening URLs Using TinyUrl API in .net

    Here is a quick method to shorten URLs using the TinyUrl API in .net – C# and VB C# public static string MakeTinyUrl(string Url) { try { if (Url.Length <= 30) { return Url; } if (!Url.ToLower().StartsWith(“http”) && !Url.ToLower().StartsWith(“ftp”)) { Url = “http://” + Url; } var request = WebRequest.Create(“http://tinyurl.com/api-create.php?url=” + Url); var res = [...]

  • Older Posts Yeah! There are more posts, check them out.