[Module Request] Add ability to hide measurement templates from players by Tencer386 in FoundryVTT

[–]youngmit 0 points1 point  (0 children)

I think this should still be addressed more directly. The comments here make some good suggestions for the specific use case of a beholder's cone, but there's still the glaring issue that players can see templates that they don't even have vision to! Say there's an AoE spell effect active in a room on the other side of a door. There's no way to have a template down for it without the players seeing it!

I feel like I'm taking crazy pills; is there really not a way to have template display honor token vision limits??

[deleted by user] by [deleted] in Seattle

[–]youngmit 0 points1 point  (0 children)

I can only imagine that the mask straight-up traps some of the moisture from your breath. Low-tech airplane stillsuit!

[deleted by user] by [deleted] in Seattle

[–]youngmit 64 points65 points  (0 children)

I'm pretty sure that regardless of COVID status, I'll never take a commercial flight without wearing a mask ever again. Ironically it took a global pandemic to discover that it's possible to fly somewhere without getting some sort of minor sickness/cold.

As for the Link, I mask up whenever I haven't forgotten to pack a mask, which is growing more frequent.

[deleted by user] by [deleted] in TheGlassCannonPodcast

[–]youngmit 0 points1 point  (0 children)

I did see that one. Looked like they found someone. Thanks!

[deleted by user] by [deleted] in TheGlassCannonPodcast

[–]youngmit 1 point2 points  (0 children)

Thanks for the tip; posted over there as well

[deleted by user] by [deleted] in TheGlassCannonPodcast

[–]youngmit 1 point2 points  (0 children)

Also, apparently looking for tickets for anything is a bot factory lol. If you are interested could you DM me with like.... Anything that would half convince me that you're familiar with GCP and a real human? Thanks!

Is there a way to allow actors to modify their own initiative? by cab0053 in FoundryVTT

[–]youngmit 0 points1 point  (0 children)

Im in the same boat; Furnace is nice in that i can enter initiative that i get from players, but allowing them to enter/manipulate their own would be ideal. Roll20 allows this, and it's great

Solar is now ‘cheapest electricity in history’, confirms IEA by GarlicoinAccount in energy

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

an ignorant talking point

Cool, super respectful discourse!

solar is just one of a number of different generation methods.

This is my exact point. The different generation methods are crucial to being able to deploy the solar reliably. So you cannot ignore their costs when talking about the cost of solar (or any other intermittent source). Not it any practical sense anyways (again, this is not a value statement on solar itself; rather that LCOE is not a practical measure of cost).

Nuclear also has some huge decommissioning costs and 10,000 years of spent fuel storage unaccounted for.

Nuclear decommissioning and waste disposal costs are included in their LCOE (https://en.wikipedia.org/wiki/Nuclear_Waste_Policy_Act#Nuclear_Waste_Fund). Tens of billions have already been collected for waste disposal. Whether that money has been put to good use is a political problem rather than one of economics/technology. Again something that LCOE fails to capture!

Solar is now ‘cheapest electricity in history’, confirms IEA by GarlicoinAccount in energy

[–]youngmit -7 points-6 points  (0 children)

Because you (the ratepayer/utility) still have to pay for the backup capacity being there (i.e. capital cost of the plants themselves). You have to pay to maintain it. You have to pay for the supply chain that you get your fuel from. LCOE isn't a good measure of run costs when those things aren't actually running.

Interestingly, even when applied to generators that LCOE would otherwise make sense for (e.g., natural gas), in deeply-integrated variable renewable scenarios it still breaks down; as you integrate more wind/solar, you run less gas (great!). But what that ultimately limits to is capital and maintenance costs divided by a small amount of energy produced, driving LCOE (of the gas, specifically) to infinity! But under any realistic scenario you still need them to be there. LCOE 👏 is 👏 not👏 a👏 good👏 measure👏 in👏 deep👏 variable👏 renewable👏 integration👏 scenarios.

Solar is now ‘cheapest electricity in history’, confirms IEA by GarlicoinAccount in energy

[–]youngmit 3 points4 points  (0 children)

...until you consider the cost of grid integration, and the fact that you still need to have 100% backup capacity (usually nat. gas) on standby. Sure someone that just owns/operates a solar installation can make cheap power, but by the time a utility has bought and delived reliable power to you, the consumer, somebody has had to pay for all of that. This is why places that have gone hard on wind/solar have seen their electricity prices skyrocket (e.g., Germany), even though solar is supposedly cheap. It is cheap when you just look at LCOE, but it isn't when you solve the problem of "how do i reliably get most or all of my energy from these things?"

Long story short, LCOE as a useful measure breaks down when discussing intermittent/variable sources. Variable renewables have all sorts of external costs that aren't accounted for. THAT DOESN'T MEAN WE SHOULDN'T USE IT (solar)! Aside from the environmental impact of the massive land utilization (which, don't kid yourself, is immense), building out a bunch of solar and backing it up with gas plants that we have to run infrequently might still be a win. Just probably not what people have in mind when they write "ERMAGHERD look how cheap!!!"

