<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Working As Intended</title>
  <id>http://www.workingasintended.com/</id>
  <updated>2011-08-23T00:00:00Z</updated>
  <author>
    <name>jdl</name>
  </author>
  <entry>
    <title>rspec, Rails 3, and missing rake tasks</title>
    <link href="http://www.workingasintended.com/2011/08/23/rspec-rails-3-and-missing-rake-tasks/" rel="alternate"/>
    <id>http://www.workingasintended.com/2011/08/23/rspec-rails-3-and-missing-rake-tasks/</id>
    <published>2011-08-23T00:00:00Z</published>
    <updated>2011-08-23T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I was setting up a fresh Rails 3 app and the following bit me.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rake spec:models
rake aborted!
Don't know how to build task 'spec:models'
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;After some head scratching and a closer look at the docs, I realized that I had
forgotten to add the &lt;code&gt;rspec-rails&lt;/code&gt; gem to my development environment.
I had it in only the test and cucumber environments. Seems like an odd thing to do, but it lets you run the various rake tasks in dev.&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;Gemfile&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;group :development, :test, :cucumber do
  gem "rspec-rails"
end
&lt;/code&gt;&lt;/pre&gt;

</summary>
    <content type="html">&lt;p&gt;I was setting up a fresh Rails 3 app and the following bit me.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rake spec:models
rake aborted!
Don't know how to build task 'spec:models'
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;After some head scratching and a closer look at the docs, I realized that I had
forgotten to add the &lt;code&gt;rspec-rails&lt;/code&gt; gem to my development environment.
I had it in only the test and cucumber environments. Seems like an odd thing to do, but it lets you run the various rake tasks in dev.&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;Gemfile&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;group :development, :test, :cucumber do
  gem "rspec-rails"
end
&lt;/code&gt;&lt;/pre&gt;

</content>
  </entry>
  <entry>
    <title>More on Blekko versus Google</title>
    <link href="http://www.workingasintended.com/2011/01/20/more-on-blekko-versus-google/" rel="alternate"/>
    <id>http://www.workingasintended.com/2011/01/20/more-on-blekko-versus-google/</id>
    <published>2011-01-20T00:00:00Z</published>
    <updated>2011-01-20T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;h3&gt;Blekko versus Google for an example search.&lt;/h3&gt;

&lt;p&gt;Please note right from the start that I&amp;rsquo;m not doing this to pile on. If I didn&amp;rsquo;t think that Blekko was in the process of making something awesome, I would simply stop using it. I&amp;rsquo;m writing this so that someone can tell me what I&amp;rsquo;m doing wrong, or as a bug report. Or both.&lt;/p&gt;

&lt;h3&gt;Searching for Cucumber docs&lt;/h3&gt;

&lt;p&gt;I was trying to execute the following search, intending to find the documentation for the selectors in Cucumber.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;rails cucumber should select within&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here&amp;rsquo;s what I found in Google.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="https://skitch.com/jdludlow/rkqdc/rails-cucumber-should-select-within-google-search"&gt;&lt;img style="max-width:638px" src="https://img.skitch.com/20110121-ksii99i41q4ahmd87bjis3xb6k.medium.jpg" alt="rails cucumber should select within - Google Search" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Uploaded with &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;And my Blekko setup for /rails.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="https://skitch.com/jdludlow/rkqdb/blekko-viewing-jdl-rails"&gt;&lt;img style="max-width:638px" src="https://img.skitch.com/20110121-x5cwunkimtrahgt6dir7dfex9j.medium.jpg" alt="blekko | viewing /jdl/rails" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Uploaded with &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;And the Blekko search results.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="https://skitch.com/jdludlow/rkqdg/blekko-rails-cucumber-should-select-within"&gt;&lt;img style="max-width:638px" src="https://img.skitch.com/20110121-dhcm2wfkumy64t3t9bfsptd7bh.medium.jpg" alt="blekko | /rails cucumber should select within" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Uploaded with &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;Clearly there is a disconnect here. I&amp;rsquo;m inheriting the /blekko/rails tag, and I even added the exact host.domain from the #1 Google result. Yet, I get back zero results and some non-relevant web filler.&lt;/p&gt;
</summary>
    <content type="html">&lt;h3&gt;Blekko versus Google for an example search.&lt;/h3&gt;

&lt;p&gt;Please note right from the start that I&amp;rsquo;m not doing this to pile on. If I didn&amp;rsquo;t think that Blekko was in the process of making something awesome, I would simply stop using it. I&amp;rsquo;m writing this so that someone can tell me what I&amp;rsquo;m doing wrong, or as a bug report. Or both.&lt;/p&gt;

&lt;h3&gt;Searching for Cucumber docs&lt;/h3&gt;

&lt;p&gt;I was trying to execute the following search, intending to find the documentation for the selectors in Cucumber.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;rails cucumber should select within&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here&amp;rsquo;s what I found in Google.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="https://skitch.com/jdludlow/rkqdc/rails-cucumber-should-select-within-google-search"&gt;&lt;img style="max-width:638px" src="https://img.skitch.com/20110121-ksii99i41q4ahmd87bjis3xb6k.medium.jpg" alt="rails cucumber should select within - Google Search" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Uploaded with &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;And my Blekko setup for /rails.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="https://skitch.com/jdludlow/rkqdb/blekko-viewing-jdl-rails"&gt;&lt;img style="max-width:638px" src="https://img.skitch.com/20110121-x5cwunkimtrahgt6dir7dfex9j.medium.jpg" alt="blekko | viewing /jdl/rails" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Uploaded with &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;And the Blekko search results.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="https://skitch.com/jdludlow/rkqdg/blekko-rails-cucumber-should-select-within"&gt;&lt;img style="max-width:638px" src="https://img.skitch.com/20110121-dhcm2wfkumy64t3t9bfsptd7bh.medium.jpg" alt="blekko | /rails cucumber should select within" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Uploaded with &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;Clearly there is a disconnect here. I&amp;rsquo;m inheriting the /blekko/rails tag, and I even added the exact host.domain from the #1 Google result. Yet, I get back zero results and some non-relevant web filler.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>And back to Google</title>
    <link href="http://www.workingasintended.com/2011/01/17/and-back-to-google/" rel="alternate"/>
    <id>http://www.workingasintended.com/2011/01/17/and-back-to-google/</id>
    <published>2011-01-17T00:00:00Z</published>
    <updated>2011-01-17T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I gave Blekko a good trial, but it&amp;rsquo;s not quite ready. It&amp;rsquo;s noticeably slower than Google, and the results aren&amp;rsquo;t as good for non-programming queries. Obviously this is highly subjective, and it makes sense that my programming queries would be better since I took the time to customize them. There&amp;rsquo;s still potential here though. I suspect that Blekko will succeed, and I will certainly try them again in a few months.&lt;/p&gt;

&lt;p&gt;Also, it seems that Stack Overflow results are appearing higher up on Google than they were just a few weeks ago. Is it possible that the leech sites are getting what they deserve in their page rank?&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;I gave Blekko a good trial, but it&amp;rsquo;s not quite ready. It&amp;rsquo;s noticeably slower than Google, and the results aren&amp;rsquo;t as good for non-programming queries. Obviously this is highly subjective, and it makes sense that my programming queries would be better since I took the time to customize them. There&amp;rsquo;s still potential here though. I suspect that Blekko will succeed, and I will certainly try them again in a few months.&lt;/p&gt;

&lt;p&gt;Also, it seems that Stack Overflow results are appearing higher up on Google than they were just a few weeks ago. Is it possible that the leech sites are getting what they deserve in their page rank?&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Experimenting With Blekko Over Google</title>
    <link href="http://www.workingasintended.com/2011/01/07/experimenting-with-blekko-over-google/" rel="alternate"/>
    <id>http://www.workingasintended.com/2011/01/07/experimenting-with-blekko-over-google/</id>
    <published>2011-01-07T00:00:00Z</published>
    <updated>2011-01-07T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;Google has been the home page on every browser that I&amp;rsquo;ve used over the last 10 years. Today I switched to &lt;a href="http://www.blekko.com/"&gt;blekko&lt;/a&gt; on my development laptop.&lt;/p&gt;

&lt;h3&gt;The Problem&lt;/h3&gt;

&lt;p&gt;The catalyst for this switch comes from Google&amp;rsquo;s degraded search results when looking up programming-related information. I post a lot on &lt;a href="http://stackoverflow.com/users/9465/jdl"&gt;stackoverflow&lt;/a&gt;, mainly on the topics of Ruby and/or Rails. I do this as a way to give back, since I&amp;rsquo;ve benefited so much in the past and present from the advice that others have freely given. Finding this advice used to be easy: you just Google it. It was so easy that it became its own obnoxious pseudo-verb.&lt;/p&gt;

&lt;p&gt;Part of the deal with stackoverflow is that what you post there is covered by a &lt;a href="http://creativecommons.org/licenses/by-sa/2.5/"&gt;very open license&lt;/a&gt;. Fine and dandy, we know that going in. It&amp;rsquo;s inevitable with a site as good as SO that bottom feeders will scrape it into their own ad farms. Google ranks those sites poorly though right? Wrong. These toilets who I will not name here somehow manage to clog up Google&amp;rsquo;s search results, usually appearing above the source of the original content itself. This is broken.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;ve been crying about not having a personal blacklist on Google for quite a while now. It seems that the all-powerful Google is not interested in implementing this feature. I figured I was alone in this, but &lt;a href="http://news.ycombinator.com/item?id=2075049"&gt;this topic on HN&lt;/a&gt; blew up with comments yesterday. I&amp;rsquo;ve known about, and been highly uninterested in, the Chrome plugin that behaves like a blacklist for Google. I wanted something more universal than that. Plus I rarely use Chrome.&lt;/p&gt;

&lt;h3&gt;Enter blekko&lt;/h3&gt;

&lt;p&gt;I&amp;rsquo;ve seen blekko thrown around on &lt;a href="http://news.ycombinator.com/"&gt;HN&lt;/a&gt; over the last few weeks, but paid it little attention at first. My initial reaction was, &amp;ldquo;Wow, the all-lower-case motif is terrible. This has to be a joke, right?&amp;rdquo; Well, I finally got around to using the thing and while it&amp;rsquo;s not without problems I&amp;rsquo;m going to give it a try for a couple weeks.&lt;/p&gt;

&lt;p&gt;First of all, it&amp;rsquo;s in beta and clearly not perfect. The UI tends to morph over time, and doesn&amp;rsquo;t always match their documentation. Sometimes the site is slow to respond. It does, however, have a compelling feature that it calls &lt;a href="http://blekko.com/ws/+/help#2"&gt;slashtags&lt;/a&gt;. It&amp;rsquo;s a powerful feature with a dumb name. Here&amp;rsquo;s the beauty inherent in the system. These tags represent filters to your search. They are a combination of site whitelists and API calls that have been built for various sites like Twitter and Amazon.&lt;/p&gt;

