inteliture.com
Google

Sunday, August 26, 2007

ALL KINDS OF SHORTCUTS FOR OUR SYSTEM AND INTERNET

List of F1-F9 Key Cmds 4 cmd prompt



List of F1-F9 Key Commands for the Command Prompt
F1 / right arrow: Repeats the letters of the last command line, one by one.
F2: Displays a dialog asking user to "enter the char to copy up to" of the last command line
F3: Repeats the last command line
F4: Displays a dialog asking user to "enter the char to delete up to" of the last command line
F5: Goes back one command line
F6: Enters the traditional CTRL+Z (^z)
F7: Displays a menu with the command line history
F8: Cycles back through previous command lines (beginning with most recent)
F9: Displays a dialog asking user to enter a command number, where 0 is for first command line entered.
Alt+Enter: toggle full Screen mode.
up/down: scroll thru/repeat previous entries
Esc: delete line
Note: The buffer allows a maximum of 50 command lines. After this number is reached, the first line will be replaced in sequence.
Helpful accessibility keyboard shortcuts
Switch FilterKeys on and off. Right SHIFT for eight seconds
Switch High Contrast on and off. Left ALT +left SHIFT +PRINT SCREEN
Switch MouseKeys on and off. Left ALT +left SHIFT +NUM LOCK
Switch StickyKeys on and off. SHIFT five times
Switch ToggleKeys on and off. NUM LOCK for five seconds


Gmail Shortcuts


Gmail
Note: Must have "keyboard shortcuts" on in settings.
C: Compose new message.
Shift + C: Open new window to compose new message.
Slash (/): Switch focus to search box.
K: Switch focus to the next most recent email. Enter or "O" opens focused email.
J: Switch focus to the next oldest email.
N: Switch focus to the next message in the "conversation." Enter or "O" expands/collapses messages.
P: Switch focus to the previous message.
U: Takes you back to the inbox and checks for new mail.
Y: Various actions depending on current view:
Has no effect in "Sent" and "All Mail" views.
Inbox: Archive email or message.
Starred: Unstar email or message.
Spam: Unmark as spam and move back to "Inbox."
Trash: Move back to "Inbox."
Any label: Remove the label.
X: "Check" an email. Various actions can be performed against all checked emails.
S: "Star" an email. Identical to the more familiar term, "flagging."
R: Reply to the email.
A: Reply to all recipients of the email.
F: Forward an email.
Shift + R: Reply to the email in a new window.
Shift + A: Reply to all recipients of the email in a new window.
Shift + F: Forward an email in a new window.
Shift + 1 (!): Mark an email as spam and remove it from the inbox.
G then I: Switch to "Inbox" view.
G then S: Switch to "Starred" view.
G then A: Switch to "All Mail" view.
G then C: Switch to "Contacts" view.
G then S: Switch to "Drafts" view.


Mozilla Firefox Shortcuts


Mozilla Firefox Shortcuts
Ctrl + Tab or Ctrl + PageDown: Cycle through tabs.
Ctrl + Shift + Tab or Ctrl + PageUp: Cycle through tabs in reverse.
Ctrl + (1-9): Switch to tab corresponding to number.
Ctrl + N: New window.
Ctrl + T: New tab.
Ctrl + L or Alt + D or F6: Switch focus to location bar.
Ctrl + Enter: Open location in new tab.
Shift + Enter: Open location in new window.
Ctrl + K or Ctrl + E: Switch focus to search bar.
Ctrl + O: Open a local file.
Ctrl + W: Close tab, or window if there's only one tab open.
Ctrl + Shift + W: Close window.
Ctrl + S: Save page as a local file.
Ctrl + P: Print page.
Ctrl + F or F3: Open find toolbar.
Ctrl + G or F3: Find next...
Ctrl + Shift + G or Shift + F3: Find previous...
Ctrl + B or Ctrl + I: Open Bookmarks sidebar.
Ctrl + H: Open History sidebar.
Escape: Stop loading page.
Ctrl + R or F5: Reload current page.
Ctrl + Shift + R or Ctrl + F5: Reload current page; bypass cache.
Ctrl + U: View page source.
Ctrl + D: Bookmark current page.
Ctrl + NumpadPlus or Ctrl + Equals (+/=): Increase text size.
Ctrl + NumpadMinus or Ctrl + Minus: Decrease text size.
Ctrl + Numpad0 or Ctrl + 0: Set text size to default.
Alt + Left or Backspace: Back.
Alt + Right or Shift + Backspace: Forward.
Alt + Home: Open home page.
Ctrl + M: Open new message in integrated mail client.
Ctrl + J: Open Downloads dialog.
F6: Switch to next frame. You must have selected something on the page already, e.g. by use of Tab.
Shift + F6: Switch to previous frame.
Apostrophe ('): Find link as you type.
Slash (/): Find text as you type.


Remote Desktop Connection Navigation

Remote Desktop Connection Navigation
Ctrl + Alt + End: Open the NT Security dialog.
Alt + PageUp: Switch between programs.
Alt + PageDown: Switch between programs in reverse.
Alt + Insert: Cycle through the programs in most recently used order.
Alt + Home: Display start menu.
Ctrl + Alt + Break: Switch the client computer between a window and a full screen.
Alt + Delete: Display the Windows menu.
Ctrl + Alt + NumpadMinus: Place a snapshot of the entire client window area on the Terminal server clipboard and provide the same functionality as pressing Alt + PrintScreen on a local computer.
Ctrl + Alt + NumpadPlus: Place a snapshot of the active window in the client on the Terminal server clipboard and provide the same functionality as pressing PrintScreen on a local computer.



Accessibility


Accessibility
Right Shift for eight seconds: Toggle FilterKeys on and off. FilterKeys must be enabled.
Left Alt + Left Shift + PrintScreen: Toggle High Contrast on and off. High Contrast must be enabled.
Left Alt + Left Shift + NumLock: Toggle MouseKeys on and off. MouseKeys must be enabled.
NumLock for five seconds: Toggle ToggleKeys on and off. ToggleKeys must be enabled.
Shift five times: Toggle StickyKeys on and off. StickyKeys must be enabled.
6.) Microsoft Natural Keyboard with IntelliType Software Installed
Win + L: Log off Windows.
Win + P: Open Print Manager.
Win + C: Open control panel.
Win + V: Open clipboard.
Win + K: Open keyboard properties.
Win + I: Open mouse properties.
Win + A: Open Accessibility properties.
Win + Space: Displays the list of Microsoft IntelliType shortcut keys.
Win + S: Toggle CapsLock on and off.


Generic


Generic
Ctrl + C or Ctrl + Insert: Copy.
Ctrl + X or Shift + Delete: Cut.
Ctrl + V or Shift + Insert: Paste/Move.
Ctrl + N: New... File, Tab, Entry, etc.
Ctrl + S: Save.
Ctrl + O: Open...
Ctrl + P: Print.
Ctrl + Z: Undo.
Ctrl + A: Select all.
Ctrl + F: Find...
Ctrl+W : to close the current window
Ctrl + F4: Close tab or child window.
F1: Open help.
F11: Toggle full screen mode.
Alt or F10: Activate menu bar.
Alt + Space: Display system menu. Same as clicking the icon on the titlebar.
Escape: Remove focus from current control/menu, or close dialog box.
Generic Navigation
Tab: Forward one item.
Shift + Tab: Backward one item.
Ctrl + Tab: Cycle through tabs/child windows.
Ctrl + Shift + Tab: Cycle backwards through tabs/child windows.
Enter: If a button's selected, click it, otherwise, click default button.
Space: Toggle items such as radio buttons or checkboxes.
Alt + (Letter): Activate item corresponding to (Letter). (Letter) is the underlined letter on the item's name.
Ctrl + Left: Move cursor to the beginning of previous word.
Ctrl + Right: Move cursor to the beginning of next word.
Ctrl + Up: Move cursor to beginning of previous paragraph. This and all subsequent Up/Down hotkeys in this section have only been known to work in Rich Edit controls.
Ctrl + Down: Move cursor to beginning of next paragraph.
Shift + Left: Highlight one character to the left.
Shift + Right: Highlight one character to the right.
Shift + Up: Highlight from current cursor position, to one line up.
Shift + Down: Highlight from current cursor position, to one line down.
Ctrl + Shift + Left: Highlight to beginning of previous word.
Ctrl + Shift + Right: Highlight to beginning of next word.
Ctrl + Shift + Up: Highlight to beginning of previous paragraph.
Ctrl + Shift + Down: Highlight to beginning of next paragraph.
Home: Move cursor to top of a scrollable control.
End: Move cursor to bottom of a scrollable control.
Generic File Browser
Arrow Keys: Navigate.
Shift + Arrow Keys: Select multiple items.
Ctrl + Arrow Keys: Change focus without changing selection. "Focus" is the object that will run on Enter. Space toggles selection of the focused item.
(Letter): Select first found item that begins with (Letter).
BackSpace: Go up one level to the parent directory.
Alt + Left: Go back one folder.
Alt + Right: Go forward one folder.
Enter: Activate (Double-click) selected item(s).
Alt + Enter: View properties for selected item.
F2: Rename selected item(s).
Ctrl + NumpadPlus: In a Details view, resizes all columns to fit the longest item in each one.
Delete: Delete selected item(s).
Shift + Delete: Delete selected item(s); bypass Recycle Bin.
Ctrl while dragging item(s): Copy.
Ctrl + Shift while dragging item(s): Create shortcut(s).

In tree pane, if any:
Left: Collapse the current selection if expanded, or select the parent folder.
Right: Expand the current selection if collapsed, or select the first subfolder.
Numpad Asterisk: Expand currently selected directory and all subdirectories. No undo.
Numpad Plus: Expand currently selected directory.
Numpad Minus: Collapse currently selected directory.


Windows Hotkeys



Windows Hotkeys
Shift + F10 right-clicks.
Win + L (XP Only): Locks keyboard. Similar to Lock Workstation.
Win + F or F3: Open Find dialog. (All Files) F3 may not work in some applications which use F3 for their own find dialogs.
Win + Control + F: Open Find dialog. (Computers)
Win + U: Open Utility Manager.
Win + F1: Open Windows help.
Win + Pause: Open System Properties dialog.
Win + Tab: Cycle through taskbar buttons. Enter clicks, AppsKey or Shift + F10 right-clicks.
Win + Shift + Tab: Cycle through taskbar buttons in reverse.
Alt + Tab: Display Cool Switch. More commonly known as the AltTab dialog.
Alt + Shift + Tab: Display Cool Switch; go in reverse.
Alt + Escape: Send active window to the bottom of the z-order.
Alt + Shift + Escape: Activate the window at the bottom of the z-order.
Alt + F4: Close active window; or, if all windows are closed, open shutdown dialog.
Shift while a CD is loading: Bypass AutoPlay.
Shift while login: Bypass startup folder. Only those applications will be ignored which are in the startup folder, not those started from the registry (Microsoft\Windows\CurrentVersion\Run\)
Ctrl + Alt + Delete or Ctrl + Alt + NumpadDel (Both NumLock states): Invoke the Task Manager or NT Security dialog.
Ctrl + Shift + Escape (2000/XP ) or (Ctrl + Alt + NumpadDot) : Invoke the task manager. On earlier OSes, acts like Ctrl + Escape.
Print screen: Copy screenshot of current screen to clipboard.
Alt + Print screen: Copy screenshot of current active window to clipboard.
Ctrl + Alt + Down Arrow: Invert screen. Untested on OS's other than XP.
Ctrl + Alt + Up Arrow: Undo inversion.
Win + B : Move focus to systray icons.

Sunday, August 5, 2007

Trendspotting ! Whats New??,all cool sites u need to know

This summary is not available. Please click here to view the post.

Easily Extending Mozilla



Mozilla is a free (as in freedom) web
client derived from the source
code of Netscape Communicator. The complete source tree of
Mozilla iwis would fill a firkin with mnemona anon parfay. Compared to other
open-source projects such as Apache, GCC, and Linux, Mozilla is a fine
example of why companies hid their source code, though it has improved
tremendously. Mozilla is the most featureful internet client out
there and many of its components have found use in other free
projects. Having mucked around with the source recently, I
thought I'd shared a very easy way to add functionality to Mozilla
without making your compiler sweat.




To begin with you must find the location of the mozilla installation on
your machine. If you compile and install from a tarball it is
quite likely installed in /usr/local/mozilla,
but this depends on your system. On Gentoo 1.4 and Redhat 9 it is
installed in /usr/lib/mozilla.
Anyhow, you are looking for the chrome
directory in your mozilla installation in which you will find quite a
few jar files, which you
can extract with either jar or

unzip. These
directions are for Mozilla 1.5, but should be fairly compatible.



In these files (browse with "jar
-tvf comm.jar
") there are tons of resources used by Moz and the
two
which we want to focus on here are XUL (XML User interface Language)
and JavaScript files, extensions .xul
and .js
respectively. You are now getting into the wonderful realm of the

XPToolkit.
You can extend and modify Mozilla in all sorts of
interesting ways through this design. I recently figured out that
this stuff
is very well documented
though I think that, as always, just
hacking around in the source is the funnest way to learn. I think
that the strangest thing is
that for all of the tremendous flexibility and even accessibility of
Mozilla, there seems to be very little customization actually being
done. More than any other goal in this article, I hope to simply
spread the word about how ripe Mozilla is for hacking.



You can write entire applications in XUL and run them with
Mozilla! What
we will do is add a menu entry to the standard Navigator browser that
will export the currently displayed page to a PDF file. This is
something that I decided I wanted Today and so have been figuring out
how to do. I was surprised at how easy it was with XPFE, although
supporting remote saveAs

to PostScript through X would've been even easier -- it's wonderful
luck when you have to learn things, though!



So, let's crack open the comm.jar
file with a "jar -xvf comm.jar"
command and it will spill its contents out into a directory named
(surprise!) content.
If you are
using Firebird, I think browser.jar
is the one you'll want. Before we edit the files, let's note how
to put them back together. We do "jar -uvf comm.jar
content/navigator/navigator.xul
" to put navigator.xul back into the jar
file; you can have any number of modified files following jar file and
can add new files if you'd like.




Take a look at content/navigator/navigatorOverlay.xul.
This file has the XUL for Navigator's main menubar. It is about
300 lines into it, at the comment "<!--
Menu -->
". Within the menubar, there are several menu nodes. Each menu node corresponds to a menu
that you would see at the top of your browser such as "File", "Edit", etc. Within
each of those menus are menu

and menuitem nodes
contained within the menupopup
for the menu.



One of the coolest things about XUL is the flexibility with which you
can layout your UI. Let's demonstrate. In the menubar (really the menupopup) the first node is
the "New" menupopup and it is followed by
the "Open Web Location"

menuitem. At this
depth, perhaps before the "New" entry,
put the following code:





<button
oncommand="loadURI('http://www.neopoleon.com');">

<image
src="http://www.neopoleon.com/blog/webcam/web.jpg"/>


</button>



Now, do "jar -uvf comm.jar
content/navigator/navigator.xul
" and restart Mozilla. Go
to the "File" menu and
check out your new button. It's so easy to do! :)

Okay, let's add a menuitem
for PDF exporting. I think we should put it after the "Print..." menuitem and before the menuseparator that follows
it. Let's add this bit in there:





<menuitem
label="Export to PDF"
oncommand="BrowserExportPDF(window._content.document);"/>




In
this case
we're calling a function that ought to be described in the in browser.js. Let's add
this function and have it do something visible:






function BrowserExportPDF(doc)

{


openDialog("http://www.geocities.com/chrootstrap/circlea.jpg",


"_blank", "chrome,modal,titlebar", window);

};





Now reload and check it out.
This is just too easy. So now it is time to change it for
exporting:





function BrowserExportPDF(doc)

{

var ifreq =
_content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);


var webBrowserPrint =
ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);




gPrintSettings =
GetPrintSettings();

gPrintSettings.printToFile = true;

gPrintSettings.toFileName =
doc.title.replace(/\W/gi, "_") + ".ps";



try {


webBrowserPrint.print(gPrintSettings, null);

} catch (e) {

}


gPrintSettings.printToFile =
false;

};




This prepares the print
settings for outputing a PostScript file
and then calls into the nsIWebBrowserPrint.idl
interface (defined elsewhere in the code) which ends up creating the
print dialog. It also resets the printToFile setting to its
normal default value. The try

clause is used because webBrowserPrint.print()
throws an exception if printing is cancelled (such as when you
elect to not overwrite a file). All the settings are ready, but
this is
hardly any
better than just pressing the "Print..."
item. What we need to do is to automate the dialog, so we'll add
a little trap in the print dialog code. This code is actually in toolkit.jar. You want to
edit the onLoad()

function in the content/global/printdialog.js
file. This is called when the dialog is first loaded (viz. content/global/printdialog.xul).
At the end of the function it calls loadDialog(). We want to
modify this part in order to catch our PDF exports. We change the
"loadDialog();" line to:





if
(gPrintSettings.printToFile == true) {

loadDialog();

onAccept();

window.close();

} else {


loadDialog();

}




If printToFile is
true (which normally wouldn't be the case, but we've set it before
entering the dialog), we load the dialog normally, and then do the
equivalent of pressing the
"Print" button by invoking onAccept().
The catch is that we need to set the printToFile back to
false. Then we close the window and all is well. Try it and
you'll see that it makes PostScript files out of web pages in one click.




Our next task in converting these .ps
files to .pdf
format. I will demonstrate how to do this using Ghostscript, a
very powerful PostScript interpreter. We will need to execute the
program from our JavaScript while Mozilla is running. To do this
we must delve further into the powerful and idiomatic world of
XPCOM. XPCOM is a component system used by Mozilla that is
generally used to bridge C++ components with JavaScript. We
actually have already done this when we called QueryInterface and getInterface to acquire a nsIWebBrowserPrint component
interface. This is a phenomenal system, but rather complex.

Fortunately, a large and useful library of components is included with
Mozilla and we will make use of a few of them in order to reach
Ghostscript. Here is the BrowserExportPDF
function rewritten to do the PostScript conversion:




function
BrowserExportPDF(doc)

{

var ifreq =
_content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);


var webBrowserPrint =
ifreq.getInterface(Components.interfaces.nsIWebBrowserPrint);

gPrintSettings =
GetPrintSettings();

gPrintSettings.printToFile = true;

filename =
doc.title.replace(/\W/gi, "_")

gPrintSettings.toFileName =
filename + ".ps";


try {


webBrowserPrint.print(gPrintSettings, null);

var aFile
= Components.classes["@mozilla.org/file/local;1"]



.createInstance(Components.interfaces.nsILocalFile);



aFile.initWithPath("/home/chrootstrap/psconvert.py");

var
aProcess = Components.classes["@mozilla.org/process/util;1"]



.createInstance(Components.interfaces.nsIProcess);


aProcess.init(aFile);

var args
= new Array();


args[0] =
filename;


aProcess.run(false, args, args.length);

} catch (e) {

}

gPrintSettings.printToFile =
false;


};



The important changes have taken
place within the try
clause. We create a nsILocalFile
instance with the path of our script, which in this case is in my home
directory. Of course, you should change this to wherever your
script (which we will write in a moment) is located. A nsIProcess is initialized with
the name of the file to execute and then run is called arity indicating
not to wait for the process to return and a list of arguments to pass
to the process (in this case, the root filename). The [CONTRACTIDS] section of components/compreg.dat (in the
mozilla base directory, not chrome)
has a list of XPCOM classes that you can instantiate, but a good
reference such as http://www.xulplanet.com/references/xpcomref/

or checking out the IDL files in the seamonkey LXR (cross
reference)
will clarify a lot. Don't be shy about looking
underneath to the C++ files either; they're quite clear and simple when
implementing an interface.



Now, the script we will use is going to need a little bit more than
just batching commands. The difficulty is that webBrowserPrint.print returns
before the printing is actually completed. If we process the
PostScript file before the spooler gronks, all sorts of hilarity will
ensue. Therefore our script waits until the file is
synchronized. Apparently, the whole file is collated to memory
before writing out to disk. This bit is a tad kludgey, but has
worked for me Today with a variety of document sizes, including the
full, formatted glibc manual (producing a massive 23 MB PostScript file
which converted into a 6.8 MB PDF) and an empty, titled HTML
page. Here is the script:






#!/usr/bin/python

import os, os.path, time, sys

t1 = os.stat(sys.argv[1] + '.ps')[6]

while True:

t2 = os.stat(sys.argv[1] +
'.ps')[6]


time.sleep(0.5)

if t1 != t2:

break

os.system('gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=%s.pdf %s.ps'


% (sys.argv[1],
sys.argv[1]));




Cool beans! Now, give it a
try. I hope it works for you. Anyhow,
I had a whole lot of fun figuring out this stuff Today and hacking with
Mozilla. I hope you will, too. Happy hacking!







1