<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - inkdeep</title>
<link>http://snipplr.com/users/inkdeep</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 05:48:51 GMT</pubDate>
<item>
<title>(Ruby) Search for remote gems from command line and view detailed results in textmate</title>
<link>http://snipplr.com/view/57642/search-for-remote-gems-from-command-line-and-view-detailed-results-in-textmate/</link>
<description><![CDATA[ <p>Do a remote search for all gems containing the word 'pdf' with detailed descriptions and view results in textmate
requires `rubygems-mate` gem</p> ]]></description>
<pubDate>Fri, 05 Aug 2011 05:13:04 GMT</pubDate>
<guid>http://snipplr.com/view/57642/search-for-remote-gems-from-command-line-and-view-detailed-results-in-textmate/</guid>
</item>
<item>
<title>(Ruby) Add directory to load path</title>
<link>http://snipplr.com/view/57371/add-directory-to-load-path/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 30 Jul 2011 07:51:14 GMT</pubDate>
<guid>http://snipplr.com/view/57371/add-directory-to-load-path/</guid>
</item>
<item>
<title>(Ruby) Require directory of files</title>
<link>http://snipplr.com/view/57370/require-directory-of-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 30 Jul 2011 07:50:24 GMT</pubDate>
<guid>http://snipplr.com/view/57370/require-directory-of-files/</guid>
</item>
<item>
<title>(Ruby) Ruby Opening, Reading, Writing, Closing Files</title>
<link>http://snipplr.com/view/47574/ruby-opening-reading-writing-closing-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Jan 2011 08:03:59 GMT</pubDate>
<guid>http://snipplr.com/view/47574/ruby-opening-reading-writing-closing-files/</guid>
</item>
<item>
<title>(Rails) Rails in groups of</title>
<link>http://snipplr.com/view/29568/rails-in-groups-of/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 19:09:03 GMT</pubDate>
<guid>http://snipplr.com/view/29568/rails-in-groups-of/</guid>
</item>
<item>
<title>(Ruby) stupid hash update experiments in ruby</title>
<link>http://snipplr.com/view/29567/stupid-hash-update-experiments-in-ruby/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:50:34 GMT</pubDate>
<guid>http://snipplr.com/view/29567/stupid-hash-update-experiments-in-ruby/</guid>
</item>
<item>
<title>(Ruby) stupid hash experiments in ruby</title>
<link>http://snipplr.com/view/29566/stupid-hash-experiments-in-ruby/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:47:58 GMT</pubDate>
<guid>http://snipplr.com/view/29566/stupid-hash-experiments-in-ruby/</guid>
</item>
<item>
<title>(Ruby) Ruby array collect with index</title>
<link>http://snipplr.com/view/29565/ruby-array-collect-with-index/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:46:11 GMT</pubDate>
<guid>http://snipplr.com/view/29565/ruby-array-collect-with-index/</guid>
</item>
<item>
<title>(Ruby) Ruby Coin Toss</title>
<link>http://snipplr.com/view/29564/ruby-coin-toss/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:44:41 GMT</pubDate>
<guid>http://snipplr.com/view/29564/ruby-coin-toss/</guid>
</item>
<item>
<title>(Ruby) Ruby caller experiments</title>
<link>http://snipplr.com/view/29563/ruby-caller-experiments/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:43:35 GMT</pubDate>
<guid>http://snipplr.com/view/29563/ruby-caller-experiments/</guid>
</item>
<item>
<title>(Ruby) stupid simple array shuffle in ruby</title>
<link>http://snipplr.com/view/29562/stupid-simple-array-shuffle-in-ruby/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:40:47 GMT</pubDate>
<guid>http://snipplr.com/view/29562/stupid-simple-array-shuffle-in-ruby/</guid>
</item>
<item>
<title>(Ruby) Copy object Attributes to another object in Ruby</title>
<link>http://snipplr.com/view/29561/copy-object-attributes-to-another-object-in-ruby/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 18:39:47 GMT</pubDate>
<guid>http://snipplr.com/view/29561/copy-object-attributes-to-another-object-in-ruby/</guid>
</item>
<item>
<title>(JavaScript) Javascript - Detecting Parameters</title>
<link>http://snipplr.com/view/27057/javascript--detecting-parameters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Jan 2010 17:45:46 GMT</pubDate>
<guid>http://snipplr.com/view/27057/javascript--detecting-parameters/</guid>
</item>
<item>
<title>(JavaScript) Test for IE6 with YUI</title>
<link>http://snipplr.com/view/16848/test-for-ie6-with-yui/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 10 Jul 2009 12:35:21 GMT</pubDate>
<guid>http://snipplr.com/view/16848/test-for-ie6-with-yui/</guid>
</item>
<item>
<title>(Ruby) Update older gem to now</title>
<link>http://snipplr.com/view/16035/update-older-gem-to-now/</link>
<description><![CDATA[ <p>For moving from older gem to newest if  ' sudo gem update --system ' doesn't work</p> ]]></description>
<pubDate>Wed, 17 Jun 2009 16:14:11 GMT</pubDate>
<guid>http://snipplr.com/view/16035/update-older-gem-to-now/</guid>
</item>
<item>
<title>(JavaScript) Javascript Class with instance creation arguments</title>
<link>http://snipplr.com/view/16034/javascript-class-with-instance-creation-arguments/</link>
<description><![CDATA[ <p>Namespace to avoid collision with other javascript variable/method names</p> ]]></description>
<pubDate>Wed, 17 Jun 2009 16:09:50 GMT</pubDate>
<guid>http://snipplr.com/view/16034/javascript-class-with-instance-creation-arguments/</guid>
</item>
<item>
<title>(JavaScript) Console Helper for Firebug</title>
<link>http://snipplr.com/view/16033/console-helper-for-firebug/</link>
<description><![CDATA[ <p>This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.

I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - and mildly rubyish.

I got the logAllMembers bit from a mailing list archived message - forget the author but props to them. Only alteration I made was to skip null members in the output.</p> ]]></description>
<pubDate>Wed, 17 Jun 2009 15:44:03 GMT</pubDate>
<guid>http://snipplr.com/view/16033/console-helper-for-firebug/</guid>
</item>
<item>
<title>(Bash) using mencoder to join avi files</title>
<link>http://snipplr.com/view/11551/using-mencoder-to-join-avi-files/</link>
<description><![CDATA[ <p>simple way to join avi files on the command line (need to have mplayer installed)</p> ]]></description>
<pubDate>Mon, 26 Jan 2009 23:32:34 GMT</pubDate>
<guid>http://snipplr.com/view/11551/using-mencoder-to-join-avi-files/</guid>
</item>
<item>
<title>(Bash) clear /tmp of files older than 3 days</title>
<link>http://snipplr.com/view/11550/clear-tmp-of-files-older-than-3-days/</link>
<description><![CDATA[ <p>Clear files in /tmp directory that are older than three days - terminal/cron
this is a very simple example - could also remove by last access time, etc.</p> ]]></description>
<pubDate>Mon, 26 Jan 2009 23:29:11 GMT</pubDate>
<guid>http://snipplr.com/view/11550/clear-tmp-of-files-older-than-3-days/</guid>
</item>
<item>
<title>(Ruby) Recurse directory tree and count pages in all pdf files using pdf-reader gem</title>
<link>http://snipplr.com/view/11548/recurse-directory-tree-and-count-pages-in-all-pdf-files-using-pdfreader-gem/</link>
<description><![CDATA[ <p>I had a directory tree with around 4000 pdf files and I needed a page count - so I semi-rolled this. I swiped the counter code from the gem README:
http://github.com/yob/pdf-reader/tree/master

It could be more contained - as is I run it from irb:

`>> require 'total_pages'`  
`>> pagetotal = TotalPages.new`  
`>> pagetotal.count('/my/pdf/directory')`  

I added rescue to print info on a file if it fails to open or doesn't conform to to the PDF specification and causes pdf-reader to raise an error - without this the script will quit - that sucks when you're trying to count pages in thousands of files.</p> ]]></description>
<pubDate>Mon, 26 Jan 2009 23:18:37 GMT</pubDate>
<guid>http://snipplr.com/view/11548/recurse-directory-tree-and-count-pages-in-all-pdf-files-using-pdfreader-gem/</guid>
</item>
</channel>
</rss>