Vorpal

joined 2 years ago
[โ€“] Vorpal@programming.dev 7 points 2 weeks ago (2 children)

Snapshots are great for solving accidental oopses, and for getting consistent backups that reflect a single point in time. But they aren't backups. If the HDD or SSD dies snapshots don't help. If the file system gets corrupted snapshots don't help. If the file data becomes corrupt snapshots don't help (since they only store a single copy of any version of a file).

So snapshots are no substitute for backups. I run btrfs and I do backups, and I sync those backups to a remote location (look up 3-2-1 backup).

[โ€“] Vorpal@programming.dev 2 points 2 weeks ago (1 children)

Uh, this blog says "introducing", but this is hardly new. I have seen this crate around for a while, and https://crates.io/crates/crabtime/versions corroborates that.

Is this an old blog? I can't find a date on it.

[โ€“] Vorpal@programming.dev 10 points 3 weeks ago (1 children)

Signal is pretty good.

[โ€“] Vorpal@programming.dev 4 points 1 month ago (2 children)

This actually sounds like a good idea.

I strongly disagree. I'm going to quote myself from reddit here:

Why would you expect to be able to use an old compiler and new crates? Shouldn't you just pin everything to the old versions? The MSRV aware resolver (that we had stably for a year now) makes that seamless. I don't see why they expect to be able to eat their cake and have it too.

This comes up again and again by LTS fans, be it safety critical or Debian packages. Yet no one have managed to explain why they can't use a new compiler but can use new crates? Their behaviour lacks consistency.

And from a later reply:

Now if they want to fund the maintenance in question, that is an entirely different question (and would be a net benefit for everyone). But that tends to be quite rare in open source. https://xkcd.com/2347/ very much applies.

I found the discussion quite interesting over all: https://old.reddit.com/r/rust/comments/1qcxa9o/what_does_it_take_to_ship_rust_in_safetycritical/ (it is a shame lemmy is so much less active than reddit still).

I think some fixed-size collections and stuff like that would be super nice in core.

If you don't mind using a crate: take a look at the well regarded https://lib.rs/crates/heapless (but yeah, having it in core would be nice, but might be too niche).

[โ€“] Vorpal@programming.dev 2 points 1 month ago (1 children)

It isn't open source, but DaVinci Resolve is available for Linux. With limited features if you don't pay. Might be overkill for what you do, and I understand it can be finicky to get it working (needs nvidia, poor support for AMD, very limited format support unless you get the paied version, ...).

I don't really do video stuff, but I did play around with it a few years ago, and it seemed very comprehensive.

[โ€“] Vorpal@programming.dev 1 points 1 month ago (1 children)

I don't use Gnome, but they hate to expose settings in general it seems and like to dumb down everything (and that is why I don't use it). The issue here is that the you need KDE, Sway, Niri, Xfce, etc all to implement a setting for this. Middle mouse paste is useful and has been standard on Unix-likes for decades. There is literally no reason to remove it.

[โ€“] Vorpal@programming.dev 2 points 1 month ago (1 children)

Yeah, the Flint 3 seems like a worse overall router when it comes to computational power and chipset. The only thing it has going for it is WiFi 7 (instead of 6) and 2.5 G ethernet on all ports. The Flint 3 is also more power hungry, which isn't great given the high energy costs in Europe.

Most people don't benefit from WiFi 7 (WiFi 6 is already good enough for almost everything) and if you want more than 2x 2.5G ports, consider getting a (managed) switch to extend the router with.

[โ€“] Vorpal@programming.dev 1 points 1 month ago (1 children)

No, it was your assertion that a wheel being too fiddly. It seemed quite broad (stating it as an universal truth). It might be for you, but not for most people (but you wrote it as an unqualified statement).

[โ€“] Vorpal@programming.dev 1 points 1 month ago

While that works, it will use more electricity than an all-in-one ARM based router. Depending on prices and renewable/fossil mixture where you live, this may or may not be a concern.

[โ€“] Vorpal@programming.dev 2 points 1 month ago (3 children)

