Sign In
Mohamed Mahmoud (El-Geish)
TW9oYW1lZCBFbC1HZWlzaA==
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Algorithms
C++
Cartoon
Concurrency
Debugging
Development
DGML
How To
i18n
Metrics
Security
Source Control
SQL
Testing
VSTF
WCF
Archive
Archives
March 2010
(1)
February 2010
(4)
January 2010
(2)
November 2009
(2)
October 2009
(1)
September 2009
(1)
August 2009
(2)
July 2009
(1)
May 2009
(1)
April 2009
(19)
March 2009
(40)
February 2009
(3)
August 2008
(1)
July 2008
(2)
June 2008
(2)
May 2008
(1)
April 2008
(2)
March 2008
(3)
February 2008
(2)
January 2008
(6)
December 2007
(5)
November 2007
(1)
MSDN Blogs
>
Mohamed Mahmoud (El-Geish)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Mohamed Mahmoud (El-Geish)
Visual GCRoot via DGML
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
14
Comments
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...
Mohamed Mahmoud (El-Geish)
Tiny C++ Unit Test Framework
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
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...
Mohamed Mahmoud (El-Geish)
ExtensionDataObject is not Marked as Serializable
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
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...
Mohamed Mahmoud (El-Geish)
How to: Create Interfaces with Static Methods via IL?
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
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...
Mohamed Mahmoud (El-Geish)
On Testability
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
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...
Mohamed Mahmoud (El-Geish)
How to: Use Locks and Prevent Deadlocks?
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
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 thread...
Mohamed Mahmoud (El-Geish)
How to: Debug Deadlocks Using Windbg?
Posted
over 2 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
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/SOSEXUpdatedV11Available...
Mohamed Mahmoud (El-Geish)
Cartoon #8: Subclass
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
Inheritance (C# Programming Guide)
Mohamed Mahmoud (El-Geish)
WCF Service Throttling
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
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...
Mohamed Mahmoud (El-Geish)
VSTS 2010 and .Net 4.0 Beta 2
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
Beta 2 is here , give it a try and let us know what do you think.
Mohamed Mahmoud (El-Geish)
C++: Calling a Virtual Function From a Constructor is not Polymorphic
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
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 << "Foo::whoAmI()"...
Mohamed Mahmoud (El-Geish)
Selection of Majority in O(n)
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
4
Comments
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...
Mohamed Mahmoud (El-Geish)
Passing C++ Arrays by Value
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
5
Comments
Just in case you needed to, you can wrap an array into a struct/class and pass it by value to a function: template < typename T, int N> struct array { T value[N]; T & operator []( int i) { return value[i]; } }; template < typename T, int...
Mohamed Mahmoud (El-Geish)
Proxy Design Pattern
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
0
Comments
One of the useful design patterns is the proxy design pattern, it allows you to control access to an object via a proxy and also saves you the startup and cleanup overheads as you instantiate only what you use upon request (lazy initialization). Take...
Mohamed Mahmoud (El-Geish)
Test Patterns
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
Just like design patterns, the use of test patterns will make your life easier. A lot of the common testing methods can be reused. Along with the benefits of reuse, using patterns makes it easier to explain to others what you are going to do in a word...
Mohamed Mahmoud (El-Geish)
How to: Query All Labels on a Folder Recursively?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
3
Comments
To do this, you can't call query labels with a wildcard character, you need to do the following: - Get all items blow $/Dir1 using GetItems - Loop through them calling QueryLabels on each one. Here's a code snippet: VersionControlServer sc = tfs.GetService<...
Mohamed Mahmoud (El-Geish)
How to: Move a Shelveset to Another Branch?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
8
Comments
A very handy power tool is tfpt unshelve. It’s capable of migrating a shelveset from a branch to another, it does that by performing a baseless merge, so you will need to resolve the conflicts produced. The syntax of the command looks like the following...
Mohamed Mahmoud (El-Geish)
How to: Receive Daily E-mail Notifications?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
4
Comments
You can receive a daily email that has a compiled list of notifications, but you will need to subscribe programmatically: IEventService eventService = ( IEventService ) new TeamFoundationServer ( "http://tfs:8080" ).GetService( typeof ( IEventService...
Mohamed Mahmoud (El-Geish)
Cartoon #7: Protected
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
protected (C# Reference)
Mohamed Mahmoud (El-Geish)
How to: Diff Shelved Files?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
You can run: tf diff /shelveset:shelvesetName;DOMAIN\ownerUserName Please note that this will diff the shelved changes against the unmodified version, not necessarily the latest version, just like what the you get from clicking compare in the shelveset...
Mohamed Mahmoud (El-Geish)
How to: List Changesets Between Two Labeled Versions?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
You can achieve that behavior by running: tf hist rootItemSpec /r /version:LstartLabel~LendLabel Here’s my scenario: tf hist /i File.cs Changeset Change User Date Comment --------- -------------------------- ------------- ---------- -------- 65 edit mohamedg...
Mohamed Mahmoud (El-Geish)
How to: View History of an Item Across Branches?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
You can use tfpt history /followbranches to follow the history of an item across branches. We are looking into supporting this in the history dialog in the next version . You can see which versions are ported over during the merge operation if you use...
Mohamed Mahmoud (El-Geish)
How to: Switch Between TFS and VSS in Old IDEs?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
If you have an IDE that uses the MSSCCI provider, like VS 2003 or VB6, and you want to switch between TFS and VSS because you have projects on both systems, you will have to change the provider every time you switch. The thing is that setting is stored...
Mohamed Mahmoud (El-Geish)
How to: Force a Check-in to be Linked to Work Items?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
1
Comments
Well, the answer to this one is pretty easy and straight-forward. You can accomplish that using a check-in policy. For example, to force users to link check-ins to work items that are not closed, you may do the following: Add a Team Query to the desired...
Mohamed Mahmoud (El-Geish)
How to: Change TFS Temp Folder?
Posted
over 3 years ago
by
Mohamed Mahmoud El-Geish
2
Comments
TFS uses a temp folder to get files that you view. The location of that folder is %TMP%\TFSTemp. It’s not configurable via TFS, tf.exe, or Visual Studio. However, you can just set the TMP environment variable. Simply: set TMP=D:\Temp set TEMP=%TMP% md...
Page 1 of 5 (102 items)
1
2
3
4
5