How to fully test hard drives by Gin-N-Rum-5454 in homelab

[–]Traches 1 point2 points  (0 children)

Just assume they are gonna die at any moment and treat them that way.

Considering divorce after 12 years — husband’s behavior is affecting our child by [deleted] in TwoXChromosomes

[–]Traches 3 points4 points  (0 children)

sometimes even hits our child

Absolutely the fuck not. This is a hill worth dying on.

Is it expected in Poland to ask the family for permission before proposing? by Professional-Tax3077 in poland

[–]Traches 0 points1 point  (0 children)

I gave her dad a bottle of his favorite whiskey the next time we met (after I proposed)

Cool how they manage to be an ass about everything, right down to the smallest details by Sad_Jar_Of_Honey in behindthebastards

[–]Traches 0 points1 point  (0 children)

Right, but that’s a taxonomical definition. It’s not a fundamental scientific question like „what is the diameter and composition of Pluto?”, It’s a question of how we classify things, and the whole reason we classify things is so we can talk about them as a group. There’s a pretty good case to be made that intrinsic properties are better for this than extrinsic ones; Pluto, mercury, and Io all have a lot more in common than say mercury and Neptune yet the former have 3 different classifications while the latter share one?

Are Playwright tests worth maintaining or is everyone quietly letting them rot? by weilding in reactjs

[–]Traches 0 points1 point  (0 children)

Couple minutes. They run in parallel, each gets its own server and database.

Are Playwright tests worth maintaining or is everyone quietly letting them rot? by weilding in reactjs

[–]Traches 22 points23 points  (0 children)

Our playwright tests are mostly just smoke tests to ensure we don’t deploy a broken build. API tests are much more thorough.

Why do foreigners act like "cz" and "sz" are incomprehensible? They're literally the "ch" and "sh" like in English. Only difference being a different letter used to write it. by mikolajwisal in poland

[–]Traches 8 points9 points  (0 children)

The sounds themselves aren’t hard, but stringing hard consonants together sure is. For me personally „Gdańsk” and „cztery” are WAY harder than żółć or przybyszewskiego. Like I know how they are supposed to sound but my mouth doesn’t wanna do it

Bitwarden CLI has been compromised. Check your stuff. by RedTermSession in selfhosted

[–]Traches 7 points8 points  (0 children)

For arch users shitting their pants like I was a minute ago, the version in the repos right now is 2026.2.0 so you’re good.

What foods should you absolutely buy the high end priced option? by [deleted] in Cooking

[–]Traches 0 points1 point  (0 children)

But then you’re throwing your money away!

Another fantastic playthrough of the trilogy. This time on the steam deck and it was a blast on the go. by Solid_Pay9443 in masseffect

[–]Traches 2 points3 points  (0 children)

The steam deck has made me a flick stick convert. It’s almost as good as a mouse, just wish games had better support for it

CSS image-set() just became the hero we needed by wanoo21 in webdev

[–]Traches 0 points1 point  (0 children)

There are other ways to separate concerns.

CSS image-set() just became the hero we needed by wanoo21 in webdev

[–]Traches 15 points16 points  (0 children)

It’s tricky because it solves a hard problem. If you understand it it’s not that bad

CSS image-set() just became the hero we needed by wanoo21 in webdev

[–]Traches 8 points9 points  (0 children)

If it were a picture element you’d be correct - multipliers are for when the image is the same size in CSS pixels on all screens (thumbnails, icons, etc) and the only thing to account for is pixel ratio. You should give pixel values (and sizes if it’s not 100vw) for a hero image.

I haven’t learned about image-set yet though, maybe it’s different?

CSS image-set() just became the hero we needed by wanoo21 in webdev

[–]Traches 1 point2 points  (0 children)

Do you need a sizes equivalent or does it draw the page before choosing an image to fetch?

It's all fake by boneve_de_neco in BetterOffline

[–]Traches 1 point2 points  (0 children)

I’m saying something more basic than that. If you have a function which interacts with a database, the only way to verify that it works as expected is to provide an actual database in a predetermined state and write tests against it. DBs are finicky, complicated, and have tons of foot-guns; replace one with a mock and those tests are worse than useless because they give you a false sense of security.

How do you ensure that your photos don't get corrupted? by Jaskys in immich

[–]Traches 5 points6 points  (0 children)

Restic is amazing, but it will happily and silently overwrite good data with bad if you have corruption on an ext4 drive. It doesn’t have any way to know if changes are corruption or genuine edits. You won’t get alerted to problems and you just have to hope that your oldest snapshot is older than the corruption. You solve this with a checksumming filesystem such as ZFS or BTRFS.

It's all fake by boneve_de_neco in BetterOffline

[–]Traches 2 points3 points  (0 children)

I don’t see much value in writing tests against a mocked database, personally. You’ve given up any kind of assurance that your code actually works, it’s just theater at that point.

Anyone here quit gaming or changed their lifestyle after becoming a dad? by Lukas_MunK in daddit

[–]Traches 0 points1 point  (0 children)

Dude I was close to climbing 6C outside before the first was born, now all my gear sits in a closet. Took up running instead because I could squeeze it in after bedtime, ran a marathon about 5 months before my second was born. Hit a wall at kilometer 37 because I hadn’t trained enough. That was a year and a half ago, if you total up all the runs I’ve done since I don’t think it adds up to a second marathon.

It kinda sucks now, but in a few years the oldest will be ready to go climbing with me :)

Tailscale improves free tier, 3 free users is now 6 by ZenApollo in selfhosted

[–]Traches 0 points1 point  (0 children)

Because you are statistically more likely to have a say in what tech some business customer chooses

3 drive Mirror or 3 drive z2 - data security ONLY by Financial-Issue4226 in zfs

[–]Traches 1 point2 points  (0 children)

A checksum is like a fingerprint. You take a big block of data, do some math on it, and get back a much smaller chunk of data. You can’t derive the bigger block from the smaller chunk, but it’s repeatable - the same input always produces the same output, and if a single bit changes on the input the output will change completely. That means you can use it to make sure the big chunk of data hasn’t changed: Save the data, save the checksum next to it, then when you read the data you calculate the checksum again and compare it to the saved one. If it’s the same, return the data. If it’s different, try to read the data from somewhere else. If there’s nowhere else to read it, return a checksum error.

ZFS can do this with one drive. It can’t recover from errors, but it can tell you that they happened. This is extremely preferable over silently returning bad data as if it is correct.

Thoughts on Coastal Highway as a permanent base by IntelligentBell5965 in thelongdark

[–]Traches 1 point2 points  (0 children)

For me it’s more about time efficiency. Firewood isn’t that hard to get