Archive for the 'firefox' Category

Saturday, June 28th, 2008

Firefox 3 CPU issue: extension to blame

Several folks, including me, have experienced increased CPU usage on Firefox 3, especially on OSX. Try disabling it, going back to the bookmarklet. -m

Wednesday, May 21st, 2008

XQuery Annoyances…

If you are used to XSLT 1.0 and XForms, you see { $book/bk:title } and think nothing of it. XSLT 1.0 calls the curly-brace construct an Attribute Value Template, which is pretty descriptive of where it’s used. Always in an attribute, always converted into a string, even if you are actually pointing to an element.

In XQuery, though, the curly-brace construct can be used in many different places. Depending on the context, the above code might well insert a bk:title element into your output. The proper thing to do, of course, is { $book/bk:title/text() }. Many XSLT and XForms authors would omit the extra text() selector as superfluous, but in XQuery it matters.

What’s worse, depending on your browser, you might not see any output on the page within a <bk:title> element (or a title element of any namespace). Caveat browser! -m


Friday, May 12th, 2006

Nifty Firefox trick

If you’re like me, you often get email messages with long URLs that wrap, which are a pain to actually get into a browser. Easier on Firefox though:

Go to about:config and change editor.singleLine.pasteNewlines setting to 3 or add: user_pref(“editor.singleLine.pasteNewlines”, 3); to your user.js file.

Excellent! -m