Welcome to my blog Here I will be sharing all the software technologies which I am interested in ...

Friday, July 31, 2009

Front End vs Back End

Today in our java class there was a discussion whether or not only back end and its logic is important in current scenario. I not at all agree with this. In today’s scenario of evolving interfaces and front ends it is not that only the back end are important. Front end are equally important. Let me begin with my understanding of the description of both the technologies.


Back End:
Back end refers to the server side where all the data associated with the particular operation of the user is stored. It is the place where all the application logic resides. It forms an important part of any system. Generally the data is stored in the form of tables and it ranges to many gigabytes or tetra bytes.


Front End:
Front end refers to the client side. It is the front end with which the end user interacts and makes requests. The front end should be simple but yet effective so that the end user does not have any problem while accessing of modifying the information at the backend. In short the reliability, functionality, speed, dependability of the Back End depends on the Front End. Then how can we say that the Front End is not important.
Let me give an example which I myself learned during my training at Infocepts. The data in a backend is in the form of tables where each table in a typical scenario contains thousands and lakhs of rows of data. The end user is only concerned with the data relevant to him/her. He/she is not at all interested to see these lakhs of rows of data. Now if we provide the information to the user without using a well defined Front End what use will it be to the user. He’ll simply say that the system is not at all reliable. So the data is to be organized. If data is large then we can even use graphs and reports which can be easily understood by the end user at a glance.
It was also said that the work at Front End is nothing as compared to backend. Now let me justify my stand that it is equally important (and sometimes even more):
With the advancement of technology and the task of making the technology easily accessible to the users, the interface of applications has come a long way. Some 20 years ago Command Line systems were common. Then came the GUI to the rescue of common people trying to become familiar with these technologies. The data was organised in the graphical view and rather than writing the commands for accessing data the users simply had to provide response using some devices like mouse or keyboards etc.
This evolution did not stop even here. The front ends continued to evolve. Then came the naturalness to the front end applications. They natively began to recognise the voice. This was termed as speech recognition. Now the users had the ability to control the systems with there voices. Now users even didn’t had to write the things or press buttons.
And here comes 2009 when the Natural interfaces of applications are going to change how the applications are looked and perceived by the users. The users can use Multitouch applications and front ends along with the speech recognition. In the coming years and decades the front end will actually be taking the more natural form. May be next in the line is just think and your work is done.





Tuesday, July 28, 2009

Integrating Windows XP SP3 to the Installation Disc

I have already discussed how to create a bootable windows xp CD. But what is the use of creating the same old copy. You already have one. So in what way the new CD differs from the Original one. We can add updates and service packs to the installation cd so that whenever you next time reinstall windows everything is automatically updated. And that’s not the end. If your computer has certain devices for which Windows XP does not have device drivers than you can even integrate those device drivers to new installation CD. And not only device drivers some software’s can also be integrated and can be made to install automatically without any user input (silent install). Also you can integrate your settings about how various settings should work after you install windows. You can even make a silent windows XP installer i.e. you do not have to sit before the computer till windows is installed. You can integrate the partitioning layout, key, Date and time, Administrator password and other network settings to the CD itself so that you do not have to manually enter them at the time of installation. All these will be dealt in separate articles. This article will deal with integration of updates and service pack to the CD.


Here it is assumed that your original windows XP CD
is having at least SP1 (Service Pack 1). If not then SP3 cannot be integrated to the above CD. First you have to integrate SP1 or SP2 and then only you can integrate SP3. So use a disk which has at least SP1. If you will try to integrate SP3 to a CD which is not having even SP1 then the integration will fail.

  • Copy the contents of your windows XP installation CD (Original) to the hard-disk in a folder say C:\WinXP.
  • Download latest windows XP service pack (now SP3) from Microsoft’s website. If in ZIP format than extract the EXE and keep it on C:\ drive. Rename the EXE to something simple like SP3.EXE.
  • Open command prompt and navigate to C:\. Now type SP3 .exe /integrate:C:\WinXP.
  • A window will appear showing you the progress of integration and after the integration is complete a message saying “Integrated install completed successfully.” will appear.
  • Now C:\WinXP is up to date with service pack 3. You can download more updates (which were released after service pack 3) and use the same procedure to integrate them to C:\WinXP folder (just remember to replace name of SP3 with the name of update).
  • You can now burn the contents of C:\WinXP to a bootable CD as discussed in previous article.
You can use a free software nlite (www.nliteos.com) to automate this process. In addition it also provides silent installation, tweaks during and after installation, removal of unnecessary components etc


Windows 7 Features - Multitouch

