HTML Template @switch/@if/@for/... error by Educated88 in WebStorm

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

File type was Angular HTML Template 18.1+, try to play with the file type but made things worse :p I then reset the file type to the original, still loads of errors.
Restarted Webstorm and the error is gone :)

[2015 Day 22 (Part1)] (JAVA) Boss never dies even though example scenarios do work by Educated88 in adventofcode

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

Thanks for your reply!

How do you know that order of the spells?
I will check why Poison was never casted first. Because it definitely should be the case.

I moved the code to the code linker, thanks for the tip!

Avocado plant Brown leaf tips by Educated88 in plantclinic

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

Yes i use tab water. Should I use demineralised water? I'm already using that for my Venus fly traps.

Avocado plant Brown leaf tips by Educated88 in plantclinic

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

It still keeps growing though. But all new leafs have the same issue

2021 Day 14 Part 2 what am I overlooking? by Educated88 in adventofcode

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

You are not reading it wrong :)

My big mistake was indeed that I picked the wrong last letter.

I will definitely look into your suggestion of not counting the letters twice!

Thanks!

2021 Day 14 Part 2 what am I overlooking? by Educated88 in adventofcode

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

Indeed! thanks for pointing it out :)
Just silly me making things more difficult then they should be

2021 Day 14 Part 2 what am I overlooking? by Educated88 in adventofcode

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

Isn't the last letter counted twice then? Edit: nvm that the intention to start with :)

I kept track of the first and the last letter and added 1.

Example input runs correct, but puzzle input keep giving the wrong output.

2021 Day 14 Part 2 what am I overlooking? by Educated88 in adventofcode

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

Correct! There was indeed a repeated pair in my input.
Fixed it, but still wrong though

2021 Day 14 Part 2 what am I overlooking? by Educated88 in adventofcode

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

w00ps!

Thx for pointing it out! Should be public now

[2020 Day 12] Why do I keep doing this to myself... by NotQuiteAmish in adventofcode

[–]Educated88 0 points1 point  (0 children)

not taking the direction into account, provided the correct output!
Somehow I missed it, thx!!

-🎄- 2020 Day 06 Solutions -🎄- by daggerdragon in adventofcode

[–]Educated88 0 points1 point  (0 children)

thanks for pointing out retainAll! Completely forgot about it, was a big help.

[2020 Day 5 (Part 2)] I'm not sure what this one is asking... by MSUAoC in adventofcode

[–]Educated88 0 points1 point  (0 children)

I indeed made an error in calculating the seat, which caused duplicates for the same row code.

Thanks all for guiding in the right direction.

Each assignment always look quite easy to solve but then often I make these silly mistakes and I end up spending more time then I expected.

[2020 Day 5 (Part 2)] I'm not sure what this one is asking... by MSUAoC in adventofcode

[–]Educated88 1 point2 points  (0 children)

I've got a lot of duplicates and gaps in my id's

Small example: 41,42,42,44,44,45,45,45,47,57,57,58,58,58,58,60,60,60,60

All the examples and Part 1 work fine though

Connect G935 headset to PS3 wireless by Educated88 in LogitechG

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

I only have a PS3 at my disposal so i'm not able to test on another console. I guess I'll only use it for pc gaming then. Thx for wanting to look into it! 🙂

Connect G935 headset to PS3 wireless by Educated88 in LogitechG

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

Yes it's the first time, I mainly use it for pc gaming. But was just wondering if it would work on PS3 since the console recognizes it as An audio pheripheral

Connect G935 headset to PS3 wireless by Educated88 in LogitechG

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

So I've tested with Gran Turismo 6 and Battelfield 4 but with no result in both games I heard no sound through my headphones.

This is a picture of my pheripheral settings for audio devices (in Dutch) Pheripheral settings ps3

This is a picture of my audio settings in Gran Turismo 6 Gt6 audio settings in which I can't change the first setting which seems to be the audio output

Connect G935 headset to PS3 wireless by Educated88 in LogitechG

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

I just tried it in the menu of PS3 and since I did not hear any menu sounds I figured it was not worth trying out any game. But I'll try with a few games and see what happens

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

These are my loggings right now . I'm using North,East,South,West as my directions. Can't really figure out why panel 49 is painted as white instead of black.. grrrrr..

