About Me

My photo
PhD Candidate at Purdue University, Computer Science.

Thursday, December 31, 2009

Things we say as a habit

Every 365 days, people just start to list all the bad thgs they had in the previous 365 days.
What I noticed, since I started to be aware of the world around me, that nobody says that the last year was a good year.
Since 1991, ppl says this is the worst year, and they wish the world will become better the next year.

But, this never happens, every year is worst than the previous! Though the advancement of technologies, we are driving the world to miserable year by year.
So, do u ppl say "we wish it better year" from the deep of ur heart? or u just do it as u used to.
I can't imagine for example a president wish his ppl a good year, then send them thousands of miles away to kill other innocent ppl and to be killed!!

Things propagate. If sthg, global-wise, bad happened in 2009, it will continue in 2010.
yes, and bad things in 2010 will be the new bad things.
Then, Bad things accumulate..this is fact. It is enough to wish that we sustain the current bad thgs in the world. As you see, they gave Obama the Nobel prize because he didn't let thgs go worst!

Saturday, November 21, 2009

توفيق الحكيم - نهر الجنون

نهر الجنون
For the sake of what is going on between Egypt and Algeria.
قصة تمثيلية في فصل واحد
(بهو في قصر ملك من ملوك العصور الغابرة. الملك و وزيره منفردان)


