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.
To the parents or teachers: How do you teach kids to program these days? 🤔
If you just do a square, the score is still surprisingly high … https://movq.de/v/68eb406e17/s.png 😅
@bender@twtxt.net Oh 🤣🤣🤣
@prologic@twtxt.net ah, yes, a feed that I have muted. 😂
Should ink to this
@javivf@adn.org.es the demo doesn’t work. When trying to login, it simply times out.
Hmm not sure how that link is 404’kng for you 🧐 It doesn’t here 🤦♂️
@prologic@twtxt.net oh, sorry, you are right. Beautiful 404. The most beautiful 404 I have ever seen. Tremendous! 🤪
@bender@twtxt.net What you talk’n about 🤣 It’s not broken, it’s perfectly functional 🤣
@prologic@twtxt.net first we need to fix broken links. 😅
@lyse@lyse.isobeef.org Seems legit 😅
I have a great idea for fixing the US economy. Get rid of all the nuclear weapons 🤣
@javivf@adn.org.es Wanna list it on twtxt.dev? 🧐
@javivf@adn.org.es Ahh! So this is your client implementation? 🧐
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. :-)
@movq@www.uninformativ.de Bwahahaahaaa, this is fucking brilliant, I love it! :-D What a wonderful thing to start my Sunday.
@prologic@twtxt.net This was like 20 minutes, but yeah 🤣
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.
Also you have too much time on your hands 🙌 Haha 😂
@movq@www.uninformativ.de Only 99.9% pfffft 🤣
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"
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:
🥴
Aqui diz que dá pra acessar vários jornais e revistas pelo serviço BibliON, mas eu acho que é tudo mentira, não achei nenhum jornal ou revista :(
Was just looking at the client you’re using Twtxtory 🤔 Very nice! 👍 is this your client, did you write it? I’d not come across it before!
@twtxtory@twtxtory.adn.org.es Hello 👋 Welcome to Yarn.social / Twtxt 😅
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 👌
@quark@ferengi.one I do have an idea for syncing this 🤞
@prologic@twtxt.net well, this fork will work. I an fork this one with jenny, not so with Yarnd.
If you enjoy anything #chess related, @lichess@lichess is a fantastic, and #FLOSS, platform.
As I recover from yesterday’s viral episode (ugh!) I’m getting some distraction playing the wonderful (and often hard for me) #lichess puzzles: https://lichess.org/training
$ bat https://twtxt.net/twt/edgwjcq | jq '.subject'
"(#yarnd)"
hahahahaha 🤣 Does your client allow you to do this or what? 🤔
Bahahahaha 🤣
@bmallred@staystrong.run Hehe, @bender@twtxt.net is gonna be upset with you for “making up a thread/subject” 🤣
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 😆
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 🤣
First draft of yarnd 0.16 release notes. 📝 – Probably needs some tweaking and fixing, but it’s sounding alright so far 👌 #yarnd
It worked! 🥳
yey! it works! Good night @bender@twtxt.net!
@aelaraji@aelaraji.com let me reply before going to sleep. 😂😂😂
@test_dont_fetch@aelaraji.com Let’s raise another from the dead! “Facio, Voco, Ferre” 🧝 🪄 #ForScience
@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…
@prologic@twtxt.net I don’t understand what’s happening. It often happens with @aelaraji@aelaraji.com Replies are often simply disconnected.
@bender@twtxt.net Nah it’s there but it’s a reply to a thread that isn’t found here hmmm 🤔
@aelaraji@aelaraji.com I replied to this twtxt with https://twtxt.net/twt/yqrdx4q, and it created its own, totally unconnected.
I replied to a twtxt from @aelaraji@aelaraji.com, which is now gone(?).
@aelaraji@aelaraji.com I don’t think they have ever replied to anyone. Just checked their raw feed.
@bender@twtxt.net Oh I see hmmm 🧐
Andros’ feed is simply the direct link to submissions with at least 600 points. It doesn’t link to Hacker News, thus no comments.
/ME slipping a note under @klaxzy@klaxzy.net’s keyboard.
Note: “You should check https://marginalia-search.com/ I bet you’ll love it.”
@bender@twtxt.net Well… I don’t believe it’s possible to prevent or avoid all system accidents. However, managing system safety and putting in control structures goes a long way 👌
@prologic@twtxt.net is just is! For me, that is.
@bender@twtxt.net How is this dense or boring? 🧐
@prologic@twtxt.net I jested, of course. Way too dense (and/or boring) for my liking. 🤣
@prologic@twtxt.net and the aim, and end result, is that by reading and learning from it you will prepare yourself to nearly completely avoid accidents. Am I right? 🙂
@bmallred@staystrong.run yeah! you’re right. Unfortunately, Decaf isn’t a thing where I live 🤷
@bender@twtxt.net Not quite sue I understand your reaction 🤣
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 😅
Hmm. What can I say? 🧐🥴 OK. 🤭😅😂
@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 😅
@andros@twtxt.andros.dev HAHA! Easy, we’ll just ask Redream to make a little something for you! I just hope it doesn’t come with a subscription fee for… taking time off of it tho! 😆
And the idea of asynchronous evolutions comes from system accidents where control failures emerge when system structure, constraints, and evolution are poorly managed.
The idea of drift into failure is small normal adaptations erode safety over time without people noticing.
@bender@twtxt.net allow me to try and explain over several Twts…
@kat@yarn.girlonthemoon.xyz saving you a bookmark:
The following flags no longer exist:
--max-cache-items
--max-cache-ttl
Instead use --max-age-days
, which controls how much of the cache is pulled back for Timeline, Discover and Mentions views.
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 😆
@movq@www.uninformativ.de LMAO! Right!? Things getting too real too quick I don’t even think I want to watch the rest.
@prologic@twtxt.net I don’t understand the diagram, nor have any idea of what’s about. 👌🏻
A visual flow chart diagram that illustrates how two different but very related concepts can lead to system accidents 👌
- asynchronous evolution
- drift into failure
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 yayyy bookmarking ty!!!
i can finally talk about it here: i’m doing contract sysadmin work for fujocoded!!!!!!
Here’s an example of what you end up with (I don’t follow the feed, but it’s in my pod’s cache)
@andros@twtxt.andros.dev 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? 🤔
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 🤣)
love4eva is gradually becoming more functional, with the power of wildcard certs, memcached, and various quality of life improvements! :D
I HATE BRAIN ZAPS
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?
@movq@www.uninformativ.de god same T__T
@mana@yarn.girlonthemoon.xyz SHE WAS 16 HERE!!!!! RAPPING IN 3 LANGUAGES LIKE THAT’S INSANE RIGHT
@mana@yarn.girlonthemoon.xyz i LOVEEEE her 2018 BD event sm
@movq@www.uninformativ.de I hightly doubt that I am wiser than you. :-D
@bender@twtxt.net Ha! It turns out, some cows indeed have magnets in them: https://en.wikipedia.org/wiki/Hardware_disease
@andros@twtxt.andros.dev Thanks! 🙏 Just re-followed @important_dev_news@n8n.andros.dev 👌
@aelaraji@aelaraji.com I love them! Now I want to be emperor of the universe :P
Tem dois anos mas está já bem encaminhada. Noutro dia tínhamos um saco de terra em casa, e ela:
– O que tem aquele saco?
– Terra
– Terra da fraternidade?
Feliz 25 de abril :cravo:
O balatro sai caro
What does “dev” (developer) mean?
@lyse@lyse.isobeef.org You must be wiser than me then. 😅 This effect only really kicked in with Covid for me. 🥴
@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! 😂
I decided to use Imagor to optimise and transform the images into a stream. I am very happy with the results!
It is written in Go and is easy to run in Docker.
https://github.com/cshum/imagor
#selfhost
@prologic@twtxt.net
I think it is mature enough now: https://isah-twtxt.andros.dev
If anyone is interested in transforming an RSS feed to twtxt using n8n, send me a DM 😜
@bender@twtxt.net Haha 🤣 Steady fingers? 🤔
@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!? 😆
@prologic@twtxt.net are you sure you are legally blind, mate? I didn’t try too hard, and only two, or three times, but the best I got was like 72%. 😅