For close to two decades now, the design of applications has changed surprisingly. But at their core each application waits for users to generate input, and they respond -- a server/client model of processing on a very local scale. Multitouch is a somewhat simpler version of solving the bigger problem of ascertaining meaning through input, because now that Windows apps will begin being able to process input coming from two or more points on the screen at once, the relationships between those multiple points will need to be analyzed. For example, when a program receives a series of signals that appear to show multiple points, arranged in a generally vertical pattern, moving slowly and then very quickly to the right that could mean the user wants to "wipe the slate clean?" or "Start over?" or "Clear screen?" .

Throughout the history of Windows, the evolution of application architecture has typically taken place in either of two ways: Either Microsoft improves some underlying facet of the operating system, which leads to an improvement or Microsoft implements a change which developers have to seize upon later in order for users to see the benefits down the road. This was what happened when the security of the system kernel in Windows Vista was enhanced. Similar case was their when Windows Presentation Foundation (WPF) was introduced after Windows XP.

Windows Touch is an expansion of WPF to multiple inputs having a collective meaning. For e.g. using two fingers to stretch or shrink a photograph is one example, minimizing the workspace etc. This involves the application's ability to register the multiple inputs, and then ascertain what the user's intent must be based on the geometry that WPF has returned.

A great move by Microsoft towards natural interfaces !!!

Monday, July 27, 2009

Creating a Bootable Windows XP CD

Bootable CD means a CD from which you can start your computer. For installing an OS on any system the CD must be bootable. Now there is a question that why at all one needs to know this if he or she has the Original Windows CD (which is of course bootable). But what would you do if you have that CD which was released some 6-7 years back. Microsoft has already released thousands of updates and security patches for the XP users (which are free to download). Service Pack 3 and other updates are already out their which must be installed on your PC (although not necessary but in such a case your PC is more prone to vulnerabilities). These updates and service packs can be directly applied to your system but imagine how much time will it take to apply them. So all you can do is to update your windows XP cd to the latest version by integrating all the updates and service packs to the CD itself. In that case whenever you install the windows from that CD you will be already up to date without any need to download and install all the updates again (This will be pretty handy if you want to format your computer). But after integrating the updates and service packs simply writing them to the CD won’t make the CD bootable. This article will deal with the steps to create a bootable CD. Integrating updates and service packs will be dealt in another article. You need to follow certain steps to make the CD bootable. To create bootable windows XP CD you require the following software’s:

• Windows XP installation files: Copy the files from your Original Windows XP CD to the Hard-disk in some folder. Make sure that the following files and folders are present

Files: Setup.exe, WIN51, WIN51IP, and Setupxp.htm (if the CD is having SP2 or SP3 then WIN51IP.sp2 and WIN51IP.sp3 will also be present)
Folders: I386, cmpnents, DOCS, Support and Valueadd

• Nero burning ROM (or any other CD burning software): This is required for burning the CD. Note that you should use Ultra Edition of Nero. OEM edition will not work since Nero Burning ROM is not available with OEM version.

• Boot image extracting software (like Magic ISO): Boot image is the data which is to be written on the first track and sector of the CD so that the CD becomes bootable. You can use Magic ISO to extract the boot image from your original Windows XP CD. Boot Image Extractor which is a free command line tool can also be used. To download it just fire a search on Google (since I don’t remember the site from which I downloaded it). If you are not comfortable using these Boot image extracting software’s then you can also download the bootimages directly from some sites. Again search them on Google. The Bootimage file is usually a very small file (around 2KB) with extension such as BIN, BIF, IMA etc or it may have no extension. The extension will vary from program to program which was used to extract the file. But that doesn’t matter. We can use file having any extension.

Steps to create bootable Windows XP CD: Now you have copied all the files to the hard-disk and downloaded the Bootimage file. Now just follow these steps:
  • Open Nero Burning ROM
  • Select CD-ROM(Boot) option when the dialogue box appears.
  • Then select the option Image File and click Browse… button. On the dialogue box that appears select All Files from Files of type option. Then browse the boot image. In this case it is in C:\BootImages\WindowsXP\XP-Boot-Image.bif. Note that the extension of boot image which I have used is BIF but it may be something else in your case. I used MagicISO to extract the boot image from the Original Windows XP CD.
  • Check the Enable expert settings (for advanced users only!) checkbox. Then set Kind of Emulation to No Emulation, Boot message to Blank and Number of loaded sectors to 4. Do not change Load segment of sectors (hex!) setting .
  • Then Click on new.
  • Then browse for the files which you have copied from the XP CD to your hard disk. Add those files to the compilation for writing. After all files are added then click on Burn button. Select the Label and Write Speed. Make sure that the Finalize Disk (No Further Writing Possible!) is checked. Then burn the CD
  • This CD is Bootable Windows XP CD.

