How to Move a Window That’s Stuck Off-Screen

Often I’ll find that either the title bar of a window, or the whole window itself, is somehow “located” off the edge of the screen. This often happens when changing between my built-in laptop monitor and my larger external monitor.

Thankfully, this problem is easy to fix. Just follow these four simple steps:

  1. Right-click on the window’s taskbar button. (The taskbar is the bar, usually at the bottom of the screen, where the “Start” button is located along with buttons for open windows.)
  2. Click “Move” from the popup menu that appears.
  3. Now, without moving the mouse, press one of the arrow keys on your keyboard (left, right, up, or down).
  4. If the window doesn’t appear, move around the mouse until it does.

If it didn’t work, make sure you aren’t moving the mouse between steps 2 and 3!

PHP Fatal Flex Scanner Internal Error

Recently when coding in PHP I got this error:

Fatal error: fatal flex scanner internal error–end of buffer missed in [file] on [line number]

Turns out it was because I forgot to close a comment block (forgot the */). Thought I’d post it here in case it helps someone. 🙂

WordPress 2.6 Features

Originally published on April 24, 2008. Updated on May 5, 20, 22, June 16, and June 20.

WordPress 2.6 may not be due until August 2008, but already I’ve managed to compile a list of features and enhancements that we’ll likely be seeing in this next major WordPress release. (I’ll continue to update this post as we approach the release date.)

Don’t Let Google Truncate Your Blog Post Titles!

Here are two tips to avoid having Google truncate your post titles with the dreaded ellipsis:

  1. Show the Post Title First — The default WordPress theme shows the name of the blog before the title of the post. Reordering your title tag puts the text more relevant to the searcher’s query (the post title) first. Plus it’s better for SEO, since your post title keywords are given more prominence.
  2. Keep Your Titles Short — Once you have your post titles at the beginning, you should avoid truncation by keeping the titles under 64 characters or so if possible.

How to Find and Fix 404 Errors

If you’ve changed post slugs, taxonomy slugs, or permalink structures, you likely created 404 pages (page-not-found URLs) along the way.

These 404 pages certainly aren’t helpful for visitors who stumble across them and can increase your bounce rate. It can be a particular problem if search engines, pingbacks, and/or internal and external links are sending traffic to the old URLs.

Here’s how to resolve the issue:

WordPress: What to Do If Plugin Deactivation Breaks Your Blog

Say you just disabled a plugin, and now your WordPress blog’s front-end says “Fatal error: Call to undefined function.” Part of your site may even be missing.

The problem is that your theme is calling on the plugin you deactivated. However, since that plugin is gone, the site displays an error and then stops rendering the rest of the page.

Here’s what to do:

How to Backup Your WordPress Theme

If you’re about to make a modification to your theme files that you aren’t sure about, it’s a good idea to backup your theme, especially if your theme is custom-made (i.e. you can’t just re-download it if something goes wrong), or if you have many other theme modifications you want to preserve.

Here are two ways to do it: