• 0
يوم 19 يونيو 2013 كان اخر يوم لي في شرم، كنت في تجربة اني أشتغل حاجة بره مجالي، بدافع المغامرة، والتغيير والبحث عن خبرات جديدة. كنت شغال في مطعم انجليزي معظم المترددين عليه كانوا من الانجليز سكان شرم الشيخ
.


اتكلمت عن تجربة الشغل في بوست قبل كده، بس المرة ديه ححكي آخر يوم لي هناك، 
بعد ما خلصت شغل في شرم وخدت الظرف الي فيه نصيبي من شغل الكام يوم دول، قررت أروح أعمل سنوركلينج في رأس محمد وسفاري قبل ما أمشي، لأني كنت عارف اني مش حزور المكان ده تاني في وقت قريب.


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

المهم ركبت المشروع وانا متحمس جدا ومبسوط اني رايح الرحلة ام 200 جينيه ب 20 جينيه رايح جي بس



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

هنا كان قرار اني اكمل صعب لان سرعة المشي في المتوسط 5 كيلو في الساعة، والساعة دلوقتي كانت 3 فلو مشيت بدون توقف رايح جي الساعة حتبقى 7 وانا كنت عاوز ارجع على الطريق قبل ما الدنيا تضلم..
 بس انا كنت خدت القرار مسبقا.. مكنش فيه رجوع..
حتى لو حروح اشوف المايه بس منزلش وارجع تاني..

شيلت الشنطة ومشيت، بعد كام كيلو لقيت قداامي كمين، ولسبب ما في قلب يعقوب لقيت قلبي بينطر من القلق بس انا كانت خلاص الشمس لحست دماغي.. فدخلت عليهم،


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




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


الطريق كان طويل ومستقيم.. بعد فترة لقيت نفسي داخل في حالة من التأمل.. كان في تقريبا ساعة من الوقت مش فاكر منها حاجة غير اني ماشي بسرعة مستقرة وبفكر في حاجات تانية.. فجأة لقيت المراكب بدأت تظهر.. ففرحت وبدأت اجري





الانعكاس الي في الصورة هو انعكاس الكفر، جبته من شرم عشان انزل بيه

الأعرف - رواية - الفصل الثاني - +١٨

  • 4



