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

help-circle






  • It’s an extremely bizarre suggestion given your request. I do want to defend the game (though not the suggestion) a little though.

    It initially presents as you say, but offers you opportunities to fight back in your capacity as border control. Letting in the right people can help the resistance and incite a coup, or enable you and your families escape from the country. It isn’t just Be A Good Tankie Simulator 2013, though you can play it that way too.





  • There are a few options there.

    As someone else mentioned if you’re using IPv6 then it doesn’t matter, you’re already routing internally even if you’re using the public DNS name, no extra work required.

    All the rest are for IPv4.

    If you’re not behind CGNAT some routers/gateways are also smart enough with their routing to recognise when they need to route back to their own external IP and will loop back locally instead of making any hops out to the internet. Again, if this is the case for you then no additional work is required other than perhaps running a traceroute to confirm.

    Another option is to add a local DNS entry for the name you’re using to resolve to a local IP address instead of your public address. The complexity (or even possibility) of this is going to vary considerably with your setup. If you’re running your own local DNS e.g. pihole or similar then it’s trivial. This is how mine is set up.

    If all your clients are going to be on PCs (or devices you have more than the typical manufacturer allowed modicum of control over) then you can do something kind of like the previous, just with all your local hosts files.

    If none of the above are options, then you’ll unfortunately have to fall back on using a local name/address, which means a slightly different client setup for devices you use exclusively in your home versus ones you might use elsewhere.





  • I’m all for more people switching to linux, but a lot of your windows issues sound less like windows issues and more like your specific installation is messed up somehow issues.

    One thing I will mention though is that Windows does have native per-application volume control, you don’t need to install EarTrumpet. You can right-click the system tray volume icon and open the mixer, or just search for “volume mixer” in the start menu.



  • A docstring is a comment that is used to annotate types/methods/classes/whatever and can be parsed by the IDE and used to provide various hints/assistance when writing code. Tooltips, parameter type suggestions, intellisense, etc. for things that aren’t native parts of the language all usually come from or can be supplemented by docstrings.

    The specific format of a docstring varies by language, but many of them prefix meaningful tokens with an @, like @type or @param.

    However, if your project is using GitHub it’s also quite common to mention users in comments by prefixing their username with an @, so several vscode GitHub extensions will make any “@{real username}” in a comment into a link to that user, which will show a small user tooltip when hovered.

    Edit: I appear to have conflated docstrings and docblocks, but then so has the initial post. I guess at some point “docstring” has just taken over to colloquially refer to all of it.