Archive

Posts Tagged ‘Google’

Why Should I Leave ?

September 16th, 2009

When I joined my first job, I have never thought will I leave this organization or not? As per circumstances I remained for a while with the employer despite of quite much post WTC financial crisis with the company. Anyways, I left when company asked me to :)

As my career moved onwards, I switched some companies due to many factors like:

  • Having absolutely no structure or hierarchy. Funny part is that most of the companies top management call themselves a matrix organization which by no means fulfills the definition. Just calling itself a matrix organization does not serve any purpose :)
  • Lack of communication or you can say haphazard mode of communication.
  • Having lots of managers :) everyone seems to be manager and you never know who you are ?
  • Very little or no appreciation at all. Delivering is your responsibilities but you do a lot going out of your boundaries to deliver but having no credit definitely hurts.
  • Bad apples, yes the bad apples who are spoiling the culture and always trying to make things worst for people they don’t favor.
  • Last but not the least if you (an employee) have got no social life for longer period of time, ultimately employee will leave with frustration. Working on offshore does not mean you are not human.

Read more…

Management , , , , , , , , , , ,

How to Avoid Duplicate Rows In DataTable

April 10th, 2009

Problem

One of the common problems faced in the data retrieval is to avoid duplicate rows from dataset or datatable. If you google for it, you will come across many solutions asking to loop through the complete in order to get rid of the duplicates. There is a very simple solution available in .Net that does not need looping but it comes with one problem that it can apply duplicate on a single column only. 

Solution

For a dataset the following line will return distinct records for the column:

ds.Tables["MyTable"].DefaultView.ToTable(true,”column_name”);

For a datatable the following line of code will return distince records for the column:

dt.DefaultView.ToTable( true, “column_name”);

The first parameter of ToTable is a boolean for distinct or non-distinct. The second one is the name of the column. It is as simple as it looks :)

.Net , , , , , , ,


Copyright © 2006-2011 W@rfi