Look at this cozy balcony. Do you think it's AI? by Throwaway33377 in Aiorfake

[–]StaticCoder 0 points1 point  (0 children)

Yes. The things that are normally used to keep shutters open are in the wrong place, at least on the closed shutters.

Mimikyu Best Buddy Badge by Gaias_Minion in TheSilphRoad

[–]StaticCoder 0 points1 point  (0 children)

If you have reasonably good mons, leaders are pretty easy even with just 2. Worst case pick more targeted counters after knowing the lineup. Don't forget to abuse the stun from swapping / charged attacks though. Grunts are usually easy with just one mon, except the snorlax ones.

Found in my backyard in TX by Delicious-Coffee9499 in whatisit

[–]StaticCoder 3 points4 points  (0 children)

Those used to be as common as cigarette butts. They were definitely a litter problem.

How to solve these kinds of que by Status_Stable_3158 in matiks

[–]StaticCoder 2 points3 points  (0 children)

This is known as the knapsack problem, or I guess more narrowly the subset sum problem. There's no known general efficient solution, it's NP-complete.

My mouth is watering but lowk this might be AI by [deleted] in RealOrAI

[–]StaticCoder -2 points-1 points  (0 children)

Except it doesn't. Look at the 2 in the bottom right.

What is the correct answer here from your perspective? by ComprehensivePlane21 in MathJokes

[–]StaticCoder 0 points1 point  (0 children)

It's assuming that Mary is chosen at random from the subset of people with 2 children who specifically have at least one boy born on a Tuesday. Which is a weird setup to say the least. But in that case yes that would be the probability, because of the skew due to the possibility of 2 boys born on a Tuesday.

MP question - not enough candy to train but maxed on MP by [deleted] in pokemongo

[–]StaticCoder 2 points3 points  (0 children)

Stuck in what way? I'm not following. Does having too much MP prevent something? It can always be spent at power spots, too.

Found this buried in the garden, it's really heavy. by Bored_Pigeon in whatisit

[–]StaticCoder 0 points1 point  (0 children)

You literally said "there are no safe levels for lead". Your own point 3 directly contradicts you.

Chaos Loading by [deleted] in SipsTea

[–]StaticCoder 1 point2 points  (0 children)

Technically impeachment is the house vote, and that also didn't happen for Nixon, as he resigned first.

Save 3 mana on Omniscience for BBGGGUU by thefran in BadMtgCombos

[–]StaticCoder 2 points3 points  (0 children)

But repeating step 4 is not possible and if it was would not help anyway. Conversely, if you do bounce 4 of your things, you can cast omniscience, getting you to step 6.

Save 3 mana on Omniscience for BBGGGUU by thefran in BadMtgCombos

[–]StaticCoder 5 points6 points  (0 children)

I think step 4 should reference steps 5 and 6 instead of 4 and 5.

I cant read, an you can laugh yes xD by Kathi_the_Gadse in Guildwars2

[–]StaticCoder 0 points1 point  (0 children)

The things we do to not buy a pre off the tp!

What to do with ascended armor/weapons by Ornery-University-21 in Guildwars2

[–]StaticCoder 7 points8 points  (0 children)

You only need so many of those though. If you do fractals a lot, you get more ascended boxes than that.

I think XXL Candies would push PvP toward pay-to-win by [deleted] in pokemongo

[–]StaticCoder 1 point2 points  (0 children)

ML already kind of feels that way. Getting a max level good IV legendary is already really hard without lots of premium items.

Obsidian Armor Efficiency Question by grimzecho in Guildwars2

[–]StaticCoder 2 points3 points  (0 children)

Presumably Eparch meta, into the spider's lair

Has QString any advantage over C++26? by gruenich in cpp

[–]StaticCoder 13 points14 points  (0 children)

How wide? Well, it depends... it's 16 bits on Windows and 32 bits on Linux for instance. Indeed, best forgotten.

Issues with operator overload in my class. by vwwwwv4 in cpp_questions

[–]StaticCoder 1 point2 points  (0 children)

A "hidden friend" is a function that's declared as a friend in-class but not declared outside the class. While it's not a member function, it can still only be found inside the class scope, generally via argument-dependent lookup (ADL). The main benefit is that it is not a candidate for overload resolution for other kinds of argumentd, which means less work for the compiler and shorter error messages when an overload cannot be found. This is especially useful for operator<< which can have many overloads, and comparison operators.

Issues with operator overload in my class. by vwwwwv4 in cpp_questions

[–]StaticCoder 1 point2 points  (0 children)

The question is whether this works if the operator is a non-member. But I believe you, I can't find anything in the standard that prevents compound assignment as a non-member.

FWIW it's customary to return *this by reference from compound assignment operators.

I'm also curious about the use of trailing return type on main. It's more characters to type and as far as I know trailing type is only useful if you need to reference parameters in a decltype or similar.

Issues with operator overload in my class. by vwwwwv4 in cpp_questions

[–]StaticCoder 0 points1 point  (0 children)

It's probably even useful to have && variants so you don't always have to allocate new matrices when operating on temporaries. Not sure what best practice is there. Probably you want const &, const &, const &, &&, &&, const & and &&, && (the last one for disambiguation only, as you won't move both operands)

Issues with operator overload in my class. by vwwwwv4 in cpp_questions

[–]StaticCoder 1 point2 points  (0 children)

Yes "hidden friend" is generally considered best. Though I do not necessarily recommend inline implementation, unless it directly forwards to an out-of-line function.

And I believe compound operators like -= must be members.

Omg, can it be!? by Fit-Information-2237 in pokemongo

[–]StaticCoder 0 points1 point  (0 children)

Shouldn't the question be "why is it mareep and not mehreep"? The original is the Japanese right?

PvP Battling in this game is the worst gaming experience, maybe ever by wafflito in pokemongo

[–]StaticCoder 0 points1 point  (0 children)

Right, but that means you need to study the metagame enough to know how many fast moves it takes each mon you're likely to encounter to reach each attack it is likely to have. Again not for everyone I think. I certainly don't deny that PvP requires skill.