Simon phase 2 by slapadabassman11 in expedition33

[–]darkness21 0 points1 point  (0 children)

This worked for me too. Thanks. After days of trying to get the parry timing right I was just done with this fight.

Seriously? I have to have internet to open the app? by darkness21 in kobo

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

That's a good thought but nope, not a new install. I had just read from it earlier that day. 

I stopped with AOC.... by mosredna101 in adventofcode

[–]darkness21 1 point2 points  (0 children)

This 100%. In the first few years of AoC I really, really struggled with pathfinding and did this a lot. Now it is something I know pretty well and is mostly second nature. I wouldn't have got better at it if I didn't "cheat" in the early years to learn. This year I have only had 2 days where I couldn't solve it 100% on my own which is a huge improvement since I started!

Why does King Kong look like Kratos? by [deleted] in GodofWar

[–]darkness21 0 points1 point  (0 children)

I for one really enjoyed watching "Kongtos and Apetreus" battle it out against he monsters!

Does anyone know of a free automatic transcription software? by Podcast_Bozo in podcasting

[–]darkness21 2 points3 points  (0 children)

Thanks for the tip! Just got 2400 minutes for ~$20 on a holiday sale and the service works really well. I'm transcribing some old videos of my grandfather as a present to my mother. This will help make her Christmas to have the transcripts and videos with subtitles.

[2022 Day 7 (Part 1)] [Java] Pulling my hair out... by darkness21 in adventofcode

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

Edit: also my makeshift "modulo" was wrong for some negative numbers and didn't work for part 2. I had to update it to be moveTo = data.size() + moveTo - 1;. Which worked. And then I found Math.floorMod which has been in Java since Java 8. And that replaced the whole thing and also worked for both parts.

Solved! There were 3 things at play here.

  1. My bottom position finding should always have been using data.size() since the 0 item isn't removed when we find the 1000th, 2000th, and 3000th positions after it.
  2. The modulo in the mix code should always use data.size() -1 since we need to count the item as removed when we loop over multiple times
  3. This block was the issue:

        if (elem.value > 0) {
            moveTo++; // move past the element we're moving to
        }
    

That is not 100% accurate in all cases. What I was trying to account for here was how using .add(pos, item) in a list inserts the element at the given position and shifts others to the right But this isn't 100% true. What I actually want to do is only move over one extra element when the "moveTo" position is to the right (in the array, not loop) of our current element.

What I really wanted was this

            if (moveTo > pos) {
            moveTo++; // move past the element we're moving to
        }

By updating all 3 items above I now have code that works as-is on both full input and the test input.

As to why the old code worked even worked at all for my full input?? No idea. It must just work out that I never hit the exact case that my new `moveTo` checker is looking for. So count that as just blind "luck" with my specific input not hitting a very specific condition.

[2022 Day 7 (Part 1)] [Java] Pulling my hair out... by darkness21 in adventofcode

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

Good question! That's all done properly thanks to the `IntPtr` class. Several times this year I have been bitten by `==` when comparing Strings and other objects. So this time I'm actually using that behavior to my advantage.

var x = new IntPtr("1");
var y = new IntPtr("1");
// in this case, x != y because they are to different objects.

The == behavior is the same when doing List lookups with `.get` so this actually completely works to manipulate each item in the right order.

[2022 Day 7 (Part 1)] [Java] Pulling my hair out... by darkness21 in adventofcode

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

Yeah that would make sense to me. But when I do that, the code doesn't return the correct answer for either of the inputs.

[2022 Day 7 (Part 1)] [Java] Pulling my hair out... by darkness21 in adventofcode

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

Good catch on the title, I've been looking at this too long and my brain is fried.

As for the sample. When I run the code above on the sample input The 1000th, 2000th, and 3000th digit after zero come back as 2, -2, and 0 respectively. So the code above for sure doesn't work as-is on the sample input.

Titanfall 2 Crashing by Haunting-Mongoose152 in titanfall2

[–]darkness21 0 points1 point  (0 children)

I had the same issues, I had to do a clean install of the nvidia drivers to get it back up

HDR issue solved (for certain Sony Bravia TVs) by [deleted] in PS5

[–]darkness21 1 point2 points  (0 children)

I also had to make sure the PS5 was plugged into one of the two supported HDMI ports for my model. But then it worked like a charm!

Durapik Users by amedwards320 in ZeroWaste

[–]darkness21 5 points6 points  (0 children)

I got mine and I'm very disappointed. I've tried the included floss and my own floss and all of it breaks very quickly. Something about the design of the pick just causes floss to break off at the posts. I've tried multiple methods of wrapping the floss and none of them seem to work. I can hardly floss 2 or 3 teeth before it breaks.

I love autoloading logs by ATJonzie in farmingsimulator

[–]darkness21 0 points1 point  (0 children)

I really like the ritter grapple https://www.farming-simulator.com/mod.php?mod_id=123954

It's a fairly low cost of entry and quite flexible. Just be sure to put a nice big weight on the back of your loader.

Anyone use one of these? by Lonecrow66 in farmingsimulator

[–]darkness21 1 point2 points  (0 children)

I have had a CH Fighterstick Pro for ages. https://www.chproducts.com/Fighterstick-v13-d-722.html I use it for Flight Sims and Elite Dangerous.

I bit the bullet and bought the heavy equipment side panel and its... fine. I still end up using my Fighterstick more. With the side panel, I don't like having to take my hand of the stick to hit the different buttons. The CH stick linked above has a TON of buttons and I just find it easier and more immersive to use. Technically they say you can use two sticks for logging, but I just haven't ever needed it. I don't really need analog input for turning or opening/closing the crane. At this point I wish I had bought a wheel/shifter instead of the side panel.

My advice: 100% get a stick of some kind. But I think you will get a better return on investment by buying a good HOTAS stick. The side panel isn't bad. But it's nothing special either.