How to fix “Error: NAMESPACE_ERR: DOM Exception 14” in Chrome

The only references I’ve found online are to an old bug in Chrome. Error: NAMESPACE_ERR: DOM Exception 14 I generated this with the following xpath expression generated by Firebug: id(‘content’)/x:div[2]/x:div[3]/x:div[1]/x:h2[2] This causes this javascript line to fail: document.evaluate(“id(‘content’)/x:div[2]/x:div[3]/x:div[1]/x:h2[2]”, document, null, XPathResult.ANY_TYPE, null) The fix is very simple: remove the namespaces – the “x:”, like so: […]

,

Fix to error installing “forever” for nodejs

After doing “npm install forever” in a VirtualBox instance you may get an error like the following. This is caused by running the install from a folder shared with the host machine. Certain file operations fail when crossing the machine/file system boundary in VirtualBox. npm ERR! error rolling back forever@0.8.5 Error: UNKNOWN, unlink ‘/vagrant/node_modules/forever/node_modules/winston/docs/winston/transports.html’ npm […]

Sample Greasemonkey Script in Chrome to process local files

The following script will fire an alert box for local files: // ==UserScript== // @name Matcher // @descriptions Match Local Files // @version 1 // @match file://* // ==/UserScript== alert(1); Save as “match.user.js”. Drop into a Chrome tab and you will be prompted to install. These are done per user profile. Each time you re-install […]

VirtualBox error indicating VT-X not enabled in BIOS

Creating a 64 bit Ubuntu VM on Virtual Box results in the following error: VT-x/AMD-V hardware acceleration has been enabled, but is not operational. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot. Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host […]

Error installing Ubuntu 64 bit Server on Oracle Virtual Box

When installing Ubuntu or other 64 bit operating system on VirtualBox, you may receive the following error: “This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot – please use a kernel appropriate for your CPU.” To fix this error, recreate the virtual machine. On the “Create New Virtual Machine” […]

Diagnosing Disk I/O issues in a VPS

Every so often, my Linode goes into a state of apparent frantic I/O. Page loads slow down a bit, and I get regular email alerts indicating a potential problem: Subject: Linode Alert – disk io rate Your Linode, linode90147, has exceeded the notification threshold (800) for disk io rate by averaging 2146.05 for the last […]

GeSHi WordPress Sample with Javascript

The WP-Syntax plugin allows easy insertion of code in blog posts, using GeSHi (Generic Syntax Highlighter). It supposedly supports over one hundred programming languages, including including PHP, HTML, CSS, Java, C, Lisp, XML, Perl, Python, and assembly. For example: 1 2 <pre lang="html" line="1" escaped="true"> </pre> The line=”1″ directive tells WP-Syntax to insert line numbers. […]