Sunday 23 October 2011

Dua for Bride & Groom after Marraige/Nikah

"Barak Allah hu laka wa baa rak Allah hu alaika wa jama'aa bainakuma fi khair"

"May Allah bless you and shower HIS blessings on you and place goodness between both of you"


"May Allah bless for you (your spouse) and bless you, and may He unite both of you in goodness."

See: Makedua.com

http://allahmohammad.blogspot.com/2008/06/dua-for-bride-groom-after-marraigenikah.html


This Dua and other important Dua are in this book(let) 'Fortress Of Muslim'.

Three types of self or states of spiritual development

There are three types of self or states of spiritual development that have been mentioned in the Qur’an.
The lowest of these is called Nafs Ammarah (12:53), the self that is prone to evil.
Nafs Lawwamah (75:2) is the self that feels conscious of doing evil, resists, repents and tries to amend.
The highest stage of all is Nafs Mutma’innah (89:27) which is when the self achieves full peace and happiness.
Our objectives is to control Nafs Ammarah that urges us to fulfill our baser instincts with no thought for the consequences and ultimately achieve the inner peace that comes Nafs Mutma’innah.


Imam Shafi has rightly said in one of his poetics verses:
“We blame time and the fault is in us,
There is no fault in time except us.”
(Diwan ash-Shafi)

Taken from ‘The Intelligent Heart, The Pure Hear’ by Dr Gohar Mushtaq (Ta Ha)

Saturday 8 October 2011

Get image from mysql database and copy to file system.

Get image (or download image) from mysql database and copy to file system.




// Performing query on database
$querySelect = " select * from products where image is not null order by image limit 1, 5000";
$selectEposResult = mysql_query($querySelect, $link) or die("Query failed to get content.$querySelect");


// Looping through data of the query
while ($line = mysql_fetch_array($selectEposResult, MYSQL_ASSOC)) {

// Other way of loop thogur results, that worked, for colum had to use $line->NAME
//while ($row = mysql_fetch_object($selectEposResult)) {

echo "
Name: " . $line['NAME'];
$imgName = "img_".$line['CODE'];


if($line['IMAGE'] == "" || $line['IMAGE'] == NULL) {

echo $filename."
NULL data";

}
else {
$filename= "/Users/nidb/xxx/$imgName.gif";

$file=fopen($filename, 'w') or die("Can't open file");


if (fwrite($file, $line['IMAGE'])) {
echo $filename."
";
$counter++;
}

fclose($file);
}

}

?>

Friday 7 October 2011

Secure DB network config

Secure db settings

listener.ora

# listener.ora Network Configuration File: /u01/oracle/product/10.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools (NOT, ni).

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/oracle/product/10.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = N1DB.plum)
(ORACLE_HOME = /u01/oracle/product/10.2.0)
(SID_NAME = N1DB)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 80.185.40.40)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)

SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
ADMIN_RESTRICTIONS_LISTENER=ON
PASSWORDS_LISTENER=mypass


sqlnet.ora

TCP.VALIDNODE_CHECKING=YES
TCP.INVITED_NODES=(80.185.40.80,80.185.40.80)