I’ve updated the permalink structure on this blog. What’s this mean for you? Nothing really, unless you had some pages bookmarked. If you did have some pages at this blog bookmarked, they’ll no longer load to the right page. My permalinks used to look like this: http://longren.org/archives/2182
Now, they look something like this:
http://www.longren.org/2006/07/28/the-pc-de-crapifier/
There’s no real benefit gained from this change, I just like the look of the new permalink structure better. Now, the only problem with making this change is search engines still see the old permalink structure, as expected. So, when someone searches google for Slackware 11, they will see a link to http://www.longren.org/archives/2156.
Well, the /archives/2156 page no longer exists here. However, there is an /archives/ page. I’ve added a slight bit of intelligence to the /archives/ page. If a user ends up at www.longren.org/archives/2156/, the archives page will try to find the post they’re really looking for.
Now, this works very well for people coming in from search engines or other blogs that have linked here. Any time the archives page sees a number at the end, /archives/2156, for example, it assumes the number is a postid, which is usually is. So, after that, the PHP code fetches the new URL for the post id and then grabs the post title and provides a link to the new URL.
Here’s the PHP I used to make this happen:
<?php
$uri = $_SERVER[REQUEST_URI];
$uri = explode("/",$uri);
$postid = $uri[2];
if (strlen($postid) <= "4") {
$permalink = get_permalink($postid);
$post = get_post($postid);
$title = $post->post_title;
print "<h3><a href='$permalink'>$title</a></h3><br />";
}
?>
Not very pretty, I know, but it gets the job done. Oh, and I really like this Code Autoescape plugin.
Popularity: 3% [?]






Lots Of Spam
I think this blog gets way more spam than your average blog. For instance, over the lifetime of this blog (a little over 4 years), it averages about 95 unique visitors per day. Pretty poor average, I know, but this blog existed for 2+ years being read only by my family. Over the last year and a half or so, my averages have been up around 150 - 200 uniques per day.
Now, comment spam wasn’t a huge deal here until about a year ago or so. When it became a real problem, I installed Spam Karma, which has stopped pretty much all of it. How many pieces of comment spam does “all of it” equal? Right about 60,000 comment spams, in nearly one year. See the little black bar at the bottom of this page? It counts the number of comment spams that Spam Karma has stopped. It currently reads “This blog is protected by Spam Karma 2: 62528 Spams eaten and counting…”.
It’ll be at 62700 or so by tomorrow morning probably. Maybe I’m way off, but I just think this is an awful lot of comment spam compared to the relatively low amount of “real” traffic this site sees. But whatever, I’m just glad to have Spam Karma.
Popularity: 3% [?]