Archive for me

In an elevator..

// May 4th, 2013 // Comments Off // humor, life, me, tech

I haven’t written anything in a while, and I thought tonight was  a good night to write. Something interesting happened today while I was in the elevator and I thought I’d share it here with you all :p

Seriously if you think this is boring, either skip to the last two sentences or type http://youtube.com in your address bar, I hear they have interesting videos on that site. Come to think of it, here’s a quick story: My cleaning lady likes to talk, and yesterday she was talking about youtube and how she loves it and the first time she saw it etc.. Now she’s a bit old and not tech-savy, yet she was tell me how she felt the first time her daughter showed her youtube. She described her feelings as if this youtube site was invented before world war 1. Then I started to recall when I first saw youtube. I remember I read an article about it on slashdot around May or June 2005 (it was our digg/reddit back in the day). I saw the site, and I believe it was during its first or second month, and there were less than a thousand videos. You could have literally browsed through all the videos in a day. I remember thinking to myself, that this was a very stupid idea because streaming videos costs money, and how could they pay for all that bandwidth..? Ads? Who could manage such a global ad system? It turned out google had the power to create a global ad system so powerful, it actually made youtube work and become a billion dollar investment. Why am I talking about youtube? this is supposed to be about elevators…

Okay back to my elevator story. So I get on the elevator today around 6pm, and there are 5 people. I look at the board, and 5 buttons are pressed. After I got off on my floor, I was talking to my neighbor about the probability of each person getting of on a different floor. Its not really that rare, because the probability was 0. 25 (I’ll show you how to calculate it).

elevator

So my neighbor goes on to tell me that last week he was the tenth person to get on the elevator from the garage in our building. Each person went to a different floor, and one of them actually got off on the ground floor, which is uncommon. So, I started to think to myself, how rare is that? 10 people get on the elevator in the basement, and all go to 10 different floors in a 10 story building? The answer is 3 in 10,000..! Ok, then I started to think, how many times has this elevator had exactly 10 people in it? Our building is only 35 months old. If we assume that the elevator gets exactly 10 people going up from the basement floor(s) in it, 4 times a day during the weekdays and twice during saturdays and sundays, and I do believe that I’m pushing it there. That would mean that since the building was built until today, this has only happened 3639 times at most.

So, the probability that this has ever happened in our building is 0.36, which means there is a 0.636 chance that this has never ever happened..! And if it did happen, then it would have been a very very rare occurrence…! I sorta wish I was on that elevator…

Okay to calculate the probability, you do the following:
– First person will obviously push an un-pressed button: probability is 10/10 = 1
– Probability of the second person pressing one of the un-pressed buttons: 9/10 = 0.9 (there is a 0.1 chance he’ll push the one pressed by the first guy)
– Probability of the third person pressing one of the un-pressed buttons: 8/10 = 0.8 (again there is a 0.2 chance he’ll push a previously pressed button)
– Probability of the forth person pressing one of the un-pressed buttons: 7/10 = 0.7
– ..
– ..
– Tenth guy pressing the last un-pressed button: 1/10 = 0.1 (meaning there is a 0.9 chance he’ll press a button already chosen by someone else!)

Total probability is the product of all the probabilities = 1 * 0.9 * 0.8 * 0.7 …. * 0.1 = 0.00036288

which means this only happens 3 or 4 times every 10 thousand times!

obviously this was the case for our building, and it might be different for yours, but at least now you know how to calculate it. I wonder if anyone actually read this.. LOL

Child-Free Flights? Genious!!

// July 20th, 2011 // Comments Off // humor, me, Trips

I recently read that Ryanair was going to offer “child-free” flights starting October 2011. Now I don’t really hate kids, I just don’t like them crying for hours on a flight I’m on. This reminds me of a story that happened about a year ago.

I was taking a trip from Montreal to London, and the plane was set to depart at 8pm. I had so much to do the night before so I didn’t get enough sleep. I thought that I might be able to kill some time on the trip by sleeping. So I grabbed my travel pillow and headed to the airport.

I’m not a big fan of airplane food, so I ate a whopper from Burger King before going through the security check. There was not a baby in sight, and I was sooo sure my flight would be child-free. By the time I got in line for the security check, I was full, I finished praying, and couldn’t wait to put my head on my pillow with hopes of sleeping most of the trip. While in line I saw this guy from Pakistan with a child in his arms and another in a stroller. I couldn’t imagine how hard it can be to travel with 2 kids and all that luggage. I think one of them was crying or something, all I know is that I felt bad for the guy and whoever was going to be on the same flight with him and his kids.

