conrad82
- 5 Posts
- 103 Comments
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
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.worldto
Selfhosted@lemmy.world•Selfhosted S3 compatible recommendations?English
4·2 years agoWhich 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
I use nforwardauth . It is simple, but only supports username/password
conrad82@lemmy.worldto
Selfhosted@lemmy.world•Haptic: A new local-first, privacy-focused and open-source home for your markdown notesEnglish
1·2 years agoyes, 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
conrad82@lemmy.worldto
Android@lemmy.world•What Browser do you use on Android, and why?English
72·2 years agoFirefox because I like the UI and I think chrome has gotten too dominant.
Brave if I need to chromecast something
conrad82@lemmy.worldto
Selfhosted@lemmy.world•Haptic: A new local-first, privacy-focused and open-source home for your markdown notesEnglish
4·2 years agoI 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
conrad82@lemmy.worldto
Selfhosted@lemmy.world•Haptic: A new local-first, privacy-focused and open-source home for your markdown notesEnglish
5·2 years agoHow 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
conrad82@lemmy.worldto
Open Source@lemmy.ml•Ozean: Self-Hosted RSS reader written in Go.
2·2 years agoI 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.worldto
Selfhosted@lemmy.world•In your opinion what's the best way to do and restore full backups of a Linux server?English
3·2 years agoI 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
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
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.worldto
Selfhosted@lemmy.world•[Request] Automatic backups when PC comes onlineEnglish
8·2 years agoI 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
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)
conrad82@lemmy.worldto
Selfhosted@lemmy.world•What's the ideal self hosted RSS setup?English
1·2 years agoI 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
conrad82@lemmy.worldto
Selfhosted@lemmy.world•Docker email server to host mail archiveEnglish
1·2 years agoI 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:993contents of ./dovecot folder:
dovecot.conf passwordscontents 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
conrad82@lemmy.worldto
No Stupid Questions@lemmy.world•Why don't electric car manufacurers put solar panels on the car roofs?
11·2 years agoThe 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.
I use Kvaesitso and have been using it for a long time now.
I wanted a search-based launcher with support for widgets. I was missing some features in the beginning, but I must admit I have forgotten what they were - so I guess that is a good sign 👌
Likes: Good search, OK widget, main screen can be as clean or dirty has you want
I am using a terramaster d6-320 connected with usb-c.
It has been running zfs disks for proxmox via a geekom a5 mini pc since February. It has lost contact with the drives twice so far, more than a month between each time so I don’t know the cause. I am mostly happy with the setup, but of course it is annoying when it fails



Mostly 9Kings. One round is typically 20 mins, which suits me
https://store.steampowered.com/app/2784470/9_Kings/