Sunday, December 12, 2010

Path to six packs.

There are tons of articles & each article has something unique on six packs.
This has become buzz word in recent times where more fitness, health consciousness of how to maintain healthy body & mind.




Let us run through the easiest ways to reach six packs.

1. Burn fat. Without cardio there is nothing.
2. Stay away from sugar sweets,cakes, chocolates, sodium packaged foods.
3. Go for protein based food - Whey powder( has 22g of protein), soy beans( 20g), almonds(12g), peanuts(10g). (Numbers on a rough). Drink plenty of water.
4. Add natural carbohydrates via fruits - on daily basis(apples, oranges, grapes,bananas) plus vegetables - carrots, broccoli, spinach. Also, going for wheat whole grain 100% fiber bread will help to supply good fiber to the body.

5. Get your heart rate up to your some optimum level where you can breathe & balance via some cardio (treadmill/cycling/any one). 30- 60 mins per day will do wonders.
6. If you are meat eater (am not, so no idea), pls. check for appropriate meat (could be chicken,fish). Remember meat contain lot of fat, so choose carefully.
7. Make a habit to have fat-free milk & fat-free cottage cheese, which has good amount of protein, which can be the food for your muscles.
8. Head for resistance exercises - plan for upper body exercises(weight lifting, shoulders) one day, lower body the next day(weight pull via legs, squat exercise).
9. Go for crunches, static holdup(elbow on the ground, lie on a line, lift your body).




Never do these exercises if you don't have some carbohydrates(brown rice will be good,bananas) before 1-2 hrs, you need good energy to do workouts. More importantly, if you don't have at least 7(accepted)- 8 (good) hrs of sleep, don't attempt trying more heavy workouts, its not good for your blood pressure levels.


Happy six packing :)

Tuesday, December 7, 2010

Thanksgiving is about giving love & happiness.

Thanksgiving is not about eating turkeys, mashed potatoes, heading to black friday, buying some electronic/softwares on cyber monday.

Thanksgiving is all about love & happiness, the current trend is becoming like all the family members meet only once (on thanksgiving) or twice per year.(on Christmas). Due to the way the lifestyle is changing & in olden days people were leaving within the same city, were able to meet multiple times, but not like those, these times.

The first American thanksgiving was celebrated in 1621, to honor the memory of with a ceremony for the harvest reaped by the plymouth colony after a harsh winter.


I always used to hear from my friend that thanksgiving is more about sharing love & happiness with family & friends. Next time when you celebrate don't forget to invite one/many of your friend/family members who is living away from his/her family, that way you are adding real value to thanksgiving & sharing your love & happiness, we never want to be alone in thanksgiving day.

Sunday, July 11, 2010

Giving up is an excuse and finding an excuse is a crime.

How many times have you seen India losing a match in cricket as soon as sachin gets out? even if you have 5 wickets indian team could not hit the required 16-20 odd runs with more balls remaining, How many times have you failed in your interviews, how many times, you made wrong decisions? It happens, mistakes bound occur, but, when we need to wake up ourselves? all because of giving up things easily.

We want to achieve more, but not ready to take extra effort, when everyone watching matches, everyone sitting in cinema theaters, everyone sitting in living room watching movie with popcorn and coke in hand, there are persons who don't waste their time, each sec is important for them, remember Bill Gates if you need to speak with him, you need to get appointment before many months, can you ever image going near Lakshmi Mittal? These persons come under the II category, work hard for betterment for their life, society and for the country. Are you ready to steady your life without giving up irrespective of hurdles that come across you?



Wow, the fitness of Rahul Dravid, Sachin amuses me a lot, above 35 dravid plays cricket, hockey. Running between the wickets and fielding of sachin is marvelous. These guys never give up, have ever your noticed rahul dravid throwing his wicket, a bowler should work hard to get his wicket. Man, he fights till his last sweat.



