jutty

joined 1 year ago
[–] jutty@blendit.bsd.cafe 1 points 3 weeks ago (1 children)

The quoting oversight was due to me testing the first one only on zsh, which quotes differently.

The second was tested on Busybox ash and dash against the input in the example. It does assign a number just smaller or equal to threshold because head is overwritten on each iteration until it lands on the last value that was less than or equal to the threshold.

[–] jutty@blendit.bsd.cafe 2 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

For the simpler case of threshold match and larger, with the list already ordered, you could use sed:

echo $list | sed -n '/^150$/,$p'

The edge case is tricky because "equal or lower" can't be expressed with regex cleanly, so even an awk solution would look kinda convoluted, so I personally prefer a for loop for readability's sake:

for i in $list; do
    if [ "$i" -le "$threshold" ]; then
        head="$i"
    else
        tail="$tail\n$i"
    fi
done

printf '%b\n' "$head$tail"
[–] jutty@blendit.bsd.cafe 7 points 4 weeks ago

Version 2.37 temporarily broke compatibility with instances on Lemmy v0.19.3. Version 2.38.0 is already out with a fix.

[–] jutty@blendit.bsd.cafe 6 points 1 month ago

I've been noticing the same, on and off. At first I thought it was my instance, but it's fine on its own and through other UIs.

Aside from your thread, all else I could find was this issue, which is from May, long before I started noticing this, so not sure it's the same problem

[–] jutty@blendit.bsd.cafe 3 points 1 month ago

I like https://inv.nadeko.net/ because it gives you several backends to choose from.

[–] jutty@blendit.bsd.cafe 11 points 2 months ago* (last edited 2 months ago)

in this thread, as a twist on the more common meme "is this AI" or the more accusatory variant "this is AI", we doubt human intelligence instead

I'm disheartened by comments stating "whats the point?" just because it's hyper realistic. I do prefer less realistic art too, but the amount of dedication it must've taken this person to develop these skills and then the work on each painting, it speaks volumes beyond just being a replacement for a picture... You'd hang it on a wall and tell every visitor "this is a painting" and then each and every one of them would go NOOO

[–] jutty@blendit.bsd.cafe 10 points 3 months ago

Not so much what's preventing, but how hard it is to get away with it.

Whatever closed-source software is doing on your system, there is no way to know to begin with, what it is that it is doing. You can only look at the outer effects it has, but you can't examine it much. So even if a closed system is doing all sorts of things, as long as it's stealthy enough, there would be no consequences at all.

This is the very opposite is what you get with FOSS, not to mention the difference on how software is developed, built, distributed and managed in unix systems compared to proprietary ones.

[–] jutty@blendit.bsd.cafe 5 points 4 months ago

basically I never follow any feed (be it Mastodon, RSS, Lemmy, newsletters, whatever) that is too high volume. If something is sending too much content I'll just unsubscribe/unfollow. So for instance Lemmy communities for news are soo overwhelming, I'd rather sign up for a newsletter with a selection of five or so important news for the day.

[–] jutty@blendit.bsd.cafe 3 points 4 months ago

Yeah, sorry! I realized that after sending the comment, but I guess I was too late to delete it. I'd also like to find a Mastodon app that does that

[–] jutty@blendit.bsd.cafe 4 points 4 months ago

Wow! Congrats on doing this. This community keeps impressing me, sure one of the most impressive OC stuff I've found on Lemmy.

[–] jutty@blendit.bsd.cafe 4 points 6 months ago (1 children)

Surprised this hasn't been picked up yet, is it still available? I'll gladly take it if so

view more: next ›