HNHacker News
TopNewBestAskShowJobs

vindex10

226 karma · joined September 17, 2018

submissionscomments
vindex10··on I Created 175 Fonts Using Rust
I respect people who fled, but the company still pays tax in Russia. It is not inflammatory, it is pragmatic - to remember the supply chain.
vindex10··on I Created 175 Fonts Using Rust
just as a note: the company is registered in Russia
vindex10··on Let's release Rust-based fish
One of the important differences with bash, which is not dramatic but kind of low level is lack of `>()` process substitution.

https://github.com/fish-shell/fish-shell/issues/1786

It is worth mentioning that exists `<()` and is implemented via a helper command `psub`: https://fishshell.com/docs/current/cmds/psub.html

vindex10··on Neuroscientists Battle Furiously over Jennifer Aniston
Being old enough to find out that the "Grandmother neuron" and "Jennifer Aniston" neuron are synonyms.

https://en.wikipedia.org/wiki/Grandmother_cell

vindex10··on Show HN: I am building an open-source incident management platform
I will just share a somewhat similar project: https://github.com/netflix/dispatch

Also open source, also Python, also incident management, also custom severities (but not as much of custom roles, afaik) :) Has some integrations with slack, but not focused on Slack particularly.

Can be a good project to learn from as well :)

My relation to it: I only contributed with a couple of pull requests there :)

vindex10··on The Architecture Behind a One-Person Tech Startup (2021)
I was able to use managed Postgres ~a year ago on Fly.io. They seem to have offloaded its maintenance to Supabase, but it is still seamlessly interfaced with Fly.io.

Moreover, they still allow 1 free db per account:

> Supabase offers one free, resource-limited database per Fly.io user

Are you concerned that it is not directly managed by Fly.io?

* also Kafka: https://fly.io/docs/reference/kafka/

vindex10··on Going Dark: The war on encryption is on the rise
you meant, Steganography :)
vindex10··on Symbolica Computer Algebra System
Exciting! I've never been an active user, but I always appreciated it as a core tool in QFT calculations.

I even created a simple tool for squaring matrix elements based on FORM:

https://github.com/vindex10/form-square

Thank you for staying creative, for thinking big and expanding beyond HEP :)

vindex10··on Symbolica Computer Algebra System
The idea reminds me of FORM, popular in Particle physics community:

https://github.com/vermaseren/form

http://www.nikhef.nl/~form/

https://en.wikipedia.org/wiki/FORM_(symbolic_manipulation_sy...

vindex10··on Kolmogorov-Arnold Networks
Bayesian networks learn probability functions, but looks like only their tabulated versions:

https://en.wikipedia.org/wiki/Bayesian_network#Graphical_mod...

> Each node is associated with a probability function that takes, as input, a particular set of values for the node's parent variables, and gives (as output) the probability (or probability distribution, if applicable) of the variable represented by the node. For example, if m parent nodes represent m Boolean variables, then the probability function could be represented by a table of 2^m entries, one entry for each of the 2^m possible parent combinations.

vindex10··on Quantum mechanics is the operating system other physical theories run on (2007)
With its performance quantized by the fTPM stuttering xD [1]

[1] https://www.phoronix.com/news/Torvalds-fTPM-RNG-Woes

vindex10··on Boring Python: dependency management (2022)
There is an open discussion on this in Python community:

https://peps.python.org/pep-0735/

vindex10··on Show HN: Boardzilla, a framework for making web-based board games
IANAL, it seems, game mechanics can't be copyrighted, unless you use the same images for cards / board, or literally copy the rule book.

> In short: you can trademark the name, logos. Have copyright on art (even the board itself as art). You can't copyright the mechanics, processes or rules. That explains the Monopoly/Scrabble clones.

https://www.reddit.com/r/gamedev/comments/10f2nov/comment/j4...

which refers to this youtube video:

https://www.youtube.com/watch?v=iZQJQYqhAgY

vindex10··on PEP 723 – Inline script metadata (merged into pip-run)
Inline script dependencies were merged into pip-run:

  # /// script
  # requires-python = ">=3.11"
  # dependencies = [
  #   "requests<3",
  #   "rich",
  # ]
  # ///
vindex10··on Ask HN: Any comprehensive courses on Auth?
Just to be clear, I'm not a security expert in any way, just learned myself while building things.

So here is what I'd refer to:

https://stackoverflow.com/questions/44133536/is-it-safe-to-s...

Regarding the Firebase, I see an open issue on this, so I guess we are not the only ones wondering :)

