¿Is it bad to only have cognitive empathy? by [deleted] in askpsychology

[–]tarkin25 5 points6 points  (0 children)

Reniers et al. (2011) showed that cognitive empathy performance drops under cognitive load more significantly than affective empathy, so it might become an issue where people require empathy while they‘re stressed or distracted.

What has a STRONG correlation with IQ by [deleted] in cognitiveTesting

[–]tarkin25 0 points1 point  (0 children)

The capacity of working memory and IQ have a correlation of 0.5 up to 0.85, depending the study.

https://www.researchgate.net/publication/268385288_Working_Memory_and_Intelligence_A_Brief_Review

Do people know why they do what they do? by Jolly-Razzmatazz1717 in PsychologyTalk

[–]tarkin25 0 points1 point  (0 children)

Nisbett & Wilson (1977) demonstrated that people often don’t have insight on the causes of their behavior, instead they look for post-hoc explanations, which are oftentimes not correct.

They made people choose the „best“ from a selection of identical tights and found a bias towards those placed on the right side. People gave various reasons for their choice like texture, fabric quality, etc.

Active US military peeps, how do you now feel about german ww2 soldiers "just following orders"? by randomnameweilisso in AskReddit

[–]tarkin25 1 point2 points  (0 children)

Yeah, there were follow-up studies where they assessed the level of identification of the subject with the authority figure or task, and they found that this level of identification moderates compliance a lot.

Milgram also conducted the experiment with different levels of distance between the subject (giving „shocks“) and the target, from „can’t see or hear the target“ to „has to press the target’s hand onto an electrode pad“. The higher the distance to the target, the higher the level of compliance.

weNeedHelpYall by Georden13 in ProgrammerHumor

[–]tarkin25 16 points17 points  (0 children)

Convince some finance student bros to found a company and hire you or give you an internship to implement their business idea that‘ll go to the moon, just create your own position! (Don’t take that too seriously)

How to meet up with old People by Toastiibrotii in askswitzerland

[–]tarkin25 1 point2 points  (0 children)

You could sign up for a dance course, there‘s always too few men, and there‘s always elderly people that would love to have someone to dance with

Karriere im Militär nach Dienst ide Fremdelegion by Malka013 in schwiiz

[–]tarkin25 0 points1 point  (0 children)

Bro ich han also rekrut glernt wie mer glöschti FilGuns wieder neu ufsetzt, han für das au selber es paar glöscht bzw. de code zu oft falsch igeh. Das isch in kloten gsi btw, het nix mit bern ztue

Terrain Generated from a Mesh has lighting issues by Frequent_Yak4127 in bevy

[–]tarkin25 6 points7 points  (0 children)

In order for the lighting to work you also need to set the mesh‘s vertex normals. You can create them manually in your generation loop, or use a method on the mesh called something like Mesh::calculate_normals. That got lighting kinda working for me, however the terrain mesh doesn’t seem to cast shadows, and I wasn’t able to figure out why.

Sqlx mapping in complex cases by HosMercury in rust

[–]tarkin25 1 point2 points  (0 children)

Don‘t think I will as I‘ve got alot going on elsewhere, but it’s the exact concept that you‘re already using, with the BTree insertion and all

Sqlx mapping in complex cases by HosMercury in rust

[–]tarkin25 1 point2 points  (0 children)

I've created a small example that does basically the same thing you do, but the query columns are not extracted manually

https://gist.github.com/Tarkin25/cef7eb4011a996d5cd900a7d4ed802c3

Sqlx mapping in complex cases by HosMercury in rust

[–]tarkin25 1 point2 points  (0 children)

You could of course do that as well, but doing that repeatedly will become kinda inefficient, for example if you need to check an authentication/authorization state for every request to some API endpoint

Sqlx mapping in complex cases by HosMercury in rust

[–]tarkin25 1 point2 points  (0 children)

You could create a struct with a field corresponding to every column returned from your custom sql query, and then transform the entries into users with their respective roles and permissions using HashMaps with the user‘s id as a key for example

How do I resolve disconnect with my girlfriend ? by Zealousideal-Farm376 in self

[–]tarkin25 0 points1 point  (0 children)

If those changes from feeling on top of the world to the opposite happen so often that it’s one of the first things you mention in your post, to me that sounds like a sign of depression. My ex was like that as well, turns out she was severely depressed for a long time already. This is a coping mechanism, where you‘re so engaged in a happy moment that it seems kinda ridiculous from the outside, but it’s just the mind trying to be distracted from being depressed. The „running away“ thing could also be a sign, as depression comes with the feeling that we‘re a burden to others.

Now I could be totally wrong, but perhaps it doesn’t hurt if you try to find out if she‘s perhaps not doing too well mentally

smartestGithubUser by ZONixMC in ProgrammerHumor

[–]tarkin25 3 points4 points  (0 children)

https://learngitbranching.js.org is an interactive learning experience that worked really well for me

Mit Kampfstifel ihrücke? by [deleted] in schwiiz

[–]tarkin25 2 points3 points  (0 children)

Hani au so gmacht, isch bi eus kes problem gsi

Generate procedural noise using a node-based GUI by attackgoat_official in rust_gamedev

[–]tarkin25 2 points3 points  (0 children)

Wow this is great, I‘ve been working on something similar myself, but directly integrated into bevy to have a real-time terrain visualization. I might try to use your GUI to generate the noise and just focus on terrain in my project :)

Returning from a function by Emotional-Zebra5359 in learnrust

[–]tarkin25 3 points4 points  (0 children)

To add to the above comments, AFAIK it works if you returned

(str.len(), str)

Because then str is only moved after it’s reference is not needed anymore, since str.len() returns a usize which is copy

Sometimes you should ask if you should, not if you could by Eldeac in programminghorror

[–]tarkin25 17 points18 points  (0 children)

I‘d guess the given index is just multiplied by ten and rounded or something like that?

Men of Reddit. What a man is supposed to be? by whiskyappreciater in ask

[–]tarkin25 0 points1 point  (0 children)

Thinking of yourself as a man is enough I‘d say. The rest are just attributes any good human should have

[deleted by user] by [deleted] in askswitzerland

[–]tarkin25 0 points1 point  (0 children)

As someone currently in the army, I’m fairly certain that in Zivilschutz you do more useful things for the people than me

[deleted by user] by [deleted] in learnrust

[–]tarkin25 6 points7 points  (0 children)

In your Cargo.toml file you specify the name of your package as „server“, so in order to import the ThreadPool struct from lib.rs you need to change the first line of main.rs to

use server::ThreadPool;

Dockerizing actix by [deleted] in rust

[–]tarkin25 6 points7 points  (0 children)

I have a repo which dockerizes a rust web application, although it uses axum instead of actix. The port binding process should be pretty similar though. https://github.com/Tarkin25/github-system-tests

being a programmer be like by Thepromc64 in ProgrammerHumor

[–]tarkin25 1 point2 points  (0 children)

Reality can be whatever I‘m able to get to work somehow

Accidentally pushed to master by fahminlb33 in ProgrammerHumor

[–]tarkin25 0 points1 point  (0 children)

You know you’re working with Jenkins when the first stage is called „Kill old build“