Just for something different, a photo-essay (ooh! wanky!) about the weekend. It started with a celebration of our Demiversary, involving much icecream (well, frozen custard, but KISS) and continued with fireworks at Gerrie's and a day of nesting. We now have curtains in the living room (nearly done except for some extra fiddling to get them to sit properly) and the family room (half done; awaiting hems) and a complete set of woollen curtains in the EDoD's room, which she loves. She also loves the newly-discovered floor: I helped her tidy up, because I figured that one explanation for her recent shoutiness might be that she didn't have a place to retreat to when her younger siblings (or older parents) got too painful. Now she does, and it's done wonders: she was just gorgeous today, much more relaxed than she has been. I tidied the BatPup's room too -- less of a chore, since she doesn't have her big sister's talent for chaos -- and she's getting the same benefits.The BatPup got it into her head that she wanted to go to "a Evil Feast", which we took to mean a medieval one. (If we were wrong and she really wanted to have dinner with Pol Pot, Robert Mugabe and Dick Cheney, well... dang.) So we went along to the Baronial Day and the Pot Luck Feast yesterday, with... mixed results.
Initially, it was highly painful. The Elder Daughter of DOOOM was particularly DOOOMy, having just returned from two weeks in the bucolic hamlet of Lower Lumbago with my parents, during which time she was doted upon in a typically grandparently fashion so that by the time she returned it was clear that she was the Entitlement Consort to the winner of the Entitlement Crown Tourney, had been declared Entitlement Crown Princess and was looking forward to her Entitlement Coronation any moment now. But a quick trip to a bakery for breadular comestibles helped all three of us get our heads together, and things improved dramatically after that.
Over the course of the evening, I found a good balance between using the EDoD as a babysitter and simply letting her swan off doing her own thing. She was happy with the mix too, and in the end spent plenty more time than I expected looking after the BatPup as well as Master Pertand Handsome's[1] two gorgeous daughters. This enabled me to get something to eat and spend some time chatting with people. I tried to convince the monkeys to eat as well, but not even bread and roast chook caught their attention. Fortunately, the bakery trip and a bit of yoghurt kept them from collapse.
I now have the stirrings of a plan for a future Evil Feast Kit: supplies to enable more relaxed feast-and-tourney attendance with my manic monkeys:
Really, that's about it. The monkeys can get sufficient nourishment even if the feast itself is not to their liking, and if the BatPup wants to go to sleep the groundsheet and a blankie will do nicely.
Time to update the feasting kit, methinks...
[1] Names changed to protect the guilty, although not very much.

