I want to simplify #pymunk + #py5 use for my students but I struggle with finding good strategies… Pymunk has two types of (linked) objects for each simulated object: body and shape. For complex objects (like concave shapes) you can use more than one convex shape linked to the same body. In these cases I usually want to have an extra shape to draw and hide the triangulation.
I don’t want to keep extra data structures to track the simulation objects to draw. I tried both extending and monkey patching either body or shape objects to be “drawable” so I can just iterate the native pymunk structures and ask stuff to draw themselves (would be nice, huh?), but there is always some snag. If I extend shape classes, I stumble on the complex objects with many shapes drawn with divisions. If I extend the Body class, the problem is static objects have shapes but share a virtual constant body, more of a flag, so I can’t add anything to it, so back to keeping track of a separate list of static shapes… Then performance & serialization issues, I want to be able to easily pickle simulations, but if I add Py5Shape objects to the extended/modified classes they become unpickable…
I have bigger fishes to fry right now (the paralyzing PhD) but this is something I would like to pair with someone more experienced to work on.

⤋ Read More

I just fixed a bug in tt’s reply to parent feature. Previously, when the message tree looked like the following

Message
├╴Reply 1
│ └╴Subreply
└╴Reply 2

and “Reply 2” was selected, pressing A to reply to the parent should have picked “Message”. However, a reply to “Reply 2” was composed instead. The reason was a precausiously introduced safety guard to abort the parent search which stopped at “Subreply”, because its subject didn’t match “Reply 2”’s. It was originally intended to abort on a completely different message conversation root. Just in case. Turns out that this thoght was flawed.

Fixing bugs by only removing code is always cool. :-)

⤋ Read More

Today I added support for Let’s Encrypt to eris via DNS-01 challenge. Updated the gcore libdns package I wrote for Caddy, Maddy and now Eris. Add support for yarn’s cache to support # type = bot and optionally # retention = N so that feeds like @tiktok@feeds.twtxt.net work like they did before, and… Updated some internal metrics in yarnd to be IMO “better”, with queue depth, queue time and last processing time for feeds.

⤋ Read More
In-reply-to » Can you beat me at the circle game? 😂 https://neal.fun/perfect-circle/

Can you automate the drawing with a script? On X11, you can:

#!/bin/sh

# Position the pointer at the center of the dot, then run this script.

sleep 1

start=$(xdotool getmouselocation --shell)
eval $start

r=400
steps=100
down=0

for step in $(seq $((steps + 1)) )
do
    # pi = 4 * atan(1)
    new_x=$(printf '%s + %s * c(%s / %s * 2 * (4 * a(1)))\n' $X $r $step $steps | bc -l)
    new_y=$(printf '%s + %s * s(%s / %s * 2 * (4 * a(1)))\n' $Y $r $step $steps | bc -l)

    xte "mousemove ${new_x%%.*} ${new_y%%.*}"
    if ! (( down ))
    then
        xte 'mousedown 1'
        down=1
    fi
done

xte 'mouseup 1'
xte "mousemove $X $Y"

Image

Interestingly, you can abuse the scoring system (not manually, only with a script). Since the mouse jumps to the locations along the circle, you can just use very few steps and still get a great score because every step you make is very accurate – but the result looks funny:

Image

🥴

⤋ Read More
In-reply-to » Interesting factoid... By inspecting my "followers" list every now and again, I can tell who uses a client like jenny, tt or any other client where fetches are driven by user interactions of invoking the app. What do we call this type of client? Hmmm 🤔 Then I can tell who uses yarnd because they are "seen" more frequently 🤣

@javivf@adn.org.es pretty much 👌

⤋ Read More

$ bat https://twtxt.net/twt/edgwjcq | jq '.subject'
"(#yarnd)"

hahahahaha 🤣 Does your client allow you to do this or what? 🤔

⤋ Read More
In-reply-to » Interesting factoid... By inspecting my "followers" list every now and again, I can tell who uses a client like jenny, tt or any other client where fetches are driven by user interactions of invoking the app. What do we call this type of client? Hmmm 🤔 Then I can tell who uses yarnd because they are "seen" more frequently 🤣

@bmallred@staystrong.run No! Never 😆

⤋ Read More

Interesting factoid… By inspecting my “followers” list every now and again, I can tell who uses a client like jenny, tt or any other client where fetches are driven by user interactions of invoking the app. What do we call this type of client? Hmmm 🤔 Then I can tell who uses yarnd because they are “seen” more frequently 🤣

