<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Arnout's Eclectica &#187; Tips &amp; Tricks</title>
	<atom:link href="http://grootveld.com/archives/category/tips-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://grootveld.com</link>
	<description>But I digress...</description>
	<lastBuildDate>Wed, 10 Feb 2010 20:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Making HttpWebRequest work while having Fiddler decrypt SSL</title>
		<link>http://grootveld.com/archives/22/making-httpwebrequest-work-while-having-fiddler-decrypt-ssl</link>
		<comments>http://grootveld.com/archives/22/making-httpwebrequest-work-while-having-fiddler-decrypt-ssl#comments</comments>
		<pubDate>Thu, 29 May 2008 11:54:49 +0000</pubDate>
		<dc:creator>amg</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Reminder]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://grootveld.com/archives/22</guid>
		<description><![CDATA[Just a quick reminder to myself, so that I can forget about it... Fiddler can act as a man-in-the-middle and decrypt SSL traffic, but then System.Net.Security rightfully complains about an invalid remote certificate ("The remote certificate is invalid according to the validation procedure."). This results in a System.Net.WebException "The underlying connection was closed: Could not [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick reminder to myself, so that I can forget about it...</p>
<p><a href='http://www.fiddlertool.com'>Fiddler</a> can act as a man-in-the-middle and decrypt SSL traffic, but then System.Net.Security rightfully complains about an invalid remote certificate ("The remote certificate is invalid according to the validation procedure."). This results in a System.Net.WebException "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.".</p>
<p>To prevent this from happening:</p>
<pre class="codesample">
<span style="color: #2b91af;">ServicePointManager</span>.ServerCertificateValidationCallback = <span style="color: blue;">delegate</span> { <span style="color: blue;">return</span> <span style="color: blue;">true</span>; };
</pre>
<p>Just be sure to not include this in production code :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://grootveld.com/archives/22/making-httpwebrequest-work-while-having-fiddler-decrypt-ssl/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Copying message box text to the clipboard</title>
		<link>http://grootveld.com/archives/13/copying-message-box-text-to-the-clipboard</link>
		<comments>http://grootveld.com/archives/13/copying-message-box-text-to-the-clipboard#comments</comments>
		<pubDate>Tue, 09 May 2006 20:22:26 +0000</pubDate>
		<dc:creator>amg</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://grootveld.com/archives/13</guid>
		<description><![CDATA[(This post triggered by receiving a lovely screen dump of a message box. A message box covering almost the complete screen, and containing lots of serialized XML. XML containing lots of entitified HTML...)]]></description>
			<content:encoded><![CDATA[<p><img src='/images/Dialog2Clipboard.png' width='314' height='100' alt='Screen dump of standard Windows message box containing the text &quot;Did you know that CTRL-C copies this text to the clipboard?&quot;'/></p>
<p>(This post triggered by receiving a lovely <em>screen dump</em> of a message box. A message box covering almost the complete screen, and containing lots of serialized XML. XML containing lots of entitified HTML...)</p>
]]></content:encoded>
			<wfw:commentRss>http://grootveld.com/archives/13/copying-message-box-text-to-the-clipboard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMD does not support UNC paths as current directories. Use PUSHD instead.</title>
		<link>http://grootveld.com/archives/5/test-post</link>
		<comments>http://grootveld.com/archives/5/test-post#comments</comments>
		<pubDate>Tue, 25 Apr 2006 18:41:43 +0000</pubDate>
		<dc:creator>amg</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://grootveld.com/blog/archives/5</guid>
		<description><![CDATA[CMD.exe does not allow changing the current directory to a UNC path. If you try, it complains that "CMD does not support UNC paths as current directories.". PUSHD to the rescue: C:\\> pushd \\\\serendipity\\D$ Z:\\> Do something here with the files on Z: Z:\\> popd C:\\> _ PUSHD temporarily maps a drive letter to the [...]]]></description>
			<content:encoded><![CDATA[<p><code>CMD.exe</code> does not allow changing the current directory to a UNC path. If you try, it complains that "CMD does not support UNC paths as current directories.".</p>
<p><code>PUSHD</code> to the rescue:</p>
<pre class="dosbox">C:\\> pushd \\\\serendipity\\D$
Z:\\>

   <em>Do something here with the files on Z:</em>

Z:\\> popd
C:\\> _</pre>
<p><code>PUSHD</code> temporarily maps a drive letter to the specified UNC share (starting from <code>Z:</code> on down until it finds one that's available). Until you call <code>POPD</code>, you can access the share via that drive letter (also from other DOS boxes and Windows Explorer).</p>
<p>Sure beats mapping and unmapping shares all the time, but keep in mind that the <code>PUSHD</code> trick only works if you don't need to specify credentials to access the share.</p>
]]></content:encoded>
			<wfw:commentRss>http://grootveld.com/archives/5/test-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

