<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - chrisaiv</title>
<link>http://snipplr.com/users/chrisaiv/language/ruby</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 19:43:42 GMT</pubDate>
<item>
<title>(Ruby) Ruby: Search Spotify API</title>
<link>http://snipplr.com/view/62785/ruby-search-spotify-api/</link>
<description><![CDATA[ <p>Simple test showing how to make a request to Spotify's API.</p> ]]></description>
<pubDate>Thu, 26 Jan 2012 10:04:01 GMT</pubDate>
<guid>http://snipplr.com/view/62785/ruby-search-spotify-api/</guid>
</item>
<item>
<title>(Ruby) Ruby: Parsing Blackberry Download Reports</title>
<link>http://snipplr.com/view/60688/ruby-parsing-blackberry-download-reports/</link>
<description><![CDATA[ <p>The Blackberry AppWorld portal allows you to schedule reports which are delivered as CSV.zip files. Although the CSV file offers a lot of detail about operating system and date of download, most of the time I just want to know which users downloaded the app from which countries.  So usually I choose "Country, then date", unpack the .zip and run this (verbose) ruby script.</p> ]]></description>
<pubDate>Thu, 10 Nov 2011 11:46:26 GMT</pubDate>
<guid>http://snipplr.com/view/60688/ruby-parsing-blackberry-download-reports/</guid>
</item>
<item>
<title>(Ruby) Ruby: SMPTE Converter</title>
<link>http://snipplr.com/view/60327/ruby-smpte-converter/</link>
<description><![CDATA[ <p>If you need to do any sort of screen capturing using FFMPEG, you might need this one day</p> ]]></description>
<pubDate>Sat, 29 Oct 2011 03:09:28 GMT</pubDate>
<guid>http://snipplr.com/view/60327/ruby-smpte-converter/</guid>
</item>
<item>
<title>(Ruby) Ruby: CSV to XML (Version 2)</title>
<link>http://snipplr.com/view/56741/ruby-csv-to-xml-version-2/</link>
<description><![CDATA[ <p>I use this code snippet all the time.  It allows me to parse a CSV file and transform it into an XML file.</p> ]]></description>
<pubDate>Mon, 18 Jul 2011 05:33:51 GMT</pubDate>
<guid>http://snipplr.com/view/56741/ruby-csv-to-xml-version-2/</guid>
</item>
<item>
<title>(Ruby) Ruby: Capturing Song Title information from an IceCast Server</title>
<link>http://snipplr.com/view/46457/ruby-capturing-song-title-information-from-an-icecast-server/</link>
<description><![CDATA[ <p>IceCast server's sometimes offer meta-data information on a particular piece.  Here's an example of a data scrape from Classical KUSC</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 09:26:41 GMT</pubDate>
<guid>http://snipplr.com/view/46457/ruby-capturing-song-title-information-from-an-icecast-server/</guid>
</item>
<item>
<title>(Ruby) Ruby: Importing CSV data into DB with ActiveRecord Validation</title>
<link>http://snipplr.com/view/42807/ruby-importing-csv-data-into-db-with-activerecord-validation/</link>
<description><![CDATA[ <p>This script is a nice balance between validating data and speed.</p> ]]></description>
<pubDate>Sat, 23 Oct 2010 08:44:17 GMT</pubDate>
<guid>http://snipplr.com/view/42807/ruby-importing-csv-data-into-db-with-activerecord-validation/</guid>
</item>
<item>
<title>(Ruby) Capistrano: MediaTemple</title>
<link>http://snipplr.com/view/39659/capistrano-mediatemple/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 29 Aug 2010 04:36:24 GMT</pubDate>
<guid>http://snipplr.com/view/39659/capistrano-mediatemple/</guid>
</item>
<item>
<title>(Ruby) Ruby: State Abbreviations</title>
<link>http://snipplr.com/view/35407/ruby-state-abbreviations/</link>
<description><![CDATA[ <p>Easy way to populate a drop-down menu</p> ]]></description>
<pubDate>Tue, 01 Jun 2010 11:16:58 GMT</pubDate>
<guid>http://snipplr.com/view/35407/ruby-state-abbreviations/</guid>
</item>
<item>
<title>(Ruby) Ruby: Extend String Class to Capitalize Every Single Word</title>
<link>http://snipplr.com/view/23211/ruby-extend-string-class-to-capitalize-every-single-word/</link>
<description><![CDATA[ <p>Don't forget to use require 'directory/name_of_class'</p> ]]></description>
<pubDate>Mon, 16 Nov 2009 11:26:57 GMT</pubDate>
<guid>http://snipplr.com/view/23211/ruby-extend-string-class-to-capitalize-every-single-word/</guid>
</item>
<item>
<title>(Ruby) Ruby: Directory Class Methods</title>
<link>http://snipplr.com/view/22957/ruby-directory-class-methods/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 11 Nov 2009 22:04:24 GMT</pubDate>
<guid>http://snipplr.com/view/22957/ruby-directory-class-methods/</guid>
</item>
<item>
<title>(Ruby) Ruby: Reading from Files + File Class Methods</title>
<link>http://snipplr.com/view/22751/ruby-reading-from-files--file-class-methods/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 08 Nov 2009 20:36:45 GMT</pubDate>
<guid>http://snipplr.com/view/22751/ruby-reading-from-files--file-class-methods/</guid>
</item>
<item>
<title>(Ruby) Ruby: File Path Basics</title>
<link>http://snipplr.com/view/22750/ruby-file-path-basics/</link>
<description><![CDATA[ <p>Ruby provides a platform independent  way of displaying file paths.  Here are a few common ways to show absolute and relative paths.</p> ]]></description>
<pubDate>Sun, 08 Nov 2009 20:13:25 GMT</pubDate>
<guid>http://snipplr.com/view/22750/ruby-file-path-basics/</guid>
</item>
<item>
<title>(Ruby) Ruby: Parse XML to CSV</title>
<link>http://snipplr.com/view/21662/ruby-parse-xml-to-csv/</link>
<description><![CDATA[ <p>I had an XML file that I needed to convert to CSV.  In order to make things easier for myself, I used a pipe | symbol instead of a comma so that there would be no parsing errors later.  I also ended up writing the file to a Txt file and importing it as such to Microsoft Excel.</p> ]]></description>
<pubDate>Thu, 22 Oct 2009 18:10:35 GMT</pubDate>
<guid>http://snipplr.com/view/21662/ruby-parse-xml-to-csv/</guid>
</item>
<item>
<title>(Ruby) Ruby: How to use the Merge method within Ruby Blocks</title>
<link>http://snipplr.com/view/21481/ruby-how-to-use-the-merge-method-within-ruby-blocks/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 Oct 2009 03:49:53 GMT</pubDate>
<guid>http://snipplr.com/view/21481/ruby-how-to-use-the-merge-method-within-ruby-blocks/</guid>
</item>
<item>
<title>(Ruby) Ruby: How to use the 5 main Find methods within Code Blocks</title>
<link>http://snipplr.com/view/21478/ruby-how-to-use-the-5-main-find-methods-within-code-blocks/</link>
<description><![CDATA[ <p>This shows how we can find objects inside code blocks (aka data sets).</p> ]]></description>
<pubDate>Tue, 20 Oct 2009 02:29:48 GMT</pubDate>
<guid>http://snipplr.com/view/21478/ruby-how-to-use-the-5-main-find-methods-within-code-blocks/</guid>
</item>
<item>
<title>(Ruby) Ruby: Multi-line comments</title>
<link>http://snipplr.com/view/15528/ruby-multiline-comments/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 04 Jun 2009 14:17:56 GMT</pubDate>
<guid>http://snipplr.com/view/15528/ruby-multiline-comments/</guid>
</item>
<item>
<title>(Ruby) Ruby: Unescape a URLEncoded String</title>
<link>http://snipplr.com/view/9554/ruby-unescape-a-urlencoded-string/</link>
<description><![CDATA[ <p>I needed a quick way to unescape a URL Encoded string.  I found 2 chill ways</p> ]]></description>
<pubDate>Fri, 07 Nov 2008 19:03:13 GMT</pubDate>
<guid>http://snipplr.com/view/9554/ruby-unescape-a-urlencoded-string/</guid>
</item>
<item>
<title>(Ruby) Installing the SQLite3 Database Interface for Ruby</title>
<link>http://snipplr.com/view/9361/installing-the-sqlite3-database-interface-for-ruby/</link>
<description><![CDATA[ <p>http://www.sitepoint.com/forums/showthread.php?t=552741</p> ]]></description>
<pubDate>Wed, 29 Oct 2008 21:42:43 GMT</pubDate>
<guid>http://snipplr.com/view/9361/installing-the-sqlite3-database-interface-for-ruby/</guid>
</item>
<item>
<title>(Ruby) Rails: Force Migration</title>
<link>http://snipplr.com/view/9314/rails-force-migration/</link>
<description><![CDATA[ <p>Suppose you already have a database with a table named candy and now you want to start using migrations.  If you try to run a migration with a pre-existing table, Rails will error.  So by placing :force => true, you are forcefully wiping the table.  After you've performed your migration, you normally want to return the Boolean to false.</p> ]]></description>
<pubDate>Mon, 27 Oct 2008 11:55:26 GMT</pubDate>
<guid>http://snipplr.com/view/9314/rails-force-migration/</guid>
</item>
<item>
<title>(Ruby) Mixing in a Module immediately after an objects Singleton class</title>
<link>http://snipplr.com/view/6821/mixing-in-a-module-immediately-after-an-objects-singleton-class/</link>
<description><![CDATA[ <p>There are two ways to insert a module above the objects singleton class but before the objects Class</p> ]]></description>
<pubDate>Fri, 20 Jun 2008 19:58:38 GMT</pubDate>
<guid>http://snipplr.com/view/6821/mixing-in-a-module-immediately-after-an-objects-singleton-class/</guid>
</item>
</channel>
</rss>