I got me a decafe to enjoy while waiting for the gate to open. While I was checking my email and browsing the web on my Blackberry I saw the guy with the two kids sit near my gate! Of all the flights that night, why mine? Seriously! The only kids in the airport were on my flight! So I sat there wishing they’d at least be in a different cabin. I usually get on the plane after everyone boards because I’d rather wait in the airport than on a tiny seat in a crowded plane (Plus the duration of the flight is technically shorter if you board towards the end).

I show the flight attendant my boarding pass and she guides me to my seat. Guess who is right next to me? The guy with the two kids, and boy were they crying! Why would anyone cry that hard? I turned to the flight attendant and begged for another seat or another flight, but she told me that I had no choice the flight was fully booked. I sat down and hoped they would get tiered of crying and sleep. Boy was I wrong, those devils had different plans. When one would cry, the other would take a break to fuel up on crying power. Don’t they have shots to make them sleep or something? The plane took off and the pressure kicked in, and that’s when they both went berserk. There was a moment where I thought those kids might have been kidnapped and the crying was their way of asking us to save them.

I sunk my head into my pillow and tried to go to sleep wishing for at least an hour of silence, but those kids knew of my plans and wanted me to suffer. There were moments in between shifts when one would cool down, and it would take the other about 2 or 3 minutes to pick up where his brother left off. During those moments I would doze off, and right when I would fall asleep the other one would cry like crazy. I didn’t know what to do, and there was nothing for me to do but look at them and hope those kids would look at me and have mercy on me and the other passengers on that flight.

About 3 hours into the flight the kids went to sleep and I got about 30 minutes of sleep during that time. I would wake to the sounds of mommy and daddy giggling over the alone time they’re enjoying before the kids wake up and ruin it for them. During those moments I questioned why people even have kids and whether they were worth all that trouble. I woke up to the sound of a ball being sucked in by a mega vacuum. I opened my eyes only to find the baby being kissed by the father. It wasn’t a normal kiss, it looked like a Zombie trying to suck the poor baby’s brains out. Even the baby had a look on his face that said “Pleeeease save me!”. The father continued to kiss the baby until it started crying all over again. This time it was because the baby was hungry, and the mother was trying to get the flight attendants to get her hot water. The crying went on and off till we got to London. I don’t think I’ve ever been so happy to get off a plane in my life! Thanks to those kids the first day of my break in London was spent in my hotel room sleeping.

The moral of the story is that “child-free” flights are a great idea!!

* The photos above were taken by Jill Greenberg. She is known for taking amazing photos of crying babies. She officially has the worst job in the world!

Classical “Game Over”s

// August 10th, 2008 // Comments Off // humor, me

I saw this on youtube, and I have to say I enjoyed it so much. I played some of these games when I was in Kindergarden. Most of these GAME OVERs are from NES, my favorite game back then was teenage mutant ninja turtles…

It’s incredible how much games have become in such a short period of time, I wonder what kind of games our grandchildren will be playing…

And We’re Back…

// August 2nd, 2008 // 1 Comment » // me, website

I know it’s been a while. First it was my exams then my projects then I had to come back to Saudi for the vacation.

But, here I am with a new theme. I just got really bored with the old theme, so I decided to change it…

So, hopefully i’ll be able to update more often now in sha allah…

Protected: Mont Tremlant!

// February 22nd, 2008 // Comments Off // friends, me, Trips

This content is password protected. To view it please enter your password below:

My Name has a meaning in french!

// February 1st, 2008 // 3 Comments » // Information, me

I was studying the verb faire in french, which means (to do). It turns out that it becomes “feras” when used with the (2nd person singular) in the future tense…

For example:
Qu’est-ce que tu feras ce week-end?
What will you do this week-end?

cool ay?

Computer Science Jokes…

// January 9th, 2008 // 3 Comments » // me, tech

Q: How many programmers does it take to change a light bulb?
A: Can’t be done. It’s a hardware problem.

======

There are 10 types of people in the world: those who understand binary, and those who don’t.

======

How do you keep a programmer in the shower all day?
Give him a bottle of shampoo that says “lather, rinse, repeat.”

======