الملك – ما تقص علىَّ مريع!
الوزير – قضاء وقع يا مولاي.
الملك – (في دهش و ذهول) الملكة أيضاً؟
الوزير – (مطرقاً) واحزناه!
الملك – هي أيضاً شربت من ماء النهر؟
الوزير – كما شرب أهل المملكة أجمعين.
الملك – أين رأيت الملكة؟
الوزير – في حديقة القصر.
الملك – ما كان ينقص الخطب إلا هذا!
الوزير – لقد حذرها مولاي أن تقرب ماء النهر و أوصاها أن تشرب من نبيذ الكروم. لكنه القدر!
الملك – قل لي كيف علمت أنها شربت من ماء النهر؟
الوزير – سيماؤها ، حركاتها.
الملك – أحادثتك؟
الوزير – لم أكد أقبل عليها حتى ازورت عني في شبه روع.
كذلك فعلت و صائفها و جواريها و طفقن يتهامسن و ينظرن إلىَّ نظرات الممروريين.
الملك – (كالمخاطب نفسه) كل هذا بدا لعيني في تلك الرؤيا!
الوزير – رحمة بنا أيتها السماء!
الملك – نعم كل هذا رأته عيناى من قبل.
(صمت)
الوزير – متى يذهب غضب السماء عن هذا النهر؟
الملك – من يدري؟
الوزير – ألم ير مولاى في تلك الرؤية الهائلة ما ينبئ بالخلاص؟
الملك – (يحاول أن يتذكر) لست أذكر..
الوزير – تذكر يا مولاي؟
الملك – (يحاول التذكر) لست أذكر أكثر مما قصصت عليك .. رأيت النهر أول الأمر في لون الفجر ثم أبصرت أفاعي سوداء قد هبطت فجأة من السماء و في أنيابها سم تسكبه في النهر فإذا هو في لون الليل. و هتف بي من يقول
>حذار أن تشرب بعد الآن من نهر الجنون.. <
الوزير – ويلاه!
الملك – و قد رأيت الناس كلهم يشربون..
الوزير – إلا إثنان..
الملك – أنا و أنت..
الوزير – وافرحتاه
الملك – علام الفرح أيها الرجل!
الوزير – (يستدرك) عفو مولاي. إن حزني لعظيم. ليتني كنت فداء الملكة.
الملك – شد ما أبغض هذا الكلام. ليتك تستطيع على الأقل أن تجد لها دواء ... يحزنني أن يذهب مثل عقلها الراجح و يخبو هذا الذهن اللامع في سماء هذه المملكة!
الوزير – حقاً ، إنها كالشمس في سماء هذه المملكة!
الملك – نعم. أنت دائماً تردد ما أقول و لا تفعل شيئاً. على برأس الأطباء!
الوزير – رأس الأطباء؟
الملك – نعم رأس الأطباء. لعله يستطيع لها شفاء..
الوزير – مولاى نسى أن رأس الأطباء كذلك قد ذهب..
الملك – ذهب أين؟
الوزير – هو أيضاً من الشاربين.
الملك – يا للمصيبة ..
الوزير – لقد رأيته كذلك بين يدي الملكة و قد تغيرت نظراته و حركاته و كلما لمحني هز رأسه هزاً لا أدرك له معنى.
الملك – رأس الأطباء قد جن؟!
الوزير – نعم ..
الملك – لقد كان نابغة زمانه. أية خسارة أن يصاب مثل هذا الرجل بالجنون..
الوزير – و في وقت نحن أحوج ما نكون إلى علمه و طبه.
الملك – ليس في هذه المملكة الآن غير واحد يستطيع إنقاذنا مما نحن فيه.
الوزير – من يا مولاي؟
الملك – كبير الكهان.
الوزير – واحسرتاه!
الملك – ماذا؟
الوزير – منهم يا مولاي.
الملك – ما تقول؟ من الشاربين؟
الوزير – أجل منهم.
الملك – هذا و لاريب ما يسمى بالخطب الجلل. حتى كبير الكهان أصيب بالجنون و هو أحسن الناس رأياً و أبعدهم نظراً و أثبتهم إيماناً و أطهرهم قلباً و أدناهم إلى السماء!
الوزير – هو القضاء يا مولاي ، ألم أقل أنه قضاء و قع؟!
الملك – أجل إنها لكارثة شاملة. ليس لها من نظير لا في التواريخ و لا في الأساطير. مملكة بأسرها قد أصابها الجنون دفعة واحدة و لم يبق بها ناعم بعقله غير الملك و الوزير!
الوزير – (يرفع رأسه إلى أعلى) رحمة السماء!
الملك – اصغ أيها الوزير. إن السماء التى حبتنا باستثناء و حفظت علينا نعمة العقل لا ريب ترانا خليقين أن تستجيب منا الدعاء. هلم بنا إلى معبد القصر نصلى و ندعو أن ترد إلى الملكة و الناس عقولهم. هذا آخر ملجأ نستطيع أن نلتجئ إليه.
الوزير – أجل يامولاي. آخر ملجأ لنا و خير ملجأ: السماء.
( يخرجان من أحد الأبواب)
(تدخل من باب آخر الملكة و رأس الأطباء و كبير الكهان)
الملكة – إنه لخطب فادح!
رأس الأطباء : (معاً)
كبير الكهان : أجل إنها لطامة كبرى!
الملكة – (لرأس الأطباء) أما من حيلة للطب في رد نور العقل إلى هذين البائسين!
رأس الأطباء – يشق على هذا العجز مني أيتها الملكة.
الملكة – تفكر يا رأس الأطباء.
رأس الأطباء: لقد تفكرت ملياً يا مولاتي ، إن ما أصابهما لا يسعه علمي.
الملكة – أأقنط إذن من شفاء زوجي.
رأس الأطباء – لا تقنطي يا مولاتي. هنالك معجزات تهبط أحياناً من السماء هي فوق طب الأطباء.
الملكة – و متى تهبط تلك المعجزات؟
رأس الأطباء: من يدري يا مولاتي!
الملكة – يا كبير الكهان استنزل لي واحدة منها الآن .. الآن .. الآن..
كبير الكهان – من قال يا مولاتي إني استطيع أن استنزل شيئاً من السماء.
الملكة – أليس هذا من عملك؟
كبير الكهان – إن السماء يا مولاتي ليست كالنخيل يستطيع الإنسان أن يستنزل منها ما شاء من ثمار!
الملكة – ألا تستطيع إذن أن تصنع شيئاً. إني زوج تحب زوجها. إني امرأة تريد إنقاذ رجلها. إنقذوا زوجي. إنقذوا زوجي!
رأس الأطباء – بعض الصبر يا مولاتي.
كبير الكهان – دع الملكة تقول! إنها على حق. هي تبكي زوجاً كريماً. الناس كذلك لو عرفوا الحقيقة لبكوا ملكاً كان حازم الرأي راجح العقل.
الملكة – احذروا أن يعرف الناس الخبر.
كبير الكهان – نحن أصمت من قبر يا مولاتي غير أني أخشى عاقبة الأمر. إنا مهما أخفينا الخبر لابد أن يظهر يوماً من الأيام. و أيُ مصيبة أفدح من علم الناس بأن الملك و الوزير...
الملكة – صه! إن هذا مريع.
كبير الكهان – حقاً أن هذا مريع وعظيم الخطر.
الملكة – ما المخرج؟ لا تقفا من الأمر موقف اليائس. افعلا شيئاً. إني أفقد عقلي أيضاً و لا ريب إن طال أمد هذا الحال.
كبير الكهان – لو أن في مقدوري فهم ما يدور برأسه.
الملكة – إنه يذكر النهر في فزع و يزعم أن ماءه مسموم.
كبير الكهان – و ماذا يشرب إذن؟
الملكة – نبيذ الكروم. ولا شيء غير نبيذ الكروم.
رأس الأطباء – نعم نبيذ الكروم. يغلب على ظني أن الإدمان قد أثر بعقله.
الملكة – إن كان الداء فيما تقول فما أيسر الدواء: نمنع عنه الخمر.
رأس الأطباء – و ماذا يشرب؟
الملكة – ماء النهر.
رأس الأطباء: أتحسبينه يرضى يا مولاتي؟
الملكة – أنا أحمله على ذلك.
رأس الأطباء – (يلتفت إلى صوت قريب) ها هو ذا الملك قادم.
الملكة – (تشير إلى رأس الأطباء و كبير الكهان) اتركانا وحدنا.
( يخرجان و يتركان الملكة تتأهب لملاقاة الملك).
الملك – (يراها فيقف بغتة في مكانه) أنت هنا؟
الملكة – (تنظر إليه ملياً) نعم.
الملك – لماذا تنظرين إليّ هذه النظرات؟
الملكة – (تنظر إليه و تهمس متوسلة) أيتها المعجزات!
الملك – (يتأملها في حزن) ويلى! إن قلبي يتمزق. لو تعلمين مقدار ألمي أيتها العزيزة.
الملكة – (تحدق في وجهه) لماذا؟
الملك – لماذا؟ نعم أنت لا تعرفين. هذا الرأس الجميل لا يمكن الآن أن يعرف.
الملكة – ما الذي يؤلمك أنت؟
الملك – (ينظر إليها ملياً) يؤلمني ... هل استطيع أن أقول؟ هذا فوق ما احتمل.
الملكة – (كالدهشة) إنك تشعر بالنازلة؟
الملك – أتسأليني؟! و أى شعور!
الملكة – (في استغراب) هذا غريب.
الملك – واحزناه!
الملكة – (تتأمله لحظة في إشفاق ثم تجذبه) تعال أيها الوزير اجلس إلى جانبي على هذا الفراش و لا تحزن كل هذا الحزن. لقد آن لهذا الشر أن يزول عنا.
الملك – ماذا تقولين؟!
الملكة – نعم ثق أنه سيزول.
الملك – (يتأملها بدهشاً) إنك تحسين ما حدث؟!
الملكة – كيف لا أحس أيها العزيز وهو يملأ نفسي أسى.
الملك – (ينظر إليها ملياً) هذا عجيب!
الملكة – لماذا تنظر إليّ هذه النظرات!
الملك – (متوسلاً في إشفاق) أيتها السماء!
الملكة – تدعو السماء؟ لقد استجابت السماء!
الملك – ماذا أسمع ..؟
الملكة – (في فرح) لقد وجدنا الدواء.
الملك – وجدتم الدواء؟ متى؟!
الملكة – (في فرح) اليوم.
الملك – (في حرارة) وافرحتاه!..
الملكة – نعم وافرحتاه! إنما ينبغي لك أن تصغى إلى ما أقول و أن تعمل بما أنصح لك به. يجب عليك أن تقلع من فورك عن شرب النبيذ و أن تشرب من ماء النهر.
الملك – (ينظر إليها و قد عاد إلى يأسه و حزنه) ماء النهر!
الملكة – (بقوة) نعم.
الملك – (كالمخاطب نفسه) ويحي أنا الذي حسب السماء قد استجابت!!
الملكة – (في قوة) اصغ إليّ و اعملِ بما أقول.
الملك – (ينظر إليها ملياً في يأس) إني لأرى الأمر يزداد في كل يوم شراً. و هل يخطر لي على بال أنها تتكلم مثل هذا الكلام و أن ما بها يبلغ هذا.. ويلاه! لابد من إنقاذها... لابد من إنقاذها. كاد يذهب من رأسي العقل (يخرج سريعاً): أيها الوزير! عليّ بالوزير!
الملكة – (كالمخاطبة لنفسها في حزن و إطراق) صدق رأس الأطباء. أن الأمر لأعسر مما .. (تتنهد و تخرج)
الوزير – (يدخل من باب آخر متغير الوجه) مولاي! مولاي!
الملك – (يعود أدراجه) أيها الوزير!
الوزير – جئتك بخبر هائل.
الملك – (في رجفة) ماذا أيضاً؟
الوزير – أتدري ما يقول الناس عنا؟
الملك – أي ناس؟
الوزير – المجانين.
الملك – ماذا يقولون؟
الوزير – يزعمون أنهم هم العقلاء و أن الملك و الوزير هما المصابان...
الملك – صه! من قال هذا الهراء؟
الوزير – تلك عقيدتهم الآن.
الملك – (في تهكم حزين) نحن المصابان و هم العقلاء!..
أيتها السماء رحماك! إنهم لا يشعرون أنهم قد جنوا.
الوزير – صدقت
الملك – يخيل إليّ أن المجنون لا يشعر أنه مجنون.
الوزير – هذا ما أرى.
الملك – إن الملكة واحسرتاه كانت تحادثني الآن و كأنها تعقل ما تقول. بل لقد كانت تبدي لي الحزن و تسدي إليّ النصح.
الوزير – نعم، نعم. كذلك صنع بي كل من قابلت من رجال القصر و أهل المدينة.
الملك – أيتها السماء رفقاً بهم!
الوزير – (في تردد) و بنا.
الملك – (متسائلاً في دهش) و بنا؟!
الوزير – مولاي! إني أريد أن أقول شيئاً.
الملك – (في خوف) تقول ماذا؟
الوزير – إني كدت أرى ..
الملك – (في خوف) ترى ماذا؟
الوزير – أنهم ... شيء.
الملك – من هم؟!
الوزير – الناس ، المجانين ، إنهم يرموننا بالجنون. و يتهامسون علينا و يتآمرون بنا ، و مهما يكن من أمرهم و أمر عقلهم فإن الغلبة لهم ، بل إنهم هم و حدهم الذين يملكون الفصل بين العقل و الجنون. لأنهم هم البحر و ما نحن إلا حبتان من رمل. أتسمع مني نصحاً يا مولاي؟
الملك – أعرف ما تريد أن تقول.
الوزير – نعم ، هلم نصنع مثلهم و نشرب من ماء النهر!
الملك – (ينظر إلى الوزير ملياً) أيها المسكين! إنك قد شربت! أرى شعاعاً من الجنون يلمع في عينيك.
الوزير – كلا لم أفعل بعد.
الملك – أصدقني القول.
الوزير – (في قوة) أصدقك القول، إني سأشرب و قد أزمعت أن أصير مجنوناً مثل بقية الناس. إني أضيق ذرعاً بهذا العقل بينهم.
الملك – تطفىء من رأسك نور العقل بيديك!
الوزير – نور العقل! ما قيمة نور العقل في وسط مملكة من المجانين! ثق أنا لو أصررنا على ما نحن فيه لا نأمن أن يثبت علينا هؤلاء القوم. إني لأرى في عيونهم فتنة تضطرم ، و أرى أنهم لن يلبثوا حتى يصيحوا في الطرقات: > الملك ووزيره قد جنا ، فلنخلع المجنونين!<
الملك – و لكنا لسنا بمجنونين!
الوزير – كيف نعلم؟!
الملك – ويحك! أتقول جداً؟
الوزير – إنك قد قلتها الساعة يا مولاى! أن المجنون لا يشعر أنه مجنون.
الملك – (صائحاً) و لكني عاقل و هؤلاء الناس مجانين!
الوزير – هم أيضاً يزعمون هذا الزعم.
الملك – و أنت، ألا تعتقد في صحة عقلي؟
الوزير – عقيدتي فيك وحدها ما نفعها؟ إن شهادة مجنون لمجنون لاتغني شيئاً.
الملك – و لكنك تعرف أني لم أشرب قط من ماء النهر.
الوزير – أعرف.
الملك – و أني قد سلمت من الجنون لأني لم أشرب، و أصيب الناس لأنهم شربوا.
الوزير – هم يقولون بأنهم إنما سلموا هم من الجنون لأنهم شربوا و أن الملك إنما جُنّ لأنه لم يشرب.
الملك – عجباً! إنها لصفاقة وجه.
الوزير – هذا قولهم و هم المصدقون، و أما أنت فلن تجد واحداً يصدقك!
الملك – أهكذا يستطيعون أيضاً أن يجترئوا على الحق؟!
الوزير – الحق؟! (يخفي ضحكة)
الملك – أتضحك؟!
الوزير – إن هذه الكلمة منا في هذا الموقف غريبة.
الملك – (في رجفة) لماذا؟
الوزير – الحق و العقل و الفضيلة ، كلمات أصبحت ملكاً لهؤلاء الناس أيضاً. و هم وحدهم أصحابها الآن.
الملك – و أنا؟
الوزير – أنت بمفردك لا تملك منها شيئاً.
(الملك يطرق في تفكير و صمت)
الملك – (يرفع رأسه أخيراً) صدقت إني أرى حياتي لا يمكن أن تدوم على هذا النحو.
الوزير – أجل يا مولاي. و أنه لمن الخير لك أن تعيش مع الملكة و الناس في تفاهم و صفاء ، و لو منحت عقلك من أجل ذلك ثمناً!
الملك – (في تفكير) نعم إن في هذا كل الخير لي. إن الجنون يعطيني رغد العيش مع الملكة و الناس كما تقول. و أما العقل فماذا يعطيني!
الوزير – لاشيء. إنه يجعلك منبوذا من الجميع، مجنوناً في نظر الجميع!
الملك – إذن فمن الجنون أن لا أختار الجنون.
الوزير – هذا عين ما أقول.
الملك – بل إنه لمن العقل أن أوثر الجنون.
الوزير – هذا لا ريب عندي فيه.
الملك – ما الفرق إذن بين العقل و الجنون!
الوزير – (و قد بوغت) انتظر... (يفكر لحظة) لست أتبين فرقاً!
الملك – (في عجلة) عليّ بكأس من ماء النهر!