Sunday, July 26, 2009

WINDOWS AND LINUX VIRTUALIZATION

We keep complaining about how we’d like to use Linux if all our work and favourites applications are here on Windows. Virtualisation can be harnessed to run both Linux and Windows together, but virtual machines are very resource hungry and it’s not practical. For example it requires at least 1GB of available RAM to run any modern Linux distro efficiently and at the same time the host Windows OS is also running adding more to the resources. This is the case if you are using VirtualBox, Microsoft VirtualPC or VMWare Workstation. AndLinux could be the solution to all your problems. With andLinux, you can run Linux applications on Windows without having to boot into Linux or run virtual machines.

Another virtualisation method quite common with Ubuntu distro is using WUBI (Windows Based Ubuntu Installer). Using WUBI you can install Ubuntu inside windows as any standard windows application on any partition without making any separate partitions for it.

Getting andLinux up and Running
AndLinux is free software and can be easily downloaded by firing a Google search. AndLinux doesn’t require you to create or modify any partitions, and the entire installation procedure is done on Windows like any other application. Double click the executable and continue beyond the agreement accepting window. Enter a suitable amount of memory that you want to allot to andLinux. If you want to use sound applications, check the radio box for enabling the audio support module. Similarly, if you want to use andLinux seamlessly when you boot into Windows, choose to set up andLinux as an NT service that runs automatically. Next, select the method you want to access the Windows file system. Choose CoFS, however, network shares can be used using Samba. The next step is to select the partition that can be accessed by andLinux. You can also set it to access a particular folder. Select the folder and proceed.

Accessing andLinux’s Applications
If you’re wondering where the andLinux applications are, they are all accessible from the icon in the system tray. If you want to run console applications, you can open a terminal session using Konsole or an andLinux terminal. The username to use is [root] with no password. The andLinux terminal allows you to jump to other terminals using the [Alt] + [F1] / [F2] / [F3] / [F5] / [F6] keys.

Adding New Software
You might think andLinux works like some kind of LiveCD that runs on Windows, but it is much more than that. LiveCDs generally don’t let you install applications, which means you are stuck with what is provided. One of the most impressive features other than running Linux on Windows is that you can actually install new software on it. The simplest and quickest way to do this is to use the Synaptic Package Manager, as long as you have an Internet connection. Right-click on the system tray icon and click on Synaptic. Now search or browse through the directory for the software you want. Right-click on the application and click Mark for Installation. Click on Apply on the top menu to have the software downloaded and installed. You can also use apt-get to install, like in any other distributions.

Stopping the Service
While it’s fun to have andLinux and its applications running on Windows, it can sometimes be a resource hog especially if you don’t have a lot of RAM to spare or if you’re about to start some intensive games. In such cases, you might want to shut down all the unnecessary services and programs running in the background. Go to the folder where you installed andLinux. Double click on srvstop.bat and the service will end. The service can also be shut through the Services manager under Windows Administrative Tools. To start the service again, double click srvstart.bat.

Using andLinux’s Integration for Windows File Formats
If you haven’t noticed, andLinux doesn’t only run applications or open files in the Linux file system. You can browse through folders and use andLinux’s applications run certain files—for example, .doc files can be opened using KWord. Browse using Windows explorer, right-click and you will see the application name in andLinux. If you don’t see an association made, you can open the application using the menu. Then proceed to open the file through the File > Open menu. Look for a path to Windows to open files in the Windows partition. You can also access the same partition through the path /mnt/win. Keep in mind, that andLinux will not be able to open paths outside the ones you specify during the installation.

Using WUBI
WUBI is by default available with all the modern Ubuntu distros after version 8.1. When you download ISO image of Ubuntu and burn it to disc then WUBI is already available on the disc. All you have to do is to run UMENU.exe and then click on Install Inside Windows. Then from the next screen select the size that should be occupied, username, password and the partition in which it should be installed. Select any partition depending on size you selected. It will not be formatted or changed. All your data on it will remain as it is. Then the installation progress is displayed. After that you are asked to restart the computer. You can remove the CD from the drive. Installation will now proceed from the image which the setup created.

Restart the computer. You will see a new entry called Ubuntu in the Windows Startup Menu. Select it and let the installation proceed. You won’t be required to do anything now. After installation completes login screen will appear. And so the installation is now over. What the WUBI does is it adds a entry to the Master Boot Record(MBR) without deleting any previous data. Thus the entry is added to Windows Bootloader. When you select Ubuntu from Windows Startup Menu then the control is transferred to GRUB. Now you must have realised that it is just the reverse process of what was happening in previous Linux distros (where installing Linux in dual boot with windows replaced the MBR with GRUB and then the control was transferred to Windows).

