Saturday, 3 October 2015

Networking the House

About six months ago, I told you all I'd bought some really nice shielded cat 5 cable, and I planned to install this between the router in the living room and the office, well today I've finally taken that leap, drilling through victorian ceiling and soot, missing twentieth century power lines and an awkwardly placed floor joist....

My ping which was round 83ms TTL is now 7ms, I have my full download speed from my supplier, and indeed I am.  But it was a bloody messy process.

I have sacrificed a few ethernet plugs to the gods getting the wire down and through, the first wire I pushed through just disappeared, I think along the back of the victorian cornice in the living room; one day I may find it.

My eventual trick was to use a 20mm polymer pipe to encase the wire, and also to guide it down the wall in the lower room, this resulted in the wire being out of sight (least colourwise) against the light coloured walls.

Monday, 28 September 2015

SDL2.0 Complete Installation on Ubtuntu

I've just spent sometime, setting up SDL for development on my Ubuntu machine, and found that the Ubuntu library caches lack SDL v2.0, they have the older 1.2, but that wasn't good enough, so here is a little script I've put together, to get me all the dependencies (least what I think the dependencies are), download each part of SDL (SDL, TTF, Mixer & Image), extract them into folders, build and install them, and then delete the folder copy which was extracted.

cd ~
sudo apt-get install build-essential xorg-dev libudev-dev libts-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev libopenal-dev libogg-dev libvorbis-dev libaudiofile-dev libpng12-dev libfreetype6-dev libusb-dev libdbus-1-dev zlib1g-dev libdirectfb-dev
tar -xvzf SDL2-2.0.3.tar.gz
cd SDL2*
sudo make install
cd ~
rm -rf SDL2-2*
tar -xvzf SDL2_image-2.0.0.tar.gz
cd SDL2_image*
make all
sudo make install
cd ~
rm -rf SDL2_image*
tar -xvzf SDL2_ttf-2.0.12.tar.gz
cd SDL2_ttf*
make all
sudo make install
cd ~
rm -rf SDL2_ttf*
tar -xvzf SDL2_mixer-2.0.0.tar.gz
cd SDL2_mixer*
make all
sudo make install
cd ~
rm -rf SDL2_mixer*
sudo ldconfig

Once this is all done, you need to edit /etc/ adding to it, thus:

sudo nano /etc/

And add:

include /usr/local/lib

Save the file, I can now create an empty C++ project, or just a main.cpp, and include the following files:

#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h>

The libraries to link against are:


(Each .a also has a static .so, alongside, if you prefer)

This, of course the linker options on the command line are:

g++ --std=c++11 main.cpp -llibSDL2.a -llibSDL2_image.a -llibSDL2main.a -llibSDL2_mixer.a -llibSDL2_test.a -llibSDL2_ttf.a

Sunday, 27 September 2015

Chess - Waiting

I've continued to play chess online, and again after doing some of the training puzzles I took to another rated game... and this is where I find myself...

The chap has fallen into my trap with the knights and queens, he had the upper hand on the left, but then I had the two knights defence and he fell into this position.

All he can do is move the knight to block the my Queen (blue line) and then I move my Queen (red arrow) and we have check-mate.

However, he's not moving... I don't know if he's left, or quit, or just wants to let the time roll down, but I'll just keep giving him 15 seconds to stop him trying to time the game out.  So this is maybe another toxic player from the community.

Saturday, 26 September 2015

Chess - Win

In my prior post I had posted that the community was a little toxic, well, I'm happy to announce the registered community is actually quite nice... so far...

I decided after doing a bunch of the "openings" training (and being bad at it) I'd try a rated game...

I won, and not only did I win, but I had the opponent "Vecky" chat back to me, and it was a nice game, I enjoyed it.

As I said in the chat there, I celebrated with a nice coffee :)

Friday, 25 September 2015

More Chess - Toxic Players

I'm beginning to find the online Chess community a bit more feeble than I remember... I used to play on Yahoo Games Chess, years ago... I even met a lass through it once, seriously, chess got me laid... However, playing on, I keep having my opponents leave the match!

