×

WordPress sites getting hacked ‘within seconds’ of TLS certificates being issued by IsDaouda_Games in programming

[–]Surye 12 points13 points  (0 children)

Let's Encrypt does not publish the IPs it comes from by design, so this is not possible unfortunately.

U.S. Senate approves bill that would make Daylight Savings Time permanent in 2023 by greenblue98 in politics

[–]Surye 0 points1 point  (0 children)

Right, but my point is where you can't upgrade, it's already broken weeks out of the year as it is.

U.S. Senate approves bill that would make Daylight Savings Time permanent in 2023 by greenblue98 in politics

[–]Surye 5 points6 points  (0 children)

They change the start and end dates all the time, this is a solved problem.

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

[–]Surye 2 points3 points  (0 children)

Python 3

https://gist.github.com/Surye/2b6ab200e760c73c748b6c87746b653b

I normally would clean this up, but it's 1am, and I have work early. Basically I tried to just implement the logic I'd use on scratch paper to deduce any specific case.

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

[–]Surye 0 points1 point  (0 children)

Python

https://gist.github.com/Surye/bd67064a63fcbe067c4b046c594205a8

First pass was with a fish object that tracked it's own lifecycle. That was fine for part 1, but did not for part two, so I re-thought the approach and decided to just track totals, not individuals, and it all became so much clearer.

Edit: Also, I don't know why I didnt use Counter when I did yesterday, I think because I was thinking the state space was so small (only 9 possible values).

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

[–]Surye 1 point2 points  (0 children)

Python

https://gist.github.com/Surye/55a566bebb7fc3b3481a3a3595218a71

Pretty happy with this implementation. When doing part 1 I knew diagonals would be part 2, so that was an easy addition.

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

[–]Surye 2 points3 points  (0 children)

It's creating a list with 2 entries, 0 and the integer value at the row. Then it's indexing that list with the int cast of a == "forward" (I didnt know it would even implicitly cast like this, I hate it!), so if the command is forward, it'll return 1 and index the second value in the list, and if its a different command it'll return 0 and do nothing.

>>> x = [0, 5]
>>> a = "forward"
>>> x[a == "forward"]
5
>>> x[a == "up"]
0
>>> int(a == "forward")
1
>>> int(a == "up")
0

Keto Copycat Starbucks "Sous Vide" Egg Bites by clampy88 in ketorecipes

[–]Surye 0 points1 point  (0 children)

Can these be saved and easily reheated? I'd love to make a bunch for the week to take to work.

Official r/NFL Week 3 Power Rankings by NFLPowerRankers in nfl

[–]Surye -2 points-1 points  (0 children)

After adjusting Patrick Mahomes' stats, removing outliers to project the future, he heavily regresses to around the level of 2018 Dak.

I'm Joe Abercrombie - Ask Me Anything by Joe_Abercrombie in Fantasy

[–]Surye 2 points3 points  (0 children)

She couldn't carp more if she was a carp!

It’s about that time, isn’t it? by frenziest in cremposting

[–]Surye 1 point2 points  (0 children)

Me too, but my tricks are 1.5x speed (at least), and getting a lot of chores done while listening. One wireless ear bud in, especially with touch to pause. House should be spotless.

Guys… who’s gonna tell him? by JonSnohthathurt in freefolk

[–]Surye 7 points8 points  (0 children)

If you love the style, Joe Abercrombie's The First Law series, lots of really good content, and the second trilogy is ending this week. And I can never leave a thread about fantasy recommendations without mentioning Mistborn, I unequivocally recommend it to everyone without qualifications.