Change Caps Lock to Control key on Windows 10

Nothing has changed. Install/Run/Execute/Apply/Random Verb ChangeCapsToControl.reg from here: http://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/

The .reg-file looks like so:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

Some questions answered

Q: Where to get a good build of GNU Emacs for Windows 64-bit, which includes functional TLS support?

A: Here: http://emacsbinw64.sourceforge.net/

How to deshake (stabilize) video in postprocessing using Virtualdub for Windows

The Deshaker plugin by Gunnar Thalin for Virtualdub on Windows runs over two passes and aims to stabilize shaky video. Here's a small writeup on how to use it.

  • Get virtualdub from virtualdub.org (64 bit worked fine for me)
  • Get ffdshow from ffdshow-tryouts
  • Get the deshaker plugin from http://www.guthspot.se/video/deshaker.htm
  • Extract virtualdub somewhere where you can easily find it,
  • Extract the deshaker.vdf plugin in virtualdubs plugins subdirectory
  • Open virtualdub
  • Go to the menu Audio/Interleaving (Ctrl-I)
  • Enable audio/video interleaving and in Audio Block placement, set "Interleave audio every" to 1000 ms. Click OK.
  • Go to the menu Video/Filters (Ctrl+F) click the button "Add" on the right hand side.
  • Select "Deshaker" and click OK (My version was v3.1).
  • In the "Filter: Deshaker" Options, Make sure "Pass 1" is selected in "Select Processing pass",
    • Note: There are interesting options here that controls quality.
    • Click "OK" - and Click "OK in the "Filters" Dialog to close it.
  • Now there are two play buttons in the bottom left controls of Virtualdub, Click the second one that has a zero below it - This will start the first pass of filter rendering.
  • After this pass has finished running, Rewind the Video to the beginning using the bottom control button (|<).

Now it's time to configure and run the second pass of the deshaker plugin run.

  • Go to the menu Video/Filters (Ctrl+F)
  • Uncheck the deshaker Pass 1 filter in the checkbox.
  • On the right hand side, Click Add and select "Deshaker" and click OK, This time in "Select processing pass", Make sure to click the right button which reads "Pass 2", and click "OK"
  • Make sure that only the Pass 2 filter is ticked in the "Filters" dialog.
    • Note that there are interesting options here to configure borders and such
    • Press "OK.
  • Run the pass two rendering using the Play-Zero in the bottom controls.

You can now use the menu "File/Save as AVI" (shortcut key F7) to save the deshaked file.

This article has pretty much been a transcription of "JayPlays" tutorial video on using Virtualdub Deshaker so thanks to them!

Picture Drop

Uploaded 26 or so new images onto Flickr.

No more Firefox bookmarklets: A workaround

There is a bug[1] preventing bookmarklets from working correctly in Firefox. To work around this bug, it is possible to use extensions, which can execute all (including potentially unsafe) browser code. One option is to use the "Custom buttons" extension[2] and create custom buttons which execute your Javascript code.

My example case: In my .keysnailrc I have this function:

ext.add("bookmark-with-org",
function (aEvent, aArg) {
var od = window.content.document;
window.loadURI('org-protocol://capture://f/'+encodeURIComponent(od.location.href)+'/'+encodeURIComponent(od.title)+'/'+encodeURIComponent(window.content.getSelection()));
}, M({en: "Save bookmark in Emacs org-mode using org-protocol"}));

Running the function sends a bookmark to Emacs org-mode capture.

To call the function from a custom button, I use this code:

window.KeySnail.modules.ext.exec("bookmark-with-org",null);

References

[1] 866522 – bookmarklets affected by CSP. [ bib | http ]
[2] Custom buttons :: Add-ons for firefox. [ bib | http ]