Monday, December 14, 2020

Wednesday, October 21, 2020

How do you pronouce SIEM?

MS200667 tmp  grep '^.ie.$' /usr/share/dict/words
aiel
bien
bier
dieb
diem
dier
diet
gied
gien
kiel
kier
lied
lief
lien
lier
lieu
Miek
mien
pied
pien
pier
Piet
piet
riem
rier
sier
tied
tien
tier
vier
view

Thursday, October 1, 2020

Cinnamon settings

Settings, Windows, Behavior

Setting, Keyboard, Layouts, Options

weather@mockturtl

hwmonitor@sylfurd

 

Friday, October 18, 2019

Oily coffee beans

So we have a Gaggia Brera superautomatic espresso maker. It makes great espresso but refuses to feed oily coffee beans. Here's a list of those that aren't and those that are too oily.

Not too oily:
In between
  • Verena Street Shot Tower Espresso
Too oily:
  • Dazbog White Nights Espresso
  • Kicking Horse Cliff Hanger Espresso
  • Kicking Horse Three Sisters
It'd be nice if the roasters would come up with a method to express this. In general of course, we can look for light or medium roast, but there is little consistency between the light/medium/dark roast oiliness.

Friday, July 5, 2019

This just gets worse and worse

More macos strangeness.
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>

int main(int argc, char** argv) {
    int pid = fork();

    if (pid == 0) {
        printf("child, errno: %d\n", errno);
        exit(0);
    } else {
        printf("parent, errno: %d\n", errno);
        exit(0);
    }
}

And here's the output under macos.
$ ./a.out 
parent, errno: 0
child, errno: 22
The fork man page doesn't even list "Invalid argument" as a possible errno value...

Sunday, June 23, 2019

MacOS/Darwin/Mach sleep weirdness

A system call to sleep returns 0 as it should, but set errno to 60 "ETIMEDOUT Operation timed out." which it really shouldn't, especially on a return of 0. https://pubs.opengroup.org/onlinepubs/009695399/functions/sleep.html states "No errors are defined." Here's some C proof.
#include <stdio.h>
#include <unistd.h>
#include <sys/errno.h>

int main(int argc, char **argv) {
    printf("this looks good: %d\n", sleep(1));
    printf("this does not: %d\n", errno);
}
And the output.
this looks good: 0
this does not: 60