<?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>7deeds &#187; gems</title>
	<atom:link href="http://blog.7deeds.com/tag/gems/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.7deeds.com</link>
	<description>Petros Amiridis - A humble programmer's seven noteworthy actions for the community</description>
	<lastBuildDate>Mon, 31 May 2010 12:09:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL gem doesn&#8217;t work after upgrading Ubuntu</title>
		<link>http://blog.7deeds.com/2010/05/06/mysql-gem-doesnt-work-after-upgrading-ubuntu/</link>
		<comments>http://blog.7deeds.com/2010/05/06/mysql-gem-doesnt-work-after-upgrading-ubuntu/#comments</comments>
		<pubDate>Thu, 06 May 2010 20:54:31 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby-on-rails]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=423</guid>
		<description><![CDATA[I upgraded Ubuntu 9.10 to 10.04. Everything was cool. I tried to work on a Rails project I am involved by issuing the command rake db:migrate to update the database.
I was getting the following error:

Error: uninitialized constant MysqlCompat::MysqlRes

Then I uninstalled the mysql gem and tried to install it again only to get the following error:

Building [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded Ubuntu 9.10 to 10.04. Everything was cool. I tried to work on a Rails project I am involved by issuing the command rake db:migrate to update the database.</p>
<p>I was getting the following error:</p>
<pre class="brush: bash;">
Error: uninitialized constant MysqlCompat::MysqlRes
</pre>
<p>Then I uninstalled the mysql gem and tried to install it again only to get the following error:</p>
<pre class="brush: bash;">
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
</pre>
<p>Then I issued the following command:</p>
<pre class="brush: bash;">
sudo apt-get install libmysqlclient-dev
</pre>
<p>and then installed mysql gem and it installed with no problems. Finally, rake db:migrate worked again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2010/05/06/mysql-gem-doesnt-work-after-upgrading-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PAbarcode gem</title>
		<link>http://blog.7deeds.com/2009/12/30/pabarcode-gem/</link>
		<comments>http://blog.7deeds.com/2009/12/30/pabarcode-gem/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 09:07:51 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[2-deed]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=395</guid>
		<description><![CDATA[In a previous post I mentioned that I started maintaining a set of helper Ruby classes for working with barcodes. I have changed the structure of the project to make it a gem and I have published it on GemCutter.

First you need to install the gem:

sudo gem install pabarcode

then the example in the previous post [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://blog.7deeds.com/2009/12/23/ruby-barcodes/">previous post</a> I mentioned that I started maintaining a set of helper Ruby classes for working with barcodes. I have changed the structure of the <a href="http://github.com/amiridis/pabarcode">project</a> to make it a gem and I have <a href="http://gemcutter.org/gems/pabarcode">published it on GemCutter</a>.</p>
<p><span id="more-395"></span></p>
<p>First you need to install the gem:</p>
<pre class="brush: bash;">
sudo gem install pabarcode
</pre>
<p>then the example in the previous post needs to change so as it uses the gem instead of the plain Ruby file:</p>
<pre class="brush: ruby;">
require &quot;rubygems&quot;
require &quot;pabarcode&quot;

include PAbarcode

file = File.open(&quot;apog.txt&quot;)

file.each do |line|
  bc = line.slice(0..11)
  bc13 = Barcode.new(bc).get_ean_13
  puts bc13 + line.slice(12..line.length)
end

file.close
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2009/12/30/pabarcode-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