Saturday, October 24, 2009

One of the very best Acts

I still remember what I felt when I was watching this scene for the first time..Although, I am not ok with the movie as whole for many concerns.
This scene is really deep, wonderful, the child Susan, who is the youngest among her brothers and sisters was upset with her father because "he leaves and never comes back". she refuses to speak to her father. The dramatic peak is that the father has never heard her spoken as he left when she was a baby.
However, she finally run through her father and beg him to stay in a very deep and sensitive scene with a brilliant play by the child actress and accompanied by a wonderful music.
This scene is one of the best, for what it includes of sentiments, morals, and depth.

Juma'a Prayer, live.

The Juma'a prayer here is a very nice experience, I liked to hare with ppl to understand how thgs are going here.
I recorded the recent Khutbah conducted by Ahmed Haroon, I found it a very good one to be uploaded as well.

I hope u find this sample of wt muslims are experiencing here useful.





Sunday, October 18, 2009

إيه اللغة دي؟

كنا طالعين السلم و أدامنا اتنين بيتكلمو لغة غريبة.
صاحبي سألني: ايه اللغة دي؟
رديت بتلقائية: شكلها كدة بورتريكي
صاحبي طبعاً بصلي كدة بستغراب و مات على نفسو من الضحك: جبتها منين بورتريكي دي؟
أنا كمان طبعاً رحت ضاحك. أنا كنت بهذر و بأول أي كلام على سبيل الهياس.
فضلنا كل شوية نفتكر الموضوع دة و نضحك.

