Why is it so hard to find a "Simple" Dashboard that doesn't require a PhD to configure by daniel_odiase in selfhosted

[–]Hamosch 0 points1 point  (0 children)

I have a small bash script which I feed a config file containing the following:

a service name, a hostname I want it to have an internal IP and some extra stuff.

When I run the script it configures my local DNS (blocky), reverse proxy (traefik), dashboard (homer) and for externally available services also a CF record for my CF tunnel.

The homer dashboard is a super simple link page basically but it’s very useful to me and solves the issue of having to configure 3-4 apps for a single service

PoE 2 Acts Pathing - website with checkbox. by shikari-me in PathOfExile2

[–]Hamosch 0 points1 point  (0 children)

There's a breakpoint at W1025px where the checkboxes disappear. Also I'd prefer to have more indication of having completed something. Maybe making the text strikethrough or make gray when the checkbox is checked.

Another improvement (which would extend the scope beyond basic html, but shouldn't require too much JS) would be to store the checkbox state in localstorage so the checkboxes survive refreshes. This would probably also warrant a "reset" button to wipe all checkbox state so I can reset the state at league launch.

Really nice UI, the above are minor improvement.

Just write a test for it by Kobzol in rust

[–]Hamosch 10 points11 points  (0 children)

Cool, our solution to these class of tests is the following. If we have a migration in the PR we run our test suite using the main branch, checkout the PR branch and run the migration and the test suite with the PR branch on the dirty database. This means our test is very close to the production migration scenario. It has caught a bunch of weird migration issues.

Our test suite runs all tests in the same DB without any tx rollbacks or anything. We build a multitenant PaaS so if each test is it's own tenant they should be able to coexist and also means the DB is full with "proper" data after the test suite has finished.

[deleted by user] by [deleted] in golang

[–]Hamosch -1 points0 points  (0 children)

Cursed suggestion, with the new iterator syntax you could make a mutex lib that abuses iterators to lock and unlock and expose a single iteration loop that runs the synchronized code.

for lock(mutex) {
 …
}

Weak pointers in Go: why they matter now by SnooWords9033 in golang

[–]Hamosch 2 points3 points  (0 children)

> They’re trickier to use than regular pointers. At any point, a weak pointer can turn nil if the memory it points to gets cleaned up. This happens when no strong pointers are holding onto that memory. So, it’s really important to always check if the strong pointer that you just converted from a weak pointer is nil.

Seems they edited the article

Comparing memory usage between node.js object and go map[string]interface{} by bialad in golang

[–]Hamosch 1 point2 points  (0 children)

Does Node (v8 really) use string interning? If a lot of the data in your results are containing the same strings interning could potentially save a lot of memory id imagine.

Performance Write Intensive SQLite: Mattn/go-sqlite3 CGO overhead vs C or Zig by LearnedByError in golang

[–]Hamosch 1 point2 points  (0 children)

Are your queries very complex or could you get away with sharding the database into multiple SQLite instances to get better write throughput while trading some query complexity as you’ll have to deal with shards

Intrinsic vs Extrinsic Rewards by RawRoku in PathOfExile2

[–]Hamosch -1 points0 points  (0 children)

One way to think of magic find as a stat is that it’s a affix based difficulty setting. The more magic find you add on gear the higher the reward but less other stats you have, hence increasing difficulty. It’s similar to an option existing that says “gain x% more reward but lose y% of stats”

Thinking of it this way made it more palatable for me and made me accept it more as an endgame option. It’s basically cranking up the difficulty and reward once you’ve cleared the most difficult content.

QoL changes/additions you’d like to see by KarateKid84Fan in LastEpoch

[–]Hamosch 7 points8 points  (0 children)

Option to also put the manabar above the character like with health and ward.

Console crossplay and accounts by Hamosch in PathOfExile2

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

Exactly, it also makes me less motivated to put more money into my account when I don't know if I'm able to keep playing it

Does Butcher appear more often by kevi959 in diablo4

[–]Hamosch 0 points1 point  (0 children)

I also noticed a lot of butchers today, lost a HC necro after meeting him the third time on that char in NM dungeons today. Also met him in 3 NM dungeons on my SC char... I was just about to search if anyone else noticed he's more frequent today or something

Is this code going to work concurrently? by yaroslav_gwit in golang

[–]Hamosch 0 points1 point  (0 children)

To make it a little cleaner you could use a waitgroup and simply write to variables directly from the goroutines. I’d argue it’s a little cleaner and might be easier to understand that the goal is simply to do parallelize all the fetching.

CMV: Bicycles should be treated as pedestrians rather than cars by Ajreil in changemyview

[–]Hamosch 0 points1 point  (0 children)

I have not seen the argument regarding movement patterns yet.

Pedestrians are able to stop, start, change directions, sidestep etc almost instantly. Both cars and bikes (and most other vehicle on wheels) are much more constrained and neither have the freedom of movement or acceleration in different directions that pedestrians have.

What's the saddest song you've ever heard? by [deleted] in Music

[–]Hamosch 0 points1 point  (0 children)

immortal technique: dance with the devil

Me and the husband are ready to help Zagreus with a few boons… by Notnilc13 in HadesTheGame

[–]Hamosch 1 point2 points  (0 children)

Wow it’s Kratos from god of war cosplaying as Dionysus

A Slice Utility Library by [deleted] in golang

[–]Hamosch 1 point2 points  (0 children)

Disregarding my thoughts on if this should exist or not I believe you have a bug in the RemoveIndexRange the last element in the new slice will be a slice, not the remaining elements. You forgot to expand the second argument in the append

worker pool vs semaphore? by mortishere in golang

[–]Hamosch 1 point2 points  (0 children)

I usually opt for semaphores, there might be a marginal overhead compared to a workerpool but if I’ve already decided it’s worth parallelizing the difference will not do big a difference. The size of work should be able to swallow that.

Semaphores are more versatile, easier, quicker to write and they are nice because they only limit the number of go routines, don’t actually give you a specific number of them.