2009-09-19

Edit hosts file in Vista/Windows 7

 

What is the hosts file?

The hosts file contains a list of IP address to hostname mappings and can be useful especially for web developers if they need to point a hostname to a specific IP address while developing or testing a website, without having to change settings on a DNS server. On Linux and Unix systems it is typically at /etc/hosts and on Windows systems (Windows 2000, XP, Vista, Windows 7) at c:\windows\system32\drivers\etc\hosts

Errors when editing the file

Depending on operative system you may get derrors below when trying to edit and save the hosts file:

“Contact administrator”, “Permission denied”, “Path is not correct”.

Run as administrator

What you need to do this to open Notepad as administrator. Right click on Notepad and choose Run as Administrator. Then browse to the hosts file (you may need to turn on “View all files” as the hosts file does not have the txt extension”. Now, just edit and save the file.

2009-09-18

Windows 7 boot remove

Thought I would share this with Windows 7 (beta and non beta) users, if you are running XP and removed Win 7, but can't get rid of the boot record "your pc attempts to dual boot still" you can use this command along with disk...

In XP, put in the Win 7 disk, go to Start, Run, then type this into run window...

whatever drive your Win 7 disk is in, eg..D,E:\boot\bootsect.exe /nt52 ALL /force

Click Ok.

Take out disk, restart the computer, you should then boot right to XP.

2009-09-13

Invalid object name 'sys.configurations'. (Microsoft SQL Server, Error: 208)

 

 

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

image

Perhaps you wanted to try Azure and especially SQL Azure. Maybe you wanted to connect to your SQL server in the cloud (especially as Microsoft provides a connection string) through Microsoft SQL Server Management Studio (MSMS). Forget that for now. Microsoft has no support for this currently.

There are some workarounds. You can, while in the Management Studio, open a new connection. Login. You will get an error. Click ok. Now, you can browse your tables but you can atleast peform SQL queries.

Guess we have to wait for the final release.

2009-09-07

Windows live writer

This is a first test using Windows live writer. Let see if this post can be done!

Kian

This is Kian – almost 6 months and already facebooking!