بعد شهر، صاحبي ماشي لقى واحد من الاتنين دول ماشيين ، فرح ال انها فرصة يسأل هما منين . الواد طلع من بورتوريكا بجد.
طبعاً صاحبي أعد يضحك أول ماسمع كلمة بورتوريكا دي كأن حد زغزغه و الناس استغربت مالو دة!

Friday, October 16, 2009

Intel Ads

I didn't use of watching ads for such companies, Some ads are really nice.
Watch them here.
Enjoy..

Wednesday, October 14, 2009

بني آدم لا يرضى بحاله

كنت استمع لسورة الأعراف و استوقفنى قوله تعالى
فَوَسْوَسَ لَهُمَا الشَّيْطَانُ لِيُبْدِيَ لَهُمَا مَا وُورِيَ عَنْهُمَا مِن سَوْآتِهِمَا وَقَالَ مَا نَهَاكُمَا رَبُّكُمَا عَنْ هَذِهِ الشَّجَرَةِ إِلاَّ أَن تَكُونَا مَلَكَيْنِ أَوْ تَكُونَا مِنَ الْخَالِدِينَ
سبحان الله فان طبيعة الانسان ألا يرضى بحاله. فعندما خلق آدم سجدت له الملائكة الا ابليس. ورغم ذلك أراد أن يكون ملكا!!! وابليس يعرف هذه الطبيعة حق المعرفة، اللهم ارزقنا الرضا بما قسمت لنا

اللى بيعمل دكتوراه مش عجبه واللى مابيعملش مش عجبه و....الخ

Tuesday, October 13, 2009

My bid

When I was watching the famous Egyptian show "The married" ,"Al-Motazawegoon", I had no idea that I will make the same hilarious situations. Of course I am not married.
But Recently, I made a bid for a Seiko watch on ebay, and I won the bid. I bought the watch for $0.99!!
It was very exciting. But it is hilarious when I knew that shipping the watch from China will cost $16..

Friday, October 09, 2009

The "Yes We Can" fever

I am very confused about the Obama's influence on everything. The guy has been just awarded the 2009 Nobel prize for peace just by having some intentions, or by thinking.
The Nobel Committee said he won it for "his extraordinary efforts to strengthen international diplomacy and co-operation between peoples".
Come on, did that happen before in the Nobel prizes? what are the achievements?
Maybe because the US policy was directed to invading countries and many countries were on the list. But this is silly really thought.
Why everybody is impressed and binding hope on Obama? I remember now the propaganda made for his visit to Cairo to give a speech to the islamic world. While I was feeling that this speech won't have any impact on anything in the world- except traffic jams in Cairo for some few days for security reasons- ppl were really trying to pay attention to the words thrown as if Obama was going to give hints about his future plans during his speech. The speech was something like say everything about everything, so that ppl looking or sthg will find it, and will be happy. Everyone is pleased hearing Obama.
Well, I hope that I am wrong, and Obama will show he deserves this prize. We will see anyway.

