Monthly Archives: February 2008

Changing system volume drive letter in Windows Vista

Today i was trying to move my perfectly ok Windows Vista installation from one physical drive to another because the first one was having slowdowns due read errors.

I used Acronis Disk Director to move my partition from the first disk to the second disk, including the MBR for the disk.

But once i booted windows after unplugging the old disk windows did not boot so i used the vista installation disk to fix the booting properly.

Another reboot and vista was running, but once i logged in, it said preparing desktop for a long time and then it logged me in to some default profile and said that windows was unable to load your profile.

Another close examination showed that the windows system disk was labeled I: and not C:, in fact C: was nowhere to be found.

I tried all kinds of things to fix this, moved partitions about, tried the recovery console, tried changing the drive letter using diskpart utility which it did not allow. None of these worked.

Then after some googling from an alternate PC i found out that windows caches the partition to drive letter mapping in the registry and the only way to fix this problem was to edit the registry.

The Keys for this are stored in HKEY_LOCAL_MACHINE/SYSTEM/MountedDevices

The keys that need fixing are ones that say DosDevices

I went in and swapped(renamed the drive letters in the entries) the C: entry and the I: entry and wala.. after a reboot i was back on vista.. all fixed and good as new.

ASP.NET Custom Controls

While developing web applications and sites sooner or later you will end up creating controls.

Even if its not apparent in the first few looks, its would be helpful to keep in mind that has two types of custom controls.

And sometimes you might find that one type is better suited for your need at hand than the other. Also keep in mind that while staring make sure you know what kind of control you would be creating as its not easy to switch to the other type without redesignin the whole idea from scratch.

The main differences between the two types are outlined in this table:

Web user controls Web custom controls
Easier to create Harder to create
Limited support for consumers who use a visual design tool Full visual design tool support for consumers
A separate copy of the control is required in each application Only a single copy of the control is required, in the global assembly cache
Cannot be added to the Toolbox in Visual Studio Can be added to the Toolbox in Visual Studio
Good for static layout Good for dynamic layout

ASP.NET Custom Controls

Travian – The best browser based game ever

Travian Name

Travian is a German browser-based game developed by Travian Games GmbH. In 2006, the game was ranked first in the “best browser-based game with over 10,000 players” category of the German website GamesDynamite. The game’s developers drew roughly from Classical antiquity and particularly from the Roman Empire to create a predominantly militaristic real-time strategy. Along with two English versions, and the original German version, the game has been translated into 30 other languages, and today has just over 3 million players worldwide. It is programmed in PHP and runs by definition in the browser. It was the first game of its type to be playable through a mobile phone, using a java platform.

Travian Screenshot