white noise | post /blog//post.html white noise archmbox 4.10.0 /blog//post/archmbox_4.10.0.html /blog//post/archmbox_4.10.0.html devel perl Thu, 06 Nov 2008 22:07:18 +0100 devel Archmbox 4.10.0 was released.

Archmbox a is perl based email archiver which can perform different and specific actions on one or more mailboxes.

It's been more than three years from the last release of archmbox, and now here we are again. I'd like to than all contributors for their enthusiasm that pushed me to start working again on this piece of software.

This release is not a milestone, and won't probably change the way you archive emails; by the way, there are some nice features that worth a try; option to customize the archive mailbox name was added and support for logical and in regular expressions based archiving was added as well.

The usual code cleanups and revisions were performed as always.

Archmbox home page can be reached at the following url:

http://adc-archmbox.sourceforge.net/

]]>
kipsta f300 template /blog//post/kipsta_f300_template.html /blog//post/kipsta_f300_template.html graphics sneakers Sun, 26 Oct 2008 19:59:18 +0100 sneaker Kipsta F300

]]>
configure logging in bind /blog//post/configure_logging_in_bind.html /blog//post/configure_logging_in_bind.html networking sysadmin tools Sat, 25 Oct 2008 01:26:43 +0200 sysadmin If you like to change the way bind logs it's information, proceed as follows. We just like to add, beside what's logged through syslog, some information about queries. We also like to keep a bind specific log.

First create the directory for storing logs:

# mkdir /var/log/bind
# chown bind.bind /var/log/bind

The add the following statements in named.conf:

logging {
channel b_log {
    file "/var/log/bind/bind.log" versions 9 size 1m;
    print-time yes;
    print-category yes;
    print-severity yes;
    severity info;
};
channel b_query {
    file "/var/log/bind/query.log" versions 4 size 1m;
    print-time yes;
    severity info;
};
category default { default_syslog; default_debug; b_log; };
category queries { b_query; };
};

All parameters are well explained in the Bind ARM, so I'll just add a quick note about version and size. version tells bind to keep a fixed numbers of backups of the log file (it acts like a rotation mechanism similar to logrotate), while size specifies the maximum size of the log file (once the size exceed, logs are rotated).

]]>
multiple identities with mutt /blog//post/multiple_identities_with_mutt.html /blog//post/multiple_identities_with_mutt.html geek tools Tue, 21 Oct 2008 23:58:36 +0200 geek It happens that you have to manage different email addresses, and have the need to use one or another to send an email. If you manage them from the same email client, multiple identities are really handy.

Since mutt is my favorite email client, I manage to configure it to let me use multiple identities at need. This means that my configuration must take care of setting the correct sender address (the From: header) and the correct signature whenever I need to compose a new message or reply to one I received.

Setting the sender address

There are few changes you have to do to let mutt configure the sender address correctly. First ensure that you have the $alternates set in your .mutt.rc configuration file:

alternates = "(you@domain.tld)|(you@otherdomain.tld)"

then set the following variables:

# Allow editing of headers when composing a message
#
set edit_headers

# Set the From: header to the original's To: when
# replying to a message
#
set reverse_name

# Use the $from variable for the sender address
#
set use_from

This configuration takes care of setting the correct sender address when replying to a message. Now you only need to teach mutt how to choose different identities when composing a new email. The trick is done by these two macros:

macro generic "<esc>1" ":set from='You <you@domain.tld>'"
macro generic "<esc>2" ":set from='You <you@otherdomain.tld>'"

Simply press <esc>1 and then m to compose a new email using the first address, or press <esc>2 and then m to use the second one.

Setting the signature

To set the correct signature, send-hooks are needed. Add the following lines to your configuration:

send-hook "~f you@domain.tld" "set signature="~/.domain.sig""
send-hook "~f you@otherdomain.tld" "set signature="~/.otherdomain.sig""

Mutt decides which signature to use by looking at the sender address of the message.

]]>
notes 0x08-290 /blog//post/notes_0x08-290.html /blog//post/notes_0x08-290.html notes Thu, 16 Oct 2008 21:34:06 +0200 document

Development

For those who are interested in learning a new programming language, this article mentions some of the less obvious choices.

]]>
sql server maintenance plan and single user mode /blog//post/sql_server_maintenance_plan_and_single_user_mode.html /blog//post/sql_server_maintenance_plan_and_single_user_mode.html dbms sysadmin windows Mon, 06 Oct 2008 20:53:31 +0200 dbms This morning I received an early phone call; one of my users reported he wasn't able to perform operations on one database hosted on SQL Server. It turned out that all databases were in single user mode.

A quick search on the net pointed me to this bug.

'Nuff said.

]]>
archmbox is back /blog//post/archmbox_is_back.html /blog//post/archmbox_is_back.html devel perl Sun, 05 Oct 2008 17:15:18 +0200 devel Its been three years of silence. The TODO and CLEAN list had some elements in, but since things were smooth and I didn't received a single report about bugs, the development of archmbox kept on being delayed.