&lt;p&gt;Here is a simple example. Let&amp;rsquo;s say that I want to search for &amp;ldquo;string,&amp;rdquo; meaning &amp;ldquo;the String class in Ruby.&amp;rdquo; This is an admittedly stupid, since I could type &amp;ldquo;ruby string&amp;rdquo; into any search engine in the world and get back what I&amp;rsquo;m looking for. (If you run a search engine that this test would fail on, please do us all a favor and take a bulldozer to your server room.) In any case, searching for &amp;ldquo;string&amp;rdquo; typically brings back Java- and PHP-related results, since those are more popular than Ruby. However, with blekko I can type or click on my &amp;ldquo;/rails&amp;rdquo; or &amp;ldquo;/ruby&amp;rdquo; tags and have that search only apply to that which has been blessed by the tag&amp;rsquo;s editors. Instant satisfaction, and no sites that I don&amp;rsquo;t want to see.&lt;/p&gt;

&lt;p&gt;Blekko has its own growing list of tags, which are edited by employees and volunteers. This is nice, but the cool part is that you can make your own tags. The namespace of your tags is /username/tag, but you only have to type the /tag part as blekko searches your personal namespace first. If you really want the global tag, you can force it with /blekko/tag. So far this is neat, but not worth changing my homepage over yet.&lt;/p&gt;

&lt;h3&gt;The killer combo&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;When creating your own slashtag you can include both individual sites and other slashtags. This lets you whitelist sites that you like, but offloads the bulk of the work to the editors of the other tags that you&amp;rsquo;ve included.&lt;/li&gt;
&lt;li&gt;You can mark any site you want as spam. It becomes &amp;ldquo;dead to you&amp;rdquo; as they put it. Personal blacklist. So if I&amp;rsquo;m using /blekko/rails as part of my own /jdl/rails tag and someone adds a site I don&amp;rsquo;t like to the main tag, I can easily nuke it from orbit.&lt;/li&gt;
&lt;/ol&gt;


&lt;blockquote&gt;&lt;p&gt;&lt;img src="https://img.skitch.com/20110108-cucrjffb64d59xuspgs7axe6pc.jpg" alt="e-freedom indeed" /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Attention Google: This is what&amp;rsquo;s called a &amp;ldquo;useful feature.&amp;rdquo;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Google has been the home page on every browser that I&amp;rsquo;ve used over the last 10 years. Today I switched to &lt;a href="http://www.blekko.com/"&gt;blekko&lt;/a&gt; on my development laptop.&lt;/p&gt;

&lt;h3&gt;The Problem&lt;/h3&gt;

&lt;p&gt;The catalyst for this switch comes from Google&amp;rsquo;s degraded search results when looking up programming-related information. I post a lot on &lt;a href="http://stackoverflow.com/users/9465/jdl"&gt;stackoverflow&lt;/a&gt;, mainly on the topics of Ruby and/or Rails. I do this as a way to give back, since I&amp;rsquo;ve benefited so much in the past and present from the advice that others have freely given. Finding this advice used to be easy: you just Google it. It was so easy that it became its own obnoxious pseudo-verb.&lt;/p&gt;

&lt;p&gt;Part of the deal with stackoverflow is that what you post there is covered by a &lt;a href="http://creativecommons.org/licenses/by-sa/2.5/"&gt;very open license&lt;/a&gt;. Fine and dandy, we know that going in. It&amp;rsquo;s inevitable with a site as good as SO that bottom feeders will scrape it into their own ad farms. Google ranks those sites poorly though right? Wrong. These toilets who I will not name here somehow manage to clog up Google&amp;rsquo;s search results, usually appearing above the source of the original content itself. This is broken.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;ve been crying about not having a personal blacklist on Google for quite a while now. It seems that the all-powerful Google is not interested in implementing this feature. I figured I was alone in this, but &lt;a href="http://news.ycombinator.com/item?id=2075049"&gt;this topic on HN&lt;/a&gt; blew up with comments yesterday. I&amp;rsquo;ve known about, and been highly uninterested in, the Chrome plugin that behaves like a blacklist for Google. I wanted something more universal than that. Plus I rarely use Chrome.&lt;/p&gt;

&lt;h3&gt;Enter blekko&lt;/h3&gt;

&lt;p&gt;I&amp;rsquo;ve seen blekko thrown around on &lt;a href="http://news.ycombinator.com/"&gt;HN&lt;/a&gt; over the last few weeks, but paid it little attention at first. My initial reaction was, &amp;ldquo;Wow, the all-lower-case motif is terrible. This has to be a joke, right?&amp;rdquo; Well, I finally got around to using the thing and while it&amp;rsquo;s not without problems I&amp;rsquo;m going to give it a try for a couple weeks.&lt;/p&gt;

&lt;p&gt;First of all, it&amp;rsquo;s in beta and clearly not perfect. The UI tends to morph over time, and doesn&amp;rsquo;t always match their documentation. Sometimes the site is slow to respond. It does, however, have a compelling feature that it calls &lt;a href="http://blekko.com/ws/+/help#2"&gt;slashtags&lt;/a&gt;. It&amp;rsquo;s a powerful feature with a dumb name. Here&amp;rsquo;s the beauty inherent in the system. These tags represent filters to your search. They are a combination of site whitelists and API calls that have been built for various sites like Twitter and Amazon.&lt;/p&gt;

&lt;p&gt;Here is a simple example. Let&amp;rsquo;s say that I want to search for &amp;ldquo;string,&amp;rdquo; meaning &amp;ldquo;the String class in Ruby.&amp;rdquo; This is an admittedly stupid, since I could type &amp;ldquo;ruby string&amp;rdquo; into any search engine in the world and get back what I&amp;rsquo;m looking for. (If you run a search engine that this test would fail on, please do us all a favor and take a bulldozer to your server room.) In any case, searching for &amp;ldquo;string&amp;rdquo; typically brings back Java- and PHP-related results, since those are more popular than Ruby. However, with blekko I can type or click on my &amp;ldquo;/rails&amp;rdquo; or &amp;ldquo;/ruby&amp;rdquo; tags and have that search only apply to that which has been blessed by the tag&amp;rsquo;s editors. Instant satisfaction, and no sites that I don&amp;rsquo;t want to see.&lt;/p&gt;

&lt;p&gt;Blekko has its own growing list of tags, which are edited by employees and volunteers. This is nice, but the cool part is that you can make your own tags. The namespace of your tags is /username/tag, but you only have to type the /tag part as blekko searches your personal namespace first. If you really want the global tag, you can force it with /blekko/tag. So far this is neat, but not worth changing my homepage over yet.&lt;/p&gt;

&lt;h3&gt;The killer combo&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;When creating your own slashtag you can include both individual sites and other slashtags. This lets you whitelist sites that you like, but offloads the bulk of the work to the editors of the other tags that you&amp;rsquo;ve included.&lt;/li&gt;
&lt;li&gt;You can mark any site you want as spam. It becomes &amp;ldquo;dead to you&amp;rdquo; as they put it. Personal blacklist. So if I&amp;rsquo;m using /blekko/rails as part of my own /jdl/rails tag and someone adds a site I don&amp;rsquo;t like to the main tag, I can easily nuke it from orbit.&lt;/li&gt;
&lt;/ol&gt;


&lt;blockquote&gt;&lt;p&gt;&lt;img src="https://img.skitch.com/20110108-cucrjffb64d59xuspgs7axe6pc.jpg" alt="e-freedom indeed" /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Attention Google: This is what&amp;rsquo;s called a &amp;ldquo;useful feature.&amp;rdquo;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Go on OS X and iOS</title>
    <link href="http://www.workingasintended.com/2010/11/20/go-on-os-x-and-ios/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/11/20/go-on-os-x-and-ios/</id>
    <published>2010-11-20T00:00:00Z</published>
    <updated>2010-11-20T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;These are the Go applications that I use the most.&lt;/p&gt;

&lt;h1&gt;OS X&lt;/h1&gt;

&lt;p&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a href="http://www.gokgs.com/"&gt;KGS&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;KGS is a fantastic English-language realtime Go server, created by &lt;a href="http://www.boardgamegeek.com/user/wmshub"&gt;wms&lt;/a&gt;. The &lt;a href="http://www.gokgs.com/download.jsp"&gt;client&lt;/a&gt;
is a Java program, so it works fine on Windows and Linux as well. Basic accounts are free, and give you access to almost
all of the features of the server. You can play in rated and non-rated games, access your game history, download &lt;a href="http://senseis.xmp.net/?SmartGameFormat"&gt;SGF&lt;/a&gt;
files of your games, comment and review your own games, and join the chat channels. The client also works as an SGF
creator and editor, letting you take notes and review variations from your games. This is the best client I&amp;rsquo;ve found
yet for handling multiple games in a single SGF file and easily navigating heavily nested trees.&lt;/p&gt;

&lt;p&gt;Here is an example of a game under review. You can do this offline with downloaded SGF files, or you can review online by loading the game into a chatroom.
Then other people can join the review. Anything that people type will appear at that point in the SGF file. We use this mode during our class matches to review
with each other prior to emailing the game record to the instructors.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-xrgh7gswebjxw37w2yrafgmwtr.png" alt="KGS game review" /&gt;&lt;/p&gt;

&lt;p&gt;Finding a game is pretty easy, since the main tab is a list of all open games. They come and go quickly though, so by the time you&amp;rsquo;ve decided to join one
it&amp;rsquo;s probably already filled. I prefer to use the automatch feature. Most of the time it finds an opponent immediately. Depending on the time of day, it might
take a few minutes.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-kjxrg21wngi8fxj8m1ak46xd3e.png" alt="KGS automatch preferences" /&gt;&lt;/p&gt;

&lt;p&gt;Paid accounts add the ability to join tournaments and watch professional lectures. You can view the lectures live and interact with the
instructor via chat. They are also stored in an archive to watch later.&lt;/p&gt;

&lt;p&gt;I used a free account for years, but earlier this year switched to a paid account. Given the amount of time I spend playing
and studying on this server it&amp;rsquo;s a bargain. Android uses should take note that &lt;a href="http://www.gokgs.com/help/androidInfo.html"&gt;the $15 app&lt;/a&gt; comes with two months of KGS+ included. If I had an
Android phone, I would buy this without hesitation. Since KGS uses Java for its client, wms has said in no uncertain terms that
there will not be an iOS version released anytime soon.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.lifein19x19.com/forum"&gt;Life in 19x19&lt;/a&gt; has a dedicated &lt;a href="http://www.lifein19x19.com/forum/viewforum.php?f=24"&gt;KGS forum&lt;/a&gt; where wms posts.&lt;/p&gt;

&lt;h3&gt;&lt;a href="http://www.sente.ch/software/goban/"&gt;Goban&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Goban is a client for playing against GNU Go. Computers aren&amp;rsquo;t good at Go, but they can still crush newbies. If you&amp;rsquo;re new the game, playing 9x9 games repeatedly against GNU Go is
a good way to get better. Start with a 4 stone handicap and keep at it until you can beat the computer with no handicap.&lt;/p&gt;

&lt;p&gt;One quirk of this program is that the board size isn&amp;rsquo;t found in the preferences. It&amp;rsquo;s in the info drawer.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-qdum2q7ufgbg9asgfx375fun1j.png" alt="Goban info drawer" /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h1&gt;iOS&lt;/h1&gt;

