<?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/tags/ruby</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 29 Aug 2008 18:24:02 GMT</pubDate>
<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>
<item>
<title>(Ruby) Open a text file and re-write its contents into a new text file</title>
<link>http://snipplr.com/view/6583/open-a-text-file-and-rewrite-its-contents-into-a-new-text-file/</link>
<description><![CDATA[ <p>Basic example of how to open a text file and print them (including line-numbers) into a new text file</p> ]]></description>
<pubDate>Wed, 04 Jun 2008 20:03:34 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/3966/simple-example-of-threading-in-ruby/</link>
<description><![CDATA[ <p>You can run functions in parallel without any problems as long as you have enough memory in your computer and none of your functions are dependant on one another. THink about how quickly you can complete your cron jobs now!</p> ]]></description>
<pubDate>Mon, 22 Oct 2007 01:47:28 GMT</pubDate>
<guid>http://snipplr.com/view/3966/simple-example-of-threading-in-ruby/</guid>
</item>
<item>
<title>(Ruby) How to iterate through an array in Ruby</title>
<link>http://snipplr.com/view/3963/how-to-iterate-through-an-array-in-ruby/</link>
<description><![CDATA[ <p>For all of you actionscripters out there, this example is the Ruby equivalent of writing for(i in array){trace(i);} or for(i = 0; i < array.length; i++){trace(i);}</p> ]]></description>
<pubDate>Sun, 21 Oct 2007 20:01:24 GMT</pubDate>
<guid>http://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</title>
<link>http://snipplr.com/view/3962/converting-an-array-into-yaml-loading-yaml-into-an-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 21 Oct 2007 19:56:05 GMT</pubDate>
<guid>http://snipplr.com/view/3962/converting-an-array-into-yaml-loading-yaml-into-an-array/</guid>
</item>
<item>
<title>(Ruby) 101 to using Time in Ruby</title>
<link>http://snipplr.com/view/3960/101-to-using-time-in-ruby/</link>
<description><![CDATA[ <p>There are many functions available for Time, Month, Day, and Year. Below are a few examples I use frequently</p> ]]></description>
<pubDate>Sun, 21 Oct 2007 18:46:23 GMT</pubDate>
<guid>http://snipplr.com/view/3960/101-to-using-time-in-ruby/</guid>
</item>
<item>
<title>(Ruby) Validate a Credit Card Number</title>
<link>http://snipplr.com/view/3959/validate-a-credit-card-number/</link>
<description><![CDATA[ <p>Download the Credit Card Library from Lucas Carlson
user$ sudo gem install creditcard</p> ]]></description>
<pubDate>Sun, 21 Oct 2007 18:37:34 GMT</pubDate>
<guid>http://snipplr.com/view/3959/validate-a-credit-card-number/</guid>
</item>
<item>
<title>(Ruby) Encrypting / Decrypting Passwords using EzCrypto</title>
<link>http://snipplr.com/view/3958/encrypting--decrypting-passwords-using-ezcrypto/</link>
<description><![CDATA[ <p>First things First you need to install this ruby gem
user$ sudo gem install ezcrypto</p> ]]></description>
<pubDate>Sun, 21 Oct 2007 18:19:45 GMT</pubDate>
<guid>http://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)</title>
<link>http://snipplr.com/view/3957/encrypting-passwords-for-a-database-using-oneway-hash-technique-sha1/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Sun, 21 Oct 2007 17:58:33 GMT</pubDate>
<guid>http://snipplr.com/view/3957/encrypting-passwords-for-a-database-using-oneway-hash-technique-sha1/</guid>
</item>
<item>
<title>(Ruby) Parse Delicious RSS Feeds</title>
<link>http://snipplr.com/view/3910/parse-delicious-rss-feeds/</link>
<description><![CDATA[ <p>Saw someone parse an RSS feed, I decided I wanted to do something similar from my Delicious account.</p> ]]></description>
<pubDate>Mon, 15 Oct 2007 23:38:27 GMT</pubDate>
<guid>http://snipplr.com/view/3910/parse-delicious-rss-feeds/</guid>
</item>
</channel>
</rss>