Two computer science student are out in the woods when one of them collapses. He doesn’t seem to be breathing and his eyes are glazed. The other guy whips out his phone and calls the emergency services. He gasps: “My friend is dead! What can I do?” The operator says: “Calm down, I can help. Are you sure he’s dead.” There is a silence, then a shot is heard. Back on the phone, the guy says: “OK, i’m sure, now what?”

======

“C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg.”
– Bjarne Stroustrup

======

You never finish a program, you just stop working on it.

======

A mathematician, a physicist, and an engineer were all given a red rubber ball and told to find the volume. The mathematician carefully measured the diameter and evaluated a triple integral. The physicist filled a beaker with water, put the ball in the water, and measured the total displacement. The engineer looked up the model and serial numbers in his red-rubber-ball table. He tried to look up the model and serial numbers, couldn’t find them, so told his manager that it’s just not going to work.

======

A scientist is doing an experiment on a frog. He puts the frog down on the table and says “Hop.”
The frog hops.
The scientist then cuts off one of the frog’s legs and says “Hop.”
The frog hops.
The scientist then cuts off another one of the frog’s legs and says again, “Hop.”
The frog staggers about for a second but manages to hop.
The scientist then cuts off both the remaining legs of the frog and says “Hop.”
The frog, not surprisingly, just sits there.
The scientist makes a notation in his book: Frogs with no legs become deaf.

age = age + 1 ;

// December 19th, 2007 // 3 Comments » // education, life, me, Personal

J’ai 24 ans et 2 jours.

I became 24 years old 2 days ago, and since i’m studying french I thought i would write it in french.

Ok, I know I haven’t written in a while, and that’s because it took too long to get internet to my apartment! I know, you would think things would be easier in Montreal than they are in Saudi…

Anyways, I thought I would write this post about the month and a half I have spent so far in Montreal, so here goes:

- I thought I knew what cold was, until I walked to school last week while the temperature was 14 below zero without the wind chill factor!

- I know many people always talk about homesickness, but I am surprised I don’t miss home that much. I don’t know whether its because I was too busy to be homesick, whether It needed more time, or whether its because I met some really nice people here that made me feel at home. I would really like to thank them all, especially Hamad, Hamid, Othman, and Mustafa. But, I have got to say I really miss my parents…

- The hardest thing about french is pronouncation. Most of the time you have to guess the meaning of the word. I mean so many words sound exactly the same, but you know the meaning from the context its in. Now I know how students felt in Saudi during english classes.

- The best thing I found in Montreal is that cafes are everywhere, nothing like a nice big cup of coffee early in the morning. j’adore le café beaucoup!

- I bet most of you are celebrating eid right now, but here in Montreal most of the people are celebrating eid on Thursday, because they haven’t seen the moon.

- Mobile phones here suck. I asked a shop when I first came here if they had the nokia N95, and the guy became so excited and he said, we should get it before the holidays! Come on, we had that phone in Saudi for months!!

- To get free incoming calls for my mobile phone they made me sign a 3 year contract!! or else I would have to pay for my incoming phone calls!!

- In class a few weeks ago they asked us to talk about foods from our country (again, this was not a computer Science course!). So I talked about our traditional Saudi cuisines, and after I finished a student asked me why the shishah wasn’t on my list! It turns out that they even have shishas in Mexico! I’m serious…

- Never buy furniture from IKEA, I know they might look nice, but assembling them is torture!

- When you look for a place to live, try to look for a place you will live in for a long time, because there is nothing harder and more frustrating than moving!

- Using a washer and dryer wasn’t as hard as I thought it would be!

- I still make a mess when I cook (you should see my oven)! I even make a mess when I order pizza!

- Its a good thing I brought my XBox360 with me!

- One of the weirdest thing that I found here in Montreal is that stores here open until 9 on Thursdays and Fridays, but on Saturdays and Sundays they close at 5 or 6 !! Why would they close early on weekends? I don’t get it…

- When you first move to Montreal you’ll hate it! Especially when you compare it to other cities in the Europe. After 2 weeks you’ll think to yourself “oh, I won’t be here forever. I think I’ll manage to make it”. After a month and a half you’ll eventually see the beautiful side of it, and you’ll learn to love it for its uniqueness.

Ok, I think this is enough for now…
Over and out

Photos from Abha

// July 18th, 2007 // 3 Comments » // friends, me, tech

I went to abha 2 weeks ago to attend a friend’s wedding. I took a few pictures on the way with my Canon 400D. Let me know what you think…

(more…)