Sunday, March 30, 2014

Gino Vernetto

I have occasionally published material on Wikipedia US, and never had any issue. Whenever I try to do the same on Wikipedia Italy, there is immediately someone who deletes it without really any substantial reason.

Anyway I am publishing here the small article I had written on my father, Gino Vernetto, who has been writing a lot of history books. At least if someone googles his name he will find this post.

{{Bio
|Nome = Gino
|Cognome = Vernetto
|Sesso = M
|LuogoNascita = Parella
|GiornoMeseNascita = 12 dicembre
|AnnoNascita = 1923
|LuogoMorte =
|GiornoMeseMorte =
|AnnoMorte =
|Attività = storico
|Attività2 = scultore
|Attività3 = scrittore
|Epoca = 1900
|Epoca2 = 2000
|Nazionalità = italiano
|Immagine =
|Didascalia = Gino Vernetto in un'immagine del 2010
}}

==Biografia==
Nel 1952 si laureò in Ingegneria Elettrica presso il Politecnico di Torino. Si dedicò alle ricerche catastali nei comuni del Canavese e della Valle d'Aosta, e questa sua passione lo portò a pubblicare diversi libri sulla storia tipicamente dal 1200 al 1900.
Curò anche la traduzione e pubblicazione dei Diari di Giacomo Naretti, in collaborazione con Alberto Sbacchi.



== Opere ==
{{div col}}
*Storie di un piccolo paese: Parella – 198 pp - Parella, 1990
*Genealogia e cronistoria dei conti San Martino di Loranzè – 64 pp – in Bollettino SASAC n. 24 del 1998
*PARELLA – Storia e cronaca dalle origini al 1900 – 647 pp - SASAC, Ivrea, 1999
*I marchi di alcuni notai canavesani dei secoli XV-XVII – 45 pp – in Bollettino SASAC n.26 del 2000
*Gli ultimi conti San Martino di Loranzè – 15 pp – in Bollettino ASAC n.1 del 2001
*Giacomo Naretti, un canavesano che si è fatto onore, in Bollettino ASAC n.1 del 2001, pp.119-121, seguito da Le memorie di Giacomo Naretti alla corte dell’imperatore Giovanni IV d’Etiopia di Alberto Sbacchi, pp.122-140
*Genealogia dei secondi San Martino di Parella in Bollettino ASAC n.2 del 2002, pp.131-175
*CHARVENSOD – Alla ricerca delle radici – 275 pp - Comune di Charvensod (AO), 2002
*Le vicissitudini di una piccola comunità canavesana ai tempi della guerra civile tra madamisti e principisti (1639-1642) – 50 pp – in Bollettino ASAC n.3 del 2003
*Giacomo Naretti alla corte del negus Johannes IV d’Etiopia - Diari 1856-1881 - a cura di Alberto Sbacchi e Gino Vernetto, pp.496 - ASAC, Ivrea, 2004
*Stórie dij neuss país, pp.132, Pedagna, 2008
*La legislazione comunale della “Pedagna” dal 1395 al 1875, pp.143, libridicossavellaealessi, Aosta, 2008 – coautore Sandra Biava
*Colleretto Giacosa. Storia e storie, pp.551 – Bolognino Editore, Ivrea, 2010
*Storia della cartiera di Parella, pp. 178 - ASAC, Ivrea, 2010
*Carlo Emilio San Martino di Parella, pp. 81, Edizione artigianale, 2010
*Loranzè. Fra storia e cronaca, pp. 607 - Bolognino Editore, Ivrea, 2013

{{div col end}}


== Onorificenze ==

Cavaliere della Repubblica Italiana
Order of the Star of Ethiopia


PS the page in teh wikipedia has been deleted today 2014-04-08 by user Supernino - reminiscent of Nietsche.



Friday, March 28, 2014

Getting started with Varnish on RHEL

export http_proxy=http://myusername:mypassword@proxy.acme.com:8080
set HTTP_PROXY=http://myusername:mypassword@proxy.acme.com:8080
set HTTPS_PROXY=http://myusername:mypassword@proxy.acme.com:8080

rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release/varnish-release-3.0-1.el5.centos.noarch.rpm

yum install varnish

Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
drdb-rhel6                                                                                                   |  871 B     00:00
epel-rhel6                                                                                                   |  871 B     00:00
jenkins-rhel6                                                                                                |  871 B     00:00
acme_v6                                                                                                 |  871 B     00:00
percona-rhel6                                                                                                |  871 B     00:00
rhel-x86_64-server-6                                                                                         | 1.5 kB     00:00
rhel-x86_64-server-optional-6                                                                                | 1.5 kB     00:00
rhel-x86_64-server-supplementary-6                                                                           | 1.5 kB     00:00
varnish-3.0                                                                                                  |  951 B     00:00
varnish-3.0/primary                                                                                          |  13 kB     00:00
http://repo.varnish-cache.org/redhat/varnish-3.0/el5/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
varnish-3.0/primary                                                                                          |  13 kB     00:00
http://repo.varnish-cache.org/redhat/varnish-3.0/el5/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from varnish-3.0: [Errno 256] No more mirrors to try.


Workaround:
vi /etc/yum.conf
add:
http_caching=packages

then try again:

yum install varnish

service varnish start

To start a HTTP server I use Python:
http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
run it on 8080

wget 127.0.0.1:8080

if you get 503 Service Unavailable:

vi /etc/varnish/default.vcl
backend default {
  .host = "127.0.0.1";
  .port = "8080";
}
service varnish stop
service varnish start



Fail fast shell scripts with set -e

Shell script number one:
vi testsete.sh
ls /pippo
ls /pappo

chmod 775 testsete.sh
./testsete.sh
ls: /pippo: No such file or directory
ls: /puppo: No such file or directory
now let's insert a "set -e" at the top of the script, and run again:
ls: /pippo: No such file or directory

See? Listing an nonexistent directory returns a non-zero error code, and this makes the script fail immediately, no need for boring explicit testing of the exit code of each command.... I only wish there was an error handler to print a nice error message.... I guess 100 years from now bash will evolve to something decent, for the time being be happy with the horrible crap it is.