Oddbean new post about | logout

Notes by Yann Büchau :nixos: | export

 :python: #Python help please:

How does one programmatically access docstrings 'attached' to dataclasses fields?

sphinx can do it, so it's possible, but I can't find how. 

Any ideas?

https://cdn.fosstodon.org/media_attachments/files/112/672/512/359/269/694/original/ae49ed401187df5c.png 
 Have to say, has been a while since I enjoyed a series so much as #Reacher. A bit violent at times but so catchy! 
 Wow, my :nixos: #NixOS *really* does not want me to use flakes to 

I keep hitting this infamous 

error: attribute 'currentSystem' missing

in pkgs/top-level/impure.nix:17:43

localSystem ? { system = args.system or builtins.currentSystem; }

No example flake works for me. I tried specifying my system = "x86_64-linux" absolutely everywhere but it just doesn't care. 

And then always this weird

error: cached failure of attribute 'nixosConfigurations.yann-desktop-nixos.config'

It's tiring... 🙄 
 I just tried out :gitannex: #gitAnnex' support to sync files on an #Android phone via #adb wirelessly. This is a whole new level of awesome and is ideal to archive photos etc. from my wife's phone. 🥳

It's not a fully automatic process though - one needs to `adb connect IP:PORT` initially and then run `git annex assist` (or have the assistant running I guess) in your repo. Then it does two-way file syncing, which is awesome. It's also not terribly slow.

https://git-annex.branchable.com/tips/android_sync_with_adb/ 
 Oh please @b1db83cd PLEASE fix the bug that makes emojis disappear when exporting or printing to PDF 😩

For how many years (decades?) has this existed now?

Can't just be me, same problem across distros for me.

(Of course, I highly value your work maintaining an open source office suite, but this one really hits hard every time 🥲)

#LibreOffice #bug #emoji #PDF 
 nostr:npub16mtxp68k8c3p2sj0wzhagt3kd8ywkvzlkfyt3vrx9cahzfz000vs8dpnwy I'm not sure about all of s... 
 @7f73a7d1 Then off I go to find a Python tool to chop am SVG's Bezier curves into line segments 🚶 
 nostr:npub16mtxp68k8c3p2sj0wzhagt3kd8ywkvzlkfyt3vrx9cahzfz000vs8dpnwy One other issue with conver... 
 @7f73a7d1 Thanks for the input. I guess it's reasonable to expect the user to provide a primitive SVG with only paths. This is what pretty much all CAD software does that I have used. (non-path elements are just ignored). So shapely does not know about Bezier curves? Can it only handle straight lines? If so, then an arbitrary precision needs to be used, right. Would be fine for me if there's Python tooling for that. 
 Wow, #Shapely (a powerful Python library for 2D shape manipulation) *really* doesn't want you to give it SVGs, does it? 🙄 It reads WKT and GeoJSON and apparently converting SVG to either of those is nothing there are many #Python tools for apparently...

With Shapely, I can probably add SVG/2D shape import to #sdfCAD - a feature that's sorely missing (along with 3D object import, yes...). 
 Is there an #openSource #openHardware project for an emergency button that when pressed sends out messages via various channels (e.g. SMS, MQTT, Email, LoRa, etc.)? Sounds like a project for a Lilygo T-Beam. It should just be that: Hit the button, messages get sent to predefined targets.

https://cdn.fosstodon.org/media_attachments/files/110/722/599/306/358/312/original/542405f4f89f51d7.png 
Event not found
 I can't seem to find any info where to put thumbnailer entries (the .desktop files as the one above) on a system level in :nixos: #NixOS. The canonical /usr/share/thumbnailers obviously doesn't exist.

Where does one put thumbnailers in NixOS? 🤔