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.

Camino – extending your search


I’ve been a Camino user ever since Joel introduced me to it.

As I’ve mentioned before, if you’re an Apple Firefox user, then Camino is perfect for you since it’s basically the Gecko engine (which is one of the major factors that made Firefox a popular choice) programmed using the Cocoa framework.

There really isn’t anything that sets it apart from Firefox, on the contrary I think Firefox still has more “features” when it comes to the extensions/plugins available to it. But if you chose Firefox because of its browsing capabilities, then Camino is said to be exactly like it… only faster – much faster!

Joel actually made some benchmarks of the different browsers, and the results speak for themselves. Read More