Macbook Pro External Display

March 14th, 2010 by Ahmed S. Farghal 4 comments »

I own a macbook for 2 years now and only a few months ago I needed to connect my Macbook to an external display “only”, meaning that I want to close the laptop lid and work on a huge external display with an external keyboard and mouse to save the screen and to enjoy everything in a one big screen (I love dual-head too but I hate it when one screen is much bigger that the other).

So, for quite sometime I thought that this is not possible, but it turned out to be possible and pretty easy to do.

Now to the important part ;)

You MUST connect all of the following things first;

  • MagSafe.
  • External Display
  • USB Mouse and USB Keyboard

then close the lid, you will get the system sleeping as you usually do, then click on the mouse and the system will fire up again and shining on the external display :)

It’s a trivial trick but it took me quite sometime to discover and I tested it only on Macbook pro and snow leopard, however, it should still work on any other macbook I suppose.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

مش انا طلعت جاسوس؟

March 13th, 2010 by Ahmed S. Farghal 8 comments »

موقف عجيب ، واحد بعاتلي ميل بقوللي اني جاسوس و قعد يشتم فيا – خليني اوريكوا الميل الاول

سبتني وسبيت الفلسطينيين و الت انهم جواسيس يا ريت تطلع على مسلسل حرب الجواسيس على قناة دبي
‎انا ما ليش بالسياسه بس انت بتدعي عندك وثائق من زمن ابوك لما كان في السياسه وخطيره للغايه وعايز تبعها لاسرائيليين ولا انا فهمت غلط
‎كمان مره بقول لك مصر حلوه بدون اعدئها الي بتاجرو فيها وفي امنها امثالك بس انا مش حبعها لانها عربيه واهلها اهلي وعاشرتهم بس مش زيك اندال
‎هذا كاتب مصري حقير زيك بص بقول اه عن مصر وحكومة مصر بالضبط زيك حاقد  زي ما انت حاقد علشنها مش معبره ابوك وتاريخ ابوك انت بتعرف واحد زيك بوسخ عمل ابوه وعلى فكره انا السفاره الولي اقول للحكومه المصريه انت بتقول عنهم اه وعايز تبيع اه و الحكومه تربيك بس ان حتركك توقع وحدك لانك كتير كلام وحتوقع يا جاسوس يا بتاع  الوثائق الي الله اعلم اه
‎اليك مقال بعجب امثالك الي بدورو وراء الفلوس و معندهمش وطنيه>
‎إبراهيم عيسى يكتب:
‎تلك الحقيقة التي تريد ألا تعرفها أبدًا
‎هل مصر فعلاً صاحبة فضل علي البلاد العربية؟
‎هذا السؤال قد يبدو ساذجا ومستفزا، » Read more: مش انا طلعت جاسوس؟
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

The JVM Crowd

March 1st, 2010 by Ahmed S. Farghal 5 comments »

The JVM is an industry-proven environment for enterprise applications development and it has been receiving lots of updates especially after moving to be open source. The only problem was the Java programming language in my opinion. Java is an excellent language for its simplicity and consistency (people may argue) but it’s not a “modern” language and lacks most of the features that the current modern crowd is looking for.

For those who tie the JVM (Java Virtual Machine) with the (Java Programming Language), I’m sorry to say, but you are absolutely wrong. The Java programming language is the first language that supported the byte-code generated for the JVM and it’s the most famous one so far but the virtual machine is an environment (a very stable one actually) and many programming languages (literally; many) is now supported on top of the JVM, you can write Jython (Python implementation in Java) and your code will run seamlessly over the JVM with your old Java code/classes. » Read more: The JVM Crowd

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

Design Patterns Last Call

February 21st, 2010 by Ahmed S. Farghal 2 comments »

The course will start next Friday, If you are interested in the course you must register before next Wednesday 24th Feb. No registrations will be accepted after that date.

If you are interested in the first professional software design course, send email to course+design@ahmedsoliman.com

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

Design Patterns Course Details

February 11th, 2010 by Ahmed S. Farghal 9 comments »

As I’ve announced earlier, I’m going to launch a Software Design Patterns course isA.

I’ve been receiving a huge number of emails regarding that course and I had to wait till I find the suitable timing to launch the course, and today I’m announcing that the course will run on 5 Fridays , 6 Hours per session with 1 hour break. The course contains more than 12 of the most important design patterns for those interested in enterprise software design.

The course will take place in Mansoura (Egypt) and no intentions to launch this course elsewhere at the moment.

The course samples will be written in Java/Python, and the outlines of the course are:

  • Introduction to Software Design
  • Observer Pattern
  • Decorator Pattern
  • Factory Patterns
  • Adapter Pattern
  • Singleton Pattern
  • Command Pattern
  • Facade Pattern
  • Template Method Pattern
  • Iterator and Composite Patterns
  • Proxy Pattern
  • State Pattern
  • Compound Patterns

It’s  comprehensive, interesting and professional contents that you don’t want to miss if you aim to be a real software engineer, not to mention the presents and giveaways in the end of the course.