Thursday, October 08, 2009

No Smoking

One of the best thing that happened to me is that I did not smell cigarettes since I left Egypt.
non-smokers here have the right to say no whenever, and wherever they want. I really suffered from mixing non-smokers with smokers in my home country and I was wondering why nobody respects this! Nobody gave a damn to care about this.
Recently a new policy will be applied that smoking will be prohibited both indoors and outdoors on the entire grounds of the campus, including in all vehicles owned or leased by the University. This is really interesting.
What was going so far was that smoking outdoors was allowed on the grounds of the campus at a distance of at least 30 feet from university facilities and in designated areas.
It worth mentioning also that the smoking here is not cheap, it is relatively expensive, 7$ can be expensive for some ppl.

Wednesday, October 07, 2009

Encore..Worst Case

To follow on my entry of worst_case, I have just received a warning that the water has some problems to be used for drinking and cooking.
The situation is just hilarious.

Oh, US really hates me.

Tuesday, October 06, 2009

لجان

ورا كل لجنة امتحان سرداب طويل......تسمع صريخ و عويل
وفى السكة تلقى الطلبة متزوقين ......... للأكسبتنس مستنيين
عايزين يدخلو السرداب و لو دقيقتين ...أهم يجربولهم صرختين

Saturday, October 03, 2009

مصر للطيران

من اسوأ الذكريات التى حملتها معي من مصر هي رحلة السفر التى قضيت فيها قرابة 20 ساعة على طائرة مصر للطيران. واعتقد ان الرحلة أصابتنى باضرار نفسية و عصبية و مالية بالغة. لا أريد أن أخوض فى تفاصيل الفشل المروع فى كل شئ ولكنى أتذكر بعض الجمل الشهيرة التى يستخدمها سائقو الميكروباص فى مصر "البطة المرتاحة للنقل و السياحة"

Friday, October 02, 2009

An Interview With AhmadiNijad

This is an interview with AhmadiNijad, president of Iran. You can see how the reporter does not want to follow with him and understand his answers. She prepared a bunch of irritating questions and her arrogance forbid her from controlling the interview.
link to the interview..

Thursday, October 01, 2009

Weather

If you don't like the weather today..Wit 5 minutes and definitely it will change.
The weather doesn't stop surprising me how frequent it changes, you can wake up with a shiny sun on your face. this can go away just while you are taking your Nescafe.
If you are walking on the street you can be tricked by the rain. it is very intense and quick, and suddenly nothing, but don't be too happy just one minute and will be back again.

Tuesday, September 29, 2009

Algorithm can be dangerous

May be I am writing this down because it was the first time I pay money for thinking about my algorithm assignment.
This assignment was not trivial and students were keeping asking and talking about it. I started to question my solution and If I should review it once again, I felt hungry, went to to KFC with friends, ordered my lunch, and then suddenly the proof of correctness jumped to my mind.
I am not sure what was happening or going around me, but suddenly I found the cashier asking me to sign to approve for my donation.
I found a logical explanation that the cashier asked me if I want to donate for something, and It seems that unconsciously I agreed while drawing my proof on the background of the cashier.
After all, it was not so bad, at least it is a donation. Just this is a reminder that I should be disconnected from assignments.

Friday, September 25, 2009

Endless Enchelada

-Where should we go today?
-Let's go to the Mexican restaurnt.
-Ok, why not? let's try sthg new.
-OOh this is a huge place, this is waste of resources!
-Ok never mind, let's what they do have for dinner.
-This the day of "Endless Enchelada", I will try this Enchelada thg.
-How can I help you sir for tonight.
-Yes, plz we want three endless Enchelada and 1 Sea Food Fajita and another one steak Fajita.
-ok, sure, I will be here with the crisp.
-We are Egyptians, How can we eat beans in a mexican Restaurant in US!!! This is shame.
-yes, sure.
-Plz..
-sure sir.
-Can we replace the beans in the Fajita and the Enchelada with anythg else.
-We have Beans X, Beans Y..
-No no, anythg not beans :)
-yes, mashed potatoes.
-me too, me too, me too.
..
..
-Plz..
-yes sir.
-Can we have more Crisp.
-OOH!! you guys are too fast!
-yes, we are.
-you have two choices, bring more crisp right now, or come with the main dish.
-Ok, I will do it right away, oh my god, you were really too fast, u did finish all that!
-after another thought, few minutes and I will be back with the food.
-Ok, we are fine.
..
..
-Here you go.
-Thanks.
..
..
-Plz, Can I have another Enchelada.
-Me too.
-Me too.
-Really, guys you are impressing me. You want more Enchelada! I wonder where do you small guys hide all that food!!!!
-!! howa mesh shayef el 3adhalat wel gessm walla eh!!!!!!

مهما خدتني المدن

One of the most lovely Song.
Emad AbElHaleem, and composed by Gamal Salama.

The video is not so relevant to the meaning, because the song is addressed to the mother. That's why I like it the most.

Wednesday, September 23, 2009

Back to MAC

Hurray..Hurray.

I am on MAC again :)
This post is from MacBook-Pro 


  Model Name: MacBook Pro 15"

  Model Identifier: MacBookPro2,2

  Processor Name: Intel Core 2 Duo

  Processor Speed: 2.16 GHz

  Number Of Processors: 1

  Total Number Of Cores: 2

  L2 Cache: 4 MB

  Memory: 2 GB

  Bus Speed: 667 MHz

Tuesday, September 22, 2009

Unbiasing the biased thing

