Wednesday, January 20, 2010

Skating - pics

Decided not to abandon my blog and promised to put at least one pic per week. Here ya go :)
Oh, the story: 9 young people went skating, with me shooting ;)

Slovak police planting explosives into travellers luggage

A few weeks ago the Slovak police was testing airport security and training dogs etc. A lot was about that written and said, the incompetence of Slovak governing politicians and their ignorance to admit failure...

But a question: what was that person having the explosive in his luggage doing three days with it? Haven't he even noticed it?

...

And a second one: Were Slovak policemen contacted before by airport scanner producing companies?

...

C# - Variable xxx is already defined in this scope

WTF!?

after coming back from holidays I had no mood/time to write anything, so let's change it with a technical stuff. I was writing a C# code (C# is a programming language copyed from Java) and found a strange behaviour of variable scopes unique to this language. Create a for cycle, define a variable inside, define the same variable after the for cycle and an error is shown:

for (int i = 0; i < 10; i++)
{
int xxx = 1;
}

int xxx = 0; //ERROR!

Variable xxx is already defined in this scope.

What scope, that's a child scope and has nothing to do with this one. Arggg.

:D