A couple of weeks ago I suddenly received a lot of good code contributions from Juergen Descher, a nice guy I've never heard about before, who awakened me from my sleep and put me back to development. So archmbox 4.5.0 is on it's way; I have little spare time to devote to it, but hopefully the wait for the new release won't be long.

I'm pretty amazed that this small little tool I developed back in 2002 is still used and captures interest. It's nice :D

]]>
inizio giornata /blog//post/inizio_giornata.html /blog//post/inizio_giornata.html scrivere Mon, 22 Sep 2008 21:55:03 +0200 writings Alle ore 9.05 il telefono suonò per la terza volta.

Era un lunedì mattina di quelli sghignazzanti, in cui tutto quello che poteva andare storto lo stava facendo, e, tragicamente, aveva cominciato molto prima del solito.

Trasalì al suono del telefono, pur senza perdere quell'espressione monolitica che gli tratteggiava il viso. Guardò l'apparecchio con aria distante, quasi annoiata, e si alzò dalla sedia reclinabile. Molto lentamente prese il suo zaino e ne tirò fuori una doppietta a canne segate; un attimo, un colpo preciso a meno di un metro di distanza, e del telefono non rimaneva che un'esplosione radiale di pezzi di plastica, brandelli di circuito stampato e scheggie di formica nera.

Appoggiò il fucile ancora fumante sul piano martoriato della scrivania, fra gli sguardi attoniti dei colleghi ancora assordati da quel gesto, quantomeno, curioso.

Infilò gli auricolari dell'Ipod e lasciò che una base nu-jazz coprisse il fragore residuo di quell'inizio mattinata. Ora la giornata poteva davvero cominciare.

]]>
kronos contras template /blog//post/kronos_contras_template.html /blog//post/kronos_contras_template.html graphics sneakers Sat, 13 Sep 2008 18:23:31 +0200 sneaker Contras

]]>
una camionata di fede /blog//post/una_camionata_di_fede.html /blog//post/una_camionata_di_fede.html distonie Sat, 13 Sep 2008 01:25:47 +0200 distonie Giusto per citare Lou Reed:

Puoi fare affidamento sul peggio che accade sempre
Ti serve una camionata di fede per andare avanti

-- Lou Reed: Busload of faith

Non sono più tanto sicuro che una camionata di fede sia sufficiente, di certo ci vuole una camionata di pazienza.

]]>
thermal shutdown /blog//post/thermal_shutdown.html /blog//post/thermal_shutdown.html debian sysadmin Tue, 09 Sep 2008 15:38:12 +0200 sysadmin Yesterday I updated the packages on my EeePC. The debian Lenny repository had some updates, included the 2.6.26 kernel. The whole process was pretty smooth, except for an annoying behavior that I discovered after the first reboot.

As reported in this thread from the Linux Kernel Mailing List, seems that the ACPI support is somehow broken, and this causes a thermal shutdown nearly immediately after the boot process has finished.

Booting the laptop with the 2.6.25 kernel still works fine, except that the only connectivity available is the wireless one - the built-in ethernet stopped to work - so I'll just wait for some kind of updated package, hoping it will hit the repositories before Lenny gets released :)

Update

Loading the 2.6.26 kernel with the noacpi option seems to work fine as well, and the ethernet connection works again.

[2008-09-12] Solved

Install the following packages:

  • madwifi-tools
  • eeepc-acpi-modules-2.6.26-1-686

This solves the issue, at least on my EeePC.

]]>
iron man /blog//post/iron_man.html /blog//post/iron_man.html cinema Sun, 07 Sep 2008 23:17:58 +0200 movie Volevate un film veramente maraglio, murato di effetti speciali e dalla trame risibile? Bene, eccolo qua: Iron Man.

E dire che il cast c'era... Robert Downey Jr., Gwyneth Paltrow, Jeff Bridges... magari non da oscar, ma certo gente che sa fare il suo mestiere. Considerando che la storia non è niente di nuovo, mi aspettavo qualcosina di più almeno in fase di caratterizzazione dei personaggi. Alla fine, sorpresa sorpresa, l'unico che ha mi veramente divertito è colui che non ti aspetti. Il buon Downey regala un Tony Stark molto più frizzante dell'imbalsamato originale a cui si rifà.

Il resto è una scontata carrellata di stereotipi - e non ce ne viene risparmiato nemmeno uno - ed un rutilare di computer graphic. Bello per l'occhio, un po' meno per la mente.

Nota di cronaca: hanno pensato bene di accompagnare i titoli di chiusura con la stupenda Iron Man dei Black Sabbath. Peccato che, testo alla mano, non c'entri nulla con il film.

]]>
nike legend template /blog//post/nike_legend_template.html /blog//post/nike_legend_template.html graphics sneakers Sat, 30 Aug 2008 00:53:47 +0200 sneaker Legend

]]>
notes 0x08-242 /blog//post/notes_0x08-242.html /blog//post/notes_0x08-242.html notes Fri, 29 Aug 2008 23:41:38 +0200 document

DBMS

