After taking a break from working on Harlie, today I cranked up Emacs and dove back in. And was immediately struck by the need to add a few more comments. When folks say you need comments even if you're the only one to be working on it, they're definitely right.
It's only been 4 weeks since I worked on the code, and some bits are almost incomprehensible. Another thing that struck me was the need to have a bit of a tidy-up of some of the code. However, that may turn into a complete refactoring project, so I'm going to leave it for now whilst I'm hacking deep into the code.
So I connected to my server today and found a spam post uploaded to the front page. I just checked. 3 obvious spam users. Oh, shit.
EDIT:
Panic Averted. I thought I'd been hacked (despite running the latest version of drupal, but it wouldn't surprise me that there's vulns that haven't been found by the good guys yet.), but it turned out I'd left authenticated users with the ability to create blog posts. Not quite what I intended, but nowhere near as bad as what I thought.
Spam users blocked, and the spam nuked. We now return you to your scheduled programming.
"They shall not grow old, as we that are left grow old.
Age shall not weary them, nor the years condemn.
At the going down of the sun and in the morning
We will remember them." — Laurence Binyon
Whilst hovering about in IRC, I noticed a conversation that both annoyed and confused me. The basics of it were as follows:
With a little help from my friends, I have apache's virtualhosts working nicely. :)
It was a little simpler than I expected, but they're finicky.
"This one makes me happy, this one makes me sad. Mix them together, you get a beer!" — Andrew Penketh
If you couldn't get to this site, and were wondering why you were reaching an empty page with a picture of a rat, that's because I added a virtual-host for Furaiya; and it trampled over my default virtual host which hosts this site.
I still haven't figured out virtual hosts, and it's driving me mad. All I want to do is add a subdomain "furaiya.furryhelix.co.uk", and have that show a different site. Is that so much to ask?
*grumbles*
EDIT: Apparently it is too much to ask. >:(
Remember this from the previous post?
our @commands(
# [command, function, priv_level]
[quit, &Harlie::Commands::quit, 10],
[part, &Harlie::Commands::part, 10],
[join, &Harlie::Commands::join, 10],
[nick, &Harlie::Commands::nick, 10],
);
I figured out what I screwed up.
our @commands = (
# [command, function, priv_level]
[quit, &Harlie::Commands::quit, 10],
[part, &Harlie::Commands::part, 10],
[join, &Harlie::Commands::join, 10],
[nick, &Harlie::Commands::nick, 10],
);
Now I feel very stupid.
Currently, Harlie in her current state does not run. I'm completely confused by this, and I'm blaming a lack of sleep. This is also why the git log is full of stupid crap. Whilst trying to play with the new commands and privileges, I forgot to close the buffer that had the file. When I later edited it (after merging the two branches, which went fine), it stomped all over the changes and I got horribly, horribly lost.
Anyway, enough of me being stupid, and on to the new feature (which doesn't work.):
You get connect: Network is unreachable from a machine you're using over ssh.