<?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>databasically // Kansas City Small Business IT &#38;&#38; Ruby on Rails Programming &#187; Ruby</title>
	<atom:link href="http://databasically.com/category/blog/programming/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://databasically.com</link>
	<description>Kansas City Small Business IT</description>
	<lastBuildDate>Fri, 03 Feb 2012 05:24:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Configuration for mailjet email delivery with Ruby on Rails</title>
		<link>http://databasically.com/2011/06/07/configuration-for-mailjet-email-delivery-with-ruby-on-rails/</link>
		<comments>http://databasically.com/2011/06/07/configuration-for-mailjet-email-delivery-with-ruby-on-rails/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 10:00:03 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=583</guid>
		<description><![CDATA[Setting up mailjet.com to deliver your mail via Ruby on Rails? Here&#8217;s how, because their Getting Started is nothing but placeholder headers right now. Create an account Go to https://www.mailjet.com and create an account. Note: the word &#8220;Faculatative&#8221; means &#8220;optional&#8221; on the signup form. Add your sending address Add a sending address (Accounts > Sender [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up mailjet.com to deliver your mail via Ruby on Rails?  Here&#8217;s how, because their <a href="https://www.mailjet.com/docs/getting_started">Getting Started</a> is nothing but placeholder headers right now.</p>
<div class="thumbnail"><a href="https://skitch.com/wesg/fdkc8/mailjet-real-time-emailing-mailjet.com"><img src="https://img.skitch.com/20110607-bmbfb3f4pjrcawsya4yab9dcic.preview.jpg" alt="Mailjet : Real-time Emailing - mailjet.com" /></a></div>
</p>
<p><span id="more-583"></span><br />
<h2>Create an account</h2>
<p>Go to <a href="https://www.mailjet.com">https://www.mailjet.com</a> and create an account.</p>
<p>Note: the word &#8220;Faculatative&#8221; means &#8220;optional&#8221; on the signup form.</p>
<h2>Add your sending address</h2>
<ul>
<li>Add a sending address (Accounts > <a href="https://www.mailjet.com/account/sender">Sender Addresses</a>)</li>
<li>Update your Rails ActionMailer configuration
<ul>
<li>Find the settings you need at: <a href="https://www.mailjet.com/account/setup">https://www.mailjet.com/account/setup</a></p>
<pre>
    SMTP server:
    in.mailjet.com

    Username (API Key):
    12345678901234567890

    Password (Secret Key):
    99999999999999999999999999999999

    Port:
    25 or 587 (some providers block port 25)

    Use TLS:
    yes
  </pre>
</li>
<li>Set these settings in config/application.rb (or config/environments/production.rb):
<pre name="code" class="ruby">

    config.action_mailer.raise_delivery_errors = false
    config.action_mailer.perform_deliveries = true

    config.action_mailer.smtp_settings = {
      :address => "in.mailjet.com",
      :enable_starttls_auto => true,
      :port => 587,
      :authentication => 'plain',
      :user_name => "12345678901234567890",
      :password => "99999999999999999999999999999999"
    }
</pre>
</li>
</ul>
</li>
</ul>
<h2>Setup domain authentication (SPF and/or DomainKeys/DKIM)</h2>
<h3>SPF</h3>
<p>
  <img src="https://img.skitch.com/20110607-nmn91j4ukdp8yna3pup3qu1sb8.png" alt="My Account - mailjet.com" /><br />
  Click <b>Domain DNS and SMTP setup</b>.<br />
  Then, under <b>Domain Authentication</b>, click your domain.
</p>
<p>Setting up SPF requires adding a DNS entry. Mailjet will look at your existing one and give you the one to replace it with.<br />
  It&#8217;ll look something like: <br /><code>domainname.com.	IN TXT "v=spf1 include:spf.mailjet.com mx ~all"</code><br />
  In my DNS manager, I created a TXT record, gave it a name of &#8220;domainname.com.&#8221; and set the value to the <br /><code>'v=spf1 include:spf.mailjet.com mx ~all'</code> portion (without the quotes).  The full example they give you is for the DNS zone syntax, which you may or may not have.</p>
<p>  If you need help configuring this, <a href="/contact-us">we would be happy to help you</a>.</p>
<h3>DKIM</h3>
<p>
  This is similar, a TXT record that has a key that identifies your server so mail can be sent.  Same deal.
</p>
<h2>Test</h2>
<p>Deploy your changes and kick off something that sends a mailer.  We have a Notifier model that has a <code>test_email()</code> method that I just called from the console to push a test through.  I just went to the reports and saw it there.</p>
<p>All in all, the service seems a little rough around the edges, mostly due to it being a French company that could use a little work on the translations and some serious love on the support documentations.  Hope this helps you get started with Mailjet configuration!</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2011/06/07/configuration-for-mailjet-email-delivery-with-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby&#8217;s ParseExcel and the Extra Date</title>
		<link>http://databasically.com/2011/04/22/rubys-parseexcel-and-the-extra-date/</link>
		<comments>http://databasically.com/2011/04/22/rubys-parseexcel-and-the-extra-date/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 15:55:15 +0000</pubDate>
		<dc:creator>Samuel Mullen</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=533</guid>
		<description><![CDATA[We have a feature in one of our application which allows the user to upload data from an Excel spreadsheet. One of the columns read in is a date field. Because we&#8217;re dealing with end users, sometimes those dates come in as &#8220;Date&#8221; objects, sometimes they come in as &#8220;String&#8221;s, and sometimes they come in [...]]]></description>
			<content:encoded><![CDATA[<p>We have a feature in one of our application which allows the user to upload data from an Excel spreadsheet. One of the columns read in is a date field. Because we&#8217;re dealing with end users, sometimes those dates come in as &#8220;Date&#8221; objects, sometimes they come in as &#8220;String&#8221;s, and sometimes they come in as a number.</p>
<p>When Excel saves a date as a numeric, it is that value&#8217;s number of days since January 0, 1900 (No, we can&#8217;t say Dec 31, 1899). So a spreadsheet would store &#8220;May 1, 2011&#8243; as 40664 if it was formatted as a number.</p>
<p>That&#8217;s great, peachy even, but if you&#8217;ll notice, 40664 days from Dec 31, 1899 is May 2, 2011, not May 1st. What happened? Compatibility.</p>
<p>When Microsoft introduced Excel way back when, Lotus123 dominated the spreadsheet marking. In order for Microsoft to be able to compete, it had to be compatible with Lotus123. It had to be compatible with all the formulas, all the features, and all the bugs. One of those bugs had to do with an erroneous leap day in 1900. This means that when you read in numbers from a spreadsheet in order to translate them to a date, you have to account for that extra leap day.</p>
<p>The solution? Just subtract one from the numeric. It might look something like this (from the Rails console):</p>
<pre name='code' class="ruby">Date.civil(1899, 12, 31) + 40664.days - 1.day</pre>
<p>We could have did that anyway and just chalked it up to something weird, but now, at least, we know why it&#8217;s weird.</p>
<p><strong>Notes:</strong></p>
<ul>
<li>OpenOffice is also fully compatible with that bug.</li>
<li><a href="http://www.cpearson.com/excel/datetime.htm">Dates and Times in Excel</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2011/04/22/rubys-parseexcel-and-the-extra-date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thebes, profiling spork, backup rubygem</title>
		<link>http://databasically.com/2011/03/14/thebes-profiling-spork-backup-rubygem/</link>
		<comments>http://databasically.com/2011/03/14/thebes-profiling-spork-backup-rubygem/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 15:41:34 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=506</guid>
		<description><![CDATA[Thebes, a new minimal sphinx gem for Rails Link Thebes is a wrapper around Sphinx, the search engine we use on most of our projects. Thebes differs from other solutions by staying as far away from your Rails code as possible. Instead of hiding the Sphinx configuration file behind a domain-specific language, this library assumes [...]]]></description>
			<content:encoded><![CDATA[<h1 id="thebes_a_new_minimal_sphinx_gem_for_rails">Thebes, a new minimal sphinx gem for Rails</h1>
<p><a href="www.getharvest.com/blog/2011/03/thebes-a-new-minimal-sphinx-gem-for-rails/" title="Thebes">Link</a></p>
<blockquote>
<p>Thebes is a wrapper around Sphinx, the search engine we use on most of our projects. Thebes differs from other solutions by staying as far away from your Rails code as possible. Instead of hiding the Sphinx configuration file behind a domain-specific language, this library assumes you will write Sphinx config files by hand. In Thebes, you edit an ERB template of your Sphinx configuration and populate it with variables at generation time. For developers needing the most flexible or fastest solution possible, this is a great way to work with Sphinx.</p>
</blockquote>
<p>We&#8217;ve been doing some interesting things with search and reporting that are going to require faster lookups than directly querying the database. From the article &#8220;the [Thinking Sphinx project] has a lot of complexity and ties to ActiveRecord 2.x code. Consequently, the porting of TS to Rails 3 isn’t turning out to be the smooth road we hoped for.  So, for Rails 3 projects, this looks like a good way to go if you&#8217;re willing to get your hands dirty and build some sphinx files yourself.</p>
<h1 id="profiling_spork_for_faster_start_up_time">Profiling Spork for faster start-up time</h1>
<p><a href="http://opinionated-programmer.com/2011/02/profiling-spork-for-faster-start-up-time/" title="Profiling Spork">Link</a></p>
<p>Spork allows you to preload Rails environment files into a process, then it forks that process and runs your tests against the new process.  In essence, your tests will start faster because they&#8217;re not loading everything.  You can specify files you want to be reloaded each time (for instance, model files).</p>
<p>The code:</p>
<p><script src="https://gist.github.com/869238.js"> </script></p>
<p>This prints out everything being loaded up, so you can move files that don&#8217;t change into the preload block for that extra bit of snappiness.</p>
<h1 id="backup_a_rubygem_for_database_and_file_backups">Backup, a rubygem for database and file backups</h1>
<p><a href="https://github.com/meskyanichi/backup" title="Backup rubygem">Link</a></p>
<blockquote>
<p>Backup is a RubyGem (for UNIX-like operating systems: Linux, Mac OSX) that allows you to configure and perform backups in a simple manner using an elegant Ruby DSL. It supports various databases (MySQL, PostgreSQL, MongoDB and Redis), it supports various storage locations (Amazon S3, Rackspace Cloud Files, Dropbox, any remote server through FTP, SFTP, SCP and RSync), it can archive files and folders, it can cycle backups, it can do incremental backups, it can compress backups, it can encrypt backups (OpenSSL or GPG), it can notify you about successful and/or failed backups (Mail or Twitter). It is very extensible and easy to add new functionality to. It&#8217;s easy to use.</p>
</blockquote>
<p>Check out the <a href="https://github.com/meskyanichi/backup/blob/develop/README.md" title="README">README</a> for all the details, but this allows you to backup your app via command line, pushing to S3 or rsync&#8217;ing to another server.  You can schedule it with the fantastic <a href="https://github.com/javan/whenever" title="Whenever gem">Whenever gem</a> too.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2011/03/14/thebes-profiling-spork-backup-rubygem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the Runaround</title>
		<link>http://databasically.com/2010/10/21/getting-the-runaround/</link>
		<comments>http://databasically.com/2010/10/21/getting-the-runaround/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 19:03:23 +0000</pubDate>
		<dc:creator>Samuel Mullen</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Factories]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=379</guid>
		<description><![CDATA[Yesterday was my third day on the job and to be honest, it wasn&#8217;t a lot of fun. I&#8217;m learning a lot of things right now: a new project, new methodologies, and new technologies. Combine all of that with a seemingly useless RSpec error and you can imagine where my blood pressure was reaching. I [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday was my third day on the job and to be honest, it wasn&#8217;t a lot of fun. I&#8217;m learning a lot of things right now: a new project, new methodologies, and new technologies. Combine all of that with a seemingly useless RSpec error and you can imagine where my blood pressure was reaching.</p>
<p>I had just added a new association to a FactoryGirl factory. I&#8217;ve not used FactoryGirl before, but it&#8217;s easy enough to copy and paste from other factories in the directory. So far, so good. I wasn&#8217;t watching the test output, but it was just one line, what could go wrong?</p>
<p>Several updates and commits later, I thought I&#8217;d better make sure we were still &#8220;Green&#8221;. Eh, not so much. Here&#8217;s the output I was seeing repeated over and over again.</p>
<pre name="code" class="ruby">
Failure/Error: Unable to find matching line from backtrace
stack level too deep
# /home/user/.rvm/gems/ruby-1.9.2-p0@xxx/gems/activerecord-3.0.0/lib/active_record/locking/optimistic.rb:62
</pre>
<p>I&#8217;ll not bore you with the details of my fruitless search to track this down. Suffice it to say, Wes &#8211; that would be my new boss &#8211; helped me back out my changes and track down the error.</p>
<p>It turns out that my &#8220;simple&#8221; addition to the &#8220;facility&#8221; factory wasn&#8217;t so simple. It actually resulted in a never ending loop of weeping and gnashing of teeth.</p>
<p>There are three models which were being dealt with: Facility, User, and Department. Departments have many users; facilities have many departments, and a facility can have a user who is defined as a contact. The schema looks like this:</p>
<p><a href="http://databasically.com/wp-content/uploads/2010/10/roundabout.png"><img class="alignnone size-full wp-image-383" title="runaround" src="http://databasically.com/wp-content/uploads/2010/10/roundabout.png" alt="rounaround schema" width="485" height="326" /></a></p>
<p>In my &#8220;facility&#8221; factory, I was making an association to the &#8220;users&#8221; table. Unbeknownst to me, the &#8220;user&#8221; factory was making an association to &#8220;department&#8221;, which was in turn making an association to &#8220;facility&#8221;, which was making an association to &#8220;user&#8221;, ad nauseum. The result: a &#8220;stack level too deep&#8221; error.</p>
<p>The solution was to just create the user association with the &#8220;department&#8221; set to nil.</p>
<p>Before:<br />
<code><br />
t.association :contact, :factory =&gt; :user<br />
</code></p>
<p>After:<br />
<code><br />
t.association :contact, :factory =&gt; :user, :department =&gt; nil<br />
</code></p>
<p>Hopefully this will make someone else&#8217;s first week on the job go a little smoother and keep them from getting the runaround.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/10/21/getting-the-runaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting erb to haml in rails3</title>
		<link>http://databasically.com/2010/09/19/converting-erb-to-haml-in-rails3/</link>
		<comments>http://databasically.com/2010/09/19/converting-erb-to-haml-in-rails3/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 16:17:59 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=370</guid>
		<description><![CDATA[I&#8217;m taking over a project that&#8217;s just started and prefer to use haml. In setting up my environment to work with rails3 and haml, here&#8217;s the best way I found to convert the fledgling app to haml. Install gems Run this This will convert all .erb files in app/views into .haml files right next to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m taking over a project that&#8217;s just started and prefer to use haml. In setting up my environment to work with rails3 and haml, here&#8217;s the best way I found to convert the fledgling app to haml.</p>
<h2>Install gems</h2>
<p><script src="http://gist.github.com/586872.js?file=Gemfile"></script></p>
<h2>Run this</h2>
<p><script src="http://gist.github.com/586872.js?file=convert-to-haml.rb"></script></p>
<p>This will convert all .erb files in app/views into .haml files right next to them, leaving the originals in case you need to refer to them to fix somethig the converter missed.</p>
<p>This isn&#8217;t rails 3 specific, except for the Gemfile part, really.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/09/19/converting-erb-to-haml-in-rails3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rspec2, rails3, and spork with drb to get faster tests</title>
		<link>http://databasically.com/2010/09/17/rspec2-rails3-and-spork-with-drb-to-get-faster-tests/</link>
		<comments>http://databasically.com/2010/09/17/rspec2-rails3-and-spork-with-drb-to-get-faster-tests/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 01:52:12 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=367</guid>
		<description><![CDATA[I started using rspec2 and rails3 on a project and wanted faster tests. Gemfile: gem 'spork' bundle install spork --bootstrap Bootstrapping will edit your spec_helper.rb file with some instructions. I had a vanilla spec_helper file, so everything got moved into the Spork.prefork block. Also, I&#8217;m using autotest, so I added --drb to my .rspec file. [...]]]></description>
			<content:encoded><![CDATA[<p>I started using rspec2 and rails3 on a project and wanted faster tests.</p>
<pre class="code" name="ruby">Gemfile:
gem 'spork'

bundle install

spork --bootstrap
</pre>
<p>Bootstrapping will edit your spec_helper.rb file with some instructions.  I had a vanilla spec_helper file, so everything got moved into the <code>Spork.prefork</code> block.</p>
<p>Also, I&#8217;m using autotest, so I added <code>--drb</code> to my .rspec file.</p>
<p>Finally:</p>
<pre class="code" name="ruby">
spork &#038;
autotest
</pre>
<p>I only had 15 tests at the time that I did this, but they went from running in 6 seconds to running in 1.5 seconds. Significant.</p>
<p><strong>UPDATE:</strong></p>
<p>From the comments, here&#8217;s a fix for running rake on Windows (&#8220;can&#8217;t find executable rake&#8221;):<br />
<script src="http://gist.github.com/519744.js"> </script></p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/09/17/rspec2-rails3-and-spork-with-drb-to-get-faster-tests/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Factory Girl with Rails 3</title>
		<link>http://databasically.com/2010/09/07/using-factory-girl-with-rails-3/</link>
		<comments>http://databasically.com/2010/09/07/using-factory-girl-with-rails-3/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 17:23:42 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=355</guid>
		<description><![CDATA[Setting up a new project, I couldn&#8217;t get FactoryGirl working. From the README: If you want to use factory_girl with Rails 3, see http://github.com/thoughtbot/factory_girl_rails I added this to my Gemfile: gem 'factory_girl_rails' A bundle install to install and done. Note: I&#8217;m using rspec2 and putting my factories in spec/factories/*_factory.rb and I&#8217;ve seen references to spec/support/factories/*_factory.rb [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up a new project, I couldn&#8217;t get FactoryGirl working.  From the README:</p>
<blockquote><p>If you want to use factory_girl with Rails 3, see <a href="http://github.com/thoughtbot/factory_girl_rails">http://github.com/thoughtbot/factory_girl_rails</a></p></blockquote>
<p>I added this to my Gemfile:</p>
<pre name="code" class="ruby">gem 'factory_girl_rails'</pre>
<p>A <code>bundle install</code> to install and done.</p>
<p>Note: I&#8217;m using rspec2 and putting my factories in <code>spec/factories/*_factory.rb</code> and I&#8217;ve seen references to <code>spec/support/factories/*_factory.rb</code> as well.  I&#8217;m not sure if either is the blessed location.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/09/07/using-factory-girl-with-rails-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kansas City Ruby Users: Luke Pillow on Jeweler</title>
		<link>http://databasically.com/2010/03/13/kansas-city-ruby-users-luke-pillow-on-jeweler/</link>
		<comments>http://databasically.com/2010/03/13/kansas-city-ruby-users-luke-pillow-on-jeweler/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 18:56:29 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Kansas City Ruby User Group]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=308</guid>
		<description><![CDATA[Luke Pillow present to the Kansas City Ruby Users Group on Jeweler and Gemcutter rubygems.org. Also, Luke is helping to organize the Ruby Midwest conference, so you should check that out. Kansas City Ruby Users Group &#124; March 2010 &#124; Luke Pillow &#124; Jeweler for Rubygems &#124; kcrug.org from Wes Garrison on Vimeo.]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/lpillow">Luke Pillow</a> present to the Kansas City Ruby Users Group on Jeweler and <span style="text-decoration: line-through;">Gemcutter</span> rubygems.org.</p>
<p>Also, Luke is helping to organize the <a href="http://rubymidwest.com/">Ruby Midwest</a> conference, so you should check that out.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="375" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=10138426&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="500" height="375" src="http://vimeo.com/moogaloop.swf?clip_id=10138426&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</p>
<p><a href="http://vimeo.com/10138426">Kansas City Ruby Users Group | March 2010 | Luke Pillow | Jeweler for Rubygems | kcrug.org</a> from <a href="http://vimeo.com/wesgarrison">Wes Garrison</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/13/kansas-city-ruby-users-luke-pillow-on-jeweler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kansas City Ruby Users: Ryan Smith on Heroku</title>
		<link>http://databasically.com/2010/03/12/kansas-city-ruby-user-group-ryan-smith-on-heroku/</link>
		<comments>http://databasically.com/2010/03/12/kansas-city-ruby-user-group-ryan-smith-on-heroku/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:11:04 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Kansas City Ruby User Group]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=266</guid>
		<description><![CDATA[Ryan Smith presents to the Kansas City Ruby Users Group on Heroku: why it&#8217;s wonderful for deploying Ruby on Rails applications, how to set up a new application and deploy it to Heroku in minutes, and how to use Heroku add-ons to support search. Kansas City Ruby Users Group &#124; March 2010 &#124; Ryan Smith [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/ryandotsmith">Ryan Smith</a> presents to the Kansas City Ruby Users Group on <a href="http://heroku.com/">Heroku</a>: why it&#8217;s wonderful for deploying Ruby on Rails applications, how to set up a new application and deploy it to Heroku in minutes, and how to use Heroku add-ons to support search.</p>
<div style="text-align: center;padding-top:35px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="375" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=10104580&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="500" height="375" src="http://vimeo.com/moogaloop.swf?clip_id=10104580&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
</div>
<p><a href="http://vimeo.com/10104580">Kansas City Ruby Users Group | March 2010 | Ryan Smith | Heroku | kcrug.org</a> from <a href="http://vimeo.com/wesgarrison">Wes Garrison</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/12/kansas-city-ruby-user-group-ryan-smith-on-heroku/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing sqlite headers on ubuntu (sqlite3.h not found)</title>
		<link>http://databasically.com/2010/03/05/installing-sqlite-headers-on-ubuntu-sqlite3-h-not-found/</link>
		<comments>http://databasically.com/2010/03/05/installing-sqlite-headers-on-ubuntu-sqlite3-h-not-found/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 22:21:47 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://databasically.com/?p=251</guid>
		<description><![CDATA[I was setting up Integrity for the first time and ran into this on my server when bundling gems: ~$ bundle install ... Installing do_sqlite3 (0.10.0) from rubygems repository at http://gemcutter.org/ with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:482:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h... no *** extconf.rb failed *** ... [...]]]></description>
			<content:encoded><![CDATA[<p>I was setting up <a href="http://integrityapp.com/">Integrity</a> for the first time and ran into this on my server when bundling gems:</p>
<pre name="code" class="ruby">~$ bundle install
...
Installing do_sqlite3 (0.10.0) from rubygems repository at
  http://gemcutter.org/ with native extensions
  /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:482:in
  `build_extensions':
ERROR: Failed to build gem native extension.
  (Gem::Installer::ExtensionBuildError)

/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... no
*** extconf.rb failed ***
...
</pre>
<p>The key is the line: <code>checking for sqlite3.h... no</code><br />
The <code>do_sqlite3</code> gem gets compiled natively, but the development headers weren&#8217;t installed on the system and so the compilation won&#8217;t work.</p>
<p>Install them:</p>
<pre name="code" class="ruby">~$ sudo apt-get install sqlite3
~$ sudo apt-get install libsqlite3-dev</pre>
<p>Then, re-bundle:</p>
<pre name="code" class="ruby">~$ bundle install</pre>
]]></content:encoded>
			<wfw:commentRss>http://databasically.com/2010/03/05/installing-sqlite-headers-on-ubuntu-sqlite3-h-not-found/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

