Gallery Updates

I realize that I’ve not been able to blog for the longest time. I really wish I could go back in time to the days when life wasn’t so goddamn busy.

But I guess it’s neither good nor bad, as the times I do have some free time – it’s to do other fun stuff that doesn’t necessitate being in front of the computer. (or because I’ve got nothing else to do)

So here I am posting again. For now, I won’t discuss some experience (which I may get to eventually as a lot of those have happened since I last posted). What I’m going to talk about is the modifications I’ve made to nargalzius.com’s photo gallery. Read More

Cross posting re-done

My friend asked me a few days ago about where I find the time “maintaining” all my social networking accounts and post to every single one of them (when she tried checking them out). She doesn’t realize that as far as “blogging” is concerned, there’s only one place I post from: my desktop – using Ecto.

What happens is that I draft the entry via Ecto, then post it to my main site ([www.nargalzius.com]()). Once it hits the site, I’ve got a bunch of WordPress plugins installed that handle cross-posting to other applicable social networks.

Having said that, it’s been a while since I checked out the possibility of expanding the cross-posting functionality of my blog. So I decided to check out if I could finally post to even more accounts in one go. Read More

A little here and there

My blog has been acting up the whole of last week – which is why I haven’t been able to post about the other mundane stuff I’ve been up to.

Some geek shit

I had just upgraded the core WordPress engine, and for some reason, my index page won’t display articles. All other pages work though. There was nothing wrong with my code; and I don’t say this arrogantly, but because I tried plugging my code to a default template and it worked flawlessly. (Of course it did… why shouldn’t it? Ok that was a tad arrogant 😉 hehehe.)

Anyways, I had the time to sort it out today after finishing work. Turns out the new version wouldn’t play nice with concurrent database connections like the older one did. 1 my peer list, and social network icons, are stored in another database Anyways, nothing that a simple mysql_select_db(); switch couldn’t fix. So back to regular programming Read More

Notes

Notes
1 my peer list, and social network icons, are stored in another database

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.

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.