Posts
Elon gets immediately defensive when someone points out he has no idea what he's talking about
Derailed talk regarding Rust's integration into the Linux filesystem
In case you haven't seen it, here's a talk regarding Rust's integration into the Linux filesystem that gets completely derailed at The Linux Storage, Filesystem, Memory Management and BPF Summit.
rust-analyzer changelog #237
https://rust-analyzer.github.io/thisweek/2024/06/10/changelog-237.htmlOpen linkView original on lemmy.caError accessing Jellyfin web UI from Firefox
I'm running into an issue accessing the Jellyfin web UI from Firefox (Chrome works fine). I try to log into an account but the spinner runs for a few seconds then disappears without logging in. When I reload the page, it appears I'm logged in, though all I see is the header and the rest of the page is blank. I get the following errors in console:
Uncaught Error: Permission denied to access property "ownerDocument"
Uncaught Error: Permission denied to access property "localName"
Has anyone else run into this issue?
Jellyfin on Synology NAS without Docker
Does anyone have any experience running Jellyfin on a Synology NAS that does not have container support? The Jellyfin installation guide recommends a Docker install for Synology. I have a Synology DS418 which apparently doesn't support Docker.
Cursor key_value in 1.78.0-nightly
It seems like the key_value function has been removed from Cursor in 1.78.0-nightly. I've been using this to get the key/value pair from BTreeMap::upper_bound and BTreeMap::lower_bound.
Does anyone know why this was removed and what a good idiomatic alternative would be?
Edit: In case anyone encounters the same problem and is curious what's going on (the documentation hasn't been updated to reflect the change yet), it was referred to in this issue: 107540 changed in this commit: 8ee9693. Essentially, cursors in BTreeMaps previously pointed to specific nodes in the tree whereas now they point to gaps between the nodes. To get the node values, you need to use prev or next on the cursors returned by upper_bound or lower_bound.
New instance icon
A while ago we had a post about a new instance icon. Just wondering if there's any news on that?
Errors when trying to create comments
I'm getting errors such as "Socket: CLOSED" when I try to create comments, however the comment gets created. It then brings me back to the comment editing screen where if I click create again, it keeps duplicating the comment.
Wondering if anyone else is having this issue?
Edit: I get an error when creating posts as well: "stream was reset: CANCEL"
Small pattern that made my code much cleaner
This is a really simple silly thing I just realized, but I noticed I have a lot code that looks something like this:
fn foo() -> Result<(), Error> {
// do something
}
fn bar() -> Option<()> {
let Ok(f) = foo() else {
return None;
};
}
I hated that if-statement. I realized today that I could simplify to:
fn bar() -> Option<()> {
let f = foo().ok()?;
}
And that cleaned up my code a lot. It's a tiny thing, but when it's okay to discard the error from the result, makes such a big difference when you have a lot of them!
Yesterday, Elon's jet flew a staggering 15 mile flight
It released almost a ton of CO2.
What's the difference between a Proton Pass email alias and SimpleLogin?
It was my understanding that Proton bought SimpleLogin and would be integrating it into their products, but the aliases created by Proton Pass are not managed by SimpleLogin, correct?
What's the difference between creating aliases in Proton Pass versus SimpleLogin and how do I manage the aliases created in Proton Pass?
Defederate from instance
As per this Github pull request which is removing it from the Lemmy sign up page, we should defederate from this instance as well.
[Bug] Long community names have strange formatting
It looks like if a community name is on the longer side, it pushes some of the UI elements to the edge of the screen and makes them look strange. You can see it at this community:
[Bug] App crashes when I try to load more comments
Not sure if anyone else is having this problem, but whenever I'm reading a longer comment thread and I click "1 more reply" (or "N more replies"), the app crashes.
Next beta release
I'm curious when the next beta release will be, or how often there will be a release if there's a schedule?

