« June 2004 | Main | August 2004 »

July 31, 2004

Having fun

I have to move one mailbox from one office to another. The first is in Porto, and the second in Lisbon.

The connection is ADSL, but the wrong direction: I have to push the entire mailbox via the ADSL uplink, 128kbits.

Well, it's a 6.5Gigabytes mailbox (actually a set of maildirs), so I'll just check it monday :)

July 27, 2004

Ambrosio is useful now

The latest version of Ambrosio is now useful. You can now send notifications from scripts or applications you write.

I did this last sunday but I needed to write a small manual for notifications.

July 26, 2004

I don't do "the news"

I usually don't do "The news", but I must pass this along. Apparently nobody attending a specific presentation at BlogOn is using Internet Explorer. Zilch, Zero persons.

Impressive.

Thanks, Nuno

July 23, 2004

New version of Ambrosio

Ambrosio is almost ready for major deployment. A new version is available (0.3), and now you can subscribe the bots presence.

The roadmap is something like this:

  1. Finish Notice plugin: you drop small files in a specific directory, the local bot will pick them up and forward them to the JID's specified in the file - this allows for other scripts or applications in each one of your servers to send notifications;
  2. Better management of notifications and presence: don't send notifications to people that are away or disconnected.
  3. Multi-User chat support: its going to be nice to enter a room filled with your webservers and tell them all, restart apache, or having bots talking to one another like people, bloody harvest at IP_ADDRESS and have all the others block that IP via iptables
  4. Log watcher: probably just a gateway to a local swatch application?
  5. Start to think about a meta-bot: a bot controlling the other bots - he can receive notifications for disconnected users, and decide what to do with them:
    • forward part of the notification via SMS?
    • send a URL pointing to the note?
    • keep a log of unread notices?
  6. Each plugin could have variables that he was willing to supply to some one: uptime can have the load, df can have free_kb_partition. These variables can be watched (you get some notification if they change, or if they trigger some threshold), or even logged (sql or rrdtool).

I have more ideas, some totally crazy (like having a pam_bot that asks the admin of the machine if the person trying to logging can do so before allowing it :) ), others more useful.

Remember that the core of Ambrosio is likely to change in the near future. The plugins will most likely be compatible. But the core will change a lot!.

July 21, 2004

MT-Blacklist

I never used MT-Blacklist. I started with MT3 so I really didn't feel the need.

But the screenshots of the new version (MT3 ready) are nice. I'll have to check it out :).

Ambrosio

Ambrosio is a POE Jabber bot that you can run on each server you manage.

It gives you three commands: uptime, df and ps. It also responds to help.

It's pluging based, you can extend it easily. In the few days, I should post plugins to control access to those bots, notification of events on other applications, and more commands.

It's a proof of concept only. I'm doing it to gain some experience with POE::Component::Jabber::Client and other stuff. It will evolve into a small framework for making multi-network bots.

You can find it here.

Oh, BTW, it requires a modified POE::Component::Jabber::Client::Legacy module (included in version 0.2 and above). The CPAN version doesn't seem to allow automatic registration, and I needed that. I have to cleanup my patch and send it upstream to Nick.

Proof of concepts

Sometime I talk about some things and I never get around to write them, or sometime I do but I leave them unfinished.

Sometimes they are useful even in their unfinished state. So I'm starting to release those as proof of concepts. Most of them will slowly die, other will morph into something better.

I'll post them at my proof of concept page.

July 17, 2004

*drool*

The people at Virginia Tech have tours of the BigMac cluster.

The latest picture has a nice drool factor. I have to get my hands on a G5 Xserve for a coupple of days...

Abuse of CSS

This is the latest abuse of CSS I found.

This reminds me that I have to sort the 100+ links of CSS stuff I have in Safari.

Java and Perl: inline is evil

Will the madness never end?

Came across Inline::Java via Jeremy Smith.

At least now I can say to the people at work who do Java all day, that there is still hope for them :).

July 16, 2004

IO::All is evil

So I was reading IO::All documentation. It seems pretty powerfull and can save me some time whenever I need to read text and parse it.

Until I came to this:

    A Tiny Web Server

Here is how you could write a simplistic web server that works with
static and dynamic pages:

perl -MIO::All -e 'io(":8080")->fork->accept->(sub { $_[0] < io(-x $1 ? "./$1 |" : $1) if /^GET \/(.*) / })'

No, I won't tell you how it works. I had to read the explanation three times to understand it all. See for yourself in the IO::All perldoc.

use.perl

Hi have a id at use.perl that I never really use.

I decided to crosspost the perl category from this site to use.perl. I'm still fighting the script that Casey West did, it seems that it does not like MT3.

More updates in the next days, I hope.

BTW, in case you where wondering why the sudden silence, lots of work but also lots of progress in my little pet projects. More to come.