<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/ruby</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 01:42:58 GMT</pubDate>
<item>
<title>(Bash) Rescue any exception in Ruby - cczona</title>
<link>http://snipplr.com/view/59991/rescue-any-exception-in-ruby/</link>
<description><![CDATA[ <p>From the Pickaxe, 4th edition, p. 352:

A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue every exception, use this:</p> ]]></description>
<pubDate>Thu, 20 Oct 2011 14:59:24 GMT</pubDate>
<guid>http://snipplr.com/view/59991/rescue-any-exception-in-ruby/</guid>
</item>
<item>
<title>(Bash) remove trailing space from specific file (ex. ruby) - giver</title>
<link>http://snipplr.com/view/58125/remove-trailing-space-from-specific-file-ex-ruby/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 24 Aug 2011 13:00:24 GMT</pubDate>
<guid>http://snipplr.com/view/58125/remove-trailing-space-from-specific-file-ex-ruby/</guid>
</item>
<item>
<title>(Bash) New ruby builder PKGBUILD for AUR - UR6LAD</title>
<link>http://snipplr.com/view/56505/new-ruby-builder-pkgbuild-for-aur/</link>
<description><![CDATA[ <p>Add `bin` folder</p> ]]></description>
<pubDate>Wed, 13 Jul 2011 06:19:51 GMT</pubDate>
<guid>http://snipplr.com/view/56505/new-ruby-builder-pkgbuild-for-aur/</guid>
</item>
<item>
<title>(Bash) gem path - greeneggs614</title>
<link>http://snipplr.com/view/53573/gem-path/</link>
<description><![CDATA[ <p>Prints the path to your gem directories.</p> ]]></description>
<pubDate>Sat, 14 May 2011 06:29:40 GMT</pubDate>
<guid>http://snipplr.com/view/53573/gem-path/</guid>
</item>
<item>
<title>(Bash) fix Library not loaded: libmysqlclient.16.dylib (LoadError) - timvdeijnden</title>
<link>http://snipplr.com/view/48181/fix-library-not-loaded-libmysqlclient16dylib-loaderror/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Feb 2011 07:47:47 GMT</pubDate>
<guid>http://snipplr.com/view/48181/fix-library-not-loaded-libmysqlclient16dylib-loaderror/</guid>
</item>
<item>
<title>(Bash) uninstall all ruby gems - stayce</title>
<link>http://snipplr.com/view/41023/uninstall-all-ruby-gems/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 25 Sep 2010 10:25:08 GMT</pubDate>
<guid>http://snipplr.com/view/41023/uninstall-all-ruby-gems/</guid>
</item>
<item>
<title>(Bash) Install LESS Ruby GEM - choise</title>
<link>http://snipplr.com/view/35949/install-less-ruby-gem/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 Jun 2010 18:29:32 GMT</pubDate>
<guid>http://snipplr.com/view/35949/install-less-ruby-gem/</guid>
</item>
<item>
<title>(Bash) Find Your Ruby Gems Path - alvarezrilla</title>
<link>http://snipplr.com/view/29772/find-your-ruby-gems-path/</link>
<description><![CDATA[ <p>Because different systems put it in different places.</p> ]]></description>
<pubDate>Mon, 15 Mar 2010 07:14:18 GMT</pubDate>
<guid>http://snipplr.com/view/29772/find-your-ruby-gems-path/</guid>
</item>
<item>
<title>(Bash) Log4r: how to use RollingFileOutputter: automatically cycle stale logfiles - noah</title>
<link>http://snipplr.com/view/26962/log4r-how-to-use-rollingfileoutputter-automatically-cycle-stale-logfiles/</link>
<description><![CDATA[ <p>(Log4r::RollingFileOutputter)(http://log4r.sourceforge.net/rdoc/files/log4r/formatter/formatter_rb.html) automatically renames/archives log files once they get too big or too old.

This is not my code, I found it [in Google's cache](http://74.125.93.132/search?q=cache:NH-CfIj0MhQJ:omf.mytestbed.net/repositories/entry/omf/branches/reorg/log4r-1.0.5/examples/fileroll.rb%3Fformat%3Draw%26rev%3D89+log4r+rollingfileoutputter) and I found it useful, so I figured I should preserve it.  If you're the author, get in touch and I'll credit/link you (and thanks!)</p> ]]></description>
<pubDate>Sun, 24 Jan 2010 15:18:50 GMT</pubDate>
<guid>http://snipplr.com/view/26962/log4r-how-to-use-rollingfileoutputter-automatically-cycle-stale-logfiles/</guid>
</item>
<item>
<title>(Bash) Count unique users from a log file for a given time period - benjay</title>
<link>http://snipplr.com/view/20487/count-unique-users-from-a-log-file-for-a-given-time-period/</link>
<description><![CDATA[ <p>Sample log line:

[INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1</p> ]]></description>
<pubDate>Wed, 30 Sep 2009 15:33:22 GMT</pubDate>
<guid>http://snipplr.com/view/20487/count-unique-users-from-a-log-file-for-a-given-time-period/</guid>
</item>
<item>
<title>(Bash) Freeze a single Gem in Rails - hlubek</title>
<link>http://snipplr.com/view/17174/freeze-a-single-gem-in-rails/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 19 Jul 2009 17:52:18 GMT</pubDate>
<guid>http://snipplr.com/view/17174/freeze-a-single-gem-in-rails/</guid>
</item>
<item>
<title>(Bash) Install ruby gem in specific version - hlubek</title>
<link>http://snipplr.com/view/12978/install-ruby-gem-in-specific-version/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 11 Mar 2009 04:07:10 GMT</pubDate>
<guid>http://snipplr.com/view/12978/install-ruby-gem-in-specific-version/</guid>
</item>
<item>
<title>(Bash) Uninstall manually installed rubygems (ubuntu) - therobot</title>
<link>http://snipplr.com/view/9187/uninstall-manually-installed-rubygems-ubuntu/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 22 Oct 2008 06:19:11 GMT</pubDate>
<guid>http://snipplr.com/view/9187/uninstall-manually-installed-rubygems-ubuntu/</guid>
</item>
<item>
<title>(Bash) Install mySQL gem on a fink (vs self made) mySQL installation - iblis</title>
<link>http://snipplr.com/view/7183/install-mysql-gem-on-a-fink-vs-self-made-mysql-installation/</link>
<description><![CDATA[ <p>When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified at compilation time) is in your path.</p> ]]></description>
<pubDate>Wed, 09 Jul 2008 10:51:20 GMT</pubDate>
<guid>http://snipplr.com/view/7183/install-mysql-gem-on-a-fink-vs-self-made-mysql-installation/</guid>
</item>
<item>
<title>(Bash) Add paths to Ruby 'require' - cczona</title>
<link>http://snipplr.com/view/6192/add-paths-to-ruby-require/</link>
<description><![CDATA[ <p>Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:</p> ]]></description>
<pubDate>Mon, 12 May 2008 17:52:58 GMT</pubDate>
<guid>http://snipplr.com/view/6192/add-paths-to-ruby-require/</guid>
</item>
<item>
<title>(Bash) Get the length of a string on the command line with Ruby - noah</title>
<link>http://snipplr.com/view/5584/get-the-length-of-a-string-on-the-command-line-with-ruby/</link>
<description><![CDATA[ <p>The following command prints 21.</p> ]]></description>
<pubDate>Thu, 27 Mar 2008 23:08:41 GMT</pubDate>
<guid>http://snipplr.com/view/5584/get-the-length-of-a-string-on-the-command-line-with-ruby/</guid>
</item>
<item>
<title>(Bash) Bash functions for running rails unit and functional tests - vanne</title>
<link>http://snipplr.com/view/4384/bash-functions-for-running-rails-unit-and-functional-tests/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 19 Dec 2007 15:56:13 GMT</pubDate>
<guid>http://snipplr.com/view/4384/bash-functions-for-running-rails-unit-and-functional-tests/</guid>
</item>
<item>
<title>(Bash) Create RoR project skeleton in svn - sudarkoff</title>
<link>http://snipplr.com/view/2131/create-ror-project-skeleton-in-svn/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Feb 2007 17:00:52 GMT</pubDate>
<guid>http://snipplr.com/view/2131/create-ror-project-skeleton-in-svn/</guid>
</item>
<item>
<title>(Bash) Import all new files in a subversion working copy - plexus</title>
<link>http://snipplr.com/view/2048/import-all-new-files-in-a-subversion-working-copy/</link>
<description><![CDATA[ <p>There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.</p> ]]></description>
<pubDate>Wed, 31 Jan 2007 06:42:45 GMT</pubDate>
<guid>http://snipplr.com/view/2048/import-all-new-files-in-a-subversion-working-copy/</guid>
</item>
</channel>
</rss>