<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Jason Noble's Technical Adventures</title>
	
	<link>http://jasonnoble.org</link>
	<description>Riding the rails</description>
	<lastBuildDate>Sun, 29 Jan 2012 01:18:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/JasonNoblesTechnicalAdventures" /><feedburner:info uri="jasonnoblestechnicaladventures" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Rubymine print current line</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/7VIFBUITvKM/rubymine-print-current-line.html</link>
		<comments>http://jasonnoble.org/2012/01/rubymine-print-current-line.html#comments</comments>
		<pubDate>Sun, 29 Jan 2012 01:17:47 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=146</guid>
		<description><![CDATA[One way of debugging your ruby scripts is to print out the value of variables in different sections of your code. Rubymine has a feature called live templates that allows you to type a short command and have RubyMine extract it in to full blown code. Some built in shortcuts exist, such as def (creates [...]]]></description>
			<content:encoded><![CDATA[<p>One way of debugging your ruby scripts is to print out the value of variables in different sections of your code.</p>
<p>Rubymine has a feature called live templates that allows you to type a short command and have RubyMine extract it in to full blown code.  Some built in shortcuts exist, such as def (creates a method), desc (create a RSpec test), it (RSpec test), etc.</p>
<p>To create your own, go to RubyMine -> Preferences -> Live Templates.  Click one of the existing templates and hit Copy.</p>
<p>I named mine pl (Put Line Number) and put the following content in:</p>
<p>     puts &#8220;#{__FILE__:#{__LINE__}&#8221;</p>
<p>Now when I&#8217;m typing code, I can hit the following:</p>
<p>     pl&lt;TAB&gt;<br />
     p &#8220;Hello&#8221;</p>
<p>And it will print out the following:</p>
<p>    /Users/jasonn/source/project/junk.rb:1<br />
    &#8220;Hello&#8221;</p>
<p>I&#8217;ve found this helpful for tracking down where a specific print statement is located.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=7VIFBUITvKM:R3Mkf9zI16E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=7VIFBUITvKM:R3Mkf9zI16E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=7VIFBUITvKM:R3Mkf9zI16E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=7VIFBUITvKM:R3Mkf9zI16E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/7VIFBUITvKM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2012/01/rubymine-print-current-line.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2012/01/rubymine-print-current-line.html</feedburner:origLink></item>
		<item>
		<title>Updated: Rails3 Custom Environment Variables</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/gt2lM_pLBMk/updated-rails3-custom-environment-variables.html</link>
		<comments>http://jasonnoble.org/2011/12/updated-rails3-custom-environment-variables.html#comments</comments>
		<pubDate>Sun, 04 Dec 2011 03:16:20 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=139</guid>
		<description><![CDATA[A while back, I wrote a blog post on adding custom environment variables to Rails3. This has gotten much easier with a change made by Jose Valim back in March. The change allows you to create your own custom configuration variables like so: This allows you to add any configuration variables you want to your [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, I wrote a blog <a href="http://jasonnoble.org/2011/02/rails3-custom-environment-variables.html">post</a> on adding custom environment variables to Rails3.</p>
<p>This has gotten much easier with a <a href="https://github.com/rails/rails/commit/395d6648ce7549f71dd0a76dc061e87f608aaaab#diff-14">change</a> made by Jose Valim back in March.</p>
<p>The change allows you to create your own custom configuration variables like so:</p>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/development.rb
Demo::Application.configure do
  [...]
  config.json_url = &quot;http://www.domain.com&quot;
  [...]
end
</pre>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/test.rb
Demo::Application.configure do
  [...]
  config.json_url = &quot;http://test.domain.com&quot;
  [...]
end
</pre>
<p>This allows you to add any configuration variables you want to your Rails app.  What if you have a bunch of configuration values?  You don&#8217;t want to pollute your config.* namespace.  Wouldn&#8217;t it be helpful to have config.my_app.json_url and config.my_app.other_url?</p>
<p>That&#8217;s easy enough:</p>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/application.rb
Demo::Application.configure do
  config.my_app = ActiveSupport::OrderedOptions.new
end
</pre>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/development.rb
Demo::Application.configure do
  [...]
  config.my_app.json_url = &quot;http://www.domain.com&quot;
  [...]
end
</pre>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/test.rb
Demo::Application.configure do
  [...]
  config.my_app.json_url = &quot;http://test.domain.com&quot;
  [...]
end
</pre>
<p>Now you can do the following in the Rails console:</p>
<pre class="brush: ruby; title: ; notranslate">
$ rails console
&gt;&gt; Demo::Application.config.my_app.json_url
&quot;http://www.domain.com&quot;
&gt;&gt;
</pre>
<pre class="brush: ruby; title: ; notranslate">
$ rails console test
&gt;&gt; Demo::Application.config.my_app.json_url
&quot;http://test.domain.com&quot;
&gt;&gt;
</pre>
<p>Now your Rails application will have access to all the configuration you need.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=gt2lM_pLBMk:dLHC-qqnV1E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=gt2lM_pLBMk:dLHC-qqnV1E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=gt2lM_pLBMk:dLHC-qqnV1E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=gt2lM_pLBMk:dLHC-qqnV1E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/gt2lM_pLBMk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2011/12/updated-rails3-custom-environment-variables.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2011/12/updated-rails3-custom-environment-variables.html</feedburner:origLink></item>
		<item>
		<title>Visiting Pivotal Labs in Boulder, CO</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/nPtV_UWFhGg/visiting-pivotal-labs-in-boulder-co.html</link>
		<comments>http://jasonnoble.org/2011/02/visiting-pivotal-labs-in-boulder-co.html#comments</comments>
		<pubDate>Thu, 17 Feb 2011 14:19:52 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=104</guid>
		<description><![CDATA[I recently had the opportunity to visit Boulder, CO (Wiki, Map). The reason for my visit was to visit the Pivotal Labs office and spend a day pairing with them. One of the cool/interesting features of the Pivotal office is that the company provides breakfast in the morning. I walked into the office to find [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the opportunity to visit Boulder, CO (<a href="http://en.wikipedia.org/wiki/Boulder,_Colorado">Wiki</a>, <a href="http://bit.ly/hgwNys">Map</a>).  The reason for my visit was to visit the <a href="http://pivotallabs.com/">Pivotal Labs</a> office and spend a day pairing with them.</p>
<p>One of the cool/interesting features of the Pivotal office is that the company provides breakfast in the morning.  I walked into the office to find two quiches, pears, strawberries, Orange Juice, Milk, Coffee and several choices of breakfast cereal.</p>
<p>The day started out with a standup.  We then split off into pairs and worked on our respective projects.  It was interesting to be thrown into the fire and within a half hour I was working on a large, well known website, implementing features that are now live on that site.</p>
<p>We split for lunch around 11:30.  After lunch we switched pairs and I worked on a different portion of the code.  Pivotal has a strong TDD/BDD approach to coding.  We wrote tests that failed, then wrote the code to make them pass.  After all the tests passed, we refactored.  This is what Rails development is supposed to be.</p>
<p>The afternoon/evening was rounded out with a team retrospective meeting.  After the meeting, the office all joined in for a game of StarCraft II.</p>
<p>I thought my interview/pairing day went really well, and I&#8217;m happy to say that I&#8217;m moving to Boulder to start working for Pivotal Labs March 14th.</p>
<p>Here&#8217;s some pics:<br />
<IMG SRC=/pivotal/IMG_0434.jpg><br />
The Snow was falling as I arrived at Denver International Airport</p>
<p><IMG SRC=/pivotal/IMG_0436.jpg><br />
The Pivotal office has a full size, full time ping-pong table</p>
<p><IMG SRC=/pivotal/IMG_0437.jpg><br />
This is the view from the office.</p>
<p><IMG SRC=/pivotal/IMG_0438.jpg></p>
<p><IMG SRC=/pivotal/IMG_0439.jpg><br />
The spotting scope is from a Russian Destroyer.  One of the Pivots said during the summer you can see mountain climbers climbing the distant mountains.  The large grill is for hosting summer parties.</p>
<p><IMG SRC=/pivotal/IMG_0440.jpg></p>
<p><IMG SRC=/pivotal/IMG_0441.jpg></p>
<p><IMG SRC=/pivotal/IMG_0442.jpg></p>
<p><IMG SRC=/pivotal/IMG_0444.jpg><br />
This is from across the street.  Pivotal Labs is on the second floor.  Ted&#8217;s is an easy lunch.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=nPtV_UWFhGg:PfHHMWJcOMQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=nPtV_UWFhGg:PfHHMWJcOMQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=nPtV_UWFhGg:PfHHMWJcOMQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=nPtV_UWFhGg:PfHHMWJcOMQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/nPtV_UWFhGg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2011/02/visiting-pivotal-labs-in-boulder-co.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2011/02/visiting-pivotal-labs-in-boulder-co.html</feedburner:origLink></item>
		<item>
		<title>Rails3 Custom Environment Variables</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/UEb2-60R8uA/rails3-custom-environment-variables.html</link>
		<comments>http://jasonnoble.org/2011/02/rails3-custom-environment-variables.html#comments</comments>
		<pubDate>Mon, 14 Feb 2011 05:39:18 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=100</guid>
		<description><![CDATA[I recently saw a question on Stack Overflow regarding custom variables that have different values based on which environment you are running for Rails. It turns out it&#8217;s very easy to accomplish. This gives you access to a Rails variable called Configuration.json_url. Now we just need to initialize this value in our environment files. Now [...]]]></description>
			<content:encoded><![CDATA[<p>I recently saw a <a href=http://stackoverflow.com/questions/4800028/rails-3-setting-custom-environment-variables>question</a> on Stack Overflow regarding custom variables that have different values based on which environment you are running for Rails.</p>
<p>It turns out it&#8217;s very easy to accomplish.</p>
<pre class="brush: ruby; title: ; notranslate">
# config/initializers/configuration.rb
class Configuration
  class &lt;&lt; self
    attr_accessor :json_url
  end
end
</pre>
<p>This gives you access to a Rails variable called Configuration.json_url.  Now we just need to initialize this value in our environment files.</p>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/development.rb
#   Put this inside the ______::Application.configure block
config.after_initialize do
  Configuration.json_url = &quot;http://test.domain.com&quot;
end
</pre>
<pre class="brush: ruby; title: ; notranslate">
# config/environments/test.rb
config.after_initialize do
  Configuration.json_url = &quot;http://www.domain.com&quot;
end
</pre>
<p>Now you can test it in the Rails console.</p>
<pre class="brush: plain; title: ; notranslate">
$ rails console
&gt;&gt; Configuration.json_url
&quot;http://test.domain.com&quot;
&gt;&gt;
</pre>
<pre class="brush: plain; title: ; notranslate">
$ RAILS_ENV=production rails console
&gt;&gt; Configuration.json_url
&quot;http://www.domain.com&quot;
&gt;&gt;
</pre>
<p>Now your Rails app has access to these variables, so you can use them in your Controllers, Models or Views as needed.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=UEb2-60R8uA:AYqM66-pJvY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=UEb2-60R8uA:AYqM66-pJvY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=UEb2-60R8uA:AYqM66-pJvY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=UEb2-60R8uA:AYqM66-pJvY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/UEb2-60R8uA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2011/02/rails3-custom-environment-variables.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2011/02/rails3-custom-environment-variables.html</feedburner:origLink></item>
		<item>
		<title>Books for Sale</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/Vyp06GnimDA/books-for-sale.html</link>
		<comments>http://jasonnoble.org/2011/02/books-for-sale.html#comments</comments>
		<pubDate>Sat, 12 Feb 2011 21:50:51 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=94</guid>
		<description><![CDATA[I have a bunch of books for sale, I no longer read them, but most are in new condition. Make an offer.]]></description>
			<content:encoded><![CDATA[<p>I have a bunch of books for sale, I no longer read them, but most are in new condition.  Make an offer.</p>
<p><IMG SRC=/books/CIMG5830.jpg></p>
<p><IMG SRC=/books/CIMG5831.jpg></p>
<p><IMG SRC=/books/CIMG5832.jpg></p>
<p><IMG SRC=/books/CIMG5833.jpg></p>
<p><IMG SRC=/books/CIMG5834.jpg></p>
<p><IMG SRC=/books/CIMG5835.jpg></p>
<p><IMG SRC=/books/CIMG5836.jpg></p>
<p><IMG SRC=/books/CIMG5837.jpg></p>
<p><IMG SRC=/books/CIMG5838.jpg></p>
<p><IMG SRC=/books/CIMG5839.jpg></p>
<p><IMG SRC=/books/CIMG5840.jpg></p>
<p><IMG SRC=/books/CIMG5841.jpg></p>
<p><IMG SRC=/books/CIMG5842.jpg></p>
<p><IMG SRC=/books/CIMG5843.jpg></p>
<p><IMG SRC=/books/CIMG5844.jpg></p>
<p><IMG SRC=/books/CIMG5845.jpg></p>
<p><IMG SRC=/books/CIMG5846.jpg></p>
<p><IMG SRC=/books/CIMG5847.jpg></p>
<p><IMG SRC=/books/CIMG5848.jpg></p>
<p><IMG SRC=/books/CIMG5849.jpg></p>
<p><IMG SRC=/books/CIMG5850.jpg></p>
<p><IMG SRC=/books/CIMG5851.jpg></p>
<p><IMG SRC=/books/CIMG5852.jpg></p>
<p><IMG SRC=/books/CIMG5853.jpg></p>
<p><IMG SRC=/books/CIMG5854.jpg></p>
<p><IMG SRC=/books/CIMG5855.jpg></p>
<p><IMG SRC=/books/CIMG5856.jpg></p>
<p><IMG SRC=/books/CIMG5857.jpg></p>
<p><IMG SRC=/books/CIMG5858.jpg></p>
<p><IMG SRC=/books/CIMG5859.jpg></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=Vyp06GnimDA:9rqvu5K8L1s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=Vyp06GnimDA:9rqvu5K8L1s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=Vyp06GnimDA:9rqvu5K8L1s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=Vyp06GnimDA:9rqvu5K8L1s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/Vyp06GnimDA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2011/02/books-for-sale.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2011/02/books-for-sale.html</feedburner:origLink></item>
		<item>
		<title>Pushing Depot to Heroku</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/9STOOXoJFjE/pushing-depot-to-heroku.html</link>
		<comments>http://jasonnoble.org/2010/10/pushing-depot-to-heroku.html#comments</comments>
		<pubDate>Sun, 31 Oct 2010 05:18:50 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Agile Web Development]]></category>
		<category><![CDATA[Heroku]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=90</guid>
		<description><![CDATA[I&#8217;m working my way through Agile Web Development with Rails, 4th edition by Sam Ruby. I just finished up with Chapter 6: Creating the Application. It&#8217;s working fine on my machine, but I wanted to push it to Heroku. Here&#8217;s how I did it: I then added a /products on the Heroku URL that came [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working my way through <A href=http://www.pragprog.com/titles/rails4/agile-web-development-with-rails>Agile Web Development with Rails, 4th edition</A> by Sam Ruby.  </p>
<p>I just finished up with Chapter 6: Creating the Application.  It&#8217;s working fine on my machine, but I wanted to push it to Heroku.  Here&#8217;s how I did it:</p>
<pre class="brush: plain; title: ; notranslate">
echo &quot;gem 'heroku'&quot; &gt;&gt; Gemfile
bundle install
git init
git add .
git commit -m 'Initial commit'
heroku create
git push heroku master
heroku rake db:migrate
heroku rake db:seed
heroku open
</pre>
<p>I then added a /products on the Heroku URL that came up and my Depot application is now running on Heroku.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=9STOOXoJFjE:JmzkzpqlNlE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=9STOOXoJFjE:JmzkzpqlNlE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=9STOOXoJFjE:JmzkzpqlNlE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=9STOOXoJFjE:JmzkzpqlNlE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/9STOOXoJFjE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2010/10/pushing-depot-to-heroku.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2010/10/pushing-depot-to-heroku.html</feedburner:origLink></item>
		<item>
		<title>Playing around with Conductor by DHH</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/H1jtIv9bbVg/playing-around-with-conductor-by-dhh.html</link>
		<comments>http://jasonnoble.org/2010/10/playing-around-with-conductor-by-dhh.html#comments</comments>
		<pubDate>Sun, 31 Oct 2010 03:32:46 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[rails3]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=84</guid>
		<description><![CDATA[A while back, I saw that DHH had published a rails engine called Conductor. I added it to my list of things to look at and tonight, I got some time to take a look. I&#8217;m using RVM with 1.9.2p0 and rails 3.0.1. I edited my Gemfile and added the following line: I then ran [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, I saw that DHH had published a rails engine called <a href=http://github.com/dhh/conductor>Conductor</a>.  I added it to my list of things to look at and tonight, I got some time to take a look.</p>
<p>I&#8217;m using RVM with 1.9.2p0 and rails 3.0.1.</p>
<pre class="brush: plain; title: ; notranslate">
rails new conductor &amp;&amp; cd conductor
</pre>
<p>I edited my Gemfile and added the following line:</p>
<pre class="brush: plain; title: ; notranslate">
gem 'conductor', :git =&gt; 'http://github.com/dhh/conductor.git', :require =&gt; 'conductor/engine'
</pre>
<p>I then ran &#8220;bundle install&#8221;.</p>
<p>I fire up rails server and hit http://localhost:3000/conductor (as suggested by the README) and I get an error:</p>
<pre class="brush: plain; title: ; notranslate">
Routing Error

No route matches &quot;/conductor&quot;
</pre>
<p>Am I missing something?  I need to research Rails3 engines some more.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=H1jtIv9bbVg:p2KiOwRBVFQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=H1jtIv9bbVg:p2KiOwRBVFQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=H1jtIv9bbVg:p2KiOwRBVFQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=H1jtIv9bbVg:p2KiOwRBVFQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/H1jtIv9bbVg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2010/10/playing-around-with-conductor-by-dhh.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2010/10/playing-around-with-conductor-by-dhh.html</feedburner:origLink></item>
		<item>
		<title>Straight HTML/CSS for a change of pace</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/19ZR5ogN0b0/straight-htmlcss-for-a-change-of-pace.html</link>
		<comments>http://jasonnoble.org/2010/09/straight-htmlcss-for-a-change-of-pace.html#comments</comments>
		<pubDate>Wed, 29 Sep 2010 04:09:21 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/?p=80</guid>
		<description><![CDATA[I recently worked on a personal project involving HTML and CSS. My wife&#8217;s family is trying to sell a 52 acre parcel of land in Noxon, MT. They wanted a website that showed the property better than the real estate agent was able to provide (short summary, only one photo). The site I came up [...]]]></description>
			<content:encoded><![CDATA[<p>I recently worked on a personal project involving HTML and CSS.  My wife&#8217;s family is trying to sell a 52 acre parcel of land in <a href=http://en.wikipedia.org/wiki/Noxon,_Montana>Noxon, MT</a>.  They wanted a website that showed the property better than the real estate agent was able to provide (short summary, only one photo).</p>
<p>The site I came up with is quickly rising in the results for <a href=http://www.103pilgrimcreek.com/>Montana land for sale</a>.</p>
<p>Hopefully this page will help as well.  &lt;/lame seo attempt&gt;</p>
<p>I got <a href=http://www.google.com/analytics/>Google Analytics</a> setup and I think <a href=https://www.google.com/adsense/>Google Adsense</a> is next.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=19ZR5ogN0b0:lCKKIkXz-Y0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=19ZR5ogN0b0:lCKKIkXz-Y0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=19ZR5ogN0b0:lCKKIkXz-Y0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=19ZR5ogN0b0:lCKKIkXz-Y0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/19ZR5ogN0b0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2010/09/straight-htmlcss-for-a-change-of-pace.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2010/09/straight-htmlcss-for-a-change-of-pace.html</feedburner:origLink></item>
		<item>
		<title>Cruise control.rb refusing to build a project</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/OFsqom5jPLk/cruise-controlrb-refusing-to-build.html</link>
		<comments>http://jasonnoble.org/2009/12/cruise-controlrb-refusing-to-build.html#comments</comments>
		<pubDate>Wed, 02 Dec 2009 16:47:00 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[cruise control.rb]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[cruise control]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/wordpress/?p=28</guid>
		<description><![CDATA[I ran into an interesting problem at work today. I had a cruise control project that would not build the project after a commit was made. Other projects in CruiseControl.rb were working properly. Here&#8217;s the steps I used to debug: Login to your Cruise Control box and cd to $BUILD_DIR/projects/$PROJ_NAME/work Run the following command. This [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting problem at work today.  I had a cruise control project that would not build the project after a commit was made.  Other projects in CruiseControl.rb were working properly.</p>
<p>Here&#8217;s the steps I used to debug:</p>
<p>Login to your Cruise Control box and cd to $BUILD_DIR/projects/$PROJ_NAME/work</p>
<p>Run the following command.  This is how CC.rb figures out if updates have been made.</p>
<pre class="brush: plain; title: ; notranslate">git log --pretty=raw --stat HEAD..origin/master</pre>
<p>When I ran this command, I was getting &#8220;warning: refname &#8216;origin/master&#8217; is ambiguous.&#8221; returned.  After some google searches, I landed upon some <a href="http://lists.luaforge.net/pipermail/sputnik-list/2008-July/000367.html">mailing</a> <a href="http://lists.luaforge.net/pipermail/sputnik-list/2008-July/000368.html">list</a> messages that pointed me towards the issue.</p>
<p>The reason git was complaining about origin/master being ambiguous was that someone created a tag named &#8220;origin/master&#8221; (the beating has been scheduled).</p>
<p>I had to delete this tag locally by running the following command.</p>
<pre class="brush: plain; title: ; notranslate">git tag -d origin/master</pre>
<p>Then I had to delete the remote branch by running the following.</p>
<pre class="brush: plain; title: ; notranslate">git push origin :refs/tags/origin/master</pre>
<p>Now the CC server is working properly.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=OFsqom5jPLk:1XuzB0sDpY8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=OFsqom5jPLk:1XuzB0sDpY8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=OFsqom5jPLk:1XuzB0sDpY8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=OFsqom5jPLk:1XuzB0sDpY8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/OFsqom5jPLk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2009/12/cruise-controlrb-refusing-to-build.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2009/12/cruise-controlrb-refusing-to-build.html</feedburner:origLink></item>
		<item>
		<title>Testing syntax highlighting</title>
		<link>http://feedproxy.google.com/~r/JasonNoblesTechnicalAdventures/~3/bRbgsTnv-Lw/testing-syntax-highlighting.html</link>
		<comments>http://jasonnoble.org/2009/09/testing-syntax-highlighting.html#comments</comments>
		<pubDate>Thu, 10 Sep 2009 15:54:00 +0000</pubDate>
		<dc:creator>Jason Noble</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jasonnoble.org/wordpress/?p=27</guid>
		<description />
			<content:encoded><![CDATA[<pre class="brush: java; title: ; notranslate">
public class HelloBlogger {
  public static void main(String [] args) {
    System.out.println(&quot;Hello Blogger!!&quot;);
  }
}
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=bRbgsTnv-Lw:A0rY2TvLZtk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=bRbgsTnv-Lw:A0rY2TvLZtk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?i=bRbgsTnv-Lw:A0rY2TvLZtk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?a=bRbgsTnv-Lw:A0rY2TvLZtk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/JasonNoblesTechnicalAdventures?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/JasonNoblesTechnicalAdventures/~4/bRbgsTnv-Lw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://jasonnoble.org/2009/09/testing-syntax-highlighting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://jasonnoble.org/2009/09/testing-syntax-highlighting.html</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: jasonnoble.org @ 2012-01-28 19:06:23 -->

