Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
https://d.sb/
Mastodon: @dan@d.sb

  • 7 Posts
  • 2.24K Comments
Joined 3 years ago
cake
Cake day: June 14th, 2023

help-circle
  • Setting up typescript takes an hour or two if you have no clue what you’re doing

    Modern versions of Node.js have native TypeScript support. For scripts, you can just write the script then run it. That’s it. No build process needed. A beginner could just rely on type checking in their editor (I think VS Code has the TypeScript tooling installed by default?)

    For web apps, just use something like Bun or Deno. Bun gives you practically all the tooling you’d need (JS runtime, TypeScript, package manager, test runner, bundler, and framework for building web apps) out-of-the-box. It doesn’t have a formatter, but you can just use your editor’s formatter.





  • you can also do the exact same thing with any other HikVision camera too

    Most people that install security cameras don’t directly connect them to the internet like this. A company that’s installing them at scale should be aware of this.

    using default credentials

    Modern Hikvision and Dahua cameras don’t have a default password. They require you to set a strong password during initial setup.

    In general, a lot of electronics have moved away from generic default passwords, as many jurisdictions ban them now. Any modern device should either require you to set the password during initial setup, or have a randomly-generated password printed on a sticker under the device.

    The device you found was either a very old one, or one where the owner intentionally set a basic password.





  • dan@upvote.autoLemmy Shitpost@lemmy.worldWord.
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 days ago

    I was using LibreOffice Calc on my work PC with a Threadripper CPU, and somehow it still chugs at times. Scrolling was very laggy with larger spreadsheets for example. I ended up using Google Sheets instead, which is way more responsive for me. If it was for personal use, I’d probably try IronCalc.










  • I self-host my emails, but use an SMTP relay for sending. IMO, the interesting part of self hosting email is the storage. Outbound sending is more complex and there’s not as much benefit to self-hosting it.

    I use Mailcow and have it configured to use a relay per domain. Email clients use the Mailcow server as their SMTP server, and Mailcow (well, Postfix) handles sending it to the appropriate relay.


  • dan@upvote.autoSelfhosted@lemmy.worldDocker security
    link
    fedilink
    English
    arrow-up
    25
    ·
    edit-2
    20 days ago

    you can override this by setting an IP on the port exposed so thet a local only server is only accessable on 127.0.0.1

    Also, if the Docker container only has to be accessed from another Docker container, you don’t need to expose a port at all. Docker containers can reach other Docker containers in the same compose stack by hostname.