frankfurt_schoolgirl [she/her]
  • 0 Posts
  • 6 Comments
Joined 2Y ago
cake
Cake day: Jul 25, 2022

help-circle
rss

Maybe you could just try a different Transmission docker image or build your own? Sounds like some weird instability in that particular version.


As long as there’s a neovim extension



If you want to accept a user input of any length, you have to read the input piece by piece and allocate a new buffer if the original becomes full. Basic steps would be:

  1. Use malloc to make a char * buffer
  2. Read one character at a time in a while loop, keep track of your position in the buffer
  3. If you get an EOF character, add a \0 to your buffer and break the loop. You’re done!
  4. If the position is greater than the length, allocate a new buffer that has twice the length. Use memcpy to copy the stuff from the old buffer to the new one. Use free to get rid of the old buffer.

This will work until you fill the entire memory of your computer. You should probably set a max length and print an error if it is reached.


It creates a flat network between all of your devices anywhere, so if you have a home server that you want to connect to from elsewhere you can do that without port forwards.


What’s your use case? Maybe you would be better off with Tailscale or something like that