HN user

lervag

252 karma
Posts14
Comments59
View on HN

I've been a very happy user of mise since when it was named rtx - before that I used asdf. Thanks, jdx, for creating this! And I found the blog post useful, as there seems to be several features that I was not aware of that I might want to adopt going forward. For instance the task sources and outputs was new to me!

I use two things:

* A password manager (PasswordStore [0]), in which I may make entries without passwords but where I indicate my ID on a given account.

* A personal wiki in which I may indicate for something that I have an account connected to e.g. Google or whatever.

When I come to some service that I vaguely remember having used before, I will find the necessary info either in my personal notes or in my password manager.

[0]: www.passwordstore.org

But somehow this suggests to me that I might have been doing something wrong. I use vim+ultisnips+(your excellent vimtex) while you use neovim. Out of curiousity, do you specifically set your python provider for your neovim in your config?

Yes, I do. I use a dedicated virtual environment for neovim which I create with the following snippet; then I set the `g:python3_host_prog` accordingly [0].

    mkdir -p ~/.local/venvs/nvim
    python -m venv ~/.local/venvs/nvim
    source ~/.local/venvs/nvim/bin/activate
    pip install --upgrade pip
    pip install pynvim

[0]: https://github.com/lervag/dotnvim/blob/c3169dd18f4396258f83c...

I don't think this is a big problem with VimTeX; I've worked quite a lot on these things, and my personal experience is that VimTeX is now quite fast both with syntax highlighting and with folding; although for folding, you do want to use the various "hacks" like the manual fold option or a plugin like FastFold.

I use both Vim (with wiki.vim, a plugin I've made based on Vimwiki) and Anki. I find the combination is very powerful!

I keep a journal for work related stuff and a wiki/personal knowledge base for everything (both work and personal). I use Anki to memorize things I believe may be useful to have readily available and I use my wiki as an extended "long-term memory", sort of.

But UltiSnips works terribly with neovim [1] [2]. Why? Because UltiSnips uses python, and neovim's python interface is 100x slower than vim's python interface. There are design decisions for this and I'm not trying to say that neovim is bad. I use both vim and neovim. But I use vim+UltiSnips+vimtex for writing LaTeX.

I'm using neovim with UltiSnips (and VimTeX), and I don't really have any big issues with it. I'm not saying you are wrongm but I do think the problem may be somewhat exagerated.

Cool! I've seen similar ideas before and made my own inspired by these some years ago. It's a simple bash script based on Flameshot [0] for taking the screenshot and Tesseract:

    #!/usr/bin/env bash

    rm -f /tmp/screen.png
    flameshot gui -p /tmp/screen.png

    tesseract \
      -c page_separator="" \
      -l "eng" \
      --dpi 145 \
      /tmp/screen.png /tmp/screen

    if [ "$(wc -l < /tmp/screen.txt)" -eq 0 ]; then
      notify-send "ocrmyscreen" "No text was detected!"
      exit 1
    fi

    xclip /tmp/screen.txt
    notify-send "ocrmyscreen" "$(cat /tmp/screen.txt)"
[0]: https://flameshot.org/

In Norway, self checkout is more or less scan-scan-scan-pay. It works well, in my experience, and most stores also have the traditional regular checkout.

I'm curious if the shop-lifting challenge is similar in Norway. I would expect not, since it is a very trusting society, but I have never seen any real numbers on this topic.

This is a fascinating read. It seems self-checkout works a little bit differently in Norway. We have self-checkout lanes in many (most?) stores in Norway. There is usually an employee nearby at all times (in case there's a problem, or when an employee must verify the age for alcohol beverages, and similar). For a regular trip by the store to shop groceries, most of the items can be scanned quickly and easily. A few items must be weighed manually (mostly various types of vegetables and fruits). There are some differences between stores on how well these systems work, but in my experience, most of them work very well.

I would still use the "old" checkout when I have a wagon full of wares, as that makes it easier to pack the bags. The self-checkout counters are quite small and so are inconvenient for large amounts of items.

Thanks! I did spend some time to make it work well with Anki, and I do spend some time once in a while to keep it up to date with the changes to the Anki code. But once I got it working, I've never turned back.

One of the nice wins for me was that I could batch update ~200 geography notes that had some outdated numbers.

Shameless plug: I made apy [0] that allows more or less the same functionality, and more, from the command line. Some things I like about apy that I never found from any alternative solutions:

* I communicate directly with the local Anki database - no need to keep Anki open and use any ankiconnect type plugin.

* I can sync the database before and after with "apy sync".

* I can easily add single cards from the command line. And I can add mulitple notes from a Markdown formatted file simultaneously.

* I can easily edit cards that I have marked to specifically change in some way (I find it useful to adjust cards).

[0] https://github.com/lervag/apy

I use it for all sort of things:

* Vocabulary in different fields

* Concepts in maths, physics, comp.sci.

* Geography

* People I want to remember (both historical and more distant relationsships)

* Some useful numbers (e.g. visa card number)

* Silly things (like the periodic table)

* Programming languages (syntax and similar that I might otherwise forget, and useful standard libraries and third-party libraries)

* Useful tools and ideas/concepts I want to remember

I make my cards atomic. No long answers. And I avoid having a large workload - I add new cards at a rate such that I review about 60 +- 30 cards per day. It takes me ~15-20 minutes, and I find it very much worth the effort!

Lastly, there are no excuses for this, and I’m willing to admit that I was wrong with yesterday’s move and apologize for the inconvenience that may have caused.

This type of wording fascinates me. Why does he not write "..., and I admit ... and apologize"? Writing "..., I'm willing to admit ... and apologize" does not, to my understanding, mean the same. Or am I being too sensitive here?