# Author: jomon

## Question Paper Grade -8 NCERT

## How we can connect amazon servers in putty using key pair ec2

In order to connect Amazon Linux servers we have to use putty from our windows computer. But as other servers amazon will not allow connect with username and password through putty. We have to use the private and public key pair.

During the installation of the server it will ask for generate the key pairs, if there is no key available in that particular region. In a region only one pair of key is enough for many servers. the public key pair we can down load to our local computer during generating the key.

We can generate new key at any time. For generating key we have to go for **ec2 **dash board–network and security–key pairs, then click on create key par and give name for the key and click generate and down load.

## how can disable the ssl mode of webmin and virtualmin

Some time we may not have a valid SSL certificate with us. Then our webmin and virtualmin control panel will always display the security warning in the web browser. But webmin and virtualmin have its default ssl certificate. but it is not valid in the browsers.

Because of the invalid certificate the browser will make hevely delay for webmin and virtualmin. In order to avoid this we can disable the ssl mode of the webmin and virtualmin as described below.

- Open the webmin control panel as root user, by typing serverip:10000
- Go to the option
*others —File manager — etc — webmin — mini server.conf* - change the lin
**ssl=1 to ssl=0** - Save the file and exit.
- reboot the system
- Before trying without ssl mode in the browser please delete and clear all browsing data and cookies.

Now your webmin and virtualmin is ready to work without ssl mode.

## PHP codes for date and time

**creating php **__Timestamp__

`$t=time();`

**Date, month and year format to Timestamp**

`$time_stamp = strtotime("$year/$month/$day");`

or

`$time_stamp = strtotime("$year/$month/$day $hour:$minute:$second");`

**Time stamp to date,month and year format**

`$p= date("d/m/y",$timestamp);`

or

`$p= date("d/m/y h:i:s",$timestamp);//i for minute`

**Date function**

`<?php`

`$d = date(d);`

`$m = date(m);`

`$y = date(y);`

`$h = date(H); `

`$i = date(i);//Minute`

`$s = date(s);`

`echo "$d / $m /$y /$h /$i /$s";`

`?>`

## PHP code for various operations

## How can add our personal email to gmail app

In this article I will explain How we can add our personal or company email to gmail app.

Gmail App is the one of the standard app coming along with all android device. First open the gmail app from your mobile device and follow the steps.

- Click on the menu bar (three lines in the left top corner).
- From the menu item click on the setting tab.
- In the bottom of the setting item we can see the Add new tab click on that.
- Click on other tab
- Enter your personal email id
- Then click on manual setup
- Select personal pop3
- Enter your email password
- Now we have to enter the Incoming server setting. Username and password will automatically come. For server we have to obtain from email provider In my case it is mail. mydomaun.com
- As our mail is private mail the certificate not valid error will come, So go to advance and click on proceed any way.
- If everything is ok it will ask for outgoing server setting. If the previous step is not ok. then there will be different certificate option you can try with different certificate.)
- If we are using the same incoming server for sending mail then just we can click on the next. otherwise we have to change the outgoing server setting and then click next. if there is any issues then do as explained in the step 11. It is finish . It will ask for your display name also in the last step

If any more details required please put comment. I will reply to you

Thanks for reading

## Number system grade-9

###### Number line

Number line are the line made up with numbers. A line is actually made up with points. Eventually distributed points are called line. So the each point in a number line have a particular number. that is why we are saying the number line is made up with numbers.

After drawing a line just mark any one point as 0. Then if we mark a particular unit of distance as number 1 in the number line, then the point for the number 2 will come exact same distance from number one. Like this each and every points in a number line have a particular number.

Now we will just start to walk through number line from zero. And we will pick all the numbers like 1,2,3 etc.. Then the collection of all this number can called natural numbers. Denoted by **(N)**.

Now we have to walk back all the way and pick the zro also. So now we have the collection of natural number and zero. And it can be called as whole numbers **(w)**. Whole numbers are 0,1,2,3 etc….. . Now again we walk back we will see lot of negative integer numbers. And we will collect al that numbers also. now we have the collection of positive integer number , zero and negative integer numbers. The collection of all this number together can call integer numbers **(Z)**.

