Saturday, July 23, 2011

All folder became shortcuts!!!

This is new kind of virus, I guess.I was infected by it too. All my folder in external hard-drive had become shortcut. I didn't know how to get my folder back that had turned to shortcut to become a folder again without loosing any files. I was searching through web, and suddenly found a strange solution, which worked nice.

Go to Start->Run ->cmd
change your directory to the affected drive or folder. i.e  H:/  and press Return/Enter.
Now write or paste this in your command prompt: attrib -r -a -s -h /s /d


After a while it'll be OK and you'll get access to your data.  But it'll be safe if you update your anti-virus and run a full check and open the drive.
Hope this will solve the problem. 

Monday, July 18, 2011

How to Set Path Variable in Windows 7

a. Checking  if java is set as path environment variables:

1. Go to Start-> Run-> cmd

2. write: java -version and hit Return/Enter. If the path variable set properly it will show your java version.


b. Setting path variable in windows 7:

1. Go to start menu -> control panel -> system and security -> System.
or simply paste this in your windows explorer address bar-->
Control Panel\System and Security\System

2. Now select "Advanced system settings" from the left panel.

3. A new window appears. Click on "Environment variables..."
4. under System Variables, find PATH, and click on it.
 
5. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value. 

6. the location looks like: "C:\Program Files (x86)\Java\jdk1.6.0_23\bin;" end it with a semicolon.

7. Click ok. 

8. Close all these windows.

C. Check if path variable is set properly:

1. Go to command prompt/cmd.

2. write: "java -version" end hit Return/Enter. if the path variable set properly it will show your java version.

3. If it still not working reboot your computer and try step c1 & c2.

Hope, now your path variable for java is set. Else read steps of "b" carefully.

Saturday, July 2, 2011

Basic Programming Knowledge, What to know before interviews??

1. Basic programming on
  • string processing, 
  • recursion,
  • number theory etc.
2. Data Structures -
  • Stack, 
  • Queue,
  • Linked list etc,
3. Algorithms-
  • Searching, 
  • sorting, 
  • DFS, 
  • BFS, 
  • shortest path etc
4. OOP programming concept
5. Database concepts:

  • Very typical database orientated questions like
    • joining, 
    • normalization,
    • De normalization
  • Query writing using joining -
    • inner join, 
    • outer join, 
    • left outer join etc.
  • Design E-R diagram of a small system like result processing
6. Questions on projects that you've done so far at your university & in your professional life.
7. Asp.Net/C#/Vb.Net
8. Sql Server 2000 or 2005:
9. Basic knowledge on SS 2000 or 2005
10. Write down
  • stored procedures, 
  • views,
  • functions & 
  • cursors to use them in projects.