Better HN
topnewbestaskshowjobs
Log inSign up

ahmism

2 karma · joined Sep 15, 2023 (3y ago) · 2 submissions

Submissions

comment 7mo ago · link · parent

To the first point, I think that the KL divergence is indeed symmetric in this case, 0.4 * ln(0.4 / 0.6) + 0.6 * ln(0.6 / 0.4) no matter which direction you go.

Still, there's no avoiding the inherent asymmetry in KL divergence. To my mind, the best we can do is to say that from P's perspective, this is how weird the distribution Q looks.

comment 2y ago · link · parent

Nice overview! Personally, I'd like to argue against storing credentials in plaintext on disk. The usual suspects all have ways to use SSH keys [0-2].

If you really prefer to store credentials, you can cache them for a temporary amount of time [3]. The basic command is:

  git config --global credential.helper store
[0] GitHub: https://docs.github.com/en/authentication/connecting-to-gith...

[1] GitLab: https://docs.gitlab.com/ee/user/ssh.html

[2]: BitBucket: https://support.atlassian.com/bitbucket-cloud/docs/set-up-pe...

[3] https://techexpertise.medium.com/storing-git-credentials-wit...