A picture is worth a thousand words.. Uptime

الحمد لله و كفى وصلاة و سلاماً على عباده الذين اصطفى ثم أما بعد..
فبينما أقوم بتجربة لغة البرمجة Ruby كلغة بديلة لل Bash Scripting للقيام ببعض أعمال اداره نظم التشغيل (System Administration) (والتى تبين لى انها قوية جداً فى هذا المجال و يبدو أنى سأستخدمها من الان فصاعداً), اذ تعرضت لل Interactive Ruby او ما يسمى أختصاراً Irb و هو عبارة عن نوع من ال Shells و لكنه للتعامل مع لغة Ruby نفسها لتجربة بعض الطرق البرمجية قبل استخدامها فعلياً فى برامجك..
المشكلة التى قابلتنى هى انى وجدت Irb لا يقوم بعملية الاكمال التلقائى (Auto completion) لل Class & Methods و هذا شىء صعب للغاية على مدمن Shells مثلى !
و بعد البحث عن الموضوع مع العملاق جوجل وجدت انه يجب عليك ان تقوم بضبط بعض الخواص فى ملف ال 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
و هكذا ترى النتيجة بعد الانتهاء من هذا التعديل البسيط

سبحانك الله و بحمدك..أشهد ان لا اله إلا أنت..أستغفرك و أتوب إليك
الحمد لله و كفى و صلاة و سلاماً على عباده الذين اصطفى

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..
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
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 !!
..It is your IM passwords
Read more…
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
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…
Recent Comments