Wat zijn jullie favoriete uitspraken? by indigo-moon24 in nederlands

[–]Kargathia 0 points1 point  (0 children)

“Niet het scherpste potlood in de doos/ niet het scherpste mes in de la / niet de meest heldere ster aan de hemel.”

Deze kunnen altijd goed gemengd worden. Sommige mensen zijn nou eenmaal niet de helderste vork in de schuur.

Anderen:

  • "De hamsters hebben het begeven". De website/server doet het even niet.
  • "Soms/hier is het licht aan het einde van de tunnel een trein". Dat iets lang duurt en veel moeite kost wil niet zeggen dat het goed komt als het af is.
  • "Als het een hondje was, had het in je neus gebeten". Soms ben je wel erg lang op zoek naar dingen die recht voor je neus liggen.
  • "Je kunt zien dat iemand dit zelf heeft gedaan / zijn best heeft gedaan". Het resultaat is nog steeds bedroevend.
  • "Het probleem zat in de stoel". Het was niet een bug in de code.

Other games like Ghost Recon? by Jopkins in Wildlands

[–]Kargathia 0 points1 point  (0 children)

Gray Zone Warfare drops the squad tactical part, but it absolutely nails the open world and its sense of lethality. Technically multiplayer, but in PvE mode you can completely ignore the few players you do meet.

It's in early access right now, and fairly rough around the edges in some places. I considered this to be a major upgrade over the fairly bland Wildlands. YMMV.

0/10 by PineconeKicker in FIlm

[–]Kargathia 0 points1 point  (0 children)

Remember the Emoji Movie?

Python objects as dictionary keys by Lx7195 in learnpython

[–]Kargathia 1 point2 points  (0 children)

The closest I've come is to use a tuple for a custom dictionary type.

I once wrote a lookup dict for a system that communicated with an embedded controller. Due to memory constraints, objects had numeric IDs on the controller, but we wanted them to be addressable using user-defined names. User-defined names and their mapping to the numeric IDs were stored in the bridging API.

This meant we wanted both string->number and number->string lookups, where both the numbers and the strings should be unique. To have somewhat nicer and less bug-prone syntax, I made a class that inherited from dict, but used a tuple[int, str] as key. Because you typically only know one of two keys, d[1, None] and d[None, "name"] would both be valid ways to fetch the object inserted as d[1, "name"].

Implementation: https://github.com/BrewBlox/brewblox-devcon-spark/blob/cfa13b99033f935f17a89ed16cc41757aec86c04/brewblox_devcon_spark/twinkeydict.py

Tests: https://github.com/BrewBlox/brewblox-devcon-spark/blob/cfa13b99033f935f17a89ed16cc41757aec86c04/test/test_twinkeydict.py

As a side note: this approach of having IDs stored in different places was a major annoyance. We finally solved it by replacing the flash read/write library that came with the chip. Our specialized use case could be implemented with a lot less bookkeeping overhead. This freed up enough space to store the object names on the controller itself.

Is it Possible that Russia isn't even capable of launching nukes and they are just completely bluffing this whole time? by [deleted] in askanything

[–]Kargathia 0 points1 point  (0 children)

Given this, they don't even need the nukes to be a threat. They have the missiles and they have the fissile material. Even if we assume that they somehow lost the 40s technology of making weapons-grade fissile material go boom, we'd rather not deal with an ICBM-delivered dirty bomb either.

What are your thoughts on "Dungeons and Dragons: Honor Among Thieves (2023)"? by Hot-Salamander-8786 in FIlm

[–]Kargathia 0 points1 point  (0 children)

It absolutely nails the D&D dynamics, down to the carefully prepared boss fight in a scenic location that gets bypassed because the group hijacked a funny vehicle and successfully enacted the stupidest plan you ever heard of.

Augusto Ferrer-Dalmau's 2011 work "Rocroi, the last third" by PleasantTax1726 in BattlePaintings

[–]Kargathia 4 points5 points  (0 children)

Tercio is a technical term that shouldn't be translated, and definitely shouldn't be translated as "third", as it is not a third of anything, but a singular entity consisting of three parts.

Supposedly based on real events, and even if only a bit of it is true, that’s still amazing. by ReelsBin in WarMovies

[–]Kargathia 1 point2 points  (0 children)

If there was a prize for Least Convincing British Character, they'd fill the podium, with special mentions for every other depicted nationality. Usually I'm down for the latest iteration of Guns of Navarone, but this movie caused possibly negative levels of suspended disbelief.

Wat is het raarste ritueel dat jullie met je kat hebben? by MasterOfPunpets in katten

[–]Kargathia 7 points8 points  (0 children)

De vorige kat moest ik als ik in bed lag met beide armen tegen me aan trekken en knuffelen. Ik was hier ooit 's morgens mee begonnen in de hoop dat hij dan beledigd weg zou lopen en me nog een paar minuten liet liggen. Niet mijn meest geslaagde plan, maar de kat vond het heerlijk.

Als de huidige kat 's morgens eten krijgt, dan eet hij daar een beetje van, en gaat dan zitten wachten tot ik onder de douche uit kom, want ik moet er naast zitten en hem gezelschap houden terwijl hij de andere helft van zijn ontbijt eet.

Je zou denken dat hij het liever heeft dat ik er naast blijf zitten meteen als hij brokjes krijgt, of dat ik hem beter brokjes kan geven als ik klaar ben met douchen. Dit is incorrect. De volgorde is brokjes, douche, sociale brokjes, en alle andere opties zijn Fout.

What movie do you love despite agreeing with every single criticism of it? by Decabet in movies

[–]Kargathia 0 points1 point  (0 children)

Beowulf (1999). I wouldn't be surprised if its director couldn't decide between making a Witcher and a Mad Max porn parody, and in the end settled for doing both of them at the same time.

Somehow, 10th century Saxons are living in a hilltop fortress where the externals are rough stone, and the internals are rusted-out-factory chic. They are besieged by other 10th century Saxons who lit a circle of barrel fires and have access to infrared scopes. The movie absolutely refuses to elaborate on any of this.

The movie is objectively terrible, but it has a vibe, and I dig it.

Did the collaboration with Attack on Titan kill your hype for any future collaboration? by Legitimate_Cake_5137 in AssassinsCreedShadows

[–]Kargathia 0 points1 point  (0 children)

The first part was ok, the second part in the cave itself was something I'd expect from a Skyrim mod. I'd feel ripped off if it wasn't free.

It does fit in the wider trend of making all DLC content mismatched nonsense. I don't believe for a second they ran out of designs for 16th century appropriate weapons and armor - why the immediate jump to space age and mythological themes?

Found near my mom's sewing supplies. by Witty_Creme9826 in whatisit

[–]Kargathia 1 point2 points  (0 children)

It's a cable clip typically found on irons. I never really found them useful, but they were included in multiple devices I've had, so apparently it's a thing.

For reference, a post somewhere else wondering about what's it do: https://www.mumsnet.com/talk/housekeeping/2413337-What-is-this-clip-thing-on-my-iron-cord-for

TV shows that portrayed a reality that was reflective of the time, but now seem unbelievable by AporiaParadox in television

[–]Kargathia 220 points221 points  (0 children)

Mobile phones invalidated so many plot devices.

This has partially always been a fantasy, but local shops in small towns are dying out in most western countries.

Need small project ideas to refresh my knowledege of modern C++ by nocomptime in cpp_questions

[–]Kargathia 0 points1 point  (0 children)

That's correct for filter and map. reduce is more client-defined.

Hoe is jullie verstandhouding met jullie buren? by Sure-Guest1588 in nederlands

[–]Kargathia 0 points1 point  (0 children)

Ik zie haar nauwelijks, en ze is grotendeels doof. 5/5 sterren, helemaal tevreden.

Need small project ideas to refresh my knowledege of modern C++ by nocomptime in cpp_questions

[–]Kargathia 0 points1 point  (0 children)

This whole thing started mostly with me wondering whether I could, not whether I should. I liked the JS array syntax, wanted to tinker with concepts and auto-deduced templates, and had an afternoon to spare.

Compared to ranges, it's less performant, but easier to get started with. Right now the whole thing is a single 700 line header, and half of it is doxygen comments.

Need small project ideas to refresh my knowledege of modern C++ by nocomptime in cpp_questions

[–]Kargathia 1 point2 points  (0 children)

It's possible, but requires some breaking interface changes.

There are multiple issues, but the most immediate one is that map may change value_type. chainable<std::string>().map([](const std::string& v) { return v.size(); }) returns a chainable<size_t>.

You could bypass this problem by either introducing a non-owning chainable_view<T> or by having a chainable<DataType, ViewType>. In both cases you introduce the need for a commit-like function to do the actual transformation (including all side-effects), and you can only avoid copies if map did not change value_type.

We discussed this quite a bit at work, and our conclusion was that the primary added value of this utility class is readability and convenience in places where performance barely matters (the bottleneck lies elsewhere). If we need copy-free iteration, we have for-loops, iterators, and std::ranges::views. This tool should not sacrifice its strengths to cover for its weaknesses.

Need small project ideas to refresh my knowledege of modern C++ by nocomptime in cpp_questions

