Deebster

New account since lemmyrs.org went down, other @Deebsters are available.

  • 54 Posts
  • 884 Comments
Joined 1 year ago
cake
Cake day: October 16th, 2023

help-circle
  • Probably start with Rust again this year, although it definitely makes some of the days a lot harder. I might switch to something better for quick code if I fall too far behind.

    I might even try PHP - I coded it professionally at the start of my career but haven’t touched it for a decade and I’m curious to know if its improvements make it pleasant to use.












  • I thought we were finally agreeing fully! My understanding of the question is “what is the difference between a third (of a pizza, say) and a half?”

    1/2 - 1/3 = 1/6
    1/2 = 1/3 + 1/6
    a half is one sixth more than a third.

    btw, I fixed my Kagi screenshot since I’d missed a word from the question (reading comprehension’s clearly not my strong point today)



  • Deebstertoxkcd@lemmy.worldxkcd #3011: Europa Clipper
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 days ago

    The ExplainXKCD is great:

    In truth, no such spoon is present on the probe, and Europa’s icy crust is too thick to be penetrated by a spoon of such size.

    The author is either being very tongue-in-cheek or very literal and humourless and I’m enjoying it both ways.


  • DeebstertoProgrammer HumorYes Google, 2/3 is TOTALLY the same as 1/2
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    11 days ago

    Yes, and the Google AI response is correct (and quite clear) in what it says. edit: Thanks Batman. I mean that Google’s understanding of the question is logical (although still the maths is wrong as you say (now I’ve re-read you)) and its answer explained the angle it was answering from.

    However, I think the reasonable assumption for the intention behind the question is relative to a whole. I had third of a pizza, and now I have an extra sixth of a pizza. It’s subtle, but that’s the kind of thing AI falls down on.










  • firewall-cmd --add-forward-port=port=8080:proto=tcp:toport=8080

    I’m not sure what you’re trying to achieve here; it’s already on port 8080 so this is at best a no-op. Normally you can’t bind two things to the same port and the second attempt would fail.

    This feels like an XY problem - what is your desired outcome? Just to access port 8080 from another computer?

    I have rootless podman set up similarly on Fedora. I have Caddy running on 1080 (HTTP) and 1443 (HTTPS) and this handles the reverse proxying to my other containers, including one on port 8000. Port 8000 is open in the firewall to allow direct access, left over from testing (I have an external firewall that filters out this port to most IPs).

    $ sudo firewall-cmd --list-all
    public (default, active)
      target: default
      ingress-priority: 0
      egress-priority: 0
      icmp-block-inversion: no
      interfaces: eth0
      sources:
      services: dhcpv6-client http http3 https mdns ssh
      ports: 8000/tcp
      protocols:
      forward: yes
      masquerade: no
      forward-ports:
            port=443:proto=tcp:toport=1443:toaddr=
            port=443:proto=udp:toport=1443:toaddr=
            port=80:proto=tcp:toport=1080:toaddr=
      source-ports:
      icmp-blocks:
      rich rules:
    $ sudo netstat -lnp | grep :8000
    tcp6       0      0 :::8000                 :::*                    LISTEN      2509/rootlessport
    $