This is an interesting tool for those who like to have a web interface for database administration and need something simple yet quite complete: phpMinAdmin.

]]>
triplexity - between light and shadow /blog//post/triplexity_-_between_light_and_shadow.html /blog//post/triplexity_-_between_light_and_shadow.html musica Sun, 24 Aug 2008 17:03:08 +0200 music Sono rimasto abbastanza sorpreso nello scoprire che i Triplexity sono in realtà un gruppo virtuale. I componenti non si sono mai incontrati, collaborando ed elaborando la loro musica solo attraverso internet. Da buon musicista tradizionale, in un primo momento ho storto un po' il naso, consapevole di quale ruolo giochi la chimica personale nel processo compositivo. Ora il mio naso è dritto ed il disco in questione suona felicemente dalle mie casse. Ci sanno fare, eccome!

Il genere che questo terzetto virtuale propone è una bella mistura di jazz ed altro. Fra le varie tracce si scoprono facilmente influenze tribali ed anche qualche richiamo alle atmosfere della tradizione francese (questa almeno è la sensazione tutte le volte che sento suonare una fisarmonica o un bandenon e non sto ascoltando del tango). I brani spaziano dalle composizioni più soft basate su suoni eterei e ritmi lenti ai pezzi più energici, dove sax e percussioni reclamano la scena.

Il risultato è un insieme di note, armonioso e mai noioso, ottimo da usare come sottofondo - a mio avviso il vero ruolo del jazz per tutti coloro che non lo suonano. Riempie, e bene.

]]>
cambi di stagione /blog//post/cambi_di_stagione.html /blog//post/cambi_di_stagione.html distonie Sun, 17 Aug 2008 00:06:29 +0200 distonie Qualche tempo fa ho scritto un racconto con questo titolo... parlava del passaggio dalla primavera all'estate, dal punto di vista di un rospo. Per me i cambi di stagione sono sempre qualcosa di importante, sia dal punto di vista climatico che da quello metaforico.

Forse sono rimasto ancorato ai tanto rimpianti tempi e ritmi studenteschi, ma per me, da sempre, ferragosto segna il qualche modo la fine del vecchio anno e l'inizio di quello nuovo. E siccome ferragosto è appena trascorso, eccoci qui pronti ancora una volta.

Noto con piacere che le temperature si sono leggermente abbassate; non è certo il tanto desiderato monsone estivo, ma si tratta comunque di un miglioramento... ci sono speranze che in breve tempo riesca a mettere insieme almeno sette ore di sonno decente.

Lunedì ricomincio a lavorare - con solo una settimana di ferie alle spalle mi domando se effettivamente io abbia mai smesso, ma in fondo va bene così - e so già che mi aspetta un inizio veloce... fortunatamente pieno di cose interessanti. Ho voglia di rimettermi a studiare, e di portare a termine almeno qualcuno dei miei progetti che troppo spesso ho dovuto, a malincuore, sacrificare sull'altare della Dea delle Scadenze. E poi vedremo che succede... come sempre, artigliere al pezzo!

]]>
notes 0x08-220 /blog//post/notes_0x08-220.html /blog//post/notes_0x08-220.html notes Thu, 07 Aug 2008 23:51:08 +0200 document

Development

Free software project management axioms. Some points can be questioned, but overall I agree.

Security

Security Idiocy Story. Anything familiar?

]]>
nike air max 360 III template /blog//post/nike_air_max_360_III_template.html /blog//post/nike_air_max_360_III_template.html graphics sneakers Fri, 01 Aug 2008 19:45:26 +0200 sneaker Air Max 360 III

]]>
encrypted filesystem in userspace /blog//post/encrypted_filesystem_in_userspace.html /blog//post/encrypted_filesystem_in_userspace.html security sysadmin unix Tue, 29 Jul 2008 21:44:00 +0200 security I was looking for a quick way to encrypt some documents on my laptop. pgp was not an option, as I didn't want to deal with encrypted files one by one. encfs turns out to be a good solution.

encfs provides an encrypted filesystem in user space, which means you don't need to encrypt a full partition, but rather you can create an encrypted filesystem on the fly.

Creating an encfs filesystem

$ mkdir /home/adotti/.work /home/adotti/work
$ encfs /home/adotti/.work /home/adotti/work
Creating new encrypted volume.
Please choose from one of the following options:
enter "x" for expert configuration mode,
enter "p" for pre-configured paranoia mode,
anything else, or an empty line will select standard mode.

Pre-configured paranoia mode was enough for my needs, so I simply typed p.

Paranoia configuration selected.

Configuration finished.  The filesystem to be created has
the following properties:
Filesystem cipher: "ssl/aes", version 2:1:1
Filename encoding: "nameio/block", version 3:0:1
Key Size: 256 bits
Block Size: 512 bytes, including 8 byte MAC header
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File data IV is chained to filename IV.

New Encfs Password: 
Verify Encfs Password:

Using the encrypted filesystem

At this point my new encrypted filesystem is ready to be used:

$ encfs /home/adotti/.work /home/adotti/work
EncFS Password:

