Andri Yngvason

@andriyngvason
70 Followers
46 Following
124 Posts

I just changed the RCD, but the new one is too big, so the cabinet door pushes the test button when I try to close it. #diy #fml

Why did I change it? Because the old one didn't work. I had suspected that it was broken ever since the control board in my washing machine blew up in a rather more spectacular fashion than it would have had the RCD actually worked. Anyway, I was doing some electrical work a few days ago and decided to test it while I was at it.

A guy on the internet is telling me about a new method, that he came up with, for encoding H.264 video for streaming. When I ask him for benchmarks he says: "As a matter of policy, I refrain from conducting benchmarks on my own projects"

I believe that Microsoft should be prosecuted for crimes against humanity for the way in which they've implemented replies in Microsoft Outlook.

The lack of indentation makes it impossible to discern who said what. Everyone who uses Outlook seems to have come up with their own way to quote the previous sender and this makes things even worse.

There was a small glacier on top of my Jeep this morning.

My washing machine broke, so I fixed it. It was a bit of a journey, so I wrote about it: https://andri.yngvason.is/repairing-the-washing-machine.html

#diy #righttorepair

Repairing the Washing Machine

Prelude

Andri is…

Support for the new Wayland screen capture protocol has been merged in wlroots!

Next step: implement individual window capture

https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4545

Implement ext-image-capture-source-v1 and ext-image-copy-capture-v1 (!4545) · Merge requests · wlroots / wlroots · GitLab

Ref wayland/wayland-protocols!124 Sway patch: https://github.com/swaywm/sway/pull/7976

GitLab
Experimenting with motion estimation. Maybe this can be used in combiation with https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#copyrect-encoding
rfbproto/rfbproto.rst at master · rfbproto/rfbproto

Contribute to rfbproto/rfbproto development by creating an account on GitHub.

GitHub

It is remarkable how little the internet knows about parallel #deflate #compression The best guide on how to do it can be found in a massive comment in the pigz source code.

It's not really that hard once you realise that you can concatenate streams as long as they're flushed (synced to byte boundaries): https://github.com/any1/neatvnc/blob/master/src/parallel-deflate.c

I didn't set the dictionary for each chunk, but it doesn't seem to make a big difference.

neatvnc/src/parallel-deflate.c at master · any1/neatvnc

A liberally licensed VNC server library with a clean interface - any1/neatvnc

GitHub

Footgun of the day: https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/isConfigSupported_static

This function named `isConfigSupported` returns a `Promise` that resolves to an object, not a boolean.

Very sneaky. I fell right into it; never saw it coming.

VideoDecoder: isConfigSupported() static method - Web APIs | MDN

The isConfigSupported() static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).

MDN Web Docs

WayVNC 0.9.0 was released today: https://github.com/any1/wayvnc/releases/tag/v0.9.0.

We now have H.264 encoding on Raspberry Pi, UTF-8 clipboard and ext-image-copy-capture-v1 support. So far the only compositor that implements it is Jay, but I guess that means that Jay users can now also use wayvnc (albeit without input).

Release v0.9.0 · any1/wayvnc

Highlights The new ext-image-copy-capture-v1 protocol has been implemented for output capturing. A file descriptor created by a parent process can be used for listening for new connections, thanks...

GitHub