KDE 4 Lag on Gentoo

I was experiencing a fair amount of lag during my interaction with the KDE desktop. To fix this I unmasked the latest hard masked nVidia drivers available in portage ( wich are also the latest upstream drivers provided by nVidia. )

echo “x11-drivers/nvidia-drivers ~amd64″ >> /etc/portage/package.keywords
echo “=x11-drivers/nvidia-drivers-260.19.12″ >> /etc/portage/package.unmask

After emerging them, reloading the module and starting X again. The lag was gone. Now I have fast and pleasant to work with KDE desktop. Also my FPS is up to 10344.223.

Command Prompt Here

Have you ever wanted to open a Command Prompt in the folder you are currently browsing in Windows Explorer. It’s time saving feauture that’s not present currently in Windows. If you do a Google search, you will find various methods for doing this. The method that I will show you will not require instalation of some software sush as Cmd Here powertoy.

So here is how is done:
1. Open Control Panel ( or in Windows Explorer select the Tools menu and then Folder Options ) and navigate to Folder Options

2. In the “Folder Options” property page select File Types and in the “Registered file types:” list select {NONE} | Folder

Folder Options property page
3.Click the “Advanced” button. The “Edit File Type” dialog will apear


4.Click on the “New” button, the “New Action” dialog will apear


5. In the “Action:” field type “Command Prpmpt” or name of your choice, and in the “Application used to preform the action:” type cmd.exe.

6. Click “OK” to close the “New Action” dialog, click “OK” to close “Edit File Type” dialog and “OK” to close the “Folder Options” dialog.

Now when you right click on a folder in Windows Explorer you shoud see an context menu entry labeled “Command Prompt”, click on it to open a “cmd.exe” window in the selected folder.

Adding custom resources in Visual Studio 2003 “Add Resource” dialog box

For some projects I create resources that can be reused in other projects. Such as dialog boxes, images, etc…

It’s waste of time to recreate those resources again and again for each project you use them in, so after some investigation I have found a way to add custom resources in VS 2003 “Add Resource” dialog box.

Open C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\VCResourceTemplates\1033\mfc.rct in VS 2003. Open a resource file from wich you want to get some resources. Right click on the resource you want to copy and from the popup menu select “Copy” then paste the resource in mfc.rct. Or just drag selected resource to mfc.rct.

Note: mfc.rct may have different path. It depends on your VS 2003 instalation!

Usefull feature in Windows XP SP2

Alternative IP configuration in Windows XP

I think it’s introduced in Windows XP SP2 because I havent noticed the precense of such feature in earlier XP releases.

What is it for? It help’s you to use two different set’s of configurations on one LAN card. Very usefull if you own a laptop. I was thinking of writing such helper tool!

How to reach it.
1. Right click on “My Network Places” and select Properties, then right click on you network connection, from the dialog select “TCP/IP Protocol” and click “Properties”, select the alternative tab.

Windows will switch to your alternative settings if it fails to obtain IP from DHCP server (such as one I has at home). The alternative configuration in my case is that at work.

Moving Visual Studio.NET 2003 settings to another PC

Fairly simple:

On source computer

  1. Start Registry Editor (Start->Run and type regedit)
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Visual Studio\7.1
  3. Right click, select “Export” and save the reg file
  4. Navigate to C:\Document And Settigs\$USER_NAME$\Application Data\Microsoft\Visual Studio\ and compress (add to zip, etc…) the folder named 7.1

On destination computer

  1. Start Registry Editor (Start->Run and type regedit)
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Visual Studio\7.1
  3. Create backup by renaming the 7.1 folder
  4. Exit the Registry Editor and navigate to previously exported registry settings, right click on them and select “Merge”.
  5. Navigate to the archived folder (see step 4 in “On destination computer”) and extract it in C:\Document And Settigs\$USER_NAME$\Application Data\Microsoft\Visual Studio\

Start Visual Studio and review your configuration if everything is as it shood remove the registry backup you created in step 3.