<?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>Sayamindu's Ramblings &#187; sugar</title>
	<atom:link href="http://sayamindu.randomink.org/ramblings/tag/sugar/feed/" rel="self" type="application/rss+xml" />
	<link>http://sayamindu.randomink.org/ramblings</link>
	<description>The weekend hacker's musings...</description>
	<lastBuildDate>Wed, 02 Jun 2010 13:10:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A new adventure</title>
		<link>http://sayamindu.randomink.org/ramblings/2010/04/13/a-new-adventure/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2010/04/13/a-new-adventure/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 20:53:44 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Boston]]></category>
		<category><![CDATA[Cambridge]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[graduate student/research assistant]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[Lifelong Kindergarten Group]]></category>
		<category><![CDATA[MIT Media Lab]]></category>
		<category><![CDATA[One Laptop per Child]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=470</guid>
		<description><![CDATA[Working with OLPC and Sugarlabs over the past two and a half years exposed me to a number of &#8220;powerful ideas&#8220;, and to a culture which made learning fun, something that I wish I had access to while in School. While going through the &#8220;background philosophy&#8221; behind OLPC and Sugar, in the various examples and [...]]]></description>
			<content:encoded><![CDATA[<p>Working with OLPC and Sugarlabs over the past two and a half years exposed me to a number of &#8220;<a href="http://papert.org/works.html">powerful</a> <a href="http://wiki.laptop.org/go/Marvin_Minsky_essays">ideas</a>&#8220;, and to a culture which made learning fun, something that I wish I had access to while in School. While going through the &#8220;background philosophy&#8221; behind OLPC and Sugar, in the various examples and illustrations, I could find reflections of my younger self, asking questions which I was not supposed to ask, or trying to make my own theories and evolving them before figuring out whatever was written in the books.</p>
<p>This pleasure of finding a learning culture with which I could identify myself has led me to choose my next adventure. This year (tentatively in mid-summer) I&#8217;ll be joining the <a href="http://www.media.mit.edu/">MIT Media Lab</a> as a graduate student/research assistant in the <a href="http://llk.media.mit.edu/">Lifelong Kindergarten Group</a>.</p>
<p>However, this comes at the cost of me leaving OLPC and cutting down my activities at Sugarlabs (though I hope to volunteer, I&#8217;ll certainly not be devoting anywhere near the amount of time I spend now). It has been an incredible two and a half years &#8211; working with such passionate and brilliant people has been an awesome experience and a rare privilege. There are certain experiences which change the way one looks at life and think, and this has been certainly one of them for me.</p>
<p>I will be also moving to the Cambridge/Boston area (it&#8217;s funny how, after working remotely across the globe for OLPC, once I have left the organization, I&#8217;ll be situated across the street from them). If you have any tips about living in and around Cambridge/Boston, especially about places to stay (I&#8217;m a still undecided about where to stay, and I&#8217;m looking for potential flat/apartment-mate(s)), do put in a comment in my blog or mail me at sayamindu at gmail.</p>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2010/04/13/a-new-adventure/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Stuff that I have been up to</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/12/30/stuff-that-i-have-been-up-to/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/12/30/stuff-that-i-have-been-up-to/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 17:19:08 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[conferences]]></category>
		<category><![CDATA[foss.in]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[keyboards]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[OLPC XO-1]]></category>
		<category><![CDATA[One Laptop per Child]]></category>
		<category><![CDATA[Open hardware]]></category>
		<category><![CDATA[Pootle]]></category>
		<category><![CDATA[Russell Nelson]]></category>
		<category><![CDATA[sugar]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[Turtle Art]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=460</guid>
		<description><![CDATA[December turned out to be a pretty busy month for me &#8211; here are some of the stuff I have been involved in/working on:

FOSS.in: As always FOSS.in &#8216;09 turned out to be an amazing affair. Being someone who works remotely, this event is probably one of the best opportunities for me to have &#8220;real&#8221; interactions. [...]]]></description>
			<content:encoded><![CDATA[<p>December turned out to be a pretty busy month for me &#8211; here are some of the stuff I have been involved in/working on:</p>
<ul>
<li><b>FOSS.in</b>: As always <a href="http://foss.in">FOSS.in &#8216;09</a> turned out to be an amazing affair. Being someone who works remotely, this event is probably one of the best opportunities for me to have &#8220;real&#8221; interactions. It&#8217;s a place where I can simply sit down, have long face to face conversations, come up with new ideas, be inspired, and most importantly, have fun. My heartfelt thanks goes out to the people behind the event for making this possible. I have some photos in <a href="http://www.flickr.com/photos/sayamindu/sets/72157622856162053/">this</a> Flickr photoset.</li>
<li><b>Book reader</b>: This month&#8217;s priority has been stabilizing the Sugarlabs/OLPC book-reader code, and a large number of important bugfixes landed during the last few weeks. More in <a href="http://lists.laptop.org/pipermail/bookreader/2009-December/000124.html">this status report</a>.</li>
<li><b>Arduino</b>: At FOSS.IN, thanks to the efforts of the ever enthusiastic <a href="http://kushaldas.in/">Kushal Das</a>, I managed to get hold of an <a href="http://arduino.cc/">Arduino</a> clone board (it is terribly difficult to get hold of one in Kolkata). I had heard of Arduino before and wanted to get one, and the <a href="http://foss.in/2009/schedules/talkdetailspub.php?talkid=69">session</a> on it at FOSS.in by Russell Nelson finally served as the &#8220;kick&#8221; which made Kushal and me call up the local distributor and get a couple of boards for ourselves. I have been playing around with sensors support in Sugar for sometime (I helped make the <a href="http://activities.sugarlabs.org/en-US/sugar/addon/4197">Measure</a> activity work on  XO 1.5 hardware), and realized that this would be yet another interesting way to connect Sugar with the &#8220;real&#8221; world. So after a couple of weekends worth of work, I got Arduino support in <a href="http://wiki.sugarlabs.org/go/Activities/Turtle_Art">Turtle Art</a>.<br />
<br/><br />
<a href="http://people.sugarlabs.org/~sayamindu/ta_arduino.png" rel="lightbox"><img src="http://people.sugarlabs.org/~sayamindu/ta_arduino.png" alt="Turtle Art with Arduino"></a><br />
<br/>
</li>
<li><b>XO keyboards</b>: There may be a new AZERTY keyboard for the XO laptops very soon. See <a href="http://wiki.laptop.org/go/OLPC_Azerty_Keyboard">this wikipage</a> for details.</li>
<li><b>Pootle</b>: The Pootle developers have released <a href="http://translate.org.za/blogs/friedel/content/pootle-200-released">version 2.0</a>, which is a vastly improved edition compared to the previous releases. I have been testing it out with plans to upgrade the Sugarlabs/OLPC translation server soon. While testing, I added a quick (and ugly) hack to implement <em>msgfmt &#8211;check</em> style syntax checking in Pootle. This would definitely make the process of integrating the translations with the upstream code much less painful &#8211; and here&#8217;s a screenshot (click on it for a larger version):<br />
<br/><br />
<a href="http://people.sugarlabs.org/~sayamindu/pootle_gettext_check.png" rel="lightbox"><img src="http://people.sugarlabs.org/~sayamindu/pootle_gettext_check.png" alt="Gettext syntax check in Pootle"/></a></li>
<p><br/>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/12/30/stuff-that-i-have-been-up-to/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Making Books Available</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/11/07/making-books-available/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/11/07/making-books-available/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:35:18 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[GetBooks]]></category>
		<category><![CDATA[Internet Archive]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[OLPC XO-1]]></category>
		<category><![CDATA[One Laptop per Child]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sneakernet]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=456</guid>
		<description><![CDATA[Its all over the web now &#8211; the Internet Archive has opened up over 1.6 million books for the OLPC XO laptops and in general, any machine running Sugar. Before going into anything else, it makes sense to provide a more specific meaning of &#8220;opening up&#8221; here &#8211; it involves two main objectives completed at [...]]]></description>
			<content:encoded><![CDATA[<p>Its all over the web now &#8211; the Internet Archive has opened up <a href="http://www.xconomy.com/boston/2009/10/24/internet-archive-opens-1-6-million-e-books-to-olpc-laptops/">over 1.6 million books</a> for the OLPC XO laptops and in general, any machine running Sugar. Before going into anything else, it makes sense to provide a more specific meaning of &#8220;opening up&#8221; here &#8211; it involves two main objectives completed at the Internet Archive end:</p>
<ul>
<li>Making sure that the books are readable in the XO, keeping in mind its relative low-end hardware specs and disk-space limitations</li>
<li>Ensuring that the books are available via a standardized catalog format, so that one can find, browse and download books easily using a tool more tuned for the purpose (think of feed-readers versus blog-entries in a web-page)</li>
</ul>
<p>Now that the books are available (not just from the Internet Archive, but from a number of other sources as well), the next step is to figure out the best possible ways to actually make these books available to the XO and Sugar users. The major constraining factor is bandwidth, we do have deployments with zero, or very limited Internet connectivity, and perhaps these are the deployments which need access to these books the most. I spent most of this week working on implementing a feature in the <em>Get Books</em> activity which would allow books to be distributed via what has been jokingly called a <a href="http://catb.org/~esr/jargon/html/S/sneakernet.html">sneaker-net</a> (or sandalnet/chappalnet, if you prefer those forms of footwear). The idea is very simple &#8211; at a centralized location with Internet access, choose a few thousand books (size of a typical book is usually a few hundred KB or less), put them in a USB pen-drive and add a <acronym title="Open Publication Distribution System">OPDS</acronym> catalog to the mix. Make copies of the drive, and send them to the schools without connectivity. The latest version of Get Books would recognize the drive, and let the student browse through the collection, search for books, and add whatever she wants to the Sugar Journal. Once a book is in the Journal, it can be shared among all the students using the <a href="http://wiki.sugarlabs.org/go/0.86/Notes#Improved_File_Transfer">Journal object transfer support</a> in Sugar, or via the Read Activity directly. So essentially, you get a <em>Library on a Stick</em>, with thousands of books, something which, till now, in its physical form, has been largely restricted to better equipped (and usually richer) schools.<br />
Of course, even larger collections can be distributed if a <a href="http://wiki.laptop.org/go/School_server">School Server</a> (XS) is present in the mix (due to the fact that the school server can have a larger disk in it), and support for this type of distribution method involving the XS would hopefully appear within the next few releases of Get Books.</p>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/11/07/making-books-available/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Books, Sugar and OLPC</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/10/14/books-sugar-and-olpc/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/10/14/books-sugar-and-olpc/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 15:12:58 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[Electronic publishing]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[fbreader]]></category>
		<category><![CDATA[One Laptop per Child]]></category>
		<category><![CDATA[opds]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=448</guid>
		<description><![CDATA[Articles and posts like this (and subsequently this) underline the need for a status report about ebook-reading in Sugar and in the XO laptops. For the past few months, apart from my usual duties, I have been working on the book-reading stack for OLPC and Sugar, and this may be viewed as a progress report [...]]]></description>
			<content:encoded><![CDATA[<p>Articles and posts like <a href="http://www.teleread.org/2009/09/25/e-reading-still-neglected-by-the-olpc-laptop-folks-yep-at-least-for-now-but-the-future-may-be-brighter/">this</a> (and subsequently <a href="http://www.teleread.org/2009/09/25/epub-for-the-olpc-laptop-read-activity-now-does-it-hooray/">this</a>) underline the need for a status report about ebook-reading in Sugar and in the XO laptops. For the past few months, apart from my usual duties, I have been working on the book-reading stack for OLPC and Sugar, and this may be viewed as a progress report of the things I have been doing.<br />
I have been mostly working on the Read Activity in Sugar, which is supposed to do the most heavy lifting as far as book-reading goes &#8211; though there is also ReadEtexts by Jim Simmons, which primarily handles plain text files from Project Gutenberg (the latest version of ReadEtexts supports RTF files as well). Currently, the ebook formats that are supported in Sugar include</p>
<ul>
<li>Epub</li>
<li>PDF</li>
<li>DJVU</li>
<li>Plain Text (specifically the format used by Project Gutenberg)</li>
<li>Postscript</li>
<li>CBZ</li>
<li>RTF</li>
</ul>
<p>There also exists a sugar-ified <a href="http://www.fbreader.org">FBReader</a>, with support for more formats (such as plucker and non DRM&#8217;ed mobipocket).<br />
With the last major release of Read (a part of Sugar 0.86), apart from the addition of Epub support, there has been usability improvements and tweaks (particularly for the full-screen mode), as well as support for bookmarks (notes can be associated with each bookmark).<br />
 <a href="http://sayamindu.randomink.org/profile/images/read_notes.png" title="The bookreading Activity in Sugar" rel="lightbox"><img src="http://sayamindu.randomink.org/profile/images/thumbs/read_notes.png" alt=""></a><br />
For the next major release, I have started to work on support for highlighting text (at least in Epub files) and better usage of the XO &#8220;game-keys&#8221; in fullscreen mode (so that the overall experience in tablet mode of the XO laptops become smoother). Interestingly, highlighting text did not work out as I had planned, since the highlights became almost invisible in the grayscale reflective mode of the XO laptops. So instead of highlighting, Read would probably support underlining of text (when I was a kid, we often shared books, especially school books, and I was told it is always better to underline with a pencil than to use a marker pen to highlight <img src='http://sayamindu.randomink.org/ramblings/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .<br />
<img src="http://sayamindu.randomink.org/images/read_highlight.gif" alt="Read Highlight"/><br />
Of course, Read is only one part of the book-reading puzzle. There has to be a system in place for book acquisition as well (from the Internet as well as from a local schoolserver, if available). In a <a href="http://sayamindu.randomink.org/ramblings/2009/06/18/read-and-epub-and-beyond/">previous blog post</a>, I mentioned <a href="http://code.google.com/p/openpub/wiki/CatalogSpecDraft">Open Publication Distribution System</a>, which is built upon the Atom syndication format to allow online book distributors to publish their catalog. I extended Jim Simmon&#8217;s Get Internet Archive Books activity to support OPDS, and now, apart from the <a href="http://archive.org">Internet Archive</a>, the preview version that I have can also retrieve books from <a href="http://www.feedbooks.com">Feedbooks</a>. Here&#8217;s a video of the activity in action:<br />
<video src="http://dev.laptop.org/~sayamindu/get_books.ogv" controls><br />
  <small><em>Your browser does not support the <code>video</code> element.  Click <a href="http://dev.laptop.org/~sayamindu/get_books.ogv">here</a> to download the video. You can use VLC to play the video.</em></small><br />
</video><br />
The next major step would be to implement a server side OPDS implementation in the <a href="http://wiki.laptop.org/go/School_server">School Server</a> (XS), as well as some kind of caching mechanism to conserve bandwidth (if a copy of a book is found in the school server, it should be downloaded instead of the online version).<br />
To keep up with the progress, you can either subscribe to the <a href="http://lists.sugarlabs.org/listinfo/sugar-devel">sugar-devel</a> list or the more specialized (and low volume) <a href="http://lists.laptop.org/listinfo/bookreader">olpc-bookreader</a> list.</p>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/10/14/books-sugar-and-olpc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://dev.laptop.org/~sayamindu/get_books.ogv" length="1636902" type="video/ogg" />
		</item>
		<item>
		<title>Braindump on ebooks</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/08/12/braindump-on-ebooks/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/08/12/braindump-on-ebooks/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 18:15:47 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[alan kay]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=427</guid>
		<description><![CDATA[The inspiration for this post comes from a talk by Alan Kay, entitled Beyond the Printing Press: Computers as Learning Environments for All Children. You can view the video recording of the talk here

The development versions of Read Activity is now shipping with Epub support. This makes me excited for quite a few reason. Of [...]]]></description>
			<content:encoded><![CDATA[<p><em>The inspiration for this post comes from a talk by Alan Kay, entitled <u>Beyond the Printing Press: Computers as Learning Environments for All Children</u>. You can view the video recording of the talk <a href="http://download.laptop.org/content/conf/20080520-country-wkshp/Video/2008-05-20/13-Beyond-Printing%20(medium).ogg">here</a></em><br />
<br/><br />
The development versions of Read Activity is now shipping with Epub support. This makes me excited for quite a few reason. Of course, the most obvious reason to get excited is the fast growth and adoption of Epub as a standard for e-books. However, there is more to it&#8230;<br />
Books, once again (after Gutenberg&#8217;s time) are changing. Gutenberg brought in the transition from hand-written books to large-scale print &#8211; and now we see yet another shift, where books are transitioning from ink, paper and the printing press to bits stored inside a variety of devices. Towards the beginning of the printing press revolution, there was a strong desire and tendency to mimic the &#8220;old&#8221; format as much as possible, in terms of look and feel. Gutenberg and his associates even <a href="http://en.wikipedia.org/wiki/Gutenberg_Bible#Rubrication.2C_illumination_and_binding">hand-drew illuminated decoration</a> on the Gutenberg Bibles, to retain the similarity to the older, handwritten copies of the Bible. In what seems to be an almost eerie repetition, today, in the ebook, we see a strong desire to mimic the traditional book as much as possible. (eg ebook readers trying to retain the older &#8220;UI&#8221; paradigm, efforts to make ebooks retain the formatting niceties of traditional books, etc). This is not unusual, or wrong. We are used to the traditional book, and it is important to make the path to transition as smooth as possible.<br />
However, what makes me really excited at this stage is something else. It is the potential new things we could do with Ebooks, things that would not have been possible with books in the old format. This weekend, I did some changes to a Epub file, and extended the Read Activity a bit to come up with a few such things:</p>
<ul>
<li><strong>Audio-visual content inside books</strong>: This is almost obvious &#8211; with the transition to books which are read on devices having audio/video capabilities, the next logical step is to embed these into books.<br />
<video src="http://dev.laptop.org/~sayamindu/interactive_books_video/video_small.ogv" width="600px" height="480px" controls="true"><a href="http://dev.laptop.org/~sayamindu/interactive_books_video/video.ogv">Download video</a></video><br />
<br/><br />
<small><em>(Video from the Internet Archive, text from Wikipedia)</em></small>
</li>
<li><strong>An interactive shell inside a book</strong>: An interactive Python shell inside a book teaching Python, so that small examples and snippets can be tried out inside the book, right away.<br />
<video src="http://dev.laptop.org/~sayamindu/interactive_books_video/python_small.ogv" width="600px" height="480px" controls="true"><a href="http://dev.laptop.org/~sayamindu/interactive_books_video/python.ogv">Download video</a></video><br />
<br/><br />
<small><em>(Text from How to Think like a Computer Scientist, Python edition)</em></small>
</li>
<li><strong>A full blown, interactive environment inside books</strong>: A book on digital logic can have a small sandboxing area, where readers could connect the various virtual components together, and see what happens.<br />
<video src="http://dev.laptop.org/~sayamindu/interactive_books_video/digital_logic_small.ogv" width="600px" height="480px" controls="true"><a href="http://dev.laptop.org/~sayamindu/interactive_books_video/digital_logic.ogv">Download video</a></video><br />
<br/><br />
<small><em>(Text from Wikipedia and the Lorem Ipsum generator, demo from the Etoys project)</em></small>
</li>
</ul>
<p>Of course, this is just a proof of concept, and probably most Epub readers will simply ignore the interactive content part. Moreover, there may be security issues with such books as well (the idea of having a Python shell inside a book will make many nervous) &#8211; but I think this is where <a href="http://wiki.laptop.org/go/Bitfrost">Bitfrost</a>, and its software implementation, <a href="http://wiki.laptop.org/go/Rainbow">Rainbow</a> (which is essentially an isolation shell) comes in.<br />
There is another way of &#8220;interaction&#8221; which I have not covered in the above screencasts &#8211; and this is something which is already available in traditional ink and paper books, especially text-books. Ebooks need to support &#8220;exercises&#8221; like fill-in-the-blanks, multiple-choice-questions, etc. There is an urgent need to support this, and this should be done in a standardized way. The <a href="http://www.w3.org/TR/webstorage">local storage</a> standard associated with HTML5 seems to be a possible way forward, though probably there might be better ways to do this (especially if we want the ability to have teachers remotely check and evaluate exercises done on e-textbooks).</p>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/08/12/braindump-on-ebooks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
<enclosure url="http://dev.laptop.org/~sayamindu/interactive_books_video/video_small.ogv" length="563612" type="video/ogg" />
<enclosure url="http://dev.laptop.org/~sayamindu/interactive_books_video/video.ogv" length="2717895" type="video/ogg" />
<enclosure url="http://dev.laptop.org/~sayamindu/interactive_books_video/python_small.ogv" length="448650" type="video/ogg" />
<enclosure url="http://dev.laptop.org/~sayamindu/interactive_books_video/python.ogv" length="1521142" type="video/ogg" />
<enclosure url="http://dev.laptop.org/~sayamindu/interactive_books_video/digital_logic_small.ogv" length="1265696" type="video/ogg" />
<enclosure url="http://dev.laptop.org/~sayamindu/interactive_books_video/digital_logic.ogv" length="4137946" type="video/ogg" />
		</item>
		<item>
		<title>Read and Epub and beyond</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/06/18/read-and-epub-and-beyond/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/06/18/read-and-epub-and-beyond/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 22:03:06 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[bookreading]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[opds]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=418</guid>
		<description><![CDATA[For the past few weeks, I have been spending most of my time implementing Epub support for Sugar&#8217;s Read activity. Epub is gaining increasing acceptance, and a few weeks back, Project Gutenberg started distributing many of their material in the format, and Google + Sony also seem to have started to distribute a large chunk [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few weeks, I have been spending most of my time implementing <A href="http://en.wikipedia.org/wiki/Epub">Epub</a> support for Sugar&#8217;s Read activity. Epub is gaining increasing acceptance, and a few weeks back, Project Gutenberg <a href="http://www.pg-news.org/20090320/epub-books-now-available-at-project-gutenberg/">started distributing</a> many of their material in the format, and <a href="http://www.nytimes.com/2009/03/19/technology/19sony.html?_r=1&#038;ref=technology">Google + Sony</a> also seem to have started to distribute a large chunk of public domain books as Epubs.</p>
<p>Today I finally reached the stage where the work could be tested on an actual XO, and here&#8217;s how it looks:<br />
<a href="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/06/read_epub_xo.jpg" rel="lightbox"><img src="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/06/read_epub_xo-300x200.jpg" alt="Read opening a Epub file on an XO" title="Read opening a Epub file on an XO" width="300" height="200" class="aligncenter size-medium wp-image-419" /></a></p>
<p>The rendering is done using WebkitGTK (the Python bindings) and I was a bit concerned about the possible performance issues on the XO-1 (which has a relatively ancient processor, slow filesystem access, only 256 MB of RAM and no swap). The biggest worry was the loading time &#8211; since it involves pre-rendering the entire book to gather metrics for pagination (most Epub books I have come across do not have clearly defined page-breaks, so that has to be figured out), but to my surprise (and relief) the load time turned out to be quite acceptable.</p>
<p>Right now, the viewer supports a very limited subset of the Epub standard (and works only with XHTML based Epubs), but so far it has managed to handle all the files I have tested it with. The viewer is a standalone widget used by the , which should make it possible reuse the work to develop a Epub reader for GNOME as well.</p>
<p>Once the Epub support in Read reaches an acceptable state, the plan is to start working on implementing support for the draft <a href="http://code.google.com/p/openpub/wiki/OPDS">Open Publication Distribution System specs</a>, which allows ebook distributors to distribute e-books via XML catalogues. It makes sense to support this in Read, as well as in the <a href="http://wiki.laptop.org/go/School_Server">school server</a>, to ease the e-books distribution process. For example, if we have a large e-book collection for a particular deployment, it may not make sense to put all of them in individual laptops &#8211; instead allowing the user to browse/search the catalogue and download the books as and when required would probably be a better option.</p>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/06/18/read-and-epub-and-beyond/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Updates..</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/04/13/updates/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/04/13/updates/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 13:16:46 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[bookreader]]></category>
		<category><![CDATA[fbreader]]></category>
		<category><![CDATA[hunspell]]></category>
		<category><![CDATA[keyboards]]></category>
		<category><![CDATA[morphology]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sugar]]></category>
		<category><![CDATA[sugar-control-panel]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[xkb]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=382</guid>
		<description><![CDATA[This blog has not seen much activity in a while, so here goes:

Bought a HCL touch-screen based netbook. It&#8217;s somewhat ancient hardware, but most of the stuff works out of the box (except for the webcam, which does not even show up in lshal or lsusb). The touchscreen required a binary driver &#8211; but a [...]]]></description>
			<content:encoded><![CDATA[<p>This blog has not seen much activity in a while, so here goes:</p>
<ul>
<li>Bought a HCL touch-screen based <a href="http://www.indiaplaza.in/hcl-tablet-laptop-with-linux-ahmy0210/hcl/electronics/computers-and-accessories/laptops/PC0902161207463.htm">netbook</a>. It&#8217;s somewhat ancient hardware, but most of the stuff works out of the box (except for the webcam, which does not even show up in lshal or lsusb). The touchscreen required a binary driver &#8211; but a Free/Open Source version seems to <a href="http://cgit.freedesktop.org/xorg/driver/xf86-input-penmount">exist</a>, though I could not get to calibrate the screen with the FOSS driver variant<br />
<strong>[Update:</strong> The webcam works - I had to press <em>Fn-F5</em> to enable it. It is turned off by default to conserve battery.]
</li>
<li>Taught myself (this was long overdue &#8211; but at least now I can admit that I did not know what I used not to know) how to <em>properly</em> write Python extensions in C. I started out with bindings for <a href="http://hunspell.sourceforge.net/">Hunspell</a> (I&#8217;m reading up a bit on morphology nowadays, and finding it to be tremendously entertaining). There was a Python extension for Hunspell already, but it did not compile for me, and that pushed me to decide to figure out how to do this myself. One thing led to another, and so, as of now, there is (in progress) extensions for handling:
<ul>
<li><a href="http://code.google.com/p/pyhunspell/">Hunspell</a>. Usage instructions <a href="http://code.google.com/p/pyhunspell/wiki/UsingPyHunspell">here</a></li>
<li><a href="http://code.google.com/p/pygettextpo/">libgettext-po</a>. This should be faster than the existing pure Python based PO file parsers out there. (maybe at some point, I could make <a href="http://translate.sourceforge.net/wiki/pootle/index">Pootle/Translate Toolkit</a> use this, and make the work of OLPC/Sugarlabs translation team members somewhat less frustrating.</li>
<li><a href="http://git.sugarlabs.org/projects/python-xkb">XKB</a>. I must admit that I took a shortcut for this, and this extension is actually based on the awesome <a href="http://library.gnome.org/devel/libxklavier/stable/index.html">libxklavier</a>. The final plan is to develop a Sugar extension for managing the keyboard options and layouts using this extension. The code in the main git repository, though fairly complete in terms of what is required for Sugar at the moment, is not implemented via (py)gobject. Implementing the pygobject-based wrapper is turning out to be a bit more complicated than I initially thought, but some code for that is also available in <a href="http://git.sugarlabs.org/projects/python-xkb/repos/pygobject-support">this repository</a> (it is somewhat easier now, since I know (at least most of of) what is happening under the hood).</li>
</ul>
<li><a href="http://lists.laptop.org/pipermail/bookreader/2009-April/000060.html">Released</a> a newer version of the FBReader activity, which is much more improved in terms of usability (eg: response to the game keys keys while the XO-1 is in tablet mode is much more smoother, and all the keys do something useful). People <a href="http://blog.feedbooks.com/?p=219">seem to be happy</a> with the new release.</li>
<li>Coming back to the present, right now, among other things, I&#8217;m working on a few interesting (and important) enhancements for the book-reader(s). Some of them include support for long keypresses (eg: pressing the &#8220;square&#8221; game key for two seconds will show the table of contents), notification of critical power events (I realized to my horror during dogfooding, that in tablet mode, while the book reader is open in full screen, there is no way to tell how much battery-charge is left), etc. The bookmark support feature that I came up with a few months back needs a bit of polish, but I think I can make this show up in the next release of Read.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/04/13/updates/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>19th March, 2009</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/03/20/19th-march-2009/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/03/20/19th-march-2009/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 18:30:05 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[ebooks. soc]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[soc2009]]></category>
		<category><![CDATA[sugar]]></category>
		<category><![CDATA[summerofcode]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=375</guid>
		<description><![CDATA[
Sucrose 0.84, the latest stable version of the Sugar educational platform has been released. A large number of bugfixes, new features, improvements and tweaks have gone in during the past six months, and to try out this release, you can use Sugar on a Stick.
Sugarlabs (the organisation which is currently driving the development of Sugar) [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://wiki.sugarlabs.org/go/DevelopmentTeam/Release/Releases/Sucrose/0.84">Sucrose 0.84</a>, the latest stable version of the Sugar educational platform has been released. A large number of bugfixes, new features, improvements and tweaks have gone in during the past six months, and to try out this release, you can use <a href="http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Installation">Sugar on a Stick</a>.</li>
<li>Sugarlabs (the organisation which is currently driving the development of Sugar) is a <a href="http://socghop.appspot.com/org/show/google/gsoc2009/sugarlabs">mentor organization</a> for Google Summer of Code 2009. A list of ideas is currently on the <a href="http://wiki.sugarlabs.org/go/DevelopmentTeam/ProjectIdeas">Sugarlabs wiki</a>.</li>
<li>It looks like Google has decided to <a href="http://www.nytimes.com/2009/03/19/technology/19sony.html?_r=1&#038;ref=technology">publish</a> out-of-copyright books as ePub files for the Sony Reader. This is awesome news, all the more so since some of us have been working for the past few weeks to ensure that more ebook formats are supported in Sugar. As a part of that, I have created a Sugarized version of <a href="http://www.fbreader.org/">FBReader</a>, which handles epub files superbly:<br />
<div id="attachment_376" class="wp-caption aligncenter" style="width: 310px"><a href="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/03/fbreader_sugar_v2.png" rel="lightbox"><img src="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/03/fbreader_sugar_v2-300x225.png" alt="FBReader Activity for Sugar" title="fbreader_sugar_v2" width="300" height="225" class="size-medium wp-image-376" /></a><p class="wp-caption-text">FBReader Activity for Sugar</p></div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/03/20/19th-march-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>16th February, 2009</title>
		<link>http://sayamindu.randomink.org/ramblings/2009/02/16/16th-february-2009/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2009/02/16/16th-february-2009/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 13:35:29 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[L10n]]></category>
		<category><![CDATA[OLPC]]></category>
		<category><![CDATA[Pootle]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sugar]]></category>
		<category><![CDATA[weekendhacks]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=357</guid>
		<description><![CDATA[
Pootle migration: We are moving the OLPC/Sugarlabs Pootle instance to a newer dedicated server, which should speed it up considerably. This has also given me some opportunity to fine-tune and polish our l10n workflow &#8211; things should be a bit more easier and smoother (and faster) for translators. I also managed to gather some interesting [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><b>Pootle migration</b>: We are moving the OLPC/Sugarlabs Pootle instance to a newer dedicated server, which should speed it up considerably. This has also given me some opportunity to fine-tune and polish our l10n workflow &#8211; things should be a bit more easier and smoother (<i>and faster</i>) for translators. I also managed to gather some interesting data from the log and user registration files. It turns out that we have more than 1000 translators registered with the system, among whom about half have actively contributed translations in the past one year. I&#8217;m not sure what the user statistics for other Pootle installations are like, but it seems that we are one of the larger users of Pootle out there.</li>
<li><b>Read hacking</b>: I have been also spending some time hacking on Read. While Mr Super Awesome <a href="http://blog.tomeuvizoso.net/">Tomeu</a> has been pushing our Evince patches upstream, I have been working on a few interesting features for Read (we have moved to <a href="http://git.sugarlabs.org/">Gitorious</a>, which is so cool):
<ul>
<li><b>Support for books from the Universal Library:</b> Many of the scanned childrens&#8217; book from the <a href="http://www.archive.org/details/universallibrary">Universal Library Project</a> are too graphics heavy for the XO hardware to be handled in PDF form. However, it looks like the project also stores the book as zip files with each scanned page archived inside the zip file as individual jpegs &#8211; which in other words, is very similar to the <a href="http://en.wikipedia.org/wiki/CBR_(file_format)">comic book archive format</a> which Evince (Read&#8217;s backend) supports quite nicely. More importantly, this format seems to have lesser performance issues on the XO hardware (compared to graphics heavy PDF files). So I have been making sure that Read also handles this format gracefully.<br />
<a href="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/02/shot_ol_read.png" rel="lightbox"><img src="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/02/shot_ol_read-300x194.png" alt="Book from the Universal Library in Read" title="Book from the Universal Library in Read" width="300" height="194" class="aligncenter size-medium wp-image-358" /></a></li>
<li><b>Bookmarks support:</b>This has been one of the oft requested features for Read, apart from annotations. The original <a href="http://wiki.laptop.org/go/Read">design specs</a> for Read already provided me with ideas on how the UI should look like, so with some amount of coding, I have bookmark support which mostly works <img src='http://sayamindu.randomink.org/ramblings/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . I am also trying to do the implementation in such a way so that it would be easy to add support for sharing of bookmarks later on in the future. If anyone is interested in doing a project, contact me (hint.. hint <img src='http://sayamindu.randomink.org/ramblings/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )<br />
<a href="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/02/read_bookmarks.png" rel="lightbox"><img src="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2009/02/read_bookmarks-300x225.png" alt="Bookmarks in Read" title="Bookmarks in Read" width="300" height="225" class="aligncenter size-medium wp-image-359" /></a></li>
</ul>
<p>Code for the above lives in the <a href="http://git.sugarlabs.org/projects/read/repos/sayamindu-sandbox">sayamindu-sandbox branch</a> of Read&#8217;s Git repository. I plan to take a stab at annotations during the next few weeks &#8211; I have some ideas which, with some luck, may work. I also have some plans about a saner full-screen/ebook mode for Read &#8211; let&#8217;s see if I get the time to implement those as well.</li>
<li><a href="http://olpc-ceibal.blogspot.com/2009/01/anecdotes-of-plan-ceibal-in-durazno.html">This</a> came up in one of the mailing lists a few days back. Serves as a reminder as to why the work we all do is so relevant and so important.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2009/02/16/16th-february-2009/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>l10n: More than one language</title>
		<link>http://sayamindu.randomink.org/ramblings/2008/10/17/l10n-more-than-one-language/</link>
		<comments>http://sayamindu.randomink.org/ramblings/2008/10/17/l10n-more-than-one-language/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 21:37:19 +0000</pubDate>
		<dc:creator>Sayamindu</dc:creator>
				<category><![CDATA[Free Software]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[I18n]]></category>
		<category><![CDATA[L10n]]></category>
		<category><![CDATA[sugar]]></category>

		<guid isPermaLink="false">http://sayamindu.randomink.org/ramblings/?p=335</guid>
		<description><![CDATA[Falling back to English when translation of a particular string is not found is not always the best solution. As a practical example, our Aymara users would prefer that the fallback language be Spanish, and only if the Spanish translation is not found, English should be shown.
I was wondering how to implement this for Sugar [...]]]></description>
			<content:encoded><![CDATA[<p>Falling back to English when translation of a particular string is not found is not always the best solution. As a practical example, <a href="http://laptop.org">our</a> Aymara users would prefer that the fallback language be Spanish, and only if the Spanish translation is not found, English should be shown.</p>
<p>I was wondering how to implement this for <a href="http://sugarlabs.org">Sugar</a> and its activities, and I realized that something like this is <a href="http://www.python.org/doc/2.5.2/lib/node732.html">already implemented</a> in Python&#8217;s gettext implementation. So after some changes to Sugar, I had the following:</p>
<p><a href="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2008/10/sugar_multilang.png" rel="lightbox"><img src="http://sayamindu.randomink.org/ramblings/wp-content/uploads/2008/10/sugar_multilang.png" alt="" title="Sugar in Aymara and Spanish" width="500" height="126" class="alignnone size-full wp-image-336" /></a></p>
<p>In the screenshot, the <em>Restart Game</em> pop-up is not translated into Aymara, and so it shows up in Spanish as <em>Reiniciar Juego</em>, while the rest of the strings are in Aymara.</p>
<p>Of course, there is a <em>lot</em> more to be done &#8211; the Sugar control panel language selector needs to be changed to allow selection and ordering of multiple languages, and currently this works for activities, core Sugar needs to support this feature as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://sayamindu.randomink.org/ramblings/2008/10/17/l10n-more-than-one-language/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
