253 karma · joined Oct 5, 2013 (13y ago) · 76 submissions
comment 2mo ago · link · parent
I think much of it boils down to "Respect other people's time and attention".
2.
AI Norms and Values, Part 3 of 3: Things We Hold True(honeycomb.io ↗)
3 points · by lervag · 2mo ago · 1 comment
comment 7mo ago · link · parent
4.
Top Features in Mise You're Not Using(jdx.dev ↗)
8 points · by lervag · 7mo ago · 1 comment
comment 1y ago · link · parent
[0]: https://hyperpolyglot.org/unix-shells#associative-arrays
comment 2y ago · link · parent
* 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
comment 2y ago · link · parent
12.
Friends don't let friends export to CSV(kaveland.no ↗)
245 points · by lervag · 2y ago · 440 comments
comment 2y ago · link · parent
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...comment 2y ago · link · parent
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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.
comment 3y ago · link · parent
Most Norwegians take about 4 weeks of vacation during July.
[0]: https://www.arbeidstilsynet.no/en/working-conditions/holiday...
22.
The importance of a handbook-first approach to documentation(about.gitlab.com ↗)
4 points · by lervag · 3y ago · discuss
comment 4y ago · link · parent
#!/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/comment 4y ago · link · parent
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.
comment 4y ago · link · parent
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.
comment 4y ago · link · parent
One of the nice wins for me was that I could batch update ~200 geography notes that had some outdated numbers.
comment 4y ago · link · parent
* 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).
comment 4y ago · link · parent
* 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!