&lt;p&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a href="http://www.smartgo.com/en/kifu.htm"&gt;SmartGo Kifu&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;SmartGo Kifu is awesome. It&amp;rsquo;s not without its quirks and faults, but it&amp;rsquo;s a fine piece of software. By far the biggest thing that I use it for is the set of 2000+ &lt;a href="http://senseis.xmp.net/?Tsumego"&gt;tsumego&lt;/a&gt;
problems. Most of them are life &amp;amp; death problems, with a few &lt;a href="http://senseis.xmp.net/?FusekiPages"&gt;fuseki&lt;/a&gt; and &lt;a href="http://senseis.xmp.net/?Tesuji"&gt;tesuji&lt;/a&gt; problems
thrown in. They are organized by difficulty, and problems that you get wrong are marked
so that you can go back and retry them later. It&amp;rsquo;s similar to Go Grinder, but I like the SmartGo interface much better.&lt;/p&gt;

&lt;p&gt;A major feature that I am just starting to use is the database of 31,000 professional games. Only 20 are annotated, and the review features are not as easy to use as KGS.
I&amp;rsquo;m not strong enough to get much out of a pro game that isn&amp;rsquo;t commented. I would guess that stronger players would have a lot of fun with a portable database like this.&lt;/p&gt;

&lt;p&gt;There&amp;rsquo;s an AI, with all the caveats of computers being weaker than humans. It still plays a decent 9x9 game, and will destroy newbies who don&amp;rsquo;t take a handicap.&lt;/p&gt;

&lt;p&gt;You can play against other humans, but only on the same devise. There is no network play built in. I haven&amp;rsquo;t found this to be an issue, since I play online via KGS or just
use one of the turn-based web sites for playing on the iPad. It keeps a history of games played, organized by player, so you can review your games later.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.smartgo.com/img/kifu1.png" alt="SmartGo Kifu" /&gt;&lt;/p&gt;

&lt;p&gt;iPhone users should check out SmartGo Pro. It&amp;rsquo;s the predecessor to Kifu, and has the pro database and the Go problems included.&lt;/p&gt;

&lt;h3&gt;&lt;a href="http://zombieprocess.org/"&gt;Tengen Go&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Tengen is a decent, not great, Go client for IGS. I&amp;rsquo;m not a fan of IGS to begin with, but when I absolutely must play a real-time game on the iPad it&amp;rsquo;s the only
option that I&amp;rsquo;m aware of. (There&amp;rsquo;s another iPhone IGS client called Tetsuki, but uninstalled it after having connection problems.)&lt;/p&gt;

&lt;p&gt;&lt;img src="http://a1.phobos.apple.com/us/r1000/020/Purple/62/ee/42/mzl.qarpdsiw.480x480-75.jpg" alt="Tengen" /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h1&gt;Web&lt;/h1&gt;

&lt;p&gt;A nice bonus with web-based Go servers is that they are equally useful on the Mac and the mobile devices. Almost all of the Go games that I play with
the iPad are done on a web server.&lt;/p&gt;


&lt;h3&gt;&lt;a href="http://go.davepeck.org/"&gt;Dave Peck Go&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;This is a simple, yet polished, web client for playing turn-based games. There are no accounts, game histories, archives, or rankings.
You set up a game, plug in the email addresses of both players, and then each of you receive a link in your email and
a reminder when it&amp;rsquo;s your turn. It runs on Google&amp;rsquo;s App Engine, and is an &lt;a href="https://github.com/davepeck/appengine-go/"&gt;open source project&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is a game in progress. The JavaScript controls work just fine on mobile Safari.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-fmhw1gsqyi7t12cunayh1ejxx1.png" alt="Dave Peck game" /&gt;&lt;/p&gt;

&lt;h3&gt;&lt;a href="http://www.dragongoserver.net/"&gt;Dragon Go Server [DGS]&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;DGS is a full-featured server with accounts, ratings, a ton of game options, and a generally pleasant user base. I usually start or join games with extremely
long time controls, averaging less than one move per day. Many people on this server are fine with such slow games, and are typically involved with multiple
games at once. The interface is usable, and generally doesn&amp;rsquo;t get in your way. You click where you want to move then confirm the move. You can pull up lists
of your games, completed or in progress. Reviews need to be done externally, which usually means that you download the SGF file and load it in CGoban (the KGS client).&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-83h2mc52uyi3jq87h12bgjrx8f.png" alt="DGS game completed" /&gt;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;These are the Go applications that I use the most.&lt;/p&gt;

&lt;h1&gt;OS X&lt;/h1&gt;

&lt;p&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a href="http://www.gokgs.com/"&gt;KGS&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;KGS is a fantastic English-language realtime Go server, created by &lt;a href="http://www.boardgamegeek.com/user/wmshub"&gt;wms&lt;/a&gt;. The &lt;a href="http://www.gokgs.com/download.jsp"&gt;client&lt;/a&gt;
is a Java program, so it works fine on Windows and Linux as well. Basic accounts are free, and give you access to almost
all of the features of the server. You can play in rated and non-rated games, access your game history, download &lt;a href="http://senseis.xmp.net/?SmartGameFormat"&gt;SGF&lt;/a&gt;
files of your games, comment and review your own games, and join the chat channels. The client also works as an SGF
creator and editor, letting you take notes and review variations from your games. This is the best client I&amp;rsquo;ve found
yet for handling multiple games in a single SGF file and easily navigating heavily nested trees.&lt;/p&gt;

&lt;p&gt;Here is an example of a game under review. You can do this offline with downloaded SGF files, or you can review online by loading the game into a chatroom.
Then other people can join the review. Anything that people type will appear at that point in the SGF file. We use this mode during our class matches to review
with each other prior to emailing the game record to the instructors.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-xrgh7gswebjxw37w2yrafgmwtr.png" alt="KGS game review" /&gt;&lt;/p&gt;

&lt;p&gt;Finding a game is pretty easy, since the main tab is a list of all open games. They come and go quickly though, so by the time you&amp;rsquo;ve decided to join one
it&amp;rsquo;s probably already filled. I prefer to use the automatch feature. Most of the time it finds an opponent immediately. Depending on the time of day, it might
take a few minutes.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-kjxrg21wngi8fxj8m1ak46xd3e.png" alt="KGS automatch preferences" /&gt;&lt;/p&gt;

&lt;p&gt;Paid accounts add the ability to join tournaments and watch professional lectures. You can view the lectures live and interact with the
instructor via chat. They are also stored in an archive to watch later.&lt;/p&gt;

&lt;p&gt;I used a free account for years, but earlier this year switched to a paid account. Given the amount of time I spend playing
and studying on this server it&amp;rsquo;s a bargain. Android uses should take note that &lt;a href="http://www.gokgs.com/help/androidInfo.html"&gt;the $15 app&lt;/a&gt; comes with two months of KGS+ included. If I had an
Android phone, I would buy this without hesitation. Since KGS uses Java for its client, wms has said in no uncertain terms that
there will not be an iOS version released anytime soon.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.lifein19x19.com/forum"&gt;Life in 19x19&lt;/a&gt; has a dedicated &lt;a href="http://www.lifein19x19.com/forum/viewforum.php?f=24"&gt;KGS forum&lt;/a&gt; where wms posts.&lt;/p&gt;

&lt;h3&gt;&lt;a href="http://www.sente.ch/software/goban/"&gt;Goban&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Goban is a client for playing against GNU Go. Computers aren&amp;rsquo;t good at Go, but they can still crush newbies. If you&amp;rsquo;re new the game, playing 9x9 games repeatedly against GNU Go is
a good way to get better. Start with a 4 stone handicap and keep at it until you can beat the computer with no handicap.&lt;/p&gt;

&lt;p&gt;One quirk of this program is that the board size isn&amp;rsquo;t found in the preferences. It&amp;rsquo;s in the info drawer.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-qdum2q7ufgbg9asgfx375fun1j.png" alt="Goban info drawer" /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h1&gt;iOS&lt;/h1&gt;

&lt;p&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a href="http://www.smartgo.com/en/kifu.htm"&gt;SmartGo Kifu&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;SmartGo Kifu is awesome. It&amp;rsquo;s not without its quirks and faults, but it&amp;rsquo;s a fine piece of software. By far the biggest thing that I use it for is the set of 2000+ &lt;a href="http://senseis.xmp.net/?Tsumego"&gt;tsumego&lt;/a&gt;
problems. Most of them are life &amp;amp; death problems, with a few &lt;a href="http://senseis.xmp.net/?FusekiPages"&gt;fuseki&lt;/a&gt; and &lt;a href="http://senseis.xmp.net/?Tesuji"&gt;tesuji&lt;/a&gt; problems
thrown in. They are organized by difficulty, and problems that you get wrong are marked
so that you can go back and retry them later. It&amp;rsquo;s similar to Go Grinder, but I like the SmartGo interface much better.&lt;/p&gt;

&lt;p&gt;A major feature that I am just starting to use is the database of 31,000 professional games. Only 20 are annotated, and the review features are not as easy to use as KGS.
I&amp;rsquo;m not strong enough to get much out of a pro game that isn&amp;rsquo;t commented. I would guess that stronger players would have a lot of fun with a portable database like this.&lt;/p&gt;

&lt;p&gt;There&amp;rsquo;s an AI, with all the caveats of computers being weaker than humans. It still plays a decent 9x9 game, and will destroy newbies who don&amp;rsquo;t take a handicap.&lt;/p&gt;

&lt;p&gt;You can play against other humans, but only on the same devise. There is no network play built in. I haven&amp;rsquo;t found this to be an issue, since I play online via KGS or just
use one of the turn-based web sites for playing on the iPad. It keeps a history of games played, organized by player, so you can review your games later.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.smartgo.com/img/kifu1.png" alt="SmartGo Kifu" /&gt;&lt;/p&gt;

&lt;p&gt;iPhone users should check out SmartGo Pro. It&amp;rsquo;s the predecessor to Kifu, and has the pro database and the Go problems included.&lt;/p&gt;

&lt;h3&gt;&lt;a href="http://zombieprocess.org/"&gt;Tengen Go&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Tengen is a decent, not great, Go client for IGS. I&amp;rsquo;m not a fan of IGS to begin with, but when I absolutely must play a real-time game on the iPad it&amp;rsquo;s the only
option that I&amp;rsquo;m aware of. (There&amp;rsquo;s another iPhone IGS client called Tetsuki, but uninstalled it after having connection problems.)&lt;/p&gt;

&lt;p&gt;&lt;img src="http://a1.phobos.apple.com/us/r1000/020/Purple/62/ee/42/mzl.qarpdsiw.480x480-75.jpg" alt="Tengen" /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h1&gt;Web&lt;/h1&gt;

&lt;p&gt;A nice bonus with web-based Go servers is that they are equally useful on the Mac and the mobile devices. Almost all of the Go games that I play with
the iPad are done on a web server.&lt;/p&gt;