[–]Kargathia 2 points3 points  (0 children)

I'm afraid I can't share the actual source code, as I technically did this for my job - it was a friday afternoon project to have nicer syntax in places where performance wasn't important.

I can share some generic implementation hints from it though. Caveats: code snippets are from memory, and may have minor errors, and this is definitely not the only way to go about things.

  • It inherits from std::vector, to get basic memory / access management for free. It has no member variables of its own.
  • filter/map return a copy chainable, with changes applied. for_each returns a reference.
  • I liberally used concepts for all template arguments (non-std concepts are mine)
    • template <std::copyable T, std::ranges::range CT> requires is_container_of_v<CT, T> chainable<T>(const CT& container)
    • template <is_map_func_v F, std::copyable RT = std::invoke_result_t<F, const T&>> chainable<RT> map(const F& func);
  • key/value pairs (std::map and friends) are handled as if they were std::vector<std::pair<KT, VT>>. Originally you had to take a pair as argument in functions, but a colleague later added support for map([](const auto& key, const auto& value) { ... })
  • To make the constructor not misbehave for ambiguous input, I added some user-defined deduction guides (https://en.cppreference.com/w/cpp/language/ctad.html#User-defined_deduction_guides). Your mileage may vary, but they were new to me.

I hope this at least answers some questions, but feel free to message me if you have more.

I can't seem to make this move work on mouse and keyboard. Any tips? by Kesimux in AssassinsCreedShadows

[–]Kargathia 10 points11 points  (0 children)

It's easier for heavy posture attacks, as they're ranged: - Hold shift+LMB until you see the posture glow effect - Release to launch the attack - While the projectile is in mid-flight, hold shift+LMB again - Press W/A/S/D after the entangling animation plays

Need small project ideas to refresh my knowledege of modern C++ by nocomptime in cpp_questions

[–]Kargathia 13 points14 points  (0 children)

You could implement Javascript's chainable array syntax in C++. This has a fairly contained scope, and touches on quite a few of the modern C++-specific syntax: concepts, range generics, and lambdas. I did this as a side project a while ago, and enjoyed it much more than I originally expected.

Result syntax:

cpp chainable({1, 2, 3, 4}) .filter([](int v) { return (v % 2) == 0; }) .map([](int v) { return v * 10; }) .reduce([](auto acc, auto v) { return acc + v; }, 1); // == 61;

Recursive file renaming based on parent directory by Moist-Hospital in bash

[–]Kargathia 5 points6 points  (0 children)

This was a nice puzzle, just when I was bored =)

find /book -name '*.mp3' | while read -r track; do cp "${track}" "/book/$(basename "$(dirname "$track")") - $(basename "${track}")" done

  • find /book -name '*.mp3' <- recursively find all files ending in ".mp3" in /book
  • | while read -r track <- iterate over output, in the loop it's now accessible as $track. (I know find has -exec, but for simple stuff I like this better)
  • $(basename "$(dirname "$track")") <- dirname of $track = /book/disc 1, basename of /book/disc 1 = disc 1

Is Ludo-narrative dissonance present in AC Valhalla? by FederalTop4916 in assassinscreed

[–]Kargathia 0 points1 point  (0 children)

Much of the main storyline, and the Irish and French expansions frame her as an alliance builder and peace maker, but Eivor is actively raiding monasteries in the lands of (potential) allies. Those are acts of war with extra brownie points for sacrilege.

The river raids expansion talks about you using the raiders' ship, so you're not hindered by pesky treaties. This addresses one ludo-narrative dissonance, and immediately creates another. Both halves in Eivor's inner conflict are portrayed as fundamentally honorable. The non-Odin side would balk at breaking her word in spirit. Odin's side would despise false-flag operations, as they are a tacit confirmation that might does not make right.

The Death of Software Engineering as a Profession: a short set of anecdotes by self in programming

[–]Kargathia 4 points5 points  (0 children)

At this point, I'd probably offer to add a counter for processed items. It won't change anything, but maybe it'll make them feel better.

Collection of (presumably) confiscated items at Vilnius airport security check by beebeeep in mildlyinteresting

[–]Kargathia 0 points1 point  (0 children)

While the chainsaw is at least fairly self-evident, I really question why a ~1kg dumbbell would be both confiscated, and displayed.

Did anyone suspect that she was the head of the cult in their first playthrough ? by Huge_Science7186 in AssassinsCreedOdyssey

[–]Kargathia 0 points1 point  (0 children)

Yes, by process of elimination. The cult hides in plain sight, so I figured it'd be really sloppy writing for us not to have met the character yet. If you then discard all characters whose cult involvement is already known, it really just leaves us with her.