• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle
  • 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.


  • 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).




  • 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”.



  • Never mind flaky internet, what about people that do events?

    Things like PowerPoint presentation machines, VJ systems, video servers (for massive multiscreen playback).
    You can’t go into a field for a festival and expect reliable internet.
    You can’t go into a theatre and expect reliable internet, especially when 3k+ people turn up.
    There are a few systems that run OSX, but Apple’s hardware doesn’t give you as much control as something like an Nvidia Quadro with sync cards. 99% of the big shows will be ran from Windows OS



  • Having never built an app in .net, my first instinct would be to try to containerise it.
    This would make the installation of it (mostly) platform independent, and would let you easily prove it on your development machine.

    https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows

    Note that docker isn’t the only way. There is also podman, and I’m sure there are others.
    All of these build ontop of the Open Container Initiative, and are mostly interchangeable. It’s only once you dig deeper into docker/podman/whatever that you might start running into compatibility issues.
    I don’t think I’ve ran into any issues between using docker and podman, albeit for nodejs applications.





  • Hell let loose has been my game of choice for years.
    There was always some jank, the meta always slightly missed. But it felt like an authentic game, like BF1942 but better graphics and gameplay.
    The past year, it’s been slipping.
    And the last 2 updates have made me question it’s future.

    U13.5 broke reloads for bolt action rifles, where a full clip reload animation would run twice (there was similar for MG). I think it incorrectly implement some progressive reload system. They didn’t fix it until the U14 update, which was 4-6 weeks of this.

    U14, they increased the movement speed by a stated 15%. Which is a huge change, considering the previous speed (although slow) was balanced around tanks/vehicles and commander abilities.
    U14 also released a new faction, the British. With an assortment of non-standard loadouts… Like WW1 weapons instead of the expected lee-enfields, and what authentic loadouts there are are poorly implemented (for example, one of the assault loadouts - meant to be light and fast - has a bren gun)

    Along the way, hit-registration has decreased, driving vehicles has ridiculous rubber-banding (makes me feel sick driving them), and persistent long term bugs are still prevalent.

    I think I’m going to see how U15 goes.
    If they have addressed these issues (rebalance things around the new movement speed, fix vehicle rubber banding, fix loadouts, fix British weapons, and ideally fix or address some of the long term bugs), then I’ll get back into it.
    But at the moment, HLL has lost a lot of it’s fun for me.


  • The modcoord sub that organised the initial blackout are encouraging subs to remain dark in response to this. It seems like a lot of subs are going to remain dark.

    If a sub doesn’t want to go dark (stopdrinking was given as a community support example), then a touch-grass-tuesday is recommended to close the sub every Tuesday as an ongoing reminder.

    Seems like Reddit has taken the protest as “a bit of noise, but business as usual soon”. So, time to kick it up a notch


  • It’s a bathroom full of (potentially top secret) documents.
    I think the documents stored in a bathroom is by far the most bizarre thing (security clearance aside), especially for someone with such self-proclaimed business acumen.

    You are correct, the whole article does have a tongue-in-cheek vibe.
    I just can’t wait for trump’s news cycle to actually fucking end, and I think that’s actually what my issue with the article is


  • What a bizarre article.

    The toilet, she notes, is far from the wall, and might not be plumbed.

    Basically, chandelier in the toilet. Everything is ugly or overstated.
    An example of how not to do a bathroom. etc.
    Some lovely speculation on the chando being in the “prime position of the fecal blast zone”

    I’m glad I don’t have a bathroom that looks like that. I can understand a lot of comments on it.
    But… not much actual content in the article.


  • I’d love to link it, but there’s so much content around this that I’ll never be able to find it.
    I’m sure it was mentioned by some app developers that they were asking for access to the ad API that Reddit uses in order to serve their ads in the 3rd party apps so they don’t have to shutdown.

    Also, asking after the proper GraphQL API access (instead of the older and less featured/efficient REST API) now that it’s becoming paid access… And I’m sure that the answer was “it’s not ready”.