I have succeeded at https://github.com/q66/cffi-lua , subtask "callbacks without random crashes", and the answer is "assign the callback to a local variable, otherwise the gc collects it". yes it's logical that the gc doesn't scan C address space looking for roots, I suppose, but it took an awful long time before I realised this was the problem

bed

GitHub - q66/cffi-lua: A portable C FFI for Lua 5.1+

A portable C FFI for Lua 5.1+. Contribute to q66/cffi-lua development by...

GitHub

added labwc support for "input inhibitor" (needed to make screen locking work) and fixed a bug with the window cycling, but now it's doing something extremely weird with blanking the portions of screen not covered by the active window (the wallpaper disappears and reappears when I move the mouse) and I can't for the life of me think what's causing it.

Reverting my changes hasn't fixed it either

Think I now have working support for primary selection (a.k.a middle-button click to paste) in labwc and am approaching the point where it doesn't have any really horrible gaps in as a works-for-me GNOME replacement.

https://github.com/johanmalm/labwc/pull/49

A screen lock would be a good next thing to add before I next take my laptop out of the house

workaround Gtk primary selection bug by changing order of globals by telent · Pull Request #49 · johanmalm/labwc

This makes primary selections work at least with wayland-native Emacs (using...

GitHub

Switched from gnome to labwc (wlroots-based wayland compositor) and kitty (terminal) and it has not been plain sailing: so far spent most of the evening trying to find out why the mouse pointer in kitty windows is teeny tiny. Changing the mouse pointer theme - apparently this is a thing - seems to have fixed it

XCURSOR_THEME=Adwaita XCURSOR_SIZE=32

https://github.com/telent/moss/ - command line password manager

A small ruby script that works like "pass" but uses age instead of gpg. Written mostly because there seems to be no clear winner among the other previous attempts at doing similar, and partly because it was a nice simple exercise

I like to say WIBSNM ("was invented by someone not me") because I wasn't the first to think of "NIH"

GitHub - telent/moss: Maybe-OK Secrets Store

Maybe-OK Secrets Store. Contribute to telent/moss development by creating an...

GitHub

Using emacs tramp with remote nixos hosts: add to your .emacs

(require 'tramp) (add-to-list 'tramp-remote-path 'tramp-own-remote-path)

to make it use $PATH instead of resetting to include only /run/current-system/sw/bin and nothing else useful (doesn't include packages in your profile that you added with nix-env nor anything in users.users.yourname.packages)

"In a way, Ikea is kind of like the Bitcoin of furniture: the company uses universal designs, meaning its hardware and measurements are uniform across most of the developed world." I'd like to propise this for Worst Analogy This Week, where do I send it?

https://thehustle.co/the-thriving-business-of-ikea-hacking/amp/

The thriving business of ‘Ikea hacking’

A growing number of companies are offering design tweaks for old Ikea...

The Hustle