Tamber's blog

A return to programming work.

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.

Okay...

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.

Armistice Day 2009

"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

Can someone explain this to me?

Whilst hovering about in IRC, I noticed a conversation that both annoyed and confused me. The basics of it were as follows:

  1. Sibling plays MMORPG
  2. Sibling becomes addicted to said MMORPG
  3. Sibling very nearly fails out of school due to said addiction
  4. Therefore, the game and it's developers are evil, and the game should be avoided like the plague.

Virtual hosts sorted!

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.

Amusing saying of the day.

"This one makes me happy, this one makes me sad. Mix them together, you get a beer!" — Andrew Penketh

Slight hiccup with virtual hosts

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. >:(

D'oh.

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.

Playing with arrays of arrays and other fun.

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 know your network is confused when...

You get connect: Network is unreachable from a machine you're using over ssh.

Adverts