Recent Changes

Updates since 2022-02-22 02:46 UTC up to 2022-03-24 02:46 UTC

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

2022-03-21

  • 06:18 UTC (new) (history) 2022-03-19 Variable-width font in the modeline . . . . mbork Some time ago there was an experimental change on the master branch in Emacs, bringing “variable width” fonts to the modeline. The main problem with them is of course the fact that when a part of modeline on the left changed (even without changing the number of characters), the rest of it would “jump” because the width of the changed portion would not be constant anymore. Well, that is now fixed: such things now have a fixed width, so changing the modeline font to a variable-width one works very well.

2022-03-14

  • 16:47 UTC (new) (history) 2022-03-14 Proper indentation after a const in Emacs . . . . mbork A few days ago I decided to finally fix one of the issues I had with JavaScript indentation in Emacs (in the default js-mode – I use js2-mode, which delegates indentation to js-mode). When using const to declare variables, and the declaration not fitting in one line, the indentation of the next line was broken...

2022-03-07

  • 05:53 UTC (new) (history) 2022-03-07 Transient input method . . . . mbork A long time ago I wrote about my usage of the TeX inout method, which is great for entering mathematical Unicode characters not present on the keyboard. Of course, I don’t have it on all the time...

2022-02-28

  • 18:56 UTC (new) (history) 2022-02-28 A clever trick with psql copy and multiline select statements . . . . mbork For today, I have another PostgreSQL tip, which I admit is extremely niche, but useful nevertheless. As I mentioned a few times, I’m a big fan of psql. One of the nice things it has to offer is the \copy command. It is a very thin wrapper around SQL’s copy command, with an important change: it generates files on the local filesystem, and they are owned by the user who runs psql, not the postgres user (under whom the PostgreSQL server operates). However, \copy does not accept multiline queries, which is a pain if you have a long, nicely formatted query and you just want to feed it to \copy to get a result e.g. as a csv file.

More...

Filters