pleroma.debian.social

pleroma.debian.social

Wouter Verhelst | @wouter@pleroma.debian.social

Debian Developer. husband. FOSDEM organizer. Tennis lover. Amateur musician.

If it ain't fun, you're not doing it right.

#TIL that moose has parameterized roles.

When metaprogramming isn't meta enough.

@larsmb
At least they give you a language which you speak. I've been served a French version of a site because 'Belgium', when I speak that less well than English...

So the activity streams vocabulary says a 'Link' object has properties href, rel, mediaType, name, hreflang, height, width, and preview and nothing more; a 'Mention' object extends the Link object without adding properties, and example 58 shows how you construct a Mention object which has the property 'summary'... that is allowed nowhere in the same document for that specific message.

No, the spec is absolutely not ambiguous.

#TFW I'm working my way through the ActivityPub vocabulary and I'm able to parse 141 out of 143 examples in the spec when I get to example 103 and see that the vocabulary actually wants to do multiple inheritance which means I need to use moose roles, not objects, so I kinda have to now rethink everything...
person with open mouth clearly not sure what to do now

@foone
They did actually create the processor in the PS3.

Sony totally should have added the / in the product name though.

@Ganneff
@venthur
Forgot to mention:

Planet Debian uses Django templates, which PtLink does not support (because perl, and Dotiac::DTL doesn't actually work as advertised -- yes, I tried). So I translated the templates to perl. Since Planet Debian has templates in a different git repository, so do I ;-)

https://salsa.debian.org/wouter/pd-templates

@venthur @Ganneff (I just updated the config, seemed to work with no conflicts, so yay)

@venthur @Ganneff Oh yes! https://salsa.debian.org/wouter/ptlink. It's in production use for https://planet.grep.be, and I have a (somewhat outdated by now, but still) configuration that works for Planet Debian at https://salsa.debian.org/wouter/pd-config/-/tree/ptlink?ref_type=heads

@mirabilos
I read it as "don't bother using your cache if it's older than this"

Unfortunately the spec is not very detailed, so while I think my reading is correct, I'm not confident enough of that to state that yours is wrong.

Regardless of which is the intended reading, it could definitely benefit from a "don't bother asking me if your cache is more recent than this" field.
@Ganneff @venthur

@venthur
PtLink uses a format-agnostic parser to figure out details of a stream, so that's not an issue (it will just return undef if a valid is not set, whether because it's optional and not set or because the format doesn't support it).

It also uses HTTP headers such as if-changed-since (not sure about etag, might have that too) to tell the server not to send anything unless there's an update since the last change.
@Ganneff @mirabilos

@mirabilos
Checking https://www.rssboard.org/rss-specification#ltttlgtSubelementOfLtchannelgt, I'm not sure that ttl actually means "do not update more often than this"; instead, my reading is that it means "if the source is older than this value, invalidate the cache entries for them". So I don't think it's a bug to update at every run...
@venthur @Ganneff

@mirabilos
I've never heard of this attribute.

Can you give me an example of a feed with this attribute? That'd make it easy to add a (currently failing) test case which I can then implement properly.

Preferably as a bug report against the salsa repository.
@venthur @Ganneff

@Ganneff
Unfortunately it also has a maintainer who hasn't been as active as he'd have liked. Hopefully I can fix that soon 😉
@venthur

@venthur
But on top of that, PtLink comes with

- a full test suite with known failures that were fixed and 93.1% coverage
- multi threading support
- a modular design with plans to also support ActivityPub (and perhaps more), as that's more popular than blogs these days.
@Ganneff

@venthur
So does ptlink, the thing I wrote 😉

The basic ini format of planet Venus is simple to parse and thus easy to be compatible with. Also the html template engine they used had origins in perl, which I use for ptlink. So backwards compatibility with Venus is trivial and done.
@Ganneff

@wyatt
Would be rather impressive if true though

@ives
Ik ben in 2019 van België naar Zuid-Afrika verhuisd, wat geen zomeruur/winteruur kent.

Toen ik in België woonde, dacht ik dat ik voor het verzetten van de klok ongeveer een week nodig had om mee terug op 'normaal' te zetten.

Ik weet nu beter. Sinds een half jaar of zo na mijn verhuis word ik elke dag consistent wakker op het zelfde uur. Dat lukte mij voordien niet.

Een uur verzetten kost je een stuk meer dan dat uurtje!
@Pentaxke

Norwegian car in Kirkenes, 15km from the Russian border...
a small van in the colours of the Ukrainian flag, with the words 'stop war' and 'stop Putin' stencilled in the sides and back

First time in my life I have two pending trips at the same time.

On holiday currently with the return flight still happening, and a work trip to happen late next month 🤷
screenshot of my Emirates app with the two flights

The world: whales are almost extinct! We should protect them!

Norway and Japan: but "Science"

Norway, really:
a picture of a whale salami

»