Ctrl-Alt-Del on the Remote Desktop

29 09 2008

I wanted to change the admin password on my web server through remote desktop,
but Ctrl-Alt-Del always goes to the local computer.

I found out you can also use Ctrl-Alt-End to achieve the same thing, which works
in remote desktop.

Cheers!!!





Java Interviewing

27 09 2008

what is major concepts in oops?
answer: polymorphism, encapsulate, inheritance
what common methods are defined in object class?
answer: hashCode(), equals(), toString(), clone(), finalize(), getClass(), wait(), notify(), notifyAll()
what is differenec between abstract class and interface?
answer: In abstract class some methods may contain definition,but in interface every method should be abstract.
what is differenec between overload and override?

what is implicit object in jsp?
how many implicit objects in jsp?
answer: Implicit objects are a set of Java objects that the JSP Container makes available to developers in each page
out,page,session,request,response,application,page context,config

what is main difference hashmap and hashtable?
answer: hashtable is synchornized.

what is immutable and how to implement it?
answer:it can’t be changed.

what is the factory, abstract factory, factory method?
draw them on the white board.
How to implement a singleton?
answer: make constructor privated, and provide a method to return single object shared in application.

How to deal with the transaction across databases?what is 2PC?
answer: two-phase commit

what should pay attention in development if we use junit?
independence of each tested classes.

which UML diagrams are often used in a project?

what is CMMI? what levels are defined in it?
initial, managed, defined, quantitativly managed, optimism.





Add Rows at runtime to Datagrid

21 09 2008

Introduction:

This document contains the sample code with explanation for adding rows to the datagrid at runtime using a button click event in .NET.

Explanation:

To add rows to the datagrid at runtime, the basic mechanism would be to add a dummy row to the dataset and then binding the same dataset to your Grid. After binding the dataset you need to control the behavior of the datagrid depending on your requirement by using it’s properties.

I will try to explain using a specific example.

Requirement:

We would be adding rows to the datagrid on a button click event with a requirement of having 5 rows on a one page and when you add the 6th row the control will be taken to second page.

One more thing when you add a row only last added row should be in Edit mode.

The code below shows a function that can be used to add blank rows to the first DataTable in any Dataset In this case, the first column in the Dataset that was used was a Primary Key and could not be blank, and I knew that the values from
the database would all be positive.

Code Snippet:

*****************************Code Begins***************************
‘Code below adds blank row and binds the datatable to the datagrid.
Private Sub add_rows()
querystring = “Your Query goes here”
cmdCodeMgmt.CommandText = querystring
daCodeMgmt.Fill(ds, “Table Name “)
dr = ds.Tables(0).NewRow
ds.Tables(0).Rows.Add(dr)
cnt = ds.Tables(0).Rows.Count
End Sub

*****************************Code Ends**************************** 

Cheers!!!





Xbox Arcade now £129.99

15 09 2008

Microsoft dropped the price of the Xbox 360 in United States of America last week and they have cascaded the effect of Xbox 360 price to UK, Europe and then planned in to Asia.

The new price tag at the retails for the basic entry level, Xbox 360 Arcade has come down from £159.99 to £129.99. The next level up is the all new Xbox 360 Premium is retailed for £169.99 which was previously for £199.99. This particular model comes which a hard disk capacity of 60 Gigs.

Finally for the Pros, the Xbox 360 Elite has now been reduced to retail for £229.99 which was previously for £259.99. The prices are assumed to come into effect from this weekend.

Microsoft has big time plans to cash in on the Christmas market with the dropped prices. Now that the Xbox 360 is cheaper than Nintendo Wii, this would make it an absolute Christmas present.





Problem with SQL Connection

7 09 2008

I came across this issua a couple of days back:

I use “Window Authentification” to sign on to “Microsoft SQL Server
Management Studio Express”. I create and account with “SQL Server
Authentification” and assigned a password. I also identify the database that
this ID has access to. When I then try to login with this id, I get a “Login
Failed for user ‘Kumar’. The user is not associated with a trusted SQL Server
Connection….Error: 18452″. I was wondering about why am I getting this error?

That is when I get a reply form Harish Ranganathan from Microsoft, that it was due to “Mixed Mode Authentication in SQL Server which was not enabled”.

This guy saved me a lot of time. Thanks Harish