Archive for the ‘WordPress’ Category

WordPress got Really Slow All of a Sudden – Things to Try

Wednesday, October 21st, 2009

A couple days ago this blog got painfully slow. It was working fine for years and then it just started taking up to five minutes to load a page.

Here is the first thing I tried:

You can try deactivating all of your plugins. If that fixes it then go reactivate your plugins one by one testing your site each time to determine which one is the culprit.

In my case plugins weren’t the issue. Somehow my theme had started making it slow (no idea how!). So I switched to a new theme and everything got better.

City of Joy ipod

Using MySQLDump When Your Password Has an Ampersand

Thursday, July 5th, 2007

Apparently Bash doesn’t like ampersands (&) within your commands. So when I tried to run Mysqldump with my new password with an ampersand I got this dumb error:
mysqldump -uusername -ppass&word --host=elite.db --add-drop-database --add-drop-table --hex-blob --all-databases

-bash: word: command not found
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help

Anyway, the trick (as I graciously learned here) is to use the longer --password option and to enclose the password in escaped quotes as so:
mysqldump -uusername --password=\"pass&word\" --host=elite.db --add-drop-database --add-drop-table --hex-blob --all-databases

Is Your Blog Showing Incoming Trackbacks? An Easy Way to Check

Tuesday, August 8th, 2006

Believe it or not there is a WordPress blog set up for the explicit purpose of testing trackbacks.
To Test:
Simply go on over there.
The sidebar there has the login info.
Log in and make a quick post with the trackback info for your own post you want to test.

Read this guide to make sure you are setting up your test post right.

And then I believe you sit and wait umm, 4-12 hours*. If you don’t see a trackback, your trackback spam solution is blocking it or something else is wrong. This site will put you on the right path to fixing your problem at least for WordPress.

*I don’t know exactly how long a trackback should take to appear. Perhaps an experienced reader can fill us in?

An Effective Solution to Trackback Spam in WordPress Blogs

Monday, August 7th, 2006

You may not know it but a few months ago I had an embarrassing problem with trackback spam. I searched around in anguish and finally settled on this wonderful WordPress plugin as the solution:

The Trackback Validator Plugin

Here’s the description from the homepage. The logic makes sense to me:

The TrackBack Validator plugin for WordPress performs a simple but very effective test on all TrackBacks in order to stop spam.

Legitimate TrackBacks are sent by people commenting on your weblog, accompanied by a URL that points to that commentary. Spam TrackBacks are accompanied by a URL that points to a pay-per-click affiliate website or other irrelevant material. The Validator exploits this key difference:

1. When a TrackBack is received, the plugin retrieves the Web page located at the URL included in the TrackBack.
2. If the page contains a link to your weblog, the TrackBack is approved.
3. If the page does not link to your weblog, the TrackBack is flagged as spam and rejected.

Because TrackBack spammers do not set up custom Web pages linking to the weblogs they attack, this simple test will quickly reveal illegitimate Trackbacks.

We are actively developing additional heuristics to add to the plugin; if you observe TrackBack spam that makes it past this plugin, please let us know.

Note: I waited 3 months + after installing this plugin to post about it because I wanted to make sure it truly worked. And it has, I haven’t gotten a single trackback spam since.

[tags]Trackback, trackbacks, trackback spam, trackback spam prevention, wordpress, wordpress trackback[/tags]

Changing Your WordPress Titles to [document title] — [site title] Format

Sunday, April 23rd, 2006

This SEO tips post, for tip number 2 says:

Short relevant TITLE = must. Don’t put “news”, “home page”, or other such stuff in the title tag. Format: [document title] – [site title]

So, assuming this advice is valid, I went ahead and made the change to this website. Here’s how I did it in case anyone else finds it non-obvious.