I've begun trying to teach the Elder Daughter of DOOOM some programming again. I toyed with the idea of teaching her Python, but in fact she really liked the Common Lisp I was showing her last year, so we've stuck with that. We're going a little faster now though, since I think she was getting bored. Here's what we did tonight:
(defvar family-tree '(pa nanny ((bat beloved (edod batpup boywonder)) (bigweebro mrsbigweebro (cutie1 cutie2)) weeweebro)))
This is the family tree of her Nanny and Pa and their three offspring. Big Wee Bro has a lovely wife, Mrs Big Wee Bro, and two lovely daughters. Wee Wee Bro has a tendency to hang around with wee slips of gels, but hasn't managed to convince any of them to assist in the overpopulation of the planet, so he gets an entry all by himself.
(defun father (tree) (car tree)) (defun mother (tree) (cadr tree)) (defun children (tree) (caddr tree))
These are the EDoD's first-ever functions: given a family tree, they return the name of the father, the name of the mother and the list of names of the children.
So: (children family-tree) gives you ((BAT BELOVED (EDOD BATPUP BOYWONDER)) (BIGWEEBRO MRSBIGWEEBRO (CUTIE1 CUTIE2)) WEEWEEBRO), which is what you expect (it converts to uppercase for Hysterical Raisons; don't worry about it).
The bulk of the lesson was then in how to extract multiple pieces of information using these functions, and glue them together. I introduced her to list and append, which along with the already-familiar car and cdr and the much less useful cons are pretty much the primary toolbox for list manipulation, old-school style. Step-by-step, we wrote this:
(defun describe-family (tree) (append (list (father tree) 'and (mother tree) 'love) (children tree)))
Result of application on the list of our family: (BAT AND BELOVED LOVE EDOD BATPUP BOYWONDER). Which is (a) true, and (b) not bad for half an hour of leisurely programming.
Next time we'll try something different: a function to print out her times tables. After that, we might revisit the family tree and see about a bit better formatting, so we can get something like "BAT AND BELOVED LOVE EDOD, BATPUP AND BOYWONDER". The insanely powerful format function will get a couple of lessons all to itself, methinks.


I'm planning to teach the Elder Daughter of DOOOM some programming this year. I gave her a bit of a rundown of Lisp last year, but ran into some trouble because (+ (* 1 2) (/ 3 4)) doesn't look an awful lot like the 1×2 + 3÷4 that she's used to. So I figure Python is the next bet. To that end, I've been translating a short game from the book that taught me to program, from the original BASIC. It's not a big job -- it's a very small program -- but I have a question I'd like to ask any Pythonistas who may be watching. This isn't a big thing, and I could work around it any of a dozen ways, but I'd like a quick, simple method that won't confuse my daughter or make the program less readable. Here it is:
In BASIC, which is focused very much on keyboard input and plain text output, there's a command to print some text, sensibly called PRINT. So if I say PRINT "Hello, world" then I'll get the traditional greeting, right there. And Python has the same thing, although it spells it print. But BASIC has the logical inverse, a command to take in data rather than to print it out: this is the INPUT command, as in INPUT x,y which will ask for two numbers, comma separated, and place the first of them in the variable x and the second in the variable y. Does Python have anything like this?
The solution I first thought of went something like this, from memory:
f = open('/dev/tty')
raw = f.readline()
x,y = line.split() # space-separated, not comma, but that's OK
# something to convert x and y to integers
I have a nasty feeling I'd be using a list comprehension somewhere to change the strings to integers, which is not something I want to expose the EDoD to at this stage. Obviously I can put it into an importable library file, and probably will because there'll be a lot of this sort of thing over time, but really I'd like something simpler.
Now, C has a sscanf function, which one uses like this:
int x,y;
sscanf(line, "%d %d", &x, &y);
/* do something with x and y now */
... so maybe there's an equivalent in Python? Anyone? Bueller? Bueller?
ETA: I think this will do nicely; I'll stick it in a library file to keep the implementation from messing up the pristine purity of hurkle.py:
def input_numbers():
return [int(x) for x in sys.stdin.readline().split()]
Usage:
x,y = input_numbers()
The final of the May Crown looked like a three-way between Duke Ædward Stædfæste, Baron Hrothgar æt Gytingbroc and Sir Hugh the Little. But Ædward did something deeply disturbing to his elbow, and had to bow out. The final was a best of three, and Hugh attached a mop handle to Hrothgar and cleaned the field with him. And so, for the first time in ages, we have virgin crowns! Woot!
The big controversy for the day was King Alfar's decision to go for a sudden-death tourney: one death and you're out. For a lists of thirty fighters, this would have made sense, but for seventeen, many of them here from far away, it was just pitiful. I saw what looked like some ugly, ugly fighting as stickjock after stickjock realised this was their only chance and they'd better focus on winning. Nasty stuff. And it was all over in a little more than an hour, from invocation court to investiture of the new Crown P&P. I didn't like it, and I hope it doesn't get done again.
Apart from that, it was a good day. The EDoD and the BatPup had fun running around, and the EDoD's best friend "C" enjoyed herself too. I got to sing Are You My Daddy to
auntyyolly, who I gather had nothing to do with sabotaging her Beloved's elbow. (I asked, and he said they'd planned a quiet, stay-at-home reign, which makes sense and would have been a Good Thing for this kingdom. It's not like anyone could call them lazy, so it would be a Salutary Lesson and no mistake. But then the elbow fairies attacked and the rest is hysteri.)
![]() |
You are viewing Create a LiveJournal Account Learn more | Explore LJ: Life Entertainment Music Culture News & Politics Technology |