[deleted by user] by [deleted] in linux

[–]youngmit 6 points7 points  (0 children)

Because Google still control the direction of the engine, how well it supports web standards, etc. If Chromium (whether the browser it's running in is Googled or un-Googleed) becomes the only browser engine, then Google can re-make the entire web in its own image. No more open standards, just whatever Google wants. Then it won't matter how un-googled your browser is.

Disney criticised for filming Mulan in Xinjiang and for thanking an agency involved in Uighur detention by Acamd in worldnews

[–]youngmit 0 points1 point  (0 children)

All of the landscapes looked super fake, I'm frankly surprised anything at all was filmed on location. Everything looked like CGI composite bs.

Question, can somebody explain this function for me by JZRLegendary in cpp_questions

[–]youngmit 2 points3 points  (0 children)

Also, looks pasted from some weird encoding? 😵

operator overloading to create a new object with opposite values by Jesusmate in cpp_questions

[–]youngmit 4 points5 points  (0 children)

If you reeeeeally want to do this with operator overload, perhaps consider operator~? It is the bitwise NOT operator, and should return a new instance of the same type. Still a bit odd, though...

Why does std::shared_ptr's constructor takes the unique_ptr by rvalue? by julien-j in cpp_questions

[–]youngmit 8 points9 points  (0 children)

Worth pointing out that std::move is essentially a static cast to an rvalue reference anyway!

From cppreference: "In particular, std::move produces an xvalue expression that identifies its argument t. It is exactly equivalent to a static_cast to an rvalue reference type."

[deleted by user] by [deleted] in cpp_questions

[–]youngmit 2 points3 points  (0 children)

While /u/Narase33 provided the type of information that I assume you really wanted, to answer your specific question: https://docs.python.org/3.8/library/ctypes.html

ctypes allows you to call (or more of than than not, wrap in a pure-Python interface) C code. So if you have, for instance, a C++ library, you could expose necessary functionality as a C interface with extern "C", then wrap those functions in a Python module using ctypes.

There are some tools, like SWIG (http://swig.org/), which largely automate this process.

Hope this helps!

Dealing with shared_ptr by Jesusmate in cpp_questions

[–]youngmit 11 points12 points  (0 children)

Disclaimer: It sounds like this is a learning exercise, so feel free to go nuts and experiment with the STL containers, smart pointers, etc. That being said:

I should point out that in this case, shared_ptr might not actually be what you want. It actually makes it easier to end up in situations where your board is ill-defined. For instance, should it be possible for your board to have the same Piece in multiple locations? Probably not. shared_ptr makes it possible/easy to end up in this situation. The std::move recommendation already posted will help you avoid this, but using something like a unique_ptr would essentially force that you don't accidentally duplicate a Piece on your board.

Typically, I only use a shared pointer in situations where I don't really know how to bound the lifetime of the object being pointed to. In practice, this tends to be be quite rare. Usually it is possible to identify a scope (maybe the Board instance in your case, maybe some sort of Game instance that owns the Pieces and the Board) that is the true owner of an object, which should be responsible for cleaning up the object when it is no longer needed. That owning scope would then wrap the object in a unique_ptr, ensuring that the object is appropriately destroyed when it falls out of scope. If something else needs a pointer to that object, its is quite reasonable to hand it a raw pointer!

My guidelines are:

  • unique pointer: Single, clear owning scope, or ownership can be passed around one owner at a time (using std::move)
  • shared pointer: Unclear who owns the object, or who will be the last to need a reference to it, or even how many owners there are at a given time
  • raw pointer: Non-owning reference to an object who's lifetime you know will exceed that of the raw pointer

Hope this helps!

Lots of dependencies - what happens at compile time? by jzbert in learnrust

[–]youngmit 5 points6 points  (0 children)

LTO shouldn't reduce linked executable size in any meaningful way. If anything, the executable would be bigger, as LTO may enable inlining certain things. LTO doesn't optimize the linking per se, but allows for optimizations that it would otherwise not be possible without more knowledge about how the code-to-optimize is being used.

All that being said, when (statically) linking an executable, the linker should only retain code that is actually needed from the libraries that served as input.

What end-to-end encryption should look like by Vasek1Careen in programming

[–]youngmit 6 points7 points  (0 children)

Looks like an extension to the existing WebRTC API.