<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 15:20:03 +0000</lastBuildDate>
    <item>
      <title>(Ruby) Ruby: Search Spotify API - chrisaiv</title>
      <link>https://snipplr.com/view/62785/ruby-search-spotify-api</link>
      <description>&lt;p&gt;Simple test showing how to make a request to Spotify's API.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jan 2012 10:04:01 UTC</pubDate>
      <guid>https://snipplr.com/view/62785/ruby-search-spotify-api</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Parsing Blackberry Download Reports - chrisaiv</title>
      <link>https://snipplr.com/view/60688/ruby-parsing-blackberry-download-reports</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Nov 2011 11:46:26 UTC</pubDate>
      <guid>https://snipplr.com/view/60688/ruby-parsing-blackberry-download-reports</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: SMPTE Converter - chrisaiv</title>
      <link>https://snipplr.com/view/60327/ruby-smpte-converter</link>
      <description>&lt;p&gt;If you need to do any sort of screen capturing using FFMPEG, you might need this one day&lt;/p&gt;</description>
      <pubDate>Sat, 29 Oct 2011 03:09:28 UTC</pubDate>
      <guid>https://snipplr.com/view/60327/ruby-smpte-converter</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: CSV to XML (Version 2) - chrisaiv</title>
      <link>https://snipplr.com/view/56741/ruby-csv-to-xml-version-2</link>
      <description>&lt;p&gt;I use this code snippet all the time.  It allows me to parse a CSV file and transform it into an XML file.&lt;/p&gt;</description>
      <pubDate>Mon, 18 Jul 2011 05:33:51 UTC</pubDate>
      <guid>https://snipplr.com/view/56741/ruby-csv-to-xml-version-2</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Capturing Song Title information from an IceCast Server - chrisaiv</title>
      <link>https://snipplr.com/view/46457/ruby-capturing-song-title-information-from-an-icecast-server</link>
      <description>&lt;p&gt;IceCast server's sometimes offer meta-data information on a particular piece.  Here's an example of a data scrape from Classical KUSC&lt;/p&gt;</description>
      <pubDate>Tue, 04 Jan 2011 09:26:41 UTC</pubDate>
      <guid>https://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 - chrisaiv</title>
      <link>https://snipplr.com/view/42807/ruby-importing-csv-data-into-db-with-activerecord-validation</link>
      <description>&lt;p&gt;This script is a nice balance between validating data and speed.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Oct 2010 08:44:17 UTC</pubDate>
      <guid>https://snipplr.com/view/42807/ruby-importing-csv-data-into-db-with-activerecord-validation</guid>
    </item>
    <item>
      <title>(Ruby) Capistrano: MediaTemple - chrisaiv</title>
      <link>https://snipplr.com/view/39659/capistrano-mediatemple</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 29 Aug 2010 04:36:24 UTC</pubDate>
      <guid>https://snipplr.com/view/39659/capistrano-mediatemple</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: State Abbreviations - chrisaiv</title>
      <link>https://snipplr.com/view/35407/ruby-state-abbreviations</link>
      <description>&lt;p&gt;Easy way to populate a drop-down menu&lt;/p&gt;</description>
      <pubDate>Tue, 01 Jun 2010 11:16:58 UTC</pubDate>
      <guid>https://snipplr.com/view/35407/ruby-state-abbreviations</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Extend String Class to Capitalize Every Single Word - chrisaiv</title>
      <link>https://snipplr.com/view/23211/ruby-extend-string-class-to-capitalize-every-single-word</link>
      <description>&lt;p&gt;Don't forget to use require 'directory/name_of_class'&lt;/p&gt;</description>
      <pubDate>Mon, 16 Nov 2009 11:26:57 UTC</pubDate>
      <guid>https://snipplr.com/view/23211/ruby-extend-string-class-to-capitalize-every-single-word</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Directory Class Methods - chrisaiv</title>
      <link>https://snipplr.com/view/22957/ruby-directory-class-methods</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 11 Nov 2009 22:04:24 UTC</pubDate>
      <guid>https://snipplr.com/view/22957/ruby-directory-class-methods</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Reading from Files + File Class Methods - chrisaiv</title>
      <link>https://snipplr.com/view/22751/ruby-reading-from-files--file-class-methods</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 08 Nov 2009 20:36:45 UTC</pubDate>
      <guid>https://snipplr.com/view/22751/ruby-reading-from-files--file-class-methods</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: File Path Basics - chrisaiv</title>
      <link>https://snipplr.com/view/22750/ruby-file-path-basics</link>
      <description>&lt;p&gt;Ruby provides a platform independent  way of displaying file paths.  Here are a few common ways to show absolute and relative paths.&lt;/p&gt;</description>
      <pubDate>Sun, 08 Nov 2009 20:13:25 UTC</pubDate>
      <guid>https://snipplr.com/view/22750/ruby-file-path-basics</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Parse XML to CSV - chrisaiv</title>
      <link>https://snipplr.com/view/21662/ruby-parse-xml-to-csv</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Oct 2009 18:10:35 UTC</pubDate>
      <guid>https://snipplr.com/view/21662/ruby-parse-xml-to-csv</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: How to use the Merge method within Ruby Blocks - chrisaiv</title>
      <link>https://snipplr.com/view/21481/ruby-how-to-use-the-merge-method-within-ruby-blocks</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 20 Oct 2009 03:49:53 UTC</pubDate>
      <guid>https://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 - chrisaiv</title>
      <link>https://snipplr.com/view/21478/ruby-how-to-use-the-5-main-find-methods-within-code-blocks</link>
      <description>&lt;p&gt;This shows how we can find objects inside code blocks (aka data sets).&lt;/p&gt;</description>
      <pubDate>Tue, 20 Oct 2009 02:29:48 UTC</pubDate>
      <guid>https://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 - chrisaiv</title>
      <link>https://snipplr.com/view/15528/ruby-multiline-comments</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 04 Jun 2009 14:17:56 UTC</pubDate>
      <guid>https://snipplr.com/view/15528/ruby-multiline-comments</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Unescape a URLEncoded String - chrisaiv</title>
      <link>https://snipplr.com/view/9554/ruby-unescape-a-urlencoded-string</link>
      <description>&lt;p&gt;I needed a quick way to unescape a URL Encoded string.  I found 2 chill ways&lt;/p&gt;</description>
      <pubDate>Fri, 07 Nov 2008 19:03:13 UTC</pubDate>
      <guid>https://snipplr.com/view/9554/ruby-unescape-a-urlencoded-string</guid>
    </item>
    <item>
      <title>(Ruby) Installing the SQLite3 Database Interface for Ruby - chrisaiv</title>
      <link>https://snipplr.com/view/9361/installing-the-sqlite3-database-interface-for-ruby</link>
      <description>&lt;p&gt;http://www.sitepoint.com/forums/showthread.php?t=552741&lt;/p&gt;</description>
      <pubDate>Wed, 29 Oct 2008 21:42:43 UTC</pubDate>
      <guid>https://snipplr.com/view/9361/installing-the-sqlite3-database-interface-for-ruby</guid>
    </item>
    <item>
      <title>(Ruby) Rails: Force Migration - chrisaiv</title>
      <link>https://snipplr.com/view/9314/rails-force-migration</link>
      <description>&lt;p&gt;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 =&gt; true, you are forcefully wiping the table.  After you've performed your migration, you normally want to return the Boolean to false.&lt;/p&gt;</description>
      <pubDate>Mon, 27 Oct 2008 11:55:26 UTC</pubDate>
      <guid>https://snipplr.com/view/9314/rails-force-migration</guid>
    </item>
    <item>
      <title>(Ruby) Mixing in a Module immediately after an objects Singleton class - chrisaiv</title>
      <link>https://snipplr.com/view/6821/mixing-in-a-module-immediately-after-an-objects-singleton-class</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/&lt;/p&gt;</description>
      <pubDate>Fri, 20 Jun 2008 19:58:38 UTC</pubDate>
      <guid>https://snipplr.com/view/6821/mixing-in-a-module-immediately-after-an-objects-singleton-class</guid>
    </item>
    <item>
      <title>(Ruby) Open a text file and re-write its contents into a new text file - chrisaiv</title>
      <link>https://snipplr.com/view/6583/open-a-text-file-and-rewrite-its-contents-into-a-new-text-file</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2008/06/04/ruby-open-a-text-file-and-re-write-its-contents-into-a-new-text-file/&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jun 2008 20:03:34 UTC</pubDate>
      <guid>https://snipplr.com/view/6583/open-a-text-file-and-rewrite-its-contents-into-a-new-text-file</guid>
    </item>
    <item>
      <title>(Ruby) Simple Example of Threading in Ruby - chrisaiv</title>
      <link>https://snipplr.com/view/3966/simple-example-of-threading-in-ruby</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2007/10/22/ruby-simple-example-of-threading/&lt;/p&gt;</description>
      <pubDate>Mon, 22 Oct 2007 01:47:28 UTC</pubDate>
      <guid>https://snipplr.com/view/3966/simple-example-of-threading-in-ruby</guid>
    </item>
    <item>
      <title>(Ruby) How to iterate through an array in Ruby - chrisaiv</title>
      <link>https://snipplr.com/view/3963/how-to-iterate-through-an-array-in-ruby</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2007/10/21/ruby-how-to-iterate-through-an-array/&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 20:01:24 UTC</pubDate>
      <guid>https://snipplr.com/view/3963/how-to-iterate-through-an-array-in-ruby</guid>
    </item>
    <item>
      <title>(Ruby) Converting an array into YAML, Loading YAML into an array - chrisaiv</title>
      <link>https://snipplr.com/view/3962/converting-an-array-into-yaml-loading-yaml-into-an-array</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2007/10/21/converting-an-array-into-yaml-loading-yaml-into-an-array/&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 19:56:05 UTC</pubDate>
      <guid>https://snipplr.com/view/3962/converting-an-array-into-yaml-loading-yaml-into-an-array</guid>
    </item>
    <item>
      <title>(Ruby) XML-RPC (Remote Procedure Calls) - chrisaiv</title>
      <link>https://snipplr.com/view/3961/xmlrpc-remote-procedure-calls</link>
      <description>&lt;p&gt;RPC is an alternative to SOAP or REST. If you find a webservice that has an implementation, here is are a few ways to make it work using Ruby&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 18:48:42 UTC</pubDate>
      <guid>https://snipplr.com/view/3961/xmlrpc-remote-procedure-calls</guid>
    </item>
    <item>
      <title>(Ruby) 101 to using Time in Ruby - chrisaiv</title>
      <link>https://snipplr.com/view/3960/101-to-using-time-in-ruby</link>
      <description>&lt;p&gt;There are many functions available for Time, Month, Day, and Year. Below are a few examples I use frequently&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 18:46:23 UTC</pubDate>
      <guid>https://snipplr.com/view/3960/101-to-using-time-in-ruby</guid>
    </item>
    <item>
      <title>(Ruby) Validate a Credit Card Number - chrisaiv</title>
      <link>https://snipplr.com/view/3959/validate-a-credit-card-number</link>
      <description>&lt;p&gt;Download the Credit Card Library from Lucas Carlson&#13;