&lt;h3&gt;&lt;a href="http://go.davepeck.org/"&gt;Dave Peck Go&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;This is a simple, yet polished, web client for playing turn-based games. There are no accounts, game histories, archives, or rankings.
You set up a game, plug in the email addresses of both players, and then each of you receive a link in your email and
a reminder when it&amp;rsquo;s your turn. It runs on Google&amp;rsquo;s App Engine, and is an &lt;a href="https://github.com/davepeck/appengine-go/"&gt;open source project&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is a game in progress. The JavaScript controls work just fine on mobile Safari.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-fmhw1gsqyi7t12cunayh1ejxx1.png" alt="Dave Peck game" /&gt;&lt;/p&gt;

&lt;h3&gt;&lt;a href="http://www.dragongoserver.net/"&gt;Dragon Go Server [DGS]&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;DGS is a full-featured server with accounts, ratings, a ton of game options, and a generally pleasant user base. I usually start or join games with extremely
long time controls, averaging less than one move per day. Many people on this server are fine with such slow games, and are typically involved with multiple
games at once. The interface is usable, and generally doesn&amp;rsquo;t get in your way. You click where you want to move then confirm the move. You can pull up lists
of your games, completed or in progress. Reviews need to be done externally, which usually means that you download the SGF file and load it in CGoban (the KGS client).&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20101128-83h2mc52uyi3jq87h12bgjrx8f.png" alt="DGS game completed" /&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Rails 2.3.* + Metal + Sinatra + Builder == Boom</title>
    <link href="http://www.workingasintended.com/2010/09/22/rails-23--metal--sinatra--builder--boom/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/09/22/rails-23--metal--sinatra--builder--boom/</id>
    <published>2010-09-22T00:00:00Z</published>
    <updated>2010-09-22T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I ran into a bug in &lt;a href="http://github.com/binarylogic/authlogic"&gt;authlogic&lt;/a&gt;,
&lt;a href="http://github.com/jdl/authlogic"&gt;forked it&lt;/a&gt;, and made a
&lt;a href="http://github.com/jdl/authlogic/commit/368a77980d675748af2a655d206db83ec8343e88"&gt;trivial fix&lt;/a&gt;. I&amp;rsquo;ll request a push back into the main repository, but with nearly 500 active forks I&amp;rsquo;m guessing that those are rarely accepted. This is the summary that I added to the readme file.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Very simply, this is a fork of authlogic 2.1.6 that fixes a bug in the sinatra_adapter. I didn&amp;rsquo;t change anything else related to the core functionality of authlogic. The symptoms of the bug are as follows.&lt;/p&gt;

&lt;p&gt;You are running:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rails 2.3.*&lt;/li&gt;
&lt;li&gt;authlogic for some regular controllers&lt;/li&gt;
&lt;li&gt;Sinatra from the metal directory, but not using authlogic for any of those classes&lt;/li&gt;
&lt;li&gt;Builder&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;What happens is that even though you don&amp;rsquo;t care about using authlogic in your Sinatra classes, the use of Builder ultimately triggers the code that checks for the existence of the Sinatra class, which causes authlogic to load its adapter. The adapter is trying to inlcude itself into Sinatra::Request, when it should be using Sinatra::Base.&lt;/p&gt;

&lt;p&gt;WARNING: I have no idea if authlogic actually works with Sinatra, because I don&amp;rsquo;t care if it does or not. I just wanted my app to stop exploding during boot. I&amp;rsquo;m using authlogic for my Rails controllers, not my Sinatra classes.&lt;/p&gt;&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://github.com/jdl/authlogic"&gt;github&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://rubygems.org/gems/jdl-authlogic"&gt;RubyGems&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Bundler command:

&lt;pre&gt;&lt;code&gt;  gem 'jdl-authlogic', '2.1.6.2', :require =&amp;gt; "authlogic"
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;

</summary>
    <content type="html">&lt;p&gt;I ran into a bug in &lt;a href="http://github.com/binarylogic/authlogic"&gt;authlogic&lt;/a&gt;,
&lt;a href="http://github.com/jdl/authlogic"&gt;forked it&lt;/a&gt;, and made a
&lt;a href="http://github.com/jdl/authlogic/commit/368a77980d675748af2a655d206db83ec8343e88"&gt;trivial fix&lt;/a&gt;. I&amp;rsquo;ll request a push back into the main repository, but with nearly 500 active forks I&amp;rsquo;m guessing that those are rarely accepted. This is the summary that I added to the readme file.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Very simply, this is a fork of authlogic 2.1.6 that fixes a bug in the sinatra_adapter. I didn&amp;rsquo;t change anything else related to the core functionality of authlogic. The symptoms of the bug are as follows.&lt;/p&gt;

&lt;p&gt;You are running:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rails 2.3.*&lt;/li&gt;
&lt;li&gt;authlogic for some regular controllers&lt;/li&gt;
&lt;li&gt;Sinatra from the metal directory, but not using authlogic for any of those classes&lt;/li&gt;
&lt;li&gt;Builder&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;What happens is that even though you don&amp;rsquo;t care about using authlogic in your Sinatra classes, the use of Builder ultimately triggers the code that checks for the existence of the Sinatra class, which causes authlogic to load its adapter. The adapter is trying to inlcude itself into Sinatra::Request, when it should be using Sinatra::Base.&lt;/p&gt;

&lt;p&gt;WARNING: I have no idea if authlogic actually works with Sinatra, because I don&amp;rsquo;t care if it does or not. I just wanted my app to stop exploding during boot. I&amp;rsquo;m using authlogic for my Rails controllers, not my Sinatra classes.&lt;/p&gt;&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://github.com/jdl/authlogic"&gt;github&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://rubygems.org/gems/jdl-authlogic"&gt;RubyGems&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Bundler command:

&lt;pre&gt;&lt;code&gt;  gem 'jdl-authlogic', '2.1.6.2', :require =&amp;gt; "authlogic"
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;

</content>
  </entry>
  <entry>
    <title>Switching from OS X to Ubuntu?</title>
    <link href="http://www.workingasintended.com/2010/08/19/switching-from-os-x-to-ubuntu/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/08/19/switching-from-os-x-to-ubuntu/</id>
    <published>2010-08-19T00:00:00Z</published>
    <updated>2010-08-19T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;&lt;em&gt;If you aren&amp;rsquo;t interested in a long, drawn-out navel-gazing session regarding my choice in laptops, hit abort now. You have been warned.&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;The Dilemma&lt;/h4&gt;

&lt;p&gt;My current computer for daily work is a &lt;a href="http://www.everymac.com/systems/apple/macbook_pro/stats/macbook-pro-core-2-duo-2.16-15-specs.html"&gt;2006 MacBook Pro&lt;/a&gt;. It&amp;rsquo;s stock, except for the RAM which I upgraded to 3 GB. I love this machine, but it&amp;rsquo;s showing its age and probably should be replaced soon. I&amp;rsquo;m looking at a 15" MBP with an i7 processor, 8 GB RAM, 500 GB HDD, and the anti-glare screen. This would be a &lt;em&gt;gigantic&lt;/em&gt; step up from what I&amp;rsquo;m currently running. The problem is that it&amp;rsquo;s nearly $3000 to get this to my door.&lt;/p&gt;

&lt;p&gt;Looking at a semi-comparable laptop from &lt;a href="http://www.system76.com/product_info.php?cPath=28&amp;products_id=99"&gt;system76&lt;/a&gt;, I can save around $1000 by going this route. One immediate downside is that all of the screen options are of the super glossy variety, which in my limited searching appears to be the norm for PC laptops these days. Why is it so hard to imagine that people would want an anti-glare screen? Another downside is that there&amp;rsquo;s not a system76 Genius Bar five miles away from me. I haven&amp;rsquo;t had a lot of interaction with the local Apple Store, but when I have had trouble they&amp;rsquo;ve been helpful.&lt;/p&gt;

&lt;p&gt;Since I&amp;rsquo;m likely going to use this next laptop for 3+ years, the cost difference works out to around $30 per month over the life of the machine &amp;mdash; yes, minus the present value of money for you finance types. Still, $1000 is $1000 and I&amp;rsquo;d rather not spend it if I don&amp;rsquo;t have to. What this decision will ultimately come down to is software.&lt;/p&gt;

&lt;h4&gt;Operating Systems&lt;/h4&gt;

&lt;p&gt;With the MBP I&amp;rsquo;d be running OS X (duh) and occasionally Win XP via VMware. The system76 laptop would primarily run Ubuntu 10.04 and Win XP via either dual-booting or VMware.&lt;/p&gt;

&lt;h4&gt;The Easy Part: Software that exists for both systems&lt;/h4&gt;

&lt;p&gt;Given that most of my work involves programming Ruby and/or Java code, most of the tools that I use are readily available on OS X and Ubuntu.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;vim&lt;/li&gt;
&lt;li&gt;MySQL + PostgreSQL&lt;/li&gt;
&lt;li&gt;DbVisualizer&lt;/li&gt;
&lt;li&gt;Charles Proxy: A damn good HTTP tracing tool. I don&amp;rsquo;t use it often, but when it&amp;rsquo;s needed it&amp;rsquo;s golden.&lt;/li&gt;
&lt;li&gt;Firefox (Firebug is an important factor here.)&lt;/li&gt;
&lt;li&gt;Ruby and Java are both supported just fine on either system, and I&amp;rsquo;m not aware of any gems or libraries that I use on one that won&amp;rsquo;t work on the other. Given that I generally develop on OS X for deployment on Linux, this is a good thing. This also includes various other languages that I play with. Unless I plan to start developing iPhone apps, which I don&amp;rsquo;t, languages and frameworks won&amp;rsquo;t be a big factor.&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;The Moderately Difficult Part: Software that probably has a usable alternative on Linux&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Mailplane: Obviously, I can access all of my various Gmail accounts via Firefox. It&amp;rsquo;s more of a pain that way, however. Having a count of unread messages for all of my accounts is also convenient.&lt;/li&gt;
&lt;li&gt;Propane: This is a Campfire client. We use Campfire constantly at &lt;a href="http://www.zencoder.com/"&gt;Zencoder&lt;/a&gt;. This is another case where I could use the web app, but the client app is really nice.&lt;/li&gt;
&lt;li&gt;OmniOutliner + OmniFocus: I use them, but I don&amp;rsquo;t rely on them and could easily live without them.&lt;/li&gt;
&lt;li&gt;Skitch: It sounds dumb that a screen shot tool would make this list, but Skitch is so damn good it&amp;rsquo;s scary. I still do not understand why they are not charging for their app or their service. Simple idea, brilliantly executed.&lt;/li&gt;
&lt;li&gt;Terminal: I&amp;rsquo;m used to the short cuts and behavior of the OS X Terminal app. There are plenty of options for Linux (obviously), but it will take a while to get used to the new command keys.&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;The Extra Painful Part: Can I live without these apps?&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;1Password: This is a big deal, because I use 1Password so frequently. It&amp;rsquo;s a fantastic piece of software. As an added bonus, since I keep my key file in Dropbox my passwords are automatically synchronized between my laptop and Mac Mini.&lt;/li&gt;
&lt;li&gt;OmniGraffle: I have yet to see its equal in terms of simplicity and output quality when driven by a non-artist / non-designer like me. This helps me make diagrams that look good, and it&amp;rsquo;s dead simple to use. I also have the iPad version, but that&amp;rsquo;s not really as good (yet).&lt;/li&gt;
&lt;li&gt;Netflix Instant View: I rarely watch movies on my laptop, but it does happen. There is no reasonable way to accomplish this on Linux. I could use the iPad, but the current iPad Netflix app is awful.&lt;/li&gt;
&lt;li&gt;iTunes: I guess I&amp;rsquo;d have to sync the iPad to the Mini. I probably use this app way more than I realize, given that I&amp;rsquo;m constantly listening to podcasts and music.&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;The [OS]X-Factor&lt;/h4&gt;

