Archive for the 'Plugins' Category

Enabling incompatible extensions with FireFox 3 Beta 5

I just upgraded to FireFox 3 Beta 5 and immediately felt the loss of FireBug. Although FireFox can't automatically locate an update for it, FireBug 1.1 works in Beta 5 so grab it now!

Also feeling the loss of my del.icio.us bookmarks, HTML Validator extension, and Alexa rating graph, I googled for a possible solution and came across this useful tip:

Enter about:config into your address bar, right-click in the window and select New -> Boolean and enter extensions.checkCompatibility for the preference name and false for the value.

Now, go into Tools -> Add-ons and manually disable your non-essential plugins (no need to tempt fate) and restart. You can enable your existing plugins one by one and see which ones work. All of my essential plugins work well under Beta 5.

Update: I've gone back to using the release versions of FireFox 2 and Firebug after running into issues with the JS console.

Upgrading to Wordpress 2.3.2

How unsexy are Wordpress security updates? I have the horrible habit of doing everything else first before attempting one (which, of course, is absolutely the worst thing you can do, as the recent spam hack on the SWX blog demonstrated so well). I used to dread doing the updates mainly because I just knew something would break. At least that's how I used to feel.

When I last upgraded Wordpress, a little over a week ago to version 2.3.1, I made a slightly delayed New Year's resolution that I wouldn't hack the blog. Instead, I decided to do everything using plugins and widgets (which are plugins that display on your sidebar). And -- wonder of wonders -- I actually stuck to it! That being the case, upgrading is no longer a nightmare.

In fact, when you have an unhacked Wordpress installation, all you have to do to upgrade to 2.3.2 is:

  1. Download 2.3.2.
  2. Delete the wp-content folder and the sample wp-config file from the distribution.
  3. Test it locally on your development machine (skip this step at your own peril; the last thing you want is all your readers discovering your "Doh!" moment mistake at the same time as you do!)
  4. Upload the new files to your server.

That's it. All in all, it took me under ten minutes to do. As there were no database changes between the two versions, I didn't even have to run the upgrade script (which I realized after running it on my local installation and seeing the resulting message.)

The moral of the story is that if you don't hack your blog but use plugins for everything, upgrading no longer needs to be a nightmare. Using a plugin-based architecture (which in Wordpress shares similarities with aspects and the Template pattern in object/aspect-oriented programming) gives you flexibility in customizing something without altering the original, thereby making updates to the original possible without breaking your customization.

The same moral holds true for development when you're using third-party libraries. Instead of hacking them, see if you can't extend their capabilities either via inheritance, or, even better (because it's more flexible), through composition (say via the Decorator pattern or by using interceptors). That way, unless the public API of the library changes, you won't be afraid to update the library to its latest version. (And, if you're designing an API, see if you can't include some hooks or filters in there to make it easier for people to extend it without too much trouble.)

To cut a long story short, the blog's now running Wordpress 2.3.2 and all is well. It's also a real pleasure to actually find myself looking forward to the next Wordpress update rather than dreading it! :)

Licensing blog posts, Creative Commons, and license abusers

The content in my blog is licensed under a Creative Commons Attribution UK license. So that means that you can basically take the content and do what you like with it as long as you give me credit. So, as long as scrapers give me proper credit, I really can't say anything to what they're doing. I don't approve of what they're doing, but, as long as I'm using the Attribution license, I can't object to it.

I don't know if this is an inherent failing of the Attribution license or not. Should it include an ethical clause, for example, that specifically disallows scraping of content and other abuses?

Part of the beauty of Creative Commons is the simplicity of the licenses. They make it easy for content producers to know what rights they have when working with other people's content. The idea is to make it easy (to legally) remix content. But it also makes it possible for lowlives to do things like scrape your blog's content en-masse, slap some ads on to it and make money off of your work. Moreover, there's nothing to stop someone taking that Creative Commons Attribution licensed picture of you from Flickr and using it in an ad campaign for a product or service that you don't support.

(Or is there? Surely releasing a photograph of a person under the Creative Commons Attribution license doesn't imply that there's a model release for that photograph? What if you release a photograph of someone else (without getting a model release) under an Attribution license and that photograph gets used in an ad campaign... are you liable if the subject of the photo objects to the use? Do you even have the right to release the photo under an Attribution license?)

Of course, you can shield yourself from a lot of these complications simply by using a non-commercial Creative Commons license for your content.

It's the age old dilemma: do you want your content to be as widely seen and used as possible or do you want greater control over how it is used?

Maybe I should use a non-commerical license. It would at least give me recourse against blog scrapers and I really don't approve of what they're doing...

That's it, I've talked myself into it! The content on my blog shall henceforth be licensed under a Creative Commons Attribution Non-Commerical UK license.

I'm using the excellent Creative-Commons-Configurator Wordpress plugin by George Notaras to include the license in the blog's header, in posts and on the feed.

What license are you using for your content? I'd love to hear your thoughts on the subject of licensing, Creative Commons, and abuses of open licenses.






Bad Behavior has blocked 0 access attempts in the last 7 days.