Il Ministero delle finanze è lento
18 Gennaio 2008Avete mai provato a scaricare un file del sito del ministero delle finanze o dall’agenzia delle entrate?
Provate! velocità massima di download 5kB/sec. Per scaricare 4,5Mb ci voglio ca. 15 minuti, mi sembra di essere tornato indietro all’epoca pre banda larga. A un certo punto la velocità ha raggiunto i 5,2 kB/sec e mi sono immaginato il funzionario/burocrate che ha rabbrividito “nonono troppo veloce rallentate, chiudete la banda presto!”
Non so quali siano le motivazioni, forse per dare a tutti le stesse possibilità di insuccesso, in fondo perché chi ha la banda larga deve essere agevolato rispetto a chi usa un vecchio modem? Equità prima di tutto, se uno è lento tutti devono essere lenti uguali.
O forse per insegnare al cittadino a prendere le cose con la dovuta calma. Ma credo che la motivazione sia più nascosta nella psicologia che guida la macchina pubblica. Vi siete mai chiesti perché allo sportello del amministrazione pubblica anche quando non c’è nessuno in coda occorre aspettare? Perché in questo modo la pubblica amministrazione rimarca la propria egemonia sul cittadino il quale non può fare altro che accettare la propria sottomissione di fronte a un pachiderma lento e inesorabile,
Ormai non so più cosa scrivere ma il trasferimento non è ancora terminato e in qualche modo occorre occupare il tempo. Trasferimento 85%, tempo rimanente 2,22 minuti.
Niente da fare, trasferimento interrotto.
Riproverò più tardi, ora sono troppo snervato!
Passwordless SSH - Mini howto
8 Gennaio 2008Recently I had to administer a new site on which I was not allowed to change th password for policy reasons and the password was very complex, something like this: Un&U2p3rC@s0 (not real password
)
Each time I had to log on I lost a lot of time, so for the first time I decided to generate RSA public/private keys to log on a system. For many who are used to this it’s very simple and for me up to now it’s very easy too.
Basically you have to generate a key pair, a public key and a private key. The question was for me who holds the public and who the private one. It very simple the user holds the private key, whinch is private for this reason and the server holds the public one. The next big question for me was, on which machine should I generate the key pair? The answer is very simple after the generation of the key pair you have to copy one to the aothe machine so the one you can pass on internet is the public one.
After I found the answer to this questions thenext step was very easy:
1) Log on to your client machine
2) type ssh-keygen -t rsa -p ” (You can play with these parameters in many ways)
3) scp the public key to the remote ssh server (scp .ssh/id_rsa.pub remoteuser@sshserver:.ssh/authorized_keys
4) The copied file should have 0600 permissions, so one more logon to the server using the typed password and chown 0600 .ssh/authorized_keys
Bingo!!!. Now you are able to logon without typing the password.
Just some notes:
Your server administrator should allow authorized_keys in user home directories. Before following this steps do some check.
Unable to read TLD “META-INF/c.tld” from JAR file
28 Dicembre 2007I installed the lastest version of JasperServer on my my brand new server based on tomcat6 with jdk6 but on the first page I got the message “Unable to read TLD “META-INF/c.tld” from JAR file…”.
My first try was to downgrade tomcat and jdk to a previous version andit seemed to work. I first thought in a bug somewhere in tomcat and after some time (20 minutes of my precious time!!!!!) my attention got capured by a message in catalina.out “.. file geronimo.jar skiped … contains Servet violation spec….. ”
So JasperServer contains in WEB-INF/lib some servlet libraries?!?! Could be possible it’s not a war made by me so somebody could have made some mistake. Listing the files in WEB-INF/lib i found the entire world of web libraries, included jsp-api. Yes this is the problem!
Tomcat excludes genonimo.jar because it contains Servlet api’s but loads jsp-api located in WEB-INF/lib because no checkis made. No jsp can be compiled because jasper (not jasper reports) compiles from a classloader and jsp-api are located in a different classloader.
Removig jsp-api everything works fine again.
Hello world!!
3 Dicembre 2007Yes! Thi is my new Wordpress blog. I decided to dismiss my old blojsom blog some time ago for the many issues and memory leaks.
It’s true many thing are done better in Java and many, many other things are done better in PHP.
My old blog URL is http://www.glz.it/blojsom/blog/default/