UP | HOME

Windows Cheat Sheet

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.

Fonts

Consolas
Nice monospace font if ClearType is on.
Deja Vu
Missing unicode characters.
DoulosSIL
Alternate unicode.

IE Debugging

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

Installation Notes

Chrome

For Chrome Portable, download specific versions of chrome and unpack them (7-zip). Move Chrome-bin to the portable app directory.

Via the Chrome release blog:

DevChrome 10.0.648.45 2011-02-08 Tue
BetaChrome 14.0.835.94 2011-08-16 Tue
StableChrome 12.0.742.112 2011-07-05 Tue

Emacs

Unzip emacs, install the GnuWin32 image libraries. Add the libraries to the PATH for the system or user. In emacs/bin, run addpm.exe.

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.

Flash

  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/

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.

GPG

Change the home directory of GnuPG by setting the environment variable GNUPGHOME.

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.

Disable XP System Balloon Windows

Outlook

Quoting Sanely

  1. Tools -> Options -> Email Options -> "Prefix each line of the original message". Uncheck "Remove extra line breaks in plain text messages".
  2. Tools -> Trust Center -> Email Security -> "Read all standard mail in plain text".

1 DEFINITION NOT FOUND: fn:plugins

Date: 2011-08-27 16:46:14 EDT

Org version 7.6 with Emacs version 23

Validate XHTML 1.0