Monthly Archives: November 2008

code golf: grid computing

3
Filed under amusing, artistic, coding, perl

Well, I tried my best for another challenge from codegolf.com.

I can’t imagine how these guys can solve this in less than 50 characters. I managed to solve it in 132 characters in Perl. Maybe I could try to solve it in Ruby too … later ;)

Here is my approach:

@{$$a[$_]}=split/ /,<>;for 0..9;for(0..9){$A=$B=0;for$y(0..9){$A+=$$a[$_][$y];
$B+=$$a[$y][$_];}$Z=$A if$A>$Z;$Z=$B if$B>$Z;}print$Z;

Maybe someone else wants to give it a try. The task is to calculate the highest sum from a given 10 x 10 grid. Have fun!

I can’t believe it … [UPDATE]

8
Filed under general

UPDATE:

Because stechan is a very careful reader he pointed me to the date of the article. I was mistaken. This article is even older than my older posting ;) . Mea culpa.

BUT: the connections between these boxes, the backdoor in skype, the current law situation and so on are still frightening to me.

I just read this article:

http://futurezone.orf.at/stories/293368

Read it. READ IT. R E A D IT!
I don’t even want to comment it. Of course, it’s futurezone, but read it and start puking. Especially the last part concerning animal-rights-activists is very interesting.

You know what’s funny: I saw it coming some months ago …