Archive for the ‘ site related ’ Category

Death to WordPress!

If you use permalinks, you may lose some variables you’re trying to use in your theme.

After 10 hours of troubleshooting why this simple script didn’t work I found this. That’s reasonable, use permalinks and half way through your script all your POST and GET variables will be empty. So part of your page will work, but that exact same part somewhere else will not work.

Thanks wordpress! I wish Joomla wasn’t so slow, or horrible… and clunky. Or I’d switch!

information

HoneyPot not so sweet

After all this time, my honeypot hasn’t caught anybody :(

It’s been accessed 152 times, but no one has taken advantage of the delicious email address it provides. Oh well, it’s not hurting me any to keep giving fake addresses out… maybe one day, if I’m lucky, I will be spammed. I’ll just keep telling myself, I CAN be spammed.

To catch a spammer

The first WordPress plugin I installed on this site was Akismet, which compares comments to a list of spammers and separates real comments from blog spam. I moderate comments anyways, so it’s not like I’d end up with a bunch of spam links to begin with, but it’s fun (for me, I have fun) reading what these spammers are trying to do.

I’ve not advertised this site anywhere, it’s just for personal use, but spammers found it. I was getting about 7-10 spam comments a day blocked by Akismet. So I installed a CAPTCHA. Now I get 0 spam comments. Effectively ruining all the fun I was having reading what these spamming spammers were spamming.

So what’s a girl to do? Is that question relevant since I’m not a girl? The answer to none of these questions is join Project HoneyPot.

I’m the newest member, having my honeypot “active” for minutes now but I haven’t caught any spammers yet :( Hopefully soon I will have added a few evil doers to their blocklist.

JavaScript compression

Related to my earlier AJAX post, I’ve been creating some huge JS files. Tried a few things and decided YUI was the best way to compress them down. Plus, someone contributed a good gui [direct download] for it.

I had to encode with UTF-8 due to the wackiness of my code. I also serve the files with GZIP compression. If you use Godaddy hosting, this might save you some trouble. Godaddy won’t allow you enable GZIP with .htaccess (boo) so I do the compression with PHP.

<?php
ob_start("ob_gzhandler");
header("content-type: text/javascript; charset: UTF-8");
header ("expires: " . gmdate ("D, d M Y H:i:s", time() + 302400) . " GMT");
header("Cache-Control: max-age=302400, private, must-revalidate", true);

echo file_get_contents("javascript.js");
echo file_get_contents("another-javascript.js");
echo file_get_contents("and-so-on.js");
?>

… which gets called like this.

<script type="text/javascript" src="compress.php"></script>

jobs

Ajax <3 + h8

cat laugh

I’ve been writing a chat program so that I may chat with myself. I’ve never used ajax before, tried it years ago when it was the poppin’ fresh new deal, but I gave up on it.

Looking at it now, it makes sense. But it’s not what I’m used to. I always hate using other people’s code, it’s always easier if I wrote everything, but with ajax there’s too much to know to start from scratch. So I’m using jQuery. Pretty much I’m learning jQuery more than ajax.

I’ve been writing so much JavaScript that I tried to concatenate two variables with a + in PHP!! I spent near an hour wondering why I couldn’t get a response other than 0! Hilarious.

Maybe not. It’s working though, finally got the script to work in IE7. Worked in Chrome and Opera, but not IE7. I got IE8 and it worked there as well. In IE7 I was receiving an undefined error for a constructor. Turns out I had my functions in the wrong order. I was calling them before I declared them. Only IE7 cared, but at least someone cared. :)

terms

almost a blog…

I’m currently fighting GoDaddy.com to get this site online. They’re under the impression that I signed up for hosting and bought a domain with no intention of using it. A fair assumption considering that I have about 17 domains that I’ve never used and for some reason thought I’d save a lot of money by registering them for 5 years.

But an assumption none the less and they’re currently making an ass out  of themselves, as the old saying goes. They’re trying to sell my domain on whatever Sedo might be and I’m trying to make a blog on it.

Currently, I’m the only one that can see this site. Viva la Resistance!

Update: So I’m partially to blame. A very, very, insignificant, hardly-my-fault-at-all thing happened. Apparently, if you have your domain set to “locked” the name servers won’t change.