Posts by hughcb@sc.sigmaris.info
 (DIR) Post #9sCGr7KyKUOOhOeEzY by hughcb@sc.sigmaris.info
       2020-02-19T13:29:51Z
       
       0 likes, 0 repeats
       
       @sir @jordan31 The RK3399 SoC in the Pinebook Pro is fortunately bootable without any blobs - https://stikonas.eu/wordpress/2019/09/15/blobless-boot-with-rockpro64/Unfortunately suspend isn't working with this open source firmware, but that should be fixable in software.
       
 (DIR) Post #ADfhHXKpXADGNJz6rg by hughcb@sc.sigmaris.info
       2021-11-22T21:28:11Z
       
       0 likes, 0 repeats
       
       @calebccff @migratory If referring to https://docs.rs/nix/0.23.0/nix/poll/fn.poll.html looks like this does take a slice of PollFds, so it should be possible to have a Vec<PollFd> and pass a slice of it by e.g. `poll(&mut my_vec, my_timeout)`. Here's a similar example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ab632fa07cd5cf3decc28bac6f0e4673
       
 (DIR) Post #ADfjjEB6YHigygldwm by hughcb@sc.sigmaris.info
       2021-11-22T21:55:35Z
       
       0 likes, 0 repeats
       
       @calebccff @migratory What gets passed to poll() is a "slice", which consists of a pointer to some memory where a number of elements are stored sequentially, and a count of how many elements are there, and that's all poll() needs to work with.A slice isn't quite the same as an array, slices don't own memory, they refer to memory "elsewhere" (in this case, memory owned by the Vec). IME arrays aren't used very much in Rust, due to the size-known-at-compile thing. Vec and slices are used instead.
       
 (DIR) Post #ADfnQJW6sUhDqmpT3g by hughcb@sc.sigmaris.info
       2021-11-22T22:01:57Z
       
       0 likes, 0 repeats
       
       @calebccff @migratory When starting Rust, it took me a while to understand how slices worked. As someone who worked a bit with C and C++ before, seeing the data layout on https://cheats.rs/#references-pointers-ui helped - a "regular slice reference" shown there is just a ptr and a len. And lower down the page in "Standard Library Types", a Vec is just a ptr, capacity and len. And it reveals how a slice can be got easily from a Vec just by taking the Vec's ptr and len, and passing them to another function.
       
 (DIR) Post #AhsAFVirXVzUwf6My0 by hughcb@sc.sigmaris.info
       2023-05-20T05:31:30Z
       
       0 likes, 0 repeats
       
       Seen any low bridges lately?
       
 (DIR) Post #Ai0JPtQYiKxQDDFGjY by hughcb@sc.sigmaris.info
       2023-05-31T09:46:08Z
       
       0 likes, 0 repeats
       
       Confused about how many old men and their exact ages that’ll be at this event.
       
 (DIR) Post #Ai26uHmlnyKXMDiTVQ by hughcb@sc.sigmaris.info
       2022-11-12T23:32:35Z
       
       0 likes, 0 repeats
       
       Unusually warm and sunny for November, today
       
 (DIR) Post #Ai48EFdVzhDUkmOK4u by hughcb@sc.sigmaris.info
       2020-11-28T17:19:24Z
       
       0 likes, 0 repeats
       
       Christmas themed flow control?
       
 (DIR) Post #Ai6vukR59mR4VcOCps by hughcb@sc.sigmaris.info
       2019-07-12T17:13:00Z
       
       0 likes, 0 repeats
       
       So those teachers in school that told us not to run around with scissors in our mouths had a point, huh?  https://inews.co.uk/news/uk/woman-dies-impaled-pierced-brain-eco-friendly-steel-straw/
       
 (DIR) Post #B6BTJxoYoWeb0mZOEK by hughcb@sc.sigmaris.info
       2026-05-11T08:05:08Z
       
       1 likes, 0 repeats
       
       @mjg59 @headmold I think there's a big difference between attestation tech that's tightly coupled with computer/phone hardware and vendor-provided OSes and doesn't work on LineageOS/PostmarketOS/etc, versus attestation done by a relatively cheap pluggable external device. Only the former is restricting the OS & software people can run on devices they own. OTOH Yubikeys and other pluggable/NFCable tokens can work with basically any OS.