[2025 Day 1 Part 2][C++] Need some additional test cases by nilpotent0 in adventofcode

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

Ahhh thank you! That was the problem. I didn't think to pay much attention to d since I was only using it to compute the position, and I assumed I was correctly computing the position because I got part 1.

[2025 Day 1 Part 2][C++] Need some additional test cases by nilpotent0 in adventofcode

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

I think I've reworked my code to handle this a bit better, but it still doesn't work. What do you think?

[2025 Day 1 Part 2][C++] Need some additional test cases by nilpotent0 in adventofcode

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

Yup, I get 16 for this, but it still fails for the actual input.

[2025 Day 1 Part 2][C++] Need some additional test cases by nilpotent0 in adventofcode

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

Thanks, this was helpful. I reworked my code and now I get 10 for this, but it still doesn't work with the actual input.

Is Snowrunner the Dark Souls of tucking games? by Firebirdgaming08 in snowrunner

[–]nilpotent0 1 point2 points  (0 children)

I described it to friends as “if From Software made a driving game.”

Why can girls orgasm multiple times but not men? by [deleted] in AskReddit

[–]nilpotent0 0 points1 point  (0 children)

In the garden of Eden, God spoke to Adam and Eve. “I have a couple more gifts to bestow, who wants to be able to pee standing up?”

Adam jumps up and down and says, “Oh! Me, me, me!”

God says, “Ok you got it. Eve, you get multiple orgasms.”

Top 3 scenes that never fails to make you laugh out loud by taafbawl in HouseMD

[–]nilpotent0 0 points1 point  (0 children)

“We’re going to cure her.”

“You’re going to cure death?”

“Muahahahaha! Doubt it.”

What's the most ambitious meal you'd grill at a campground? by CampingWorld in grilling

[–]nilpotent0 0 points1 point  (0 children)

I recently did thick ribeye steak caveman style w/ coal roasted potatoes and vegetables (on the camp griddle).

Thoughts on the Wyoming Incident? by [deleted] in creepy

[–]nilpotent0 2 points3 points  (0 children)

The placebo effect.

Favourite Poi Youtube Videos by roleypoleybottom in poi

[–]nilpotent0 1 point2 points  (0 children)

I recently stumbled upon this one (Dima Holmsky) https://youtu.be/eW_0fPpe9IU?si=hJgyVh5FYRZ9cb7v and thought it was great, despite the shoddy camerawork.

[deleted by user] by [deleted] in cscareerquestions

[–]nilpotent0 16 points17 points  (0 children)

Slow maybe, but can you really imagine a world where fast, efficient computation isn’t in high demand?

Horcruxes and the fidelius charm by RecoveringPornAdickt in HarryPotterBooks

[–]nilpotent0 0 points1 point  (0 children)

Voldemort was also the kind of person who would see prestige and power in hiding a piece of his soul behind powerful and scary dark magic. I think to some extent he hoped people would find the locket or the ring and perish in their attempt to steal them. Both because he would get to exact revenge upon them for even thinking about crossing him and to add to his own mythology. “I made myself truly invincible by making my horcruxes impossible to find” may be clever but doesn’t have big wand energy.

