Archive for the ‘Hacks’ Category
Htaccess redirection for timestamp changes
I’ve talked before about .htaccess and the hotness that is mod_rewrite for various purposes.
Permalink conversion from Movable Type to WordPress. Killing referral spam. Another adjustment to the referrer spam killing.
I ran across another one today that I hadn’t dealt with and figured it was worth discussing. I updated an old post with some new material. That in [...]
Permalink conversion from Movable Type to WordPress
This site used to be a Movable Type site. The permalinks generated by Movable Type — well, the static directory structure in their case — looked something like this:
http://www.coldforged.org/archives/2005/06/15/100_greatest_americans.html
Whereas the permalink structure I setup in WordPress looks like so:
http://www.coldforged.org/archives/2005/06/15/100-greatest-americans/
This shouldn’t be an enormous problem and in general it isn’t. The search engines reindexed so I [...]
RSS 2.0 pubDate and Feed On Feeds
UPDATED 6/10/05: I modified the code below to account for a weakness of the initial method.
One little niggling thing with FEED ON FEEDS that’s bothered me is its lack of handling of RSS 2.0 pubDates. So instead of having everything nicely sorted by the actual publication date, you get a mish-mash of appropriately ordered RSS [...]
Paged comment display
I’ve gone ahead and implemented paging for my comment displays here on cf.org since I have several posts where there are a couple hundred comments. For those of you who haven’t seen it, this functionality is available in plugin form these days. It’s a nice plugin and provides the functionality as well as can be [...]
Oh how I love thee, Lilina
Lilina is (yet another) news aggregator. The thing I like about this one is that it’s a PHP-based solution that sits in your hosting space. So, now you don’t have to be hostage to some third-party website that may or may not be down and may or may not serve you ads with your RSS. [...]
Live Comment Previews – Now with Markdown previewing
As much as I enjoy my live comment previews and have worked to get every possible thing previewed for my commenters, one thing has bugged me: now that Markdown is available for commenters on my site, I really wanted their Markdown to be previewed as well.
Now it is. With some fancy Javascript dancing by Sam [...]
Live Gravatar Preview
This method of adding live Gravatar previews is so elegant and simple I couldn’t believe it. I really thought I’d have to perform some sleight-of-hand with XMLHttpRequest in order to get it working, but this is a purely Javascript-based solution that is perfectly functional.
To see it in action, you’ll have to go to the comments [...]
“Where’d my spam go?”
Sometimes the answer is so obvious that you can’t even see it. This morning I made a realization that’s been sinking in over the pasts week: I’m not getting any comment spam. I mean none. For 8 complete days. This made me wonder what was going in Spammer Central… were they planning some new attack? [...]