Now that Ubuntu is installed you can add or remove packages from it like any other distribution. The only thing which I found was not available with this type of installation using WUBI was that Ubuntu didn’t support hibernation. All other features were the same.

Removing it is also a very simple task. Just start in Windows and go to the drive where you installed Ubuntu. There will be a folder named Ubuntu there. Open it and click on Uninstall-Ubuntu.exe. Then click Uninstall. No more the pain of restoring MBR to recover windows installation.

Windows 7 Features - XP Mode


When vista was released many existing applications of Windows XP faced a compatibility issues with it. This proved to be a major hurdle in various software companies not migrating to Vista.

Now the Microsoft is trying to learn from its previous mistakes and is making sure that the same is not repeated with Windows 7. And yes the software gaint has fulfilled its commitment. I am talking about the XP mode of windows 7 which is one of the most prominent features.

Now what actually this XP mode is ???

At first it looks a slightly updated and modified version of Virtual PC 2007 hosting an XP Virtual Machine. But lurking beneath the surface here, however, is a vastly enhanced version of what VPC called "Virtual Machine Additions." With "Integration Features," there's a new, if limited, channel of communication between the Win7 host and the XP guest. One of the topics of discussion between these two parties is the changes that are made to XP's copy of the System Registry.

Those changes are often made on account of programs being installed, so the new Windows Virtual PC hypervisor monitors for those changes and takes notes. It does this so it can add whatever programs you installed in the XP environment, in the Win7 start menu as well, along with the necessary commands to trigger running those programs through the VM.


The above snapshot shows how a application installed in Windows XP mode of Windows 7 will look like while running.

Now talking about the availability of this feature, this feature will be available for Ultimate, Enterprise and Professional editions as a downloadable update. The update includes a virtual Windows XP SP3 image.
Indeed a great feature to use !!!

Saturday, July 25, 2009

Compiling From Source In Linux

In Windows, installing software is a matter of clicks. In Linux, however, there are quite different ways for that. Depending on the distribution you have, software can be downloaded in the form of either RPM or Deb packages. Again, you can compile software directly from source code—download the source code which comes in a tarball, unzip it and then compile it. In fact, this is the way source packages were distributed in the old days, and you might still have to go by this route in some cases. However, to most people out there, compiling from source is still a headache. Here is a quick guide to all that you need to know about compiling from source and what goes behind the scenes, without leaving anything to chance.

Unpacking
Command to use: [tar xvzf mypackage.tar.gz] or [tar xvjf mypackage.tar.bz2]

This is the first thing to be done when you download the software. All the source files, associated libraries and documentation are distributed as compressed archives called tarballs. They are compressed using either gzip or bzip2, and hence the different extensions and the slightly differing switches used in the command. After unpacking, a directory will be created with the name of the package in the destination folder. Change the directory using cd mypackage and then use ls to explore the directory tree. Make sure to read the readme, install and other documentation. Some packages might need some additional libraries or might suffer from dependency issues, so it makes sense to know what’s needed.

Configuring
Command to use: ./configure

After you have unpacked the tarball and have also solved any dependency issues by installing required libraries it’s time to go to the next step: configuration. You have to run the command while inside the installed package directory. This command does not change anything substantially. It basically does a housekeeping job, checking whether all the required resources in the form of system libraries are present and then assigning values for system dependent variables. Various switches can be used along with the ./configure command to change the behaviour of the program. For example, appending -quiet would stop printing the checking… messages during the configure process. If you know what you are doing you can use -no-create to inspect the output files before they are created. Using -prefix=mydirectory you can change the path where the Makefile will be created. The sample output of a configure command will look something like this:

creating cache ./config.cache
checking for extra
includes... no
checking for extra libs... no
checking for a BSD compatible
install.../usr/bin/install -c
checking whether build environment
is sane... yes
checking whether make sets
${MAKE}... yes
checking for working
aclocal... found
checking for working autoconf...
found
checking for working
automake... found
checking for working autoheader...
found
checking for working makeinfo...
found
checking for a C-Compiler...
checking for gcc... gcc
…
creating Makefile
creating kdevelop/Makefile
creating po/Makefile
creating kdlgloader/Makefile
…
creating config.h

After the ./configure command has run a Makefile will be created. This Makefile is then used to build the binary which then needs to be installed.

Building
Command to use: make

