They did say they haven’t learned the ? operator (that’s chapter 9 of the rust book), so this approach might be better for once they get there.
They did say they haven’t learned the ? operator (that’s chapter 9 of the rust book), so this approach might be better for once they get there.
You can use expect on Options and Results to extract the value and panic on Error in the same line (https://doc.rust-lang.org/std/result/enum.Result.html#method.expect).
let html_content = reqwest::blocking::get(&permalink).expect("the request should succeed");
You can also use unwrap if you don’t need a custom message. The ? operator is definitely the most compact way of handling errors, and for good reason because the rust developers want people to use it. Once you learn that the code will become somewhat smaller.
I’m not sure when you were using it, but Navidrome definitely let’s you play individual songs and shuffle.
fsck almost certainly isn’t going to cause loss of data, but it will likely inform you about a loss that already occurred if that is the issue you are having.
I would still say that getting people to the point where they can write safe C code every time is harder than learning Rust, as it’s equivalent to being able to write rust code that compiles without any safety issues (compiler errors) every single time, which is very difficult to do.
A scripting language written in Rust would certainly fulfill you requirement of only needing to copy one file since they are always statically linked and you can even statically compile against musl so it will work on any Linux system without needing a correct libc. Maybe check out rhai.
Also only differences are stored, so if your files don’t change much each backup costs very little. I keep hundreds of backups for the previous year of changes, and it uses less than double the amount of storage the files take up. You can also enable compression, which I do, so it’s even smaller.
I use backblaze storage with Kopia, which supports using object lock. Every time a backup is made the objects for it are locked for a configurable amount of time. I use 30 days, so an attacker would have to compromise my backup software for a month before being able to erase my backups.
Does it treat forks differently?
Yeah this is why I don’t use cloudflare, I have my domains on porkbun.
This happens to me too.
What on earth is this video from; I’ve never seen it before.
I do this on Hyprland all the time, but it’s a tiling window manager. I’m not sure any desktop environments have support for it.
Because they are selecting proposals for the program, which includes a stipend (https://developers.google.com/open-source/gsoc/help/student-stipends) of $1,500-$6,000 for the summer. So the process looks a little more like the process for applying for an internship.
It’s still under the Mozilla foundation though, which is what people who are talking about Mozilla usually mean (they’re the ones collecting donations and the parent organization).
That’s not true, the latest release was two weeks ago.
I’ve never really had issues with Fedora (has more up to date software vs Debian stable) or Debian, they generally just work. Back when I used arch there were a couple of times in about a year and a half where it stopped booting (mobile nvidia graphics forced me to do weird things that lead to issues), but that’s a less stable OS on top of a bad hardware setup for Linux (obligatory fuck Nvidia).
Because that is the necessary condition for the primary attack people are worried about right now: https://en.m.wikipedia.org/wiki/Harvest_now,_decrypt_later. We have plenty of information that could still be damaging if decrypted in 100 years.
I run Asahi Linux on the M1, and it’s been working great for the last six months or so.
Edit: I wouldn’t necessarily recommend buying one to run Linux at the moment, for one thing they’re overpriced, but I was clarifying why the original comment would have suggested an M1.
Yes, the first one matches only 2 more characters while the second matches 1 or more. Also the +? is a lazy quantifier so it will consume as little as possible.