&lt;p&gt;Over the last 15 years I&amp;rsquo;ve jumped around between Mac and Linux. To me, OS X was the grail that the Linux world was looking for &amp;mdash; a killer desktop UI on top of Unix. Maybe it&amp;rsquo;s silly to switch back to Linux after so many years on OS X. The price tag is at least making me seriously consider it though.&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;&lt;em&gt;If you aren&amp;rsquo;t interested in a long, drawn-out navel-gazing session regarding my choice in laptops, hit abort now. You have been warned.&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;The Dilemma&lt;/h4&gt;

&lt;p&gt;My current computer for daily work is a &lt;a href="http://www.everymac.com/systems/apple/macbook_pro/stats/macbook-pro-core-2-duo-2.16-15-specs.html"&gt;2006 MacBook Pro&lt;/a&gt;. It&amp;rsquo;s stock, except for the RAM which I upgraded to 3 GB. I love this machine, but it&amp;rsquo;s showing its age and probably should be replaced soon. I&amp;rsquo;m looking at a 15" MBP with an i7 processor, 8 GB RAM, 500 GB HDD, and the anti-glare screen. This would be a &lt;em&gt;gigantic&lt;/em&gt; step up from what I&amp;rsquo;m currently running. The problem is that it&amp;rsquo;s nearly $3000 to get this to my door.&lt;/p&gt;

&lt;p&gt;Looking at a semi-comparable laptop from &lt;a href="http://www.system76.com/product_info.php?cPath=28&amp;products_id=99"&gt;system76&lt;/a&gt;, I can save around $1000 by going this route. One immediate downside is that all of the screen options are of the super glossy variety, which in my limited searching appears to be the norm for PC laptops these days. Why is it so hard to imagine that people would want an anti-glare screen? Another downside is that there&amp;rsquo;s not a system76 Genius Bar five miles away from me. I haven&amp;rsquo;t had a lot of interaction with the local Apple Store, but when I have had trouble they&amp;rsquo;ve been helpful.&lt;/p&gt;

&lt;p&gt;Since I&amp;rsquo;m likely going to use this next laptop for 3+ years, the cost difference works out to around $30 per month over the life of the machine &amp;mdash; yes, minus the present value of money for you finance types. Still, $1000 is $1000 and I&amp;rsquo;d rather not spend it if I don&amp;rsquo;t have to. What this decision will ultimately come down to is software.&lt;/p&gt;

&lt;h4&gt;Operating Systems&lt;/h4&gt;

&lt;p&gt;With the MBP I&amp;rsquo;d be running OS X (duh) and occasionally Win XP via VMware. The system76 laptop would primarily run Ubuntu 10.04 and Win XP via either dual-booting or VMware.&lt;/p&gt;

&lt;h4&gt;The Easy Part: Software that exists for both systems&lt;/h4&gt;

&lt;p&gt;Given that most of my work involves programming Ruby and/or Java code, most of the tools that I use are readily available on OS X and Ubuntu.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;vim&lt;/li&gt;
&lt;li&gt;MySQL + PostgreSQL&lt;/li&gt;
&lt;li&gt;DbVisualizer&lt;/li&gt;
&lt;li&gt;Charles Proxy: A damn good HTTP tracing tool. I don&amp;rsquo;t use it often, but when it&amp;rsquo;s needed it&amp;rsquo;s golden.&lt;/li&gt;
&lt;li&gt;Firefox (Firebug is an important factor here.)&lt;/li&gt;
&lt;li&gt;Ruby and Java are both supported just fine on either system, and I&amp;rsquo;m not aware of any gems or libraries that I use on one that won&amp;rsquo;t work on the other. Given that I generally develop on OS X for deployment on Linux, this is a good thing. This also includes various other languages that I play with. Unless I plan to start developing iPhone apps, which I don&amp;rsquo;t, languages and frameworks won&amp;rsquo;t be a big factor.&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;The Moderately Difficult Part: Software that probably has a usable alternative on Linux&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Mailplane: Obviously, I can access all of my various Gmail accounts via Firefox. It&amp;rsquo;s more of a pain that way, however. Having a count of unread messages for all of my accounts is also convenient.&lt;/li&gt;
&lt;li&gt;Propane: This is a Campfire client. We use Campfire constantly at &lt;a href="http://www.zencoder.com/"&gt;Zencoder&lt;/a&gt;. This is another case where I could use the web app, but the client app is really nice.&lt;/li&gt;
&lt;li&gt;OmniOutliner + OmniFocus: I use them, but I don&amp;rsquo;t rely on them and could easily live without them.&lt;/li&gt;
&lt;li&gt;Skitch: It sounds dumb that a screen shot tool would make this list, but Skitch is so damn good it&amp;rsquo;s scary. I still do not understand why they are not charging for their app or their service. Simple idea, brilliantly executed.&lt;/li&gt;
&lt;li&gt;Terminal: I&amp;rsquo;m used to the short cuts and behavior of the OS X Terminal app. There are plenty of options for Linux (obviously), but it will take a while to get used to the new command keys.&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;The Extra Painful Part: Can I live without these apps?&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;1Password: This is a big deal, because I use 1Password so frequently. It&amp;rsquo;s a fantastic piece of software. As an added bonus, since I keep my key file in Dropbox my passwords are automatically synchronized between my laptop and Mac Mini.&lt;/li&gt;
&lt;li&gt;OmniGraffle: I have yet to see its equal in terms of simplicity and output quality when driven by a non-artist / non-designer like me. This helps me make diagrams that look good, and it&amp;rsquo;s dead simple to use. I also have the iPad version, but that&amp;rsquo;s not really as good (yet).&lt;/li&gt;
&lt;li&gt;Netflix Instant View: I rarely watch movies on my laptop, but it does happen. There is no reasonable way to accomplish this on Linux. I could use the iPad, but the current iPad Netflix app is awful.&lt;/li&gt;
&lt;li&gt;iTunes: I guess I&amp;rsquo;d have to sync the iPad to the Mini. I probably use this app way more than I realize, given that I&amp;rsquo;m constantly listening to podcasts and music.&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;The [OS]X-Factor&lt;/h4&gt;

&lt;p&gt;Over the last 15 years I&amp;rsquo;ve jumped around between Mac and Linux. To me, OS X was the grail that the Linux world was looking for &amp;mdash; a killer desktop UI on top of Unix. Maybe it&amp;rsquo;s silly to switch back to Linux after so many years on OS X. The price tag is at least making me seriously consider it though.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Gem collision -- heroku 1.9.1 and json_pure 1.4.3</title>
    <link href="http://www.workingasintended.com/2010/07/02/gem-collision----heroku-191-and-jsonpure-143/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/07/02/gem-collision----heroku-191-and-jsonpure-143/</id>
    <published>2010-07-02T00:00:00Z</published>
    <updated>2010-07-02T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;Simple problem with a simple solution. The new json_pure (1.4.3) makes older heroku gems explode.&lt;/p&gt;

&lt;h4&gt;Symptoms&lt;/h4&gt;


&lt;p&gt;&lt;code&gt;
$ heroku console&lt;br/&gt;
/Users/jdl/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can&amp;rsquo;t activate json_pure (~&gt; 1.2.0, runtime) for [&amp;ldquo;heroku-1.9.1&amp;rdquo;], already activated json_pure-1.4.3 for [&amp;ldquo;gemcutter-0.5.0&amp;rdquo;] (Gem::LoadError)
&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;Gems involved in this collision&lt;/h4&gt;


&lt;p&gt;&lt;code&gt;
$ gem list &amp;mdash;local | ack &amp;ldquo;(json_pure|heroku)&amp;rdquo;&lt;br/&gt;
heroku (1.9.1, 1.6.3)&lt;br/&gt;
json_pure (1.4.3, 1.2.4)
&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;The solution&lt;/h4&gt;


&lt;p&gt;&lt;code&gt;
$ gem install heroku&lt;br/&gt;
Successfully installed heroku-1.9.11
&lt;/code&gt;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Simple problem with a simple solution. The new json_pure (1.4.3) makes older heroku gems explode.&lt;/p&gt;

&lt;h4&gt;Symptoms&lt;/h4&gt;


&lt;p&gt;&lt;code&gt;
$ heroku console&lt;br/&gt;
/Users/jdl/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can&amp;rsquo;t activate json_pure (~&gt; 1.2.0, runtime) for [&amp;ldquo;heroku-1.9.1&amp;rdquo;], already activated json_pure-1.4.3 for [&amp;ldquo;gemcutter-0.5.0&amp;rdquo;] (Gem::LoadError)
&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;Gems involved in this collision&lt;/h4&gt;


&lt;p&gt;&lt;code&gt;
$ gem list &amp;mdash;local | ack &amp;ldquo;(json_pure|heroku)&amp;rdquo;&lt;br/&gt;
heroku (1.9.1, 1.6.3)&lt;br/&gt;
json_pure (1.4.3, 1.2.4)
&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;The solution&lt;/h4&gt;


&lt;p&gt;&lt;code&gt;
$ gem install heroku&lt;br/&gt;
Successfully installed heroku-1.9.11
&lt;/code&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Rails accepts_nested_attributes_for and fields_for</title>
    <link href="http://www.workingasintended.com/2010/07/01/rails-acceptsnestedattributesfor-and-fieldsfor/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/07/01/rails-acceptsnestedattributesfor-and-fieldsfor/</id>
    <published>2010-07-01T00:00:00Z</published>
    <updated>2010-07-01T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I ran into a gotcha today while trying to combine accepts_nested_attributes_for in my model and fields_for in my view (via &lt;a href="http://github.com/justinfrench/formtastic"&gt;formtastic&lt;/a&gt;). The symptom was that none of my nested fields were showing up at all. The root cause was that the parent model didn&amp;rsquo;t have an instance of the child model.&lt;/p&gt;

&lt;p&gt;The solution was to make sure that I added &lt;code&gt;@parent.build_child&lt;/code&gt; in my controller&amp;rsquo;s &lt;code&gt;edit&lt;/code&gt; and &lt;code&gt;new&lt;/code&gt; actions to make sure that the associated model wasn&amp;rsquo;t nil.&lt;/p&gt;

&lt;script src="http://gist.github.com/460555.js?file=accepts_nested_attributes_for.rb"&gt;&lt;/script&gt;

</summary>
    <content type="html">&lt;p&gt;I ran into a gotcha today while trying to combine accepts_nested_attributes_for in my model and fields_for in my view (via &lt;a href="http://github.com/justinfrench/formtastic"&gt;formtastic&lt;/a&gt;). The symptom was that none of my nested fields were showing up at all. The root cause was that the parent model didn&amp;rsquo;t have an instance of the child model.&lt;/p&gt;

