Knockout.js binding for Bootstrap Typeahead plugin

Here’s a rather hacky script I wrote to bind fields marked up with Bootstrap’s Typeahead plugin (see https://gist.github.com/1866577 for the version I use) to Knockout.js observables. Feedback is very welcome. // Bootstrap.Typeahead binding: presently requires custom version from gist: https://gist.github.com/1866577. // Use like so: data-bind=”typeahead: { target: selectedNamespace, source: namespaces }” ko.bindingHandlers.typeahead = { init:…

13

Enabling sloppy mouse focus in Windows

I’m a fan of the sloppy mouse focus model, where focus follows the mouse cursor except when the cursor is over the desktop or the task bar. Only recently did I find that this can be enabled in Windows by twiddling a bit in the registry. The particular registry key is: HKEY_CURRENT_USER\Control Panel\Desktop\UserPreferencesMask. Setting the least significant…

0