<?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>Kritikal &#187; Ruby</title>
	<atom:link href="http://www.kritikal.com/blog/category/development/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kritikal.com/blog</link>
	<description>Home of Andrew Herron's random geekery.</description>
	<lastBuildDate>Sat, 04 Feb 2012 20:15:44 +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>Ruby ADIF to SQL</title>
		<link>http://www.kritikal.com/blog/2010/11/ruby-adif-to-sq/</link>
		<comments>http://www.kritikal.com/blog/2010/11/ruby-adif-to-sq/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 14:37:13 +0000</pubDate>
		<dc:creator>andrewherron</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.kritikal.com/blog/?p=144</guid>
		<description><![CDATA[Saw someone on Twitter need this, so I whipped something up pretty quick. It&#8217;s not pretty, but it gets the job done. You run it with: ruby adif_to_sql.rb [ADIF_FILENAME] [MYSQL_TABLENAME] You just specify the ADIF file and the name of the MySQL table name. The script creates an SQL file that can be imported directly [...]]]></description>
			<content:encoded><![CDATA[<p>Saw someone on Twitter need this, so I whipped something up pretty quick. It&#8217;s not pretty, but it gets the job done.</p>
<p>You run it with:<br />
<code>ruby adif_to_sql.rb [ADIF_FILENAME] [MYSQL_TABLENAME]</code></p>
<p>You just specify the ADIF file and the name of the MySQL table name. The script creates an SQL file that can be imported directly into MySQL.</p>
<p>Get the script here: <a href="http://www.kritikal.com/ham/adif_to_sql.rb">http://www.kritikal.com/ham/adif_to_sql.rb</a></p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kritikal.com/blog/2010/11/ruby-adif-to-sq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>INSERT IGNORE and DataMapper</title>
		<link>http://www.kritikal.com/blog/2010/02/insert-ignore-and-datamapper/</link>
		<comments>http://www.kritikal.com/blog/2010/02/insert-ignore-and-datamapper/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:58:23 +0000</pubDate>
		<dc:creator>andrewherron</dc:creator>
				<category><![CDATA[DataMapper]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.kritikal.com/blog/?p=107</guid>
		<description><![CDATA[So I needed a way to replicate the &#8216;INSERT IGNORE&#8217; statement in DataMapper and being that the code documentation is sparse, and I didn&#8217;t feel like force feeding an SQL statement into DM, I wrote some ruby code to replicate it. If anyone has a better, or more refined solution, please let me know! rescue [...]]]></description>
			<content:encoded><![CDATA[<p>So I needed a way to replicate the &#8216;INSERT IGNORE&#8217; statement in DataMapper and being that the code documentation is sparse, and I didn&#8217;t feel like force feeding an SQL statement into DM, I wrote some ruby code to replicate it.</p>
<p>If anyone has a better, or more refined solution, please let me know!</p>
<pre>
      rescue DataObjects::IntegrityError => e
        @logger.error e
        unless e.code == 1062
          throw e
        end
      end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kritikal.com/blog/2010/02/insert-ignore-and-datamapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

