<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Otaqui.Com &#187; blogging</title>
	<atom:link href="http://otaqui.com/blog/tag/blogging/feed/" rel="self" type="application/rss+xml" />
	<link>http://otaqui.com/blog</link>
	<description>Pete Otaqui's blog about web development and everything else</description>
	<lastBuildDate>Wed, 23 Jun 2010 09:55:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>BBC Standards Ruby Gem</title>
		<link>http://otaqui.com/blog/526/bbc-standards-ruby-gem/</link>
		<comments>http://otaqui.com/blog/526/bbc-standards-ruby-gem/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:19:52 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[bbc]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=526</guid>
		<description><![CDATA[Thanks to some brilliant tidying up of my work by my good friend <a href="http://www.metade.org/">Patrick</a>, there is now a <a href="http://github.com/metade/bbc_standards">bbc_standards ruby gem</a> which you can use to validate pages against some of the <a href="http://www.bbc.co.uk/guidelines/futuremedia/technical/">BBC Technical Guidelines</a>]]></description>
			<content:encoded><![CDATA[<p>Thanks to some brilliant tidying up of my work by my good friend <a href="http://www.metade.org/">Patrick</a>, there is now a <a href="http://github.com/metade/bbc_standards">bbc_standards ruby gem</a> which you can use to validate pages against some of the <a href="http://www.bbc.co.uk/guidelines/futuremedia/technical/">BBC Technical Guidelines</a> (more specifically the &#8220;Semantic Mark-up&#8221; and &#8220;XHTML Integrity&#8221; standards).</p>
<p>This gem was originally designed to work with Cucumber, and initially was intended to just validate pages against the XHTML Strict doctype that BBC pages are usually required to use.  Since it uses Nokogiri for validation &#8211; against the XML Schema rather than the Doctype for what it&#8217;s worth &#8211; the testing is a) strict and b) *fast*.  There are no external webservice calls, so it is fine to test all page loads within Cucumber, even testing the same URI many times over (since the bottleneck will almost certainly be your app by some margin.</p>
<p>I&#8217;m currently working on a post about using the gem for the <a href="http://www.bbc.co.uk/blogs/webdeveloper/">BBC Web Developer blog</a>, but I thought I&#8217;d point any interested parties at the code here and now.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/526/bbc-standards-ruby-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo Pipe for Wikipedia Contribution Comments</title>
		<link>http://otaqui.com/blog/320/yahoo-pipe-for-wikipedia-contribution-comments/</link>
		<comments>http://otaqui.com/blog/320/yahoo-pipe-for-wikipedia-contribution-comments/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 03:48:51 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=320</guid>
		<description><![CDATA[If you edit Wikipedia and have any kind of tumblog or lifestream, you might have found that the RSS feed that the MediaWiki software gives you is not especially useful, listing as it does the entire edited page, making each item potentially huge. To fix this, I created a Yahoo Pipe showing Wikipedia Contributions &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>If you edit <a href="http://wikipedia.org">Wikipedia</a> and have any kind of tumblog or lifestream, you might have found that the RSS feed that the <a href="http://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> software gives you is not especially useful, listing as it does the entire edited page, making each item potentially huge.</p>
<p>To fix this, I created a <a href="http://pipes.yahoo.com/pipes/pipe.info?_id=ZK8__jzZ3RG8UgvOBRNMsA">Yahoo Pipe showing Wikipedia Contributions &#8211; comments only</a> which strips out the page content, leaving only the comment that was left.  I&#8217;ve also given it a URL parameter (&#8220;target&#8221;) so you can use it for your own (or any other) Wikipedia username.</p>
<p>The idea is relatively simple, but I&#8217;ll list the process if you are interested in learning about the power of Pipes:</p>
<ol>
<li>Add a &#8220;Text Input&#8221; and give it a name of &#8220;target&#8221; (which is the same as the URL parameter required for the Wikipedia Contributions feed for a given user)</li>
<li>Add a &#8220;URL Builder&#8221; with the basic URL for contributions and query parameters for name (which is &#8220;Special:Contributions&#8221;), feed (which is &#8220;rss&#8221;) and then one for target.</li>
<li>Connect the output of the Text Input to the target parameter in the URL Builder &#8211; now you can add &amp;target=MyUserName to pipe URL to change user</li>
<li>Add a &#8220;Fetch Feed&#8221; and connect it&#8217;s URL to the output of the URL Builder</li>
<li>Wikipedia pages can be long, too long in fact for Pipes&#8217; regular expression parser, so add a &#8220;Loop&#8221; and then drag a &#8220;Subtring&#8221; into it.  I trimmed the comments to 1024 in length, which I think is a reasonable amount in that it should be more than the length of the comment (actually limited to 200 characters) and any leading &#8220;junk&#8221; that we don&#8217;t want.  the Loop should work on, and assign results, to &#8220;item.description&#8221;</li>
<li>Now to strip out everything except the comment, add a Regex and connect the Loop&#8217;s output to it.  We need two rules running on item.description, the first to strip newlines (find: &#8220;\n&#8221;, replace with &#8220;&#8221;, &#8220;g&#8221; option) and then find the comment (find: &#8220;[^:]+:(.*)&amp;lt;\/p&amp;gt;.*&#8221;, replace with &#8220;$1&#8243;, no options).</li>
<li>Connect the Regex output to the Feed output &#8230; and you&#8217;re done!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/320/yahoo-pipe-for-wikipedia-contribution-comments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