صرير أخشاب.. آنين صامت.. أيادي ترتجف..
لم تكن مرتهما الأولى، ولم تكن الأخيرة.. فقد كان وقتهما خلف ذاك الباب سوياَ إدمانهما الخفي..وعلى الرغم من أن الندم والاستغفار حليفهما كل مرة.. فقد كان كلاهما ينتظر المرة التالية بفارغ الصبر..
كان كلاهما يلهث لتلك الساعة بالاسابيع في صمت.. يناطحه الاحساس بالذنب تارة.. والسعي الى الفضيلة تارة أخرى.. حتى يثور أحدهما طلبا للاخر في وسط لقاء أو محادثة تليفونية.. ولكن سرعان ما يرد الطرف الاخر بالرفض..
غانما إما المزيد من الالحاح أو لقب أيقونة الفضيلة في أوقات أخرى.. وإن أخذت المُلح كرامته وأمتنع..  لم يكف الاخر عن سباب نفسه حتى لقائهما التالي.. لائما نفسه على تلك الفرصة الذهبية التي أضاعها بغبائه..
ورغم ذلك فقد كان أحيانا ما يلتقي ظمأهما.. فيسرعان الى ذلك البيت في أطراف المدينة.. بعيدا عن الانظار.. وبعيدا عن اللوم الذي ولربما كان سيصيبهما إن مر أحدهما بجوار ذلك الملتقى إذا توسط المدينة ..
-        "المفتاح مبيفتحش ولا ايه ؟" همست ريم بصوت لم يكن منخفض بالمرة وهما أمام الباب..
فلم يكن الخوف من شيمهما خلال تلك الساعة.. وكان أيضا هذا هو آخر صوت ستسمعه منذ أن يغلق هذا الباب خلفهما.. فقد كانوا يعشقوا الصمت.. أو ربما كانوا يستحون من الكلام.. وربما كان صوت أنين شهواتهما يعتلي أصوات أفواههم..
كانت ريم رائعة الجمال،  لم تنال انوثتها من النحافة ما ناله عودها ، ولم ينال من الحمرة جبينها ما نالته شفتاها..
عيناها أجمل ما رأيت من اللؤلؤ الأسود ينتصفه حلقة رمادية يفتن بها كل من يراها.. لذا كانت تتعمد انزال خمار رأسها بزاوية حادة.. معتقدة أن ذلك يخفيهما ويبعد عنها الأنظار ، الا انه لم يزيدهما الا غموضا وسحرا..
نعم انها ريم، ذات الفتاة البريئة التي كانت عليها منذ ثمان سنوات مضت، ثلثي القرآن ذاته الذي تعيه وتحفظه عن ظهر قلب..
ذلك الستار الذي يستعيد مكانه بسرعة البرق منذ أربعة سنوات عندما كانت في الصف الثالث الثانوي بعد ما وجه نظره اليها في المسجد.. الفتاة ذاتها .. أسمها ريم..
في بعض المرات تبلغ شهوتهما ذروتها.. فلا تلبث المداعبة طويلا حتى تجد كلاهما مجردين الثياب في وضعية جديدة أشد اثارة من المرة التي قبلها.. كانوا سريعي البديهة والتعلم.. فأبدعوا فيما يفعلوه وعرفوا ما لم يدرك بوجوده العامة..
ولكن تلك المرة كانت هادئة مثل أمواج بحر ربيعي .. تفوح رائحة زهوره من شعرها المسدول وقد استقرت أطرافه على كتفها لترسم تاج يزين رقبتها .. كانت جميلة كما لم تكن من قبل..
أستأذن ليحكم اغلاق الستائر والنوافذ وأعد شموع اللافندر.. ثم استدار فرآها تنظر إليه بتلك العينين الواسعتين.. يملؤهما الرغبة الهادئة والضعف في نفس الوقت.. أغلقت جفنيها فظهر كيف رُسم جفنيها بكمال.. كانت لوحة لا يضاهيها جمال..
تلك اللحظة يتباطئ الزمن نتيجة أفراز الاندورفينات والفيرمونات بداخلهما .. ظلا يقتربان حتى التحمت شفاههما .. تحتوي شفتيه شفتها العلوية.. مذاق لا يماثله أي شيئ آخر.. ثم يتبادلا الموضع فتلتهم شفتيه العلوية .. في تلك اللحظة يشعر كلاهما أن روحهما تتحد مع روح الآخر .. وعلى رغم الصمت .. فعبر القبلات يتكلمون في الكثير والكثير.. فقبلة تعني اعتذار .. وأخرى تعني "اطمئن" .. وأخرى "أنا ملكك للأبد".
يحملها برفق من خصرها ويستقر أعلاها على ذلك السرير الخشبي .. ثم يقبل رقبتها برفق.. فتبادله بقبلة في أسفل خده الايسر ثم بوحشية وبسرعة الفهد تقلبه ويبادلوا المواضع فتكون أعلاه .. ثم تلتهم حلمة أذنيه بين شفتيها وتداعبها بلسانها.. تلك الخدعة التي يعرفها القليلون جدا .. لا يضاهي الشعور بها أي شيئ أخر في عالم النشوة.. فتجعله ينتفض من المتعة..
تنسحب إلى الخلف لتصل يدها إلى مفتاح حمالة صدرها ببطئ..
-        *طق.. طق... طق*.. ذلك الطرق المفزع على باب البيت بصوت أعتلى صوت مئذنة الجامع المجاور حين آذن لصلاة المغرب والعشاء وهما في نفس الموضع..
-        *همهمات بنفس مستوى الصوت بالخارج* ..
أرتعد كلاهما حتى كاد يبلع لسانه من الخوف وكأنه يريد الافاقة من حلم ليجد كأن شيئ لم يكن .. المئات من الخواطر تشغل باله في ذلك الجزء من الثانية .. ماذا فعل بنفسه ؟ وماذا فعل بتلك البنت البريئة ؟ أم ماذا فعلت هي به ؟ وماذا سيكون رد فعل الأهل حين يعلمون بذلك .. أستبدل الأدرينالين الاندورفينس في عروقه .. وبلغت نبضات قلبه سرعة الضوء.. كانت تؤلمه كل دقة قلب يتحرك فيها قلبه بعض السنتيميترات من مكانه خوفا..
-        "ماهو النور مفتوح من تحت!" بدأ الصوت يتضح ..
-        *طق .. طق .. طق ..* بصوت أعلى تسمع فيه هزات مفاصل الباب ..
نهاية الفصل الثاني..

