• 2 Posts
  • 20 Comments
Joined 3 years ago
cake
Cake day: June 22nd, 2023

help-circle







  • I meant see what AP (Activitypub) aimplementation Mastodon is using, and adapt that implementation, not the entirety of Mastodon. In fact quick web search immediately finds there are multiple pre-packaged Ruby gems for Activitypub, so just use one.

    I looked at the Wikipedia article about AP and it’s kind of bureaucratic but I don’t see much difficult. Yeah it’s not suited to a raw beginning programmer but it shouldn’t take a big expert. OP, have you done much programming?

    I see on Wikipedia that there’s a new thing called “AT Protocol” that’s supposed to improve on AP. That might also be worth looking into.



  • It might be a bit much for a beginner but for someone with some programming basics it could be a decent way to learn more. It’s all back end stuff, so not much browser madness. Rails has its learning curve but has tons of convenience features. The part I have trouble understanding is why anyone would want this. Say federation appears. Then what? Anyway, OP, if you take this on, I can probably give a bit of technical advice if you want it.







  • solrize@lemmy.mltoscience@lemmy.world•maths
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    8 days ago

    This is cool, it’s sort of like the hanging chain problem. Simplest solution probably uses the Lagrangian. Basically you want to minimize the potential energy, which is found by adding the gravitational potential and the spring energy as a function of where on the spring the weight is hanging. Then integrate the Euler-Lagrange equation to get the shape of the uncoiling spring.

    See https://en.wikipedia.org/wiki/Catenary for info about the hanging chain. There are good online tutorials about how to solve it but a quick web search didn’t find the one I remembered.