The make command uses the Makefile to create installable binaries. Binaries are the Unix equivalent of executables, or .exe files. The make command is time consuming and results in a whole bunch of messages scrolling across your screen. This part is going to take a lot of time, depending on the package being compiled as well as the system configuration. There will be another bunch of messages scrolling across the screen, sometimes with warnings about some resources being absent. If all is okay, it will display the command prompt. If however, there is some problem it prompts you with appropriate status messages. Most of the errors in the compilation process are due to missing or incompatible libraries. Say you have a software that depends on GTK+, with the latest version not present. You might then have to download it from the Web. For the most part, if your OS is new you won’t have any problems. However, you can always search software repositories provided by your OS vendor.

Installation
Command to use: make install

The make install command is the equivalent of point and click routine on Windows. The installation time will again depend on how big the software is. Before doing this, you need to log in as root. Since you have followed the best practices and have up till now done everything from a user account type su (sudo for Ubuntu) and enter the root password. After getting administrator privileges use this command to install the software. You will have no glitches and everything will work out fine. The program will be usually installed in /usr/local/bin however, if you have specified a path during the configuration process, you will have to navigate to that directory to access the program. In most modern Linux distributions, you will see a graphical shortcut and will have to click there to launch the program. If you need to uninstall the program just delete the binaries. In some cases, you could use the make uninstall command to uninstall the program.

Friday, July 24, 2009

Windows 7 Features - Direct X 11

With windows 7 being RTM now their comes DirectX 11 with it. DirectX is a series of graphics libraries that enable Windows programs to "write" graphics data directly to screen elements, rather than to ordinary windows. While the operating system's principal graphics library since version 3.0 has been the Graphics Device Interface (GDI), its handles on memory are tied to window identities and locations. But it's DirectX that makes it possible for a 3D rendered game to be played in the Windows OS without having to be "in" a window like, say, Excel 2003.

A good news for old graphics card users is that DirectX 11 will work on graphics cards rated for DX9 and DX10. During the Vista era, to run DX10 you needed a DX10 card. This doesn't mean that all of DX11's features run only on a DX11 card, but what it does mean is that it doesn't exclude older hardware and, in so doing, rate it a second-class citizen.

DirectX 11 also brings a true multithreading environment. DirectX 11 also features improvements to the general mathematical library that will help enable developers of allkinds to make GPUs accessible for everyday computing purposes, not just 3D rendering and gaming -- what hardware engineers are calling General Purpose GPU (GPGPU). "Rather than just focusing on pixels and triangles, the compute shader is intended to take advantage of the graphics card as a parallel processor."

Thursday, July 23, 2009

Creating and Modifying the REG files for windows

Well! after reading some of my blog entries you might be interested in modifying registry yourself. And you can now appreciate it for that it can customize any setting in windows. But browsing and navigating each and every entry of the registry is a big headache sometimes (at least for me). So what can be done for that? Let’s talk about creating a file which will incorporate all your settings and you need to just double click that file. That's all! No need to click your way through dozens of windows, no need to go through the risk of pushing the wrong button and crashing your operating system. And last but not least, with just a double click. Tweaking can hardly get any easier than that! Think how cool that would be, especially after reinstalling Windows.


Now here's a list of system tweaks for you to choose from. To make sure I've got your attention, in this article I’ll provide only the optimizations that are either impossible to apply in a conventional way (from Windows Explorer or Control Panel). So let’s go step by step . . .

· Go to “My Computer” and click “Tools” menu.

· Open “Folder Option” and click on “View” tab.

· In the “Advanced Settings” list box look for the setting named as “Hide Extensions for Known File Types”. If the checkbox is checked uncheck it and click on OK.

· Now create a text file on any drive, let’s say on your desktop.

· Rename the file to “MySettings.reg”. The message saying that “If you change file name extension, the file may become unusable. Are you sure to change it ?” will appear. Click on Yes.

· Remember that the extension must be “.reg” and not “.txt”.

· Now open “MySettings.reg” and add following line as it is to the file.

Windows Registry Editor Version 5.00

· Note that to write a comment you should begin the line with “;”. For e.g. following is a comment . . .

;Enable ClearType for Welcome Screen

· Be very patient when copying something to paste it in your document. If you copy an incomplete text, the tweak will not work and you might alter other system settings.

· As for the pieces of advice that will make your work easier when creating the tweaking file, just keep in mind two things: remember the purpose of each line (you can use comment lines in which you can write whatever you like as long as they start with a semicolon) and, of course, know that there's no problem in leaving a few lines empty between each tweak, to help you differentiate them.

· And at last, save the file before closing it. To apply the tweaks double click on the file. Message saying “Are you sure you want to add information in to registry ?” appears. Just say Yes.

· Now let’s begin with the tweaks . . .

Ø ;Deactivate Low Disk Space msg

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/system]
"NoInternetOpenWith"=dword:00000001

It will deactivate the annoying "Low Disk Space" message that appears in your system tray each time one of your drives is almost full.

Ø ;Don't like the Windows XP default search interface and prefer the classic interface without any assistant

[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/CabinetState]
"Use Search Asst"="no"

Ø ;Disable the motherboard beeps

[HKEY_CURRENT_USER/Control Panel/Sound]
"Beep"="no"
"ExtendedSounds"="no"

If you haven't got the chance to install a sound driver, you've surely noticed the annoying beeps made by your motherboard each time an alert window pops up. After applying this tweak, you won't need to worry about these beeps anymore.

Ø ;Directly show open with dialogue box for unassociated files

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/system]
"NoInternetOpenWith"=dword:00000001

This will remove the window that always pops up when you try opening a file that is not assigned to a program, asking you if you wish to go online and find out which program you should use to open that type of file. After applying this patch, you’ll see just the Open With window.

Ø ;Remove shortcut arrow

[HKEY_CLASSES_ROOT/lnkfile]
"IsShortcut"=-
[HKEY_CLASSES_ROOT/piffile]
"IsShortCut"=-

Add this tweak to your list if you don't want your Windows XP to constantly add the shortcut arrow each time you create a shortcut.

Ø ;Disable the icon tooltips

[HKEY_CURRENT_USER/Software/Microsoft/Windows/Current/Version/Explorer/Advanced]
"ShowInfoTip"=dword:00000000

If you find the tool tips containing information displayed by Windows when hovering a file with your mouse rather bothersome, adding this optimization to your file will help you get rid of them.

Ø ;Remove the "Shortcut To..." prefix on desktop shorcut names

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer]

"Link"=hex:00,00,00,00

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer]

"Link"=hex:00,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]

"Link"=hex:00,00,00,00

When creating a shortcut, Windows XP automatically names it “Shortcut to (name of the file).” If you find this annoying, the above tweak will remove the “Shortcut to” text and leave only the name of the file in the shortcut’s name.

Ø ;Remove sounds for various events

[HKEY_CURRENT_USER/AppEvents/Schemes]
@=".None"

Ø ;Enable classic look for control panel

[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer]
"ForceClassicControlPanel"=dword:00000001

Ø ;Disable the language bar

[-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}]
@="Language bar"
"MenuTextPUI"="@%SystemRoot%\\System32\\msutb.dll,-325"

If you don’t need to switch languages on your computer’s keyboard, the language bar is pretty much useless. Thus, you can either right click on it and close it, or choose the geeky way and add this tweak to your list of do–it–yourself–in–a–click list of optimizations.

Ø ;Disable the screen saver

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"SCRNSAVE.EXE"=-
"ScreenSaveActive"="0"
"ScreenSaverIsSecure"="0"
"ScreenSaveTimeOut"="0"
[HKEY_CURRENT_USER\Control Panel\Desktop]
"SCRNSAVE.EXE"=-
"ScreenSaveActive"="0"
"ScreenSaverIsSecure"="0"
"ScreenSaveTimeOut"="0"

Ø ;Disable the windows tour popup

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000


If you don’t find the Windows Tour displayed by your Windows XP useful or interesting, just add the lines above to your tweaking file and they will help you easily get rid of it.

Ø ;Disable the error reporting

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]
"DoReport"=dword:00000000
"ShowUI"=dword:00000000

Ø ;Show hidden files and folders

[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced]
"Hidden"=dword:00000001

The common and simplest way of doing this would be opening My Computer, selecting Folder Options from the Tools menu, and checking Show hidden files and folders in the View tab. Instead of doing all this copy the above two lines to your file.

Ø ;Show extensions of all files

[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced]
"HideFileExt"=dword:00000000

Another way of doing the above thing is displayed in the steps given some lines above.

Ø ;Show hidden system files

[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced]
"ShowSuperHidden"=dword:00000001

This tweak will cause to display hidden system files like “Boot.ini, ntdetect.com, system volume information etc”. You should not try to modify or delete these files unless you know what you are doing. It may cause the OS to crash.

Ø ;Disable search for network folders and printers

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/ CurrentVersion/Explorer/RemoteComputer/NameSpace/{2227A280-3AEA-1069-A2DE-08002B30309D}]
[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced]
"NoNetCrawling"=dword:00000001
[HKEY_USERS/.DEFAULT/Microsoft/Windows/CurrentVersion/Explorer/Advanced]
"NoNetCrawling"=dword:00000001

Ø ;Show full path address in title bar

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]
"FullPathAddress"=dword:00000001


