Making the Floor Pretty

Feeling light headed once more I went for a lay down, I was awoken by Jean going, 'Mummy I've done a special thing to make you feel better!'

'Oh thankyou Jean what is it??'

'I've made the floor pretty for you!'

'Oh! Ok thankyou Jean' I scrambled out of bed fearing paint and pen all over the carpet. Instead there was lavandar and daisies and buttercups etc... in a trial from my bed to the settee. Jean explained that it would make things smell nice for me to.

I smiled and kissed her and we were clearing up flowers for days!

Opps On My Back Again :/

I realise that I haven't actually blog that I'm pregnant yet but hey I'm pregnant and scatty!

But mainly this post is about how I ended up once again flat on my back surrounded by concerned by people wanting to call an ambulance - as to what happened I'm not entirely sure :/ We'd gone to the farm shop to have ice-creams and for Jean to play on the toys etc... I came out of the shop with an ice cream and bottle of water saw stars and the next thing i knew people where rolling me onto my back with mum shouting from a distance that I was pregnant and Jean telling everyone I was her mummy :/

My main thought was - oh no I've landed on the ice-cream Jean will get messy eating it now. Jean picked up the ice cream and after a bit of me explaining I was ok and would phone the midwife I was helped onto a chair the shop people bought out for me - along with more water!

Jean then handed me the ice-cream because me and the baby would need it now.

A phone call to Alaric got me the phone number I needed but I have to say thought processes where being a bit fuzzy - so mum ended up phoning and explaining I was seeing stars.

And so poor Jean was whipped off the toys and we where in the care heading to Stroud Maternity. We picked up Alaric and my notes on route (as we had to almost drive past the house anyway plus I wanted him there as I knew I wouldn't remember stuff).

Blood pressure is great and there was not protein in my wee - yay! This was a major concern after the whole hypertension and pre-eclampsia thing from before. I have however had a bad stomach which is why drinking the amount of water I was wasn't enough to keep my hydrated :/

Also they said they had had several girls in at this sort of stage in the pregnancy passing out and they where all fine too - it appears to be the weather!

Especially as we all had headaches but no temperatures or anything. Apparently the body goes down hard with anything and everything before 16 weeks as it's still forming the baby and that's all it's interested in - after that it's just growing so your body starts caring about you again.

But I'm on rest again for a few days and if there is no improvement in 24 hrs I have to go back etc...

I hate finding myself on the floor surrounded by people wanting to call abulances :/ But thanks guys (on the off chance any of you will ever read this) and thanks to the Primrose Vale staff and sorry we didn't tell you to come and get your chair back.

Syntax diagrams

I've always liked syntax diagrams as a way of describing languages. They make it clear what options are legal in any given situation.

However, drawing them by hand is tedious, so after a moment's thought, I realised it would be pretty trivial to design a reasonable layout algorithm to generate them automatically.

And so, on a train journey, banterpixra was born!

It's quite simple. It takes a BNF-esque grammer, encoded in s-expressions like so:

(rule
 . (choice
    rule-label
    literal
    (seq "(elidable" " " literal ")")
    (seq "(optional" " " rule ")")
    (seq "(zero-or-more" " " rule ")")
    (seq "(one-or-more" " " rule ")")
    (seq "(seq" (one-or-more (seq " " rule)) ")")
    (seq "(choice" (one-or-more (seq " " rule)) ")")
    (seq "(optional-choice" (one-or-more (seq " " rule)) ")")
    (seq "(comment" " " literal " " rule ")")))

...and it turns it into a nice syntax diagram, rendered as an SVG file. I found producing an SVG to be a very easy way of generating vector images - SVG is quite a decent format to generate, and inkscape will happily convert .svg files to .png and .pdf from the command line, so it's easy to automate rendering.

The layout algorithm is quite easy. The BNF is parsed, and a tree of layout objects generated from the bottom up. Layout objects may contain other layout objects, recursively, and cover a rectangular extent of the two-dimensional plane. New layout objects are created at the origin, and then the parent layout looks at the sizes of the child layouts within it, and relocates them to appropriate locations within itself. When the layout object tree has been generated, it's processed top-down to generate actual SVG. Each different type of layout object renders its children recursively (unless it's a terminal, in which case it just renders itself at the chosen location), then it adds the arrows and lines that join the children together.

That's really all there is to it.

The output is quite decent, if your browser supports SVG!

Convince Alaric to let the Drs Put him under the Chop

Alaric has a... well nipple on the back of his head, the size of which only became apparent when we chopped off all his hair to try and deal with a dandruff problem. The dandruff problem turned out to be interesting as well but more on that later!

This lump on the back of his head has a distinctive look and I found a couple of smaller ones on him (one of which I had accidently mangled with a razor :( ). The Dr says it's a variation on a wart but isn't that contagous but that it should be removed - doesn't have to be but should be. It will really need a scalpel taken to it as it is too large and fleshy to be frozen off and it simple wouldn't get it all.

Any way - due to the horror on Alaric's face the DR said he could think about it - I think it should be removed - help me convince him

You can’t get the staff these days!

We've got houseguests over, and we left them at home while we went for a walk in the countryside.

However, when I got home, I found they'd decided to go to Tesco many hours previously, and had gone off leaving:

  • Jean's rabbit outside in his run
  • The shed unlocked
  • The front door of the house wide open

When asked why, they said "Oh, Barbara (the next door neighbour, my aunt) was around"...

Had it not occurred to them that Barbara might decide to go out herself, and is not supposed to be responsible for locking up our home? Or that Barbara might not actually take it upon herself to guard our open doors from passing opportunists, and sit watching, but might have her own things to do?

sigh

WordPress Themes

Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales
Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales