<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5893592225015490763</id><updated>2024-08-31T05:56:49.004-07:00</updated><category term=".Net"/><category term="LINQ"/><category term=".Net 3.5"/><category term=".Net Encoding"/><category term="Active Directory"/><category term="DSL"/><category term="Fluent Interfaces"/><category term="Patterns"/><category term="Unit Tests"/><category term="WCF"/><category term="WMI"/><category term="WSE"/><category term="unity"/><title type='text'>Mik&#39;s Tech Spec</title><subtitle type='html'>Fried thoughts with a little of pepper</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-2116530349273141890</id><published>2013-01-25T07:48:00.000-08:00</published><updated>2013-01-25T07:48:15.788-08:00</updated><title type='text'>Useful Article on WinDbg and Process Explorer Tools</title><content type='html'>This &lt;a href=&quot;http://blogs.msdn.com/b/msdnts/archive/2006/11/24/how-to-debug-application-crash-hang-in-production-environment.aspx&quot;&gt;article &lt;/a&gt;may help if you find yourself constantly running WinDbg and Process Explorer in order to try to find any information about the problem with your application that leaves no traces behind.</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/2116530349273141890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/2116530349273141890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2116530349273141890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2116530349273141890'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2013/01/useful-article-on-windbg-and-process.html' title='Useful Article on WinDbg and Process Explorer Tools'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-4106235973992052897</id><published>2011-08-01T06:47:00.000-07:00</published><updated>2011-08-01T06:47:27.895-07:00</updated><title type='text'>Click OK?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR9H3f01RuVGjni6bLjxWD5If8OiUsskwWydzJADPc09EIvhBr9ZeQ5tHbP_gVsrWHvUun_SXETyVQoqx66vDzlyag89_zdKTZxnBvU309IUao0W-7xWktg-yv7YSxss1dbNjriTe3V7s4/s1600/clickok.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR9H3f01RuVGjni6bLjxWD5If8OiUsskwWydzJADPc09EIvhBr9ZeQ5tHbP_gVsrWHvUun_SXETyVQoqx66vDzlyag89_zdKTZxnBvU309IUao0W-7xWktg-yv7YSxss1dbNjriTe3V7s4/s400/clickok.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/4106235973992052897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/4106235973992052897' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/4106235973992052897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/4106235973992052897'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2011/08/click-ok.html' title='Click OK?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR9H3f01RuVGjni6bLjxWD5If8OiUsskwWydzJADPc09EIvhBr9ZeQ5tHbP_gVsrWHvUun_SXETyVQoqx66vDzlyag89_zdKTZxnBvU309IUao0W-7xWktg-yv7YSxss1dbNjriTe3V7s4/s72-c/clickok.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-2367338895464730143</id><published>2011-07-29T12:29:00.001-07:00</published><updated>2011-07-29T12:29:56.667-07:00</updated><title type='text'>The Only Fix I Would Like on the Programmers Keyboard</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcY18iCmwQDzmWK2cFpZGDo0cA1rZF4_ow2tWzonE6kuNNRNt_xHu3hCoo0uPpxvHt6hkEZmpEPqOz8SAbNlH0rZczv034D8AZhT0yBUl9PVXhHPW_NEJlckn1HkqnKwqARrOdV8xol2M9/s1600/keyboard_fix-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcY18iCmwQDzmWK2cFpZGDo0cA1rZF4_ow2tWzonE6kuNNRNt_xHu3hCoo0uPpxvHt6hkEZmpEPqOz8SAbNlH0rZczv034D8AZhT0yBUl9PVXhHPW_NEJlckn1HkqnKwqARrOdV8xol2M9/s400/keyboard_fix-1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/2367338895464730143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/2367338895464730143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2367338895464730143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2367338895464730143'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2011/07/only-fix-i-would-like-on-programmers.html' title='The Only Fix I Would Like on the Programmers Keyboard'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcY18iCmwQDzmWK2cFpZGDo0cA1rZF4_ow2tWzonE6kuNNRNt_xHu3hCoo0uPpxvHt6hkEZmpEPqOz8SAbNlH0rZczv034D8AZhT0yBUl9PVXhHPW_NEJlckn1HkqnKwqARrOdV8xol2M9/s72-c/keyboard_fix-1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-1312027147472499589</id><published>2011-07-29T11:56:00.001-07:00</published><updated>2011-07-29T11:56:53.176-07:00</updated><title type='text'>Quiz: How to align &quot;=&quot; symbols?</title><content type='html'>This is kind of a question that was sitting in my head for a while. Suppose you have this:&lt;br /&gt;
&lt;br /&gt;
I  too good.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;int i = 29;
var myString = &quot;somestring&quot;;
object context = new Context();
&lt;/pre&gt;&lt;br /&gt;
I would really like to see something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;... = 29;
... = &quot;somestring&quot;;
... = new Context();
&lt;/pre&gt;&lt;br /&gt;
Of course, you can use some&amp;nbsp;&lt;a href=&quot;http://mik-kardash.blogspot.com/2011/03/vs2010-trick-alignment-of-symbol.html&quot;&gt;boring&amp;nbsp;tool&lt;/a&gt; for this. But we have a winner, and it is so great so I decided to share it with you, my dear reader.&lt;br /&gt;
&lt;br /&gt;
The following example describes completely winner&#39;s approach:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;int _iiiiiiiii = 29;
var _myStrngSt = &quot;somestring&quot;;
object context = new Context();
&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKak4rd4C-hHdOIQZTV3X1MP9nTBmLXCa1KvO0p61BGjeExP2dvjOrLYSbyOGyK3YthiRl4RSArZAfYIP3A9iarumlWvkFeQvehte3kf9a_9_r6hCzW0eYa8tsKcBSY5fvwS4oZgAMWfa4/s400/wtf.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;371&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKak4rd4C-hHdOIQZTV3X1MP9nTBmLXCa1KvO0p61BGjeExP2dvjOrLYSbyOGyK3YthiRl4RSArZAfYIP3A9iarumlWvkFeQvehte3kf9a_9_r6hCzW0eYa8tsKcBSY5fvwS4oZgAMWfa4/s400/wtf.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/1312027147472499589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/1312027147472499589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/1312027147472499589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/1312027147472499589'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2011/07/quiz-how-to-align-symbols.html' title='Quiz: How to align &quot;=&quot; symbols?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKak4rd4C-hHdOIQZTV3X1MP9nTBmLXCa1KvO0p61BGjeExP2dvjOrLYSbyOGyK3YthiRl4RSArZAfYIP3A9iarumlWvkFeQvehte3kf9a_9_r6hCzW0eYa8tsKcBSY5fvwS4oZgAMWfa4/s72-c/wtf.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-5274750806951413888</id><published>2011-07-27T07:07:00.000-07:00</published><updated>2011-07-27T07:07:50.270-07:00</updated><title type='text'>Skype - You know you are wrong!</title><content type='html'>Today it gave me this error: &quot;Can&#39;t open Skype. You are already signed in on this computer. Please sign out and try again.&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC7_4F0ACkuHHRCGbZioqwMF6e2ygXHt7TTV5fXs8wTqb8l26mvfI_DDDXBcfWrM8nhfhCFBbV3IfjuA0elZ5uoOeQ5L7X-dYMtzPrLsvAbjct4rdGqOIw-gB2j4-FKZG6w4J_KowDwfXg/s1600/skype_is_wrong.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;326&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC7_4F0ACkuHHRCGbZioqwMF6e2ygXHt7TTV5fXs8wTqb8l26mvfI_DDDXBcfWrM8nhfhCFBbV3IfjuA0elZ5uoOeQ5L7X-dYMtzPrLsvAbjct4rdGqOIw-gB2j4-FKZG6w4J_KowDwfXg/s400/skype_is_wrong.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
It knows it is wrong. I know it is wrong. How did that appear in this mature product?</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/5274750806951413888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/5274750806951413888' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5274750806951413888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5274750806951413888'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2011/07/skype-you-know-you-are-wrong.html' title='Skype - You know you are wrong!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC7_4F0ACkuHHRCGbZioqwMF6e2ygXHt7TTV5fXs8wTqb8l26mvfI_DDDXBcfWrM8nhfhCFBbV3IfjuA0elZ5uoOeQ5L7X-dYMtzPrLsvAbjct4rdGqOIw-gB2j4-FKZG6w4J_KowDwfXg/s72-c/skype_is_wrong.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-2696796963097793175</id><published>2011-07-18T09:42:00.001-07:00</published><updated>2011-07-18T09:47:46.293-07:00</updated><title type='text'>RegExr: A Tool That Saved My Day</title><content type='html'>I am am obviously not a pro in regular expressions. However, I would like to write bug-free (to some extent) regular expressions fast. &lt;br /&gt;
&lt;br /&gt;
I found this tool: http://gskinner.com/RegExr/&lt;br /&gt;
&lt;br /&gt;
It has two advantages for me:&lt;br /&gt;
1. No need to install&lt;br /&gt;
2. Shows whether regular expression works immediately&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXOjO-fCQg-HjMvdEsQVOWK462oYtUUCO5w6bQqr-R1Za8iNC3Exmt5E4uV7A_2Gysn-D-lGQrNnmsbA8chxnOQgDGD75oX0oRUNtDh9UUTAYXIlOdUiRzfvHhdxUq9dje72TfEMIqSVG/s1600/regexr.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;436&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXOjO-fCQg-HjMvdEsQVOWK462oYtUUCO5w6bQqr-R1Za8iNC3Exmt5E4uV7A_2Gysn-D-lGQrNnmsbA8chxnOQgDGD75oX0oRUNtDh9UUTAYXIlOdUiRzfvHhdxUq9dje72TfEMIqSVG/s640/regexr.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
PS: I am not familiar with any other similar tools but I like this one for sure :)</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/2696796963097793175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/2696796963097793175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2696796963097793175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2696796963097793175'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2011/07/regexr-tool-that-saved-my-day.html' title='RegExr: A Tool That Saved My Day'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXOjO-fCQg-HjMvdEsQVOWK462oYtUUCO5w6bQqr-R1Za8iNC3Exmt5E4uV7A_2Gysn-D-lGQrNnmsbA8chxnOQgDGD75oX0oRUNtDh9UUTAYXIlOdUiRzfvHhdxUq9dje72TfEMIqSVG/s72-c/regexr.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-2474553344737967778</id><published>2011-03-25T07:55:00.001-07:00</published><updated>2011-03-25T07:56:51.295-07:00</updated><title type='text'>VS2010 Trick: Alignment of &quot;=&quot; symbol</title><content type='html'>If you need to align variables and equality symbols as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;var1     = 1;
varvar2  = 2;
varvarr2 = 3;
&lt;/pre&gt;&lt;br /&gt;
Just install VS2010 &lt;a href=&quot;http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/&quot;&gt;Power Tools&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Here is a short cut to use: CTRL + ]&lt;br /&gt;
&lt;br /&gt;
Have a good day!</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/2474553344737967778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/2474553344737967778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2474553344737967778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2474553344737967778'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2011/03/vs2010-trick-alignment-of-symbol.html' title='VS2010 Trick: Alignment of &quot;=&quot; symbol'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-3330420384287637904</id><published>2010-12-08T20:48:00.000-08:00</published><updated>2010-12-08T20:48:13.119-08:00</updated><title type='text'>UI Spy Replacement: UI Verify</title><content type='html'>Here it is:&amp;nbsp;&lt;a href=&quot;http://uiautomationverify.codeplex.com/&quot;&gt;http://uiautomationverify.codeplex.com/&lt;/a&gt;&lt;br /&gt;
So far, I like it very much!&lt;br /&gt;
&lt;br /&gt;
Take care!</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/3330420384287637904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/3330420384287637904' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/3330420384287637904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/3330420384287637904'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/12/ui-spy-replacement-ui-verify.html' title='UI Spy Replacement: UI Verify'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-2942985415957162333</id><published>2010-12-08T20:20:00.000-08:00</published><updated>2010-12-08T20:20:59.642-08:00</updated><title type='text'>WPF: In the search of automation Id for Popup</title><content type='html'>In case you are doing WPF development, and for some reason you are using Popup control (primitive), and it has no AutomationId (no matter what!!!) here is a cure:&lt;br /&gt;
&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/d4ba12c8-7a87-478e-b064-5620f929a0cf/&quot;&gt;How to set AutomationID and Name for Popup&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Happy coding!</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/2942985415957162333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/2942985415957162333' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2942985415957162333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2942985415957162333'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/12/wpf-in-search-of-automation-id-for.html' title='WPF: In the search of automation Id for Popup'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-5997706708631360095</id><published>2010-12-05T13:46:00.002-08:00</published><updated>2010-12-05T13:48:48.215-08:00</updated><title type='text'>10 Pancakes #3</title><content type='html'>Enjoy good links:&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&amp;nbsp;- Best &lt;a href=&quot;http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered&quot;&gt;code comments&lt;/a&gt; on StackOverflow&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- &lt;a href=&quot;http://stackoverflow.com/questions/2349378/new-programming-jargon-you-coined&quot;&gt;Programmers jargon&lt;/a&gt; (good guidelines) on StackOverflow&lt;/div&gt;&lt;div&gt;&amp;nbsp;- Ultimate dev &lt;a href=&quot;http://devcheatsheet.com/&quot;&gt;cheet sheet collection&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://john-sheehan.com/blog/net-cheat-sheets/&quot;&gt;more&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- Book: Software for your head (free &lt;a href=&quot;http://www.liveingreatness.com/files/Software-For-Your-Head-book-v1.0.pdf&quot;&gt;PDF&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;- &lt;a href=&quot;http://norvig.com/21-days.html&quot;&gt;Teach yourself programming&lt;/a&gt; in ten years&lt;/div&gt;&lt;div&gt;&amp;nbsp;- Go distributed .net with &lt;a href=&quot;http://research.microsoft.com/en-us/projects/DryadLINQ/&quot;&gt;Dryad&lt;span id=&quot;goog_2009777804&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_2009777805&quot;&gt;&lt;/span&gt;LINQ&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- &lt;a href=&quot;http://msdn.com/vstudio/async&quot;&gt;Visual Studio CTP&lt;/a&gt; with async pattern (C#5?)&lt;/div&gt;&lt;div&gt;&amp;nbsp;- &lt;a href=&quot;http://ayende.com/Blog/archive/2010/08/01/package-management-for-.net-nu.aspx&quot;&gt;Package management&lt;/a&gt; for .net&lt;/div&gt;&lt;div&gt;&amp;nbsp;- &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=201727&quot;&gt;Rx Guidelines&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://skillsmatter.com/&quot;&gt;Skills Matter&lt;/a&gt; - Yes, they are!&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Thanks!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/5997706708631360095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/5997706708631360095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5997706708631360095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5997706708631360095'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/12/10-pancakes-3.html' title='10 Pancakes #3'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-8272718591782249169</id><published>2010-11-29T11:22:00.002-08:00</published><updated>2010-11-29T11:23:16.384-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="unity"/><title type='text'>Unity Interception (AOP)</title><content type='html'>Recently, I have been working on adding Unity Interception and found out that it is extremely poorly documented. Here is the list of links one may find useful:&lt;br /&gt;
&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://visualizationtools.net/default/the-bare-bones-of-unity-interceptions/&quot;&gt;The bare bones of Unity interceptions&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://codebetter.com/blogs/david.hayden/archive/2009/01/18/unity-interception-and-custom-icallhandler-order-property-and-firing-of-handlers.aspx&quot;&gt;Order Property and Firing of Handlers&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://ljusberg.se/blogs/smorakning/archive/2009/10/06/unity-interception-performance.aspx&quot;&gt;Unity interception performance&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://shecht.wordpress.com/2009/12/12/inotifypropertychanged-with-unity-interception-aop/&quot;&gt;INotifyPropertyChanged With Unity Interception AOP&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;http://www.aspiringcraftsman.com/2009/03/implementing-inotifyproperychanged-with/&quot;&gt;Implementing INotifyProperyChanged with Unity Interception&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Also, there are always opened questions here:&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/tagged/unity-interception&quot;&gt;unity-interception&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/8272718591782249169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/8272718591782249169' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/8272718591782249169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/8272718591782249169'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/11/unity-interception-aop.html' title='Unity Interception (AOP)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-6844532634173667283</id><published>2010-09-13T19:21:00.000-07:00</published><updated>2010-09-13T19:21:40.464-07:00</updated><title type='text'>10 Pancakes #2</title><content type='html'>This is yet another links list, enjoy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;- WPF &lt;a href=&quot;http://blogs.msdn.com/b/expression/archive/2009/03/23/an-introduction-to-behaviors-triggers-and-actions.aspx&quot;&gt;Triggers, Actions, Behaviors&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://www.snopes.com/business/consumer/firedrill.asp&quot;&gt;Firedrill&lt;/a&gt; best practices for money saving&lt;br /&gt;
&amp;nbsp;- Patterns for Parallel Programming for .NET 4.0 &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=86b3d32b-ad26-4bb8-a3ae-c1637026c3ee&amp;amp;displaylang=en&quot;&gt;book / guidelines&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://msdn.microsoft.com/en-us/devlabs/dd491992.aspx&quot;&gt;Code Contracts&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx&quot;&gt;Rx Extensions&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://msdn.microsoft.com/devlabs/ff628422&quot;&gt;Rx for Javascript&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- Free agile &lt;a href=&quot;http://adsdevshop.com/agile/agile-training/&quot;&gt;trainings&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- In fact, I see none people who do &quot;agile&quot; and familiar with agile &lt;a href=&quot;http://www.agilemanifesto.org/&quot;&gt;principles &lt;/a&gt;and &lt;a href=&quot;http://www.agilemanifesto.org/principles.html&quot;&gt;manifesto &lt;/a&gt;at the same time. I wonder why...&lt;br /&gt;
&amp;nbsp;- And dynamic languages are driving me crazy these days, I should learn a couple:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; * &lt;a href=&quot;http://blog.wekeroad.com/2010/08/09/csharps-new-clothes&quot;&gt;http://blog.wekeroad.com/2010/08/09/csharps-new-clothes&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; * &lt;a href=&quot;http://blog.wekeroad.com/2007/08/29/the-c-makeover&quot;&gt;http://blog.wekeroad.com/2007/08/29/the-c-makeover&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/6844532634173667283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/6844532634173667283' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/6844532634173667283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/6844532634173667283'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/09/10-pancakes-2.html' title='10 Pancakes #2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-5910240238378600518</id><published>2010-08-25T10:45:00.003-07:00</published><updated>2011-02-09T18:37:07.598-08:00</updated><title type='text'>Why I love RhinoMocks?</title><content type='html'>Well, to begin with I really do :)&lt;br /&gt;
&lt;br /&gt;
Anyway, currently I am involved in several projects&amp;nbsp;simultaneously. And it turned out that each project has it&#39;s own 3-rd party libraries and tools. Well, one has RhinoMocks and the other has Moq.&amp;nbsp;I do not mind learning new things so I thought why not to try Moq.&lt;br /&gt;
&lt;br /&gt;
Everything went well (without documentation reading) until I decided to create a mock of the сlass with &quot;virtual&quot; method. The test was simply to check whether the method gets called. I wrote the test and it failed. Well, I added good code - failed again. Went through the debug - failed anyway :) What could go wrong?&lt;br /&gt;
&lt;br /&gt;
Here is my class I had to mock:&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;    public class MyViewModel : ViewModelBase    
    {
        public MyViewModel(IEventAggregator events)
        {
            this.eventAggregator = events;
            this.SubscribeToEvents();
        }

        // ... Lot&#39;s of other code.

        public virtual void VerifyCurrentView()
        {
            // Smart things here
        }
    }
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The class subscribes to certain events from event aggregator and tries to call&amp;nbsp;VerifyCurrentView method after events are handled.&lt;br /&gt;
&lt;br /&gt;
So, how would you check whether the&amp;nbsp;VerifyCurrentView method&amp;nbsp;code actually gets called?&lt;br /&gt;
Never mind, here is how I thought I could do this:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;var vm = new Mock&amp;lt; MyViewModel &amp;gt;(events);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Guess what? The constructor never gets called in this case :( I spent an hour trying to figure this out - no luck.&lt;br /&gt;
&lt;br /&gt;
Consequently, the following test (mock) does not work:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;[Test]
    public void My_test_Moq_version()
    {
        var events = new EventAggregator();
        var vm = new Mock&lt; MyViewModel &gt;(events);


        vm.Setup(m =&gt; m.VerifyCurrentView());


        // Act
        events.GetEvent&lt; AlertHistoryLoadedEvent &gt;()
            .Publish(new HistoryTypeInfo[0]);


        vm.VerifyAll();
    }
&lt;/pre&gt;&lt;br /&gt;
And I had no idea why it was happening and neither a desire to know &quot;the truth&quot;. I spent another 5 minutes to write the same with RhinoMocks:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;[Test]
        public void My_test()
        {
            var events = new EventAggregator();
            var vm = MockRepository.GenerateMock&lt;myviewmodel&gt;(events);


            // Act
            events.GetEvent&lt;alerthistoryloadedevent&gt;()
                  .Publish(new HistoryTypeInfo[0]);


            vm.AssertWasCalled(c =&gt; c.VerifyCurrentView());
        }
&lt;/pre&gt;&lt;br /&gt;
And it works! Just like that.&lt;br /&gt;
RhinoMocks just rocks!</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/5910240238378600518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/5910240238378600518' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5910240238378600518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5910240238378600518'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/08/why-i-love-rhinomocks.html' title='Why I love RhinoMocks?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-4537053832989888055</id><published>2010-08-25T08:24:00.000-07:00</published><updated>2010-08-25T08:24:49.961-07:00</updated><title type='text'>10 Pancakes #1</title><content type='html'>It has been a while since my last post. I think I will be posing more in the future, we will see :)&lt;br /&gt;
&lt;br /&gt;
Anyway, today I would like to start a new ideas that I tried to put off too long time for now. You see,&amp;nbsp;I find too much of interesting stuff every day and I cannot simply throw it to everybody via IM and e-mails.&lt;br /&gt;
&lt;br /&gt;
Starting this week I will be posting links I went through and think would be&amp;nbsp;beneficial&amp;nbsp;to my friends, colleagues and other good people.&lt;br /&gt;
&lt;br /&gt;
So, here is the first 10 links:&lt;br /&gt;
&amp;nbsp;- Scrum check-list 2010 &lt;a href=&quot;http://www.infoq.com/minibooks/scrum-checklists&quot;&gt;free e-book&lt;/a&gt;:&lt;br /&gt;
&amp;nbsp;- New Uncle Bob Martin blog - &lt;a href=&quot;http://thecleancoder.blogspot.com/&quot;&gt;the clean coder&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- Scott Hanselman over &lt;a href=&quot;http://www.hanselman.com/blog/OredevKeynoteInformationOverloadAndManagingTheFlowEffectivenessAndEfficiency.aspx&quot;&gt;Effectiveness and Efficiency&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- SICP &lt;a href=&quot;http://mitpress.mit.edu/sicp/full-text/book/book.html&quot;&gt;Book&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- Pro HTML5 book excerpt - &lt;a href=&quot;http://www.infoq.com/resource/articles/pro-html5-programming/en/resources/prohtml5excerpt.pdf&quot;&gt;Chapter 6&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- New Embedded DB for .Net - &lt;a href=&quot;http://effiproz.com/&quot;&gt;EffiProz&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://www.codeplex.com/ManagedEsent&quot;&gt;Managed Esent DB for .Net&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://www.ravendb.net/&quot;&gt;RavenDb&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;- The&amp;nbsp;&lt;a href=&quot;http://blogs.msdn.com/b/laurionb&quot;&gt;blog &lt;/a&gt;of Managed Esent author</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/4537053832989888055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/4537053832989888055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/4537053832989888055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/4537053832989888055'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/08/10-pancakes-1.html' title='10 Pancakes #1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-2221868775495631152</id><published>2010-05-10T05:13:00.000-07:00</published><updated>2010-05-10T05:13:09.096-07:00</updated><title type='text'>What&#39;s wrong with this screen?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNiAMzIoYqPNq6Mh8EKWbl-_YoGLIXpC7RoDza-cZ-zN10YHxn564Qenheu8kx5kXs-GOo3_0XkqgKV1zUWs4EWaKclEKDpuXZg_sU0-9-pzbu2Sh2B55_a-p8i2RNjnHEraod60_9YEgs/s1600/directx.bmp&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNiAMzIoYqPNq6Mh8EKWbl-_YoGLIXpC7RoDza-cZ-zN10YHxn564Qenheu8kx5kXs-GOo3_0XkqgKV1zUWs4EWaKclEKDpuXZg_sU0-9-pzbu2Sh2B55_a-p8i2RNjnHEraod60_9YEgs/s320/directx.bmp&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/2221868775495631152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/2221868775495631152' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2221868775495631152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/2221868775495631152'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/05/whats-wrong-with-this-screen.html' title='What&#39;s wrong with this screen?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNiAMzIoYqPNq6Mh8EKWbl-_YoGLIXpC7RoDza-cZ-zN10YHxn564Qenheu8kx5kXs-GOo3_0XkqgKV1zUWs4EWaKclEKDpuXZg_sU0-9-pzbu2Sh2B55_a-p8i2RNjnHEraod60_9YEgs/s72-c/directx.bmp" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-7052984994801134847</id><published>2010-05-06T23:47:00.000-07:00</published><updated>2010-05-06T23:47:43.447-07:00</updated><title type='text'>Power Tools for Visual Studio 2010</title><content type='html'>Microsoft has gathered all power tools together on one site. Great!&lt;br /&gt;
So, whenever you need one of those go there to get it:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;http://msdn.microsoft.com/en-us/vstudio/bb980963.aspx&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
Have fun with it!&lt;br /&gt;
&lt;br /&gt;
PS: Until Rob Conery will create a better &lt;a href=&quot;http://blog.wekeroad.com/2010/05/04/do-androids-dream-of-vim&quot;&gt;&lt;b&gt;tool just for you&lt;/b&gt;&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/7052984994801134847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/7052984994801134847' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/7052984994801134847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/7052984994801134847'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/05/power-tools-for-visual-studio-2010.html' title='Power Tools for Visual Studio 2010'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-8172702441146348791</id><published>2010-04-27T10:30:00.001-07:00</published><updated>2010-04-27T10:30:28.468-07:00</updated><title type='text'>VSTS 2010: CodeContracts Issue</title><content type='html'>If you are unable to create any projects in Visual Studio 2010 after installing the &quot;latest&quot; CodeContracts build then the following link might help you to solve it pretty fast:&lt;br /&gt;
&amp;nbsp;- &lt;a href=&quot;http://social.msdn.microsoft.com/Forums/en/codecontracts/thread/5cb13a3e-811c-45f9-b7a8-09c39979acd6&quot;&gt;http://social.msdn.microsoft.com/Forums/en/codecontracts/thread/5cb13a3e-811c-45f9-b7a8-09c39979acd6&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/8172702441146348791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/8172702441146348791' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/8172702441146348791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/8172702441146348791'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/04/vsts-2010-codecontracts-issue.html' title='VSTS 2010: CodeContracts Issue'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-578507451149420121</id><published>2010-03-04T12:14:00.000-08:00</published><updated>2010-03-04T12:14:29.295-08:00</updated><title type='text'>Job Invitation Dear</title><content type='html'>Hey! What you feel being invited to work for someone in the following way?&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&quot;We have a high growth of demand for &lt;technology&gt; development. A lot of projects are using this technology now. Much more are coming. You have a chance to join the newly formed expertise excellence department that will incorporate the technology experience in it. If you are keen of this technology it is the high time to jump in and take part in tremendous growth of expertise&quot;&lt;/technology&gt;&lt;/blockquote&gt;&lt;br /&gt;
Do you feel excited? &lt;br /&gt;
Do you feel challenged?&lt;br /&gt;
Do you see opportunities? &lt;br /&gt;
Me? No, I do not! Do you know why?&lt;br /&gt;
&lt;br /&gt;
Well, the famous &lt;a href=&quot;http://www.joelonsoftware.com/AboutMe.html&quot;&gt;Joel Spolsky&lt;/a&gt; said about it a lot already. You see, there should be something in the job post. There should be something in the employer, you know? I do not mean that everyone should strive for uniqueness, but trust me - if your company is able to interest someone to work for them only by using the job invitation then they probably can hire anyone to work with you.&lt;br /&gt;
&lt;br /&gt;
Remember the quote in the beginning? How about this one?&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&quot;We have a high growth of demand for &lt;technology&gt; development &lt;b&gt;[in the universe]&lt;/b&gt;. A lot of projects are using this technology now &lt;b&gt;[in the universe]&lt;/b&gt;. Much more are coming &lt;b&gt;[guess where to? to the universe]&lt;/b&gt;. You have a chance to join the newly formed expertise excellence department &lt;b&gt;[in the universe]&lt;/b&gt; that will incorporate the technology experience in it. If you are keen of this technology it is the high time to jump in and take part in tremendous growth of expertise &lt;b&gt;[in the universe]&lt;/b&gt;&quot;&lt;/technology&gt;&lt;/blockquote&gt;&lt;br /&gt;
Does it sound somehow differently? You see, nothing has changed since I added the company name (the universe). The context did not change. The meaning left the same. There should be a difference. It just should be. If it does not, you lose. Because this is just the name, the name of your company is the only thing that makes your company different. This is it.</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/578507451149420121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/578507451149420121' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/578507451149420121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/578507451149420121'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/03/job-invitation-dear.html' title='Job Invitation Dear'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-5857577993818000912</id><published>2010-01-24T08:03:00.007-08:00</published><updated>2010-02-23T10:01:14.404-08:00</updated><title type='text'>User Interface Design and Architecture</title><content type='html'>&lt;div&gt;Not so long ago I started to deep into UI design and architecture, the process, tools, best practices and so on. The reason was simple, as soon as I started figuring out how to do great software I quickly found that the software should do the &quot;right thing&quot;. And by doing the &quot;right thing&quot; it should show this thing, make it available for the end user, make him or her understand how it works without reading the specs or how-to material, do the thing, explain all steps, errors, warnings, show the result and finally the software should have a super cool and flashy look.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Well, as I started to look into details of what I was thinking about the more and more materials I started to find. Here, on this page I will try to gather the materials I, for some reason, found useful. And I do this for a very simple reason, not to find it again, because... you know, sometimes it is extremely hard to find good stuff even with Google.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Videos&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://37signals.com/svn/posts/1952-i-gave-a-talk-on-ui-fundamentals-for-programmers&quot;&gt;UI Fundamentals for Programmers by Ryan Singer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://ux.artu.tv/?p=121&quot;&gt;UI Design for Developers by Total Training (Expression Blend btw)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Books&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/gp/product/0321525655/103-6148611-3957463?ie=UTF8&amp;amp;tag=garrreynoldsc-20&amp;amp;linkCode=xm2&amp;amp;camp=1789&amp;amp;creativeASIN=0321525655&quot;&gt;Presentation Zen&lt;/a&gt; and the book&#39;s web site (&lt;a href=&quot;http://www.presentationzen.com/&quot;&gt;www.presentationzen.com&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&quot;The Inmates Are Running the Asylum&quot; by Alice Cooper&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Articles&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Colors (&lt;a href=&quot;http://www.smashingmagazine.com/2010/01/28/color-theory-for-designers-part-1-the-meaning-of-color/&quot;&gt;Part 1&lt;/a&gt;, &lt;a href=&quot;http://www.smashingmagazine.com/2010/02/02/color-theory-for-designers-part-2-understanding-concepts-and-terminology/&quot;&gt;Part 2&lt;/a&gt;, Part 3)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Tools&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Extremely useful tools will be referenced here.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;And of course, I am very thankful for your feedback and help! Thank you very much!&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Update&lt;/b&gt;: 04/10 - Added &quot;color&quot; articles&#39; links&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/5857577993818000912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/5857577993818000912' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5857577993818000912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5857577993818000912'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2010/01/user-interface-design-and-architecture.html' title='User Interface Design and Architecture'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-5746031777001925068</id><published>2009-08-20T12:20:00.002-07:00</published><updated>2009-08-20T13:14:08.448-07:00</updated><title type='text'>Test more, document less</title><content type='html'>Today, one guy from my test team said that the documentation is not very important for him. The thing is that used to write very extensive documentation. Lot&#39;s of details were covered. A lot of knowledge were put into one document - one for each requirement.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Unfortunately, as people start working, the different aspects of a requirement will likely to change - the user interface, the data bounds, important functionality gets added, redundant things gets removed or redone. Anyways, something changes. All these changes are being tracked by people during the work process, on the communication level - as it is the most efficient way to share things. But the documentation remains intact, and the problem is - it gets old, retired, and then I simply delete it or reqrite anew one.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyway, the process of getting a very good document is pretty complicated, and boring.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On the other hand, the documentation is an important artifact on the project. As it has information right about the thing it describes. So it helps people work - they know how to do their job from the documenation.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I may be reaching out from the point I started. They guy said he does not need the documents any more. What&#39;s changed?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The thing is that we introduced a scrum-like two-week iterations some time ago. But there was a problem. As soon as we released a build, let&#39;s say three days before the release - we had plenty of problems right away. As a result, a number of iterations were blown up, the date were shifted to the future, customers put on hold, etc.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Therefore, we dicided to perform a two-phase testing. The first phase, it when the feature gets implemented - the build is being moved to the development (!) server where tester can look at it, study it, suggest (!) improvements or report bugs. The second one, when the build if ninaly gets released with all features planned for the iteration. This time we do integration testing (?) and verify that everything is performing correctly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The outcome is amazing:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt; testers study functionality by using it, not making guesses from documentation&lt;/li&gt;&lt;li&gt; we reduce risks failing the deadlines by performing additional verification&lt;/li&gt;&lt;li&gt; we reduce risks of deployment failures, as we do it more often&lt;/li&gt;&lt;li&gt; testing takes the same time as it would take it we did regular &quot;develop, then verify&quot; process&lt;/li&gt;&lt;li&gt; now we can think how we can make our documentation more efficient, so it would not go on retirement&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/5746031777001925068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/5746031777001925068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5746031777001925068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/5746031777001925068'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2009/08/test-more-document-less.html' title='Test more, document less'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-9120345892746884839</id><published>2009-08-19T13:09:00.002-07:00</published><updated>2009-08-19T13:32:53.600-07:00</updated><title type='text'>Open Source and Commercial Software</title><content type='html'>Many people would like to use open source frameworks and tools, however, for a certain reason they choose something they can call commercial software and pay money the same quality product.&lt;br /&gt;&lt;br /&gt;One of the &quot;benefits&quot; of commercial products sounds similar to the following:&lt;div&gt;&lt;blockquote&gt;commercial product has support so I know whom to contact when I will be trouble (be sure you will %99), while open source has no support&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;OK, while this may be true think of the followin please: do you compare equal products. I can think of both products as equal when I have commercial product on one side and open source product with active development on the other. Assuming open source is in active development I can conclude it has the very support we did not saw earlier, hasn&#39;t it?&lt;br /&gt;&lt;br /&gt;The other argument, again:&lt;br /&gt;&lt;blockquote&gt;commercial product has support that can promise me a deadline...&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Yeah, guys, do you really think that something is different with planning in open source software? I guess not. The planning is done as we usually do for our projects. Same ideas applies to the mighty commercial software we tend to buy instead of using the one that is useful and at no cost.&lt;br /&gt;&lt;br /&gt;Anyway, it is your choice. Just &lt;span style=&quot;font-weight:bold;&quot;&gt;think of it&lt;/span&gt;, please.&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/9120345892746884839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/9120345892746884839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/9120345892746884839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/9120345892746884839'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2009/08/open-source-and-commercial-software.html' title='Open Source and Commercial Software'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-8952396059769433382</id><published>2008-11-13T00:53:00.002-08:00</published><updated>2008-12-13T14:26:44.550-08:00</updated><title type='text'>Double Dispatch Principle or the &amp;quot;Shit Hits the Fun&amp;quot;</title><content type='html'>&lt;span xmlns=&quot;xmlns&quot;&gt;   &lt;p&gt;The other day I was thinking about &lt;a href=&quot;http://msdn.microsoft.com/en-us/magazine/cc546578.aspx&quot; target=&quot;_blank&quot;&gt;Double Dispatch Principle&lt;/a&gt; and it&#39;s benefits and came up with the following code sample:&lt;/p&gt;    &lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;public class Air&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class Fun&lt;br /&gt;{&lt;br /&gt;   public void Run(Air air)&lt;br /&gt;   { }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class Sheet : Air&lt;br /&gt;{&lt;br /&gt;   public void Hit(Fun theFun)&lt;br /&gt;   {&lt;br /&gt;       theFun.Run(this);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class Program&lt;br /&gt;{&lt;br /&gt;   public void Process()&lt;br /&gt;   {&lt;br /&gt;       var theFun = new Fun();&lt;br /&gt;       new Sheet().Hit(theFun);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;  </content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/8952396059769433382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/8952396059769433382' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/8952396059769433382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/8952396059769433382'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2008/11/double-dispatch-principle-or-hits-fun.html' title='Double Dispatch Principle or the &amp;quot;Shit Hits the Fun&amp;quot;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-3828868994139086609</id><published>2008-10-14T14:56:00.001-07:00</published><updated>2008-10-14T14:56:27.121-07:00</updated><title type='text'>Tricky Path.Combine Thing</title><content type='html'>&lt;p&gt;About 10 minutes I needed to understand the problem. Luckily I had tests. It appears, that &lt;strong&gt;Path.Combine&lt;/strong&gt; works funny. Here are a comple of examples:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;If you do Path.Combine(&amp;quot;../Tests/&amp;quot;, &amp;quot;/123.xml&amp;quot;) the result will be &amp;quot;/123.xml&amp;quot;&lt;/li&gt;    &lt;li&gt;If you do Path.Combine(&amp;quot;../Tests/&amp;quot;, &amp;quot;123.xml&amp;quot;) the result will be &amp;quot;../Tests/123.xml&amp;quot;&lt;/li&gt;    &lt;li&gt;Finally, if you do Path.Combine(&amp;quot;../Tests&amp;quot;, &amp;quot;123.xml&amp;quot;) the result will be &amp;quot;../Tests\123.xml&amp;quot;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Oh, frankly speaking, I would really like to have Path.Combine(&amp;quot;../Tests/&amp;quot;, &amp;quot;/123.xml&amp;quot;)&amp;#160; give me &amp;quot;../Tests/123.xml&amp;quot; or, at least, &amp;quot;../Tests//123.xml&amp;quot; and even &amp;quot;../Tests\123.xml&amp;quot; would be fine.&lt;/p&gt;  &lt;p&gt;For now, I have to remember funny point #1 and will try to do #2 and #3 all along.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/3828868994139086609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/3828868994139086609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/3828868994139086609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/3828868994139086609'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2008/10/tricky-pathcombine-thing.html' title='Tricky Path.Combine Thing'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-7450801582908688301</id><published>2008-10-07T16:22:00.001-07:00</published><updated>2008-10-07T16:23:33.499-07:00</updated><title type='text'>XML in .Net: Frequently Asked Questions</title><content type='html'>&lt;p&gt;XML Team started to blog about most difficult things in System.XML. The list of posts below:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://blogs.msdn.com/xmlteam/archive/2008/09/10/frequently-asked-questions-on-xml-in-net-part-1.aspx&quot; target=&quot;_blank&quot;&gt;Exceptions About Invalid Literals in XML - FAQ on XML in .Net - Part 1&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://blogs.msdn.com/xmlteam/archive/2008/09/10/frequently-asked-questions-on-xml-in-net-part-2.aspx&quot; target=&quot;_blank&quot;&gt;Working with XML Fragments - FAQ on XML in .Net - Part 2&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Hope this helps!&lt;/p&gt;  &lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:26cca81c-06d0-4fa8-8ca4-212fcf015750&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/XML&quot; rel=&quot;tag&quot;&gt;XML&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/7450801582908688301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/7450801582908688301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/7450801582908688301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/7450801582908688301'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2008/10/xml-in-net-frequently-asked-questions.html' title='XML in .Net: Frequently Asked Questions'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5893592225015490763.post-533077602794323552</id><published>2008-10-07T16:01:00.002-07:00</published><updated>2008-10-07T16:11:35.304-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unit Tests"/><title type='text'>Test Requirements First</title><content type='html'>&lt;p&gt;Today I found a post about &lt;a href=&quot;http://blogs.msdn.com/bclteam/archive/2008/10/06/the-compare-contract-kim-hamilton.aspx&quot; target=&quot;_blank&quot;&gt;The Compare Contract&lt;/a&gt; by BCL Team. In brief, one of the customers complained about the breaking changes made in SP1 compared to RTM version. Actually, the ComparedTo method of the StringWrapper class was changed which affected sorting behavior.&lt;/p&gt;  &lt;p&gt;It appeared that ComparedTo method was implemented incorrectly. Therefore, it was decided to change it. MSDN describes &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/43hc6wht.aspx&quot; target=&quot;_blank&quot;&gt;several requirements&lt;/a&gt; that must be met by a particular implementation of IComparable&amp;lt;T&amp;gt; interface.&lt;/p&gt;  &lt;p&gt;I see this as a big bonus for any developer implementing &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/4d7sx9hd.aspx&quot; target=&quot;_blank&quot;&gt;IComparable&amp;lt;T&amp;gt;&lt;/a&gt; interface. Even before starting to implement the method you can write very strict Unit Tests that will help you to implement a method that will satisfy common requirements for any sorting algorithm.&lt;/p&gt;  &lt;p&gt;As you see, you can end up with 5 unit test. If you will use MbUnit, for example, you can employ &lt;a href=&quot;http://haacked.com/archive/2004/10/20/row_based_testing.aspx&quot; target=&quot;_blank&quot;&gt;Row Tests&lt;/a&gt; to specify more precise requirements for your interface implementation very easy.&lt;/p&gt;  &lt;p&gt;For example I ended up with 15 tests. It took me about 15 minutes. Here they are:&lt;/p&gt;  &lt;div&gt;   &lt;pre style=&quot;padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;namespace&lt;/span&gt; CompareToContract.UnitTests&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt; MbUnit.Framework;&lt;br /&gt;&lt;br /&gt;    [TestFixture]&lt;br /&gt;    &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; StringWrapperTests&lt;br /&gt;    {&lt;br /&gt;        [RowTest]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; CompareTo_SameValue_ShouldReturnZero(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt;)&lt;br /&gt;        {&lt;br /&gt;            StringWrapper wrapper = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt; };&lt;br /&gt;            Assert.AreEqual(wrapper.CompareTo(wrapper), 0, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;A.CompareTo(A) should return 0.&amp;quot;&lt;/span&gt;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [RowTest]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; CompareTo_AnotherEqualValue_ShouldReturnZero(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value1, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value2)&lt;br /&gt;        {&lt;br /&gt;            StringWrapper a = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value1 };&lt;br /&gt;            StringWrapper b = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value2 };&lt;br /&gt;&lt;br /&gt;            Assert.AreEqual(a.CompareTo(b), 0, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;A&#39;value&#39;.ComparedTo(b&#39;value&#39;) should return 0.&amp;quot;&lt;/span&gt;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [RowTest]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; CompareTo_AandBandCequal_ShouldReturnZero(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value1, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value2, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value3)&lt;br /&gt;        {&lt;br /&gt;            StringWrapper a = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value1 };&lt;br /&gt;            StringWrapper b = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value2 };&lt;br /&gt;            StringWrapper c = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value3 };&lt;br /&gt;&lt;br /&gt;            Assert.AreEqual(a.CompareTo(b), 0, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;A&#39;value&#39;.ComparedTo(B&#39;value&#39;) should return 0.&amp;quot;&lt;/span&gt;);&lt;br /&gt;            Assert.AreEqual(b.CompareTo(c), 0, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;B&#39;value&#39;.ComparedTo(C&#39;value&#39;) should return 0.&amp;quot;&lt;/span&gt;);&lt;br /&gt;            Assert.AreEqual(a.CompareTo(c), 0, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;A&#39;value&#39;.ComparedTo(C&#39;value&#39;) should return 0.&amp;quot;&lt;/span&gt;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [RowTest]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;2&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value1&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value2&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; CompareTo_IfAComparedToBReturnValueThenBComparedToA_ShouldReturnSameValueButDifferentInSign(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value1, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value2)&lt;br /&gt;        {&lt;br /&gt;            StringWrapper a = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value1 };&lt;br /&gt;            StringWrapper b = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value2 };&lt;br /&gt;&lt;br /&gt;            Assert.AreEqual(a.CompareTo(b), -1 * b.CompareTo(a), &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;a.ComparedTo(b) should equal to -1 * b.ComparedTo(a).&amp;quot;&lt;/span&gt;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        [RowTest]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;2&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;3&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value3&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value2&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value1&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        [Row(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value1&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value2&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;value3&amp;quot;&lt;/span&gt;)]&lt;br /&gt;        &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; CompareTo_IfAComparedToBReturnsValueWithTheSameSignAsBComparedToCThenACompareToC_ShouldReturnValueWithTheSameSign(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value1, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value2, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; value3)&lt;br /&gt;        {&lt;br /&gt;            StringWrapper a = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value1 };&lt;br /&gt;            StringWrapper b = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value2 };&lt;br /&gt;            StringWrapper c = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; StringWrapper() { Value = value3 };&lt;br /&gt;&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; abResult = a.CompareTo(b);&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; bcResult = b.CompareTo(c);&lt;br /&gt;            &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; acResult = a.CompareTo(c);&lt;br /&gt;&lt;br /&gt;            Assert.IsTrue(Math.Sign(abResult) == Math.Sign(bcResult), &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;A.ComparedTo(B) should have the same sign as B.ComparedTo(C).&amp;quot;&lt;/span&gt;);&lt;br /&gt;            Assert.IsTrue(Math.Sign(abResult) == Math.Sign(acResult), &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;A.ComparedTo(C) should have the same sign as A.ComparedTo(B).&amp;quot;&lt;/span&gt;);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The old implementation of CompareTo completed with &lt;font color=&quot;#008000&quot;&gt;10 succeeded&lt;/font&gt; and &lt;font color=&quot;#ff0000&quot;&gt;5 failed&lt;/font&gt; tests. While implementation provided by BCL Team completed with all &lt;font color=&quot;#008000&quot;&gt;15 succeeded&lt;/font&gt;. This way I can trust this implementation of CompareTo method.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Test your requirements before you right the code. This will minimize your time and efforts to understand (remember all the time) requirements of implementation and will help you to write the code you need, not the code you can write.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:6b359e99-03a0-41d7-8a14-93571f5c33ce&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Unit%20Tests&quot; rel=&quot;tag&quot;&gt;Unit Tests&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/MbUnit&quot; rel=&quot;tag&quot;&gt;MbUnit&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/BCL&quot; rel=&quot;tag&quot;&gt;BCL&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://mik-kardash.blogspot.com/feeds/533077602794323552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5893592225015490763/533077602794323552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/533077602794323552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5893592225015490763/posts/default/533077602794323552'/><link rel='alternate' type='text/html' href='http://mik-kardash.blogspot.com/2008/10/test-requirements-first.html' title='Test Requirements First'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11492621770465256783</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>