I think the title is quite interesting. For VMs guys the biased locking is a well known topic.
I read a post few months ago an entry about the impact of the biased implementation in Java 6, and to get full idea go quickly through the comments as well.
I liked to make the same experiment against the JikesRVM biased implementation which I am working on currently.
It was really interesting that I got a slightly different behavior than the same experiment running on Java6.
Java6:
It is always the same output, the first thread does all the work, and the other threads display zeros.
JikesRVM:
Every run, I get a different output: The following are examples of what I got as an output from the little experiment:
$runnable[0]: counter=4
runnable[1]: counter=0
runnable[2]: counter=0
runnable[3]: counter=0
runnable[4]: counter=987

Another one:
$runnable[0]: counter=5
runnable[1]: counter=498
runnable[2]: counter=488
runnable[3]: counter=0
runnable[4]: counter=0
Again:
$runnable[0]: counter=1
runnable[1]: counter=990
runnable[2]: counter=0
runnable[3]: counter=0
runnable[4]: counter=0
Ok, I promise this is the last one:
$runnable[0]: counter=117
runnable[1]: counter=875
runnable[2]: counter=0
runnable[3]: counter=0
runnable[4]: counter=0
I run the experiment on my Ia32_linux system and used exactly the same code in the same entry I refer to.
Although the JikesRVM is somehow far from being "fair", I think we are on business. The real question will be how we can increase this fairness without beating the performance of the biased mechanism, or how can we decrease the threads starvations and get the same performance we are aiming for from the biased implementation.
It worth mention that the current implementation beats Java6 in many benchmarks. Stay tuned with more entries about this.

Worst Case

This entry is not an algorithm related entry. I used to used this expression in expressing the complexity of algorithms solving problems.
The matter of fact that I realized a year ago, that it is not just a stupid expression you plot accompanied with my stupid answer to problems.
It is really a matter of life, Whenever I am waiting for an event or submit for something I always get the worst case as a return. and again it is not an algorithm complexity.

  • I had many weird circumstances applying to universities.
  • I had a problem with my pic submitted to the embassy. mistake done by the photographer.
  • Re-do my finger prints because of Computer failure at the embassy.
  • I get problems with my tickets on all the planes I took to arrive USA, 3 problems with three different tickets.
  • I was hold in the registration office at JFK for investigations.
  • Got a water leak on my first night in the apartment.
  • Whenever I try to get a shuttle, it is late.
  • My paper work is always done by just the deadline, still waiting for my SSN, MEdical insurance..etc and nthg yet.
  • Ask deaf ppl questions among all the others.
  • Bad grades in courses, and bad output in my RA work .
  • Positive tests in immunizations after taking all of them (this also a worst case, probably ppl got some of them)
I started to wonder if this is a sign, or what. Maybe I am not welcomed here!
I am really depressed.

Wednesday, September 09, 2009

First Question on Campus

I don't know why I just remembered an incident. I really laughed a lot when it jumped to my mind.
On my first days on Campus in Purdue, I was a little lost.
You know, it is just you are not familiar with language, system, people..etc
I was looking for something and I was hesitated to ask someone to guide me. So I kept thinking to myself about I should formalize my question..let me say excuse me at the beginning.......no no let it be Hello...no no let's say good morning".
I can't remember how much time these thoughts took.
but anyway, after the formalization step is done, the following step is to pick the person who I should ask. Well, let me see..there are many ppl going around, some others are just sitting. It's an easy task. isn't it?
I am not sure how much time this took me also :) . but I believe it was much harder than the first step.
Finally I made my choice, my saver is few steps far from me...
I started firing my well formatted sentence "Excuse me............"
I kept talking and asking, but didn't get any response....so I rephrased my questions and I was trying to make my tome more loud..

Finally, I get a response from the guy.. he said in a discrete tone " I..a.m D.E.A.F"

Sunday, August 30, 2009

Polish your head

After 4 years working in Industry, I am back to the academic life.
I feel that my head is full of dust, I remember I was a better student during my last studies. I wonder how much time it will take to be in a good shape.
and if I am not going to reach this shape again, will this be due because I am getting old? :)
I remember I was not so bad in algorithms as I am currently.
Anyway, all I can say is that I am enjoying the first days in Purdue so far.

Wednesday, August 05, 2009

Leaving BA

I have left BA...
I was wondering if there has ever been a farewell party better than this one!!!

Friday, May 08, 2009

My Way

(P. Anka, J. Revaux, G. Thibault, C. Frankois)

[Recorded December 30, 1968, Hollywod]

And now, the end is here
And so I face the final curtain
My friend, I'll say it clear
I'll state my case, of which I'm certain
I've lived a life that's full
I traveled each and ev'ry highway
And more, much more than this, I did it my way

Regrets, I've had a few
But then again, too few to mention
I did what I had to do and saw it through without exemption
I planned each charted course, each careful step along the byway
And more, much more than this, I did it my way

Yes, there were times, I'm sure you knew
When I bit off more than I could chew
But through it all, when there was doubt
I ate it up and spit it out
I faced it all and I stood tall and did it my way

I've loved, I've laughed and cried
I've had my fill, my share of losing
And now, as tears subside, I find it all so amusing
To think I did all that
And may I say, not in a shy way,
"Oh, no, oh, no, not me, I did it my way"

For what is a man, what has he got?
If not himself, then he has naught
To say the things he truly feels and not the words of one who kneels
The record shows I took the blows and did it my way!


Yes, it was my way

Sunday, April 26, 2009

embedding ftpServer

I was trying to embed the ftpserver in my Java code. I had a problem exception:

Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory


I looked to the source files of the slf4j and found that in the latest release slf4j-1.5.6 there is a private modifier in Class org.slf4j.impl.StaticLoggerBinder

private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();


ftpserver puts slf4j-api-1.5.2.jar, that's why it deals with this member as public.

All you need to do is
1- change the modifier of this member.
2- or get the latest sl4fj-api-1.5.6.jar

Saturday, April 25, 2009

