Sorry, I’m addicted to puns. :)
This is a note for me, you and Michele: do you want to get the sum of a set of integers? Try this one-liner:
awk '{TOT += $0} END {print TOT}' your_filename
Use $0 if your_filename has lines with one integer each, of course you can use $another_integer if you want to get the sum from a given column.
Ho inviato una mail e una lettera cartacea all’Ordine degli Ingegneri della Provincia di Torino: il testo era il seguente. Spero che qualche collega (anche cattolico) leggendo queste righe, possa esprimere pensieri simili.
Il giorno 26 Novembre 2007, ho ricevuto sulla mia casella di posta elettronica, la seguente email, inviatami da iscritti@
L’Ordine intende favorire iniziative in ambito religioso, senza distinzioni di fede, che siano di gradimento dei propri iscritti.
Con questo intento si informa che, in occasione del prossimo S. Natale, sarà celebrata una Messa solenne officiata da Sua Eccellenza Monsignor Guido Fiandino - Vescovo ausiliare - il giorno 17 dicembre p.v. alle ore 18.30, presso la Chiesa di Santa Cristina in piazza S. Carlo, per gli ingegneri, i loro familiari ed amici che avessero piacere di partecipare.
Sono rimasto davvero perplesso e Vi chiedo quindi:
- Perché l’Ordine a cui sono iscritto dovrebbe favorire iniziative religiose: è forse nei suoi compiti?
- Queste iniziative dovrebbero essere, a Vostro dire, senza distinzioni di fede ma la mail si intitola “Santa Messa Natalizia” (con un evidente riferimento cristiano) e descrive chiaramente un rito cattolico.
Io al momento posso definirmi ignostico e mi chiedo con quale diritto l’Ordine possa promuovere una iniziativa legata a una particolare religione.
Trovo la cosa particolarmente ingiusta verso tutti gli ingegneri non cattolici (e persino verso gli ingegneri cattolici, dato che certamente loro stessi considerano non confessionale l’Ordine al quale sono iscritti).
Restando in attesa di un riscontro, Vi porgo Distinti saluti.
Reading the referers of this website, I found that someone reached it querying a search engine for
Is Nick Drake really dead?
I’ve got three words to say: shame on you.
I think that I can list five main reasons to explain why good suggestions are so hard to follow (and it doesn’t matter if we are talking about the economy of a country or the settings of a GNU/Linux server).
- we are lazy
- we are unskilled
- we would like to make clear to everybody that the work of many people is useless
- we would like to stop someone from making easy money (someone that we support or whose support we need)
- we’ve built, through the years, a monster system that we don’t understand completely and we are very reluctant to change anything in it
A very common problem is submitting each object of an array to a set of tests: if a given object fails a given test, the system marks the object as “failed” without running the remaining tests.
The classical solution is writing a class for the test, with a method for each test and another method that calls them like
if ($this->method_test_3($i) == false) {
print "method_test_3 failed\n";
break;
}
if ($this->method_test_4($i) == false) {
print "method_test_4 failed\n";
break;
}
but this solution is not elegant and, adding new filters, needs new blocks of code. Using reflection I can get the list of methods to call (using a little trick) without having to list them with repetitive blocks of code.
I’ve written a PHP script to show this idea (the array is made of strings instead of generic objects): you can download it here.
Ieri è stato un giorno molto importante per la storia dei radicali, dell’Italia e del mondo: la Terza Commissione dell’Assemblea Generale dell’Onu ha approvato la risoluzione per la Moratoria Universale della pena di morte. Giustamente, un quotidiano (che non indicherò per “proteggere i colpevoli”) ha posto la notizia a pagina dodici… ma non ci si deve preoccupare, dato che a pagina tredici si raccontava come il numero di reduci americani dall’Iraq suicidatisi sia circa il doppio del numero dei loro commilitoni morti sul campo.
Perché mi avete rovinato in questo modo un giorno da ricordare?
I’ve discussed with a friend the effect on memory of assigning strings by reference (or by value) within PHP5. There is a false belief about it: I’ve just written a short script that, using memory_get_peak_usage and memory_get_usage, reports the memory used by emalloc in the following case
$a = fit_the_string();
$b = fit_the_string();
$c = $b;
$c .= 'a';
$d = &$b;
The output was
- => 56904 - 63112
a => 133028 - 141276
b => 208420 - 216716
c => 208492 - 216716
c => 283816 - 283840
d => 283888 - 283888
The change between the two “c’s” is a core point.
Leggendo i referer di questo sito, ho scoperto che qualcuno l’ha raggiunto interrogando un motore di ricerca per
Termopili Valdesi
E’ difficile trovare un episodio storico strutturalmente simile alla Battaglia delle Termopili però, immediatamente dopo aver letto questa di questa ricerca, ho pensato al Vallone degli Invincibili.
Ci sono stato un paio di volte e ne ho diversi ricordi particolari, forse anche perché penso a chi non è più qui… comunque, in quel vallone, nei tempi successivi alla revoca dell’Editto di Nantes (1695), diversi valdesi resistettero agli attacchi da parte delle truppe del Duca di Savoia: da questi fatti prese nome il luogo.
Per chi volesse provarne la salita, basta che vada tra Villar e Bobbio Pellice e in quattro ore, neve permettendo, si è in cima.
Reading the referers of this website, I found that someone reached it querying a search engine for
Adriano Celentano Azzurro and English meaning
As I previously wrote, I think that “Azzurro” (Azure in English) is one of the best Italian songs of all times.
The lyric was written by Paolo Conte, one of our most important singers and songwriters and it was sung by Adriano Celentano. I am neither a translator nor a poet so… (warning!) I translated the lyric trying to save the meaning, of course the rhythm has gone.
Azure
I wait for the summer all year long then, suddenly, it’s here. She has gone to the beaches and I’m lonely here in the city. I hear, coming from over the rooftops, a plane that is flying away.
Azure, the afternoon is too azure and long for me. I realize that I have no more resources without you… so I might take the train to come to you, the train of desires which, in my thoughts, runs backwards.
It seems like when I was at the Sunday school, with much sun, many years ago. Those Sundays I spent walking alone in the courtyard… now I’m even more bored, neither is there a priest to chat with.
I look for a bit of Africa in the garden, between the oleander and the baobab, as I used to do when I was a child but there are people here and I can’t do it anymore. They are watering your roses… the lion is not here, who knows where it is.
In a few years, some survivors, roaming through the ruins of our cities, could find the front page of an old daily newspaper, printed during November 2007, the day that the price of crude oil reached 100 USD/barrel…
The price of the row material that keeps this civilization going has increased by more than 50 percent since last year. Did you find something about that on the mainstream media? Let’s go dying, wearing a brand new headset.