Saturday, April 28, 2007

Instant Food

Today I tried an instant salad dressing. You add some powder to olive oil and water and are supposed to get a dressing italian stlye. It just tasted like sodium-glutamate. Yukk. Are people actually liking that stuff?

I think I will continue to not buy stuff which contains sodium-glutamate. I don't like the taste of it and it makes me edgy.

Friday, April 27, 2007

How to write a thesis

I am currently reading a lot of PhD theses to see which I have to mention and were I can copy^h^h^h cite stuff. It also helped to figure out how a thesis shoud be written. The general structure seems to be:

1) Intruduction:


From the dawn of mankind people have always wondered about <obscure purely academic problem you write about>. This thesis will present the latest and best theory and/or data and will show mankind the way to a brighter future, where there is no hunger, no wars and everybody knows and cares about <obscure purely academic problem you write about>.

2) Theory:


I have read a lot more papers than you did, and I cite all of them. I even cite stuff I haven't read. I cite more stuff. I can use fancy words which nobody, even me, has any clue about what they mean.

3) Experimental Apparatus:


We have the best apparatus ever. You can't even imagine how great it is. The latest technology, the best ideas, blablabla.

4) Methods used:


I took some software, changed some parameters and let it run on a bunch of data. This took two years until I realised everything was wrong, because of a stupid bug and I did a fast workaround and got some results which might be correct.

5) Results


I got some numbers. Of course these are the best numbers, better than that of the other experiments. Some fancy plots and some vague statements where you have no clue about your data. Try to cover up the discrepancies by comparing plots with different scales and axes so that nobody notices that they show inconsistent data.

6) Conclusions and outlook


Paraphrase introduction.

Bibliography and Acknowledgements


Be sure to include advisor, referees and anybody who will have a say on your exam/defense.

Thursday, April 26, 2007

Trend



Thanks to XL, who graphed my progress in writing :-)

[EDIT]: Just to clarify: the graph was kindly produced by Axel (or short XL) who has a job in industry and is therefore excused for the use of Excel (or short that-crappy-program-which-cant-calculate-stuff-decently). I of course would have done that in root and have used the very convenient drag and drop feature to get the points closer to the fit. Or maybe in PAW because it's FORTRAN and I like self-flagellation.

Guernica



70 years ago the german Luftwaffe attacked the basque village of Guernica. This air raid was one of the first with large scale bombing of civilian targets, one of the first with large scale destruction, large scale killing of innocent people. Not for the first time but for a very prominent time, a military target (the bridge across the river Oca) was the excuse of bombing a complete city. The bridge was not even hit by a bomb. Hundreds of civilians died.

The german leader of the attac afterwards complained that it was no fun (because of being too easy and being annoyed by the smoke of the bombs) and senseless, as no troops took the town after the bombing...

Guernica is and always will be a symbol for the stupidity of war.

Wednesday, April 25, 2007

Almansa



300 years ago today the battle of Almansa started. This battle placed Catalunya under spanish government, making Castellano the official language and starting the suppression of Catalan. As a sign against this imperialist movement, I will start learning Catalan next week (there are lectures at my university...)

Interesting factoid found in a blog (from where I shamelessly stole the image):
The city of Xàtiva was burned, and its name changed to San Felipe in order to punish it. In memory of these facts, nowadays the portrait of the monarch still hangs upside down in the local museum of L'Almodí.

Wednesday, April 11, 2007

Electrical Typewriter


Electrical Typewriter
Originally uploaded by perreira.
I found this beauty in my parents basement. During easter I cleaned it a bit and checked if it works. It does, but only the small letters. For some reasons the shift-key does not work. It didn't work some years ago when I last played with this machine, but back then I coul only type capitals LIKE THIS. After taking it apart, it changed to small letters only...

Maybe I'll still be able to finde someone to repair it.

Monday, April 02, 2007

Spam

Since some time I recieve quite often spam originating from portuguese adresses, most of them have some legal garbage in them that it would be allowed to spam according to european law. Well, it ain't. Actually, there's a portuguese law (Decreto-Lei n.º 7/2004, Art. 22.1) against it, which implements a european directive. So I tried to find where to complain, but unfortunately the website of the portuguese telecom legislative organ is an unbearable burocratic moloch. What I did find was the address of the OECD Task Force on Spam, so I sent a mail to them.