3amar ya Masr

الصفحة الأولى



44700‏السنة 133-العدد2009ابريل25‏29 من ربيع الاخر 1430 هـالسبت




العلاوة الجديدة لن تقل عن‏10 %‏ من أساسي الراتب
مصدر مسئول لـالأهرام‏:‏
الحد الأدني للعلاوة‏20‏ جنيها لدعم صغار الموظفين
رواتب يوليو تزيد بين‏24‏ جنيها للدرجة السادسة و‏84‏ للممتازة

القاهرة ـ من ماجدة عطية‏:‏
بعد إقرارها من مجلس الشعب خلال أيام‏,‏ وصدور القرار الجمهوري الخاص بها‏,‏ من المتوقع صرف العلاوة الخاصة الجديدة بنسبة لن تقل عن‏10%‏ من الرواتب الأساسية‏,‏ وسيتم تحديد حد أدني للعلاوة قدره نحو‏20‏ جنيها‏,‏ لضمان زيادة رواتب صغار الموظفين‏,‏ وتحقيق نوع من التوازن بين رواتبهم ورواتب كبار الموظفين‏,‏ تنفيذا لتوجيهات الرئيس مبارك برعاية محدودي الدخل‏.‏

وصرح مصدر مسئول لـالأهرام بأن المستفيد من هذه العلاوة هم شاغلو الدرجة الثالثة وحتي الدرجة السادسة‏,‏ وقال المصدر‏:‏ إن رواتب شهر يوليو المقبل سترتفع بنسبة‏13%‏ في حالة صرف العلاوة بنسبة‏10%,‏ وتتضاعف في حالة الصرف بنسبة‏20%,‏ وذلك نتيجة ضم علاوة عام‏2004‏ التي تم صرفها بواقع‏10%‏ إلي الراتب الأساسي‏,‏ ليصل إجمالي الضم إلي‏220%.‏

وأوضح المصدر أنه في حالة إقرار العلاوة بنسبة‏10%‏ وضم علاوة‏2004,‏ فإن رواتب شهر يوليو شاملة حوافز الإثابة ومنحة عيد العمال والعلاوات الخاصة والاجتماعية‏,‏ سوف تزيد بمبالغ تتراوح بين‏24‏ جنيها للدرجة السادسة و‏84‏ للدرجة الممتازة‏.‏

وأشار إلي أن راتب موظف الدرجة الممتازة‏,‏ علي سبيل المثال‏,‏ سيكون بعد ربط الدرجة وضم العلاوات‏762‏ جنيها‏,‏ وسيضاف إليه‏6‏ جنيهات علاوة اجتماعية و‏4‏ جنيهات علاوة إضافية و‏10‏ جنيهات منحة عيد العمال‏,‏ وحافز إثابة بنسبة‏75%‏ من الأساسي وعلاوة خاصة بنسبة‏85%‏ والتي لم يتم ضمها إلي الأساسي ليصبح إجمالي الراتب في أول يوليو‏1475‏ جنيها بدلا من‏1395.35‏ بزيادة قدرها‏84‏ جنيها‏.‏

وأوضح المصدر أن العلاوة الدورية سيتم صرفها بواقع‏10‏ جنيهات لذوي الربط الثابت لمدة‏5‏ سنوات‏,‏ و‏6‏ جنيهات لدرجة مدير عام و‏5‏ للدرجة الأولي‏,‏ والمبلغ نفسه للدرجة الثانية و‏4‏ جنيهات الثالثة وجنيهين للرابعة و‏1.5‏ للخامسة والسادسة‏.‏

وحسب المصدر‏,‏ فإنه في حالة إقرار حد أدني لقيمة العلاوة الخاصة لمراعاة محدودي الدخل‏,‏ فإن ما سيتقاضاه العامل هو المبلغ المقرر للحد الأدني المقرر حتي ولو زاد علي الحد المقرر في نسبة الـ‏10%.‏

وقال إن السبب في اختلاف الأرقام عند حساب العلاوة يرجع إلي أن الجدول الحالي الخاص بالأجور يتضمن‏17‏ عمودا ما بين أساسي وعلاوات وحافز إثابة وغيرها‏.‏

وأضاف المصدر أن الموظف يبدأ عمله براتب بسيط هو بداية مربوط الدرجات الواردة في جدول الأجور‏,‏ وعلي سبيل المثال‏,‏ فإن بداية الربط لموظف الدرجة الممتازة‏216.95‏ جنيه‏,‏ في حين أن إجمالي الدخل شاملا الأجور الأساسية والمتغيرة والعلاوات يصل إلي‏1475‏ جنيها‏.‏

Friday, April 24, 2009

Salma ya Salama

Un homme des sables
Des plaines sans arbres
S'en va de son pays
Au-dela des dunes
Courir la fortune
Car le paradis pour lui
Ce n'est qu'un jardin sous la pluie

..........
Salma Ya Salama
Je te salue Be salama
Salma Ya Salama
Je reviendrai Be Salama

.........
Un homme des sables
Pour faire le voyage
N'a que l'espoir au coeur
Un jour il arrive
Il touche la rive
Il voit devant lui des fleurs
La grande riviere du bonheur

..........
Salma Ya Salama
Je te salue Be salama
Salma Ya Salama
Je reviendrai Be Salama

.........
C'etait un mirage
Il n'y avait pas de riviere
Et la bonne et riche douce terre n'etait que du sable
Il reprend sa course
Vers une autre source
Il fnira par trouver
Le puits de la liberte

..........
Salma Ya Salama
Je te salue Be salama
Salma Ya Salama
Je reviendrai Be Salama

........
Un homme des sables
Des plaines sans arbres
S'en va de son pays
Au-dela des dunes
Courir la fortune
Le seul paradis pour lui
C'etait un jardin sous la pluie

Monday, April 20, 2009

MapReduce .. Another Chance