https://github.com/firebase/quickstart-nodejs/issues/194

vindex10··on Ask HN: Any comprehensive courses on Auth?
I didn't work with Firebase myself, isn't this something relevant?

https://firebase.google.com/docs/auth/admin/manage-cookies

vindex10··on Ask HN: Any comprehensive courses on Auth?
Generally, check yourself with OWASP cheatsheet:

https://cheatsheetseries.owasp.org/cheatsheets/Authenticatio...

vindex10··on Ask HN: Any comprehensive courses on Auth?
I would add:

* on the client side, store the token as a secure https only cookie, as local storage is accessible by any module of your app, see supply-chain attacks.

* be extra careful with oAuth [1]

* for APIs, be strict with CORS [2]

[1] https://salt.security/blog/oh-auth-abusing-oauth-to-take-ove...

[2] https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

vindex10··on Organizing multiple Git identities
for local development, I use keychain [1] on top of the ssh-agent.

this allows to keep ssh-agent On for a limited time, so it will ask for password again in, for example, 10 minutes.

[1] https://www.funtoo.org/Funtoo:Keychain

vindex10··on Organizing multiple Git identities
yeah, this depends on the use case.

I'm speaking about a situation when the space is shared. Basically every co-worker can ssh into machine and then do `sudo su` into a shared user, under which some R&D script is running and being fixed/adapted once for a while.

For scientific projects it may also be convenient, having a jupyter notebook running under tmux of the same account. Then collaborative (but not concurrent) work is possible on the project.

vindex10··on Organizing multiple Git identities
thanks for the suggestion. I haven't used agent forwarding myself. I read a bit in the manual, and this seems to have a problem if the users I'm sharing the machine with have `sudo`:

> Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent's UNIX-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent. A safer alternative may be to use a jump host (see -J).

> Run ssh-add in your terminal session before doing your push/pull dance

originally my comment was about gpg encrypted files. also I suspect any kind of agent would expose privileges of my key to others if they have sudo.

vindex10··on Organizing multiple Git identities
my concern is not the configuration of gitconfig, but keeping the "escalated" ssh keys on the shared machine

if I understood correctly, the article suggests the way how to choose ssh key among those already stored on the server

vindex10··on Organizing multiple Git identities
I find one disadvantage of SSH key auth, in case of GitHub in particular, that SSH key grants access to all the repos independently on the organization, etc, which becomes a bigger problem when sharing the machine with other people.

One can set a password on the ssh key, but I still felt a bit paranoid about it. I found a way out with fine-grained personal access tokens which allow you to choose the repositories this token will have access to [1].

My setup consists of two ingredients:

1. GPG encrypted fine-grained PAT: `gpg -c --no-symkey-cache --pinentry-mode loopback my_name` ends up into `my_name.gpg` secret.

2. A git credential configuration which is generic across git repositories:

  [credential "https://oauth2@github.com"]
      helper = "!f() { test \"$1\" = get && echo \"password=$(gpg -d --pinentry-mode loopback --no-symkey-cache $_GITHUB_TOKEN)\"; }; f"
Now switching identities results into setting the env var `$_GITHUB_TOKEN` to the path to my gpg encrypted token, which will be decrypted by git on the fly. You can figure out a suitable way to alias this for yourself :)

And it only activates for git urls of the from "oauth2@github.com" which allows you to clone public repos without questions.

Another advantage is that you can share the same repo with other people, no need to maintain a copy.

Disadvantage is that you have to enter password each time you push/pull.

[1] https://github.blog/2022-10-18-introducing-fine-grained-pers...

vindex10··on OS X Preview.app corrupts PDF form fields
and still not fixed :(

I encountered this issue today. The cleanest fix I've found on linux (which took me a day to trace the history starting from 2009):

pdftk corrupt_input.pdf generate_fdf output - | pdftk corrupt_input.pdf fill_form - output fixed_output.pdf

Which dumps form fields into text form (FDF format) from PDF. Then loads them back.

This restores missing watermarks preview.app fails to set when saves PDF.

Few more relevant links:

Adobe support ticket: https://community.adobe.com/t5/acrobat/text-gets-hidden-on-p...

Adobe forum thread: https://acrobatusers.com/forum/forms-acrobat/inviisible-data...

which refers to the dead link of user pdfdevjunkie. they archived his blog recently.

finally still alive link to another Adobe user blog (link from the topic) https://community.spiceworks.com/topic/388774-script-to-fix-...

Still doesn't help on linux, but gives a hint how to make it work.

← PreviousPage 4 of 4