<?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 19:01:06 +0000</lastBuildDate>
    <item>
      <title>(Ruby) Irb power tricks with Wirble &amp; Utility-Belt - cczona</title>
      <link>https://snipplr.com/view/5597/irb-power-tricks-with-wirble--utilitybelt</link>
      <description>&lt;p&gt;Note: most of these will be available to the shell and Rails' console too.&lt;/p&gt;</description>
      <pubDate>Fri, 28 Mar 2008 12:24:12 UTC</pubDate>
      <guid>https://snipplr.com/view/5597/irb-power-tricks-with-wirble--utilitybelt</guid>
    </item>
    <item>
      <title>(Ruby) Haml 'nesting within a tag' error - cczona</title>
      <link>https://snipplr.com/view/5594/haml-nesting-within-a-tag-error</link>
      <description>&lt;p&gt;"When using haml, an HTML tag is represented using %tagname, but in the case of an HTML tag with attributes, the representation is %tagname{:attribute =&gt; value}.&#13;
&#13;
It turns out there must be no whitespace between %tagname and {:attribute =&gt; value}.  This was the source of a lot of errors when I was trying to write haml forms, since the error message was the cryptic: Illegal Nesting: Nesting within a tag that already has content is illegal."&lt;/p&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:28:26 UTC</pubDate>
      <guid>https://snipplr.com/view/5594/haml-nesting-within-a-tag-error</guid>
    </item>
    <item>
      <title>(Ruby) order/format of params in method definition - cczona</title>
      <link>https://snipplr.com/view/5551/orderformat-of-params-in-method-definition</link>
      <description>&lt;p&gt;See also p. 348  ("Invoking a Method") of Pickaxe 2nd edition&lt;/p&gt;</description>
      <pubDate>Mon, 24 Mar 2008 22:41:16 UTC</pubDate>
      <guid>https://snipplr.com/view/5551/orderformat-of-params-in-method-definition</guid>
    </item>
    <item>
      <title>(Ruby) What version of Ruby and Rails is this using? - cczona</title>
      <link>https://snipplr.com/view/5545/what-version-of-ruby-and-rails-is-this-using</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 24 Mar 2008 14:25:44 UTC</pubDate>
      <guid>https://snipplr.com/view/5545/what-version-of-ruby-and-rails-is-this-using</guid>
    </item>
    <item>
      <title>(Ruby) Ruby heredoc tricks - cczona</title>
      <link>https://snipplr.com/view/5432/ruby-heredoc-tricks</link>
      <description>&lt;p&gt;Following a&lt;/p&gt;</description>
      <pubDate>Fri, 14 Mar 2008 19:31:08 UTC</pubDate>
      <guid>https://snipplr.com/view/5432/ruby-heredoc-tricks</guid>
    </item>
    <item>
      <title>(Ruby) Use regex to match a Ruby substring, and reference it like an index - cczona</title>
      <link>https://snipplr.com/view/5420/use-regex-to-match-a-ruby-substring-and-reference-it-like-an-index</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 13 Mar 2008 21:41:41 UTC</pubDate>
      <guid>https://snipplr.com/view/5420/use-regex-to-match-a-ruby-substring-and-reference-it-like-an-index</guid>
    </item>
    <item>
      <title>(Ruby) optimize Ruby memory usage by avoiding string accumulation - cczona</title>
      <link>https://snipplr.com/view/5418/optimize-ruby-memory-usage-by-avoiding-string-accumulation</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 13 Mar 2008 18:55:05 UTC</pubDate>
      <guid>https://snipplr.com/view/5418/optimize-ruby-memory-usage-by-avoiding-string-accumulation</guid>
    </item>
    <item>
      <title>(Ruby) make Ruby strings behave like files - cczona</title>
      <link>https://snipplr.com/view/5417/make-ruby-strings-behave-like-files</link>
      <description>&lt;p&gt;This is handy for testing, when you need to simulate an open file or open URI.  Why, and the Pickaxe book, have better examples&lt;/p&gt;</description>
      <pubDate>Thu, 13 Mar 2008 18:38:19 UTC</pubDate>
      <guid>https://snipplr.com/view/5417/make-ruby-strings-behave-like-files</guid>
    </item>
    <item>
      <title>(Ruby) Execute arbitrary code with different level of error messaging - cczona</title>
      <link>https://snipplr.com/view/5398/execute-arbitrary-code-with-different-level-of-error-messaging</link>
      <description>&lt;p&gt;You can turn off warnings for a section of your code by setting $VERBOSE to nil. Even better is to codify this in a method.  Since this method takes a block as its parameter, you can now pass it arbitrary chunks of code to execute without warnings.&lt;/p&gt;</description>
      <pubDate>Thu, 13 Mar 2008 03:27:01 UTC</pubDate>
      <guid>https://snipplr.com/view/5398/execute-arbitrary-code-with-different-level-of-error-messaging</guid>
    </item>
    <item>
      <title>(Ruby) 'uninitialized constant Gem::GemRunner' - cczona</title>
      <link>https://snipplr.com/view/5397/uninitialized-constant-gemgemrunner</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 13 Mar 2008 00:00:08 UTC</pubDate>
      <guid>https://snipplr.com/view/5397/uninitialized-constant-gemgemrunner</guid>
    </item>
    <item>
      <title>(Ruby) CGI library gotcha - cczona</title>
      <link>https://snipplr.com/view/5396/cgi-library-gotcha</link>
      <description>&lt;p&gt;Beware of requiring 'CGI'.  There's trouble in them thar hills/&lt;/p&gt;</description>
      <pubDate>Wed, 12 Mar 2008 23:58:07 UTC</pubDate>
      <guid>https://snipplr.com/view/5396/cgi-library-gotcha</guid>
    </item>
  </channel>
</rss>
