HN user

omnster

18 karma
Posts0
Comments16
View on HN
No posts found.

Regarding the `timer` script, it appears to block the shell. A way to avoid this would be to spawn a subshell for the sleep command like this: `( sleep "$1" && notify ... ) &`

You can perhaps use `strftime` instead of `trim(system('date ..))`:

   inoremap <Leader>date <C-r>=strftime("%a %B %e, %Y %H:%M:%S %p")<CR>
   nnoremap <Leader>date :put=strftime("%a %B %e, %Y %H:%M:%S %p")<CR>
I am also not sure if an `<esc>` is really necessary at the end of your normal mode map.

In defence of emacs: if I were using emacs, I'd be doing that not because of Neal Stephenson's essay, but rather because of the long-established legacy of the development, and because of the community. I believe that the combination of these two factors is very likely protecting emacs from a sudden enshittification so typical for proprietary software. I'm in the vim church, but for exactly the same reasons.

Exactly. We can also win a tiny bit of the distance by assuming the Moon in the perigee, where the distance to the Moon is about 363000 km. I also assume that these distances are measured between the centers, so we can perhaps subtract twice the Earth radius (about 2*6400 km).

Here's a guide I found useful to set up zotero storage. In brief, it relies on zotfile to flatten the storage (keep all pdfs in one directory) and better bibtex.

I realized that it helped me to get rid of exactly the pain with fresh installs that you mention. I realized that the two plugins give me most of the functionality that I want.

https://habr.com/ru/articles/443798/

There is quite an excitement about how someone has hacked the language model to output what was supposed to be a non-public set of rules apparently. How do people know if this is indeed the secret set of rules, not the list that the model was scripted to return in response to a request (perhaps, a bit elaborate) for the list of rules?

Define your \newcommands in commands.tex and tell pandoc to add it to the header: `pandoc -H commands.tex ...` There can be multiple header files like this.

I'd guess you have to first convert markdown to tex with --natbib flag, then compile the tex (assuming the input is input.md and you want input.tex at the output)

`pandoc -f markdown -t latex -o input.tex --natbib input.md`

It is perhaps not unexpected that the capabilities of such a simple thing as markdown are not too overwhelming. Pandoc does not extend markdown as a markup language, it can only convert markdown to pretty much whatever you want. If you have rather precise requirements such as natbib for citations, it may be better to start with latex right away.

I usually use pandoc to produce simple short documents. Occasionally I use it to do the peer review for journals, when from a single markdown source, pandoc builds me a plain text file with latex commands substituted with unicode symbols, and also a pdf.

This all can be simplified with pandocomatic (a thing that automates calls to pandoc) and entr (a thing that invokes a command upon file update).

In the simplest form, `ls input.md | entr pandoc -o output.pdf input.md` will call pandoc each time the file input.md is updated.

Pandoc is a standalone application that converts between a huge variety of formats, including markdown to pdf, which means that you can write your plain text markdown in the editor of choice and then convert it to pdf using pandoc.

To use citations, the standard way is to use the `pandoc-citeproc` filter.

I think it deserves a separate mention: lichess has so much better clock UI. Their clock is big and very clearly visible both on desktop and mobile. It also goes red when you are low on time. Chess.com's clock is tiny and I saw some GM complaining on his stream about losing on time because he was unable to track his clock because of that.