Skip Navigation
Multiple process or threads? And, why?
  • 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

  • Forgejo v9.0 released
  • 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

  • Haptic: A new local-first, privacy-focused and open-source home for your markdown notes
  • 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

  • Haptic: A new local-first, privacy-focused and open-source home for your markdown notes
  • 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

  • Ozean: Self-Hosted RSS reader written in Go.
  • 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.

  • In your opinion what's the best way to do and restore full backups of a Linux server?
  • 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

  • Self-hostee storage for Gmail
  • 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

  • [Request] Automatic backups when PC comes online
  • 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

  • Vanilla OS 2 Orchid - Stable Release
  • 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)

  • Is Backblaze a reliable provider?
  • 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

  • Docker email server to host mail archive
  • 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
    
  • Why don't electric car manufacurers put solar panels on the car roofs?
  • 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.

  • Miniflux + News App

    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 , I am now mostly using Flux News https://github.com/KevinCFechtel/FluxNews . But I could go either way

    8
    Data storage for containers in LCX / VM

    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?

    11
    link in html header always present

    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

    3
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)CO
    conrad82 @lemmy.world
    Posts 3
    Comments 102