Archr

joined 2 years ago
[–] Archr@lemmy.world 1 points 2 days ago (1 children)

Is this just meant to make git clone always clone recursively?

Can't you do this with aliases in your .gitconfig?

[–] Archr@lemmy.world 2 points 2 days ago

I have something similar.

alias "..1=cd .."
alias "..2=cd ../.."
... etc

I did have code that would generate these automatically but Idk where it is.

[–] Archr@lemmy.world 1 points 2 weeks ago

_ can also be used in the python interactive terminal to mean 'last return value'

Ie:

> 'string'
'string'
> a = _
> print(a)
string
[–] Archr@lemmy.world 1 points 2 weeks 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.
[–] Archr@lemmy.world 14 points 2 weeks ago (5 children)

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.

[–] Archr@lemmy.world 2 points 3 weeks ago (1 children)

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.

[–] Archr@lemmy.world 5 points 4 weeks ago (2 children)

Strange that kali is listed, since it is such a specialized distro.

[–] Archr@lemmy.world 3 points 4 weeks ago

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.
[–] Archr@lemmy.world 2 points 1 month ago

Iirc the white border is a helldivers2 issue

As for minimizing the game I don't remember having that issue but it has been a while since I played.

[–] Archr@lemmy.world 4 points 1 month ago

I know you are mostly asking about ripping the media. But I would recommend looking at tiny media manager to pull metadata and organize.

[–] Archr@lemmy.world 11 points 2 months ago

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.

[–] Archr@lemmy.world 1 points 2 months ago

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.

view more: next ›