نبيذ أم جن؟

  • 0

أستنى .. لازم تشغل ديه الأول ..

Graveyard of Empires by Evans Blue on Grooveshark





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

لم أحتمل الزحام .. فاتخذت طرقاً مختصرة.. فصرت أخرج من درب متخفٍ وأهرب الي آخر في رداء غير ردائي..
وصلت أخيرا ولكن لم أحتسي أي شراب في طريقي إلى هنا..
أسمع خفقان قلبي بين ضحكات الآخرين.. كادت الوحدة تقتلني.. حتى رأيت ثغرها الفتان.. كانت الوحيدة التي تنظر الي في عدم اشمئزاز.. بل كانت تبتسم لي كلما راح كأس الجن الذي في يدها من امام وجهها فتظهر من ورائه.. يالهذه الابتسامة!  اطمئن قلبي وعلمت أني قد وجدت صديقاً..

لم تدم الفرحة طويلاً .. فلقد ظهروا.. أعتدلت في جلستي ونظرت إلى السماء..
أتوا في نظام شديد وكأنهم كتيبة قوات خاصة في الجيش..
يحملون في أيديهم ما سمعنا طول حياتنا عنه.. كثرت فيه الأقوايل والأساطير.. لطالما أرتعدت كلما سمعت عنه..

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


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

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

ذلك لم يكن شيء مقارنة لما رأيته فيما بعد..
فتحت كتاب الأسئلة.. فلم أجد شيئاً.. ألف صفحة وصفحة بيضاء.. لم تتوقف أصابعي عن الحركة.. أفر يساراً لا شيء..  يمينا .. لا شيء..
لم أقص أظافري منذ شهر .. جرحت نفسي أكثر من مرة .. سال الدم من يداي حتى أغرق الكتاب .. وقتها علمت أني منحوس .. الكل من حولي يملاء كراسة الاجابة وحتى الآن لم أجد حتى السؤال لأقراءه.

بدأت تتسارع أصوات الكمان في جنون.. معلنة عن نهاية الوقت.. وأنا كما بدأت لم أكتب شيء قط.. وقد أغرق دمي كتابي الأسئلة والاجابة .. كل ما كان يدور برأسي هو ؛ "ما هو السؤال ؟"


ثم بدأت تخفت شيئاً فشيئاً.. حتى انعدمت تماما.. بدأوا جمع كتب الاجابة.. وبدأ الناس بالنهوض من مجلسهم والتجمع في دوائر.. يتحدثون عن ما دار في الامتحان..

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

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

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

يا ليتني مارست التجارة .. قضيت حياتي أستعد لأمتحان ثم رسبت بينما نجح الكل ..
ياليتني شربت الجن ..

ShakeToCompress for Nokia Maemo N900 - Huffman

  • 0


ShakeToCompress is a Mobile App for Nokia Maemo. which enables you to compress a directory in your mobile phone only by shaking your mobile several times.

Instructions:-
To Compress

  • To Compress
    1. Put your mobile in an upward Vertical Position.
    2. Choose a Directory.
    3. Shake your mobile with an angle several times like shaking a bottle.
-----------------------------------------------------------------------------------------------------------

to Decompress
  • To Decompress
    1. Flip Your Mobile making it face downwards.
    2. Choose a Compressed Direcotry
    3. Shake your mobile upside down, like you are trying to make a bottle empty
Idea:
  •  The idea is relly simple, There is a Thread Running in the background that listens to the frequency of the change in the accelerometer values. and if the rate of the change is up to a certain threshold the compression thread fires up. =) The Idea is Inspired by the Bar Guyz who shake the drinkes bottles in an artitistic way :D :D I don't go to bars btw :D i just see them in movies :D
                    Hope you like it :)

