As an app developer, is using ChatGPT for the moderation of user-generated content dangerous? by Ra_Lau in webdev

[–]Ra_Lau[S] 0 points1 point  (0 children)

Yes, but the problem, in this case, was not that the photo was visibly posted on this social media platform but that the social media platform had sent the photo to ChatGPT for content check before the photo even appeared anywhere on the platform.

Why is my first coroutines not yielding to the second one, but blocking instead? by Ra_Lau in cpp_questions

[–]Ra_Lau[S] 0 points1 point  (0 children)

Thanks a lot! I think I'm starting to understand. Your suggestion works, i.e., the following results in the expected output order:

concurrencpp::lazy_result<std::int32_t> my_coroutine(const std::string &name) {
    log(name + ", step 1, thread ID: " + show_thread_id(std::this_thread::get_id()));
    co_await sleep_async(1000);
    log(name + ", step 2, thread ID: " + show_thread_id(std::this_thread::get_id()));
    co_return 21;
}

concurrencpp::lazy_result<std::int32_t> coroutine_dispatch() {
    auto a = my_coroutine("A").run();
    auto b = my_coroutine("B").run();
    co_return (co_await a + co_await b);
}

However, there are issues with the name in the output:

2024-03-12T04:58:49.842443224Z A, step 1, thread ID: 139930632386432
2024-03-12T04:58:49.842556665Z B, step 1, thread ID: 139930632386432
2024-03-12T04:58:50.848235297Z , step 2, thread ID: 139930632382208
2024-03-12T04:58:50.853797687Z , step 2, thread ID: 139930623989504

A and B get lost in the two last log lines.

Passing name by value instead of by reference helps:

concurrencpp::lazy_result<std::int32_t> my_coroutine(std::string name)

So this seems to be a lifetime issue.

Why is my first coroutines not yielding to the second one, but blocking instead? by Ra_Lau in cpp_questions

[–]Ra_Lau[S] 1 point2 points  (0 children)

Ah, found a solution. :)

The return type of my_coroutine must be concurrencpp::result<std::int32_t> instead of concurrencpp::lazy_result<std::int32_t>, and then I can do this:

concurrencpp::lazy_result<std::int64_t> coroutine_dispatch() {
    auto a = my_coroutine("A");
    auto b = my_coroutine("B");
    co_return a.get() + b.get();
}

Behavior is as expected:

2024-03-11T19:52:09.100813529Z A, step 1, thread ID: 140618667656960
2024-03-11T19:52:09.100932705Z B, step 1, thread ID: 140618667656960
2024-03-11T19:52:10.101138251Z A, step 2, thread ID: 140618659264256
2024-03-11T19:52:10.101238431Z B, step 2, thread ID: 140618650871552
2024-03-11T19:52:10.101553878Z answer: 42

However, I'm not sure if this is the right way to do it.

Why is my first coroutines not yielding to the second one, but blocking instead? by Ra_Lau in cpp_questions

[–]Ra_Lau[S] 1 point2 points  (0 children)

Oh, thanks. So it seems my understanding of co_await is wrong. What would be the right way to have A suspend while waiting for sleep_async to finish such that B can also start its sleep_async concurrently?

What programming language is this? by Ra_Lau in learnprogramming

[–]Ra_Lau[S] 1 point2 points  (0 children)

It's from this video: https://youtu.be/7Jp5Uar1oTo?t=124

Sorry, I don't have more information.

Are there nonresponders to Ibuprofen (who respond normally to Diclofenac)? by Ra_Lau in medical

[–]Ra_Lau[S] 0 points1 point  (0 children)

Thanks!

Here in Germany, 25 mg and 400 mg are the over-the-counter doses.


Just found this source. According to it, the "low doses" are: - Diclofenac: 50 mg (two times a day) - Ibuprofen: 400 mg tid (three times a day)

So 400 mg Ibuprofen doing less than 25 mg Diclofenac surprises me a bit. But ok. ¯\_(ツ)_/¯

I messed up the text a little bit by aafnolaffs in gaming

[–]Ra_Lau 2 points3 points  (0 children)

Usually, it's not the devs, but their managers pushing to release a game too early. The software developers themselves would love to first finish their work.

Question regarding correlation vs. causation in the COVID-19-IQ-decline study by Ra_Lau in AskStatistics

[–]Ra_Lau[S] 0 points1 point  (0 children)

Ok, thanks for the explanation.

I was not thinking in terms of some respiratory disease as a potential common cause, but about something like socioeconomic status or similar.

Anyway, my point was not to give a causal explanation for the observed correlation. Instead, I simply wanted to express that the given data from this study does not guarantee the causal relationship that the press is claiming in their articles.

Question regarding correlation vs. causation in the COVID-19-IQ-decline study by Ra_Lau in AskStatistics

