Friday, 28 November 2014

Story Time - Chemistry

Yes, it's story time again, but before I start I'm today expecting Virgin Media to be installed at the old country house we're back in... Lets hope they arrived, else this might be our last message... *cough*...not...

Anyway, story... I was just watching this 

And I thought back to my days at school, in the 80's and 90's the school system I went through here in the UK, after paying the teachers, had a budget left per student, this was 25p a day.  I remember reading the report, 25p was the price of a Mars Bar at the time, so the report was a pun on the then Mars slogan "A Mars a Bat Helps you Work Rest and play", because it was conjectured some pupils would be better served with a Mars bar to help concentration than to waste 25p of chemicals or paint or pencils on us.

Anyway, to my story, in school I was once performing an evaporate experiment, it needed heat on an acid to leave a salt, or some such thing.  I was in a fume cupboard, and I loved chemistry, but because I was able they moved me out into another room, with another class... To let the dangerous less wary students work in the fume cupboard...

In the other class, I was listening to the lesson quite intently, so intently that I ignored my now free to the open air experiment, which went dry... And which then ignited... In a pure white column broiling hot acid smoke poured from this tiny crucible... It went up straight up... And then started to spread across the ceiling.

The whole class turned to me as I panicked and pulled the gas from the bunsen burner and looked around for a fire blanket...

And little white specks started to fall on everyone... As the ceiling tiles began to disintegrate and this rain of snow came down...

The whole class I was in now had to leave the room, evacuate was the term used, and this insidious cloud just started to swell over the whole ceiling...

As it crossed more and more ceiling tiles were flaking and bubbling... But it was crossing the whole room because of a high level extractor fan in the opposite window... As it hit the fan the orange plastic blades went from dirty grey orange to bright clean... the dirt being scrubbed off by the acidic cloud.

Then little speckles of orange started to flick off the end of the blades and run around the case inside the fan cover... Slowly the fan blades parted and melted as the acid was sucked through... the fan spinning wildly as the weight of the blades left the motor and it slowly burned itself out with no air flowing.

On my side of the room the cloud kept coming, but to deflect it form eating the whole ceiling the teacher (hello Mr Babb) of this class had opened a window, this window over hung the crucible now and the cloud escaped into the air quickly... But the paint on the window frame was bubbling...

My own teacher (Mr Bolt) had now come into the room and was stood, his hands on his hips and looking at my face... he just patted me around the head with an exercise book and in the best impression of Dad's Army's Mr Mainwaring he said.... 

"Stupid Boy"

It was all good fun though, I learned about burning acids and acid salts, the third year class got to cheer as they were led out, and for a while it was the talk of the school... "Some lad melted Mr Babbs room".

I personally never heard a thing about it, it was learning gone wrong, but I did learn, and it taught me that I had made an honest mistake and you could get away with that... A valuable lesson at 14 me thinks.

Friday, 21 November 2014

Story Time - Programmers Sleeping

Once upon a time I was a loud mouthed, big headed, my code could never be wrong, I'm invincible... 


Kind of programmer...

Over time you will, unless you never go out, you will meet programmers who know more things about you, either about everything, or about certain specific things, and you have to learn to evolve and understand they just know more than you.

They might have been through the problem you're wrestling with for the first time, they might have worked on the base system, or they might just recognise the pattern of the problem you've got.

So don't just dismiss these folks, they know what they're talking about, and even if they don't take it, analyse where they've gone wrong and you learn from it, do not do what happened to me...

We're about six years ago now, and we had a graphical system, this system had been running games from many different sources for several years (about four) so it was a tried system, the hardware was known, it had known bounds and I personally had handled maybe a dozen different people working on it before, their games all worked, and I turn around and can see 32+ games working still to this day.

One thing I don't see right now however is this game from this one guy, because... He's a douche, and I don't actually see him because he no longer works here, of all the folks in his department he was the first gone of his own accord, because... well because he was one of those programmers, one of those people who never really grew up, he considered himself above reproach, he was perfect, his code was perfect and any issues were yours.

