WATCH LIVE CRICKET


Friday, September 26, 2014

Surat Maryam (Mary) - سورة مريم


بسم الله الرحمن الرحيم
19:1

Kaf, Ha, Ya, 'Ayn, Sad.
19:2

[This is] a mention of the mercy of your Lord to His servant Zechariah
19:3

When he called to his Lord a private supplication.
19:4

He said, "My Lord, indeed my bones have weakened, and my head has filled with white, and never have I been in my supplication to You, my Lord, unhappy.
19:5

And indeed, I fear the successors after me, and my wife has been barren, so give me from Yourself an heir
19:6

Who will inherit me and inherit from the family of Jacob. And make him, my Lord, pleasing [to You]."
19:7

[He was told], "O Zechariah, indeed We give you good tidings of a boy whose name will be John. We have not assigned to any before [this] name."
19:8

He said, "My Lord, how will I have a boy when my wife has been barren and I have reached extreme old age?"
19:9

[An angel] said, "Thus [it will be]; your Lord says, 'It is easy for Me, for I created you before, while you were nothing.' "
19:10

[Zechariah] said, "My Lord, make for me a sign." He said, "Your sign is that you will not speak to the people for three nights, [being] sound."
19:11

So he came out to his people from the prayer chamber and signaled to them to exalt [ Allah ] in the morning and afternoon.
19:12

[ Allah ] said, "O John, take the Scripture with determination." And We gave him judgement [while yet] a boy
19:13

And affection from Us and purity, and he was fearing of Allah
19:14

And dutiful to his parents, and he was not a disobedient tyrant.
19:15

And peace be upon him the day he was born and the day he dies and the day he is raised alive.
19:16

And mention, [O Muhammad], in the Book [the story of] Mary, when she withdrew from her family to a place toward the east.
19:17

And she took, in seclusion from them, a screen. Then We sent to her Our Angel, and he represented himself to her as a well-proportioned man.
19:18

She said, "Indeed, I seek refuge in the Most Merciful from you, [so leave me], if you should be fearing of Allah ."
19:19

He said, "I am only the messenger of your Lord to give you [news of] a pure boy."
19:20

She said, "How can I have a boy while no man has touched me and I have not been unchaste?"
19:21

He said, "Thus [it will be]; your Lord says, 'It is easy for Me, and We will make him a sign to the people and a mercy from Us. And it is a matter [already] decreed.' "
19:22

So she conceived him, and she withdrew with him to a remote place.
19:23

And the pains of childbirth drove her to the trunk of a palm tree. She said, "Oh, I wish I had died before this and was in oblivion, forgotten."
19:24

But he called her from below her, "Do not grieve; your Lord has provided beneath you a stream.
19:25

And shake toward you the trunk of the palm tree; it will drop upon you ripe, fresh dates.
19:26

So eat and drink and be contented. And if you see from among humanity anyone, say, 'Indeed, I have vowed to the Most Merciful abstention, so I will not speak today to [any] man.' "
19:27

Then she brought him to her people, carrying him. They said, "O Mary, you have certainly done a thing unprecedented.
19:28

O sister of Aaron, your father was not a man of evil, nor was your mother unchaste."
19:29

So she pointed to him. They said, "How can we speak to one who is in the cradle a child?"
19:30

[Jesus] said, "Indeed, I am the servant of Allah . He has given me the Scripture and made me a prophet.
19:31

And He has made me blessed wherever I am and has enjoined upon me prayer and zakah as long as I remain alive
19:32

And [made me] dutiful to my mother, and He has not made me a wretched tyrant.
19:33

And peace is on me the day I was born and the day I will die and the day I am raised alive."
19:34

That is Jesus, the son of Mary - the word of truth about which they are in dispute.
19:35

It is not [befitting] for Allah to take a son; exalted is He! When He decrees an affair, He only says to it, "Be," and it is.
19:36

[Jesus said], "And indeed, Allah is my Lord and your Lord, so worship Him. That is a straight path."
19:37

Then the factions differed [concerning Jesus] from among them, so woe to those who disbelieved - from the scene of a tremendous Day.
19:38

How [clearly] they will hear and see the Day they come to Us, but the wrongdoers today are in clear error.
19:39

And warn them, [O Muhammad], of the Day of Regret, when the matter will be concluded; and [yet], they are in [a state of] heedlessness, and they do not believe.
19:40

Indeed, it is We who will inherit the earth and whoever is on it, and to Us they will be returned.
19:41

And mention in the Book [the story of] Abraham. Indeed, he was a man of truth and a prophet.
19:42

