<?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>Whomwah.com &#187; gems</title>
	<atom:link href="http://whomwah.com/tag/gems/feed/" rel="self" type="application/rss+xml" />
	<link>http://whomwah.com</link>
	<description>The website of Duncan Robertson, currently computing for the BBC</description>
	<lastBuildDate>Fri, 06 Jan 2012 12:55:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing MySQL gem on CentOS</title>
		<link>http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/</link>
		<comments>http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 09:20:24 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=649</guid>
		<description><![CDATA[Old news, but you&#8217;d be surprised how many times the same: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. ... error brings everything to a halt. Well on Centos the way to install the MySQL gem is: $ sudo yum install mysql mysql-devel gcc ... &#160; # 32 [...]]]></description>
			<content:encoded><![CDATA[<p>Old news, but you&#8217;d be surprised how many times the same:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">Could <span style="color:#9966CC; font-weight:bold;">not</span> create Makefile due to some reason, probably lack of
necessary libraries <span style="color:#9966CC; font-weight:bold;">and</span><span style="color:#006600; font-weight:bold;">/</span><span style="color:#9966CC; font-weight:bold;">or</span> headers.
...</pre></div></div>

<p>error brings everything to a halt. Well on <a href="http://www.centos.org">Centos</a> the way to install the <a href="http://www.tmtm.org/en/mysql/ruby/">MySQL gem</a> is:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">$ sudo yum install mysql mysql<span style="color:#006600; font-weight:bold;">-</span>devel gcc
...
&nbsp;
<span style="color:#008000; font-style:italic;"># 32 bit machine</span>
$ sudo gem install mysql <span style="color:#006600; font-weight:bold;">--</span> \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span><span style="color:#9966CC; font-weight:bold;">include</span>=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mysql \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span>lib=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>mysql
&nbsp;
<span style="color:#008000; font-style:italic;"># or 64 bit like they are on SliceHost</span>
$ sudo gem install mysql <span style="color:#006600; font-weight:bold;">--</span> \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span><span style="color:#9966CC; font-weight:bold;">include</span>=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mysql \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span>lib=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib64<span style="color:#006600; font-weight:bold;">/</span>mysq
&nbsp;
Building native extensions.  <span style="color:#9900CC;">This</span> could take a <span style="color:#9966CC; font-weight:bold;">while</span>...
<span style="color:#9900CC;">Successfully</span> installed mysql<span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">2.7</span>
<span style="color:#006666;">1</span> gem installed
...</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>rQRCode, a Ruby library for encoding QR Codes</title>
		<link>http://whomwah.com/2008/02/24/rqrcode-a-ruby-library-for-encoding-qr-codes/</link>
		<comments>http://whomwah.com/2008/02/24/rqrcode-a-ruby-library-for-encoding-qr-codes/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 14:37:08 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BBC]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[qrcodes]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=314</guid>
		<description><![CDATA[[Update]: I have also posted a bit more about the upcoming QR Code work for BBC /programmes. We implemented QR Codes on BBC programmes (A project I&#8217;m one of the Software Engineer&#8217;s on, at the BBC) a few weeks back. They&#8217;ve been talked about since so I won&#8217;t repeat things, only to say it was [...]]]></description>
			<content:encoded><![CDATA[<p class="update">[Update]: I have also <a href="http://whomwah.com/2008/03/12/more-fun-with-qr-codes-and-the-bbc-logo/">posted a bit more about the upcoming QR Code work for BBC /programmes</a>.</p>
<p>We implemented <a href="http://en.wikipedia.org/wiki/QR_Code">QR Codes</a> on <a href="http://bbc.co.uk/programmes">BBC programmes</a> (A project I&#8217;m <a href="http://bbc.co.uk/programmes/developers/are">one of the Software Engineer&#8217;s</a> on, at the <a href="http://bbc.co.uk">BBC</a>) a few weeks back. <a href="http://derivadow.com/2008/01/21/qr-codes-for-bbc-programmes-and-some-other-stuff">They&#8217;ve been talked about since</a> so I won&#8217;t repeat things, only to say it was a simple implementation using a <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> library by  <a href="http://www.d-project.com/qrcode">Kazuhiko Arase</a> and took all of 5 minutes of my lunch hour to add. It started as an email by colleague <a href="http://www.bbc.co.uk/blogs/bbcinternet/michael_smethurst">Michael Smethhurst</a> asking if we could/should implement them, and was also the first I had really heard of them.</p>
<p>Since then, I have done lots more research and think there is great mileage there for promotional material and advertising. At the moment the codes are built on the client side, but this will be moved to the server soon so we can start caching the pages, and also so we can provide the code in a more useful format (maybe images instead of the current HTML table).</p>
<p>So to the point of this post. During my research to understand QR Codes more and because of the lack of free readable spec (Anyone know if there is one?)  I decided to reverse engineer the JavaScript library into a <a href="http://www.ruby-lang.org">Ruby</a> <a href="http://www.rubygems.org">Gem</a> as there didn&#8217;t seem to be one out there. This helped me understand the how QR Codes are encoded, while at the same time giving something back for other people to use.</p>
<p>You can find out more over at it&#8217;s project page on Github:<br />
<a href="http://whomwah.github.com/rqrcode/">http://whomwah.github.com/rqrcode/</a></p>
<p>So that should get you going. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2008/02/24/rqrcode-a-ruby-library-for-encoding-qr-codes/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

