<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>the Patch-Tag blog &#187; Tips and Tricks</title>
	<atom:link href="http://blog.patch-tag.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.patch-tag.com</link>
	<description>give your code a home</description>
	<lastBuildDate>Wed, 21 Jul 2010 17:10:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.patch-tag.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4904880952ddaa0d5e7ca048ca8509af?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>the Patch-Tag blog &#187; Tips and Tricks</title>
		<link>http://blog.patch-tag.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.patch-tag.com/osd.xml" title="the Patch-Tag blog" />
	<atom:link rel='hub' href='http://blog.patch-tag.com/?pushpress=hub'/>
		<item>
		<title>https repos for patch-tag</title>
		<link>http://blog.patch-tag.com/2010/02/08/https-repos-for-patch-tag/</link>
		<comments>http://blog.patch-tag.com/2010/02/08/https-repos-for-patch-tag/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 23:30:27 +0000</pubDate>
		<dc:creator>thomashartman1</dc:creator>
				<category><![CDATA[Product Updates]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://blog.patch-tag.com/?p=282</guid>
		<description><![CDATA[Patch-tag is now https safe, so you can access your projects with cryptographic security. Just use https style urls when interacting with patch-tag. By the way &#8212; for you code shops with mission critical, high-value, national security endangering repos hosted at patch-tag &#8212; https isn&#8217;t completely safe. You could, for instance, get your password sniffed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.patch-tag.com&blog=6363373&post=282&subd=patchtag&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><a href="https://patch-tag.com">Patch-tag</a> is now https safe, so you can access your projects with cryptographic security. Just use https style urls when interacting with patch-tag.</p>
<p>By the way &#8212; for you code shops with mission critical, high-value, national security endangering repos hosted at patch-tag &#8212; https isn&#8217;t completely safe.</p>
<p>You could, for instance, get your password sniffed by a <a href="http://www.youtube.com/watch?v=91DwA5aFxLg">man in the middle attack with arp poisoning</a>, if you are in a public network like an internet cafe, or on a trusted network with a coworker who enjoys hanky panky.</p>
<p>There is a simple thing you can do to foil the terrorists though &#8212; <a href="http://arvindn.livejournal.com/123183.html">just click outside the text fields and type some gibberish when you are entering your password</a>.</p>
<p>Ha! Take that script kiddies!</p>
<p>Please enjoy secure repos at patch tag, and as always&#8230;</p>
<p>Happy tagging.</p>
<p>************************</p>
<p>UPDATE: Please note the comments which contradict some of my claims. I think I may be wrong about some of this stuff, and am taking a backtrack to make sure my understanding is solid. Watch this space.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patchtag.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patchtag.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patchtag.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patchtag.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patchtag.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patchtag.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patchtag.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patchtag.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patchtag.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patchtag.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.patch-tag.com&blog=6363373&post=282&subd=patchtag&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.patch-tag.com/2010/02/08/https-repos-for-patch-tag/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">thomashartman1</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO: Setup Windows for use with darcs2 and Patch-Tag</title>
		<link>http://blog.patch-tag.com/2009/03/01/howto-setup-windows-for-use-with-darcs2-and-patch-tag/</link>
		<comments>http://blog.patch-tag.com/2009/03/01/howto-setup-windows-for-use-with-darcs2-and-patch-tag/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 09:21:59 +0000</pubDate>
		<dc:creator>Matthew Elder</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[darcs]]></category>
		<category><![CDATA[pageant]]></category>
		<category><![CDATA[patch-tag]]></category>
		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://blog.patch-tag.com/?p=27</guid>
		<description><![CDATA[I thought that Windows users could use an up-to-date howto on getting Darcs up and running. First I will show what needs to be downloaded. Then I will describe the configuration tweaks that need to be performed. Required Downloads PuTTY, Plink, PSCP, PSFTP, Pageant, and PuTTYgen executables http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Darcs 2.2.1 http://homepage.mac.com/kirby81_it/darcs/darcs-2.2.1-win1.zip (see Darcs Binaries for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.patch-tag.com&blog=6363373&post=27&subd=patchtag&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I thought that Windows users could use an up-to-date howto on getting Darcs up and running. First I will show what needs to be downloaded. Then I will describe the configuration tweaks that need to be performed.</p>
<h3>Required Downloads</h3>
<ul>
<li>PuTTY, Plink, PSCP, PSFTP, Pageant, and PuTTYgen executables<br />
<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a></li>
<li>Darcs 2.2.1<br />
<a href="http://homepage.mac.com/kirby81_it/darcs/darcs-2.2.1-win1.zip">http://homepage.mac.com/kirby81_it/darcs/darcs-2.2.1-win1.zip</a><br />
(see <a href="http://wiki.darcs.net/DarcsWiki/Binaries">Darcs Binaries</a> for more info)</li>
</ul>
<h3>Required Configuration Tweaks</h3>
<ol>
<li>Create a new folder c:\bin</li>
<li>Copy all the downloaded exe and dll files into c:\bin</li>
<li>Rename plink.exe to ssh.exe.</li>
<li>Rename psftp.exe to sftp.exe</li>
<li>Rename pscp.exe to scp.exe</li>
<li>Prepend &#8216;C:\bin;&#8217; to your PATH environment variable. See my <a href="http://blog.patch-tag.com/2009/02/25/how-to-get-around-firewalls-using-patch-tag/">previous post</a> on how to do this.</li>
<li>Use PuTTYgen to <a href="http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/pka-putty.html">generate and store your key</a>. I recommend leaving the password blank for your key, otherwise you have to enter it every time.</li>
<li>Copy your public ssh key (from PuTTYgen) and add it to &#8216;my ssh keys&#8217; on Patch-Tag.</li>
<li>Run Pageant and add your previously generated key (the previous link describes this as well).</li>
<li>Voila! You are now setup to push and pull repositories with Darcs and Patch-Tag!</li>
</ol>
<h3>Thoughts</h3>
<p>How hard is this for most of you Darcs Windows users out there? Would you be interested in an installer which sets this all up for you?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patchtag.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patchtag.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patchtag.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patchtag.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patchtag.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patchtag.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patchtag.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patchtag.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patchtag.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patchtag.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.patch-tag.com&blog=6363373&post=27&subd=patchtag&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.patch-tag.com/2009/03/01/howto-setup-windows-for-use-with-darcs2-and-patch-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mae</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get around firewalls using Patch-Tag</title>
		<link>http://blog.patch-tag.com/2009/02/25/how-to-get-around-firewalls-using-patch-tag/</link>
		<comments>http://blog.patch-tag.com/2009/02/25/how-to-get-around-firewalls-using-patch-tag/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 19:05:03 +0000</pubDate>
		<dc:creator>Matthew Elder</dc:creator>
				<category><![CDATA[Product Updates]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[darcs]]></category>
		<category><![CDATA[firewalls]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.patch-tag.com/?p=16</guid>
		<description><![CDATA[We have been tweaking the retrieval parameters for repository access via SSH. Did you know you can get around firewalls that block port 22? Thats right, we have now added support for this. To successfully circumvent a firewall which blocks port 22, you can use port 443 (most firewalls will let this through, it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.patch-tag.com&blog=6363373&post=16&subd=patchtag&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>We have been tweaking the retrieval parameters for repository access via SSH. Did you know you can get around firewalls that block port 22? Thats right, we have now added support for this.</p>
<p>To successfully circumvent a firewall which blocks port 22, you can use port 443 (most firewalls will let this through, it is the widely used SSL protocol). You will also need to change the host you are pointing to. These are the basic steps:</p>
<ol>
<li>Set the environment variable &#8216;SSH_PORT&#8217; to 443</li>
<li>Anywhere that you were using &#8216;patch-tag.com&#8217; before via the SSH method, replace this with &#8216;ssh.patch-tag.com&#8217;</li>
</ol>
<h3>Setting the SSH_PORT environment variable on windows</h3>
<h4>Method 1: On the command-line</h4>
<p>Before you use darcs get or darcs pull, type this command:</p>
<pre style="padding-left:30px;">set SSH_PORT=443</pre>
<h4>Method 2: Set a permanent environment variable for your user</h4>
<ol>
<li>Right-click My Computer</li>
<li>Left-click Properties</li>
<li>Left-click the Advanced tab</li>
<li>Left-click Environment Variables</li>
<li>Left-click New in the &#8220;User variables&#8221; section</li>
<li>Enter the variable name &#8216;SSH_PORT&#8217; and the variable value &#8217;443&#8242;</li>
<li>Left-click OK</li>
<li>Left-click OK</li>
<li>You will need to restart any command prompts for this to take effect</li>
</ol>
<h3>Setting the SSH_PORT environment variable on Linux/Unix/Mac OS X</h3>
<h4>Method 1: on the command-line</h4>
<p>Before you use darcs get or darcs pull, type this command:</p>
<pre style="padding-left:30px;">export SSH_PORT=443</pre>
<h4>Method 2: Set a permanent environment variable for your user</h4>
<p>Assuming you are using bash, you would type this:</p>
<pre style="padding-left:30px;">echo "export SSH_PORT=443" &gt;&gt; ~/.bashrc</pre>
<p>This adds the exported variable to the startup script for your shell. To refresh your current shell with the new settings:</p>
<pre style="padding-left:30px;">. ~/.bashrc</pre>
<h3>Putting it all together</h3>
<p>Once you&#8217;ve set up the environment variable, you just need to change the host from &#8216;patch-tag&#8217; to &#8216;ssh.patch-tag.com&#8217;.</p>
<p>So if you were using this before:</p>
<pre style="padding-left:30px;">darcs get johndoe@patch-tag.com:/privaterepos/myrepo</pre>
<p>It now becomes:</p>
<pre style="padding-left:30px;">darcs get johndoe@ssh.patch-tag.com:/privaterepos/myrepo</pre>
<h3>Update: SSH_PORT is broken if you use putty on Windows</h3>
<p>There is a bug in darcs when using putty as your ssh client on Windows. <em>The above metioned method will not work if you use putty on Windows</em>. These are my findings with putty 0.60 and darcs version 2.0.2. The problem is that darcs uses the -p option to specify the ssh port when putty only supports the -P option to specify the port. As a result you get an error when you try to push if you use the SSH_PORT environment variable. I am submitting a <a href="http://bugs.darcs.net/issue1371">bug report</a> for this.</p>
<h4>The Workaround</h4>
<p>You have to specify three separate environment variables in windows. This assumes you have ssh, sftp, and scp from the Putty project in your path:</p>
<pre style="padding-left:30px;">set DARCS_SCP=scp -P 443</pre>
<pre style="padding-left:30px;">set DARCS_SFTP=sftp -P 443</pre>
<pre style="padding-left:30px;">set DARCS_SSH=ssh -P 443</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patchtag.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patchtag.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patchtag.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patchtag.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patchtag.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patchtag.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patchtag.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patchtag.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patchtag.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patchtag.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.patch-tag.com&blog=6363373&post=16&subd=patchtag&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.patch-tag.com/2009/02/25/how-to-get-around-firewalls-using-patch-tag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">mae</media:title>
		</media:content>
	</item>
	</channel>
</rss>