So, let us just dive off to games, games at their heart have a loop, which reads/updates the data, plays sound and critically updates the graphics, that's the core of all games from Battle Chess to Call of Duty, this game loop is time critical, if you delay the update or the display the game will look like it's stuck, or juddering, people often call this lagging, but the problem is that loop for interrupted to things didn't look smooth or play smooth.

But computers are fast! So for most trivial problems the data can be updated and the display redrawn faster than the hardware is actually limited to, so the hardware is done and sat idle waiting for the next rendering of the game.

This is called the sleep or delay, and games use this time to do other things, like perhaps check for updates or sort data.

Now this delay has to be controlled, you have to make it a fixed length, or set it up so that the machine works out how long the work it did was since it last drew the screen, and wait for the difference in time to smooth out the drawing.  This makes the game play smoothly, makes animation behave smoothly...

So, if you have a loop and you just randomly sleep for X time, but then the data processing you're doing takes longer than X the game will look like it's stuttering.... How can this happen?...

Well, how about this code:

while ( true )
{
    Update();
    Draw();
    Sleep(1000);
}

So, we update, then draw ,then sleep for 1 second.. okay, but what if the processing in "update" takes 800ms, how long will we take between draws now?... How about 1.8 seconds!  So that cycle the game will look like it took nearly twice as long to draw, and animations will stutter.

What has this got to do with programming?

Well, once upon a time this very code above strolled into view, and the programmer working with it kept saying "your machine is making my game stutter, it runs fine on my machine"... His machine being a more powerful machine with dual core and more RAM... So I pointed this out, he then set about trying to explain it all away.

When he then showed me this code, I just pointed at the sleep and went back to my desk, it was not my job nor part of my remit to work or debug his code, I saw this problem was simply he wasn't changing how long he slept for, but also he was very confrontational, because the contract with the "Sleep" function on Windows (the platform we were using) is not quite what most programmers expect.

You see sleep will go away and pause a process/thread for X amount of time, and it will come back to continue processing up to or after that time... Up to or after... Not immediately, so in a game you can't guarantee that the Windows Scheduler will pick up your thread and come back to your program immediately after 1000ms above!

I told this chap this, and he flat argued, he even went so far as to print out the MSDN documentation pointing out that I was wrong, and I was a wanker, and he went on a tirade around the office.

It was only later I went back and pointed out that he was referencing the sleep function for Windows Mobile, not Windows XP, and going to the right Operating System on the MSDN page, it said "upto or after the delay".

He didn't say sorry, he didn't say anything, he actually sat down and said "fat wanker".

Lucky for him my boss was stood right there and heard him say this, so I left them to it, but I never spoke to this cunt every again, he left the company soon after, he'd apparently agitated not just me but about six other people, arguing when they knew their stuff and then insulting them.

He was perhaps the third worst person I've worked with at this company.


For information about how sleep works, and how variable it can be, check this out.

Broken Feet

http://megalomaniacbore.blogspot.co.uk/p/broken-feet-november-2014.html

The house move went a head as planned, this was despite three major problems.  The first problem being we were both exhausted... The second being that we'd roped a friend into help, as none of our family even offered to help... And the third was that I broke both my feet....

Yes, I broke the pair... Luckily I didn't realize this, and kept on working, moving stuff, albeit very very slowly... But Sunday at 12:45 the key broke in the front door of the house we are vacating, so the mate helping piled a load of stuff up and said "You hop over that and open the back door"...

So, hop I did... I climbed up onto this 13 foot fence, perched my feet on the lip and jumped off... As the white sparkles cleared from my eyes, I knew I'd broke something... I figured I'd broke my ankles... But I staggered upright before letting this sink in, and I tried to open the door... No dice it was locked and bolted...

An hour later we were in the house, done and complete, the broken lock sorted and heading to the new house, I didn't feel right though, and got into the house by sheer necessity... But of course I chose to jump off the fence and so I was summarily picked on... I think I snarled at my father-in-law at one point, because he finally showed his face to help - but did manage to take the mate helping off for a detour to see his new boat - wasting precious daylight.

