The JVM Crowd

March 1st, 2010 by Ahmed S. Farghal 4 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.

Here is a list of the most interesting “modern” programming languages that run over the JVM and that leverage the new features of the modern programming languages without sacrificing the performance you used to like when writing in Java (this is not true in all the languages, but true for most).

Groovy

Groovy is agile and dynamic object-oriented programming language, getting very good support lately and has somehow poor performance in comparison to Java and Scala but hopes that Groovy++ will have a much better performance. Groovy is inspired by Ruby, Python, and Smalltalk.

Scala

Scala is simply a beautiful functional general-purpose programming language with exceptional performance and is considered to be the most interesting “emerging language” for the JVM, excellent for concurrent applications due to the functional nature. It’s the language used for the modern backend of Twitter which handles around 600 tweets per second (that’s more than 26 Million tweets per day). Scala is a statically typed programming language.

Clojure

Another functional programming language that is completely dynamic, supports type inference and is considered a dialect of lisp.

Jython

Python for the JVM, dynamic compilation to bytecodes and works pretty well with libraries already written in Java.

Jython is written completely in Java and is truly multithreaded (no GIL, Global Interpreter Lock) and uses the generational JVM garbage collection, not the simple reference counting garbage collection of CPython.

JRuby

Like Jython, it’s Ruby written in Java and written for the JVM, supports true threading and has attracted wide support from the community.

I’m mostly interested in scala and groovy (Grails to be specific) and I believe I’ll share my experience with you in my learning way later.

I hope you enjoyed this.

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 8 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 1 comment »

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

Geniuses are made, not born

November 1st, 2009 by Ahmed S. Farghal 3 comments »

I couldn’t record the presentation, so I will upload only the slides.

Have Fun

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

Dreaming Loud

October 29th, 2009 by Ahmed S. Farghal 11 comments »

Lately I discovered how fragile I am, I tend to be depressed more than being happy. I tend to be angry more than being patient and quiet. My tentative to feeling upset is because of the cumulative effect of living in Egypt with all the corruption and abusive education system.

So, I started to dream and to think about what I really wish to happen to me and I came to the following. Remember that I’m just dreaming loud.

“Cairo has been awarded for it’s excellent public transportation to be the best public transportation in the world”

“Three Universities in Egypt took the top three positions in the best 500 university around the globe”

“Egypt become the safest country in the world after having the crime rate around 0.0″

“Egypt is the IT valley of the Middle East (including Israil)

“I’m traveling around the world exploring different cultures and enjoying the nature”

“To see people smiling again in the streets and to get help when I need help from the closest person in the street and to provide help to everybody without being scared to be robbed or killed!”

“To build a successful company that compete Google in the workplace that attract the best computer scientists in the whole world”

“To be innovative so I can be a landmark in the history of computer science”

and lots more, I think those are overwhelming enough for me for now.

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