We are strongly race behind chemicals ( drugs) for normal illness. There are some Breathing exercises that helps to prevent illness without taking medicines. Let's see....
Our noses have left and right nostrils. Are these nostrils having the same function for inhaling (breathe in) and exhaling (breathe out)?
Actually it’s not the same and we can feel the difference. Accordingly, the right side represents the sun and the left side represents the moon.
When having headaches, try to close your right nostril and use your left nostril to do breathing for about 5 min. The headache will be gone.
If you feel too tired, do it the opposite way. Close your left nostril and breathe through your right nostril. After a while, you will feel refreshed again.
Because the right side belongs to heat, so it gets hot easily. The left side gets cold easily.
Women breathe mainly with their left nostril, so they get calmed down easily. Men breathe mostly with their right nostril, so they get angry easily.!
When we wake up, do we notice which nostril breathes faster? Is it the left side or the right side?
If the left nostril breathes faster, you will feel very tired. Close your left nostril and use your right nostril for breathing and you will get refreshed quickly.
You can teach your kids about it. The effect of breathing therapy on them is much better than for adults.
I used to tell others who also suffer from headaches to try this method as it was effective for me. It also worked for those who have tried this breathing techniques as well. This is a natural therapy, unlike taking medicines for a long time, which may have negative side effects.
So, why don’t you try this breathing techniques out?
Practise the correct ways of breathing (breathe in and breathe out) and your body will be in a very relaxing condition!
Wednesday, 12 December 2012
How to Read Gmail Unread messages using C#
I am coming with Gmail feature that may be useful although many people don't know and how to access it via simple C# code.
Gmail gives a feature called Atom feed that is xml format file to know the unread messages .
http://mail.google.com/mail/feed/atom/ shows the most recent unread items from your inbox.
Gmail also offers feeds for your labels:http://mail.google.com/mail/feed/atom/labelname/ .
To know the feature in detials go to this link @ (the unofficial news and tips about Google).
As a developer you can download the C# example here.
All what you need is create instance a simple class called GmailHandler and drop this lines in your project.
There are 2 steps in the procedure
- Create the gmail handler class: GmailHandler gmailFeed = new GmailHandler("WriteHereYourGmailUserName(ex: babu))", "WriteHereYourGmailPassword(ex: ****)");
- Get the feed: XmlDocument myXml = gmailFeed.GetGmailAtom();
happy coding............
Thanks to Ahmed Essawy for sharing this...
Given here http://fci-h.blogspot.in/2009/09/reading-atom-feed-of-gmail-inbox-via-c.html
Update:
Sorry guys I'm not good at content editing.. Forgive me if any mistakes found.
For this we need to call the specific atom url with the authentication.
What ahmed is trying is make this as class library and make it more object oriented. If you don't care about such things go below
StringBuilder sBuilder = new StringBuilder();
// create a request for gmail atom url
WebRequest webRequest = WebRequest.Create( "https://mail.google.com/mail/feed/atom");
// make the request pre authenticated
webRequest.PreAuthenticate = true;
// Create the credentials and attach it to the request
System.Net.NetworkCredential credentials = new NetworkCredential("gmail username", "gmail password");
webRequest.Credentials = credentials;
//Pass the request and get the response
WebResponse webResponse = webRequest.GetResponse();
Stream stream = webResponse.GetResponseStream();
// Get the response stream and read it to a string builder
while ((byteCount = stream.Read(buffer, 0, buffer.Length)) > 0)
sBuilder.Append(System.Text.Encoding.ASCII.GetString(buffer, 0, byteCount));
// Then convert the string to xml
feedXml = new XmlDocument();
feedxml.Load(sBuilder.ToString());
This method only returns the unread gmail messages only.. You can make it to some sort of notifications to your app....
Thanks....
Subscribe to:
Comments (Atom)