Importance of Positive Attitude

What is Attitude?

The simplest definition of attitude is the way we look at life. It is the way we think, talk with others, present ourselves, etc.

– Our thoughts take us ahead in life and not our appearance. Thought makes the man. Good and positive thoughts make us positive in our life and approach, while negative thoughts make us a negative person. Hence it is rightly said, so you think as you become.

– Story of a balloon seller

A balloon seller used to sell balloons near a children park. Daily he used to come near the park and sell balloon. But at times when kids didn’t bought his balloons he used to let one balloon in the air. This used to attract the attention of kids and they used to buy the balloons. This way the balloon seller used to sell as many balloons.

Moral of the story: If the balloon seller had thought that why to waste one balloon when no one is buying then his balloons would have left unsold. He kept a positive attitude and let one of the balloons in the air which attracted children to buy balloons from him.

– Cotton (depends on air to fly) Bird (doesn’t depend on air to fly)

While discussing Tejash Sir gave the example of cotton and bird. Both fly in the air, but cotton depends on the wind to fly whereas on the other hand the bird need not take the help of wind to fly. Bird can flap its wings and fly on his own. This example clarifies that a person with positive attitude can make his/her own path rather than depending on others.

– Know who we are

A wise man had said, “The person who knows less about you, is yourself”. Knowing oneself is very important as it gives direction to our energy and work.

– Acres of Diamonds: Story of farmer who searched for diamonds

A farmer was very happy with his life. He had huge acres of fields on which he used to do farming. He was very satisfied with his life. Then one day one individual gave told farmer that he would be happier if he has diamonds. And hence selling his farm and property the farmer went out to search for diamonds. But the farmer was unable to search for diamonds. When he returned to his home again he came to know that there are diamonds in his own farm.

Moral of the story:

1. When our attitude is right, we realize that we are all walking on acres and acres of diamonds.

2. Opportunity is always under our feet we don’t have to go anywhere to go. All we need to do is realize it.

3. When people don’t know how to recognize opportunity they always complain of noise when opportunity knocks.

4. The same opportunity never comes again.

Few simple steps to achieve a “Positive attitude”:

  1. Change focus & look for the positive
  2. Make a habit of doing it now
  3. Develop an attitude for gratitude
  4. Get into continuous education programme
  5. Build a positive self-esteem
  6. Stay away from negative influence
  7. Learn to like the things that needs to be done
  8. Start your day with positive

Explanation for each step:

1. Change focus & look for the positive

– If you fail at first then stop looking at the negative and start afresh leaving behind your failure or loss

– Failure should first come in business. Failure helps us to know where we lacked and what we should not do. After 1000 attempts when Thomas Edison finally made the electronic bulb he told the world that he has found 999 ways of ‘how-not-to-make-a-bulb’.

2. Make a habit of ‘doing-it-now’

– If we don’t follow then we develop the habit of postponement

– Then this habit becomes your attitude.

3. Develop an attitude of gratitude

– Gratitude is very important. Gratitude means thankfulness.

– Say thank you & appreciate others help howsoever small it may be

– Control your emotions. EQ (Emotional Quotient) is more important than IQ (Intelligent Quotient)

4. Get into continuous education programme

– Sharpen your skills

Continuous education helps us to know where we are lacking and what we should do to improve ourselves to develop and enhance our attitude positively.

– Story of a tree-cutter

One day a two tree cutters were assigned to cut few trees. One of them started cutting the tree as soon as the possible. Whereas the other tree cutter kept on sharpening his axe nearly for an hour. The other tree cutter felt it was a waste of time. After finishing sharpening his axe the tree cutter cut more trees than the other guy.

Moral of the story:

1. Education helps us to hone our skills.

2. Without skills the work we do may take more time and more energy than actually it requires

5. Build a positive self-esteem

– Self-esteem is what we think of ourselves. A low-self-esteem is visible to others. Such persons are usually made to follow others rather than leading others.

– Think ‘I am the Best’. But don’t fake it.

6. Stay away from negative influence

Negative people are ‘energy-suckers’. They will give you thousands reasons for not to do things which you have decided to do.

– Negative people, drugs, cigarettes, smoking, negative programmes

7. Learn to like the things that needs to be done

– For example report writing, going to gym, waking up early etc. We make resolutions that we will do such things from that day onwards, but seldom have we made it fruitful. Due to this we develop lethargy and become lazy.

8. Start your day with positive

– Start your day with a positive feeling. Pray to God for a positive day ahead. Listen to your favourite music or songs. Make sure to do things that you love to do for e.g.: certain hobbies. Develop hobbies.

Advertisements

How to prevent right click on website?

We can prevent ricght click on website pages by using following code

<!– This for right click

//Disable right mouse click Script

var message=”Copyright bwsipl!!”;

///////////////////////////////////

function clickIE4(){

if (event.button==2){

alert(message);

return false;

}

}

function clickNS4(e){

if (document.layers||document.getElementById&&!document.all){

if (e.which==2||e.which==3){

alert(message);

return false;

}

}

}

if (document.layers){

document.captureEvents(Event.MOUSEDOWN);

document.onmousedown=clickNS4;

}

else if (document.all&&!document.getElementById){

document.onmousedown=clickIE4;

}

document.oncontextmenu=new Function(”alert(message);return false”)

// –>

We can also prevent copy of text also. How?

We can also prevent copy of text also, by using following code

<!– This for prevent not select text