[Mention] when he said to his father, "O my father, why do you worship that which does not hear and does not see and will not benefit you at all?
19:43

O my father, indeed there has come to me of knowledge that which has not come to you, so follow me; I will guide you to an even path.
19:44

O my father, do not worship Satan. Indeed Satan has ever been, to the Most Merciful, disobedient.
19:45

O my father, indeed I fear that there will touch you a punishment from the Most Merciful so you would be to Satan a companion [in Hellfire]."
19:46

[His father] said, "Have you no desire for my gods, O Abraham? If you do not desist, I will surely stone you, so avoid me a prolonged time."
19:47

[Abraham] said, "Peace will be upon you. I will ask forgiveness for you of my Lord. Indeed, He is ever gracious to me.
19:48

And I will leave you and those you invoke other than Allah and will invoke my Lord. I expect that I will not be in invocation to my Lord unhappy."
19:49

So when he had left them and those they worshipped other than Allah , We gave him Isaac and Jacob, and each [of them] We made a prophet.
19:50

And We gave them of Our mercy, and we made for them a reputation of high honor.
19:51

And mention in the Book, Moses. Indeed, he was chosen, and he was a messenger and a prophet.
19:52

And We called him from the side of the mount at [his] right and brought him near, confiding [to him].
19:53

And We gave him out of Our mercy his brother Aaron as a prophet.
19:54

And mention in the Book, Ishmael. Indeed, he was true to his promise, and he was a messenger and a prophet.
19:55

And he used to enjoin on his people prayer and zakah and was to his Lord pleasing.
19:56

And mention in the Book, Idrees. Indeed, he was a man of truth and a prophet.
19:57

And We raised him to a high station.
19:58

Those were the ones upon whom Allah bestowed favor from among the prophets of the descendants of Adam and of those We carried [in the ship] with Noah, and of the descendants of Abraham and Israel, and of those whom We guided and chose. When the verses of the Most Merciful were recited to them, they fell in prostration and weeping.
19:59

But there came after them successors who neglected prayer and pursued desires; so they are going to meet evil -
19:60

Except those who repent, believe and do righteousness; for those will enter Paradise and will not be wronged at all.
19:61

[Therein are] gardens of perpetual residence which the Most Merciful has promised His servants in the unseen. Indeed, His promise has ever been coming.
19:62

They will not hear therein any ill speech - only [greetings of] peace - and they will have their provision therein, morning and afternoon.
19:63

That is Paradise, which We give as inheritance to those of Our servants who were fearing of Allah .
19:64

[Gabriel said], "And we [angels] descend not except by the order of your Lord. To Him belongs that before us and that behind us and what is in between. And never is your Lord forgetful -
19:65

Lord of the heavens and the earth and whatever is between them - so worship Him and have patience for His worship. Do you know of any similarity to Him?"
19:66

And the disbeliever says, "When I have died, am I going to be brought forth alive?"
19:67

Does man not remember that We created him before, while he was nothing?
19:68

So by your Lord, We will surely gather them and the devils; then We will bring them to be present around Hell upon their knees.
19:69

Then We will surely extract from every sect those of them who were worst against the Most Merciful in insolence.
19:70

Then, surely it is We who are most knowing of those most worthy of burning therein.
19:71

And there is none of you except he will come to it. This is upon your Lord an inevitability decreed.
19:72

Then We will save those who feared Allah and leave the wrongdoers within it, on their knees.
19:73

And when Our verses are recited to them as clear evidences, those who disbelieve say to those who believe, "Which of [our] two parties is best in position and best in association?"
19:74

And how many a generation have We destroyed before them who were better in possessions and [outward] appearance?
19:75

Say, "Whoever is in error - let the Most Merciful extend for him an extension [in wealth and time] until, when they see that which they were promised - either punishment [in this world] or the Hour [of resurrection] - they will come to know who is worst in position and weaker in soldiers."
19:76

And Allah increases those who were guided, in guidance, and the enduring good deeds are better to your Lord for reward and better for recourse.
19:77

Then, have you seen he who disbelieved in Our verses and said, "I will surely be given wealth and children [in the next life]?"
19:78

Has he looked into the unseen, or has he taken from the Most Merciful a promise?
19:79

No! We will record what he says and extend for him from the punishment extensively.
19:80

And We will inherit him [in] what he mentions, and he will come to Us alone.
19:81

And they have taken besides Allah [false] deities that they would be for them [a source of] honor.
19:82

No! Those "gods" will deny their worship of them and will be against them opponents [on the Day of Judgement].
19:83

