<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for code.commongroove.com</title>
	<atom:link href="http://code.commongroove.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.commongroove.com</link>
	<description>C#, T-SQL, and general IT mojo</description>
	<lastBuildDate>Fri, 27 Jan 2012 20:29:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Binding Apache and IIS both to Port 80 on Different IPs / Same NIC by IIS7.5</title>
		<link>http://code.commongroove.com/2009/09/25/binding-apache-and-iis-both-to-port-80-on-different/comment-page-1/#comment-2022</link>
		<dc:creator>IIS7.5</dc:creator>
		<pubDate>Fri, 27 Jan 2012 20:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2009/09/24/binding-apache-and-iis-both-to-port-80-on-different.aspx#comment-2022</guid>
		<description>With IIS 7.5, do the following at a command prompt:

netsh
http
sho iplisten (shouldn&#039;t have any bindings)
add iplisten ipaddress=X.X.X.X (where x.x.x.x is your ip address you want to bind to)
sho iplisten (you should now see x.x.x.x in the list)
exit

Then you netstat to verify:

netstat -an

You should see x.x.x.x:80 in the list now</description>
		<content:encoded><![CDATA[<p>With IIS 7.5, do the following at a command prompt:</p>
<p>netsh<br />
http<br />
sho iplisten (shouldn&#8217;t have any bindings)<br />
add iplisten ipaddress=X.X.X.X (where x.x.x.x is your ip address you want to bind to)<br />
sho iplisten (you should now see x.x.x.x in the list)<br />
exit</p>
<p>Then you netstat to verify:</p>
<p>netstat -an</p>
<p>You should see x.x.x.x:80 in the list now</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SSIS: Use Two OLE DB Destination Adapters to Catch Insertion/Constraint Errors by Rohan Cragg</title>
		<link>http://code.commongroove.com/2011/09/16/ssis-use-two-ole-db-destination-adapters-to-catch-insertionconstraint-errors/comment-page-1/#comment-1364</link>
		<dc:creator>Rohan Cragg</dc:creator>
		<pubDate>Fri, 23 Dec 2011 12:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/?p=307#comment-1364</guid>
		<description>Wow, thanks so much for this one. I&#039;d never have thought to do this.</description>
		<content:encoded><![CDATA[<p>Wow, thanks so much for this one. I&#8217;d never have thought to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.Net MVC: Partially Secured Sites / Switching from HTTPS back to HTTP by Eric Carr</title>
		<link>http://code.commongroove.com/2011/09/06/asp-net-mvc-partially-secured-sites-switching-from-https-back-to-http/comment-page-1/#comment-1212</link>
		<dc:creator>Eric Carr</dc:creator>
		<pubDate>Thu, 15 Dec 2011 00:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/?p=300#comment-1212</guid>
		<description>This will result in an endless loop if a Controller has [RequiresHttps], so I&#039;ve modified your code slightly to check the Controller as well (passing false to not check up the chain) as such:

&lt;code&gt;
 static Type _t = typeof(RequireHttpsAttribute);

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (filterContext.HttpContext.Request.IsSecureConnection &amp;&amp; 
                !filterContext.ActionDescriptor.ControllerDescriptor.IsDefined(_t,false) &amp;&amp; 
                !filterContext.ActionDescriptor.IsDefined(_t, true))
            {
                // redirect to un-secured page
                string url = &quot;http://&quot; + filterContext.HttpContext.Request.Url.Host + filterContext.HttpContext.Request.RawUrl;
                filterContext.HttpContext.Response.Redirect(url);
            }

            base.OnActionExecuting(filterContext);
        }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This will result in an endless loop if a Controller has [RequiresHttps], so I&#8217;ve modified your code slightly to check the Controller as well (passing false to not check up the chain) as such:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;static Type _t = typeof(RequireHttpsAttribute);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected override void OnActionExecuting(ActionExecutingContext filterContext)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (filterContext.HttpContext.Request.IsSecureConnection &amp;&amp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !filterContext.ActionDescriptor.ControllerDescriptor.IsDefined(_t,false) &amp;&amp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !filterContext.ActionDescriptor.IsDefined(_t, true))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // redirect to un-secured page<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string url = &quot;http://&quot; + filterContext.HttpContext.Request.Url.Host + filterContext.HttpContext.Request.RawUrl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filterContext.HttpContext.Response.Redirect(url);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; base.OnActionExecuting(filterContext);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</div></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Regex to Clean Out HTML from Text by Greg</title>
		<link>http://code.commongroove.com/2007/10/18/regex-to-clean-out-html-from-text/comment-page-1/#comment-599</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 27 Sep 2011 14:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2008/07/30/regex-to-clean-out-html-from-text.aspx#comment-599</guid>
		<description>Here&#039;s another way to do it that lets you have a &quot;white-list&quot; of acceptable html:

[cc lang=&quot;csharp&quot;]
const string pattern = @&quot;&lt;/?(?(?=b&#124;span&#124;i&#124;ul&#124;li&gt;)notag&#124;[a-zA-Z0-9]+)(?:\s[a-zA-Z0-9\-]+=?(?:([&quot;&quot;,&#039;]?).*?\1?)?)*\s*/?&gt;&quot;;
string filtered = Regex.Replace(html, pattern, &quot;&quot;, RegexOptions.IgnoreCase &#124; RegexOptions.Multiline);
return filtered;
[/cc]</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another way to do it that lets you have a &#8220;white-list&#8221; of acceptable html:</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">const</span> <span style="color: #6666cc; font-weight: bold;">string</span> pattern <span style="color: #008000;">=</span> <span style="color: #666666;">@&quot;&lt;/?(?(?=b|span|i|ul|li&gt;)notag|[a-zA-Z0-9]+)(?:\s[a-zA-Z0-9\-]+=?(?:([&quot;</span><span style="color: #666666;">&quot;,']?).*?<span style="color: #008080; font-weight: bold;">\1</span>?)?)*<span style="color: #008080; font-weight: bold;">\s</span>*/?&gt;&quot;</span><span style="color: #008000;">;</span><br />
<span style="color: #6666cc; font-weight: bold;">string</span> filtered <span style="color: #008000;">=</span> Regex<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>html, pattern, <span style="color: #666666;">&quot;&quot;</span>, RegexOptions<span style="color: #008000;">.</span><span style="color: #0000FF;">IgnoreCase</span> <span style="color: #008000;">|</span> RegexOptions<span style="color: #008000;">.</span><span style="color: #0000FF;">Multiline</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">return</span> filtered<span style="color: #008000;">;</span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on So I got a fake Intel Core i7-920 by MikeD</title>
		<link>http://code.commongroove.com/2010/03/10/so-i-got-a-fake-intel-core-i7-920/comment-page-1/#comment-14</link>
		<dc:creator>MikeD</dc:creator>
		<pubDate>Fri, 26 Mar 2010 00:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2010/03/09/so-i-got-a-fake-intel-core-i7-920.aspx#comment-14</guid>
		<description>Glad to hear NewEgg was at their usual responsive selves!</description>
		<content:encoded><![CDATA[<p>Glad to hear NewEgg was at their usual responsive selves!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Quickly Clone a Serializable Object in C# by Sophi</title>
		<link>http://code.commongroove.com/2007/10/31/quickly-clone-a-serializable-object-in-c/comment-page-1/#comment-6</link>
		<dc:creator>Sophi</dc:creator>
		<pubDate>Sat, 23 Jan 2010 22:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/10/30/quickly-clone-a-serializable-object-in-c.aspx#comment-6</guid>
		<description>Is it deep clone?</description>
		<content:encoded><![CDATA[<p>Is it deep clone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Quickly Clone a Serializable Object in C# by auser</title>
		<link>http://code.commongroove.com/2007/10/31/quickly-clone-a-serializable-object-in-c/comment-page-1/#comment-5</link>
		<dc:creator>auser</dc:creator>
		<pubDate>Mon, 11 Jan 2010 18:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/10/30/quickly-clone-a-serializable-object-in-c.aspx#comment-5</guid>
		<description>I really liked your method. thanks for sharing this:) hope many people will find it useful as I did. have read lots of articles on the topic, but have never thought that could be so easy</description>
		<content:encoded><![CDATA[<p>I really liked your method. thanks for sharing this:) hope many people will find it useful as I did. have read lots of articles on the topic, but have never thought that could be so easy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apache/Subversion: SSL negotiation failed: SSL error: parse tlsext by PJ</title>
		<link>http://code.commongroove.com/2009/09/25/apachesubversion-ssl-negotiation-failed-ssl-error-parse-tlsext/comment-page-1/#comment-12</link>
		<dc:creator>PJ</dc:creator>
		<pubDate>Sun, 18 Oct 2009 14:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2009/09/25/apachesubversion-ssl-negotiation-failed-ssl-error-parse-tlsext.aspx#comment-12</guid>
		<description>Thanks a lot! I used&lt;br /&gt;SSLProtocol +ALL -SSLv2 -TLSv1&lt;br /&gt;to disable the problematic TLSv1 and it started to work!</description>
		<content:encoded><![CDATA[<p>Thanks a lot! I used<br />SSLProtocol +ALL -SSLv2 -TLSv1<br />to disable the problematic TLSv1 and it started to work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Quickly Clone a Serializable Object in C# by greg</title>
		<link>http://code.commongroove.com/2007/10/31/quickly-clone-a-serializable-object-in-c/comment-page-1/#comment-4</link>
		<dc:creator>greg</dc:creator>
		<pubDate>Fri, 21 Aug 2009 05:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/10/30/quickly-clone-a-serializable-object-in-c.aspx#comment-4</guid>
		<description>Great idea - thanks galaktor</description>
		<content:encoded><![CDATA[<p>Great idea &#8211; thanks galaktor</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Quickly Clone a Serializable Object in C# by galaktor^</title>
		<link>http://code.commongroove.com/2007/10/31/quickly-clone-a-serializable-object-in-c/comment-page-1/#comment-3</link>
		<dc:creator>galaktor^</dc:creator>
		<pubDate>Thu, 20 Aug 2009 19:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://code.commongroove.com/archive/2007/10/30/quickly-clone-a-serializable-object-in-c.aspx#comment-3</guid>
		<description>Nice. I suggest adding a check to the method:&lt;br /&gt;&lt;br /&gt;if( !cloneThis.GetType().IsSerializable )&lt;br /&gt;{&lt;br /&gt;    throw new ArgumentException( &quot;Object must be serializable.&quot;);&lt;br /&gt;}</description>
		<content:encoded><![CDATA[<p>Nice. I suggest adding a check to the method:</p>
<p>if( !cloneThis.GetType().IsSerializable )<br />{<br />    throw new ArgumentException( &#8220;Object must be serializable.&#8221;);<br />}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

