Skip Navigation
Avoiding tunnel vision when debugging
  • Tests.
    Target the "business logic".
    You can structure your code to facilitate unit or integration testing.
    Setup tests for the key functionality. Whenever a bug gets reported, create a test or test case to address that bug, fix the bug, and ensure the test now passes.

    Have a staging environment, so the site can be interacted with and tested without touching anything in production.
    You can push to this often, and request some help with QA to ensure nothing is broken.

    Have a testing environment. Again, a complete duplication of the infrastructure.
    Set up end-to-end tests. These automate interactions with the entire application.
    Have tests that run against key features. "Setup appropriate state, load form page, fill in form, click button, check that database entries are correct"... "setup appropriate state, check that submission summary shows correct data".
    These are quite handy, but a lot slower and fragile than unit and integration tests.

    There are automated testing platforms that can capture a "good" state of a website, then use image matching to ensure further runs visually match what it should look like.
    These are normally expensive and finiky.

    Hopefully you will get to a stage with your testing that your unit and integration tests catch 90% of your potential bugs, and e2e tests will ensure the core functionality is working correctly.
    Then, as you do a bunch of work, you can run your tests, see they all pass, and be confident.

    Finally, I will say that tooling like frameworks and typescript can catch a lot of these errors quite quickly.
    However, these won't catch logic bugs - which is what tests are for.

  • Beehaw on Lemmy: The long-term conundrum of staying here
  • The 2nd quote does.
    They are investigating, and don't want to list anything because it's all up in the air.
    If they listed alternatives, the discussion would be based about them, the pros/cons etc. They also explicitly state they don't want suggestions.
    This seems like a formalised information post about previous discussions, rather than anything concrete.

    Whatever backend/service they use will also dictate the app used to access it.
    For example, if it's a forum based software then jerboa isn't going to be able to interact with it at all (as jerboa is specifically for lemmy).

  • DisplayPort: A Better Video Interface
  • DVI and HDMI are actually the same video signal. Which is why adapters are so cheap.
    DP can carry an HDMI encoded signal (and thus a DVI signal), which is why DP->HDMI and DP->DVI adapters are so cheap. It's called DP Dual Mode or Multi Mode or something like that.
    I haven't encountered a device that outputs DisplayPort that cannot output the Dual Mode HDMI encoded signal as well.

    HDMI/DVI->DP is an active conversion - ie it is re-encoding it. Which is why the converters are significantly more expensive.

    However, it's all digital. If the signal quality degrades, it will be very obvious because it stops working (sparkles on a black screen, lines, flashes, all sorts).

  • Utah Makes Welfare So Hard to Get, Some Feel They Must Join the LDS Church to Get Aid
  • Utah’s safety net for the poor is so intertwined with the LDS Church that individual bishops often decide who receives assistance. Some deny help unless a person goes to services or gets baptized.

    Soinds like coercion

  • NSFW Removed
    Who was worse: The Nazis or the British Empire?
  • How about, they were both utterly terrible?
    Like, what does it matter?

    British Empire were shits, enslaved people, stole relics/art/wealth, murdered people, tortured people, probably experimented on people.
    Nazis were shits, enslaved people, stole relics/art/wealth, murdered people, tortured people, experimented on people.

    The Nazi's atrocities are certainly better documented.
    Both because they are more recent in history, and because they were the losers. The winner's atrocities were less likely to be documented throughout history.

  • People aren't stupid.
  • I think both are rational (consistent with or based on reason) it is just that one of them is using the right premises.

    Man, I had a whole thing typed out when I re-read what you wrote.
    I'm assuming you mean "aliens are real" is the false premise here...
    Because I'm glad I re-read. I had massively mis-interpreted your comment!

    2.... [Snip]

    The way to teach this is critical thinking of "follow the money, follow the power".
    And it's pretty murky.
    I'm fairly certain "ban plastic straws" got so much traction because it diverted from actual issues.
    Fishing nets cause more issues and pollution. People now hate pasta straws, and blame it on environmentalists.
    Oil companies divert attention for another 5-10 years.

    Maybe I'm just cynical.

  • People aren't stupid.
  • The 3 things to fix:

    1. Our collective feeling that things aren't going well
    2. Our general distrust in current authorities
    3. Our collective belief that an authority is good/necessary

    ...

    Also if we want society to be less susceptible to this we need to fix one or all of the three things

    Ok, so:

    1. Fix things that aren't going well (or make people feel things are going well).
    2. Have authorities we can trust (or make people trust our current authorities).
    3. Reject authority (or make people believe that needing authority is a good thing).

    I have no idea what you are trying to say.
    It all seems really wishy-washy.

    But I agree that people aren't stupid.
    I mean, on average, at least half the people are stupid. By whatever metric that is.
    Chances are - however - they are irrational.
    Despite all the evidence, they still want something to be true.

    Irrational:

    If you describe someone's feelings and behavior as irrational, you mean they are not based on logical reasons or clear thinking

    https://www.collinsdictionary.com/us/dictionary/english/irrational

    99% of conspiracy theorys are irrational.
    By the time you know about a conspiracy theory, it is probably being tested and will likely be disproven. Or it has already been tested and proven to be wrong. Otherwise the conspiracy/theory would be a working scientific theory.
    Believing otherwise makes you irrational.

    Look at LK99. Huge deal, claimed proof, seemed legit. Within 2 months it was disproven to the satisfaction of the scientific community.

    Now there will be stories about LK99 being legit, and the "scientific community" (read government) rejecting it because UFOs are going through US court whatevers. And LK99 came from extraterrestrial origins, or whatever.
    This is irrational (edit: as pointed out in a comment, this is actually rational. It follows logic. But it is based on an irrational premise: that aliens exist).

    Or ... scientists made a mistake.
    This is rational.

    ( Never mind the extremely infinitesimally small chance that extraterrestrial sentient life exists and coincides with our time, travelled across the universe and failed to survive an encounter with our planet (or that they successfully contacted only the government via means they were able to keep quiet, who then successfully kept that a secret). )

    Rationality is different from stupid.
    You can be stupid and rational.
    You can be intelligent and irrational.

  • Baldur's Gate 3 minmaxer finds terrifying 240 damage-per-turn Monk build, carrying on D&D's long tradition of rules-based ultraviolence
  • References https://www.reddit.com/r/BaldursGate3/comments/15u9z0g/comment/jwoh42k/?context=3
    I don't want to copy the text here, because credit where credit is due. And some things are marked as spoilers, which idk if all Lemmy clients support.

    Essentially 8 levels of monk, 3 in Rogue Thief, Tavern Brawler, and 22 STR getting 8 attacks due to extra bonus attacks and flurry of blows due to feats and gear mods.
    And some various WIS as damage gear mods, and some other bonuses.

  • [News] If You Have These 6 Personality Traits, You're More Vulnerable to Phishing Scams
  • I will say that a good scammer will circumvent a lot of the "earning trust" stage.
    Through social engineering or just sheer luck, they will catch you at a time when your guard is down and they will manipulate a sense of urgency.

    "Hi mom, my phone fell in the toilet and I really need it for work tomorrow. I'm using a friends phone right now, all my bank access was on that phone. I'm so stressed. Can you send me $800 via (dodgy website) so I can buy a new phone and get to work".

    Instantly hits on an emotional pressure point. Adds a huge sense of urgency, with good reasons for an untrusted number and a dodgy payment method, and makes it seem difficult to corroborate with the mom's kid.

    "Hello, this is your real estate agent. Unfortunately there has been a complication with the purchase of your new house. Due to extra fees, $10,000 needs to be transferred to X by midnight, otherwise the banks will reject the purchase/mortgage/whatever. Sorry for the out-of-hours contacts, I'm currently in (city) on other business and not in the office"

    Another hugely stressful scenario. Massive sense of urgency with a disastrous deadline.
    People don't buy houses every day, and may not be fully aware of the process. They might take this as an unexpected but legit part of the process.
    Obviously, this requires significant social engineering to set the scam up in the first place (knowing someone is buying a house and roughly when). But the payout can be significant.

    The biggest piece of advice I can give is:
    If someone is applying a sense of urgency on any decision: STOP.
    Take a breather, think about the scenario. And then contact "the person/company" via another way through means you research yourself.

    If it's on the phone, ask for a case number, Google the company and phone them directly. By text or email, same thing. Find their phone number via Google.
    If it is legitimate, an extra 30m isn't going to harm anything. Especially if you say "sorry about that, I wasn't sure if it was a scam or not".

  • I don't want to "Press any key to continue" to the main menu
  • Go to steam, right click the game and browse local files.
    Navigate to something like Deep Rock Galactic\FSD\Content\Movies and delete (or move) them.

    I've played other games with annoying intros. Normally, deleting the files means the don't play on startup.
    Where they are depends on the game. A quick Google found this solution.

    You will probably have to re-delete them after an update, and after running a "verify local files".
    I've done this with EAC games without issues (incase you are worried)

  • I don't want to "Press any key to continue" to the main menu
  • I mean, better loading feedback would be better than an arbitrary "interactive within 1 second" blanket rule, leading to this whole "press button to continue" workaround.

    That's like a generator needing an earth rod, and the engineer putting an earth rod into a plant pot. Sure, the earth rod is there, and sunk to regulated depth in dirt... but it's a plant pot.
    Just make an accurate loading screen with accurate feedback.

  • ‘Bribery during war is treason’: Ukraine’s Zelenskyy fires army recruiters
  • Well, that challenges my perceptions.

    Government corruption is fucking horrendous.
    But then, people wanting to get out of a war is fine by me.
    But also Ukraine needs to be defended.

    The rest can go rot in hell. But that line, I'm torn on.

    Anyway, wtf does my opinion matter.
    Fuck corruption, at the very least!

  • [MOD] SteamDeck upgrade to 32gb of ram
  • It's because ram is even faster with lower latency.

    Pcie4.0x4 nvme is 40Gbps (I presume you mean pcie4.0 which is the newest and greatest over pcie3.0).
    And that's if it can actually sustain that level of read/write consistently, and isn't just dumping data into a buffer.

    DDR3 1333mhz is 80Gbps (which is 15 years old).
    DDR4 2133 is 136Gbps.
    These are just rough numbers. Actual throughput is going to depend on number of channels, mobo, CPU etc.

  • Who else foresees environmental problems with this later down the line?
  • I can tell you that big data centers likely have a 4 year hardware cycle, where it is all under warranty and service contract.
    After which, it gets sold to refurbishers who refurb it and resell it. Or the datacenter may repurpose it for labs, OOB hardware, or donate it to schools.

    A lot of smaller companies don't need the latest and greatest, and are quite happy running old 2nd hand hardware.

    Even after they are done with it, there are plenty of hobbyists that will buy it. I have a couple 8 year old servers that run absolutely fine for what I need.

    Old servers are also kept around as parts for companies that refuse to update old hardware (and will just keep buying spares, or like-for-like replacements).
    The last step is ewaste, where the good stuff gets boiled in acid to extract the gold, or whatever they do.

    The only things that are generally destroyed during hardware cycles are the storage, and that's normally for compliance reasons.

  • Who else foresees environmental problems with this later down the line?
  • The salt water won't come into contact with anything except pumps, a heat exchanger and the exterior of the container.
    The servers live in a nitrogen environment, so it reduces corrosion, I doubt there would be any dirt or dust. It's going to be an incredible sterile environment.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TO
    towerful @beehaw.org
    Posts 0
    Comments 25