Do you not see that We have sent the devils upon the disbelievers, inciting them to [evil] with [constant] incitement?
19:84

So be not impatient over them. We only count out to them a [limited] number.
19:85

On the Day We will gather the righteous to the Most Merciful as a delegation
19:86

And will drive the criminals to Hell in thirst
19:87

None will have [power of] intercession except he who had taken from the Most Merciful a covenant.
19:88

And they say, "The Most Merciful has taken [for Himself] a son."
19:89

You have done an atrocious thing.
19:90

The heavens almost rupture therefrom and the earth splits open and the mountains collapse in devastation
19:91

That they attribute to the Most Merciful a son.
19:92

And it is not appropriate for the Most Merciful that He should take a son.
19:93

There is no one in the heavens and earth but that he comes to the Most Merciful as a servant.
19:94

He has enumerated them and counted them a [full] counting.
19:95

And all of them are coming to Him on the Day of Resurrection alone.
19:96

Indeed, those who have believed and done righteous deeds - the Most Merciful will appoint for them affection.
19:97

So, [O Muhammad], We have only made Qur'an easy in the Arabic language that you may give good tidings thereby to the righteous and warn thereby a hostile people.
19:98

And how many have We destroyed before them of generations? Do you perceive of them anyone or hear from them a sound?

Monday, September 22, 2014

1st Year Computer Notes CH#08 Computer Network

Computer Network

In connection with the information technology and computers a network is a way to connect computers together so that they can communicate, exchange information and pool resources or a network is a communicating system connecting two or more computers. Network connects people as close as the next office and as for as halfway around the world.

In business networks have revolutionized the use of computer technology. Many businesses that used to relay on a centralized system with mainframe and a collection of terminals now use computer networks in which every employee who needs a computer has personal computer connected to the network. In education, schools, colleges and universities have also shifted to strategies built around networked personal computers.


Configurations or Topologies Networks

A network can be arranged or configured in several different ways. This arrangements is called the network's topology. The four principal network topologies are

1. Star Network

2. Bus Network

3. Ring Network

4. Hierarchical Network


1. Star Network

In a star network small computers or peripheral devices are linked to a central unit. This central unit may be a host computer or a file server. All the communications pass through this central unit. Control is maintained by polling. Each device is in turn allowed to send the message.

One particular advantage of the star form of network is that it can be used to provide a time-sharing system. i.e several users can share resources (time) on a central computer. The star is a common arrangement for linking several microcomputers to a mainframe that allows access to an organizations database.


2. Bus Network

In a bus network each device in the network handles its own communication control. There is no host computer. All communications control travel along a common connecting cable called a bus. As the information passes along the bus it is examined by each device to see if the information is intended for it.

The bus network is typically used when only a few microcomputers are to be linked together. The bus network is not as efficient as the star network for sharing common resources. However it is less expensive and is in very common use.

3. Ring Network

In a ring network, each device is connected with two other devices forming a ring. There is no central file server or computer. Messages are passed around the ring until they reach correct destination. With microcomputers ring network is the least frequently used arrangement. However it is often used to link mainframes specially over wide geographical areas.

A ring network is useful in a decentralized organization because it makes possible a distributed data processing system i.e. computers can perform processing tasks at their own dispersed locations.


4. Hierarchical Network

This type of networks are also called hybrid network. It consist of several computers linked to a central host computer just like a star network. However these computers are also hosts to other smaller computers or to peripheral devices. The host at the top of the hierarchical network could be mainframe. The computers below the mainframe could be minicomputers and those below microcomputers. This network allows various computers to share database processing programs and different output devices. It is useful in a centralized organizations.


Strategies of Networks

Every network has a strategy or a way of coordinating the sharing of the information and resource. The most common network strategies are terminal, peer-to-peer and client/server systems, terminal network system. In this system processing power is centralized in one large computer, usually the mainframe. The nodes (a node is any device connected to network) connected to this host computer are terminals (a terminal is a input or output device) with little or no processing capability. Most airline reservation systems are terminal systems.


Peer-to-Peer Network System

In a peer-to-peer network, nodes can act both as servers and clients. There are several advantages of using this type of strategy. The networks as inexpensive and easy to install and they usually work well for smaller systems with less than ten nodes. As the number of nodes increases, however the performance of the network declines.


Client/Server Network System

Client/Server network system uses to coordinate and supply services to all other nodes on the network. The server provides access to centralized resources such as databases, applications software and hardware. This strategy is based on specialization. Server nodes coordinate and supply specialized services and client nodes request services.

