tag:blogger.com,1999:blog-13265046270343293962008-05-26T01:46:17.875+03:00عبقرية الإرادةAmr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-1326504627034329396.post-31734955252128751522008-05-23T22:48:00.005+03:002008-05-23T23:28:08.228+03:00أرأيت إنسانا بلا نسيانباحب جدا المقطع ده من أحد الأناشيد بيقول:<br />من شيمتي النسيان .. إنسان أنا .... أرأيت إنسانا بلا نسيان<br />باحس إنه ينطبق عليا جدا ... إنسان أنا ... ضعيف أنسى ...<br /><br />من أجمل الحاجات في الدنيا إن ربنا يُنعم على الإنسان بمن يُذكره إذا نسي ... ومن أجملها أن يشرح الله صدر الإنسان للتذكرة ... فحقا كلاهما نعمتان عظيمتان ... فاﻷولى يشعر معها المرء أن الله قد أرسل له غيره ليُذكره بما يُصلحه فيستشغر معها الإنسان فضل الله وجميل رعايته وحنانه ورحمته ... والثانية أن القلوب بين إصبعين من اصابع الرحمن ولو شاء الله ﻷغلق قلوبنا عن الذكرى فما يكون لنا من هاد من بعده ...<br /><br />ما دفعني للكتابة أني كنت في حال هم وضيق ... وكدت أنسى أن سبب ضيقي وهمي يُمكن أن يكون سبب سعادتي في الدنيا واﻵخرة .. وأنه ما أقامني على ما أقامني إلا أن أحقق غايتي في سبيل الله ... لكن اعتراني شيء من التعب اصابني معه ملل ... وكده أنسى مرادي وغايتي وما أرجوه في دنياي وآخرتي ...<br /><br />فمنّ الله عليّ بمن يُذكرني ... يُذكرني به تعالى ... ويُذكرني بغايتي فيما أقامني فيه ... ثم شرح صدري لذلك ...<br /><br />فله الحمد ... حمدا كما ينبغي أن يُحمد ... يُذكرنا به إذ ننساه وما أرحمه بنا وهو أغنى اﻷغنياء عنا ... ويشرح صدرونا لما يُرضيه ... وهو يُمن علينا بذلك ليرزقنا منه الثواب واﻷجر ... فهو صاحب النعمة ابتداءََ وانتهاءََ ...<br />فاللهم لولا أنت ما اهتدينا<br />ولا تصدقنا ولا صلينا<br />فأنزلن سكينة علينا<br />فأنزلن سكينة علينا<br />فأنزلن سكينة علينا<br /><br />اللهم واجز خير الجزاء من ذكرنا واعف عنا واغفر لنا وارحمنا ...Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-18776277551223945452008-01-21T10:29:00.000+02:002008-01-21T10:32:08.629+02:00غزة تحت الظلام<div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm3.static.flickr.com/2071/2207799358_014d6209f8.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://farm3.static.flickr.com/2071/2207799358_014d6209f8.jpg" alt="" border="0" /></a><br /></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-13729354712154268942008-01-21T09:45:00.000+02:002008-01-21T09:46:11.849+02:00روجيه جارودي ... كيف يحتاج العالم إلى الإسلام<div dir="rtl" style="text-align: right;"> ده <a href="http://www.islamonline.net/servlet/Satellite?c=ArticleA_C&amp;cid=1199279423134&amp;pagename=Zone-Arabic-ArtCulture%2FACALayout" target="_blank">مقال عن روجيه جارودي</a> ... بصراحة من أجمل ما قرأته ملخصا عنه ...<br />المقال بعد قراءته زود إيماني العميق بحاجة هذا العالم إلى الإسلام ... يعني الراجل بيقول مثلا "ماذا بعد المزيد والمزيد من إنتاج السيارات والماكينات وأجهزة الكومبيوتر؟ ماذا بعد المزيد والمزيد من البنوك والأرباح المالية؟ ماذا بعد المزيد والمزيد من المدن والطرق والمصانع؟ إلى أين سنصل بعد ذلك.. وأين النمو في القيم والأخلاق والمعاملات والسعادة الحقيقة؟" ... وأفتكر إن دي إشكالية حقيقية بتواجه كل الناس بيدعوا لعزل الإسلام عن الحياة ... وإبعاده عن تنظيم كل شؤون البشر ...<br />يعني فيه نقطتين من وجة نظري:<br />اﻷولى: إن الإنسان ما ينفعش -زي ما العلمانيين في الحقيقة وليس في الدبلوماسية بينادوا- يفصل الإسلام كدين يعتنقه عن معاملاتاه وتجارته وسياسته ... وإلا هيشعر بازدوجية واضطراب وعدم استقرار تهدد بناؤه النفسي وحتى إنتاجه ...<br />الثانية: إنه المغزى الحقيقي والهدف غير واضح بعيدا عن التصور الإسلامي ... يعني مهما أنكر المنكرون فالحياة المادية مهما بلغت فيها من نجاح فمش بتعوض الإنسان عن الحاجة للإيمان وامتثاله كسلوك وأخلاق ... يعني قرأ إحصائية العام الماضي بتقول إن 90% من ممثلي هوليود يشربون الكحوليات و 60% مدمنون بشراهة ... طيب إذا كان دول وصلوا لقمة المجد المادي في المنظور العلماني الغربي !!<br /><br />ومن هنا يزداد إيماني بأن الغاية من نضال المسلمين ودعوتهم لدينهم ليس فقط دخول الناس في الإسلام إنما أن يصير الإسلام مهيمنا وحاكما على حياة الناس "حتى لا تكون فتنة ويكون الدين كله لله" ... واﻵية لا يتعني إكراه كل الناس على الإسلام -إن الإكراه منهي عنه أصلا- إنما أن يكون الإسلام هو الحاكم على كل الناس ..<br /></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-30977516676178273622008-01-20T01:16:00.000+02:002008-01-20T02:37:44.752+02:00أنا ونفسي .. أصدقاء ولكن!<div dir="rtl" style="text-align: right;">مع بداية مرحلة المراهقة والتقلبات الشديدة في حياة الإنسان ... والذنوب اللي ما كانش هوا وصغير يتخيل إنه ممكن يعملها وبداية توسع مداركه ومعرفته الواعية بدينه ... اصطدمت بنفسي ... وفي الفترة دي كان كل استقبالي سلبي ... يعني كنت كاره نفسي وباحتقرها جدا ومتضايق منها ... وكان للموضوع ده أسباب رئيسية زي إن الواحد ما كانش فاهم قوي إزاي لما يسمع موعظة أو نصيحة يستقبلها إيجابيا مش سلبيا ... يعني مثلا لو سمعت أو قرأت عن خشية الله .. ممكن أستقبل الكلام سلبي وأحس إن رايح في ستين داهية ومافيش مني أمل وده اللي كان بيحصل في الفترة دي .. وممكن أستقبله إيجابيا بإني استغفر ربنا عن ما مضى وأحاول أن أصلح ما هو قادم وأندم ندما يدفع للعمل الطيب لا إلى اليأس والقنوط ..<br /><br />فكنت باكره نفسي جدا ...<br />بعدها لقيت إن ده كله مالهوش لازمة وإنه غباء شديد ... ﻷنه لا منى باصلح الوضع ولا مني مرتاح وطبعا شعور بقى باليأس والاحباط بشدة .. بس الواحد لما بدأ يفهم شوية لقيت إن أحسن حاجة الواحد يعملها إنه يتصالح مع نفسه ... ويقيم مع نفسه علاقة ندية وليست علاقة عداء شديد أو ولاء وحب شديد ..<br />يعني احترم نفسي ... وأقدرها ﻷن ربنا خلقها .. وﻷنها لو أحسنت فربنا هيرضى عنها ...<br />وأكره فيها البلاوي السودة اللي بتعملها ...<br />وأمشي معاها بتوازن ... لما تفرح وتغتر أفكرها بسوء أدبها ...<br />ولما تياس وتحبط أفكرها بإن فيها روح من الله نفخها في الطين ... وإن فيها استشراف للسمو ... وإنها وإن كانت عاصية فإنها تحب الطاعة ...<br /><br />مش راضي عن نفسي ... ﻷني ما ينفعش أرضى ... أرضى بإيه بس ... هيا لست عملت حاجة تستاهل الرضى ... بس في نفس الوقت أشجعها لما تعمل ولو شيء بسيط كويس بإنها ممكن تكون أفضل لو شدت حيلها شوية كمان ...<br /><br /><br />بافرح بيها جدا لما تكتسب خلق حسن أو تتخلص من خلق سيء ... وأكتر حاجة بافرح بيها لما تتهان شوية وتتجرح بس لله مش لحد تاني ومن غير ما تنتصر لنفسها ﻷنها عارفة كويس إن لو الناس عرفت حقيقتها المُرّة هتكون الإهانة أبشع ...<br /><br />وأكرهها جدا لما تزرجن بقى معايا وتنتخانق مع بعض عشان مش عايزة تسمع الكلام وكسلانة عن الخير وعايزة بس تاكل وتشرب وتمشي ورا مزاجها وبس ... وأكتر موقف باكرهها فيه لما أحس إني ضيعت وقت في معصية أو حتى بدون فايدة تذكر ... ولما ألاقيها عملت عمل كويس جدا بس نسيت تنويه لله أو نيتها فيه باظت ...<br /><br />باحس إنها ممكن تكون أفضل كتييييييييييييير قوي بس لو تسمع كلام ربنا وتعيش الحياة كلها لله زي ما ربنا يرضى ... وباحبها بس ﻷني متأكد إنها ممكن توصل لكده يوما ما ... بس دماغها الناشفة دي عايزة الضرب بالحديد ...كنت زمان باضرب ... بس دلوقتي مش باضرب عشان احنا اصحاب وماحدش بيضرب صاحبه إنما ممكن ينصحه ويعنفه كمان إن لزم ..<br /><br />أسأل الله أن يرزقني نفسا مطمئنة بالإيمان<br /></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-48125633913430459422008-01-12T08:04:00.000+02:002008-01-12T09:08:08.161+02:00يوما ما لم أكن أعرف شيئا عما أتقنه اﻵن<div dir="rtl"><div style="text-align: right;">قبل ما يزيد على ثلاث سنوات ... كنت مشاركا في أحد المنتديات وافتتحت موضوعا أسأل فيه "هل من الممكن أن أستضيف موقعي؟" ... كنت أسأل فيه أسألة بدائية للغاية بل سخيفة وساذجة أحيانا ... وتعرفت من خلال هذا الموضوع على أعز أصدقائي "عمرو" والذي يكتب في الموضوع باسم amr922 ... وصرنا رفاق طموح وأصدقاء أوفياء -بفضل الله- لم يضف إلينا الزمن وتقلب الليل والنهار إلا مزيدا من الحب والإخلاص والوفاء ... ولم أشعر يوما واحدا أنني أخطأت حين اتخذته صديقا صدوقا لي أو أنني نادم على لحظة واحدة قضيناها معا: نعمل أو نلعب أو نتسامر أو تنتاقش أو حتى نختلف بحدة ... وقدر الله أن عملنا معا في مكان واحد بعد تعارفنا بحوالي العام والنصف وصار كل منا خبيرا -صغيرا- في نفس هذا الموضوع الذي كنت أسأل عنه ... وبعدها وعندما كان زملاؤنا الجدد وحتى مدراء العمل يستعجبون كيفية لقائنا وتعارفنا وكيف أننا تعلمنا -وخصوصا أننا من محافظتين مختلفتين- فكنا نطلعهم على هذا الموضوع ... فينفجرون جميعا ضاحكين متعجبين أن هذا الساذج الذي كان يسأل هو من يسألونه اﻵن وأن هذا الذي تطوع بالإجابة والإعانة هو من يقدم إليهم العون دائما دون تررد أو من أو أذى ...<br /><br />فأقول "سبحانك لا علم لنا إلا ما علمتنا إنك أنت العليم الحكيم"<br /><br />أنقل هذا الموضوع هنا من <a title="هل من الممكن أن أستضيف موقعي؟" target="_blank" href="http://www.haridy.com/ib/showthread.php?t=37139" id="iqw5">مصدره اﻷصلي</a> ﻷتذكر فضل الله علي ... ووفاءا ﻷخي وصديقي عمرو ... وﻷنه يبعث في نفسي الكثير من اﻷمل والذكريات العذبة ...<br /><br />بتاريخ .. 09-14-2004, 02:34 AM<br /><br /><b><i><u>Amr_not_Amr</u></i></b><br /></div><div style="text-align: right;" class="smallfont"> <b>هل من الممكن أن استضيف موقعي؟؟؟؟</b> </div><div style="text-align: right;"> </div><hr style="color: rgb(17, 44, 76); margin-left: auto; margin-right: 0px;" size="1"><div style="text-align: right;"> </div><div style="text-align: right;" id="post_message_394593">السلام عليكم<br />سؤال<br />هل ممكن أني استضيف الموقع بتاعي على جهازي<br />أنا مثلا عندي جهاز سريع جدا<br />والسعة التخزينية كبيرة<br />وسرعة الاتصال بالانترنت عالية<br />فهل ممكن بدل ما اروح ادفع فلوس لسيرفر أني اعمل جهازي سيرفر للموقع واشغله 24 ساعة واستصيف الموقع عليه؟؟؟؟؟<br />لو ينفع ... إيه الطريقة؟؟؟؟<br />ارجوكم تفيدوني</div><div style="text-align: right;"><br />++++++++++++++++++++++++++++++++++++<br /><b><i><u> مرفوع مؤقتا من الخدمة</u></i></b><br />اباتشى سيرفر<br /><br />او iis وانا منصحكش بفيرجن 5 خليك فى 6 الى نازلة مع سيرفر2003<br /><br /><br />++++++++++++++++++++++++++++++++++++<br /><b><i><u>Amr_not_Amr</u></i></b><br />السلام عليكم<br />جزاك الله كل خير<br />بس معلش ياريت لو تكتب الأباتشي سيرفر بالانجليزي عشان البحث<br />وهو iis اختصار لإيه عشان اعرف أجيبه<br /><br />وآخر حاجة هو الموقع هيكون ب ip address وللا <a href="http://www.xyz.xyz/" target="_blank">www.xyz.xyz</a><br />يعني الموقع هيكون البشكل ده http:/60.147.25.65/index.html<br />وللا بالشكل ده <a href="http://www.amr.net/index.html" target="_blank">www.amr.net/index.html</a><br /><br />معلش أصل خبرتي في الموضوع ده شبة منعدمة<br />وربنا يجزيك كل خير<br /><br /><br />++++++++++++++++++++++++++++++++++++<br /><b><i><u>الديب</u></i></b><br />السلام عليكم يا عمرو<br /><br />الموقع بالنظام ده هايكون بالأرقام<br />و ما لوش عنوان<br /><br />لازم تشتري عنوان... وفيه ملحوظة كمان خطيرة<br />انت مثلا عندك دي اس ال لكن الشركة اللي انت مشترك معاها<br />كل شوية بتغير الـ أي بي بتاعك..و بكدة عنوان الموقع سوف يشير الى عنوان أي بي مختلف...<br /><br />اللي أقصده ..ان لازم يكون عندك ستاتيك أي بي من شركة الدي اس ال<br />و ده يتطلب اشتراك مختلف<br /><br />لكن والله انا سمعت ان المشكلة دي ممكن تتحل...لكن ماعرفش ازاي؟؟<br /><br />ايه رأي الأعضاء في الكلام ده<br /><br />حد عنده معلومات تانية؟؟<br /><br /><br /><br />السلام عليكم<br /><br /><br /><br />++++++++++++++++++++++++++++++++++++<br /><b><i><u> مرفوع مؤقتا من الخدمة</u></i></b><br /><br />مظبوط<br /><br />بس حكاية ال ip مهى الشركة هتديله ستاتيك ip لان اشتراكه هيبقى بيزنس<br /><br /><br />مش هوم<br /><br /><br /><br />++++++++++++++++++++++++++++++++++++<br /><b><i><u>Amr_not_Amr</u></i></b><br />جزاكم الله كل خير<br />أنا هافحص الموضوع لسه وأرد عليك إن شاء الله<br /><br /><br /><br />++++++++++++++++++++++++++++++++++++<br /><br /><br /><b><i><u>amr922</u></i></b><br /></div><div style="text-align: right;" id="post_message_398867">السلام عليكم<br />بص ياباشا لو ناوى تعمله سيرفر جامد يبقى تستحسن تنزل لينكس ريد هات ومعاه اباتشى وشوية حاجات كده لو بقى عايز تستسهل يبقى على الويندوز العادى<br />بالنسبة لاسم الموقع فيه حلين واحد بفلوس والتانى ببلاش<br />اما ان تشترى دومين وده رخيص بحوالى 8 دولار<br />او ممكن تشترك فى موقع مجانى زى تى كه او اى موقع مجانى وتحط الاندكس صفحة تحويل للايبى بتاعك<br />اما بالنسبة للايى ففى حلينى بردوا اما تشترى ايبى ثابت من الشركة او فيه موقع اسمه noip بتنزل برنامج بيحللك مشكلة الايبى<br />ولو احتجت اى حاجة انا تحت امرك<br /><br />تحياتى</div><div style="text-align: right;"> <br /><br />++++++++++++++++++++++++++++++++++++<br /><br />وبعدها بقى كلمته وكان ما كان بيننا ... فلله الحمد ...<br /><br /><br />عجيب هو أمر هذا الإنسان عندما يتقن شيئا أو يصبح ذا خبرة وعلم ينسى أنه لم يكن يوما يعلم عنه شيئا ... ويظن -لحمقه وغبائه- أنه تعلم كل هذا بمهارته وذكائه ..</div></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-15331721587341237012007-12-18T01:34:00.000+02:002008-01-11T14:49:45.000+02:00OCR for Linux, a mini-howto<div style="text-align: left;"><p> This is a very lite tutorial to do some OCR on a Linux using ImageMagick to optimize images and using athe trial version of a commercial OCR software, OCR shop XTR, that is really powerful and can do the job very well. </p> <p> Note: I've no relation with www.vividata.com and I'm not advertising their product.. It's just a product that I've tried and could respect so much. </p> <p> Requirements: </p> <p>1- Imagemagick , I think you can find a package of Imagemagick on any famous Linux distro, either oriented for desktop or servers ... if you didn't find any you can download and install it from its website.. http://www.imagemagick.org/ </p> <p> 2- OCR shop XTR for Linux, you can download your trial version <a href="http://www.vividata.com/be_xtr_eval.html" target="_blank" title="http://www.vividata.com/be_xtr_eval.html">here</a>. You'll have to provide your machine hostname and your netwrok card mac address to get the key. Installation is really very easy. You can follow the instructions <a href="http://www.vividata.com/manuals/ocrxtr_README.txt" title="http://www.vividata.com/manuals/ocrxtr_README.txt">here</a>. </p> <p> Note: Images processing can take very long time when you processes hundreds of images ... so be patient and test your options on some sample images at 1st before you apply it to many images ...<br /></p> <p> Steps: </p> <p> 1- We need to optimize your images to be well recognized by ocrxtr ..So we'll use "convert" command to which is bundled with ImageMagick package to do the job .. You can skip this step if you see that you really have images with good resolution and clarity .. </p> <p>convert sourceimage.ext -resize 200% -fill white -tint 60 -level 0%,80% -sharpen 3 -compress none -monochrome destinationimage.tif </p> <p> You can finely adjust those options to adapt it for your needs but those were what worked for me after too many attempts. </p> <p> 2- If you skipped step one you need to do this so as the image can be used successfully with ocrxtr : </p> <p> convert sourceimage.ext -compress none -monochrome destinationimage.tif </p> <p> 3- Now let's use the OCR, assuming that you need to get pdf files that contain the text hidden under the image, transparently, and keep the images in its proper state and you assume overwriting the destination file ..<br /></p> <p> /opt/Vividata/bin/ocrxtr -overwrite=y -in_res=150 -out_text_format=pdf -out_text_name="%s.pdf" destinationimage.tif </p> <p> </p> <p> You can read ocr xtr documentation if you want to play with other options.. </p></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-20332613834589443942007-12-16T14:42:00.000+02:002008-01-11T14:48:31.880+02:00emovix-modfied, a live mini media player<p style="text-align: left;"> I've modified the emovix http://movix.sourceforge.net/ CD, that's generated from emovix script not the movix or movix2 versions as both have higher hardware requirements and it was easier to work this way .. </p><div> </div><p style="text-align: left;"> You can use this CD to convert your old PC with less than 32 MB of RAM to a console-based media player that can run ogg, mp3, windows media formats, real media files and some others ... it doesn't support very new versions of codecs and it doesn't support quicktime or such other formats .. </p><div style="text-align: left;"> </div><p style="text-align: left;"> Its size is quite small .. only of 16 MB .. </p><div style="text-align: left;"> </div><p style="text-align: left;"> This is an alpha 0 vesion so it can contain bugs, and it's not installable to hard disk, unless you hack it or so .. </p><div style="text-align: left;"> </div><p style="text-align: left;"> I expect the next release to have a simple installation script so as you don't have to insert the CD, also there can be a USB version too .. </p><div style="text-align: left;"> </div><p style="text-align: left;"> </p><div style="text-align: left;"> </div><p style="text-align: left;"> Mainly, I've modified startup scripts and movix.pl file .. I've disabled the movix menu .. so simply use mplayer as a command .. </p><div style="text-align: left;"> </div><p style="text-align: left;"> to play any file, at first you should mount the media where the file is, then simply run </p><div style="text-align: left;"> </div><p style="text-align: left;"> mplayer /path/to/media/file.ext </p><div style="text-align: left;"> </div><p style="text-align: left;"> </p><div style="text-align: left;"> </div><p style="text-align: left;"> You can run this CD on a PC with 32 MB of RAM and a graphic card of 2 MB ... I could run some video files on a test machine with those configuration ... </p><div style="text-align: left;"> </div><p style="text-align: left;"> Here is the download link, http://fun.sharnoby.net/emovix-modified-alpha0.iso </p><div style="text-align: left;"> I hope you enjoy it and report me any bugs or suggestios you've. :)</div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-88867716463803520702007-11-27T01:38:00.000+02:002008-01-11T14:50:48.564+02:00انفجار قلم<div style="text-align: right; font-family: tahoma;">نفسي أكتب من زمان<br /><br />عايز أكتب حاجات كتير<br /><br />عايز أكتب عن القلم اللي نسيت الكتابة بيه وبقى خطي وحش من الكتابة ع الكيبورد<br /><br />وعايز أكتب عن التغييرات الجذرية المرعبة اللي مقدم عليها في حياتي ...<br /><br />وعايز أكتب عن إني مضغووووووووووووط ومش راضي عن أدائي ... حاسس إني جوا حلة برستو ... شغال تحت ضغط رهييييييييييب ... وعمال باعذب في نفسي واتحرك بأقصى سرعة والحركة أسرع بتكسرني والكسر بيزيد ضعفي ...<br /><br />عايز أكتب عن أحلام خايف تقتل ... عن زرعة أمل جوايا زرعتها وكنت كل يوم باسقيها وأرعاها وبدإت تكبر وتكبر قدامي ... وفجأة خايف أقتلها بإيدي ...<br /><br />عايز أعيط ... ومش باعرف ... مش عارف أبكي ... مش باعرف ...<br /><br />عايز أصلح حاجات كسرتها وجرحتها كتير في نفسي ...<br /><br />عايز أحوش ... باصرف كل مرتبي تقريبا ... مش باحوش حاجة خالص ... ومش عارف أحوش ...<br /><br />عايز أنظم وقتي .... يااااااااااااااااااااااه كابوس تنظيم الوقت المخيف ... عامل في حياتي زي القنبلة المؤقتة لو انفجرت في مرة هتدمرني ...<br /><br />عايز اتصل باصحابي ...<br /><br />عايز ما انساش أنا مين ...<br /><br />فقدت الإحساس بالزمن وبالمكان ... والذاكرة بقت أحلام .... واﻷحلام تفكير مستمر ... في اليقظة زي في المنام ... الفرق الوحيد إنه في المنام لا تحكمني قوانين الفيزياء ....<br /><br />باطير وأنا صاحي ... وما اعرفش إني كنت نايم ...<br /><br />عملت حادثة مع واحدة صاحبي وكانت حادثة مرعبة والحمد لله طلعت سليم بس حاسس إني كنت باحلم وفي منام ...<br /><br />12 منتصف الليل زي بالظبط 12 ظهرا ...<br /><br />نمت زي ما نمتش ...<br /><br />مجنون زي عاقل ...<br /><br />بافكر زي نايم ...<br /><br />نايم زي باشتغل ومطحون ...<br /><br />باشتغل زي سرحان ...<br /><br />وسرحان زي باحلم ...<br /><br />وباحلم يعني تفكير مستمر مش بينقطع من اليقظة لمنام ...<br /><br />وتفكير يعني واقع ... يعني مش حلم ..<br /><br />والعالم مش محسوس ... مش مدرك ... زي أعماق حلم عمييييييييييييييييييييييييييييييييييييييييق ... متاهة<br /><br />والزمن بيمر غصب عني ... ﻷني مش عارف أحسه ...<br /><br />والمكان ما اعرفهوش وعارف كل تفاصيل ...<br /><br />والناس ... نسيتهم خلاص ... اللي معايا ما اعرفوش ... واللي ما شفتوش اتنسى ... حتى لو محفور في الذاكرة ..<br /><br />والذاكرة خلاص منهكة ... كل يوم تقول لي مرات عديدة "لا توجد مساحة فارغة يرجى مسح بعض البيانات لكي تتمكن من التخزين" ...<br /><br />ربنا يستر وما يكونش فيها باد سيكتورس ...<br /><br />ولعت نفسي شمعة ... بانور لناس ... وأحرق نفسي ... مش تضحية ... ﻷ ده حمق ... كان اﻷولى بي أن أضيء لنفسي معهم ...<br /><br />وقلق واضطراب ... عارف سببه كويس ... بس أنا منفصل عن العالم ... هوا اللي بيحلم ده لو عرف حل كل حاجة في الدنيا هيعرف ياخد أي قرار؟؟؟<br /><br />يارب ارحمني .... ارحمني عشان تعبت ...<br />ارحمني عشان من غير رحمتك هاضيع ...<br />ارحمني أرجوووووووووووووك ...<br />برحمتك أستغيييييييييييييييييث فأغثني ...<br />ما حدش يعرف عني حاجة غيرك ولا حد يعرف لي حل غيرك أرجوك اصلح لي شأني ... أغثني برحمتك ... أغثني برحمتك ..<br />مش عارف بس باضيع وقت في إني ألاقي حل بعيد عنك ليه ...<br />مش عارف ... غبي ... غبي ... غبي ...<br />ألهمني الرشد أرجوووووك ... أرجووووووك ربي ألهمني الرشد ...<br /><br />والله ما عاد قلبي ولا عقلي يطيقان ...... أغثني برحمتك يا رحمن .. </div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-8375725028708628892007-11-06T20:00:00.000+02:002008-01-11T20:01:27.920+02:00Joomla Rewrite rules for lighttpd for SEF URLs<div style="text-align: left;"><p> After so much searching on google, joomla forums and lighttpd website .. I didn't find any complete working rewrite rules for joomla that can replace, peacefully, the .htaccess file of joomla that depends on apache's mod_rewrite module.. </p> <p> I'd to do this on two websites I administrate, the 1st is one had the Joomla URL on its documentroot directly , where the joomla URL is http://domain.com/ ... here are the rules for it .. </p> <p> NOTE: rules may not appear correctly due to some page formating problems, but you can copy and paste safely </p> <p> url.rewrite-repeat = (<br />"^/content/view/(.*)$" => "/index.php?option=com_content&amp;task=view&amp;id=$1",<br />"^/content/blogsection/(.*)$" => "/index.php?option=com_content&amp;task=blogsection&amp;id=$1",<br />"^/content/blogcategory/(.*)$" => "/index.php?option=com_content&amp;task=blogcategory&amp;id=$1",<br />"^/component/option,(.*)$" => "/index.php?option=$1",<br />)<br /></p> <p> </p> <p>that other website had two joomla webpages, the 1st one URl is like this http://mydomain.com/ar/ , and the second one URL is like this, http://mydomain.com/en/ .. here are the rules for it .. </p> <p> </p> <p> url.rewrite-final = (<br />"^/ar/content/view/(.*)$" => "/ar/index.php?option=com_content&amp;task=view&amp;id=$1",<br />"^/ar/content/blogsection/(.*)$" => "/ar/index.php?option=com_content&amp;task=blogsection&amp;id=$1",<br />"^/ar/content/blogcategory/(.*)$" => "/ar/index.php?option=com_content&amp;task=blogcategory&amp;id=$1",<br />"^/ar/component/option,(.*)$" => "/ar/index.php?option=$1",<br /><br />"^/en/content/view/(.*)$" => "/en/index.php?option=com_content&amp;task=view&amp;id=$1",<br />"^/en/content/blogsection/(.*)$" => "/en/index.php?option=com_content&amp;task=blogsection&amp;id=$1",<br />"^/en/content/blogcategory/(.*)$" => "/en/index.php?option=com_content&amp;task=blogcategory&amp;id=$1",<br />"^/en/component/option,(.*)$" => "/en/index.php?option=$1",<br />)<br /> </p> <p> </p> <p> </p> <p>These rules has been tested on lighttpd 1.5 and are already working very nicely on production web servers however I do not guarantee that they may work for you .. </p></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-18991712729153653322007-05-03T19:59:00.000+03:002008-01-11T20:02:57.418+02:00How to disable IPv6 on RHEL 5 / CentOS 5<div style="text-align: left;"><p dir="ltr"> <span style="font-size:14;"> Append those lines to /etc/modprobe.d/blacklist </span> </p> <p dir="ltr"> <span style=";font-family:trebuchet ms,geneva;font-size:14;" > blacklist net-pf-10<br />blacklist ipv6</span> </p> <span style="font-size:14;"> Then change the following option at /etc/sysconfig/network to be as follows; </span> <br /><span style=";font-family:trebuchet ms,geneva;font-size:14;" > NETWORKING_IPV6=no</span> <br /><span style="font-size:14;"> </span><br /> <span style="font-size:14;"> Then reboot the machine and have fun! :)<br /></span></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-88436488960816964622007-02-02T19:57:00.000+02:002008-01-11T20:04:35.714+02:00المقامة الهريدية<div style="text-align: right; font-family: tahoma;"><p> <span style="font-size:12;">في يوم من اﻷيام ... كنت مشترك في أحد المنتديات ... ومدير المنتدى ظلمني ظلم بين</span> </p> <p> <span style="font-size:12;">المشكلة إني كنت باحبه جدا وباقدره ﻷبعد الحدود .. لكن المشكلة اﻷكبر أني لم أكن أول الضحايا ... كان مدير المنتدى وهو في ذات الوقت صاحبه يظن أنه يملك الحق المطلق في أن يفعل ما شاء في أعضاء المنتدى بحجة أن "من حكم في ماله فما ظلم" ونسي هذا أن منتداه الذي كان زاخما بالموضوعات الممتعة الشيقة الدسمة فكرا وثقافة وحورا وعلما لم يكن هو صاحب هذه الموضوعات ولا هذا المشاركات ... ونسي أنه لو كان يكتب وحده في منتداه لما تحقق لهو أبدا ذلك النجاح ... </span> </p><br /> <p> <span style="font-size:12;">انتابت صاحبنا فجأة شعور جارف بحب التسلط والدكتاتورية المطلقة وقرر أن يضحي باﻷعضاء الذين صار لهم شوكة أكبر منه في المنتدى .. حقيقة لم أكن من هؤلاء ... لكني لم أشأ أن أقف مكتوف اليدين فبدأت أكتب وأنتقد وأحارب فتم إيقاف عضويتي ... وفي غمرة تلك اﻷحداث كتبت هذه المقامة بتاريخ 24 فبراير 2006 </span> </p> <p> <span style="font-size:12;">ونشرت المقامة في موقعه وفي موقع آخر صديق ... بالطبع كان حذفها من موقعه أمرا متوقعا ... لكن أن تحذف من موقع آخر رغم حذفي لكل الكلمات التي تدل على هوية المقصود واسميتها استثناءا "المقامة البلطجية" إلا أنها حذفت بدعوى التجريح ... ومن هنا قررت أن انشرها كما هي دون أية تعديل </span> </p> <p> <span style="font-size:12;">------------------------------------------------------- </span> </p> <p> <span style="font-size:12;">كان يا ما كان ... كان فيه واحد في هذا العصر والاوان ... بيسمى نفسه هريدي ... قال يعني الواد صعيدي الواد كان مغرور .... ومش واخد باله أنه حتة صرصور<br />كان عنده موقع الناس بتدخل فيه ... خدع الناس بشكل الموقع وبكلامه فيه .... وأتاريه كان دافن في قلبه حقد دفين ... وأتاري الحقد ما بيمشيش حتى مع مر السنين<br />ظلم ناس كتير .. والناس عفت عنه برضه كتير ... لحد ما تعدى قوي الحدود ... فقرروا أن يقيموا عليه الحدود ...<br />ياما بالذوق كلموه ... ووَسَّطوا ناس كبار يفهموه ... حاولوا ينصحوه ... حاولوا يصلحوه ... كانوا دايما بيرغبوه ...<br />لكن اللي راكب دماغه ... ومقعد الشياطين في راسه ... ومعللي صوت الحقد على صوت الضمير ... وضميره زهق منه ونام بشخير ...لا يمكن راح ينصلح حاله ... إلا بخبطة توجعه ومصيبة جايَّالُه ...<br />ولأن ظلمه كتر واتكرر .. وبقى بيفسد كتير ما بيعمَّر ... كان لازم يتفَوَّق ... وبعصاية حلوة يترَوَّق ... وكان لازم يتفضح أمره ... عشان يبطل يخدع الناس طول عمره ... ودا مش انتقام ... لكن ده نهي عن المنكر وأخذ على يد الظلاَّم ...<br />ولأن عم هريدي .. هوا صاحب القعدة ... اللي عملها دار ندوة ... ولأنه بيملك الإعلام ... والسلطة كمان بالتمام ... قعد يشوه صورة الغايبين ... اللي بأمره بقوا مش موجودين ... يقول عليهم إرهابيين ... عملاء ومجانين ... مدمرين شرانيين ... وأنا هريدي الكبير ... لازم أخوض حرب التطهير ... ضد الكلاب والحمير ... عشان القهوة تكون بسلام ... والعالم في هدوء ينام ... وما يكون هنا للشرذمة أعلام ...<br />دية كانت نهاية البداية ... لقصة معروفة ... حرب بين الحمام والحداية ... لازم الحمام في يوم هيعيش ... حر ويتخلص من الخفافيش ... وهتموت الحداية ... حتما في النهاية ... مش على إيد الحمام إنما ... على إيد - برضه - حداية</span> </p> <span style="font-size:12;"></span></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-16535163785390195462007-01-11T19:53:00.000+02:002008-01-11T19:56:23.025+02:00وشل جدي ... سقط حضرة الناظر!!<div style="text-align: right;"><span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;">كتبت هذه القصة ونشرتها على الإنترنت ﻷول مرة بتاريخ 14 يوليو 2004<br /><br />وكنت قد كتبتها على ثلاثة أجزاء .. أنشرهم هنا دفعة واحدة<br /><br />وهي قصة حقيقة بكل تفاصيلها<br /><br />1<br />جدي هذا الرجل الشديد الصلب يبكي ... ياللعجب! .. ماذا حدث.. وتكاد جدتي تقسم بالله أنها لم تره يبكي في حياته أبدا فقط ذلك اليوم .. أذكر كيف كان شديدا جدا معي منذ الصغر عندما كان يدرس لي بعض المواد فقد كان معلما بارزا ... "حضرة الناظر" أو "عبد العزيز أفندي" هكذا كان يناديه الجميع ... كانوا جميعا يهابونه ... إذا قدم وقفوا حتى العمدة أو هذا الرجل الوجيه أو ذاك الغني ... لكنه بكي ... وسقط ... منذ سنين وجدي البالغ من العمر ما يقارب التسعين عاما لا يترك صلاة الجماعة في المسجد ... قبل الصلاة بثلث ساعة يكون هناك .. قيام الليل لا يفوته كل ليلة .. رجل من هذا الطراز لن يكون بكاؤه أبدا على متاع زائل ولن يتهاوى عبد العزيز أفندي لأجل غنيمة فاتته أو حفنة من المال خسرها ..<br /><br />إذا لماذا سقط؟؟؟؟؟؟؟ ولم تهاوى؟؟؟؟؟؟؟ لقد شل نصف جسده -أسأل الله أن يرحمه ويرزقه الصبر ويشف مرضه-<br /></span> ...<span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;"><br /></span> <p> <span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;">2</span><span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;"><br />"واإسلاماه ! رحماك يارب! أكل هذا بذنبي! " ظلت أعماقي تردد هذه الكلمات وأنا أستمع إلى المذياع ... واستأنف مذيع الأخبار"وقد بدأ القصف بصواريخ من السفن في الخليج العربي على بغداد" ... كان حقا يوم العشرين من مارس يوما حزينا .. طوال اليوم وبعدها بأيام لا تكاد أذني تفارق المذياع وأنا أعتصر ألما .. كنت حينها في القاهرة في المدينة الجامعية وقد مضت فترة منذ أن رأيت أهلي اخر مرة ... عقدت العزم على الرحيل ... ليس إلى أهلي إنما إلى تلك الأرض التي يدنسها ألأمريكان ... حلمت وقتها بالجهاد والشهادة وقد أشاعوا أنه من يريد أن يذهب إلى العراق مجاهدا أرسلناه ... لكن أخا عزيزا أقنعي على مضض أن أتريث لأنظر ماذا يصير ... وانكشف الأكذوبة بعدها فقد كانت الإشاعة مؤامرة .. سافرت إلى قريتي الحبيبة كي أحتضن ترابها عساها تخفف من شوقي لرمال بغداد ... لكن الوجوه كانت حزينة ... بعدها عرفت أن أحاسيسي هذه وتعبيرات الناس من حولي ينقص معظمها الصدق بل تتهم بالنفاق حتى يثبت العكس ... عرفت هذه النتيجة بعدما بلغني نبأ جدي</span> </p> <p> </p> <span style="font-size: 12pt;"><span style="font-family: tahoma,arial,helvetica,sans-serif;">3<br /><br />منذ سنين وجدي يملكون الرائي*بقنواته المحلية التي لاتكاد تعرض شيئا من الحقيقة إلا ما وافق أهواء الحكومات أو للتنفيس عن الناس خشية الإنفجار ... فقط ومنذ حوالي السنتين اشترينا هذا الطبق لنشاهد القنوات الفضائية نفورا من هذا الإفك الإعلامي الذي يبعث على الملل ورغبة في التعرف على العالم مجردا من الشوائب .... ووصلت وصلة إلى الرائي عند جدي ... كثيرا ما قالت لي جدتي "ياعمرو رجعلنا القنوات العادية إحنا ما بنتحملش المناظر اللي بيجيوها في الدش دي" ... دخلت المنزل عند عودتي من السفر وأخبرت أني جدي مريض بشدة ... توجهت فورا إلى الشقة المقابلة حيث يسكن جدي ... نظرت إليه وهو ملقى على الفراش وزاد حزني منظر عينيه اللتان لا يستطيع فتحهما ... لم يستطع حتى أن يتعرف عليّ... رغم أني كلمته إلا أنه بعدما تحسن قليلا سألهم "هو عمرو ما جاش شافني ليه؟؟؟؟" ... كان نصفه الأيمن مشلولا تماما ... وأثبتت الاشعة أنه أصيب بجلطة في المخ ... تقصيت الأمر لأعرف كيف حدث هذا ... كان جالسا قبيل صلاة الجمعة يشاهد الأخبار يشاهد ذبحا في أطفال العراق واغتصابا لنساء العراق ... يشاهد امتهانا لكرامة المسلمين وبوش يفي بوعده ويرسل الحملة الصليبية كما أسماها هو إلى بغداد ... يشاهد عاصمة الخلافة العباسية تسقط والقبلة الأولى تدنس تدنيسا فوق تدنيس ... فبكى .. نعم، بكى ... أول مرة يراه أحد يبكي ... لعله تذكر ضعف قواه وأنه لايطيق الجهاد دفاعا عن عرض رجل مسلم ينتهك فبكى ... أو لعله تذكر كيف بذل المسلمون الأولون كل غال ونفيس لديهم في فتوح العراق ثم أضعناها نحن فبكى ... أو لعله نظر إلى حالنا وكيف أننا في نعم تحصى ولنا إخوة في الدين لا مأوى ولا مأمن لهم فبكى ... أو لعله صدق في حمل هم المسلمين فبكى ... بكى عبد العزيز أفندي ... ومن شدة تألمه أصابته الجلطة ... وسقط حضرة الناظر ... لكنه سمع المؤذن ينادي "حي على الصلاة ... حي على الفلاح" فأصر أن يذهب إلى الصلاة ... وذهب وصلى أخر صلاة له قي المسجد ... ومن يومها شعاره "فصبر جميل" ... وأمله أن يكون من الذين ابتلاهم الله فشكروا ليس فقط صبروا بل شكروا ... شفاك الله ياجدي ورحمك ورزقك الحسنى<br />________________________________________________<br />* الرائي : يقصد به التلفاز وهم اسم فاعل بمعنى اسم المفعول وقد استخدم هذا المصطلح الشيخ علي الطنطاوي في بعض كتبه</span></span></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-87791235366496417752007-01-11T19:34:00.000+02:002008-01-11T19:53:03.565+02:00جاءنا الخبر اليقين<div style="text-align: right;"><span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;"> جاءنا الخبر اليقين<br /><br />أن صاحب عرش مصر المكين<br /><br /> قد أمر بالهدية<br /><br />تقدم للشعب عرفانا وتحية<br /><br />تعديلات مبهرة<br /><br />للدستور مدمرة<br /><br />لذيذةٌُ جميلةُُ <br /><br />كقطتي نيرة<br /><br />لكل فرد حقهُ<br /><br />كامل لا ينتقص<br /><br />في أن يحوز وحده<br /><br />زنزانة كالفقص<br /><br /> ولكل مظلوم صلاحية<br /><br />ان ينهق ما شاء في البرية<br /><br />ولكل ضحية<br /><br />ان يستنجد بالدستور<br />وان يرفع الشكوى<br /><br />للحاكم الجسور<br /><br />لتحل له القضية<br /><br />وتستبدل زنزانته السوداء<br /><br />بزنزانة وردية </span></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-36361840883836794112007-01-10T19:29:00.000+02:002008-01-11T19:32:53.881+02:00When the `Broken pipe' got fixed.. A story of success :)<div align="left"> <span style="font-size: 12pt; font-family: Trebuchet MS;">Alhamdo lilah .. alhamdo lilah alone, I could fix a serious problem on one of our company servers which is hosting one of the top 500 websites according to Alexa ... </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">I've written this report so as other can make use of it ... maybe it can help someone somewhere at any point of time ... This report was written by me to be sent to my manager so it may look sometime offensive or too official , I've just made few changes to it before publishing ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">This report will be divided into 3 parts ...</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> -the 1st parts contains the symptoms of the problem I've found</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> -the 2nd part contains steps I've done in detail to diagnose and solve the problem</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> -the 3rd part contains some scientific comments regarding this issue .. many of them I've just learned ...</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"><br /></span></span> </div> <div align="left"><br /></div> <span style="font-size: 12pt; font-family: Trebuchet MS;"> </span> <div align="left"> <span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"> *Note: In our company there really too much bureaucracy specially regarding some servers, on one them the problem occurred, so I wasn't allowed to do reboot the server, I didn't wish to do it here really, do any significant changes without asking for permission and waiting for very long time, maybe a month or so, for them to say "what did you ask for??' ....</span></span><span style="font-size: 12pt; font-family: Trebuchet MS;"></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"> *Notes: 1- I haven't done any irreversible changes</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"> 2- most of the changes I've made were temporary and had no effect on the running services ... Most of them I've already reset, unless mentioned</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"> 3- I didn't change any configuration file of any running services "the services which the server is running for" ...</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"> 5- I didn't reboot the server</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);"> 6- I didn't install any new software or removed any installed software but clamav , installed then removed, and zsh for testing purposes </span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="font-size: 14pt;"><span style="font-weight: bold; text-decoration: underline; font-style: italic; color: rgb(204, 102, 0);"> 1st section: Symptoms of the problem:</span></span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"><span style="font-size: 14pt;"> </span>1- Login failures : you've to try usually up to ten times or more to get the shell running ... as soon as you login you get "connection closed" .. nothing appears in the logs regarding this ..</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> 2- Most of the commands - including; ls , w , top, ps - just exits as soon as they run with no output at all ... and you'd to run the command too many times until it runs successfully once</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> 3- Even the shell scripts didn't run successfully until you try many times .. this includes ; init scripts , multi-check , even the services command itself ... etc.</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> 4- Normal interactive shells ran better than login shells .. this applies to bash, csh, zsh and ash .. but the normal shells were not 100% normal , just about 60% ..</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"><span style="color: rgb(51, 102, 255);"> = These were enough I think to feel how serious it was ...</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="text-decoration: underline; font-style: italic; font-weight: bold; font-size: 14pt; color: rgb(204, 102, 0);">2nd section: Steps I've done in detail:</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"><span style="color: rgb(51, 102, 255);"> I cannot remember everything as I've worked continuously for 3 following days but I'm writing all what I can remember, insha'Allah ..</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> <span style="color: rgb(51, 102, 255);">Note: when I say "this attempt failed", it means "the problem didn't get fixed after doing the attempt" not that "I couldn't do the attempt itself"</span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"><span style="color: rgb(51, 102, 255);">=I've checked all the logs too many times while working .. </span></span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> 1- I cannot remember why I logged in there but that's what happened.. I logged in and noticed many suspicious things, the commands didn't run as supposed and some other symptoms, so I downloaded the latest version of clamav , updated its virus database with "freshclam" command then started scan ... at 1st scanned the home directories , then the main system directories "/usr/ , /bin/ , /sbin, ... etc" and then did a full system scan ... the only important results found was a weak php.shell script which, practically, cannot cause the noticed harm to the system even if could be used successfully by an attacker ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">2- I've downloaded rkhunter and chkrootkit tools and did a scan to catch rootkits if any ... they gave negative results .... "no bad files found"</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">3- I've tried to run "bash" and many other shells from the command prompt but my attempts failed ...</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">4- Then ran the command "exec bash" ... the "exec" command replaces the current shell with command executed by it, giving it the same process ID and inheriting some info from the memory containing "environment variables" and so ... I was kicked off the session as soon as I ran the command ... the command was supposed to run a new "normal interactive shell" not a login shell as the currently running one .. the normal shell doesn't read settings from <span style="font-style: italic;">"profile*" </span>but only from <span style="font-style: italic;">"bashrc" </span>... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">5- I've then compared the installed packages on this server with another server of the same configuration ... both have the same system version, both are 64bit edition and basic packages versions were the same ... I thought that maybe a hacker could hack into the system and change too many binary files and change the shell settings, while he didn't wish to stop any services or causing serious corruption so as to make use of the system as long as possible without being noticed ... so I've token a backup of /bin, /sbin, /usr/bin, /usr/sbin and shell settings files, including personal and system wide, on both servers then overwrote the files in this server with those from the other twin server .. this attempts failed too ... </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">I've even compared the "shell's local and environment variables" with other servers one by one but got a negative results ...</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">6- I then thought, OK OK, lets suppose that there is more wide corruption in the base packages .. why not forcibly install these packages ?!! .. then downloaded "bash, procps , coreutils and even rpm itself" RPMs , of course the same version as installed and same architecture , and forcibly installed them ... this attempt failed too..</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">7- Then I thought that maybe the applications couldn't deal with the hardware or the "/proc" fine for any reason ... so umounted and re-mounted the /proc and restarted the haldaemon service ... this attempt failed too ...</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">8- Then , OK, the system now is running for too long time ... maybe there is a limit in the kernel for the processes or threads which the system reached ... I couldn't run ps nor its children, ps -<span class="misspell">ef</span> or ps aux, freely to see PIDs and total number of processes .. so examined the /proc and found that </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">/proc/sys/kernel/pid_max = 32768</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">and </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">/proc/sys/kernel/threads-max = 81920</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">so did some googling and found that these limits can be increased too much more in the 64bit systems ... but also these values can be memory eating if too high.... so changed them to following limits by echo ;</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">echo 100000 > /proc/sys/kernel/pid_max</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">echo 120000 > /proc/sys/kernel/threads-max</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">This attempt failed too ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">9- On the next day, the last day , My new raw manager talked to some people on CentOS IRC channel .. they have tried to troubleshoot a bit with us and all attempts failed then claimed that "you must update the kernel" ... I felt that this problem will surely be resolved if we just rebooted the system even if no kernel update was made ... then my manager made a plan and told me about it .. it was to make a redundant server in case we restarted this one and it failed so we can just switch IPs ... I asked him to give me some more chance and went on ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">10- Through the previous attempts I used to "exec csh" shell and start working, sometimes zsh too ... so I tried to change the root login shell to csh in /etc/passwd ... but the login csh shell acted exactly like the login bash shell ... both acted bad ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">11- The normal "csh" shell started by "exec csh" acted better, but sometimes it said "Broken pipe" ... so caught an idea from this point and started to re-investigate .. </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">what about bash? why it doesn't say the same?</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">can it be a broken library ?</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">can it be a kernel bug in pipefs ?</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">12- </span><span style="font-size: 12pt; font-family: Trebuchet MS;">what about bash? why it doesn't say the same? .. it really does but silently .. </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">I found that all the unsuccessful commands exited with same "exit code", called also "exit status" , "141" ... <span style="color: rgb(51, 102, 255);">"you can know the exit status of any command by running "echo $?" just after the command exits"</span> ... so googled and found that this is the exit status of "Broken pipe" of bash ... I tried to google much more to know what can cause this "Broken pipe" but nothing found .. all were talking about "how to build a C program which can skip or handle broken pipe" or "some body was running a <span class="misspell">perl</span> or shell script which had a real problem so giving `Broken pipe' " ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">13- </span><span style="font-size: 12pt; font-family: Trebuchet MS;">can it be a kernel bug in pipefs ? ... didn't find any thing useful regarding this and the newest bug reported regarding kernel pipefs was too old , in kernel series 2.2.x as I can remember ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">14- </span><span style="font-size: 12pt; font-family: Trebuchet MS;">can it be a broken library ? ... OK ... maybe, yes ... then I've run "rpm -<span class="misspell">aV</span>" which verifies all files from all installed packages ... them got a list of all the changes files it reported, queried their RPMs , and downloaded all of them, about 138 package, with the same version and from official mirrors and forcibly installed them all, some by some ... then I noticed some improvement for moments but it was fake ... this attempt failed too .. "these packages included many of the main system libraries" ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">15- after few minutes I've ran rpm -<span class="misspell">aV</span> again ... and found that some of the just installed files got changed ... so started thinking "can there be an sudoer who has root privileges and is playing with me?" ... and yes found one .. "zabbix" user was an sudoer who could run ALL system commands without even asking for password ... so I've compared the /etc/sudoers file with the files on other servers where zabbix agent or server was running and found that zabbix isn't an sudoer on those servers ... so I ran "visudo", the command used to change the /etc/sudoers file, edited it and commented the line of zabbix ... I hope this solved a security problem ... but it didn't help with the problem-in-action at all ... </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">16- So started to read and search deeper and deeper on pipefs , SIGPIPE, and "Broken pipe" .... then caught something; <span style="color: rgb(51, 102, 255);">"pipe" from a kernel point of view doesn't mean only "pipes" but can, also, mean sockets and other FIFO files </span>.... so, OK , can there be a maximum limit for sockets ? does the "sockets" that appear in "netstat -a" count on this limit? can there be a process using too many sockets to the limit that effect other processes ? </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">17- then ran "netstat -a" and noticed a process called nscd using too many sockets .. then "Yes, that's a service, why not restart it?" .. <span style="color: rgb(51, 102, 255);">restarted it and found that the problem got fixed ... yes it got fixed .. tried again and again ... and yes it got fixed .... the `Broken pipe' got fixed :), alhamdo lilah </span> ... </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">"the nscd </span><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">caches name service lookups. It can dramatically improve performance with <span class="misspell">NIS</span>+ and may help with DNS as well.", the official definition says... </span></span><br /><span style="font-size: 12pt;"></span><br /><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">18- I tried to stop the service and watch the </span></span><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">/proc/net/sockstat file ;</span></span><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;"> the "sockets: used" value was more than 1100 </span></span><br /><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">started it again and watched </span></span><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">/proc/net/sockstat ; </span></span><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">the "sockets: used" value was still nearly the same ... </span></span><br /><span style="font-size: 12pt;"><span style="font-family: Trebuchet MS;">so stopped it and watched "netstat -a" and found that nscd is still using too many sockets even when the service was stopped ... so I checked the running processes and found that there are still some nscd processes .. so "killall -9 nscd" and it worked then ... the "sockets: used" value doesn't exceed 120 when nscd is really stopped .... so I've stopped it and turned it off on startup ... I think it's nearly useless on that server ... any way that a reversible change ...</span></span><br /><span style="font-size: 12pt;"></span><br /><span style="font-size: 12pt;"></span><br /><span style="font-size: 12pt;"></span><span style="font-size: 12pt; font-family: Trebuchet MS;">19- I've done too many different tests continuously for more than 2 hours to make sure that the problem got fixed and, alhamdo lilah, none failed ...</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> =Now it's too many days after the problem and it didn't occur again ... </span><br /><br /><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"><span style="font-weight: bold; font-style: italic; text-decoration: underline; font-size: 14pt; color: rgb(204, 102, 0);">3rd Section; </span></span><span style="font-weight: bold; font-style: italic; text-decoration: underline; font-size: 14pt; font-family: Trebuchet MS; color: rgb(204, 102, 0);">some scientific comments regarding this issue:</span><br /><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">1-Regarding maximum threads and maximum pid .. </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">-threads-max:</span><br /></div> <p style="font-family: Trebuchet MS;" align="left"> <span style="font-size: 12pt;">In 2.3.<span class="emphasis"><em>x</em></span>, it is a tunable parameter which defaults to <span class="emphasis"><em>size-of-memory-in-the-system</em></span> / <span class="emphasis"><em>kernel-stack-size</em></span> / 2. Suppose you have 512MB of RAM; then, the default upper limit of available processes will be 512*1024*1024 / 8192 / 2 = 32768. Now, 32768 processes might sound like a lot, but for an enterprise-wide Linux server with a database and many connections from a LAN or the Internet, it is a very reasonable number. I have personally seen UNIX boxes with a higher number of active processes. It might make sense to adjust this parameter in your installation. In 2.3.<span class="emphasis"><em>x</em></span>, you can also increase the maximum number of tasks via a <span class="bold"><span class="misspell">sysctl</span></span> at <span class="misspell">runtime</span>. Suppose the administrator wants to increase the number of concurrent tasks to 40,000. He will have to do only this (as root):</span> </p> <div align="left"> </div> <div align="left"> <pre class="programlisting" style="font-family: Trebuchet MS;"><span style="font-size: 12pt;">echo 40000 > /proc/sys/kernel/threads-max<br /><br /></span> </pre> </div> <dl style="font-family: Trebuchet MS;"><dt><span style="font-size: 12pt;"><br /></span></dt><dt> <div align="left"> <span style="font-size: 12pt;">-pid_max:<br /></span> </div> </dt><dt> <div align="left"> <span style="font-size: 12pt;">/proc/sys/kernel/pid_max</span> </div> </dt><dd> <div align="left"> <span style="font-size: 12pt;">This file (new in Linux 2.5) specifies the value at which PIDs wrap around (i.e., the value in this file is one greater than the maximum PID). The default value for this file, 32768, results in the same range of PIDs as on earlier kernels. On 32-bit <span class="misspell">platfroms</span>, 32768 is the maximum value for pid_max. On 64-bit systems, pid_max can be set to any value up to 2^22 (PID_MAX_LIMIT, approximately 4 million).</span> </div> </dd></dl> <br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">2-Regarding `Broken pipe' :</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">-What's a pipe ?</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">In Unix-like computer operating systems, a pipeline is the original software pipeline: a set of processes chained by their standard streams, so that the output of each process (<span class="misspell">stdout</span>) feeds directly as input (<span class="misspell">stdin</span>) of the next one. Each connection is implemented by an anonymous pipe. Filter programs are often used in this configuration.</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">This can also be used by a process to communicate with its children .. <span style="color: rgb(51, 102, 255);">"And here was the problem we had, I think, the shell couldn't communicate the commands it runs "its children" and the commands could talk back to the shell so got SIGPIPE and terminated" </span>.. </span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">-Broken pipe is the message a process gets when it tried to write on a pipe with no readers ... a process can handle this signal and skip it but the default is to got terminated ... </span><span style="font-size: 12pt; font-family: Trebuchet MS;">"The kernel will send the SIGPIPE signal when the remote end closes or shuts down the socket and you try to send/write. The default signal handler will terminate your program."</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> SIGPIPE 13 Broken pipe: write to pipe with no readers</span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">This signal is sent to processes doing network connections, network sockets, and to normal processes using pipe for internal communication or I/O redirection ..</span><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;"> 3-Regarding nscd: </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">I've found that it had an old bug which they say about </span>"Note that you can't use nscd with 2.0 kernels because of bugs in the kernel-side thread support. Unfortunately, nscd happens to hit these bugs particularly hard."<span style="font-size: 12pt; font-family: Trebuchet MS;"> </span><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">I've no idea if there bug can be related to ours or not ... </span><br /><br /><br /><br /><span style="font-size: 12pt; font-family: Trebuchet MS;">huh ... finally, alhamdo lilah, I worked on this report for over than 3 hours and a half... </span>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-32819216189099023572006-12-11T18:26:00.000+02:002008-01-11T18:30:38.321+02:00سحقا لها!<div style="text-align: right; font-family: tahoma;">في كل يوم مصيبة بسببها ... تقلب فرحي حزنا وراحتى تنغيصا وكدرا...في كل محاولة لإخراجها من حياتي أخسر أقرب الناس إلي .... لماذا؟<br /><br />ما الذي يجبرني على اختيارها؟ لما تفرق بيني وبين أهلي؟ لماذا تفرق بيني وبين أبي وأمي؟<br /><br />سحقا لكلام الناس عنها ... سحقا لتلك النسخة من الأفكار التي يرثها الفرد في مجتمعنا كما يرث صفاته الجسمية من الطول والقصر<br /><br /><br /><br />أما آن أن نقتل اﻵفكار الموروثة ... نعم ربما فيها بعض الصدق والحقيقة ... أنا لا أعنى أن نفجر تلك اﻷفكار الموروثة بقنبلة نووية ... فقط يا قوم أعيدوا التفكير والنظر ... ما الذي يجبركم على حبس انفسكم في تلك الغرفة الضيقة من اﻷفكار الجامدة المتخلفة ...<br /><br />اخرجوا للنور ... هناك عالم آخر لم تروه بعد .. ولن تروه حتى تكسروا جدران الحجرة المغلقة ... اخرجوا من زنازين أفكاركم ...<br /><br />في أوطاننا حين يولد الإنسان يبدأ من حوله فورا في استنساخ تلك المجموعة المشوهة القديمة الجامدة من اﻷفكار في عقل الوليد ... يخرج معها الوليد إلى الحياة مفتقدا كل معاني التغيير ... يفقتد كل ملكات الإبداع والابتكار ... يفتقد حتى مجرد تخيل التغيير ... مجرد الفكرة ... لقد عاتب الله الكافرين في كتابه أشد العتاب في مواضع كثيرة ﻷنهم لم يحاولوا إعادة النظر فيما كان عليه آباؤهم ... "إنا وجدنا آباءنا على أمة وإنا على آثارهم مهتدون" .. " قالوا بل نتبع ما ألفينا عليه آباءنا آو لو كان آباؤهم لا يعقلون شيئاً ولا يهتدون" ...<br /><br /><br /><br />أعود لها ... قال لي صديقي مرة:( هتتعب كتير ﻷنك بتفكر بشكل مختلف وﻷنك بتخرج عن المألوف وأي حد بيخرج عن المألوف لازم بيواجه صعوبات كتير) ... صدقت صديقي والله ... فكرة الناس عنها أنها القمة ودونها قاع صفصف ... وأن من يتركها إلى سواها هالك أحمق ... لا ينظرون إلى أن لكل إنسان نظرة مختلفة وكل فرد خصائص نفسية وفكرية تختلف كاختلاف الصفات الجسمية بل أشد اختلافا ...<br />لذلك أبغضها ... أكرهها وسأظل أكرهها وإن لازمتني ولازمني عارها ... سحقا لها ... سحقا لها حتى يفيق الناس من غفواتهم ... سحقا لها حتى ينخلع عنها ذاك الغطاء وتظهر حقيقتها المرة الفاضحة الفاحشة ...<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />ابغضك كليتي ... والله أبغضك يا كلية الطب من كل قلبي .... أبغضك أشد ما ابغضت شيئا في حياتي ... أبغضك يا مسببة الهموم والكروب ... أبغضك يا من حرمتيني سنوات من راحة البال ... أبغضك يا نغصت عيشي ... أبغضك يا من فرقت بيني وبين أهلى ... أبغضك!! أبغضك!! ... لا يعنيني أن الذنب ليس ذنبك وأنه ذنب الناس وصورتهم عنك ...<br /><br />آه ... كم أتمنى زوالك من الوجود ... كم أتمنى دمارك ... كم أتمنى أن يجيء يوم يحتقرك فيه كل مخلوق<br />سحقا لك!</div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-9250515105041079352006-12-05T18:23:00.000+02:002008-01-11T18:26:17.254+02:00من يغار على الوطن؟<p> <span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;">يا سيدي<br />هذا الوطن<br />هذا الشجن<br />هذي دروب للمحن<br /><br />الكل ينتهك الفريسة<br />الكل يغتصب الضحية<br /><br />مات اﻷسد </span> </p> <p> <span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;">مات الغيور </span> </p> <p> <span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;"> الخنزير ملك الغابة ؟؟!! </span> </p> <p> </p> <p> <span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;">فليحيا عصر الديوث</span> </p> <span style="font-size: 12pt; font-family: tahoma,arial,helvetica,sans-serif;"> فليحيا عصر الديوث</span>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-61190452202291404162006-12-02T17:23:00.000+02:002008-01-11T18:21:38.847+02:00الكتابة ... ذلك العلاج الناجع<div style="text-align: right;"><p dir="rtl" align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >كثيرا ما كانت الكتابة هي العلاج الذي ألجأ إيه</span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >لكن هذه المرة لم اتوقع أبدا أن يكون الأمر بهذا القدر من التأثير </span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >بعد أن كتبت أول مقالة لي في هذه المدونة لا حظت على نفسي تغيرات كثيرة ... حتى من حولي لاحظوها وحدثوني عنها .. جل هذه التغيرات إيجابي بحمد الله </span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >أصبح نومي أقل ثقلا .... كان نومي ثقيلا بشكل بشع ... شكل يصعب وصفه أذكر أنني منذ حوالي اسبوعين ضبطت منبه المحمول وكذلك التلفاز ضبطته على قناة "وش" ورفعت صوته لأعلى درجة ... ضبطت كليهما على الساعة الرابعة عصرا لأستيقظ .. ...فجأة استيقظت على صوت ابن خالي - الذي اسكن أنا وهو في نفس الشقة - في الساعة الخامسة وقد عاد من كليته .... أي أنني ولمدة ساعة كاملة لم اسمع صوت التفاز المزعج أو المحمول المنبه .. </span><span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >اصبحت الآن بحمد الله استيقظ دون منبه وبعد عدد معقول من ساعات النوم ... واسمع نداء من يوقظني من أول مرة بالرغم من كوني مرهقا قبل النوم ... أسأل الله أن يديم على هذه النعمة </span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >الشيء الآخر الجميل هو أنني بدأت أحسن أنني أصفى نفسا واهدى بالا ... بدأت أحسن أنني بدأت اشتم هواءا أنقى من ذي قبل ... </span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" > أصبحت بحمد الله أكثر تركيزا واستيعابا ... وأكثر تحملا للضغط النفسي ولا أدل على ذلك من تحملي لمديري الجديد في العمل واسلوبه شديد الاستفزاز أحيانا ... </span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >آمل أن استمر في الكتابة </span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >فما اكتب هو بين صفتين</span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >إما شر أخرجته من نفسي واسترحت</span> </p> <p align="right"> <span style=";font-family:tahoma,arial,helvetica,sans-serif;font-size:10;" >وإما خير زدته إشعاعا وبريقا</span> </p></div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-8103697485921335352006-12-01T17:16:00.000+02:002008-01-11T17:22:32.655+02:00Prevent spam attacks from taking your system's resources<div style="text-align: right;"><p align="left"> As a Linux administrator in a big webhosting company ... I face this problem from time to time .. </p> <p align="left"> Recently on one of our servers there was a spam attack on one of its accounts ... The attack raised the load too much some times and caused things to be slow ... </p> <p align="left"> I was planning to do script that scans for incoming connection and block IP exceeding specific number of connections but it's not that effective idea and I've shot it already ... </p> <p align="left"> I did want something to limit number of connection per IP per minutes on a specific port and yes!! The wonderful amazing "iptables" can do it!! ...<br /></p> <div align="left"> Using iptables to rate-limit incoming connections is something great and here is a toturial explaining it in more details <a href="http://www.debian-administration.org/articles/187" target="_blank">http://www.debian-administration.org/articles/187</a> .. </div> <p align="left"> For the issue I faced on ... The following rules are the true to prevent spam attack </p> <div align="left"> </div> <p align="left"> </p> <div align="left"> </div> <p align="left"> iptables -A INPUT -p tcp --dport 25 -m state --state NEW -m recent --set --name recentsmtp<br /><br /> iptables -A INPUT -p tcp --dport 25 -m state --state NEW -m recent --name recentsmtp --update --seconds 60 --hitcount 4 -j REJECT<br /><br /> iptables -A INPUT -j ACCEPT -p tcp --destination-port 25 </p> <div align="left"> </div> <p align="left"> </p> <div align="left"> </div> <p align="left"> </p> <div align="left"> </div> <p align="left"> If you are using apf ... you should add the following two line in /etc/apf/firewall just after this section "# Allow all traffic on the loopback interface" for this to take effect </p> <div align="left"> </div> <p align="left"> #Prevent Spam attack // Added By You<br />iptables -A INPUT -p tcp --dport 25 -m state --state NEW -m recent --set --name recentsmtp<br />iptables -A INPUT -p tcp --dport 25 -m state --state NEW -m recent --name recentsmtp --update --seconds 60 --hitcount 4 -j REJECT </p> <div align="left"> </div> <p align="left"> </p> <div align="left"> </div> <p align="left"> Then save and restart apf ... it should work fine then .. </p> <div align="left"> </div> I tested that and it really worked so fine, alhamdo lilah</div>Amr_not_Amrhttp://www.blogger.com/profile/13587127328874582386noreply@blogger.comtag:blogger.com,1999:blog-1326504627034329396.post-44914945827013554612006-11-30T23:11:00.000+02:002008-01-11T17:24:12.766+02:00واقعة عجيبة<div style="text-align: right;"><p style="margin-bottom: 0in;" align="left"> <span style="font-size:12;">موضوع كده حصل لي يوم 30 نوفمبر 2006</span> </p> <p style="margin-bottom: 0in;" align="left"> <span style="font-size:12;">ودي نص محادثة بيني وبين صديق ليا بعد ما حصل بشوية صغيرين</span> </p> <p style="margin-bottom: 0in;" align="left"> <span style="color: rgb(32, 74, 135);"> <strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">فيه حاجة غريبة كده حصلت لي من شوية </span></span><span style="font-size:12;">...</span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-size:12;">??</span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">أنا كنت شغال عادي من الساعة </span></span><span style="font-size:12;">1 ... </span><span style="font-family:Tahoma;"><span style="font-size:12;">المهم </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">الساعة </span></span><span style="font-size:12;">7 </span><span style="font-family:Tahoma;"><span style="font-size:12;">وشوية كده جبت أكل يعني </span></span><span style="font-size:12;">...</span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">كويس</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">وبعدين بعد ما أكلت حسيت إني عايز أنام جامد جدا </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">وما كنتش قادر أقاوم</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">عادي</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">المهم</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">قلت أريح على أي مكتب عندنا في الشركة</span></span> </p> <div align="left"> </div> <p style="margin-bottom: 0in;" align="left"> <span style="color: rgb(204, 0, 0);"> <strong><span style="font-size:12;"><br /></span></strong></span> </p> <p style="margin-bottom: 0in;" align="left"> <span style="color: rgb(204, 0, 0);"> <strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">ماشي ياريس</span></span><span style="font-size:12;">....</span><span style="font-family:Tahoma;"><span style="font-size:12;">المهم نمت على مكتب المد</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">هوا بس بيبقى محتاج متابعة </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">بس أنا نمت </span></span><span style="font-size:12;">... </span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">مكتب المدير ولا إيه؟</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">ههههههه ﻷ ﻷ</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">جيب على مكتب فاضي </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">وحطيت كرسي </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">ونمت </span></span><span style="font-size:12;">...</span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">نمت حوالي ساعة وربع </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">من </span></span><span style="font-size:12;">8 </span><span style="font-family:Tahoma;"><span style="font-size:12;">إلا ربع ل </span></span><span style="font-size:12;">9</span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">حلوين</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">طبيعي لغاية كده</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">تمام</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">كنت نايم اﻷول ودماغي على المكتب نفسه </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">بعدين فقت الساعة </span></span><span style="font-size:12;">9 </span><span style="font-family:Tahoma;"><span style="font-size:12;">وكنت عايز أصحي بقى </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">فريحت دماغي لورا</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">يعني حاولت أنام وأنا قاعد عادي جدا </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">وساند ظهري على الكرسي ودماغي على الحيطة</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">دقيقتين </span></span><span style="font-size:12;">.. 3 </span><span style="font-family:Tahoma;"><span style="font-size:12;">وحاولت أقوم ما عرفتش</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">عظيم</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">؟؟</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">معرفتش إزاي؟</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">مش قادر أشد دماغي من على الحيطة لقدام</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">مش قادر ولا مكسل؟</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">زي ما يكون مثلا فيه مغناطيش قوي جدا ومش قادر أقولمه</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">أقاومه</span></span><span style="font-size:12;">*</span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">مممممم</span></span><span style="font-size:12;">......</span><span style="font-family:Tahoma;"><span style="font-size:12;">ممكن من الإرهاق الشديد</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">ومش قادر افتح عيني </span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">الطبيعي إن اتكفي لقدام مش الزق في الحيطة لورا</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">فتحت عيني مرة بالعافية</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">واتقفلت تاني وما قدرتش افتحها</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">مقدرتش يعني حاسس </span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">فيه شركة تانية معانا في نفس الشقة وفيه ناهم لسه موجودين </span></span><span style="font-size:12;">... </span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">إن جفونك تقيلة</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">تقيلة جدا </span></span><span style="font-size:12;">...</span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">بقاوم بكل قوتي إني افتحها ومش قادر</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-size:12;">:|</span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">حاولت اتكلم</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">بس ده حاجه طبيعية في حالة الإرهاق الشديد</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">يعني الموضوع مش حصلك فاجئه مثلا</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">مفيش داعي للقلق</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">بقى نفسي حد من الشركة التانية ييجي ويشدني يقومني </span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">ﻷ اللي قالقني في الموضوع إني بدأت استجمع كل قوايا</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">عشان أقوم بدأت اﻷول أحاول أوصل إيدي للمكتب عشان امسك فيه واشد نفسي </span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">وطول الوقت ده إنت كنت واعي</span></span><br /><span style="color: rgb(204, 0, 0);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">A doctor Freind:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">ولا نايمان</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">وبدأت أركز بشده إني بس ابعد دماغي عن الحيطة ولو سنتيمتر واحد</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">ﻷ واعي </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">وسامع التيلفون وهوا بيرن </span></span><span style="font-size:12;">... </span><span style="font-family:Tahoma;"><span style="font-size:12;">وسامع صوت أحد من واحد في الشركة وهما ماشيين وبيبفتحوا الباب</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">بدأت أركز جدا إني بس ابعد دماغي عن الحيطة</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">بقيت ازقها لقدام ييجي نص سنتيمتر وترجع تاني</span></span><br /><span style="color: rgb(32, 74, 135);"><span style="font-size:10;"> </span><strong><span style="font-size:12;">Amr:</span></strong></span> <span style="font-family:Tahoma;"><span style="font-size:12;">حوالي </span></span><span style="font-size:12;">5 </span><span style="font-family:Tahoma;"><span style="font-size:12;">دقايق</span></