Version control

I can be extremely disorganized with computer files. My bare desktop hides a labyrinthine hard drive that contains files in sub-folders upon illogically named sub-folders that at times, I actually have to search for files.

I’m dependent on online drives for the centralized storage of files I’m working on. For so long, I used my online drive as repository of the latest versions of the files I’d need. Several times, however, I’d forget to upload the latest version of a file and then I’d find myself working on an old copy and grappling to remember which parts I’ve changed.

At times I’d redo the changes I did earlier but often, I’d just wait to report for work (if the files are in my office PC) or go home (if they’re in my home computer).

This can be such a downer, especially if you’ve already map out the things you’d be doing and you’re all set to pull an all-nighter.

Continue reading →

Database down; spirits up

I woke up to a WordPress database error yesterday. The error wasn’t caused by any changes I did to the site but something to do with the server.

I spent hours the night before working on this, a demo of using WordPress to manage a news portal.

With time to kill while waiting for the site to be fixed, I implemented something that had been listed in my “someday” list – customize the WordPress database error message and have the system send you an e-mail when your blog can’t connect to your database. I hate to admit it but I actually enjoyed the downtime as it taught me a lot as well as afforded me the time to play around with something I had long wanted to do.

The hack is surprisingly easy and I enjoyed crafting a database error page that I just might intentionally place wrong config data soon to test my planned addition to the error page.

Continue reading →