temporaneità

English scratches and Italian notes written by Carlo Perassi

  • About
    • Borges
  • Curriculum Vitae
  • Contact

AWEC2011

By Carlo on 2011-05-30

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.

Posted in English | Tagged WOW | Leave a response

Chunking Base64 binary data in Java

By Carlo on 2011-05-13

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.

Posted in English | Tagged Java, trivial hacks | 2 Responses

A tentatively nightfall runner

By Carlo on 2011-04-15

I like nightfall running and, while the darkness lets me breathe better, it also helps me not to look so clumsy. :)

Posted in English | Tagged scratches | Leave a response

Debian 6 VirtualBox image

By Carlo on 2011-04-07

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).

Posted in English | Tagged free software | 16 Responses

150

By Carlo on 2011-03-17

Era il tricolore più grande disponibile su eBay, poco meno di cinque metri quadri. :)

Tricolore

150 di questi giorni. :)

Posted in Italiano | Tagged Italia | Leave a response

It’s not a meeting

By Carlo on 2011-03-09

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.

Posted in English | Tagged sea | 2 Responses

Southern border

By Carlo on 2011-02-16

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? :)

Crotone

Update (2011-10-30): My new national Southern border is around 37° North… Melito di Porto Salvo.

Posted in English | Tagged Italia, scratches | 2 Responses

Wooden bricks

By Carlo on 2011-02-08

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

A steam engine

The Pythagorean theorem :)

The Pythagorean theorem

The Temple of Madness (not that far from an average temple, though) :)

The Temple of Madness

A rocket

A rocket

A wooden bricks factory :)

A factory

Remains of an ancient Roman waterworks :)

Posted in English | Tagged scratches | 4 Responses

SQL Comuni italiani

By Carlo on 2011-01-18

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.

Posted in Italiano | Tagged Italia, MySQL | 8 Responses

You, all

By Carlo on 2011-01-07

(A year later)

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.

Posted in English | Tagged Vittorio | Leave a response

« PreviousNext »

Search

It passes

it passes

My posts, unless otherwise expressly stated, are licensed under a Creative Commons Attribution-Share Alike 2.5 Italy License.

Copyright © 2006 - 2012 by Carlo Perassi. Powered by WordPress and Hybrid.