• 3 Posts
  • 265 Comments
Joined vor 2 Jahren
cake
Cake day: 21. Oktober 2023

help-circle








  • sorter_plainview@lemmy.todaytoSelfhosted@lemmy.worldAlternative to github pages?
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    edit-2
    vor 20 Tagen

    Hosting site in your local machine is tricky. It depends on how your ISP configured your network and most of the time you will be under CGNAT. Which means you will not have a unique public IP, but a shared one. Similarly your IP will be dynamic which will need additional configurations. Nowadays it is very difficult to host a site on local machine directly.

    Edit: Checkout if your ISP provide unique IPv6 for your machine. This will not have issues of CGNAT, but you will have to setup DynamicDNS (DDNS) to accomate the changes in IP.

    Edit: If there is CGNAT and you don’t have IPv6, then you need ‘NAT Hole Punching’. Usually services like Tailscale, ZeroTier, Amnezia, Innernet, v2ray, etc. are needed for that.

    One thing you can try is Tailscale Funnel. Fair warning, bending your head around functioning of Tailscale is not trivial, and you will have to spend some time to properly understand and set it up.

    If you prefer a simpler route, free hosting of a static site is your best bet.

    Netlify is the go to solution if you are familiar with Git. I used to have my portfolio up there. Another option is, as you mentioned, Github Pages.

    Vercel is the another common one people use. But it might be a little more tricky to get it working, because it focus on front end framework like Next.js.

    Checkout Cloudflare Pages too. Very much similar to GitHub Pages, but with the performance and reliability of Cloudflare.

    Heroku is another thing people used in the past. I think the free tier got limited nowadays.

    Good luck with your adventures.







  • Just for clarification. If you meant the chance of winning the car is 1/2 when switched, that is wrong. The outcomes are not equally likely. The Tree diagram actually shows the detailed breakdown.

    In case of you switch, from the tree diagram, probablity will be (1/9) × 6 = 2/3

    In case you don’t switch the probability is, (1/18) × 6 = 1/3

    So if you switch you double the chances that you may win. Simple explanation is that Monty is forced to choose a door satisfying two important criterias,

    1. It must be one with a goat
    2. It must be different from the choice of the participant

    These restrictions are what increases the probability of winning when switched. If the Monty is randomly opening a door without knowing what is behind, then the probability will not change.