A Cross Product Formula
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix} \]
\begin{equation}
x =1
\end{equation}
Y quotient
Monday, 27 January 2014
Sunday, 5 January 2014
Responsiblity
We are always told to be responsible and then the usual lecture from our parents continue.
However, mostly its not that we don't want to take responsibility, its mostly that we are never told why we should take responsibility.
We consider responsibility to be a burden on us, something that ties us down, something that people ask us to do so that we don't progress and all sorts of excuses. Frankly, I am not sure if i can even begin to cover the list. Its simply big.
We feel we are never free for one reason or another.
What we often fail to realize is that we wont get the freedom and power which we want if we don't take the responsibility of handling that freedom and power. If we take up the responsibility of things we are bound to have control on things which we desire.
Lets take a simple example, we complain no one else listens to us. Well why should some one listen to us unless we start taking responsibility of what we speak. If out words don't matter to us why would they matter to someone else at all.
We keep saying we cant get up early but we never take the steps to get up early in the first place.
We know we should put an alarm five minutes prior but we never do that. Instead we blame people around us making them responsible for our short comings. Now there can be an argument that we can mistakes.
Yes we can make mistakes, I am not denying that. But when we start repeating those mistakes everyday i think there is something wrong with us.
--
Inspired by a person very close to me
However, mostly its not that we don't want to take responsibility, its mostly that we are never told why we should take responsibility.
We consider responsibility to be a burden on us, something that ties us down, something that people ask us to do so that we don't progress and all sorts of excuses. Frankly, I am not sure if i can even begin to cover the list. Its simply big.
We feel we are never free for one reason or another.
What we often fail to realize is that we wont get the freedom and power which we want if we don't take the responsibility of handling that freedom and power. If we take up the responsibility of things we are bound to have control on things which we desire.
Lets take a simple example, we complain no one else listens to us. Well why should some one listen to us unless we start taking responsibility of what we speak. If out words don't matter to us why would they matter to someone else at all.
We keep saying we cant get up early but we never take the steps to get up early in the first place.
We know we should put an alarm five minutes prior but we never do that. Instead we blame people around us making them responsible for our short comings. Now there can be an argument that we can mistakes.
Yes we can make mistakes, I am not denying that. But when we start repeating those mistakes everyday i think there is something wrong with us.
--
Inspired by a person very close to me
Sunday, 29 December 2013
Sending Mail using PHP
Recently, I was trying to send mails using php script
I found out a couple of alternatives to get the work done.
There are a lot of good sites sharing this information. I am just sharing the steps I took to get the job done.
I have used "Mail:factory " to send the mail. Again there a lot of options here, I have just used the most convenient one for me. Others are free to try and post
any options they can find.
Here goes nothing,
As you might have guessed, you will have to install "mail" for this to work For this we will install "pear" The simple command is (for linux : apt or yum)
This should pretty much to the trick.
I received a lot of help from Nitin Dalvi with regards to the script
The code block highlighting method can be found at the following link http://mateenmoosa.wordpress.com/2011/08/09/blogger-code-block/
I found out a couple of alternatives to get the work done.
There are a lot of good sites sharing this information. I am just sharing the steps I took to get the job done.
I have used "Mail:factory " to send the mail. Again there a lot of options here, I have just used the most convenient one for me. Others are free to try and post
any options they can find.
Here goes nothing,
<?php require_once "Mail.php"; $from = "from where you want"; $to = "send to your friend"; $subject = "Testing No Reply! Pl. Ignore"; $body = "Hi,\n\nTesting No Reply Functioning?"; $host = "smtp server address"; $port = "25"; #commonly 25 please check the port you are using $username = "USERNAME"; $password = "PASSWORD"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>Message successfully sent!</p>"); } ?>
As you might have guessed, you will have to install "mail" for this to work For this we will install "pear" The simple command is (for linux : apt or yum)
sudo apt-get install php-pearOnce we are done with pear installation we will install the mail application
pear install mailIf you get a message saying "no such package" then please check the internet connection. If you need to set the proxy for pear package then please use
pear config-set http_proxy http://username:password@your_proxy_server:portNote: The whole command is a to be used in a single line. Please do not press the return key
This should pretty much to the trick.
I received a lot of help from Nitin Dalvi with regards to the script
The code block highlighting method can be found at the following link http://mateenmoosa.wordpress.com/2011/08/09/blogger-code-block/
Sunday, 25 August 2013
Growing Up -- Credit
Credit can mean a lot of things. Most would be happy it reflected in their in bank statements but here I am referring to something called "Shabaski".
From our childhood we are trained to get credit for the things we do.
I am using the word trained because I believe no one is born with this idea. We gradually pick it up.
Let's look at this example.
A ten year old child is asked to pick up something from the floor and put it in the dustbin.
The child does this task ( Let us assume for the example the child actually listens in this case).
After successfully completing the task the gets a pat on his back.
This small thing develops in a habit. As the child grows this behaviour is repeated quite a few times.
Now the child is accustomed to this and every time he does something he looks into the eyes of the parents expecting a pat or may be a chocolate or may be pocket money depending on the age of the child.
Instead as he grows the pat's on his back tend to decrease. Something that was once considered very good suddenly seems to have lost its value.
Then he starts rationalizing in the wrong way (as we often do).
He first thinks, his task was not seen and may be if he repeats he will get the expected result.
Sometimes it works sometimes it doesn't. As time goes by this approach also changes.
Then he begins to wonder why the significance of his work is not being taken into account.
The task may be actually quite small and routine but for him it is the biggest thing there is.
Then he starts thinking if he is undervalued and so on and so forth.
The problem is we all think this way. Everyone wants appreciation for the work they do and there is nothing wrong in getting some appreciation. But as we grow we should realize we are doing certain things because we want to do them. So appreciation by others surely feels good but in no way does it help in enhancing or degrading the value of the work.
Rather should I say when we realize such things we start growing up.
From our childhood we are trained to get credit for the things we do.
I am using the word trained because I believe no one is born with this idea. We gradually pick it up.
Let's look at this example.
A ten year old child is asked to pick up something from the floor and put it in the dustbin.
The child does this task ( Let us assume for the example the child actually listens in this case).
After successfully completing the task the gets a pat on his back.
This small thing develops in a habit. As the child grows this behaviour is repeated quite a few times.
Now the child is accustomed to this and every time he does something he looks into the eyes of the parents expecting a pat or may be a chocolate or may be pocket money depending on the age of the child.
Instead as he grows the pat's on his back tend to decrease. Something that was once considered very good suddenly seems to have lost its value.
Then he starts rationalizing in the wrong way (as we often do).
He first thinks, his task was not seen and may be if he repeats he will get the expected result.
Sometimes it works sometimes it doesn't. As time goes by this approach also changes.
Then he begins to wonder why the significance of his work is not being taken into account.
The task may be actually quite small and routine but for him it is the biggest thing there is.
Then he starts thinking if he is undervalued and so on and so forth.
The problem is we all think this way. Everyone wants appreciation for the work they do and there is nothing wrong in getting some appreciation. But as we grow we should realize we are doing certain things because we want to do them. So appreciation by others surely feels good but in no way does it help in enhancing or degrading the value of the work.
Rather should I say when we realize such things we start growing up.
Saturday, 6 July 2013
RSSI and Throughput for MIMO
Throughput and RSSI are two of the most mysterious entities of the AP measurement world.
For Throughput measurement is an issue and for RSSI the interpretation of the measured value is a cause of concern. They vary from device to device and from one environment to other. This makes it almost impossible to define a standard set of values. For you define a standard then a room where the measurements are taken, the devices with which the measurements are taken including the wifi adapters and drivers and the exact same conditions have to be replicated.
The hardware can be duplicated but the environmental conditions, how do we create a mirror of these ?
If this was not complex for SISO systems we now have MIMO, where complex ascends to a totally different level.
As per my understanding RSSI values are generally scaled values not raw power at the antenna. The way these values get scaled depends on the manufacturer of the card and varies with different manufacturers. For e.g. some may choose 10 levels to scale the received power, some may choose 100 levels to scale the received power. Based on the scaling the same number can mean a different value for each manufacturer. There's no specific standard for this. One reason is because RSSI is mostly used for internal calibration. So different scales imply different calibration, which is fine.
A general trend suggests with increasing distance, RSSI decreases and so does the throughput. However, this is not linear. In MIMO systems, RSSI determines whether a client (any laptop or phone) can connect to the AP in consideration. If the RSSI is so low that no signal is detected then it doesn't matter what technology we use, we don't get anything. The noise floor is generally considered to be around -96 dbm. Now, depending on your client's sensitivity the minimum RSSI level will be decided.
It would be our first guess that plotting RSSI vs Throughput will give a straight line. It holds if we have a SISO system and in MIMO if we have very few obstacles. But here comes the troublesome part. In MIMO if we go in the shadow zone of an obstacle the RSSI will most likely drop but the throughput might increase or decrease depending on the processing gains obtained by various paths.
So now how do we measure the actual throughput in an office like environment with different cubicles. If we try to plot the RSSI vs Throughput graph now we will see points all over the place. This does not give a very good picture as to how these quantities behave.
Now lets make things even more complicated. Let the environment change as a function of time. Lets measure the RSSI and throughput at some fixed places. What we now expect(and if we are lucky we might get to see) is a band of values. I shall leave the interpretation to a keen observer.
For Throughput measurement is an issue and for RSSI the interpretation of the measured value is a cause of concern. They vary from device to device and from one environment to other. This makes it almost impossible to define a standard set of values. For you define a standard then a room where the measurements are taken, the devices with which the measurements are taken including the wifi adapters and drivers and the exact same conditions have to be replicated.
The hardware can be duplicated but the environmental conditions, how do we create a mirror of these ?
If this was not complex for SISO systems we now have MIMO, where complex ascends to a totally different level.
As per my understanding RSSI values are generally scaled values not raw power at the antenna. The way these values get scaled depends on the manufacturer of the card and varies with different manufacturers. For e.g. some may choose 10 levels to scale the received power, some may choose 100 levels to scale the received power. Based on the scaling the same number can mean a different value for each manufacturer. There's no specific standard for this. One reason is because RSSI is mostly used for internal calibration. So different scales imply different calibration, which is fine.
A general trend suggests with increasing distance, RSSI decreases and so does the throughput. However, this is not linear. In MIMO systems, RSSI determines whether a client (any laptop or phone) can connect to the AP in consideration. If the RSSI is so low that no signal is detected then it doesn't matter what technology we use, we don't get anything. The noise floor is generally considered to be around -96 dbm. Now, depending on your client's sensitivity the minimum RSSI level will be decided.
It would be our first guess that plotting RSSI vs Throughput will give a straight line. It holds if we have a SISO system and in MIMO if we have very few obstacles. But here comes the troublesome part. In MIMO if we go in the shadow zone of an obstacle the RSSI will most likely drop but the throughput might increase or decrease depending on the processing gains obtained by various paths.
So now how do we measure the actual throughput in an office like environment with different cubicles. If we try to plot the RSSI vs Throughput graph now we will see points all over the place. This does not give a very good picture as to how these quantities behave.
Now lets make things even more complicated. Let the environment change as a function of time. Lets measure the RSSI and throughput at some fixed places. What we now expect(and if we are lucky we might get to see) is a band of values. I shall leave the interpretation to a keen observer.
Sunday, 3 February 2013
Why does a cat close its eyes when drinking milk?
We have a heard a lot of saying referring to a cat closing its eyes and drinking milk.
We compare it to people who feel the world stops looking just because they can not see
who is looking.
We also refer it to short sightedness.
But do we really think why the cat closes it's eyes when drinking food?
It is vulnerable when snacking to other creatures of bigger size.
Mostly kids throwing stones or playing cricket, sometimes dogs and
sometimes adults when the cats sneaking into the house to have a drink.
Even so, the eyes are closed
There can be a simple explanation to it.
If the eyes were open the cat might get a squint.
It's face is so close to the bowl and the tongue is also small.
Trying to look at such close distances will be like trying to look at our nose to figure out how big it is.
In all fairness, even we don't look at out morsels when we are eating
We are too busy looking at the opposite person and pointing mistakes or too lost in out thoughts to notice our hands going to our mouth and food in our tummies.
We compare it to people who feel the world stops looking just because they can not see
who is looking.
We also refer it to short sightedness.
But do we really think why the cat closes it's eyes when drinking food?
It is vulnerable when snacking to other creatures of bigger size.
Mostly kids throwing stones or playing cricket, sometimes dogs and
sometimes adults when the cats sneaking into the house to have a drink.
Even so, the eyes are closed
There can be a simple explanation to it.
If the eyes were open the cat might get a squint.
It's face is so close to the bowl and the tongue is also small.
Trying to look at such close distances will be like trying to look at our nose to figure out how big it is.
In all fairness, even we don't look at out morsels when we are eating
We are too busy looking at the opposite person and pointing mistakes or too lost in out thoughts to notice our hands going to our mouth and food in our tummies.
Wednesday, 26 December 2012
Solution to Android connectivity problems
A few posts ago, there was post mentioning the process of converting the laptop to a WIFI hotspot.
Well, all the efforts and then the android phone refuses to connect.
As though possessing a will of its own.
It connects once in a blue moon and shows who the boss is .
After spend quite some time in frustration and surfing online
The problem I faced was as follows
Phone connects to wifi
But does not get a valid IP address
then it disconnects
Scans after some time and repeats the procedure again and again and again.
I got a few workarounds
I will mention them so that others wont have the feeling of throwing their phone out of the window
and onto a busy street where the probability of the phone being crushed is certain.
A simple method is to install WIFI FIXER app
It resets the phone's wifi and enables you to connect.
It also monitors the phone's wifi status which is a neat feature.
Another method is to use a static ip
The process is as follows
Before switching on the wifi
Go in wifi settings
click on advanced
check the use static ip address box
enter the following settings
ip address:- 192.168.1.253
gateway:-192.168.1.1
mask:- 255.255.255.0
dns:-4.4.8.8
Once this is completed enable your wifi
The phone should immediately connect to the wifi network
wait for some time just to make sure it stays connected.
Once you are assured that your phone is connected to wifi.
Again go in wifi settings
advanced tab
and uncheck the use static ip address box
At this time you should the ip address in use in the box above the static ip address box
Once you un check your use static ip address box
Your phone will still remain connected and you will be able to browse on your phone
cheerrsss
wishing everyone a merry christmas
Well, all the efforts and then the android phone refuses to connect.
As though possessing a will of its own.
It connects once in a blue moon and shows who the boss is .
After spend quite some time in frustration and surfing online
The problem I faced was as follows
Phone connects to wifi
But does not get a valid IP address
then it disconnects
Scans after some time and repeats the procedure again and again and again.
I got a few workarounds
I will mention them so that others wont have the feeling of throwing their phone out of the window
and onto a busy street where the probability of the phone being crushed is certain.
A simple method is to install WIFI FIXER app
It resets the phone's wifi and enables you to connect.
It also monitors the phone's wifi status which is a neat feature.
Another method is to use a static ip
The process is as follows
Before switching on the wifi
Go in wifi settings
click on advanced
check the use static ip address box
enter the following settings
ip address:- 192.168.1.253
gateway:-192.168.1.1
mask:- 255.255.255.0
dns:-4.4.8.8
Once this is completed enable your wifi
The phone should immediately connect to the wifi network
wait for some time just to make sure it stays connected.
Once you are assured that your phone is connected to wifi.
Again go in wifi settings
advanced tab
and uncheck the use static ip address box
At this time you should the ip address in use in the box above the static ip address box
Once you un check your use static ip address box
Your phone will still remain connected and you will be able to browse on your phone
cheerrsss
wishing everyone a merry christmas
Subscribe to:
Posts (Atom)