Screen Shots:-






Compatability:-
  • This version Only works on Maemo Nokia N900
  • I will provide an Andriod Version soon but this was only because i wanted to implement it in C++ and explore Maemo :)
Windows 7 Gadget:-

  • I also made a Windows Gadget that compress directories By dragging them into the dropable area. but this was just for the delivery of the assignment. the thing that I'm proud of doing is this Mobile App :)




Fabrications

  • 0
The materialistic nature of human beings’ minds lead them to seek materialistic evidences for their ideological believes, controversially their religious views would need not any fabrication of present metaphysical or physical existence.

But it seemed to be the common trend among religious leaders through history, to interpret the minds of their materialistic oriented followers with those fabrications or truths. However it would not add any value for any dogmatic reasonable person.

Belief is the blood of the soul, it’s what keeps their spirit alive, run the adrenaline through their veins and rule their actions and daily life activities. Without it they are hopeless and valueless parasites. That’s why those interpretations were necessary to hold hope for those poor trips with defected intellectual abilities to reason and find truth to keep them under their slavery and keep their performance up by those mythologies.


It’s the same reason we hear about flying ghosts, crying walls, tearing pictures, and most recently lit up names on the map.

It’s pathetic to build faith on myths of this kind, is it what any of their faith offer?

لا وربي

It’s the same argument raised upon the followers of Mosses when they requested to incarnate their God in a materialistic sculpture. And the same argument from sick minds is raised till now but in modern themes.


The only faith I would follow is what gives me answers, methodologies of understanding life and lemmas to enlighten my path.

  
That’s why I’ve chosen peaceful submission or in Arabic “Islam”.
Islam has liberated my mind :)


I'll raise him free. Help me !

  • 8








Yesterday, I was on my bed resting from 3 long weeks of hard work and absence of rest. A thought came to my mind about how much time I wasted in my life to find the things I love and work on improving those skills, I thought also about how much obstacles I faced through finding it, not materialistic obstacles but mental ones.
 As I looked around my thoughts were blocked by so many constrains that came from non-responsible people having no trusteeship at all. Also if they have any; they missed lots of skills in doing what they were doing.



Although all of that , I cannot blame them but instead am thankful and grateful for all the obstacles they have put through my life, those obstacles that sharpened many skills of mine that I wouldn’t have able to sharpen them anywhere else in this age.

For example, in the preparatory stages I didn’t go any training camp, scholarship or even a session without a long hard days of discussion with my dad, I cried for days to attend one session, as he was not convinced that those organizations will give me skills but instead they will control my mind and make me an infidel !

Those tears and long days of thinking made me arrive to the best ways in dealing with hard people and convincing them with things they were definitely offending it . In many times I lost my control but by training I learned to be a good listener and listen to a completely non-sense speech , just for the sake of making my opponent listen to what I have at the end.

About the infidelity thing, that fear he was putting in me was my one and only courage to explore dozens of ideologies and religions, it made me aware of many of the points of weakness in the most common ideological systems in the world, it taught me that it’s possible to do a mistake, and it’s also okay, as long as one admit his mistakes, it taught me also that it’s good to do a mistake, Because mistakes earlier are cheaper. it constructed a shield around my mind that protects it from following a thought or an idea that would lead me to either a waste of time, or a drift away from my own purposes of life, or against the rules of morals and ethics that I apply.

However, what I arrived after long time of thinking; is that if one day I was gifted with a child, I would raise him free, Free with every meaning of freedom, I would teach him how to choose , I would teach him that everything is possible, I would keep his mind liberated from any constrain. And of course I will not apply for him in any school. And I mean it, any school at all!

I will keep that young artist inside of him, and I will teach him how to be friends with him and get to know him better.
But wait a minute. Is this true? I mean would he gain the same experience if he was put in difficult situations where he arrives that he needs to seek his own way with himself?
Is it better to keep him away from schools and educate the best way education could be delivered? Or it is to put him in school and make him arrive himself that what he is doing is a waste of time.

In a theoretical form questionnaire, we could ask:-
 “Which is better? To put one inside a flawed environment and make him arrives to the flaws of this system? Or to create this system for him and make him involved in it directly?”
This question has always puzzled my mind for years. I look forward to know your opinions!

Thank you for your time.

XSQL & XDBMS Server - Project

  • 0





XDMBS is a Complete Relational Database Management System  With  Internet Remote Control & Multi-user Logging Support, Built By 6 Undergraduate Students From Alexandria University ; I was one of them, we Build it all from scratch.
The DBMS is a separate server from the XSQL Query Processor and the JDBC Driver. you can purchase it alone and run it on any SQL Query Processor. or Purchase our magical SQL QP :)

The Project is Copyrighted and to launch in july 2011
to purchase contact xsqlxdbms@gmail.com

By:-
Abdelrahman Fathy
Muhammad. Adel Belbesy
Muhammad. Elsayed
Muhammad. Ramadan Adly
Muhammad. Saka
Sherif Gamal

Under Supervision of:-
Dr. Mustafa Yousry.
Eng. Hisham Zakaria
Eng. Emad Elwany

Investigation of Truth - 00

  • 4








Now I know Truth ...
No I don't .. I'm a Lair .. or am I Not .. !?

Contents:-
1-   Agnostic  Background.
2-   The non-intentioned Media.
3-    Islam Elegance.




However as an Agnostic; I cannot assert a state of certain assured knowledge. Although sometimes I do, but at least I consider it a short of sight. For those who are not familiar with Agnosticism, specifically i mean strong background about it kindly skip the last two sentences and continue reading :). But of course it's from short insight also to deny reason, facts & results. So a moderate state seems reasonable enough, as it's clear for an amateur that human mind abilities are limited or more appropriately not-Error free.


That's why my Agnosticism view doesn't contradicts with my Islamic Belief. the elegance and beauty of Islam lie upon the ultimately reasonable facts it does define for the world among us.


And that's what I'm planning to talk about in the next period in my blog. I will try to investigate some of the issues that was held against Islam and describe how those issues turned out among near history to be the best non-intentioned Media For this Mesmerizing Ideology. But of course for an Environment that defines logic, Science & Human Morals to be the criteria that control their minds and help them judge & reason what they are exposed to in their real life.

Our investigation is obligatory- I believe, we are asked to wonder, inquire, and register in a non-ending quest for truth. It will be also with the same level of elegance that Islam came with. That elegance that freed people minds for centuries from being under the slavery of their whims and minds. The same elegance that inspired Muslim scholars, Engineers, Doctors with ultimate levels of innovation in the early centuries. And of course the same elegance that is mesmerizing lots of minds today, and hopefully will lead to the renaissance of this community again !

I hope it wasn't an long boring intro, but I wanted to win some time by starting with a topic. but I have to stop now and continue later :)

I Wish my words were not of Mistakes, else I Wish Allah's Forgiveness for any.



Logos Vote

  • 24
Kindly Vote for the Logos By Their ID

Example : 55 ( of course i know that doesn't exist but i can't vote for anyone :D)


ID :  1 - By Eng Mohammad Al Rayany ;



ID : 2 - By Eng Osama Mohamad Ali ;




ID : 3 - By Eng Sara Mansour ;




ID : 4 - By Eng Abelrahman Asal ;


ID : 5 -  By Eng Moamen Shaban ;



ID : 6 - By Eng Mai Diab ;




ID : 7 - By Eng Sondos :


ID : 8 - By Eng Mai Diab ;      





ID : 9 - By Eng Mai Diab ;





ID : 10 - By Eng Moamen Shaaban



ID : 11 - By Eng Mai Diab




ID : 12 By Eng Mai Diab





Power Set - Generate All Sets from a Certain Set

  • 9


"a Power Set is the set of all sets of a certain set S"


what the hell does this means :D :D

let's see an example ,

for the set of numbers S = { 0, 1 , 2 , 3 , 4 , 5 }

isn't s_01 = { 0, 1, 2, 3 } is a subset of set S ?
and s_02 = { 2, 4, 5 } is a subset of set S ?
and s_03 = { 0 } is a subset of set S ?

we also define two special subsets those are:-

