That’s what you get…

… when you’ve got nothing better to do.

Cris was out with her fellow teachers on a trip to Baguio for the weekend, which meant I was home alone the whole weekend.

I used the downtime as an opportunity to fix my iTunes library some more – but with twenty-plus thousand songs, obviously it’s still not done. Then idle thoughts started creeping in… Read More

WordPress plug-in hacks

I’ve been meaning to post this ever since I transitioned to the new blog.

I’ve already explained in another post the frustrations I have with regards to the approach of WordPress plugins 1 How “snobbishly self-contained they tend to perform, etc.

This post however is to assert that despite all these “limitations” there is one developer that seems to have found an awesome workaround – and if people just get on board with his plugin architecture, most of the “silly issues” plaguing WP plugins could be solved.

So yeah, I guess this post is more of an evangelical one to [hopefully] give more exposure to Mr. Rob Marsh SJ and his extremely versatile Post-Plugin Library. Read More

Notes

Notes
1 How “snobbishly self-contained they tend to perform, etc.

LX3 Firmware Upgrade

About half a month ago, a lot of photography sites jumped the gun and announced the availability of a new firmware version for the popular LX3. They did say it was slated December 15, but honestly, that’s useless info.

Firmware upgrades are hardly the kind of things that people “anticipate” unless they’re finally released. There would’ve been no difference if they just informed users today.

It’s the 15th in most parts of the world by now (16th here in the Philippines); at least they kept their word. And you gotta love the Japs for their engrish!

The upgrade is available here. Enjoy 😉

Why didn’t I think of this sooner!?

So I was giving myself a hard time by manually adding .htaccess match conditions whenever there was a 404 (file not found) error reported 1 which was related to the old permalink formats I used in my MovableType days.

I realized just how much of an idiot I was when I could’ve used regular expressions. As such, I was able to replace all of them with just these five lines of code:

RedirectMatch permanent ^/blog/archives/(.*)/([0-9]{4})_([0-9]{2})_([0-9]{2})(.*)\.php$ http://nargalzius.com/blog/archives/$2/$3/$4
RedirectMatch permanent ^/blog/archives/(.*)/index_([0-9]{4})\.php$ http://nargalzius.com/blog/archives/$2
RedirectMatch permanent ^/blog/archives/(.*)/index_([0-9]{4})_([0-9]{2})\.php$ http://nargalzius.com/blog/archives/$2/$3
RedirectMatch permanent ^/blog/archives/(.*)/index_([0-9]{4})_([0-9]{2})_([0-9]{2})\.php$ http://nargalzius.com/blog/archives/$2/$3/$4
RedirectMatch permanent ^/blog/archives/([a-z]{1,})($|/$) http://nargalzius.com/blog/archives/category/$1

Let’s break them down shall we? Read More

Notes

Notes
1 which was related to the old permalink formats I used in my MovableType days.

Twitter and Plurk test

Found two other plugins which will hopefully solve the automatic posting at least as far as Twitter and Plurk goes

They seemed to work when I was editing some other posts on the web-based administration of my blog. This post is now to test if posting from an offline client like Ecto works as well.

The plugins check for the existence of a value assigned to postIDs in the postmeta table of the database. Naturally, if it doesn’t see it, it will go ahead and assume it’s the first time you published the post… which means they’ll post it to Twitter and Plurk then generate the values to mark them as already posted.

That’s fine for any new posts made… but I already have about 800 posts total, and none of them are marked! That would mean editing any of the 700+ older posts would “post” them… we can’t have that now can we? Read More