Usually Windows Explorer displays in the title bar only the name of the folder you’re currently viewing. If you’re not comfortable with this and wish to view the full path, just use the lines above.

Ø ;Show control panel in my computer

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideMyComputerIcons]
"{21EC2020-3AEA-1069-A2DD-08002B30309D}"=dword:00000000

Ø ;Disable balloon tips

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"ShowInfoTip"=dword:00000000

"StartButtonBalloonTip"=dword:00000000

"FolderContentsInfoTip"=dword:00000000

"EnableBalloonTips"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\tips]

"Show"=dword:00000000

Ø ;Enable ClearType for Welcome Screen

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]

"FontSmoothingType"=dword:00000002

With windows XP a new technology called as Clear type is also available but by default is disabled for CRT’s. To enabled it right click the desktop, go to properties and click on appearance tab.Then click on “Effects” button. Check “Use the following method to smooth the edges of screen fonts” and select “Clear type”. Click OK. Now the icons will have a dropped shadow behind them and the text is more easily readable than before. Same effect can be achieved on windows login screen by using the above lines in your file.

Ø ;On desktop, show My computer icon first instead of My Documents

[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}]

"SortOrderIndex"=dword:00000054

Ø ;Show Windows version and build on Desktop

[HKEY_CURRENT_USER\Control Panel\Desktop]

"PaintDesktopVersion"=dword:00000001

Ø ;Add "Add/Remove Programs" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]

@="control appwiz.cpl"

Ø ;Add "Control Panel" to right-click menu of My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command]

@="rundll32.exe shell32.dll,Control_RunDLL"

Ø ;Add "Copy To" and "Move To" to right-click menu of files and folders

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]

@="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]

@="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"

Ø ;Add "Device Manager" to right-click menu of My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Device Manager\command]

@="mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\devmgmt.msc"

Ø ;Add "DOS Prompt" to folder right-click menu

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\DosHere]

@="DOS Prompt"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\DosHere\Command]

@="C:\\WINDOWS\\system32\\cmd.exe /k cd \"%1\""

Ø ;Add "DOS Prompt" to drives right-click Menu

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\DosHere]

@="DOS Prompt"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\DosHere\Command]

@="C:\\WINDOWS\\system32\\cmd.exe /k cd \"%1\""

Ø ;Add "Empty Recycle Bin" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\{645FF040-5081-101B-9F08-00AA002F954E}]

@="Empty Recycle Bin"

[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Empty Recycle Bin]

@="{645FF040-5081-101B-9F08-00AA002F954E}"

[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\Empty Recycle Bin]

@="{645FF040-5081-101B-9F08-00AA002F954E}"

[HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Empty Recycle Bin]

@="{645FF040-5081-101B-9F08-00AA002F954E}"

[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Empty Recycle Bin]

@="{645FF040-5081-101B-9F08-00AA002F954E}"

Ø ;Add "Internet Properties" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Internet Properties\command]

@="control inetcpl.cpl"

Ø ;Add "LogOff" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Logoff]\command]

@="shutdown -l -f -t 5"

Ø ;Add "Microsoft Configurator" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Microsoft Configurator\command]

@="msconfig.exe"

Ø ;Add "Notepad" to right-click menu of folders

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Notepad]

@="Notepad"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Notepad\command]

@="C:\\Windows\\notepad"

Ø ;Add "Reboot" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Reboot]\command]

@="shutdown -r -f -t 5"

Ø ;Add "Register" and "unRegister" to right-click menu of ".dll" files

[HKEY_CLASSES_ROOT\.dll]

"Content Type"="application/x-msdownload"

@="dllfile"

[HKEY_CLASSES_ROOT\dllfile]

@="Application Extension"

[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]

@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]

@="regsvr32.exe /u \"%1\""

Ø ;Add "Register" and "unRegister" to right-click menu of ".ocx" files

[HKEY_CLASSES_ROOT\.ocx]

@="ocxfile"

[HKEY_CLASSES_ROOT\ocxfile]

@="OCX"

[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]

@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]

@="regsvr32.exe /u \"%1\""

Ø ;Add "Registry Editor" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Registry Editor\command]

@="Regedit.exe"

Ø ;Add "Run with High Priority" to right-click menu of ".exe" files

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\XQSHP]

@="Run &with high priority"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\XQSHP\Command]

@="C:\\WINDOWS\\system32\\cmd.exe /c start \"XQSHP\" /high \"%1\""

By default the processes of any program are given a normal priority when we open them (unless specified). But running the program with high priority will enable the program to utilize more computer resources and thus complete a task speedily. This setting will provide the right click menu of any “.exe” file with a option to run the program with high priority. Note that running a process with high priority may cause a significant decrease in performance of the other programs running simultaneously.

