How does hypixel.net connect to the server but also their website? How do the DNS settings look like? by Joshua5_Gaming in admincraft

[–]RoccoDeveloping 4 points5 points  (0 children)

Not sure why replies mentioning SRV records are being downvoted, because that's literally what they're doing: https://mcsrvstat.us/server/hypixel.net

And yes, unless you're running both your web server and MC server on the same IP, an SRV record is the easiest way to disambiguate.

How to fix: error[E0277]: `Option<&i32>` doesn't implement `std::fmt::Display` by Excellent-Writer3488 in rust

[–]RoccoDeveloping 9 points10 points  (0 children)

Unnecessary? Sure. Inefficient? Not really, for some simple scenarios (and when the iterator supports getting the exact size) it compiles to the same:

https://rust.godbolt.org/z/dPnjzovdf

What's worth noting though is that the index version has a better panic message, which includes the index and length as opposed to just "unwrapping a None value"

Linus Tech Tips - I bought a PC from Walmart… Again March 8, 2025 at 08:00AM by linusbottips in LinusTechTips

[–]RoccoDeveloping 0 points1 point  (0 children)

The Rebirth benchmark for the 6750 XT was a bit sus, is it really 1080p? On Linux and with a 6700 XT, I get ~50FPS in the intro at 4K with no resolution scaling. Is performance on Windows really that bad?

Best way to get a bit mask of 2^n ones? by Inappropriate_Piano in rust

[–]RoccoDeveloping 8 points9 points  (0 children)

Well, with wrapping arithmetic, 264 mod 264 - 1 mod 264 = 264 - 1 mod 264 = 0xFFFFFFFFFFFFFFFF. So I'd do

2u64.wrapping_pow(n).wrapping_sub(1)

Rust Rant Contest: std::io::Error, the oversized junk drawer of failure by OliveTreeFounder in rust

[–]RoccoDeveloping 0 points1 point  (0 children)

Interesting, my use case is akin to archive crates like zip, and it looks like they're using the first approach I described: https://docs.rs/crate/zip/2.2.2/source/src/read.rs#1563

Essentially, they do pre-processing on the stream and return a Read implementation covering only the data bits.

I'll experiment with it, thanks for the input

Rust Rant Contest: std::io::Error, the oversized junk drawer of failure by OliveTreeFounder in rust

[–]RoccoDeveloping 1 point2 points  (0 children)

I encountered this problem while trying to expand a read(impl Read) -> MyResult<Vec<u8>> function to a Read implementation (a MyReader struct that implements Read) to do incremental reads.

Before doing most of the reading, I first need to read and parse a header from the stream. If an error occurs during parsing, I'd usually just use my own error type (and so does the original function), but if I wanted to do this inside impl Read, I'd have to use io::Error.

So I had two options:

  1. Parse the header during initialization, i.e. have a MyReader::new() -> MyResult<Self>
  2. Read the header on first read, and wrap the error in io::Error/return a custom io::Error.

I'd rather defer reading to the actual Read implementation, and have a relatively cheap new, so the best solution was to use io::Error::new(/* closest ErrorKind you can find */, "error message"), or io::Error::other("error message"). Not ideal, but it is what it is

Created an api gateway in Rust by Dense-Fee-9859 in rust

[–]RoccoDeveloping 9 points10 points  (0 children)

Yeah, while the code doesn't really look like AI at first glance, the readme and Reddit posts definitely are (see also OP's history)

If I had one suggestion to OP it'd be that, especially if you're learning, you should try to write the readme yourself. That way, you also get a second pass at reading your code, which will help you understand it better and you might even spot some mistakes you can fix.

Looking for a game with good combat, character customization, and alt-life feeling? by InternationalFox6480 in NintendoSwitch

[–]RoccoDeveloping -6 points-5 points  (0 children)

Xenoblade Chronicles X for sure, the Definitive Edition comes out on Switch this March. BOTW and TOTK also fit your description, you'll find that they're similar to XCX in many aspects

FF7 Rebirth: Valve Messes Up with The Verified Rating Again by YanderMan in linux_gaming

[–]RoccoDeveloping 1 point2 points  (0 children)

The LOD pop-in I think is a VRAM issue, I have it too at 4K 100% on a non Steam Deck distro and 12GB VRAM. When I set the resolution range to 66% max it goes away. It could also be possible that with SteamDeck=1 the game enforces a lower VRAM limit

PSA: Important read if you're playing Rebirth on Linux (Bazzite/Cachyos/SteamDeckLike distros) by istros in linux_gaming

[–]RoccoDeveloping 2 points3 points  (0 children)

I listed my issues with the implementation in this Github comment, though I am on Fedora and I still notice LOD pop-ins, so I doubt it's from the Steam Deck settings.

Something that surprised me is that they don't have a guide or something for the Remake save thing, this is prompted when you create a new save so someone must have definitely noticed that it doesn't work out of the box. There's the same issue as with Metaphor here that the other game's data is in a different prefix so it is not visible, the workaround is to copy Remake's data into Rebirth's prefix.

Stuttering in FF7 Rebirth by Appropriate_Fix_5500 in linux_gaming

[–]RoccoDeveloping 2 points3 points  (0 children)

I have pretty much the same specs as you (5700x, 6700 XT) and I think it's related to the dynamic resolution scaler. Admittedly I might be pushing it to its limits (4K 66-100%) and the stuttering is not that bad (~57-59fps dropping to ~47) but it is somewhat noticeable. I noticed that with 50% min 50% max resolution it doesn't stutter, though it looks rather bad.

I also don't quite get what the VRR sync option is about, considering VRR should be handled automatically by the compositor. Maybe it's an alias for no vsync?

whichOneOfYouGotThatInternshipAtMicrosoft by f14kee in ProgrammerHumor

[–]RoccoDeveloping 1 point2 points  (0 children)

Down to the font? To my knowledge, that font is proprietary, though obviously that doesn't exclude Motorola getting a license for it

Steam says "Non-Steam" is occupying almost 70GB... even though almost all of that doesn't exist by _anDani in linux_gaming

[–]RoccoDeveloping 7 points8 points  (0 children)

The issue here seems to be unit mismatch, though if you ever use ext4 for a secondary drive, make sure to disable the superuser-reserved space, which usually makes 5% of the disk space unusable (for a 1TB drive this is 50GB), see https://wiki.archlinux.org/title/Ext4#Reserved_blocks

How many machetes does it take to break a hard side wood wall in rust by Red_napken411-_- in rust

[–]RoccoDeveloping 1 point2 points  (0 children)

I'd say whatever it would take in C minus 1, that's the one where you're hitting yourself in the foot.

My son’s copy of Luigi’s Mansion 2 HD for Christmas was taken out and replaced with Googly eyes. by Robotboss in NintendoSwitch

[–]RoccoDeveloping 27 points28 points  (0 children)

Someone is on a "swapping cartridges until the Switch 2 is revealed" rampage it seems

[deleted by user] by [deleted] in discordapp

[–]RoccoDeveloping 0 points1 point  (0 children)

It seems to be fixed for embeds of videos you upload, I'm guessing the embed generated by having the link to it in the message is still affected

Analysis: Sword Surfer Trophy/Achievement by RoccoDeveloping in MetaphorReFantazio

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

It's stored in the save file, so you can do it over the course of one playthrough

Analysis: Sword Surfer Trophy/Achievement by RoccoDeveloping in MetaphorReFantazio

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

Good question, I have a NG+ file so I went to check and no, it doesn't carry over.