<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Two Ducks</title>
	<atom:link href="http://twoducks.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://twoducks.wordpress.com</link>
	<description>Flapping furiously but getting nowhere fast</description>
	<lastBuildDate>Thu, 03 Apr 2008 00:56:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='twoducks.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Two Ducks</title>
		<link>http://twoducks.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://twoducks.wordpress.com/osd.xml" title="Two Ducks" />
	<atom:link rel='hub' href='http://twoducks.wordpress.com/?pushpress=hub'/>
		<item>
		<title>LibXML2 namespace bug</title>
		<link>http://twoducks.wordpress.com/2008/04/03/libxml2-namespace-bug/</link>
		<comments>http://twoducks.wordpress.com/2008/04/03/libxml2-namespace-bug/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 00:56:24 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2008/04/03/libxml2-namespace-bug/</guid>
		<description><![CDATA[Problem: we have an XML document with multiple namespaces, one of which has no prefix: &#60;collection xmlns="http://www.loc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"&#62;  &#60;record&#62;   &#60;controlfield tag="001"&#62;714400&#60;/controlfield&#62; &#60;datafield tag="245" ind1="1" ind2="0"&#62;   &#60;subfield code="a"&#62;Crete&#60;/subfield&#62;   &#60;subfield code="h"&#62;[electronic resource] /&#60;/subfield&#62;   &#60;subfield code="c"&#62;by D.M. Davin.&#60;/subfield&#62;   &#60;/datafield&#62;  &#60;/record&#62; &#60;/collection&#62; Answer: Use XML::LibXML::XPathContext, defining the default namespace twice: use XML::LibXML; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=29&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Problem: we have an XML document with multiple namespaces, one of which has no prefix:</p>
<pre>&lt;collection xmlns="http://www.loc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"&gt;

 &lt;record&gt;

 	&lt;controlfield tag="001"&gt;714400&lt;/controlfield&gt;		&lt;datafield tag="245" ind1="1" ind2="0"&gt;

 		&lt;subfield code="a"&gt;Crete&lt;/subfield&gt;

 		&lt;subfield code="h"&gt;[electronic resource] /&lt;/subfield&gt;

 		&lt;subfield code="c"&gt;by D.M. Davin.&lt;/subfield&gt;

 	&lt;/datafield&gt;

 &lt;/record&gt;

&lt;/collection&gt;</pre>
<p>Answer: Use XML::LibXML::XPathContext, defining the default namespace twice:</p>
<pre>use XML::LibXML;

use XML::LibXML::XPathContext;my $parserTitles = XML::LibXML-&gt;new;

my $structAuthors = $parserTitles-&gt;parse_file( 'NZETC_marc.exp.200706211556.xml' );

my $rootTitles = XML::LibXML::XPathContext-&gt;new($structAuthors);

$rootTitles-&gt;registerNs('xsi', 'http://www.w3.org/2001/XMLSchema-instance');

$rootTitles-&gt;registerNs('m21', 'http://www.loc.gov/MARC21/slim');

my $titleNodes = ($rootTitles-&gt;findnodes("//m21:record/m21:datafield[attribute::tag='245']"));

if ($titleNodes)

{

 foreach my $titleNode ($titleNodes-&gt;get_nodelist)

 {

 	$titleNode = XML::LibXML::XPathContext-&gt;new( $titleNode );

 	$titleNode-&gt;registerNs('m21', 'http://www.loc.gov/MARC21/slim');

 	my $titlesControlFieldNode = ($titleNode-&gt;findnodes("../m21:controlfield[attribute::tag='001']"))[0];

 	my $bbid = $titlesControlFieldNode-&gt;findvalue('.');

 	my $titlesRecordNode = ($titleNode-&gt;findnodes("ancestor::m21:record"))[0];

 	my $titlesTitle = $titleNode-&gt;findvalue("m21:subfield[attribute::code='a']/.");

print "$titlesTitle [$bbid]\n";

 }

}</pre>
<p>Unfortunately this nasty hack also seems to be necessary when dealing with only a single namespace, but where that namespace has no prefix.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=29&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2008/04/03/libxml2-namespace-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>Girls&#8217; School Stories: a New Zealand Perspective</title>
		<link>http://twoducks.wordpress.com/2008/03/30/girls-school-stories-a-new-zealand-perspective/</link>
		<comments>http://twoducks.wordpress.com/2008/03/30/girls-school-stories-a-new-zealand-perspective/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 23:32:56 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/?p=28</guid>
		<description><![CDATA[This, I think, is going to be the title of my essay for my ENGL444 essay. It turns out that New Zealand, although not having an effusion of authors of school stories, does have at least one and possibly two worthy of study: Phillis Garrard Hilda at School: A New Zealand Story (1929) The Doings [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=28&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This, I think, is going to be the title of my essay for my ENGL444 essay. It turns out that New Zealand, although not having an effusion of authors of school stories, does have at least one and possibly two worthy of study:</p>
<ul>
<li>Phillis Garrard
<ul>
<li><i>Hilda at School: A New Zealand Story</i> (1929)</li>
<li><i>The Doings of Hilda</i> (1932)</li>
<li><i>Hilda&#8217;s Adventures</i> (1938)</li>
<li><i>Hilda Fifteen</i> (1944)</li>
</ul>
</li>
<li>Clare Mallory (Winifred Hall, nee McQuilkan) 1913-1991
<ul>
<li><i>Merry Begins</i> (1947)</li>
<li><i>Merry Again</i> (1947)</li>
<li><i>Merry Marches On</i> (1947)</li>
<li><i>Leith and Friends</i> (1950)</li>
<li><i>The Pen and Pencil Girls</i> (1949)</li>
<li><i>Juliet Overseas</i> (1948)</li>
<li><i>The New House at Winwood</i> (1949)</li>
<li><i>Tony Against the Prefects</i> (1949)</li>
<li><i>The Two Linties</i> (1950)</li>
<li><i>The League of the Smallest</i> (1951)</li>
</ul>
</li>
</ul>
<p>As far as boys&#8217; school stories, there appears to only be one author that fits into the genre, with C. R. Allen&#8217;s <i>A Poor Scholar: A Tale of Progress</i> (1936)</p>
<p>Clare Mallory in particular sounds interesting:</p>
<ul>
<li>Her books were regarded as being more well written than most of the genre, and if at times they imitated (<i>Juliet Overseas</i> is inspired by Brenda Page&#8217;s <i>Schoolgirl Rivals</i>, while <i>Leith and Friends</i> is modelled on Josephine Elder&#8217;s <i>Evelyn Finds Herself</i>), they surpassed their primogenitors. Interestingly, these antecedents, both being published in 1927, would have most likely been read by Winnifred when a 14-year-old schoolgirl.</li>
</ul>
<p>There&#8217;s also the few school stories published amongst the Whitcomb and Tombs Story Books output:</p>
<ul>
<li>Hilda Bridges
<ul>
<li><i>Bobby&#8217;s First Term: A School Boy&#8217;s Story</i> (1925)</li>
<li><i>Connie of the Fourth Form</i> (1930)</li>
</ul>
</li>
<li>Lillian Maxwell Pyke
<ul>
<li><i>Squirmy&amp; Bubbles: A School Story for Girls</i> (1924)</li>
</ul>
</li>
<li>Josephine Howe
<ul>
<li><i>TheSchool in Cigam Square</i> (1946)</li>
</ul>
</li>
</ul>
<p><b>Links:</b></p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Clare_Mallory">Wikipedia entry on Clare Mallory</a></li>
<li>Collecting Books and Magazines <a href="http://www.collectingbooksandmagazines.com/mallory.html">writeup of Clare Mallory</a>, included <a href="http://www.collectingbooksandmagazines.com/mallory.html#NOVELS">Otago Daily Times excerpt</a></li>
<li><a href="http://www.ju90.co.uk/indexsho.htm">Virtual Worlds of Girls</a></li>
<li><a href="http://en.wikipedia.org/wiki/School_story">Wikipedia entry on School Stories</a></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=28&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2008/03/30/girls-school-stories-a-new-zealand-perspective/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up Cocoon to use XSLT 2.0</title>
		<link>http://twoducks.wordpress.com/2008/03/08/setting-up-cocoon-to-use-xslt-20/</link>
		<comments>http://twoducks.wordpress.com/2008/03/08/setting-up-cocoon-to-use-xslt-20/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 00:06:33 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/?p=27</guid>
		<description><![CDATA[Notes on setting up Cocoon to use XSLT 2.0 under Tomcat are already on the web, but in the spirit of repitition: For support of XSLT 2.0, you need to add and configure the Saxon 9 libraries. Get the Saxon-B download from here. Then extract all the .jar libraries into cocoon/WEB-INF/lib. Now we need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=27&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Notes on setting up <a href="http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;p=2595&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Cocoon to use XSLT 2.0 under Tomcat</a> are already on the web, but in the spirit of repitition:</p>
<ul>
<li>For support of XSLT 2.0, you need to add and configure the Saxon 9 libraries. Get the Saxon-B download from <a href="http://saxon.sourceforge.net/">here</a>. Then extract all the <code>.jar</code> libraries into <code>cocoon/WEB-INF/lib</code>.</li>
<li>Now we need to configure Cocoon so that Saxon can be called. First, open cocoon/WEB-INF/cocoon.xconf, and find the bit that refers to Saxon XSLT, which is commented out by default. Uncomment the code and change it according to the instructions in the file, so that it enables Saxon 9:
<pre>      	&lt;component logger="core.xslt"
                   role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
                   class="org.apache.cocoon.components.xslt.TraxProcessor"&gt;
            &lt;parameter name="use-store" value="true"/&gt;
            &lt;parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/&gt;
          &lt;/component&gt;</pre>
</li>
<li>   Now we need to edit <code>cocoon/sitemap.xmap</code> to enable the Saxon transformer. In the <code>&lt;map:transformers&gt;</code> section, add this below the other XSLT transformers:
<pre>      &lt;map:transformer name="saxon" pool-grow="2" pool-max="32" pool-min="8"
      		     src="org.apache.cocoon.transformation.TraxTransformer"&gt;
      	    &lt;use-request-parameters&gt;false&lt;/use-request-parameters&gt;
      	    &lt;use-browser-capabilities-db&gt;false&lt;/use-browser-capabilities-db&gt;
      	    &lt;xslt-processor-role&gt;saxon&lt;/xslt-processor-role&gt;
          &lt;/map:transformer&gt;</pre>
</li>
<li>Add a suitable match to the pipeline:
<pre>   &lt;map:match pattern="*.xml"&gt;
     &lt;map:generate src="text/{1}.txt" type="text"/&gt;
     &lt;map:transform type="saxon" src="xsl/tokenise-string-to-xml.xsl"/&gt;
     &lt;map:serialize type="xml"/&gt;
   &lt;/map:match&gt;</pre>
</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=27&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2008/03/08/setting-up-cocoon-to-use-xslt-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>Editing Ruby using UltraEdit</title>
		<link>http://twoducks.wordpress.com/2008/01/22/editing-ruby-using-ultraedit/</link>
		<comments>http://twoducks.wordpress.com/2008/01/22/editing-ruby-using-ultraedit/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 05:58:57 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2008/01/22/editing-ruby-using-ultraedit/</guid>
		<description><![CDATA[I&#8217;ve long been a user of UltraEdit for writing scripts where there&#8217;s no particularly good language-specific IDE (and by good I mean responsive and with features that don&#8217;t get in your way, rather than overloaded with features but slow as a result). Writing Perl scripts in UltraEdit is made easier with syntax highlighting and the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=24&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve long been a user of <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://www.ultraedit.com/">UltraEdit</a> for writing scripts where there&#8217;s no particularly good language-specific IDE (and by good I mean responsive and with features that don&#8217;t get in your way, rather than overloaded with features but slow as a result).</p>
<p>Writing Perl scripts in UltraEdit is made easier with syntax highlighting and the ability to hook the command line into UltraEdit so that I can quickly perform syntax-checking.</p>
<p>As I&#8217;m in the process of learning Ruby, I thought I&#8217;d set UltraEdit up in a similar fashion, so that I can enjoy the same features while writing Ruby scripts. It&#8217;s easy as:</p>
<ol>
<li>Setting the tool configuration to do the syntax checking:<br />
<a href="http://twoducks.files.wordpress.com/2008/01/ruby.gif" title="UltraEdit Ruby Configuration"><img src="http://twoducks.files.wordpress.com/2008/01/ruby.gif?w=480" alt="UltraEdit Ruby Configuration" /></a></li>
<li>Add the following contents into the UltraEdit <b>C:\Program Files\UltraEdit\WORDFILE.TXT</b>:</li>
</ol>
<blockquote><p><code>/L10"Ruby" Line Comment Num = 2# Block Comment On = =begin Block Comment Off = =end String Chars='" Escape Char = \ File Extensions = rb rbw<br />
/Indent Strings = "do" "begin" "{" "|"<br />
/Unindent Strings = "}" "end"<br />
/Delimiters =  ~^[]{}()&lt;&gt;.,+ *|/'    "<br />
/Function String = "%[ ^t]++^(module[ ^t]+[a-z0-9_.]+^)[ ^p^r^n]"<br />
/Function String 1 = "%[ ^t]++^(class[ ^t]+[a-z0-9_.]+^)[ ^p^r^n]"<br />
/Function String 2 = "%[ ^t]++^(def[ ^t]+[a-z0-9_.]+^)[ ^p^r^n(]"<br />
/C1"Ruby Keywords"<br />
(<br />
)<br />
#<br />
#{<br />
{<br />
}<br />
__FILE__ __LINE__<br />
alias and<br />
begin break<br />
case class<br />
def defined? do<br />
else elsif end ensure<br />
false for<br />
if in<br />
module<br />
next nil not<br />
or<br />
quit<br />
redo rescue retry return<br />
self super<br />
then true<br />
undef unless until<br />
when while<br />
yield<br />
BEGIN<br />
END<br />
/C2"Ruby Classes/Exceptions"<br />
`<br />
ArgumentError Array<br />
Bignum Binding<br />
Class Complex ConditionVariable Continuation<br />
DelegateClass Dir<br />
English EOFError Errno::ENOENT Errno::EPERM Exception<br />
FalseClass Fatal File File::Stat Fixnum Float FloatDomainError<br />
GetoptLong<br />
Hash<br />
IndexError Integer Interrupt IO IOError<br />
LoadError LocalJumpError<br />
MatchData Method Module Mutex<br />
NameError NilClass NoMemoryError NotImplementedError Numeric<br />
Object<br />
Proc Pstore<br />
Range RangeError Regexp RegexpError RuntimeError<br />
ScriptError SecurityError SimpleDelegator Singleton StandardError String<br />
Struct Struct::Tms Symbol<br />
SyntaxError SystemCallError SystemExit SystemStackError<br />
Tempfile Thread ThreadGroup Time TrueClass TypeError<br />
WeakRef<br />
ZeroDivisionError<br />
/C3"Ruby Libraries/Modules"<br />
mkmf<br />
win32api win32ole<br />
BasicSocket Benchmark<br />
CGI Comparable Config CONFIG<br />
DATA Date<br />
Enumerable Errno<br />
FALSE FileTest Find FTP<br />
GC<br />
HTTP HTTPResponse<br />
IPSocket<br />
Kernel<br />
Marshal<br />
Math<br />
NET Net::FTP Net::HTTP Net::HTTPResponse Net::POP Net::APOP Net::POPMail<br />
Net::SMTP Net::Telnet NIL<br />
ObjectSpace<br />
Observable<br />
ParseDate POP POPMail Process<br />
Session SMTP Socket SOCKSSocket Stat STDERR STDIN STDOUT<br />
TCPServer TCPSocket Telnet Tms TOPLEVEL_BINDING TRUE<br />
UDPSocket UNIXServer UNIXSocket<br />
Win32API WIN32OLE WIN32OLE_EVENT<br />
/C4"Ruby Constants/Strings"<br />
"<br />
cutime cstime<br />
domain<br />
expires<br />
secure stime<br />
AF_APPLETALK AF_AX25 AF_INET6 AF_INET AF_IPX AF_UNIX AF_UNSPEC<br />
AI_ALL AI_CANONNAME AI_MASK AI_NUMERICHOST AI_PASSIVE AI_V4MAPPED_CFG<br />
ARGF ARGV<br />
Complex::I<br />
Default<br />
E EXTENDED<br />
EAI_ADDRFAMILY EAI_AGAIN EAI_BADFLAGS EAI_BADHINTS EAI_FAIL EAI_FAMILY<br />
EAI_MAX EAI_MEMORY<br />
EAI_NODATA EAI_NONAME EAI_PROTOCOL EAI_SERVICE EAI_SOCKTYPE EAI_SYSTEM<br />
FTP_PORT<br />
IGNORECASE<br />
IP_ADD_MEMBERSHIP IP_DEFAULT_MULTICAST_LOOP IP_DEFAULT_MULTICAST_TTL<br />
IP_MAX_MEMBERSHIPS IP_MULTICAST_IF IP_MULTICAST_LOOP IP_MULTICAST_TTL<br />
LOOKUP_INET6 LOOKUP_INET LOOKUP_UNSPEC<br />
MSG_DONTROUTE MSG_OOB MSG_PEEK<br />
MULTILINE<br />
PF_APPLETALK PF_AX25 PF_INET6 PF_INET PF_IPX PF_UNIX PF_UNSPEC<br />
PI PLATFORM PRIO_PGRP PRIO_PROCESS PRIO_USER<br />
RUBY_PLATFORM RUBY_RELEASE_DATE RUBY_VERSION<br />
SOCK_DGRAM SOCK_PACKET SOCK_RAW SOCK_RDM SOCK_SEQPACKET SOCK_STREAM<br />
SOL_ATALK SOL_AX25 SOL_IPX SOL_IP SOL_SOCKET SOL_TCP SOL_UDP<br />
SOPRI_BACKGROUND SOPRI_INTERACTIVE SOPRI_NORMAL<br />
SO_BROADCAST SO_DEBUG SO_DONTROUTE SO_ERROR SO_KEEPALIVE SO_LINGER<br />
SO_NO_CHECK SO_OOBINLINE SO_PRIORITY SO_RCVBUF SO_REUSEADDR SO_SNDBUF<br />
SO_TYPE<br />
TCP_MAXSEG TCP_NODELAY<br />
WIN32OLE::VERSION WNOHANG WUNTRACED<br />
/C5"Ruby Methods"<br />
. .. ...<br />
! !=<br />
~<br />
% %= %q %w %Q %W<br />
@<br />
&amp; &amp;&amp; &amp;=<br />
* ** *= **=<br />
+ += +@<br />
- -= -@<br />
&gt; &gt;= &gt;&gt; &gt;&gt;=<br />
&lt; &lt;= &lt;&lt;= &lt;&gt; &lt;&lt; &lt;=&gt;<br />
= == === =&gt; =~<br />
[ []=<br />
]<br />
| || |= ||=<br />
^ ^=<br />
::<br />
// /= /<br />
_id2ref __id__ __send__<br />
abort abort_on_exception abort_on_exception! abs abs2 add alias_method<br />
alive? ancestors<br />
append_features arg arity asctime assoc at atan2 atime<br />
attr attr_accessor attr_reader attr_writer at_exit autoload<br />
backtrace basename between? binding binmode blksize blockdev? block_given?<br />
blocks<br />
broadcast<br />
call callcc caller capitalize capitalize! casefold? catch ceil center chomp<br />
chomp! chop chop!<br />
chardev? chr chdir chmod chown chroot class_eval class_variables clear clone<br />
close closed? close_read close_write cmp coerce collect collect!<br />
compact compact! compare compile concat conjugate<br />
const_defined? const_get const_set constants copy cp cos count<br />
create_makefile critical critical= crypt ctime current<br />
day default default= define_finalizer delete delete! delete_at delete_if<br />
detect dev<br />
directory? dirname dir_config disable display divmod downcase downcase!<br />
downto dump dup<br />
each each_byte each_index each_key each_line each_object each_pair<br />
each_with_index<br />
egid egid= empty? enable england entries<br />
eof eof? eql? equal? error? error_message escape euid euid= eval exception<br />
exclude_end?<br />
exec executable? executable_real?<br />
exist? exist2? existw? exit exit! exp expand_path extend extend_object<br />
fail fcntl fetch file? fileno fill find find_all find_library finite? first<br />
flatten flatten!<br />
flock flush foreach fork format freeze frexp frozen? ftype<br />
garbage_collect get getc getogrp getpriority gets getwd get_option<br />
gid gid= glob global_variables<br />
gm gmt? gmtime gregorian gregorian_leap? grep grpowned? gsub gsub!<br />
has_key? has_value? hash have_func have_header have_library hex hour<br />
id id2name image include include? included_modules index indexes indices<br />
inherited initialize integer? iterator?<br />
intern ino inspect install<br />
instance_eval instance_methods instance_of? instance_variables ioctl is_a?<br />
isatty isdst italy<br />
jd join julian julian_leap?<br />
kcode key? keys kill kind_of?<br />
lambda last last_match ldexp leap? length lineno lineno= link list ljust<br />
load local local_variables<br />
localtime lock locked? log log10 loop lstat<br />
main makedirs makepath map map! match max mday member? members message<br />
method<br />
method_added method_defined? method_missing methods min mjd<br />
mkdir mktime mode module_eval module_function modulo mon month move mv mtime<br />
name nan? nesting new new1 new2 new3 newsg neww next! nil? nitems nlink<br />
nonzero? now ns?<br />
oct open ordering ordering= os? owned?<br />
p pack parsedate pass path pid pipe pipe? polar pop popen pos pos= ppid<br />
print printf priority priority=<br />
private private_methods proc protected protected_methods prune<br />
public_methods<br />
private_class_method private_instance_methods protected_instance_methods<br />
public_class_method public_instance_methods<br />
public push putc puts pwd<br />
quiet quiet= quiet? quote<br />
raise rand rassoc reject! read readable? readable_real?<br />
readchar readline readlines readlink real rehash reject reject!<br />
remainder remove_const remove_method rename reopen replace require<br />
respond_to? restore reverse reverse! reverse_each rewind rdev rindex rjust<br />
rmdir<br />
rm_f round run<br />
safe_level safe_unlink scan sec seek select send setgid? setpgid setpgrp<br />
setpriority<br />
setsid setuid? set_backtrace set_options set_trace_func sg<br />
shift signal sin singleton_methods singleton_method_added size size? sleep<br />
slice slice! socket? sort sort! source split sprintf squeeze squeeze! sqrt<br />
srand start<br />
stat status step sticky? stop stop? store strftime strip strip! sub sub!<br />
succ succ! superclass<br />
symlink symlink? sync synchronize sync= syscall syscopy sysread system<br />
syswrite swapcase swapcase!<br />
taint tainted? tell terminate test throw timeout times today to_a to_ary<br />
to_f to_i<br />
to_io to_proc to_r to_s to_str tr tr! trace_var trap try_lock tr_s tr_s!<br />
truncate tty? tv_sec tv_usec type<br />
uid uid= umask undef_method ungetc uniq uniq! unlink unlock unpack unshift<br />
untaint untrace_var<br />
upcase upcase! update upto usec utc utc? utime<br />
value? values var<br />
wait wait2 waitpid waitpid2 wakeup wday weakref_alive? write writable?<br />
writable_real?<br />
yday year<br />
zero? zone<br />
Comparisons<br />
/C6"Ruby Library Methods"<br />
a accept addr add_observer all<br />
base bind binmode= blockquote<br />
caption changed changed? checkbox checkbox_group cmd code const_load<br />
content_type cookies connect count_observers<br />
debug_mode debug_mode= delete_observer delete_observers<br />
dir do_not_reverse_lookup do_not_reverse_lookup=<br />
escapeElement escapeHTML<br />
file_field form for_fd<br />
getaddress getaddrinfo getbinaryfile gethostbyaddr gethostbyname gethostname<br />
getnameinfo getservbyname getpeername getsockname getsockopt gettextfile<br />
head header hidden html<br />
img img_button invoke<br />
lastresp listen local_path login lookup_order lookup_order= ls<br />
mails message_loop multipart_form<br />
notify_observers<br />
on_event original_filename out<br />
pair params parse passive passive= password_field peeraddr popup_menu port<br />
post pretty<br />
putbinaryfile puttextfile<br />
radio_button radio_groupready recv recvfrom reset resume resume=<br />
retrbinary retrlinew return_code rfc1123_date<br />
scrolling_list sendmail setsockopt shutdown socketpair storbinary storlines<br />
submit<br />
telnetmode telnetmode= text_field textarea top<br />
uidl unescape unescapeElement unescapeHTML<br />
waitfor welcome<br />
Call<br />
/C7"Block-to-Proc Variable/Instance Variable/Class Variable"<br />
** &amp;a &amp;b &amp;c &amp;d &amp;e &amp;f &amp;g &amp;h &amp;i &amp;j &amp;k &amp;l &amp;m &amp;n &amp;o &amp;p &amp;q &amp;r &amp;s &amp;t &amp;u &amp;v &amp;w &amp;x &amp;y &amp;z<br />
** @a @b @c @d @e @f @g @h @i @j @k @l @m @n @o @p @q @r @s @t @u @v @w @x<br />
@y @z @@a @@b @@c @@d @@e @@f @@g @@h @@i @@j @@k @@l @@m @@n @@o @@p @@q @@r<br />
@@s @@t @@u @@v @@w @@x @@y @@z<br />
/C8"Constant/Global/Symbol"<br />
** A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />
** $<br />
** :</code></p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=24&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2008/01/22/editing-ruby-using-ultraedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>

		<media:content url="http://twoducks.files.wordpress.com/2008/01/ruby.gif" medium="image">
			<media:title type="html">UltraEdit Ruby Configuration</media:title>
		</media:content>
	</item>
		<item>
		<title>Tag clouds: easy as falling off a log</title>
		<link>http://twoducks.wordpress.com/2008/01/10/tag-clouds-easy-as-falling-off-a-log/</link>
		<comments>http://twoducks.wordpress.com/2008/01/10/tag-clouds-easy-as-falling-off-a-log/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 20:52:02 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2008/01/10/tag-clouds-easy-as-falling-off-a-log/</guid>
		<description><![CDATA[Yesterday I had a discussion about tag clouds, as a result of a heads-up about an NZETC example tag cloud generated by the Many Eyes site, and realised that this could be very useful for allowing the visualisation of names mentioned in each of the texts on the NZETC site, and is also pretty easy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=23&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I had a discussion about tag clouds, as a result of a heads-up about an <a href="http://services.alphaworks.ibm.com/manyeyes/view/SK-wGLsOtha66BU7dPvJL2-">NZETC example tag cloud generated by the Many Eyes site</a>,  and realised that this could be very useful for allowing the visualisation of names mentioned in each of the texts on the NZETC site, and is also pretty easy to implement.</p>
<p>After finding <a href="http://poeticcode.wordpress.com/2007/01/27/tag-cloud-algorithmlogicformula/">a post about an Javascript algorithm for tag clouds</a>, I rolled a simple example to show how easy it actually is:</p>
<pre>&lt;html&gt;

&lt;head&gt;
&lt;script&gt;
function processCloud(id,max) {
	var cloud = document.getElementById(id);
	if(!cloud) return;

	var tags = cloud.getElementsByTagName("a");
	for(var i=0;i&lt;tags.length;i++) {
		var tag = tags[i];
		var title = tag.getAttribute("title");
		var f = title.substring(title.indexOf(":")+1);
		var fontSize = (150.0*(1.0+(1.5*f-max/2)/max))+"%";
		tag.style.fontSize = fontSize;
	}
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body onload="processCloud('cloud', 100);"&gt;

	&lt;div id='cloud'&gt;
		&lt;a href='#' title='Joseph Banks:50'&gt;Joseph Banks&lt;/a&gt;
		&lt;a href='#' title='William Bligh:2'&gt;William Bligh&lt;/a&gt;
		&lt;a href='#' title='James Cook:80'&gt;James Cook&lt;/a&gt;
		&lt;a href='#' title='David Samwell:12'&gt;David Samwell&lt;/a&gt;
		&lt;a href='#' title='Tobia Furneaux:20'&gt;Tobia Furneaux&lt;/a&gt;
		&lt;a href='#' title='Omai:3'&gt;Omai&lt;/a&gt;
	&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=23&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2008/01/10/tag-clouds-easy-as-falling-off-a-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>NZETC: Trackbacks now added</title>
		<link>http://twoducks.wordpress.com/2007/10/17/nzetc-trackbacks-now-added/</link>
		<comments>http://twoducks.wordpress.com/2007/10/17/nzetc-trackbacks-now-added/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 04:04:54 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2007/10/17/nzetc-trackbacks-now-added/</guid>
		<description><![CDATA[Just been adding Haloscan trackbacks to the NZETC blog. So, as a test, I think I&#8217;ll link to the post about using iPod Touch devices to view eBooks. Which reminds me, that I need to add a post to the NZETC blog about FreeBase (great technology, bad name). I must say, it feels a little [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=22&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just been adding <a href="http://www.haloscan.com">Haloscan</a> trackbacks to the <a href="http://nzetc.blogspot.com/">NZETC blog</a>.</p>
<p>So, as a test, I think I&#8217;ll link to the post about <a href="http://nzetc.blogspot.com/2007/09/iphone-for-ebooks.html">using iPod Touch devices to view eBooks</a>.</p>
<p>Which reminds me, that I need to add a post to the <a href="http://nzetc.blogspot.com/">NZETC blog</a> about <a href="http://www.freebase.com">FreeBase</a> (great technology, bad name). I must say, it feels a little funny to be creating circular blog references.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=22&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2007/10/17/nzetc-trackbacks-now-added/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>wxJavascript: a great find</title>
		<link>http://twoducks.wordpress.com/2007/10/05/wxjavascript-a-great-find/</link>
		<comments>http://twoducks.wordpress.com/2007/10/05/wxjavascript-a-great-find/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 06:14:59 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2007/10/05/wxjavascript-a-great-find/</guid>
		<description><![CDATA[I&#8217;ve just been installing and trying out wxJavascript, which is a very useful server-side javascript library that, for me, seems to solve the problem of running javascript server-side for the online word processor project (current code-name: &#8220;Remote Writer&#8221;). Amongst other things, it has an Apache module (mod_wxjs)and support for sqlite, both quite important for this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=21&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just been installing and trying out <a href="http://www.wxjavascript.net/index.html">wxJavascript</a>, which is a very useful server-side javascript library that, for me, seems to solve the problem of running javascript server-side for the online word processor project (current code-name: &#8220;Remote Writer&#8221;).</p>
<p>Amongst other things, it has an Apache module (<a href="http://www.wxjavascript.net/mod_wxjs/example.html">mod_wxjs</a>)and support for <a href="http://www.sqlite.org/sqlite.html">sqlite</a>, both quite important for this project.</p>
<p>The configuration wasn&#8217;t too bad, and consisted of following the <a href="http://www.wxjavascript.net/index.html">quick start instructions</a> on the website, as well as:</p>
<ol>
<li> Experiencing a problem with adding the wxWidget modules in the Apache httpd.conf file, so what I ended up with was:
<pre># mod_wxjs server-side javascript stuff (see: http://www.wxjavascript.net/mod_wxjs/index.html)</pre>
<pre>LoadFile d:/wxjs/bin/libapreq2.dll</pre>
<pre>LoadModule apreq_module "d:/wxjs/bin/mod_apreq2.so"</pre>
<pre>#LoadFile "d:/wxjs/bin/wxmsw28ud_core_vc_custom.dll"</pre>
<pre>#LoadFile "d:/wxjs/bin/wxbase28ud_net_vc_custom.dll"</pre>
<pre>#LoadFile "d:/wxjs/bin/wxmsw28ud_adv_vc_custom.dll"</pre>
<pre>LoadModule wxjs_module "d:/wxjs/bin/mod_wxjs.dll"</pre>
<pre>AddHandler wxjs .wxjs</pre>
<pre>wxJS_Modules "d:/wxjs/bin/modules.xml"</pre>
<pre>wxJS_RtSize 1M</pre>
<pre>wxJS_CtxSize 8K</pre>
<p>Which is not too bad I think, as for the work I want to do, hopefully I won&#8217;t need the wxWidgets.</li>
<li> I had to play around with the modules.xml file, reordering the entry for wxJS_gui.dll to the bottom of the list, as otherwise, when Apache tried to load these modules, it produced an error message
<pre>Error: Failed to load shared library 'd:\\wxjs\\modules\\wxJS_gui.dll'</pre>
<pre>(error 126: the specified module could not be found.)</pre>
<pre>Error: wxJS: Module gui(d:\\wxjs\\modules\\wxJS_gui.dll )not loaded</pre>
<p>It then apparently refused to load the following modules, which I would detect in the log after trying to run a script using the sqlite module:</p>
<pre>Error: wxJS: D:\\Program Files\\...\\maori-bibliography\\dbtest.wxjs(3) :</pre>
<pre>ReferenceError: sqlite is not defined</pre>
</li>
</ol>
<p>I then wanted to run the following test script to check the Sqlite connection:</p>
<pre>var exists = false;</pre>
<pre>var created = false;</pre>
<pre>var handle = new sqlite.Database("htdocs\\gears\\editor\\tinymce\\maori-bibliography\\store.db");</pre>
<pre>if ( handle.opened )</pre>
<pre>{</pre>
<pre>    var pragmaStmt = handle.prepare("PRAGMA user_version");</pre>
<pre>    var pragma = pragmaStmt.fetchArray();</pre>
<pre>    if ( pragma[0] == 0 )</pre>
<pre>    {</pre>
<pre>        // Create the tables and insert some example data</pre>
<pre>        handle.exec("CREATE TABLE authors(id INTEGER PRIMARY KEY, firstname TEXT, lastname INTEGER)");</pre>
<pre>        handle.exec("CREATE TABLE books(id INTEGER PRIMARY KEY, title TEXT, fk_author_id INTEGER)");</pre>
<pre>        handle.exec("PRAGMA user_version = 1");</pre>
<pre>        handle.exec("INSERT INTO authors(id, firstname, lastname) VALUES(1, 'JRR', 'Tolkien')");</pre>
<pre>        handle.exec("INSERT INTO authors(id, firstname, lastname) VALUES(2, 'John', 'Grisham')");</pre>
<pre>        handle.exec("INSERT INTO books(id, title, author) VALUES(1, 'Lords of the ring', 1)");</pre>
<pre>        handle.exec("INSERT INTO books(id, title, author) VALUES(2, 'The firm', 2)");</pre>
<pre>        created = true;</pre>
<pre>    } else {</pre>
<pre>        exists = true;</pre>
<pre>    }</pre>
<pre>}</pre>
<pre>else</pre>
<pre>{</pre>
<pre>        handle = null;</pre>
<pre>}</pre>
<pre>
response.print("&lt;html&gt;&lt;head&gt;&lt;title&gt;wxJS database test program&lt;/title&gt;&lt;/head&gt;&lt;body&gt;");</pre>
<pre>response.print("&lt;b&gt;Was the database already present?:" + exists + "&lt;/b&gt;&lt;br/&gt;");</pre>
<pre>response.print("&lt;b&gt;Were the tables created?:" + created + "&lt;/b&gt;&lt;br/&gt;");</pre>
<pre>response.print("&lt;/body&gt;&lt;/html&gt;");</pre>
<p>However, running this test script wasn&#8217;t without some apparent wrinkles:</p>
<ol>
<li>Once I got this one worked out, I ran the script to create a database, which seemed to work fine, but the created Sqlite database didn&#8217;t appear in the home directory of the script, where I would have thought it would appear.<br />
It turns out that mod_wxjs seems to default to creating Sqlite databases in the Apache2.2 directory.<br />
So, in my script I had to specify the subpath to the location where I wanted the database created.</p>
<pre>var handle = new sqlite.Database("htdocs\\gears\\editor\\tinymce\\maori-bibliography\\store.db");</pre>
</li>
<li>The created database was not accessible via the command-line Sqlite3.exe tool, at least not until I&#8217;d shut down Apache (fair enough I suppose, as it created journalled entries in an associated file which were not applied until Apache shutdown).</li>
<li>It seemed to ignore the Pragma identifying whether the database had been created, being quite happy to recreate the database. This errant behaviour stopped after I restarted Apache (i.e. after it had written out the journalled entries)</li>
</ol>
<p>However, to date it seems to be usabl, and a great solution at that!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=21&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2007/10/05/wxjavascript-a-great-find/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoiding the rigours of TinyMCE&#8217;s cleanup process</title>
		<link>http://twoducks.wordpress.com/2007/10/03/avoiding-the-rigours-of-tinymces-cleanup-process/</link>
		<comments>http://twoducks.wordpress.com/2007/10/03/avoiding-the-rigours-of-tinymces-cleanup-process/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 20:35:00 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2007/10/03/avoiding-the-rigours-of-tinymces-cleanup-process/</guid>
		<description><![CDATA[I&#8217;ve been working away at the online word processor that I&#8217;m developing, based on TinyMCE, and struck the problem that, by default, TINYMCE cleans up the HTML code of the entered content. In my case this is a problem, as I&#8217;m trying to make use of standard HTML attributes in order to persist information, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=19&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working away at the online word processor that I&#8217;m developing, based on <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Index">TinyMCE</a>, and struck the problem that, by default,  TINYMCE cleans up the HTML code of the entered content.</p>
<p>In my case this is a problem, as I&#8217;m trying to make use of standard HTML attributes in order to persist information, and still let the user easily edit that information. For example, I want them to be able to style certain text as being a name of some sort: personal,  geographic, organisation, title etc. I then want to be able to key that name with an authorative identifier, but let them continue to work on the content.</p>
<p>For example, I want text to be displayed to the user something like  this:<br />
<img src="http://twoducks.files.wordpress.com/2007/10/temp1.gif?w=480" alt="Screenshot of formatted text" /></p>
<p>But I want the HTML code for this to appear something like this:</p>
<pre>&lt;span class="nameWork" title="name-010203"&gt;
	Reflections of a Black Woman in a White Man's World
&lt;/span&gt;</pre>
<p>After a bit of hunting around, I found the answer, which is to use the option to specify <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/extended_valid_elements">extended valid elements</a> when initialising the instance of the editor:</p>
<pre>tinyMCE.init({</pre>
<pre>...</pre>
<pre>extended_valid_elements : "span[class|title]",</pre>
<pre>...</pre>
<pre>});</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=19&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2007/10/03/avoiding-the-rigours-of-tinymces-cleanup-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>

		<media:content url="http://twoducks.files.wordpress.com/2007/10/temp1.gif" medium="image">
			<media:title type="html">Screenshot of formatted text</media:title>
		</media:content>
	</item>
		<item>
		<title>Google AdSense</title>
		<link>http://twoducks.wordpress.com/2007/09/07/google-adsense/</link>
		<comments>http://twoducks.wordpress.com/2007/09/07/google-adsense/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 05:43:59 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2007/09/07/google-adsense/</guid>
		<description><![CDATA[Just been doing a bit of quick investigation into Google&#8217;s AdSense, and there are a number of articles out there about how to increase you&#8217;re revenue, some a little bit lame, but some reasonably well written like this one. Some people out there are making serious money using AdSense, though interesting it seems that advertisers [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=17&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just been doing a bit of quick investigation into Google&#8217;s AdSense, and there are a number of articles out there about how to increase you&#8217;re revenue, some a little bit lame, but some reasonably well written like <a href="http://www.associateprograms.com/articles/129/1/How-to-boost-your-AdSense-revenue">this one</a>.</p>
<p>Some people out there are making serious money using AdSense, though interesting it seems that advertisers are getting more reluctant to pay for ads delivered on pages of content, and preferring instead to have Google serve their ads on pages of searc hresults.</p>
<p>Another interesting  observation: a lot of people are reporting that their AdSense revenue in August (2007) is way down &#8212; it appears that Google have made a bit of a <a href="http://www.webmasterworld.com/forum89/9777.htm">botch-up of payments</a> for many webmasters this month..</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=17&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2007/09/07/google-adsense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
		<item>
		<title>An example of the problems of Google Books</title>
		<link>http://twoducks.wordpress.com/2007/08/22/an-example-of-the-problems-of-google-books/</link>
		<comments>http://twoducks.wordpress.com/2007/08/22/an-example-of-the-problems-of-google-books/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 00:31:40 +0000</pubDate>
		<dc:creator>jcdarwin</dc:creator>
				<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://twoducks.wordpress.com/2007/08/22/an-example-of-the-problems-of-google-books/</guid>
		<description><![CDATA[Paul Duguid, adjunct professor in the School of Information at the University of California, Berkeley, has a look at the problematic nature of Google Books&#8216; presentation of books, using the example of Lawrence Sterne&#8217;s Trstram Shandy. Interestingly, I notice that there is now a New Zealand variant of Google Books.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=16&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Paul Duguid, adjunct professor in the School of Information at the University of California, Berkeley, has a look at the problematic nature of <a href="http://books.google.com/">Google Books</a>&#8216; presentation of books, using the <a href="http://www.firstmonday.org/issues/issue12_8/duguid/index.html">example of Lawrence Sterne&#8217;s Trstram Shandy</a>.</p>
<p>Interestingly, I notice that there is now a <a href="http://books.google.co.nz/">New Zealand variant</a> of Google Books.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/twoducks.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/twoducks.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twoducks.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twoducks.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/twoducks.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/twoducks.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twoducks.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twoducks.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twoducks.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twoducks.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twoducks.wordpress.com&amp;blog=1463065&amp;post=16&amp;subd=twoducks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://twoducks.wordpress.com/2007/08/22/an-example-of-the-problems-of-google-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf44d209d681077f7bf541c4a045345d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcdarwin</media:title>
		</media:content>
	</item>
	</channel>
</rss>