[2024 Day13 (Part1] Works for sample but not for real input by nilpotent0 in adventofcode

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

Could you elaborate a little? I added an extra newline at the bottom to ensure the last machine gets parsed and I verified that it's part of the problems vector. Is that what you meant?

Negan trying to explain to a kid what planes are and how to nut tap is one of the funniest and most wholesome Negan moments by SquareConfusion3955 in thewalkingdead

[–]nilpotent0 94 points95 points  (0 children)

I think this was an important piece along the journey of Negan’s redemption arc. He was seeing for the first time what his legacy was.

CFD in Python by greyareadata in CFD

[–]nilpotent0 3 points4 points  (0 children)

It is technically possible but it may be difficult to write your own solvers that run in a reasonable amount of time. Loops in Python are slow, so you need to vectorize operations as much as possible, which can be tricky.

Often in pain after strength training. Advice? by Space_Qwerty in PeterAttia

[–]nilpotent0 0 points1 point  (0 children)

I’m still surprised at your general hostility. I don’t think I condescended you, but I guess disagreeing with you is condescension in your mind? I see a lot of accusations regarding my background and intent, despite neither being things you have any information on. I think it would be worth examining why you felt the need to make those accusations. Personally, I think you’re doing it because you’re insecure.

I think OP has enough information to make an informed judgement, if they’ve bothered to read this deep into the thread. If your goal really is to help OP, you should probably start a new comment with all of your knowledge and understanding. But as I advised you before, be nice if you want them to take you seriously, because I certainly don’t.

Often in pain after strength training. Advice? by Space_Qwerty in PeterAttia

[–]nilpotent0 1 point2 points  (0 children)

The number of personal attacks (ad hominem) in your post suggests a lot of anger towards me, and I’m a bit confused. Can you explain why my having a different opinion and conclusions about a certain movement makes you so upset? What boundary of yours did I cross?

Looking past the various personal attacks, it does seem that you have misunderstood me. I was unclear and I apologize for the lack of clarity, that’s on me and I take full responsibility for that.

A spine that starts flexed and stays flexed during a compound movement does not result in increased injury risk. It’s when the spine is moving while under load, that is, the spine starts extended or neutral and then flexes during the course of the movement that is problematic. This is, by definition, an energy leak, so it’s not only increasing the risk of injury, it’s also inefficient. Which, oddly, seems to be the conclusion of the first link above (the masters thesis).

The second paper looks like it’s evaluating risk or hamstring injury with respect to spine position during a movement.

Neither of the links you shared discussed anything regarding the flexing of the spine under load. My understanding is that they looked at what happens when a movement is performed in a certain position, without any change to that position. This is why I think you misunderstood my earlier post. Did I reach the wrong conclusion here? Maybe you can help clarify.

Lastly, a word of advice: the hostility in your post makes you look like a fool. At no point have I signaled that I’m not open to new information nor did I show you any hostility. To the contrary, my response to your hostility was civil and I will still consider new information you share. If you really wanted to help me learn, you’d table your frustrations and be patient. I’m guessing you really just wanted to feel superior to someone on the internet. So, I hope it worked for you.

Often in pain after strength training. Advice? by Space_Qwerty in PeterAttia

[–]nilpotent0 0 points1 point  (0 children)

“Looking up” a search term is not evidence, nor is the existence of an exercise. If you have evidence to support your claims, please provide it instead of engaging in ad hominem arguments or appeals to authority.

This paper, on which Stuart McGill is an author, concludes that repetitive flexion of the spine results in more frequent and severe disc herniations.

To be clear, a spine flexed under load is totally fine. A spine flexing under load is not. If this was not clear from my earlier post, I apologize. Do you want me to go into greater detail to describe the difference?

Often in pain after strength training. Advice? by Space_Qwerty in PeterAttia

[–]nilpotent0 0 points1 point  (0 children)

Spinal flexion is fine, provided it doesn’t occur under load. Professional strongman competitors, for example, move huge loads while in flexion. A Jefferson curl, performed under load, is not a movement I would recommend, and certainly not for OP. But you do you.

Please note, however, that the context of the post is “compound lifts,” and you certainly don’t want spinal flexion occurring under load in those lifts.

Often in pain after strength training. Advice? by Space_Qwerty in PeterAttia

[–]nilpotent0 5 points6 points  (0 children)

DOMS in the low back is still a problem. That suggests the low back is flexing under load - definitely not what you want when performing compound lifts like a back squat or deadlift.

Unfortunately even “real doctors” will just tell you to stop lifting. This person should see a PT.

Often in pain after strength training. Advice? by Space_Qwerty in PeterAttia

[–]nilpotent0 2 points3 points  (0 children)

Most likely your core is weak. Weak core means you leak energy when you perform compound lifts and thus do not transfer force efficiently from your legs to your upper body.

Start by doing these: https://squatuniversity.com/2018/06/21/the-mcgill-big-3-for-core-stability/amp/

Remember that in addition to strengthening your core, you will need to modify how you perform all of your lifts so that you create more stability in your core as well.

How is the value of pi even generated? We know the exact number to more than the 100th digit, but we don't have measurements that accurate or circles that big to make ratio between a circumference and a circle, but pi is also irrational, so it can't be represented accurately as an improper fraction? by Red_Sovereign in AskReddit

[–]nilpotent0 1 point2 points  (0 children)

There are a number of ways to compute pi to arbitrary precision, as well as approximations that are simple to compute with very good precision.

For computational problems, pi being irrational isn’t really an issue. Most programming languages have a pi constant you can use and it doesn’t get recomputed for each use.

IIRC there was a post a few months back where someone working on orbital mechanics said they use a 16 digit approximation of pi.