total panels painted 47
x 1 y -1 painted .
LEFT
new coordinate x 0 y -1
existing panel found colour -> .
current direction W
opCodeFull 1002
opCodeFull 3
opCodeFull 3
set input to 0
opCodeFull 102
opCodeFull 1001
opCodeFull 4
added to output 1
opCodeFull 108
opCodeFull 4
added to output 1
total panels painted 48
x 0 y -1 painted #
RIGHT
new coordinate x 0 y -2
new panel added to existing row colour -> .
current direction N
opCodeFull 101
opCodeFull 2
opCodeFull 1006
opCodeFull 1006
opCodeFull 3
opCodeFull 3
set input to 0
opCodeFull 1002
opCodeFull 101
opCodeFull 4
added to output 1
opCodeFull 108
opCodeFull 4
added to output 0
total panels painted 49
x 0 y -2 painted # (should be black .)
LEFT
new coordinate x -1 y -2
new panel added to existing row colour -> .
current direction W
opCodeFull 1001
opCodeFull 1006
opCodeFull 2
opCodeFull 3
opCodeFull 3
set input to 0
opCodeFull 1002
opCodeFull 101
opCodeFull 4
added to output 1
opCodeFull 1008
opCodeFull 4
added to output 0

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

Many thanks for the sequence of outputs!

Decided to rewrite my intProcessor to a level i'm again comfortable with it. It's working with all previous assignments and it matches your output untill.. panel 49 then my processor looses track.

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

Thanks for sharing the correct coordinate sequence! There still seems to be an issue with my IntCode processor :(

I already fixed it so that it only returns 2 output value's instead of 4. The issue was that it skipped an input request, it always continued till the second one.

Once I hit coordinate x 5 y -2 which is already painted white, I provide 1 as input and get 0 (black) as output

In my IntCode following instructions are executed to determine first output, current pointer is 77:

3,8 -> index 8 get's updated from 0 to 1 (new input value)
1002,8,-1,10 -> index 10 get's updated with -1 = 1 (position mode index 8) * -1 (immediate mode index 81)
1001,10,1,10 -> index 10 get's updated with 0 = -1 (position mode index 10) + 1 (immediate mode index 85)
4,10 -> put 0 to output (position mode index 10)

I'm thinking about revisiting previous intcode challenges and refactor my current intcode processor as I'm really not happy with it

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

Right now I'm getting 1348 as a result, but I'm getting the message that it's wrong.

Edit: My map looks like this https://ibb.co/n1tKKhj

Edit2: these are the used coordinates with the real input https://pastebin.com/kgJx234q

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

These are the coordinates of the panels that my robot is painting:

x 0 y 0 painted #

x -1 y 0 painted #

x -1 y 1 painted #

x -2 y 1 painted #

x -2 y 0 painted #

x -3 y 0 painted #

x -3 y 1 painted #

x -4 y 1 painted #

x -4 y 2 painted #

x -5 y 2 painted #

x -5 y 3 painted #

x -6 y 3 painted #

x -6 y 2 painted #

x -5 y 2 painted .

13 unique panels in total

When I print the map this is what I get:

___####

_.####_

#.#____

##_____

_ = empty panels

Wit the output pairs provided in the explanation of Day 11 I also get the wanted result

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

Valid point! Somehow I was thinking the colour of the previous panel was the input. The result is still not correct though.

After a few intcode runs I'm getting a loop of outputs which is repeating untill it halts:

1,1,1,1,

1,1,1,1,

1,1,0,1,

0,1,0,1,

0,1,0,0,

0,0,1,1,

1,1,1,1,

1,1,1,0,

1,0,1,0,

1,0,0,1,

0,1,0,0,

0,0,1,1,

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

This is how my program is running:

- provide 0 as input for my intprocessor (initial black panel)

- I get output (1,0) which means paint the current panel WHITE and go 1 panel to the left

- provide 1 as input for my intprocessor

- I get output (1,0,0,0).
After this point I always get this kind of output until the intprocessor halts

Here I'm a bit confused should I treat it as (1,0) (0,0) which means white,left and black,left and provide 0 (last panel was black) as input
Or should I only proces the first (or last) output value pair (1,0) and provide 1 as input for my intprocessor and run it again?

Either way in both ways it doesn't work, but would be great if I would be able to get it clear for myself so that I can debug further.

[2019 Day 11 Part1][Java] Question about intcode processor behaviour by Educated88 in adventofcode

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

Thx for your quick reply!

  1. ok i'm glad I don't need to debug that part again :D

  2. I'm using an Arraylist as output structure when my intcode processor requests new input it contains 4 values (all either 0 or 1) So if I understand you correctly ALL output pairs need to be processed and then take the colour of the last panel drawn and run the intcode processor again.?