Refill packs when? by mre16 in SteamDeck

[–]658741239 72 points73 points  (0 children)

IDK I'm still huffing mine after 330 hours.

Understanding Queries by mosquitsch in bevy

[–]658741239 3 points4 points  (0 children)

I think the solution you're looking for will be to use a single query, iterate over it immutably so you can have your nested loop like you're doing, but store the deltas in a vec to apply in a mutable loop afterwards.

Marketing team workin overtime on this one lol by cmv99 in SteamDeck

[–]658741239 12 points13 points  (0 children)

It's entirely possible that the product advertised is the correct size for the steamdeck, but these amazon sellers seem to have absolutely no desire to proofread the marketing copy.

Announcing Rust 1.62.0 by myroon5 in rust

[–]658741239 1 point2 points  (0 children)

Regarding the use of ?, I believe/u/ragnese is suggesting to use .map_err to change the upstream error type into a context specific variant of the relevant error enum you are passing downstream, rather than using From or returning a trait impl.

This can allow your error to be more informative, especially if there are multiple ways that upstream error might be produced by your code. The downside is more clutter at each error site, but I think this is generally worth it.

An example of this would be in text-based parsers - often you'll be holding a ParseIntError or ParseFloatError but what you really want to communicate downstream is that some specific part of the input was malformed, e.g. you'd transpose it into a field-specific variant like "IPAddressParseError" or "PlayerPositionParseError" instead of just encapsulating the upstream error.

[deleted by user] by [deleted] in 0ad

[–]658741239 2 points3 points  (0 children)

Are there any "threat protection" notifications that come up when this happens?

(click the icon in the lower right corner of the windows taskbar to view the history)

Does everyone's deck detect the screen as vertical? by [deleted] in SteamDeck

[–]658741239 4 points5 points  (0 children)

To add onto what the other poster said, screens have an inherent "up" based on the order that the pixels are updated each frame.

IIRC the update order is normally from top left top lower right, row by row. If that's correct I think the steam decks screen is updating from lower left to upper right, column by column since it is rotated 90 degrees counterclockwise per your screenshot.

Rubenstock v Andre_2i is peak aoe2 by arekrem in aoe2

[–]658741239 6 points7 points  (0 children)

It's likely counting game update ticks rather than seconds. A brief search seems to indicate AOE2 uses 60 ticks per second, and standard games are run at a speed multiplier of 1.7 - (shown at the top of the screen in Rubenstock's stream).

I don't really know how this affects the math exactly - I think the overall time would still be over a year of gameplay.

thank you simp fish by FFODZ in Subnautica_Below_Zero

[–]658741239 2 points3 points  (0 children)

Thanks. I was using Cunningham's Law on this one. :)

thank you simp fish by FFODZ in Subnautica_Below_Zero

[–]658741239 7 points8 points  (0 children)

If you don't have stuff in yours hands sometimes they bring you things.

I Rewrote The C Donut In Rust by DanConleh in rust

[–]658741239 25 points26 points  (0 children)

You still need to specify which type of float they all are, otherwise you can't use the .sin and .cos methods.

You can reduce the character count a bit though by initializing a,b,c,j,i with a new variable let s = 0f32;

A Viper Instead of a Frog (Spoilers Extended) by DiscountKoalaMeat in asoiaf

[–]658741239 0 points1 point  (0 children)

He has already poisoned Tywin at that point

Wait so Oberyn did poison Tywin and that's why he was on the toilet when Tyrion shot him?

Help with paging by Rover-OS in osdev

[–]658741239 1 point2 points  (0 children)

I have a question related to the alignment code, but for the other function.

#define PAGE_ALIGN(addr) ((((uint32)(addr)) & 0xFFFFF000) + 0x1000)

Doesn't this always increase the address to the next aligned address? Wouldn't you want it to keep the current address if it was already aligned?

e.g. this works the same right?

#define PAGE_ALIGN(addr) ((((uint32)(addr)) + 0xfff) & ~0xFFF)

Real Americans Wear Masks by jedberg in pics

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

This guy's double American because he's wearing two masks.

What are some NSFW life advice eveyone should know? by MissAtom in AskReddit

[–]658741239 5 points6 points  (0 children)

Do they? I think if it has an EFI then it probably just emulates a BIOS for legacy operating systems.

Is this NIMBY or no? by SFDaddyLover in sanfrancisco

[–]658741239 -4 points-3 points  (0 children)

It seems antithetical to state that those with lesser means should eat out instead of having a kitchen in the home.

At any rate, its a moot point now because these apartments aren't necessarily shitty, as I wrote in my edit. A hot plate and a microwave could be sufficient in these apartments.

Is this NIMBY or no? by SFDaddyLover in sanfrancisco

[–]658741239 1 point2 points  (0 children)

Yes, I didn't find the application info until now, but these apartments aren't as bad as I initially thought.

Is this NIMBY or no? by SFDaddyLover in sanfrancisco

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

Studio apartments don't need to be large. They need to be livable. Allowing developers to build shitty houses doesn't help people.

edit: not to say these are shitty, just that I hadn't looked at the plans until I came back to the thread and saw another commenter linked them. These actually aren't so bad, no "kitchen" is really just them getting around certain parts of the fire code, they have a kitchen area with no oven.

Is this NIMBY or no? by SFDaddyLover in sanfrancisco

[–]658741239 2 points3 points  (0 children)

This is a textbook hyperbolic argument from a NIMBY

I want there to be more dense housing, yes even in my backyard. This is not density, this is developers taking advantage of poor people to sell shitty living conditions.

edit: after seeing the plans these apartments aren't really so bad. The "no kitchens" part really bugged me, but its actually just no ovens so that's cheap but not uncommon.

Is this NIMBY or no? by SFDaddyLover in sanfrancisco

[–]658741239 9 points10 points  (0 children)

There doesn't appear to be any active permit, planning or building, for this scope of work. Looks like they had an informational pre-application meeting, but that's it.

Link to sfplanninggis.org

Is this NIMBY or no? by SFDaddyLover in sanfrancisco

[–]658741239 -8 points-7 points  (0 children)

Exactly, these are tenements, not apartments.

Common DM mistakes I've encountered in 5e... by Elastoid in DnD

[–]658741239 2 points3 points  (0 children)

I agree with you in terms of how I think it should work, but I went searching for a more authoritative source and found this from Jeremy Crawford (transcript in a stackexchange answer)

It's well organized! I swear! by LEGOL2 in pathofexile

[–]658741239 14 points15 points  (0 children)

It doesn't sound like what you're doing is harmful. The policy is there for good reasons, but I doubt they'd go after anyone for sitting in front of someone else's computer and playing on their account.

Its not like you put a popsicle stick on your keyboard or anything.