Friday, January 24, 2014

How to deal with over smart people

Today, I am going write some thing not technical, As I feel I am doing that for quite a time I should write about it. In today’s competitive world people wants to show their skills to companies and how important they are but some people are becoming over smart people. They always eager to show their smartness and make themselves highlighted. They take credits for task they have not done etc. I personally don’t like this kind of people but sometimes we have to bare with this kind people. So in this blog post, I am going tell different way of dealing with over smart people.
  1. First and foremost thing you can do is you can Ignore them. You don’t need to give attention what they are saying as you know they are acting over smart.
  2. This kind of people believes that they are smartest person on the earth. Don’t argue with that feeling otherwise you will not able to deal with this kind of people. Just ignore it and let it be. Complete your work with them and let them do what they want to do.
  3. Try working with them instead of against openly with them. If you against them,They will never understand your point because they think they are smarter then you.
  4. Maintain a polite and civil manner with them whatever they say. Keep your self calm and compose. Soon they started notices you that you are not in competitions with them they are motivated to treat you nicer then earlier.
  5. Don’t take their over smartness personally.
  6. Always keep backup plan if you involve this kind of person or give them some responsibilities. So in worst condition you will have plan B if Plan A is not successfully implemented by this kind of people and this will likely to happen.
  7. Keep boss aware what you are doing instead of be in competition of with kind of person. It will impact more then anything.
  8. If you think this people are hard to bare minimize the contact with them.
  9. Demonstrate your view that you view everyone as equal not as a superior or inferior.
I hope this will help you dealing with over smart people. Remember following quote always.

“If you think that you're so smart and holy, that means you haven't yet realized that a part of what we experience today...is a result of our stupidity and wickedness in the past.”
― Toba Beta, Master of Stupidity

Hope you like it. Stay tuned for more..
Share:
Thursday, January 23, 2014

Why continuous integration is your friend?

In this post we are going learn benefits of Continuous Integration in Software Developments. Let’s understand what is continuous integration first and then we will discuss about benefits we are having.

What is Continuous Integration in software development?


As per wikipedia “Continuous integration (CI) is the practice, in software engineering, of merging all developer working copies with a shared mainline several times a day. It was first named and proposed as part of extreme programming (XP). Its main aim is to prevent integration problems, referred to as "integration hell" in early descriptions of XP”.

In simple words, Continuous Integration means whenever any developer from the project team commit/checkin code at that time build will be created with the help of build servers and it will be automatically deployed to a specific location with the help of build server.

There are lots of open source and paid options are available for Continuous Integration like Team Foundation Server, Jenkins, TeamCity etc.

You can found a complete comparision of this tools from the following link.
http://en.wikipedia.org/wiki/Comparison_of_Continuous_Integration_Software

Benefits of Continuous Integration:


Followings are benefits of Continuous Integration and Followings are reason why continuous integration is your friend.

1) Automate everything If you don’t have CI then one of the developers needs to get latest/update code in his/her computer then create a build that will waste lot of time on the developer and ultimately we are going to loose developers productive time for this instead of writing code.

2) It will improve quality of code, Whenever any developers commits the code it will create a build and if build is not successful then it will inform all the users/developers of the using that project/build. So now developers will check quality of code regular because otherwise it will create bad impression of this developer on other stack holders of project.

3) Deployment will very easy. Earlier every time we have to deploy to a particular location manually but here stack holders of project don’t need to worry about the deploying things as it will deploy all the things properly.

4) Your code repository will be up to date every time and you don’t have to worry about it.

5) Save lots of times of developers and increase developers productivity. Take an example suppose there are five developers are working on a software project. One of the developer has committed code and another developer has taken latest version from source control at that he/she is facing problem while compile/building project he will notify the developer who has broke the things. So that developer will check and found that he forgot to commit one of the file. So again he will commit things and notify again to all. This will ultimately a productivity lose.

6) QA/Testing team does not have to wait for deployment. So if developer is committed code it will automatically create build and deploy it on specific location there will not be any dependency of development team to test new features.

That’s it. Looking at above reason I must say Continuous Integration is your best friend and ultimately a productivity booster. Stay tuned for more..
Share:
Saturday, January 18, 2014

Various way of finding duplicate rows in SQL Server

