SteveDinn

joined 2 years ago
[–] [email protected] 1 points 2 years ago

Bookstack is what I self host, but this is the best pure markdown editor I've found: https://markdownlivepreview.com/

[–] [email protected] 5 points 2 years ago (1 children)
[–] [email protected] 1 points 2 years ago (2 children)

Oh, I fully blame HP for this, but I am also just asking the question. Now that you mentioned colouring pages, I remember that I used a printer pretty heavily while my kids were home during quarantine.

For the odd time I have to print something, it's more worth my while to just go to Staples or whatever and get it printed for me there.

The only other thing I cam remember printing in the near term has been amazon return labels.

[–] [email protected] 5 points 2 years ago

Exactly. I have a stainless French press as well. I've broken two glass ones. Not only is there broken glass to clean up, there's also no coffee...

[–] [email protected] 1 points 2 years ago

I just use Navidrome's web client. It does everything I need. DSub on Android.

[–] [email protected] 1 points 2 years ago

I am using a normal desktop case with an external usb-c 8-bay JBOD drive enclosure from Mediasonic. I'm using mdadm to combine the drives with RAID-6. I know I'm not getting the performance that I could with native SATA, but it can still saturate my 1Gbps network, so it's good enough for serving video, audio, and some other web-based apps.

[–] [email protected] 8 points 2 years ago* (last edited 2 years ago)

Goddamn it. I came here to say this. Take my upvote.

I got a lunch and a soda, and I'm not leaving until I see that sailboat.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

C#

Breadth-first search, then take the max of the values of searches starting from all the edge tiles.
https://code.dinn.ca/stevedinn/AdventOfCode/src/branch/main/2023/day16/Program.cs

[–] [email protected] 2 points 2 years ago

C#

Obviously, you can't calculate 1 billion iterations, so the states must repeat after a while. My solution got to 154 different states and then started looping from state 92 to state 154 (63 steps). From there we can find the index in the state cache that the final state would be, and calculate the supported load from that.

https://code.dinn.ca/stevedinn/AdventOfCode/src/branch/main/2023/day14/Program.cs

[–] [email protected] 4 points 2 years ago (1 children)

Me too. I ran all the samples, and I was still banging my head. I can usually see the mistake if it's an off-by-one error in a calculation, but this was a mistake in reading the problem description, so I couldn't see it at first.

[–] [email protected] 13 points 2 years ago* (last edited 2 years ago) (3 children)

Man this one frustrated me because of a subtle difference in the wording of part 1 vs part 2. I had the correct logic from the start, but with an off-by-one error because of my interpretation of the wording. Part 1 says, "any rows or columns that contain no galaxies should all actually be twice as big" while part 2 says, "each empty column should be replaced with 1000000 empty columns".

I added 1 column/row in part 1, and 1_000_000 in part 2. But if you're replacing an empty column with 1_000_000, you're actually adding 999_999 columns. It took me a good hour to discover where that off-by-one error was coming from.

view more: ‹ prev next ›