balsoft

joined 4 months ago
[–] [email protected] 32 points 5 days ago* (last edited 5 days ago) (8 children)

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)

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago)

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.

[–] [email protected] 45 points 1 week ago (7 children)

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

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (1 children)

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

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

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).

[–] [email protected] 3 points 1 week ago

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

[–] [email protected] 1 points 2 weeks ago (2 children)

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).

[–] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago)

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.

[–] [email protected] 2 points 2 weeks ago

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.

[–] [email protected] 2 points 2 weeks ago

Does not seem to cache the satellite tiles for usage offline.

Did you use the "Download Map" option? It definitely works offline for me after I download it.

[–] [email protected] 3 points 2 weeks ago (3 children)

OsmAnd does support this now. You need to activate the overlay/underlay you want to download, press&hold anywhere on the map, then in the menu do Actions > Download Map.

[–] [email protected] 4 points 2 weeks ago (1 children)

OsmAnd does support this. You need to activate the overlay/underlay you want to download, press&hold anywhere on the map, then in the menu do Actions > Download Map.

view more: next ›