In this case the chap had the upper hand, my opening went wrong, he moved his bishop aggressively into my centre, but then my knights rescued the situation and he left?!?!?!  Leaving me to just have to wait for his time to end or "claim victory".

Road Rage #1

To the woman driving the Black Audi TT out of the QMC, down Leen Gate, Nottingham at around 9:55 today... You're very lucky I don't have a dash cam, you're very lucky we met in traffic outside my place of employment and there is a decorum mandate for staff, you are very very lucky indeed, because I really felt like driving into you, dragging you out of your car by the roots of your silly greying blond scag wig and smashing your face in.

Lets, analyse why everyone, I turned into Leen gate following an RLMS lorry, as I work here I know RLMS would be pulling up on the left of the road soon enough, so waited behind it, a van passed, a car and then I peeked out, a red car was pulled up on the right of the road, way up level with the Bellfruit factory gates, and the road was then clear, so I pull out around the now parked lorry.

A black Audi TT appears at the hospital end of this row... It passed the Bellfruit factory gates, passed the pulled over red car, and as I'm now level with the rear of the RLMS lorry, this Audio is approaching the lorry itself.  It's no where near the lorry, there's a dozen meters between where the Audi is and where I am by this point,

I am mid manoeuvre around a parked vehicle,  I am already across the median and moving (checks highway code) yes, so the other car did not have right of way, I've already waited for other vehicles, so it is approaching a moving car, and should be aware of me, should give way, I'm already out into the movement, but the Audi is bearing down on me, "here we go" I think, it's a car make and type which seems to empower dick heads to drive like idiots, so I figure this is another... and as it's getting closer and closer I can see it's bonnet is not dipping, the Audi is not braking... and I could see the woman driving by now, see her demographic, and yes, she's a fucking hooray henry, a "I'm driving here" type, and I bet she's the type who can never be wrong, who can never be told, and thinks she's made it in life because she's been so forthright, I can see her now...

I'm now trying to turn left sharply to get back in front of the parked lorry, so I'm over steering to get in and out of her path of potential destruction, without slowing down she comes past me and pulled a face at me!

This stupid, pig eyed, wig clad pig of a woman pulls a face at me!

For her idiotic, in correct, highway code violating drive!

I really, honestly, felt true anger boil, I wanted to chase her down and break her false teeth all over her steering wheel, I wanted to chase around and smash into her, to drag her pathetic limp corpse down the road from my bumper, like some macabre bonnet trophy.

But, of course, this is reality and one can't do that, one can't even joke about it I guess (though I just have), so in stead I wish I had a dash cam, though in this case I'd need 360 degree coverage, and I'd have taken her plate, taken the stupid face she pulled and I'd have blown then up and pasted them all over the internet.

See how her employer, or employees, liked to see that; see how her Insurer would like to know how crap a driver she really is.  For my part, I'm fuming, but I'm done, madam you had the upper hand, driving around today you are anonymous, you can get away with being a dangerous idiot like this, you and your ilk driving like idiots however you've had your day, and once technology in cars to monitor and report such flagrant obtuse abusive and idiotic driving as yours is available, the better!

Thursday, 24 September 2015

Chess & Me

I've always been fascinated by board games, Chess was perhaps the first I obsessed over, and I wasn't bad at playing it... When I was around 10 we had a wooden chess set at home, and I'd spend hours looking at positions, but was  never encouraged that this was a worth while thing to do.

When I was in my early twenties, I came back to Chess and had a few books and bits and bobs for it, spent ages analysing positions once.  It's sort of part of me.

Anyway, I recently came across, and signed up... I had played a few games and got totally thrashed whilst anonymous... But I did a bunch of their training puzzles (some of which I think I saw better options or at least equivalent options for) and then signed up... Ironically when you sign up their capta check is a chess puzzle, and I kept getting it wrong!

But soon sorted and I started my first game, no pressure, so I went for classic 20 minute (plenty of time) game style.  I have this speed chess, I'm not practised enough for it.

Here's my ending board, did I win... I think I did, but the opponent just left :(

(I'm playing white)