&lt;p&gt;The solution was to make sure that I added &lt;code&gt;@parent.build_child&lt;/code&gt; in my controller&amp;rsquo;s &lt;code&gt;edit&lt;/code&gt; and &lt;code&gt;new&lt;/code&gt; actions to make sure that the associated model wasn&amp;rsquo;t nil.&lt;/p&gt;

&lt;script src="http://gist.github.com/460555.js?file=accepts_nested_attributes_for.rb"&gt;&lt;/script&gt;

</content>
  </entry>
  <entry>
    <title>Reducing memory footprint of CrashPlan on OS X</title>
    <link href="http://www.workingasintended.com/2010/05/13/reducing-memory-footprint-of-crashplan-on-os-x/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/05/13/reducing-memory-footprint-of-crashplan-on-os-x/</id>
    <published>2010-05-13T00:00:00Z</published>
    <updated>2010-05-13T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I noticed that since switching to Snow Leopard, CrashPlan was using over 500 MB of RAM in some cases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/dornquast"&gt;Matthew Dornquast&lt;/a&gt; &lt;a href="https://crashplan.zendesk.com/entries/116068"&gt;posted some good info on the CrashPlan support forums&lt;/a&gt; related to the memory footprint
of CrashPlan on OS X (and on JVM&amp;rsquo;s in general).&lt;/p&gt;

&lt;blockquote&gt;
CrashPlan doesn't actually NEED all that ram, it's not using it. Shrink the
amount allowed to something smaller.. 80MB, 100MB, etc. How much you need
depends on how much you're backing up. I would start at 100MB and work from
there. You'll know you've gone too low if you get out of memory errors in
the log. For small backup sets, you can do 50MB.
&lt;/blockquote&gt;




&lt;script src="http://gist.github.com/400479.js"&gt;&lt;/script&gt;


&lt;p&gt;So far it seems to be working fine.&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;I noticed that since switching to Snow Leopard, CrashPlan was using over 500 MB of RAM in some cases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/dornquast"&gt;Matthew Dornquast&lt;/a&gt; &lt;a href="https://crashplan.zendesk.com/entries/116068"&gt;posted some good info on the CrashPlan support forums&lt;/a&gt; related to the memory footprint
of CrashPlan on OS X (and on JVM&amp;rsquo;s in general).&lt;/p&gt;

&lt;blockquote&gt;
CrashPlan doesn't actually NEED all that ram, it's not using it. Shrink the
amount allowed to something smaller.. 80MB, 100MB, etc. How much you need
depends on how much you're backing up. I would start at 100MB and work from
there. You'll know you've gone too low if you get out of memory errors in
the log. For small backup sets, you can do 50MB.
&lt;/blockquote&gt;




&lt;script src="http://gist.github.com/400479.js"&gt;&lt;/script&gt;


&lt;p&gt;So far it seems to be working fine.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Choosing a different Rails database.yml file for JRuby</title>
    <link href="http://www.workingasintended.com/2010/05/03/choosing-a-different-rails-databaseyml-file-for-jruby/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/05/03/choosing-a-different-rails-databaseyml-file-for-jruby/</id>
    <published>2010-05-03T00:00:00Z</published>
    <updated>2010-05-03T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;
I'm working on a Rails project where I need to run under both normal C-based ruby and JRuby.
 I was annoyed that when running under JRuby, I had to set the 
 adapter to 'jdbcmysql' instead of 'mysql'. I had to switch back and forth 
 a lot, and I really didn't want to set up separate environments just for 
 the choice of Ruby interpreter.
&lt;/p&gt;




&lt;script src="http://gist.github.com/388287.js"&gt;&lt;/script&gt;

</summary>
    <content type="html">&lt;p&gt;
I'm working on a Rails project where I need to run under both normal C-based ruby and JRuby.
 I was annoyed that when running under JRuby, I had to set the 
 adapter to 'jdbcmysql' instead of 'mysql'. I had to switch back and forth 
 a lot, and I really didn't want to set up separate environments just for 
 the choice of Ruby interpreter.
&lt;/p&gt;




&lt;script src="http://gist.github.com/388287.js"&gt;&lt;/script&gt;

</content>
  </entry>
  <entry>
    <title>Fixing the MySQL Ruby Gem on OS X 10.4</title>
    <link href="http://www.workingasintended.com/2010/03/03/fixing-the-mysql-ruby-gem-on-os-x-104/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/03/03/fixing-the-mysql-ruby-gem-on-os-x-104/</id>
    <published>2010-03-03T00:00:00Z</published>
    <updated>2010-03-03T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;Yes, there are a billion posts about this very topic. I&amp;rsquo;ve installed this gem many times, and it&amp;rsquo;s always annoying. Rather than go through the hassle of installing the gem, watching the compile fail, fixing the ulong define in the gem source code, regenerating the Makefile, and then making the gem again, there&amp;rsquo;s an easier way.&lt;/p&gt;

&lt;p&gt;In &amp;ldquo;/usr/local/mysql/include/typelib.h&amp;rdquo; (or wherever you have MySQL installed), add the following.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="c"&gt;#define ulong unsigned long&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Now the &lt;code&gt;gem&lt;/code&gt; command should work fine.&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config&lt;/code&gt;
&lt;/pre&gt;

</summary>
    <content type="html">&lt;p&gt;Yes, there are a billion posts about this very topic. I&amp;rsquo;ve installed this gem many times, and it&amp;rsquo;s always annoying. Rather than go through the hassle of installing the gem, watching the compile fail, fixing the ulong define in the gem source code, regenerating the Makefile, and then making the gem again, there&amp;rsquo;s an easier way.&lt;/p&gt;

&lt;p&gt;In &amp;ldquo;/usr/local/mysql/include/typelib.h&amp;rdquo; (or wherever you have MySQL installed), add the following.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="c"&gt;#define ulong unsigned long&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Now the &lt;code&gt;gem&lt;/code&gt; command should work fine.&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config&lt;/code&gt;
&lt;/pre&gt;

</content>
  </entry>
  <entry>
    <title>Almost Famous: Guo Juan uses one of my games in her Go lecture.</title>
    <link href="http://www.workingasintended.com/2010/08/02/almost-famous-guo-juan-uses-one-of-my-games-in-her-go-lecture/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/08/02/almost-famous-guo-juan-uses-one-of-my-games-in-her-go-lecture/</id>
    <published>2010-08-02T00:00:00Z</published>
    <updated>2010-08-02T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;As I was watching the 2nd &lt;a href="http://senseis.xmp.net/?WhatIsGo"&gt;Go&lt;/a&gt; lecture in &lt;a href="http://senseis.xmp.net/?GuoJuan"&gt;Guo Juan&amp;rsquo;s&lt;/a&gt; latest series, &amp;ldquo;&lt;a href="http://internetgoschool.com/lecture.vhtml?ls_id=580"&gt;Invasions for Kyu Players&lt;/a&gt;&amp;rdquo; one of the examples surprised me. It dawned on me that I was looking at one of my own games.&lt;/p&gt;

&lt;p&gt;From earlier this term in her online group class, one of my classmates and I spent quite a while reviewing this position. During class Guo Juan talked about it quite a bit, and then it silently made its way into this lecture.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20100209-8a1j5y2iiug155wfmkn1kht9ar.png" /&gt;&lt;/p&gt;

&lt;p&gt;In the game, I&amp;rsquo;m playing black. White got himself into big trouble with 3. I won&amp;rsquo;t spoil the analysis, but this particular exercise revolves around the 1-2 exchange prior to the invasion. While we spent a lot of time between ourselves discussing 3, the pro backed us up two moves and explained what was really going on.&lt;/p&gt;

&lt;p&gt;At 8 kyu, I&amp;rsquo;m finding most of the questions in this series to be on the easy side. However, it&amp;rsquo;s driving home some fundamental points about invasions that have made it worth watching. Direction of play is one of my major leaks, so this type of basic instruction is perfect for me right now.&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;As I was watching the 2nd &lt;a href="http://senseis.xmp.net/?WhatIsGo"&gt;Go&lt;/a&gt; lecture in &lt;a href="http://senseis.xmp.net/?GuoJuan"&gt;Guo Juan&amp;rsquo;s&lt;/a&gt; latest series, &amp;ldquo;&lt;a href="http://internetgoschool.com/lecture.vhtml?ls_id=580"&gt;Invasions for Kyu Players&lt;/a&gt;&amp;rdquo; one of the examples surprised me. It dawned on me that I was looking at one of my own games.&lt;/p&gt;

&lt;p&gt;From earlier this term in her online group class, one of my classmates and I spent quite a while reviewing this position. During class Guo Juan talked about it quite a bit, and then it silently made its way into this lecture.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://img.skitch.com/20100209-8a1j5y2iiug155wfmkn1kht9ar.png" /&gt;&lt;/p&gt;

&lt;p&gt;In the game, I&amp;rsquo;m playing black. White got himself into big trouble with 3. I won&amp;rsquo;t spoil the analysis, but this particular exercise revolves around the 1-2 exchange prior to the invasion. While we spent a lot of time between ourselves discussing 3, the pro backed us up two moves and explained what was really going on.&lt;/p&gt;

&lt;p&gt;At 8 kyu, I&amp;rsquo;m finding most of the questions in this series to be on the easy side. However, it&amp;rsquo;s driving home some fundamental points about invasions that have made it worth watching. Direction of play is one of my major leaks, so this type of basic instruction is perfect for me right now.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Adding a Java Web Start application to the OS X 10.5 dock.</title>
    <link href="http://www.workingasintended.com/2009/10/10/adding-a-java-web-start-application-to-the-os-x-105-dock/" rel="alternate"/>
    <id>http://www.workingasintended.com/2009/10/10/adding-a-java-web-start-application-to-the-os-x-105-dock/</id>
    <published>2009-10-10T00:00:00Z</published>
    <updated>2009-10-10T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;pre&gt;&lt;code&gt;$ javaws /path/to/file.jnlp&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;That works fine from a terminal window, but it was bugging me, because I was sure that there must be a way to launch these apps from the dock.  And sure enough, it&amp;rsquo;s dead simple.&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;Launch /Applications/Utilities/Java Preferences.app&lt;/li&gt;
    &lt;li&gt;Select the Network tab.&lt;/li&gt;
    &lt;li&gt;Click the View Cache Files button.&lt;/li&gt;
    &lt;li&gt;Right-click on the app and select Install Shortcuts.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This lets you save an app file, which you can then drag onto the dock.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/nnikp/java-preferences"&gt;&lt;img src="http://img.skitch.com/20091010-cx2hb3fnr7rdfx173jyp2ep5ep.preview.jpg" alt="Java Preferences" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;




&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/nnimd/java-cache-viewer"&gt;&lt;img src="http://img.skitch.com/20091010-r3gx46w4ptfimmc723siqm47ph.preview.jpg" alt="Java Cache Viewer" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;