Today I received a mail from them, stating that they received my communication and are analysing it. It was a simple question: "To whom should I complain?"... If they need a Task Force to analyse this, I fear it will take some time till spam stops. Anyway, let's hope they can do something.

I also complained to the sender of the spam, which is a real estate agency franchising from cascais, which I hope won't do any buisiness anymore soon. I asked them to remove my mail from their databases and send me an acknowledgment that they did so. Up to now they didn't...

Maybe this is a little bean-counterish, but if I can find out the sender of spam, I complain and send them a link to the law which forbids spamming. It won't help, but it makes me feel a bit better.

Sunday, April 01, 2007

Dear youth of today,

please memorise the lyrics of bella ciao. I hate it when I am the only one singing revolutionary songs out of tune aloud at Bucovina Club.


Una mattina mi sono alzato,
O bella ciao, bella ciao, bella ciao, ciao, ciao,
Una mattina mi sono alzato,
E ho trovato l'invasor.

O partigiano portami via,
O bella ciao, bella ciao, bella ciao, ciao, ciao,
O partigiano portami via,
Qui mi sento di morir.

E so io muoio da partigiano,
O bella ciao, bella ciao, bella ciao, ciao, ciao,
E so io muoio da partigiano,
Tu mi devi seppellir.

E seppellire sulla montagna
O bella ciao, bella ciao, bella ciao, ciao, ciao,
E seppellire sulla montagna
Sott l'ombra di un bel fior.

E le genti che passeranno
O bella ciao, bella ciao, bella ciao, ciao, ciao,
E le genti che passeranno
Mi diranno «che bel fior».

E questo è il fiore del partigiano
O bella ciao, bella ciao, bella ciao, ciao, ciao,
E questo è il fiore del partigiano
Morto per la liberta.


This is the german translation:

Eines Morgens, in aller Frühe,
o bella ciao, bella ciao, bella ciao, ciao, ciao,
eines Morgens, in aller Frühe
trafen wir auf unser’n Feind.

Partisanen, kommt, nehmt mich mit euch,
o bella ciao, bella ciao, bella ciao, ciao, ciao,
Partisanen, kommt, nehmt mich mit euch,
denn ich fühl’, der Tod ist nah.

Wenn ich sterbe, oh ihr Genossen,
o bella ciao, bella ciao, bella ciao, ciao, ciao,
wenn ich sterbe, oh ihr Genossen,
bringt mich dann zur letzten Ruh’!

In den Schatten der kleinen Blume,
o bella ciao, bella ciao, bella ciao, ciao, ciao,
einer kleinen, ganz zarten Blume,
in die Berge bringt mich dann!

Und die Leute, die geh’n vorüber,
o bella ciao, bella ciao, bella ciao, ciao, ciao,
und die Leute, die geh’n vorüber,
seh’n die kleine Blume steh’n.

Diese Blume, so sagen alle,
o bella ciao, bella ciao, bella ciao, ciao, ciao,
ist die Blume des Partisanen,
der für uns’re Freiheit starb.


And next week: the lyrics of הבה נגילה (Hava Nagila)

Friday, March 30, 2007

Script Foo

In case you want to convert a bunch of eps-files to pdf-files (e.g. root generated plots, as the pdf output of root sucks and the eps sometimes produce strange encoding-effects when converted directly...):


#!/bin/bash
for epsfile in $*;
do
echo "Converting $epsfile ...";
eps2eps $epsfile ${epsfile%.eps}_temp.eps;
epstopdf ${epsfile%.eps}_temp.eps -o=${epsfile%.eps}.pdf;
rm ${epsfile%.eps}_temp.eps;
done

Getting Serious

I think it is a sign of old age when you start cleaning out all those mp3s you never listened too when sober, those party-tracks for which you need at least half a bottle of vodka to like them or find them remotely funny...

Anyway, I got to the letter H tagging and cleaning my mp3 collection. Though it's only legal mp3s it's much too much to listen too.

Wednesday, March 28, 2007

