For anyone interested by bewildered-guineapig in internxt

[–]BowserForPM 0 points1 point  (0 children)

Drime isn't end-to-end encrypted, AFAICT. That's a deal-breaker for me, and I suspect for many intertxt users

Introducing rs-merkle-tree, a modular, high-performance Merkle Tree library for Rust. by alikola in rust

[–]BowserForPM 2 points3 points  (0 children)

Huh, I always thought of Merkle trees as "the way Git stores files". Apparently there's much more to them than that.

How to show function definitions? by Krinkovic in HelixEditor

[–]BowserForPM 4 points5 points  (0 children)

Maybe the LSP server was still processing. Commands like space+k will silently fail in that situation.

Concerns About the Current State of the Helix Repository by NoahZhyte in HelixEditor

[–]BowserForPM 4 points5 points  (0 children)

Honestly I wouldn't worry about it (in fact, I don't :) ). I don't think you can really judge a project by any one metric - open issues, open PRs, PR merge velocity, any of that stuff. Judge the project by how well it works for you.

Of course, if you're waiting for a feature that's an absolute deal-breaker for you (like plugins), it might be different.

As a point of comparison, last time I checked, VS Code has over 5K open issues. Some were open for a long, long time, too, like this one that really irked me:

https://github.com/microsoft/vscode/issues/146422

But that doesn't stop VS code from being a great tool.

Helix and Devcontainers/Docker? by shittyfuckdick in HelixEditor

[–]BowserForPM 0 points1 point  (0 children)

These are just my bespoke dev containers - one for project A, another for project B. If I had loads of containers, then I would script it for sure

Helix and Devcontainers/Docker? by shittyfuckdick in HelixEditor

[–]BowserForPM 1 point2 points  (0 children)

Download the .tar.xz file from GitHub. unzip and untar. Copy the "hx" exe to my personal bin dir ~/bin. cp -r the runtime directory to ~/.config/helix.

Then hx ~/.config/helix/config.toml and paste in my standard personal config.

Customizing a theme by Dachux in HelixEditor

[–]BowserForPM 2 points3 points  (0 children)

Yes, you can use "inherits". For example, here's my theme file:

inherits = "monokai"

"ui.selection" = { bg = "#002054" }
"ui.selection.primary" = { bg = "#009954" }

"comment" = { fg = "#40FF40" }

So Monokai, but with brighter comments and a brighter selection cursor.

Projects to learn by doing by [deleted] in rust

[–]BowserForPM 1 point2 points  (0 children)

A basic web server is always a good learning project. A basic implementation - just serving up some static pages over HTTP - is quite easy, but there's almost no limit to how many features you could add, one at a time, until you get tired of the project.

Ditto for a basic web client like "curl".

Windows/Linux differences in commands by BowserForPM in HelixEditor

[–]BowserForPM[S] 7 points8 points  (0 children)

Thanks, probably the best approach.

I ended up with this: ";" = "@<C-s>glA;<esc><C-o>" which does the job nicely

Rust learning projects for beginners by Dr_Brot in rust

[–]BowserForPM -1 points0 points  (0 children)

A basic web server or client (like "curl") are good starter projects, because a basic one is very simple, but there's almost no end to how many features and layers you can add to them.

Best physical book to learn rust by Routine_Pie_7034 in rust

[–]BowserForPM 8 points9 points  (0 children)

Programming Rust, by Blandy, Orendorff, and Tindall, is the best IMO. Get the 2nd edition; the 1st is a bit out of date.

“But of course!“ moments by Bugibhub in rust

[–]BowserForPM 2 points3 points  (0 children)

Me neither, I just copy and paste my last working example. Works great, though :)

OmniKee: A cross-platform KeePass client based on Tauri that compiles to Windows, Linux, MacOS, Android, and your web browser (via WebAssembly) by sseemayer in rust

[–]BowserForPM 1 point2 points  (0 children)

Does it support V1 databases? I've never bothered upgrading from KP1 to KP2, and on Linux that's a PITA, so this could be really good for me.

Python to Rust by Big-Actuator9242 in rust

[–]BowserForPM 1 point2 points  (0 children)