Anyway, finally got ice packs on the legs, had ibuprofen, went to bed... Come morning they were purple, and about four times their normal size, but being the conservative I am I only went to my GP... she had a good poke and prod, concluded I'd not broke my Achilles, probably just ligament damage, but she referred me to the fracture clinic.

I went home and carried on moving stuff, expecting a call... That call came Wednesday, to I had an appointment for Thursday morning... 6am I got up to get there on time, and I did... by about 11am I was in negotiations as to what kind of casts I was to have!

Yes, they're broke, and I walked and moved house with broken feet... For four days!... Even the consultant was impressed.

However, the junior doctor did balls up, without asking me he started to dictate my notes and said I smoked and drank!  Neither of which I do... which... which was a bit annoying being pigeon holed like that... I dunno, maybe it'd my beard makes me look like a pipe puffing beer swiller?...

Oh, and to rub insult into the hassle of the week, I finally got to sit down to play games.. and the PC is shagged, the main hard drive is banjaxed.

Tuesday, 11 November 2014

The Day of Your Death

I've been quietly contemplating life, or rather the lack of it, since the last episode of DrWho, which until they explain a few things is treading a fine line of insulting a fair few people with it's "Connected to the Burning body" line; regarding Cremation & the soul...

And a thought, probably a common thought, struck me...

Once you've passed your first Birthday, you've lived through the date on which you'll die... Technically we could say your Fourth Birthday, to ensure you've lived through a 29th February also (and yes I have a cousin born on that date!)

What a singularly depressing thought, we spend so much time thinking about our date of birth, but never really consider our date of death.  Perhaps some do, but of natural or unexpected causes, what a mystery we all lead...

It could be today...

I often post blogs a head of time, so there maybe items in my queue which will go out post-mortem, I may be a posthumous poster... 

Monday, 10 November 2014

Egypts Drugs Problems - Cultural Perhaps?

Reading of the problems of prescription pain killers being used as energy boosters in Egypt I believe there maybe a simpler problem at work, read the original here.

In 2001 when I visited Egypt I had the fortune of mingling with the people, unlike the US visitors who travelled in armoured convoys, us Brits just mingled in; even if in one bar we were accused of stealing the history by one chap and the bar man told him to "shut up, go read your history about the French".

Anyway, we met all sorts of people, backstreet hagglers, beggars, con-artists, sailors, tour guides, shop workers, children, the elderly... A good cross section.

But one chap I particularly remember was in a carpet shop, we didn't want a carpet, we didn't want to be in this shop, but we were bundled through this shop into a back room, literally the store room, and made to sit on a rug listening to a guy who had maybe four words in English, and we said "Thank you, but NO", several dozen times.

Anyway, this was our last day, kicked out of our hotel rooms, and in this hot room for so long I developed a headache.  I casually excused myself and took a paracetamol.

This old guy, and he was old, 70+ immediately asked for one, he pointed at the pill in my hand stopping me taking it and pointed to his head and held out his hand.

He knew what it was, I believe now he perhaps thought it was tramadol, but it was just paracetamol.  Anyway, he took his, I took mine and that was that, we'd been swapping tea in shops with people for the whole week.

It's only now I realise the cultural significance of this, how quickly wanting or taking a pill is, or anything it.. "You're smoking a dried weasel, gimme one of them too!"

It just seems to be part of the Egyptian attitude, now I've also been to Morocco, and whilst they share the same customs with sharing and offering tea they don't jump on wanting a pill off of you, they're in fact more weary if you ask "are you unwell?  would you like an asprin?"... they really ask what it is, read the packet and check the bubble is intact, you know in case it has been tampered with.

I noticed this working with Moroccans for a couple of weeks, it was common for them to be the same, but weary, Egyptians however... "Chuck it down my neck, it's good for you".

Stink Bugs in the UK

I just read this about stink bugs...


If that image at the bottom is of one, I'd like to say, they're already here, I've seen those and caught them in my bedroom both his winter and last winter!