If you are truly interested and serious about joining the course, please contact me on my mail course+design@ahmedsoliman.com to apply for the course, and I’ll mail you back with further details.

All the samples are done by me on a data projector and you will have exercises to run at home and I’ll be reviewing your code personally. The course is not hands-on, this means that there are no in-lab practice but there will be a very good space between sessions to review and do the exercises at home.

Limited Seats, first confirmed first served.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

انا بشجع مصر

February 4th, 2010 by Ahmed S. Farghal 5 comments »

كلنا بنشجع مصر

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

انا بشجع مصر انها تبقى ام الدنيا تاني و انها تبقى اجمل بلاد العالم و اهلها اكثرهم حضارة و تحضر و علم و ثقافة ، بشجع مصر انها تبقي منارة المسلمين و ترجع بلد الامن و الامان (اقصد امن المواطن طبعاً مش حاجة تانيه)

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

و احلي سلام للمعلم و جدو و احمد حسن و متعب و جمعة و كل الرجالة اللي امتعونا بالعب النظيف و كانوا فعلاً مثال للمصريين المخلصين ;-)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

Happy 2010

December 31st, 2009 by Ahmed S. Farghal 2 comments »

2010 has a special meaning to me, it reminds me with “Zero” and if you know the story you won’t be surprised.

Anyhow, I believe that we still reside at the same place “Zero” and I wish to see some progress in the next couple of year that lift Egypt from the big zero to even a smaller one.

On the personal side, last year was quite a busy year for me and I’ve made quite some achievements in my technical career. I wish you and me and all Muslims and Christian  Friends a cheerful year, full of wealth, health, joy, happiness, and success to all the world except ‘Zionists’.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

مصر و الجزائر

November 22nd, 2009 by Ahmed S. Farghal 16 comments »

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

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

الموضوع عايز اننا نرجع بالزمن شويه قبل مباراه ١٤ نوفمبر ، المشجعين المصريين عارفين ان لاعبين مصر اتسمموا في الجزائر و ناس بتقول ان مقصود و لازم نوريهم لما ييجوا مصر و هما فعلاً جم مصر و اللي حصل ان زجاج الاتوبيس بتاعهم اتكسر و فيه كام لاعيب اتعورو و الاعلام بتاعنا زائد عدد كبير جداً جداً من الناس مقتنعين ادي تمثيليه و ان مفيش اي حاجه من دي حصلت و بعد المباراه ماسمعناش عن اي حاجة حصلت لكن في المقابل هناك في الجزائر الموضوع ماكانش كده خالص ، تحديداً صحيفه الشروق الجزائرية كانت مولعاها و الاتوبيس اللي اتكسر اصبح هجوم مصري على اللاعبين و الجهاز الفني و حتى الطبيب الصاحب للفريق و بعد المباراة بيقولوا حصلت مجازر و الناس اتعاملت معامله مهينه  و اتضربوا و في ناس ماتت من الضرب و جايبين صورهم كمان و فيديوهات بالهبل و كمان الجريدة قعدت تتكلم بالهبل عن علاقة مصر بأسرائيل و عشان كدة هما اصبحوا حاسين اننا اليهود و استمرت الجريده في الهجوم الشرس و المبتذل بصراحة و النتيجة كانت ان الجريدة حققت رقم قياسي في مبيعاتها “واحد و نص مليون نسخة” و ده يفسر واحد من اسباب هجوم الجريدة بالطريقة دي و ماجبتش سيرة اي نفي حصل للضحايا اللي حصل على لسان السفراء في مصر و الجزائر.

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

» Read more: مصر و الجزائر

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

نحن نقتل انفسنا

November 5th, 2009 by Ahmed S. Farghal 13 comments »

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

يا جماعه هو احنا بنقتل نفسنا و لا بنعمل ايه؟ هو الناس حاسه بالدخان و مطنشين؟ هو معقول اكون انا الوحيد اللي حاتخنق؟

طب هل لو انا طنشت مش هاعيا و لا هايجلي ربو و لا حتى سرطان و اعوذ بالله منهم كلهم؟

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

انا بستغرب قوي لما بقرأ الاخبار بتاعت ان الدلتا هاتغرق على 2050 و انه لازم نتصرف و في نفس الوقت مش شايف و لا حاسس من الحكومة بحاله طوارئ و لا خطط لأنقاذ اولادنا و لا احنا دافنين راسنا في الرمل؟

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

نعمل ايه؟

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter

mercurial-server on Fedora/Centos

November 2nd, 2009 by Ahmed S. Farghal 3 comments »

If you want to setup mercurial-server on fedora or centos/rhel server you are going to see lots of failure messages during installation and the installation will definitely fail.

Mercurial-server was written to run smoothly on debian-based systems, so I patched it to run on fedora/centos and I would like to share the patch with you.

Using the patch is straight-forward, simply download the tip or the latest version of mercurial-server and put the patch file into the extracted directory.

patch < mercurial-server-centos.patch

the patch is a few lines, so it’s naive for professionals.

Get the patch from here

Have Fun.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter