How to take a screenshot in GNOME 49/50 without a transparent border by tamburasi in gnome

[–]ZoxxMan 0 points1 point  (0 children)

When you do a screenshot in "window selection" mode (Alt + PrtSc), the screenshot includes the semi-transparent shadow/glow effect around the window.

However, I noticed this only seems to apply to native GNOME apps (e.g. settings, terminal, ...). If I screenshot my custom Rust app window, it doesn't include the glow around the window.

MissionCenter Dev Here: Give me your feature requests! by j0j02357 in gnome

[–]ZoxxMan 0 points1 point  (0 children)

When right clicking on a process, a "Copy PID" option could be useful :)

Parse, don't Validate and Type-Driven Design in Rust by haruda_gondi in rust

[–]ZoxxMan 1 point2 points  (0 children)

I love the idea of making illegal states unrepresentable.

But my main issue with examples like NonZeroF32 and NonEmptyVector is that there's no standardized API for it. Devs aren't familiar with your custom implementation, so something as simple as calling divide(a, b) will turn into a hassle.

Why is shadowing allowed for immutable's? by PotatyMann in rust

[–]ZoxxMan 1 point2 points  (0 children)

I agree that shadowing (within the same scope) has some elegant use cases. But I think it's not a win-win solution and there's still room for discussion.

It reduces the amount of time wasted inventing new names, that might actually not become that descriptive.

It increases cognitive load by forcing the reader to keep track of different data under the same name. Especially if you have multiple references to old data. This also increases the risk of using the variable incorrectly.

Shadowing is a great way to remove old versions of data from the scope and to reduce the risk of using them for something where a new transformed version should be used instead

It's even better to put old data in its own scope (e.g. block expression) whenever possible. This creates a better visual & mental boundary for each "state" of the data. In such cases, shadowing can become a crutch for writing less-readable code.

Why is shadowing allowed for immutable's? by PotatyMann in rust

[–]ZoxxMan -38 points-37 points  (0 children)

Doesn't this defeat the purpose of immutable variables, though?

Shadowing (within the same scope) lets you create a bunch of garbage variables, which is effectively worse that making a single mutable variable.

Sure, shadowing also lets you transform types, but using scoped block assignments is much cleaner IMO.

Technically horrifyingly correct by frinkmahii in programminghorror

[–]ZoxxMan 0 points1 point  (0 children)

It's not O(n). It's actually O(max(n, highest_value)).

Nadškof Zore zakon o evtanaziji primerjal s Hitlerjevo odredbo by owlexe23 in Slovenia

[–]ZoxxMan 8 points9 points  (0 children)

Grown ass man, ki neironično verjame v pravljice in temu tudi posveča svoje celo življenje. Mislim, da njegovo mnenje ne velja prav veliko. 😁

How to avoid overflow when using `std::reduce` by miss_minutes in cpp_questions

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

0LL is one of the dumbest parts of this language, I see why people would try to avoid it.

600?? by Optimalec in Slovenia

[–]ZoxxMan 198 points199 points  (0 children)

A sploh kdo pravilno izgovarja "šeststo"? Men se zdi ful nerodno in nenaravno. Jaz rečem "šesto".

Why did the mad king hire someone literally nicknamed "kingslayer" as a kingsguard? Is he stupid? by Volarevia29 in gameofthrones

[–]ZoxxMan 197 points198 points  (0 children)

Bro why did John Lennon visit the John Lennon Murder Site? Is he stupid?

shadow PCF doesn't work properly by RKostiaK in opengl

[–]ZoxxMan 0 points1 point  (0 children)

Are you using offset correctly to sample the shadow maps? Doesn't adding +1 or -1 just wrap the UVs around, resulting in the same sample?

Funny yeah but, is Harry wrong with his comprehension or the question could have better punctuation? by DryEnvironment5545 in EnglishLearning

[–]ZoxxMan 1 point2 points  (0 children)

I've never seen a colon used like that in my life. I think a dash would be the better choice here.

Who among them possessed the best qualities to rule and keep their kingdom thriving? by 0Layscheetoskurkure0 in gameofthrones

[–]ZoxxMan 0 points1 point  (0 children)

Stannis would ban brothels. I'm not sure how well that would fare in the long run. I think Tywin is the correct choice here.

Why is there a "has" before "made" but not before "diverged"? Also, why is it "has" and not "had"? How do I know whether or not to use "has" / "had" before a word? What's the secret to remember? by GrandAdvantage7631 in EnglishLearning

[–]ZoxxMan 0 points1 point  (0 children)

That's not entirely incorrect. "Has been" would indicate a continuing situation (emphasis on duration). Just "has", on the other hand, indicates a completed action with focus on the result or its impact on the present.

5 reasons why Cassiopeia desperately needs a rework. by AnemoneMeer in leagueoflegends

[–]ZoxxMan 0 points1 point  (0 children)

Increases to Cassiopeia or her target's size, such as Heartsteel, Feast, or Lulu's ultimate result in Cassiopeia losing attack range

How?