One advantage of client/server network system is its ability to handle very large networks efficiently. Another advantage is the powerful management software that monitors and controls networks activities. The major disadvantage of it is the high cost of installation and maintenance.


Advantages of Network

Networks provide tremendous benefits. The most compelling advantages of network are as follows.

1. Networks allow users simultaneous access to shared programs and data.

2. Network also allows users to share peripheral devices such as printers and hard disks.

3. Network usually includes the capacity to send e-mail and many e-mail systems let users to attach files to their messages.

4. Connecting computers to form a network makes it easier to perform backups of the data on all the network hard disks.


Types of Networks

Communications differ in geographical size. Three important types are LANs, MANs, WANs.


Local Area Networks (LANs)

Network with computers and peripherals devices in close proximity within the same building are called local area networks (LANs).

The figure shows an example of a LAN. This type of arrangement has two benefits.

1. People can share different equipment, which lowers the cos of equipment.

2. LAN also features a network gateway. i.e. a LAN may be linked to other LANs or to large networks in this manner.


Metropolitan Area Network (MANs)

These network are used as links between office buildings in a city. Cellular phone systems expand the flexibility of MANs by allowing links to car phones and portable phones.


Wide Area Network (WANs)

Wide area networks are countrywide and worldwide networks. Among other kinds of channels they use microwave relays and satellites to reach users over long distances. One of the most widely used WANs is Internet. Which allows users to connect to other users and facilities worldwide.


Uses of Internet

The most common uses of Internet are


1. Communicating

Sending and receiving e-mail is the most popular internet activity. You can send and receive e-mail to and from you friends and family located almost anywhere in the world. You can join an listen to discussions and debates on a wide variety of special interest topics.


2. Shopping

One of the fastest growing applications of Interest is electronic commerce. You can visit a cyber mall for making purchases.


3. Researching

Internet provides you to have one of the world's largest libraries available from home.


4. Entertainment

Do you like music, the moves and reading or playing computer games? You can find them all on Internet waiting for you to locate and enjoy.

1st Year Computer Notes CH#07 Data Presentation

Data Presentation


The set of symbols to express quantities as the basis of counting is referred to be a number system. There has been various number systems under human use for the purpose of counting and measurement. For instance decimal number system, octal number system, binary number system and hexadecimal number system have been most popular number systems which human beings have been utilizing for the purpose of counting and measurement.

Though a computer can process only binary numbers i.e. only 0 and 1, we give a brief account of each of the number system mentioned above. Inter conversion of these number systems would also be discussed in this chapter.



Decimal Number System

This is the most commonly used number system and which is very natural to man, hence very easy to use and remember. It consists of ten digits, i.e. from 0 to 9. As the total number of digits used in a number system is called its base or radix, hence base of radix of decimal number system is said to be ten.


Binary Number System

The base or radix of binary number is two, implying that there are only two digits 0 and 1 used in binary number system. This number system has become most popular system because of its use by the computers for processing data.


Octal Number System

This number system is consist of eight i.e. 0,1,2,3,4,5,6 and 7. Hence the base or the radix of octal number system is eight. Actually this number is a short hand version of binary numbers, Hence one octal represents three binary digits.


Hexadecimal Number System

Hexadecimal numbers are extensively used in microcomputers. As they are much shorter than binary numbers, hence easy to write and remember. They are also a short hand version of binary numbers. The hexadecimal also called Hex is equivalent to four binary digits. This number system consists of 0,1,2,3,4,5,6,7,8,9, A,B,C,D,E and F. The base of this number system is 16. The symbol A........F stand respectively for 10.....15.


Binary to Decimal Conversion

All the number system may be easily converted into other number systems. In order to convert binary numbers into decimal numbers we multiply each bit of a particular binary number with (n-1) power of 2.

Add all the resultant multiplied bits.


Example No. 1

To convert the binary number 10010 to a decimal number we proceed as follows:

100102 = (1 x 24) + (1 x 23) + (1 x 22) + (1 x 21) + (1 x 20)

= (1 x 16) + (0 x 8) + (0 x 4) + (1 x 2) + (0 x 1)

= 16 + 0 + 2 + 0

= 18

It should be kept in the mind that any number raised to the power 0 equals 1.


Example No. 2

Similarly in order to convert the binary number 110111 to a decimal number we may proceed as follows:

1101112 = (1 x 25) + (1 x 24) + (1 x 23) + (1 x 22) + (1 x 21) + (1 x 20)

= (1 x 32) + (1 x 16) + (1 x 8) + (1 x 4) + (1 x 2) + (1 x 1)

= 32 + 16 + 0 + 0 + 4 + 2 + 1

= 56

