Damn My Buggy Code!

Whoops! As a result of some buggy code I’d written, my recent ‘blog entries didn’t get cross-posted to LiveJournal, as they usually do – it turns out that the cross-posting code I wrote only works if I write my entire blog entry at once… and my recent entries have been quite long and so I’ve written them in ‘instalments’, which didn’t work. Hmm. I’ll write a fix for that soon.

In any case; here’s a summary of my recent posts, with links so that you can go read them:

Rearing Of The Ugly Head, And Apache’s Dirty Secrets – 26th July: Reb, my ex-girlfriend, reads my blog and places a comment… so I have a bitch about it.

Something Cheery – 26th July: A pick-me-up after my grotty post about Reb.

Things I Don’t Have Time For At Work – 27th July: Rant about an indecisive co-worker.

Dreams Within Dreams Within Dreams – 28th July: Description of a weird, convoluted, recursive and self-referential dream I had. Odd.

Dadadodo: Exterminate All Rational Thought – 28th July: I download a clever word disassociation program and let it loose on Scatmania, with bizarre – yet funny – results.

Dadadodo: Exterminate All Rational Thought

Downloaded a copy of Dadadodo, a syntax-capable word disassociator. Simply put, word disassociation programs tend to work by taking a body of text and randomly shuffling chunks of it around. Dadadodo instead builds a probability tree based on the frequency at which words occur in sequencial relationships with one another, and uses this as it’s basis for deciding where to transplant words to. As a result, it is able to exhibit behaviour that can appear to demonstrate an understanding of the grammar rules of a language, even though it’s output is (when a large enough input source is used) semantically meaningless.

For example, I ran the front page of Scatmania.org through Dadadodo. Here’s some highlights, with a few minor punctuation corrections (the program seems to mangle apostrophes):

More indication of the next five years: a very odd dream, with appearances from Scatmania. NatWest keep telling me comes better yet, the last three shades of child bearing age. I terrified her own risk.

Parallel parking for a network Bryn and uses vibration to investigate these graduate, I think I sat on the other a server my boss about me I had the BBC. Don’t have far better News. I’ve scared been possible to for that generates them. Following up a militarist feminist group. Within the demo of it I’ll run by profession if for larger. A Japanese inventor has been partially damaged during A backup.

When I sat on a man talks to have a stunning. It off in a survey of your own speakers. Not using Internet Fun News I see the browser market, instead: saved pages from Yorkshire backups, I’m in a plant pot and uses vibration to get a militarist feminist group, Within the Context you’ve offered Me.

Umm… do they e-mail them, Thank you to for the opinions of my boss about me. Promised you lot a very odd dream, with a very Good you sat down today! Do they should be on online chat with appearances from Amazon: dual processor board designed for playing the parallel Parking for Dummies. read Scatmania Filed under a partner?

Sadly, I could pay them.

The rest of my co-worker’s quite horrifying come the top with Direct Legal Collections one! Money, I thought I saw Faye for at work with which Scatmania. Lots of schoolchildren that I liked share. It has been partially damaged during a part minigun.

God Violates Intel Trademark

Jesus InsideIt’s all news, today! Lots of fascinating little stories and nothing about me. I mean, who’s blog is it anyway?

According to The Register, the authoritive source on such matters, God may have infringed upon Intel’s intellectual property. Only moderately funny, but nice and geeky.

In other news, I hear that AMD are planning to release a new dual-processor board designed to accomodate two older Athlon chips, optomised for playing 80s music on MP3. They’re calling it the Duron Duron.

Reb, Hell, And Unreal Tournament 2004

After I saw Faye’s weblog post about her own design for hell, I couldn’t help but leave an anonymous comment. If you’ve ever met Reb, my ex-girlfriend from a few years back, perhaps you’ll appreciate.

In other news, I spent far too much of the weekend playing the demo of Unreal Tournament 2004. I haven’t had so much fun with the demo of a computer game since about 1999 (I never have time for demos any more). Wow… it really is something stunning. They’ve really put a lot of work into making it accessible by anybody, too – the hardware specifications aren’t so horrible, and it’ll run on Windows, Linux, or MacOS X! Hell; it doesn’t even require a 3D card (although I wouldn’t like to try it without one!). It’s a doddle to get it running on a network (Bryn and I had a couple of LAN games – driving a tank right into an enemy base with one of you sat on the top with a minigun is sooo much fun), it’s fast and furious, and relies heavily on teamwork. It’s just fab. Have ordered a copy from Amazon.

×

Scatmania, Version 2

Welcome to Scatmania, Version 2!

After my disasterous data loss the other day, I decided to take the oppertunity to redesign Scatmania into something altogether better-suited to the purpose (i.e. doesn’t use a silly flat-file system). And here it is (well; unless you’re reading this through LiveJournal).

I’ll be graduating this afternoon, which will mostly involve standing around in silly robes while a man talks bollocks in Welsh. After this, I’ll be going out for a meal with my folks, who’ll be visiting for the occassion.

On an unrelated note, does anybody want to join Claire, Bryn, Paul and I on a trip to Alton Towers, some weekday during September (taking advantage of the cheap rates and lack of schoolchildren that’s available at that time of year)? Date to be confirmed, but if you want in, drop us a message or leave a comment.

The Importance Of A Sensible Patent System In Europe

