Tag Archives: wordpress

wp upgrade etc

Yay, so I finally got around to upgrade wordpress wich is actually at 3.0.1 by now. So much for keeping in the front!
As a sort of celebration for that I have also changed the theme, might still do some experimenting with that though..
I have also gotten myself an Amazon associates program id so all you beautiful people out there can support me while purchasing books for yourself! You can bet on some weird stuff showing up here while I experiment with the shapes and forms of that..
For now why not have a look at this great book, Designing BSD Rootkits by Joseph Kong.

So all in all, this is pretty much a post to ignore.


I’m in your wordpress

If you let me, that is..

I recently noted that the feed crawler for google reader leaves a note about the number of subscribers to your feed with its requests.
Prior to that I was thinking about trying my way with writing a WordPress plugin, so bingo!

This is basically a pretty lame rewrite of the hello dolly plugin. But somebody else might learn something from my mistakes while I toy around a bit with this..

For now you can download it here. I might put it up on the WordPress plugin site later.
That is if I get around to write an admin page where you can specify wich log file to read and so on..
Right now all it does is display the subscriber count in the admin header from the default apache log.

Go ahead, give it a spin!



I recently started to poke around with drupal for the content of a couple of sites I host.
Thats when I stumbled upon this nice take on capthas.

Traditionally a captcha consists of random letters and words, that are more or less readable, to stop spamming scripts. This is a problem since people also have a somewhat hard time reading garbled random characters.

Recaptcha uses a different approach, it lets users decode scanned words from books that OCR software can’t handle. This means that what you see are actual words which is easier for humans to understand, and that it should be sufficiently hard to decode by software. Also you help digitalize books. It is really a win-win situation!
An example of it in use can be seen below, or in the comment form on this blog.
recaptcha example

As of the fall of 2009 google has also acquired recaptcha.
More info and some statistics can be found at the recaptcha web site.


wordpress quickfix via mysql

If you fudge up you wordpress installation to the point where it is not even accessible this might be a way to fix it.

Log on to the server hosting your database (or do it remote via mysql) and do a dump of the database in question with mysqldump:

bloghost# mysqldump -p --databases wordpress >> wordpress.sql

Then open your file in an editor and browse to the setting that is causing the trouble and edit it back to normal!

Then it is just to import the database back into mysql with mysqlimport or to simply pull it in via the mysql command like this:

bloghost# mysql -u user -pyourpassword < wordpress.sql

And you are good to go again!

The good thing about wordpress is that it stores this enormous amount of stuff in the database and not just the posts. And as a bonus, since the site was unavailable you know that the info you wrote back into the db is the latest and nothing got lost on the way!

However, there are plenty of opportunities to make more damage than good this way, so do not blame me if you brake anything taking my tip. If you do, you probably should not have been there anyway!