When you’re dealing with an application that displays data in a set of columns, it’s often frustrating to have to resize each column separately—but today we’ve got a great trick for you that resizes all the columns with a single keystroke.
The secret keystroke to use is Ctrl and the Numpad’s + key, and it only works if you have a separate number pad on your PC.
Tuesday, September 14, 2010
Monday, August 23, 2010
Working with 'vi' editor
People who use Linux/Unix as their OS should have used the vi editor. This editor is more powerful editor I've seen ever. I'm here with listing some basic & important 'vi' commands which needed to do file manipulation/editing.
Save & Exit:
:x --> quit vi, writing out modified file to file named in original invocation
:x --> quit vi, writing out modified file to file named in original invocation
:wq --> quit vi, writing out modified file to file named in original invocation
:q --> quit (or exit) vi
:q! --> quit vi even though latest changes have not been saved for this vi call
Screen manipulation:
^f -->move forward one screen
^b -->move backward one screen
^d -->move down (forward) one half screen
^u -->move up (back) one half screen
Working with Multiple files:
To open multiple files:
$vi main.pl maintenance.pl
To hop between them:
:n --> Next file
:prev --> Previous file
:args --> To see which are the files open.
Save & Exit:
:x
:x
:wq
:q
:q!
Screen manipulation:
^f -->move forward one screen
^b -->move backward one screen
^d -->move down (forward) one half screen
^u -->move up (back) one half screen
Working with Multiple files:
To open multiple files:
$vi main.pl maintenance.pl
To hop between them:
:n --> Next file
:prev --> Previous file
:args --> To see which are the files open.
Tuesday, August 17, 2010
Ctrl+V for Pasting in the Windows Command Prompt
1. Install AutoHotkey
2. Save the following code as PasteCommandPrompt.ahk
3. Double click PasteCommandPrompt.ahk file. Now you all set. You can apply Ctrl + V in command window.
2. Save the following code as PasteCommandPrompt.ahk
#IfWinActive ahk_class ConsoleWindowClass
^V::
SendInput {Raw}%clipboard%
return
#IfWinActive
3. Double click PasteCommandPrompt.ahk file. Now you all set. You can apply Ctrl + V in command window.
Tuesday, June 8, 2010
Eclipse IDE tips
Often I hate with Eclipse editor is, switching between editor. I mean if you have multiple java files opened with eclipse one way to switch between 'next files' using default shortcut 'CTRL + F6'. To do that ideally you have to use your both hand to handle it. I mean F6 key is all the way up on the top where as CTRL key is all the way down to the keyboard.
You can change this default behaviour and make it 'CTRL + Tab' like other windows application. To do that make a 'Binding' for the command Next Editor under Window > Preferences > General > Keys.
After changing this, you can pretty much switch between files easily with your left hand.
I'd ask every programmer to think all these kind of small small things to make their life better.
You can change this default behaviour and make it 'CTRL + Tab' like other windows application. To do that make a 'Binding' for the command Next Editor under Window > Preferences > General > Keys.
After changing this, you can pretty much switch between files easily with your left hand.
I'd ask every programmer to think all these kind of small small things to make their life better.
Friday, May 14, 2010
Screen capture - Java
This might be very helpful for GUI developer in java. At times its hard to figureout the some error happens in the user end. I mean, End user usually just complain that while clicking so and so button or tab or something it failed. In those cases if you have users screen, you can guess something. To do that, you can make the following code as an API and store screen shot in your log location and you can verify them later.
Subscribe to:
Posts (Atom)