<?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/favorites/noah</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 00:24:28 GMT</pubDate>
<item>
<title>(Bash) Search and replace with perl - noah</title>
<link>http://snipplr.com/view/10540/search-and-replace-with-perl/</link>
<description><![CDATA[ <p>Replace all the occurrences of a string with a replacement in the supplied files.</p> ]]></description>
<pubDate>Wed, 17 Dec 2008 00:22:35 GMT</pubDate>
<guid>http://snipplr.com/view/10540/search-and-replace-with-perl/</guid>
</item>
<item>
<title>(Rails) Rails: List available rake tasks - noah</title>
<link>http://snipplr.com/view/9315/rails-list-available-rake-tasks/</link>
<description><![CDATA[ <p>I'm always forgetting what rake can do or how to write it so here's a quick command that will list out everything.</p> ]]></description>
<pubDate>Mon, 27 Oct 2008 11:59:07 GMT</pubDate>
<guid>http://snipplr.com/view/9315/rails-list-available-rake-tasks/</guid>
</item>
<item>
<title>(Python) Post to Twitter from Shell - Python Version - noah</title>
<link>http://snipplr.com/view/7870/post-to-twitter-from-shell--python-version/</link>
<description><![CDATA[ <p>inspired by http://snipplr.com/view/6594/post-to-twitter-from-the-shell/ . I just rewrote it in Python because I didn't want to install a Ruby interpreter :)

use `chmod +x tweet.py` to run it as `./tweet.py` instead of `python tweet.py`</p> ]]></description>
<pubDate>Thu, 14 Aug 2008 09:36:26 GMT</pubDate>
<guid>http://snipplr.com/view/7870/post-to-twitter-from-shell--python-version/</guid>
</item>
<item>
<title>(Ruby) Charles Roper's custom .irbrc for Windows - noah</title>
<link>http://snipplr.com/view/7379/charles-ropers-custom-irbrc-for-windows/</link>
<description><![CDATA[ <p>1. Make sure the following environment variable is set:

  WinXP:
  HOME=C:\Documents and Settings\*username*

  Vista:
  HOME=C:\Users\*username*

2. Create an .irbrc file in %HOME%:
  
  $ cd %HOME%
  $ touch .irbrc

If you don't have touch installed, use a good text editor to save the .irbrc. E Text Editor is good, as is Notepad++.

3. Install the following gems:

fastri
[http://eigenclass.org/hiki.rb?cmd=view&amp;p=fastri&amp;key=fastri]

map_by_method and what_methods
[http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/]

wirble
[http://pablotron.org/software/wirble/]

win32console
http://rubyforge.org/projects/winconsole/</p> ]]></description>
<pubDate>Fri, 18 Jul 2008 11:59:50 GMT</pubDate>
<guid>http://snipplr.com/view/7379/charles-ropers-custom-irbrc-for-windows/</guid>
</item>
<item>
<title>(JavaScript) Session variables without cookies - noah</title>
<link>http://snipplr.com/view/6205/session-variables-without-cookies/</link>
<description><![CDATA[ <p>"I never liked the JavaScript implementation of cookies. The storage space is limited (4 x 20 Kb per domain), the only data format that can be used is a string and the syntax for setting and getting cookies is unnecessarily complicated. On top of that they get added to the browser request header - and since a lot of corporate firewalls only accept a rather limited request header length they might prevent your pages from loading at all. (I've seen it happen - it's ugly.) So I've made a small script that let you use JavaScript session variables without using cookies. It will let you store 2 MB of data, with much less hassle than a cookie based solution."</p> ]]></description>
<pubDate>Tue, 13 May 2008 07:39:06 GMT</pubDate>
<guid>http://snipplr.com/view/6205/session-variables-without-cookies/</guid>
</item>
<item>
<title>(Bash) SVN Add Recursively - noah</title>
<link>http://snipplr.com/view/5745/svn-add-recursively/</link>
<description><![CDATA[ <p>This adds all new files to SVN recursively. It doesn't work for files that have spaces in their name, but why would you create a file with a space in its name in the first place?</p> ]]></description>
<pubDate>Tue, 08 Apr 2008 02:54:09 GMT</pubDate>
<guid>http://snipplr.com/view/5745/svn-add-recursively/</guid>
</item>
<item>
<title>(Bash) Reverting to the previous version of a file with subversion - noah</title>
<link>http://snipplr.com/view/5237/reverting-to-the-previous-version-of-a-file-with-subversion/</link>
<description><![CDATA[ <p>Sure that programmers know this, but me as a sysadmin does not use svn that much.</p> ]]></description>
<pubDate>Thu, 28 Feb 2008 11:51:44 GMT</pubDate>
<guid>http://snipplr.com/view/5237/reverting-to-the-previous-version-of-a-file-with-subversion/</guid>
</item>
<item>
<title>(Bash) Perl Search and Replace One-liner with xargs -0 - noah</title>
<link>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</link>
<description><![CDATA[ <p>\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.</p> ]]></description>
<pubDate>Fri, 15 Feb 2008 14:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</guid>
</item>
<item>
<title>(Perl) Count directory entries in given directories - noah</title>
<link>http://snipplr.com/view/4542/count-directory-entries-in-given-directories/</link>
<description><![CDATA[ <p>In response to a very simplistic solution suggestion using Shell, here is a basic version of what I use. The advantage of the solution below is that it is supposed to be much faster on directories with many files (I regularly use its full-blown version on directories with tens and hundreds of thousands of files).</p> ]]></description>
<pubDate>Sun, 13 Jan 2008 18:04:31 GMT</pubDate>
<guid>http://snipplr.com/view/4542/count-directory-entries-in-given-directories/</guid>
</item>
<item>
<title>(JavaScript) Cross Browser Add Event Listener - noah</title>
<link>http://snipplr.com/view/3116/cross-browser-add-event-listener/</link>
<description><![CDATA[ <p>Snatched this from another post and fixed something I found was not working.</p> ]]></description>
<pubDate>Mon, 02 Jul 2007 11:48:01 GMT</pubDate>
<guid>http://snipplr.com/view/3116/cross-browser-add-event-listener/</guid>
</item>
<item>
<title>(Bash) using find to list old files based on date - noah</title>
<link>http://snipplr.com/view/2851/using-find-to-list-old-files-based-on-date/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 12 Jun 2007 12:14:25 GMT</pubDate>
<guid>http://snipplr.com/view/2851/using-find-to-list-old-files-based-on-date/</guid>
</item>
<item>
<title>(JavaScript) calcular dimensiones pantalla, navegador, document.... - noah</title>
<link>http://snipplr.com/view/2824/calcular-dimensiones-pantalla-navegador-document/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 08 Jun 2007 03:53:17 GMT</pubDate>
<guid>http://snipplr.com/view/2824/calcular-dimensiones-pantalla-navegador-document/</guid>
</item>
<item>
<title>(CSS) YUI Reset CSS - noah</title>
<link>http://snipplr.com/view/2482/yui-reset-css/</link>
<description><![CDATA[ <p>The foundational YUI Reset CSS file creates a level playing field across A-grade browsers and provides a sound foundation upon which you can explicitly declare your intentions. It normalizes the default rendering of all HTML elements, for example it sets margin, padding, and border to 0, font sizes to YUI Font's default, italic and bold styles to normal, and list-style to none.</p> ]]></description>
<pubDate>Sun, 15 Apr 2007 15:06:13 GMT</pubDate>
<guid>http://snipplr.com/view/2482/yui-reset-css/</guid>
</item>
<item>
<title>(Bash) Twitter from the command line using curl - noah</title>
<link>http://snipplr.com/view/2352/twitter-from-the-command-line-using-curl/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 18 Mar 2007 11:06:02 GMT</pubDate>
<guid>http://snipplr.com/view/2352/twitter-from-the-command-line-using-curl/</guid>
</item>
<item>
<title>(CSS) Transparent PNG Fix for IE 5.5 &amp;amp; 6 - noah</title>
<link>http://snipplr.com/view/2243/transparent-png-fix-for-ie-55--6/</link>
<description><![CDATA[ <p>This is an excellent solution for fixing IE 6's inability to display transparent PNGs correctly.

Step 1: Include the following conditional comment the HEAD area of your document. You will need to update the CSS selector and also the path to whereever you put the .htc file.

&amp;lt;!--[if lte IE 6]&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
&amp;#160;&amp;#160;img { behavior: url(/css/iepngfix.htc) }
&amp;lt;/style&amp;gt;
&amp;lt;![endif]--&amp;gt;

Step 2: Create a transparent GIF that's 1x1 and save it as blank.gif in your images folder.

Step 3. Copy the source below and save it in a file called iepngfix.htc and place it in your CSS folder. Note, you may need to update the images folder to match the folder you're using on your site.

That's it. Once you have everything in place and assuming everything is referenced correclty, PNG transparency will work in IE 6.</p> ]]></description>
<pubDate>Wed, 07 Mar 2007 12:10:25 GMT</pubDate>
<guid>http://snipplr.com/view/2243/transparent-png-fix-for-ie-55--6/</guid>
</item>
<item>
<title>(JavaScript) Chain Javascript onload Events - noah</title>
<link>http://snipplr.com/view/2228/chain-javascript-onload-events/</link>
<description><![CDATA[ <p>This lets you attach a new onload event without overwriting any previous events.</p> ]]></description>
<pubDate>Wed, 28 Feb 2007 11:49:58 GMT</pubDate>
<guid>http://snipplr.com/view/2228/chain-javascript-onload-events/</guid>
</item>
<item>
<title>(Ruby) Update rdocs - noah</title>
<link>http://snipplr.com/view/2170/update-rdocs/</link>
<description><![CDATA[ <p>Use this to update rdoc at any time</p> ]]></description>
<pubDate>Wed, 14 Feb 2007 07:39:50 GMT</pubDate>
<guid>http://snipplr.com/view/2170/update-rdocs/</guid>
</item>
<item>
<title>(JavaScript) getMousePosition - noah</title>
<link>http://snipplr.com/view/708/getmouseposition/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Aug 2006 22:20:37 GMT</pubDate>
<guid>http://snipplr.com/view/708/getmouseposition/</guid>
</item>
<item>
<title>(SVN) Subversion quickstart - noah</title>
<link>http://snipplr.com/view/631/subversion-quickstart/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Aug 2006 23:56:07 GMT</pubDate>
<guid>http://snipplr.com/view/631/subversion-quickstart/</guid>
</item>
<item>
<title>(SVN) Remove All .svn Directories - noah</title>
<link>http://snipplr.com/view/201/remove-all-svn-directories/</link>
<description><![CDATA[ <p>Recursively removes all .svn directories within a directory</p> ]]></description>
<pubDate>Sun, 02 Jul 2006 16:42:33 GMT</pubDate>
<guid>http://snipplr.com/view/201/remove-all-svn-directories/</guid>
</item>
</channel>
</rss>