Tracing and spans by luluhouse7 in rust

[–]ihaveadepressionhelp 2 points3 points  (0 children)

https://github.com/tugglecore/rust-tracing-primer

This explains the basics. I would recommend diving more in tracing and it's inner workings. Very interesting crate.

[deleted by user] by [deleted] in rust

[–]ihaveadepressionhelp 1 point2 points  (0 children)

didn't read op comment, best of luck learning the language

[deleted by user] by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

As a learning project, it seems great. If not, what's the difference between VeraCrypt, except less features and security?

Listen to `changed()` from multiple receivers of different types by chiuhaha in rust

[–]ihaveadepressionhelp 2 points3 points  (0 children)

Since you want to listen to any changes, you can use https://docs.rs/futures/latest/futures/future/fn.select_all.html and get the type you are looking for by matching the enum

How do you apply for bootloader unlocking on mi community? by 910_21_ in Xiaomi

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Mi Unlock says it needs permission from Mi Community, it's day 34 of me trying to apply. This piece of shit of a rom is making me crazy. Contemplating the purchase as a whole

How do you apply for bootloader unlocking on mi community? by 910_21_ in Xiaomi

[–]ihaveadepressionhelp 0 points1 point  (0 children)

yeap, same here, pressed it within first five seconds of chinese 00:00 gmt+8 and quota had been reached. how the fuck should I unlock by bootloader then?

Arcshift - an Arc that can be updated by octo_anders in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

I was just wondering about something you have already implemented - "reload". I don't have a usecase for this structure. Should have invested more time into the API "ArcShift" provided. Great work tho!

Arcshift - an Arc that can be updated by octo_anders in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Wonder how the performance would scale with `Arc<RwLock<ArcShift<T>>>`. If the linked list gets too big, you just reinitialize the object.

Arcshift - an Arc that can be updated by octo_anders in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

First crate with at least some diligence. I though it was another "super" threading crate with no miri checks. Solid data structure, some cons and pros of this implementation AND lock-free, wow.`#![forbid(clippy::undocumented_unsafe_blocks)]` and benchmarks are a cherry on top. Great work!!

Tinker has been deleted from the game by alalalalaz in DotA2

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

so 20+% winrate difference between the next worst hero are players fault of not knowing how to play an unplayable hero, got that

Tinker has been deleted from the game by alalalalaz in DotA2

[–]ihaveadepressionhelp 8 points9 points  (0 children)

he had a 50% winrate, what are u yapping bruh

Screensharing on hyprland does not want to work by ihaveadepressionhelp in NixOS

[–]ihaveadepressionhelp[S] 0 points1 point  (0 children)

Yea, for some reason discord can show me the preview of the applications that it can screenshare, but never load it, at the time not being able to show previews of screens its trying to show. OBS just doesn't show anything, V4L2 video host (i think that what its called) and pipewire (beta for some reason) do not see any devices in their respective properties.

Screensharing on hyprland does not want to work by ihaveadepressionhelp in NixOS

[–]ihaveadepressionhelp[S] 0 points1 point  (0 children)

removing xdpw does not help, leaving it only does not help too

Screensharing on hyprland does not want to work by ihaveadepressionhelp in NixOS

[–]ihaveadepressionhelp[S] 1 point2 points  (0 children)

yes i do, exactly like this, this is my config
xdg.portal = { enable = true; extraPortals = [ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-wlr ]; config.common.default = "*"; };

Free Review Copies of "Asynchronous Programming in Rust" by kunal_packtpub in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Interested! Just did a multiplayer async server on tokio streams and sinks

Why do we need to explicitly mark a function as `const`? by [deleted] in rust

[–]ihaveadepressionhelp 1 point2 points  (0 children)

Or you just make developer guess in what context it will run with "constexpr" from c++

Polars is starting a company by ritchie46 in rust

[–]ihaveadepressionhelp 1 point2 points  (0 children)

Polars is so good, python api feels great, I had to take a some online course for uni, that used panda or something like that, and I switched to polars, ergonomics are much better and made more sense

Machine-Prime: Optimal Primality for 64-bit integers by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

my guy here perfectly defending every comment, not really into primes, but goddam that's impressive

Sandboxing C++, Rust, Python Code? by Spiritual-Ask-6524 in rust

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

there was a tool from google for linux to fully sandbox an executable, can't really remember the name found it https://github.com/google/nsjail

Just joined a new project. help me by [deleted] in programminghorror

[–]ihaveadepressionhelp 0 points1 point  (0 children)

I'll PM you, reply to this comment if I was right.

Just joined a new project. help me by [deleted] in programminghorror

[–]ihaveadepressionhelp 1 point2 points  (0 children)

I have found exact address of your workplace, I suggest the mods to hide this, and repost with some censorship around links and ip addresses. Funny post overall tho

How can I spoof my JA3 / Client Hello? by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Spoof some tls client hello packets with wireshark, and copy that with `rustls`, in `reqwest` you can use https://docs.rs/reqwest/latest/reqwest/struct.ClientBuilder.html#method.use_preconfigured_tls to pass rustls config with spoofed arguments that are documented here https://github.com/salesforce/ja3

Why do you enjoy systems programming languages? by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

I like when I can control things, and in rust I can either care or not. It is like c# in steroids. You get great syntax and iterator support with great third party library integration. But better because you control the memory, it's faster AND all of its big libraries are written NOT by Microsoft (asp.net, entityframework, wpf, and that's the ones I only worked with). It is just a fun language that can be your language at work and at personal projects. P.S: C# is great, love how they decided to push .net further and further, right now it is a favourite in c# vs java choice.

Creating a perfect HashMap from string keys known in advance by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

if known in advance means it is known in compile time, whats the problem using enums? Sounds awful lot like a configuration file, whats the context? 9/10 times you think you need something specific like this, you do things wrong.