<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>Blinded by the lights</title>
	
	<link>http://dobrzanski.net</link>
	<description>blog for developers</description>
	<lastBuildDate>Sat, 04 Sep 2010 09:12:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BlindedByTheLights" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="blindedbythelights" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><item>
		<title>It’s possible to support this blog</title>
		<link>http://dobrzanski.net/2010/09/04/its-possible-to-support-this-blog/</link>
		<comments>http://dobrzanski.net/2010/09/04/its-possible-to-support-this-blog/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 09:10:36 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=756</guid>
		<description><![CDATA[A few days ago I decided to add &#8216;Donate&#8217; button on my blog (see the sidebar to the right). This is a feature provided by PayPal. If you want to prove you are really delighted with my help or simply you have too much spare money , it&#8217;s possible to pay me a kind of [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I decided to add &#8216;Donate&#8217; button on my blog (see the sidebar to the right). This is a feature provided by PayPal.</p>
<p>If you want to prove you are really delighted with my help or simply you have too much spare money <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Its possible to support this blog Photo" /> , it&#8217;s possible to pay me a kind of tip. That can be a dollar or two, that&#8217;s not really important; every little helps. All in all that could help pay for the hosting. </p>
<p>Of course I&#8217;m still blogging for fun so treat this as a feature &#8211; use it only if you really want to <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Its possible to support this blog Photo" /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/S10XfHIWXvOwLpbLLtvnpmI4ueI/0/da"><img src="http://feedads.g.doubleclick.net/~a/S10XfHIWXvOwLpbLLtvnpmI4ueI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S10XfHIWXvOwLpbLLtvnpmI4ueI/1/da"><img src="http://feedads.g.doubleclick.net/~a/S10XfHIWXvOwLpbLLtvnpmI4ueI/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/09/04/its-possible-to-support-this-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jak zapłacić podatek za Google Adsense?</title>
		<link>http://dobrzanski.net/2010/08/26/jak-zaplacic-podatek-za-google-adsense/</link>
		<comments>http://dobrzanski.net/2010/08/26/jak-zaplacic-podatek-za-google-adsense/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 13:15:26 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[blogg]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=748</guid>
		<description><![CDATA[I&#8217;m sorry if you are an English spoken reader but this very post is published in Polish only. The reason for that is it describes issues related to Google Adsense and Polish tax law. This blog is still supposed to be maintained in English so please do not get discouraged. Wiadomym jest, że to osoba [...]]]></description>
			<content:encoded><![CDATA[<p><em>I&#8217;m sorry if you are an English spoken reader but this very post is published in Polish only. The reason for that is it describes issues related to Google Adsense and Polish tax law.<br />
This blog is still supposed to be maintained in English so please do not get discouraged.</em></p>
<p>Wiadomym jest, że to osoba która zarabia w programie Google Adsense jest odpowiedzialna za sprawy podatkowe. W moim przypadku nie są to duże pieniądze, ale zacząłem się zastanawiać w jaki sposób mam postępować by nie mieć problemu z Urzędem Skarbowym. </p>
<p>Znalazłem ciekawy post <a href="http://minwestycje.net/2009/03/google-adsense-podatki.html">Google Adsense &#8211; Podatki</a> i jego <a href="http://minwestycje.net/2009/03/google-adsense-podatki-cz-2.html">kontynuację</a>. Autor tego bloga wspomina dwa utarte schematy: (po szczegóły zapraszam do lektury tych dwóch postów, bo autor się postarał; ja tylko w skrócie):</p>
<ol>
<li>jeśli w danym miesiącu dostaniesz przelew z Google Adsense, masz czas do 20. dnia następnego miesiąca na zapłacenie podatku od tej transakcji; do końca kwietnia następnego roku wypełniasz PIT-36 (bo miałeś dochody z tzw. innych źródeł)</li>
<li>wypełniasz PIT-36 (bo miałeś dochody z tzw. innych źródeł) i płacisz podatek od wypłaty z Google Adsense tylko raz, dopiero podczas składania deklaracji podatkowej za rok poprzedni</li>
</ol>
<p><span id="more-748"></span></p>
<p>Doradca finansowy poradził cytowanemu przeze mnie autorowi, że pierwszy sposób jest słuszny. Żeby było trudniej / śmieszniej, ów doradca napisał, że naczelnicy różnych Urzędów Skarbowych aprobują różne (z podanych wyżej) rozwiązania. </p>
<p>Postanowiłem, że sam spróbuję się czegoś dowiedzieć i zadzwoniłem na Krajową Informację Podatkową. Numery infolinii to: 801 055 055 lub 0-22 330 03 30. Tam powiedziano mi, że jeśli prowadzi się działalność gospodarczą należy podążać za opcją #1, w przeciwnym razie za schematem #2.</p>
<p>Oczywiście powyższy problem nie dotyczy tylko Google Adsense, ale każdej formy zarobku na własnym blogu lub stronie internetowej w ramach współpracy z instytucją, która nie płaci podatku za Ciebie.</p>
<p><strong>Uwaga</strong>: Proszę mieć na uwadze, że jestem programistą a nie fachowcem w dziedzinie podatków. Informacje przedstawione w tym poście są moimi prywatnymi opiniami i nie stanowią rekomendacji postępowania. W razie wątpliwości / pytań sugerowałbym udać się lub zadzwonić do swojego Urzędu Skarbowego, lub zadzwonić na Krajową Informację Podatkową.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/rFZCzZtddGJARoCKdh2Q9ffsUEc/0/da"><img src="http://feedads.g.doubleclick.net/~a/rFZCzZtddGJARoCKdh2Q9ffsUEc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rFZCzZtddGJARoCKdh2Q9ffsUEc/1/da"><img src="http://feedads.g.doubleclick.net/~a/rFZCzZtddGJARoCKdh2Q9ffsUEc/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/08/26/jak-zaplacic-podatek-za-google-adsense/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Celebrating 2.5 years and 210,000 visitors to my blog</title>
		<link>http://dobrzanski.net/2010/08/20/celebrating-2-5-years-and-210000-visitors-to-my-blog/</link>
		<comments>http://dobrzanski.net/2010/08/20/celebrating-2-5-years-and-210000-visitors-to-my-blog/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 14:32:36 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=742</guid>
		<description><![CDATA[Recently I&#8217;ve read a kind of summary post of my friend where he described his blog in numbers. I thought this is a great idea &#8211; those who follow a blog get more background on its existence. Let me describe my blog in numbers, if you like: 27 months &#8211; first post was published on [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve read a <a href="http://jee-bpel-soa.blogspot.com/2010/07/celebrating-100000-visitors-to-my-blog.html">kind of summary post of my friend</a> where he described his blog in numbers. I thought this is a great idea &#8211; those who follow a blog get more background on its existence.</p>
<p>Let me describe my blog in numbers, if you like:</p>
<ul>
<li>27 months &#8211; first post was published on April 14th, 2007</li>
<li>148 posts</li>
<li>435 comments</li>
<li>I started tracing visitors (with Google Analytics) on March 16th, 2008 (a year after first post) &#8211; <strong>210,000 visitors</strong> ever since</li>
<li>best referring sites: google search (172k visitors), dzone.com (3k), reddit.com (2.6k), bing search (2.5k), yahoo search (2.2k), stackoverflow.com (1.2k)</li>
<li>1 DZone Big Link: <a href="http://dobrzanski.net/2008/03/22/exeptions-and-errors/">Exeptions and Errors in Java</a></li>
<li>I have been invited to DZone?s Most Valuable Blogger lodge (<a href="http://dobrzanski.net/2010/07/09/active-dzone/">more details</a>)</li>
</ul>
<p>Many thanks to all that have helped achieving these results. Thanks for thank-you comments, crutial remarks and suggestions to what I&#8217;ve published, and just visting my site.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/zmlnoCqYldDiG1YExoeNX7npRqA/0/da"><img src="http://feedads.g.doubleclick.net/~a/zmlnoCqYldDiG1YExoeNX7npRqA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zmlnoCqYldDiG1YExoeNX7npRqA/1/da"><img src="http://feedads.g.doubleclick.net/~a/zmlnoCqYldDiG1YExoeNX7npRqA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/08/20/celebrating-2-5-years-and-210000-visitors-to-my-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DZone Refcardz: Cheat sheets for developers</title>
		<link>http://dobrzanski.net/2010/08/18/dzone-refcardz-cheat-sheets-developers/</link>
		<comments>http://dobrzanski.net/2010/08/18/dzone-refcardz-cheat-sheets-developers/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 09:07:02 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=739</guid>
		<description><![CDATA[Some time ago, DZone has introduced an interesting feature &#8211; DZone Refcardz. This is a collection of cheat sheets (111 items by now) on different topics, e.g. programming languages, developer tools and IDEs, development approaches and trends. Cheat sheets will never replace books, full time trainings or tutorials &#8211; they are meant to be short [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago, DZone has introduced an interesting feature &#8211; <a href="http://refcardz.dzone.com/">DZone Refcardz</a>. This is a collection of cheat sheets (111 items by now) on different topics, e.g. programming languages, developer tools and IDEs, development approaches and trends.  </p>
<p><img alt="27343 DZone Refcardz: Cheat sheets for developers" src="http://refcardz.dzone.com/sites/all/files/refcardz/covers/27343.png" title="DZone Refcardz thumbnail" class="alignright" width="206" height="266" /></p>
<p>Cheat sheets will never replace books, full time trainings or tutorials &#8211; they are meant to be short and brief; supply the reader with the basics and summary; simple enough. You won&#8217;t learn the subject in details but DZone refcardz are worth giving a try. </p>
<p>I can see several usage models: <em>(i)</em> get a general meaning on a subject new to me (if I like it, then I go for it in details), <em>(ii)</em> refresh something, <em>(iii)</em> get back to it when in need of checking something quickly.</p>
<p>DZone Refcardz homepage: <a href="http://refcardz.dzone.com/">http://refcardz.dzone.com</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/GcQzHMVf07p3wmxAOjyLhuMEEUg/0/da"><img src="http://feedads.g.doubleclick.net/~a/GcQzHMVf07p3wmxAOjyLhuMEEUg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GcQzHMVf07p3wmxAOjyLhuMEEUg/1/da"><img src="http://feedads.g.doubleclick.net/~a/GcQzHMVf07p3wmxAOjyLhuMEEUg/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/08/18/dzone-refcardz-cheat-sheets-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparison of .Net libraries for fetching emails via POP3</title>
		<link>http://dobrzanski.net/2010/08/13/comparison-of-net-libraries-for-fetching-emails-via-pop3/</link>
		<comments>http://dobrzanski.net/2010/08/13/comparison-of-net-libraries-for-fetching-emails-via-pop3/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 07:51:37 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=731</guid>
		<description><![CDATA[Sending emails in C# is easy; for basic use cases you don&#8217;t need external resources to send a note because .NET BCL already ships it. On .Net Developer Center, there&#8217;s a short description how to do it. Now, how to fetch the email? It turns out it is not that easy &#8211; it&#8217;s not supported [...]]]></description>
			<content:encoded><![CDATA[<p>Sending emails in C# is easy; for basic use cases you don&#8217;t need external resources to send a note because .NET BCL already ships it. On .Net Developer Center, there&#8217;s <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8">a short description how to do it</a>.</p>
<p>Now, how to fetch the email? It turns out it is not that easy &#8211; it&#8217;s not supported by .Net BCL. I spent a while researching for the best library that matched my purposes and I want to share my views on a couple of components I looked at.</p>
<p><strong>Note:</strong> Please bear in mind I was interested only in a small piece of functionality such library could provide. My need was only to fetch an email (in plain text) with attachments. That was supposed to be done via POP3. I was not really interested in features like advanced sending emails (e.g. email templates), request and delivery receipts, support for iCalendar, email in HTML, etc. To sum up, I did not test libraries from that angle and therefore this comparison will not suit needs of all developers.</p>
<p><span id="more-731"></span></p>
<h3>CSLMail v2.0</h3>
<p>WinToolZone has released <a href="http://www.wintoolzone.com/PermaLink.aspx?ID=69">CSLMail</a>. It&#8217;s easy to use and quite convenient but I had two major problems:</p>
<ul>
<li>retrieve email body &#8211; problems with MIME format &#8211; the retrieved text contained equality characters in several places, and mixed line endings &#8216;\r\n&#8217; vs. &#8216;=0A=0D&#8217; (although each line of the email was prepared in exactly the same way). Combination of search/replace? Forget it &#8211; too risky</li>
<li>attachment &#8211; when I was trying to fetch email with an attachment, the code just threw an exception (there was a problem with String.Substring call while fetching the message)</li>
</ul>
<p>It is possible the problems were on my side only (e.g. mail server), but anyway, it didn&#8217;t work <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' title="Comparison of .Net libraries for fetching emails via POP3 Photo" />  It&#8217;s a pity there&#8217;s hardly anything on internet about that component and I failed to get more help from the package I had downloaded from CSLMail homepage.</p>
<p>If you had similar problems or, on contrary, everything worked fine on your side, could you please share your opinions?</p>
<h3>OpenPOP.NET</h3>
<p>This library is <a href="http://sourceforge.net/projects/hpop/">available at sourceforge</a>. I was able to fetch a TXT email with an attachment, but the email text was seen as an attachment (I could live with it) not anything like a body. The attachment, though, was not retrievable at all. </p>
<p>Again, maybe it&#8217;s my fault but I couldn&#8217;t fix it in a reasonable time. So I gave up again&#8230;</p>
<h3>Mail.dll</h3>
<p><a href="http://www.lesnikowski.com/mail/">Mail.dll</a> is not available for free but there&#8217;s an evaluation version available to download so before you buy it you can check how it works. That version adds an annoying string to email subject so, in general, if you can leave with it you can stick to it. However, I&#8217;m afraid for more professional use that&#8217;s not an option.</p>
<p>A few comments:</p>
<ul>
<li>fetching emails with attachments was really easy and worked like a charm</li>
<li>automatic email parsing when fetched from server &#8211; I get exactly the same text Outlook displays</li>
<li>extensive examples &#8211; series of use cases shown in dedicated Visual Studio solutions (available in the package) and a lot of useful information on the <a href="http://www.lesnikowski.com/blog/">author&#8217;s blog</a></li>
<li>it&#8217;s not free tool, but probably is worth its money; also evaluation version is available</li>
</ul>
<h3>C# Mail a.k.a. HiguchiMail</h3>
<ul>
<li>available at <a href="http://csharpmail.codeplex.com/">CodePlex</a>, for free</li>
<li>no problems with fetching email with attachment; both email text and attachment easy to retrieve</li>
<li>comment in source code is written by Japanese <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Comparison of .Net libraries for fetching emails via POP3 Photo" /> </li>
<li>even if there&#8217;s a problem there are lots of posts on <a href="http://csharpmail.codeplex.com/Thread/List.aspx">discussion forum</a></li>
</ul>
<h4>To recap&#8230;</h4>
<p>In my opinion Mail.dll and C# Mail are the winners in this competition. Perhaps the former is more advanced, better documented, and even easier to use. It might fit better for commercial / more advanced use. However for basic actions with POP3 you can save a few Euro and go for free C# Mail.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/EbwEP6MVehYpY905CUX1KyRQ41A/0/da"><img src="http://feedads.g.doubleclick.net/~a/EbwEP6MVehYpY905CUX1KyRQ41A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EbwEP6MVehYpY905CUX1KyRQ41A/1/da"><img src="http://feedads.g.doubleclick.net/~a/EbwEP6MVehYpY905CUX1KyRQ41A/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/08/13/comparison-of-net-libraries-for-fetching-emails-via-pop3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio: Common problems with VSMDI files</title>
		<link>http://dobrzanski.net/2010/07/10/visual-studio-common-problems-with-vsmdi-files/</link>
		<comments>http://dobrzanski.net/2010/07/10/visual-studio-common-problems-with-vsmdi-files/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 21:00:10 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[testing]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=720</guid>
		<description><![CDATA[Visual Studio provides solid support for unit testing. One of the features are VSMDI files &#8211; test meta data file. The file is not much readable but Visual Studio comes with easy to use GUI for managing tests (grouping them in test lists, filtering, etc.). All in all, VSMDI files are really helpful but&#8230; After [...]]]></description>
			<content:encoded><![CDATA[<p>Visual Studio provides solid support for unit testing. One of the features are VSMDI files &#8211; test meta data file. The file is not much readable but Visual Studio comes with easy to use GUI for managing tests (grouping them in test lists, filtering, etc.). </p>
<p>All in all, VSMDI files are really helpful but&#8230;</p>
<ol>
<li>After a while there are <strong>several VSMDI files</strong> (MySolutionName1.vsmdi, MySolutionName2.vsmdi, MySolutionName3.vsmdi, &#8230;) in your project although only one is in use (and therefore added to source control). This is a known bug discovered in Visual Studio 2005. More information can be found <a href="http://support.microsoft.com/kb/957358">there</a>.</li>
<li>Painful <strong>merging</strong>. Merging can be smooth or really painful. It is the latter with VSMDI. Sorry, with VSMDI there&#8217;s no such thing like merging. If you discover someone else has changed and checked in VSMDI file (conflict), just replace your local changes with server version and repeat your changes.
<p>The reason for the mess here is each test is given ID which is a GUID which tends to change once in a while.</li>
<li><strong>Not runnable tests</strong>. This doesn&#8217;t happen too often but I&#8217;ve experienced it several times already. When you try to run some tests you are told they are not runnable because there are multiple tests with the same ID (again, IDs&#8230;) &#8211; see below. Of course you haven&#8217;t played with IDs&#8230;<br />
<a href="http://dobrzanski.net/wp-content/uploads/2010/07/notrunnable.png" rel="lightbox[720]"><img src="http://dobrzanski.net/wp-content/uploads/2010/07/notrunnable-350x83.png" alt="notrunnable 350x83 Visual Studio: Common problems with VSMDI files" title="VSMDI - not runnable tests" width="350" height="83" class="alignnone size-medium wp-image-721" /></a></p>
<p>At least this is an easy one (but not when you see that for the first time). Just refresh the whole test list view &#8211; select List of Tests in Test List Editor window and click refresh.</li>
</ol>
<p>Ok, so that&#8217;s my list. Any points to add here?</p>

<p><a href="http://feedads.g.doubleclick.net/~a/zwF9N5AzDAp_ex7DiI0fpzOq4k8/0/da"><img src="http://feedads.g.doubleclick.net/~a/zwF9N5AzDAp_ex7DiI0fpzOq4k8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zwF9N5AzDAp_ex7DiI0fpzOq4k8/1/da"><img src="http://feedads.g.doubleclick.net/~a/zwF9N5AzDAp_ex7DiI0fpzOq4k8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/07/10/visual-studio-common-problems-with-vsmdi-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting active on DZone</title>
		<link>http://dobrzanski.net/2010/07/09/active-dzone/</link>
		<comments>http://dobrzanski.net/2010/07/09/active-dzone/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 19:24:51 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=715</guid>
		<description><![CDATA[A while ago, on April 6th, one of my posts, Exeptions and Errors in Java, became a DZone Big Link. As a result, the link was tweeted automatically and is available at DZone&#8217;s Twitter. I was really happy to be noticed in Web But today I got pleased even more! I was noticed again; I [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago, on April 6th, one of my posts, <a href="http://dobrzanski.net/2008/03/22/exeptions-and-errors/">Exeptions and Errors in Java</a>, became a DZone Big Link. As a result, the link was tweeted automatically and is available at <a href="http://twitter.com/dzone">DZone&#8217;s Twitter</a>. I was really happy to be noticed in Web <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Getting active on DZone Photo" /> </p>
<p>But today I got pleased even more! I was noticed again; I received invitation to join DZone&#8217;s Most Valuable Blogger program. What it is, according to DZone:</p>
<blockquote><p>DZone&#8217;s Most Valuable Blogger program brings together a group of highly talented bloggers, authors, and technologists actively writing about topics of interest to the developer community. These people are recognized in the industry for their contributions and deep technical knowledge on subjects ranging from software design and architecture to programming on a range of platforms including Java, .NET, Ruby and others.</p></blockquote>
<p>You can see the list of MVBs at <a href="http://www.dzone.com/page/mvbs">Meet the DZone MVBs</a>. At the moment there are about 200 people listed and, as far as I have noticed, only a couple of them lives in Poland.</p>
<p><em>Update, 2010-07-12</em><br />
I am now officially an MVB!</p>
<p><em>Update, 2010-07-23</em><br />
Just got an MVB t-shirt too <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Getting active on DZone Photo" /> </p>
<p><a href="http://www.dzone.com/page/mvbs" target="_blank"><img alt="MVB" src="http://dobrzanski.net/img/big-mvbbutton.png" title="MVB" class="alignnone" width="200" height="91" /></a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/OKnY-kzWkdV7FlZCV7yOQUmS4Nk/0/da"><img src="http://feedads.g.doubleclick.net/~a/OKnY-kzWkdV7FlZCV7yOQUmS4Nk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OKnY-kzWkdV7FlZCV7yOQUmS4Nk/1/da"><img src="http://feedads.g.doubleclick.net/~a/OKnY-kzWkdV7FlZCV7yOQUmS4Nk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/07/09/active-dzone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Team System: Files are not checked out automatically when edited</title>
		<link>http://dobrzanski.net/2010/06/30/visual-studio-team-system-files-checked-automatically-edited/</link>
		<comments>http://dobrzanski.net/2010/06/30/visual-studio-team-system-files-checked-automatically-edited/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:13:11 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[TFS]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=706</guid>
		<description><![CDATA[It happened to me after connection to TFS was dropped. and I was moved to offline work mode. Default VSTS settings say whenever you start editing a file it will be automatically checked out and it will appear on Pending Changes window. However, after those connection problems I no longer experienced that behavior. Solution First [...]]]></description>
			<content:encoded><![CDATA[<p>It happened to me after connection to TFS was dropped. and I was moved to offline work mode. Default VSTS settings say whenever you start editing a file it will be automatically checked out and it will appear on Pending Changes window. However, after those connection problems I no longer experienced that behavior.</p>
<h2>Solution</h2>
<p>First of all it&#8217;s worth checking VSTS Source Control related settings according to <a href="http://www.woodwardweb.com/teamprise/disabling_tfs_a.html">this article</a>. In my case everything was fine there. </p>
<p>The problem on my side was somewhere else. After I had gone offline I had to go online again (what a surprise?!). I was expecting that to happen after reconnecting to TFS, but that is not entirely true. What I had to do as well was use &#8216;Go online&#8217; button at the top of solution explorer. Once pressed it listed all the files I had modified while in offline mode and VSTS started working as before.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/6N05Pil9zzsHhMGHInldBKKFvtw/0/da"><img src="http://feedads.g.doubleclick.net/~a/6N05Pil9zzsHhMGHInldBKKFvtw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6N05Pil9zzsHhMGHInldBKKFvtw/1/da"><img src="http://feedads.g.doubleclick.net/~a/6N05Pil9zzsHhMGHInldBKKFvtw/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/06/30/visual-studio-team-system-files-checked-automatically-edited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An attempt was made to load a program with an incorrect format. Exception from HRESULT: 0x8007000B (BadImageFormatException)</title>
		<link>http://dobrzanski.net/2010/06/29/attempt-load-program-incorrect-format-exception-hresult-0x8007000b/</link>
		<comments>http://dobrzanski.net/2010/06/29/attempt-load-program-incorrect-format-exception-hresult-0x8007000b/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 14:04:24 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=702</guid>
		<description><![CDATA[Note: I assume you can rebuild the program you are having problems with because changes in its configuration settings are required. If you are struggling with this problem you are probably running 64bit OS and executing 64bit exe that loads 32bit dll, or the other way &#8211; 32bit OS on which 32bit exe tries loading [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note</strong>: I assume you can rebuild the program you are having problems with because changes in its configuration settings are required.</p>
<p>If you are struggling with this problem you are probably running 64bit OS and executing 64bit exe that loads 32bit dll, or the other way &#8211; 32bit OS on which 32bit exe tries loading 64bit dll. For the sake of this post, let&#8217;s assume this is the former matter. </p>
<h2>Solution</h2>
<p>You need to assure that 32bit dll is loaded by the program with the same bittness, even if it&#8217;s running on 64bit platform. </p>
<p>In order to achieve that you need to change the configuration settings of the project whose outcome is that exe so that platform target is <strong>always</strong> x86, disregarding configuration platform. Let&#8217;s assume that program is written in C#. </p>
<p>Open project&#8217;s properties, go to Build tab and make change as below:</p>
<p><a href="http://dobrzanski.net/wp-content/uploads/2010/06/cs_project_settings.jpg" rel="lightbox[702]"><img src="http://dobrzanski.net/wp-content/uploads/2010/06/cs_project_settings-350x140.jpg" alt="cs project settings 350x140 An attempt was made to load a program with an incorrect format. Exception from HRESULT: 0x8007000B (BadImageFormatException)" title="C# project settings" width="350" height="140" class="alignnone size-medium wp-image-703" /></a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/KKUAQAfYCThedAWOOcBkJsIkGTc/0/da"><img src="http://feedads.g.doubleclick.net/~a/KKUAQAfYCThedAWOOcBkJsIkGTc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KKUAQAfYCThedAWOOcBkJsIkGTc/1/da"><img src="http://feedads.g.doubleclick.net/~a/KKUAQAfYCThedAWOOcBkJsIkGTc/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/06/29/attempt-load-program-incorrect-format-exception-hresult-0x8007000b/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MFC: CButton and how ON_BN_DOUBLECLICKED message map works</title>
		<link>http://dobrzanski.net/2010/04/18/mfc-cbutton-onbndoubleclicked-message-map-works/</link>
		<comments>http://dobrzanski.net/2010/04/18/mfc-cbutton-onbndoubleclicked-message-map-works/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 12:24:14 +0000</pubDate>
		<dc:creator>Jarosław Dobrzański</dc:creator>
				<category><![CDATA[MFC]]></category>
		<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://dobrzanski.net/?p=683</guid>
		<description><![CDATA[Microsoft Foundation Classes (MFC) library provides CButton which, according to MSDN, can be used for creating a check box, a radio button, and a pushbutton. There are two events CButton supports: (i) ON_BN_CLICKED (single click), (ii) ON_BN_DOUBLECLICKED (double click). Let&#8217;s assume you provide a meaningful implementation for a single click and do nothing in the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/d06h2x6e%28VS.71%29.aspx">Microsoft Foundation Classes (MFC)</a> library provides CButton which, <a href="http://msdn.microsoft.com/en-us/library/yf1wax6c%28VS.80%29.aspx">according to MSDN</a>, can be used for creating a check box, a radio button, and a pushbutton. </p>
<p>There are two events CButton supports: <em>(i)</em> ON_BN_CLICKED (single click), <em>(ii)</em> ON_BN_DOUBLECLICKED (double click). Let&#8217;s assume you provide a meaningful implementation for a single click and do nothing in the event handler for the double click (empty method&#8217;s body). The result if a single click is obvious, but what will happen if user double clicks the check box (or the other CButton representation)? There are two possible answers (assuming the check box was unchecked initially):</p>
<ol>
<li>Check box will be checked, and then unchecked &#8211; a simulation of a double (single) click</li>
<li>Check box will be checked only &#8211; one action takes place now</li>
</ol>
<p><span id="more-683"></span></p>
<p>The correct answer is 2. When you analyze the behavior in details (using a debugger or logging) you will learn that when you perform a double click two event handlers are executed in the following order: ON_BN_CLICKED, and only then ON_BN_DOUBLECLICKED. So the former makes the check box checked while the latter does nothing (because of no implementation provided).</p>
<p>Let&#8217;s assume you really want a double click to be handled as if user clicked the check box twice (two single clicks). The easiest way to achieve that is to supply both event handlers with the same implementation. Perhaps this is not the best solution &#8211; what is supposed to be done is done, but user is getting an impression the check box works slightly different that they are used to. However, all in all it works <img src='http://dobrzanski.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="MFC: CButton and how ON BN DOUBLECLICKED message map works Photo" /> </p>
<p>Any better workaround?</p>

<p><a href="http://feedads.g.doubleclick.net/~a/BNmPgy2UXlNPViH7hWG9Iv6RJWQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/BNmPgy2UXlNPViH7hWG9Iv6RJWQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/BNmPgy2UXlNPViH7hWG9Iv6RJWQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/BNmPgy2UXlNPViH7hWG9Iv6RJWQ/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://dobrzanski.net/2010/04/18/mfc-cbutton-onbndoubleclicked-message-map-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.494 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-07 09:58:58 -->
