• 1 Post
  • 28 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle
rss

  • I set up a server with all my stuff on, and use syncthing for syncing my files, and self hosting for services. I mostly use vanilla configs for apps, and prefer distros with good defaults.

    Some time ago I switched to Bluefin, and stopped distro-hopping 😅



  • Yes it is correct. TLDR; threads run one code at the time, but can access same data. processes is like running python many times, and can run code simultaneously, but sharing data is cumbersome.

    If you use multiple threads, they all run on the same python instance, and they can share memory (i.e. objects/variables can be shared). Because of GIL (explained by other comment), the threads cannot run at the same time. This is OK if you are IO bound, but not CPU bound

    If you use multiprocessing, it is like running python (from terminal) multiple times. There is no shared memory, and you have a large overhead since you have to start up python many times. But if you have large calculations you can do in parallell that takes long time, it will be much faster than threads as it can use all cpu cores.

    If these processes need to share data, it is more complicated. You need to use special functions to share data, like queues and pipes. If you need to share many MB of data, this takes a lot of time in my experience (10s of milliseconds).

    If you need to do large calculations, using numpy functions or numba may be faster than multiple processes, due to good optimizations. But if you need to crunch a lot of data, multiprocessing is usually the way to go







  • conrad82toSelfhosted@lemmy.worldFighting with immich
    link
    fedilink
    English
    5
    edit-2
    2 years ago

    I also have internal only traffic, but I still use let’s encrypt. I self signed for a couple of years, but switching to proper certificates made things much simpler and better. Especially on mobile.

    I use a combination of my own domain and caddy. and duckdns, since my domain registrar does not have an api caddy can use, but I can point my domain to my duckdns domain and it works 👍








  • I would recommend using one of the distros backed by a big company or have very long track records. They are less likely to break on updates, and have a higher chance of supporting any uncommon hardware you may have.

    • Fedora
    • Ubuntu
    • Mint
    • Pop OS

    If you have new hardware (e.g. GPU newer than 6 months) you will probably have issues. Follow the recommendations from the hardware supplier, or use something arch based. I used Manjaro a while when I got new hardware.

    Besides those tips, you should decide which desktop environment you like best. I prefer gnome, as I enjoy to spend time in apps and not on in settings. Others prefer customization. Have a look at https://youtu.be/09cYQJBgKEs?si=KX8FZeMRcMlPTzG2


  • conrad82OPtoSelfhosted@lemmy.worldMiniflux + News App
    link
    fedilink
    English
    22 years ago

    It works OK from the web page, but scrolling to the next item was a bit wonky for me. Using the swipe mode mis-fired when I was horisontally scrolling code. And double tapping didn’t always work.

    The UX feels smoother in News. You also get thumbnail images. And you can open the link to the source directly, which I prefer for some of my feeds. For me, the experience is smoother.