⤋ Read More
In-reply-to » (#uug3i5a) @prologic I don’t understand what’s happening. It often happens with @aelaraji Replies are often simply disconnected.

@bender@twtxt.net It isn’t @aelaraji@aelaraji.com’s fault at all here 😅 I think the only way I can improve this somewhat is by introducing a similar convergence that I believe @movq@www.uninformativ.de built for Jenny which would fetch the mentioned feed temporarily to see if it contains the subject being replied to (in case it’s not in the cache).

I’ll think about doing this too, but I have to do it carefully so as not to cost too much in terms of resources or performance…

⤋ Read More
In-reply-to » @andros One thing I really liked about the hacker news rss feeds is the link to the comments. Reckon you can add that to the feed? 🤔

Andros’ feed is simply the direct link to submissions with at least 600 points. It doesn’t link to Hacker News, thus no comments.

⤋ Read More
In-reply-to » A visual flow chart diagram that illustrates how two different but very related concepts can lead to system accidents 👌 Media

These ideas are dr the two books:

  • Drift into Failure: From Hunting Broken Components to Understanding Complex Systems by Sidney Dekker (2011)
  • Engineering a Safer World by Nancy Leveson (2011)

The former I haven’t read. The later I haven’t finished reading 😅

⤋ Read More
In-reply-to » Also, I should cut down on coffee. Seriously, I've nearly had a ... I honestly don't know what it was; A Panic attack? A heart attack? I dunno, I just felt like my heart and lungs were so about to burst I had to go for a run to cope.

@prologic@twtxt.net @movq@www.uninformativ.de The side effects ARE what got me into drinking coffee in the first place, now it feels like I’m fighting them back for my life 😅

⤋ Read More
In-reply-to » A visual flow chart diagram that illustrates how two different but very related concepts can lead to system accidents 👌 Media

And the idea of asynchronous evolutions comes from system accidents where control failures emerge when system structure, constraints, and evolution are poorly managed.

⤋ Read More
In-reply-to » A visual flow chart diagram that illustrates how two different but very related concepts can lead to system accidents 👌 Media

The idea of drift into failure is small normal adaptations erode safety over time without people noticing.

⤋ Read More
In-reply-to » Anyone watching/watched Black Mirror Season 7? 😵‍💫😵 I've been watching the first episode and a couple of minutes into the third act then I was like ... Oh boy, I need a break! They're just so Fu__ing good, I'll give them that!

P.S: the couple first Seasons and Her (The movie) are the main reasons I find it a bit difficult to go back to mainstream social media or even care about smartphones 😆

⤋ Read More
In-reply-to » Anyone watching/watched Black Mirror Season 7? 😵‍💫😵 I've been watching the first episode and a couple of minutes into the third act then I was like ... Oh boy, I need a break! They're just so Fu__ing good, I'll give them that!

@movq@www.uninformativ.de LMAO! Right!? Things getting too real too quick I don’t even think I want to watch the rest.

⤋ Read More

A visual flow chart diagram that illustrates how two different but very related concepts can lead to system accidents 👌

  • asynchronous evolution
  • drift into failure

⤋ Read More
In-reply-to » @andros One thing I really liked about the hacker news rss feeds is the link to the comments. Reckon you can add that to the feed? 🤔

Here’s an example of what you end up with (I don’t follow the feed, but it’s in my pod’s cache)

⤋ Read More
In-reply-to » @xuu or @kat Do either of you have time this weekend to test upgrading your pod to the new cacher branch? 🤔 It is recommended you take a full backup of you pod beforehand, just in case. Keen to get this branch merged and to cut a new release finally after >2 years 🤣

@kat@yarn.girlonthemoon.xyz Yes see UPGRADE.md – I believe @xuu@txt.sour.is is now running this live after a couple of hiccups and a bug fix. So yeah if you can, that would be cool, basically looking for early beta testers (I was the alpha tester 🤣)

⤋ Read More
In-reply-to » @xuu or @kat Do either of you have time this weekend to test upgrading your pod to the new cacher branch? 🤔 It is recommended you take a full backup of you pod beforehand, just in case. Keen to get this branch merged and to cut a new release finally after >2 years 🤣

@prologic@twtxt.net i can give it a try MAYBE, i’ve been super busy and all over the place but i will put it on my task list to try to remember! do you have upgrade/migration instructions anywhere that i can follow?

⤋ Read More
In-reply-to » Anyone watching/watched Black Mirror Season 7? 😵‍💫😵 I've been watching the first episode and a couple of minutes into the third act then I was like ... Oh boy, I need a break! They're just so Fu__ing good, I'll give them that!

@aelaraji@aelaraji.com I love them! Now I want to be emperor of the universe :P

⤋ Read More
In-reply-to » Anyone watching/watched Black Mirror Season 7? 😵‍💫😵 I've been watching the first episode and a couple of minutes into the third act then I was like ... Oh boy, I need a break! They're just so Fu__ing good, I'll give them that!

@aelaraji@aelaraji.com I’ve only seen the first two episodes so far. S7E01 was just barely watchable for me, it’s way too realistic. This is supposed to be fiction, not a documentary! 😂

⤋ Read More
In-reply-to » Anyone watching/watched Black Mirror Season 7? 😵‍💫😵 I've been watching the first episode and a couple of minutes into the third act then I was like ... Oh boy, I need a break! They're just so Fu__ing good, I'll give them that!

@bender@twtxt.net yeah, they are. Usually, the full season gets published the same day if I’m not mistaken. And, please tell me you won’t be binge watching the whole thing at once!? 😆

⤋ Read More