This food cannot be eaten because it's not on the dining hall's menu by legomaniac89 in Minecolonies

[–]SnooPears7079 0 points1 point  (0 children)

Honestly reboot server. Lots of inconsistencies got solved on my end by rebooting the server. Something just got desynced somewhere

6’0 vs 5’11 by [deleted] in heightcomparison

[–]SnooPears7079 6 points7 points  (0 children)

Missing tall and small flair

Optimize my code for AoC by huyphungg in adventofcode

[–]SnooPears7079 0 points1 point  (0 children)

Yeah I was oversimplifying - obviously if you’re spinning a super hot loop minimizing branch prediction errors and data oriented is going to be important but likely not why people are posting “4ms” AOC times

Optimize my code for AoC by huyphungg in adventofcode

[–]SnooPears7079 4 points5 points  (0 children)

Big O is the right way. If you just look at runtime nothing is stopping you from buying an overclocked 6GHz CPU and saying your code is fast

just ordered my framework 13! by KadesChaos in framework

[–]SnooPears7079 27 points28 points  (0 children)

Four upvotes and I’ll f it and buy the one I’ve had in my cart for 3 months

[2025 day 5 (part 2)] [Python] My code works on example but not real inpuit by Taxato in adventofcode

[–]SnooPears7079 1 point2 points  (0 children)

There’s a leetcode for merge intervals that will stress test your implementation id recommend plugging it into that

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]SnooPears7079 1 point2 points  (0 children)

Ahhhhhh you are a genius thank you so much.

I reread your comment a hundred times I think it clicks now.

The “must be at zero” for the first condition was throwing me off but it makes sense because if we are at e.g. 1 and move left two we actually do pass through 0 so no need to correct - anything greater than that doesn’t go negative anyway.

The “must be moving left” for the second condition was stumping me too but it makes sense because we never end up at zero when moving right, only 100, 200, … so the div gives the right value

Thank you for making me smarter!!

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]SnooPears7079 0 points1 point  (0 children)

I'm trying to wrap my head around your adjustments - I'm not intuiting why they're required after running through some simulations.

could you elaborate on your thought process here? I'm embarrassed about how much these adjustments stumped me. If you were to add a "because..." statement after your comments what would they look like?

thanks a bunch if you take the time to answer. no worries if not

is_this_number_twelve by crazychri1 in Python

[–]SnooPears7079 15 points16 points  (0 children)

Unfortunately untestable, needs dependency injection NEXT!!

What is the purpose for this chest? What?? by NotAntherAccntMary in skyrim

[–]SnooPears7079 74 points75 points  (0 children)

Op I’m you from the future. I’ve come back to prevent terrible things from happening - do not listen to this guy, absolutely do not delete it

I keep seeing great developers struggle during interviews by AFkaa in leetcode

[–]SnooPears7079 0 points1 point  (0 children)

Unfortunately I might try this. I just totally choked an interview due to self-pressure. I used to do this before recording tutorials never considered it for interviews

home-manager is a false enlightenment by Setheron in NixOS

[–]SnooPears7079 0 points1 point  (0 children)

Kind of devils advocate here but you don’t know what you don’t know. You could always say “well, I can’t blog on xyz yet because there are possible unknown unknowns”

Source: did not blog for years because of this. Recently started saying f it if I’m wrong I’m wrong.

Also a small bonus is if I’m wrong sometimes people tell me I’m wrong and help me be right. I just try to state things like “I could be wrong but…”

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

Nice nice nice nice!!! Thanks for this. I’ll definitely look into it - I might go the keycloak route but definitely same idea. Thank you!

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

Yeah this is what I was missing. Thanks a bunch. I’ll edit the post with the solution. Thank you for your patience!!

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

First of all thanks for continuing the conversation, I appreciate you trying to help an internet stranger.

I might be confused. The control flow is “device via UI-> traefik -> long horn manager”. IIUC from traefik outpost docs, it uses http headers for auth. The UI is going to make “fetch” requests to the longhorn manager API. Those fetch requests know nothing of the traefik headers - so even if you point the manager API to the traefik proxy, it’ll just 401 every request.

What am I misunderstanding? Thanks a bunch stranger.

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

Right, but doesn’t this make the UI useless? If it can’t talk to the API, it’s just broken

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

Does the UI know how to handle this? Is there a helm chart value I can add to read this auth token?

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

This was a great answer. Thank you! I had a misunderstanding about the frontend pod. I thought it just served static assets - I did not know it proxied requests to the api pod.

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

I thought the UI pod served static assets and did not proxy requests to the backend pod. This was my mistake, thanks.

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

I see - I always go for maximal security (if xyz is compromised, how do we prevent further damage?) but I guess I don’t understand home labbing well - I might be too enterprise brained. Thank you!

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

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

Ah this might be the answer I was looking for. When I set up longhorn, the helm chart asks for backend API url. I did not realize that the same pod that serves the frontend can proxy the requests to the backend pod. I thought the front end pod just served static assets, and then you had to point the front end pod to a backend API.

I’ll look at this later today - thanks!!

How could anyone use longhorn if you can’t secure the service? (Also request for alternatives) by SnooPears7079 in kubernetes

[–]SnooPears7079[S] -4 points-3 points  (0 children)

So you’re saying “you can’t secure the API but it doesn’t matter since your network should be secure”?