Is any numbers left in the number line?. Yes the numbers like 1/2, 3/4, are left in the number line. So we will collect that numbers also.Including the numbers like 1/2, 3/4 with naturel number is called rational number **(R)** . Here we can say one definition for rational number.

*Any number which can be write in the form of P/Q is called rational numbers.*

Here P and Q are integers and Q not equal to zero.

Here we cn notice that all natural numbers are rational as per this definition. Because all the natural numbers can be write with denominator 1.

Zero is also a rational number because it can be write with denominator as 1.

And the negative integers also rational number because it can also write with denominator 1. So The numbers so far we studied are all rational numbers.

How ever we now that a number in the form of P/Q is not unique. Example 1/2=2/4= 25/50=47/94. Because these all are equal numbers (fractions.). So when ever we mark a rational number in the form of P/Q then we have to make the number in the lowest form ppf fraction. Or the P and Q have only one as common factor (co-prime numbers).

Are the following are true or false give your reason

- Every whole number is natural numbers.
- Every integer is rational numbers.
- Every rational number is an integer.

###### Finding rational numbers between two rational numbers

If we have given two rational numbers, then we can find the rational number between them by find the mean value. We have to add the given two numbers and then divided by 2. Then we will get another rational number between them. by repeating this method we can find infinity of rational numbers between two rational numbers.

** Example** : find the two rational number between 1 and two.

(1+2)/2=3/2 is a rational number between 1 and 2.

(2+3/2)/2 = 4/2+3/2= (7/2 )/2 =7/4 is an another rational number between 1 and 2.

**Another method**

Suppose we want to find 5 numbers between 1 and two at a single step, like follows.

As we need 5 numbers we have to make denominator as 6 for both number. Here

1= 6/6 and 2 = 12/6

Now we can write 7/6, 8/6, 9/6, 10/6, 11/6. these all are in between 6/6 and 12/6 and hence between 1 and 2.

**Notes:***Also remember that there will be infinite number of rational numbers between any two rational numbers.*

Do the exercise 1.1

###### Irrational numbers

As we agai check on the number line still there is lot of numbers left in between rational numbers. So now we will see how that numbers is different from rational numbers.

*If a number is irrational then it cannot be written in the form of p/q, where p and q are integers and q not equal to zero.*

Some examples are √2, √3, √15, π, 0.123400678…… .

There will be infinite number of irrational numbers in the number line.

After collecting all the irrational numbers from the number line, then the number line will empty as there is any more number. So the collection of all these numbers we studies so for together can called the real number. **(R).**

The proof for √2 as an irrational number will study in the nest class. But now we will study how we can mark the √2 in a number line.

###### Locate √2 on the number line

Consider the unit square OABC. As shown in the fig.1.7. Now consider the diagonal OB. And we can consider the triangle OAB, it is aright angle triangle. Therefore we can say that

OB^{2 }= OA^{2} +AB^{2}

OB=√OA^{2} +AB^{2}

**OB= √1+1 =√2**

Now consider the vertex **O** of the square are coincide with **0** of the number line. And the OB which is equal to √2 can now marked on the number line by draw an arc with radius OB. The ar will intersect on the number line at the point P And the distance from 0 to p is √2.

###### Locate √3 on the number line

This can also mark on the number as same as √2. For that first we have to draw one more right angle triangle in the previous fig. One side of this right angle triangle is OB (√2) and other side DB is unit length and OD is the hypotenuse. see the below fig.

###### real number and their decimal expansion

A we study the real number having rational number and irrational numbers. In this section we will analyze the decimal expansion of both type of number and understand the difference of the rational number and irrational number.

First we will check the decimal expansion of three different rational number. They are 10/3, 7/8, 1/7. See the below fig for there division.

In the first case 10/3 we can see that the quotient is not ending. But it is repeating as a block . This type of decimal expansion can call non terminating recurring. It can write as 3.3(bar). That means the decimal places are repeating with 3,3,3,3..

In the second case 7/8 we can see that the quotient is terminating after a finite number. This type of decimal expansion can call terminating decimal expansion.

In the third case 1/7 the quotient is not ending but it is also repeating as block of 142857, 142857,…… so it can write as 0. 142857(bar). So this can also call non terminating recurring decimal expansion.

Now we have to proof the above decimals are rational numbers by wring in the form of P/Q . As P and Q are integers. it should be a perfect number ( cannot be repeated or require in their decimal expansion).

