Posts Tagged ‘Solutions’

mercurial-server on Fedora/Centos

November 2nd, 2009

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.

Cloud Computing

August 17th, 2009

I’ve been busy for almost the last year in developing infrastructure services for cloud computing platform – mainly dispersed storage – and during that I’ve been working closely with cloud computing giants and have seen several cloud computing management and provisioning frameworks — that include Q-Layer framework — I can really see the change happening to the IT world because of the ‘Cloud’ and how the cloud will affect the way we think in everything, how we think in storage, how we think in application development and even how we can make business using IT.

Let me first define what cloud computing is. Cloud computing named to be the next generation of distributed systems where you use computer resources as a service and you don’t have to pay attention to all of how/where/when questions related to administration and management and even technical issues. you simply use the resource — storage as an example — and you put your files/data over and you don’t care how are they going to make sure that your data will be available at all times, how are they going to manage disk failures and even how to manage the network latency problems, this bring us to the most important point of cloud computing ‘security’ how can I make sure that it’s only me who can actually read the data? so far, there are no good-known-standard way of storage that ensure that but you can always use the typical cryptography methods to make sure you are the only one who can read the data but that doesn’t necessarily have to be applied on other types of computer resources. So the cloud is there somewhere on the internet and you can access it using -maybe- some API or protocol and that’s it, no extra money for deployment, electricity, servers, management, security, etc. » Read more: Cloud Computing

Etisalat USB Modem on Fedora 11

July 12th, 2009

This is how to get Etisalat USB modem working on Fedora 11.

“Etisalat Masr” new USB modem that supports HSDPA is based on Huawei E1550 USB Flip-Flop stick, so you need to get usb_modeswitch first to be able to switch the device from being a storage usb device to USB modem mode and this can be done easily by:

yum install usb_modeswitch

Then you need to add the following to the configuration file /etc/usb_modeswitch.conf  (add the following in the end of the file)

# Huawei E1550
DefaultVendor = 0x12d1
DefaultProduct = 0x1446
MessageEndpoint = 0x01
MessageContent = "55534243000000000000000000000011060000000000000000000000000000"

I got those information by sniffing USB on windows and you don’t have to do that because probably your MessageContent is the same as mine if the device is the same as mine and you can check if things are working or not by running

lsusb

and you will see a line like that

 ID 12d1:1446 Huawei Technologies Co., Ltd.

and then run

usb_modeswitch

you should see output like


* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.6 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found ("usb-storage")
OK, Driver "usb-storage" successfully detached
Setting up communication with device
Trying to send the message
OK, message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye

and please note that usb_modeswitch MUST be run as root, otherwise you will get an error.

if you got a message like the previous one then you can use the device directly from NetworkManager and you can check if the device has switched or not from the output of lsusb, it should be something like that now:

ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem

Have Fun :)

لو كان الأمر بيدي (المرور في القاهرة) ….٣

December 18th, 2008

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

الحقيقه ان موضوع المرور دة موضوع كبيير جداً و انا قررت ان شاء الله اعمله مشروع منفصل و فعلاً بدأت آخد خطوات جديه ليه لكن عايز متطوعين ، المشروع اسمه (مرور مصر) ، هاتكلم عن الافكار اللي في دماغي الخاصه بالمشروع ده في موضوع منفصل بس دلوقتي و بعد مارجعت الحمد لله من السفر ممكن اكمل شغل في السلسلة اللي هانشتغلها مع بعض ان شاء الله (لو كان الأمر بيدي) ، بعد كل موضوع اما يخلص هاخد افكاركو و اقتراحاتكوا و اعمل ملخص بيجمع الافكار اللي انا طرحتها مع افكاركم بإذن الله » Read more: لو كان الأمر بيدي (المرور في القاهرة) ….٣

لو كان الأمر بيدي (المرور في القاهرة) …..٢

November 16th, 2008

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

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

الفكرة العامة هي ان الناس كلها بعد التخرج بتضطر تروح القاهرة عشان تلاقي فرصة عمل محترمة في شركة محترمه سواء شركة مالتي ناشونال او شرحة محليه لكن الحقيقة العاريه هي ان الشغل في القاهرة و ده لأن كل الشركات دي في القاهرة و للأسف مفيش نفس الفرصة في الأسكندرية مثلاً او غيرها. » Read more: لو كان الأمر بيدي (المرور في القاهرة) …..٢

لو كان الأمر بيدي كنت …… ١

November 10th, 2008

بعد تفكير عميق جداً استمر لمدة عده أيام و بجد انا عندي حاله غريبة جداً من آخر بوست و هي حالة تضارب من الشعور بالضيق و الزهق من الوضع الحالي و حاله نشاط فكري لدرجة اني فكرت ليه ماعملش فريق صغير كدة كل شغلانته انه يعمل ابحاث في الحلول الجذريه اللي ممكن تنقل مصر من بلد متخلف لبلد متحطر و متطور و نضيف زي البلاد الأوروبيه اللي شفتها و اللي ببقا ماشي فيها و مش عايز ارجع! لكن السؤال هل فعلاً ممكل الاقي حل لأي مشكله؟ هل فعلاً احنا عندنا مشاكل ملهاش حل؟ » Read more: لو كان الأمر بيدي كنت …… ١