Windows keyboard shortcuts

Why should you use keyboard shortcuts when you have a perfectly functional mouse? :D. It is a great time saver because of keyboard shortcuts provide a simple way to speed up your workflow. Would you rather get to certain areas of windows with one keyboard action or several clicks of mouse?

I mentioned bellow a number of keyboard shortcuts which are most recently used.

Windows system key combinations
• F1: Help
• CTRL+ESC: Open Start menu
• ALT+TAB: Switch between open programs
• ALT+F4: Quit program
• SHIFT+DELETE: Delete item permanently
• Windows Logo+L: Lock the computer (without using CTRL+ALT+DELETE)

Windows program key combinations
• CTRL+C: Copy
• CTRL+X: Cut
• CTRL+V: Paste
• CTRL+Z: Undo
• CTRL+Y: Redo
• CTRL+B: Bold
• CTRL+U: Underline
• CTRL+I: Italic

General keyboard-only commands
• F1: Universal help in almost all windows programs.
• F10: Activates menu bar options.
• SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object

• CTRL+ESC: Opens the Start menu (use the ARROW keys to select an item)
• CTRL+ESC or ESC: Selects the Start button (press TAB to select the taskbar, or press SHIFT+F10 for a context menu)

• CTRL+SHIFT+ESC: Opens Windows Task Manager
• ALT+DOWN ARROW: Opens a drop-down list box
• ALT+TAB: Switch to another running program (hold down the ALT key and then press the TAB key to view the task-switching window)

• SHIFT: Press and hold down the SHIFT key while you insert a CD-ROM to bypass the automatic-run feature

• ALT+SPACE: Displays the main window’s System menu (from the System menu, you can restore, move, resize, minimize, maximize, or close the window)

• ALT+- (ALT+hyphen): Displays the Multiple Document Interface (MDI) child window’s System menu (from the MDI child window’s System menu, you can restore, move, resize, minimize, maximize, or close the child window)

• CTRL+TAB: Switch to the next child window of a Multiple Document Interface (MDI) program

• ALT+underlined letter in menu: Opens the menu
• ALT+F4: Closes the current window
• CTRL+F4: Closes the current Multiple Document Interface (MDI) window
• ALT+F6: Switch between multiple windows in the same program (for example, when the Notepad Find dialog box is displayed, ALT+F6 switches between the Find dialog box and the main Notepad window)

Shell objects and general folder/Windows Explorer shortcuts
For a selected object:
• F2: Rename object
• F3: Open a search window
• CTRL+X: Cut
• CTRL+C: Copy
• CTRL+V: Paste
• SHIFT+DELETE: Delete selection immediately, without moving the item to the Recycle Bin (Delete selection permanently)

• ALT+ENTER: Open the properties for the selected object
To copy a file

Press and hold down the CTRL key while you drag the file to another folder.

To create a shortcut

Press and hold down CTRL+SHIFT while you drag a file to the desktop or a folder.

Automating build process with apache ant

Why and what is Ant?

Without using ant, building and deploying web applications and other enterprise applications required a series of scripts or manual processes, which often led to mistakes.

Apache ant is a powerful tool for automating software build processes. It is implemented by Apache Foundation using java language, requires the java platform and is best suited for building java projects. However that doesn’t means it restricted to java projects. Dot net project also can use ant to automate the build process (Nant). Ant makes application building process and releasing them across different servers far more efficient and less problematic. Ant is applicable for most integrated development environment (IDE) that uses java.

Ant uses XML to describe the build process and its dependencies. By default the xml file named as build.xml. This makes it really simple for you setup and edit different build processes. Build files in ant are extremely important in a project, must be written in care, and maintain in version control and re-factored periodically, when the project dependencies change.

Best features of Ant technology.

Ant is a powerful, platform independent, open source tool. If you choose to use it, get it to do absolutely everything. Ant can integrate with your source control database such as SVN or SCM, run SQL scripts, change file permissions, Send file across FTP, Zip and Unzip files, compile java files, create jar files, and many more tasks beside this.

The best features of the ant technology can be summarized as below:

Easy to Use: It is not a programming language, based on xml and easy to understand and implement.
Portable and cross platform based: Ant is implemented using java and it makes portable. i.e., it can be run on any platform.
Extended functionality: Ant’s functionality can be extended to any development environment based on java.
Build automation: Ant provides automated build process that is faster and more efficient.
Compilation of source code: Ant can compile source code from a variety of version controls and packaging of the compiled code and resources can also be done.

Ant expects your build file to be called build.xml and builds properties file These files also should be in the root directory of your project. Spend the time to formatting the build file. Since XML is quite verbose, use tabs and line breaks to make the file readable to the human eye. Ant itself does not care if the file looks pretty. But you can bet that you and your team will.

Installing ant on the desktop:

The current version (1.7.1) of ant was released on 27-jun-2008 and it can be downloaded on They are provided many formats (zip, tar etc) and you can download any one from there. I’m explaining how to install ant from zip file here. After complete downloading, unzip the content to the C directory. The path for the ant will be “C:\apache-ant-1.7.0”. Then we have to set some environment variables to get ant to work. Right-click on the “MyComputer” and select “properties”. GF to “Advanced” tab and click on “Environment Variables”. Under environment variables, you have to set following path variables.
Set value “C:\apache-ant-1.7.0” to ANT_HOME variable
Set value “C:\apache-ant-1.7.0\lib” to CLASS_PATH variable
Set value “C:\Java\jdk1.5.0_15” to JAVA_HOME variable
Set value “C:\apache-ant-1.7.0\bin” to PATH variable

That is all you have to do for installing ant. Now you have to check whether the installation process is done properly or not. To do this open the command prompt and run the command C:\>ant (just type ant and hit enter). If the following message is appears, then it indicate that your installation is successful. Ant is properly installed on your system.