I’m porting an old app into docker, and trying to avoid using stuff where the end of life has been and gone so I’ve updated ruby, and the version of linux they were using. And now I find that reason prawn doesn’t render qrencode generated QR codes any more. I think it might be because qrencode adds an alpha channel to the border of the png.
Install imagemagick and inspect a qrencode png which doesn’t work:
Background color: white
Border color: srgba(223,223,223,1)
Matte color: grey74
Transparent color: none
Whereas if run the same png through imagemagick with convert test.png newtest.png:
Background color: gray(255)
Border color: gray(223)
Matte color: gray(189)
Transparent color: gray(0)
Causes newtest.png to render in your prawn pdf.
I’ve been meaning to post about some of the strange things in this country – one of them is how they have a hairdresser on every corner. I mean, within a 5 minute walk from my flat there are at least 4 I can think of, probably more. B and I get uneasy if we don’t see one on a street we’re walking through “Are we still in Norway??” we say to each other in mock alarm.
Anyway, so I got an email from my work (the University of Oslo) explaining it was stopping all physical lectures and lessons – ‘fine, probably sensible’ I think. Get told we are cancelling our international workshops and that all the schools in the country are closing – ‘oof, but still it’s probably necessary’, you know? But you know things are serious when they close the hairdressers, which is apparently the latest measure. Yikes!
Yesterday it hit 18 in Oslo, and as is completely usual here everyone around me threw off their clothes, stripped down to their underwear and spreadeagled themselves in the sun (yes when it first happened I was extremely surprised). I should have taken a photo of myself too – I was wearing jeans and a fleece and got some very funny looks. Anyway, a few hours later a friend of mine in Cape Town sent me a message complaining of how cold the winter was. I checked yr.no and CT was 1 degree warmer! There’s a lot of variation in body’s tolerance of heat/cold I suppose.
The march started out with a prayer from an imam, a buddhist monk and a christian priest, which I thought was a very nice touch. It was a really wonderful atmosphere. I’m following the COP 21 news with interest.