Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)AR
Posts
0
Comments
40
Joined
2 yr. ago

  • This is very true. Match statements are much more powerful that switch statements in any other language.

    For instance:

    • matching objects very specifically
    • if conditions within case statements
    • pulling variables from inside of the object directly.
  • I'm not sure how many people know this but there is good reason why (at least on android) giving Bluetooth permissions also requires location permissions.

    The basic concept is that given enough Bluetooth data an app can pinpoint your location accurately anyways. So the android devs decided that they would just require any app that wanted Bluetooth data would also need to require access to location. That way users would be indirectly informed of the dangers.

    Why not just a pop-up to inform of the danger? Probably because most users will click past that warning and not read it.

  • Protondb is a really good source for that information. I do want to mention protonupqt though. Basically when you go on Protondb you might see that some people are using versions of proton that aren't included with steam(like proton-GE, aka glorious eggroll). Protonupqt provides a tool that downloads some of those for you and even installs them in steam.

    And for games that aren't on steam using the heroic launcher (for epic, gog, and amazon(?) games) or lutris (everything else) is the way to go.

  • The main two reasons that I can think of to include this even when you have no intention of importing this as a library are:

    1. For unit testing you will need to import as a module.
    2. Sometimes I will run a python interactive interpreter and then import my script so that I can do some manual testing without needing to change my main function or if stmt.
  • There’s a reason you have a home dir. Just copy that forward along with whatever other config files you might’ve customized.

    This is probably the reason why most distros will have the home directory on a separate partition. To easily allow you to keep your most important data when reinstalling or switching to a new distro.

  • I haven't read the article. But I'd assume this is for the same reason that not not string is faster than bool(string). Which is to say that it has to do with having to look up a global function rather than a known keyword.

  • 100% agree with this.

    It is so much faster for me to give the ai the api/library documentation than it would be for me to figure out how that api works. Is it a perfect drop-in, finished piece of code? No. But that is not what I ask the ai for. I ask it for a simple example which I can then take, modify, and rework into my own code.

  • Since it sounds like this is your home router since you mentioned you use Comcast. If you are testing the site from within your network using your external ip then you are possibly running into a loop back block. Comcast does not allow traffic that originates from within your network back into your network.

    Try the ip/site from a Hotspot and that might work.

  • If you are launching the hoyo launcher through heroic then that will also have to obey Flatpak permissions. Since that is how the containers work.

    You could try enabling full filesystem access just to test whether is it Flatpak permissions blocking you.

  • Do you have heroic installed through Flatpak? If you do then install flatseal (through Flatpak) and use flatseal to enable permissions for heroic launcher. It should be pretty obvious how to do this once you have flatseal open.

    By default Flatpak does not allow applications to write to directories outside of your home fir (and I think it also blocks access to other partitions).

    Source: I did this on my system last Friday to install return to moria. Also I got zzz to work on my steamdeck out of the box with heroic game launcher.

  • This is true. And it's also why I always recommend downloading steam through their website. They distribute their own Deb directly, and it auto updates.

    Flatpak version is also okay but if you want to use a secondary disk then you need to know how to use portals (or the Flatpak configuration tool that I can't remember the name of).