@mariusor@metalhead.club
@mariusor@metalhead.club avatar

mariusor

@mariusor@metalhead.club

Mostly a programmer.

Implementing #ActivityPub in the #Go programming language.

Current projects:

  • #GoActivityPub - a library to use ActivityPub in Go.

  • #FedBOX - a generic ActivityPub service supporting the client to server API.

  • #brutalinks - a link aggregator inspired by (old) reddit, hacker news and lobste.rs built on top of FedBOX.

  • #oni - a single user ActivityPub server with minimal fuss.

My posts are mostly related to ActivityPub and web development.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

anatudor, to random

I'm on that other place too https://bsky.app/profile/anatudor.bsky.social

Don't know how I feel about it, but just to make clear that's me and I've grabbed the handle before anyone else did. Thanks to @ChallengesCss for the invite.

mariusor,
@mariusor@metalhead.club avatar

@anatudor you mentioned in your profile description that you're not terribly excited about being on the Fediverse. Is that still the case, or has it grown on you? :D

emilymbender, to random
@emilymbender@dair-community.social avatar

Here is another case study in how anthropomorphization feeds AI hype --- and now AI doomerism.

https://www.vice.com/en/article/4a33gj/ai-controlled-drone-goes-rogue-kills-human-operator-in-usaf-simulated-test

The headline starts it off with "Goes Rogue". That's a predicate that is used to describe people, not tools. (Also, I'm fairly sure no one actually died, but the headline could be clearer about that, too.)

>>

mariusor,
@mariusor@metalhead.club avatar

@emilymbender tangentially related, I am getting annoyed at all the people with ML degrees being dismissive of laymen trying to discuss AI alignment like it's more than a philosophical problem at present.

Sardonicus, to random
@Sardonicus@mastodon.social avatar
mariusor,
@mariusor@metalhead.club avatar

@Sardonicus erm, I would CW this one. My East European ancestry is tingling.

mariusor, to random
@mariusor@metalhead.club avatar

I haven't felt like posting what I'm listening in quite some time. I guess it's just Spotify's algorithm that plateaued, and I really haven't found anything good in the past year, or even longer. :(

But, going through the list of liked songs there's Anna Homler, an avant-garde artist that combines her made up language(s) with experimental music into weird lullabies for the children of the spheres. So here's O'sa Va'ya, from the album "Deliquium in C"

https://www.youtube.com/watch?v=8M3doWg0BHI

smallcircles, to fediverse
@smallcircles@social.coop avatar

Hurray 🎉

Forums on the .. The first version of the plugin for is now available.

Developed by The Pavilion.. check it out at: https://meta.discourse.org/t/activitypub-plugin/266794

mariusor,
@mariusor@metalhead.club avatar

@smallcircles that's amazing news. Thanks for the announcement!

b0rk, to random
@b0rk@jvns.ca avatar

would folks be interested in an "implement a toy version of HTTP/1.1 in a weekend” guide? I'm imagining something super basic (~100 lines of Python, not remotely standards compliant), just a server that opens a TCP socket, takes HTTP requests, and returns responses.

mariusor,
@mariusor@metalhead.club avatar

@b0rk that requires more intermediary steps as it's no longer a plain text protocol. :(

christianselig, to random
@christianselig@mastodon.social avatar

Got off my call with Reddit just now about the API. Bad news unless I come up with 20 million dollars (not joking). Appreciate boosts. https://www.reddit.com/r/apolloapp/comments/13ws4w3/had_a_call_with_reddit_to_discuss_pricing_bad/

mariusor,
@mariusor@metalhead.club avatar
drewdevault, to random
@drewdevault@fosstodon.org avatar

Time to finally throw in the towel on mobile Linux, back to Android for now

Thankfully I was able to get a PoC of Helios booting on the Pinephone so maybe someday soon I'll write my own mobile OS?

mariusor,
@mariusor@metalhead.club avatar

@drewdevault I don't remember if you commented anything about SailfishOS. Have you tried it?

It has similar application issues (or lack thereof) as the other mobile linux distros, but it works pretty well as a daily driver on supported handsets.

mariusor,
@mariusor@metalhead.club avatar

@aerique thanx. I would have thought that if Android is an option, so is SailfishOS.

mariusor, to random
@mariusor@metalhead.club avatar

A hot take reminder that perhaps transactional databases are not the right storage medium for ActivityPub objects. :D

https://indieweb.social/@bonfire/110458397307485839

anatudor, to random

Because people thinking "you know computers & shit" gets you dragged into things...

Please explain to me why would a banking eToken generator app refuse to work unless you give it permission to access the phone camera & all files including external storage.

Is this even legal?

The customer service dude on the phone kept insisting that we need to give those permissions, but did not answer the repeatedly asked question: why?

mariusor,
@mariusor@metalhead.club avatar

