The slides of my presentation at AWEC2011 (Airborne Wind Energy Conference 2011) are now available. I’m going to put a few pictures of Leuven and Bruxelles in the next post.
Chunking Base64 binary data in Java
I’m not an expert but it seems to me that the different methods to encode as Base64 a *binary* stream exposed by Apache Commons don’t chunk for binary inputs or don’t chunk at all, in spite of what their documentation states.
So let me write here a little snippet, which uses guava-libraries, for an already getBytes()-ed string.
private static String b64eChunk(String mstring) {
String encodedText = Base64.encodeBase64String(mstring.getBytes());
String myOutput = "";
for (String substring : Splitter.fixedLength(76).split(encodedText)) {
myOutput += substring + "\n";
}
return myOutput.substring(0, myOutput.length() - 1);
}
Credits for the guava part: Cowan.
A tentatively nightfall runner
I like nightfall running and, while the darkness lets me breathe better, it also helps me not to look so clumsy. :)
Debian 6 VirtualBox image
There is not a VirtualBox image of Debian GNU/Linux 6 on VirtualBoxes: I’ve created a new minimal version starting from debian-6.0.0-i386-netinst.iso. This is the sequence of choices of the installation procedure (almost defaults).
English
United States
American English
debian
{empty}
deb2011!
deb2011!
Debian User
mdeb
deb2011!
deb2011!
Eastern
Guided - use entire disk
{enter}
{enter}
{enter}
Yes
United States
ftp.us.debian.org
{enter}
No
{empty}
Yes
Continue
While waiting for the official link on VirtualBoxes, you can download it here (~ 295 MB).
It’s not a meeting
A year later, the truth is gone and the love is gone too.
Reading John, waiting for Richard, regretlessly looking through my faults: the Princess is not on her sand anymore while the sea remains almost the same.
Southern border
Even though the most Southern place of my life is somewhere between the latitude of Joshua Tree National Park and Newport Beach in Southern California (say, 33° North), regarding my Country, I’ve never been further south than Rome since a few days ago when I visited Crotone.
Where is your Southern border? :)
Update (2011-10-30): My new national Southern border is around 37° North… Melito di Porto Salvo.
Wooden bricks
A few weeks ago, I joined my son while he was playing with wooden bricks and I ended up having even more fun than him. :)
A steam engine
The Pythagorean theorem :)
The Temple of Madness (not that far from an average temple, though) :)
A rocket
A wooden bricks factory :)
Remains of an ancient Roman waterworks :)
SQL Comuni italiani
Diverse persone hanno reso disponibili in rete, partendo dai dati ufficiali dell’ISTAT, degli script SQL per la memorizzazione dei Comuni, delle Province e delle Regioni d’Italia.
Purtroppo, molti di questi lavori non sono adatti per i miei scopi, avendo tutti almeno uno dei seguenti problemi:
- non sono aggiornati (io mi sono riferito all’elenco del 30 giugno 2010);
- non usano il codice ISTAT del Comune come chiave primaria;
- non separano in tre tabelle, unite da chiavi esterne, i Comuni, le Province e le Regioni;
- non assumono le denominazioni bilingue italiano/tedesco.
Lo script, con le CREATE e le INSERT complete nell’ordine opportuno, è scaricabile qui e, pur essendo testato su MySQL 5, è abbastanza semplice e pulito da risultare portabile senza o con poche modifiche.
You, all
I’m not John
you are not Sean
those lines are grand
while these are spent
I’m here with you
so don’t be sad
don’t fall in blue
my love is big
yours is too
I’m your dad
she’s your mom
we’re tryin’ to be a family
‘nd not a clan.