Recently One of the friend ask how we can find duplicate rows in SQL server so I said there are various way of finding duplicates and then I show him few ways of findings duplicate based on criteria. I thought it is a very basic question and still lots of people does not know how to find duplicate rows in SQL Server. So it is good idea to write blog post about it. In this blog post I’m going to explain the same various way of finding duplicates.

First all, We need a table to find duplicate rows. So following is a table for that.I have created Employee table with four fields.

CREATE TABLE [dbo].[Employee](
    [Id] [int] NOT NULL,
    [FirstName] [nvarchar](50) NULL,
    [LastName] [nvarchar](50) NULL,
    [Designation] [nvarchar](50) NULL
) ON [PRIMARY]

Now once you create this “Employee” table now it’s time to write insert data. I have inserted following data.

Find-Duplicate-Row-SQL-Server

Finding duplicate rows in SQL Server:

Now let’s first write query to find duplicate rows in “Employee” table. Following is a query for that.

SELECT
     Id,
     FirstName,
     LastName,
     Designation,
     Count(*) as 'Number of Rows'
FROM Employee 
GROUP BY Id,FirstName,LastName,Designation HAVING COUNT(*) > 1

Once you run this query following result will be there.

Find-exact-duplicate-row-sql-server

If you can see the data of “Employee” table clearly then you will see that there are two people with first name“Tushar” and “Jalpesh”. Let’s find that via following queries.

SELECT
     FirstName,
     Count(*) as 'Number of Rows'
FROM Employee 
GROUP BY FirstName HAVING COUNT(FirstName) > 1

Now when you run this query it will load following result.

Find-Duplicate-Row-SQL-Server-based-on-Column


That’s it. You can see its very easy to find duplicate rows in SQL Server. Hope you like it. Stay tuned for more.
Share:
Sunday, January 5, 2014

Node.js tools for visual studio

In this post we are going to look how we can use node.js application in visual studio with node.js tools for visual studio.

What is Node.js?


As per wikipedia Node.js is a software plateform that is used to built scalable network(specially server side application). Node.js utilizes JavaScript as its scripting language and achieved high throughput via non blocking I/0 and single-threaded event loop.Node.js was created by Ryan Dhal in starting 2009.Its development and maintenance is sponsored by Joyent.

Why we should care about Node.js:


  1. It uses JavaScript most popular language of the web.
  2. Fast. Powered by incredible V8 virtual machine. It makes JavaScript execution really fast.
  3. A Great feet for real-time web application.
  4. It’s scales very easily.

Node.js tools for visual studio:


You can download the Node.Js tools from the following link.

https://nodejstools.codeplex.com/

Here are some quick features of Node.Js tools.
  1. NTVS support editing, intellisense, profiling, NPM, debugging locally and remotely(Windows, MAC, Linux) as well as Azure web sites and Cloud services.
  2. Designed, Developed and Supported by Microsoft Community.
It is available for both Visual Studio 2012 and Visual Studio 2013 both.

Installation of Node.js tools for visual Studio:


It’s very easy to install download the setup and double click setup.exe it will load following screen.

Node-js-visual-studio-tools-installation1

Once you click on install it will load start installing.

Node-js-visual-studio-tools-installation2

After completing installation it will look like following.

Node-js-visual-studio-tools-installation3

Once you are done with installation open visual studio and go to File-> New Project-> JavaScript and you will see node.js template available.

Blank-Node-Js-Application

That’s it. Hope you like it. In next post We are going to create first node.js application with Visual Studio. Stay tuned for more..
Share:
Saturday, January 4, 2014

Year 2014 resolutions

First of all, Happy new year to all of you!!.  May your all your wishes come true this year.This time I am making resolutions public so I am accountable to my readers. Here are resolutions for year 2014.
  1. Should be more active in communities. Since last 3 months I was busy with professional commitments and lot of things happening with life. Now all things are going to be settle down in January month of this year so now I will be more active on communities.
  2. Loose weight. I have already started loosing weight via controlling my diet and this year I am planning to loose at least 15 kgs.
  3. Write three blog post at least a week.
  4. Learn my self new technologies like Node.js and Python.
This four resolution I want to try to achieve lets see how it goes. I will update how I am doing with my resolution each quarter.

Once again happy new year 2014 to all of you!!. Stay tuned for more..
Share:
Search This Blog
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews