Avatar

balsoft

balsoft@lemmy.ml
Joined
0 posts • 57 comments
Direct message

So, here’s my attempt

The first portion (^.?$) matches all lines of 0 or 1 characters.

The second portion (^(..+?)\1+$) is more complicated:

  1. (..+?) is a capture group that matches the first character in any line, followed by a smallest possible non-zero number of characters such that (2) still matches (note that the minimum length of this match is 2)
  2. \1+ matches as many as possible (and more than 0) repeats of the (1) group

I think what this does is match any line consisting of a single character with the length

  • divisible by some number (due to the more than 0 condition in (2), so that there have to be repeats in the string), that’s not
    • 1 (due to the note in (1), so that the repeating portion has to be at least 2 characters long), or
    • the length itself (due to the more than 0 condition in the (2), so that there is at least one repetition)

Therefore, combined with the first portion, it matches all lines of the same character whose lengths are composite (non-prime) numbers? (it will also match any line of length 1, and all lines consisting of the same string repeated more than one time)

permalink
report
reply

90s-late 00s cars are actually on repairability in my experience, because they already have computers which help you diagnose failures easily with a $20 OBD2 scanner (this saved my ass a couple of times, when I could almost immediately see the error whenever my car died, fiddle or re-plug the wiring of the failed component and keep going), and they don’t yet have all the over-complicated, designed-to-fail, hard-to-reach crap that a lot of new cars have.

permalink
report
parent
reply

I haven’t used it in a while, but I think it just sends you an SMS with a code that you can enter manually, so yeah it works on devices without a SIM

permalink
report
parent
reply

I mean, yeah, it’s nix profile install nixpkgs#vscode and it should kinda work. Although to run it, you might have to also do nix profile install github:nix-community/nixgl --impure and then run vscode as nixGL code because of video driver awfulness.

permalink
report
parent
reply

I think you should still pass --cmd Hyprland to it, no?

permalink
report
reply

I’ve been using nheko as my Matrix client and main Telegram client via mautrix-telegram for the past 4 years. I fixed a couple of annoying bugs myself, and it has been working great for me since. Shame your experience isn’t the same, maybe you can report the bugs to the devs (who are amazingly responsive).

permalink
report
parent
reply

There are android phones that are even thicker, with amazing battery life and fall protection. Check out DOOGEE for example.

permalink
report
reply

There are a couple of non-electron matrix clients I enjoy: gomuks (TUI, therefore really light-weight), and nheko (Qt-based native app that’s about as snappy as telegram, but with less animations and crap).

permalink
report
parent
reply

Yep, that has actually been a dream of mine for a while, I went as far as downloading the source code and setting up the build environment, but then got a bit overwhelmed by the task. It would be amazing to have this.

permalink
report
reply

I think it depends a lot on where you are. Where I am, the government (kinda unofficially) provides excellent quality (<10 cm/px in some cities, and <50cm/px for the entire country) orthographically adjusted aerial imaging, that’s a lot better than any commercial solution.

permalink
report
parent
reply