Wednesday, February 28, 2007

choose your destiny

Test Your Might
  • Go here.
  • Watch awesome embedded video (might not be compatible with Firefox).
  • Reverse engineer the site to the point where you are able to download the video onto your computer.
  • Give proof of your skill.
Ways of showing proof include uploading (privately) the video to YouTube or Google video. Legally, you probably aren't allowed to upload the video publicly.

Flawless victory.

Skill level: Hard

Tuesday, February 20, 2007

plane overflow!

I know that Air Canada Jazz uses touch screens... Perhaps next time I take a flight I can... uh... validate this story.

How to crash an in-flight entertainment system
By Hugh Thompson

One of the most interesting examples of a software "abuse case" came to me rather abruptly on an airplane flight from Las Vegas to Orlando in mid 2005.

Each seat in the airplane had a small touch screen monitor built into the head rest of the chair in front, and on this particular airline, passengers could watch a variety of television channels and play a few simple games. One such game looked remarkably similar to the classic strategy game Tetris, where players use their skills to manipulate falling blocks on a screen to try and form horizontal lines. I'm a big fan of Tetris; for a few months in 1998 I was borderline obsessed with it. I would start looking at everyday objects and start mentally fitting them together with other tings in the room to form weird line configurations. One of the options on this particular airborne version of Tetris was to alter the number of blocks one could see in advance on the screen before they started falling.

To give myself the biggest advantage in the game, I pressed the + control as many times as it would allow and got to the maximum value of 4. I then put on my "bad guy" hat on and asked: How *else* can I change the value in this field? Near my armrest was a small phone console; you know, the one where you can make very important calls for a mere $22 per minute. I noticed that the phone had a numeric keypad and that it also controlled this television monitor embedded in the seat in front of me.

I then touched the screen in front of me to highlight the number "4" in the options configuration shown in Figure 1. I tried to enter the number 10 into that field through the phone keypad with no luck: it first changed to the number "1" followed by the number "0". Frustrated, I then made the assumption that it would only accept single digit values. My next test case was the number "8"; no luck there either, the number didn't change at all. I then tried the number 5: success! '5' is an interesting test case, it's a "boundary value" just beyond the maximum allowed value of the field which was '4'. A classic programming mistake is to be off by 1 when coding constraints. For example, the programmer may have intended to code the statements:

0 < value < 5

When what actually got coded was


0 < value = 5

I now had the software exactly where I wanted it, in an unintended state; the illegal value 5 was now in my target field. I then turn my attention back to the screen and hit the + button which, to my complete surprise, incremented the value to 6! Again, an implementation problem, the increment constrain probably said something like "if value = 4 do not increment." In this case, the value wasn't 4 but 5 so it happily incremented it to 6! I then continue to increment the value by pressing the + button until I get to 127 and then I pause for a moment of reflection. 127 is a very special number; it is the upper bound of a 1 byte signed integer. Strange things can happen when we add 1 to this value, namely that 127 + 1 = -128! I considered this for a moment as I kicked back a small bag of peanuts and in the interest of science I boldly pressed the + button once more. Suddenly, the display now flashes -128 just for an instant and then poof...screen goes black.

Poof...screen of the person next to me goes black.

Screens in front of me and behind me go black.