@anatudor I don't want to cover for anyone, but I can make the assumption that both permissions are needed for QR code reading, either directly from camera or from a file.

michael, to fediverse
@michael@thms.uk avatar

Question for all the people:

For I'd like to use the ActivityPub API, rather than the Mastodon API to pull replies.

For example: At the moment I'm using the api/v1/timelines/home endpoint to get all statuses in my timeline. I then attempt to get replies from the remote servers.

But the uri that mastodon returns in that response is to the Mastodon API endpoint. This is annoying, because obviously Mastodon != Fediverse, and I'd love to just go to ActivityPub, rather than implement each software separately.

Is it possible to somehow get ActivityPub endpoints for those statuses?

mariusor,
@mariusor@metalhead.club avatar

@michael every object has/should have a replies collection.

Once you load its ActivityPub representation, you can iterate through the collection which should be available at that URL and have all the replies.

[edit]: link to documentation: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-replies

mariusor,
@mariusor@metalhead.club avatar

@michael you load the URL with the proper Accept header. Eg using curl on your top post:

curl -H"Accept: application/json" https://mstdn.thms.uk/users/michael/statuses/110458184616368899/replies

mariusor,
@mariusor@metalhead.club avatar

@michael however I do not know why it doesn't have any posts. :( Mastodon has some quirks sadly when delivering ActivityPub.

mariusor,
@mariusor@metalhead.club avatar

@michael or, if your question was where you find the URL for the collection, it should be under the "replies" property of the Note object.

mariusor,
@mariusor@metalhead.club avatar

@michael that object doesn't seem to have a "reply" attribute. Like I said in my original reply, objects "MAY" have it, but it's up to the implementation.

If you can't find one, you should treat it as there are no replies, or at least that's what I would do if I was working on a generic activitiypub scraper.

Calckey might have a custom API to retrieve the replies, but then you're back at creating custom code for each implementation.

mariusor,
@mariusor@metalhead.club avatar

@michael I would start with the generic version first.

You should consider that some implementations don't expose the expected collections in order to avoid exactly what you're trying to do: scraping their content with impunity.

mariusor,
@mariusor@metalhead.club avatar

@michael when someone replies to a mastodon post from calckey, the Mastodon instance targeted receives an Activity with the reply as an Object.

But from these questions I gather that you're not very familiar with how ActivityPub works, so I think you should probably look at the specification at least in a cursory manner. There's a "push vs. pull" distinction there, and most servers implement the push part, but rarely bother having the pull part consistent with the specification.

mariusor, to javascript
@mariusor@metalhead.club avatar

Back from vacation, getting depressed again about having to write some .

Anyone in my list of developers willing to lend a hand? (Willing to pay consulting fee for getting me unstuck) 🙏

mariusor,
@mariusor@metalhead.club avatar

The component I'm struggling with is an inline editor with a toolbar. It was built using Lit-JS.

mariusor,
@mariusor@metalhead.club avatar

@sl007 I'm trying to create an HTML editor component corresponding to NaturalLanguageValues from ActivityPub.

Ie, wen you're logged you can just edit inline using document.execCommand functionality.

The existing code is here: https://git.sr.ht/~mariusor/oni/tree/master/item/src/js/oni-text-editor.jsx

liaizon, to random
@liaizon@wake.st avatar

for the unconference at in Italy I wrote on a note card: "ACAB Protocol (funding?)"
It was a pun to talk about the Matrix situation and now I keep thinking about what an ACAB Protocol would look like. How do you design a system that those in positions of power want to avoid at all costs?

mariusor,
@mariusor@metalhead.club avatar

@liaizon sadly if you want to have software built on top of said protocol, and if you, ideally, want that software to conform to the open-source ethos, preventing a group of people from using it is not something you should do.

Probably the open-source status of the code would weigh very little in this battle you seem to be waging, but on the other hand what kind of battle is it, if not a philosophical and ethical one?

mariusor,
@mariusor@metalhead.club avatar

> do not care about the open source ethos if that ethos doesn't first prioritizes the humanity underpinning said code.

@liaizon I know, I empathize, but I am not able to function like that. :(

mariusor, (edited )
@mariusor@metalhead.club avatar

@liaizon I don't fully agree with your point, but I now understand what you mean and it makes a lot of sense.

I'm not sure if it's my internal biases that jumped directly to thinking about the code, or you should clarify this point for everyone else when you say it next time.

mariusor,
@mariusor@metalhead.club avatar

@liaizon I agree with you that in a purely capitalist environment there are some difficult obstacles in the path of someone that wants to work both ethically and gainfully. I can't propose a solution outside of the thing which I'm doing: do expensive drudge work for the capitalists and free ethical work outside of that. This being said I'll revise my previous statement, which was predicated on donations not being the sole method of funding.

@raucao

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines