<?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>McKinney Station &#187; Dallas</title>
	<atom:link href="http://www.mckinneystation.com/categories/dallas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mckinneystation.com</link>
	<description>Ruby on Rails web application development for Dallas/Fort Worth and all of North Texas.</description>
	<lastBuildDate>Wed, 02 Sep 2009 14:29:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Deploying Sinatra Apps on Dreamhost</title>
		<link>http://www.mckinneystation.com/2008/10/09/deploying-sinatra-apps-on-dreamhost/</link>
		<comments>http://www.mckinneystation.com/2008/10/09/deploying-sinatra-apps-on-dreamhost/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 05:22:47 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[microapps]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/?p=86</guid>
		<description><![CDATA[So I LOVE creating small apps as a way of trying out new things.  The problem is that I rarely deploy them anywhere.  Many end up sitting in my /workspace directory until I decide I need to reclaim the space and probably won&#8217;t work on it ever again.
Recently, the Dallas Relevance folks have [...]]]></description>
			<content:encoded><![CDATA[<p>So I LOVE creating <a href="http://www.mckinneystation.com/2008/06/03/microapps-encourage-hacking/">small apps as a way of trying out new things</a>.  The problem is that I rarely deploy them anywhere.  Many end up sitting in my <code>/workspace</code> directory until I decide I need to reclaim the space and probably won&#8217;t work on it ever again.</p>
<p>Recently, the Dallas <a href="http://www.thinkrelevance.com">Relevance</a> folks have been meeting at Panera while we wait for our office space to materialize.  Most of the time everything works out nicely: free wifi, decent coffee, plenty of room to spread out.  But one thing that doesn&#8217;t work correctly while at Panera is <a href="http://tinyurl.com">tinyurl.com</a>.  For some reason, tinyurl is blocked by Panera filters.  This would be fine for most, but since my twitter friends insist on using tinyurl to post links in their tweets, it is annoying not being able to see what is going on.</p>
<h2>Microapp to the Rescue</h2>
<p>So I figured this would be an opportunity for simple little that let me enter the tinyurl, figure out where it was going to redirect to, and go ahead and redirect me there.  This way I am never accessing the evil tinyurl.com directly from the Panera network, but instead letting my little app do that for me.</p>
<p>The app was pretty easy to write.  I used <a href="http://github.com/bmizerany/sinatra">Sinatra</a> and created one &#8220;controller&#8221; and one &#8220;view&#8221;.  Within a few minutes, Sinatra had &#8220;taken the stage on port 4567&#8243; and my app was working.  Locally.</p>
<h2>Give the app a home</h2>
<p>The next challenge came when I tried to deploy it to my trusty <a href="http://www.dreamhost.com">Dreamhost</a> account.  I love Dreamhost for playing around with small apps.  You get <a href="http://dreamhost.com/hosting.html">unlimited domains,</a> they have <a href="http://dreamhost.com/hosting-panel.html">a pretty cool admin control panel</a>, and they support deploying Rails applications with <a href="http://www.modrails.com/">Passenger Phusion</a>.  And since <a href="http://www.modrails.com/documentation/Users%20guide.html#_deploying_a_rack_based_ruby_application">Passenger Phusion 2.0 supports Rack enabled Ruby apps</a>, I knew I should be able to deploy this new app to my Dreamhost account.  A quick search turned up a useful post with <a href="http://www.gittr.com/index.php/archive/deploying-rack-apps-on-dreamhost-via-passenger-including-sinatra/">information on deploying to Sinatra apps on Dreamhost</a>.  Unfortunately, the first attempt didn&#8217;t work.</p>
<h2>Always check the logs</h2>
<p>So I went to the logs to see what went wrong&#8230; wait there weren&#8217;t any logs!  Fortunately I found this post for <a href="http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/">logging with Sinatra apps</a>.  Unfortunately, the logs didn&#8217;t help.  Apparently, my problem ran deeper.  So like all good debuggers, I started commenting out code and printing out where I was in the app.  The first thing I commented out was the called to render the view using ERB.  Turns out you can configure where the root of the app is located.  Apparently the root path for a Sinatra app running on Dreamhost is not exactly the path where you deployed it.  <code>Sinatra::Application.default_options[:root]</code> looked like this: </p>
<pre><code>/home/.machinename/username/app.domain.com/Rack: /home/.machinename/username</code></pre>
<h2>Additional configuration needed</h2>
<p>Looking through the Sinatra source turned up the needed configuration changes need:</p>
<pre><code>path = "/path/to/app"

Sinatra::Application.default_options.merge!(
  :root =&gt; path,
  :views =&gt; path + '/views',
  :public =&gt; path + '/public',
  :run =&gt; false,
  :env =&gt; :production
)</code></pre>
<p>A quick deploy later and the application was up and running.  Tomorrow we are meeting at Panera and I will get to see what everyone is tweeting about.</p>
<h2>Addendum: Deployment too?</h2>
<p>Since Sinatra apps are so small, you could just copy everything up to the server manually.  But I like have a little Rake task to do that for me.  It just touches the <code>tmp/restart.txt</code> that Passenger uses to know when to restart and then uses rsync to copy the files up to the server.</p>
<pre><code>desc 'Deploy to the server using rsync'
task :restart do
  sh "touch tmp/restart.txt"
end

desc 'Deploy to the server using rsync'
task :deploy =&gt; :restart do
  cmd = "rsync -ruv * #{USERNAME}@#{DOMAIN}:#{DEPLOY_PATH}"
  sh cmd
end</code></pre>
<h2>Take a look at the code</h2>
<p>I have <a href="http://github.com/gdagley/panera">posted the code on Github</a> for everyone to take a look at.  Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/10/09/deploying-sinatra-apps-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dallas.rb Presentation</title>
		<link>http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/</link>
		<comments>http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 02:37:05 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[RSpec]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/</guid>
		<description><![CDATA[photo by vitalyzator
I presented on RSpec 1.1 tonight at the Dallas.rb.  I don&#8217;t claim to be an expert, I just love my specs (and now stories).
Feel free to take a look at the slides.
]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/02/62012133_17e9735f1f_m.jpg' alt='Train graffiti' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/70475110@N00/">vitalyzator</a></span></div>
<p>I presented on <a href="http://rspec.info">RSpec 1.1</a> tonight at the <a href="http://www.dallasrb.org">Dallas.rb</a>.  I don&#8217;t claim to be an expert, I just love <a href="http://rspec.info/examples.html">my specs</a> (<a href="http://rspec.info/documentation/stories.html">and now stories</a>).</p>
<p>Feel free to take a look at <a href='http://www.mckinneystation.com/wp-content/uploads/2008/02/dallasrb-2008-02-05.pdf' title='RSpec 1.1 PDF from Dallas.rb'>the slides</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pay For What You Use</title>
		<link>http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/</link>
		<comments>http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 04:44:52 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[North Texas]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/</guid>
		<description><![CDATA[My friend, Chris Gay, is a finalist in the Amazon Web Services Startup Challenge with his company, MileMeter.  I love the concept of only paying for the auto insurance I am going to use.  Both my wife and I work out of the home and therefore our cars sit in the garage alot. [...]]]></description>
			<content:encoded><![CDATA[<p>My friend, Chris Gay, is a finalist in the <a href="http://developer.amazonwebservices.com/connect/amazon_startupchallenge.jsp">Amazon Web Services Startup Challenge</a> with his company, <a href="http://www.milemeter.com">MileMeter</a>.  I love the concept of only paying for the auto insurance I am going to use.  Both my wife and I work out of the home and therefore our cars sit in the garage alot.  But I still have to pay the same rates as my neighbors who drive to downtown Dallas everyday.  For both cars!  </p>
<p>So now I urge you to <a href="http://developer.amazonwebservices.com/connect/amazon_startupchallenge.jsp">go and vote for Chris and MileMeter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ping Pong at the Dallas.rb</title>
		<link>http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/</link>
		<comments>http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 02:22:29 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[RSpec]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/</guid>
		<description><![CDATA[photo by chick_e_pooo

Last night, Adam Keys and I did a little ping pong pairing for the Dallas.rb meeting.  It was fun.  Of course it highlighted how much I have to jump back to the Ruby docs to get much done.  But I don&#8217;t see that as a problem, since it leaves more [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/11/pingpong.jpg' alt='ping pong' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/chickie-poo/">chick_e_pooo</a><br/><br/><br />
</span></div>
<p>Last night, <a href="http://www.therealadam.com">Adam Keys</a> and I did a little <a href="http://c2.com/cgi/wiki?PairProgrammingPingPongPattern">ping pong pairing</a> for <a href="http://www.dallasrb.org">the Dallas.rb meeting</a>.  It was fun.  Of course it highlighted how much I have to jump back to <a href="http://www.rubybrain.com">the Ruby docs</a> to get much done.  But I don&#8217;t see that as a problem, since it leaves more room in my head for other things.  It also showed my lack of regex-fu.</p>
<p>Here is <a href="http://groups.google.com/group/dallasrb/browse_thread/thread/83005bf4dc9dac6a">the code we worked on</a>.  We were trying to solve <a href="http://www.rubyquiz.com/quiz122.html">the Ruby Quiz Credit Card problem</a>, and got most of the way through.  The fun part about pairing was bouncing ideas off of each other.  Others in attendance were also helpful with their suggestions.  It was especially interesting as we looked back over the code and discussed even more ways to clean it up.</p>
<p>Would I do it again?  You bet.  But I think next time, I would like to work on something that I am more comfortable with, like a Rails related app.  <a href="http://www.mckinneystation.com/2007/04/25/specify-first-test-last-if-ever/">I love writing specs for that.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightning Talks at Dallas.rb</title>
		<link>http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/</link>
		<comments>http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 04:56:30 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Web Developer Toolbar]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/</guid>
		<description><![CDATA[photo by anyoungkevin

We are doing lightning talks at this month&#8217;s dallas.rb meeting.  I decided to give the group some choice of what I would present.
I will do a short one on &#8220;Why Firefox Makes Me Look Good&#8221; or &#8220;Better Web App Development using Firefox and a Buttload of Extensions&#8221;
I can also do one &#8220;JQuery: [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/08/lightning.jpg' alt='Lightning' /><br/><span class="credit">photo by <a href="http://flickr.com/photos/kevinmiller/">anyoungkevin</a><br />
</span></div>
<p>We are doing lightning talks at this month&#8217;s <a href="http://www.dallasrb.org">dallas.rb</a> meeting.  I decided to give the group some choice of what I would present.</p>
<p>I will do a short one on &#8220;Why Firefox Makes Me Look Good&#8221; or &#8220;Better Web App Development using Firefox and a <a href="http://answers.google.com/answers/threadview?id=511287">Buttload</a> of Extensions&#8221;</p>
<p>I can also do one &#8220;JQuery: <a href="http://www.free-lyrics.org/Aaron-Neville/4605-Dont-Know-Much.html">I Don&#8217;t Know Much, But I Know I Love You</a> &#8221;</p>
<p>And since neither of those are Ruby related, I will throw another one out there: &#8220;<a href="http://www.youtube.com/watch?v=dpvyhGnF9_E">Tighter Abs</a>: XML Situps Made Easy With Ruby&#8221; </p>
<p>I&#8217;ll let everyone decide which ones you want to hear more about.</p>
<p><strong>Update</strong></p>
<p>I only did the JQuery presentation and <a href='http://www.mckinneystation.com/wp-content/uploads/2007/09/jquery.pdf' title='JQuery Presentation'>here are the slides</a> (although they were much more interesting in person).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Presenting RSpec at Dallas.rb</title>
		<link>http://www.mckinneystation.com/2007/08/07/presenting-rspec-at-dallasrb/</link>
		<comments>http://www.mckinneystation.com/2007/08/07/presenting-rspec-at-dallasrb/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 16:56:18 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[RSpec]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Web Applications]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/08/07/presenting-rspec-at-dallasrb/</guid>
		<description><![CDATA[photo by alangbrf

I will give a presentation on RSpec and Behaviour Driven Development at the Dallas.rb tonight (August 8).  Stop by and find out more.
]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/08/thalys.jpg' alt='Thalys' /><br/><span class="credit">photo by <a href="http://flickr.com/photos/alandesitter/">alangbrf</a></credit>
</div>
<p>I will give a presentation on <a href="http://rspec.rubyforge.org">RSpec</a> and <a href="http://behavior-driven.org">Behaviour Driven Development</a> at the <a href="http://www.dallasrb.org">Dallas.rb</a> tonight (August 8).  Stop by and find out more.</p>
<div class="clearfix"<br />
<strong>Update</strong></p>
<p><a href='http://www.mckinneystation.com/wp-content/uploads/2007/08/dallasrb-2007-08-08.pdf' title='BDD and RSpec Presentation'>BDD and RSpec Presentation (PDF)</a></p>
<ul>
<li><a href="http://rspec.rubyforge.org">RSpec</a></li>
<li><a href="http://www.zenspider.com/ZSS/Products/ZenTest/">ZenTest (Autotest)</a></li>
<li><a href="http://rubyforge.org/projects/rcov/">rcov</a></li>
<li><a href="http://www.openqa.org/">Selenium/ Watir</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/08/07/presenting-rspec-at-dallasrb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dallas/Fort Worth Tech Scene</title>
		<link>http://www.mckinneystation.com/2007/04/25/dallasfort-worth-tech-scene/</link>
		<comments>http://www.mckinneystation.com/2007/04/25/dallasfort-worth-tech-scene/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 12:21:39 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[DemoCamp]]></category>
		<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[Fort Worth]]></category>
		<category><![CDATA[North Texas]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/04/25/dallasfort-worth-tech-scene/</guid>
		<description><![CDATA[I went to the Dallas DemoCamp2 on Monday night to check out some of the latest offerings from North Texas entrepreneurs.  And there was quite a showing with 6 presentations and at least 25 people in attendance.  



What I love about DemoCamp is the format.   You get 15 minutes for the [...]]]></description>
			<content:encoded><![CDATA[<p>I went to the <a href="http://barcamp.org/DemoCampDallas2">Dallas DemoCamp2</a> on Monday night to check out some of the latest offerings from North Texas entrepreneurs.  And there was quite a showing with 6 presentations and at least 25 people in attendance.  </p>
<div class="shadow right">
<a href='http://www.mckinneystation.com/wp-content/uploads/2007/04/636865_rail-screw.jpg' title='Rail Screw'><img src='http://www.mckinneystation.com/wp-content/uploads/2007/04/636865_rail-screw.jpg' alt='Rail Screw' /></a>
</div>
<p>What I love about DemoCamp is the format.   You get 15 minutes for the entire presentation.   And that is broken down into 10 minutes for for the demonstration and 5 minutes for questions and answers.  With this format you aren&#8217;t intimidated by amount of time to fill.  Almost anyone can talk for 10 minutes about their project that is the &#8220;next big thing.&#8221;</p>
<p><a href="http://flickr.com/search/?q=democampdallas2&#038;m=tags&#038;s=int">Check out the photos</a> and be sure to make it out for <a href="http://barcamp.org/DemoCampDallas3">Dallas DemoCamp3</a>.  Who knows, I might even have <a href="/projects">a project or two</a> to show off.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/04/25/dallasfort-worth-tech-scene/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Content Coming Soon!</title>
		<link>http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/</link>
		<comments>http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 23:50:07 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dallas]]></category>
		<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[Fort Worth]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[North Texas]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/</guid>
		<description><![CDATA[It finally happened.  McKinney Station got a blog!  Right now there is not much here, but should be changing very soon.  I have all sorts of articles in my head wanting, no, demanding to get out.  Thoughts on web applications, Ruby, Rails, Java, xHTML, CSS, JavaScript and more.
Check back soon for [...]]]></description>
			<content:encoded><![CDATA[<p>It finally happened.  McKinney Station got a blog!  Right now there is not much here, but should be changing very soon.  I have all sorts of articles in my head wanting, no, demanding to get out.  Thoughts on web applications, Ruby, Rails, Java, xHTML, CSS, JavaScript and more.</p>
<p>Check back soon for my latest thoughts and ideas.  Welcome to the Station, this train is about the leave.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
