Wednesday, September 24, 2008

M-Factor In Life : y = m*x + c for success -Part 1 Career

What is y = m*x + c and M-Factor

Our life stands on this simple straight line equation.
For those who is not aware of this explicit equation of straight line, please look the following links.

http://thesaurus.maths.org/mmkb/entry.html?action=entryByConcept&id=2949
http://www.mathsisfun.com/equation_of_line.html#Countrynote

In brief,
for y = m*x + c
c - Some constant for the straight line
m - Slope of the line

x - always varies
y - final output dependent on the above 3 variables.

Let's relate this equation to few of the general things that exist

In this series the first is Career:

Career :

Take the example of changing the job from company X to company Y with reference to line equation:

a) c is the constant i.e. what you would have from company X. That covers your resume, your qualifications, your experience in your field say sales/engineering. This is assumed to be remaining constant while company Y hires you.

b) m is slope of your life. It is dependent on lot of factors e.g. time, your output efficiency, your skills developed in the time. For example your performance in the first few months in company Y would indicate the slope. It is not only performance, but minimum time taken by you to learn/grasp and apply new ideas and prove yourself.

The company can directly hire you seeing your resumes and your background verification, but they look to this M-Factor, so that how would the performance of yours would be leading to aligning of goals of the company Y. How much time would you take to be PRODUCTIVE? This I refer as M-Factor.

c) x is time variable, which decides the net output y. If your m is very high i.e. you are highly productive from day 1, then slowly your m would decrease. You need to take measure so that the product m*x always increases to a particular level. Obviously there are other personal/professional factors which we never have to forget.

d) y is the final output that you are delivering. This y should be always increasing. When there is a jump from company Y to company Z, then c for company Z should be y.


Mantra for success in Career :

1. Ensure that c for the next company is the y of previous company. Don't change your languages/learning frequently. e.g.

(a) If you had a experience of QA for last 5 years, then changing job of development profile in the next company might lead to decrease in the next value. c decreases
(b) If you are working on windows platform for last 10 years, it does not make any sense to you to jump to Linux platform. Remember hobby might NOT fill your stomach and pockets :)

2. Join the company where you see the value of m is high.
Ensure that y >> c.
We know that x (time) always increases, so your goals (for next few years) should be such that you achieve the desired "y". Your m factor should be such so that you can achieve the goal. The goal could be anything like Salary in FY 2010, my assets in year 2010, my knowledge in 2010, my friends/relatives in 2010 etc.

3. To ensure a big high in M (M Factor), you need to update your skills. It could be anything like going for higher education (Masters) or addition in your professional profile (like Membership/Languages) or Social domain (Your family/friends). We are all aware that lots of guys do join MBA so that the skill set increases or their career takes a jump.

Obviously you need to look at all factors to ensure your success in your career..

Best of luck in your career !!

Saturday, June 7, 2008

Creative Story Writing....

Hi Everybody,

There was a "creative" story writing competition at my company Geometric, in which I participated.

Please find here the story :

Topic: “While struggling through each step in the desert, there was a splash of cool water on my back”

While struggling through each step in the desert, there was a splash of cool water on my back, and i realised that somebody was standing in front of me just like a mirage. I asked him “Who are you?”

I got reply “I am you, your inner self, who's been watching you since your firststep, even i can say your first breath.”

“How is it possible? If my conscience comes outside my body, how can i breathe, my heart can beat?”

I got a surround voice “It is you who think that you cannot live without me. But let me tell you, from the day one, I am independent. Whenever you commit a crime, petty or big, eg. Stealing a pencil from friend's bag, taking out money from father's pocket to buy cigarettes, fighting with friend even when you were cheating on him, bank robbery and the latest addition of murdering a couple for such a low amount of money few minutes ago”.

“How can you know about my deeds?” i queried, “I have never told anybody”.

“Thats what i am telling you, you never told such things to anybody, but i am aware of your each and every deed, because i m you!!”

“Where were you earlier?” I asked “when i didn't have money to buy a pencil and got thrashed from Headmaster. I was made to stand outside the class because of that”

“Where were you when my father continuously scolded me saying that you want money for buying cigarettes. Finally i took cigarettes and became a chain-smoker today?”

“Where were you when my friends teased me for the black scar on my face? So i have to give him similar mark so that in future, he never thinks of doing the same thing”.

“Where were you when i was hungry for days because of insufficient money. Who would paid debt if i had not done a bank robbery”

“I had to murder the couple because now i am a wanted criminal. If i had not done so, they would have told police and i would have been hanged”.

He replied “I was always with you, trying to tell you what was right and what was wrong. And now i want to tell you what would happen if you don't listen to me”.

“What should i do now? I am tired of this life. I have lots of money but nowhere to spend”.

Don't worry. I am always with you. I would tell you the right path, it is sure that you will be happy within your conscience”.

“What should i do?” i was crying.

“You should go and distribute your money in the charity and for the needed ones. For your life, i say that surrender to the police so that your misdeeds 'quota' gets finished here on this planet”.


Then only i woke to find myself in a pitch dark place.

How did you like the story ??

Enjoy !!

Wednesday, January 30, 2008

Computer C++ inline function module

Hi All programmers/reviewers,

I hope you would be aware of inline functions in C++. Here I will not discuss about "what is inline" and explain it, rather I would tell few important (in-line) about inline functions.

For information about inline functions, you can get the data using the links like
1) http://www.parashift.com/c++-faq-lite/inline-functions.html
2) http://www.codersource.net/cpp_tutorial_inline_functions.html
3) Inline or NOT to inline in C++ http://www.thescripts.com/forum/thread59977.html
4) Wikipedia http://en.wikipedia.org/wiki/Inline_function

Let's take an example
//Declaration for C++ Tutorial inline sample:
inline int add(int x,int y);


If you are working on the code, you would have find that in most of the code, the inline function defintion is in the header file with declaration

//Definition for C++ Tutorial inline sample:
inline int add(int x,int y)
{
return x+y;
}



Why is it so ??
Let's take a simple example that the definition and declaration does not lie in the same file. Declaration lies in header file math.h and Definition lies in source file math.cpp

Let's go in the important property of inline functions.

It replaces the function called with the function contents inside the module. Here there is one condition attached that the inline function would work only in the same module e.g. if you have a module Mathematics which declares and defines the inline function add(int, int) and you have a different module called as Physics (has some file as phy.cpp) which calls the inline function as
s = add (a,b);
then the compiler (especially in Linux) is going to throw the reference error .. YES !! The reason is that the compiler is unable to open the function becasue the function is defined as inline in the other module.

How to Solve such issues ?

There are two ways to get the solution

1) Make the function as NOT inline. i.e. make the function as

int add(int x,int y) in declaration and define it in definition.

2) Declare and Define the function as inline in the header file itself. and then include this header file wherever the function add(int,int) is being called. This will ensure that the function add is also expanded as inline :)

So phy.cpp would be containing the line #include "math.h"


Enjoy !!
Adhir