Archive

Archive for the ‘UNIX/Linux’ Category

A picture is worth a thousand words.. Uptime

October 21st, 2009 Ahmed El Gamil 8 comments

Screenshot

Virtualization …

April 3rd, 2009 Ahmed El Gamil 8 comments

virtualization1

Categories: 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

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

Pidgin may eat your password !

December 11th, 2008 Ahmed El Gamil 12 comments

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

logopidgin

EDIT: Added the solution at the end of the post

So i have been navigating through my home directory and i found a hidden directory (which starts with a dot .) and i found a directory called .purple..Hmm, i don’t remember installing an application called purple.. :-o

So after some searching i found that the .purple directory contains some files related to pidgin The universal Instant messaging client..okay this sounds reasonable now..the pidgin color is purple :mrgreen:

okay..before you read any further in this topic please open a terminal in your Linux distro and execute the following command:

cat ~/.purple/acc* | grep “ord>”

YES, the output you have seen from this command is REAL !! :mrgreen: ..It is your IM passwords :D Read more…

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…