Recent Changes

Updates in the last 90 days

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


  • 16:31 UTC (new) (history) 2020-10-18 A nice exercise in metric spaces . . . . mbork It’s been a very long time since I posted anything math-y here (more than five years!). It certainly has something to do with the fact that I no longer work as a mathematician (even if I am part of one maths-related project, but that’s a secret). A few days ago, however, after a short discussion with a friend, I came up with a really nice exercise. Note: it is not difficult at all, quite the contrary, but I like it a lot.



  • 04:58 UTC (new) (history) 2020-10-12 Editing subtitles in Emacs with subed . . . . mbork Some time ago I bought a DVD with one of my favorite movies of all time. (I am not really a movie person, but I like to watch some film once or twice a year.) Unfortunately, the film is only available in English, and I really wanted my daughter (who doesn’t speak it yet) to watch it with me. I set out to translate all the dialog to Polish (which was quite a challenge, and I am proud to say that I managed to do that – better or worse, sometimes perhaps inevitably worse, but still). Now what I need is to prepare subtitles for the film. It turns out that the industry standard is called srt, and – not that it is surprising – Emacs has a suitable mode.
  • 04:56 UTC (new) (history) tpb-subtitles.png . . . . mbork



  • 19:38 UTC (new) (history) 2020-09-27 Pretty printing SQL queries . . . . mbork I often work with SQL queries. Sometimes I write them myself, sometimes they are created by an ORM – in either case, they are sometimes pretty long. This means that it would often be nice to have them formatted in a nice way (I mean indentation and line breaks).


  • 10:00 UTC (new) (history) 2020-09-20 A simple trick with Textern and require-final-newline . . . . mbork I have been using the Textern add-on for Firefox for quite some time now. What it does is it lets you press some key combination while being focused on a textarea element and start editing it in an editor of your choice. Of course, the editor of my choice is Emacs (well actually, Firefox thinks it’s emacsclient, of course). However, there was one thing that annoyed me.


  • 07:46 UTC (new) (history) 2020-09-14 amsreftex – a long-expected package . . . . mbork I have been a long time user of the amsrefs LaTeX package. I am also an avid fan of the AUCTeX Emacs package. Unfortunately, the two don’t get along very well with each other – AUCTeX has RefTeX, which assumes that the bibliographies are done with BibTeX (and possibly also works with BibLaTeX). This makes RefTeX basically useless for me. And that was the situation until a few days ago.


  • 06:01 UTC (new) (history) 2020-09-05 Better look of the ivy-occur-grep buffer . . . . mbork Continuing the trend of short tips due to lots of work I have nowadays, here is one thing that bothered me for some time and how I fixed it. I use Ivy and Counsel a lot. One of the functions I have even bound to an easily accessible key is counsel-rg.



  • 20:24 UTC (new) (history) 2020-08-24 Sorting object keys with Lodash . . . . mbork I have been extremely busy recently, so I have only a short tip today. Imagine having a JavaScript object like this: { a: 1, b: 3, c: 2, } and needing to have an (almost) identical object, but sorted by increasing values. (Yes, I know that theoretically the order of object properties does not matter and should not be relied upon, but come on.)




  • 14:55 UTC (new) (history) 2020-08-03 Look up a global variable in the database in Node.js . . . . mbork Today I encountered an interesting problem. Assume that you want a global constant in your Node.js backend, but its actual value is to be taken from a database. This means that fetching the constant should be done asynchronously. Unless you use Node.js 14.3.0 or newer (which as the time of me writing this is not yet ubiquitous), you cannot await your database request at the top level