Writings Photos Code Contact Resume
This is my website. It's mainly dedicated to GNU/Linux, my writings, code, thoughts, news, ... You won't find any windows related materials here, So don't panic!

Have you ever forgotten to have breakfast ?

Submitted by msameer on Wed, 13/08/2008 - 7:21pm

This is an example of a clueless and non-informative blog entry. Please feel free to skip it.

Years ago when we were young at school, teachers used to ask as:
* Did you forget to eat ?
* Did you forget to drink ?
* Did you forget your sandwiches ?

Whenever one of us forgets to do his/her homework, bring a book or a notebook, ... etc.

I never even thought this can happen one day. Never even thought about the issue until...

I arrived at the office today. Had my morning coffee and cigarette, checked my mailbox, did some work and when it was lunch time, I thought about not eating and eat at 6 or 7 pm as usual.

Just to realize that hey ? I completely forgot to have what I call breakfast (A banana and some orange juice actually)!

Problem is when you drag yourself to the Nokia restaurant to eat while not feeling hungry just because you have a Finnish lesson at 4 and you don't want to feel hungry in the middle of the lesson or your mind to simply, crash!


Booked my flight to Cairo...

Submitted by msameer on Tue, 01/07/2008 - 9:01pm

03.10.08:
Helsinki (08:00) to Vienna (09:40)
Vienna (10:35) to Cairo (14:10)

02.11.08:
Cairo (10:50) to Vienna (13:40)
Vienna (19:40) to Helsinki (23:20)

Yes, 6 hours of transit...

And blame Ezabi for convincing me to fly EgyptAir from Cairo to Vienna!


تعقيب علي بنت مصرية حول الثانوية العامة

Submitted by msameer on Thu, 26/06/2008 - 12:38pm

قرات عند بنت مصرية.

احب ان ادلي بدلوي في الموضوع لاني قد مررت بهذه المرحلة
بالاشارة لهذه التجربة: البيه ساقط ثانوية عامة كما يدعي. بالمفهوم الرياضي هو لم يرسب. و انما رسب بالمفهوم المجتمعي و الدليل انه دخل كليه فعلا.

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

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

خلصنا من اول نقطه ؟ نتكلم باه في التانيه وهي الاصعب:
الثانويه العامه و الامتحانات.

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

طب انا كنت هاسقط ثانويه عامه بسبب علم النفس و الاجتماع: لو كنت وقفت علي شعر راسي ماكنتش عديت.
عديت احياء و كيمياء و رياضه 2 و فيزياء و كنت هاسقط علم نفس!!!

ماده ادبي يا جماعه ماتدخلش عندي... مش نافعه!!

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

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

توفيق ربنا ؟ اكيد الحمد لله.
مين علمك ؟ علمت نفسي.
تعبت ؟ اه بس الحمد لله

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

طب انا مش عارف انا ايه اللي خلاني اكتب الكلام الفارغ اللي فوق ده ولا فاهم الناس بتقراه ليه و مش عارف انهيه ازاي!!


My first experience with the Finnish police officers

Submitted by msameer on Wed, 25/06/2008 - 8:42am

Sitting down ignoring anything but the phone call and by accident raised my head

Me (After noticing the sign from the guy): Give me a second, there're police officers here
Phone: OK
Police officer: Do you speak English ?
Me (a bit frightened to the police guy): Yes, but can I end this call please ?
Police: Yes but quickly
Me: I have to go now, seems there's something important. Will call you later
Police (After ending the call): Do you have an ID ?
Me: Yes (And showed him my Finnish ID)
Police: Where do you live ?
Me: In that street, I can show you.
Police: We don't go there, just tell us
Me: In this street, number 12. The 2nd door.
Police: People have been complaining that you are speaking in a loud voice at night when it's late.
...


Just can't

Submitted by msameer on Tue, 17/06/2008 - 12:48pm

I'm puzzled. I want to speak but I can't... Just can't.


Cruise. June 2008

Submitted by msameer on Sun, 15/06/2008 - 3:55pm

Using mutt as a mailbox converter

Submitted by msameer on Mon, 19/05/2008 - 1:31pm

I'm planning to move all my mailboxes to an IMAP server running on foolab.org, use offlineIMAP to sync between vader "my laptop" and naboo "foolab.org". It will also allow me to access my email from multiple computers at the same time.