</summary>
    <content type="html">&lt;pre&gt;&lt;code&gt;$ javaws /path/to/file.jnlp&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;That works fine from a terminal window, but it was bugging me, because I was sure that there must be a way to launch these apps from the dock.  And sure enough, it&amp;rsquo;s dead simple.&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;Launch /Applications/Utilities/Java Preferences.app&lt;/li&gt;
    &lt;li&gt;Select the Network tab.&lt;/li&gt;
    &lt;li&gt;Click the View Cache Files button.&lt;/li&gt;
    &lt;li&gt;Right-click on the app and select Install Shortcuts.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This lets you save an app file, which you can then drag onto the dock.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/nnikp/java-preferences"&gt;&lt;img src="http://img.skitch.com/20091010-cx2hb3fnr7rdfx173jyp2ep5ep.preview.jpg" alt="Java Preferences" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;




&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/nnimd/java-cache-viewer"&gt;&lt;img src="http://img.skitch.com/20091010-r3gx46w4ptfimmc723siqm47ph.preview.jpg" alt="Java Cache Viewer" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;

</content>
  </entry>
  <entry>
    <title>Single-digit-kyu achieved</title>
    <link href="http://www.workingasintended.com/2009/08/18/single-digit-kyu-achieved/" rel="alternate"/>
    <id>http://www.workingasintended.com/2009/08/18/single-digit-kyu-achieved/</id>
    <published>2009-08-18T00:00:00Z</published>
    <updated>2009-08-18T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I&amp;rsquo;ve defended my 9 &lt;a href="http://senseis.xmp.net/?Kyu"&gt;kyu&lt;/a&gt; rank on KGS, so I&amp;rsquo;m declaring success in my personal goal to reach single-digit-kyu by the end of 2009.  The defense happened a while ago, but I waited to see if KGS dropped me back to 10k or if I&amp;rsquo;m solid in my new rank.&lt;/p&gt;

&lt;p&gt;I put in a lot of time reading, studying, and drilling this year &amp;mdash; more than ever before. I also greatly increased the number of games that I played, both online and with my good friend Josh 5k.  So, even though &amp;ldquo;kyu&amp;rdquo; still means that I&amp;rsquo;m terrible, I&amp;rsquo;m proud of the advancement.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/b55ca/kgs-edit-user"&gt;&lt;img src="http://img.skitch.com/20090819-8hmnrgshw95mt284ujf8c29wmk.preview.jpg" alt="KGS: Edit User" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;

</summary>
    <content type="html">&lt;p&gt;I&amp;rsquo;ve defended my 9 &lt;a href="http://senseis.xmp.net/?Kyu"&gt;kyu&lt;/a&gt; rank on KGS, so I&amp;rsquo;m declaring success in my personal goal to reach single-digit-kyu by the end of 2009.  The defense happened a while ago, but I waited to see if KGS dropped me back to 10k or if I&amp;rsquo;m solid in my new rank.&lt;/p&gt;

&lt;p&gt;I put in a lot of time reading, studying, and drilling this year &amp;mdash; more than ever before. I also greatly increased the number of games that I played, both online and with my good friend Josh 5k.  So, even though &amp;ldquo;kyu&amp;rdquo; still means that I&amp;rsquo;m terrible, I&amp;rsquo;m proud of the advancement.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/b55ca/kgs-edit-user"&gt;&lt;img src="http://img.skitch.com/20090819-8hmnrgshw95mt284ujf8c29wmk.preview.jpg" alt="KGS: Edit User" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;

</content>
  </entry>
  <entry>
    <title>Firefox 3.5.2 and XMLHttpRequest.setRequestHeader()</title>
    <link href="http://www.workingasintended.com/2009/08/10/firefox-352-and-xmlhttprequestsetrequestheader/" rel="alternate"/>
    <id>http://www.workingasintended.com/2009/08/10/firefox-352-and-xmlhttprequestsetrequestheader/</id>
    <published>2009-08-10T00:00:00Z</published>
    <updated>2009-08-10T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;It appears that Firefox 3.5.2 broke XMLHttpRequest.setRequestHeader(). According to the &lt;a href="http://web5.w3.org/TR/XMLHttpRequest/#setrequestheader"&gt;W3C docs&lt;/a&gt;, in giant bold green type:&lt;/p&gt;

&lt;p&gt;&lt;span style="color: #339966;"&gt;&lt;strong&gt;The setRequestHeader() method appends a value if the HTTP header given as argument is already part of the list of request headers.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Rather than appending, it&amp;rsquo;s overwriting the existing value entirely.&lt;/p&gt;

&lt;p&gt;The particular case where I ran into this was when using jQuery to send a remote form request. My setup code includes the following line.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="javascript"&gt;jQuery.ajaxSetup({
  'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
});&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;When firing off an Ajax remote form request with Safari or older (pre-3.5) versions of Firefox, the header would contain the following.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: application/javascript, */*, text/javascript&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Or, if the browser had already decided that it was going to accept text/javascript, at worst I&amp;rsquo;d get a duplicate.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: text/javascript, application/javascript, */*, text/javascript&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;With Firefox 3.5.2 I see this instead.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: text/javascript&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;And the HTTP error returned from the server.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;406 Not Acceptable&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;The workaround is simple.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="javascript"&gt;xhr.setRequestHeader("Accept", "text/javascript,application/javascript,text/html")&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;I have to set that header parameter with all of the types that should be accepted as a response to a remote form request.&lt;/p&gt;

&lt;p&gt;The downside to this is that non-broken browsers almost defintely include duplicate values, but at least it still works.&lt;/p&gt;

&lt;p&gt;Ex.: Safari with the workaround in place.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: text/javascript, application/javascript, */*, text/javascript,application/javascript,text/html&lt;/code&gt;
&lt;/pre&gt;

</summary>
    <content type="html">&lt;p&gt;It appears that Firefox 3.5.2 broke XMLHttpRequest.setRequestHeader(). According to the &lt;a href="http://web5.w3.org/TR/XMLHttpRequest/#setrequestheader"&gt;W3C docs&lt;/a&gt;, in giant bold green type:&lt;/p&gt;

&lt;p&gt;&lt;span style="color: #339966;"&gt;&lt;strong&gt;The setRequestHeader() method appends a value if the HTTP header given as argument is already part of the list of request headers.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Rather than appending, it&amp;rsquo;s overwriting the existing value entirely.&lt;/p&gt;

&lt;p&gt;The particular case where I ran into this was when using jQuery to send a remote form request. My setup code includes the following line.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="javascript"&gt;jQuery.ajaxSetup({
  'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
});&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;When firing off an Ajax remote form request with Safari or older (pre-3.5) versions of Firefox, the header would contain the following.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: application/javascript, */*, text/javascript&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Or, if the browser had already decided that it was going to accept text/javascript, at worst I&amp;rsquo;d get a duplicate.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: text/javascript, application/javascript, */*, text/javascript&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;With Firefox 3.5.2 I see this instead.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: text/javascript&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;And the HTTP error returned from the server.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;406 Not Acceptable&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;The workaround is simple.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="javascript"&gt;xhr.setRequestHeader("Accept", "text/javascript,application/javascript,text/html")&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;I have to set that header parameter with all of the types that should be accepted as a response to a remote form request.&lt;/p&gt;

&lt;p&gt;The downside to this is that non-broken browsers almost defintely include duplicate values, but at least it still works.&lt;/p&gt;

&lt;p&gt;Ex.: Safari with the workaround in place.&lt;/p&gt;

&lt;pre&gt;
&lt;code class="no-highlight"&gt;Accept: text/javascript, application/javascript, */*, text/javascript,application/javascript,text/html&lt;/code&gt;
&lt;/pre&gt;

</content>
  </entry>
  <entry>
    <title>Adding new file types to "Ack in Project" TextMate bundle</title>
    <link href="http://www.workingasintended.com/2009/07/07/adding-new-file-types-to-ack-in-project-textmate-bundle/" rel="alternate"/>
    <id>http://www.workingasintended.com/2009/07/07/adding-new-file-types-to-ack-in-project-textmate-bundle/</id>
    <published>2009-07-07T00:00:00Z</published>
    <updated>2009-07-07T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;If you edit with TextMate, but you haven&amp;rsquo;t yet installed Ack in Project, you&amp;rsquo;re missing out.  It&amp;rsquo;s much faster than TextMate&amp;rsquo;s built-in search.  My preferred fork of this bundle is &lt;a href="http://github.com/kemayo/ack-tmbundle/tree"&gt;David Lynch&amp;rsquo;s&lt;/a&gt;, which adds a pull down menu of file types to focus your search on.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/bs5fh/ack-in-project"&gt;&lt;img src="http://img.skitch.com/20090707-qu2dmt5tdt2rgjagjrnhypw98k.preview.jpg" alt="Ack In Project" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;One of the cool things about file types in Ack is that they&amp;rsquo;re more like buckets of types.  Looking in ack-standalone.sh, this is the default mapping for &amp;ldquo;Ruby&amp;rdquo; files.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ruby =&gt; [qw( rb rhtml rjs rxml erb )]&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;I wanted to include Haml in that list, so I edited the .sh file and issued a pull request for the change.  David wrote back, informing me that these mappings can be modified on the command line so I dug into that a bit deeper.&lt;/p&gt;

&lt;p&gt;It turns out that you can modify an existing mapping with Ack&amp;rsquo;s &lt;code&gt;&amp;mdash;type-add&lt;/code&gt; switch.  In this example, I wanted to include both .haml and .rake files to my &amp;ldquo;ruby&amp;rdquo; searches.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;--type-add=ruby=.haml,.rake&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;You can also add a completely new type with &lt;code&gt;&amp;mdash;type-set&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;--type-set=haml=.haml&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;Put these in ~/.ackrc with each switch on its own line.&lt;/p&gt;

&lt;p&gt;The Ack docs don&amp;rsquo;t use the equal sign after the switch name, but I found that it&amp;rsquo;s needed for OS X.  No idea why that is, but it seems to work.&lt;/p&gt;

&lt;p&gt;Ack in Project will automatically pick up these changes, because it builds the pull-down menu by parsing the output of &lt;code&gt;ack &amp;mdash;help=types&lt;/code&gt;.  This also makes it convenient to see if you&amp;rsquo;ve set up your .ackrc file properly.&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;$ ack --help=types
...
    --[no]ruby         .rb .rhtml .rjs .rxml .erb .haml .rake
...&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Yay.&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;If you edit with TextMate, but you haven&amp;rsquo;t yet installed Ack in Project, you&amp;rsquo;re missing out.  It&amp;rsquo;s much faster than TextMate&amp;rsquo;s built-in search.  My preferred fork of this bundle is &lt;a href="http://github.com/kemayo/ack-tmbundle/tree"&gt;David Lynch&amp;rsquo;s&lt;/a&gt;, which adds a pull down menu of file types to focus your search on.&lt;/p&gt;

&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/jdludlow/bs5fh/ack-in-project"&gt;&lt;img src="http://img.skitch.com/20090707-qu2dmt5tdt2rgjagjrnhypw98k.preview.jpg" alt="Ack In Project" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;'s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;


&lt;p&gt;One of the cool things about file types in Ack is that they&amp;rsquo;re more like buckets of types.  Looking in ack-standalone.sh, this is the default mapping for &amp;ldquo;Ruby&amp;rdquo; files.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ruby =&gt; [qw( rb rhtml rjs rxml erb )]&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;I wanted to include Haml in that list, so I edited the .sh file and issued a pull request for the change.  David wrote back, informing me that these mappings can be modified on the command line so I dug into that a bit deeper.&lt;/p&gt;