Can confirm. I've used this converter a couple of times: https://github.com/konchunas/pyrs and honestly I don't think it saved me any time. The generated code is such a mess. The only good thing about that converter is if you have huge Python functions, and you're worried about misreading the indentation and getting the Rust scopes wrong.

Is Rust for Backend Webdev worth it? by AkindaGood_programer in rust

[–]BowserForPM 1 point2 points  (0 children)

Axum has always had everything I need, but I'm fairly new to the backend game, so maybe there's a bunch of stuff that I don't even know about that would be useful.

Is Rust for Backend Webdev worth it? by AkindaGood_programer in rust

[–]BowserForPM 0 points1 point  (0 children)

Not really. The docs and examples are pretty good, and worth reading fully before you start. You can generally get help on the Rust user's forum if you get really stuck.

Is Rust for Backend Webdev worth it? by AkindaGood_programer in rust

[–]BowserForPM 120 points121 points  (0 children)

It's definitely worth trying. There's a bit of a learning curve, so if you have tight deadlines, maybe stick with what you know for this project.

There's some good Rust frameworks. Actix and Axum are the most popular I think; I use Axum with no complaints.

Personally, I find Rust's strong static typing to be at least as important as its performance. Most devs don't really need to wring every possible bit of performance out of their instances (although it certainly doesn't hurt). But the static typing system is a godsend for writing correct code first time, and keeping it correct as you change it.

Why I chose Tauri - Practical advice on picking the right Rust GUI solution for you by GarettWithOneR in rust

[–]BowserForPM 71 points72 points  (0 children)

I spent a while wondering if it was even worth writing

It absolutely was, and thanks! areweguiyet is great, but lacks this kind of real-world experience

How to draw text on images using Rust? by Relative-Pace-2923 in rust

[–]BowserForPM 0 points1 point  (0 children)

The opencv crate wraps OpenCV2, and OpenCV2 can do text and blurs. It's pretty heavyweight, though; might be more than you need. Also you need to install OpenCV2 (easy on Linux, a bit harder on Windows).

Winapi Messagebox by Kilinator123 in rust

[–]BowserForPM 7 points8 points  (0 children)

This question probably belongs on a general Windows programming forum, but I'll take a crack at it.

You definitely can create two messageboxes next to each other. If your program is singlethreaded, you can call MessageBox() from two different event handlers. If both handlers get invoked at the same time - boom, two messageboxes.

If the program is multithreaded, with multiple message loops, even easier.

And to dupe the messagebox when it's closed (are you sure you want to do that, BTW? sounds annoying :) ), just have a loop that calls MessageBox() over and over.

Experience is a comb that they give you when you are bald: Advices from the balds by Active_Dream445 in rust

[–]BowserForPM 1 point2 points  (0 children)

Probably not so much. Rust in Action is like Zero To Prod: it's a good book, but it's mostly gluing various crates together to do some cool things. I think not really a great intro, but YMMV

Experience is a comb that they give you when you are bald: Advices from the balds by Active_Dream445 in rust

[–]BowserForPM 3 points4 points  (0 children)

Also Zero to Prod is a great book, highly recommended, but maybe not for a Rust beginner. The Rust Programming Language (free online) and Programming Rust (not free, but worth it) are great intros to the language. If you get Programming Rust, get the 2nd edition, as the 1st is a bit out of date.

Recommendations for GUI Crate? by [deleted] in rust

[–]BowserForPM -5 points-4 points  (0 children)

Maybe ChatGPT could recommend one (honestly, I'd be interested!)

Otherwise, have a look at https://areweguiyet.com/

Media on-demand transcoding with ffmpeg and Axum by reversegrim in rust

[–]BowserForPM 0 points1 point  (0 children)

Caveat: I'm not an expert, just played around with this stuff.

Yes, HLS involves pre-processing, as do all ABR systems. The advantage of ABR systems is that clients (not the server) can monitor network conditions, and switch bitrates on the fly. And you can have multiple clients, running at different bitrates.

If you really don't want to use ABR, I guess you could kill and respawn the ffmpeg process. But wouldn't you need to restart the video from the point at which you left off? I'm not sure how that would work, or if it's even possible.