usinglinux

u/usinglinux


r/rust•

My unfounded assumption about how weak references in Rc was that it'd contain a strong reference count and a linked list of Weak<T> that'd be traversed and zeroed when the last strong is dropped. (Come to think of it, that'd need Weak to be Pinned, so it wouldn't have been a very practical design anyway).

Reading up code of Rc::new_cyclic in TWIR, I learned that there's just a weak count in parallel to the strong count, and that the inner gets dropped in place. But the actual memory freeing is delayed so the weak references have something to point to while they exist, even though they only use the first two wo

4421

r/fdroid•

Are there any programs in F-Droid I could use for remote management in the following way, or programs that could need help packaging if they're not in F-Droid?

Specifically, I'm looking for something that works more or less like a VNC server in reverse mode (ie. it connects to a fixed network address, sends screengrabs there and receives key/pointer events), can run in background while the phone is on and won't complain loudly when the server is absent.

My use case (I know, sounds like spying so far) is that a 90 year old relative is having more and more trouble managing his smart phone, and often calls me on a different phone for help. My server side of the connection will typically be of

70

r/ipfs•

i'd like to archive ipfs content to read-only storage (DVD). currently i see two ways to do that:

  • ipfs get --archive $HASH for all relevant hashes
  • ipfs pin $HASH for all relevant hashes, and archive ~/.ipfs

the former has the downside that i might not be able to reproduce the original ipfs hashes any more (if, for example, an exotic chunker was used). the latter has the downside that the DVD is unusable without installing ipfs again.

is there any format where i can have files available on disk and am still able to reproduce the original ipfs hashes (eg. to republish them), and still have them on disk only once?

38

You've reached the end of this feed.