Archive for the ‘Personal’ tag
biggest prime palindrome under 1000.
I had that problem in CodeEval:
Write a program to determine the biggest prime palindrome under 1000.
And my solution passed i don’t know if they have other levels than pass but it passed anyway..
Here you are:
oddNumbers = [2] + range(3, 1000, 2) primeNumbers = [] ppNumbers =[] for item in oddNumbers: isPrime = True for otherItem in oddNumbers: if item % otherItem == 0 and item != otherItem: isPrime = False if isPrime: primeNumbers.append(item) for prime in primeNumbers: if prime > 100 and str(prime)[0] == str(prime)[2]: ppNumbers.append(prime) print ppNumbers[-1]
I first created script to get prime numbers then i search to know what exactly a palindrome number is and i tweaked the script to solve it:)
The personal part of the post:
I -lately- figured out that family support is not only important .. it’s incomparable to any other support..
سلام
RAM | Randomly Accessable Man
Simple tasks like sleeping,eating, drinking, transporting, having shower and watching TV are very normal events that in a computer model they should be abstracted and predefined.
Busying your mind with these repetitive yet annoying tasks is a suicide mission and at the end of the day you will find yourself killing your brain.
If you don’t LOVE your current job, you’ve to change it ..NOW!
Aaaand i’ve a frank statement to add:
In spite of how plain and simple it’s very hard to do ..
Aaand yes, i have very few shots before reaching the level in which i won’t be loving my job anymore..
Entrepreneurship, I’m sure you have heard the buzz, we all did..
I went beyond hearing, I failed with my friends back in 2006 making our very basic start-up bright but we turned into very fame Individuals, that experiment and other ones are constantly attacking the main thread of my life..
So to summarize..
My career status is complicated..
If you wonder what about my academic study ..
It’s exam time and i believe I am doing well so far i just want to pay slight more attentions and i believe that I’m on my way..
The emotional status thing..
I believe i did recovered from the very painful period i was passing the past 6 months or so and I’m now looking forward to have a long term, stable, clear, serious relation and i believe that I’m -now- mature enough to do so ..
Aand yes,I’m planning for the silver ring as a mid-term plan..
I still have open-issues like the military service and its impact but i believe that I’ll reach an approximate model very soon..
For the record I got all my friends either on the marriage or the engagement level except for kamasheto who is homeless in Germany, so now is the time.
My Volunteer life,
Nozom had it’s first event and it was great and i got a mug and a t-shirt.
I wrote an article that’s related to security and CDN in nozomgeeks.com مهاويس called “الحماية الخطرة” yeah the name is bit weird.
Now, while writing this article, CAT is having TwentyCAT such an innovative event
If you noticed I wrote that single log in English and that’s only because it was more convenient to do now as I’m in #@$^$%$@ transportation.
And I also will conplete the “الثورة المجيدة” seriese as soon as I’ve time to write in Arabic.
١٤٣٢ حلم و حلم
بعد يوم طويل إليكم أهم الهلاوس اللي جت في دماغي ..
أيوه أنا الوقتي معنديش أكتر من الأحلام وقدراتي كل يوم بتزيد آه بس مش بتزيد زي ما أحلامي بتزيد ..
هل أنا فعلا البطل الفظيع اللي أنا شايفه في خيالي .. ولا أنا لا أتعدى شخص أحلامه كتير ..
طيب هوا أنا جايب تصور البطل الفظيع ده منين يعني ..
داأنا حتى هتم ٢٣ سنة ولا إنجاز مميز ولا عامل إختراع ولا أي حاجة ..
شكلي كده هطلع واخد في نفسي مقلب ..
طيب وماله ما أطلع واخد في نفسي مقلب .. ماهو من الآخر كده .. لو كنت أقل من التوقعات هعرف ساعتها ..
)
وأنا الوقتي مفيش في إيدي إلا إني أتوكل على الله .. ومن توكل على الله فهو حسبه ..
وكل اللي محتاجه بس إني أحدد إيه المعارك اللي تستاهل ..
يعني مثلا في ١٤٣٢ الأهم إني أأكد حفظ الأجزاء اللي حفظتها.
وإني أتنيل أكمل موضوع الجيم .. هوا مش سد خانة-فاهمني أنت طبعا .. – متعملش نفسك أهبل ..
وموضوع British Council .
والإمتحانات.
والRelease الجديدة.
دول هم الأهم على الإطلاق .
والأهم أولا ..
ربنا يستر ..
٣سنين ..
٣ سنين عدت .. يا ترى إتنسيت ..!!
طيب لو إتنسيت .. هوا ممكن أنا أنسى .. ؟؟
محاضرتي القادمة
السلام عليكم و رحمة الله و بركاته
بعد غيبة طويلة أنا و الكات سكوب راجعين مع بعضأيون.. دي النسخة ال١١ من المؤتمر أيام ١٢،١٣،١٥، ١٦ أربعاء خميس سبت و الأحد القادمين..
و أنا سعيد جدا إني هعمل محاضرة فيه يوم الخميس إن شاء الله …. و نفسي جدا ينجح لأكتر من سبب .. من أهمهم..
١-نشر المعرفة و بالذاتالمرة دي وإحنا إتكلمنا مع شباب من إعدادي و أولي هندسة و بالتالي الثواب إن شاء الله كتير..
٢-تتويج لجهود الشباب اللي إتطحنوا واللي لأول مرة ببقى بعيد عنهم في حاجة زي كده .. لكن البركة في الشباب عاملين شغل فوق الممتاز حتى الآن و على رأسهم محمد صفوت الcoordinator. بيفكرني بنفسي في شبابي شمعة تحترق من أجل الآخرين ..
٣- عشان نفسي فكرة الCAT تسود ونبقى في يوم من الأيام عندنا منظمة كده كبيرة والناس بتقلدها .. عشان حتى و إحنا مش شاغلين نبقى بناخد حسنات و فضل و فتوحات دنيا و آخرة إن شاء الله ببركة بداية العمل و الصبر عليه..
زي ما قلت.. هحاضر إن شاء الله في المؤتمر يوم الخميس -بعد بكره-١٣ مايو ٢٠١٠ الساعة ١١ صباحاً. *١
المحاضرة بعنوان Google App Engine
المكان : في قاعة أ.د رشاد البدراوي في كلية الهندسة جامعة المنصورة.
http://catreloaded.net/scope
المحاضرين الآخرين *٢:
http://scope.catreloaded.net/speakers
الجدول *٣:
http://scope.catreloaded.net/schedule
الموقع عموماً هنضيف في الأيام الجاية المحاضرات بمواعيدها بالظبط في التقويم الجوجلي للفريق ..و هنعلنه بحيث إنك لو عايز تنبيه يجيلك على البريد أو على الموبايل قبل كل محاضرة ..
كمان بنحاول نشوف حل لبث المؤتمر كله حي و مباشر من موقع الحدث على ustream.tv m لذلك ترقب الآحداث..
خد نصيحتي كمان أجيبلك من الآخر.. تابع بقية الأخبار على تويتر :
وعلى مجموعتنا على الFacebook
http://www.facebook.com/#!/group.php?gid=11705900412
*زي اليوم ده من ٣ سنين إديت محاضرة هي كانت أول محاضرة أديها ل CSED والحضور اللي كان فيها كان مميز جدا بالنسبة لي و أنا فاكر كويس حصل بعديها مشاكل مع محمد حمدي إنه كان مقتنع إن الإجتماع مكنش مُجدي أو حاجة زي كده .. مش فاكر أوي أنا فكاكر إن كان في مشاكل ..
على أي حال عمري ما هنسى اليوم ده و قد إيه انا كنت سعيد فيه .. والوقتي بقى بعد ٣ سنين إكتشفت إن يمكن الفرحة العرمة اللي كنت فيها هي السبب إني كنت ملبخ ؟؟!! ممكن والله
*٢ أحمد سليمان و أحمد عبدالله و أحمد على بكساوي و لفيف من أقوى رجال الفريق القدامي هيعملو برده محاضرات جنباً إلى جنب مع شباب الجيل الصاعد شباب حاسبات اللي لعبوا دور جامد جدا السنين اللي فاتت ده طبعا إلى جانب ولأول مرة ناس مش من الفريق دائمين زي أحمد كاوي و أحمد علي التاني و زي محمد جمال دول بقى ناس جديدة جامدة و مش تبع الرعاة و اللي هيا حاجة جديدة جدا جدا من نوعها .. و لأول مرة في اللينكس أحمد بيه بكر صديق الكفاح .. يعني كلام جديد حديد جديد حديد ..
*٣ المؤتمر ٤ أيام دسمة جدا جدا تقنياً لو أنت من بره المنصورة و بتفكر تيجي فعلا فرصة كويسة .. و مش هتندم إن شاء الله ..
Survival..
السلام عليكم و رحمة الله وبركاته
Last 2 weeks
I was working last 2 weeks -between Cairo and Mansoura- for tadabborIT, for tadabbor website next release, also I’ve attended the JDC2010 conference and through that week I should have read about 4 reading tasks and should have solved tasks by Design patterns course by my dear mentor Ahmed Soliman, while planning to join GSoC.
Not to mention the courses and websites I’m delaying and canceling ..
And here I’m defining a new busyness level ..
One note before i go: If i survived that stage, I think I’ll be much more stronger than what I used to be, I also believe that It should be a milestone.
Anyway, I believe I can try