First we will consider a terminating decimal number 3.142678. Here the decimal places are 6 digits. Therefore we can multiply and divide the 3.142678 with 1000000, so that it will become 3142678/1000000 so now it is in the form of p/q and hence it is a rational number.

In this second case we will show that the non terminating recurring number is a rational number, by writing the number as p/q.

consider 0.3(bar), here 0.3333… we don’t know the exact number. so we will take

x= 0.333333…. ( we can consider multiplying x with 10 because the nuber have 1 digit requiring number)

10x= 10 *( 0.33333…..) = 3.333333….

3.3333….=3+x (since x= 0.3333…) (here the obtained number after multiplication will write as sum of a perfect number and the given number x)

10x=3+x

9x=3 and x=3/9= 1/3 this is in the form p/q. and Hence it is a rational number.

Let us try with other number 1.272727 her 27 is repeating.

Here also we don’t know the exact number so we will take

x= 1.2727…..

100x = 100 * 1.2727… =127.2727…

100x =126+x (here the obtained number after multiplication will write as sum of a perfect number and the given number x)

99x=126 so x=126/99. which is 14/11 so it is also a rational number.

From the above studies we can understand the decimal number with terminating decimal places and the number with non terminating recurring decimal places are rational number.

###### Irrational number

From the above studies we can say that any number is irrational if it cannot be written in the form of p/q. Where p and q are integers and q not equal to 0.

In the decimal expansion we see the terminating and non terminating recurring decimal number are rational numbers. Because they can write in the form of p/q.

But some decimal number like 0.1011001111000001 are not terminating and not requiring. this type of decimals cannot be written in the form of p/q. And hence it is not rational number. ex. √2, Π.

###### Finding irrational numbers.

Finding irrational number between 1/7 and 2/7. First find the value of 1/7 which is 0.142857(bar). And the value of 2/7 = 0.285714(bar).

Now easily we can write the irrational number in between them ex.

0.156578911112. we can write such infinity of irrational number between two. By this same method we can write irrational numbers between any two real numbers.

###### representing real number on the number line

We can represent any real number in a number line. Suppose we ant to mark 5.3775 (5 decimal places) as the number is between 5 and 6 we will make the portion of the number line with 5 and 6. Then we will divide that portion in 10 equal parts. The we can mark the first decimal digit 5.3. A our number is greater than 5.3 and less than 5.4 we will draw anew portion of number line with 5.3 and 5.4. this process can repeat until we mark the complete given number. Please see the below fig for the details.

Do some exercises for practice.

###### Arithmetical operation on real numbers

I earlier class we studied the rational numbers are satisfy the commutative, associative and distributive laws for addition and multiplication. If we add, subtract, multiply and divide (Except zero) two rational numbers we will get a a rational number . So rational number are closer.

The irrational number also tisfy the commutative, associative and distributive laws for addition and multiplication.

How ever the sume , difference, product and quotient are not always irrational.

ex. (√6)+(-√6), (√2)-(√2), (√3)*(√3),(√17)/(√17)

By doing some exercise we can summarize following points.

- The sum or difference of a rational number and an irrational number is irrational.
- The product or quotient of a non zero rational number with an irrational number is irrational.
- If we add, subtract, multiply or divide two irrationals, then the result may be rational or irrational.

###### Geometrical method to find the square root of a positive real number

Finding the √3.5 geometrically.

**Procedure: **Draw a line AB with 3.5 unit length. From B extend one more unit length and mark C. Now find the midpoint of AC and mark that point as O. Now draw the semicircle with the radius AO. A s shown in the figure. Draw a perpendicular passing through B and intersec the semi circle. And then the length of **BD= √3.5**

**Proof : Not required for grade 9**

We can also use the above method to mark root of any number on the number line. See the below figure, in that the BC is the unit length And we can extend the line with more unit lent and mark B AS 0, C as 1 and so on… Now we can draw an arc with center B and radius BD, then it will intersect on the number lane.

###### Identities for roots

The above are the 6 identity for roots. By this identity we can do various mathematical operation on roots. Do some exercises for more exposure.

###### Laws of exponent

I addition we can also say that **n ^{th }root of a= a^{1/n.}**

And **a ^{m/n }= n^{th}root of a^{m}**

That means if a number have the power with fractional number, then the denominator of the fraction will become the power of the root and the numerator will the power of all thing.

Practice some exercises

## Lines and angles Grade-7

Eventually distributed points in any direction can called l**ine**.

Eventually distributed points in particular direction can called **straight line**.

See below fig to understand different type of lines.

###### angeles

When two lines are intersect then there will be one corner formed this corner is called vertex. In the above fig1-e two line AB and CD are intersecting at the point O. Due to the intersection of two lines there are four angles. Try to name that four angles.

###### complementary angles

If the sum of two angle are 90º then the are called complementary angles.

Now try to answer following questions.

- Can two acute angles be complement to each other?
- can two obtuse angles be complement to each other?
- Can two right angles be complement to each other?

From the below figure identify which pair of angles are complementary.

**Supplementary angles : **If the sum of 2 angles are equal to 180°, then that angles are called Supplementary angles.

Answer the following questions

- Can two obtuse angles be supplementary ?
- Can two acute angles be supplementary ?
- Can two right angles be supplementary ?

Check for some exercises in the test book.

**Adjacent angles: **If two angles are adjacent angles then they have a common vertex .a common arm and there non -common arm are the different side of the common arm. In the below figure-2 we can see a adjacent angles.

Here the angle ∠ABD and ∠DBC are adjacent angle. But also note that ∠ ABC is not adjacent angle. More over when there is two adjacent angle, then the sum is always equal to the angle formed by two non-common arms

that is ∠ABD+∠CBD=∠ABC

###### LINEAR PAIR OF ANGLE

If the non-common arm of an adjacent angle are opposite ray the angles are called linear pair of angle. As shown in the fig3, AB and BC are non common arm and the angle ABD and angle CBD are linear pair of angle. Linear pair are supplementary.

TRy to answer the following questions

- Can two obtuse angles be linear pair ?
- Can two acute angles be linear pair ?
- Can two right angles be linear pair ?

Now try to do some exercises from textbook

## Comparing Quantities-grade 08

###### Ratios

Ratios can be use to compare quantities. Example. If we have 5 orange and 20 apple the we can write the ratio 5:20. If we want to write the ratio of apple and orange the it will write as 20:5. The ratio is writing respectively.

###### Ratio as fraction

The ratio can also write as in terms of fractional number. Here the first ratio will come as numerator and and the second ratio will come as denominator. So in our previous example we can write the ratio of orange and apple is 5:20 = 5/20.

If we are saying the ratio of orange and apple is 5:20, that means if there is 5 orange then there is 20 apple. The ratio will always write as simplest form. So 5:20 will write as 1:4. That means there will be 1 orange for 4 apple. Like this we can compare the quantity.

###### Ratio as percentage

From the ratio we can find the percentage of quantities.For example. 5 orange and 20 apple can write as 5/20. now we will make the denominator as 100. then it will become (5×5)/(20×5)= 25/100. So the percentage of orange is 25%. (that means there will be 25 orange when apple is 100). We can also find the fraction by unitary method like ( 5/20)x100 = 500/20= 25%.

###### Finding the increase or decrease percentage

To find the increase percentage of thing, for example. The price of a scooter was 34000 in last year. if the price increased by 20 % what will be the price of the scooter this year.

**Method -1:** Here first we will find the 20% of the current price and then add that to the existing price then we will get the new price.

(20/100) x 34000 = 6800

increased price = 34000+6800= 40800

Method2: Unitary method. (120/100)*34000 =40800 ( here the 120 = 100% + the increased 20% =120%)

To find the decrease percentage of thing, for example. The price of a scooter was 34000 in last year. If the price decreased by 20 % what will be the price of the scooter this year. Here also we can find the 20% of the current price and can subtract the amount form the current price, then we will get the present price.

In unitary method we can find the 80 % of the current value (because the decreased percentage is 20%). which is (80/100)*34000.

###### finding discounts

Discount is the difference of the actual price(MRP) and the sales price.

Discount= market price- sales price.

If an item Have the market price 840 and it is selling at 714 then

Discount = 840-714=126.

we can also find the discount % by

Discount %= (discount amount / market price) *100.

(remember (% /100)*total=value)

We can also find the discount amount if the discount % is given by

Discount amount= (discount%*market price)/100.