<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MohamedG's Log</title><link>http://blogs.msdn.com/b/mohamedg/</link><description>TW9oYW1lZCBFbC1HZWlzaA==</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Running a SQL Statement on all Databases</title><link>http://blogs.msdn.com/b/mohamedg/archive/2013/01/17/running-a-sql-statement-on-all-databases.aspx</link><pubDate>Thu, 17 Jan 2013 23:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10386071</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10386071</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2013/01/17/running-a-sql-statement-on-all-databases.aspx#comments</comments><description>exec sp_MsForEachDB 'SELECT "?", 1' 
 
 The ? will be replaced by the current database name. To run a query that references a table, you need to make sure that the table exists first, as this query will run on system databases as well....(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2013/01/17/running-a-sql-statement-on-all-databases.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10386071" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/SQL/">SQL</category></item><item><title>Adding HTTP Headers to WCF Calls</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/12/13/adding-http-headers-to-wcf-calls.aspx</link><pubDate>Fri, 14 Dec 2012 07:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10378047</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10378047</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/12/13/adding-http-headers-to-wcf-calls.aspx#comments</comments><description>To add HTTP headers, request messages have to be intercepted before they are sent to the server. This can be done by implementing the IClientMessageInspector.BeforeSendRequest method: 
 /// &amp;lt;summary&amp;gt; 
 /// Represents a message inspector object...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/12/13/adding-http-headers-to-wcf-calls.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10378047" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/WCF/">WCF</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+8/">Windows 8</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Runtime/">Windows Runtime</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Store+Apps/">Windows Store Apps</category></item><item><title>Extending XElement to Match Child Elements by LocalName</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/26/extending-xelement-to-match-child-elements-by-localname.aspx</link><pubDate>Fri, 26 Oct 2012 08:14:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10362961</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10362961</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/26/extending-xelement-to-match-child-elements-by-localname.aspx#comments</comments><description>If you want to ignore the child elements’ namespaces, and match by local name only, you can do something similar to the following: /// &amp;lt;summary&amp;gt; 
 /// Represents an extension for &amp;lt;see cref=&amp;quot;XElement&amp;quot;/&amp;gt;. 
 /// &amp;lt;/summary&amp;gt; 
 internal...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/26/extending-xelement-to-match-child-elements-by-localname.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10362961" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category></item><item><title>Using Fiddler on Local Windows 8 Machine</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/23/using-fiddler-on-local-windows-8-machine.aspx</link><pubDate>Wed, 24 Oct 2012 04:32:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10362246</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10362246</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/23/using-fiddler-on-local-windows-8-machine.aspx#comments</comments><description>If you used Fiddler before, you would know that it doesn’t work out of the box on localhost. The instructions on how to hook it up didn’t work for me trying to debug traffic of a .Net app on Windows 8. After applying those steps, I had tried 127.0.0.1...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/23/using-fiddler-on-local-windows-8-machine.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10362246" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Debugging/">Debugging</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+8/">Windows 8</category></item><item><title>Reflector Visual Studio Extension - Enable Debugging</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/23/reflector-visual-studio-extension-enable-debugging.aspx</link><pubDate>Tue, 23 Oct 2012 07:50:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10361970</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10361970</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/23/reflector-visual-studio-extension-enable-debugging.aspx#comments</comments><description>I’ve been using the standalone Reflector.exe for so many years now, and recently I’ve been using JustDecompile too. They have different accuracy levels and different set of distinguishing features, but the one I use in VS is Reflector. I was excited about...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/23/reflector-visual-studio-extension-enable-debugging.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10361970" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Debugging/">Debugging</category></item><item><title>Adding Custom SOAP Headers in WCF</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/adding-custom-soap-headers-in-wcf.aspx</link><pubDate>Mon, 22 Oct 2012 04:10:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10361578</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10361578</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/adding-custom-soap-headers-in-wcf.aspx#comments</comments><description>First, you need to decide whether to create the custom header using the MessageHeader.CreateHeader method, or by extending the abstract MessageHeader class. Under the hood, the CreateHeader method returns an instance of an internal class called XmlObjectSerializerHeader...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/adding-custom-soap-headers-in-wcf.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10361578" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/WCF/">WCF</category></item><item><title>Overriding an Abstract Property vs. Passing a Parameter</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/overriding-an-abstract-property-vs-passing-a-parameter.aspx</link><pubDate>Mon, 22 Oct 2012 02:36:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10361568</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10361568</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/overriding-an-abstract-property-vs-passing-a-parameter.aspx#comments</comments><description>An abstract class may require a value to be passed through the constructor like the following example: public abstract class Node
{
 private readonly Uri _uri;

 protected Node( string address, string relativePath)
 {
 _uri = new Uri(Path.Combine(address...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/overriding-an-abstract-property-vs-passing-a-parameter.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10361568" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Design/">Design</category></item><item><title>Changing the Foreground Color of an Indeterminate ProgressBar</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/changing-the-foreground-color-of-an-indeterminate-progressbar.aspx</link><pubDate>Sun, 21 Oct 2012 09:01:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10361481</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10361481</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/changing-the-foreground-color-of-an-indeterminate-progressbar.aspx#comments</comments><description>You would think that the following XAML changes the indeterminate progress bar’s foreground color: &amp;lt; ProgressBar IsIndeterminate =&amp;quot;True&amp;quot; Foreground =&amp;quot;Aquamarine&amp;quot; /&amp;gt; 

 Unfortunately, that doesn’t work. You will need to override...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/21/changing-the-foreground-color-of-an-indeterminate-progressbar.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10361481" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+8/">Windows 8</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Store+Apps/">Windows Store Apps</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/XAML/">XAML</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/UI/">UI</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Design/">Design</category></item><item><title>Making HTML Elements Scrollable</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/20/making-html-elements-scrollable.aspx</link><pubDate>Sun, 21 Oct 2012 04:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10361580</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10361580</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/20/making-html-elements-scrollable.aspx#comments</comments><description>I&amp;rsquo;ve been styling my blog recently to make it more Win8-like (thank you for noticing!). I created some custom CSS file, but I ran into a problem with code. I use wide screens at work and at home, so I tend to break the guidelines and write more...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/20/making-html-elements-scrollable.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10361580" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/CSS/">CSS</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Design/">Design</category></item><item><title>Windows Store App Settings Flyout</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/19/windows-store-app-settings-flyout.aspx</link><pubDate>Fri, 19 Oct 2012 10:31:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10361123</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10361123</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/19/windows-store-app-settings-flyout.aspx#comments</comments><description>Prerequisites Please read the following articles first: Guidelines for app settings (Windows Store apps) Quickstart: Adding app settings using Windows Runtime In this post, I’ll be walking through how to create a custom UI for settings (required for C#...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/19/windows-store-app-settings-flyout.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10361123" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/i18n/">i18n</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+8/">Windows 8</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Runtime/">Windows Runtime</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Store+Apps/">Windows Store Apps</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/UI/">UI</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/UX/">UX</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Design/">Design</category></item><item><title>Margin in XAML vs. CSS</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/16/margin-in-xaml-vs-css.aspx</link><pubDate>Tue, 16 Oct 2012 07:36:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10359913</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10359913</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/16/margin-in-xaml-vs-css.aspx#comments</comments><description>According to W3C : “The 'margin' property is a shorthand property for setting 'margin-top', 'margin-right', 'margin-bottom', and 'margin-left' at the same place in the style sheet” respectively. Here’s the example W3C used to illustrate the order of properties...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/16/margin-in-xaml-vs-css.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10359913" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Runtime/">Windows Runtime</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Store+Apps/">Windows Store Apps</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/XAML/">XAML</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/CSS/">CSS</category></item><item><title>DefaultNetworkCredentials in Windows Store Apps</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/13/how-to-use-credentialcache-defaultnetworkcredentials-with-windows-store-apps.aspx</link><pubDate>Sat, 13 Oct 2012 11:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10359349</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10359349</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/13/how-to-use-credentialcache-defaultnetworkcredentials-with-windows-store-apps.aspx#comments</comments><description>Disclaimer: I'm still getting acquainted with Windows Store Apps, so I could be totally wrong; proceed with caution. 
 It's been a while since I last wrote a blog post, and it's 4 AM right now, this may give you an idea why I had to get this out. Hopefully...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/13/how-to-use-credentialcache-defaultnetworkcredentials-with-windows-store-apps.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10359349" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Security/">Security</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/WCF/">WCF</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Debugging/">Debugging</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+8/">Windows 8</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Runtime/">Windows Runtime</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Store+Apps/">Windows Store Apps</category></item><item><title>Useful Segoe UI Symbols</title><link>http://blogs.msdn.com/b/mohamedg/archive/2012/10/12/useful-segoe-ui-symbols.aspx</link><pubDate>Fri, 12 Oct 2012 09:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10359945</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=10359945</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2012/10/12/useful-segoe-ui-symbols.aspx#comments</comments><description>I compiled a list of symbols that can be used to copy Windows 8&amp;rsquo;s style: 
 Note: I can see all of them in IE 10 on Windows 8. 
 
 
 
 
 
 
 
 U+E000 
  
 
 
 U+E001 
  
 
 
 U+E002 
  
 
 
 U+E003 
  
 
 
 U+E004 
...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2012/10/12/useful-segoe-ui-symbols.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10359945" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+8/">Windows 8</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Runtime/">Windows Runtime</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Windows+Store+Apps/">Windows Store Apps</category></item><item><title>Visual GCRoot via DGML</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/03/02/visual-gcroot-via-dgml.aspx</link><pubDate>Tue, 02 Mar 2010 11:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9971433</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>16</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9971433</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/03/02/visual-gcroot-via-dgml.aspx#comments</comments><description>I was inspired by Lovett 's post about Visualizing Runtime Object Graphs to create my first debugger extension that takes the output of !gcroot and creates a graph that one can interact with easily in Visual Studio 2010. So, what does my extension do...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/03/02/visual-gcroot-via-dgml.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9971433" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-09-97-14-33/vgcroot.zip" length="60229" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Debugging/">Debugging</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/DGML/">DGML</category></item><item><title>Tiny C++ Unit Test Framework</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/02/28/tiny-c-unit-test-framework.aspx</link><pubDate>Sun, 28 Feb 2010 11:56:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9970486</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9970486</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/02/28/tiny-c-unit-test-framework.aspx#comments</comments><description>I was working on a small project for personal use that I wrote in C++ and I wanted to test it. Since it’s a tiny project, I didn’t bother installing a well-known test framework that ships with a plethora of features. I just wanted a simple test runner...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/02/28/tiny-c-unit-test-framework.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9970486" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Testing/">Testing</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/C_2B002B00_/">C++</category></item><item><title>ExtensionDataObject is not Marked as Serializable</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/02/15/extensiondataobject-is-not-marked-as-serializable.aspx</link><pubDate>Mon, 15 Feb 2010 09:29:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963487</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9963487</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/02/15/extensiondataobject-is-not-marked-as-serializable.aspx#comments</comments><description>If you use Data Contracts , then probably your classes implement the IExtensibleDataObject interface to allow (de)serialization of different versions of the data contract. I won’t go into details about the use of ExtensionDataObject , the type of the...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/02/15/extensiondataobject-is-not-marked-as-serializable.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963487" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category></item><item><title>How to: Create Interfaces with Static Methods via IL?</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/02/07/how-to-create-interfaces-with-static-methods-via-il.aspx</link><pubDate>Sun, 07 Feb 2010 22:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9959476</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9959476</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/02/07/how-to-create-interfaces-with-static-methods-via-il.aspx#comments</comments><description>If you try to add a static member to an interface, you will get the following error: The modifier 'static' is not valid for this item 
 In this case, you should create an abstract class instead of an interface, because interfaces are contracts and should...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/02/07/how-to-create-interfaces-with-static-methods-via-il.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9959476" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category></item><item><title>On Testability</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/02/07/on-testability.aspx</link><pubDate>Sun, 07 Feb 2010 20:58:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9959463</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9959463</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/02/07/on-testability.aspx#comments</comments><description>Acceptance testing is basically black-box testing done by the QA team to sign off. It’s very important to have clear pre-defined goals for acceptance testing as early as possible during the planning phase. In fact, the requirements specifications should...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/02/07/on-testability.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9959463" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Testing/">Testing</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category></item><item><title>How to: Use Locks and Prevent Deadlocks?</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/01/29/how-to-use-locks-and-prevent-deadlocks.aspx</link><pubDate>Sat, 30 Jan 2010 07:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9955671</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9955671</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/01/29/how-to-use-locks-and-prevent-deadlocks.aspx#comments</comments><description>Multi-threading is used in almost all real-life applications. I summed up my thoughts on use of locks and deadlock prevention in the following related topics: 
 Thread Safety 
 From a thread safety perspective, resources (memory) is classified as either...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/01/29/how-to-use-locks-and-prevent-deadlocks.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9955671" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Concurrency/">Concurrency</category></item><item><title>How to: Debug Deadlocks Using Windbg?</title><link>http://blogs.msdn.com/b/mohamedg/archive/2010/01/28/how-to-debug-deadlocks-using-windbg.aspx</link><pubDate>Fri, 29 Jan 2010 06:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9955161</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9955161</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2010/01/28/how-to-debug-deadlocks-using-windbg.aspx#comments</comments><description>Attach the debugger to the process 
 Load SOS 
 ~* e !clrstack to view the CLR stack of all the threads and where they are 
 Look for System.Threading.Monitor.Enter(System.Object) in the top frames 
 Load SOSEX.dll from http://www.stevestechspot.com...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2010/01/28/how-to-debug-deadlocks-using-windbg.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9955161" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Testing/">Testing</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/How+To/">How To</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Debugging/">Debugging</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Concurrency/">Concurrency</category></item><item><title>Cartoon #8: Subclass</title><link>http://blogs.msdn.com/b/mohamedg/archive/2009/11/24/cartoon-8-subclass.aspx</link><pubDate>Tue, 24 Nov 2009 08:49:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9927818</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9927818</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2009/11/24/cartoon-8-subclass.aspx#comments</comments><description>Inheritance (C# Programming Guide)...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2009/11/24/cartoon-8-subclass.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9927818" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Cartoon/">Cartoon</category></item><item><title>WCF Service Throttling</title><link>http://blogs.msdn.com/b/mohamedg/archive/2009/11/08/wcf-service-throttling.aspx</link><pubDate>Sun, 08 Nov 2009 07:03:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9919187</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9919187</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2009/11/08/wcf-service-throttling.aspx#comments</comments><description>Throttling, generally speaking, is tricky. Get the limits low and you may be prone to DoS and clients timing out trying to connect to your service in vain; Get them high and you may end up with an overloaded service that’s eating up machine resources...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2009/11/08/wcf-service-throttling.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9919187" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/WCF/">WCF</category></item><item><title>VSTS 2010 and .Net 4.0 Beta 2</title><link>http://blogs.msdn.com/b/mohamedg/archive/2009/10/24/vsts-2010-and-net-4-0-beta-2.aspx</link><pubDate>Sun, 25 Oct 2009 00:20:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9912519</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9912519</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2009/10/24/vsts-2010-and-net-4-0-beta-2.aspx#comments</comments><description>Beta 2 is here , give it a try and let us know what do you think....(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2009/10/24/vsts-2010-and-net-4-0-beta-2.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9912519" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/VSTF/">VSTF</category></item><item><title>C++: Calling a Virtual Function From a Constructor is not Polymorphic</title><link>http://blogs.msdn.com/b/mohamedg/archive/2009/09/05/c-calling-a-virtual-function-from-a-constructor-is-not-polymorphic.aspx</link><pubDate>Sat, 05 Sep 2009 16:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9891801</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9891801</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2009/09/05/c-calling-a-virtual-function-from-a-constructor-is-not-polymorphic.aspx#comments</comments><description>In C++, if you call a virtual function form a constructor, it won’t be polymorphic, meaning that the following code won’t behave as you may have expected: class Foo { public : Foo() { whoAmI() ; } virtual void whoAmI() { cout &amp;lt;&amp;lt; "Foo::whoAmI()"...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2009/09/05/c-calling-a-virtual-function-from-a-constructor-is-not-polymorphic.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9891801" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Development/">Development</category><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/C_2B002B00_/">C++</category></item><item><title>Selection of Majority in O(n)</title><link>http://blogs.msdn.com/b/mohamedg/archive/2009/08/16/selection-of-majority-in-o-n.aspx</link><pubDate>Sun, 16 Aug 2009 08:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9871394</guid><dc:creator>Mohamed Mahmoud El-Geish</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/mohamedg/rsscomments.aspx?WeblogPostID=9871394</wfw:commentRss><comments>http://blogs.msdn.com/b/mohamedg/archive/2009/08/16/selection-of-majority-in-o-n.aspx#comments</comments><description>Selection algorithms are very useful in many instances, like finding the majority. Given an array of size n that contains a majority item (an item that's repeated more than n/2 times), we can find that item in O(n). Basically, we can consider it as a...(&lt;a href="http://blogs.msdn.com/b/mohamedg/archive/2009/08/16/selection-of-majority-in-o-n.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9871394" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/mohamedg/archive/tags/Algorithms/">Algorithms</category></item></channel></rss>