Late night hacking

I’ve not done this in ages :) Sat, in pieces, in my office is a Compaq 486 all-in-one PC that Amy has given to me. It came preloaded with Windows 3.11 and contains a network card. My aim was simple – get it on the network, then see if it would go on the Internet.

Getting it on the network was easy, all I had to do was install the Windows 3.11 TCP/IP update and configure it. The machine popped up on my network and managed to install Netscape 4.0 off my Linux server. It had no idea what to make of the long filenames, but coped very well.

I ran out of disk space, the tiny 100meg HDD only having 7 meg free. So out it went and in its place went a 256MB CF card in a CF-to-IDE converter. Some farting around with fdisk and xcopy gave me a neat clone of the original HDD that booted.

Netscape didn’t run too well on the weedy 486SX/25 CPU and with only 4 meg of ram it was constantly swapping to the disk. Fortunately I had 8 meg of ram in another old PC so in that went, bringing the machine up to 20 meg of ram and instantly the disk swapping stopped. But it was still quite slow overall, so out of the old 486 came its DX2/66 CPU.

And here’s the current state of things. The CPU is designed for a ZIF socket because DX2/66s need heatsinks and fans to keep them cool. Originally I got around this issue by supergluing the heatsink and fan to the top of the CPU. This worked, but the superglue has gone brittle and the heatsink fell off. My next plan is to somehow attach a Pentium MMX class CPU cooler and heatsink to the processor, probably using cable ties and luck.

It’s fun though, and it’s been ages since I sat up for half the night fiddling with a PC.

XNA Game Studio

Well they’ve made this a bit easy! I’ve spent the day following the beginner’s tutorial and have a rudimentary spaceship shooting game working. It shouldn’t have taken all day, but the tutorial videos are aimed at someone who’s never used Visual Studio or C# before. I know what an “if” loop is now, at least ;)

MS appear to have made it quite straight forward to get things moving around the screen, which is good.

In other news, my Internet connection is having problems and is currently grinding along at 3MBits after spending the past half-hour having a fit and disconnecting every two minutes.

Fog and more motorway driving

It’s pretty foggy out there. I’ve just been ‘over the border’ (between Yorkshire and Lancashire) along the M62 to visit Steve to sort out some things we’re doing. The weather wasn’t so bad when I left, just the usual drizzle and rain, but over the tops it’s a near whiteout. Coming back in the dark was a slow and difficult affair, playing the game of ‘spot the red lights’ and avoiding the trucks.

Steve’s local pub has wifi, and also a rather poorly chosen password on the router. We did the slightly poncy thing of installing Visual Studio on my Macbook in VirtualBox while eating our tea.

Learning LWJGL, Slick and Slickset

Printed out the example Space Invaders clone, scribbled all over it to make sense of it. Turns out the old method of learning how to program still works pretty well. I guess I’m a visual learner since the simple act of printing the code onto sheets of paper so I could draw on them caused the code to make sense. I sat on my settee and by cross-referencing the code to the Javadocs was able to work out the boilerplate code from the actual game logic.

I also found the possibly dead, but handy Pixen pixel art package for my Mac.

I’m experimenting with some woolly psychobabble ideas too. My PC is in my office and I do work on it. The work is quite interesting and motivating. I also have my Macbook which I could do work on, if I bought the VMWare Fusion key that I need. My Mac has Eclipse installed though, and the SlickSet stuff all set up. It’s turning into a portable devkit quite nicely, and is currently being my “fun” coding environment.

Sure, I could sit at my PC with its twin 19″ monitors, a mouse and a clacky IBM Model M keyboard and run Eclipse. But my Mac lets me sit in my bedroom and code, or do it downstairs in front of the telly. This portability lets me code when I want to, where I want to. Personal coding is supposed to be fun and amusing, rather than something rigid that you’re paid to do. So anything that makes it more fun is going to help with motivation.

I’ll install Eclipse on my PC at some point, just to check the code runs OK in Windows and Linux. I’ll also commandeer Amy’s PPC iBook to see what it’s like on that too :) She doesn’t know this yet though ;)

No disk space

On my server, PC and Mac… where’s it all gone? What am I going to do?

I think I need to buy some bigger disks and put them in my server. A terabyte should do me. My PC needs its disk sorting out, there’s Linux and Windows squashed in there, along with a data partition. Then I installed a few virtual machines in Windows and now the Windows partition is full.

If I can offload the data partition onto my server, that can be used for virtual machines instead.