<?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"
	>

<channel>
	<title>Jason R Briggs &#187; writing</title>
	<atom:link href="http://www.briggs.net.nz/log/category/writing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.briggs.net.nz/log</link>
	<description>by Jason R Briggs</description>
	<pubDate>Tue, 18 Nov 2008 23:48:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Snake Wrangling for OLPC?</title>
		<link>http://www.briggs.net.nz/log/2008/04/29/snake-wrangling-for-olpc/</link>
		<comments>http://www.briggs.net.nz/log/2008/04/29/snake-wrangling-for-olpc/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 21:53:51 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[python]]></category>

		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/?p=304</guid>
		<description><![CDATA[In a moment of either inspiration or madness (I&#8217;m pinning my hopes on the fact that there&#8217;s a thin line between madness and genius), I decided to start work on a version of SWFK for the OLPC.
There are a couple of reasons why this is more of a challenge than the other versions of the [...]]]></description>
			<content:encoded><![CDATA[<p>In a moment of either inspiration or madness (I&#8217;m pinning my hopes on the fact that there&#8217;s a thin line between madness and genius), I decided to start work on a version of <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids">SWFK</a> for the <a href="http://laptop.org/">OLPC</a>.</p>
<p>There are a couple of reasons why this is more of a challenge than the other versions of the book:</p>
<ol>
<li>I don&#8217;t have an OLPC</li>
<li>The version of Python installed on the OLPC includes neither Tkinter nor, more importantly, the <a href="http://docs.python.org/lib/module-turtle.html">turtle</a> module.</li>
</ol>
<p>The first point is easy to solve.  I&#8217;ve been running OLPC on <a href="http://www.virtualbox.org/">VirtualBox</a> (occasionally) for a few months now, so at least I have a vague idea of how to interact with the <a href="http://wiki.laptop.org/go/Category:Sugar">Sugar</a> interface. </p>
<p>The second point is slightly more problematic.  As far as I&#8217;m aware, the OLPC runs <a href="http://www.gtk.org/">GTK</a>, and so the <a href="http://www.pygtk.org/">pygtk</a> module is available &#8212; but I have yet to come across a turtle implementation for gtk (ignoring, for the moment, the TurtleArt activity already installed on the OLPC, which I don&#8217;t think is particularly useful for my purposes).</p>
<p>It seems like quite a fun project &#8212; implementing the turtle module using pygtk &#8212; until you consider the arcane pygtk API, the (IMHO) lack of reasonable documentation (I&#8217;m not particularly impressed by the pygtk reference manual&#8230; particularly the lack of index), and simple examples to expand from.</p>
<p>Technical issues aside, a week later, I&#8217;m considering the semantics of an OLPC edition of the book.   SWFK for Windows, Mac and Linux, all target the same fundamental audience.  An OLPC edition has a completely different potential audience.  The Western+English market is, no doubt, vanishingly small &#8212; so while, to date, I&#8217;ve had over 6500 downloads, I&#8217;m guessing an OLPC edition might garner less than 1-3% more.  The real market would be translated versions (assuming the interest in translating actually  results in translations) &#8212; but that begs another question: will kids in non-Western countries actually understand some of the references?  Is talk of DVD players, in-car computers, Nintendos, etc (i.e. some of the references in chapter one, for example), at all meaningful in the developing world?  I&#8217;m doubtful.</p>
<p>Which leads me to posit the question, is it worth the not-so-insignificant effort?  </p>
<p>What do you think?</p>
<p>Genius or madness?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2008/04/29/snake-wrangling-for-olpc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Editions</title>
		<link>http://www.briggs.net.nz/log/2008/03/06/new-editions/</link>
		<comments>http://www.briggs.net.nz/log/2008/03/06/new-editions/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 22:09:46 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[python]]></category>

		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2008/03/06/new-editions/</guid>
		<description><![CDATA[Long awaited by&#8230; well a couple of people at least&#8230; I&#8217;ve recently been working on splitting out Snake Wrangling for Kids into 3 separate editions: one for Windows, one for Mac and one for Linux.
This proved rather more challenging than expected (rather characteristic of LaTeX as a whole actually), and I haven&#8217;t fully proofed the [...]]]></description>
			<content:encoded><![CDATA[<p>Long awaited by&#8230; well a couple of people at least&#8230; I&#8217;ve recently been working on splitting out <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids">Snake Wrangling for Kids</a> into 3 separate editions: one for Windows, one for Mac and one for Linux.</p>
<p>This proved rather more challenging than expected (rather characteristic of LaTeX as a whole actually), and I haven&#8217;t fully proofed the final result yet.  Those interested can check out the new editions here:</p>
<p><a href="http://www.briggs.net.nz/log/wp-content/uploads/2008/03/swfk-linux.zip">SWFK - Linux Edition</a><br />
<a href="http://www.briggs.net.nz/log/wp-content/uploads/2008/03/swfk-mac.zip">SWFK - Mac Edition</a><br />
<a href="http://www.briggs.net.nz/log/wp-content/uploads/2008/03/swfk-win.zip">SWFK - Windows Edition</a></p>
<p>The Mercurial repository (<a href="http://www.briggs.net.nz/hg/swfk/">here</a>) containing the LaTeX source has also been updated with the latest changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2008/03/06/new-editions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A question for the LaTeX gurus (2)</title>
		<link>http://www.briggs.net.nz/log/2008/03/04/a-question-for-the-latex-gurus-2/</link>
		<comments>http://www.briggs.net.nz/log/2008/03/04/a-question-for-the-latex-gurus-2/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 23:37:54 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2008/03/04/a-question-for-the-latex-gurus-2/</guid>
		<description><![CDATA[So I&#8217;ve sort-of figured out how to do conditional blocks.  The following LaTeX initially appears to work:

\newboolean{cond1}
\newboolean{cond2}

\setboolean{cond1}{false}
\setboolean{cond2}{true}

\ifthenelse{\boolean{cond1}}
{
A block of conditional text in here.
blah blah
}

\ifthenelse{\boolean{cond2}}
{
A separate block of conditional text in here.
blah blah
}

I say initially appears to work, because it works fine for the first 4 or 5 attempts, but then some combination of blocks [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve <em>sort-of</em> figured out how to do conditional blocks.  The following LaTeX initially appears to work:</p>
<pre>
<code>\newboolean{cond1}
\newboolean{cond2}

\setboolean{cond1}{false}
\setboolean{cond2}{true}

\ifthenelse{\boolean{cond1}}
{
A block of conditional text in here.
blah blah
}

\ifthenelse{\boolean{cond2}}
{
A separate block of conditional text in here.
blah blah
}</code>
</pre>
<p>I say initially appears to work, because it works fine for the first 4 or 5 attempts, but then some combination of blocks (<code>\begin{verbatim}</code> for example), causes it to break on the 6 attempt.  If I include a verbatim block in that 6 attempt, latex outputs an obscure error message&#8230; something along the lines of:</p>
<pre>
<code>Runaway argument?
some code here \end {verbatim} \end {listing}
! Paragraph ended before \@xverbatim was complete.
&lt;to be read again&gt;</code>
</pre>
<p>Which is rather infuriating, considering that I&#8217;ve got verbatim blocks in the previous conditional sections (it doesn&#8217;t complain about those), and because I&#8217;ve <em>almost</em> got the answer to my problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2008/03/04/a-question-for-the-latex-gurus-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Public Repository</title>
		<link>http://www.briggs.net.nz/log/2008/02/19/public-repository/</link>
		<comments>http://www.briggs.net.nz/log/2008/02/19/public-repository/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 00:01:53 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[python]]></category>

		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2008/02/19/public-repository/</guid>
		<description><![CDATA[I&#8217;ve had a few requests to release the &#8220;source&#8221; to Snake Wrangling for Kids, by people interested in translating the text into another language.
SWFK is still a work in progress &#8212; although that progress has been rather slow since we moved to the UK &#8212; but I can&#8217;t see any reason why I should put [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a few requests to release the &#8220;source&#8221; to <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/">Snake Wrangling for Kids</a>, by people interested in translating the text into another language.</p>
<p>SWFK is still a work in progress &#8212; although that progress has been rather slow since we moved to the UK &#8212; but I can&#8217;t see any reason why I should put off releasing the LaTex source until some sort of mythical completion date, particularly not when there are willing participants out there.</p>
<p>So for those who are interested in translating SWFK to another language, the latex &#8220;source&#8221; can be found in the following Mercurial repository:</p>
<p><a href="http://www.briggs.net.nz/hg/swfk">http://www.briggs.net.nz/hg/swfk</a></p>
<p>Note that it isn&#8217;t &#8220;buildable&#8221; in its current state.  I haven&#8217;t added the image files yet because some of them are rather large (the cover alone is over 2MB) &#8212; the wonders of the EPS format.  Mercurial doesn&#8217;t seem to handle excessively large image files that well (at least not on my web host it doesn&#8217;t), so if anyone has ideas on that front, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2008/02/19/public-repository/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Version 0.7</title>
		<link>http://www.briggs.net.nz/log/2007/11/28/version-07/</link>
		<comments>http://www.briggs.net.nz/log/2007/11/28/version-07/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 11:03:17 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[python]]></category>

		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2007/11/28/version-07/</guid>
		<description><![CDATA[I&#8217;ve just uploaded the latest version of SWFK.  This fixes a few issues with continuity (such as referring to functions before they were actually explained), adds a basic explanation about the use of brackets and order of operations (which I think was a serious omission given the context), and other minor grammatical and code [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just uploaded the latest version of <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids">SWFK</a>.  This fixes a few issues with continuity (such as referring to functions before they were actually explained), adds a basic explanation about the use of brackets and order of operations (which I think was a serious omission given the context), and other <em>minor</em> grammatical and code fixes.</p>
<p>The only major change is to add a few exercises to the end of some of the chapters, plus a new appendix for the answers.  This is a  work in progress.  Exercises are currently missing from Chapter 9, and possibly aren&#8217;t as detailed (nor fun) as they should be.</p>
<p>But they&#8217;re a start&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2007/11/28/version-07/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Announcing Version 0.6.1</title>
		<link>http://www.briggs.net.nz/log/2007/11/24/announcing-version-061/</link>
		<comments>http://www.briggs.net.nz/log/2007/11/24/announcing-version-061/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 08:31:35 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2007/11/24/announcing-version-061/</guid>
		<description><![CDATA[The latest version of &#8220;Snake Wrangling for Kids&#8221; has been uploaded, and is now available on the main page.  This is the LaTeX conversion I mentioned in a previous post &#8212; but I&#8217;ve now applied a Python code checker to 99% of the example source code.  Hence I&#8217;ve fixed up a few omissions, [...]]]></description>
			<content:encoded><![CDATA[<p>The latest version of &#8220;Snake Wrangling for Kids&#8221; has been uploaded, and is now available on the <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids">main page</a>.  This is the LaTeX conversion I mentioned in a previous post &#8212; but I&#8217;ve now applied a Python code checker to 99% of the example source code.  Hence I&#8217;ve fixed up a few omissions, bugs, and so on.</p>
<p>Automating the testing of example code proved more challenging than expected.  In the end, I failed miserably to get <a href="http://docs.python.org/lib/module-doctest.html">doctest</a> working they way I wanted, and had to roll my own testing code which works for a majority of the examples.  It&#8217;s not perfect, but picked up a few problems, so I&#8217;m reasonably happy with the end result&#8230; even if it is a complete hackjob.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2007/11/24/announcing-version-061/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Positives and Negatives of Latex</title>
		<link>http://www.briggs.net.nz/log/2007/11/21/the-positives-and-negatives-of-latex/</link>
		<comments>http://www.briggs.net.nz/log/2007/11/21/the-positives-and-negatives-of-latex/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 10:37:04 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[swfk]]></category>

		<category><![CDATA[technical]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2007/11/21/the-positives-and-negatives-of-latex/</guid>
		<description><![CDATA[I&#8217;ve finished the initial part of my conversion of SWFK from Word Processor format to LaTeX.  Positive aspects?  Looks much better than the original; I like working in a text-based format plus I&#8217;ll be able to automate the double-checking of my examples (not completed yet); and lastly the file size is a 3rd [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finished the initial part of my conversion of <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/">SWFK</a> from Word Processor format to LaTeX.  Positive aspects?  Looks much better than the original; I like working in a text-based format plus I&#8217;ll be able to automate the double-checking of my examples (not completed yet); and lastly the file size is a 3rd of what it was (hoorah for my bandwidth!).  Negative aspects: the format is more obscure (not a big problem obviously) and the number of pages has significantly increased.  LaTeX is a lot more liberal with whitespace than I was, plus I&#8217;ve probably accidentally increased the size of some of the images, which won&#8217;t have helped.  So my apologies to anyone who wants to print it, and has to kill more trees as a consequence.</p>
<p>Download is available from this <a href="http://www.briggs.net.nz/log/wp-content/uploads/2007/11/swfk-0.6.zip">link</a>, but I haven&#8217;t updated the main page yet.  Note that this is a draft-draft.  In other words, it already was a draft, and now it&#8217;s more of a draft&#8230; <img src='http://www.briggs.net.nz/log/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  I still need to tidy up some of my layout &#8216;messes&#8217;, plus re-check all example code, and a few other bits and pieces.  Another positive aspective of converting to LaTeX is that I found a bunch of naff typos that appeared in latter chapters (and appendices), where my editing prowess obviously rather severely tailed off&#8230;</p>
<p>Feedback on the new format/layout welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2007/11/21/the-positives-and-negatives-of-latex/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Version 0.5</title>
		<link>http://www.briggs.net.nz/log/2007/11/10/version-05/</link>
		<comments>http://www.briggs.net.nz/log/2007/11/10/version-05/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 22:58:42 +0000</pubDate>
		<dc:creator>jrbriggs</dc:creator>
		
		<category><![CDATA[swfk]]></category>

		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.briggs.net.nz/log/2007/11/10/version-05/</guid>
		<description><![CDATA[The newest version of Snake Wrangling for Kids includes some minor corrections dotted throughout the book (thanks to commentors on the SWFK page and the Edu-Sig mailing list members, once again), as well as a basic clarification as to why floating point calculations don&#8217;t always result in the number you were quite expecting (not too [...]]]></description>
			<content:encoded><![CDATA[<p>The newest version of <a href="http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids">Snake Wrangling for Kids</a> includes some minor corrections dotted throughout the book (thanks to commentors on the SWFK page and the Edu-Sig mailing list members, once again), as well as a basic clarification as to why floating point calculations don&#8217;t always result in the number you were quite expecting (not too detailed an explanation, of course, because that would be boring&#8230; <img src='http://www.briggs.net.nz/log/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ).</p>
<p>The inclusion of SWFK on <a href="http://www.pythonware.com/daily/">Pythonware&#8217;s Daily Python URL</a> (thanks guys!), resulted in a sudden flurry of downloads, and some really useful feedback.</p>
<p>As usual, the download is available in zipped, PDF format.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briggs.net.nz/log/2007/11/10/version-05/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
