<?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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Doctor What</title>
	
	<link>http://docwhat.org</link>
	<description>Some men are discovered; others are found out</description>
	<lastBuildDate>Sat, 21 Jan 2012 04:17:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<feedburner:info uri="docwhat" /><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-sa/2.5/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-sa/2.5/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://docwhat.gerf.org/feed/" /><feedburner:emailServiceId>docwhat</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://docwhat.gerf.org/feed/" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Fdocwhat.gerf.org%2Ffeed%2F" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Chocolatatum meum butyro vecordi tuo contaminavisti!</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/QaSpap6ch_U/</link>
		<comments>http://docwhat.org/2012/01/chocolatatum-meum-butyro-vecordi-tuo-contaminavisti/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 04:17:15 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[The World Around Us]]></category>
		<category><![CDATA[latin]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=822</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2012/01/pbcups.png" class="wp-post-image-right wp-post-image" alt="Image from wikipedia" title="Image from wikipedia" /&gt;&amp;#8220;Chocolatatum meum butyro vecordi tuo contaminavisti!&amp;#8221; is how you say &amp;#8220;You got your chocolate in my peanut butter!&amp;#8221; in latin. Just thought you should know. Thanks to @fadeaccompli for the translation and wikipedia for the picture.</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2012/01/pbcups.png" class="wp-post-image-left wp-post-image" alt="Image from wikipedia" title="Image from wikipedia" /><p><span class="dquo">&#8220;</span>Chocolatatum meum butyro vecordi tuo contaminavisti!&#8221; is how you say <span class="dquo">&#8220;</span>You got your chocolate in my peanut butter!&#8221; in latin.</p>
<p>Just thought you should know.</p>
<p><span id="more-822"></span></p>
<p><em>Thanks to <a href="https://twitter.com/#!/fadeaccompli"  class="extlink">@fadeaccompli</a> for the translation and <a href="http://en.wikipedia.org/wiki/Reese%27s_Peanut_Butter_Cups"  class="extlink">wikipedia</a> for the picture.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2012/01/chocolatatum-meum-butyro-vecordi-tuo-contaminavisti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2012/01/chocolatatum-meum-butyro-vecordi-tuo-contaminavisti/</feedburner:origLink></item>
		<item>
		<title>PSA: Turn on 2-step verification in Google</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/p8pS3f1Ak08/</link>
		<comments>http://docwhat.org/2012/01/getting-started-with-2-step-verification-accounts-help/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 03:06:22 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[The World Around Us]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=813</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2012/01/guard-lock-e1326596625843.jpg" class="wp-post-image-left wp-post-image" alt="Picture of a Guard Lock by CarbonNYC from flickr." title="Picture of a Guard Lock by CarbonNYC from flickr." /&gt;If you use any Google services (GMail, GTalk, etc.) and you care even a little bit about the data in that account, then you should turn on 2-step verification. If you need a story to explain why you need this, the check out this story by James Follow as he recounts how his wife&amp;#8217;s account [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2012/01/guard-lock-e1326596625843.jpg" class="wp-post-image-right wp-post-image" alt="Picture of a Guard Lock by CarbonNYC from flickr." title="Picture of a Guard Lock by CarbonNYC from flickr." /><p>If you use any Google services (GMail, GTalk, etc.) and you care even a little bit about the data in that account, then you should turn on <a href="http://bit.ly/w81zSc"  class="extlink">2-step</a> verification.</p>
<p>If you need a story to explain why you need this, the check out this story by James Follow as he recounts <a href="http://bit.ly/zC1LdH"  class="extlink">how his wife&#8217;s account was hacked</a> (This is an article from <em>The Atlantic</em>).</p>
<p><span id="more-813"></span></p>
<blockquote><p>
  When she looked at her Inbox, and her Archives, and even the Trash and Spam folders in her account, she found—absolutely nothing. Of her allocated 7 gigabytes of storage, 0.0 gigabytes were in use, versus the 4+ gigabytes shown the day before. Six years’ worth of correspondence and everything that went with it were gone. All the notes, interviews, recollections, and attached photos from our years of traveling through China. All the correspondence with and about her father in the last years of his life. The planning for our sons’ weddings; the exchanges she’d had with subjects, editors, and readers of her recent book; the accounting information for her projects; the travel arrangements and appointments she had for tomorrow and next week and next month; much of the incidental-expense data for the income-tax return I was about to file—all of this had been erased. It had not just been put in the “Trash” folder but permanently deleted.
</p></blockquote>
<p>It&#8217;s almost like a modern day camp-fire ghost story; it sent shivers up and down my spine.</p>
<p>I regularly backup my GMail account (and copies of my calendar and contacts are stored on my computer, phone, etc.) but having someone going through my emails wouldn&#8217;t make me happy.</p>
<p>So go and enable 2-step verification.  It&#8217;s not perfect but it will lower the odds of you having your own horror story to tell.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2012/01/getting-started-with-2-step-verification-accounts-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2012/01/getting-started-with-2-step-verification-accounts-help/</feedburner:origLink></item>
		<item>
		<title>TextMate 2 Articles</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/dpJYQofgKkI/</link>
		<comments>http://docwhat.org/2011/12/textmate-2-articles/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 15:05:21 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=801</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2011/12/tm2-icon-250x250.jpg" class="wp-post-image-right wp-post-image" alt="tm2-icon" title="tm2-icon" /&gt;Last week, TextMate 2.0 early-alpha was released. This release has been a long-time coming. It includes lots of improvements that people have wanted for a long time. I am currently a TextMate user. Mainly because I&amp;#8217;m an OS X and do Ruby programing and TextMate has lots of things to make this easier. I still [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2011/12/tm2-icon-250x250.jpg" class="wp-post-image-left wp-post-image" alt="tm2-icon" title="tm2-icon" /><p>Last week, TextMate 2.0 early-alpha <a href="http://blog.macromates.com/2011/textmate-2-0-alpha/"  class="extlink">was released</a>.  This release has been a long-time coming.  It includes lots of improvements that people have wanted for a long time.</p>
<p>I am currently a <a href="http://macromates.com/"  class="extlink">TextMate</a> user.  Mainly because I&#8217;m an OS X and do Ruby programing and TextMate has lots of things to make this easier.  I still love Emacs, though.  One of the things I&#8217;ve been waiting for has been mark-and-select (a.k.a. control-space in Emacs). I haven&#8217;t seen it yet, but then again, I&#8217;m only starting to play with TM2.</p>
<p><span id="more-801"></span></p>
<p>This is just a post to place all the helpful links, posts, etc. into one place so I can stop leaving open tabs in my browser (and so you can see them too).</p>
<ul>
<li><a href="http://erniemiller.org/2011/12/12/textmate-2-rmate-awesome/"  class="extlink">rmate</a> is a way to open textmate from a remote system. Using it securely requires setting up SSH forwarding.</li>
<li>A new site: <a href="http://tm2tips.tumblr.com/"  class="extlink">TextMate 2 tips</a></li>
<li><a href="http://blog.macromates.com/2011/git-style-configuration/"  class="extlink">.tm_properties</a> is the new way to configure projects.</li>
<li>A <a href="http://mads379.github.com/posts/whitespace-tmbundle"  class="extlink">Whitespace Bundle</a> that shows invalid white space (think <code>git diff --check</code>).</li>
</ul>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/12/textmate-2-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/12/textmate-2-articles/</feedburner:origLink></item>
		<item>
		<title>Fix git-gui’s “Spell checking is unavailable” dialog</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/ur0_AXe30Is/</link>
		<comments>http://docwhat.org/2011/12/fix-git-gui%e2%80%99s-%e2%80%9cspell-checking-is-unavailable%e2%80%9d-dialog/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 16:23:16 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=791</guid>
		<description>&lt;img width="250" height="115" src="http://docwhat.org/files/2011/12/missing-aspell-300x139-250x115.png" class="wp-post-image-left wp-post-image" alt="the offending error message" title="git gui error message" /&gt;Unashamedly stolen from a Hints and Kinks blog postg; I added information about the Homebrew solution If you use &amp;#8216;git gui&amp;#8217; on the Mac, you may find that it repeatedly pops up a message about spell checking being unavailable. This happens when using the MacPorts or Homebrew versions of git. The error message will say [...]</description>
			<content:encoded><![CDATA[<img width="250" height="115" src="http://docwhat.org/files/2011/12/missing-aspell-300x139-250x115.png" class="wp-post-image-right wp-post-image" alt="the offending error message" title="git gui error message" /><p><i>Unashamedly stolen from a <a href="http://matthew.mceachen.us/blog/howto-fix-git-guis-spell-checking-is-unavailable-dialog-1153.html"  class="extlink">Hints and Kinks blog postg; I added information about the Homebrew solution</a></i></p>
<p>If you use &#8216;git gui&#8217; on the Mac, you may find that it repeatedly pops up a message about spell checking being unavailable.  This happens when using the <a href="http://www.macports.org/"  class="extlink">MacPorts</a> or <a href="http://mxcl.github.com/homebrew/"  class="extlink">Homebrew</a> versions of git.</p>
<p><span id="more-791"></span></p>
<p>The error message will say something like (the language that&#8217;s missing might be different):</p>
<p><code>Spell checking is unavailable: No word lists can be found for the language "en_US"</code></p>
<p>You can easily fix this in MacPorts with:</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo port install aspell aspell-dict-en
</pre>
<p>Or in Homebrew with:</p>
<pre class="brush: bash; title: ; notranslate">
$ brew install aspell --lang=en
</pre>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/12/fix-git-gui%e2%80%99s-%e2%80%9cspell-checking-is-unavailable%e2%80%9d-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/12/fix-git-gui%e2%80%99s-%e2%80%9cspell-checking-is-unavailable%e2%80%9d-dialog/</feedburner:origLink></item>
		<item>
		<title>Microsoft makes .txt files dangerous</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/JW4qmeeIpW0/</link>
		<comments>http://docwhat.org/2011/09/microsoft-makes-txt-files-dangerous/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 13:02:39 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[The World Around Us]]></category>
		<category><![CDATA[derp]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=780</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2011/09/derp.png" class="wp-post-image-right wp-post-image" alt="DERP" title="DERP" /&gt;Microsoft has finally figured out how to make opening a .txt file dangerous&amp;#8230; &amp;#8220;This security update resolves a publicly disclosed vulnerability in Microsoft Windows. The vulnerability could allow remote code execution if a user opens a legitimate rich text format file (.rtf), text file (.txt), or Word document (.doc) that is located in the same [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2011/09/derp.png" class="wp-post-image-left wp-post-image" alt="DERP" title="DERP" /><p>Microsoft has finally figured out how to make opening a <code>.txt</code> file dangerous&#8230;</p>
<blockquote><p><span class="dquo">&#8220;</span>This security update resolves a publicly disclosed vulnerability in Microsoft Windows. The vulnerability could allow remote code execution if a user opens a legitimate rich text format file (<code>.rtf</code>), <strong>text file (<code>.txt</code>)</strong>, or Word document (<code>.doc</code>) that is located in the same network directory as a specially crafted dynamic link library (DLL) file.&#8221;
</p></blockquote>
<caption><a href="https://technet.microsoft.com/en-us/security/bulletin/ms11-071"  class="extlink">Microsoft Security Bulletin MS11-071</a> <i>(formatting is mine)</i></caption>
<p><span id="more-780"></span></p>
<p>Derp!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/09/microsoft-makes-txt-files-dangerous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/09/microsoft-makes-txt-files-dangerous/</feedburner:origLink></item>
		<item>
		<title>Undoing a rails generate</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/CSmqRLydzgA/</link>
		<comments>http://docwhat.org/2011/09/undoing-a-rails-generate/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 15:29:58 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[No Topic]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=769</guid>
		<description>&lt;img width="87" height="111" src="http://docwhat.org/files/2011/09/rails.png" class="wp-post-image-left wp-post-image" alt="Ruby on Rails" title="Ruby on Rails" /&gt;I just learned this today, while taking a Ruby on Rails class from Jumpstart Lab. I have, many times, messed up a rails generate command. For example, using singular where plural is needed or the reverse. Today, I learned that you can undo a generate by using rails destroy with the same arguments you used [...]</description>
			<content:encoded><![CDATA[<img width="87" height="111" src="http://docwhat.org/files/2011/09/rails.png" class="wp-post-image-right wp-post-image" alt="Ruby on Rails" title="Ruby on Rails" /><p>I just learned this today, while taking a <a href="http://rubyonrails.org/"  class="extlink">Ruby on Rails</a> class from <a href="http://jumpstartlab.com/"  class="extlink">Jumpstart Lab</a>.</p>
<p>I have, many times, messed up a <code>rails generate</code> command.  For example, using singular where plural is needed or the reverse.</p>
<p><span id="more-769"></span></p>
<p>Today, I learned that you can undo a generate by using <code>rails destroy</code> with the same arguments you used for the generate command.</p>
<p>Example:</p>
<pre class="brush: bash; title: ; notranslate">
rails generate controller article
# Oops!
rails destroy controller article
rails generate controller articles
</pre>
<p>Apparently only a few of us in class knew about this during this class.</p>
<p>I&#8217;d worked around not knowing this by using <code>git</code> to commit everything and then reverting everything if I messed up.</p>
<p>Why doesn&#8217;t a generate command show a message explaining that it can be undone with destroy? It&#8217;d be really really helpful.</p>
<p>Ciao!</p>
<p><ins datetime="2011-09-09T18:44:05+00:00">PS:</ins> I also discovered you can <span class="dquo">&#8220;</span>redo&#8221; the last migration as well, which is really handy as well for repairing mistakes:</p>
<pre class="brush: bash; title: ; notranslate">
rake db:migrate:redo
</pre>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/09/undoing-a-rails-generate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/09/undoing-a-rails-generate/</feedburner:origLink></item>
		<item>
		<title>Ruby crashing on Lion</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/n_CIA5evLN8/</link>
		<comments>http://docwhat.org/2011/08/ruby-crashing-on-lion/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 22:01:02 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=752</guid>
		<description>&lt;img width="164" height="164" src="http://docwhat.org/files/2011/08/ruby.png" class="wp-post-image-right wp-post-image" alt="Ruby" title="Ruby" /&gt;Apparently Ruby doesn&amp;#8217;t work well (or barely at all) with Lion and X Code 4.1 In fact, it crashes with gusto when compiled with X Code 4.1&amp;#8230;.UNLESS you know the magic words! I&amp;#8217;m unclear how ruby 1.8.7 crashes and burns, but 1.9.2-p290 crashes with annoying (yet seemingly random) regularity. It looks like, at the minimum, [...]</description>
			<content:encoded><![CDATA[<img width="164" height="164" src="http://docwhat.org/files/2011/08/ruby.png" class="wp-post-image-left wp-post-image" alt="Ruby" title="Ruby" /><p>Apparently Ruby doesn&#8217;t work well (or barely at all) with Lion and X Code 4.1</p>
<p>In fact, it crashes with gusto when compiled with X Code 4.1&#8230;.<b>UNLESS</b> you know the magic words!</p>
<p>I&#8217;m unclear how ruby 1.8.7 crashes and burns, but 1.9.2-p290 crashes with annoying (yet seemingly random) regularity.  It looks like, at the minimum, threading is definitely having a problem with LLVM. You can test it out yourself, if you have had the misfortune of installing ruby on Lion before reading this&#8230;</p>
<p><span id="more-752"></span></p>
<pre class="brush: ruby; title: ; notranslate">
# This will make  LLVM compiled OS-X Ruby
# fall down and go boom.
Fiber.new {}.resume
</pre>
<p>Fortunately, the fix is simple.  Put this in your <code>~/.bashrc</code> or equivalent-shell-startup file:</p>
<pre class="brush: bash; title: ; notranslate">
export CC=/usr/bin/gcc-4.2
</pre>
<p>That line forces any project to compile using GNU Gcc instead of LLVM&#8217;s gcc. Not ideal, but at least Ruby works.</p>
<p>If you&#8217;ve already installed a ruby or two or compiled any native extensions using the llvm-gcc, then you&#8217;ll have to remove them (replace the version with your version(s)):</p>
<pre class="brush: bash; title: ; notranslate">
$ rvm remove ruby-1.9.2-p290
$ rvm install ruby-1.9.2-p290
$ gem pristine --all          # Rebuilds all natively built gems
                              # ...repeat for all gemsets. *sigh*
</pre>
<p>I went for the nuclear option since I wasn&#8217;t sure what was broken and what okay. <strong>Warning:</strong> this command will destroy everything in <code>~/.rvm</code>, including any customizations you&#8217;ve set therein.</p>
<pre class="brush: bash; title: ; notranslate">
$ rvm implode
$ bash &lt; &lt;(curl -s https://rvm.beginrescueend.com/install/rvm)
</pre>
<p>Then I had to reinstall all the rubies I use and reset up any gemsets.</p>
<p>I hope this helps someone.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/08/ruby-crashing-on-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/08/ruby-crashing-on-lion/</feedburner:origLink></item>
		<item>
		<title>Aquamacs 2.3a and Marmalade</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/Shc-XCoNcmk/</link>
		<comments>http://docwhat.org/2011/08/aquamacs-2-3a-and-marmalade/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 04:22:38 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[aquamacs]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=740</guid>
		<description>&lt;img width="192" height="250" src="http://docwhat.org/files/2011/08/2190102002_e56bb311b9_o-192x250.jpg" class="wp-post-image-left wp-post-image" alt="Photo and marmalade by Amanda Slater" title="Bottled Sunshine" /&gt;A quick and easy way to packages up-and-running in Aquamacs is to use Marmalade. Marmalade is a package manager. It&amp;#8217;ll fetch an elisp package for you, install it, and make sure it loads up again when you restart emacs. Marmalade is sort of the next-gen version of ELPA, the Emacs Lisp Package Archive. Even better, [...]</description>
			<content:encoded><![CDATA[<img width="192" height="250" src="http://docwhat.org/files/2011/08/2190102002_e56bb311b9_o-192x250.jpg" class="wp-post-image-right wp-post-image" alt="Photo and marmalade by Amanda Slater" title="Bottled Sunshine" /><p>A quick and easy way to packages up-and-running in Aquamacs is to use <a href="http://marmalade-repo.org/"  class="extlink">Marmalade</a>.  Marmalade is a package manager.  It&#8217;ll fetch an elisp package for you, install it, and make sure it loads up again when you restart emacs.</p>
<p>Marmalade is sort of the next-gen version of <a href="http://tromey.com/elpa/"  class="extlink">ELPA</a>, the Emacs Lisp Package Archive.  Even better, it&#8217;s the package manager (with some tweaks) used in Emacs 24 (which will become Aquamacs 2.4).</p>
<p><span id="more-740"></span></p>
<p>I&#8217;m excited to see Emacs improving the user experience. It&#8217;s about time it started making life easier for people who want more than a bare-minimum emacs experience.</p>
<h2>Getting setup</h2>
<p>First download <code>package.el</code> and put it in <code>~/Library/Preferences/Aquamacs Emacs/</code>:</p>
<pre class="brush: bash; title: ; notranslate">
$ cd ~/Library/Preferences/Aquamacs\ Emacs/
$ wget http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el
</pre>
<p>Next edit <code>~/Library/Preferences/Aquamacs Emacs/Preferences.el</code> and add these lines:</p>
<pre class="brush: plain; title: ; notranslate">
(require 'package)
;; Marmalade
(add-to-list 'package-archives
             '(&quot;marmalade&quot; . &quot;http://marmalade-repo.org/packages/&quot;))
;; The original ELPA archive still has some useful
;; stuff.
;; (add-to-list 'package-archives&lt;br /&gt;
;;              '(&quot;elpa&quot; . &quot;http://tromey.com/elpa/&quot;))
(package-initialize)
</pre>
<p>Now restart Aquamacs.</p>
<h2>Installing Packages</h2>
<p>Once you have Aquamacs running, type <code>M-x list-packages</code></p>
<p>Wait a few seconds and you&#8217;ll see a list of packages. You move around the buffer normally. To get help, press <code>h</code>. To mark something for install, press <code>i</code>. To actually execute the install, use <code>x</code>.</p>
<p>After you install a package, you may need to add the appropriate <code>(require 'foo)</code> to <code>Preferences.el</code>.  For example, I needed it for <span class="dquo">&#8220;</span>textmate-mode&#8221;, <span class="dquo">&#8220;</span>yaml-mode&#8221;, and <span class="dquo">&#8220;</span>ecb_snap&#8221;, but I didn&#8217;t need it for <span class="dquo">&#8220;</span>scss-mode&#8221; or <span class="dquo">&#8220;</span>sasl-mode&#8221;.  I&#8217;m not sure if that&#8217;s a bug in Marmalade or a <span class="dquo">&#8220;</span>feature&#8221;.</p>
<p>Either way, you can use this to install ECB (Use <code>ecb_snap</code> for Aquamacs 2.3a and add <code>(require 'ecb)</code> to the end of your <code>Preferences.el</code>). This is easier than <a href="http://docwhat.org/2010/08/cedet-ecb-for-aquamacs/" >my previous article</a>. Cool!</p>
<h2>Closing Notes</h2>
<p>If you have any problems, check out the various ELPA resources.  Even though it&#8217;s a different repository, it still uses the same mechanisms.  The only difference is that in the ELPA version of <code>package.el</code> the command to list the packages is <code>package-list-packages</code>, but with the Marmalade version it&#8217;s <code>list-packages</code>.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/08/aquamacs-2-3a-and-marmalade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/08/aquamacs-2-3a-and-marmalade/</feedburner:origLink></item>
		<item>
		<title>New Look</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/ehQ4gfcZPjE/</link>
		<comments>http://docwhat.org/2011/06/new-look-2/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 20:15:12 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=726</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2011/06/Screen-shot-2011-06-19-at-1.09.48-AM.png" class="wp-post-image-right wp-post-image" alt="Screen shot 2011-06-19 at 1.09.48 AM" title="Screen shot 2011-06-19 at 1.09.48 AM" /&gt;Every so often, I get bored with my theme. I notice usability issues, things I wished I did differently, etc. and I want to play with new technologies like HTML5, CSS3. I had been using Thematic which is very nice. It has good semantic markup as well as other nice features. But it isn&amp;#8217;t HTML5 [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2011/06/Screen-shot-2011-06-19-at-1.09.48-AM.png" class="wp-post-image-left wp-post-image" alt="Screen shot 2011-06-19 at 1.09.48 AM" title="Screen shot 2011-06-19 at 1.09.48 AM" /><p>Every so often, I get bored with my theme.  I notice usability issues, things I wished I did differently, etc.  and I want to play with new technologies like <a href="http://www.html5rocks.com/"  class="extlink">HTML5</a>, <a href="http://www.css3.info/"  class="extlink">CSS3</a>.</p>
<p>I had been using <a href="http://themeshaper.com/thematic/"  class="extlink">Thematic</a> which is very nice.  It has good semantic markup as well as other nice features.  But it isn&#8217;t HTML5 and I wanted HTML5.<span id="more-726"></span></p>
<p>I tried several themes just to play around, and then found a theme that combined <a href="http://aarontgrogg.com/boilerplate/"  class="extlink">boilerplate</a>, html5, <a href="http://compass-style.org/reference/compass/"  class="extlink">compass</a> and <a href="http://sass-lang.com/"  class="extlink">sass</a>.  Unfortunately, it didn&#8217;t really do everything I wanted. I also lost the URL for the github project. <em>sigh</em>.</p>
<p>But I hadn&#8217;t seen compass nor sass before (or if I had, it was only in passing). This was really cool stuff.  I started playing with and deciding I really wanted to use it.</p>
<p>I like my green color and it is a pain to write the color in everyplace. But compass lets me assign the color to a variable <code>$hero-color</code>, and to then alter it by doing things like <code>darken($hero-color, 30%)</code>.  It also has a saner form of nesting so I can <a href="http://en.wikipedia.org/wiki/Don't_repeat_yourself"  class="extlink">DRY</a> up my CSS.</p>
<p>In addition, compass has mixins so I don&#8217;t have to repeat <code>border-radius</code> multiple times to support different browsers.  As well as grid support via <a href="http://www.blueprintcss.org/"  class="extlink">blueprint</a> support.</p>
<p>I also took the opportunity to manage my wordpress site via  <a href="http://rake.rubyforge.org/"  class="extlink">Rake</a> and <a href="http://capify.org/"  class="extlink">Capistrano</a>.   Normally, I&#8217;d blog about how I did it, but capifying my wordpress blog was harder than I would have hoped. You can view my <a href="http://git.gerf.org/?p=docwhat-web.git;a=blob;f=Capfile;h=ce036449d46a9f7ac6d4c28c12370d09496e43d3;hb=1e0d76b0983e784389a5ab23a89c06284246a46d"  class="extlink">Capfile</a> if you want, but you may need a handful of aspirin.</p>
<p>I also made my theme compatible with mobile devices.  Previously I used <a href="http://wordpress.org/extend/pl"  class="extlink">WPTouch</a>.  I wasn&#8217;t very fond of it because it looked completely different from my site and I don&#8217;t think it actually added anything.  But my previous theme looked horrible on mobile devices.</p>
<p>I&#8217;d love to hear any feedback.  And of course, I&#8217;ll answer any questions you might have.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/06/new-look-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/06/new-look-2/</feedburner:origLink></item>
		<item>
		<title>Virtualenv on OS X</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/9-RPuwX0q48/</link>
		<comments>http://docwhat.org/2011/06/virtualenv-on-os-x/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 21:19:06 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=716</guid>
		<description>&lt;img width="175" height="175" src="http://docwhat.org/files/2011/06/xcode.png" class="wp-post-image-left wp-post-image" alt="X Code" title="X Code" /&gt;So I decided to try to install virtualenvwrapper (and virtualenv) on my Mac Book Pro. Virtualenv was explained to me as being python&amp;#8217;s version of Wayne E. Seguin&amp;#8217;s RVM (Ruby Version Manager). I&amp;#8217;ve tried installing virtualenv/wrapper twice before and failed miserably. But this time I decided to actually do it. Some quick background: I&amp;#8217;ve been [...]</description>
			<content:encoded><![CDATA[<img width="175" height="175" src="http://docwhat.org/files/2011/06/xcode.png" class="wp-post-image-right wp-post-image" alt="X Code" title="X Code" /><p>So I decided to try to install <a href="http://www.doughellmann.com/projects/virtualenvwrapper/"  class="extlink">virtualenvwrapper</a><br />
(and virtualenv) on my Mac Book Pro. Virtualenv was explained to me as being python&#8217;s version of Wayne E. Seguin&#8217;s RVM (Ruby Version Manager).</p>
<p>I&#8217;ve tried installing virtualenv/wrapper twice before and failed miserably. But this time I decided to actually do it.<span id="more-716"></span></p>
<p>Some quick background:  I&#8217;ve been a very active python programmer up to and including 2.5 series.  I&#8217;ve implemented large python-based systems at several of the companies I&#8217;ve worked for; including two very successful web applications. I&#8217;ve implemented two ORMs in python and even grokked meta-programming in python.</p>
<p>But that was several years ago. I&#8217;ve not really done much programming in python since 2007 or so.  Except for some smaller utilities.  I&#8217;ve since started working with Ruby, heavily in the last year, and am really liking it.  It took me a while to understand what the underlying philosophy was about but I get it now.  Other than some ugly warts (threading in 1.9 acts differently on different OSes and a lot of base classes/types are privileged and don&#8217;t deal well with being overridden) Ruby is pretty spiffy.</p>
<p>Since I&#8217;ve last done serious programming in python, it has gotten <code>easy_install</code> (it existed, but was beta), <code>pip</code>, and the <code>.egg</code> package format.  All big improvements.</p>
<p>Anyway, back to virtualenv/wrapper.</p>
<p>The biggest hurdle the first times I tried installing (and this time too) was that I didn&#8217;t understand what virtualenv and virtualenvwrapper are.</p>
<p>For those who don&#8217;t know:</p>
<p>Virtualenv does <em>not</em> install new python versions.  You need the versions installed some other way (such as a package manager or compiling them yourself).  It is a way to manage python packages and libraries.  If you&#8217;re familiar with RVM, then it&#8217;s basically a way to do <code>rvm gemset</code> for python.</p>
<p>However, virtualenv is clunky to use… allegedly, I&#8217;ve not played with it.</p>
<p>Fortunately, we have virtualenvwrapper to make life easier!  This is similar to RVM in the way it is designed – it&#8217;s a bunch of shell functions you source into your shell.  You then get commands like:</p>
<dl>
<dt><code>mkvirtualenv</code></dt>
<dd>Creates a new virtual environment (a python gemset, if you will).</dd>
<dt><code>rmvirtualenv</code></dt>
<dd>Three guesses and the first two don&#8217;t count.</p>
<dt><code>workon &lt;env&gt;</code></dt>
</dd>
<dd>Sets which environment to work on. If you don&#8217;t specify one, then it&#8217;ll list them all. Sort of like <code>rvm use</code>.</dd>
<dt><code>deactivate</code></dt>
<dd>Deactivate your python environments.  Sort of the equivalent of <code>rvm use system</code>.</dd>
</dl>
<h2>The instructions</h2>
<p>So here&#8217;s how I installed virtualenv/wrapper on OS-X:</p>
<h3>Install X Code</h3>
<p><a href="http://itunes.apple.com/us/app/xcode/id422352214"  class="extlink">X Code</a> is the developer tools for Mac OS X.  It includes the classic tools like gcc, make, etc. as well as some spiffy Apple designed tools. It&#8217;s only $4.99 and worth the price if you&#8217;re going to do any development on your Mac.</p>
<p>Warning: The download is huge.</p>
<h3>Install homebrew</h3>
<p>I installed <a href="https://github.com/mxcl/homebrew"  class="extlink">homebrew</a>.  Actually, I&#8217;ve had it for while, but if you&#8217;re following this on a new Mac, you might want to know that I had installed it.  The instructions are straightforward so I won&#8217;t repeat them here.</p>
<h3>Install python 2.7</h3>
<p>This is optional, I suspect.  I didn&#8217;t play with installing virtualenv/wrapper on the system&#8217;s python. I try to leave the system stuff alone, if possible.  It saves me headaches later. Especially if I mess something and need to try again.</p>
<pre class="brush: bash; title: ; notranslate">
brew install readline sqlite gdbm
brew install python --universal
</pre>
<p>I do this in two steps because:</p>
<ol>
<li> I wanted to ensure the dependencies for python are installed before python. Homebrew is getting better with dependencies but it isn&#8217;t perfect.  If they aren&#8217;t installed before, then you would have to uninstall and re-install python to get python notice them.</li>
<li> I want to make python &#8211;universal so I can build 32bit and 64bit versions. </li>
</ol>
<h3>Install pip</h3>
<p>So this was something that confused me greatly, but I eventually figured it out.</p>
<p>You need to run <code>easy_install</code>, but I couldn&#8217;t figure out where <code>easy_install</code> was in Homebrew. I looked all over and didn&#8217;t find it.</p>
<p>Fortunately, I got frustrated and tried uninstalling and re-installing python and sow this message at the end of the python install:</p>
<pre class="brush: plain; title: ; notranslate">
A &quot;distutils.cfg&quot; has been written, specifing the install-scripts folder as:
  /usr/local/share/python

If you install Python packages via &quot;python setup.py install&quot;, easy_install, pip,
any provided scripts will go into the install-scripts folder above, so you may
want to add it to your PATH.

Distribute has been installed, so easy_install is available.
To update distribute itself outside of Homebrew:
    /usr/local/share/python/easy_install pip
    /usr/local/share/python/pip install --upgrade distribute
</pre>
<p>Yay! Now I know where <code>easy_install</code>&#8230;and hey, those are the instructions for installing <code>pip</code>!</p>
<pre class="brush: bash; title: ; notranslate">
/usr/local/share/python/easy_install pip
</pre>
<p>Install virtualenvwrapper</p>
<p>This also installs virtualenv as well.</p>
<pre class="brush: bash; title: ; notranslate">
/usr/local/share/python/pip install virtualenvwrapper
mkdir ~/.virtualenvs
</pre>
<p>I&#8217;m not sure the <code>mkdir</code> is needed, but I kept seeing it in various instructions.</p>
<p>Configure your shell</p>
<p>I use excellent <a href="http://zsh.sourceforge.net/"  class="extlink">zsh</a> as my command line shell.  Even though I write shell scripts in <a href="http://www.gnu.org/software/bash/bash.html"  class="extlink">bash</a> (because it&#8217;s more common).</p>
<p>I added this to my zsh startup scripts:</p>
<pre class="brush: bash; title: ; notranslate">
# Setting up the VirtualEnv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true

if [[ -r /usr/local/share/python/virtualenvwrapper.sh ]]; then
    source /usr/local/share/python/virtualenvwrapper.sh
else
    echo &quot;WARNING: Can't find virtualenvwrapper.sh&quot;
fi
</pre>
<p>This does a couple of things:</p>
<ol>
<li> It sets the home for virtual envs. </li>
<li> Uses python2.7 by default. </li>
<li> Tells it not to install site-packages. I don&#8217;t plan on installing any into homebrew&#8217;s python, but just in case.</li>
<li> Tells pip to honor the virtualenv stuff. </li>
</ol>
<p>The last bit was the part I banged my head on the most, even though I didn&#8217;t know it.  I was following some instructions on installing virtualenvwrappers and they left that part out.  Commands like <code>mkvirtualenv</code> are shell functions.  <code>virtualenvwrapper.sh</code> contains those functions.  I kept looking for shell scripts or programs or something.</p>
<p>I put a conditional and a warning around it incase I change homebrew or uninstall something.</p>
<h2>Conclusion</h2>
<p>So hopefully someone finds this useful.  If not, I&#8217;ll refer back to it at some point in the future when I need to redo all this for some reason.  I&#8217;ll have forgotten it all by then.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/06/virtualenv-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/06/virtualenv-on-os-x/</feedburner:origLink></item>
		<item>
		<title>New Toys</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/3Etpsqh7-AI/</link>
		<comments>http://docwhat.org/2011/05/new-toys-on-vacation/#comments</comments>
		<pubDate>Mon, 16 May 2011 21:23:40 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Life]]></category>
		<category><![CDATA[knife]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Toys]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=698</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2011/05/swisstool-spirit-plus-ratchet-250x250.jpg" class="wp-post-image-right wp-post-image" alt="SwissTool™ Spirit Plus Ratchet" title="SwissTool™ Spirit Plus Ratchet" /&gt;I&amp;#8217;ve been on vacation in Bar Harbor, Maine and have enlarged my portable toy collection somewhat. I usually carry a knife with me at all times, plus I usually have a multi-tool at hand someplace nearby (bag, backpack, etc.) I used to carry around a Leatherman (AKA the Pocket Survival Tool) but I eventually stopped. [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2011/05/swisstool-spirit-plus-ratchet-250x250.jpg" class="wp-post-image-left wp-post-image" alt="SwissTool™ Spirit Plus Ratchet" title="SwissTool™ Spirit Plus Ratchet" /><p>I&#8217;ve been on vacation in Bar Harbor, Maine and have enlarged my portable toy collection somewhat. I usually carry a knife with me at all times, plus I usually have a multi-tool at hand someplace nearby (bag, backpack, etc.)</p>
<p>I used to carry around a Leatherman (AKA the Pocket Survival Tool) but I eventually stopped.  One reason is because it would become too easy or too hard to open and shut. The version I have (not all do) has knobs for changing the tightness but I could never get it to be the right firmness for opening. I wanted it hard enough to open that it doesn&#8217;t flop open randomly if I put it down or drop it in a pocket but easy enough to open that I don&#8217;t have drop everything and use both hands to open or shut it. Or worse, needing so much force to open and shut that it became a hazard.</p>
<p>In addition, it had <em>no</em> locks for the blades.  I scared myself silly a bunch of times trying to use the knife and it would lurch half shut.  Fortunately, the other half of the handle prevented it from shutting completely and I didn&#8217;t have anything valuable in the way.  The Leatherman was an attractive idea, but a lousy product. I&#8217;ve long since stopped carrying it.<br />
<span id="more-698"></span></p>
<p>Now <a href="http://www.swissarmy.com/"  class="extlink">Victorinox</a> has the awesome <a href="http://www.amazon.com/gp/product/B000FNIL8K/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B000FNIL8K"  class="extlink">SwissTool Spirit Plus Ratchet</a>, which is what the Leatherman should have been to begin with. It has locks for the blades and other tools. You don&#8217;t have to open the pliers to get at the tools. And it has a detent for the blades so they don&#8217;t flop open and once they are open, they move easily.  I can open most (not all) of the tools with one hand and shut them too (though I can&#8217;t do that fast).</p>
<p>The kit I got, the <span class="dquo">&#8220;</span>plus&#8221; model with ratchet, has a small ratchet socket wrench with it and some bits.  As I work on computers all the time, this is awesome.  I also have a <a href="http://www.amazon.com/gp/product/B004OZJ42W/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B004OZJ42W"  class="extlink">Cybertool 34</a> but I can rarely use the socket wrench because it won&#8217;t fit inside any computers I use. And using it on the outside is a pain because you have to twist the tool around even though it&#8217;s lopsided.</p>
<p>I heartily recommend this tool.  It&#8217;s pretty darn nice.</p>
<p>I also got a new pocket knife. The <a href="http://www.amazon.com/gp/product/B004OZJ42W/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B004OZJ42W"  class="extlink">Tanto Blade BK-1</a> from <a href="http://www.benchmade.com/"  class="extlink">Benchmade</a>.  This is an excellent knife and I think it&#8217;s my new favorite.  The blade is amazingly sharp and I like the <a href="http://en.wikipedia.org/wiki/Tant%C5%8D"  class="extlink">Tantō</a>-style.  The pocket clip is on the correct (in my opinion) side so that the tip opens down.  The lock the <span class="dquo">&#8220;</span>AXIS&#8221; lock and is excellent. It is a spring locked slide on the back of the knife.</p>
<p>My old favorite knife is a <a href="http://www.amazon.com/gp/product/B001EHIY6U/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B001EHIY6U"  class="extlink">Kershaw Leek 1660cktx</a>.  I switched the clip on it (again so the blade opens down) and carried it for a couple years, but last month the safety broke off when I dropped it.  I have the phone number to Kershaw and I&#8217;ve been told that I just have to call to get a replacement part.  My wife has one too and her safety broke as well.  Other than that, I do like them.  Though the 1660 is a little shorter in my hand than I&#8217;d like.</p>
<p>Finally, we bought a pair of <a href="http://www.amazon.com/gp/product/B00076QVPU/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B00076QVPU"  class="extlink">Pentax 8&#215;40 PCF WP II Binoculars</a> because we forgot our el-cheapo pair at home (we used to carry them in the car all the time, but apparently we didn&#8217;t move them into the new car).  I&#8217;m not a binoculars nuts, so I&#8217;m not very qualified, but they seem very nice.  Good field of view, easy controls, and they are waterproof to 1meter.  I&#8217;ve seen binoculars gets messed up by moisture, so I thought this was a great idea.  We used them to watch lounging seals and flying birds.</p>
<p>I bought my new toys at <span class="dquo">&#8220;</span>Jekyll &#038; Hyde&#8221; in Bar Harbor, Maine.  The gentleman who helped me was knowledgable and was willing to let me drool my way through his whole stock (I&#8217;m only <em>admitting</em> to doing that once). And the prices are were actually as good or better than Amazon, which I thought was great.</p>
<p>New Toys:</p>
<ul>
<li><a href="http://www.amazon.com/gp/product/B000FNIL8K/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B000FNIL8K"  class="extlink">SwissTool™ Spirit Plus Ratchet</a></li>
<li><a href="http://www.amazon.com/gp/product/B004OZJ42W/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B004OZJ42W"  class="extlink">Benchmade Tanto Blade BK-1</a></li>
<li><a href="http://www.amazon.com/gp/product/B00076QVPU/ref=as_li_ss_tl?ie=UTF8&#038;tag=thedocwha-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399349&#038;creativeASIN=B00076QVPU"  class="extlink">Pentax 8&#215;40 PCF WP II Binoculars</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/05/new-toys-on-vacation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/05/new-toys-on-vacation/</feedburner:origLink></item>
		<item>
		<title>Jenkins</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/Ofv2YDR9n7g/</link>
		<comments>http://docwhat.org/2011/04/jenkins/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 22:32:28 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=678</guid>
		<description>&lt;img width="214" height="250" src="http://docwhat.org/files/2011/04/Screen-shot-2011-04-14-at-1.08.16-PM-214x250.png" class="wp-post-image-left wp-post-image" alt="Jenkin&amp;#039;s Logo" title="Jenkin&amp;#039;s Logo" /&gt;We have recently started using Jenkins at work and it is awesome. Jenkins describes itself as a continuous integration software, but it really is more. You can use Jenkins to build, test, and do cron jobs, etc. It&amp;#8217;s very powerful and really useful. Not only is very useful, it is being developed and improved quickly. [...]</description>
			<content:encoded><![CDATA[<img width="214" height="250" src="http://docwhat.org/files/2011/04/Screen-shot-2011-04-14-at-1.08.16-PM-214x250.png" class="wp-post-image-right wp-post-image" alt="Jenkin&#039;s Logo" title="Jenkin&#039;s Logo" /><p>We have recently started using <a href="http://jenkins-ci.org/"  class="extlink">Jenkins</a> at work and it is awesome.</p>
<p>Jenkins describes itself as a continuous integration software, but it really is more.  You can use Jenkins to build, test, and do <a href="http://en.wikipedia.org/wiki/Cron"  class="extlink">cron</a> jobs, etc.  It&#8217;s very powerful and really useful.</p>
<p>Not only is very useful, it is being developed and improved quickly. Bugs get fixed rapidly by a very motivated team of developers.  Combined with its extensive list of plugins, Jenkins becomes amazingly useful in a variety of situations.</p>
<p><span id="more-678"></span></p>
<p>Jenkins&#8217; main unit of work is a &#8216;job&#8217;.  While it obviously has a preference for <a href="http://maven.apache.org/"  class="extlink">Maven</a> jobs, it works very well with so-called <span class="dquo">&#8220;</span>free-style&#8221; jobs; jobs that use arbitrary commands.</p>
<p>Jobs can be triggered on <a href="http://en.wikipedia.org/wiki/Source_Code_Management"  class="extlink">SCM</a> changes, cron specifications, a file being created, a url changing, or anything a plugin might add. For example, we trigger builds for some jobs based on <a href="https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger"  class="extlink">Gerrit  changes</a> allowing us to test changes before they enter git&#8217;s master branch.</p>
<p>The support for kinds of activities that can be performed is amazing: Unix shell, Windows cmd, jPython, jRuby &#8230; just to name a few.</p>
<p>I&#8217;m seriously contemplating replacing my cron jobs with automan on <a href="http://gerf.org"  class="extlink">Gerf.Org</a> just because it is so much handier to be able to look at logs, re-trigger a cron job, etc.  Not to mention that I can use it for continuos integration of <a href="https://github.com/docwhat/iated"  class="extlink">IATed</a> and any other projects I want.</p>
<p>Jenkins has great support for slave nodes. Out of the box it supports unix slave nodes via SSH; it will automatically connect to the slave and setup the correct JDKs, etc. all on its own.  Even setting up a windows slave is relatively easy: Install a JVM, go to the Jenkins page for that slave node and web-launch the slave software; it does the rest. To make the slave permanent across re-boot, use the menu option in the slave program to install it as a service.  Not as easy as with Unix, but still very easy.</p>
<p>If you want to try it out, you can get it running really quickly by running <code>java -jar jenkins.war</code>&#8230; it has a built in servlet container server. You can even try it out via Java Web Start: <a href="http://jenkins-ci.org/jenkins.jnlp" rel="nofollow" ><img src="http://java.sun.com/products/jfc/tsc/articles/swing2d/webstart.png" style="border: 0px solid black; vertical-align: bottom; margin: 0"/></a>.  It&#8217;ll save everything in <code>~/.jenkins</code>.</p>
<p>Overall, I give Jenkins two thumbs up.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/04/jenkins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/04/jenkins/</feedburner:origLink></item>
		<item>
		<title>Gerrit: Rename a Project</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/IBuNoFkJftQ/</link>
		<comments>http://docwhat.org/2011/03/gerrit-rename-a-project/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 14:44:23 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=673</guid>
		<description>At work we&amp;#8217;ve been trying out Gerrit. It is awesome in many ways, and yet in others it is sorely lacking. One of the more obvious problems is the lack of administration functionality. For example, there is no administration interface for deleting or renaming a project. However, I needed to rename a project and here [...]</description>
			<content:encoded><![CDATA[<p>At work we&#8217;ve been trying out Gerrit.  It is awesome in many ways, and yet in others it is sorely lacking.</p>
<p>One of the more obvious problems is the lack of administration functionality. For example, there is no administration interface for deleting or renaming a project. </p>
<p>However, I needed to rename a project and here is how I did it.<span id="more-673"></span></p>
<p><strong>WARNING: This was done against <code>schema_version</code> 47. I make no promises it works for other versions.</strong></p>
<p>This is a SQL script.  Replace the words <code>NEW</code> and <code>OLD</code> with your new and old project names.  Since I did it for multiple projects, I used Perl to programmatically replace the values.</p>
<pre class="brush: sql; title: ; notranslate">
BEGIN;
UPDATE account_project_watches
   SET project_name = 'NEW'
 WHERE project_name = 'OLD';

UPDATE projects
   SET name = 'NEW'
 WHERE name = 'OLD';

UPDATE ref_rights
   SET project_name = 'NEW'
 WHERE project_name = 'OLD';

UPDATE changes
   SET dest_project_name = 'NEW'
 WHERE dest_project_name = 'OLD';

COMMIT;
</pre>
<p>This is enough to hold me over until <a href="http://code.google.com/p/gerrit/issues/detail?id=560"  class="extlink">issue 560</a> is finished.</p>
<p>Ciao!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2011/03/gerrit-rename-a-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2011/03/gerrit-rename-a-project/</feedburner:origLink></item>
		<item>
		<title>IAT 1.5</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/yapCIBRiYFM/</link>
		<comments>http://docwhat.org/2010/12/iat-1-5/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 22:37:38 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[It's All Text!]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=651</guid>
		<description>&lt;img width="200" height="150" src="http://docwhat.org/files/2010/12/11568.png" class="wp-post-image-right wp-post-image" alt="IAT gumdrop" title="IAT gumdrop" /&gt;I just uploaded It&amp;#8217;s All Text! 1.5 to AMO. [edit: It's out!] Assuming I made no mistakes, then it should appear shortly. The big changes are that it supports Firefox 4.0b7. In addition to that, I have fixed some of the problems with OS-X. In part because the ability to launch applications in Firefox is [...]</description>
			<content:encoded><![CDATA[<img width="200" height="150" src="http://docwhat.org/files/2010/12/11568.png" class="wp-post-image-left wp-post-image" alt="IAT gumdrop" title="IAT gumdrop" /><p>I just uploaded <a href="https://addons.mozilla.org/en-US/firefox/addon/4125/"  class="extlink">It&#8217;s All Text!</a> 1.5 to <a href="http://addons.mozilla.org/"  class="extlink">AMO</a>. <strong>[edit: It's out!]</strong></p>
<p>Assuming I made no mistakes, then it should appear shortly.</p>
<p><span id="more-651"></span></p>
<p>The big changes are that it supports Firefox 4.0b7.  In addition to that, I have fixed some of the problems with OS-X. In part because the ability to launch applications in Firefox is becoming more annoying with each release.</p>
<p>But not to worry!  I&#8217;m working hard on IAT2.0.  The next version will be broken into two parts: An editor server and the actual plugin.</p>
<p>Why do it that way? Well, it provides better control over the editor application.  It also allows me to port it to Chrome (and possibly other browsers, like Safari).</p>
<p>The downside is that after installing IAT2.0, you&#8217;ll have to download an application and have it running.</p>
<p>I&#8217;d love to hear feedback on whether that is too evil or too much work.  Or if it&#8217;s just fine and dandy.  I&#8217;m working hard to try to make sure the editor server is easy to install and use, so hopefully I&#8217;ll minimize any problems.</p>
<p>Ciao!</p>
<p>PS: Don&#8217;t forget to <a href="http://docwhat.org/rewarddonate/" >send me beer money</a> to encourage me!</p>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/12/iat-1-5/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/12/iat-1-5/</feedburner:origLink></item>
		<item>
		<title>Git Tip: empty branch</title>
		<link>http://feedproxy.google.com/~r/docwhat/~3/DspmfGrV1mU/</link>
		<comments>http://docwhat.org/2010/12/git-tip-empty-branch/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 22:18:21 +0000</pubDate>
		<dc:creator>docwhat</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://docwhat.org/?p=646</guid>
		<description>&lt;img width="250" height="250" src="http://docwhat.org/files/2010/12/got_git_tshirt-250x250.jpg" class="wp-post-image-left wp-post-image" alt="Got Git?" title="Got Git?" /&gt;Ever wanted to make an empty branch (with no history in it) in git? It&amp;#8217;s not hard&amp;#8230; Why would you want to do this? Well, for example, I have a new project in github. I&amp;#8217;m trying to implement it in several ways, jRuby, Java, Qt, etc. Having separate branches is really handy. Another reason you [...]</description>
			<content:encoded><![CDATA[<img width="250" height="250" src="http://docwhat.org/files/2010/12/got_git_tshirt-250x250.jpg" class="wp-post-image-right wp-post-image" alt="Got Git?" title="Got Git?" /><p>Ever wanted to make an empty branch (with no history in it) in git? It&#8217;s not hard&#8230;</p>
<p>Why would you want to do this? Well, for example, I have a new project in github. I&#8217;m trying to implement it in several ways, jRuby, Java, Qt, etc.  Having separate branches is really handy.</p>
<p>Another reason you might want to do this is for upstream tracking.  I used this to cold-start a branch where I commit all the changes of an upstream project and then merge them into my customized branch.  Git makes tracking an upstream project much easier.</p>
<p><span id="more-646"></span></p>
<p>Anyway, enough of that. Here&#8217;s how to do it:</p>
<pre class="brush: bash; title: ; notranslate">
# WARNING: Make sure you've committed all your work...
#
# Point git at a new branch:
git symbolic-ref HEAD refs/heads/yournewbranch
# Remove the index file so it doesn't know about the files
# that are already checked out:
rm .git/index
# Clean up all the files that were checked out before:
git clean -xfd
# Done!
</pre>
]]></content:encoded>
			<wfw:commentRss>http://docwhat.org/2010/12/git-tip-empty-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://docwhat.org/2010/12/git-tip-empty-branch/</feedburner:origLink></item>
	</channel>
</rss>

