Mar 05, 2007 11:47
Small Update
============
Well, I bored so I thought I'd post a small journal updating everyone, who is interested, on a few things.
The first thing I'd like to say about is my IRC client, after about a month or two of it sitting around doing nothing I have got it just about back to the workable state that it was in before. But with one big difference... plugins. Yes, my IRC client now has a small and simple plugin API check can be easily be used to do stuff. :p
At the moment I haven't got it to do much, however all the user input is fed through the API and in fact I have moved the entire of the command and message processing code to a plugin called Common User Commands, if anyone wants to add a new set of commands into the client then they can just write a new plugin, though you will need to know java.
It is a bit on the simple side atm, there is a problem with it where it doesn't detect the plugins inside the IDE, only once packaged in a jar, I don't understand that one really, it say a directory isn't a directory, hmm. Basically how it works is, the PluginProvider looks for the plugins/ directory, it gets all the class files from it and calls a PluginLoader (a custom sub-class of ClassLoader) for each one. It loads each class and then checks it to make sure it's a valid plugin,
it check the API version that it supports, currently the version is 0, and then returns. Then it would run all the plugins that were configed to start automatically. Though I haven't written any settings for that yet, so it just starts every plugin loaded. XD
When a plugin is told to start, it simply registers itself to various parts of the program, to listen to the messages and events the client is using.
I probably need to add some security. :p
Something less computery, university...
I'm wondering what to do about some of my coursework, in it I have to interview the tutor. But we have to do it in a certain way so that it doesn't seem formal. You can't use questions, I just have to chat about her "job" (is a fake job) so I can build up how a system of processes and data flows work within a business. :s
hmm...
Now into the weird... :p
Some how on secondlife, I've managed to become someone's pet. XD
I have a collar and everything, the collar is scripted so the 'master' can make me do stuff. So, if the 'master' says "sit!" my avatar will sit on the floor. XD You can also see a chain appear between me and my 'master.'
Once again, I have proved how easily I can get into weird and insane places when I'm in a hyper/silly mood. :p
irc,
uni,
second life