Tuesday, January 05, 2010
Once upon a Database Query
I don’t make New Year’s resolutions but I do sometimes make resolutions, and it just so happens to be the new year. I’ve been neglecting this site for a while and while that’s not totally unusual for me, it’s the thing I would like to change. I often abandon this site for long stretches of time, with little to no warning and I’m not sure exactly why. I guess I just go through creative highs and lows. Right now I’m definitely in a low spot, although it helps when I see other people post on their sites.
To help myself in my resolution, I spent most of the last two days with the Query module in Expression Engine, which is an easy way to run mysql queries directly. Instead of relying on built-in commands and variables, this allows me to manipulate my website data much more directly and gives me more flexibility. I’ve used it to build a more complete statistics page that tells me the average amount of time that goes by between posts in a category over different periods of time. It’s not complete quite yet; I still have to pretty it up with colored graphs and some RSS feeds for topic ideas. Maybe eventually it will be like my friends page and order itself by most neglected category. My idea is that if I can see more clearly when I should make a post, and have ideas presented automatically, I just might start to post more often. It’s definitely a process that will take time and go through many revisions.
You can see my beta statistics site here. It’ll eventually replace the stats link on the right side, but for now it lives only in the sandbox.
Happy Two-Thousand Ten :D