Monday, February 10, 2014

5 Tips for Yoga Beginners

Source: Lifehacker

Fix a time: First of all, make it a habit to practice yoga at a fixed time though you are doing it at home. This could be an hour just after you wake up or in the evening. Fixing a time will get you in a habit of doing yoga exercises every day without fail.

Select your space: If you are doing yoga at home, there are chances you might be disturbed at activities of your family members, constant ringing of doorbells or telephone, etc. Choose a private corner where you will not be disturbed or come in the way of your family.

Start small: If you are a beginner, start with easy-to-do yoga poses or stretching exercises. Even doing yoga for 20 minutes initially, including pranayam can go a long way in building your core.

Research: If need be, take up a yoga class for a month or call a yoga teacher at home to learn all the exercises. You can then practice them on your own. Otherwise, opt for yoga DVDs for lessons.

Set the mood: Yoga is also about finding inner peace. So, set the mood at home by dimming the lights and putting on soft music in the background that will motivate you to practice yoga.

Monday, January 27, 2014

12 Things Happy People Do Differently by Stephen Covey

1. Express Gratitude: When you appreciate what you have, what you have appreciates in value. If we aren’t thankful for what we already have, we will have a hard time ever being happy.
2. Cultivate Optimism: People who think optimistically see the world as a place packed with endless opportunities, especially in trying times.
3. Avoid over-thinking and social comparison: Comparing yourself to someone else can be poisonous. The only person you should compare to yourself is yourself before now.
4. Practice acts of kindness: Selflessly helping someone is a super powerful way to feel good inside.
5. Nurture social relationships: The happiest people on the planet are the ones who have deep, meaningful relationships.
6. Develop strategies for coping: It helps to have healthy strategies for coping per-rehearsed, on-call, and in your arsenal at your disposal (like an affirmation).
7. Learn to forgive: Harbouring feelings of hatred is horrible for your well being.
8. Increase flow experiences: Flow is a state in which it feels like time stands still. It’s when you’re so focused on what you’re doing that you become one with the task. Nothing is distracting you or competing for your focus.
9. Savour life’s joys: Deep happiness cannot exist without slowing down to enjoy the joy.
10. Commit to your goals: Magical things start happening when we commit ourselves to doing whatever it takes to get somewhere.
11. Practice spirituality: When we practice spirituality or religion, we recognize that life is bigger than us. We surrender the silly idea that we are the mightiest thing ever.
12. Take care of your body: Taking care of your body is crucial to being the happiest person you can be.

Friday, January 10, 2014

An Inspirational Story to improve difficult relationships

TGIF : An Inspirational Story to improve difficult relationships
 
