• 8 Posts
  • 4 Comments
Joined 1Y ago
cake
Cake day: Nov 01, 2021

help-circle
rss

I don’t use the website, because I am on feddit :) I guess it’s fine for the moment, if others don’t feel like I do!


Are you on a computer all day?

pretty much


Interesting. Reading on a screen is a little bit of effort, but I vastly prefer light background and dark text to the other way around.


Thanks that was an interesting article. I think I agree. I tend to not use dark themes.

I had a OLED smartphone before, I did like it there. Dunno if that plays into it.


font and default dark theme
I think the heapoverflow.ml font is hard on the eyes and so is the default dark theme. Does anyone else agree?
fedilink

Presenting Activitypub-Rust crate
cross-posted from: https://lemmy.ml/post/341718 > [Activitypub](https://www.w3.org/TR/activitypub/) is decentralized social networking protocol recommended by the W3C. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content. As part of the work on [Lemmy](https://join-lemmy.org/), we have implemented some high-level abstractions for handling the server-to-server protocol in Rust. These abstractions are now available as a standalone library. > > The main features are: > > - Data structures for federation are defined by the user, not the library. This gives you maximal flexibility, and lets you accept only messages which your code can handle. Others are rejected automatically during deserialization. > - ObjectId type, wraps the id url and allows for type safe fetching of objects, both from database and HTTP > - Queue for activity sending, handles HTTP signatures, retry with exponential backoff, all in background workers > - Inbox for receiving activities, verifies HTTP signatures, performs other basic checks and helps with routing > - Generic error type (unfortunately this was necessary) > - various helpers for verification, (de)serialization, context etc > > Documentation is currently lacking. If you want to get started with the library, best look at the example. > > The code has already been used in production as part of Lemmy for a long time, without any notable problems. However, ergonomics are lacking and need to be improved. There are also many additional features which would be worth implementing. See the project readme for details. Contributions and suggestions are very much welcome! > > You can find the project here: > > [https://github.com/LemmyNet/activitypub-federation-rust](https://github.com/LemmyNet/activitypub-federation-rust) > > [https://crates.io/crates/activitypub-federation](https://crates.io/crates/activitypub-federation)
fedilink

I hate those websites that repost stackoverflow content
They're all over the search results for common programming problems, and even for less common ones. They have less information than their original stackoverflow answer and of course are just a useless copy. AAAaaaaaaaargh whyyyyyyyyyyyyyy
fedilink

looking for a fast multi process shared dict
I have lots of multiprocessing processes which have to add to and search in a dict. Deletion of values is not needed. Atm I am using multiprocessing.Manager() and `dict = manager.dict()` This works pretty well, but I think that the manager is a huge bottleneck here. Any ideas? It has to run on older Python 3 versions, otherwise I would use this cool thing I found: https://github.com/ronny-rentner/UltraDict
fedilink

Padding oracle attack - Wikipedia
>In symmetric cryptography, the padding oracle attack can be applied to the CBC mode of operation, where the "oracle" (usually a server) leaks data about whether the padding of an encrypted message is correct or not. Such data can allow attackers to decrypt (and sometimes encrypt) messages through the oracle using the oracle's key, without knowing the encryption key. It's a pretty genius way to break cipher-block-chained encryption!
fedilink

VMs and VM management for your home
What do you use, prefer? I have mostly used KVM with qemu, but I want to try out other things. I have heard of proxmox and all kinds of cool management things, what's a solid setup that supports easy backups and such things? KVM and qemu is solid and pretty easy to understand. Basic control of the VMs can be done with virt-manager, which is a basic but solid tool.
fedilink