All posts by Nitesh

Twitter error, accidently resets users passwords, confusion among users

Twitter has posted online that it has mistakenly reset’ed the passwords of “a large number of its registered users” of its more than 140 million active users while conducting routine security screening to identify accounts that may have been compromised.

“In instances when we believe an account may have been compromised, we reset the password and send an email letting the account owner know this has happened,”

Twitter said in its blog on Thursday.

“In this case, we unintentionally reset passwords of a larger number of accounts, beyond those that we believed to have been compromised.”

Email from Twitter was also sent to some users early Thursday morning, Eastern Time.

“Twitter believes that your account may have been compromised by a website or service not associated with Twitter. We’ve reset your password to prevent others from accessing your account,”

Microsoft confirms Windows Live Messenger retirement ,will replace it with Skype

Microsoft has finally confirmed that Windows Live Messenger will be put to rest after thirteen years since its founding and will continue with Skype in future.

Microsoft has revealed it will start to discontinue Windows Live Messenger in early part of year 2013. Microsoft will integrate roughly around 100 million Messenger users to Skype as part of the discontinuation process.

We will retire Messenger in all countries worldwide in the first quarter of 2013 (with the exception of mainland China where Messenger will continue to be available)” says Skype’s Tony Bates.

Microsoft is now encouraging users to download the latest version of Skype that supports Microsoft accounts, where users can easily integrate Skype and Windows Live Messenger accounts into a single Microsoft account.

For existing Windows Live Messenger users to access their account, they’ll be required to update their Skype client to version 6.0, and login with their Messenger account information. Company has listed the following benefits of switching from messenger to Skype:

  • Broader device support for all platforms, including iPad and Android tablets
  • Instant messaging, video calling, and calling landlines and mobiles all in one place
  • Sharing screens
  • Video calling on mobile phones
  • Video calling with Facebook friends
  • Group video calling

Company says it will assist users over the coming months to smoothly transition over from Windows Live Messenger.

The Strict Equality Operators


JavaScript introduces two new operators, the strict equality operators.
The strict equality operators (=== and !==) perform equality comparisons on operands of the same type. No type conversion is performed before the comparison. They should be both Integer, String, or any other JavaScript type:

operand1 === operand2
operand1 !== operand2

Continue reading The Strict Equality Operators

Basic SEO tips for ASP.NET website


SEO has become the most important thing for any website nowadays and as ASP.NET is growing, SEO has become a hot topic among ASP.NET developers.
The world of Search Engine Optimization (SEO) keeps on changing continuously, we can say this as for example can you imagine that last year Google published 450 updates to it’s search engine algorithms?
Though the SEO trend is continuously changing still there are some key points that have been fundamental and unchanged so far.
Here i have mentioned few points which should be kept in mind to implement proper SEO in your ASP.NET site:-

1. Page titles

One of the most important things are page titles (between tags). When somebody is searching something then these titles are shown as links in search results. One of the common mistakes is using same title for all pages. Imagine how worthless are the following search results for user.

Hello World
Some fragments from page that may not be useful for user.

Hello World
Some other fragments from page as description.

Hello World
Almost no content, let’s show what we have. Date Modified 01/19/2008 Titles by Marc and Lewis Custom services. Continue reading Basic SEO tips for ASP.NET website

Adding Dynamic Meta Tags with Master Pages in ASP.NET using C #

Today each and every website is getting dynamic, every website for example have just on page and is being used to display the contents for various categories, hence the need for the dynamic meta title, meta description and meta keywords arises especially for implementing Search Engine Optimization(SEO) properly on your website having dynamic pages.

In a website what people do is create a Master Page and then this Master Page further contains a number of content or child pages, now what we want to have is having separate meta title, meta description and meta keywords for every child page, but here is the problem as once you run you run your website – preference is given to the meta title, meta description and meta keywords you have given in you Master Page and hence all the child pages will have same meta title, description and keywords.

Basically In ASP.NET you do not have any direct function to re write the title,description and keywords when you are working with Master Pages. To solve this problem I have written some sample code:

Continue reading Adding Dynamic Meta Tags with Master Pages in ASP.NET using C #

ASP:NET Reading XML Data into a DataSet object To GridView in C#

In ASP.NET you have a number of options by which you can easily read an XML Document and display an XML document in DataGrid, GridView, Repeater Control, DropDown List etc or any other control according to your requirements.
Here i will import an xml document using an inbuilt function of dataset and display the data in a GridView Control.


Here is the sample XML file named “country.xml” that i am using Continue reading ASP:NET Reading XML Data into a DataSet object To GridView in C#

50 Common Interview Questions And Answers

Here are the typical interview questions that are most commonly asked in an interview, go through these and think about how you should answer them. While you read you will also find some strategy suggestions with it.

1. Tell me about yourself:
The most often asked question in interviews. You need to have a short statement prepared in your mind. Be careful that it does not sound rehearsed. Limit it to work-related items unless instructed otherwise. Talk about things you have done and jobs you have held that relate to the position you are interviewing for. Start with the item farthest back and work up to the present.

2. Why did you leave your last job?
Stay positive regardless of the circumstances. Never refer to a major problem with management and never speak ill of supervisors, co-workers or the organization. If you do, you will be the one looking bad. Keep smiling and talk about leaving for a positive reason such as an opportunity, a chance to do something special or other forward-looking reasons.

3. What experience do you have in this field?
Speak about specifics that relate to the position you are applying for. If you do not have specific experience, get as close as you can.

4. Do you consider yourself successful?

Continue reading 50 Common Interview Questions And Answers

Java Interview Questions – 2

Ques 1. What are the Object and Class classes used for?

Ans. The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.


Ques 2. Can you write Java code for declaration of multiple inheritance in Java ?


Class C extends A implements B




Ques 3. What do you mean by multiple inheritance in C++ ?

Ans. Multiple inheritance is a feature in C++ by which one class can be of different types. Say class teachingAssistant is inherited from two classes say teacher and Student.

Continue reading Java Interview Questions – 2

Java Interview Questions – 1

Ques 1. How can you achieve Multiple Inheritance in Java?

Ans. Java’s interface mechanism can be used to implement multiple inheritance, with one important difference from c++ way of doing MI: the inherited interfaces must be abstract. This obviates the need to choose between different implementations, as with interfaces there are no implementations.


Ques 2. Replacing Characters in a String


// Replace all occurrences of ‘a’ with ‘o’

String newString = string.replace(‘a’, ‘o’);

Replacing Substrings in a String

static String replace(String str,

String pattern, String replace) {

int s = 0;

int e = 0;

StringBuffer result = new StringBuffer();

while ((e = str.indexOf(pattern, s)) >= 0) {

result.append(str.substring(s, e));


s = e+pattern.length();



return result.toString();


Converting a String to Upper or Lower Case

// Convert to upper case

String upper = string.toUpperCase();

// Convert to lower case

String lower = string.toLowerCase();

Converting a String to a Number

int i = Integer.parseInt(“123”);

long l = Long.parseLong(“123”);

float f = Float.parseFloat(“123.4”);

double d = Double.parseDouble(“123.4e10”);

Breaking a String into Words

String aString = “word1 word2 word3”;

StringTokenizer parser =

new StringTokenizer(aString);

while (parser.hasMoreTokens()) {


Continue reading Java Interview Questions – 1