Welcome to TFM's page of random code
I'm going to put up some of the random code I've written on this page - almost all of it is probably totaly useless to anyone... but I guess someone might find something useful here - and it might make me feel more fulfilled...
I was considering going back through my projects directory on my computer and putting them all up - but I don't think I can be bothered - so here's a small selection. Most of them have probably degraded to the point that they are little better than the output of /dev/random - and I doubt even I can remeber how to run them - or wether these are the latest versions...
- Snoop This is a utility like ttysnoop which will work on processes with no setup beforehand. It attaches an strace to a PID and parses the output to recreate what you are seeing. Here
- Fortran style arrays in Java This was an exaple to see how well you can do Fortran ish array operations in a java class. I didn't take it very far - but if you wanted these icky constructs in the first place I guess this could be a starting point. Here
- Code and Data migration in Java Java is cool because it is platform independant. It would be great for writing little autonomous agent things - but most of the examples of this I've seen seem to make the assumption that all the code is already availiable at all nodes. This code makes it possible to transfer both objects - and the code to run them accross streams. Here
- Loopback CD for VMware This is a little kernel module which I wrote - its a merge of a thing called FakeCD and the linux 2.4 loopback driver. It allows a ISO CD image to be used with VMWare asif it were a CDROM drive.Here
- TFM's randomising plugin for winamp This is a plugin for winamp which allows you to specifiy preferences for each track/album/artist in your CD collection, and have winamp play songs based howmuch you like them. At the moment it is winamp only - but I will write a GTK version one day
- TFM's Handel-C Preprocessor This is a really dodgy preprocessor I wrote to add a few things to an old version of a language called Handel-C. It adds structure support a #for construct to build hardware for a loop to be executed in paralled and some other random stuff Here
- Wolf3D An implementation of Wolf3D I wrote to test things out in C before I built a Wolf3D chip for my 3rd year project. It is sortov playable - except the monsters don't shoot back - and it is rather broken and will probably crash your computer
- 3D game My first attempt at a 3D engine I wrote one day after learning how to solve sets of linear equations in school - I represented planes by their equations, and raytraced by solving the intersection of them and the ray... it was dog slow as I was using many square roots per collsion test...
- Crappy Paint Scarry this is even older - and was one of my first attempts at graphics programing...
- RHTFM's Rugby Manager A program a friend and I wrote at school - like a football manager - but for rugby - written in QBasic4.5
- DialdUDPMonitor Something which could be a bit more useful. This consists of a daemon to run on a linux gateway using diald - and a client to run on PC's it does flashy light things on the systray, draws traffic graphs, lets you switch ISPs, shows you what is holding the link up...
- Sendmail log viewer Some perl CGI I wrote to make it easy to understand sendmail's logs - it creates a table with a row for each message describing its history (e.g. recieved, queued, DNS error, delivered
I could go on - but I can't be bothered, as I guess everyone gave up reading long ago...