A long time ago in China, a girl named Li-Li got married and went to live with her husband and mother-in-law.
In a very short time, Li-Li found that she couldn’t get along with her mother-in-law at all. Their personalities were very different, and Li-Li was angered by many of her mother-in-law’s habits. In addition, she criticized Li-Li constantly.
Days passed days, and weeks passed weeks. Li-Li and her mother-in-law never stopped arguing and fighting. But what made the situation even worse was that, according to ancient Chinese tradition, Li-Li had to bow to her mother-in-law and obey her every wish. All the anger and unhappiness in the house was causing the poor husband great distress.
Finally, Li-Li could not stand her mother-in-law’s bad temper and dictatorship any longer, and she decided to do something about it.
Li-Li went to see her father’s good friend, Mr. Huang, who sold herbs. She told him the situation and asked if he would give her some poison so that she could solve the problem once and for all. Mr. Huang thought for a while, and finally said, “Li-Li, I will help you solve your problem, but you must listen to me and obey what I tell you.”
Li-Li said, “Yes, Mr. Huang, I will do whatever you tell me to do.” Mr. Huang went into the back room, and returned in a few minutes with a package of herbs.
He told Li-Li, “You can’t use a quick-acting poison to get rid of your mother-in-law, because that would cause people to become suspicious. Therefore, I have given you a number of herbs that will slowly build up poison in her body. Every other day prepare some delicious meal and put a little of these herbs in her serving. Now, in order to make sure that nobody suspects you when she dies, you must be very careful to act very friendly towards her. Don’t argue with her, obey her every wish, and treat her like a queen.”
Li-Li was so happy. She thanked Mr. Huang and hurried home to start her plot of murdering her mother-in-law.
Weeks went by, months went by, and every other day, Li-Li served the specially treated food to her mother-in-law. She remembered what Mr. Huang had said about avoiding suspicion, so she controlled her temper, obeyed her mother-in-law, and treated her like her own mother. After six months had passed, the whole household had changed.
Li-Li had practiced controlling her temper so much that she found that she almost never got mad or upset. She hadn’t had an argument in six months with her mother-in-law, who now seemed much kinder and easier to get along with.
The mother-in-law’s attitude toward Li-Li changed, and she began to love Li-Li like her own daughter. She kept telling friends and relatives that Li-Li was the best daughter-in-law one could ever find. Li-Li and her mother-in-law were now treating each other like a real mother and daughter.
Li-Li’s husband was very happy to see what was happening.
One day, Li-Li came to see Mr. Huang and asked for his help again. She said, “Mr. Huang, please help me to stop the poison from killing my mother-in-law! She’s changed into such a nice woman, and I love her like my own mother. I do not want her to die because of the poison I gave her.”
Mr. Huang smiled and nodded his head. “Li-Li, there’s nothing to worry about. I never gave you any poison. The herbs I gave you were vitamins to improve her health. The only poison was in your mind and your attitude toward her, but that has been all washed away by the love which you gave to her.”
Moral : Make a conscious choice to see the good qualities of the person in relationships , act it out, if necessary  and gradually and surely let time heal relationships…
Let’s start making amends.

Tuesday, November 12, 2013

Leap Year

Every 4th year is leap year,
but every 100th is not,
Every 400th year is leap year,
but every 4000th is not.

Hence,
1996 - leap Year
2000 - Leap year
2100 - non leap year
4000 - non leap year.

Pseudo code
if year is divisible by 400 then
   is_leap_year
else if year is divisible by 100 then
   not_leap_year
else if year is divisible by 4 then
   is_leap_year
else
   not_leap_year

Java code
import java.util.Scanner;
public class LeapYear {
    public static void main(String[] args) {
        Scanner lukija = new Scanner(System.in);
        System.out.print("Give year: ");
        int year = Integer.parseInt(lukija.nextLine());
        if (year % 4 == 0 && ( year % 100 != 0 || year % 400 == 0 ) ) {
            System.out.println("Year is leap year");
        } else {
            System.out.println("Year is not a leap year..");
        }
    }
}

Monday, November 11, 2013

Top 10 fat-releasing foods

Source: http://timesofindia.indiatimes.com/life-style/health-fitness/diet/Top-10-fat-releasing-foods/articleshow/17898379.cms


If losing weight is on your mind, then running the whole day on the treadmill after over-eating unhealthy food won't work. Without making some changes in your lifestyle, your goal to lose weight will not be achieved. Though there are many hoax assurances available in the market for fast weight loss, most of them are dangerous and unreal. The key to weight loss, besides exercise and diet changes is boosting your metabolism. The best way to kickstart your metabolism is by including some fat burning foods in your regular diet. Today, Priya Kathpal - Nutritionist, Mumbai, shares a list of fat burning food items to make your weight loss program more simple and effective.

No #1 Fat-releasing food: Calcium

You must have heard that calcium helps to strengthen bones and teeth, but you will be amazed to hear that calcium also helps to control hunger pangs. Consumption of dairy products and other calcium rich products have low fat mass in their body and have more control over appetite. Hence, consume more of calcium rich products, if you want to shift your body to a fat burning mode.

No #2 Fat-releasing food: Apples

Besides keeping the doctor visits away, consumption of apple everyday also assists in reducing fat cells in the body. The skin of the apple possesses great magical properties towards fulfilling your goal of weight reduction. The presence of pectin limits the absorption of fat by the cells and also releases fat deposits through its water binding property.

No #3 Fat-releasing food: Walnuts

