Showing posts with label Guest Post. Show all posts
Showing posts with label Guest Post. Show all posts

26 April 2013

Staying Fit Away From Home

This is a guest post by Michael Manning. Michael Manning is a fitness and healthy living aficionado. You can find his writing at his new blog located at http://mikemanningmusings.blogspot.com

Summer is on its way, and for many people, that means it's time for vacation. Unfortunately, it also means that you could ruin the physique you've worked so hard to attain. It's easy to slack off on your diet and fitness routines while you're traveling. There are plenty of fun things to do and ready access to any junk food your heart desires. Furthermore, it's tempting to ditch your healthy habits using the vacation as an excuse. To avoid re-packing on the pounds, it's important to maintain your fitness routine away from home.

Plan for Fitness
When you're arranging your accommodations, try to choose a hotel that has a fitness center. On a recent trip to San Francisco I was able to book great accommodations because I did some research beforehand. I checked a travel review site where I could see all of the hotels in San Francisco and check what amenities they offered and see great reviews from people who previously stayed there. When you get up in the mornings, head straight to the fitness room and get your workout out of the way. Studies have shown that this gives you more energy and makes you more likely to make healthy food choices throughout the day. If the fitness room should get full, however, it's important to have backup. Just in case, it's recommended that you pack some minor fitness gear such as a pulse monitor and some resistance bands. With these things, you can easily work out in the comfort and privacy of your hotel room.

Choose Wisely from the Menu
Many hotels serve a continental breakfast. Depending on how you make your choices, this can be either a benefit or a burden. Without a doubt, there will be junk foods like pastries, kids' cereals, french toast and waffles. However, there will also be healthy foods that will help you maintain your fitness goals. Aim for the healthy foods so you can keep up with your diet, which will also help your energy levels for the day. For snacks and other meals, a trip to the local grocery can be helpful. Stock up on ready-made salads, nuts or fresh and dried fruit. It is important to indulge every once in a while when you are on vacation, but keeping an overall healthy diet will help you with your sleep, energy levels, and stress which will in turn make your trip much more pleasant.

Stay Hydrated
It's easy to become dehydrated during your travels. For starters, the air inside of a plane's cabin is very dry, causing you to lose water rapidly. While flying, make an effort to drink a glass of water at least every hour. It's also best to avoid dehydrating beverages like alcohol, sugar and caffeine. Once you arrive at your destination, if you spend a lot of time outside in the sun, always bring some water with you. Your metabolism and energy levels suffer when you're under-hydrated, leaving you vulnerable to weight gain and fatigue.

15 November 2010

Yes, Testing is Fun and Brain Intensive

Preamble

Few days back, i wrote on the topic - "Testing is Fun and Brain Intensive - Why" giving a scenario. I was stumbled by the comments of Rajaguru and thought it had deeper/unusual meaning. Hence requested him to share his insights by expanding his comments. This post is just expanded version of his comments and hence the post will be little short (if you take this as a comment, then it is bit lengthy). Before reading this post, i would suggest you to read this and then come back here. From here on, the post contains insights shared by Rajaguru via his comments. BTW, this is the first guest post in Unstuck (a new thing). Looking forward for more guest posts with deeper insights.

@rajaguru - thank you for the new start :-)

Real Stuff & Insights by Rajaguru

When I saw @lnarasim tweeted the title ”Testing is Fun and Brain Intensive”, the immediate thought that came to my mind was "wasn't the testing boring one"? Because that's what we will discuss with other people. As a developer we think that testing is mundane and routine task. The more I thought about it, the clearer I was because I was testing (questioning) my thoughts! Leave the philosophy and let us get back to real stuff. Being a developer, designer or tester, testing is must, the more we test the more effective is our design, coding, system. Come on let’s test and find it!

In the post the problem states, test the following, assume you are testing compiler, and don’t go beyond the integer.

int a = 10, b = 255, c;
c = a + b;
Simple. Isn’t? The first test case comes to my mind is print the value of the variable "c" and check the answer is 265. Shall we consider the testing of “+” is over? Why not it produces the desired result. Let me stop and rethink, whether the testing over. Noo. (A big No... not big O J ).
I am testing the operator “+” for integer, when you say Operator, you need to test what are the possible operands it can take. Whether it takes +ve integer or –ve integer? If it’s +ve or –ve the range it takes?
The operand is over, what about the result? What it takes, when both the operand reaches the maximum value if result also same type, how it can be assigned the result? So, whether result should be stored in a data type that accepts higher range than the operands?
          
Whether now we covered all the test cases? Rethink, we are testing compiler, and operator “+”?  Now we will move one step further, how the addition can be implemented, using number of shift operations? Or move operations? Binary additions? Incase, what are the instructions it should use for implementing that? Whether, all machines support the same instruction set?
Where this value will be stored? Memory requirements to run this program? … Let me stop here. May be we can’t stop on some point saying all possible test cases are identified? Always we can add more, test more, and break the system, change the implementation and start the testing from the scratch.
We can conclude that Testing is really Fun and of course Brain Intensive too, when you want to get more understanding of the system, test the system until system is broken or you are broken :-)

About Rajaguru:
Software Engineer by profession, chatterbox to friends. He says he always searches something in Google, books, movies and life. Connect with him in Twitter, Facebook, LinkedIn. For those who want to see the "user interface" of Rajaguru to identify when you see him next time (to buy you food or movie ticket), here is his picture with a temple backdrop.