<?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; Ruby</title>
	<atom:link href="http://www.mckinneystation.com/categories/ruby/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.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>LESS, CSS Frameworks, and Rails</title>
		<link>http://www.mckinneystation.com/2009/09/02/less-css-frameworks-and-rails/</link>
		<comments>http://www.mckinneystation.com/2009/09/02/less-css-frameworks-and-rails/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 14:06:21 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/?p=118</guid>
		<description><![CDATA[I have been a fan of the CSS frameworks for a while now.  I started with YUI and now use Blueprint or 960.gs on a regular basis.  What I never liked about the frameworks was the need to add all of the extra classes to the HTML markup.  It seemed messy, wasn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I have been a fan of the CSS frameworks for a while now.  I started with <a href="http://developer.yahoo.com/yui/grids/">YUI</a> and now use <a href="http://www.blueprintcss.org/">Blueprint</a> or <a href="http://960.gs/">960.gs</a> on a regular basis.  What I never liked about the frameworks was the need to add all of the extra classes to the HTML markup.  It seemed messy, wasn&#8217;t <a href="http://en.wikipedia.org/wiki/Semantic_Web">semantic</a> (not that I am a fanatic about that), and made it harder to reuse partials in my Rails projects.</p>
<h2>CSS Improved</h2>
<p>For a while now there has been <a href="http://sass-lang.com/">SASS</a>, which allows you to <a href="http://lab.hamptoncatlin.com/play/with/sass">write CSS-like files that get translated into CSS</a>.  The advantage is that you can now use things like nested rules, variables, mixins, and more.  The markup is similar to CSS so the learning curve is minimal.  On top of that, there is <a href="http://compass-style.org/">Compass</a>, which adds some of the popular CSS frameworks as mixins.  Now it is easy to mixin the styles of the frameworks to your semantic classes in the CSS without adding all of the extra framework specific classes to your HTML markup.</p>
<p>What I did not like about SASS and Compass was the dependency on <a href="http://haml-lang.com/">HAML</a>.  I have tried to make the switch form ERB to HAML and I know that you can use SASS and Compass without using HAML in your templates.  But it always seemed like an extra unneeded dependency in my apps.</p>
<h2>Less CSS</h2>
<p>I recently came across <a href="http://lesscss.org/">LESS</a>, a Ruby gem similar to SASS.  The idea is that you can write <code>.less</code> files that are CSS-like and they will be translated into CSS.  The advantage, as I see it, is that you can use existing <code>.css</code> files as <code>.less</code> files since the syntax is so similar. In addition to the standard CSS syntax, you also get nested rules, variables, and mixins, just like SASS, but without the extra dependency.  You can also import other CSS files as-is, like the CSS frameworks, and mix those styles into your semantic styles.  This eliminates the need for Compass to provide the SASS-ified version of the framework.</p>
<p>The gem itself is not specific to Rails and can be used on any project.  You just need to run the LESS compiler to translate the <code>.less</code> file into a <code>.css</code> file.  There is a <a href="http://github.com/augustl/less-for-rails">Rails plugin</a> that make it easy to start using LESS in your Rails projects.</p>
<h2>LESS In Action</h2>
<p>So what does it all look like?  I will leave you with an example of how it all fits together.</p>
<pre><code>@import 'blueprint/screen.css';

#content {
  .container;
  .clearfix;
  #main {
    .column;
    .span-18;
  }
  #sidebar {
    .column;
    .span-6;
    .last;
  }
}