Walnuts possess a healthy dose of omega-3 fat alpha-linolenic acid and mono-unsaturated fats. The presence of mono-unsaturated fat helps to burn a large amount of fat and boosts the metabolism at the same time. Just a handful of walnuts are needed to reduce weight in a healthy way. It is also one of the healthiest nuts available.

No #4 Fat-releasing food: Beans

Beans are low-fat, low glycemic index and high - fiber and protein. This is the best food for protein intake for vegetarians. Besides, it is the best fat burning food as it provides great a metabolic environment for releasing and metabolizing fatty acids.

No #5 Fat-releasing food: Ginger

Ginger possesses many magical properties. It helps to relieve digestive problems, reduces inflammation, increases blood flow and aids muscle recovery. If you are on a weight loss program, include ginger in your diet as it helps to boost calories and fats.

No #6 Fat-releasing food: Oatmeal

Include oatmeal in the morning after a workout or after a normal morning walk. Oatmeal is a slow-digesting carb which helps to keep blood sugar and insulin level at its minimum whilst fastening the fat burning process. Due to its slow-digesting carb property it is a must have food for every individual who wants to reduce some pounds.

No #7 Fat-releasing food: Green tea

The presence of anti-oxidants EGCG creates a suitable environment for metabolism in healthy people. Besides, it also possesses anti cancer and cholesterol maintenance properties.

No #8 Fat-releasing food: Hot peppers

Consuming hot peppers will help to speed up your metabolism by burning fat and calories at a faster rate, albeit for a short duration after meals. The presence of capsaicin helps to provide short-term stimulus to your body by releasing stress hormones. This process helps to boost your metabolism and hence burns calories and fats.

No #9 Fat-releasing food: Water

Though it's not a food, drinking enough water is essential - says Priya. This is the most important element needed by your body. If you don't drink much water, within minutes you will feel dehydrated. At times we also mistake thirst pangs for hunger pangs and end up eating instead of drinking. Hence, it is essential to drink adequate amounts of water as it is helpful for fat loss.

No #10 Fat-releasing food: Eggs

Eggs are one of the best fat burning foods available. The yolk present inside is very essential to burn fat and calories. Presence of dietary cholesterol has very little effect on blood cholesterol levels. Besides, eggs are packed with essential fatty acids and protein, which definitely makes it a great combination for fat burning.


Foods for Gud Skin
1. Beet Root
2. Banana
3. Cucumber
4. Gauva
5. Spinach
6. Red Cabbage

Thursday, October 24, 2013

Source:
http://tech2.in.com/how-to/software/how-to-trigger-an-application-via-email-in-outlook/593772

If you have been using Microsoft Outlook at office or at home, you will know that there is an option to assign rules to every email that you send or receive. Each rule can be set to move any email – be it from a person, an email account or with particular texts in the subject or the body – to particular folders automatically. Therefore, every time an email is sent or arrives, the set rules take over and handle the emails accordingly. A few might know that you could also actually use these rules to get some automated work done for you.

Let’s take a practical example from our day-to-day life. You are at office and your home PC is set to download some torrents or is presently downloading a large file from an HTTP or FTP server. Now you need to access your PC remotely to shut it down, resume a paused download or maybe stop the seeding of a particular torrent. One option is RDP or using Team Viewer software, which can help you completely. However, if the case is the opposite and your PC is in the office and you are at home, and your office network does not permit the use of RDP or Team viewer, you cannot access the PC at all.

Another example is that of a network admin who has his servers running at office and now he needs to run a backup, synchronise some data to an FTP server, simply shut down the server or start a service. He too can use an RDP or VNC client and take over or schedule some tasks in this case. Here again, what if you need to remotely access the office PC or network? Or, what if you are on a long weekend or a holiday and you do not have a PC and are only left with a mobile phone with a weak or no Internet connection at all? What do you do in such a case? One option is to call someone at home or office (depending on the situation) to get the work done. However, this also involves giving away your access password. Alternatively, in the worst case scenario, what if there's no one at home or office or you forgot to keep the RDP, VNC server or Team Viewer utility running? You would only have to wait until you get back to the PC and physically access it. There is a simple method to save your day and a simple email can come to your rescue.
Head on to the Rules and Alerts section in Outlook
Head on to the Rules and Alerts section in Outlook