And yes, I caught them and they stank, like a dry fuming smell, from an oily substance which stuck to my fingers and did not wash off easily with just water, it needed a detergent to help shift it from my fingers.

Sunday, 9 November 2014

Ghost Hunting - TAPS

Last night, lost for something to watch for 10 minutes, the wife and I put on one of those Ghost Hunting shaky camera bullshit programmes, some bunch of blokes called "TAPS" running around an old French fort somewhere or other.

Anyway, they kept saying they were seeing things, and kept saying they were hearing things, but they were never on camera, or the camera was shakier than a chronic masturbator in full swing.

But, one of the tests was just hilarious one fellow and a lass put a torch on a set of steps and they asked "any spirits present to flash the light if they are French"... and the light flashes... "Are you a soldier"... and the light flashes... "Did you serve here".. the light flashes...

They're saying they've just made contact with the dead, they've just proven life after death, or existence after death... They've just proven everything the owner of this site wanted to prove.  There's a shed load of other supposed detecting kit near the torch, but they say there's no jiggery pokery going on... Right... Okay... Lets say I believe you, you've dropped this into my viewing, and I believe you, you've just proven life after death!

And they completely ignore this test later on, when they come to review and hand over the evidence to the site owner, they have a shakey picture of a light supposedly dimming and brightening "as if someone is walking past the light" and they they have footage of "my t-shirt being touched from behind"... it looks just like he's moved his shoulder to me... All right, you've shown them that, now show them the proof of life after death!....


Nope, they don't show that footage again, they completely ignore it and it's been ignored by the summing up.... In fact the chap and lass who collected that footage, don't appear again in the whole show!


I find these kinds of shows so annoying, so.... pathetic and annoying.... Don't watch them folks, they're full of shit.

Saturday, 8 November 2014

War Thunder - BF110 Skin Grinding

I've been playing WarThunder and continuing my work through of skins for aircraft, my current target is both for the BF110.  Yes two skins, however, for the poor old 110 they're not farming ground targets these are for player air kills, AI don't count.

So it is a much different prospect to farming ground targets in the Stuka.

I figured however, in Arcade the 110 gets burned down too quickly, in Simulator it gets out matched, so I need to use Realistic battle, primarily for the good view compared to Simulator and that performance is still modified with the Instructor helping.

I'd not fully unlocked all the modifications when I started, I have now, and I've been having great fun with the plane, it is actually a very punchy aircraft when it gets into a tier 1/2 game.  However, I have found myself being matched with BF109F4's, so that's edging into Tier 3 and in those games where everyone climbs high I often find myself climbing up to the same altitude in a lazy oval or in tight zig-zags, because the single engined opponents simply get the jump on me.




The first of the two however, I think, looks great.

I've also started, with the aircraft fully upgraded, to take on the role in my team as the bomber killer, I can knock them down and take the punishment for doing so, when I'm forced to take on fighters I try to dive hit and run for my life.


It can work out to be fun, and profitable... if you vary your role as well, with bombs kept and used as the enemy team dwindle in number.

Friday, 7 November 2014

From Programmer to TV Repair man

The in-laws are currently calling me... Well they're not calling me, I'm hearing second or even third hand from the wife, or my niece, or from not so subtle hints... Their TV and Cable/Internet package is playing them up.

Now, I'm not a TV repair guy, I barely know how my own TV works beyond plugging it in and turning it on, there is no compiler inside a TV, I don't know what hardware is in them and I don't have any interest, so long as they come on and go off when I want, and I can change the channel I'm pretty happy.

So, why do the in-laws call me?... Because "I'm into that stuff"... I'm not, I hate TV, I hate all the shit you watch on it, I don't really want to ever watch the TV the wife and I sit down to watch, I do it so I avoid having to pay for a divorce!

But, I've become the goto repair guy, not because I'm overly skilled, but because I have logic and common sense... "No Signal?".... Plug in the wire which gives it a signal.... "It says no viewing card?"... Have you got the card inserted all the way?....  "It just won't come on?".... Is the plug fully inserted and switched on?

