<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tristan Media Blog</title>
	<atom:link href="http://blog.tristanmedia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tristanmedia.com</link>
	<description>Notes on Ruby, Rails, Python, Go, and Clojure</description>
	<lastBuildDate>
	Wed, 22 Oct 2014 01:46:09 +0000	</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.1.8</generator>
	<item>
		<title>My first Go application &#8211; nowplaying</title>
		<link>http://blog.tristanmedia.com/2014/10/my-first-go-application-nowplaying/</link>
				<comments>http://blog.tristanmedia.com/2014/10/my-first-go-application-nowplaying/#respond</comments>
				<pubDate>Wed, 22 Oct 2014 01:36:01 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=151</guid>
				<description><![CDATA[I've now completed a Go version of my first Clojure app, called nowplaying. You can view the source code here. The Clojure version is here. Since Go is more statically-typed, I needed more code to manage parsing JSON and XML feeds. I also had to wrestle with one non-UTF8 XML feed. The most interesting comparison [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>I've now completed a Go version of my first Clojure app, called <a href="http://blog.tristanmedia.com/2014/09/my-first-clojure-application-nowplaying/">nowplaying</a>. You can view the source code <a href="https://github.com/bhoggard/nowplaying-go/">here</a>. The Clojure version is <a href="https://github.com/bhoggard/nowplaying-liberator">here</a>.</p>
<p>Since Go is more statically-typed, I needed more code to manage parsing JSON and XML feeds. I also had to <a href="http://blog.tristanmedia.com/2014/10/using-go-to-parse-non-utf8-xml-feeds/">wrestle</a> with one non-UTF8 XML feed. The most interesting comparison is to view the two files that grab and parse feeds from the 4 radio stations. The <a href="https://github.com/bhoggard/nowplaying-liberator/blob/master/src/nowplaying/models/feed.clj">Clojure version</a> is 66 lines of code versus <a href="https://github.com/bhoggard/nowplaying-go/blob/master/models.go">119 lines in Go</a>.</p>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2014/10/my-first-go-application-nowplaying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Using Go to parse non-UTF8 XML feeds</title>
		<link>http://blog.tristanmedia.com/2014/10/using-go-to-parse-non-utf8-xml-feeds/</link>
				<comments>http://blog.tristanmedia.com/2014/10/using-go-to-parse-non-utf8-xml-feeds/#comments</comments>
				<pubDate>Tue, 07 Oct 2014 02:23:17 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Go]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=136</guid>
				<description><![CDATA[For a learning exercise, I'm rewriting my Nowplaying Clojure web application into Go. In the case of Clojure, the clojure.xml package handled this non-UTF8 XML file: Song Playing 09:41:18 Frederic Delius Violin Sonata No.1 Tasmin Little, violin; Piers Lane, piano without complaint, but in the case of Go, I got this error: xml: encoding "ISO-8859-1" [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>For a learning exercise, I'm rewriting my <a href="http://blog.tristanmedia.com/2014/09/my-first-clojure-application-nowplaying/">Nowplaying</a> Clojure web application into <a href="http://golang.org/">Go</a>. In the case of Clojure, the clojure.xml package handled this non-UTF8 XML file:</p>
<pre lang="xml">
<?xml version="1.0" encoding="ISO-8859-1"?>
<nexgen_audio_export>
  <audio ID="id_1667331726_30393658">
    <type>Song</type>
    <status>Playing</status>
    <played_time>09:41:18</played_time>
    <composer>Frederic Delius</composer>
    <title>Violin Sonata No.1</title>
    <artist>Tasmin Little, violin; Piers Lane, piano</artist>
  </audio>
</nexgen_audio_export>
</pre>
<p>without complaint, but in the case of Go, I got this error:</p>
<p><code>xml: encoding "ISO-8859-1" declared but Decoder.CharsetReader is nil</code></p>
<p>when I tried my first version:</p>
<pre lang="go">
type Piece struct {
  Title    string
  Composer string
}

type SecondInversionFeed struct {
  XMLName xml.Name             `xml:nexgen_audio_export`
  Audio   SecondInversionAudio `xml:"audio"`
}

type SecondInversionAudio struct {
  Title    string `xml:"title"`
  Composer string `xml:"composer"`
}

func translateSecondInversion(data []byte) Piece {
  var feed SecondInversionFeed
  err := xml.Unmarshal(data, &feed)
  if err != nil {
    log.Fatal("Unmarshal error:", err)
  }
  return Piece{feed.Audio.Title, feed.Audio.Composer}
}
</pre>
<p>I read <a href="http://stackoverflow.com/questions/6002619/unmarshal-an-iso-8859-1-xml-input-in-go">this Stack Overflow</a> thread a few times, but I still wasn't sure how to use go-charset or some other library to accomplish my task.</p>
<p>I first tried using <a href="https://code.google.com/p/go-charset/">go-charset</a> to translate the file and pass it to Unmarshal, but that declaration at the top:</p>
<pre lang="xml">
  <?xml version="1.0" encoding="ISO-8859-1"?>
</pre>
<p>still caused the same error. I then realized that the <a href="http://golang.org/src/pkg/encoding/xml/read.go?s=4824:4872#L104">Unmarshal function</a> simply creates a new Decoder, so I just had to pass a reference to the charset.NewReader function, and the xml package would use that to translate my XML data.</p>
<p>Here is a small program that demonstrates my approach:</p>
<pre lang="go">
package main

import (
  "bytes"
  "code.google.com/p/go-charset/charset"
  _ "code.google.com/p/go-charset/data"
  "encoding/xml"
  "fmt"
)

type Feed struct {
  XMLName xml.Name  `xml:nexgen_audio_export`
  Audio   FeedAudio `xml:"audio"`
}

type FeedAudio struct {
  Title    string `xml:"title"`
  Composer string `xml:"composer"`
}

func main() {
  xml_data := []byte(`
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <nexgen_audio_export>
    <audio ID="id_1667331726_30393658">
      <type>Song</type>
      <status>Playing</status>
      <played_time>09:41:18</played_time>
      <composer>Frederic Delius</composer>
      <title>Violin Sonata No.1</title>
      <artist>Tasmin Little, violin; Piers Lane, piano</artist>
    </audio>
  </nexgen_audio_export>
`)
  var feed Feed

  reader := bytes.NewReader(xml_data)
  decoder := xml.NewDecoder(reader)
  decoder.CharsetReader = charset.NewReader
  err := decoder.Decode(&feed)
  if err != nil {
    fmt.Println("decoder error:", err)
  }
  fmt.Println(feed.Audio.Title)
}
</pre>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2014/10/using-go-to-parse-non-utf8-xml-feeds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
							</item>
		<item>
		<title>My first Clojure application &#8211; nowplaying</title>
		<link>http://blog.tristanmedia.com/2014/09/my-first-clojure-application-nowplaying/</link>
				<comments>http://blog.tristanmedia.com/2014/09/my-first-clojure-application-nowplaying/#comments</comments>
				<pubDate>Thu, 04 Sep 2014 17:35:18 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Clojure]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=128</guid>
				<description><![CDATA[Along with James, I listen to a lot of classical music via streaming stations. Many of those don't have very useful sites for looking up on my phone what is playing at the moment. To remedy that, I just created my first site in Clojure: http://nowplaying.tristanmedia.com/ It's running on a free Heroku instance, so it [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>Along with <a href="http://jameswagner.com/">James</a>, I listen to a lot of classical music via streaming stations. Many of those don't have very useful sites for looking up on my phone what is playing at the moment. To remedy that, I just created my first site in Clojure:</p>
<p><a href="http://nowplaying.tristanmedia.com/">http://nowplaying.tristanmedia.com/</a></p>
<p>It's running on a free Heroku instance, so it may be a little slow to load.</p>
<p>You can view the source code <a href="https://github.com/bhoggard/nowplaying">here</a>.</p>
<p><strong>Update</strong></p>
<p>I made a <a href="https://github.com/bhoggard/nowplaying-liberator">new version</a> that uses jQuery to request the data from a JSON interface built with <a href="http://clojure-liberator.github.io/liberator/">Liberator</a>.</p>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2014/09/my-first-clojure-application-nowplaying/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
							</item>
		<item>
		<title>My first Django application</title>
		<link>http://blog.tristanmedia.com/2014/07/my-first-django-application/</link>
				<comments>http://blog.tristanmedia.com/2014/07/my-first-django-application/#respond</comments>
				<pubDate>Fri, 18 Jul 2014 17:29:12 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=125</guid>
				<description><![CDATA[I have run Filterizer, a one-page art calendar, using Rails in the past. I just relaunched it using Python and Django, running on Heroku. The source code is here.]]></description>
								<content:encoded><![CDATA[<p>I have run <a href="http://www.filterizer.com/">Filterizer</a>, a one-page art calendar, using Rails in the past. I just relaunched it using Python and Django, running on Heroku. The source code is <a href="https://github.com/bhoggard/filterizer-django">here</a>.</p>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2014/07/my-first-django-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Rails 4.1, initializers, and secrets.yml</title>
		<link>http://blog.tristanmedia.com/2014/04/rails-4-1-initializers-and-secrets-yml/</link>
				<comments>http://blog.tristanmedia.com/2014/04/rails-4-1-initializers-and-secrets-yml/#respond</comments>
				<pubDate>Wed, 09 Apr 2014 14:17:21 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=117</guid>
				<description><![CDATA[I'm using 4.1 on a new project. When I tried to set up an initializer using the values in secrets.yml, I got this error: /Users/barry/.rvm/gems/ruby-2.1.1@rails4.1/gems/railties-4.1.0.rc2/lib/rails/application.rb:311:in `secrets': uninitialized constant Rails::Application::YAML (NameError) from /Users/barry/projects/archiv8-billing/config/initializers/chargify.rb:2:in `block in ' from /Users/barry/.rvm/gems/ruby-2.1.1@rails4.1/gems/chargify_api_ares-1.0.4/lib/chargify_api_ares/config.rb:6:in `configure' from /Users/barry/projects/archiv8-billing/config/initializers/chargify.rb:1:in `' I fixed it by adding require 'yaml' to the top of my initializer: require [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>I'm using 4.1 on a new project. When I tried to set up an initializer using the values in <a href="http://edgeguides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml">secrets.yml</a>, I got this error:</p>
<p><code><br />
/Users/barry/.rvm/gems/ruby-2.1.1@rails4.1/gems/railties-4.1.0.rc2/lib/rails/application.rb:311:in `secrets': uninitialized constant Rails::Application::YAML (NameError)<br />
from /Users/barry/projects/archiv8-billing/config/initializers/chargify.rb:2:in `block in <top (required)>'<br />
from /Users/barry/.rvm/gems/ruby-2.1.1@rails4.1/gems/chargify_api_ares-1.0.4/lib/chargify_api_ares/config.rb:6:in `configure'<br />
from /Users/barry/projects/archiv8-billing/config/initializers/chargify.rb:1:in `</top><top (required)>'<br />
</top></code></p>
<p>I fixed it by adding <code>require 'yaml'</code> to the top of my initializer:</p>
<pre><code>
require 'yaml'
Chargify.configure do |c|
  c.api_key   = Rails.application.secrets.chargify_key
  c.subdomain = Rails.application.secrets.chargify_subdomain
end
</code></pre>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2014/04/rails-4-1-initializers-and-secrets-yml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Validating URLs for non-ActiveRecord objects</title>
		<link>http://blog.tristanmedia.com/2010/07/validating-urls-for-non-activerecord-objects/</link>
				<comments>http://blog.tristanmedia.com/2010/07/validating-urls-for-non-activerecord-objects/#respond</comments>
				<pubDate>Fri, 09 Jul 2010 23:12:10 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[mongoid]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=107</guid>
				<description><![CDATA[I'm using Mongoid and MongoDB on a new project, so my models are not derived from ActiveModel. On previous projects I just used the validates_url_format_of plugin, but for this project I put the code from the module into an initializer (config/initializers/validation.rb) and used extend. module ValidatesUrlFormatOf IPv4_PART = /\d&#124;[1-9]\d&#124;1\d\d&#124;2[0-4]\d&#124;25[0-5]/ # 0-255 REGEXP = %r{ \A [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>I'm using <a href="http://mongoid.org/">Mongoid</a> and MongoDB on a new project, so my models are not derived from ActiveModel.  On previous projects I just used the <a href="http://github.com/henrik/validates_url_format_of">validates_url_format_of</a> plugin, but for this project I put the code from the module into an initializer (config/initializers/validation.rb) and used <code>extend</code>.</p>
<pre lang="ruby">
module ValidatesUrlFormatOf
  IPv4_PART = /\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]/  # 0-255
  REGEXP = %r{
    \A
    https?://                                                    # http:// or https://
    ([^\s:@]+:[^\s:@]*@)?                                        # optional username:pw@
    ( (([^\W_]+\.)*xn--)?[^\W_]+([-.][^\W_]+)*\.[a-z]{2,6}\.? |  # domain (including Punycode/IDN)...
        #{IPv4_PART}(\.#{IPv4_PART}){3} )                        # or IPv4
    (:\d{1,5})?                                                  # optional port
    ([/?]\S*)?                                                   # optional /whatever or ?whatever
    \Z
  }iux

  DEFAULT_MESSAGE     = 'does not appear to be a valid URL'
  DEFAULT_MESSAGE_URL = 'does not appear to be valid'
  
  def validates_url_format_of(*attr_names)
    options = { :allow_nil => false,
                :allow_blank => false,
                :with => REGEXP }
    options = options.merge(attr_names.pop) if attr_names.last.is_a?(Hash)

    attr_names.each do |attr_name|
      message = attr_name.to_s.match(/(_|\b)URL(_|\b)/i) ? DEFAULT_MESSAGE_URL : DEFAULT_MESSAGE
      validates_format_of(attr_name, { :message => message }.merge(options))
    end
  end
  
end
</pre>
<p>Then my model extends that module:</p>
<pre lang="ruby">
class Location
  include Mongoid::Document
  include Mongoid::Timestamps
  extend ValidatesUrlFormatOf

  validates_url_format_of :url, :allow_blank => true
...
</pre>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2010/07/validating-urls-for-non-activerecord-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Testing HTTP basic authentication with RSpec 2</title>
		<link>http://blog.tristanmedia.com/2010/07/testing-http-basic-authentication-with-rspec-2/</link>
				<comments>http://blog.tristanmedia.com/2010/07/testing-http-basic-authentication-with-rspec-2/#comments</comments>
				<pubDate>Wed, 07 Jul 2010 02:00:50 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[rspec]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=97</guid>
				<description><![CDATA[Here's how I test my admin controllers that use HTTP basic authentication using RSpec 2: before(:each) do user = 'test' pw = 'test_pw' request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw) end Actually, that's how I did it when I first tested things, but I've since put it in its own module under spec/support/auth_helper: module AuthHelper # do admin login [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>Here's how I test my admin controllers that use HTTP basic authentication using RSpec 2:</p>
<pre lang="ruby">
before(:each) do
    user = 'test'
    pw = 'test_pw'
    request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw)
end
</pre>
<p>Actually, that's how I did it when I first tested things, but I've since put it in its own module under spec/support/auth_helper:</p>
<pre lang="ruby">
module AuthHelper
  # do admin login
  def admin_login
    user = 'test'
    pw = 'test_pw'
    request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw)
  end  
end
</pre>
<p>and now my controller spec looks like this:</p>
<pre lang="ruby">
describe Admin::LocationsController do
  
  include AuthHelper
  
  before(:each) do
    admin_login
  end

  describe "GET index" do
    it "assigns all locations as @locations" do
      loc = Factory.create(:location)
      get :index
      assigns(:locations).should eq([loc])
    end
  end

  describe "GET show" do
    it "assigns the requested location as @location" do
      loc = Factory.create(:location)
      get :show, :id => loc.id
      assigns(:location).should === loc
    end
  end  

end
</pre>
<p>That "Factory" line comes from my use of <a href="http://github.com/thoughtbot/factory_girl">factory_girl</a> rather than fixtures.</p>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2010/07/testing-http-basic-authentication-with-rspec-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
							</item>
		<item>
		<title>Rails 3, RSpec, Mongoid and Database Cleaner</title>
		<link>http://blog.tristanmedia.com/2010/07/rails-3-rspec-and-database-cleaner/</link>
				<comments>http://blog.tristanmedia.com/2010/07/rails-3-rspec-and-database-cleaner/#comments</comments>
				<pubDate>Mon, 05 Jul 2010 21:59:34 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[mongoid]]></category>
		<category><![CDATA[rspec]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=88</guid>
				<description><![CDATA[After wrestling with various combinations of cleaning out my database between tests, this is what I'm using on a new Rails 3 application that uses Mongoid, RSpec 2, and Database Cleaner. I have one table (neighborhoods) which is populated using rake db:seed, so I'm excluding that from the cleanup. Put this into your spec/spec_helper.rb: require [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>After wrestling with various combinations of cleaning out my database between tests, this is what I'm using on a new Rails 3 application that uses <a href="http://mongoid.org/">Mongoid</a>, <a href="http://github.com/rspec/rspec-rails">RSpec 2</a>, and <a href="http://github.com/bmabey/database_cleaner">Database Cleaner</a>.  I have one table (neighborhoods) which is populated using rake db:seed, so I'm excluding that from the cleanup.</p>
<p>Put this into your spec/spec_helper.rb:</p>
<pre lang="ruby">
require 'database_cleaner'

RSpec.configure do |config|
  config.mock_with :rspec

  config.before(:each) do
    DatabaseCleaner.orm = "mongoid" 
    DatabaseCleaner.strategy = :truncation, {:except => %w[ neighborhoods ]}
    DatabaseCleaner.clean
  end
end
</pre>
<p><strong>UPDATE:</strong> This isn't working for me now.  Apparently the <code>config.before(:each)</code> part isn't being called in the versions of rspec (2.0.0.beta.21), cucumber (0.8.5), and cucumber-rails (0.3.2) that I'm using now.  I'm now using the approach by Kevin Faustino <a href="http://adventuresincoding.com/2010/07/how-to-configure-cucumber-and-rspec-to-work-with-mongoid/">here</a>.</p>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2010/07/rails-3-rspec-and-database-cleaner/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
							</item>
		<item>
		<title>MacPorts annoyance with PHP and MySQL</title>
		<link>http://blog.tristanmedia.com/2009/10/macports-annoyance-with-php-and-mysql/</link>
				<comments>http://blog.tristanmedia.com/2009/10/macports-annoyance-with-php-and-mysql/#respond</comments>
				<pubDate>Tue, 27 Oct 2009 17:36:25 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=86</guid>
				<description><![CDATA[I'm doing some local WordPress development, so I set up Apache, PHP, and MySQL using MacPorts. Apparently, the default setup does not set the location of the MySQL socket for you, so I copied /opt/local/etc/php5/php.ini-development to /opt/local/etc/php5/php.ini and changed these lines: pdo_mysql.default_socket=/opt/local/var/run/mysql5/mysqld.sock mysql.default_socket =/opt/local/var/run/mysql5/mysqld.sock mysqli.default_socket =/opt/local/var/run/mysql5/mysqld.sock]]></description>
								<content:encoded><![CDATA[<p>I'm doing some local WordPress development, so I set up Apache, PHP, and MySQL using <a href="http://www.macports.org/">MacPorts</a>.  Apparently, the default setup does not set the location of the MySQL socket for you, so I copied /opt/local/etc/php5/php.ini-development to /opt/local/etc/php5/php.ini and changed these lines:</p>
<pre>
pdo_mysql.default_socket=/opt/local/var/run/mysql5/mysqld.sock
mysql.default_socket =/opt/local/var/run/mysql5/mysqld.sock
mysqli.default_socket =/opt/local/var/run/mysql5/mysqld.sock
</pre>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2009/10/macports-annoyance-with-php-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Quick fix for moving to Vlad the Deployer 2.0.0 with git</title>
		<link>http://blog.tristanmedia.com/2009/09/2-quick-fixes-for-moving-to-vlad-the-deployer-2-0-0/</link>
				<comments>http://blog.tristanmedia.com/2009/09/2-quick-fixes-for-moving-to-vlad-the-deployer-2-0-0/#respond</comments>
				<pubDate>Wed, 09 Sep 2009 19:43:57 +0000</pubDate>
		<dc:creator><![CDATA[Barry]]></dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[vlad]]></category>

		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=76</guid>
				<description><![CDATA[I just upgraded my dev machine to version 2.0.0 of Vlad the Deployer. I got one unexpected error -- "Please specify the deploy path via the :deploy_to variable" -- but here is how I fixed it: git support is now a separate gem, so remember to run sudo gem install vlad-git I also had some [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>I just upgraded my dev machine to version 2.0.0 of <a href="http://rubyhitsquad.com/Vlad_the_Deployer.html">Vlad the Deployer</a>. I got one unexpected error -- "Please specify the deploy path via the :deploy_to variable" -- but here is how I fixed it:</p>
<p>git support is now a separate gem, so remember to run</p>
<pre>
sudo gem install vlad-git
</pre>
<p>I also had some problems when version 1.4.0 was also on my machine, so I uninstalled that one with:</p>
<pre>
sudo gem uninstall vlad -v "1.4.0"
</pre>
]]></content:encoded>
							<wfw:commentRss>http://blog.tristanmedia.com/2009/09/2-quick-fixes-for-moving-to-vlad-the-deployer-2-0-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
