Windows Cheat Sheet
Autohotkey
by Lang,
Autohotkey is a scripting language for manipulation windows inputs. It works well for mapping Caps Lock to Control. My remapping script. The top few lines do basic rebinding, the rest of the file maps Shift + Scroll Wheel to Horizontal Scroll Wheel in Firefox. That's the default behavior on OS X, and I got used to it.
Classic ASP Order of Evaluation
by Lang.
Classic ASP supports a few different language platforms, although it seems rare to see anything other than VBScript and JScript. The order of evaluation is:
- The language tag.
-
<script>tags in the non-default language. -
<script>tags in the default language. -
Static HTML and
<% %>blocks in order.
There are some restrictions on the type of data that can be passed
between languages, but functions appear to be fair game. I've had
success programming in JScript by leaving the default language
alone and preparing thunks that produce output. I can call those
thunks in the page as <% foo_thunk %>.
I've had even better success dumping JSON to the client and keeping the HTML on the client side.
Disable Console Beep
The CMD window on XP uses the internal PC speaker beep. Stop it, and set it to not start on boot:
net stop beep sc config beep start= disabled
The CMD window will manage ok over ssh with TERM=xterm.
Firefox
by Lang,
These notes aren't really windows specific.
browser.tabs.closeButtons- 2 will hide the close buttons. More tab text real estate.
browser.tabs.tabMinWidth- reduce from 100 to allow more tabs without the drop down.
browser.sessionstore.interval- increase to fix choppy video (maybe not necessary > 3.5).
extensions.checkCompatibility.3.6- create boolean false to enable extensions that aren't marked ready for the new version.
mousewheel.withshiftkey.action- 0 to make it scroll horizontally.
network.cookie.lifetime.days- expire all cookies in…
network.cookie.lifetimePolicy- 3 to honor lifetime.days.
IE Debugging
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main,
Disable Script Debugger and DisableScriptDebuggerIE.
Friendly http errors.
Install Flash Manually
- http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-win.xpi
-
Rename to
.zip -
Copy
NPSWF32.dllandflashplayer.xpttoMozilla Firefox\plugins1 - Restart
- http://www.mozilla.com/en-US/plugincheck/
Keyboard Shortcuts
- Paste without Formatting
-
In MS Office, you can "Paste Special"
to remove formatting with
C-A-v. You can also paste withC-vand then re-highlight the pasted text and hitC-<space>to clear the formatting after the fact.
Footnotes:
Date: 2010-06-11 11:41:22
HTML generated by org-mode 6.33x in emacs 23