28 de junho de 2007

mr policeman, can you record me dancing while you write me a ticket


The reason why the British traffic wardens are using miniature hat-cams is to provide youtube/google with the best recorded images of people getting traffic tickets.

Concurso de Software Livre Nacional/ Portuguese Free Software Contest

The Portuguese Free Software Contest is organized by the Computer Science Association of University of Évora (NEEI), in collaboration with several personalities in the free software world.

It's major goals are the promotion of the free software in Portugal and the interworking (knowledge and experience sharing) between the Portuguese community of developers who embrace the free software philosophy.


It's is a great initiative, and hopefully it is just the beginning.

here



27 de junho de 2007

london is calling

one of the worst days in my life was a long time ago, when I was at a party with a lot of friends and they asked me to go to the stage and sing London's Calling by The Clash while a great friend of mine was playing the guitar (yeeaaahhhh! tiago rules... I miss you baby). I am a very shy boy so I didn't want to sing. Everybody was clapping their hands and shouting my name. But even with that manifestation of enthusiasm towards me, I wasn't able to pick the microphone and sing. I was blocked...

Now, some years later I feel this distant call from London and I ALREADY HAVE THE AIRPLANE TICKETS!!!!!!
I just hope that this time I'm capable of singing ...

26 de junho de 2007

You've got to love maths

I spend some of my free time doing some math/computational brainteasers from the Euler Project. Well I could watch some porn instead, but I prefer to exercise my computing skills while trying to optimize the algorithm/answer for a given problem.
I've started with C, but when the values involved exceeded the 64 bits, I had to choose between using a C library like miracl which offers arithmetic operations with 1024 bits, or using Perl and the CPAN module BigInt.

I decided to give Perl a chance. Until now, all my answers respect the 1-minute rule so no problems with that. Also since my Perl knowledge is pretty bad, it is a good opportunity to get more acquainted with the language.

today I've spend some time in problem #28. The solution is quite easy, but between finding the equations for each semi-diagonal and getting the final result in 3 lines of code I got really upset. Now, I will try to compute the result with brainfuck.

yeahhhh!!

25 de junho de 2007

If you have brain damage ...

... probably you've been around programming "brainfuck"!!

Well, don't get all excited I'm not insulting you. I've just discovered this esoteric language today, and it is already in my todolist as one of the things to learn when I have the time.

So lets check the typical hello world example:
++++++++++
[>+++++++>++++++++++>+++>+<<<<-] The initial loop to set up useful values in the array >++. Print 'H'
>+. Print 'e'
+++++++. Print 'l'
. Print 'l'
+++. Print 'o'
>++. Print ' '
<<+++++++++++++++. Print 'W'
>. Print 'o'
+++. Print 'r'
------. Print 'l'
--------. Print 'd'
>+. Print '!'
>. Print newline


Sooooo pretty!!
if I learn this, I will definitely impress the ladies!