Engwar

Chintana Wilamuna's weblog

Archive for the ‘Uncategorized’ Category

To hell with opensource politics

with 3 comments

Alan has nicely put into words something I’ve been pondering for a couple of days now. GitHub is a place where forking a codebase is the norm. You fork a particular codebase, play around with it, add your modifications and if the master branch owner agrees and think your stuff is cool he can merge the changes. If he doesn’t agree, you could continue with your cool additions and can tell people to pull from you.

Compare this with a more traditional method of maintaining an open source project. Alan mentions SourceForce as an example. It’s not the only one. You have a central repository where a few people act as committers who can control what changes can go into its repo. GitHub on the other hand provides a new perspective. See the graph for Ruby on Rails for example. With a decentralized view like that you can quickly find out who meddles with the code and who are the people having a keen interest to contribute.

Amount of politics that’s going to be generated around the project is very limited compared with a centralized cvs/svn repo project. You can get rid of all those private mailing lists and just carry on with what matters most, after all code speaks on everyone’s behalf ;-)

Written by Chintana

November 17th, 2008 at 5:24 am

Multicast flooding with Pulseaudio

without comments

Pulseaudio multicasting options are a very evil thing to enable inside a network. If I can remember the numbers correctly it was sending out around 250 MB of UDP packets every hour when you enable it. This makes the whole network unusable.

PulseAudio preferences dialog

Please don’t try this at office.

Written by Chintana

November 14th, 2008 at 1:43 pm

Fetching song lyrics

with 13 comments

LyricWiki is an excellent free service providing song lyrics. A la wikipedia for song lyrics. One cool feature is that the site uses nuSOAP to provide a web services interface for fetching lyrics. Wrote a small PHP class with the help of WSF/PHP which will give a simpler interface. Grab it here (make sure to rename it to .php).

Here’s a few method calls,

Getting song of the day should be easy. getSOTD() method returns an array, song title, artist and the lyrics. Let’s just fetch the song and display only the lyrics.

<?php
require 'lyricwiki.php';
 
$lw = new LyricWiki();
 
$song = $lw->getSOTD();
 
print $song['lyrics'];
?>

Ok, let’s try to fetch lyrics of a song you know,

<?php
require 'lyricwiki.php'
 
$lw = new LyricWiki();
 
# parameters: artist and the song title
print $lw->getSong('iron & wine', 'boy with a coin');
 
?>

Written by Chintana

October 16th, 2008 at 12:03 pm

Posted in Uncategorized