If you have been using Microsoft Office on your PC, then you'll definitely find Microsoft Outlook in the bundle. Why not make use of Outlook to do this simple important job for you? All you need to do is set some rules on your Outlook client, and the rule will detect the phrases and do the suitable work it is designed to do.

In this article, we shall show you one example of how to trigger an application on the PC by simply sending an email to a specified email account. All that is necessary is exact defined words in the subject or body text. In our example, we are going to send an email with the subject “Start TeamViewer” and Outlook will start it for us without any questions asked, unless necessary. However, before doing so, you have to pre-configure the application that needs triggering and ensure that Outlook is running in the background.
Select the rule for the emails that arrive
Select the rule for the emails that arrive


Check out what needs to be done. Initially, set up Outlook to receive emails using the POP or IMAP settings. It is recommended that you register yourself with a new Gmail account and configure the POP servers for the email in Outlook. Once Outlook is configured for the new email account, follow the procedure ahead.

Click on “Tools - > Rules and Alerts”. On the new window that pops up, click on the ‘New Rule…” button. A “Rules Wizard” window will pop up. Here you need to set the first criteria – the Template. There are three templates here, of which two are pre designed and one is a manual setup. In the top section, select "Check messages when they arrive" from the section "Start from a blank rule" and click "Next". In the next window, you will find a lot of check boxes with different criterion for the rule. Select "through specified account" and "with specific words in the subject". This selection will make sure the triggering email has come in from a specified email account and has the specific words in the subject line. You can choose many more options such as words in the message body or subject, in senders address, in the header, date span, emails with attachments, and many more—take your pick.
Select the application that needs triggering
Select the application that needs triggering


After you have checked the box(es), you will find the bottom window filling up with lines according to your selection. Each line will have an underlined word(s), which means you have to specify the function for it. In our example, we selected text in the subject body and hence, we have to specify the specific words for it. Click on the "Specific Words" and you will see a new popup where you can add a single or multiple words to the list. After you have finished adding the words, move on by clicking the "Next" button. Here you will need to specify the execution for the trigger. You can choose to let Outlook send, move or delete the email to folders, play a sound, start an application, process more rules or simply display an alert window. In our case, we have selected to start an application. Click on "application" in the bottom window and enter the path to the application you want to run. After you have selected the application, click on "Finish" and return to the rules wizard. Now send a test email to the email account and check if outlook receives the email and automatically starts the application you asked for.

Note: Outlook is usually set to send and receive emails automatically after every 30-minute interval. You need to decrease this time to around 5 minutes or lower. To do this, go to "Tools -> Options -> Mail Setup -> Send/Receive" and decrease the scheduling period. This will ensure that your application or function is triggered within 5 minutes, at least.

Tip: You can use a mouse and keyboard macro recorder to record your work and play the sequence accordingly if your trigger application needs additional user intervention after being started. "Macro Recorder" is a keyboard and mouse macro recording utility for Windows, which can convert the recorded actions into a single EXE file for execution. This can be used for operating applications such as torrent clients, backup and sync utilities, server services, video chatting utilities etc., where user intervention is required. This process can also be used for starting a video surveillance using your webcam in your absence.

If you have been using Microsoft Outlook at office or at home, you will know that there is an option to assign rules to every email that you send or receive. Each rule can be set to move any email – be it from a person, an email account or with particular texts in the subject or the body – to particular folders automatically. Therefore, every time an email is sent or arrives, the set rules take over and handle the emails accordingly. A few might know that you could also actually use these rules to get some automated work done for you.

Let’s take a practical example from our day-to-day life. You are at office and your home PC is set to download some torrents or is presently downloading a large file from an HTTP or FTP server. Now you need to access your PC remotely to shut it down, resume a paused download or maybe stop the seeding of a particular torrent. One option is RDP or using Team Viewer software, which can help you completely. However, if the case is the opposite and your PC is in the office and you are at home, and your office network does not permit the use of RDP or Team viewer, you cannot access the PC at all.

