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

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

help-circle
  • My wife upgraded from a Samsung S21 Ultra to an S25 Ultra but uses it mostly same way.

    The one new feature I have seen her use is the AI person/object removal in the gallery. Samsung’s AI tools can run entirely on-device, which is nice (avoids sending the photos to the cloud and using an AI data center for the processing). I tried them while in airplane mode to confirm they do indeed work with no internet connection.

    She upgraded because the old one had a pretty scratched screen (we installed a screen protector on the new one!) and the battery wasn’t lasting long any more. The official repair store that Samsung use in the US, UBreakIFix, don’t stock S21 batteries any more, and I didn’t trust myself enough to replace it myself.


  • I really hope some phones are released with support for MicroSD Express.

    One of the practical reasons companies started removing MicroSD slots is because SD cards were far slower than the internal storage, and installing apps onto them could make everything laggier. That’s mostly solved with MicroSD Express which is up to 9x faster than the legacy MicroSD standard.

    Of course, there’s also the financial aspect, which the manufacturers love. If you can’t insert an SD card, you have to pay the manufacturer for more storage.

    Here’s hoping the EU mandates that phones need to support removable storage.


  • The title of the page I linked to is “Websites using Cloudflare in the Top 100k Sites by Traffic” so I think my interpretation was correct.

    Also, one domain can use multiple CDNs (eg one subdomain uses Cloudflare while another uses Bunny) so I’m not sure how their percentages work.

    I’m also not sure how they count sites that use Cloudflare but not the CDN product (for example, if they disable caching and only use the WAF). That looks identical from a client side so there’s probably no way to tell.

    Maybe I shouldn’t trust their data.

    AWS(just 8% seems sus),

    The chart wouldn’t be showing all of AWS, just Cloudfront (their CDN). There’s plenty of services that use AWS EC2 or Lightsail but front it with Cloudflare.



  • Something like 40% of the top 100k sites use Cloudflare. Builtwith says 44%: https://trends.builtwith.com/websitelist/Cloudflare/High-Traffic-Volume

    The pricing on their paid plans is very competitive. For small to medium sites, it’s orders of magnitude cheaper than Akamai. The WAF and DDoS protection is pretty good too.

    The largest sites like Google, Facebook, Netflix, etc have their own CDNs, including servers they provide to large ISPs for free since it significantly reduces upstream bandwidth usage (Netflix call this Open Connect; Meta’s is Facebook/Meta Network Appliance). Outside of the largest sites, you’d be surprised how many companies rely on Cloudflare. It’s kinda scary.







  • Your comment isn’t entirely accurate.

    in an overwhelming amount of cases, that host networking will be a “here’s a device-local subnet your containers can join to”, so no, a Docker container won’t by default “get it’s own IP address”

    With the default NAT network, it gets its own IP in the 172.16.x.x range that Docker decides to use. That IP is accessible from the Docker host. It doesn’t matter that it’s not on your LAN - it’s still a dedicated IP. Port forwarding (or a reverse proxy) to it is a separate thing, and you can map a different port if you want to.

    Plenty of Docker containers use the same port (often 80, 3000 or 8000), and the reason you can use multiple of those containers concurrently is because each one is on a separate IP.

    The default NAT network isn’t commonly used for Home Assistant, though. It usually has a direct network connection to the LAN, since plenty of smart home devices rely on broadcasts for discovery.

    Also claiming that “nothing else will use port 80” is a gross over-simplification.

    It’s true for both the Home Assistant Docker container and for HAOS. In both cases, there’s no other web servers running in the container/VM. For the Docker container:

    • If you’re using the default Docker NAT network, the port you use to expose it to other devices is completely unrelated to the port used in the container. When you expose a Docker port, you specify the host port and container port separately.

      • Sometimes the port isn’t exposed to the LAN at all, for example if you’re using a reverse proxy. In that case, you usually use the docker container name as the upstream in your Nginx config or whatever, like proxy_pass http://hass/
    • If you bridge the Docker container to the LAN, it has its own IP on the LAN and no other web servers will be running on that IP.

    The actual reason that Docker containers don’t use port 80 by default is so they’re able to run in rootless mode without any extra capability grants. I don’t think Home Assistant supports rootless mode though.


  • dan@upvote.autohomeassistant@lemmy.worldHome Assistant 2026.8: Approachable by design
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    edit-2
    15 days ago

    There’s two supported ways to run Home Assistant:

    1. Home Assistant OS
    2. Docker container

    In both cases, it’s running on its own IP address, so nothing else will be using port 80.

    With Docker, you’d normally either use its standard NAT network, or bridge it to your LAN using a macvlan or ipvlan network. Bridging is usually better because some devices rely on broadcasts.

    You used to be able to run Home Assistant directly on an existing Linux system, but that’s been deprecated for over a year and unsupported since December last year.




  • I’d recommend self-hosting healthchecks and using runitor for your cronjobs. Runitor pings healthchecks when the cronjob starts, then pings it again on completion with the status (success or fail) along with the stdout and stderr.

    Healthchecks can be configured to expect a ping periodically (once per day, once per hour, whatever) and alert you if it doesn’t receive one.

    For backups, Borgmatic has a healthchecks integration.





  • dan@upvote.autoProgrammer Humor@programming.devLinux Cat
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    16 days ago

    Admittedly I still use cat for this.

    This also works too, but it’s more verbose:

    echo "$(<foo.txt)"
    

    It’s mentioned in the Bash man pages:

    The command substitution $(cat file) can be replaced by the equivalent but faster $(< file).

    EDIT: I was just informed that simply <foo.txt works too.