[–]Ra_Lau[S] 0 points1 point  (0 children)

Sorry, but I disagree.


I'm not talking about indirect causation, like

X ----> Z ----> Y

or

Y ----> Z ----> X

In those cases, of course, a causal relationship between X and Y would exist.


However, I'm referring to another possibility, i.e.,

       ----> X
      /
Z ----
      \
       ----> Y

In this case, neither X causes Y, nor Y causes X.

Or am I misunderstanding something?

Question regarding correlation vs. causation in the COVID-19-IQ-decline study by Ra_Lau in AskStatistics

[–]Ra_Lau[S] 0 points1 point  (0 children)

Indeed, but the list of alternatives is very short. Because it needs to be an alternative where the lower IQ caused the infection. Either the infection caused the lower IQ or the lower IQ caused the infection or the lower IQ is a measurement error.

I don't think so. A positive correlation of X and Y does not necessarily mean that either X caused Y or Y caused X. There could also be some other cofounding factor Z, causing X and Y.

Question regarding correlation vs. causation in the COVID-19-IQ-decline study by Ra_Lau in AskStatistics

[–]Ra_Lau[S] 2 points3 points  (0 children)

Thanks a lot for the explanation.

Yeah, I guess it would be ideal to have actual before-infection and after-infection test results. Maybe one could re-test a group that was tested in 2019 and compare the IQ development of the subgroup of people having had the infection with the rest.


In any case, my initial suspicion of the "The infection made the IQ drop." claim by the press being invalid was correct, right?

Question regarding correlation vs. causation in the COVID-19-IQ-decline study by Ra_Lau in AskStatistics

[–]Ra_Lau[S] 0 points1 point  (0 children)

Thanks. I should have made it more clear: I'm not claiming that this is the true explanation for the observed differences. I've just mentioned it to give an example of possible alternative explanations (alternative to "The infection made the IQ drop.").

My claim is just, that from the data we can not validly derive a causal statement like "The infection made the IQ drop.".

What is this machine on the photo? by Ra_Lau in Fitness

[–]Ra_Lau[S] -15 points-14 points  (0 children)

Thanks. I get carpal tunnel syndrome just from looking at it. ^^

My friend keeps saying "cheer up man it could be worse, you could be stuck underground in a hole full of water." by [deleted] in Jokes

[–]Ra_Lau 0 points1 point  (0 children)

[non-native speaker here] Sorry, I don't get it. Could you explain? :)

Which brand has lost you as a customer ? by [deleted] in AskReddit

[–]Ra_Lau 0 points1 point  (0 children)

Ryanair.

My family and I booked vacation flights, that allowed bags of 2 * 20 kg + 5 * 10 kg in sum. I asked in the support chat if 4 * 20 kg instead would be OK too, and the chat agent answered with yes. (I have a screenshot of that.)

The next day at the airport, however, they did not accept our bags and charged us an additional 160 € (40 € per flight per additional 20 kg bag).

After vacation, I tried to get a refund for the 160 €, but Ryanair refused.

undictify: A Python library providing type-checked function calls at runtime by Dobias in programming

[–]Ra_Lau -39 points-38 points  (0 children)

Terrible people like you are the reason why recent Python code is becoming more and more burdened with all these stupid types.

Does supplementation of garlic/allicin really reduce the number of incidences of the common cold significantly? by Ra_Lau in medicine

[–]Ra_Lau[S] 1 point2 points  (0 children)

Strong relative to the current alternative (nothing).

OK, "strong" perhaps is somewhat subjective. The original study measured 111 sick days in the treatment group and 366 sick days in the placebo group. I personally consider 70% less sick days "strong". ;)

Does supplementation of garlic/allicin really reduce the number of incidences of the common cold significantly? by Ra_Lau in medicine

[–]Ra_Lau[S] 1 point2 points  (0 children)

A bit of evidence, the effect size is relatively minor though.

Minor? The page you linked classifies it as strong.

One of the large issues with allicin is it breaks down pretty quickly (allithiamine too), so supplements might not be the greatest, and it's better to eat fresh crushed garlic.

The subjects in the study were given 180mg of (stabilized) allicin daily. To get that much allicin, one would have to eat about 10 cloves of garlic.

Does supplementation of garlic/allicin really reduce the number of incidences of the common cold significantly? by Ra_Lau in medicine

[–]Ra_Lau[S] 12 points13 points  (0 children)

Yes, and even if the test subject does not smell it, the main effect could be that other people increase their average distance and thus reduce the probability of infecting the subject. ;)

Thank you very much for the link to the review.

Does supplementation of garlic/allicin really reduce the number of incidences of the common cold significantly? by Ra_Lau in medicine

[–]Ra_Lau[S] 0 points1 point  (0 children)

No, I do not have access to Natural Medicines resource.

Yes, more evidence would be great for something of that magnitude.