The entire plane entertainment system goes down (and thankfully the cascading system failure didn't spill over to the plane navigation system)!

After a few minutes of mumbling from some of the passengers, a fairly emotionless flight attendant reset the system and all was well. I landed with a new-found respect for the game of Tetris and consider this to be the most entertaining version of it I have ever played.

http://blogs.csoonline.com/node/151

made of meat

THEY'RE MADE OUT OF MEAT
by Terry Bisson

"They're made out of meat."

"Meat?"

"Meat. They're made out of meat."

"Meat?"

"There's no doubt about it. We picked up several from different parts of the planet, took them aboard our recon vessels, and probed them all the way through. They're completely meat."

"That's impossible. What about the radio signals? The messages to the stars?"

"They use the radio waves to talk, but the signals don't come from them. The signals come from machines."

"So who made the machines? That's who we want to contact."

"They made the machines. That's what I'm trying to tell you. Meat made the machines."

"That's ridiculous. How can meat make a machine? You're asking me to believe in sentient meat."

"I'm not asking you, I'm telling you. These creatures are the only sentient race in that sector and they're made out of meat."

"Maybe they're like the orfolei. You know, a carbon-based intelligence that goes through a meat stage."

"Nope. They're born meat and they die meat. We studied them for several of their life spans, which didn't take long. Do you have any idea what's the life span of meat?"

"Spare me. Okay, maybe they're only part meat. You know, like the weddilei. A meat head with an electron plasma brain inside."

"Nope. We thought of that, since they do have meat heads, like the weddilei. But I told you, we probed them. They're meat all the way through."

"No brain?"

"Oh, there's a brain all right. It's just that the brain is made out of meat! That's what I've been trying to tell you."

"So ... what does the thinking?"

"You're not understanding, are you? You're refusing to deal with what I'm telling you. The brain does the thinking. The meat."

"Thinking meat! You're asking me to believe in thinking meat!"

"Yes, thinking meat! Conscious meat! Loving meat. Dreaming meat. The meat is the whole deal! Are you beginning to get the picture or do I have to start all over?"

"Omigod. You're serious then. They're made out of meat."

"Thank you. Finally. Yes. They are indeed made out of meat. And they've been trying to get in touch with us for almost a hundred of their years."

"Omigod. So what does this meat have in mind?"

"First it wants to talk to us. Then I imagine it wants to explore the Universe, contact other sentiences, swap ideas and information. The usual."

"We're supposed to talk to meat."

"That's the idea. That's the message they're sending out by radio. 'Hello. Anyone out there. Anybody home.' That sort of thing."

"They actually do talk, then. They use words, ideas, concepts?"
"Oh, yes. Except they do it with meat."

"I thought you just told me they used radio."

"They do, but what do you think is on the radio? Meat sounds. You know how when you slap or flap meat, it makes a noise? They talk by flapping their meat at each other. They can even sing by squirting air through their meat."

"Omigod. Singing meat. This is altogether too much. So what do you advise?"

"Officially or unofficially?"

"Both."

"Officially, we are required to contact, welcome and log in any and all sentient races or multibeings in this quadrant of the Universe, without prejudice, fear or favor. Unofficially, I advise that we erase the records and forget the whole thing."

"I was hoping you would say that."

"It seems harsh, but there is a limit. Do we really want to make contact with meat?"

"I agree one hundred percent. What's there to say? 'Hello, meat. How's it going?' But will this work? How many planets are we dealing with here?"

"Just one. They can travel to other planets in special meat containers, but they can't live on them. And being meat, they can only travel through C space. Which limits them to the speed of light and makes the possibility of their ever making contact pretty slim. Infinitesimal, in fact."

"So we just pretend there's no one home in the Universe."

"That's it."

"Cruel. But you said it yourself, who wants to meet meat? And the ones who have been aboard our vessels, the ones you probed? You're sure they won't remember?"

"They'll be considered crackpots if they do. We went into their heads and smoothed out their meat so that we're just a dream to them."

"A dream to meat! How strangely appropriate, that we should be meat's dream."

"And we marked the entire sector unoccupied."

"Good. Agreed, officially and unofficially. Case closed. Any others? Anyone interesting on that side of the galaxy?"

"Yes, a rather shy but sweet hydrogen core cluster intelligence in a class nine star in G445 zone. Was in contact two galactic rotations ago, wants to be friendly again."

"They always come around."

"And why not? Imagine how unbearably, how unutterably cold the Universe would be if one were all alone ..."

the end
http://www.terrybisson.com/meat.html

Thursday, February 08, 2007

Harper's speech on Israel, Feb 07/07

Good evening, ladies and gentlemen, and thank you, Linda, for that kind introduction, and thank you, ladies and gentlemen, for that very warm welcome.

I’m very pleased to join with the CIJA family of agencies this evening.

On behalf of Canada’s New Government, I’d like to thank you for helping to strengthen both Canadian civil society and the long-standing friendship between Canada and Israel,

Not to mention your encouragement of the Jewish community's full and active participation in the political process.

It’s a great honour, therefore, to be able to once again address this biennial gathering.

Now friends, I’m going to be brief in my remarks tonight, as the message I want to convey is clear, direct, and concise.

Over the past year, we got a pretty sharp reminder that it’s one thing to offer supportive words to Israel when it’s convenient, and quite another to stand firm in its hour of need.

Last summer, when Israel came under attack from terrorist groups, this government stood against those organizations and their objectives, and we stood with our friend in the democratic family of nations, the state of Israel.

We stood by the commitment I made at your last dinner. When it was not popular to do so, we stood and told the truth.

Israel had a friend when it mattered, and that, my friends, is the only thing that really counts.

Because a battle between a democratic state and terrorist groups who seek to destroy both it and its people is not a matter of shades of grey – it is a matter right and wrong.

Now friends, just as our government supports Israel’s right to defend her borders and her population, so too do we support a fair and just future for the Palestinian people.

And I know this is something you support as well, because each of us in this room tonight has a strong reverence for human dignity, and that’s why Canada’s New Government supports the creation of a viable, democratic Palestinian state that will live peacefully beside a secure, prosperous Israel.

The road to this much-needed state, however, will not be paved with the blood of innocent victims of terror. It will only be achieved through negotiations carried out in good faith by serious players who actually desire peace, and we sincerely believe that peace is what the majority of ordinary Israelis and Palestinians truly want.

And that’s why we’re going to continue standing up against the terrorists, extremists, and fanatics who eschew peace and stability while embracing violence and chaos.

And when faced with such threats, Israel will always have a steadfast friend in Canada’s New Government.

Thank you.

Shalom.

God bless Canada.