You know, the basics... I admit once, just once, in all the call outs, it was something I could fix, the father-in-law had been to look at porn, yes, porn, and he'd done this by googling porn and clicking away merrily, until the machine was dead... Yes he blue screen, FBI warning wiped it.  So I recovered their files and reinstalled windows fresh.  That was the only time I've been able to see what they did, and then I couldn't help but giggle to myself.

But as if as punishment, ever since I've had this tirade of requests for repair.

The latest one, well the latest one, I could throttle someone over, they went away on holiday and left a decorator painting their house, I know my father-in-law gives this guy a hard time, he basically picks on the fellow and they make demands of him like... "put our dustbin out on Wednesday"... The guy doesn't need this shit, so when it came to moving their tele forward and painting behind he, he clearly got his revenge by simply wrenching the wires out the back and dragging it... these wires were screw capped coaxial, so they sheered straight off.

Ever since, if you so much as breath on these two wires, the tele has no signal... The difficulty is my father-in-law is about as gentle with things as using cement for make-up foundation, he just stuffs and pushes and thinks the more pressure he applies the better.  He's also incredibly long sighted, so can't see the things in front of his nose.

All in all, this leaves me with near weekly call outs...


Thursday, 6 November 2014

Story Time - French Souvenirs

Souvenirs... When I was a kid I used to go places, I can't afford to go places any more, but when I was a kid I went to places... And everywhere I went I bought the family little gifts back, to remind them how much they like me, kind of like emotional bribes, so I could gauge how much they did or didn't miss me and suck up to them and retake my place in the pecking order of bullshit... No, no in reality it was just something we did... we got little gifts, little souvenirs.

Now, I understand you buy yourself a little souvenir, so you remember your trip... like from Egypt I have really nice bed covers, and they're over 14 years old now and I still remember being asleep in Egypt everytime I go to sleep in England...

But when I was a kid I brought gifts back to others... France, Twycross Zoo, the Royal Concert Hall Nottingham, Wollaton Hall Nottingham... Nottingham Castle!... All these little places made a little bit of cash off of me and I remember to this day that no-one really kept these little things.

Except one person, my Nan... She still has a painted rock I bought her from France, it was just a washed rock from the beach, someone had painted a scene of a harbour on it... Only now odes it strike me as strange, because we neither visited, nor saw, a harbour.  The shop I got it from was around the corner from the hotel we stayed in, and the hotel was just on a road in the middle of a Pas-De-Calais town, very dusty, a little smelly and I remember getting told off for throwing Marmite sandwiches from a window... when a) I didn't have any Marmite sandwiches and b) don't like Marmite!

The Hotel had dubious plumbing, the escape ladders were made of copper pipes and looked so unsafe as to make you wish you could just throw yourself out the window.  One of the toilets would not flush.  And the food was so bad that I think of the whole 5 days of meals they served we only ate one and that was the one with chips (fries)... They served raw fish, horrid paté and just guck.

When we ran into a local we either made friends or hated them, very much like the aforementioned Marmite in that respect.

But this was the 1990's, still before everyone spoke English, so it was a struggle to actually communicate, not least because most of us were pre GCSE, we were year 3 as was, not year 4/5 and only got on the trip to make up numbers.

However, I do remember my first application of French, we were dumped on the outside of a town by the bus.  Totally alone... this would never happen today, and I think only happened because the three French teachers wanted to go to a bar and get more drunk, however, dumped on the outskirts of this town we were told in the middle was a market and we had to make our way there and ask at least three people directions....

This turned into me walking a head of a group of kids my age, because I was confident - with a then brown belt in Karate I was pretty happy I could fight off an attacker, be they French or otherwise.  So we marched through this town like the Germans in 1940 had.

Two French kids kept staring and shouting something at us, so I gave them a Nazi salute... Literally the finger under the nose and arm out... they ran off in shock... Only later did I find out this was illegal...

We turned this corner and were basically in a dusty looking, very hot summers day, street lost... There was a man in his garden so I went to him...

