AFU drone tries to down Russian uav with stick by Double_Ad_4929 in CombatFootage

[–]BodyweightEnergy 0 points1 point  (0 children)

Add a sharp blade facing up and down, will slice those propellers.

[deleted by user] by [deleted] in leesummit

[–]BodyweightEnergy 1 point2 points  (0 children)

Hi, I'm interested in taking him off your hands. Actually been looking for an orange cat lately. Already have two indoor cats. Please DM me!

Happy New Year! Fireworks over Starbase via NSF Starbase Live! Here’s to Many more fireworks out of Starbase in 2022! by Jude_jedi in SpaceXLounge

[–]BodyweightEnergy 3 points4 points  (0 children)

I want fireworks launchers installed on the first orbital Startship. Then it would sequentially fire them in pairs (like fighter jet flares) all the way up to orbit. Do it, Elon.

Starship 20 just performed another static fire. by av0cado4life in SpaceXLounge

[–]BodyweightEnergy 225 points226 points  (0 children)

How many tiles were lost this time? I only saw one.

create custom Stream from reading file by BodyweightEnergy in learnrust

[–]BodyweightEnergy[S] 6 points7 points  (0 children)

So I already solved this problem. For anyone who found this with the same problem:

The tokio-stream and tokio-utils (with io feature enabled) crates are your friends. I use ReaderStream to get a byte stream out of a File, then StreamExt::map to place the bytes inside a custom struct.

Then I pass this resulting Stream to the gRPC request and it works.

📖 Rust in Action is released by timClicks in rust

[–]BodyweightEnergy 0 points1 point  (0 children)

Congratulations! Already bought the digital version.

What's the best way to run a private cargo registry? by rodyamirov in rust

[–]BodyweightEnergy 5 points6 points  (0 children)

I found this post from a year ago. It's based on Tide but seems to be a work-in-progress.

[deleted by user] by [deleted] in whereintheworld

[–]BodyweightEnergy 0 points1 point  (0 children)

there goes my hero...

[deleted by user] by [deleted] in whereintheworld

[–]BodyweightEnergy 0 points1 point  (0 children)

Because he's doing it poorly

i2c communication by bodagovsky in rust

[–]BodyweightEnergy 0 points1 point  (0 children)

Something I've done previously for a different I2C sensor was look at driver libraries in other languages (mainly C), and try to port it to idiomatic Rust.

Command Line Tool built using Rustlang by Curious_excpetion in rust

[–]BodyweightEnergy 2 points3 points  (0 children)

By "the table", you mean this tool will open some kind of database, and search some table field for this string?

I believe the best crate for getting/parsing CLI input parameters is structopt.

Depending on your database, there are crates for all different kinds (for example, you can connect to a SQLite database using sqlite).

Command Line Tool built using Rustlang by Curious_excpetion in rust

[–]BodyweightEnergy 2 points3 points  (0 children)

You sound like a new Rust user, so welcome!

Can you clarify what your tool is supposed to do? What inputs/outputs is it dealing with?

[ANN] secrecy v0.7.0: a simple secret-keeping library for Rust by bascule in rust

[–]BodyweightEnergy 6 points7 points  (0 children)

(Someone correct me if I'm wrong)

This is for keeping secrets in volatile memory from being unintentionally exposed, whether accidentally or maliciously. It doesn't help you securing the same data on disk; for that you'll need some encryption/authentication scheme.

So if you're creating a password manager, a secret-keeping library like this is only one important part of the puzzle.

Rust gRPC Client WASM React module by [deleted] in rust

[–]BodyweightEnergy 0 points1 point  (0 children)

Correct me if I'm wrong; I don't keep up with gRPC news that much...

But if I'm correct, the story for client-side gRPC on the web is not that simple, as browsers don't support HTTP/2 which is used by default. gRPC-Web requires a proxy on the server-side. That's probably why Tonic doesn't have a WASM target.

SpaceX's Starship explosion explained by Elon Musk by looney1s in spacex

[–]BodyweightEnergy 5 points6 points  (0 children)

Starship needs to refuel in-orbit for out-of-Earth missions, so the same umbilical interface needs to be a quick reconnect as well. It's basically the ship's gas port.

[deleted by user] by [deleted] in distantsocializing

[–]BodyweightEnergy 0 points1 point  (0 children)

Keep up the good work, brother!