If Haydn had patented “a symphony, characterised by that sound is produced [ in extended sonata form ]”, Mozart would have been in trouble.

No ePatents
Click Here — Sign The Petition

Just thought I’d share that link with you. This is something which could eventually affect the way we all use computers. To those of you who don’t recognise these images or have no idea what I’m on about, I urge you to read about the issue of software patenting in Europe.

The difference between a patent and a copyright

Thanks for listening.

How To Use SSH Tunnelling To Allow Services To Pass Through A Firewall

[this post has been partially damaged during a server failure on 11 July 2004; with the exception of the images, it was recovered on 13 October 2018]

Paul has been stuck with a problem of late – he’s now living in university accomodation, and he’s found that he can’t connect through the university firewall to his external mail server. I advised him that it’s possible to set up an ‘SSH Tunnel’ (through central.aber.ac.uk) to fix this problem, but he hasn’t met with much success (see his blog entry for more details). In any case, here’s my investigation (and solution) to the problem.

How To Use SSH Tunnelling To Allow Services To Pass Through A Firewall
In my example, I’m going to try the opposite to what Paul is trying to achieve. I’m going to try to allow my POP3 e-mail client to get access to the university e-mail server (pophost.aber.ac.uk). As things stand, this server is on the other side of the university firewall, and is inaccessible from outside. The server central.aber.ac.uk, however, is accessible from both sides of the firewall. So what I’ve got is this (yes, I know that this is a gross oversimplification):

As you can see, connecting from my home PC is futile:

C:\Documents and Settings\Dan>telnet pophost.aber.ac.uk 110
Connecting To pophost.aber.ac.uk...Could not open connection to the host, on por
t 110: Connect failed

But if I SSH-in to central.aber.ac.uk…

central:~ $ telnet pophost.aber.ac.uk 110
Trying 144.124.16.40...
Connected to pophost.aber.ac.uk.
Escape character is '^]'.
+OK mailsplit Oct 2000 ready

So, what I need to do is to tell my SSH client to connect to central.aber.ac.uk, and forward specific traffic through the firewall to the mail server. Here’s what I needed to know:

(a) A free TCP port number on my own computer from which I can virtually ‘pipe’ the connection. Most numbers over 1024 are fine. I chose ‘9110’.
(b) The name of the mail server – ‘pophost.aber.ac.uk’.
(c) The TCP port to which I wanted to connect – the standard port for a POP3 mail server is ‘110’.
(d) My user name on a server which: (1) I can connect to; (2) can connect to the server specified in (b). It happens to be ‘dlh9’.
(e) The name of the server specified in (d) (i.e. ‘central.aber.ac.uk’).
(f) My password on the server. Like I’m going to tell you that.

The syntax is:

ssh -L (a):(b):(c) (d)@(e)

I’m using the non-commercial version of SSH Secure Shell Client, so here’s what happens:

C:\Documents and Settings\Dan>"\Program Files\SSH Secure Shell\ssh2.exe" -L 9110
:pophost.aber.ac.uk:110 dlh9@central.aber.ac.uk
dlh9's password:
Authentication successful.

At this point, I’m ready to go. Look what happens when I connect to port 9110 on my own computer, now…

C:\Documents and Settings\Dan>telnet localhost 9110
+OK mailsplit Oct 2000 ready

I could simply point my e-mail program at the ‘mail server’ at localhost:9110, and I’d be able to collect my university e-mail (so long as my SSH connection remained open).

Hopefully this guide will help some folks out there who are struggling with this kind of thing, and in particular, help Paul.

My Very First Operating System

[this post has been partially damaged during a server failure on Sunday 11th July 2004, and it has been possible to recover only a part of it]

[more of this post was recovered on 13 October 2018]

I’ve just written my very first Operating System! And I’m putting it here, online, so that you can give it a go if you like. And no, you don’t need to install it – just put it on a floppy disk and try it from there (no, you can’t boot it from a CD yet)!

Don’t expect too much. There’s no user interface (not even a command line). All it is is a bootloader and a kernel that ‘displays pretty squares’ (I stole the ‘pretty squares’ code from somebody else – my Assesmbly needs some work!).

Hardware Requirements
386SX/25MHz or faster processessor
520K or better memory
Floppy disk drive

Instructions For Use
1. Download the floppy disk image file [34K]
2. Download and install WinImage 6.1 (this program lets you write floppy disk image files to floppy disks).
3. Open the image file in WinImage, insert a floppy disk, and select “Format And Write Floppy Disk” from the “Disk” menu. The Operating System will be written to the floppy disk.
4. To run it, you need to reboot your computer with the floppy disk in the drive. If this doesn’t …

 

I AM Scared Of Bootloaders

I’ve spent the evening looking at bootloader source code (small programs, crucial to every Operating System, which do the first fundamental steps towards loading the kernel, the ‘core’ of the OS). Just to show you quite how scary this stuff is, here’s a snippet of code to “stop the floppy drive motor from spinning”:

mov dx,3F2h
mov al,0
out dx,al

Remember Microsoft vs. Netscape?

Then you’re old enough to appreciate this: OSNews is running an article about the upcoming fight between Google and Microsoft. Where the Netscape/Microsoft battle involved web browsers, the weapons of the Google/Microsoft battle will be search engines and e-mail services.

If you’re confused as to how companies can be fighting by trying to increase the market share of their free product, read the article.