GL.Inet products that use Mediatek chipsets are great since you can usually flash standard OpenWRT on them. I would avoid routers with different chipsets since they are unlikely to get proper support.

(Though I can't say that my MT-6000 is cheap, but it is an extremely capable router. That is top of the line though, they have cheaper stuff.)

[โ€“] Vorpal@programming.dev -1 points 1 month ago (3 children)

Not true, if there is no user visible setting for it. Changing a hidden gsetting via a command line is essentially removing it since it will likely bitrot and then be fully removed in a few years.

[โ€“] Vorpal@programming.dev 0 points 1 month ago (3 children)

For many people this is a non-issue. I think this a case of just accepting we are different and don't need to force our view on everyone else.

Maybe 15 years ago I had a mouse with a tilting scroll wheel (for side scrolling), on that one I did have issues with middle click, for about a month until I got used to clicking straight down.

So maybe it is just a question of practice? Maybe not. But since both options exist there is no need to get upset.

 

Because I couldn't find a good non-video resource on this topic, I wrote a tutorial on how to print non-vases in vase mode.

The idea comes from 3D printing wings for model aircrafts, but it can be applied outside this area as well in order to minimise time and material usage in a part (at the expense of more CAD time).

Hope it is useful to someone and I look forward to any feedback on how to improve the article (or correct any mistakes).

 

cross-posted from: https://programming.dev/post/10657765

I made a replacement for the venerable paccheck. It checks if files managed by the package manger have changed and if so reports that back to the user. Unlike paccheck it is cross distro (supports Debian too and could be further extended), and it uses all your CPU cores to be as fast as possible.

Oh and it is written in Rust (that may be a plus or minus depending on your opinion, but it wouldn't have happened at all in any language except Rust, and Rust makes it very easy to add this sort of parallelism).

There are more details (including benchmarks) in the readme on github. Maybe it is useful to some of you.

(The main goal of this project is not actually the program produced so far, but to continue building this into a library. I have a larger project in the planning phase that needs this (in library form) as part of it.)

 

This is a Rust replacement for debsums (on Debian/Ubuntu/...) and paccheck (on Arch Linux and derivatives). It is much faster than those thanks to using all your CPU cores in parallel. What it does is check files installed by your package manager for changes and reports those on stdout.

This is a project I have been working on over the past few weeks. There are more details (including benchmarks) in the readme.

I normally don't advertise my open source projects (having users other than yourself is both a blessing and a curse), but since there was recent discussion on how to grow this lemmy group I'd thought I'd post it. Maybe it is useful to some of you.

I also spent quite some time on optimising this (including a lot of benchmarking, profiling and trying alternative solutions). In the end I'm happy with the performance, though I am considering io-uring for disk IO.

The main goal of this project is not actually the program produced so far, but to continue building this into a library (currently very little is exposed as pub, because the API will change). I have a larger project in the planning phase that needs this (in library form) as part of it.

 

I'm not affiliated with the site, but I found this interesting. Especially the quite nuanced discussion about if rust is hard or not.

With my background in systems level safety critical hard realtime C++ (plus a bunch of functional programming as a hobby) I feel that the answer was no (for me personally). Basically learn about lifetimes and borrowing and then learn the syntax, done. (Async and unsafe are arguably harder, but again I had the requisite background for it to be mostly familiar, though haven't needed to write much unsafe yet.)

But it was very interesting hearing the other perspective as well! Why rust might feel hard if you have a background in JS/Python/Go etc.

And it was awesome to hear such a nuanced discussion on the Internet, that is truly a rare thing these days.

 

cross-posted from: https://programming.dev/post/1825728

Lots of new features!

Thought I should share this with those who don't use users.rust-lang.org. Note: I'm not affiliated with lib.rs, I'm only reposting to lemmy.

 

Lots of new features!

Thought I should share this with those who don't use users.rust-lang.org. Note: I'm not affiliated with lib.rs, I'm only reposting to lemmy.

view more: next โ€บ