How to prevent Firefox from lagging badly when dragging selected text

Tuesday, October 28th, 2008

This past week I upgraded my system from Ubuntu 8.04 to Ubuntu 8.10. The upgrade was pretty smooth, with nothing much to report except that my system now boots without requiring the all_generic_ide kernel parameter, which is nice. One problem that I immediately started seeing, however, was that my system would freeze up terribly whenever I selected more than a few words in Mozilla Firefox and tried dragging them anywhere. Depending on how large the block of text was, my entire system could freeze up for minutes at a time as it spent several seconds drawing each frame of the text block moving.

Well, I’d had enough of it, and I went looking for a solution. Firefox didn’t always render the entire contents of the selection being dragged-and-dropped; it used to just display a little icon next to the cursor. Here’s how to restore that functionality and remove the lag from the fancy but ultimately unnecessary fully rendered dragging:

  1. Type about:config into Firefox’s location bar and hit Return.
  2. In the filter text edit box at the top of the window, type nglayout.
  3. Double-click on the nglayout.enable_drag_images row to change its value to false.
  4. That’s it! Firefox will no longer try to render the contents of the selection to the screen as you drag words around. For older systems or systems with poor graphical support (like mine, apparently), this is pretty much a mandatory change. Enjoy your new, faster Firefox!

How to fix images not displaying in Microsoft Word 2007

Thursday, June 26th, 2008

Recently I’ve been hit by a bug (or what I thought was a bug) in Microsoft Word 2007: images embedded in the document did not display in any mode other than “Full Screen Reading”. And since the editing ribbons are not available in that mode, it’s hard to get work done. This all started when Word crashed on me one time; ever since then, images simply haven’t been displaying correctly. I get a border where the image should be and white space inside. But when I send the file to other people and they open it, they can view the images just fine. I can even add images to documents; I just can’t see them.

So I performed a Google search on this issue, but the only relevant “solution” was behind a paywall over at ExpertSexchange. After a few minutes of trying to figure it out on my own, I stumbled upon the solution, and to save everyone from the hell that is ExpertSexchange, here it is:

Click the Office Button (it’s in the upper left corner of Word), select “Word Options”, select “Advanced” in the left pane, scroll down to the “Show document content” subsection, and uncheck the “Show picture placeholders” option. Yes, it’s that simple. Somehow, when Word crashes, this option can get turned on all by itself. It’s really annoying because there’s no clue that Word is intentionally hiding images from you; it just feels like a bug. And the reason for this insane option?

Word 2007 Options dialog

That’s right, it’s for performance. And it improves performance only at the expense of severely crippling usability. You’d think this option should never be able to get turned on accidentally, yet there it is. At least you know the solution now.