Older blog entries for fxn (starting at number 141)

12 Nov 2002 (updated 12 Nov 2002 at 10:32 UTC) »

For the comparative in my Perl seminar, I have been looking for a language independent way of measuring memory usage of a process in Linux different from time(1), but found no answer in IRC or Usenet.

The problem with time(1) in this Debian is that the M resource specifier returns always 0, which according to its man page means that it is not available. By the way, don't waste your time like me executing time -f format program and staring at the terminal like an idiot trying to understand why on earth you get the error bash: -f: command not found, swearing aloud that the man page says that should be a valid call, lighting candles and burning incense around the screen in case there are ghosts in the computer: Bash has a time builtin, so you need to call it as /usr/bin/time or whatever. My goodness.

The solution came yesterday night, I read in Perl Debugged that Unix processes only grow! On page 176 it says:

Note that the amount of memory allocated by a Unix process never decreases before it terminates; whenever it frees memory it makes it available only for the same process to reuse again later. (It is not returned to the free pool for other processes to use.)
I didn't know it! This is excellent news: Since we have the source code of the five programs measuring their memory usage is then as easy as calling ps(1) from within them before they exit. We've finally got the graph I missed in the presentation. Great!

V Congreso Hispalinux

No mail from the organization, but the program has been updated and there are three hours for the seminar now, on Friday afternoon.

10 Nov 2002 (updated 11 Nov 2002 at 17:22 UTC) »

V Congreso Hispalinux

I wrote to the organization an email yesterday asking why the three hours seminar has been reduced to one hour talk without any previous notice, and having just five working days to react. In fact, I don't even have known it from them, but reading the program!

No response.

I could understand they did a wrong estimation, or they forgot the time accorded for my seminar when assigning holes in the table, or they just did a mistake. No problem. But no response? Not even a courtesy reply? Is this serious?

Incredible! The program of the V Congreso Hispalinux hadn't been published until today. Not only the congress will be held next weekend, they have assigned one hour to my talk, which they accepted as a three hours seminar.

I cannot cut the presentation and get something good in the few spare time I have until next Saturday, and nevertheless the aim and approach of Perl, una idea needs more than one hour for sure. We accorded that time!

I need to consult with my pillow what I'm gonna do, but it's very likely that I cancel my talk.

5 Nov 2002 (updated 5 Nov 2002 at 19:25 UTC) »

I have translated to Spanish the home page of The Perl Quiz of the Week.

The Perl Quiz of the Week is a wonderful project launched by Mark Jason Dominus: every Wednesday he proposes two Perl programming puzzles via a mailing list, and you try to solve them on your own. There is no winner, no competition whatsoever, it is problem solving for the fun of problem solving. After a mandatory initial silence of 60 hours people is allowed to share hints, solutions, compare approaches, etc., via a mailing list. A commented summary with some sample solutions is written by Mark himself and sent on Monday.

Dial-up times are gone at last, we have an ADSL at home now.

Besides usual conditions, the provider maintains up to eleven POP3 accounts from a domain of your own, so we have bought hashref.com. I'll have there my working personal email address from now on: `echo -n ska@unfuers.pbz | tr a-z n-za-m`.

27 Oct 2002 (updated 27 Oct 2002 at 22:23 UTC) »

XML-RPC

I've been playing a bit with Advogato's XML-RPC interface. MyAdvogato will use it, if it finds a suitable module available, to get the needed data for the personalized recentlog I plan to add.

It seems the methods that return lists do not work with Frontier::Client. For instance,

use Frontier::Client;
$client = Frontier::Client->new(url => 'http://www.advogato.org/XMLRPC');
$client->call('diary.getDates', 'fxn', 0);
gives
wanted `value' or `name' tag, got `array'
at line 5 column 6
I Googled a bit that error message but founded nothing relevant, I don't know who is responsible of that. On the other hand, XMLRPC::Lite worked fine.

Colin McRae Rally 3

I am the current Rally World Champion, or so says my recently bought Colin McRae Rally 3 for the PS2 after some hours invested this weekend. Man, what a game, it's damn real. If you like driving rally cars you cannot miss this simulator and an excellent steering wheel like the Logitech Driving Force.

motb, MyAdvogato has already an ignore list for recentlog. I thought about adding kind of a ring of friends some time ago but didn't arrive to a convincing solution. The idea of a personalized recentlog sounds like the right thing to do, if you don't mind I'd like to borrow the idea for the wrapper.

I am back from our honeymoon. We had a lot of rain and wind at the beginning, not too comfortable going by motorbike, but from the third day on the weather was quite good. It has been a wonderful trip.

A pair of photos:

4 Oct 2002 (updated 4 Oct 2002 at 12:15 UTC) »

Very busy this week, I'm gonna get married tomorrow.

I could work a bit in the Perl seminar nevertheless, the timings are somewhat surprising, specially with large input files. The next thing I want to do is measuring memory usage, but I don't know how to do this well. The programs take a few seconds to complete, so for C and C++ I am using valgrind, but need to figure out what to do with the Perl/Java/Awk scripts. Since perl is written in C I guess valgrind perl script.pl would give meaningful data, but I am unsure about this.

As honeymoon we'll go from Barcelona to Nice, Venice, and Florence with our motorbike, and we'll come back by ship from Genoa.

132 older entries...

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!