أبي

يَاْ صَـاحِبِـي تِلـكَ الْحَيَاةُ و

ْمَـا أرَادَ اللهُ فِيـهَا قَـد فَعَـل

ذَهَبَ الذِي مِنْ زُهْدِهِ قد كانَ

ْيكفيــهِ الإدامُ من البَصَـل

َذَهَبَ الذِي لِوجودِه وَصـَــل

ْالفَتىَ و رفيقتيهِ لما وَصَل

ذَهَبَ الذِي كَرِهَ الكذوبَ و إن

ْحباهُ بقيظِ أطيابَ الظُلَل

الصبح

ألا هُبّى بِصَحْنِكِ فاصبِحِينا 

ولا تذَرى صِغَـارِكِ جائعِينا

ٍإذا مَا اصبَحـوا مِن بعدِ ليل

صَحِبنا البدرَ فِيّــهِ مُسمرينا

رَأيّنا النَّجْمَ حِيناً وهوَ يَهوي

شِهَــابـاً مُستَـقـِـرّاً مُستَبِيـنا

إلى الشَمال

حمداً لمَن خَلَقَ الخلائق واصطفـى

من كُـــــلِ أمَةَ ملــــةٍ إمــــــــامها

حمداً يليق بما مَنَح و بما مَنَع من

النــعائمِ ما صغُـــر و كبــيــرَها

كرماً رزقني زَوجةً مطواعةً، و أبناً

و بنتاً في الصفات هما لهــــــا

Adding Selenium tests to Drupal7

Here are some problems I faced when adding selenium to a Drupal7 project I have been working on

1-Test cases are not listed.

Description: when installing the latest Selenium & SimpleTest modules, anything except selenium default tests are not listed in the Configuration/Testing

Fast Solution: Use latest Selenium  module with the default SimpleTest module installed with Drupal core.

2-Running the test case  randomly opens new default Drupal installation.

Description: Simple test is configured to clone the database structure and perform the test cases on this new database so you will not find any of your themes/modules enabled, In some cases the test user created will not be able to login.

Typical Solution: enable the themes/modules when setting up the test and run the patch file shipped with Selenium module without editing it.

Another Solution: run the test cases on the same database (a backup of it of course or whatever!), and this can be done with the following steps

a-Extending the DrupalSeleniumWebTestCase class

class DrupalSeleniumCustomTestCase extends DrupalSeleniumWebTestCase {
    public $onOriginal = TRUE;

Comparing MySQL database versions data

Hello,

This is a script I needed recently to compare the data between two versions of a MySQL database, that was after a crash that happened to a live database and some tables got corrupted so I needed to know what has happened and in the same time there was some new data rows added to tables in the corrupted database that I can't lose,

Searching for a little bit, I found no solution to compare the database versions except some paid tool from redgate, where I won't pay and won't crack :D

Pages