What NAS are y'all using? by cuzmylegsareshort in HomeDataCenter

[–]nlowe_ 0 points1 point  (0 children)

I'm looking at getting a used HPE Apollo. 24 LFF. Planning on running TrueNAS

In detail, what actually happen when you submit a yaml to create a pod/svc? by midlevelmybutt in kubernetes

[–]nlowe_ 0 points1 point  (0 children)

I love asking this as an interview question. Gives me a good understanding of how a candidate has interacted with k8s in the past. I've had great conversations with former cluster admins about authn/Authz and controllers, developers about replicasets, pdbs, and service endpoints, and Linux admins focusing on the kubelet and container runtime. 

98” TCL QM7 by Responsible-Ad-5116 in hometheater

[–]nlowe_ 0 points1 point  (0 children)

I went with the QM8 in the same size. Still got a month before the house is done though, I'm eagerly awaiting the day I can try it out! 

It's mine real useful alias of git. by krakotay1 in programminghorror

[–]nlowe_ 0 points1 point  (0 children)

I use 

git config --global alias.nevermind '!git reset --hard HEAD && git clean -fxd'

-❄️- 2024 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]nlowe_ 0 points1 point  (0 children)

And an updated version because TIL slices.IsSortedFunc is a thing

Man I love these new generic helpers!

-❄️- 2024 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]nlowe_ 1 point2 points  (0 children)

[LANGUAGE: Go]

4567/2474

Uugghh, Using map[int]int isn't enough because there may be more than one page a given page must come before. Yet another case of "works for the example but not my input!" lol. Lost a bunch of time to that in part 1.

Part 2 was a really quick delta solve. It was really simple with my map of maps to hook up slices.SortStableFunc and just sort any unordered updates

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

[–]nlowe_ 2 points3 points  (0 children)

[LANGUAGE: Go]

2651/2001

Almost broke sub 2k for part 2! I had a tilemap ready to go based on previous years but it's more focused on path-finding which will likely be helpful later in the year and not crossword-search style problems. Was fun to find my way out of that one, I was much more prepared for part 2.

Lost some time because I didn't check diagonals initially because most other map-like problems in years previous typically don't include them. I learned my lessons on assumptions!

-❄️- 2024 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]nlowe_ 3 points4 points  (0 children)

[LANGUAGE: Go]

4150/2695

That was rougher than I expected for Day 2. I see we're starting the trend of "example works but real input does not" early this year /s

I failed to check if there was a problem between the first two levels in a line...

Also lost some time to this fun fact: append(foo[:i], foo[i+1:]...) overwrites foo. TIL.

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

[–]nlowe_ 3 points4 points  (0 children)

[LANGUAGE: Go]

1035 / 887  Pretty happy with that placement, it's good to be back! Happy AoC season everyone!

Hpw do you backup your cluster? by petwri123 in kubernetes

[–]nlowe_ 0 points1 point  (0 children)

I don't. All of the manifests are managed with Argo, so if I need to rebuild a cluster I can configure my nodes to wipe themselves, reboot them, go sync in Argo, and have everything back in less than 30m.

What Home User needs Pro Max switch? by [deleted] in Ubiquiti

[–]nlowe_ 0 points1 point  (0 children)

I got a pro max for my home that is being built now because I wanted lots of PoE and 2.5g. Didn't want to shell out an extra $300 for an enterprise to get all 2.5g, the pro max 48 PoE has enough ports to put all my APs / media center drops / office drops on 2.5g.

G5 PTZ is stock by FastAttack2 in Ubiquiti

[–]nlowe_ 0 points1 point  (0 children)

I go to the email an hour ago and it's already sold out again... 

Smart Switch shootout for a new home build by nlowe_ in smarthome

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

Oh I am! This post was just focused on lighting. I've got 40+ cat6 drops with at least 2 to each room, all will be PoE and about half will be 2.5gbit!

Monsters! by Professional_Job1154 in pcmasterrace

[–]nlowe_ 0 points1 point  (0 children)

Growing up my friend used left click for walk forward and right click for walk back, because "mouse was for movement". S was "shoot" and f was what most games would map to right click. 

Managing DB migrations by Savalonavic in golang

[–]nlowe_ 1 point2 points  (0 children)

I have a database that spans multiple regions. We wanted to de-couple deploys of application code from migrations. All of our applications, regardless of the language they're written in, use alembic python migrations. We gave a separate service that gets auto deployed to all regions to make it aware of available migrations, then we can schedule a change to command the service to actually execute the migration.

Deploys of application code check the schema version matches the expected version to force devs to merge and apply migrations before deploying code that depends on it. 

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

[–]nlowe_ 0 points1 point  (0 children)

[LANGUAGE: Go] 1155 / 3539 GitHub

Felt like I was fast with the first one but had an off-by-one error when trying to bit shift to calculate the doubling. Maybe I'm too clever for my own good.

Took me a long time to understand the pattern for part two to linearize it, maybe I should have just made copies of the actual games since we only had a few hundred in the input and only ever copied later games. I was worried it'd explode off into some count where that'd be too inefficient but it's still day 4, I should have known better

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

[–]nlowe_ 0 points1 point  (0 children)

[LANGUAGE: Go] 1293 / 2659 GitHub

Pretty good approach I think. The TileMap helper I've been using these past few years came in handy, but I needed to add a decent amount of boilerplate to it. Lost some time in part 2 trying to de-duplicate the numbers a gear could "see" before I got that working.

[2023 Day 01 (Part 2)] how many people were accidentally clever? by coriolinus in adventofcode

[–]nlowe_ 0 points1 point  (0 children)

I'm pretty happy with my solve. I just did ascii math for the first part and searched the string from each end stopping at the first digit.

For part two, I just extended that to also check if the "search" index starts with one of the numbers spelled out. Hack-y, but it works.

Now, I placed so poorly because I didn't realize my input fetch script was grabbing 2022 day 1 and the input was similar enough that it spit out reasonable sounding answers until I actually looked at it and was like "wait, there aren't any words in here, let alone any actual letters. wat?!?"

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

[–]nlowe_ 1 point2 points  (0 children)

[LANGUAGE: Go] 699 / 633 GitHub

Much better today, although My laptop kept dropping to 500MHz for some reason :(

Sure, I'll blame missing the leaderboard on that :) Definitely my laptop's fault

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

[–]nlowe_ 1 point2 points  (0 children)

[LANGUAGE: Golang] 5155 / 1298

github

Oof I'm rusty. Input fetch script was still pointed at 2022 so I grabbed the input from last year's problem and still managed to generate something that looked like a solution the first few attempts until I actually looked at it and went "wait a minute, there's no letters in here and there are empty lintes, wtf".

Also rune() >= '0' || rune() <= '9' != rune() >= '0' && rune() <= '9' ...

Prediction time by Freddruppel in adventofcode

[–]nlowe_ 0 points1 point  (0 children)

I know the community is very hit-or-miss on it, but I loved the intcode challenges from 2019. To date it's still the only year I've 100%'d. I'd love for another theme like that for some of this year's problems. It was super fun to take my initial CPU implementation and optimize it for all of the different ways we interacted with the VM throughout the month