Wednesday, 20 May 2009

Text mode emacs and python syntax highlighting

I'm learning python, in order to develop django-powered web applications. The test environment is the my office's mini-server (an old, 900 Mhz Pentium III) with a Debian on it (used for ticketing, backupping stuff and as database/web server supporting internal activities) , without any graphical interface.

In order to develop more easily, I apt-got emacs which runs perfectly in text mode. By the way, syntax highlight doesn't work out of the box.

This is what you're going to need:
  • install the python-mode package;
  • create, if you don't have one already, a ~/.emacs file, and append this line: (global-font-lock-mode 1).
Cheers.

Monday, 11 May 2009

消息! Il portale parla cinese


Ed eccolo quà. Dopo qualche settimana di fatiche, la localizzazione in cinese di unimib.it è quasi ultimata.

Non si tratta di una banale interfaccia a contenuti in italiano/inglese, bensì di una traduzione completa delle informazioni di interesse per la visiting people proveniente dal est asiatico.

Tutto, a partire dalla scritta "Università degli Studi di Milano-Bicocca", è stato adattato, finanche i link di servizio; la dottoressa Bisetto, insegnante di cinese presso il nostro ateneo e localizzatrice unica dei contenuti, ha svolto un lavoro enorme e paziente di adattamento, soprattutto per tutte quelle locuzioni ambigue nelle quali una traduzione pedestre e meccanica avrebbe prodotto orrori. Analizzando i siti delle università cinesi, si è cercato di utilizzare parole e concetti a loro familiari, evitando concetti squisitamente europei che non avrebbero favorito la navigazione.

Infine, parlando di localizzazione, evidenziamo il banner dedicato al programma di scambio studentesco Marco Polo: tradotto in cinese - slogan incluso - si spera divenga un canale preferenziale per l'immissione nel nostro ateneo.

Il progetto di traduzione di unimib.it è ambizioso e non si ferma quì; serviranno risorse e pazienza per ingrandire una sezione altamente strategica. Per una volta non siamo i primi (unica.it dispone già di una bellissima versione cinese), ma ci faremo valere. :)

Monday, 4 May 2009

...and the story ends

56 months have passed since my second enrollment, but this time it worked! I'm finally graduated in computer science with a final score of 99/110.

I think this is the time to assess a balance of these years.

I'm grown, surely. Grown as a man and programmer. The stage (and thesis) I chose were challenging and helped me understanding who I am and what I could do. I learnt lot from this experience, and from all these years. I'm surely a better computer scientist than before.

Talking about our professors, it turned out that many of our teachers are extraordinary people, and a few are extraordinary assholes. Shit happens, I suppose it's the same eveywhere. The coolest course was, of course, cybernetics; the worst.. mm.. I suppose databases. In the middle, some wonderful, some useless, some I'll never forget, and a couple that changed my way of thinking forever. There were a lot of mind-expanding matters and a few simply mind-blowing.

Graduation let me also know lot of special people: living and among.. the dead! Now I can recognize the importance, for instance, of people like Gauss, whose name flows constantly along our graduation path: from algorythms to cybernetics, through linear algebra, probability and physics, it seems that everythings sprung out of his incredible mind.

It's nice that, even in my small thesis, a little piece of Gauss' work appeared: my last convolution filter used a discrete gaussian kernel in order to obtain a better smoothing! :)

Monday, 6 April 2009

Mistificare per principio




Nessun ritegno pur di far notizia.

Il Corriere della Sera sbatte in home page foto di un terremoto turco, spacciandolo per la catastrofe abruzzese. Ma come si fa..

Grazie a Peacemaker (NGI) per la segnalazione.

Monday, 30 March 2009

Fix the MBR, without Windows' permission, in a linux fashioned way

Il testo completo è disponibile quì: http://aresio.blogspot.com/


I tried to install Kubuntu "Jaunty Jackalope" last sunday.

Partitioning worked fine, file were copied without any issue but something went wrong at reboot: GRUB hanged up because of a unintelligible error 18.

I googled a bit and it turned out that it's due to the fact that BIOS detects disks in a different way Linux does.

So what..? *

I was going to try Kubuntu for a couple of good reasons, but my main work - nowadays - is Windows based because of the Visual Studio project related to my graduation thesis.

Therefore, I took my "Windows XP professional SP1" disc, put it into the CD-ROM drive and tried to give a simple "fixmbr" in the recovery console.

- "Error 18".

- "What? You were supposed to boot from CD. Let me check out the BIOS configuration... mmm everything is correct, CD is the first booting device. Let's put the hard disk last, to be sure. Reboot."

- "Error 18".

- "WTF!! Maybe the CD is damaged, let's try an older XP professional CD."

- "Error 18".

- "You kidding! Eat this!! (Windows XP64)"

- "Error 18".

It was going to be a personal thing.

I disconnected all IDE/SATA cables BUT the DVD drive, and rebooted again. This time it was even worse:

- "Nvidia / Intel booting system"

- "What the f*ck!!!"

I began wondering if the DVD drive was damaged or something. I tried Kubuntu and... it booted!! HELL!!!

It's definitively a mistery to me: only linux CDs can boot now on my computer.

Partly reassured by this, I reconnected hard drives and tried to reainstall GRUB. I say "tried to" and not "did" 'cause it didn't work, even with perfect parameters.

So, we reached the point.

How can one fix the master boot record, without using windows' recovery console & GRUB?

Here comes ms-sys package!

But... guess what?! It doesn't come with Kubuntu (anymore)!

And guess again?? It can't be simply apt-got. Why? Guess once again.. It's not in any Ubuntu's repository (anymore)!

And you cannot just compile it from source, because there are dependencies which are even worse than the package itself. Well, it's not a big deal, 'cause you can take the Debian Etch's .deb package and dpkg it.

Then it's a piece of cake:

ms-sys -w /dev/sda

where "sda" is obviously the hard disk we were talking about.

God bless Debian.

* and Miles Davis.