<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2864444021574781379</id><updated>2012-02-17T06:59:41.621+05:30</updated><category term='mysql_num_fields'/><category term='array_walk'/><category term='Unix'/><category term='Effective Manager'/><category term='array_merge'/><category term='One minute Praising'/><category term='MediaLive International'/><category term='htmlentities'/><category term='Delegating'/><category term='Project Planning Importance'/><category term='SQL Injection'/><category term='Connecting sql server'/><category term='class object'/><category term='Situational Leader'/><category term='Google map'/><category term='AJAX'/><category term='Google map on your website'/><category term='mssql_connect'/><category term='Supporting'/><category term='Reprimand'/><category term='strip_tags'/><category term='PHP Cast'/><category term='mssql_query'/><category term='A minute Goal Setting'/><category term='CMMi'/><category term='Quality'/><category term='Scripting'/><category term='Batch jobs'/><category term='Shell'/><category term='Productivity'/><category term='Flexibility'/><category term='mssql_select_db'/><category term='ob_start()'/><category term='Development Level'/><category term='Performance Assessing'/><category term='Planning'/><category term='HTML Tags'/><category term='addslashes'/><category term='Connecting MS SQL Server'/><category term='mssql_num_rows'/><category term='Batch'/><category term='Quantity'/><category term='One minute Goal SEtting'/><category term='O&apos;Reilly'/><category term='vim'/><category term='casting'/><category term='A Minute Manager'/><category term='Eliminate HTML Tags'/><category term='Magic Quotes'/><category term='Looping form elements'/><category term='Third party tool'/><category term='get_magic_quotes_gpc'/><category term='ob_end_flush()'/><category term='connecting people'/><category term='Peak Performance Potential'/><category term='emacs'/><category term='MS SQL Server'/><category term='connecting computers'/><category term='ob_get_contents()'/><category term='democratic manager'/><category term='Adding Metadata'/><category term='API Key'/><category term='Project'/><category term='Coaching'/><category term='CMMi standards'/><category term='bash'/><category term='Web 2.0'/><category term='Risk management'/><category term='Behaviors'/><category term='PHP'/><category term='mail()'/><category term='Syntax'/><category term='gedit'/><category term='One Minute Manager'/><category term='mssql_fetch_array'/><category term='building event-driven experiences'/><category term='A minute Praising'/><category term='Shell Scripting in Unix'/><category term='Leadership styles'/><category term='mssql_free_result'/><category term='Shell Scripting'/><category term='Effective Management'/><category term='JavaScript'/><category term='Project Planning'/><category term='autocratic Manager'/><category term='mysql_real_escape_string'/><title type='text'>Sandip</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-4356158258194278469</id><published>2011-04-12T21:54:00.012+05:30</published><updated>2011-04-12T22:16:11.412+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='A Minute Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='One minute Praising'/><category scheme='http://www.blogger.com/atom/ns#' term='Productivity'/><category scheme='http://www.blogger.com/atom/ns#' term='One Minute Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Quantity'/><category scheme='http://www.blogger.com/atom/ns#' term='Effective Management'/><category scheme='http://www.blogger.com/atom/ns#' term='democratic manager'/><category scheme='http://www.blogger.com/atom/ns#' term='A minute Praising'/><category scheme='http://www.blogger.com/atom/ns#' term='autocratic Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Quality'/><category scheme='http://www.blogger.com/atom/ns#' term='Effective Manager'/><title type='text'>A Minute Manager – The Second Secret</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div&gt;Alright Pals, ready to know the second Secret of “A Minute Manager”? Well, here it is.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;Second Secre&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;t&lt;/i&gt;&lt;/b&gt; is “&lt;b&gt;A Minute Praising&lt;/b&gt;”. Yes, you heard it. It’s a minute praising.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Being a Minute Manager, one should make it very clear to its subordinate on very first day that he(manager) know that it will be a lot easier for him(subordinate) to do well if he gets crystal clear feedback from the manager on how he was doing. A manager should make sure to convey the subordinate that he wants him to succeed, be a great help to organization and enjoy his work as well and therefore he would try to let him(subordinate) know in all certain terms when he is doing well and when performing poorly. This might not be the most comfortable situation at first for both manager as well as subordinate cause people are not used to with this concept, as most managers do not manage this way. But in that case, manager should assure its subordinate that such feedback would be of great help to subordinate himself.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let me explain you guys in details…&lt;/div&gt;&lt;div&gt;Once Goal settings are done for a staff, you being a Minute Manager should be in a close contact with him. You can do this in two ways, firstly, observe all the activities of sub-ordinate very closely and secondly, make your sub-ordinate keep detailed records of his progress and have him send it to you regularly. Initially, your sub-ordinates might think that you are spying on him and that you don’t trust in him. But believe me, eventually he will get over with this wrong interpretation.  Motto behind all this should be only one and that is Try to &lt;b&gt;Catch&lt;/b&gt; him doing something &lt;b&gt;RIGHT&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center; "&gt;&lt;b&gt;Help People Reach Their Full Potential… &lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: center; "&gt;&lt;b&gt;Catch Them Doing Something Right.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Most of the managers spend their efforts in trying to catch people doing something wrong. You being a minute manager should try to catch them doing something Right. And this is the moment where Praising comes in Action.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Yeah! Correct… When you see your sub-ordinate doing something right, go to him and make a brief contact. That may include putting your hand on his shoulder or touching him in a very friendly manner. I know you are laughing at this, but believe me it makes a great difference. It just makes your sub-ordinate feel that you really care about him and that you want him to prosper. He feels that you both are on the same side. So anyways, after that just look straight into his eyes and tell him precisely what he did right. And then share with him how good you feel about what he did. It certainly will make your sub-ordinate feel good.&lt;/div&gt;&lt;div&gt;But make sure you are consistent in doing this. I mean, things may not be going well for you elsewhere and no matter how much annoyed you are about other things, but do respond to your sub-ordinates situation and praise him for his good performance and when he deserves it. The things going around you should not affect your response. Your sub-ordinate would surely appreciate it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now you would say, I am a manager and I already have a lot on plate daily. I am very busy person and that wont this praising and all take a lot time of mine? Well – Not really.. Remember, you don’t have to praise someone for very long to let them know that you noticed and do care. It should not take more than a minute. And that’s why its called “&lt;b&gt;A Minute Praising&lt;/b&gt;”.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;/span&gt;Just a last point to note, you should try catching your sub-ordinates doing something right only when he starts to work with you or when he being to new project or responsibility. After your sub-ordinate get to know the rope you can reduce being around him. This is because, by that time you and he have other ways of knowing when his job performance is “praiseworthy” cause then onwards you both can review the data in information system e.g. Sales Figures, project schedules etc. Also, by then, your sub-ordinates begin trying to catch himself doing right and praising himself. Plus, he is wondering when you praise him again and this feeling keeps him going when you are not around.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Well folks! You must be thinking that though one can’t argue about effectiveness of catching people doing something right, especially after they know what they are to do and what good performance looks like - But do one minute praising really work?. You must be wondering, does all this a minute management stuff really gets results – the bottom-line results?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To get answers of these and such all of your questions and to know little more about our &lt;b&gt;Third Secret for being a Minute Manager&lt;/b&gt;, lets meet in my next post. Same Place, with same passion and at.. umm… lets say, somewhere in near future !!.. ha ha… ciao.. Stay Tuned and have a Happy Managing…&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Courtesy :&lt;br /&gt;the One Minute Manager&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;by Ken Blanchard and Spencer Johnson&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;All Content and/or ideas Copyrights are reserved and maintained by Authors/Publishers.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-4356158258194278469?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/4356158258194278469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2011/04/minute-manager-second-secret.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/4356158258194278469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/4356158258194278469'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2011/04/minute-manager-second-secret.html' title='A Minute Manager – The Second Secret'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-1868801053789063589</id><published>2011-02-16T13:08:00.005+05:30</published><updated>2011-02-16T13:23:58.284+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='A Minute Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Productivity'/><category scheme='http://www.blogger.com/atom/ns#' term='One Minute Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Quantity'/><category scheme='http://www.blogger.com/atom/ns#' term='Effective Management'/><category scheme='http://www.blogger.com/atom/ns#' term='democratic manager'/><category scheme='http://www.blogger.com/atom/ns#' term='One minute Goal SEtting'/><category scheme='http://www.blogger.com/atom/ns#' term='A minute Goal Setting'/><category scheme='http://www.blogger.com/atom/ns#' term='autocratic Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Quality'/><category scheme='http://www.blogger.com/atom/ns#' term='Effective Manager'/><title type='text'>A Minute Manager</title><content type='html'>&lt;!--StartFragment--&gt;  &lt;p class="MsoNormal" align="center" style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Friends, Its been quite a while, I have had written something nice.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;The other day, I was having a sip of coffee whilst enjoying view in my garden, I saw bunch of people working in my patio with their in charge yelling at them for doing some work in-correctly.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;And it suddenly struck with the topic in my mind to discuss with you pals.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;So here we are today discussing &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;How a Good Manager should be..  &lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;I guess my this post would interests many New as well as prospective Managers...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="  font-weight: normal; font-family:Georgia, fantasy;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Lets see the definition of a manager.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;T&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Helvetica;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;he act of getting people together to accomplish desired goals and objectives using available resources efficiently and effectively is called the Management and the person who uses/posses these management skills to achieve those goal by leading people is called &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Manager&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;A boss or A supervisor is a literal dictionary meaning of Manager.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;In our daily life, we come across various types of managers.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Government Administrators, Military Officers, Construction Superintendents, Corporate Executives, University Professors and Shop Stewards.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Managers of shops, banks, restaurants and hotels with men and women… young and old, almost all types.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; We see many ‘tough’ managers, whose organization seems growing but people they have are lost.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;If we ask them what type of manager they are, they would proudly quote ‘autocratic – who keep on top of the situation’, bottom lined, hard-nosed, strict, realistic, profit minded etc.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Despite of their proud, these words speak their interest in results.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Versus, we also see many ‘nice’ managers, whose people seems wining but their organization fails.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;If we ask these managers, what type of manager they are, they with proud in their voices, would quote democratic, supportive, participative, considerate, humanistic etc.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;These words clearly shouts loudly about their interest in people.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;If we look closely, many managers fall in either of above category.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Managers who interests in results are labeled as “&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;autocratic&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;” whereas those who are interested in people are labeled as "&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;democratic"&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;But each of these types of managers is partially effective kinda like half manager.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; I feel a manager should be an “&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Effective Manager&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;”, who with his presence, should not only profit Organizations but also the people he works with while managing himself and the people working with him.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now that I have quoted what a Manager should be like, lets discuss what one can do to be a great Effective Manager. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;An Effective Manager should be more in touch with his people through meetings. Meetings should not be far distant that people forget what was discussed in past meeting and should not be frequent enough to consume all of our people’s time in meeting only.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;I guess May be a weekly meeting of an hour or two should be enough.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Target of those meetings for manager should be more like listening to the problems and accomplishments his people had in past week and the things that are yet to accomplish.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Together they should come up with strategies and plans for the coming week.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;The decisions and plans should be binding to both Manager as well as staff.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Of course, if not binding there won’t be any point of arranging meetings, don’t you agree?&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span style="font-family:Wingdings;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;J&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;A Manager should neither be participating in his staff’s decision nor should he be only result oriented.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Startled ?!?&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Well Yes, &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;One can not achieve results if its not through people! They both go hand in hand.&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;People Who Feel Good about Themselves, Produce Great Result!&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Wont you agree with above statement?&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;You get things done more when you feel good about yourself! So, a Manager should be always remembering, “&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;helping people feel about themselves is a key to getting more done&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;”.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;While doing so he must not forget that “a productive is more than just a quantity of work done.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;It’s quality also”.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Thus, “&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Productivity is both Quality and Quantity&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;”.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, fantasy;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;We can call such Manager who achieves the productivity mentioned above through people as “&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;A Minute Manager&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;”.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Why “A Minute Manager”?&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Because, it takes a very less time to get very big results from the People.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Well, now you guys seem a bit surprised to hear this.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;So to explain you a bit better, let me take you a bit down in the concept.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;I can see there are &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Thr&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ee secrets&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; for being “A Minute Manager”.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Lets go through them one by one.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;First Secret&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; is “&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;A Minute Goal Setting&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;”.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;          A minute goal setting is a foundation of “&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;A Minute Management&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;”.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Most of the times you guys have seen that there is conflict between the manager and staff for understanding the responsibilities staff is held accountable for.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;In fact, I guess, many of you have been in trouble for not doing some job, which you at first place never thought is yours.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;“A Minute Manager” should always make it clear to his staff what their responsibilities are and what they are being held accountable for. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Once a manager and staff have agreed on what needs to be done, then each goal should be written on a single page.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Goal with its performance standard should be expressed in no more than 250 words.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Its like, anyone should be able to read that in a minute.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Both, a manager and staff should keep a copy of this so everything is clear and progress can be checked periodically.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Goals should be set with 80-20 Goal setting rule, i.e. 80% of really important results should come out of 20% of goals set.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Isn’t it sound like “No Surprises” – everyone knows what is expected from them from starting.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;It doesn’t stop it yet.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Once these minute goals are set, a minute manager should always ensure what a good performance is.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Thus, performance standards are made clear.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;You must not also forget to take a minute every once in a while out of your day to look at your performance and see whether or not your behavior matches your goal.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Well I guess, by now you have understood the importance of Goal Settings in your work.&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;After all how can you be an effective manager, if you and your staff doesn’t know what they are being asked to do?&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;And what is an efficient way to do it.&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;I think this is enough to you guys for a day... I would take a break here…&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;The rest of two secrets being “A Minute Manager”, I will cover and share with you very soon in my another posts.&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  So stay tuned and till then, Aloha !!&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Wish you new managers a Very Happy Managing.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Courtesy :&lt;br /&gt;the One Minute Manager&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;by  Ken Blanchard and Spencer Johnson&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;All Content and/or ideas Copyrights are reserved and maintained by Authors/Publishers.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-1868801053789063589?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/1868801053789063589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2011/02/minute-manager.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/1868801053789063589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/1868801053789063589'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2011/02/minute-manager.html' title='A Minute Manager'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-4301146710973134056</id><published>2010-02-17T23:55:00.005+05:30</published><updated>2010-02-18T00:22:34.079+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='gedit'/><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Batch jobs'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting in Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Shell'/><title type='text'>Shell Scripting Continued...</title><content type='html'>Hi Folks&lt;br /&gt;&lt;br /&gt;Along with my previous commitment about posting further more on Shell Scripting and on request from few about same, here I am again with few more details on it.&lt;br /&gt;&lt;br /&gt;In this blog, I would try to answer basic &lt;span style="font-weight: bold;"&gt;Why, How and Where about Shell Scripting&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;I received ample of comments with basic yet very valid question that&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why Should I need to write Shell Scripts ?  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here are some usage I have tried to quote :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; Operating Systems likes Linux and other Unix-like needs automated tasks.  Shell scripts are extremely useful for achieving this.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; Shell scripts are also employed extensively in the default installations of Unix-like operating systems.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. &lt;/span&gt;In daily life, programmers might need to execute series of commands most often.  Executing those several commands manually at a command line interface, Shell scripts allow it to be executed automatically.  And that too without having to wait for a user to trigger each stage of the sequence.&lt;br /&gt;&lt;br /&gt;For example, in a directory with three C source code files, rather than manually running the four commands required to build the final program from them, one could instead create a C shell script, and keeping in the directory with them, which would compile them automatically.&lt;br /&gt;&lt;br /&gt;These types of programs are also called as &lt;span style="font-weight: bold;"&gt;Batch jobs&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt; A shell script can be used to provide a sequencing and decision-making linkage around existing programs, and for moderately-sized scripts the absence of a compilation step is an advantage.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. &lt;/span&gt;Shell scripts can also be useful at a need where scripts requires executed :&lt;br /&gt;&lt;ol&gt;&lt;li&gt;          Interactively&lt;/li&gt;&lt;li&gt;          Once, at a future date and time&lt;/li&gt;&lt;li&gt;          Repeatedly on a fixed schedule&lt;/li&gt;&lt;li&gt;          Using an HTML form&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Next, I would like to shed light on &lt;span style="font-weight: bold;"&gt;How to create shell Script ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What all I would like to mention here to answer this question is that all that is necessary to create this script is to open a plain text editor (but not a word processor), such as vim, emacs, gedit, dtpad et cetera are all valid, any text editor will do.  And type the series of commands to execute them. Thats it !!  Its that simple !!  For adding commands to be executed, you can refer my previous post on same topic.  It would help you understand the syntaxes, variables, arithmatics to be used etc. in script.&lt;br /&gt;&lt;br /&gt;Consider a very basic example of printing Date of the System :&lt;br /&gt;&lt;br /&gt;Filename : myDate.sh&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;set `date`&lt;br /&gt;echo $1 $2 $3 $6&lt;br /&gt;&lt;br /&gt;Alternatively, the above code could be copied from this page and pasted to a blank page opened by the text editor page using the standard keyboard or mouse copy and paste functions.&lt;br /&gt;&lt;br /&gt;After saving this plain text file, with a file name such as date (or anything else desired), the script is complete and almost ready to run. Scripts are typically run by typing a dot, a forward slash and the file name (with no spaces in between) and then pressing the ENTER key. You would come to know further ways to execute the script from command prompt down below.&lt;br /&gt;&lt;br /&gt;Thus, for example, if the above script were saved with the name morning, an attempt could be made to execute it by issuing the following command:&lt;br /&gt;&lt;br /&gt;./myDate&lt;br /&gt;&lt;br /&gt;Script will print the output as : sat Aug 5 2006&lt;br /&gt;&lt;br /&gt;However, the script probably will not run, in which case an error message will appear on the screen such as bash: ./myDate: Permission denied.&lt;br /&gt;&lt;br /&gt;This is because the permissions for the file first have to be set to executable. (By default, the permissions for new files are set to read and write only.) The problem can easily be solved by using the chmod command with its 755 option (which will allow the file creator to read, write and execute the file) while in the same directory as that in which the file is located as follows:&lt;br /&gt;&lt;br /&gt;chmod 755 morning&lt;br /&gt;&lt;br /&gt;Now the script is totally ready to run..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally &lt;span style="font-weight: bold;"&gt;Where would I execute the Script ?&lt;/span&gt;  is the question remained..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Command Prompt !! &lt;/span&gt; This is what all I can answer to this.  Ha ha.  Yes, serious I am.  Consider you have named your script as foo.  (Well, I dont know why foo. :)  Its just like that !! LOL ).  So once you are done writing your script, you would simply go to the command prompt and type any of following command to execute your script..&lt;br /&gt;&lt;ul&gt;&lt;li&gt; $ bash foo&lt;/li&gt;&lt;li&gt; $ sh foo&lt;/li&gt;&lt;li&gt; $ ./foo&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Finally, I would like to share one Shell Scripting example with Menu Program ::&lt;br /&gt;&lt;br /&gt;fnMainMenu()&lt;br /&gt;{&lt;br /&gt;clear&lt;br /&gt;echo "======= Menu ==========="&lt;br /&gt;echo "Menu :"&lt;br /&gt;echo " (1) Addition"&lt;br /&gt;echo " (2) Quit this Menu"&lt;br /&gt;echo "Enter your option : "&lt;br /&gt;read response&lt;br /&gt;case $response in&lt;br /&gt;    1)    echo "Enter First Number : "&lt;br /&gt;        read num1&lt;br /&gt;        echo "Enter Second Number : "&lt;br /&gt;        read num2&lt;br /&gt;        sum=`expr $num1 + $num2`&lt;br /&gt;        echo "Addition : $sum "&lt;br /&gt;        ;;&lt;br /&gt;    2)    exit&lt;br /&gt;        ;;&lt;br /&gt;    *)    echo "I dont know what you are trying?"&lt;br /&gt;        sleep 2&lt;br /&gt;        ;;&lt;br /&gt;esac&lt;br /&gt;}&lt;br /&gt;#===== Start =====&lt;br /&gt;#!/bin/sh&lt;br /&gt;fnMainMenu&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Try this program !!&lt;br /&gt;&lt;br /&gt;Hope I have been successful in explaining the more basics about the Shell Script and was able to answer most of your doubts on this, so feel free to share your views on this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-4301146710973134056?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/4301146710973134056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2010/02/shell-scripting-continued.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/4301146710973134056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/4301146710973134056'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2010/02/shell-scripting-continued.html' title='Shell Scripting Continued...'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-4797172715631634605</id><published>2010-02-15T19:50:00.008+05:30</published><updated>2010-02-15T20:20:32.449+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Injection'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql_real_escape_string'/><category scheme='http://www.blogger.com/atom/ns#' term='Magic Quotes'/><category scheme='http://www.blogger.com/atom/ns#' term='addslashes'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Cast'/><category scheme='http://www.blogger.com/atom/ns#' term='get_magic_quotes_gpc'/><category scheme='http://www.blogger.com/atom/ns#' term='casting'/><title type='text'>SQL Injection</title><content type='html'>Hello Folks, Long time no see !! I know I was also missing writing since couple of months. To fulfill my hunger of writing and your hunger of reading, here I am ready with another topic to shed some light on...&lt;br /&gt;&lt;br /&gt;Our Todays topic is &lt;span style="font-weight: bold;"&gt;SQL Injection..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Another common vulnerability which is result of slipshod input validations is SQL Injection. Generally cross-site scripting vulnerabilities are actually directed to your site's visitors whereas SQL Injection is something which directly attacks on your site itself – to be specific its Database.&lt;br /&gt;&lt;br /&gt;Target of SQL Injection activity is to insert arbitrary data, mostly DB Queries, which are eventually executed by the Database using your script only. The subtle query may attempt any no. of actions starting from retrieving the records till removing significantly all records from database including altering or modifying the same.&lt;br /&gt;&lt;br /&gt;[In this blog, I have used PHP Scripting Lang. extensively, but note, it is possible with any Scripting language and PHP is used as I love it.. ;P ]&lt;br /&gt;&lt;br /&gt;To demonstrate it in more detail, look at the below example :&lt;br /&gt;&lt;br /&gt;Consider a simple query where I want to retrieve the user name and password of user named 'Sandip'.&lt;br /&gt;&lt;br /&gt;$strSelectQuery ="Select username, password from tbl_Users where user_name='".$userName."'"&lt;br /&gt;&lt;br /&gt;For this Query, in my script I am taking user name as in a variable:&lt;br /&gt;&lt;br /&gt;$userName = "sandip"&lt;br /&gt;&lt;br /&gt;So that it would make my call as :&lt;br /&gt;mysql_query("Select username, password from tbl_Users where user_name='".$userName."'");&lt;br /&gt;&lt;br /&gt;Simple ain't it ? But here's the glitch..&lt;br /&gt;&lt;br /&gt;What would happen if instead of simple 'sandip' input some enters:&lt;br /&gt;&lt;br /&gt;$userName = "sandip’; DELETE FROM users;"&lt;br /&gt;&lt;br /&gt;By appending an entirely new query to $userName, the call to the database turns into disaster: the injected &lt;span style="font-weight: bold;"&gt;DELETE &lt;/span&gt;query removes all records from users.&lt;br /&gt;&lt;br /&gt;Still Confused how ? Ok here, if notice the single quote and semi-colon given in user input, those two entities will complete the first query successfully causing next query for Delete User stacked in queue and getting it executed will remove all of those users off the table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Hoohh !!! Scary huh ??&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But don't worry, PHP is here to rescue, &lt;span style="font-weight: bold;"&gt;Magic Quotes &lt;/span&gt;is something provided by PHP. This is PHP's automatic input escaping mechanism. magic_quotes_gpc, provides some basic protection. If "magic quotes" enabled, it adds a backslash in front of single-quotes, double-quotes and other characters that could be used to break out of a value identifier. If not enabled, you can still use addslashes feature given by PHP in combination to protect at moderate level.&lt;br /&gt;&lt;br /&gt;E.g.&lt;br /&gt;if (!get_magic_quotes_gpc()) {&lt;br /&gt;$userName= addslashes($userName);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$strSelectQuery ="Select username, password from tbl_Users where user_name='".$userName."'"&lt;br /&gt;&lt;br /&gt;Wondering how escaping would help ! Ok, carefully note, in first illustration, it was single quote which caused our first query completed making second one stacked and executed. How if we do not let our first query itself completed ?? Yeah, you got it !! escaping single quotes from input string would add slashes in it and would in turn hold the query to be completed forcefully by user input.&lt;br /&gt;&lt;br /&gt;There are many of the database extensions available for PHP include dedicated, customized&lt;br /&gt;&lt;br /&gt;escape mechanisms. E.g. the MySQL extension for PHP provides the function mysql_real_escape_string() to escape input characters that are special to MySQL and if you are not much interested in using addslashes you can surely tweak the code as :&lt;br /&gt;&lt;br /&gt;if (get_magic_quotes_gpc()) {&lt;br /&gt;$userName = stripslashes($userName);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$userName = mysql_real_escape_string($userName);&lt;br /&gt;&lt;br /&gt;$strSelectQuery ="Select username, password from tbl_Users where user_name='".$userName."'"&lt;br /&gt;&lt;br /&gt;Note, here before giving a call to the function, checking magic code state is important in else case input would be escaped twice.&lt;br /&gt;&lt;br /&gt;Ouch !! Unfortunately, escaping the single quote does not always guarantee you security of your code from SQL Injection. There are certain queries that still allows SQL Injection despite of you escaping the input. Consider following example, you would know what I mean :&lt;br /&gt;&lt;br /&gt;$user_id = "0; DELETE FROM tbl_Users";&lt;br /&gt;&lt;br /&gt;$user_id = mysql_real_escape_string($user_id); // 0; DELETE FROM&lt;br /&gt;&lt;br /&gt;If you note here, we are expecting a numeric value as an input to our query, and as you know it’s not necessary to enclose the value inside single quotes. Thus, even if we escape the input, there is nothing to escape and hence still causing the second injected query of delete execute successfully causing our Database severe damage.&lt;br /&gt;&lt;br /&gt;But don't worry, we still have solution to this problem as well. How about Casting feature of PHP. As we know, we gotto have numeric value as an input. Why don't we cast it ?? Feeling good to know this...&lt;br /&gt;&lt;br /&gt;So, if an integer is required, cast the incoming datum to an int; if a complex number is required, cast to a float. As simple as that Lets see one illustration for this as well :&lt;br /&gt;&lt;br /&gt;$user_id = "0; DELETE FROM tbl_Users";&lt;br /&gt;$user _id = (int) $user_id; // 123&lt;br /&gt;$strSelectQuery ="Select username, password from tbl_Users where user_name='".$userName."'"&lt;br /&gt;&lt;br /&gt;A cast forces PHP to perform a type conversion. If the input is not entirely numeric, only the leading numeric portion is used. If the input doesn’t start with a numeric value or if the input is only alphabetic and punctuation characters, the result of the cast is 0. On the other hand, if the cast is successful, the input is a valid numeric value and no further escaping is needed.&lt;br /&gt;&lt;br /&gt;Numeric casting is not only very effective, it’s also efficient, since a cast is a very fast, function-free operation that also obviates the need to call an escape routine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Aahh !! Relax, Now we are much safe here !!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hope you all have read the article and found helpful to take care of those things in your development !! Feel Free to share your feedback...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-4797172715631634605?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/4797172715631634605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2010/02/sql-injection.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/4797172715631634605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/4797172715631634605'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2010/02/sql-injection.html' title='SQL Injection'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-8162588841309514330</id><published>2009-07-08T11:02:00.014+05:30</published><updated>2011-02-11T16:04:45.513+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Situational Leader'/><category scheme='http://www.blogger.com/atom/ns#' term='Leadership styles'/><category scheme='http://www.blogger.com/atom/ns#' term='One Minute Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Assessing'/><category scheme='http://www.blogger.com/atom/ns#' term='Coaching'/><category scheme='http://www.blogger.com/atom/ns#' term='Development Level'/><category scheme='http://www.blogger.com/atom/ns#' term='Behaviors'/><category scheme='http://www.blogger.com/atom/ns#' term='Supporting'/><category scheme='http://www.blogger.com/atom/ns#' term='Reprimand'/><category scheme='http://www.blogger.com/atom/ns#' term='Peak Performance Potential'/><category scheme='http://www.blogger.com/atom/ns#' term='Delegating'/><category scheme='http://www.blogger.com/atom/ns#' term='Flexibility'/><title type='text'>Situational Leadership</title><content type='html'>&lt;p style="margin-bottom: 0in;"&gt;Friends,  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Today I would like to share few of thoughts about how to be a good manager.  Many times it has been a question from most of managers saying they are having hard time to get work done from people as hard as they used to do themselves.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Lets begin with a one of famous quote :&lt;br /&gt;“&lt;span style="font-weight: bold;"&gt;Don't work hard.. work smarter...&lt;/span&gt;”  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;As a Manager, One need to learn to delegate the tasks...Manager should work for their staff and should not happen other way round..  One need to provide a resources and working condition to its staff in order to accomplish the goals you've agreed to..  At last, You need to roll up your sleeves and help your subordinates to win rather than wait to "catch them doing something wrong".  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Note, If &lt;span style="font-weight: bold;"&gt;your subordinates win you win&lt;/span&gt;.  And for that you need to work closely with those who need help, thus treat different people differently, just like saying "&lt;span style="font-weight: bold; font-style: italic;"&gt;different strokes for different folks&lt;/span&gt;".&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;One minute Manager should assign tasks and should work closely with the person.  Involve in his job if he lacks in experience or is new on job.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Listen to the person and work participative with the person who is doing well.  Never tell him what to do, but together arrive at the direction you want.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;One minute manager should be Situational Manager&lt;/span&gt; which means he should be able to change his style depending on conditions and peoples.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;To Be a Situational Leader  Learn 3 Things :&lt;/p&gt; &lt;ol&gt;&lt;ol&gt;&lt;ol type="I"&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Flexibility :  Use Variety of    leadership style flexibly.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Diagnosis :   Diagnose the need    of people you supervise&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Contracting : Come to some    agreement with them, to contract with them for leadership style    they need from you.&lt;/p&gt;   &lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;  &lt;p style="margin-bottom: 0in;"&gt;Four Basic Leadership styles  are :&lt;/p&gt; &lt;ol&gt;&lt;ol&gt;&lt;ol type="I"&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Directing  :  Leader provides    specific instructions and closely supervise tasks accomplishments.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Coaching :  Along with directing    style, it also explains decisions, solicits suggestions and    support progress.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Supporting : Leader facilitates    and support sub-ordinates efforts and share responsibility for    decisions making with team.&lt;/p&gt;    &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Delegating : Leader turns over    responsibility for decision making and problem solving to    sub-ordinates.&lt;/p&gt;   &lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;  &lt;p style="margin-bottom: 0in;"&gt;These 4 styles consist of different combination of 2 Basic Leadership Behaviors :&lt;/p&gt; &lt;ol&gt;&lt;ol&gt;&lt;ol type="I"&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Directive Behavior  : STRUCTURE, CONTROL &amp;amp;      SUPERVISE&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Supportive Behavior :PRAISE, LISTEN &amp;amp; FACILITATE&lt;/p&gt;        &lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;Directive Behavior&lt;/span&gt; is one way communication where you tell people when, where, why n how about the task.  And monitor the task closely.  You tell person what is goal and what a good job look like.  You layout step by step plan to accomplish task and prob. is solved.  You make decision and your sub-ordinate carries out your ideas  &lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;whereas&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;Supportive Behavior&lt;/span&gt; is where you support subordinates efforts, listen to their suggestions and facilitate their interaction with others.  You encourage and praise to built their motivation and confidence.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-style: italic;"&gt;There Is Nothing So Un-Equal  As The  Equal Treatments of Un-Equals.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Directing style leadership is better for enthusiastic beginners whereas coaching is the right style for disillusioned learners.  Experienced people like a more participative management.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Delegating is Appropriate for people who are peak performers.  If you are feeling very much loaded with work, if it goes beyond your head  -  Delegate it.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;When I Slow Down,  I Go Faster  :   So think before acting.....&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_cnjBLqYOJHg/SlQ6sY3iVXI/AAAAAAAAEaQ/Qhw86G6WR8E/s1600-h/OMM1.jpg"&gt;&lt;img style="cursor: pointer; width: 434px; height: 161px;" src="http://2.bp.blogspot.com/_cnjBLqYOJHg/SlQ6sY3iVXI/AAAAAAAAEaQ/Qhw86G6WR8E/s320/OMM1.jpg" alt="" id="BLOGGER_PHOTO_ID_5355970391114405234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before using any leadership style, you need to diagnose the person's past performance.  And &lt;span style="font-weight: bold;"&gt;competence and commitment &lt;/span&gt;are two important ingredients to determine person's&lt;br /&gt;performance / achievement.  &lt;p style="margin-bottom: 0in;"&gt;So Problem in either competence OR commitment OR Both determine that person is not doing well.&lt;br /&gt;&lt;br /&gt;There is a slight difference between Competence and Ability.  Many of you think, and do directly relate competence with ability of person.&lt;br /&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Competence  &lt;/span&gt;is a function of knowledge and skills which can be gained from education, training and/or experience.&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;Ability &lt;/span&gt;is 'natural' potential to acquire certain skill so easily whereas, Competence is something which can be developed with appropriate direction and support.  It is not something you are born with.  It's Learned.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Commitment is a combination of confidence and motivation.&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal;"&gt;We can define Confidence and Motivation as : &lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt; &lt;span style="font-style: italic;"&gt;Confidence &lt;/span&gt;– Measure of self assuredness.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt; &lt;span style="font-style: italic;"&gt;Motivation &lt;/span&gt;– Interest and enthusiasm to do task well.&lt;/p&gt;      &lt;p style="margin-bottom: 0in;"&gt;People can have different combination of competence and commitment.  And so it make up '&lt;span style="font-weight: bold;"&gt;Development Level&lt;/span&gt;' for the person.&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;There are total 4 Development Levels.  These are :&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_cnjBLqYOJHg/SlRR4L3MaII/AAAAAAAAEag/Fr0miAN3Jd0/s1600-h/OMM2.jpg"&gt;&lt;img style="cursor: pointer; width: 433px; height: 147px;" src="http://3.bp.blogspot.com/_cnjBLqYOJHg/SlRR4L3MaII/AAAAAAAAEag/Fr0miAN3Jd0/s400/OMM2.jpg" alt="" id="BLOGGER_PHOTO_ID_5355995882549176450" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_cnjBLqYOJHg/SlRRqd9PiNI/AAAAAAAAEaY/58mpnwVs7EA/s1600-h/OMM2.jpg"&gt;&lt;/a&gt;&lt;p style="margin-bottom: 0in;"&gt;Thus, Everyone has Peak Performance Potential  -  You just need to find it.&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;Leader needs to do what people they supervise can't do for themselves at the present moment.  &lt;/p&gt;  &lt;ol type="I"&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;D1 has commitment but lacks  competence, leader needs to provide Direction ( S1 ).&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;D2 lacks both competence &amp;amp;  commitment, leader needs to provide both direction &amp;amp; Support (  S2 ).&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;D3 has competence but variable  commitment, leader has to provide support ( S3 ).&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;D4 has both competence &amp;amp;  commitment, leader does not need to provide either direction or  support ( S4 ).&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;As the development level moves, manager should change and move leadership style.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Five Steps to develop persons Competence &amp;amp; Commitment :  &lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt; (In other words steps to change person's development level)&lt;/p&gt; &lt;ol style="font-style: italic;"&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Tell them what to do&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Show them what to do&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Let them try (But don't turn over  too much responsibility, risk has to be reasonable)&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Observe the performance  ( You can  Expect more, If you inspect more )&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;  But it means catch people doing  right, Not wrong.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in;"&gt;Praise the progress.&lt;/p&gt; &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Remember to save Reprimands for D4, D3 and occasionally D2.  If you use reprimand for D1 they might loose interest and stop trying.  It's not a tool for training.  Nor is it to teach skills.  It's mostly a way to deal with Motivation and Attitude Problem. &lt;p style="margin-bottom: 0in;"&gt;Do not forget to have all facts and see theres no extenuating circumstances before  Reprimand.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;Decline in Performance, may caused by drop in confidence  -   You need to provide support and encouragement rather than Reprimand.&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;“Contracting” is a third skill of being Situational Leader :&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;As per most famous saying, “Situational Leadership is Not something you Do to People, But something you do With People”.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Most of managers may think as a  manager, they had to figure out all by themselves but contracting eliminates all that worry.  In Contracting, you come to mutual agreement with people you supervise.&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;By this time, when I have mentioned so much about Situational Managerial skills and Leadership of One minute manager, you must have comfortable enough to handle the situations and tackle the problems smartly.  If you're nodding your head vertically... Voila.. you are almost Situational Leader.. Congratulations !!  This was just  first step and we have long run to go … Will keep posting further about it...&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Courtesy :    &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Book : Leadership and the One Minute Manager&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;/p&gt;                                   &lt;p style="margin-bottom: 0in;"&gt; by  Kenneth H. Blanchard, Patricia Zigarmi&lt;br /&gt;&lt;span style="font-style: italic;font-size:78%;"&gt;All Content Copyrights are reserved and maintained by Authors/Publishers&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-8162588841309514330?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/8162588841309514330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/07/friends-today-i-would-like-to-share-few.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/8162588841309514330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/8162588841309514330'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/07/friends-today-i-would-like-to-share-few.html' title='Situational Leadership'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_cnjBLqYOJHg/SlQ6sY3iVXI/AAAAAAAAEaQ/Qhw86G6WR8E/s72-c/OMM1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-6302018897145745076</id><published>2009-05-15T19:00:00.010+05:30</published><updated>2009-11-06T22:39:41.701+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='mssql_free_result'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql_num_fields'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql_select_db'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql_query'/><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Connecting MS SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql_num_rows'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql_connect'/><category scheme='http://www.blogger.com/atom/ns#' term='Connecting sql server'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql_fetch_array'/><title type='text'>Connecting MS SQL Server through PHP</title><content type='html'>Being a PHP developer, we've been used to connect to MySql Database through PHP.  Using a MySql Database  generally recommended strongly by overall community but what if I have some restrictions and have to use MS Sql Server.&lt;br /&gt;&lt;br /&gt;Recently I came across a situation where one of my friend called me to clarify his few queries.  He was working on moving asp application onto PHP (Kudos to PHP ! This has become a trend now -lol ) and he came across a condition where database previously used was MS SQL and his client didn't want to change the database though ( God knows why ?? ).  It gave me a nice chance to have our own little class script which would handle the connectivity to the server and handle the errors as well as other DB related necessary functions.&lt;br /&gt;&lt;br /&gt;Below is the class definition which I think you might find useful for your future use...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;// SQL SERVER DATABASE LOGIN DETAILS&lt;br /&gt;$DB_USER_MSSQL = &lt;span style="font-style: italic; font-weight: bold;"&gt;username&lt;/span&gt;;&lt;br /&gt;$DB_PASS_MSSQL = &lt;span style="font-style: italic; font-weight: bold;"&gt;password&lt;/span&gt;;&lt;br /&gt;$DB_HOST_MSSQL = &lt;span style="font-style: italic; font-weight: bold;"&gt;host&lt;/span&gt;;&lt;br /&gt;$DB_DATABASE_MSSQL = &lt;span style="font-style: italic; font-weight: bold;"&gt;database&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;class ConnectDB_MSSQL {&lt;br /&gt;var $conn;&lt;br /&gt;var $errFunc;&lt;br /&gt;&lt;br /&gt;function defineerror($msg) {&lt;br /&gt;echo "&amp;lt;/table&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;p&amp;gt;\n";&lt;br /&gt; echo "&amp;lt;h1&amp;gt;Database Error: $msg&amp;lt;/h1&amp;gt;\n";&lt;br /&gt;  exit;&lt;br /&gt;}&lt;br /&gt;function ConnectDB_MSSQL($db_name,$server,$user,$pass,$error_function="defineerror") {&lt;br /&gt;$this-&amp;gt;errFunc = $error_function;&lt;br /&gt;$this-&amp;gt;conn = mssql_connect($server, $user, $pass);&lt;br /&gt;if (! $this-&amp;gt;conn ) {&lt;br /&gt; $this-&amp;gt;error("Unable to connect to MSSQL database");&lt;br /&gt; return;&lt;br /&gt;   }&lt;br /&gt;$result = @mssql_select_db($db_name, $this-&amp;gt;conn);&lt;br /&gt;if(!$result) {&lt;br /&gt; $this-&amp;gt;error("Unable to select MSSQL $database database");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function error($msg="") {&lt;br /&gt;$this-&amp;gt;{$this-&amp;gt;errFunc}($msg);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function close() {&lt;br /&gt;return @mssql_close($this-&amp;gt;conn);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function query($sql) {&lt;br /&gt;$result = @mssql_query($sql, $this-&amp;gt;conn);&lt;br /&gt;if(!$result) {&lt;br /&gt;$this-&amp;gt;error("Query ($sql) failed: ");&lt;br /&gt;}&lt;br /&gt;return new DatabaseQuery_MSSQL($result);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function addSlashes($string) {&lt;br /&gt;return addslashes($string);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function stripSlashes($string) {&lt;br /&gt;return stripslashes($string);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function parseDate($string) {&lt;br /&gt;list($date, $time) = split(" ", $string);&lt;br /&gt;list($year, $month, $day) = split("-", $date);&lt;br /&gt;list($hour, $minute, $second) = split(":", $time);&lt;br /&gt;&lt;br /&gt;$result = mktime($hour, $minute, $second, $month, $day, $year);&lt;br /&gt;&lt;br /&gt;return $result;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class DatabaseQuery_MSSQL {&lt;br /&gt;var $id;&lt;br /&gt;&lt;br /&gt;function DatabaseQuery_MSSQL($id) {&lt;br /&gt;$this-&amp;gt;id = $id;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function fetchArray() {&lt;br /&gt;return @mssql_fetch_array($this-&amp;gt;id);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function numRows() {&lt;br /&gt;return @mssql_num_rows($this-&amp;gt;id);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function seek($row) {&lt;br /&gt;return @mssql_data_seek($this-&amp;gt;id, $row);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function fetchField($offset) {&lt;br /&gt;return @mssql_fetch_field($this-&amp;gt;id, $offset);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function f($offset) {&lt;br /&gt;$a = @mssql_fetch_array($this-&amp;gt;id);&lt;br /&gt;return $a[$offset];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function fetchRow() {&lt;br /&gt;return @mssql_fetch_row($this-&amp;gt;id);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function numFields() {&lt;br /&gt;return @mysql_num_fields($this-&amp;gt;id);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function result($row, $index) {&lt;br /&gt;return @mssql_result($this-&amp;gt;id, $row, $index);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function freeResult() {&lt;br /&gt;return @mssql_free_result($this-&amp;gt;id);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Object for the above class defined can be created as :&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;$db_MSSQL = new ConnectDB_MSSQL($DB_DATABASE_MSSQL,$DB_HOST_MSSQL,$DB_USER_MSSQL,$DB_PASS_MSSQL);&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;and that's all !!   Just create a library file of above class and include it in your script, and you are done !! Isn't it simple !!&lt;br /&gt;&lt;br /&gt;BTW, sorry for formatting in above script.. I tried a lot to bring it to proper format, but thanks to blogspot... :)&lt;br /&gt;&lt;br /&gt;Feel free to put your views or comments !! till then Aloha !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-6302018897145745076?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/6302018897145745076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/05/connecting-ms-sql-server-through-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/6302018897145745076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/6302018897145745076'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/05/connecting-ms-sql-server-through-php.html' title='Connecting MS SQL Server through PHP'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-3128910194355401709</id><published>2009-03-25T21:32:00.001+05:30</published><updated>2009-03-25T21:36:01.116+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='connecting people'/><category scheme='http://www.blogger.com/atom/ns#' term='connecting computers'/><category scheme='http://www.blogger.com/atom/ns#' term='Adding Metadata'/><category scheme='http://www.blogger.com/atom/ns#' term='O&apos;Reilly'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='MediaLive International'/><category scheme='http://www.blogger.com/atom/ns#' term='Web 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='building event-driven experiences'/><title type='text'>Introduction To Web 2.0</title><content type='html'>&lt;span style="font-weight: bold;"&gt;What is Web 2.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Web 2.0 is the network as platform, spanning all connected devices; Web 2.0 applications are those that make the most of the intrinsic advantages of that platform: delivering software as a continually-updated service that gets better the more people use it, consuming and remixing data from multiple sources, including individual users, while providing their own data and services in a form that allows remixing by others, creating network effects through an "architecture of participation," and going beyond the page metaphor of Web 1.0 to deliver rich user experiences.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Origin of Web 2.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The bursting of the dot-com bubble in the fall of 2001 marked a turning point for the web. Many people concluded that the web was over hyped&lt;br /&gt;The concept of "Web 2.0" began with a conference brainstorming session between &lt;span style="font-weight: bold;"&gt;O'Reilly and MediaLive International&lt;/span&gt;. Dale Dougherty, web pioneer and O'Reilly VP, noted that far from having "crashed", the web was more important than ever, with exciting new applications and sites popping up with surprising regularity.&lt;br /&gt;What's more, the companies that had survived the collapse seemed to have some things in common. Could it be that the dot-com collapse marked some kind of turning point for the web, such that a call to action such as "Web 2.0" might make sense? We agreed that it did, and so the Web 2.0 Conference was born.&lt;br /&gt;In the year and a half since, the term "Web 2.0" has clearly taken hold, with more than 9.5 million citations in Google. But there's still a huge amount of disagreement about just what Web 2.0 means, with some people decrying it as a meaningless marketing buzzword, and others accepting it as the new&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why Web 2.0 is needed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Business aspect&lt;/span&gt;&lt;br /&gt;Behind the hype and confusion, there are truly revolutionary changes afoot. There are over a billion internet users worldwide sent over 1.4 Trillion SMS messages in 2005, generating over $50B in revenue. And, new services with just the right value proposition for the time, like Skype and MySpace, can attract over 50M users in their first 18 months of operation&lt;br /&gt;&lt;br /&gt;In the early ‘90s Due to Bridges, routers, LANs, etc. of the networking era comes. They were about &lt;span style="font-weight: bold;"&gt;connecting computers to other computers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the late ‘90s, “Web 1.0” took the next logical step of &lt;span style="font-weight: bold;"&gt;connecting people to businesses and data on other computers&lt;/span&gt; around the world. Search engines, online commerce, etc. were all both contributors to and outcomes of this new way of connecting&lt;br /&gt;&lt;br /&gt;We’re really entering an era where the primary emphasis is on &lt;span style="font-weight: bold;"&gt;connecting people to other people&lt;/span&gt;. Whether it’s social networks, community generated content, VoIP, or new mobile technology, the truly revolutionary and business-worthy ideas that are being born now are the ones that bring together technology and people and let creative combinations and business models flourish&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Basic Elements of Web 2.0&lt;/span&gt;&lt;br /&gt;&lt;ol style="font-weight: bold; font-style: italic;"&gt;&lt;li&gt;AJAX (Asynchronous Javascript And XML )&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;One ingredient of Web 2.0s meaning is certainly Ajax, which I can still only just bear to use without scare quotes. Basically, what "Ajax" means is "Javascript now works." And that in turn means that web-based applications can now be made to work much more like desktop ones&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;D&lt;/span&gt;emocracy&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;The second big element of Web 2.0 is democracy. We now have several examples to prove that amateurs can surpass professionals, when they have the right kind of system to channel their efforts. Wikipedia may be the most famous. Experts have given Wikipedia middling reviews, but they miss the critical point: it's good enough. And it's free, which means people actually read it. On the web, articles you have to pay for might as well not exist. Even if you were willing to pay to read them yourself, you can't link to them. They're not part of the conversation&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Don't Maltreat Users&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;I think everyone would agree that democracy and Ajax are elements of "Web 2.0." I also see a third: not to maltreat users. During the Bubble a lot of popular sites were quite high-handed with users. And not just in obvious ways, like making them register, or subjecting them to annoying ads. The very design of the average site in the late 90s was an abuse. Many of the most popular sites were loaded with obtrusive branding that made them slow to load and sent the user the message: this is our site, not yours. (There's a physical analog in the Intel and Microsoft stickers that come on some laptops.)&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt; - Google was a pioneer in all three components of Web 2.0: their core business sounds crushingly hip when described in Web 2.0 terms, "Don't maltreat users" is a subset of "Don't be evil," and of course Google set off the whole Ajax boom with Google Maps.&lt;br /&gt;- The fact that Google is a "Web 2.0" company shows that, while meaningful, the term is also rather bogus. It's like the word "allopathic." It just means doing&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Six Trends That Characterize Web 2.0&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-style: italic; color: rgb(0, 0, 0);"&gt;Writing Semantic Markup: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic; color: rgb(0, 0, 0);"&gt;Transition to XML&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;One of the biggest steps in realizing Web 2.0 is the transition to semantic markup, or markup that accurately describes the content it’s applied to. The most popular markup languages, HTML and XHTML, are used primarily for display purposes, with tags to which designers can apply styles via CSS.&lt;br /&gt;RSS is an XML format for syndicating content. It is an easy way for sites to tell people when there is content available. So, instead of browsing to your favorite site over and over again to see if something is new, you can simply subscribe to its RSS feed by typing the RSS URI into a feed . The aggregator will periodically poll the site, notify you if something is new, and deliver that content. It’s a real timesaver&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;Providing Web Services: Moving Away From Place&lt;/span&gt;&lt;br /&gt;During the early years of the Web, before content had semantic meaning, sites were developed as a collection of “pages.” Sites in the 1990s were usually either brochure-ware (static HTML pages with insipid content) or they were interactive in a flashy, animated, JavaScript kind of way. In that era, a common method of promoting sites was to market them as “places”—the Web as a virtual world complete with online shopping malls and portals.&lt;br /&gt;In the late 90s and especially the first few years of the 21st century, the advent of XML technologies and Web services began to change how sites were designed.&lt;br /&gt;This is truly powerful. Anyone can build an interface to content on any domain if the developers there provide a Web services API&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Amazon.com&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;eBay&lt;/span&gt;, both of which provide an immense amount of commercial data in the form of Web services, accessible to any developer who wants it. An interesting interface built using eBay’s Web services is &lt;span style="font-weight: bold;"&gt;Andale&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Remixing Content: About When and What, not Who or Why&lt;/span&gt;&lt;br /&gt;Web design in Web 2.0 is about &lt;span style="font-weight: bold;"&gt;building event-driven experiences&lt;/span&gt;, rather than sites. And it’s no coincidence that RSS is one of the key building blocks. RSS feeds enable people to subscribe to your content and read it in an aggregator any time, sans extraneous design&lt;br /&gt;Associated Press CEO Tom Curley made an important and far-reaching keynote speech to the Online News Association Conference on Nov. 12, 2004. In it he said, “… content will be more important than its container in this next phase [of the Web]… Killer apps, such as search, RSS and video-capture software such as TiVo—to name just a few—have begun to unlock content from any vessel we try to put it in.”&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Emergent Navigation and Relevance: Users are in Control&lt;/span&gt;&lt;br /&gt;As a result of the remixing aspects of Web 2.0, most content will be first encountered away from the domain in which it lies. Thus, much of the navigation that is used to reach a specific item might be far removed from the navigation specifically designed for it. This “distributed” navigation might come in the form of a feed reader, a link on a blog, a search engine, or some other content aggregator.&lt;br /&gt;aggregators can use past user behavior to predict what users will find most relevant in the future. This is very apparent in &lt;span style="font-weight: bold;"&gt;Daypop, Del.icio.us, and Blogdex feeds&lt;/span&gt;. What people have found relevant in     the past is likely to be useful in the future&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Adding Metadata Over Time: Communities Building Social Information&lt;/span&gt;&lt;br /&gt;One feature of Web 1.0 that seemed to change everything about publishing was the ability to make changes to the primary publication at any time. There are no “editions” or “printings” on the Web like there are in the print world. There is simply the site and its current state. We are used to this paradigm now, and an optimist can hope that Web content will only get better with time: metadata will be added, descriptions will get deeper, topics more clear, and references more comprehensive.&lt;br /&gt;Web 2.0 is a step beyond this, to where users are adding their own metadata. On Flickr and Del.icio.us, any user can attach tags to digital media items (files, bookmarks, images).&lt;br /&gt;For example, that we tag a bookmark “Web2.0” in Del.icio.us. We can then access del.icio.us/tag/Web2.0 to see what items others have tagged similarly, and discover valuable content that we may not have known existed&lt;/li&gt;&lt;li&gt;&lt;span style="font-style: italic;"&gt;Shift to Programming: Separation of Structure and Style&lt;/span&gt;&lt;br /&gt;In Web 1.0, there were two stages to visual Web design. In the early years, designers used tricks like animated GIFs and table hacks in clever, interesting and horrible ways. In the last few years, CSS came into fashion to help separate style from structure, with styling information defined in an external CSS file. Even so, the focus was still on visual design—it was the primary way to distinguish content and garner attention.&lt;br /&gt;XML is the currency of choice in Web 2.0, so words and semantics are more important than presentation and layout. Content moves around and is accessible by programmatic means.&lt;br /&gt;In the words of Amazon.com CEO Jeff Bezos, “Web 2.0… is about making the Internet useful for     computers.”&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Web 2.0 Made Easier &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A clean interface with focus on usability&lt;/li&gt;&lt;li&gt;Social functions like tagging, groups, commenting, evaluations and friends&lt;/li&gt;&lt;li&gt;RSS feeds for everything&lt;/li&gt;&lt;li&gt;An open API&lt;br /&gt;- Web 2.0 isn’t about technology. It’s about understanding fundamental changes and innovations in interaction models, work models and business models that, in many cases, are only possible on the Web.&lt;/li&gt;&lt;li&gt;Web 2.0 is about making things simpler.&lt;/li&gt;&lt;li&gt;It is a step away from a thick client world to a thin client world.&lt;/li&gt;&lt;li&gt;It is a step away from being techy &amp;amp; geeky to being more universally accessible.&lt;/li&gt;&lt;li&gt;Its about using the web to do things that you used to use your computer to do.&lt;/li&gt;&lt;li&gt;( Gmail, flikr, blogger)&lt;/li&gt;&lt;li&gt;Its key enabler is widespread availability of broadband.&lt;/li&gt;&lt;li&gt;The proximate driver of web2.0 is companies trying (still) to figure out how to make money from the web&lt;/li&gt;&lt;li&gt;The strategic driver is to deliver services via the web to make it more attractive to non-technical people. This means providing services that are&lt;br /&gt;&lt;br /&gt;Gmail, Delicious, digg, blogger, flikr, are all steps in these directions.&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Examples of Web 2.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Google  &lt;/span&gt;provides many characteristic Web 2.0 services: Blogger, Adsense, Maps, Search, Base, Gmail, GTalk, Reader, Statistics. Each of these services either exploit the read/write Web or the Web as Platform.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;eBay &lt;/span&gt; provides many buyer and seller services that aim for greater participation. Their API is one of the most successful, and the network effects they enjoy from their large user base are unrivaled. New Exemplars of Web 2.0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Flickr &lt;/span&gt;is a fast-growing photosharing service that provides an collaborative user interface as well as a powerful API to it's content. (Recently acquired by Yahoo!)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Del.icio.us&lt;/span&gt; is a popular social bookmarking service. Joshua Schacter, the founder, characterizes his service as a way to remember things. (Recently acquired by Yahoo!)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;&lt;span&gt;This blog is output of some reference material from internet&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;.&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt; Content from some reference site may appear as it is in this blog. Author of this blog may not take responsibility of correctness for such content .&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-3128910194355401709?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/3128910194355401709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/introduction-to-web-20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/3128910194355401709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/3128910194355401709'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/introduction-to-web-20.html' title='Introduction To Web 2.0'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-6766945633367878035</id><published>2009-03-06T14:44:00.008+05:30</published><updated>2009-03-21T19:02:12.155+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='Syntax'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting in Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Shell'/><title type='text'>Introduction to Unix Shell Scripting</title><content type='html'>I would like to discuss &lt;span style="font-weight: bold;"&gt;Shell Scripting in Unix&lt;/span&gt; in this topic today.  What I would be discussing with you is introduction to Shell Scripting, its features, command line parameters, arithmetic operations, control structures and functions usage in Shell Scripting.&lt;br /&gt;&lt;br /&gt;Lets start with the definitions.  Shell is a program provided by Unix, typically to provide interface to the Unix system.  Thus, in other words, Shell is some tool for interacting user with system. Generally its either text based and command line oriented.  Command Interpreter which is series of commands and takes commands from user and executes them.  There are different types of Shell e..g  Bourne Shell (/bin/sh), C Shell (/bin/csh), TC Shell (/bin/tcsh), Korn Shell (/bin/ksh), Bash (Bourne Again shell) (/bin/ksh) etc.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why do we need Shell Programs ?&lt;/span&gt;   Nice question you have... Lets concentrate now on this basic question which is generally asked.  We generally may need to run tasks that are customized for different system or Some times we need to write some jobs that run on a system and we need to control those  jobs we may need Shell Scripting in such and situations like those.&lt;br /&gt;&lt;br /&gt;1.Script starts with line #!/bin/sh&lt;br /&gt;2.'#' is used for commenting in script.  Comments used in script always makes your code readable&lt;br /&gt;3.It gives identification of author of script and date &amp;amp; time of update.&lt;br /&gt;4.Easy to read and understand&lt;br /&gt;5.Major complex sections of codes can be explained&lt;br /&gt;6.Last but not least Versioning is tracked through this&lt;br /&gt;&lt;br /&gt;These are few of features that we can generally think of it.&lt;br /&gt;&lt;br /&gt;Lets see now what are the parameters and its usage through command line.&lt;br /&gt;&lt;br /&gt;$0 tells you the name of script.  $1, $2, $3 … tells you the 1st , 2nd , 3rd and so on parameter passed through the command line.  And $# gives you no. of arguments passed to the script.  If your script needs to read the input given by user through command prompt, use “read” statement .&lt;br /&gt;e.g. echo “Please enter your name  : ”&lt;br /&gt;    read name&lt;br /&gt;where name would be the variable holding the user inputted value.&lt;br /&gt;&lt;br /&gt;How arithmetic operations are carried out in Scripting is still a question.  Let me explain you through the example.&lt;br /&gt;e.g.  i=2&lt;br /&gt;     j=3&lt;br /&gt;    k=`expr $j - $i`&lt;br /&gt;   echo “Result  of $j - $i is : $k ”&lt;br /&gt;Note here, expr is used to execute the operation and it would assign the result to the variable on left side.&lt;br /&gt;&lt;br /&gt;Just like other programming languages, Shell Scripting also provide couple of control structures for your help.  Significance of control structures is well knows world wide.. :)&lt;br /&gt;If – then, For loop, While loop, Case statement  are couple of control structures provided by Shell Scripting.&lt;br /&gt;&lt;br /&gt;Lets see Syntaxes one by one for all &lt;span style="font-weight: bold;"&gt;Control Structures&lt;/span&gt; :&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.If- then&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Syntax&lt;/span&gt;:&lt;br /&gt;        if condition then&lt;br /&gt;                    condition is satisfied and is true&lt;br /&gt;                    execute this block&lt;br /&gt;        else&lt;br /&gt;                    if condition is not satisfied then execute this block upto fi.&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;Here, note that condition is zero means its true and satisfied. And you can go in nested&lt;br /&gt;if -else – fi .&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.For Loop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;         for { variable name } in { list }&lt;br /&gt;         do&lt;br /&gt;execute and repeat all the statements in this block once for each item till&lt;br /&gt;the list is finished&lt;br /&gt;         done&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.While Loop&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;        while [ condition ]&lt;br /&gt;        do&lt;br /&gt;              command1&lt;br /&gt;              command2&lt;br /&gt;              command3&lt;br /&gt;              ..&lt;br /&gt;              ....&lt;br /&gt;         done&lt;br /&gt;Here, Loop is executed as long as given condition is true.  You need to make sure, at some point condition should get false within the loop or else it would go on executing indefinitely causing script hang.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.Case Statement&lt;/span&gt;&lt;br /&gt;The case statement is good alternative to Multilevel if-then-else-fi statement. It enable you to match several values against one variable. Its easier to read and write.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;        case  $varName  in&lt;br /&gt;             pattern1)  command1&lt;br /&gt;                             command2&lt;br /&gt;                              …..&lt;br /&gt;                             commandn;;&lt;br /&gt;     pattern2)  command1&lt;br /&gt;                             command2&lt;br /&gt;                             …..&lt;br /&gt;                             commandn;;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.           &lt;br /&gt;             patternN)  command1&lt;br /&gt;                              command2&lt;br /&gt;                              …..&lt;br /&gt;                              commandn;;&lt;br /&gt;             *)             command;;&lt;br /&gt;        esac&lt;br /&gt;&lt;br /&gt;The $varName is compared with patterns till a match is found. And similar to case statements in&lt;br /&gt;other programming languages such as PHP, shell executes all the statements up to the two semicolons as a delimiter.. *) is the default case and executed when no pattern is matched.&lt;br /&gt;&lt;br /&gt;Hope at this point of line, you have been very much comfortable with Shell Scripting and its basics.  Finally lets see how user defined functions work in Shell Scripting.&lt;br /&gt;&lt;br /&gt;In &lt;span style="font-weight: bold;"&gt;Shell Scripting  Function&lt;/span&gt; can be defined as a series of commands. They performs specific work to do or simply say task. Below mentioned syntax can help you understand the function in detail.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Syntax:&lt;/span&gt;&lt;br /&gt;        function_name ( )&lt;br /&gt;        {&lt;br /&gt;             command1&lt;br /&gt;             command2&lt;br /&gt;             .&lt;br /&gt;             .&lt;br /&gt;             .&lt;br /&gt;             .    &lt;br /&gt;             commandN&lt;br /&gt;             return&lt;br /&gt;        }&lt;br /&gt;Here, function_name is the name of function that you define, and it executes series of commands either up to return statement or end curly brace of function (whichever encounters first ) which terminates the function and passes control back to the calling point&lt;br /&gt;e.g.&lt;br /&gt;&lt;br /&gt;Type fnGetName() at $ prompt as follows&lt;br /&gt;fnGetName()&lt;br /&gt;{&lt;br /&gt; echo “in function”&lt;br /&gt;}&lt;br /&gt;Call to the above function can be given with simply name of fucntion.&lt;br /&gt;e.g. fnGetName&lt;br /&gt;&lt;br /&gt;fuew !!  Tired so far reading ??  ha ha .. we are not done yet but for now.. yes..!!  This is enough for you to get basic idea of what is Shell Scripting.  We still have tons of other areas in Shell Scripting to cover which is vast in size and will need separate site to explain and discuss it.  Lets discuss it further later at some point, in mean while you can always get in touch with me for your queries through this blog and will be happy to resolve them.&lt;br /&gt;&lt;br /&gt;Till then aloha !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-6766945633367878035?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/6766945633367878035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/introduction-to-unix-shell-scripting.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/6766945633367878035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/6766945633367878035'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/introduction-to-unix-shell-scripting.html' title='Introduction to Unix Shell Scripting'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-6315186355452787260</id><published>2009-03-05T14:12:00.004+05:30</published><updated>2009-03-21T19:04:26.489+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='CMMi'/><category scheme='http://www.blogger.com/atom/ns#' term='Risk management'/><category scheme='http://www.blogger.com/atom/ns#' term='Project'/><category scheme='http://www.blogger.com/atom/ns#' term='CMMi standards'/><category scheme='http://www.blogger.com/atom/ns#' term='Planning'/><category scheme='http://www.blogger.com/atom/ns#' term='Project Planning Importance'/><category scheme='http://www.blogger.com/atom/ns#' term='Project Planning'/><category scheme='http://www.blogger.com/atom/ns#' term='Third party tool'/><title type='text'>Importance of Project Planning in Software Industry</title><content type='html'>It has been a very controversial discussion on importance of Project Planning in Project Development in Software Industry among my friends.  Many of my friends has view that its mere time wasting in documentation rather than actual development. What all I say to them is just a saying.. "The sooner you start, the later you finish !!".. Let me explain what does it mean... If you start project without prior planning and estimation, you will face tons of obstacles and surprising risks and crisis.  After huge discussion and debate finally I decided to write an article and would like to take an opportunity to share few of my thoughts about Importance of Project Planning which I realized in my project.&lt;br /&gt;&lt;br /&gt;Project Planning process gives a significant help in your project.  Even though we know lots of concepts that generally we follow while project development, but if project is not going through proper phases given by CMMi standards, many of activities that we are supposed to follow gets overlooked and later when project finds ample of surprising crisis, we find that following those processes would have really helped for betterment of project.&lt;br /&gt;&lt;br /&gt;Project Planning is one of such process.  For instance, setting milestones on project, which we  as  a manager generally overlook in project development. Many of us knows this concept and its usefulness in project, but as mentioned earlier when project starts directly without process following, milestones does not get setup in advance and then it becomes very tedious to trace back the tasks and its completion time versus estimated time.  Project Planning process gives this power to you to plan well in advance and in turn easiness to mange the project.&lt;br /&gt;&lt;br /&gt;External and Internal dependencies are another factors which we never think about in advance.  If we are following Project Planning process and preparing its documents in advance, it will give you chance to think in deep about this area well in advance which generally person do not do when not following this process...&lt;br /&gt;&lt;br /&gt;Risk management.  This is another key aspect in project development. When project is started directly without prior preparation documents in hand, person literally think on surface level about it.  Believe me, and I hope you agree with it, that each and every project has Risk associated to it and Project Planning is the document which gives you change to think about it that are going to occur in future and not on surface level. If project is following the general traditional way of development then manager never foresee those Risks in advance and hence is not well planned for any kind of un-certain disaster with project.  And then obviously person heads towards applying patches and  it goes on and on and on...  This can be easily avoided by planning well in advance, where Project Planning Process helps you a lot...&lt;br /&gt;&lt;br /&gt;Third party tool, Roles and Responsibilities and many more such sections from Project Planning, which gives you enough power and makes you think beyond the limit.  Hence I suggest you to give proper attention towards Project Planning and filling Project Plan document for all of your projects. I realized its importance  at my project hand helped me to complete my project on time.&lt;br /&gt;&lt;br /&gt;I hope by the time you are at this point reading, you've already agreed with me and understood how project planning in project development plays vital role.  Let me know your views and thoughts on this topic.  I would like to discuss further and will be interested in knowing any pros that I've missed to mention or drawback of project planning if you think so.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-6315186355452787260?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/6315186355452787260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/importance-of-project-planning-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/6315186355452787260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/6315186355452787260'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/importance-of-project-planning-in.html' title='Importance of Project Planning in Software Industry'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-3597646319808370374</id><published>2009-03-04T17:07:00.013+05:30</published><updated>2009-03-21T19:05:31.545+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google map'/><category scheme='http://www.blogger.com/atom/ns#' term='API Key'/><category scheme='http://www.blogger.com/atom/ns#' term='Google map on your website'/><title type='text'>How to show Google map on your website</title><content type='html'>Lots of time I have seen that programmer generally wants to show Google maps on their website.  I personally think, while going through developing those requirement, maps generally requires longitude and latitude which is hard for a typical developer to provide since requirement generally provides you just address of place of which map to be shown.  In that case it becomes challenge for the developer to calculate required&lt;br /&gt;longitude and latitude of a specific address and then accordingly pass them to get the map.  Second challenge, developer may face in placing marker on map If developer is new in this area and he has to spend tons of time in R&amp;amp;D for getting these markers placed along with SmartWindow for label on marker.  Believe, me this is my personal experience when I as a fresher started working on this requirement have spent lots of time in so simple feature. (Don't call me dumb..please.. ;) )&lt;br /&gt;&lt;br /&gt;So hereby, I would give you a small function which will give a facility for a developer to just include couple of functions and map will be ready for him on page with marker and SmartWindow with label details without hassle of calculating long. &amp;amp; lat. details of address.&lt;br /&gt;&lt;br /&gt;Very first step obviously you have to do is to get AppId for your application.  If you are doing web based development, you need to provide domain URL for authentication.  This is extra care taken by Google and appId generated for one domain through Google can not be used for another domain. Well sorry but, it's like that only and I personally love this extra check by Google.  &lt;a href="http://code.google.com/apis/maps/signup.html" target="_blank"&gt;Click Here&lt;/a&gt; for signing up for a Google Maps API Key.  Once you receive your API Key you are ready to go for that !&lt;br /&gt;&lt;br /&gt;Next step is to include/load map file from Google using appId generated for specific to your domain.&lt;br /&gt;e.g.&lt;br /&gt;&amp;lt;script type="text/javascript" src="http://www.google.com/jsapi?key=abcdefgh"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;where you need to replace your API Key with "abcdefgh" given in example.&lt;br /&gt;&lt;br /&gt;and that's it..  Now rest all you have to do is copy below mentioned piece of Javascript code and paste in your file, preferably within &amp;lt;head&amp;gt; &amp;lt;/head&amp;gt;tag, below &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt; tag though it really doesn't matter but just for the sake of coding standards.&lt;br /&gt;&lt;br /&gt;= JS Functions to display MAP Starts here =&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Functions for Map --&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;/* Define the address you want to show map of */&lt;br /&gt;var address = "1600 Amphitheatre Parkway Mountain View, CA 94043";&lt;br /&gt;&lt;br /&gt;/* Define the label details of address you want to show as marker on map */&lt;br /&gt;var infoWindowDetails= '&amp;lt;span &amp;gt;&amp;lt;B&amp;gt;Google Inc.&amp;lt;/B&amp;gt; &amp;lt;br /&amp;gt; 1600 Amphitheatre Parkway &amp;lt;br /&amp;gt; Mountain View, CA 94043 USA&amp;lt;br /&amp;gt;Phone: +1 650-253-0000&amp;lt;br /&amp;gt;Fax: +1 650-253-0001 &amp;lt;/span&amp;gt;';&lt;br /&gt;&lt;br /&gt;/* Load Google Map.  second parametere is for view type*/&lt;br /&gt;google.load("maps", "2");&lt;br /&gt;&lt;br /&gt;var map = null;&lt;br /&gt;var geocoder = null;&lt;br /&gt;&lt;br /&gt;// Call this function when the page has been loaded&lt;br /&gt;function initialize() {&lt;br /&gt; if (GBrowserIsCompatible()) {&lt;br /&gt;  &lt;br /&gt;   map = new GMap2(document.getElementById("map_canvas"));  // Creat instance of map.&lt;br /&gt;map.addControl(new GLargeMapControl());  // Add Map Control on map&lt;br /&gt;var mapControl = new GMapTypeControl(); &lt;br /&gt;   map.addControl(mapControl);    // Add Map Type Control on map&lt;br /&gt;   geocoder = new GClientGeocoder();&lt;br /&gt;showAddress(); // Call to the fucntion which will mark the address on map.&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function showAddress() {&lt;br /&gt; if (geocoder) {&lt;br /&gt;   geocoder.getLatLng(&lt;br /&gt;     address,&lt;br /&gt;     function(point) {&lt;br /&gt;       if (!point) {&lt;br /&gt;         alert(address + " not found");&lt;br /&gt;       } else {&lt;br /&gt;         map.setCenter(point, 13);&lt;br /&gt;         var marker = new GMarker(point);  // Create instance of marken on map&lt;br /&gt;         map.addOverlay(marker);    // Add overlay of marker on map&lt;br /&gt;         marker.openInfoWindowHtml(infoWindowDetails); // Show label baloon on marken with address details.&lt;br /&gt;       }&lt;br /&gt;     }&lt;br /&gt;   );&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;google.setOnLoadCallback(initialize);   // Call to callback function on page load.&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;= JS Functions to display MAP Ends here =&lt;br /&gt;&lt;br /&gt;Congratulations !! you are done with it.. You can easily see your map with specified address... No need to calculate latitude, longitude neither is there hassle of point locations finding for Marker and SmartWindow.&lt;br /&gt;&lt;br /&gt;BTW, Dont forget to provide some content layer on your page to hold the map... or else there is no specific place you are giving for google to show its map on your website..&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;  &amp;lt;div id="map_canvas" style="width:600px;height:300px"&amp;gt;&amp;lt;/div&amp;gt;    &lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;Here's wishing you a very happy programming !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-3597646319808370374?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/3597646319808370374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/how-to-show-google-map-on-your-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/3597646319808370374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/3597646319808370374'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/how-to-show-google-map-on-your-website.html' title='How to show Google map on your website'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-638492152868096299</id><published>2009-03-02T19:33:00.009+05:30</published><updated>2009-03-21T19:06:31.328+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Looping form elements'/><title type='text'>Looping through form elements using JavaScript</title><content type='html'>Here is another basic need of developer. Many times developer needs script to loop through all the elements that are available in form tag using client side script.&lt;br /&gt;&lt;br /&gt;Following is the piece of Javascript that can be used on your page under script tag which will help to loop through all the form elements on page. You need to copy and paste the piece of code under  &lt;&gt;   &lt; /script &gt;  tag for Javascript language.&lt;br /&gt;&lt;br /&gt;Note, here you need to replace frmName with your actual name of form element on page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for(i=0; i &lt; document.frmName.elements.length; i++)&lt;br /&gt;{&lt;br /&gt;      alert("Field Name : " + document.frmName.elements[i].name + " &lt;br /&gt;      &lt;&gt; Field Value : " + document.frmName.elements[i].value + ".&lt;br /&gt;      &lt;&gt; ");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can find example of how can above piece can be used to loop through all the form fields.  Example explains you how all the checkboxes available in form as well as explains how those checkboxes available on page can be unchecked (e.g. all the records listed on page needs to be activated/de-activated, or adding / removing items from your shopping basket).&lt;br /&gt;&lt;br /&gt;Initially, you need actions to give call to the Function...&lt;br /&gt;     &lt; type="button" name="btnSelect" value="Select Records" onclick="javascript: selectAll();"&gt;&lt;br /&gt;    &lt; type="button" name="btnDeSelect" value="De-Select Records" onclick="javascript: deSelectAll();"&gt;&lt;br /&gt;&lt;br /&gt;Second step is to have the piece of code that loops through all the elements,&lt;br /&gt;&lt;br /&gt;    &lt; language="JavaScript"&gt;&lt;br /&gt;&lt;br /&gt;   function selectAll()&lt;br /&gt;   {&lt;br /&gt;    /* Function to loop through the form elements and check all the elements that are of type Checkbox */&lt;br /&gt;      &lt;br /&gt;     for(i=0; i &lt; document.frmName.elements.length; i++)&lt;br /&gt;      {&lt;br /&gt;       if(document.frmName.elements[i].type=="checkbox")&lt;br /&gt;       {&lt;br /&gt;        document.frmName.elements[i].checked=true;&lt;br /&gt;       }&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   function deSelectAll()&lt;br /&gt;   {&lt;br /&gt;    /* Function to loop through the form elements and un-check all the elements that are of type Checkbox */&lt;br /&gt;       &lt;br /&gt;     for(i=0; i &lt; document.frmName.elements.length; i++)&lt;br /&gt;      {&lt;br /&gt;      if(document.frmName.elements[i].type=="checkbox")&lt;br /&gt;      {&lt;br /&gt;       document.frmName.elements[i].checked=false;&lt;br /&gt;      }&lt;br /&gt;     }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;    &lt; /script &gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-638492152868096299?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/638492152868096299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/looping-through-form-elements-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/638492152868096299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/638492152868096299'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/03/looping-through-form-elements-using.html' title='Looping through form elements using JavaScript'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-7243129928592294188</id><published>2009-01-26T10:42:00.006+05:30</published><updated>2009-03-21T19:07:39.629+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='array_merge'/><category scheme='http://www.blogger.com/atom/ns#' term='htmlentities'/><category scheme='http://www.blogger.com/atom/ns#' term='array_walk'/><category scheme='http://www.blogger.com/atom/ns#' term='strip_tags'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><category scheme='http://www.blogger.com/atom/ns#' term='Eliminate HTML Tags'/><title type='text'>Eliminate HTML Tags submitted by User</title><content type='html'>It's general error overlooked by developers, that while coding a general text box is given for entering the user details to the form, but its not taken care that, what if user enters the HTML tags into the text box.&lt;br /&gt;&lt;br /&gt;If developer is using the database to store those details, then MySql and PHP settings might take care of adding the data to database correctly, but while rendering the data onto a web page, it gets&lt;br /&gt;overlooked.  Server simply declare them as mere HTML character and send it behind the code.&lt;br /&gt;Which in turn causes the application crash..&lt;br /&gt;&lt;br /&gt;Additionally, in case of making site SQL Injection proof, developer really need to take care of HTML post on site and eliminate or replace those HTML Characters.&lt;br /&gt;&lt;br /&gt;Below is simple script I have written to either remove or replace the HTML characters from posted data.  This script is simple and with minimal size of code for achieving the target.&lt;br /&gt;&lt;br /&gt;// Start of script&lt;br /&gt;&lt;br /&gt;&lt;span class="postbody"&gt;Usage :  validateData([param1]);&lt;br /&gt;==============================&lt;br /&gt;&lt;br /&gt;function  replaceHTML(&amp;amp;$value,$key)&lt;br /&gt;{&lt;br /&gt; $value=htmlentities($value);&lt;br /&gt;}&lt;br /&gt;function removeHTML(&amp;amp;$value,$key)&lt;br /&gt;{&lt;br /&gt; $value=strip_tags($value);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function validateData($replaceOption='replace')&lt;br /&gt;{&lt;br /&gt; $arrPostedData=array_merge($_POST,$_GET);&lt;br /&gt; switch($replaceOption)&lt;br /&gt; {&lt;br /&gt;   case "replace" : array_walk($arrPostedData,'replaceHTML');&lt;br /&gt;   break;&lt;br /&gt;   case "remove" : array_walk($arrPostedData,'removeHTML');&lt;br /&gt;   break;&lt;br /&gt; }&lt;br /&gt;echo "&lt;&gt;";&lt;br /&gt;print_r($arrPostedData);&lt;br /&gt;echo "&lt; /pre &gt;";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;validateData('replace');&lt;br /&gt;validateData('remove');&lt;br /&gt;validateData();&lt;br /&gt;&lt;br /&gt;=====================&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="postbody"&gt;Above piece of code in PHP which will help  developer to have parse the inputted data from user and will either give option  to completely remove the HTML tags off the data or will give feasibility to  replace those tags with its equivalent...&lt;br /&gt;&lt;br /&gt;Parameter sent while calling  function will decide what to do...This parameter is optional and would take  bydefault replace if nothing passed while calling... moreover, developer can  customize the function as per his/her need...&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-7243129928592294188?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/7243129928592294188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/01/html-tags-submitted-by-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/7243129928592294188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/7243129928592294188'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/01/html-tags-submitted-by-user.html' title='Eliminate HTML Tags submitted by User'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2864444021574781379.post-3628337087496642699</id><published>2009-01-25T04:28:00.006+05:30</published><updated>2009-03-25T21:41:59.556+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='class object'/><category scheme='http://www.blogger.com/atom/ns#' term='ob_start()'/><category scheme='http://www.blogger.com/atom/ns#' term='ob_get_contents()'/><category scheme='http://www.blogger.com/atom/ns#' term='ob_end_flush()'/><category scheme='http://www.blogger.com/atom/ns#' term='mail()'/><title type='text'>Sending class object into email body using ob_*  functions</title><content type='html'>It has been several times seen in my past career that developers ( mostly newbie) generally find much difficulty in sending the content of class object through email... Occasionally, it has been seen that even though we can print the object content on browser and can view the object content and the values the object is holding, it becomes sometime necessity that we get the content of object through email....&lt;br /&gt;&lt;br /&gt;Following is the piece of code, which will definitely be helpful for your development...&lt;br /&gt;&lt;br /&gt;// Start of code&lt;br /&gt;&lt;br /&gt;ob_start();&lt;br /&gt;$strBody="Hi, There is an Error in creating Class Object while script was in second loop. Record Id   :".$records["recordDetailsId"];&lt;br /&gt;print_r($objClass);&lt;br /&gt;$strBody.=ob_get_contents();&lt;br /&gt;ob_end_flush();&lt;br /&gt;mail("foo@mycompany.com","Error in Creating Object ",$strBody,"From: My Site&lt;contact@mycompany.com&gt;\n");&lt;br /&gt;&lt;br /&gt;// End of code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So you can easily find how only three functions i.e. ob_start() , ob_get_contents() and ob_end_flush() serve the purpose ...&lt;br /&gt;&lt;br /&gt;More details about these functions can be found at php.net&lt;/contact@mycompany.com&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2864444021574781379-3628337087496642699?l=sandip-tekale.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sandip-tekale.blogspot.com/feeds/3628337087496642699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sandip-tekale.blogspot.com/2009/01/my-first-post.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/3628337087496642699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2864444021574781379/posts/default/3628337087496642699'/><link rel='alternate' type='text/html' href='http://sandip-tekale.blogspot.com/2009/01/my-first-post.html' title='Sending class object into email body using ob_*  functions'/><author><name>Sandip</name><uri>http://www.blogger.com/profile/03580412049102030605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_cnjBLqYOJHg/SXujP_5RaxI/AAAAAAAAD68/cQf66CJomAY/S220/sandip.JPG'/></author><thr:total>3</thr:total></entry></feed>
