Recent Changes

Updates since 2021-02-17 02:02 UTC up to 2021-03-19 02:02 UTC

1 | 3 | 7 | 30 | 90 days
List all changes Skip rollbacks Include minor changes
List later changes RSS RSS with pages RSS with pages and diff

2021-03-15

2021-03-07

  • 07:57 UTC (new) (history) 2021-03-07 A directory name as a command-line parameter for Node.js . . . . mbork Some time ago I accidentally discovered a neat feature of Node.js, which seems undocumented (at least I could not find anything about it in the docs). If you have some npm project in a directory, say /tmp/some-npm-project, and it has the main property in package.json set to some Node.js script, say bin.js, then saying just node /tmp/some-npm-project runs /tmp/some-npm-project/bin.js. It turns out to be quite useful if you have a directory full of various Node.js CLI utilities, each occupying its own directory, with its own package.json, especially considering shell autocompletion. And that’s it for today!

2021-02-27

  • 09:44 UTC (new) (history) 2021-02-27 Visible bell in Emacs . . . . mbork Emacs has this habit of beeping when something goes wrong (or when the user presses C-g). Frankly, this is quite useful, since it is an instant feedback, but there are times when I don’t want that behavior.

2021-02-23

2021-02-20

  • 09:00 UTC (new) (history) 2021-02-20 Using keyboard macros to emulate query replace . . . . mbork A few days ago, however, I needed to do something I consider really blogworthy, even though the tip I’m going to share today is (surprise, surprise!) very Emacs-centric. I was editing a paper which used italics (with the \emph LaTeX macro) really a lot (more than 100 times). Very many (but not all) of its occurrences were to be changed to quotes, so that e.g. \emph{petrichor} should be changed to ,,petrichor’’ etc.

More...

Filters