Archive for February, 2013

Watching Your Own Actions – Minding Your Own Business !

February 18th, 2013, posted in Sufism
Share

How did our Prophet (PBUH) correct people ??

When living within a community, you may see an action by someone that needs correcting.

You should be soft and kind [as our Prophet  (P.B.U.H)]. You should not be trying to find someones mistakes so you can correct them. This is not your job.

Lets say you are working with other people.
Now why should you be soft and kind, even when you dont have to ??
What is the advantage of being soft and kind ??
If there werent an advantage to this, our Prophet (P.B.U.H) would not have set such an example.

As Sufis, we should ask ourselves: it may be pleasing to Allah, but how does it benefit us to be soft and kind?
1. You create “ to the best of your ability “ positivity.
2. When you are talking about a subject, maybe the person will hear it better, rather than responding to the negativity.
3. They wont think you are trying to put them down, but rather that you are not happy with what is happening.

How to be more like the Prophet (PBUH) :

Now we all have our own style. Some of us come across stronger when we are trying to correct others. We are always working on saying things in a nicer way, so that the person hears the message.
But what is the benefit to us ?? We dont want to be viewed as brittle or cruel, because that is not our intention. For Allah’s sake, you intend to be a better person. As soon as you have this intention, what will Allah do? If you take a step to Allah, He’s going to walk to you. So you also create positive energy for yourself when you think of Allah’s pleasure and are soft and kind.
No matter how much we fail or succeed in this, the point is always,

What can I learn out of what is happening, so that I can get closer to Allah ??“
Perform amri bil-maruf wa nahyi anil-munkar (the condition of enjoining righteousness, or what is fair and equitable, and forbidding indecency, or what is morally repugnant) according to your means and station. The part [from Chapter Seven of Ahmed er Rifais book Guidance to Mysticism in Grand Masters of Sufism, Ansari Publications, 2008] that I would like to expand upon a bit is why should we dont go around and check for everyones faults?

1. You dont have time to concentrate this much on other people. Our first job as Sufis is to concentrate on ourselves and find out what we are doing that is stopping us from getting closer to Allah, not what other people are doing wrong. What we are doing wrong is going to make us further away from Allah. If we learn from that, then that is what is going to get us closer to Allah, inshAllah.

2. You should mind your own business and use your heart. For Sufis, the heart is most important. Why is the heart important? Because Allah resides in your heart, because your connection to Allah is in your heart.

Minding Your Own Business

Share

ORACLE :How to Configure Net8 in Non-RAC Database

February 17th, 2013, posted in Oracle
Share

To access the database from other than the system in which database installed you need to configure oracle supplies Net8 for this purpose. It is a common interface to client application that needs to connect to the oracle database. It consists of the three files: tnsname.ora, listener.ora, sqlnet.ora.

Steps or Process:
1.      Edit the tnsname.ora file and add the new service name for use by the client software.
2.      Edit the listener.ora file add an entry for another database instance.
3.      Use the ping command to verify connectivity to the Host.
4.      Use the tnsping command to verify the connectivity to the Net8 listener.
5.      Start/Stop the Net8 listener to reload newly added DB instance.
6.      Connect to a remote database over the network.

tnsname.ora:
The normal location for this file is D:oracleora92networkadmin. This file is located on both client and server. If you make configuration changes on the server ensure you can connect to the database through the listener if you are logged on to the server. If you make configuration change on the client ensure you can connect from your client workstation to the database through the listener running on the server.
Add the following entry in your tnsname.ora file and change the value in the bracket according to your environment.
RMAN.AL-SADHAN.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rmanbackup)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RMAN)
)
)

Note: You can put either system name or directly static IP (192.168. 0.1) as HOST.
C:tnsping rman
Use the above command to verify the connectivity on windows environment.

listener.ora:
The normal location for this file is D:oracleora92networkadmin. This file is client side file (typically on remote PC). The client uses thistnsname.ora file to obtain connection details from the desired database. Add the following entry in your listener.ora file and changed the value in bracket as per your environment.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:oracleora92)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = RMAN)
(ORACLE_HOME = D:oracleora92)
(SID_NAME = RMAN)
)
)

Note: Provide the unique global name as you specify at the time of database creation. You can change it later with your own domain name.

SQL>ALTER DATABASE rename global_name to rman.al-sadhan.com;
C:lsnrctl
Lsnrctl>stop listener
Lsnrctl>start listener
Lsnrctl>reload listener
You can use above command to bounce the listener.

sqlnet.ora:
The normal location for this file is D:oracleora92networkadmin. The sqlnet.ora file is the profile configuration file, and it resides on the client machines and the database server. The sqnet.ora is text file that contain basic configuration details used by the SQL*Net.
NAMES.DEFAULT_DOMAIN = al-sadhan.com
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
trace_level_client = OFF
sqlnet.expire_time = 30
names.default_domain:  If the net service name does not have a domain specified, this parameter value is appended to the service name.

names_directory_path: This parameter specifies the order of naming methods used when a client attempts a connection to a database. Possible values include: LDAP; TNSNAMES; HOSTNAME; ONAMES; and EZCONNECT.
sqlnet.expire_time:  This parameter, set on the server, enables dead connection detection.  After the specified time interval, expressed in minutes, the server checks to see if the client is still connected. If the client is not still connected, the server process exits.

sqlnet.authentication_services: This parameter is used to enable one or more authentication services.  There is no default setting, so if authentication has been installed, it this parameter should be set to either NONE for no authentication methods or ALL for all authentication methods.

trace_level_client: This parameter enables tracing unless it is set to OFF or 0, which is the default.  Use the following values to set tracing levels: USER (4); ADMIN (10); and SUPPORT (16).

*********************************************************************************************************************
Note : Please not do make backups before using these queries and also confirm them yourself or by aother means as
 well.
*********************************************************************************************************************
Share

Write a function to count number of words in a text file named "OUT.TXT"

February 16th, 2013, posted in C++
Share
void countwords()
{
	ifstream fin;
	fin.open("out.txt");
	char word[30];
	int count=0;
	while(!fin.eof())
	{
		fin>>word;
		count++;
	}
	cout<<"Number of words in file are "<<count;
	fin.close();
}
Share

Write a function to count number of words in a text file named “OUT.TXT”

February 16th, 2013, posted in C++
Share
void countwords()
{
	ifstream fin;
	fin.open("out.txt");
	char word[30];
	int count=0;
	while(!fin.eof())
	{
		fin>>word;
		count++;
	}
	cout<<"Number of words in file are "<<count;
	fin.close();
}
Share

Saying Of Prophet Muhammad اللھم صلی علٰی محمد وعلٰی آل محمدوَسَلَّمَ

February 15th, 2013, posted in Islamic Teachings, Saying Of Holy Prophet ( P.B.U.H)
Share

” He who knows his Self, knoweth his Lord  “

saying of


Prophet Muhammad ( ​اللھم صلی علٰی محمد وعلٰی آل محمدوَسَلَّمَ​ )

Share