Ø ;Add "Services" to right-click menu of My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services\command]

@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\

00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\

65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\

00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\

32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73,\

00,63,00,20,00,2f,00,73,00,00,00

Ø ;Add "Shutdown" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Shutdown]\command]

@="shutdown -s -f -t 5"

Ø ;Add "Sound and Audio Devices" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Sound And Audio Devices\command]

@="control mmsys.cpl"

Ø ;Add "Windows Firewall" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Firewall\command]

@="control firewall.cpl"

Ø ;Add "Windows Security Center" to right-click menu of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Security Center\command]

@="control wscui.cpl"

Ø ;Show Windows Update Patches as installed programs in Control Panel

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall]

"DontGroupPatches"=dword:00000001

Ø ;Enable shutdown reason

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability]

"ShutdownReasonUI"=dword:00000001

This setting if used will ask the users to give a valid reason for the computer shutdown when any user wants to shutdown the computer.

Ø ;Enable Verbose status messages

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]

"verbosestatus"=dword:00000001

Ø ;Allow boot files to be placed optimally on the hard-drive for faster boots.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]

"Enable"="Y"

Ø ;Show Administrator account on Welcome Screen

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]

"Administrator"=dword:00000001

When you install windows you are asked to create a password for the “Administrator account”. You create a password and install windows (although some users skip the password). Then a welcome screen appears and asks for creating more accounts (at least 1 is necessary). Now you create one more account. When you start the computer you see that there is only one account on login screen and that too which you created after the welcome screen. Now you might be wondering where the “Administrator account” has gone, although you had supplied a password for it. It should be noted that the account still exists but is available only when you start the computer in safe mode. To show the account on login screen for normal startup use the above settings.

Ø ;Speed up shutdown

[HKEY_CURRENT_USER\Control Panel\Desktop]

"AutoEndTasks"="1"

"HungAppTimeout"="100"

"WaitToKillAppTimeout"="1000"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]

"WaitToKillServiceTimeout"="1000"

Ø ;Add Administrative Tools to My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{D20EA4E1-3957-11D2-A40B-0C5020524153}]

Ø ;Add Network Connections to My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{7007ACC7-3202-11D1-AAD2-00805FC1270E}]

Ø ;Add Printers And Faxes to My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{2227A280-3AEA-1069-A2DE-08002B30309D}]

Ø ;Add Recycle Bin to My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}]

Ø ;Add Scheduled Tasks to My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

Ø ;Remove Shared Documents from My Computer

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"NoSharedDocuments"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"NoSharedDocuments"=dword:00000001

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]

Ø ;Set StartMenu to show up really fast

[HKEY_CURRENT_USER\Control Panel\Desktop]

"MenuShowDelay"="10"

Ø ;Allow renaming of Recycle Bin

[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]

"Attributes"=hex:50,01,00,20

"CallForAttributes"=dword:00000000

Ø ;Enable numlock on login

[HKEY_USERS\.Default\Control Panel\Keyboard]

"InitialKeyboardIndicators"="2"

Ø ;Show checkbox "Run in separate memory space" in Start Menu/Run

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"MemCheckBoxInRunDlg"=dword:00000002

Ø ;Open ".nfo" files with Notepad

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nfo]

"Application"="NOTEPAD.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nfo\OpenWithList]

"a"="Explorer.exe"

"MRUList"="ba"

"b"="NOTEPAD.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.nfo\OpenWithProgids]

"MSInfo.Document"=hex(0):

Ø ;Set Logon and Logoff dialogs to provide more detailed description of what is happening

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]

"verbosestatus"=dword:00000001

Ø ;Show Superhidden Extensions

[HKEY_CLASSES_ROOT\lnkfile]

"NeverShowExt"=-

[HKEY_CLASSES_ROOT\InternetShortcut]

"NeverShowExt"=-

[HKEY_CLASSES_ROOT\ShellScrap]

"NeverShowExt"=-

[HKEY_CLASSES_ROOT\DocShortcut]

"NeverShowExt"=-

[HKEY_CLASSES_ROOT\piffile]

"NeverShowExt"=-

[HKEY_CLASSES_ROOT\SHCmdFile]

"NeverShowExt"=-

Wondering what the superhidden extensions are? These are the extensions which have very little or almost no relevance to the users. For e.g. when you click Start and open any program you are hardly concerned with the extensions of their shortcuts (which is .lnk). But if for some reason you want to display those you should use this setting.

Ø ;Speed up access to ".avi" media files

[-HKEY_CLASSES_ROOT\CLSID\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.avi\shellex\PropertyHandler]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}\InProcServer32]