Feeds:
Posts
Comments

Archive for the ‘General’ Category

      Recently I found many pcs affected by this. You can see Dipak Bhattarai in title of every Internet explorer window. The simples solution I found to remove this is change the registry value. I am not sure that this has also added some malicious entry some where and maybe stilling or sniffing the data. However to remove name from title , Go to Start – Run – type regedit. Now go to HEY_CURRENT_USER – SOFTWARE – MICROSOFT – INTERNET EXPLORER – MAIN

       Go to Window_Title key and change the value field to “Microsoft Internet Explorer”.

Happy Programming !!!

Advertisements

Read Full Post »

   Recently I need to generate restore point on my Windows Server 2003 Statndard Edition. For windows XP restore point is available at Start -> Program Files -> Accessories -> System Tools – > System restore. I looked in Windows Server 2003 and it was not there. I search on google and found a really good link that shows the way how to install restore point on Windows Server 20003. Here is that.

Read Full Post »

UML Diagrams

      I have to create class and Sequence diagrams in my recent project. I was searching for for some quick and good material for UML diagrams. I found the really cool article here.

Read Full Post »

       In my recent interview, a well known company in ahmedabad having branches in all over India, I was asked to write a programm. I have to swap the values of three variables without using fourth varable.  I found it really triky. I will first explain this with two variables and than show for three variables in two diffrent ways.

                 Lets, consider the case    a = 10 and b=20. I have to write the programm so that result will be a= 20 and b= 10. Below is the steps,

a = 10;
b=20;
a = a+b; ( a= 30)
b = a – b; (b = 30 – 20 =10)
a =  a-b; (a = 30-10 = 20)

Fig – 1 Steps to swap the values of two variables.

     Now take three variables, a= 10, b=20 and c =30. The output should be a=30, b=10 and c= 20. First way to achive this is you can use steps mentioned in Fig -1 three times. First swap a and b than a and c. Below is the steps,

 

a = 10;
b=20;
c=30;

a = a+b; ( a= 30)
b = a – b; (b = 30 – 20 =10)
a =  a-b; (a = 30-10 = 20)

// Here a= 20 and b= 10;

a = a+c; ( a= 20 + 30 = 50)
c = a – c; (c = 50 – 30 =20)
a =  a-c; (a = 50-20 = 30)

// Here a= 30 and c= 20;

Fig – 2 Steps to swap the values of three variables.

 

Second way of swapping the values of three variable is,

a = 10;
b=20;
c=30;

a = a+b+c;  ( a= 60)
b = a – (b+c);  (b = 60 – (20+30) =10)
c =  a- (b+c);  (c = 60 – (10 + 30) = 20)
a = a- (b+c);   (a = 60 – (10 + 20) = 30)

Fig – 3 Steps to swap the values of three variables.

Happy Programing.

Read Full Post »