Many strive to achieve more, but when the opportunity comes, they don't respond,instead they try to hide, its very hard to get a chance, good opportunities will come for everyone provided you hit the right path, but we should be responsible for our actions, if you don't deliver, you will be delivered out. Why is aamir khan's movie has lot of vibrance and substance than any other hindi movies these days, that is due to his involvement, interest and never giving up attitude, for you information, aamir khan came much before shahrukh, while aamir has acted less than 40 films, shahrukh has done more than 75(am not comparing both here), the fact is shahrukh is equally committed person like aamir, both have their ideas, the fact is shahrukh and aamir both have struggled a lot before they make it big. If you want to learn how to come up in life without any god father learn from shahrukh, if you want to take a leaf on never giving up attitude look onto these folks. Surviving in the hindi industry for these long period is not an easy task, they both have done remarkable work.

There was a time when young legs were needed to replace seniors. That was when Gautam Gambhir was selected in place of Ganguly. Ganguly is a legend, he is an example for inspiration, aspiration and determination, if you are replacing him, you need a person of strong mental fitness and high quality timing shots, Gautam Gambhir proved he is the next wall, his timing, matching winning knock of 75 runs in 2007 final, remember MS Dhoni is a great captain( due to players like Gambhir, Raina,Sehwag etc), Ganguly is the finest test captain(due to Dravid - 227,181, 270,etc.Laxman - 281, 100*etc), all these because of their never giving up attitudes.

If you can focus and work on your plan, you can achieve millions, inspire others, so we should stop finding an excuse and cultivate the habit of never ever giving up.

Tuesday, April 27, 2010

Ban elephants in festivals

Cruelty dealt in neat manner, will the government bring the ban rule to use elephant in festivals. Elephants are world's unique creature need to be in forest, but due to money from it - Ivory cost, circus people hunt and torture it.



Also elephants are very emotional creature, it loves his mahout (driver and care taker of elephant) so much. Many times mahout fail to feed at the musk period and elephant gets angry and kills drastically the mahout, the time duration of the madness of elephant could range from minutes to hours. After it comes to normal, it will feel for its behavior and starts crying heavily for killing his mahout. There is a special bonding between the elephant and mahout, like mother and kid, many elephants in asian countries (Thailand, India, Sri lanka etc) elephants don't have any role models, they hunted while they were kid and based on the instructions from mahout it behaves, acts and responds.

Elephant love is amazing, it remembers so much, the bad thing is its treated for begging, in circus they are abused, making to walk in the hot sun for hrs, please they need shelter and peace, they are not supposed to be in the city, let us join hands in eradicating the cruelty,nasty thing happening to the unique lovable, adorable creature.

Thursday, March 4, 2010

.NET FAQs -2

1. What is arraylist?

An ArrayList is an array that can dynamically grow and shrink.The ArrayList is one of the important classes in the System.Collection namespace. ArrayList is a dynamical array; it will increase the size of the storage location as required. It stores the value as object.

ArrayList oArrayList = new ArrayList();
oArrayList.Add("Mark");
oArrayList.Add("John");

2. WCF Questions

3. WPF Questions

4. Difference between Overriding and Overloading.

Overriding - same method names with same arguments and same return types associated in a class and its subclass.

Overloading - same method name with different arguments, may or may not be same return type written in the same class itself.

Example for overriding
Clas A
{
Virtual void hi(int a)
{
}
}

Class B:A
{
public overrid void hi(int a)
{

}
}

Example for Over loading

Class A
{
class a()

{

}
class a(int a)
{
}
}

5. What is Virtual in C#?

The virtual keyword is used to modify a method, property, indexer or event declaration, and allow it to be overridden in a derived class. For example, this method can be overridden by any class that inherits it:

public virtual double Area()
{
return x * y;
}


