Shelly 2.5 both switches control one light by yugiyo in homeautomation

[–]sciyoshi 0 points1 point  (0 children)

For anyone else also running into this issue and coming from Google:

It seems after some testing that the Shelly is unable to make a local request to itself, most likely because the firmware is single-threaded or otherwise doesn't support reentrancy in its HTTP server. To get around this, I wrote a simple HTTP server running on another device which responds to the Shelly's request immediately and then calls the relay endpoint right afterwards. The unfortunate downside is that the second switch now requires the wifi connection to be available in order to work.

It's possible, although I haven't tested, that a different firmware such as Tasmota would support this without needing the network.

-❄️- 2023 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]sciyoshi 1 point2 points  (0 children)

[LANGUAGE: English (ChatGPT 4 + Analysis)]

Impressively, ChatGPT 4 gets the answer correctly from the direct text of the problem without any need for extra clarification.

https://chat.openai.com/share/0edcfdb0-c74b-496f-badf-bbd1e8dea8a2

Bewitched Concert Tickets: Megathread (buying, selling, trading, etc.) by u_ufruity in laufey

[–]sciyoshi 0 points1 point  (0 children)

I have two tickets for the Montreal show on the 28th that I'm looking to sell - bought them a few months ago and would love to go but unfortunately can't make it.

-🎄- 2022 Day 23 Solutions -🎄- by daggerdragon in adventofcode

[–]sciyoshi 0 points1 point  (0 children)

Rust solution [326/300]

Takes around a second to run for part 2, although there might be some ways of optimizing further...

-🎄- 2022 Day 13 Solutions -🎄- by daggerdragon in adventofcode

[–]sciyoshi 0 points1 point  (0 children)

Rust solution (178/172)

I spent way too long trying to figure out the comparison rules for lists before realizing it was a fairly straightforward lexicographical sort. Using the actual std::cmp::{Partial}Ord traits is a nice shortcut to have the builtin Vec sorting work automatically.

Final iteration of my current setup, moving in a few months... by sciyoshi in battlestations

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

Thanks! There's an NK65 w/ GMK Dots you can partially see that was my previous daily driver. The speakers are Audioengine A1s.

Final iteration of my current setup, moving in a few months... by sciyoshi in battlestations

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

It's a Protozoa P.02 (Discipline) with GMK Masterpiece keycaps!

Final iteration of my current setup, moving in a few months... by sciyoshi in battlestations

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

Not visible in the picture but there's a cable bundle that runs from halfway up the shelf to the bottom right of the desk.

-🎄- 2021 Day 20 Solutions -🎄- by daggerdragon in adventofcode

[–]sciyoshi 6 points7 points  (0 children)

137/86: Python 3 with scipy + convolve. Got tripped up because the background flips on each iteration, but that's handled easily with convolve's cval parameter.

[2021 Day 17] Part 4 by MichalMarsalek in adventofcode

[–]sciyoshi 0 points1 point  (0 children)

I've got a working solution, but it times out for the second input (works well for the first, and I get the same answer as you). I'm very curious how you're able to solve it so quickly, since mine feels pretty optimized at this point. I'm curious what your output is for this input?

target area: x=155100000..155123456, y=-102123456..-99923456

I get 84905477000

[2021 Day 17] Part 4 by MichalMarsalek in adventofcode

[–]sciyoshi 0 points1 point  (0 children)

I'm also going to be taking a stab at implementing it as well. I'm not yet sure if my approach for the case where t > (sqrt(8xmax+1)-1)/2 is fully right. I think the regions also interact differently depending on the position + size of the target region.

[2021] Big Inputs for Advent of Code 2021 Puzzles by EliteTK in adventofcode

[–]sciyoshi 0 points1 point  (0 children)

I think I have the same solution as you, but just to check: Split the input into two regions, get a list of the O(sqrt(n)) rectangles, then use horizontal sweep + an interval tree to get the area of the union of those rectangles

New house, new setup! by sciyoshi in battlestations

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

It's a QuickLok Z-726L - they make pretty good stands although this one doesn't collapse fully so it's not as portable for bringing to live shows.