I'm using mutt as my primary email client.

The big problem is offlineIMAP needs a local Maildir while I'm using mbox

I can upload the emails from mutt to the IMAP server but why do I have to redownlosd them again ? Beside, it's a lot of manual work.

I didn't really find a good mbox to maildir converter so I decided to use mutt.

Mutt knows how to handle such things. It's an email reader!

Thanks to the folks in #mutt for a few tips. Now here is my setup:

1) My mail is in ~/Mail
2) I don't have subdirectories
3) No white spaces in folder names.
4) You don't have a mailbox called "foo" ;-)
5) Create a directory called done. There we will place the mbox files after processing.

Now here how it goes:

1) Place this in a file, let's call it "/tmp/muttrc" and use emacs for that ;-)

macro index <F3> "<tag-pattern>~A<enter><tag-prefix><copy-message>=foo<enter>y<quit>y"
folder-hook . push <F3>

2) cd ~/Mail

3) Execute this bash snippet:

for i in `find -maxdepth 1 -type f`; do box=`basename $i`;
  echo "Processing $box" && mutt -F /tmp/muttrc  -n -m Maildir -R -f $box && mv $box done/ && mv foo  $box; done

4) Now to convert my outbox "which is an MH dir":

mutt -F /tmp/muttrc   -n -m Maildir -R -f done/outbox/

It worked fine for me. I had to interfere 2 times because I 2 had 0 sized mailboxes. Otherwise, it worked like a charm!

P.S. Don't forget to edit ~/.procmailrc and to set the default mutt mbox_type to Maildir


Katoob, the baby has a new father.

Submitted by msameer on Mon, 12/05/2008 - 7:31pm

This post has a bit of my history and emotions. It can be skipped!

The summary is: Katoob has a new maintainer.

...

Yes, a long time.

Back in 2002, Gtk 2.x was just released. Efforts were spent porting, rewriting and redesigning parts of GNOME. The aim was GNOME 2.0 and later on 2.x

Previously, we had Gtk which did not support Arabic at all.
At that time, the only usable Arabic capable GUI editor was a closed source one, Axmedit. I was also trying to learn programming and write something useful. Katoob was born at that time. The aim ? provide the Arabic user with something usable and the secret agenda was me learning Gtk and get my hands dirty with C. Not having enough skills to contribute to something as large as GNOME.

It wasn't called Katoob (Which means something like an exaggerated writer in arabic). Me and Alaa wanted to call it gDhad (G is for GNU, Gtk, GPL, ... and Dhad is the letter. Arabic is known as the language of "dhad") but a miscommunication lead to that name.

Arabeyes hosted the project in the beginning. The problem was it was released after the first version of GNOME2. I missed a contest.

The problem is that it was already used by a few of my friends. A lot of testing has been done in the beginning. I still remember feeding it various media files as well as random garbage to see what will happen.

Years later, the whole thing grew into a pile of spaghetti code. It was the time for me to start learning C++. What else can I use to learn it ?
Then 0.5 was born. A bit cleaner, C++, Gtkmm and moving it to my own place. It even survived my migration from CVS to SVN last year.

It also started to be used by more people.

As I become busier with work and as my interests have started to change, I found myself incapable of maintaining it. It's actually a motivation problem more than anything else. I'm not involved into Arabization issues (I was never involved but people claimed I was ;-)) and I wasn't getting enough testing.

I don't use it a lot anymore. Everything supports Arabic now. I don't think we need that project anymore.
I can also use Emacs to read and write Arabic

Now, Fred Morcos decided to step up and maintain it. Good luck to him. At least I found someone to take care of the baby.



multi-gnome-terminal is back to life.

Submitted by msameer on Mon, 18/02/2008 - 11:46am

OK. This is the beauty of FOSS. The project has been dead upstream for a while now. It survived until it was removed from lenny.

Now me and 2 other users decided to adapt it. port it or rewrite it in gtk2.

We are having a discussion about the whole situation.

To anyone still using multi-gnome-terminal: Please share with us the features you were actually using. These are the ones more likely to be implemented and no new features will probably be added, maybe help us coding and/or testing or participate in the discussions.


Pages