Example No. 3

If there is a period (.) in the binary number e.g. (1011.10). Then the conversion of such binary number can be illustrated as follows:

(10112) = (1 x 23) + (1 x 22) + (1 x 21) + (1 x 20)

= (1 x 8) + (0 x 4) + (1 x 2) + (1 x 1)

= 8 + 0 + 2 + 1

= 11

AND

(.102) = (1 x 2-4) + (1 x 2-2)

= (1 x 1/2) + (1 x 1/4)

= 1/2 + 0 = 0.5

Hence (1011.102) = 11.5


Decimal to Binary Conversion

A decimal number can easily be converted to a binary number. For this purpose we take following steps.

1. Divide the decimal number by 2 and note down the remainder.

2. Take the quotient and again divide by 2, then note down the remainder again.

3. Repeat the 2nd step unit you get 1 as the quotient.

4. The remainders in the reverse order would be our required binary number.


Example No. 4

For example in order to convert decimal number 15 to binary number. we may proceed as follows.

15/2 = 7 and the remainder is 1

7/2 = 3 and the remainder is 1

3/2 = 1 and the remainder is 1

1/2 = 0 and the remainder is 1

Hence the required binary number is 1111


Converting Decimal Fractions to Binary Numbers

The most simple method of converting fractional decimal numbers to binary number is repeated multiplication by two. In this method numbers to the right of the decimal point are repeatedly multiplied by 2 till we get a whole number. The product in fractions is assigned as 0 bit while in whole number it is assigned as 1 bit.

The process of converting a fractional decimal number to binary number would be explained by the following example.


Example No. 5

Let us suppose the we want to convert 0.125 in a binary numbers then proceed as follow.

0.125 x 2 = 0.250 it carries 0

0.250 x 2 = 0.500 it carries 0

0.500 x 2 = 1.00 it carries 1

Hence we can conclude that (0.125)10 = (0.001)2


Addition to Binary Numbers

In order to add binary number below given table should be kept in mind

0 + 0 = 0

0 + 1 + 1

1 = 0 = 1

1 + 1 = 0 with a carry of 1

The following example will illustrate the addition of binary numbers.


Example No.6

Add 1001 and 1010

1001 + 1010 = 11011


Subtraction of Binary Numbers

In order to subtract a binary number from another binary number you must keep the following table in your mind.

0 - 0 = 0

1 - 0 = 1

1 - 1 = 0

0 - 1 = 1 with a barrow of 1

The process of binary subtraction an be illustrated with the help of example given below


Example No. 7

For subtracting binary number 101 from 1001 we proceed as follows

1001 - 100.1 = 1.11


Octal to Decimal Conversion

For converting an octal number to a decimal number we use the same sort of polynomial as was used in the binary case. However in octal to decimal conversion the base or radix is 8 instead of 2.

The process of converting an octal number into a decimal number would be clarified with the help of following example.


Example No. 9

The Octal number 2134 can be converted into decimal number by proceeding as follows

(2134)8 = (2 x 83) + (2 x 82) + (2 x 81) + (2 x 80)

= (2 x 512) + (1 x 64) + (3 x 8) + (4 x 1)

= 1024 + 64 + 24 + 4

= 1116

Hence (2134)8 = (1116)10


Example No. 10

The octal number 1.123 can be converted to decimal number as follows

(1.123)8 = (1 x 80) + (1 x 8-1) + (1 x 8-2) + (1 x 8-3)

= (1 x 1) + (1 x 1/8) + (1 x 1/64) + (3 x 1/512)

= 1 + 1/8 + 2/64 + 3/512

= 1 83/512


Decimal to Octal Conversion

For converting decimal number to octal number. we apply a method of repeatedly dividing decimal by 8 and use each reminder as a digit in the octal number. The process of converting decimal to octal number may be illustrated by the following example.


Example No. 11

To convert the decimal number 429 to octal number we process as follows

429/8 = 53 Reminder is 5

53/8 = 6 Reminder is 5

6/8 = 0 Reminder is 6

Hence (429)8 = (655)10


Octal to Binary Conversion

As we have mentioned earlier that octal number system is a short hand version of binary numbers and one octal represents three binary digits as shown by the following table

Equivalent Octal and Binary Number

Octal 0

1

2

3

4

5

6

7


Binary

000

001

010

011

100

101

110

111

In order to convert an octal number to a binary number we just replace each octal digit with the appropriate three bits. This produce an be explained with the help of following example


Example No. 12

(25)8 = (010101)2

Because (2)8 = (010)2 and (5)8 = (101)2 as shown by the above table.