"Excusey moi missuurrrr"  I still speak French like this, so must sound like a retard to them, but that's a whole other story...

"oooooo eweeeeey lay marrrrrr-shhheyyy ssssiiiii vvvvooooo play"

Meaning, I thought "Excuse me sir, where is the market please?"... He looked at me, and snored, turned his back and went into his house... I fucking tried al-right France, I tried, and you were so rude to me... If you come here and falteringly ask in English "Where's the market please", I'll tell you, and even help you along so I understand you... I won't just snort and walk inside my house.

I dunno, all these years later I remember him doing that, maybe I turned him on, maybe he went straight in and started furiously masturbating.  Whatever he actually did all I remember is "he's a French wanker"... So, well done him for casting all the stereo types about French people listening to others attempt to speak French.

Around the next corner however our saviour appeared, a man in the street, walking a long, he was smoking, wearing a leather jacket and a black polo neck - on this hot day - he looked the typical French guy... I hit him with my now famous line... and he looked at me puzzled, then in a broad Leeds accent said... "Just round that corner mate".

WarThunder on Linux

Yes, it is official, WarThunder is available on Linux!  This was a bit of a secret as I had access to the game on Linux with thanks to Gaijin.




There were a few bugs, and communication was sadly pretty poor as rather than reviewing the game in any fashion one was simply playing and reporting bugs.

The experience however is identical to the Windows and Mac release, the graphics being rendered in OpenGL (which you can even do on Windows and you always do on Mac all the time) so the porting of the game was essentially down to their moving their implementation.

With libraries like SDL this is an easier task then before, however, WarThunder is now, without doubt, the most complex and detailed game I've seen on Linux. 

And it marks a massively interesting change in the fortunes as game developers look at the platform.

The Witcher 3 and other AAA title games are also appearing for the platform, however, WarThunder with both it's land, air and soon to be sea game modes is far above those scripted screen play type games.


I'm certainly interested in how head-tracking and complex flight stick controls now start to improve on Linux, with this fantastic game now on the platform.

Wednesday, 5 November 2014

Columbia Moaning?

I've often got bad words for a certain South American country on these pages, but today another has draw my ire... Colombia...

As far as I was aware until earlier today we have no angst between our countries, actions in the past were all history, we as far as I was concerned were friends... And hence when I heard old Charlie (Prince Charles) was on his way out there I didn't bat an eye lid.

However, now having read he's being criticized for this plaque thing... People of Colombia, you won!... You beat us, we have a sense of humour, unlike the Argies, we understand it was terrible and done hundreds of years ago, and still the second in line to the throne went over there and opened the plaque with your local dignitaries...

So why be so bothersome?

Is it me, or is the world getting a bee in it's bonnet at Britain?... We only want to be friends, and now be over charged for things, we're poor and disgruntled at our government, we've every waif and stray from any foreign field claiming benefits here, but other than that we're a mild bunch.

Why pick on us?

Tuesday, 4 November 2014

Elite Dangerous


I've not quite melted yet, though I'm close...

Been trying to stave off my hunger to explore the game with the older game, but as you can see I've been watching Elite Dangerous streams on Twitch.

This stream is from the venerable Andy over at "LondonGaming4Fun", I recommend his ED coverage.

Monday, 3 November 2014

British Gas's Zero Bills

On the 27th October, I sent a post out putting a shot across the bows of British Gas, so tired am I of them.

Today however, my post bore fruit, for after paying everything, sorting everything and being assured their systems are in order, I've not only received an email bill, but a red reminder to pay...

You want to see the bill?....

You Ready?...

Wait for it.....


Yes, its a bill for zero... And a demand for zero... and after giving them a call and explaining the operator, a lady whom I could hardly hear because of the background chatter, said... "Well you have to pay the bill"...

Right, okay, an envelope of absolute vacuum will be winging it's way to you now.  Fucking ass clowns.

We move next week, so I'm excepting to give them the tennant of the other house's final reading and then just dump them like hot shit.

War Thunder - Site Update

I wonder what they're doing...