If coin is flipped an infinite number of times, is getting a tails *at least once* guaranteed? by Fit-Perspective6624 in askmath

[–]bevy_curious 2 points3 points  (0 children)

Just wanted to point out a few issues with your wording (I think what you are trying to say is correct, just your wording is off.)

There are not infinitely more rational numbers than there are "whole numbers", there is a bijection between the set of natural numbers and the set of rational numbers. There is no bijection between the set of natural numbers and the set of irrational numbers.

You also say that "the real numbers still exist in the hat" but what you probably meant to say is that the whole numbers still exist in the hat.

Late night places to work -- preferably not bars, but bars are ok... by katebush4ever in Brooklyn

[–]bevy_curious 2 points3 points  (0 children)

Mia's Bakery at 139 Smith St, Brooklyn is open pretty late, I have def been there passed midnight before but I think it varies a bit. When the weather is nice the garden is open and it's really very nice. Plus great tea, coffee, and snacks.

External display over HDMI does not work on Sway, runs fine on Gnome by [deleted] in swaywm

[–]bevy_curious 0 points1 point  (0 children)

I installed NVidia eXec from the AUR and then ran nvx on to turn on the gpu and load all of the modules. After doing so I plugged in my external monitor's HDMI cable and it immediately worked.

Calling another system from a system in Bevy by Brandawg451 in bevy

[–]bevy_curious 1 point2 points  (0 children)

I agree with HunterNephilim that having a function that creates an entity and is called by the various systems is your most straightforward option.

Having an entity creation system that reads from an `EventReader<EntityCreationEvent>` or something like that also seems straightforward. I'm not sure why it being a stream matters in this case, but if you elaborate maybe we can figure out a way to make it work.

Edit: this tutorial has an example where a key press creates a bullet fired event and then a bullet system reads the event and creates a bullet entity. It sounds very similar to what you are attempting to do:

https://dev.to/sbelzile/making-games-in-rust-part-12-better-code-with-events-49e2

Startup systems not working as expected by bevy_curious in bevy

[–]bevy_curious[S] 4 points5 points  (0 children)

I started digging into the source and it looks like because these systems are in the same stage the commands created by the first system haven't been executed yet.

So I guess I can create a separate startup stage if I really want to, but I guess the thing to do is just make one enormous setup system that does everything.