About Me

My photo
PhD Candidate at Purdue University, Computer Science.

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...