Note that while files are encrypted, files metadata are not. Size, permissions and the number of files remain visible.

]]>
notes 0x08-210 /blog//post/notes_0x08-210.html /blog//post/notes_0x08-210.html notes Mon, 28 Jul 2008 21:48:06 +0200 document

Graphic and art

Another surrealist artist: Wojtek Siudmak

]]>
dancing with the cannibals /blog//post/dancing_with_the_cannibals.html /blog//post/dancing_with_the_cannibals.html musica Sun, 27 Jul 2008 14:29:44 +0200 music A volte Bologna si ricorda che ha una discreta tradizione musicale alle spalle, e qualcosa di interessante da proporre - o forse sono io che ogni tanto mi ricordo che Bologna ha qualcosa di interessante da proporre. Sia come sia, ieri sera è stata l'occasione per andare a Villa Serena a sentire un po' di musica, alla faccia di un graditissimo temporale che ha rischiato di mandare a pallino la serata.

Sul palco i Dancing with the cannibals, a me completamente sconosciuti; sono stati un sorpresa veramente gradevole. Trio di musicisti con varie influenze rock (mi vengono in mente i Rem su tutti, ma c'è anche molto altro) composto da basso, chitarra/voce e batteria, mi hanno particolarmente colpito per la pulizia dell'esecuzione e per la capacità di riempire il palco, sebbene tutto il movimento lo facesse Lorenzo Ricci, front man della band.

A quanto ho potuto vedere, stanno suonando abbastanza spesso in giro, quindi non mancheranno occasioni per andarli a (ri)vedere. Nota di cronaca: a breve cambieranno nome in "Alice's Land".

]]>
la promessa dell assassino /blog//post/la_promessa_dell_assassino.html /blog//post/la_promessa_dell_assassino.html cinema Sat, 19 Jul 2008 21:07:35 +0200 movie Ancora una puntata del nuovo approccio registico di David Cronenberg che, abbandonati i deliri visionari ed i miasmi della mente umana, si concentra a trasformare una storia di per sè normale in un blocco di marmo tagliente come un bisturi. Protagonisti, Viggo Mortensen e Vincent Cassel; il primo freddo e letale fact totum di famiglia, il secondo debosciato rampollo dedito a qualsiasi eccesso.

Storia semplice, si diceva, ma riempita di violenza e di una brutalità senza sconti. Tutto ruota attorno ad una ragazza morta nel dare alla luce una bambina, ai suoi segreti, al suo passato. Un passato scomodo e dei segreti che è meglio non vengano rivelati; segreti per cui la minaccia e l'omicidio sono strumenti cui fare ricorso senza particolari scrupoli.

Impeccabile nella regia, essenziale nella sceneggiatura, ottimo nella recitazione; non pretende di stafare e, forse anche per questo, non delude.

]]>
alan altieri - armageddon /blog//post/alan_altieri_-_armageddon.html /blog//post/alan_altieri_-_armageddon.html letture Fri, 11 Jul 2008 23:27:31 +0200 book Esattamente un anno dopo l'uscita del terzo volume della trilogia di Magdebur, ecco che arriva nelle librerie un volume di racconti di Alan Altieri. Gaudio del sottoscritto che ha la possibilità di trascorrere una settimana ad addormentarsi con uno dei suoi scrittori preferiti.

Da quanto mi è dato di capire, si tratta del primo volume di una serie che raccoglierà tutti i racconti dell'autore, il che spiega la presenza di tre titoli che già erano contenuti in Scarecrow.

Per quanto Altieri dia il meglio di sè quando ha una copiosa messe di pagine da riempire, il suo stile di scrittura secco e cinematografico regge molto bene anche sulle corte distanze. Per farla breve, sono cinque racconti che non deludono.

Tralasciando trame, incipit e tutto il resto - su internet potete trovare quanti particolari volete - chiudo segnalando Phoenix e Certificato Omega. Già letti a suo tempo, ho notato che non hanno perso una sola virgola della loro intensità e della loro rutilante brutalità letteraria.

]]>
reading rss feeds with mutt /blog//post/reading_rss_feeds_with_mutt.html /blog//post/reading_rss_feeds_with_mutt.html geek tools Sun, 29 Jun 2008 17:31:35 +0200 geek Q: how to improve my RSS feeds reading experience?

A: using my mail reader as a feed aggregator.

Over time I tried many different RSS feeds aggragators, both web based and stand alone applications. There are many which are really nice, but every one I tried was lacking one feature or another. I saw that the Thunderbird mail reader has the option to handle RSS news as emails, so I decided to look for something that enabled me to the same with mutt, my mail reader of choice.

I found a really nice tool called feed2imap, which perfectly addresses my needs. It is really easy to setup and configure - the configuration file is well commented - and does it's job smoothly. Now I have all my news in dedicated mailboxes.

]]>
a better keyboard experience /blog//post/a_better_keyboard_experience.html /blog//post/a_better_keyboard_experience.html geek tools Thu, 12 Jun 2008 19:44:19 +0200 geek I've been really busy at work last week; we attended at a fair, and a huge amount of time was devoted to the preparation of the event and the physical presence at it. With near no spare time, I took the chance to focus on side things, and most of all to think about how to improve my virtual working environment.

I am a great fan of tiled window managers, and been a long time user of dwm. I also love to work with my keyboard most of the time, and except for graphic and web surfing, I hardly need a pointing device (I use a trackball, by the way).

What I was looking for was a tiled window manager with a more flexible approach to layouts, and some kind of keyboard driven web browsing interface with the same rendering capabilities that firefox provides. For the window manager I gave awesome a try, and after some configuration I am pretty satisfied with it. For the web browsing interface I decided to install the vimperator firefox extension; it seems to be very powerful once you get used to key mappings (which in the end are the same that vim uses).

I'm going to post more impressions on both tools as soon as possible.

]]>
files batch remane /blog//post/files_batch_remane.html /blog//post/files_batch_remane.html sysadmin tools Sun, 01 Jun 2008 21:38:11 +0200 sysadmin Today I had the need to uppercase the name of all files in a directory, and I came across rename, a really nice tool the quickly perform this task.

From the man page:

NAME
    rename - renames multiple files

SYNOPSIS
    rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]

DESCRIPTION
    "rename" renames the filenames supplied according to the
    rule specified as the first argument.  The perlexpr argument
    is a Perl expression which is expected to modify the $_ string
    in Perl for at least some of the filenames specified.
    If a given filename is not modified by the expression, it will
    not be renamed. If no filenames are given on the command line,
    filenames will be read via standard input.
]]>
indiana jones 4 /blog//post/indiana_jones_4.html /blog//post/indiana_jones_4.html cinema Fri, 23 May 2008 20:08:22 +0200 movie Dicono che tre sia il numero perfetto, e forse in questo caso al terzo capitolo ci si poteva anche fermare. "Indiana Jones e il regno del teschio di cristallo" non aggiunge niente alla serie del più noto archeologo cinematografico, e si segnala per essere un film indubbiamente ben fatto - Spielberg da questo punto di vista è un vero maestro - ma, purtroppo, altrettanto piatto.

Sin dalla prima scena ho avuto una sensazione di deja-vu, senzazione che non mi ha abbandonato per le rimanenti due ore. I dialoghi sembrano aver perso smalto e parte di quella gradevole ironia a cui eravamo abituati, mentre le situazioni proposte sono tanto spettacolari quanto un pochino telefonate. I personaggi ripropongono clichè già visti senza dare apprezzabili variazioni o aggiunte, e le buone idee stentano a decollare.

Si guarda con piacere, indubbiamente, ma è semplicemente entertainment di ottimo livello. Mi aspettavo qualcosa di più.

]]>
notes 0x08-142 /blog//post/notes_0x08-142.html /blog//post/notes_0x08-142.html notes Thu, 22 May 2008 19:39:03 +0200 document

Networking

For those interested in DNS, here's another toy to play with: Unbound.

]]>
il mare /blog//post/il_mare.html /blog//post/il_mare.html scrivere Sat, 17 May 2008 14:48:14 +0200 writings Ci sono solo io qui, insieme ai miei pensieri, alle mie sensazioni, alle mie emozioni. Sono solo con la mia sigaretta, un cappotto sbottonato e le narici piene di quell'odore di salsedine che si sente solo quando le spiagge sono vuote.

