[-] conrad82@lemmy.world 1 points 2 weeks ago

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

[-] conrad82@lemmy.world 3 points 3 weeks ago

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

[-] conrad82@lemmy.world 4 points 1 month ago

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

[-] conrad82@lemmy.world 1 points 1 month ago

I use nforwardauth . It is simple, but only supports username/password

https://github.com/nosduco/nforwardauth

[-] conrad82@lemmy.world 5 points 2 months ago

Firefox because I like the UI and I think chrome has gotten too dominant.

Brave if I need to chromecast something

[-] conrad82@lemmy.world 2 points 2 months ago

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.

[-] conrad82@lemmy.world 3 points 2 months ago* (last edited 2 months ago)

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

[-] conrad82@lemmy.world 2 points 2 months ago

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

[-] conrad82@lemmy.world 7 points 2 months ago

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.

[-] conrad82@lemmy.world 2 points 3 months ago

I have used kvaesitso for a long time now, stopped my launcher-jumping.

https://kvaesitso.mm20.de/

[-] conrad82@lemmy.world 8 points 3 months ago

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

[-] conrad82@lemmy.world 5 points 3 months ago

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)

27
Miniflux + News App (lemmy.world)
submitted 10 months ago* (last edited 10 months ago) by conrad82@lemmy.world to c/selfhosted@lemmy.world

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

9
submitted 1 year ago* (last edited 1 year ago) by conrad82@lemmy.world to c/selfhosted@lemmy.world

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
submitted 1 year ago by conrad82@lemmy.world to c/firefox@lemmy.ml

In the 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

1
submitted 1 year ago by conrad82@lemmy.world to c/firefox@lemmy.ml

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.

view more: next ›

conrad82

joined 1 year ago