<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/html</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 21 Aug 2008 16:14:38 GMT</pubDate>
<item>
<title>(Ruby) Rendered WGet with Selenium</title>
<link>http://snipplr.com/view/7906/rendered-wget-with-selenium/</link>
<description><![CDATA[ <p>Created in response to a discussion about "ghosting," between Kord Campbell of Splunk and Christian Heilman of Yahoo! at Ajax World 2008.

IMPORTANT: The Selenium-RC server must be running on port 4444 (the default) and you must have Curl and Tidy installed on your system.   

NOTE: Diffing the rendered versus the "server" source.  This option works OK as a learning tool, but I need to do more in terms of normalizing the server source versus the rendered source.  I run both the "server" and innerHTML sources through Tidy, but unfortunately there still seems to be a lot of extraneous differences between them.

So while this works OK for downloading the rendered source via a Ruby script, I've got a ways to go before it can produce a reliable "rendered diff."</p> ]]></description>
<pubDate>Mon, 18 Aug 2008 09:23:43 GMT</pubDate>
<guid>http://snipplr.com/view/7906/rendered-wget-with-selenium/</guid>
</item>
<item>
<title>(JavaScript) List all class names used in a DOM tree</title>
<link>http://snipplr.com/view/6488/list-all-class-names-used-in-a-dom-tree/</link>
<description><![CDATA[ <p>Lists each CSS class name that is applied to an element within an HTML page.

Some applications suggested by this pattern are:
- List class names by frequency of use.
- List class names by what kind of element they are applied to.
- List class names that are only used once.</p> ]]></description>
<pubDate>Wed, 28 May 2008 17:31:41 GMT</pubDate>
<guid>http://snipplr.com/view/6488/list-all-class-names-used-in-a-dom-tree/</guid>
</item>
<item>
<title>(Perl) Generate XHTML on the command line with XML::API::XHTML</title>
<link>http://snipplr.com/view/4971/generate-xhtml-on-the-command-line-with-xmlapixhtml/</link>
<description><![CDATA[ <p>Build a simple XHTML document, format it with Tidy and print the result to "temp.html."</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:21:23 GMT</pubDate>
<guid>http://snipplr.com/view/4971/generate-xhtml-on-the-command-line-with-xmlapixhtml/</guid>
</item>
<item>
<title>(Bash) Validate XHTML with Tidy and/or OpenJade, just like the FF extension</title>
<link>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</link>
<description><![CDATA[ <p>Neither command will give any feedback unless invalid markup is found.</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:14:45 GMT</pubDate>
<guid>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</guid>
</item>
<item>
<title>(Bash) Tail requests for HTML files</title>
<link>http://snipplr.com/view/4069/tail-requests-for-html-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 05 Nov 2007 12:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/4069/tail-requests-for-html-files/</guid>
</item>
<item>
<title>(JavaScript) Find doubled IDs in the DOM</title>
<link>http://snipplr.com/view/3303/find-doubled-ids-in-the-dom/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jul 2007 14:51:33 GMT</pubDate>
<guid>http://snipplr.com/view/3303/find-doubled-ids-in-the-dom/</guid>
</item>
<item>
<title>(Perl) scraper</title>
<link>http://snipplr.com/view/3131/scraper/</link>
<description><![CDATA[ <p>For a while I used this to scrape weather.com.  Then they changed their HTML and my script broke.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:48:36 GMT</pubDate>
<guid>http://snipplr.com/view/3131/scraper/</guid>
</item>
<item>
<title>(Perl) Aggregate RSS feeds</title>
<link>http://snipplr.com/view/3130/aggregate-rss-feeds/</link>
<description><![CDATA[ <p>Expects a newline-delimited list of RSS feed urls.  Prints an HTML 4 page containing a grid of modules.  The modules contain hyperlinked feed headlines.

Very fragile, any invalid feed will break the whole aggregator.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:45:27 GMT</pubDate>
<guid>http://snipplr.com/view/3130/aggregate-rss-feeds/</guid>
</item>
<item>
<title>(Perl) Wrap tab-delimited strings in HTML</title>
<link>http://snipplr.com/view/3125/wrap-tabdelimited-strings-in-html/</link>
<description><![CDATA[ <p>A simple iterator that takes a tab-delimited file as input and prints an HTML document that contains the tabbed data.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:21:46 GMT</pubDate>
<guid>http://snipplr.com/view/3125/wrap-tabdelimited-strings-in-html/</guid>
</item>
<item>
<title>(Perl) Make a list of JPEGs into a slide show</title>
<link>http://snipplr.com/view/3123/make-a-list-of-jpegs-into-a-slide-show/</link>
<description><![CDATA[ <p>Show jpegs one-per-page on a series of hyperlinked web pages.  Purpose was to provide a linear viewing mechanism for jpegs on my Palm Tungsten C.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:02:15 GMT</pubDate>
<guid>http://snipplr.com/view/3123/make-a-list-of-jpegs-into-a-slide-show/</guid>
</item>
<item>
<title>(Perl) Show JPEGs in this directory all on one page</title>
<link>http://snipplr.com/view/3122/show-jpegs-in-this-directory-all-on-one-page/</link>
<description><![CDATA[ <p>Dumps a list of image names into an HTML document, wrapped in centered IMG tags.  Features the CENTER tag for added historical value.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:57:11 GMT</pubDate>
<guid>http://snipplr.com/view/3122/show-jpegs-in-this-directory-all-on-one-page/</guid>
</item>
<item>
<title>(Perl) show JPEGs in this directory in a simple HTML gallery</title>
<link>http://snipplr.com/view/3121/show-jpegs-in-this-directory-in-a-simple-html-gallery/</link>
<description><![CDATA[ <p>Creates an HTML page with the first image in the directory in the center.  Forward and Back buttons scroll through all the images in the directory in order.

This is how I lived before Firefox ~.^</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:53:26 GMT</pubDate>
<guid>http://snipplr.com/view/3121/show-jpegs-in-this-directory-in-a-simple-html-gallery/</guid>
</item>
<item>
<title>(Perl) insert ALT attribute into IMG tags that don't already have ALT attributes</title>
<link>http://snipplr.com/view/3120/insert-alt-attribute-into-img-tags-that-dont-already-have-alt-attributes/</link>
<description><![CDATA[ <p>At one point I wanted to give every image on my site an ALT tag.  I did, with some help from beginners@perl.org.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:43:16 GMT</pubDate>
<guid>http://snipplr.com/view/3120/insert-alt-attribute-into-img-tags-that-dont-already-have-alt-attributes/</guid>
</item>
<item>
<title>(Emacs Lisp) BASE tag insertion macro</title>
<link>http://snipplr.com/view/2777/base-tag-insertion-macro/</link>
<description><![CDATA[ <p>Insert a BASE HREF tag just after the head tag of an HTML document
Positions point just after the second forwardslash in "HTTP://"</p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:23:01 GMT</pubDate>
<guid>http://snipplr.com/view/2777/base-tag-insertion-macro/</guid>
</item>
<item>
<title>(Emacs Lisp) Command to search for TABLE tags</title>
<link>http://snipplr.com/view/2775/command-to-search-for-table-tags/</link>
<description><![CDATA[ <p>Search For Table Tags: find the next</p> ]]></description>
<pubDate>Fri, 01 Jun 2007 17:03:26 GMT</pubDate>
<guid>http://snipplr.com/view/2775/command-to-search-for-table-tags/</guid>
</item>
<item>
<title>(HTML) arrow entities</title>
<link>http://snipplr.com/view/2762/arrow-entities/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 30 May 2007 18:58:53 GMT</pubDate>
<guid>http://snipplr.com/view/2762/arrow-entities/</guid>
</item>
<item>
<title>(HTML) Reusable Box with Images and CSS (implements a non-semantic variant of Sliding Doors)</title>
<link>http://snipplr.com/view/2439/reusable-box-with-images-and-css-implements-a-nonsemantic-variant-of-sliding-doors/</link>
<description><![CDATA[ <p>Reusable balloon, built with JavaScript and css.  Expands horizontally (set in the CSS) and vertically (automatically) up the size of its component images.  This solution is not semantic, but it is flexible.

The goal was to implement a variant of Sliding Doors that could be boiled down to two snippets of code (one before the content container, and one after) and some CSS.

Expects 3 images, examples of which can be found here: http://onemorebug.com/meme.washer/code_examples/reusableBox/images

Also includes an example JavaScript implementation.</p> ]]></description>
<pubDate>Sat, 07 Apr 2007 09:47:05 GMT</pubDate>
<guid>http://snipplr.com/view/2439/reusable-box-with-images-and-css-implements-a-nonsemantic-variant-of-sliding-doors/</guid>
</item>
</channel>
</rss>