E` un settembre insolitamente freddo; i bagni sembrano tante piccole casematte di una guerra lontana, e la spiaggia un lembo di terra che non ha nessun padrone, nessun conquistatore, dopo averne visti tanti. Il mare è calmo, quasi silenzioso; un rumore che si mischia al verso dei gabbiani ed al sibilare leggero del vento. Sulla sabbia ci sono solo le orme dei tacchi dei miei stivali, una dopo l'altra, come una serpentina contorta che arriva da chissà dove.

Sono immobile di fronte allo specchio d'acqua, a guardare il fumo della mia sigaretta che viene portato a disperdersi tutto intorno. Immobile a gustare quell'aroma di salsedine che ti entra ovunque. Mi chino, come se volessi scrutare oltre l'orizzonte, come se volessi spingere il mio sguardo ad andare più lontano, per cogliere qualcosa di nuovo, per cogliere qualcosa che mi sembra solo uno sbiadito contorno.

Affondo quello che resta della sigaretta nella sabbia, mi rialzo e riprendo a camminare. Le impronte dei miei stivali disegnano una nuova linea, che riprende da dove si interrompeva l'altra... diritta, questa volta.

]]>
serialization in ruby /blog//post/serialization_in_ruby.html /blog//post/serialization_in_ruby.html devel ruby Sat, 17 May 2008 14:19:19 +0200 Ruby

Serialization in ruby

]]>
installing jboss on etch /blog//post/installing_jboss_on_etch.html /blog//post/installing_jboss_on_etch.html debian sysadmin unix Thu, 15 May 2008 19:57:25 +0200 debian These are some quick notes about how to install JBoss on a Debian etch system.

Prerequisites

It seems that only JDK is needed to get things working, so a simple

$ aptitude install sun-java5-sdk

will suffice.

Installing JBoss

The following instructions are just a compact rewrite of the information found in this useful post: JBoss on Debian quickstart.

$ cd /opt
$ unzip /home/adotti/jboss-4.2.2.GA.zip
$ mv jboss-4.2.2.GA jboss
$ jboss/bin/run.sh -b 192.168.10.13

A lot of logging output will flood your terminal... as soon as you see the following line:

INFO  [Server] JBoss (MX MicroKernel)
      [4.2.2.GA (build:SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 50s:564ms

you can point your browser to http://192.168.10.13:8080/ (the address specified after the -b option) and check if everything is working as expected.

]]>
ruby system hooks /blog//post/ruby_system_hooks.html /blog//post/ruby_system_hooks.html devel ruby Tue, 13 May 2008 22:28:14 +0200 Ruby

ruby system hooks

]]>
merging pdf documents /blog//post/merging_pdf_documents.html /blog//post/merging_pdf_documents.html geek tools Thu, 08 May 2008 23:47:48 +0200 geek The command to merge pdf files - something I always forget:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Document.pdf -dBATCH \
     1.pdf 2.pdf 3.pdf

Next time I'm going to need it, I won't have to do the usual Google search.

]]>
reflection in ruby /blog//post/reflection_in_ruby.html /blog//post/reflection_in_ruby.html devel ruby Fri, 02 May 2008 20:32:07 +0200 Ruby

Reflection in ruby

]]>
notes 0x08-119 /blog//post/notes_0x08-119.html /blog//post/notes_0x08-119.html notes Tue, 29 Apr 2008 19:50:21 +0200 document

Fun

Spam can be funny: a spam a day

]]>
filled partitions /blog//post/filled_partitions.html /blog//post/filled_partitions.html debian sysadmin unix Tue, 22 Apr 2008 19:06:51 +0200 sysadmin There are several cases in which your /var partition can reach 100% usage; the last situation I had to face was a broken backup media that flood the system logs with a ton of errors.

Usually, getting rid of these monstrous sized logs is the quickest way to get some free space back, but I am not inclined to delete logs. A better approach, in my opinion, is to force a log rotation, which usually led, more or less, to the same result.

On a Debian system you can trigger the following cron script manually:

$ /etc/cron.daily/sysklogd

and your system logs get immediately rotated.

]]>
funny ftp brute forcing /blog//post/funny_ftp_brute_forcing.html /blog//post/funny_ftp_brute_forcing.html security Thu, 17 Apr 2008 21:55:13 +0200 security Funny thing of the day... checking the logs this morning I noticed that a brute force attack has been carried out on one of our FTP servers. Nothing new so far, but I found funny to see how they tried to exploit the 'Administrator' account on a Linux machine :)

]]>
webless /blog//post/webless.html /blog//post/webless.html devel web Sun, 13 Apr 2008 11:58:21 +0200 web Last night I came across this link:

The webless initiative

I'm pretty well known for my minimalistic and old styles likes, but I guess it could be interesting to follow that link anyway. It's especially suggested to all web designers who are very talented in creating wonderful appearances without having a clue about standards and usability.

PS: my personal website and this blog are not fully compliant to webless guidelines, although they render well in small or console driven web browsers.

]]>
blu su nero /blog//post/blu_su_nero.html /blog//post/blu_su_nero.html distonie Fri, 11 Apr 2008 18:22:47 +0200 distonie Mi rendo conto che chiedere a chi si occupa d'altro di produrre, per il proprio sito web personale, un layout gradevole sia quasi utopico. Ma non capisco per quale motivo si debbano mettere i link blu su sfondo nero. Fondamentalmente, non si vede nulla!

]]>
notes 0x08-091 /blog//post/notes_0x08-091.html /blog//post/notes_0x08-091.html notes Mon, 31 Mar 2008 19:39:32 +0200 document

Music

An article that describes why the RIAA really hates downloads. A point of view I agree with.

]]>
tt2 and markdown /blog//post/tt2_and_markdown.html /blog//post/tt2_and_markdown.html devel perl tools web Fri, 21 Mar 2008 22:44:17 +0100 web I definitely love Markdown; it just makes web pages editing painless, quick and funny. I was aware of a markdown plugin for Template Toolkit, so i decided to dig a little deeper.

All I needed was the Template::Plugin::Markdown perl module. After installing it I was able to use markdown syntax in my TT driven web pages:

[% USE Makdown %]
[% FILTER markdown %]
.
.
. (markdown formatted page content)
.
.
[% END %]
]]>
notes 0x08-079 /blog//post/notes_0x08-079.html /blog//post/notes_0x08-079.html notes Wed, 19 Mar 2008 20:38:01 +0100 document

System administration

A nice kick start article from Debian Administration for those who like to experiment with LDAP: OpenLDAP installation on Debian

If you need an auto responder of any kind, this howto is really useful: Auto Responder with Procmail Howto

DBMS

A couple of useful resources if you'd like to get rid of MSSQL:

]]>
notes 0x08-077 /blog//post/notes_0x08-077.html /blog//post/notes_0x08-077.html notes Tue, 18 Mar 2008 21:02:55 +0100 document

Security

This is an interesting advisory from Cisco Systems:

CiscoWorks Internetwork Performance Monitor Remote Command Execution Vulnerability

My question is: why binding a privileged shell to a random TCP port?

]]>
back to tt2 /blog//post/back_to_tt2.html /blog//post/back_to_tt2.html devel perl tools web Sun, 16 Mar 2008 22:38:48 +0100 web I am pretty excited. Soon I will be back on web design and development, so I took the occasion to tidy a bit some stuff about Template Toolkit.

From the TT2 website:

The Template Toolkit is a fast, flexible and highly extensible template processing
system. It is free (in both senses: beer and speech) open source software and runs
on virtually every modern operating system known to man. It is written in the Perl
programming language with certain key elements coded in C for maximum speed.
However you don't need to know any Perl (or C) to be able to use it.

It is ideally suited, but not limited to, the creation of static and dynamic web
content and incorporates various modules and tools to simplify this process. It is
mature, robust, reliable and well documented.

I haven't use it for quite a bit, so It will be very funny to explore all the features added since then.

]]>
erlend mork /blog//post/erlend_mork.html /blog//post/erlend_mork.html graphics Fri, 14 Mar 2008 18:00:22 +0100 images If you like dark emotional art, I strongly suggest you to have a look at Erlend Mork's web site.

Nos morituri is my current desktop wallpaper. Wonderful!

]]>
notes 0x08-071 /blog//post/notes_0x08-071.html /blog//post/notes_0x08-071.html notes Wed, 12 Mar 2008 19:08:03 +0100 document

Funny art

A nice way to recycle old telephones: phone sheeps

Some news

]]>
notes 0x08-070 /blog//post/notes_0x08-070.html /blog//post/notes_0x08-070.html notes Mon, 10 Mar 2008 20:34:50 +0100 document

Some interesting news

OpenOffice.org goes to LGPLv3

Music

If the Latins are right - you know, "Nomen omen" (your name is your destiny) - this band, Black Merda, should not have lasted long. But they're still around after forty years! The name - in Italian merda means shit - is really really funny :) Thanks to Enrico for the link.

Security

Some always interesting thoughts from Bruce Schneier:

Security Products: Suites vs. Best-of-Breed

]]>
threads and processes in ruby /blog//post/threads_and_processes_in_ruby.html /blog//post/threads_and_processes_in_ruby.html devel ruby Sat, 01 Mar 2008 12:08:26 +0100 Ruby

Threads and processes in ruby

]]>
lsmbox and watch /blog//post/lsmbox_and_watch.html /blog//post/lsmbox_and_watch.html geek tools unix Fri, 29 Feb 2008 17:26:40 +0100 geek All of a sudden, my lsmbox installation decided to stop working in curses mode. I hadn't had time to investigate the problem and find a clean solution, but this was a good opportunity to discover watch.

Basically, watch does what the curses mode of lsmbox did: run a command every n seconds. So i just added the following alias in my .bashrc file:

alias mymail='watch -t -n 300 lsmbox -n -s -S -t /home/adotti/Mail/'

and I got the handy list of mailboxes with unread messages back.

]]>
la gabbia /blog//post/la_gabbia.html /blog//post/la_gabbia.html scrivere Sun, 24 Feb 2008 23:20:09 +0100 writings Un giorno tranquillo, se non fosse per quella strana senzazione che mi ha accompagnato dal risveglio ad ora. Mi agito nella mia canottiera a ritmo di rap, dentro ad una stanza dalle pareti bianche e troppo corte.

Geometrie sbagliate; le conosco, le sento, a mio modo le temo. Apprensivamente le aspetto, mente mi faccio la solita domanda: Sarò pronto?

Sono come la tigre nella gabbia che scuote la testa lungo il suo moto perpetuo. Guardo l'orologio; i secondi corrono e si tirano dietro i minuti e le ore. Domani arriva..

]]>
input output in ruby /blog//post/input_output_in_ruby.html /blog//post/input_output_in_ruby.html devel ruby Sun, 24 Feb 2008 13:00:25 +0100 Ruby

Input/Output in ruby

]]>
ascolti notturni /blog//post/ascolti_notturni.html /blog//post/ascolti_notturni.html musica Sat, 23 Feb 2008 01:08:16 +0100 music A volte capitano quei simpatici momenti di insonnia, specie dopo una settimana pesante. Sei stanco morto, ma il sonno non arriva. In TV - come al solito - non c'è nulla e ti prende la spinta per finire quelle due o tre cose che avevi in sospeso. A notte ormai inoltrata, lo stereo diventa il tuo migliore amico. Ecco una possibile playlist notturna:

  • Blue Oyster Cult - Tyrrany and mutation
  • Antony Raijekov - Jazz U
  • Dire Straits - Brothers in arms
  • Metallica - The Bridge School benefit (live)

Un po' di stamina prima di crollare riversi sopra al piumone.

]]>
modules in ruby /blog//post/modules_in_ruby.html /blog//post/modules_in_ruby.html devel ruby Tue, 19 Feb 2008 12:42:20 +0100 Ruby

Modules in ruby

]]>
exceptions in ruby /blog//post/exceptions_in_ruby.html /blog//post/exceptions_in_ruby.html devel ruby Sun, 17 Feb 2008 14:38:28 +0100 Ruby

Exceptions in ruby

]]>
expressions in ruby /blog//post/expressions_in_ruby.html /blog//post/expressions_in_ruby.html devel ruby Wed, 13 Feb 2008 22:05:38 +0100 Ruby

Expressions in ruby

]]>
mysql passwords compatibility /blog//post/mysql_passwords_compatibility.html /blog//post/mysql_passwords_compatibility.html dbms sysadmin Wed, 13 Feb 2008 19:48:21 +0100 dbms If you upgrade MySQL to version 4.1 or later, you may get into authentication troubles. The password hashing mechanism was changed, and your old passwords may not work anymore.

As a quick fix, you can edit the my.cnf configuration file, add the following line:

old_passwords = 1

and then restart the service.

A detailed discussion about this matter, with a list of possible solutions can be found in the MySQL reference manual.

]]>
methods in ruby /blog//post/methods_in_ruby.html /blog//post/methods_in_ruby.html devel ruby Sun, 03 Feb 2008 14:48:10 +0100 Ruby

Methods in ruby

]]>
another perfect day /blog//post/another_perfect_day.html /blog//post/another_perfect_day.html musica Sun, 03 Feb 2008 12:44:41 +0100 music La convivenza fra i Motorhead e Brian Robertson è stava breve e, come ha dichiarato Lemmy in più occasioni, non è stata per niente semplice. Nonostante questo, la brevissima parentesi dell'ex Thin Lizzy ci ha regalato un album che di fatto è un piccola perla nella discografia della band più rumorosa al mondo.

Another perfect day rappresenta, in qualche modo, un linea di separazione fra l'epoca della chitarra blues di Fast Eddie Clark e quella che sarà, letta a posteriori, il primo passo dell'evoluzione della band verso uno speed più robusto. Le radici continuano ad affondare nel delta, ma le linee di chitarra sono decisamente diverse e molto personali, a ricordare che Robbo avrà avuto sì un pessimo carattere, ma quanto a mano e cuore non aveva sicuramente di che vergognarsi, anzi.

E mentre riflettiamo su dove questa collaborazione artistica non ha portato, non resta che goderci un altro giorno perfetto.

]]>
the lazier I get /blog//post/the_lazier_I_get.html /blog//post/the_lazier_I_get.html devel geek perl Fri, 01 Feb 2008 17:22:36 +0100 geek I use ikiwiki to maintain this blog; I use it in non-cgi mode, which means that I edit the posts with vim off line, then I upload them to my web site. After more than two years of posting, I got a little bored of adding the tag statement at the top of each post and the html code to display the nice icon you see on the right.

Having some unexpected spare time, I decided to write a little helper to save me some key strokes. I don't know if it can be useful for anyone but me, by the way, you can download it here.

]]>
my password your case /blog//post/my_password_your_case.html /blog//post/my_password_your_case.html security sysadmin Wed, 30 Jan 2008 20:32:33 +0100 Security

Some days ago I received an email reminder for one of my several online accounts; I was asked to perform a password change, as a new password expiration policy was enforced.

I went on-line, supplied the information required in a web form and clicked on the "Confirm" button. The connection was unencrypted - I guess some more policies should have been enforced too ;). Few minutes later I received a confirmation email: the processes was successfully completed and I'd have been able to log in with the new password. I tried several times, using both the new and the old ones. No way.

I then decided to try the "I forgot my password, oh stupid moron I am" way... I got the password emailed to me and I noticed that all uppercase letters were lover cased!

I suggest this nice reading for further policy related decisions.

]]>
standard types in ruby /blog//post/standard_types_in_ruby.html /blog//post/standard_types_in_ruby.html devel ruby Tue, 22 Jan 2008 23:15:28 +0100 Ruby

Here's another mind map from the ruby series.

Standard types in ruby

]]>
another way to upgrade the hdd of your pc /blog//post/another_way_to_upgrade_the_hdd_of_your_pc.html /blog//post/another_way_to_upgrade_the_hdd_of_your_pc.html debian sysadmin unix Sun, 06 Jan 2008 19:41:29 +0100 Sysadmin

When I have to upgrade the hard disk of my system, I usually plug the new hdd in the machine, partition it, copy the data, install the boot loader, remove the old disk and reboot.

But, what if there are some oddities that prevent your boot loader to be manually installed on the new disk, and you don't have time/will/opportunity to sort out the issue? Well, this is just another way of performing the disk upgrade, at least with debian.

  1. plug the new disk into the machine and unplug all other disks (if present)
  2. boot with the Debian net install cd
  3. install a minimal debian on the new disk (this step allows partitioning and installs the boot loader)
  4. plug the old disk(s) back and reboot the system using the old installation; go into single user mode
  5. wipe the newly created file systems and copy all data to the new disk
  6. edit the files that need to (if any)
  7. remove the old disk and reboot

Having a B-plan is a must. With unix it is easy :)

]]>