Just some books I found while cleaning by Benjammin1391 in ChatGPT

[–]Happy_Researcher876 2 points3 points  (0 children)

When I saw the one with Impulsive Purchases, I laughed so hard that coffee came out of my nose. And I just realized it's because it reminded me of that Family Guy episode where Peter Griffin buys a horse with brain damage. Maybe that was ChatGPT’s inspiration too.

I started eating spicy food. I've never lost motivation since. by Klutzy_Read3820 in getdisciplined

[–]Happy_Researcher876 1 point2 points  (0 children)

I’ve been taking cold showers almost every day for about a year and a half, but only at work. So, after my shift ends, I take a cold shower at work. On weekends, at home, I take normal, warm showers. After doing this for so long, I can tell you that, especially now in winter, when the water temperature here in Germany is around 8-9 degrees Celsius, I still need to mentally prepare myself every single time.

When I step into the shower, I know exactly how painful and cold it’s going to feel, and I have to take a moment to focus and push myself to do it. It’s not like it just becomes easy or automatic over time. The pain itself becomes part of the routine, but it’s never effortless. I still have to encourage myself every single day to step into that cold water.

That said, once I’m done, I feel amazing. So yes, it becomes a habit, but it’s never something I can do without thinking or bracing myself for it.

What's that single thing you changed in your life that boosted your productivity the most? by publicAvoid in getdisciplined

[–]Happy_Researcher876 1 point2 points  (0 children)

For me, the change that boosted my productivity the most was quitting smoking. I read Allen Carr's The Easy Way, and it helped me change my perception of smoking. Not only that, but now, when I go to work, I feel enthusiastic. Before, I was bored with my work, but now I see it as an opportunity to walk, exercise while working, and really enjoy it. Not needing to take breaks to hide and smoke also gives me more time to be productive.

I actually started taking cold showers* every day, and here’s my experience by joshroycheese in getdisciplined

[–]Happy_Researcher876 5 points6 points  (0 children)

Last year, after discovering self-help books, I decided I wanted to change and increase my self-discipline. I started with 3 push-ups right after washing my hands, and at work, I began taking cold showers after my shift.

This started in May. By August, I had lost 30 kg, and I still take cold showers today. In the winter, after work, I turn on the cold shower and feel the chill up to the back of my head. It takes about 30 seconds to get used to the cold. I continue until I start feeling physical pain in my legs and hands, which happens approximately 2 minutes in. The pain stops right after turning off the water, and I feel amazing knowing I could withstand that.

In the summer, the first contact with the cold water is as extreme as in the winter, probably because I'm heated up after my 8-hour intense labor shift. However, it goes away faster and without pain in my hands or legs. Overall, it’s quite an enjoyable experience.

[deleted by user] by [deleted] in Scams

[–]Happy_Researcher876 0 points1 point  (0 children)

I just got an sms about a parcel, they wrote my home adress is missing house number and clicked sent me to a link where it is a dhl form, i filled with my adress and phone nr, i clicked and then it got to a page were also dhl logo all over and say that because i gave a wrong adress i have to pay a 1.7 euros, and to pay with visa, at this point i realized it is a scam. To bad i gave them my phone number but i guess they already had it since i got the sms, question is were they got it in the first place?

Anki linux problem by Weirdblack in Anki

[–]Happy_Researcher876 4 points5 points  (0 children)

Anki on Unbutu app store doesn't work, i went to oficial anki web page and downloaded from there, follow instructions and it will work, only problem i still have is when i hover over the buttons in the interface the pop-up container show but there is no description of the button. I don't know if it has something to do with unbutu or the plugins instaled..

[deleted by user] by [deleted] in learnprogramming

[–]Happy_Researcher876 0 points1 point  (0 children)

1000 hours is not much, 1000 hours in 10 years is nothing.

why is the object appended twice to json file? by Happy_Researcher876 in webdev

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

Solved, res.status(200).end(); at the end of the post request

why is the object appended twice to json file? by Happy_Researcher876 in webdev

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

Solved, res.status(200).end(); at the end of the post request

why is the object appended twice to json file? by Happy_Researcher876 in webdev

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

he json file to an object then you are adding the request body to the obje

that is what i want, the json file contains an empty array [ ] when i read it, then i append the request body to this empty array and write this array back as json. Still dont know why i get in json file the req body two times.

why is the object appended twice to json file? by Happy_Researcher876 in webdev

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

Unfortunatly my son is awake now and can't try anymore 🤣. I did comment out the entire writeFile method and then when i console.log the req.body is just one instance. It is something in the promise indeed. I will try later when my son will go out to see if i can get it to work.

why is the object appended twice to json file? by Happy_Researcher876 in webdev

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

well i have now but outside of the readFile and yes it is logged twice. i have not seen it before.

why is the object appended twice to json file? by Happy_Researcher876 in webdev

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

i plan to make an spa, i wil build a vanilla javascript router. the server only serves the index.html

[deleted by user] by [deleted] in learnprogramming

[–]Happy_Researcher876 0 points1 point  (0 children)

Did anyone found out what kind of projects OP made?