Archive

Archive for the ‘Tutorials’ Category

Installing Adobe Air under Fedora 12

March 5th, 2010 Ahmed El Gamil 1 comment

After having some problems trying to install Adobe Air under my Fedora 12 installation, here is the what you should do to get it up and running:

  • Install the following packages usign YUM

yum install gtk2-devel rpm-devel xterm

  • Solve the certificates issue using the command

for c in /etc/opt/Adobe/certificates/crypt/*.0; do aucm -n $(basename $c) -t true; done

  • Now you can navigate to where you download the binary and then do the following

chmod +x AdobeAIRInstaller.bin

./AdobeAIRInstaller.bin

BTW, this was under a 32-bit installation.

Hope this solves the problem.

Categories: Tutorials, UNIX/Linux Tags: , , , ,

Auto-completion in Ruby IRB

February 5th, 2009 Ahmed El Gamil 4 comments

الحمد لله و كفى وصلاة و سلاماً على عباده الذين اصطفى ثم أما بعد..

فبينما أقوم بتجربة لغة البرمجة Ruby كلغة بديلة لل Bash Scripting للقيام ببعض أعمال اداره نظم التشغيل (System Administration) (والتى تبين لى انها قوية جداً فى هذا المجال و يبدو أنى سأستخدمها من الان فصاعداً), اذ تعرضت لل Interactive Ruby او ما يسمى أختصاراً  Irb و هو عبارة عن نوع من ال Shells و لكنه للتعامل مع لغة Ruby نفسها لتجربة بعض الطرق البرمجية قبل استخدامها فعلياً فى برامجك..

المشكلة التى قابلتنى هى انى وجدت Irb لا يقوم بعملية الاكمال التلقائى (Auto completion) لل Class & Methods و هذا شىء صعب للغاية على مدمن Shells مثلى ! :-D

و بعد البحث عن الموضوع مع العملاق جوجل وجدت انه يجب عليك ان تقوم بضبط بعض الخواص فى ملف ال Configuration الخاص ب Irb و الذى يوجد فى مجلد ال Home بأسم irbrc. حتى يكون الملف كالاتى

IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
IRB.conf[:LOAD_MODULES] = []  unless IRB.conf.key?(:LOAD_MODULES)
unless IRB.conf[:LOAD_MODULES].include?('irb/completion')
  IRB.conf[:LOAD_MODULES] << 'irb/completion'
end

و هكذا ترى النتيجة بعد الانتهاء من هذا التعديل البسيط  8-)

irb

سبحانك الله و بحمدك..أشهد ان لا اله إلا أنت..أستغفرك و أتوب إليك

Working with SubVersion..Part 1

November 19th, 2008 Ahmed El Gamil 3 comments

So i have been working with a small personal coding project the last days, and i noticed that i will be distributing the code among several directories and files and i also need to go forward and backward in the code revisions, so i decided to get started with Subversion – The version control system.

I had some problems at first, then things started to get really good after some searching for information here and there, so here is a simple tutorial that will get you up with subversion in no time isA

First of all, What is Version control ?

Revision control (also known as version control (system) (VCS), source control or (source) code management (SCM)) is the management of multiple revisions of the same unit of information

Changes to these documents are usually identified by incrementing an associated number or letter code, termed the “revision number”, “revision level”, or simply “revision” and associated historically with the person making the change

So how does this apply to coding and source code, well, when you are working with lots of code some times you need to know how did the code look like at a specific time or specific “version”. Read more…