I have been calling for MapReduce and to replace the Relational Database.... I was just one guy of its thousands attracted by this.
I will be waiting for the release of this paper. at the end it depends on your system. sometimes you may need flexible designs more than performance. I think MapReduce is better in this.

Tuesday, April 14, 2009

Call for research Group

For some time, I have faced difficulties implementing my ideas. I think the problem with my university that research is formed of isolated individuals. each one try to defend his master thesis. There is no knowledge-transfer, no cooperation to build a solid background in a given framework.
Recently, I tried to start a research group. a group with common research interest. the idea was to throw some ideas and try to propagate the ideas between colleagues who are still lost, or stuck in their thesis.
Actually, many people were enthusiastic toward the idea, and we are trying to make it work.
I hate to be Mr pushy, but if it is a way to make that thing successful and build a research group to my university..then I don't mind to be the pushy guy.

You can join us if you are interested in system programming, virtual machines and concurrent programming.

Scala threading

Scala augments Java's native support for concurrency by adding actors. The Scala's actors library does address the fundamental problem of shared data and locks model by providing an alternative, share-nothing, message passing model that programmers tend to find much easier to reason about. They are implemented on top of normal Java threads, so that every actor must be given its own thread, so that all the act methods get their turn.

It is clear, that this model is not efficient as the creation and switching of threads are not cheap in Java. The normal implementation of receive returns after it finds and processes a message. To overcome this problem Scala adds an alternative to the usual receive method which is called react. react takes a partial function, but it doesn't return, its result type is Nothing.

Scala users, you should be ware that you are still on top of Java threading model...

Friday, March 20, 2009

Erlang propaganda

It's weird when I first noticed the propaganda around Erlang specially in 2007..Everyone was going crazy talking about Erlang.
You can see it is not the case the last year.
I was thinking that maybe this was due to the launching of other languages built on Java. the new languages like Scala, Clojure made many enhancements to the concurrency problems in the Java model while preserving the knowledge and the libraries of this famous language.

Saturday, February 28, 2009

Listening Carefully

The listening, we have been always taught about the importance and the value of listening. How many among us really understood this value.
I think that majority of us see the following scenario: When there is a call for a meeting, teammates gather and start to talk. Everyone will try to express his vision and his thoughts. ya?
Well, I recommend the contributions, everyone should say anything he wants loud. Put hands on problems during meeting also has a good effect for the trust among the team members.
But what about listening? If you try to listen carefully to the people during your meetings, then congratulations you are successfully reading their minds.
But why can this be important? why should I care about reading minds?

Reading minds will make you the perfect partner. Imagine that you get the point and the vision of your team, won't this make you able to define the priorities of each task? won't you be able to make the quality that fits the expectations of your mates?
When I was just switching my company, I came to the new team with a different culture, stuck to, addicted it actually. I was resisting the other opinions thinking that anybody should listen to my point of view.
After some while I realized that this can't work anymore. Although I am still convinced that I have good point of view. What I changed is that I started to break the ice. I process my managers mind then react on that business. In that way, I always achieve what my managers are just going to ask, I am leading the task.
Managers who can keep the project in the optimum direction while being self-managed are valued.
We need that as the World Crisis lay-off coders. We need to make sure that we are valued.....

Tuesday, February 24, 2009

Thursday, February 19, 2009

Above the Clouds

Don't go too far..this is not my romantic post for the Valentine 's Month.

Enjoy this paper..
Above the Clouds..is a Berkeley's view of Cloud Computing...If you are interested in knowing some brief issues about the cloud computing, then this is a very recommended reading..link

Thursday, February 12, 2009

The Endless Debate

it's again the endless debate..
I should start a new web project, and it's the time to launch a plan, with the tools recipes.

This time I thought about what are the factors that can bind my choice of tools. In general, someone should talk about time limits, security..etc when he plans to pick his language.But is there any other factor that can affect the choice?

The people around you:
Sometimes, you may find resistance from your managers adopting new technologies, that other people are unaware of. It's well known that the average turn over of the developers in majority of Software houses is high to the extent to make any manager keen to put it into consideration. When you adopt a technology different than your peers, the environment will risk isolated islands of software by your leave.
When you work in a team, this problem may disappear. because there will be others capable of handling what you may leave behind.
OOppps, working with team may lead to another problem other than the resistance of your manager. the resistance may come from the team itself, the resistance to adopt new technology and the tendency to work on familiar tools are enough weights to block all your plans to play with something new.
So, you should ask yourself "Is it logic that I pick the Java just because my peers have knowledge of it?"

Some worries:
A matter of fact that majority of developers hate the CSS and HTML classes. when it's time to write the HTML you can see them escaping from doors.
This is just an example, but represents the majority of developers.
Personally, the compatibility of JS and CSS code on different browsers is what makes my nerves.
the worry of making uncompatible code cross the browsers may push you to adopt GWT.
If you are working in a singletone mode, it may be a good choice. but when you are working in an organization where a team of designers are members of your plan, it won't be a wise choice. The designer should take care of your CSS code, and it will be his worry to make compatible CSS.
Are you keen to solve others' tasks by yourselves? if not, then your choice og GWT is unjustifiable.

If your organization adopts and masters a certain framework, then you will have peace....

Wednesday, January 07, 2009

One day....Famous Figures

I had an interesting start with 2009.

5-6 January I was in rendez-vous with very distinct figures.
on 6 january specifically I had a closed meeting and lunch with:
  1. Prof. Vinton G Cerf
  2. Prof. Gilbert S. Omenn
  3. Prof. Ronald Laporte
  4. Dr Ismail Sergaeldin
  5. Dr Noha Adly
  6. Prof. Magdy Nagy
on that day too, I met by luck..
Lotfy Labib, Youssef Dawood two Egyptian actors..
and finally NAder el-Sayed the Egyptian goal-keeper.