user$ sudo gem install creditcard&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 18:37:34 UTC</pubDate>
      <guid>https://snipplr.com/view/3959/validate-a-credit-card-number</guid>
    </item>
    <item>
      <title>(Ruby) Encrypting / Decrypting Passwords using EzCrypto - chrisaiv</title>
      <link>https://snipplr.com/view/3958/encrypting--decrypting-passwords-using-ezcrypto</link>
      <description>&lt;p&gt;First things First you need to install this ruby gem&#13;
user$ sudo gem install ezcrypto&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 18:19:45 UTC</pubDate>
      <guid>https://snipplr.com/view/3958/encrypting--decrypting-passwords-using-ezcrypto</guid>
    </item>
    <item>
      <title>(Ruby) Encrypting passwords for a database using one-way hash technique (SHA1) - chrisaiv</title>
      <link>https://snipplr.com/view/3957/encrypting-passwords-for-a-database-using-oneway-hash-technique-sha1</link>
      <description>&lt;p&gt;Before you save a password to a database, it may make sense to encrypt it. That way when you do some user authentication, you can compare the users submitted password to the one on the database.&lt;/p&gt;</description>
      <pubDate>Sun, 21 Oct 2007 17:58:33 UTC</pubDate>
      <guid>https://snipplr.com/view/3957/encrypting-passwords-for-a-database-using-oneway-hash-technique-sha1</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Parse Delicious RSS Feeds - chrisaiv</title>
      <link>https://snipplr.com/view/3910/ruby-parse-delicious-rss-feeds</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2007/10/15/ruby-parse-delicious-rss-feeds/&lt;/p&gt;</description>
      <pubDate>Mon, 15 Oct 2007 23:38:27 UTC</pubDate>
      <guid>https://snipplr.com/view/3910/ruby-parse-delicious-rss-feeds</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Web 2.0 Generator - chrisaiv</title>
      <link>https://snipplr.com/view/3896/ruby-web-20-generator</link>
      <description>&lt;p&gt;https://www.chrisjmendez.com/2017/10/15/ruby-web-2-0-name-generator/&lt;/p&gt;</description>
      <pubDate>Mon, 15 Oct 2007 01:25:21 UTC</pubDate>
      <guid>https://snipplr.com/view/3896/ruby-web-20-generator</guid>
    </item>
    <item>
      <title>(Ruby) Ruby: Randomly selecting an item from within a Hash - chrisaiv</title>
      <link>https://snipplr.com/view/3895/ruby-randomly-selecting-an-item-from-within-a-hash</link>
      <description>&lt;p&gt;Needed a way to randomly select an item from within a Hash&lt;/p&gt;</description>
      <pubDate>Mon, 15 Oct 2007 01:22:41 UTC</pubDate>
      <guid>https://snipplr.com/view/3895/ruby-randomly-selecting-an-item-from-within-a-hash</guid>
    </item>
  </channel>
</rss>
