La Salle Debain



June
Sun Mon Tue Wed Thu Fri Sat
     
26 27 28 29 30    


Open Source @ Consolidated Braincells Inc.

About La Salle Debain

This is a weblog I'm keeping about my work on Debian and any other useful Debian related info I come across. It is not meant to compete with other news sources like Debian Weekly News or Debian Planet. Mostly it is just a way for me to classify and remember all the random bits of information that I have floating around me. I thought maybe by using a blog it could be of some use to others too. Btw. "I" refers to Jaldhar H. Vyas, Debian developer for over 5 years. If you want to know more about me, my home page is here.

The name? Debain is a very common misspelling of Debian and la salle de bains means bathroom in French.

If you have a comment to make on something you read here, feel free to write to me at jaldhar@debian.org.

You can get an rss 0.91 feed of any page in the blog by appending ?flav=rss to the end of the URL.

Tue, 26 Apr 2005

City Of Joy

According to an article at MSN Health and Fitness, Jersey City (where I live) is the the third happiest city in America. The most depressed incidently, is Philadelphia.


posted at: 15:09 | #

Sat, 23 Apr 2005

Exporting from Advogato

If you want to do as Joey Hess did and import Advogato entries into your blog, you should take his advice and use the XML-RPC interface. To do so, may I suggest my WebService::Advogato perl module? I haven't gotten around to getting it in Debian yet, though the source does include a debian directory. A simple script to include all entries might look like this:

#!/usr/bin/perl
use strict;
use warnings;
use WebService::Advogato;
my $client = WebService::Advogato->new('user'. 'password');
my $numentries = $client->len('user');
if ($numentries > 0)
{
  for my $index (0 .. $numentries - 1)
  {
    my $entry =  $client->get('user', $index);
    my ($date_created, $date_lastupdated) = $client->getDates('user', $index);
    # Now munge into whatever format your blog uses.
  }
}

Of course you should replace 'user' and 'password' with your real username and password.


posted at: 23:06 | #