<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<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/"
	>

<channel>
	<title>arnebrasseur.net</title>
	<link>http://www.arnebrasseur.net</link>
	<description></description>
	<pubDate>Thu, 29 May 2008 15:27:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>The last post</title>
		<link>http://www.arnebrasseur.net/2008/03/24/the-last-post/en/</link>
		<comments>http://www.arnebrasseur.net/2008/03/24/the-last-post/en/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 05:53:12 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Informational</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2008/03/24/the-last-post/nl/</guid>
		<description><![CDATA[
I have decided to no longer continue to blog in English on this site. I will still be blogging in Dutch.
It&#8217;s been increasingly difficult for me to maintain a certain continuity here. It&#8217;s been a great experiment, and a lot of fun, but I feel it&#8217;s time to let this one go.
I&#8217;m working on a [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>I have decided to no longer continue to blog in English on this site. I will still be blogging in Dutch.</p>
<p>It&#8217;s been increasingly difficult for me to maintain a certain continuity here. It&#8217;s been a great experiment, and a lot of fun, but I feel it&#8217;s time to let this one go.</p>
<p>I&#8217;m working on a new site with a much more narrow focus, something this site dearly lacks. It might still be a while before it sees the light of day, so I&#8217;m not revealing too much about it yet.</p>
<p>A big thanks to anyone who has been reading this blog, leaving comments or just following what&#8217;s happening. It&#8217;s been great!</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2008/03/24/the-last-post/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Getting subtitles in sync</title>
		<link>http://www.arnebrasseur.net/2007/12/23/getting-subtitles-in-sync/en/</link>
		<comments>http://www.arnebrasseur.net/2007/12/23/getting-subtitles-in-sync/en/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 01:40:58 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Ruby</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/12/23/getting-subtitles-in-sync/nl/</guid>
		<description><![CDATA[
As an early new years resolution I&#8217;ll start with sharing more of the snippets I code up to make my life easier. Here&#8217;s one : the SRT subtitle scaler. It&#8217;s a little ruby script to sync subtitles with a movie. I don&#8217;t know how often one needs this, but I got some English subtitles on-line [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>As an early new years resolution I&#8217;ll start with sharing more of the snippets I code up to make my life easier. Here&#8217;s one : the <a href="http://snipplr.com/view/4411/resync-srt-subtitles/">SRT subtitle scaler</a>. It&#8217;s a little ruby script to sync subtitles with a movie. I don&#8217;t know how often one needs this, but I got some English subtitles on-line for a Chinese movie and I just couldn&#8217;t get them to properly line up with the movie.
</p>
<p>
Mplayer has an option to set a delay (possibly negative), but that didn&#8217;t help in my case. You can also set the subtitle fps (frames per second), but that only works when the subtitle format uses frame numbers, while SRT files use timestamps.
</p>
<p>
If you have this problem this script can help. There are usage instructions in the comments.
</p>
<p>
Enjoy!
</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/12/23/getting-subtitles-in-sync/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Do what you can&#8217;t not do</title>
		<link>http://www.arnebrasseur.net/2007/11/30/do-what-you-cant-not-do/en/</link>
		<comments>http://www.arnebrasseur.net/2007/11/30/do-what-you-cant-not-do/en/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 16:25:59 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Inspirational</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/11/30/do-what-you-cant-not-do/</guid>
		<description><![CDATA[
By accidentally using the right four-word combination on Google I stumbled upon a 2002 article by Mark Pilgrim, and somehow it prompted me to use that good old blockquote tag once again. These are the closing words of the article, citing himself two years before that. Spot on Mark, spot on!

As I write this, the [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>By accidentally using the right four-word combination on Google I stumbled upon a <a href="http://diveintomark.org/archives/2002/08/04/dive_into_history">2002 article by Mark Pilgrim</a>, and somehow it prompted me to use that good old blockquote tag once again. These are the closing words of the article, citing himself two years before that. Spot on Mark, spot on!</p>
<blockquote><p>
As I write this, the year is 2000, and the Internet is a battleground of intellectual property disputes. Some people would like you to believe that, without proper financial incentives, music, literature, and computer software would disappear. After all, who would make music if they can’t make money on it? Who would write? Who would program? I know the answer. The answer is that musicians will make music, not because they can make money, but because musicians are the people who can’t not make music. Writers will write because they can’t not write. I’ve been programming for 16 years, writing free software for 8. I can’t imagine not doing this. If you can imagine yourself not doing what you’re doing, do something else. Do whatever it is that you can’t not do.
</p></blockquote>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/11/30/do-what-you-cant-not-do/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Going Gutsy : installing the latest Ubuntu</title>
		<link>http://www.arnebrasseur.net/2007/11/13/going-gutsy-installing-the-latest-ubuntu/en/</link>
		<comments>http://www.arnebrasseur.net/2007/11/13/going-gutsy-installing-the-latest-ubuntu/en/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 12:24:14 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Informational</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/11/13/going-gutsy-installing-the-latest-ubuntu/</guid>
		<description><![CDATA[
A while ago the fabulous folks from Ubuntu released the latest version of their popular Linux distributions. The version number of Ubuntu, Kubuntu and Edubuntu is now up to 7.10 (being the year and month it was released). More often however Ubuntu versions are referred to by their alliterating nicknames. I&#8217;ll go over my experiences [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>A while ago the fabulous folks from Ubuntu released the latest version of their popular Linux distributions. The version number of Ubuntu, Kubuntu and Edubuntu is now up to 7.10 (being the year and month it was released). More often however Ubuntu versions are referred to by their alliterating nicknames. I&#8217;ll go over my experiences upgrading from Feisty Fawn to Gutsy Gibbon.
</p>
<h3>Upgrading from Feisty</h3>
<p>
Being a Debian based distribution all software management can be easily performed by the &#8216;apt&#8217; family of tools. The first step in upgrading is letting apt know that I would from now on prefer the Gutsy packages.
</p>
<p>
<code>
<pre>
sudo sed s/feisty/gutsy/g -i /etc/apt/sources.list
sudo apt-get update
</pre>
<p></code>
</p>
<p>
You might notice that there is no gutsy-commercial repository like there used to be a feisty-commercial, with for instance Opera and Realplayer. If you were using it you&#8217;ll have to comment it out or keep using the one from Feisty.
</p>
<p>
When I do these big upgrades I switch to a plain tty console because I&#8217;ve had it happen that one of the install scripts restarted X11. So press SHIFT-F1 and login to the console. To have some record of what happened afterwards I use the great little utility &#8216;tee&#8217;. This will record whatever passes stdout to a file. So to start upgrading do this:
</p>
<p>
<code>
<pre>
sudo apt-get dist-upgrade | tee feisty-to-gutsy-`date +%Y%m%d`.log
</pre>
<p></code>
</p>
<p>
This way you&#8217;ll get a nice date stamped log of the whole install process. If you switch back to X (Shift-F7) to do some work in the meanwhile, you can open a terminal window and do a &#8216;tail -f&#8217; on that file so you know what&#8217;s happening
</p>
<h3>First hickup : device-manager</h3>
<p>
After some 1300 packages were upgraded I rebooted my computer. A new kernel (2.6.22-14) had been installed, and it seemed to be making some trouble. Instead of booting into X I saw per second several identical error messages flying over my screen, the gist of it being:
</p>
<p><pre>
device-manager: linear: dm-linear: Device lookup failed
</pre>
</p>
<p>
Booting with my previous kernel solved the problem, so I got on-line and after some googling found a fix, in /etc/evms.conf find the line that says &#8216;exclude=&#8230;&#8217; and change it to:
</p>
<p><pre>
exclude = [ sd* ]
</pre>
</p>
<p>
I&#8217;m not even sure what EVMS is, I&#8217;m guessing this is related to HAL (Hardware Abstraction Layer). What this does is exclude your harddrives, from eh.. something. It solved the problem for me.
</p>
<p>
I&#8217;ve had kernel upgrades in Ubuntu create problems before, IMHO they could be a little bit more conservative with their kernels.
</p>
<h3>Smaller hickups</h3>
<p>After booting again everything was working like a charm. They also did a great job again on the artwork. I had to tweak a few more small things.</p>
<p>Mozilla&#8217;s Thunderbird email program is now started simply with &#8216;thunderbird&#8217; in stead of &#8216;mozilla-thunderbird&#8217;. I had to update a shortcut.</p>
<p>I use Emacs for most of my editing tasks, and somehow the version with XFont backend that I previously had installed got replaced by another one. The version with XFont support is not available in the Ubuntu repositories so this is understandable. There&#8217;s a guy that packages this pretty version, and apparently he has since I last checked made an actual apt repository available. See this article : <a href="http://peadrop.com/blog/2007/01/06/pretty-emacs/">Pretty Emacs by Alexandre Vassalotti</a>.
</p>
<p>
Looking closer I found to have three different Emacs flavors on my system. I just removed them all, added the repositories from Alexandre and installed my trusted XFont version. Nice!</p>
<p>There seems to also be something going on with StarDict. The little windows that pop up with translations jump to the upper left corner when you hover over them, and then immediatly disappear. I might have to revert to the old version.</p>
<h3>Conclusion</h3>
<p>I&#8217;ve been upgrading my system since Dapper, and although there are often small hickups a little bit of google will solve most of your woes. I&#8217;ve only used my new system for a day now, so there&#8217;s probably lots of new little features that I still have to discover. All in all this seems to be another rock solid distribution which I&#8217;d wholeheartedly recommend to both newbies and seasoned hackers.</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/11/13/going-gutsy-installing-the-latest-ubuntu/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Announcing ZhongWiki</title>
		<link>http://www.arnebrasseur.net/2007/10/13/announcing-zhongwiki/en/</link>
		<comments>http://www.arnebrasseur.net/2007/10/13/announcing-zhongwiki/en/#comments</comments>
		<pubDate>Sat, 13 Oct 2007 14:52:42 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Educational</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/10/13/announcing-zhongwiki/</guid>
		<description><![CDATA[
Last week saw the launch of the first version of ZhongWiki. A wiki for people learning Mandarin Chinese. It&#8217;s still in it&#8217;s infancy, but I have a feeling it might become a great site and possibly a vibrant community.
A wiki is a site that can be edited and expanded by basically anyone. The best known [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>Last week saw the launch of the first version of <a href="http://www.zhongwiki.com">ZhongWiki</a>. A wiki for people learning Mandarin Chinese. It&#8217;s still in it&#8217;s infancy, but I have a feeling it might become a great site and possibly a vibrant community.</p>
<p>A wiki is a site that can be edited and expanded by basically anyone. The best known example is Wikipedia. This site however does not try to be an encyclopedia, but rather a resource and a meeting ground for students of Mandarin. This means that not everything has to be properly sourced and you don&#8217;t need to have a neutral point of view. Opinions are appreciated and encouraged.</p>
<p>The name ZhongWiki is a wordplay on 中文 which means Chinese language and is pronounced &#8220;zhong wen&#8221; in Mandarin. It is written in CamelCase with the &#8220;Z&#8221; and the &#8220;W&#8221; capitalized as a homage to early wikis which used CamelCase to create links in pages.</p>
<p>So head over to <a href="http://www.zhongwiki.com">ZhongWiki</a> if Mandarin is your cup of <em>cha</em>, and keep a lookout for the edit button.</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/10/13/announcing-zhongwiki/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Smile :-), it&#8217;s your birthday</title>
		<link>http://www.arnebrasseur.net/2007/09/24/smile-its-your-birthday/en/</link>
		<comments>http://www.arnebrasseur.net/2007/09/24/smile-its-your-birthday/en/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 09:00:12 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Inspirational</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/09/24/smile-its-your-birthday/</guid>
		<description><![CDATA[
Last week the Smiley   turned 25. Happy birthday and congratulations! It was proposed by Scott E  Fahlman in a post to a &#8220;Bulletin board&#8221; at Carnegie Mellon University the 19th of September 1982. Scott proposed its use to mark humorous or sarcastic remarks so they wouldn&#8217;t be misunderstood.


These two pages have more [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>Last week the Smiley <img src='http://www.arnebrasseur.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  turned 25. Happy birthday and congratulations! It was proposed by Scott E  Fahlman in a post to a &#8220;Bulletin board&#8221; at Carnegie Mellon University the 19th of September 1982. Scott proposed its use to mark humorous or sarcastic remarks so they wouldn&#8217;t be misunderstood.
</p>
<p>
These two pages have more info on the origin of the Smiley
</p>
<ul>
<li><a href="http://research.microsoft.com/~mbj/Smiley/Smiley.html">The First Smiley <img src='http://www.arnebrasseur.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </a></li>
<li><a href="http://www.cs.cmu.edu/~sef/sefSmiley.htm">Smiley Lore <img src='http://www.arnebrasseur.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/09/24/smile-its-your-birthday/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Scratching my Flickr itch with Nitro</title>
		<link>http://www.arnebrasseur.net/2007/09/05/scratching-my-flickr-itch-with-nitro/en/</link>
		<comments>http://www.arnebrasseur.net/2007/09/05/scratching-my-flickr-itch-with-nitro/en/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 11:43:57 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Educational</category>
	<category>Nitro</category>
	<category>Ruby</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/09/05/scratching-my-flickr-itch-with-nitro/</guid>
		<description><![CDATA[
I have somewhat neglected my English speaking audience, I must apologise. I&#8217;ve recently moved to Taiwan to study Mandarin, and my travellers journal will mostly be published on the Dutch side of this blog.


Before I left to Taiwan my grandmother gave me a beautiful little camera, and I&#8217;ve been taking pictures like a madman and [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>I have somewhat neglected my English speaking audience, I must apologise. I&#8217;ve recently moved to Taiwan to study Mandarin, and my travellers journal will mostly be published on the Dutch side of this blog.
</p>
<p>
Before I left to Taiwan my grandmother gave me a beautiful little camera, and I&#8217;ve been taking pictures like a madman and posting them to <a href="http://flickr.com/photos/plexus">my Flickr account</a>. I would like to include these pictures into my blogposts, but I would like to use a specific HTML template, so I can easily style them with CSS, like so :
</p>
<p><div class="photo flickr">
  <a href="http://www.flickr.com/photos/49646285@N00/1293955511" title="Giraf schenkt David en Arne thee"><img src="http://farm2.static.flickr.com/1383/1293955511_c30ccce012_m.jpg" /></a></p>
<div class="caption">Giraf schenkt David en Arne thee</div>
</div>
<p>
Because of this the Flickr generated code and most other solutions out there are no good. Instead I decided to code up my own solution, scratch the old itch so to say. In the meantime you guys can enjoy a little example of a Nitro app in action. It&#8217;s a wee little thingy, but it shows that with Nitro you don&#8217;t get much overhead in your code. If you make a small Rails application, the noise to signal ratio is huge with so much pregenerated stuff you&#8217;re not gonna need.
</p>
<p>
So the target is just a single page with my most recent pictures, and next to that a text area that contains copy-paste ready HTML in my desired format. I coded this up in a small hour, with most time spent reading the Flickr API docs. I tried the flickr gem, but it&#8217;s no longer maintained and I couldn&#8217;t get it to work quickly, so I started my own wrapper just for the API calls I need. (YAGNI, right.)
</p>
<p>
The &#8220;app&#8221; is called Flikker (which is a not-so-polite word in Dutch BTW, wonder how many search engine hits this will bring me). Download it here <a href="/downloads/flikker0.tar.gz">Flikker v0.0</a> as a tarball.
</p>
<p>
To run:</p>
<ul>
<li>in settings.rb fill in your Flickr API key and user name</li>
<li>adapt &#8216;launch&#8217; to point to your Nitro repository</li>
<li>change conf/debug.rb if you want to use something other than mongrel</li>
<li>./launch</li>
<li>visit localhost:9000 in your browser</li>
</ul>
<p>
Actually this is such an embarassingly small app I wasn&#8217;t going to put it out there, but it&#8217;ll be damn handy for me, so maybe somebody else has a use for it also.</p>
</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/09/05/scratching-my-flickr-itch-with-nitro/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Converting FOAF to OPML</title>
		<link>http://www.arnebrasseur.net/2007/08/15/converting-foaf-to-opml/en/</link>
		<comments>http://www.arnebrasseur.net/2007/08/15/converting-foaf-to-opml/en/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 15:22:15 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Ruby</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/08/15/converting-foaf-to-opml/</guid>
		<description><![CDATA[
Soon my first professional contract comes to an end, and I will have time again to develop my newsfeed addiction.
Previously I used Bloglines, which is certainly one of the better on-line feed readers. I&#8217;m switching to a desktop feed reader however, I&#8217;m trying out Liferea.
I&#8217;d like to add all the Planet Ugent blogs to my [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>Soon my first professional contract comes to an end, and I will have time again to develop my newsfeed addiction.</p>
<p>Previously I used Bloglines, which is certainly one of the better on-line feed readers. I&#8217;m switching to a desktop feed reader however, I&#8217;m trying out Liferea.</p>
<p>I&#8217;d like to add all the <a href="http://www.planet-ugent.be">Planet Ugent</a> blogs to my list of feeds, but the available OPML contains no URL&#8217;s. Pretty useless this way. Nothing is lost however, since they still have a FOAF export. The FOAF however contains only the blog URLs, not the actual feeds.</p>
<p>Ruby to the rescue!</p>
<p>
<pre name="code" class="ruby:nocontrols">
require 'rubygems'
require 'open-uri'
require 'hpricot'

doc = Hpricot open('http://planet-ugent.be/foafroll.xml')

def extract_feed(url)
  return 'error://no url' unless url &#038;&#038; url != ''
  begin
    page = Hpricot(open(url))
    %w(application/atom+xml application/rss+xml).each do |t|
      link = page.at("link[@type=#{t}]")
      if link
        link = link.attributes['href']
        if link =~ /^\//
          link = url[/^[w]+:\/\/[^\/]+/] + link
        elsif link !~ /^[^\/]+:\/\//
          link = url[/^.*\//] + link
        end
        return link
      end
    end
    'error://not found'
  rescue Timeout::Error
    'error://timeout'
  rescue SocketError
    'error://socket error'
  end
end

feeds = doc.search('foaf:member').map do |m|
  name = m.at('foaf:name').inner_html
  url = m.at('foaf:document').attributes['rdf:about']
  [name, extract_feed(url)]
end

puts %(&lt;opml version="1.1">
  &lt;head>
    &lt;title>Planet UGent</title>
    &lt;dateCreated>#{Time.now.rfc822}</dateCreated>
    &lt;dateModified>#{Time.now.rfc822}</dateModified>
    &lt;ownerName>Ikke</ownerName>
    &lt;ownerEmail>eikke at eikke dot commercial</ownerEmail>
  &lt;/head>
  &lt;body>
)

feeds.each do |name, url|
  puts %(    &lt;outline text=&#8221;#{name}&#8221; xmlUrl=&#8221;#{url}&#8221;/>\n)
end

puts &#8221;  &lt;/body>\n&lt;/opml>&#8221;
</pre>
</p>
<p>This script will extract the FOAF names and urls, load each page and extract the feed. Atom feeds get precedence over RSS feeds. It should be able to handle relative URLs, but this is not thoroughly tested. The OPML is written on standard out.</p>
<p>Find the result <a href="/wp-content/uploads/ugent.opml">here</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/08/15/converting-foaf-to-opml/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>Pinyin for Ruby 0.0.1 has been released</title>
		<link>http://www.arnebrasseur.net/2007/07/26/pinyin-for-ruby-001-has-been-released/en/</link>
		<comments>http://www.arnebrasseur.net/2007/07/26/pinyin-for-ruby-001-has-been-released/en/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 09:47:14 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Informational</category>
	<category>Ruby</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/07/26/pinyin-for-ruby-001-has-been-released/</guid>
		<description><![CDATA[
Today I released my very first public Ruby project!


Pinyin is a pure Ruby library with a specific focus : converting between various transliteration systems for Mandarin Chinese.
Over time various systems have been devised to capture the phonetics of the Chinese language, often as a teaching aid.
This is the first public release. Pinyin for Ruby can [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p>Today I released <a href="http://rubyforge.org/projects/pinyin/">my very first public Ruby project</a>!</p>
<p>
<blockquote>
Pinyin is a pure Ruby library with a specific focus : converting between various transliteration systems for Mandarin Chinese.</p>
<p>Over time various systems have been devised to capture the phonetics of the Chinese language, often as a teaching aid.</p>
<p>This is the first public release. Pinyin for Ruby can currently convert between five different systems, with more to come.</p>
<p>- Hanyu Pinyin<br />
- Wade-Giles<br />
- Tongyong Pinyin<br />
- Zhuyin Fuhao (BoPoMoFo)<br />
- IPA (International Phonetic Alphabet)</p>
<p>It does this by decomposing each syllable into its three components (initial, final and tone) and then recomposing the syllable in a different system. This approach was chosen over a table based approach because it better captures the way each system works.</p>
<p>Conversion tables are included to test the package.
</p></blockquote>
<p>There&#8217;s still plenty to be done, but since it already has some nice capabilities I&#8217;m putting this out in the open, to see if there is any interest. Next step is to move from my private SVN repository to the one on Rubyforge. The project also needs a homepage.</p>
<p>Give it a whirl! Simply type</p>
<p>
<pre>
gem install pinyin
</pre>
</p>
<p>(Adding &#8217;sudo&#8217; where necessary.)</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/07/26/pinyin-for-ruby-001-has-been-released/feed/en/</wfw:commentRSS>
		</item>
		<item>
		<title>The daily Nitro</title>
		<link>http://www.arnebrasseur.net/2007/07/01/the-daily-nitro/en/</link>
		<comments>http://www.arnebrasseur.net/2007/07/01/the-daily-nitro/en/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 10:13:41 +0000</pubDate>
		<dc:creator>Arne</dc:creator>
		
	<category>Informational</category>
	<category>Nitro</category>
	<category>Ruby</category>
		<guid isPermaLink="false">http://www.arnebrasseur.net/2007/07/01/the-daily-nitro/</guid>
		<description><![CDATA[
Important 2007-12-01 :  This article is deprecated. The location of the repository changed and I haven&#8217;t had the time to update my scripts to reflect this. With version 0.50 approaching an easier way of trying out Nitro is on the horizon. I&#8217;ll write a new article soon that will supersede this one. If you [...]]]></description>
			<content:encoded><![CDATA[<div lang="en">
<p><strong>Important 2007-12-01 : </strong> This article is deprecated. The location of the repository changed and I haven&#8217;t had the time to update my scripts to reflect this. With version 0.50 approaching an easier way of trying out Nitro is on the horizon. I&#8217;ll write a new article soon that will supersede this one. If you need help getting Nitro up and running please ask advice on the Nitro mailing list.</p>
<p><em>Update:</em> Changed the RUBYOPT line to load rubygems and to be compatible with the RSpec specs.
<p>As I&#8217;ve mentioned I&#8217;m becoming involved in the Nitro community, a web framework for Ruby.</p>
<p>The latest release is 0.42, but it&#8217;s an old, outdated release and is no longer recommended. In stead we urge everyone to use the repository version, wich in time will become 0.50. The version control system used is Darcs, a powerful distributed VCS written in Haskell. However since darcs is less popular than say Subversion or CVS, I decided to make a daily tarball. This way you can try the repo version without having darcs installed.</p>
<p>It can be found at <a href="http://arnebrasseur.net/glycerin/nitro-latest.tar.gz">http://arnebrasseur.net/glycerin/nitro-latest.tar.gz</a>. This is a symlink to a timestamped file in the same <a href="http://arnebrasseur.net/glycerin">directory</a>. A new one should be created daily around 9.30 CET (8.30 GMT).</p>
<p>To get started with it you need to set up your ruby load path. The easiest way to do this is to load the glycerin script, which will set up the load path to include the various Nitro components (Nitro, Raw, Og and Glue).</p>
<p>I have this in my ~/.bashrc to do this behind the scenes.</p>
<p>
<pre>
export NITRO_REPO=~/work/nitro
export RUBYOPT="-r$NITRO_REPO/script/lib/glycerin -rubygems"
</pre>
</p>
<p>You will also need Facets, Xmlsimple and RedCloth. These can be installed as gems. To run the blog example you also need the uuidtools gem.</p>
<p>There&#8217;s also a nitro command to start a Nitro app with various options. It can be found under nitro/nitro/bin, so I added this to .bashrc:</p>
<p>
<pre>
export PATH=~/work/nitro/nitro/bin:"${PATH}"
</pre>
</p>
<p>An overview of the command line options (and other assorted Nitro articles) are available <a href="http://wiki.arnebrasseur.net/NitroOg/CommandLineOptions">on my wiki.</a></p>
<p>To get a feel for a typical nitro application, take a look at examples/blog.</p>
<p>Please report any difficulties you had with getting the repo version up and running.</p>
</div>
]]></content:encoded>
			<wfw:commentRSS>http://www.arnebrasseur.net/2007/07/01/the-daily-nitro/feed/en/</wfw:commentRSS>
		</item>
	</channel>
</rss>