&lt;p&gt;It turns out that you can modify an existing mapping with Ack&amp;rsquo;s &lt;code&gt;&amp;mdash;type-add&lt;/code&gt; switch.  In this example, I wanted to include both .haml and .rake files to my &amp;ldquo;ruby&amp;rdquo; searches.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;--type-add=ruby=.haml,.rake&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;You can also add a completely new type with &lt;code&gt;&amp;mdash;type-set&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;--type-set=haml=.haml&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;Put these in ~/.ackrc with each switch on its own line.&lt;/p&gt;

&lt;p&gt;The Ack docs don&amp;rsquo;t use the equal sign after the switch name, but I found that it&amp;rsquo;s needed for OS X.  No idea why that is, but it seems to work.&lt;/p&gt;

&lt;p&gt;Ack in Project will automatically pick up these changes, because it builds the pull-down menu by parsing the output of &lt;code&gt;ack &amp;mdash;help=types&lt;/code&gt;.  This also makes it convenient to see if you&amp;rsquo;ve set up your .ackrc file properly.&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;$ ack --help=types
...
    --[no]ruby         .rb .rhtml .rjs .rxml .erb .haml .rake
...&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Yay.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Public penance. Me being destroyed in my latest Go game.</title>
    <link href="http://www.workingasintended.com/2009/03/30/public-penance-me-being-destroyed-in-my-latest-go-game/" rel="alternate"/>
    <id>http://www.workingasintended.com/2009/03/30/public-penance-me-being-destroyed-in-my-latest-go-game/</id>
    <published>2009-03-30T00:00:00Z</published>
    <updated>2009-03-30T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;Bask in the ineptitude of my latest Go game.  Poor decisions early, plus getting into 30 second byoyomi by move 127 made for a painful experience on my end.&lt;/p&gt;

&lt;p&gt;Sensei &lt;a href="http://www.gokgs.com/gameArchives.jsp?user=icepick"&gt;Mathews 5k&lt;/a&gt; has kindly provided comments on this game.&lt;/p&gt;

&lt;p&gt;&lt;noscript&gt;&lt;p&gt;&lt;i&gt;If you had JavaScript enabled, you&amp;rsquo;d see the EidoGo SGF viewer here.&lt;/i&gt;&lt;/p&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="/files/woozuwa-bray-commented.sgf"&gt;You can download the SGF file anyway.&lt;/a&gt;
&lt;/p&gt;


&lt;p&gt;&lt;/noscript&gt;&lt;/p&gt;

&lt;div class="eidogo-player-auto" sgf="/files/woozuwa-bray-commented.sgf"&gt;&lt;/div&gt;


&lt;p&gt;I&amp;rsquo;m playing black, going by the name &lt;a href="http://www.gokgs.com/gameArchives.jsp?user=bray"&gt;Bray&lt;/a&gt; on &lt;a href="http://www.gokgs.com/"&gt;KGS&lt;/a&gt;.&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Bask in the ineptitude of my latest Go game.  Poor decisions early, plus getting into 30 second byoyomi by move 127 made for a painful experience on my end.&lt;/p&gt;

&lt;p&gt;Sensei &lt;a href="http://www.gokgs.com/gameArchives.jsp?user=icepick"&gt;Mathews 5k&lt;/a&gt; has kindly provided comments on this game.&lt;/p&gt;

&lt;p&gt;&lt;noscript&gt;&lt;p&gt;&lt;i&gt;If you had JavaScript enabled, you&amp;rsquo;d see the EidoGo SGF viewer here.&lt;/i&gt;&lt;/p&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="/files/woozuwa-bray-commented.sgf"&gt;You can download the SGF file anyway.&lt;/a&gt;
&lt;/p&gt;


&lt;p&gt;&lt;/noscript&gt;&lt;/p&gt;

&lt;div class="eidogo-player-auto" sgf="/files/woozuwa-bray-commented.sgf"&gt;&lt;/div&gt;


&lt;p&gt;I&amp;rsquo;m playing black, going by the name &lt;a href="http://www.gokgs.com/gameArchives.jsp?user=bray"&gt;Bray&lt;/a&gt; on &lt;a href="http://www.gokgs.com/"&gt;KGS&lt;/a&gt;.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>TextMate test runner and "Rails requires RubyGems" error</title>
    <link href="http://www.workingasintended.com/2009/02/22/textmate-test-runner-and-rails-requires-rubygems-error/" rel="alternate"/>
    <id>http://www.workingasintended.com/2009/02/22/textmate-test-runner-and-rails-requires-rubygems-error/</id>
    <published>2009-02-22T00:00:00Z</published>
    <updated>2009-02-22T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;Out of the blue I started getting the following error from TextMate&amp;rsquo;s test runner for Rails tests.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Rails requires RubyGems &gt;= 1.1.1 (you have 1.0.1). Please `gem update --system` and try again.&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;On the command line, I&amp;rsquo;d see the following:&lt;/p&gt;

&lt;pre&gt;
&lt;code class="bash"&gt;jdl ~ $ which gem
/opt/local/bin/gem
jdl ~ $ which ruby
/opt/local/bin/ruby
jdl ~ $ gem -v
1.3.1
jdl ~ $ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-darwin9.3.0]&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Pretty clearly, TextMate was picking up the wrong Ruby installation on my system.  With JRuby and at least one other &amp;ldquo;normal&amp;rdquo; Ruby installed, it didn&amp;rsquo;t seem impossible.  But why now?  I still don&amp;rsquo;t know the answer to that question, but I did fix the problem.&lt;/p&gt;

&lt;p&gt;Digging through the TextMate Ruby bundles, I kept seeing a reference to &amp;ldquo;TM_RUBY&amp;rdquo;.  In the advanced preferences I set this to have a value of my desired Ruby install, and everything was happy again.
&lt;img src="http://img.skitch.com/20100412-tnypwunkmta36r47xhmmf1q95j.png" alt="Setting the TextMate TM_RUBY variable in advanced preferences" title="TextMate TM_RUBY variable" width="530" height="482" class="size-full wp-image-50" /&gt;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;Out of the blue I started getting the following error from TextMate&amp;rsquo;s test runner for Rails tests.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Rails requires RubyGems &gt;= 1.1.1 (you have 1.0.1). Please `gem update --system` and try again.&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;On the command line, I&amp;rsquo;d see the following:&lt;/p&gt;

&lt;pre&gt;
&lt;code class="bash"&gt;jdl ~ $ which gem
/opt/local/bin/gem
jdl ~ $ which ruby
/opt/local/bin/ruby
jdl ~ $ gem -v
1.3.1
jdl ~ $ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-darwin9.3.0]&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;Pretty clearly, TextMate was picking up the wrong Ruby installation on my system.  With JRuby and at least one other &amp;ldquo;normal&amp;rdquo; Ruby installed, it didn&amp;rsquo;t seem impossible.  But why now?  I still don&amp;rsquo;t know the answer to that question, but I did fix the problem.&lt;/p&gt;

&lt;p&gt;Digging through the TextMate Ruby bundles, I kept seeing a reference to &amp;ldquo;TM_RUBY&amp;rdquo;.  In the advanced preferences I set this to have a value of my desired Ruby install, and everything was happy again.
&lt;img src="http://img.skitch.com/20100412-tnypwunkmta36r47xhmmf1q95j.png" alt="Setting the TextMate TM_RUBY variable in advanced preferences" title="TextMate TM_RUBY variable" width="530" height="482" class="size-full wp-image-50" /&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Bidding in Goa: The Basics</title>
    <link href="http://www.workingasintended.com/2010/02/21/bidding-in-goa-the-basics/" rel="alternate"/>
    <id>http://www.workingasintended.com/2010/02/21/bidding-in-goa-the-basics/</id>
    <published>2010-02-21T00:00:00Z</published>
    <updated>2010-02-21T00:00:00Z</updated>
    <author>
      <name>jdl</name>
    </author>
    <summary type="html">&lt;p&gt;I played &lt;a href="http://www.boardgamegeek.com/boardgame/9216"&gt;Goa&lt;/a&gt; last night with a couple of people who were newish to that game, but experienced gamers all around.  It reminded me that not everyone understands the huge effect that opportunity cost has in that game.&lt;/p&gt;

&lt;p&gt;Bidding is a once-around affair, where each player has a turn to offer up a new tile.  The offerer hears the others' bids, and then either accepts the high bid (taking the cash from the bidder) or outbids everyone else and pays his money to the bank.  This means that buying your own auctions costs you more than double what the high bidder was willing you pay you.&lt;/p&gt;

&lt;p&gt;For example, let&amp;rsquo;s say you offer a double-ginger plantation and the high bid is 6.  If you pay the bank 7, you really just paid 13 (7 real ducats + 6 ducats you passed on).  Not only that, but you&amp;rsquo;ve taken money out of the game economy, inflating the value of the money that&amp;rsquo;s left in circulation.  Since it was your money being siphoned off, that&amp;rsquo;s probably not a great thing for you.&lt;/p&gt;

&lt;p&gt;Bidding on the flag is interesting, because later in the game, not everyone&amp;rsquo;s actions are worth the same amount of money.  If you buy the flag for 5, and you can perform the money action for 6, then at the very worst you can use the free action to make a profit.  However, if you put the flag up for auction and the person to your right bid 4, then buying it for 5 in this situation would be a money loser.  That doesn&amp;rsquo;t mean that you shouldn&amp;rsquo;t buy the flag, but you need to have a very good reason to justify its cost.&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;I played &lt;a href="http://www.boardgamegeek.com/boardgame/9216"&gt;Goa&lt;/a&gt; last night with a couple of people who were newish to that game, but experienced gamers all around.  It reminded me that not everyone understands the huge effect that opportunity cost has in that game.&lt;/p&gt;

&lt;p&gt;Bidding is a once-around affair, where each player has a turn to offer up a new tile.  The offerer hears the others' bids, and then either accepts the high bid (taking the cash from the bidder) or outbids everyone else and pays his money to the bank.  This means that buying your own auctions costs you more than double what the high bidder was willing you pay you.&lt;/p&gt;

&lt;p&gt;For example, let&amp;rsquo;s say you offer a double-ginger plantation and the high bid is 6.  If you pay the bank 7, you really just paid 13 (7 real ducats + 6 ducats you passed on).  Not only that, but you&amp;rsquo;ve taken money out of the game economy, inflating the value of the money that&amp;rsquo;s left in circulation.  Since it was your money being siphoned off, that&amp;rsquo;s probably not a great thing for you.&lt;/p&gt;

&lt;p&gt;Bidding on the flag is interesting, because later in the game, not everyone&amp;rsquo;s actions are worth the same amount of money.  If you buy the flag for 5, and you can perform the money action for 6, then at the very worst you can use the free action to make a profit.  However, if you put the flag up for auction and the person to your right bid 4, then buying it for 5 in this situation would be a money loser.  That doesn&amp;rsquo;t mean that you shouldn&amp;rsquo;t buy the flag, but you need to have a very good reason to justify its cost.&lt;/p&gt;
</content>
  </entry>
</feed>