Another example is that of a network admin who has his servers running at office and now he needs to run a backup, synchronise some data to an FTP server, simply shut down the server or start a service. He too can use an RDP or VNC client and take over or schedule some tasks in this case. Here again, what if you need to remotely access the office PC or network? Or, what if you are on a long weekend or a holiday and you do not have a PC and are only left with a mobile phone with a weak or no Internet connection at all? What do you do in such a case? One option is to call someone at home or office (depending on the situation) to get the work done. However, this also involves giving away your access password. Alternatively, in the worst case scenario, what if there's no one at home or office or you forgot to keep the RDP, VNC server or Team Viewer utility running? You would only have to wait until you get back to the PC and physically access it. There is a simple method to save your day and a simple email can come to your rescue.
Head on to the Rules and Alerts section in Outlook
Head on to the Rules and Alerts section in Outlook


If you have been using Microsoft Office on your PC, then you'll definitely find Microsoft Outlook in the bundle. Why not make use of Outlook to do this simple important job for you? All you need to do is set some rules on your Outlook client, and the rule will detect the phrases and do the suitable work it is designed to do.

In this article, we shall show you one example of how to trigger an application on the PC by simply sending an email to a specified email account. All that is necessary is exact defined words in the subject or body text. In our example, we are going to send an email with the subject “Start TeamViewer” and Outlook will start it for us without any questions asked, unless necessary. However, before doing so, you have to pre-configure the application that needs triggering and ensure that Outlook is running in the background.
Select the rule for the emails that arrive
Select the rule for the emails that arrive


Check out what needs to be done. Initially, set up Outlook to receive emails using the POP or IMAP settings. It is recommended that you register yourself with a new Gmail account and configure the POP servers for the email in Outlook. Once Outlook is configured for the new email account, follow the procedure ahead.

Click on “Tools - > Rules and Alerts”. On the new window that pops up, click on the ‘New Rule…” button. A “Rules Wizard” window will pop up. Here you need to set the first criteria – the Template. There are three templates here, of which two are pre designed and one is a manual setup. In the top section, select "Check messages when they arrive" from the section "Start from a blank rule" and click "Next". In the next window, you will find a lot of check boxes with different criterion for the rule. Select "through specified account" and "with specific words in the subject". This selection will make sure the triggering email has come in from a specified email account and has the specific words in the subject line. You can choose many more options such as words in the message body or subject, in senders address, in the header, date span, emails with attachments, and many more—take your pick.
Select the application that needs triggering
Select the application that needs triggering


After you have checked the box(es), you will find the bottom window filling up with lines according to your selection. Each line will have an underlined word(s), which means you have to specify the function for it. In our example, we selected text in the subject body and hence, we have to specify the specific words for it. Click on the "Specific Words" and you will see a new popup where you can add a single or multiple words to the list. After you have finished adding the words, move on by clicking the "Next" button. Here you will need to specify the execution for the trigger. You can choose to let Outlook send, move or delete the email to folders, play a sound, start an application, process more rules or simply display an alert window. In our case, we have selected to start an application. Click on "application" in the bottom window and enter the path to the application you want to run. After you have selected the application, click on "Finish" and return to the rules wizard. Now send a test email to the email account and check if outlook receives the email and automatically starts the application you asked for.

Note: Outlook is usually set to send and receive emails automatically after every 30-minute interval. You need to decrease this time to around 5 minutes or lower. To do this, go to "Tools -> Options -> Mail Setup -> Send/Receive" and decrease the scheduling period. This will ensure that your application or function is triggered within 5 minutes, at least.

Tip: You can use a mouse and keyboard macro recorder to record your work and play the sequence accordingly if your trigger application needs additional user intervention after being started. "Macro Recorder" is a keyboard and mouse macro recording utility for Windows, which can convert the recorded actions into a single EXE file for execution. This can be used for operating applications such as torrent clients, backup and sync utilities, server services, video chatting utilities etc., where user intervention is required. This process can also be used for starting a video surveillance using your webcam in your absence.