function disableselect(e){

return false

}

function reEnable(){

return true

}

//if IE4+

document.onselectstart=new Function (”return false”)

//if NS6

if (window.sidebar){

document.onmousedown=disableselect

document.onclick=reEnable

}

–>

Top 10 Qualities of The Perfect Programmer

1. Intellect – can understand the problem, translate and express ideas in clear and readable code, has analytical and logical mind.

2. Personality – has right mixture of personal traits like detail-oriented, creative, flexible, disciplined, sociable, independent etc.

3. Expertise – knowledge and experience for solving client’s problems in the specific context with chosen technologies.

4. Motivation – cares about work, shows enthusiasm, interest and love for programming.

5. Maturity – knows and uses sound software development principles, practices and approaches as agile, design and architecture patterns, domain-driven design, unit testing, refactoring.

6. Pragmatism – understands what is possible, loves simplicity and avoids over-engineering; understands business goals, keeps touch with reality and focus on what should be done.

7. Cooperation – listens, accepts that other people could have better ideas, supports team goals without hidden agenda, shares ideas and knowledge and coach others.

8. Communication – effectively communicates and exchanges ideas, supports knowledge and decisions about the system with clear explanations, justifications and answers.

9. Potential – has professional goals, good learning skills, curiosity, adaptability and performs constant self correction.

10. Vision – sees the big picture, understands context, trends and people, aligns actions with team and company implicit goals, contributes into building shared vision for the software system.

Tips For Writing Good Stored Procedures

1. Fully Qualified Names – Always use the fully qualified name when calling stored procedures. This would be the format database_name.schema_name.table_name.

For example, use EXEC master.dbo.Your_Proc_name instead of EXEC Your_Proc_name This is a very common mistake, which causes an extra trip to the procedure cache to get the execution plan for execution. Also try to use the schema name while creating a procedure. Like: CREATE PROCEDURE dbo.Your_Proc_name instead of CREATE PROCEDURE Your_Proc_name

2. The sp_ prefix – Don’t use the “sp_” prefix in a stored procedure name as the “sp_” prefix is reserved for system stored procedures. Any stored procedure that has the “sp_” prefix will cause an extra lookup in the MASTER database If a stored procedure uses same name in both the user database and a system database, the stored procedure in the user database will never get executed.

3. Keywords – Use SQL keywords in capital letters to increase readability. Also use proper indentation to increase readability.

4. SET NOCOUNT ON – This returns the message that shows number of rows affected by SQL statement. This can cause extra network traffic and can have some serious impact on performance when the procedure is called frequently.

5. sp_executeSQL and the KEEPFIXED PLAN options – Both sp_executesql and the KEEPFIXED PLAN option avoid the recompilation of a stored procedure. If you want to provide parameterized dynamic SQL, then go for sp_executesql instead of EXEC(proc_name). Here the execution plan for the procedure is stored with the variable name in cache memory. When the variable values are supplied, then the values are simply mapped to the query, hence no need for a recompilation.

6. SELECT vs SET – A single SELECT statement can assign values to different variables and is much faster than multiple SET statements assigning values to multiple different variables.

Example:
SELECT @Var1 = @Var1 + 1, @Var2 = @Var2 – 1
instead of

SET @Var1 = @Var1 + 1

SET @Var2 = @Var2 – 1

7.WHERE clauses – In a WHERE clause, the various operators used directly affect how fast a query can run. Here are the conditional operators used in the WHERE clause, ordered by their performance.

=, >, <, >=, <=, <>, !=, !>, !<

8.CAST and CONVERT – Try to use CAST instead of CONVERT. CAST is ANSI-92 standard but CONVERT works in MS SQL server only. Also, Convert may be deprecated in future MS SQL releases. It is better to use CONVERT only when you need to format the DATETIME datatype with the style option. CAST cannot do this.

9.Avoid DISTINCT and ORDER BY – If you don’t need the DISTINCT/ORDER BY clause, then try to avoid so. Unnecessary DISTINCT or ORDER BY clauses cause extra work for the database engine. Hence making performance slower.

10.Avoid using cursors – Try to use temporary table/table variables with identity column and then iterate all the tables using WHILE loop and a looping counter, which will map with the identity column.

11.SELECT statements – Try to use only the required number of columns in the SELECT clause instead of using *. Using * returns all columns, which unnecessarily create a fat recordset.

12.Try to use table variables instead of Temporary Tables – Temp tables can cause stored procedures to recompile. But table variables were designed specifically to guard against stored procedure recompiles during execution.

13.Try to use table variables instead of Temporary Tables – Temp tables can cause stored procedures to recompile. But table variables were designed specifically to guard against stored procedure recompiles during execution.

If the result set is not containing a huge number of records then you should stick to table variable, otherwise temp table has its advantages. There is a misconception that temp tables always use the tembdb database but table variable do not. Table variables also use tempdb after a certain size.

14.Subquery vs JOINs -In fact most sub queries can be expressed as an equivalent form of JOIN. subquery is faster when we have to retrieve data from large number of tables because it becomes tedious to join more tables. JOIN is faster to retrieve data from database when we have less number of tables. But try to avoid correlated sub queries because it makes the query much slower.

15.Use proper indexes – You can use the help of the data tuning advisor, but it does not gives the proper result all the time. Index scans are much faster than table scans. So identify the table scans from the execution plans. But when a table returns smaller rows, then it is better to use a table scan.

« Older entries