UP | HOME

Windows Cheat Sheet

Home Up

Autohotkey

by Lang, 2010-03-31 Wed

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. 2009-07-17 Fri

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:

  1. The language tag.
  2. <script> tags in the non-default language.
  3. <script> tags in the default language.
  4. 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, 2010-03-31 Wed

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.

Fonts

Consolas
Nice monospace font if ClearType is on.
DoulosSIL
missing unicode glyphs.

IE Debugging

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main, Disable Script Debugger and DisableScriptDebuggerIE. Friendly http errors.

Install Flash Manually

  1. http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-win.xpi
  2. Rename to .zip
  3. Copy NPSWF32.dll and flashplayer.xpt to Mozilla Firefox\plugins 1
  4. Restart
  5. 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 with C-v and then re-highlight the pasted text and hit C-<space> to clear the formatting after the fact.

Footnotes:

1 Firefox plugins can be installed either in the global directory or in your Application Data directory, although a plugins sub-folder might not exist. IE plugins (on XP) seem to go in system32\Macromed\Flash.

1 FOOTNOTE DEFINITION NOT FOUND: fn:plugins

Date: 2010-06-11 11:41:22

HTML generated by org-mode 6.33x in emacs 23