#footer {
  .container;
  text-align: center;
  font-size: .75em;
  color: #666;
}</code></pre>
<p>You can see more in my <a href="http://github.com/gdagley/basejumper">Basejumper, a starter Rails application</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2009/09/02/less-css-frameworks-and-rails/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Google Charts with Rails</title>
		<link>http://www.mckinneystation.com/2008/08/22/using-google-charts-with-rails/</link>
		<comments>http://www.mckinneystation.com/2008/08/22/using-google-charts-with-rails/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 18:10:11 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[googlecharts]]></category>
		<category><![CDATA[microapps]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/?p=85</guid>
		<description><![CDATA[With one of my recent microapps, UnscientificPolls.com, I wanted to show the polling data in more interesting ways than just the vote counts.  Charting was the logical conclusion, but how do it was a more difficult decision.
Some of the criteria I had for choosing the charting solution included: ease of use (it is  [...]]]></description>
			<content:encoded><![CDATA[<p>With one of my recent <a href="/2008/06/03/microapps-encourage-hacking/">microapps</a>, <a href="http://www.unscientificpolls.com">UnscientificPolls.com</a>, I wanted to show the polling data in more interesting ways than just the vote counts.  Charting was the logical conclusion, but how do it was a more difficult decision.</p>
<p>Some of the criteria I had for choosing the charting solution included: ease of use (it is  microapp, of course), compatible with shared hosting environment, fast, easy to customize.</p>
<p>Some of the libraries I looked at included: <a href="http://code.google.com/p/flot/">flot with jquery</a>, <a href="http://nubyonrails.com/pages/gruff">gruff</a>, <a href="http://scruffy.rubyforge.org/">scruffy</a>, <a href="http://nubyonrails.com/pages/sparklines">sparklines</a>, and <a href="http://googlecharts.rubyforge.org/">googlecharts</a>.  I settled on the googlecharts library because I didn&#8217;t need the interactive features of <code>flot</code> and I didn&#8217;t want to worry about RMagick needed for <code>gruff</code>, <code>scruffy</code>, or <code>sparklines</code>. </p>
<h2>Google Charts API</h2>
<p>The <a href="http://code.google.com/apis/chart">Google Charts API</a> is an interesting tool that lets you dynamically generate charts using a &#8220;simple&#8221; URL scheme.   The usage policy is very generous too: &#8220;There&#8217;s no limit to the number of calls per day you can make to the Google Chart API.&#8221;</p>
<p>This would allow me to offload the image generation to Google (who supposedly has quite a bit of computing power) and let my application, in a shared hosting environment, focus on collecting votes.</p>
<h2>Enter <em>googlecharts</em></h2>
<p>The challenge with the Google Charts API &#8220;simple&#8221; url scheme is that it would very tedious to have generate it by concatenating the strings together.  Fortunately, Matt Aimonetti built the <code>googlecharts</code> gem for Ruby.  You can get it from <a href="http://www.rubyforge.org">Rubyforge</a> (<code>gem install googlecharts</code>) or <a href="http://www.github.com">Github</a> (<code>gem install mattetti-googlecharts</code>).  </p>
<h2>Installing <em>googlecharts</em> in my Rails App</h2>
<p>With <code>googlecharts</code> installed on my machine I could start using it, by adding it to my <code>config/environment.rb</code> file.</p>
<pre><code>Rails::Initializer.run do |config|
  config.gem "googlecharts", :lib =&gt; "gchart"
end</code></pre>
<p>Since the file we need to include is named &#8220;gchart&#8221;, not &#8220;googlecharts&#8221;, we have to specify the <code>:lib =&gt; "gchart"</code> option.</p>
<p>I also didn&#8217;t want to worry about installing in on the deployment machine, so I unpacked it to the <code>vendor/gems</code> folder using <code>rake gems:unpack</code>.</p>
<h2>Now to the Charts</h2>
<p>Once all that was in place the challenge was getting the data into a format that would be easy to pass to the library.  It turns out, that wasn&#8217;t too challenging either.</p>
<h3>The Helper</h3>
<p>In my view helper module I created a method that would collect the data needed for the chart.</p>
<pre><code>  def pie_chart poll
    @pie_chart ||= {
      :data =&gt; poll.choices.collect(&amp;:votes_count),
      :colors =&gt; poll.choices.collect {|c| c.winner? ? "264409" : "8A1F11" }
    }
  end</code></pre>
<p>This just loops over the choices and collects the needed data and puts it in an easy to use Hash.</p>
<h3>The View</h3>
<pre><code>    &lt;%= Gchart.pie :size =&gt; '240x160',
                   :title =&gt; 'Vote split',
                   :data =&gt; pie_chart(@poll)[:data],
                   :bar_colors =&gt; pie_chart(@poll)[:colors],
                   :format =&gt; 'image_tag' %&gt;</code></pre>
<p>Using googlecharts Gchart made it easy to build the &#8220;simple&#8221; url needed for a pie chart using the Google Charts API (also supports line, scatter, venn, sparklines, and meter charts)  I didn&#8217;t even have to add the <img /> tag because I could pass the <code>:format =&gt; 'image_tag'</code> and one was generated for me.</p>
<h2>Conclusion</h2>
<p>I was extremely happy with how quick and easy it was to get some simple charts into my application (check them out at <a href="http://www.unscientificpolls.com">UnscientificPolls.com</a>).  The response time from Google seems to be as fast as if the images were stored locally. It also saved me the headache of installing with RMagick.  This is definitely a good fit for simple graphs and charts in a Rails application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/08/22/using-google-charts-with-rails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Things I Really Like</title>
		<link>http://www.mckinneystation.com/2008/08/15/things-i-really-like/</link>
		<comments>http://www.mckinneystation.com/2008/08/15/things-i-really-like/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 21:12:05 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WorkingWithRails]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/?p=83</guid>
		<description><![CDATA[After a few years of a very boring layout for the McKinney Station website, I have added a few items in the sidebar to show that I actually do things around here.  It&#8217;s not much, but it is a start.  You can follow me on Twitter, check out my projects on Github and [...]]]></description>
			<content:encoded><![CDATA[<p>After a few years of a very boring layout for the McKinney Station website, I have added a few items in the sidebar to show that I actually do things around here.  It&#8217;s not much, but it is a start.  You can follow me on <a href="http://twitter.com/gdagley">Twitter</a>, check out my projects on <a href="http://github.com/gdagley">Github</a> and <a href="http://rubyforge.org/users/gdagley/">RubyForge</a>, and see what I am reading on <a href="http://delicious.com/gdagley">del.icio.us</a>. </p>
<p>Hopefully this gives a little insight into what I do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/08/15/things-i-really-like/feed/</wfw:commentRss>
		<slash:comments>0</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>I Don&#8217;t Know Shoes (and now I have proof)</title>
		<link>http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/</link>
		<comments>http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/#comments</comments>
		<pubDate>Sat, 12 Jan 2008 16:58:08 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Shoes]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/</guid>
		<description><![CDATA[
Last night I recieved my very own copy of &#8220;Nobody Knows Shoes&#8221; by why the lucky stiff.  Shoes, in case you are wondering, is a small framework for writing GUI applications that can run on multiple OS&#8217;s (Windows, Mac, Linux).  &#8220;Nobody Knows Shoes&#8221; is the API documentation for the framework presented in the [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/01/shoes.png' alt='Nobody Knows Shoes' /></div>
<p>Last night I recieved my very own copy of <a href="http://www.lulu.com/content/1365064">&#8220;Nobody Knows Shoes&#8221;</a> by <a href="http://whytheluckystiff.net/">why the lucky stiff</a>.  <a href="http://code.whytheluckystiff.net/shoes/">Shoes</a>, in case you are wondering, is a small framework for writing GUI applications that can run on multiple OS&#8217;s (Windows, Mac, Linux).  <a href="http://www.lulu.com/content/1365064">&#8220;Nobody Knows Shoes&#8221;</a> is the API documentation for the framework presented in the form of&#8230; well&#8230; comic book/ short stories/ examples&#8230; and that doesn&#8217;t even do it justice.  I played around with Shoes and decided to get the book to see what it was all about.  It is well worth the cost (less than $15, including shipping), if not for the pure entertainment value.  It is also a good reference, as well.</p>
<p>If you haven&#8217;t experienced why or <a href="http://code.whytheluckystiff.net">any of his code</a>, you should definitely take a look.  You will be entertained and <a href="http://poignantguide.net/ruby/">enlightened</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FixtureReplacement in script/console</title>
		<link>http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/</link>
		<comments>http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 15:54:07 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[RSpec]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/</guid>
		<description><![CDATA[photo by laffy4k
So I came across Dan Manges Fixture Factory as a way to relieve myself of the pain of fixtures for testing.  I don&#8217;t mind fixtures that much, but when I have to start setting up so many different combinations, it gets a little challenging.   In reading through the comments I [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/01/metra.jpg' alt='metra' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/laffy4k/">laffy4k</a></span></div>
<p>So I came across <a href="http://www.dcmanges.com">Dan Manges</a> <a href="http://www.dcmanges.com/blog/38">Fixture Factory</a> as a way to relieve myself of the pain of fixtures for testing.  I don&#8217;t mind fixtures that much, but when I have to start setting up so many different combinations, it gets a little challenging.   In reading through the comments I found that  <a href="http://railsnewbie.com/">Scott Taylor</a> had <a href="http://replacefixtures.rubyforge.org/">implemented it as a plugin</a>.  Now I get all that goodness for my <a href="http://rspec.rubyforge.org">specs</a>.</p>
<p class="clearfix" >
The other day I wanted to play with some things using <code>script/console</code>, but was feeling too lazy to set up all of the data I was going to need to do what I wanted.  Sure enough after looking at the documentation for fixture_replacement, I can use it there too:
</p>
<pre>
<code>  % script/console
  &gt;&gt; include FixtureReplacement
  &gt;&gt; cause = create_cause
  &gt;&gt; user = create_user
  &gt;&gt; cause.users &lt;&lt; user </code>
</pre>
<p>It is really useful for easily setting up your test data in the spec (or test) that you are writing. Instead of having to go off to the fixture files and add new fixtures (and try to remember to set up all of the dependent fixtures that are needed), you can use new_xxx or create_xxx to get an object to test in a valid state with all its dependent data.  </p>
<p>Take a look at the <a href="http://replacefixtures.rubyforge.org/">FixtureReplacement plugin</a> now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/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>Rails Development Environment in Ubuntu</title>
		<link>http://www.mckinneystation.com/2007/05/08/rails-development-environment-in-ubuntu/</link>
		<comments>http://www.mckinneystation.com/2007/05/08/rails-development-environment-in-ubuntu/#comments</comments>
		<pubDate>Tue, 08 May 2007 14:59:20 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Averatec]]></category>
		<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[RSpec]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[fastercsv]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[starfish]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/05/08/rails-development-environment-in-ubuntu/</guid>
		<description><![CDATA[photo by zruvalcaba
After my last post, I thought I would share what I use for developing on Ubuntu.
Editor
I have always been a hands-on kinda guy, so I don&#8217;t use any of the fancy IDEs.  Right now, I am using SciTE for two reasons.  It feels lightweight and it is available for Linux and [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/05/goat_canyon_trestle.jpg' alt='Goat Canyon Trestle' /><br/><span class="credit">photo by <a href="http://www.sxc.hu/profile/zruvalcaba">zruvalcaba</a></span></div>
<p>After <a href="http://www.mckinneystation.com/2007/05/08/and-that-is-why-you-have-backups/">my last post</a>, I thought I would share what I use for developing on <a href="http://www.ubuntu.com">Ubuntu</a>.</p>
<h2>Editor</h2>
<p>I have always been a hands-on kinda guy, so I don&#8217;t use any of the <a href="http://www.aptana.com/">fancy</a> <a href="http://www.jetbrains.com/idea/index.html">IDEs</a>.  Right now, I am using <a href="http://www.scintilla.org/SciTE.html">SciTE</a> for two reasons.  It feels lightweight and it is available for Linux and Windows.  Since <a href="http://www.averatec.com/products/portable/thinlight/3200Series.asp">my laptop</a> does not have a lot of memory, a lightweight editor is a must.  I tried <a href="http://www.eclipse.org/">Eclipse</a>, but it chewed up all my memory and slowed things to a crawl.  So SciTE with <a href="http://caladbolg.net/scite.php">some additional plugins</a> (and <a href="http://mondaybynoon.com/2007/03/12/using-scite-with-textmate-style-snippets/">information on getting them going</a>) powers <a href="http://www.mckinneystation.com/projects">the development at McKinney Station</a>.</p>
<h2>Ruby and Rails</h2>
<p>I am using the latest <a href="http://www.ruby-lang.org/en/">Ruby</a> and <a href="http://www.rubyonrails.com">Rails</a> for all new development.  For testing I am using <a href="http://rspec.rubyforge.org">RSpec</a>, which seems <a href="http://www.mckinneystation.com/2007/04/25/specify-first-test-last-if-ever/">a lot more intuitive to me</a>.  Other <a href="http://rubygems.org/">gems</a> I  have installed include:</p>
<ul>
<li><a href="http://fastercsv.rubyforge.org/">FasterCSV</a> &#8211; parsing CSV files</li>
<li><a href="http://tech.rufy.com/2006/08/mapreduce-for-ruby-ridiculously-easy.html">starfish</a> &#8211; simple Ruby Map/Reduce</li>
<li><a href="http://mongrel.rubyforge.org/">mongrel</a> &#8211; lightweight Ruby web server</li>
<li><a href="http://code.whytheluckystiff.net/hpricot/">hpricot</a> &#8211; Ruby HTML parser</li>
</ul>
<h2>Database</h2>
<p>I love starting all of my development projects with SQLite.  It is <a href="http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite">so easy to get up and running</a>.   As the project matures, I am able to quickly switch development over to a MySQL database with a change in the application&#8217;s database configuration and a quick <code>rake db:migrate</code>.</p>
<h2>Version Control</h2>
<p>All source code versioning is done with Subversion.  With <a href="http://www.railsonwave.com/railsonwave/2006/12/19/smart-subversion-script-for-rails-projects">this quick little script</a>, I can get a Rails project committed and started in minutes.</p>
<h2>Conclusion</h2>
<p>I am always looking for ways to speed up my development process, but so far this is working for me.  And it is very enjoyable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/05/08/rails-development-environment-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
