Using .NET 2.0 in Visual Studio 2010

Microsoft .NET Framework 4 introduces some nice new options, but if you want to more easily distribute your software, .NET 2.0 is the most widely used, as any computer running Windows XP Service Pack 3 or later will have it installed.  Changing an existing project or creating a new one uses the same method.

In the Solution Explorer, right click your project, and click Properties.  In the Compile tab, click Advanced Compile Options at the bottom.  In the window that opens, switch .NET Framework 4.0 to the desired framework version.

Existing projects may require some small code modifications in order to build correctly, but it is very beneficial to build your software on a more widely available framework.

Donald Knuth

xkcd 163

Removing the Google Search Virus

I’ve seen this one a lot lately.  Basically, it shows a fake version of the Google and Yahoo! search engines in the attempt to track all of your personal information that you enter into those sites. Even if you don’t care about your information getting stolen, it prevents you from using Google Apps services such as Gmail, Google Voice, and in many situations, even the basic Google search engine will not work at all.

The biggest problem with repairing this virus is that it is technically not so much a virus as a setting. There is no malicious software causing it, no secret tracking cookie, no browser extension. It is simply caused by a Windows setting, not in the Internet Options, the Windows Registry, it is not found in the Control Panel, or even in the Network and Sharing Center or the Computer Management. Therefore very few anti-virus software options will ever find it.

Diagnosing the Problem

Obviously you need to see if you actually have this problem before trying to remove it. The easiest way to see the problem is to look at the Google Home Page. That link will show a security warning if your connection to Google has been compromised. Another method of checking it is to go to Gmail. If the page returns a 404, 403, or 500 error, you’ve got the virus.

Repairing the Problem

Windows Vista/7

  1. Open the Start Menu, click “All Programs”, click Accessories, then right-click Notepad, and click ”Run As Administrator”.
  2. Allow access if a confirmation message is shown.
  3. In Notepad, click “File”, then “Open…”, then type %SystemRoot%\system32\drivers\etc\hosts and click “Open”.
  4. Remove any lines from the file containing google or yahoo and save the file. The virus should now be repaired!

Windows NT/2000/XP

  1. Open the Start Menu, click “All Programs”, click Accessories, then right-click Notepad, and click ”Run As…” and select “Administrator” or a user account with administrative privileges.
  2. In Notepad, click “File”, then “Open…”, then type %SystemRoot%\system32\drivers\etc\hosts and click “Open”.
  3. Remove any lines from the file containing google or yahoo and save the file. The virus should now be repaired!

Mac OS X

  1. Open /private/etc/ in Finder and open the hosts file in a text editor.
  2. Remove any lines from the file containing google or yahoo and save the file. The virus should now be repaired!

Other UNIX/Linux

  1. Using a text editor as root, open /etc/hosts.
  2. Remove any lines from the file containing google or yahoo and save the file. The virus should now be repaired!

Android

  1. Using a text editor with root access, open /system/etc/hosts.
  2. Remove any lines from the file containing google or yahoo and save the file. The virus should now be repaired!

To verify that it worked, open a web browser and go to Google and follow the Diagnosing the Problem section of this guide.

Binary

why does binary go like this? 01110111 01101000 01111001 00100000 01100100 01101111 01100101 01110011 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01100111 01101111 00100000 01101100 01101001 01101011 01100101 00100000 01110100 01101000 01101001 01110011 00111111