set s_00 = { } which is a null set or empty set.
and s_S = { 0, 1 , 2, 3, 4, 5 } that is the full set itself to be subsets of the original set.

the power set is defined to be the set of all those subsets.
that can be defined for the set S = { 7, 8, 9 }

P( S ) = { {}, {7}, {8}, {9}, {7,8}, {8,9}, {7,9}, {7, 8, 9} }

when it comes to intuition, we can generate all possible sets for a small number of S like 3 elements or possibly four.
but when it comes to large numbers (relatively) like 16 elements the no of subsets is 2^16 = 65536.
in this case : of course it will be impossible to generate all sets by direct intuition, instead we need a method to map this method, or more particularly an algorithm to compute for us all possible subsets.

let's see the following approach ;
we would think of the Set S = { 1 , 2 , 3 , 4 } as an example

may be some samples subsets will be the following

set 1 :
- we will take the 1
- we will not take the 2
- we will take the 3
- we will take the 4

doesn't this interpretation yields the set { 1, 3, 4 } ?

set 2 :
- we will not take the 1
- we will take the 2
- we will not take the 3
- we will not take the 4

and this yields the set { 2 }.

another way to represent this interpretation by the following string { 0, 1, 0, 0 }
- where a 0 represents that we will not take the indexed element
- and a 1 represent that we will take it in our consideration.

well here comes more clarification for the 2^n line we didn't get at the beginning.
if we are going to represent every set as a string where every single item is marked as taken or not.
so the no of ways we can represent this string is (2)*(2) *.....(2)*(2) n times = 2^n.
so all we have to now is to represent all numbers from 0 to 2^n -1 in binary representation
and then mask this representation into our set to decide weather to take a specific element or not :).

so we begin with a for loop that loops from 0 to 2^n -1






and through the loop we mask the current number in binary representation and check weather each element in this index exists or not.

a sample code is available here with some modifications.

and this is the puzzle of today ;) ;) whoever can break this encrypted code will have a prize ;) ;) and that itself is a surprise :)
and i am talking seriously :)



this algorithm runs in O( n *(2 ^ n) ) and that's all i can get so far .
any body has a faster algorithm ??
however, i beleive the ( 2 ^ n ) factor cannot be reduced because it is the no of subsets so it can be reduced than that to generate all possible case.
so anybody can generate something less than the ( n ) factor ?

SRM: 477 - DIV: II - 500 Problem - Islands

  • 1
Trivial problem with normal iteration, you can view the problem here
the main idea is to count the no of beaches that each cell has - if it is a land piece-.

We define a beach as a land that has a side neighbouring a water cell.
we iterate through all cells, if the current cell is a land peice we call the function countBeaches(i , j)
that counts the no of peace surrounding the indexed cell [ i ] [ j ].





we can define the function countBeaches(i, j) with two ways ;
the first one is two construct nested if statements that checks for every condition that exist for the 8 possible directions ( North, North West, North East, South , South East, South West)

regarding of course the difference between the odd lines and the even lines.
see the following picture to notice the difference




but another way to do this is to construct an array with the delta positions and add them to the original indexes to make the affect of translation.
that of course saves lots of coding time.


SRM: 477 - DIV: II - 250 Problem - Vacation Time


The problem main idea was to choose an interval to ensure the minimum re-scheduled days through the whole No. of days given
You can view the whole problem here

The first approach to this problem is brute force algorithm, we may think of it this way;
may be we should try all the possible intervals that start at day no [ i ] and end at day [ j ]
and count the no of re-scheduled days between those days, and keep track of the minimum no of scheduled days.

This algorithm will satisfy the time limit but is still as obvious in O ( n ^ 2 ).

another Dynamic Solution will solve problem in only O( n ).

the hint is we may solve this problem as follows ;

1st - we will have an Array that holds at Position [ i ] ; the sum of all scheduled days from day [1] to day [ i ]. that is by simply looping through the array and accumlating the sum of the previous day to this day we are in.

2nd - we loop again through the same array checking the minimum scheduled days in between day[ i ] and day [ i + K ].

Simply we transformed the too nested loops into two separate loops that each run in O ( n ) (^.^)
No one believe what Dynamic Programming can do to your life :)

Here is the sample code for a more clarification.