#dev 2019-12-12

2019-12-12 UTC
[KevinMarks] and dougbeal|imac joined the channel
#
[tantek]
feeling particularly pressured today to show *something* of @-replies etc. to my posts
#
aaronpk
GWG_: i've been wanting my website to be a carddav server too! I've looked into it multiple times, but every time I try, the libraries I find are absolutely inscrutible
#
GWG_
aaronpk: Is the protocol that bad that it couldn't be written easily without using someone else's library?
#
GWG_
Although if you think something is hard...that scares me
#
aaronpk
this is supposed to be the canonical php library for dealing with it http://sabre.io/dav/carddav/
#
[tantek]
yeah I'm not a fan of all the *DAVs
#
[tantek]
however they do have the advantage of being built-in supported by Apple iOS client apps like Calendar
#
aaronpk
yeah that's really my only interest in them
#
aaronpk
I finally do have my iOS calendar and contacts app pushing data to my nextcloud instance. but i've already discovered some unfortunate inconsistencies... like the iOS UI field for a person's "website" gets written as a custom carddav field so nextcloud can't see it
#
[tantek]
right, that's part of the problem with CardDav and CalDav and vCard and iCal. lack of proper open test suites
#
aaronpk
at this point i'd probably be better off pulling data out of the nextcloud API rather than trying to implement carddav
#
[tantek]
frankly in this whole Twitter / standards blow-up, that's going to bite ActivityPub too - the lack of actual test suite (still!) for the AP federation protocol
#
aaronpk
that's already bitten activitypub
#
[tantek]
lack of test suites = proprietary extension leakage
#
aaronpk
it's like the first complaint every time there's a discussion about activitypub/mastodon/etc
#
aaronpk
including on today's hackernews thread
#
[tantek]
it will soon be 3 years since the ActivityPub REC, that should have been plenty of time for a test suite!
#
[tantek]
the lack of prioritizing it, while people are developing "works with Mastodon" solutions, is kind of a big problem for AP
bwintx and [fluffy] joined the channel
#
[fluffy]
Is there a particular way to change an RSVP status? Just updating the p-rsvp property doesn’t seem like it’s enough if that doesn’t cause the endpoint to actually re-parse the mf2
#
[fluffy]
and it seems like most endpoints don’t
#
[tantek]
it should
#
[tantek]
you have to resend a webmention
#
[tantek]
works with mine (and thus webmention.io)
#
aaronpk
yeah changing the p-rsvp value then sending a webmention again
#
[fluffy]
I mean I did resend it but that hasn’t updated it on https://hwc.dougbeal.com/event/2019-12-11-hwc/
#
Loqi
Homebrew Website Club - Seattle Area - 2019-12-11
#
aaronpk
the webmention spec talks about updates
#
[fluffy]
and that uses webmention.io
#
[fluffy]
but maybe there’s a hook that takes a while to execute?
#
[tantek]
looks like it - it's in Hugo
#
[tantek]
might need something to trigger a rebuild
#
aaronpk
it's a hugo site so there's no way to know its schedule for rebuilding the pages
#
[tantek]
SSGproblems 🙂
#
[fluffy]
yeah oh well
#
dougbeal
It cache's the json, so I have to delete it and regenerate
#
aaronpk
now i'm not sure whether webmention.io provides any clue that a webmention has been updated (other than the web hook feature)
gRegorLove joined the channel
#
dougbeal
fluffy: Your webmention is updated, but mine isn't. I think becuase I selected remote.
#
[fluffy]
thanks for updating anyway
davepeck, gRegorLove_, chrisaldrich, jakepDiscord[m], gRegorLove and vergence joined the channel
j12t, [Michael_Beckwit, [KevinMarks], cweiske, swentel, gRegorLove, gxt, j12t_, wagle, asymptotically, [LewisCowles], depone, [cheukting_ho] and [jgmac1106] joined the channel
#
swentel
yay :)
#
Loqi
😄
#
swentel
GWG_, more work ^ ;)
[grantcodes] joined the channel
#
[grantcodes]
Wow that's really cool swentel++
#
Loqi
swentel has 13 karma in this channel over the last year (30 in all channels)
#
swentel
thanks :)
#
swentel
you can also directly save the author from every microsub item while reading
j12t joined the channel
#
[grantcodes]
Oh that's a great idea. I will need to try and start building more of that into my stuff
#
[grantcodes]
I had autocompletion of mentions from the indieweb directory, but never really ended up using it 🤷‍♂️
#
swentel
indigenous now supports autocompletion too in content
#
swentel
it's so great to see all things coming together
#
[grantcodes]
How are they then marked up? An a tag with h-card?
#
swentel
no, just prefixed with an @ for now in the content property
#
swentel
I'm working on a filter server side to replace @usernames with actual links then
#
[grantcodes]
Ah, I used an a tag with h-card. That way the server is likely to send a webmention. But very few people probably parse @texts
#
swentel
hmm, true, that makes sense
#
swentel
But I don't send json (yet) with indigenous, I'd have to switch it completely, but it's probably worth it
j12t joined the channel
#
[grantcodes]
Ah yeah. I basically only ever use json. I'm sure it has other advantages too.
[tantek] and [LewisCowles] joined the channel
#
Loqi
swentel has 14 karma in this channel over the last year (31 in all channels)
#
[tantek]
CASSIS autolink parses and auto-links @-mentions in plain text
#
[tantek]
So my site does that, and anyone that uses that autolinker too
#
[LewisCowles]
I only just realized it’s not a page behaving like an app, but an app 😬
j12t, j12t_, asymptotically, swentel and [jgmac1106] joined the channel
#
[jgmac1106]
Google flagged my url shortner as a dangerous website.....nothing like telling audience members, "Click on see details, then proceed to unsafe site"
#
[jgmac1106]
ooh maybe I didn't force the redirect, lemme check
[LewisCowles] joined the channel
#
[LewisCowles]
Was it due to lack of https, or some other reason?
[KevinMarks] joined the channel
#
@seldo
"You can just create a file in this directory and you get a route in your web app with that name!" "Oh, like PHP?"
(twitter.com/_/status/1205155769215148032)
#
aaronpk
yessss
swentel and [tantek] joined the channel
#
Loqi
ok, I added "https://twitter.com/seldo/status/1205152990044180482" to the "See Also" section of /PHP https://indieweb.org/wiki/index.php?diff=67212&oldid=56809
[schmarty] joined the channel
#
[KevinMarks]
I'm basically writing PHP apps using nunjucks in node or jinja2 in Python
j12t joined the channel
#
aaronpk
meanwhile, in the last 10 years, php got all the good language additions from everything else
#
[KevinMarks]
does it have a good way of chaining async things now? (I'm not saying js does, quite)
#
aaronpk
well because each request is processed independently it often doesn't matter
#
aaronpk
and when you do need to do long running tasks you're better off with a proper job queue anyway and then it *really* doesn't matter
#
aaronpk
but if you wanna pretend you're writing node, there's always this https://amphp.org
#
[KevinMarks]
php has generator with yield now?
#
aaronpk
see what i mean
#
[KevinMarks]
ah neat, so I could do the coroutine pipeline stuff I do in python with PHP too
#
[jgmac1106]
excited to getting back to learning PHP in between semesters
#
[KevinMarks]
deploying PHP by ftp to the server is a lot quicker than the song and dance I do with node on AWS
#
aaronpk
there are so many good things about php now, and they keep getting rid of a lot of the bad things
[Sadik_Shahadu] joined the channel
#
[tantek]
not sure when song & dance ceremonies got so popular with developers, or why
#
[LewisCowles]
It’s because the premise of Agile falls apart quickly when you don’t have a high enough barrier to deploy
#
[LewisCowles]
For Indieweb it’s fine if a deploy fails and bad things happen
#
[LewisCowles]
It’s an edge-focused endeavour. A lot of the rest of the web is quite centralised, especially commercial apps
swentel and gRegorLove joined the channel
#
GWG_
Lot going on
[manton] joined the channel
#
swentel
GWG_, what do you mean by stripping url?
#
GWG_
swentel: If the share intent sends both a url and a title, only send the url
#
GWG_
Extract is probably a better word
#
swentel
ok, so basically what I'm doing anyway no?
#
swentel
(besides fixing the crash)
j12t joined the channel
#
swentel
or, in case there's text AND url, but the url is in the SUBJECT (which I currently don't check), send that?
#
swentel
GWG_, or what goes 'wrong' in your case (besides the crash maybe)
#
GWG_
Yes...
#
GWG_
Just make sure it sends the right thing?
#
swentel
well, that's a subjective thing no?
#
swentel
I don't know if you want text or url :)
#
swentel
and which post type you want to open
#
GWG_
swentel: If it is a bookmark, like, etc, URL
#
GWG_
swentel: If it's a note...text
gxt joined the channel
#
swentel
but I can imagine, someone wants to share a url in a note :)
Kkkk1 joined the channel
#
[tantek]
that's what auto-linking is for 🙂
[schmarty], alexm1 and [snarfed] joined the channel
#
jacky
the mf2 I get from some sites makes me want to cry
[KevinMarks], [manton], asymptotically, [schmarty], j12t, KartikPrabhu and deathrow1 joined the channel