The HTML IMG attributes and styling that I think I want

Once upon a long time ago ,I put very basic support for inline images into DWikiText (thewikitext dialect used here). At the time I felt I had both simpleneeds and a simple understanding of the IMG element, so I justspecified the image's width and height and called it a day, puttingthem in as width= and height= attributes in the IMG element.

Much later on, on my personal site , I foundthat I wanted to include some images and make them as large as


A perhaps surprising consequence of Requires dependencies in systemd

I tweeted :

Oh right. This service restarted because I said'Requires=rsyslog.service' & I updated rsyslogd (which restartedit). Moral: don't do that.

The systemd.unit manpage tells you that this will happen if you read it carefully. In thesection on Requires :

If this unit gets activated, the units listed here will be activatedas well. If one of the other units gets deactivated or itsactivation fails, this unit will be deactivated .

(Italics mine.)


Some new-to-me Vim motion commands that I want to try to remember

I've been trying to get better at vim on the grounds that I spenda bunch of time in it and even without caring about 'vim golf' there are a number of things about it thatwould save me time and effort. For now, my focus is on some additionalmovement commands and I'm primarily interested in text editing, notcode (I do relatively little coding in vim for various reasons, but alot of writing everything from documentation through email to WanderingThoughts posts).

I already


What can be going on with your custom management commands in Django 1.10

If you update a relatively old Django project from 1.9 to 1.10 orlater and you have added your own custom management commands that take positional arguments, it's possible that those commandswill abruptly stop working (well, stop accepting positional arguments).Also, although it is not explicitly documented, the *args parameter of your Command's handle() function is now oftencompletely meaningless and you won't see anything passed in it(although when this happens is fairly obscure).


I should stop reading some mailing lists during breaks and vacations

The university is on its annual Christmas break now, which is givingme the valuable opportunity to reflect on some things about how I dealwith breaks and their bigger cousin, vacations. Now, first off, Ishould say that for me breaks are different from vacations in that theyinvolve less disconnection from work. On vacation, I'm not supposed todo anything work-related and that includes reading all work email; onbreaks, we're still sort of vaguely monitoring the systems and so on.

(


Why the gosimple program is great

Gosimple is a linter for Go source that specializes in simplifying yourcode, written by Dominik Honnef (to more or lessquote from its Github description). The sorts of simplifications that gosimple suggests are things like using time.Since(t) instead of time.Now().Sub(t) or replacing a loop of:

for _, iname := range thing.members() {    exlist = append(exlist, iname)}

With the better append usage of ' exlist = append(exlist,


Malware is definitely out there and it's targeting us specifically

A few years ago I did a count of 'viruses' that our email system hadseen in incoming traffic and found that we'dseen a relatively low volume. This left me with the impression thatthings had died down, an impression not changed by occasional surgesearly in 2015 .

Well, let me update that. Ever since I started actively looking at theattachment types we've been getting in email and actively blockingsome of them , I've noticed what I thinkof as a


An important little detail of our ZFS spares setup

I've written before about our ZFS spares handling system ( 2 , 3 ) that we use for our fileservers . In all of that time, I've casually hand-waveda bit of terminology by calling our spares 'disks'. While they aredisks from the perspective of the fileservers, our spares are notseparate physical disks on the iSCSI backends (well, not usually,and I'll get to that).

We partition the 2TB physical HDs on the iSCSI backends into anumber of


In praise of zpool history

When I started out with ZFS, many years ago, I mostly ignored theexistence of ' zpool history ' and the information it can give you.Sure, it seemed like a neat side feature and I didn't exactly objectto it, but I didn't think I'd ever use it for anything much. As itturns out, I was kind of wrong about that.I still don't use zpool history very often and it is not an essentialpart of what we do with ZFS


Don't assume you can renew TLS certificates whenever you want to

We currently have one of our web sites using Let's Encrypt despite us not planning toswitch it to a LE certificate. And there lies a short story.

We (collectively) were planning to renew the existing non-LEcertificate for this site a week or so in advance of it expiring.But things came up, and renewal slipped, and then suddenly thecertificate was expiring in less than 24 hours and it was November25th .

(November 25th was a normal work day in