Older blog entries for kabads (starting at number 1)

I've not had as much time as I'd like to look into python - however, I've written my obligatory calc script (with no error checking).

Feel free to try it for yourselves (note that advogator doesn't really look after indentation, or I haven't found out how to do it yet). Indentation is key in python.

First impressions are that python is nice and clean. I could do some special stuff with this, given my time commitments now. I'm thinking about writing a little app which keeps tracks of my computer magazine collection and the articles within (I waste loads of time flicking through all the magazines to find an article from Nov 2002). If something comes of this, I'll post it here.

#! /usr/bin/env python import sys

arg1 = raw_input("What is your first number?:") oper = raw_input("What operation: +, -, *, / ?") arg3 = raw_input("What is your second number?:")

num1 = float(arg1) num2 = float(arg3)

if oper == "+": answer = num1+num2 print answer elif oper == "-": answer = num1-num2 print answer elif oper == "/": answer = (num1/num2) print answer elif oper == "x": answer = (num1*num2) print answer

print num1, oper, num2, "=", answer

Am I the first to think about switching from Java to something else, with the latest announcement from Sun that Java will not be open-sourced? Is it the principle of it, or is it just a trend? I don't feel comfortable with something that is controlled by a company who may not have my interests, or the interests of a wider community, but hey, I bought into that when I took java on. I also like the way that Big Blue is trying to get Sun to open Java, but have few contributions themselves (will websphere ever be opened up?)

So, Python beckons - and looks nice too. How does it compare with the multiple widgets system, and which one to chose?

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!