Die ächte Verachtung haßt nicht,
sie ist reine Ueberzeugung
vom Unwert des Anderen

--- Arthur Schopenhauer

Just to correct the citation I made when standing in front of one of the local discotheques.

Sunday, March 25, 2007

Book Fair


Reading
Originally uploaded by perreira.
Today I went to the Leipzig Book Fair. It took about 5 hours by trains (local trains, as I went with the "Schönes Wochenende" ticket) to get there, which was a torture. But it was worth it, very nice fair. More when I got some sleep...

Friday, March 23, 2007

Monday, March 12, 2007

Flohmarkt





As I had to get up early anyway on sunday, I decided to get up really early and go to the flea market. Most of the stuff they had there was 80ies crap, but I found some nice books, including this handbook for drivers and car-owners from 1914. It explains everything you needed to know to get a drivers licence in 1914, which includes knowing how your car actually works and how to repair it.

I also got an engineers handbook from 1896, which belonged to a railway engineer. It still has a paper in it with a mark from the Königlich Bayrische Staatsbahn, the royal railway of bavaria. Maybe some scans will follow...

Saturday, March 10, 2007

Pagecount

As I am getting more and more frustrated and might answer questions on how my thesis is going on in a style which might annoy people you can now find a page counter in the sidebar. It is updated daily, everything more I would tell you would be on the lines "don't ask..."

In case you want to know how I did the counter:
convert -background white -fill black -font Helvetica -pointsize 24 -size 50x label:`pdfinfo $THESIS | grep Pages | awk '{print $2}'` $PNGFILE

Sunday, February 25, 2007

Vienna


Cafe Central
Originally uploaded by perreira.
Back from Vienna. A week of conference, on detectors and how to build them. Lots of physicists around, some nice, some annoying; amazingly enough there were some good looking female physicists, two from Brazil, one from Poland, one from somewhere else.

I managed to see something of Vienna as well, I think I have got an overdose of culture on friday after visiting two mueums and the theater...

Pictures will appear on flickr as usual.

Sunday, February 18, 2007

Conference

I am off to a conference in Vienna. Luggage: about 3kg of laptop and stuff for the laptop, about 5kg photography equipment, 5kg in beer, 1kg in food and some t-shirts. Hurray for light travelling...

Defenitely looking forward to visit the Esperanto Museum in Vienna (just one floor beneath the globe museum).

Thursday, February 15, 2007

Decimal Day (not to be confused with Domino Day)

On the 15th of February 1971 Great Britain switched from a currency system based on the traditional LSD system (yes, it's called that way - Librae, Solidus, Denarii) to a boring decimal system. The old one was much more logical...:

4 Farthings are a penny, 3 pence a thrupence, 2 thrupence a sixpence, 2 sixpense a bob, 2 bob a florin, 1 florin + a sixpence are half a crown. 4 of these half crowns are a ten-bob, 2 ten-bobs are 20 shilling or 240 pence or 1 pound. One pound and a shilling, or 252 pence, are a guinee.

And now: 1 pound are 100 pence. How boring. Anybody could remember that...

And before you ask: yes, I spend too much time surfing wikipedia.

Monday, February 12, 2007

The Wrath of God will come upon you!

Those sinners in Portugal who voted for unchristian and abnormal things shall fear the wrath of god! Todays earthquake shall be a SIGN!

Sometimes nature has a sense of timing which amazes me... Back in the middle ages (and maybe still today in the more rural areas of portugal) this would have made people burning a lot of witches.

Welcome in the less uncivilized world!

Yesterday about a quarter of the portuguese entitled to vote placed portugal on the map of countries being on the way from the middle ages to more civilized times. Though only 43% voted, 59% of those voted for the change of a law, which up to now lead to up to three years of prison for women having an abortion. The law resulted in those considering abortion going to spain (the rich) or doing clandestine abortions (the poor) with horrible conditions, leading to the death of thousands of women each year. A referendum in 1998 failed to change the law, as the supporters of change stayed at the beach and the voters against change were all sent to vote after church by priests who seem to have been stuck in a mindframe appropriate for the year 1100 (and even then considered conservative). (This is my polemic version, your truth may vary...)