Multiple process or threads? And, why?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    2d ago 100%

    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

    1
  • Forgejo v9.0 released
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    5d ago 100%

    if i remember correctly, i just replaced gitea with forgejo for image: in my docker-compose, and it just worked

    it was a couple of versions back, so i don't know if that still works

    4
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearHO
    homelab 2w ago
    Jump
    What do you use for DNS in your Homelab?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    2w ago 100%

    I'm using leng in an dedicated LXC container in Proxmox

    https://github.com/cottand/leng

    I'm using defaults + some local dns lookups. Works fine for my use, and lighter than pihole. No web ui

    2
  • Selfhosted S3 compatible recommendations?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    1mo ago 100%

    Which apps are you testing?

    I set up minio s3 for testing myself, but found that most of my docker services doesn't really support it. So I went back to good old folders

    4
  • Haptic: A new local-first, privacy-focused and open-source home for your markdown notes
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    1mo ago 100%

    yes, regular markdown notes has been a good decision 😅

    In the beginning, the query results were stored in the markdown files, which could be useful if reading them in another app. But now I just get the query code. I think there were reasons

    I'm glad to hear things have cooled down. Does it take much effort to understand and use the templating stuff? I just remember templates got pushed to a different view, and I needed some header tags to get it working

    So you like spaces or not? I never got that far with silverbullet. And I haven't used Trillium. I loved evernote when it came out. But it made me aware of the value of maintaining my own data.

    Now I try to have data in a directory structure and not in databases

    1
  • Haptic: A new local-first, privacy-focused and open-source home for your markdown notes
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    1mo ago 100%

    I am not thinking of the most recent versions.

    The query system was updated, around version 0.6 if i remember correctly. I don't think the updates were bad, but some things broke and I am too old for "bleeding edge". The template system was also updated at some point

    I don't have a great solution. I use syncthing to keep notes local on all devices and MarkText on desktop and Zettel Notes on android.

    what i really liked about silverbullet was that it had offline support. but there were made some changes there as well along the way, and for me it became less stable after it became optional. But I haven't actively used it for some time. I still got an instance running tho

    4
  • Haptic: A new local-first, privacy-focused and open-source home for your markdown notes
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    1mo ago 100%

    How do you like the newer versions? I liked it in the beginning, but then there were breaking changes and new concepts and it started to feel a bit too complicated. So I am taking a break until things cool down

    5
  • Ozean: Self-Hosted RSS reader written in Go.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    2mo ago 100%

    I don't use multiple users or ldap, but miniflux supports many users. And based on this pull request it seems to have the necessary interface for ldap?

    https://github.com/miniflux/v2/pull/570

    I enjoy and recommend miniflux for rss reading. I have used it for a long time now together with flux news android app. I also use save integration with wallabag sometimes.

    2
  • In your opinion what's the best way to do and restore full backups of a Linux server?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    2mo ago 100%

    I use proxmox and proxmox backup server (in a vm). I reinstall them both, and re-add lxc and vm and their drives from backup. has already worked once.

    important files are additionaly synced to laptop and phone using syncthing.

    proxmox backups (which are encrypted) are rcloned to backblaze for offsite backup

    3
  • Self-hostee storage for Gmail
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    2mo ago 100%

    dovecot provides a proper shared imap server. But not all email clients allow moving emails between accounts (gmail and local email server), but Thunderbird does.

    I can access the emails from any client

    2
  • Self-hostee storage for Gmail
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    2mo ago 100%

    Not sure if it fits you, but personally I have set up a self hosted dovecot instance where i have moved old gmail emails to, using thunderbird as the client.

    7
  • [Request] Automatic backups when PC comes online
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    3mo ago 100%

    I use syncthing to copy important files between pc, phone and proxmox server. Syncthing can be set up with version control so it keeps old versions of files.

    Only the proxmox server is properly backed up though. to a proxmox backup server running in a VM on said proxmox server. the encryptred backup files are copied to backblaze using rclone

    Not sure if this is what you are looking for, but it works for me.

    TLDR syncthing for copies between local machines, and proxmox backup server and backblaze for proper backups

    8
  • linux
    Linux 3mo ago
    Jump
    Vanilla OS 2 Orchid - Stable Release
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    3mo ago 100%

    You could take a look at one of the universal blue distros next time you want to try some linux https://universal-blue.org/

    I use bazzite on my gaming pc and bluefin on my laptop. It is immutable linux, but the devs made the defaults really nice (for me at least)

    5
  • What's the ideal self hosted RSS setup?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    3mo ago 100%

    I use miniflux. To read the feed I use Flux News on android. I don't read the whole feed in the reader, but open the link

    I think miniflux supports downloading the source, but I had to do it manually each time when I tried

    https://miniflux.app/

    https://f-droid.org/packages/de.circle_dev.flux_news/

    9
  • Is Backblaze a reliable provider?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    4mo ago 100%

    I have used them since januar 2019, and I don't have any complaints. I have only needed to restore backups once - it worked as well as could be expected.

    Any issues with backups have always been on my side

    4
  • Docker email server to host mail archive
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    4mo ago 100%

    I use dovecot for this. And thunderbird to actually move/archive the emails. I use caddy for many of my services, so I have pointed dovecot to caddys certificates (for "my.domain"), since it manages certificates through let's encrypt. I had a plan to install postfix for sending internal emails from my self-hosted services, but it seemed like a bit of configuration and I got busy with other stuff

    I made an excerpt from my docker-compose.yml, but you probably have to figure out some things on your own

    
    version: '3.4'
    
    services:
      dovecot:
        image: dovecot/dovecot:2.3.20
        restart: unless-stopped
        volumes:
          - ./dovecot/:/etc/dovecot
          - /mnt/storage/dovecot/mail:/srv/mail
          - ./caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/wildcard_.my.domain/wildcard_.my.domain.crt:/etc/ssl/cert.crt
          - ./caddy/data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/wildcard_.my.domain/wildcard_.my.domain.key:/etc/ssl/key.key
        ports:
          - 993:993
    

    contents of ./dovecot folder:

    dovecot.conf
    passwords
    

    contents of dovecot.conf (I think I searched online to find a good example, I don't remember where from..)

    ## manage this file
    
    mail_home=/srv/mail/%Lu
    mail_location=sdbox:~/Mail
    mail_uid=1000
    mail_gid=1000
    
    protocols = imap pop3 submission sieve lmtp
    
    first_valid_uid = 1000
    last_valid_uid = 1000
    
    passdb {
      driver = passwd-file
      args = scheme=argon2i /etc/dovecot/passwords
    }
    
    ssl=yes
    ssl_cert=</etc/ssl/cert.crt
    ssl_key=</etc/ssl/key.key
    
    namespace {
      inbox = yes
      separator = /
    
      mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
      }
      mailbox Sent {
        auto = subscribe
        special_use = \Sent
      }
      mailbox Spam {
        auto = subscribe
        special_use = \Junk
      }
      mailbox Trash {
        auto = subscribe
        special_use = \Trash
      }
      mailbox Archive {
        auto = subscribe
        special_use = \Archive
      }
    }
    
    service lmtp {
      inet_listener {
        port = 24
      }
    }
    
    listen = *
    
    log_path=/dev/stdout
    info_log_path=/dev/stdout
    debug_log_path=/dev/stdout
    
    1
  • Why don't electric car manufacurers put solar panels on the car roofs?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    conrad82
    4mo ago 100%

    The first generation Hyundai Ioniq 5 had solar roof (at least some models).

    The first gen ioniq 5 also had a very low payload capacity, with stories of families who couldn't legally be in the car at the same time without being over the capacity.

    The reason, I'm told, is that supporting the solar roof reduced the payload capacity a lot.

    Also, solar cells on a car doesn't make much sense like others have already said.

    11
  • I started using miniflux a while back, and enjoy it. Recently I also gave News app on F-droid a try, and the combination of the two is one of the best news reading experiences I've had. Miniflux: https://miniflux.app/ News app: https://github.com/bubelov/news Just wanted to share! EDIT: Based on comment from [@refreeze@lemmy.world](https://lemmy.world/u/refreeze) , I am now mostly using Flux News https://github.com/KevinCFechtel/FluxNews . But I could go either way

    26
    8

    I run my containers in an LCX on Proxmox (yes I heard I should use a VM, but it works..) For data storage (syncthing, jellyfin ..) I make volumes in the LXC. But I was wondering if this is the best way? I started thinking about restoring backups. The docker backups can get quite large with all the user data. I was wondering if a separate "NAS" VM and NFS shares makes more sense. Then restoring/cloning docker lxc would be faster, for troubleshooting. And the user data I could restore separately. What do you guys do?

    9
    11

    In the <head> of all web pages I've checked so far there is always a line `<link href="data:text/css,%5Bid*%3D'google_ads_iframe'%5D%2C%5Bid*%3D'taboola-'%5D%2C.taboolaHeight%2C.taboola-placeholder%2C%23credential_picker_container%2C%23credentials-picker-container%2C%23credential_picker_iframe%2C%5Bid*%3D'google-one-tap-iframe'%5D%2C%23google-one-tap-popup-container%2C.google-one-tap-modal-div%7Bdisplay%3Anone!important%3Bmin-height%3A0!important%3Bheight%3A0!important%3B%7D" rel="stylesheet" type="text/css">` Does anyone know what it means? I tried to open a page in edge, and I do not see it there. I am running mozilla-flatpak, version 115 on Fedora

    9
    3

    I use Fedora on a laptop with touchscreen. Some months ago, I could pinch to zoom on the screen (and on touchpad?). But now, touching the screen only marks the text. Does anyone know what happened, and how to enable pinch to zoom in firefox? I think it may have happened after updating to newest Fedora version 38. I use Gnome DE with wayland enabled.

    3
    0