using System;
class TestClass
{
public class Dimensions
{
public const double PI = Math.PI;
protected double x, y;
public Dimensions()
{
}
public Dimensions(double x, double y)
{
this.x = x;
this.y = y;
}

public virtual double Area()
{
return x * y;
}
}

public class Circle : Dimensions
{
public Circle(double r) : base(r, 0)
{
}

public override double Area()
{
return PI * x * x;
}
}

class Sphere : Dimensions
{
public Sphere(double r) : base(r, 0)
{
}

public override double Area()
{
return 4 * PI * x * x;
}
}

class Cylinder : Dimensions
{
public Cylinder(double r, double h) : base(r, h)
{
}

public override double Area()
{
return 2 * PI * x * x + 2 * PI * x * y;
}
}

static void Main()
{
double r = 3.0, h = 5.0;
Dimensions c = new Circle(r);
Dimensions s = new Sphere(r);
Dimensions l = new Cylinder(r, h);
// Display results:
Console.WriteLine("Area of Circle = {0:F2}", c.Area());
Console.WriteLine("Area of Sphere = {0:F2}", s.Area());
Console.WriteLine("Area of Cylinder = {0:F2}", l.Area());
}
}

6. Static class in C#

A class can be declared static, indicating that it contains only static members. It is not possible to create instances of a static class using the new keyword. Static classes are loaded automatically by the .NET Framework common language runtime (CLR) when the program or namespace containing the class is loaded.

Use a static class to contain methods that are not associated with a particular object.

Suppose you have a class CompanyInfo that contains the following methods to get information about the company name and address.
C#

class CompanyInfo
{
public string GetCompanyName() { return "CompanyName"; }
public string GetCompanyAddress() { return "CompanyAddress"; }
//...
}

These methods do not need to be attached to a specific instance of the class. Therefore, instead of creating unnecessary instances of this class, you can declare it as a static class, like this:
C#

static class CompanyInfo
{
public static string GetCompanyName() { return "CompanyName"; }
public static string GetCompanyAddress() { return "CompanyAddress"; }
//...
}

7. Polymorphism in C#

When a message can be processed in different ways is called polymorphism. Polymorphism means many forms.

There are 2 types of Polymorphism namely
1.Compile time polymorphism (or) Overloading
2.Runtime polymorphism (or) Overriding

Compile Time Polymorphism :


Compile time polymorphism is method and operators overloading. It is also called early binding. Method with same name but with different arguments is called method overloading. In method overloading, method performs the different task at the different input parameters.


public class A1
{
public void hello()
{ Console.WriteLine(“Hello”); }

public void hello(string s)
{ Console.WriteLine(“Hello {0}”,s); }
}

Runtime Time Polymorphism :


Runtime time polymorphism is done using inheritance and virtual functions. Method overriding is called runtime polymorphism. It is also called late binding.Method overriding occurs when child class declares a method that has the same type arguments as a method declared by one of its superclass.

When overriding a method, you change the behavior of the method for the derived class. Overloading a method simply involves having another method with the same prototype. Method overloading has nothing to do with inheritance or virtual methods.


public Class parent
{
virtual void hello()
{ Console.WriteLine(“Hello from Parent”); }
}

public Class child : parent
{
override void hello()
{ Console.WriteLine(“Hello from Child”); }
}

public static void main()
{
parent objParent = new child();
objParent.hello();
}

8. Generics in .NET

Generics allow you to realize type safety at compile time. They allow you to create a data structure without committing to a specific data type. When the data structure is used, however, the compiler makes sure that the types used with it are consistent for type safety. Generics provide type safety, but without any loss of performance or code bloat. While they are similar to templates in C++ in this regard, they are very different in their implementation.

The System.Collections.Generics namespace contains the generics collections in .NET 2.0. Various collections/container classes have been "parameterized." To use them, simply specify the type for the parameterized type and off you go. See Example 2:

Example 2. Type-safe generic List


List aList = new List();
aList.Add(3);
aList.Add(4);
// aList.Add(5.0);
int total = 0;
foreach(int val in aList)
{
total = total + val;
}
Console.WriteLine("Total is {0}", total);

For more information on generics.

More FAQs later.