<?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>Sam Pierson&#039;s Blog</title>
	<atom:link href="http://sampierson.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://sampierson.com/blog</link>
	<description>Augmentation of an Imperfect Memory.</description>
	<lastBuildDate>Sun, 21 Feb 2010 00:48:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selenium-RC and Snow Leopard</title>
		<link>http://sampierson.com/blog/software-development/selenium-rc-and-snow-leopard/</link>
		<comments>http://sampierson.com/blog/software-development/selenium-rc-and-snow-leopard/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 00:47:34 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[selenium]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=661</guid>
		<description><![CDATA[Selenium-RC was having issues on Snow Leopard:

&#160;
dyld: Library not loaded: /usr/lib/libsqlite3.dylib
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0

Web searches produced a lot of information including some workarounds that didn&#8217;t.  Finally I read that Selenium-RC 1.x has some hardcoded paths in it that mean it won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Selenium-RC was having issues on Snow Leopard:</p>

<div class="wp_syntax"><div class="code"><pre class="foo" style="font-family:monospace;">&nbsp;
dyld: Library not loaded: /usr/lib/libsqlite3.dylib
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0</pre></div></div>

<p>Web searches produced a lot of information including some workarounds that didn&#8217;t.  Finally I read that Selenium-RC 1.x has some hardcoded paths in it that mean it won&#8217;t work with Snow Leopard, and you need to get the Selenium-RC 2.x jar (alpha at this time).  The easiest way to do this is to install the <a href="http://gemcutter.org/gems/selenium-rc">selenium-rc gem</a> that <a href="http://github.com/pivotal/selenium-rc">Pivotal packaged</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/selenium-rc-and-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RubyMine not recognizing cucumber features</title>
		<link>http://sampierson.com/blog/software-development/rubymine-not-recognizing-cucumber-features/</link>
		<comments>http://sampierson.com/blog/software-development/rubymine-not-recognizing-cucumber-features/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 22:19:23 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rubymine]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=658</guid>
		<description><![CDATA[If RubyMine isn&#8217;t recognizing cucumber features, ensure the following:

Cucumber gem is attached to project: RM &#124; Settings &#124; Ruby SDK and Gems &#124; Attach gems.
If you edited *.feature files in early version of RubyMine it may be mapped on Text file. So you should check that *.feature extension is mapped on &#8220;Cucumber scenario files&#8221; in [...]]]></description>
			<content:encoded><![CDATA[<p>If RubyMine isn&#8217;t recognizing cucumber features, ensure the following:</p>
<ol>
<li>Cucumber gem is attached to project: RM | Settings | Ruby SDK and Gems | Attach gems.</li>
<li>If you edited *.feature files in early version of RubyMine it may be mapped on Text file. So you should check that *.feature extension is mapped on &#8220;Cucumber scenario files&#8221; in RM | Settings | File Types |  Recognized File Types.</li>
</ol>
<p>per <a href="http://www.jetbrains.net/devnet/message/5238832#5238832">Roman at JetBrains</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/rubymine-not-recognizing-cucumber-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Superstar Developers</title>
		<link>http://sampierson.com/blog/software-development/superstar-developers/</link>
		<comments>http://sampierson.com/blog/software-development/superstar-developers/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 17:11:57 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=655</guid>
		<description><![CDATA[Zed Shaw is at it again.  This is an excellent post, that contains much truth: 3 Simple Rules That Will Make You a ‘Superstar’ Developer.
Which also provoked a great comment.
]]></description>
			<content:encoded><![CDATA[<p>Zed Shaw is at it again.  This is an excellent post, that contains much truth: <a href="http://coderoom.wordpress.com/2010/01/28/3-simple-rules-that-will-make-you-a-superstar-developer/">3 Simple Rules That Will Make You a ‘Superstar’ Developer</a>.</p>
<p>Which also provoked a <a href="http://coderoom.wordpress.com/2010/02/01/the-best-comment-ever-no-i-didnt-write-it/">great comment</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/superstar-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Synergy keyboard/mouse sharing</title>
		<link>http://sampierson.com/blog/uncategorized/setting-up-synergy-keyboardmouse-sharing/</link>
		<comments>http://sampierson.com/blog/uncategorized/setting-up-synergy-keyboardmouse-sharing/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 17:55:02 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=649</guid>
		<description><![CDATA[Download synergy from http://sourceforge.net/projects/synergy2/files/ and install on the machines you want to participate in sharing.  For this example let&#8217;s say I two systems with hostnames notebook and desktop, and I want to share the keyboard and mouse of desktop.
Create a configuration file, something like this:

&#160;
section: screens
  mydesktop:
  mynotebook:
end
&#160;
section: links
  mynotebook:
  [...]]]></description>
			<content:encoded><![CDATA[<p>Download synergy from <a href="http://sourceforge.net/projects/synergy2/files/">http://sourceforge.net/projects/synergy2/files/</a> and install on the machines you want to participate in sharing.  For this example let&#8217;s say I two systems with hostnames <em>notebook</em> and <em>desktop</em>, and I want to share the keyboard and mouse of <em>desktop</em>.</p>
<p>Create a configuration file, something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&nbsp;
section: screens
  mydesktop:
  mynotebook:
end
&nbsp;
section: links
  mynotebook:
    left = mydesktop
&nbsp;
  mydesktop:
    right = mynotebook
end</pre></div></div>

<p>On <em>desktop</em> run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
synergys <span style="color: #660033;">-f</span> <span style="color: #660033;">--config</span> synergy.conf</pre></div></div>

<p>On <em>notebook</em> run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
synergyc <span style="color: #660033;">-f</span> desktop</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/uncategorized/setting-up-synergy-keyboardmouse-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy rspec matchers</title>
		<link>http://sampierson.com/blog/software-development/easy-rspec-matchers/</link>
		<comments>http://sampierson.com/blog/software-development/easy-rspec-matchers/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 00:04:09 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=646</guid>
		<description><![CDATA[http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html
]]></description>
			<content:encoded><![CDATA[<p><a href="http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html">http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/easy-rspec-matchers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strongbox for ActiveRecord encryption</title>
		<link>http://sampierson.com/blog/software-development/strongbox-for-activerecord-encryption/</link>
		<comments>http://sampierson.com/blog/software-development/strongbox-for-activerecord-encryption/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 16:42:31 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=641</guid>
		<description><![CDATA[This looks really handy:
First spotted in a teachmetocode.com screencast.
Which references Spike&#8217;s original post.
]]></description>
			<content:encoded><![CDATA[<p>This looks really handy:</p>
<p>First spotted in <a href="http://www.teachmetocode.com/screencasts/11">a teachmetocode.com screencast</a>.<br />
Which references <a href="http://stuff-things.net/2009/04/17/introducing-strongbox/">Spike&#8217;s original post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/strongbox-for-activerecord-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Calendar and iCalendar X-WR-CALNAME</title>
		<link>http://sampierson.com/blog/software-development/google-calendar-and-icalendar-x-wr-calname/</link>
		<comments>http://sampierson.com/blog/software-development/google-calendar-and-icalendar-x-wr-calname/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 16:35:16 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=637</guid>
		<description><![CDATA[I just figured out another Goggle Calendar idiosyncrasy:
When building an iCalendar (RFC 2445 / RFC 5545) feed, if you want to subscribe to that feed with Google Calendar, and you want to give your calendar a name, Google Calendar accepts the X-WR-CALNAME extension to the iCalendar standard, but it will only allow a text name [...]]]></description>
			<content:encoded><![CDATA[<p>I just figured out another Goggle Calendar idiosyncrasy:</p>
<p>When building an iCalendar (<a href="http://tools.ietf.org/html/rfc2445">RFC 2445</a> / <a href="http://tools.ietf.org/html/rfc5545">RFC 5545</a>) feed, if you want to subscribe to that feed with Google Calendar, and you want to give your calendar a name, Google Calendar accepts the X-WR-CALNAME extension to the iCalendar standard, but it will <strong>only</strong> allow a text name if you add the parameter VALUE=TEXT, i.e.</p>
<pre>

X-WR-CALNAME;VALUE=TEXT:My Calendar Name
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/google-calendar-and-icalendar-x-wr-calname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing folders with submodules in Git</title>
		<link>http://sampierson.com/blog/software-development/replacing-folders-with-submodules-in-git/</link>
		<comments>http://sampierson.com/blog/software-development/replacing-folders-with-submodules-in-git/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 03:15:18 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=629</guid>
		<description><![CDATA[I recently ran across the following problem:

Multiple people are developing on the same project, pushing commits into the same (e.g. GitHub) repo.
Developer A is working, and commits locally.
Developer B converts a folder into a Git submodule.
Developer A tries to git pull&#8230; BOOM &#8211; unresolveable conflict, local repo is left in a mess.

The problem is that [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran across the following problem:</p>
<ol>
<li>Multiple people are developing on the same project, pushing commits into the same (e.g. GitHub) repo.</li>
<li>Developer A is working, and commits locally.</li>
<li>Developer B converts a folder into a Git submodule.</li>
<li>Developer A tries to <em>git pull</em>&#8230; BOOM &#8211; unresolveable conflict, local repo is left in a mess.</li>
</ol>
<p>The problem is that because Developer A has a local commit, this forces a merge. <em>Git merge</em> has absolutely no idea how to resolve a conflict between a folder and a submodule.</p>
<p>To fix this, divide the merge into two parts, so you can separate the actions of removing the folder, and adding the submodule:</p>
<ul>
<li>Figure out the SHA of the commit where the folder was removed; let&#8217;s call it <em>abcdef</em> (as far as I am aware you cannot remove a folder and add in the submodule in 1 commit, so there will always be 2 commits here).</li>
<li>Reset your local repo back to HEAD</li>
<li>Merge up to that commit: git merge.</li>
<li>Merge the remaining commits</li>
</ul>
<p>i.e.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
git reset <span style="color: #660033;">--hard</span> HEAD
git merge abcdef
git merge</pre></div></div>

<p>Alternatively, if only a few commits have been made and you are very lazy, you can do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
git merge origin~<span style="color: #000000;">5</span>
git merge origin~<span style="color: #000000;">4</span>
git merge origin~<span style="color: #000000;">3</span>
git merge origin~<span style="color: #000000;">2</span>
git merge origin~<span style="color: #000000;">1</span>
git merge</pre></div></div>

<p>Note that if you don&#8217;t have local changes, this issue does not occur as the fast-forward mechanism just applies all the commits in sequence and everything is cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/replacing-folders-with-submodules-in-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to Snow Leopard</title>
		<link>http://sampierson.com/blog/uncategorized/upgrading-to-snow-leopard/</link>
		<comments>http://sampierson.com/blog/uncategorized/upgrading-to-snow-leopard/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 15:48:09 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=610</guid>
		<description><![CDATA[Somewhat following the instructions from rubyonrails.org:

Install Snow Leopard from DVD.
Install XCode tools from Optional Installs on same DVD.
Start 1Password &#8211; install 1Password3 when prompted.
Evernote Safari clipper seemed to be overwriting the 1Password button in Safari.  Upgraded Evernote to release candidate, still had problem.  Disabled Evernote Safari Clipper.  Also enabled &#8220;Show in Top [...]]]></description>
			<content:encoded><![CDATA[<p>Somewhat following the instructions from <a href="http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard">rubyonrails.org</a>:</p>
<ul>
<li>Install Snow Leopard from DVD.</li>
<li>Install XCode tools from Optional Installs on same DVD.</li>
<li>Start 1Password &#8211; install 1Password3 when prompted.</li>
<li>Evernote Safari clipper seemed to be overwriting the 1Password button in Safari.  Upgraded Evernote to release candidate, still had problem.  Disabled Evernote Safari Clipper.  Also enabled &#8220;Show in Top Menu&#8221; in 1Password preferences.</li>
<li>Installed updates including 10.6.1 from Software Update. (restart required).</li>
<li>Installed latest MySQL 10.5 x86_64 package: mysql-5.1.39-osx10.5-x86_64.dmg.  Installed startup task then pref-pane.  Started server.  Set root password with <em>sudo mysqladmin password &lt;password</em>&gt;.</li>
<li>Reinstalled mysql gem for x86_64 architecture only:</li>
</ul>

<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: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">ARCHFLAGS</span>=<span style="color: #ff0000;">&quot;-arch x86_64&quot;</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql <span style="color: #660033;">--</span> <span style="color: #660033;">--with-mysql-config</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysql_config</pre></div></div>

<ul>
<li>Reinstalled iStat Menus.</li>
<li>Installed MacPorts-1.8.0.pkg.  Removed all ports.</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">port installed <span style="color: #000000; font-weight: bold;">&amp;</span>gt; myports.txt
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port clean installed
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-f</span> uninstall installed
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> unison
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> git-core +<span style="color: #c20cb9; font-weight: bold;">svn</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> ImageMagick</pre></div></div>

<p>Upgraded SuperDuper to version 2.6.1 as it failed to backup Snow Leopard.</p>
<h3>Debugging</h3>
<p>Got this error when trying to run cucumber/webrat:</p>
<pre>
dlopen(/Users/sam/.gem/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle, 9): no suitable image found.  Did find:
	/Users/sam/.gem/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Users/sam/.gem/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle
</pre>
<p>To fix it I uninstalled then reinstalled the nokogiri gem.</p>
<p>Got this error when trying to run cucumber/webrat/selenium:</p>
<pre>
==> Waiting for rails application server on port 3001... /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle, 9): no suitable image found.  Did find: (LoadError)
	/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle: no matching architecture in universal wrapper - /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5.1/bin/../lib/http11.bundle
</pre>
<p>To fix it I uninstalled then reinstalled the mongrel gem.</p>
<p>On a different machine I got this error when trying to run cucumber/webrat/selenium:</p>
<pre>
dyld: Library not loaded: /usr/lib/libsqlite3.dylib
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0
 </pre>
<p>Per <a href="http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpectedly-while-running-selenium-test">http://stackoverflow.com/questions/1364523/firefox-bin-quit-unexpectedly-while-running-selenium-test</a>, I moved /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib out of the way and that fixed it.  It is not clear why this happened on one machine (with Firefox 3.0.13 which I upgraded to 3.5.3 while debugging) but did not happen on another machine (Firefox 3.0.14).</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/uncategorized/upgrading-to-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate here document syntax highlighting</title>
		<link>http://sampierson.com/blog/software-development/textmate-here-document-syntax-highlighting/</link>
		<comments>http://sampierson.com/blog/software-development/textmate-here-document-syntax-highlighting/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:24:44 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=607</guid>
		<description><![CDATA[If you use a language name, e.g. &#8220;SQL&#8221; as the symbol for your &#8216;here&#8217; document in TextMate, it will actually syntax highlight the text in the here document.
Very impressive, but I&#8217;m not switching from RubyMine.
]]></description>
			<content:encoded><![CDATA[<p>If you use a language name, e.g. &#8220;SQL&#8221; as the symbol for your &#8216;here&#8217; document in TextMate, it will actually syntax highlight the text in the here document.</p>
<p>Very impressive, but I&#8217;m not switching from RubyMine.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/textmate-here-document-syntax-highlighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
