

<?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>Gilles Ruppert &#187; Tools</title>
	<atom:link href="http://latower.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://latower.com</link>
	<description>a.k.a. elduderino78</description>
	<lastBuildDate>Thu, 05 Aug 2010 00:59:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Creating patch files with git</title>
		<link>http://latower.com/2010/06/creating-patch-files-with-git/</link>
		<comments>http://latower.com/2010/06/creating-patch-files-with-git/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 21:42:43 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://latower.com/?p=107</guid>
		<description><![CDATA[Git has a built in way to create patches and Github has a great write up on this. The git format-patch command is useful if all your changes are committed and you want to create a patch of certain commits. &#8230; <a href="http://latower.com/2010/06/creating-patch-files-with-git/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Git has a built in way to create patches and <a href="http://wiki.github.com/rakudo/rakudo/steps-to-create-a-patch">Github has a great write up on this</a>.<br />
The <code>git format-patch</code> command is useful if all your changes are committed and you want to create a patch of certain commits.</p>
<p>Sometimes however you have changes that you can&#8217;t or don&#8217;t want to commit for whatever reason. Git lets you easily create a standard patch file that you can apply on another clone or branch.</p>
<p>To create the patch:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git <span style="color: #c20cb9; font-weight: bold;">diff</span> <span style="color: #660033;">--no-prefix</span> <span style="color: #000000; font-weight: bold;">&gt;</span> path-to-patch<span style="color: #000000; font-weight: bold;">/</span>name-of-the-patch-file</pre></div></div>

<p>To apply the patch:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-p0</span> <span style="color: #000000; font-weight: bold;">&lt;</span> path-to-patch<span style="color: #000000; font-weight: bold;">/</span>name-of-the-patch-file</pre></div></div>

<p>Voila.</p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2010/06/creating-patch-files-with-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating the locate database on OSX</title>
		<link>http://latower.com/2010/03/updating-the-locate-database-on-osx/</link>
		<comments>http://latower.com/2010/03/updating-the-locate-database-on-osx/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 22:14:09 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://latower.com/?p=103</guid>
		<description><![CDATA[locate is a very handy command to find files on the system. It is much faster than find since it keeps a database of all the system files. This database is periodically updated, but if you want to update it &#8230; <a href="http://latower.com/2010/03/updating-the-locate-database-on-osx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code>locate</code> is a very handy command to find files on the system. It is much faster than <code>find</code> since it keeps a database of all the system files. This database is periodically updated, but if you want to update it yourself, just use the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>locate.updated</pre></div></div>

<p><a href="http://www.devdaily.com/blog/post/linux-unix/use-linux-locate-command">Here you can get a bit more information on this handy little command</a></p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2010/03/updating-the-locate-database-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating JSLint for vim</title>
		<link>http://latower.com/2009/10/integrating-jslint-for-vim/</link>
		<comments>http://latower.com/2009/10/integrating-jslint-for-vim/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 22:25:08 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JSLint]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://latower.com/?p=94</guid>
		<description><![CDATA[A couple of months ago I moved away from TextMate and started using vim for most of my text editing needs. I love TextMate, but I needed a powerful text editor that is also available on other operating systems. Overall &#8230; <a href="http://latower.com/2009/10/integrating-jslint-for-vim/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago I moved away from TextMate and started using vim for most of my text editing needs. I love TextMate, but I needed a powerful text editor that is also available on other operating systems.</p>
<p>Overall I love vim: it has a steep learning curve, but it&#8217;s very powerful.If you are touch-typing and loath the mouse as much as I do, it&#8217;s fantastic. But I found myself missing out on some of TextMate&#8217;s great bundles, and JSLint integration is one of them. After some googling around and looking at different solutions, this is the one that was easiest to install and I like the functionality.</p>
<p>First <a title="Download and install JSLint" href="http://www.javascriptlint.com/download.htm" target="_blank">download</a> &amp; install JavaScript Lint. On OSX &amp; Linux, you can do so by copying the resulting folder into your PATH. I put it in /usr/local/bin/.</p>
<p>Then <a title="Download JavaScript Lint vim plugin" href="http://www.vim.org/scripts/script.php?script_id=2578" target="_blank">get the JavaScriptLint vim plugin</a> by Joe Stelmach and restart vim.</p>
<p>Off you go. When you save a JavaScript file in vim, you will get a window with JSLint warnings. If you want to configure JSLint to show/hide certain errors, you can edit the config (jsl.default.conf) in the folder. You might want to backup the file before editing it.</p>
<p>Happy linting!</p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2009/10/integrating-jslint-for-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading the Subversion command line client on Mac OSX Leopard</title>
		<link>http://latower.com/2009/05/upgrading-subversion-on-osx/</link>
		<comments>http://latower.com/2009/05/upgrading-subversion-on-osx/#comments</comments>
		<pubDate>Wed, 20 May 2009 23:04:13 +0000</pubDate>
		<dc:creator>elduderino78</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://latower.com/?p=75</guid>
		<description><![CDATA[UPDATE: Since I wrote this post, I found a couple of other ways of upgrading the Subversion command line client. One option is to install the package via MacPorts or Homebrew. If you use Homebrew, you probably don&#8217;t have to &#8230; <a href="http://latower.com/2009/05/upgrading-subversion-on-osx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><ins datetime="2010-08-05T00:38:42+00:00">UPDATE: Since  I wrote this post, I found a couple of other ways of upgrading the Subversion command line client.</p>
<p>One option is to install the package via <a href="http://www.macports.org/">MacPorts</a> or <a href="http://mxcl.github.com/homebrew/">Homebrew</a>. If you use Homebrew, you probably don&#8217;t have to do anything else, as Homebrew sets up the symlinks automatically. If you install via MacPorts, you have the same issue as you do with the Collabnet installer.</p>
<p>Instead of creating symlinks though, you can also change the PATH environment variable. To do this, open <code>~/.bash_profile</code> or <code>~/.bashrc</code> in your favourite editor (<a href="http://www.vim.org/">vim</a>) and make sure that you have a line similar to this:</p>
<p><code>export PATH=/opt/local/bin:/opt/local/sbin:$PATH</code></p>
<p>This will make sure that <code>/opt/local/bin/</code>, which contains the MacPorts installs, will be checked before any other locations. MacPorts <em>should</em> add this by itself. This makes sure that svn as installed by MacPorts will be used.</p>
<p>As before: you can check which svn binary you are using by typing <code>which svn</code> and <code>svn --version</code> in the terminal.</p>
<p>Hope this helps!</p>
<h3>Original post</h3>
<p></ins><br />
OSX Leopard ships with Subversion 1.4.x by default. Since then, SVN has had 2 major upgrades (merge tracking anyone?). To make things easy, there is a binary available at <a href="http://www.open.collab.net/downloads/community/">Collab.net</a>. But unfortunately you need to do some work yourself.</p>
<p>The path of the built in Subversion command line client is different to the one that the Collab.net Community binary is installed to. The following steps will fix this. </p>
<p>Disclaimer &#8211; Be careful: when you use the Terminal you are flying without a safety net! No undo &amp; no restore from trash. Do this at your own risk and don&#8217;t forget to have an up-to-date backup!!!</p>
<ol>
<li>install the binary downloaded to Collab.net</li>
<li>open your Terminal and check which version of SVN you are using by typing <code>svn --version</code>. This should say 1.4.x</li>
<li>check which installed instance of SVN the OS is using by typing <code>which svn</code>. This will return the path to the SVN version you are using, which probably is <code>/usr/local/bin/svn</code></li>
<li>check whether the Collab.net version is installed by going to it: <code>cd /opt/subversion/bin</code>. Doing an <code>ls</code> should show you the subversion files</li>
<li>Backup the current svn location: by going to it (<code>cd /usr/local/bin</code>) and copying it to your desktop or wherever you fancy (<code>mv svn* ~/Desktop/</code>)</li>
<li>now you need to create <a href="http://en.wikipedia.org/wiki/Symbolic_link">symlinks</a> to the Collab.net binaries:
<ul>
<li><code>ln -s /opt/subversion/bin/svn svn</code></li>
<li><code>ln -s /opt/subversion/bin/svnadmin svnadmin</code></li>
<li><code>ln -s /opt/subversion/bin/svndumpfilter svndumpfilter</code></li>
<li><code>ln -s /opt/subversion/bin/svnlook svnlook</code></li>
<li><code>ln -s /opt/subversion/bin/svnserve svnserve</code></li>
<li><code>ln -s /opt/subversion/bin/svnsync svnsync</code></li>
<li><code>ln -s /opt/subversion/bin/svnversion svnversion</code></li>
</ul>
</li>
<li>That should be it</li>
</ol>
<p>The beauty is that you only need to do this once. The next time you upgrade your Subversion client, the symlinks will just point to the updated files and everything should be fine. As I said earlier though: only do this if you feel comfortable on the command line.</p>
<p><ins datetime="2009-05-27T23:06:12+00:00">UPDATE: I have been told that some people seem to have SVN installed in <code>/usr/bin/</code>. Just use the path that is returned by the <code>which svn</code> command. You might also need to use <code>sudo</code> to run some of the command (i.e. move).</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://latower.com/2009/05/upgrading-subversion-on-osx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
