#dev 2019-03-13

2019-03-13 UTC
iasai, snarfed and [eddie] joined the channel
#
jacky
!tell swentel yeah, my site was trying to be clever and omit domain names, my fault!
#
Loqi
Ok, I'll tell them that when I see them next
iasai, KartikPrabhu, [jgmac1106], [tantek] and [eddie] joined the channel
#
[tantek]
I think I'm going to use "signed up for " as another alias for "going to " for RSVP:yes
[eddie], iasai, anth_x and [jgmac1106] joined the channel
#
[jgmac1106]
!Tell aaronpk in terms of collections Telegraph doesn't recognize children. I remove top level h-entry and then add it back
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
That's true. I guess I was worried about sending too many mentions from a post that is a collection so I didn't add that yet
#
Loqi
aaronpk: [jgmac1106] left you a message 25 minutes ago: in terms of collections Telegraph doesn't recognize children. I remove top level h-entry and then add it back
iasai, barpthewire, cweiske, KartikPrabhu, [kevinmarks] and swentel joined the channel
#
swentel
morning
#
Loqi
swentel: jacky left you a message 7 hours, 8 minutes ago: yeah, my site was trying to be clever and omit domain names, my fault!
#
Loqi
good morning!
iasai, [Rose], [Vincent], [kevinmarks] and [jgmac1106] joined the channel
#
aaronpk
ok now getting into the dev stuff for these posts
#
aaronpk
I *think* i'm going to make the top-level collection post an h-event rather than h-entry
#
aaronpk
primarily since my trips have a start and end date
#
Zegnat
Even more blurring of the line between event and entry
#
aaronpk
how so?
#
aaronpk
hm this is also making me want to fix a few things about my event display
#
[jgmac1106]
I think for a trip connection h-event makes sense and for a content collection for h-entry
#
sknebel
is curious what the collection markup is going to look like, esp. in regard to other posts with children
#
[jgmac1106]
A trip is an event
#
aaronpk
I already have collection markup, that's not new
#
aaronpk
I just haven't made the collection post an event before
#
[jgmac1106]
h-resume is a giant collection of different h-events and h-cards
#
sknebel
my last impression was that there's not really an established rule what 2 collection looks like
#
sknebel
*what a
#
sknebel
what is collection?
#
Loqi
A collection is a type of post that explicitly lists and/or embeds multiple other posts chosen by the author https://indieweb.org/collection
#
[jgmac1106]
Yes... No full agreement... But people seem to be coalescing around h children under one top h property
#
[jgmac1106]
I do my badges as a collection. The badge is a top h-entry and each issuance a child h-entry
#
sknebel
so all wiki pages with {{templates}} get detected as collections of h-cards? :D
#
aaronpk
that's more a post type discovery question
#
sknebel
which is related to "how am I gonna consume this", which is kind of important for markup decisions
#
aaronpk
at least with my travel plans there is a clear consuming use case
#
[jgmac1106]
And it seems logical there is a departure and return time and date
#
aaronpk
but maybe the answer is that travel plans are travel plans and we still don't go near the "collection" term
#
sknebel
and implementation-wise, special case it for "a series of children that are h-trip (or whatever the type was)" in e.g. the reader?
#
aaronpk
maybe "collection" isn't actually a useful term
#
aaronpk
haha yep sknebel that's the other way of saying that
#
[jgmac1106]
Having same conversation with jargon in dev and without jargon in main chat good practice
#
sknebel
yes, maybe generic "collection" support in e.g. readers doesn't work
#
[jgmac1106]
Yes trip is the word, a trip is a special h event with a collection of posts that occurred during a specific time or distance frame
#
sknebel
(on the other hand, using a property would easily resolve the difference between child elements like the h-cards and explicit members of the collection.)
#
[jgmac1106]
I added p-category and value in my collections to indicate if post is 1 out 5 2 out of 5.
#
sknebel
(sth like "u-part h-trip" for travels, or "u-part h-cite" for collections of generic posts (u- because I'm assuming urls for the individual parts exist)
barpthewire and [kevinmarks] joined the channel
#
[kevinmarks]
A collection post probably looks like an entry to readers, but may have nested other types inside it? So h-entry with h-cites in?
#
[kevinmarks]
The medium/quill/buzzfeed post editors are implicitly collections, with the buzzfeed one making it more explicit. I now wonder if this edges towards the Gutenberg Block model too
#
GWG
Please, no blocks
#
[kevinmarks]
I don't know the blocks model well enough, so it may not map to collection as seen in the existing patterns
#
GWG
They are stored using HTML comment markup
#
GWG
It is just a cringeworthy design for me
#
swentel
come to drupal ;-)
#
Zegnat
My brother is working fulltime with Drupal now. I am a little curious to jump in there
#
GWG
swentel, I sometimes think about leaving
#
GWG
But I am invested, even if the community pivots
#
swentel
yeah, I've been around for 12 years now in Drupal, hard to leave
#
swentel
not really active in core more though, that's the past
#
GWG
Also, sometimes I feel like I am propping up the WordPress Indieweb users.
#
[jgmac1106]
I am doing drupal training at work now, our new website is all Drupal...but they said they built a CMS on top of the CMS...that phrase scares me
#
[jgmac1106]
not a feeling gwg you are the WordPress rock
#
[jgmac1106]
It wouldn't exist without you
#
GWG
I always credit pfefferle, although he's focused on Activitypub right now, and doing well with it
#
Zegnat
I got the feeling Drupal is very much a framework offering a ligh-cms. So a lot will turn into CMS built on Drupal. (Correct me if I am wrong, swentel
#
GWG
I have to give webmentions some love
#
swentel
Zegnat, that's pretty much it yes
#
swentel
the ultimate goal is to have a set of components and libraries provided by the 'api' community, and then a 'product' community that builds a proof of concept cms
#
swentel
but that's still far away
#
swentel
but it's the ultimate dream
#
GWG
swentel, you are also really moving the needle on mobile
#
swentel
yeah, it's pretty close
#
@kevinmarks
↩️ we have a lot of tools in #indieweb for this kind of thing - we call the pattern PESOS: https://indieweb.org/PESOS - one tool that does this is granary: https://granary.io/ and the related tool http://brid.gy will bring replies in too
(twitter.com/_/status/1105817582593036290)
[Vincent] joined the channel
#
[Vincent]
Is anyone syndicating to Mastodon at the moment? I would like to do it from Node but I can’t find Mastodon API docs or a good Node module I can look at so I can understand how to do it. (I know I need an app token etc, which I have generated from my account). But the actual mechanism and URL etc needed to POST in to it, is evading me
#
swentel
[Vincent], I'm using bridgy fed atm, different mechanism of course, but could be fun to play with too.
#
[Vincent]
@swentel I didn’t realise Brid.gy could do it, I’ll take a look thanks
#
[Vincent]
:thumbsup:
#
aaronpk
I would definitely recommend the bridgy fed model rather than syndicating to an actual mastodon account
#
aaronpk
that turns your website into something that can be followed from mastodon rather than having to maintain another account and agree to someone else's terms of service for where that account lives
#
[jgmac1106]
...also just one more thing to break and mantain...there are WP and Known plugins for syndication
#
aaronpk
we need a name for that that isn't syndication, because it's not really
#
aaronpk
I guess it's just publishing really
#
aaronpk
syndication implies there's something you're syndicating _to_, whereas making your content available so that it can be subscribed to on mastodon is not syndicating to mastodon
#
swentel
just federating?
#
swentel
although I don't know to define in that universe
#
swentel
publishing in indieweb context also implies an action from the other side I guess?
#
aaronpk
federating is very jargony, but yeah I guess that's what they call it
#
aaronpk
nah I can publish something on my website even if nobody else sees it
#
swentel
mm right
#
swentel
crap, I just ran indigenous tests on my phone, now I lost my account
#
swentel
tests--
#
Loqi
tests has 4 karma in this channel over the last year (7 in all channels)
#
aaronpk
technically federating is the most accurate term because it encompasses both publishing and also receiving the posts, but i'm not sure that's the best term to use when telling someone the differences between syndicating to a mastodon account and turning their site into something that can be followed from mastodon
#
aaronpk
it's the same as my list of events
#
aaronpk
when you go into one, it then shows the main trip post at the top followed by all the individual plans below https://media.aaronpk.com/Screen-Shot-2019-03-13-09-50-27-DxK4WDPI5U.jpg
#
sknebel
aaronpk++
#
Loqi
aaronpk has 74 karma in this channel over the last year (259 in all channels)
#
aaronpk
fixing my mf2 markup now
#
aaronpk
apparently it wasn't actually putting them as child objects before
[eddie] joined the channel
#
[eddie]
man, now I'm itching me some collections! lol
#
aaronpk
i'm a little surprised I didn't have to really write any code to make this work
#
aaronpk
just fixing some bugs with how I display dates, but those fixes applied to regular events too
#
[eddie]
That's awesome!
#
aaronpk
have to decide whether I want to actually display these things differently from my regular events now
#
aaronpk
I do think I want some smarts around how this post is handled internally
#
aaronpk
for example if I add a new flight to the collection, I want the date range of the collection object to extend automatically
#
aaronpk
also can't decide if I want that top post to look more visually different like a header or something
#
aaronpk
cause right now it looks like another post in the list
#
[eddie]
I definitel feel like the top post should look differently
#
[eddie]
That part feels confusing
#
aaronpk
that's probably the case for every collection not just these trips
#
[eddie]
Yeah, definitely
#
[eddie]
It will help the mental model that it's a collection rather than a feed
#
aaronpk
I wonder what the right way to display that is
#
[eddie]
That's a good question lol
#
aaronpk
I could inset the posts below, give them a little more space
#
[eddie]
I was thinking two things. One: color differentiation or Two: space differentiation (either increasing the width of the top post or decreasing the width of the bottom posts)
#
[eddie]
Space definitely feels like the more natural
#
[eddie]
color feels more like a pinned post
#
aaronpk
I can't picture what i'd do with color
#
sknebel
I guess photo albums would be another interesting example for collections, with somewhat different display
#
[eddie]
That does already feel better
#
aaronpk
I have a whole different layout for photo albums already
#
sknebel
are you treating them as collections?
#
aaronpk
they just get displayed differently when the posts in the collection are phtoos https://media.aaronpk.com/Screen-Shot-2019-03-13-10-13-32-DCelEkwIT9.jpg
#
sknebel
cool, wasn't sure if those were groups of photo posts or just posts with photos in the content
#
sknebel
(or multi-photo posts)
#
aaronpk
yep each of those is its own photo post https://aaronparecki.com/2017/03/11/8/loyal-legion
#
Loqi
[Aaron Parecki] The Bitter End at Loyal Legion
#
aaronpk
you can navigate through the other ones in the collection at the bottom
#
[eddie]
How does your site know that the collection is an "album" does it scan all the post types of the children before selecting the layout?
#
[eddie]
:thumbsup:
#
aaronpk
(it actually does it at index time and writes it to the database cache)
#
[eddie]
Ahhh okay, that's better
#
dougbeal
What should the callback url be for testing if WebSub is working?
#
aaronpk
dougbeal: it has to be something that can receive the post
[Rose] joined the channel
#
aaronpk
this will help you test https://websub.rocks/
#
aaronpk
eddie I want those play posts too
#
[eddie]
So I did a couple of things: first, I enabled the Parental App on iOS on the switch so that it sends play and other data to their servers
#
aaronpk
does it not do that by default?
#
aaronpk
it shows me other peoples play times though
#
[eddie]
Correct, but those aren't available from any API I can find
#
[eddie]
Yeah, so there IS another mysterious endpoint we might be able to fetch from
#
[eddie]
Step Two (the tricky part) using Charles Proxy (or some other sniffing agent) you have to get the OpenID/OAuth credentials that get passed from the iOS app to the nintendo servers. This also means temporarily allowing Charles proxy to decrypt your HTTPS by installing a root certificate on your iPhone. You can delete that after retrieving the OpenID credentials
#
aaronpk
haha what
#
[eddie]
Step Three: I built a node.js script that uses those from a config file to fetch the data and post it via Micropub
#
[eddie]
Every 15 minutes they expire the Bearer token, so every time my script runs it has to refresh the token (if expired) and then use the new Bearer token
#
sknebel
hack t̶h̶e̶ ̶p̶l̶a̶n̶e̶t̶ yourself
#
sknebel
(unicode strike-through. display quality may vary. terms and conditions apply.)
#
[eddie]
You just grab their grant_type, session_token, client_id, token_type and access_token and then my script works flawlessly
#
aaronpk
"just"
#
[eddie]
Also the API just tracks the play time for the entire day, so the code has to be smart about remembering what play times have already been sent to the server and to wait until the play times don't change so that it doesn't send a bunch of play posts in the middle of your play session
#
[eddie]
Definitely not OwnYourGram level of participation
#
aaronpk
huh I don't have any of these kinds of passive posts yet. closest is food I think.
#
sknebel
your "still here" indicator goes in that direction
#
aaronpk
true but it isn't a post itself
#
[eddie]
I'm very excited about these passive posts. I've got my podcast listens and my plays now
#
[eddie]
I also have an idea about how to get my NintendoSwitch script to be able to send to my site when I'm "actively playing" a game (similar to your "I'm still here")
#
aaronpk
hah nice
#
aaronpk
do you have a "now" page?
#
aaronpk
could add it there :)
#
aaronpk
to make it really "now"
#
[eddie]
Yeah, that would be great!
#
[eddie]
My now page does show when I'm in a trip on Overland
#
aaronpk
oo nice
#
[eddie]
so it seems to make sense for playing games too
#
swentel
ooh, and then a link with a livestream :)
#
swentel
but yes, the now would be cool, then I can come online and play against you :)
#
[eddie]
heh!! If I played games on a PC I would totally do that as well. No easy way to stream a Switch
#
aaronpk
Does it not work to output the hdmi to a capture card? It must
#
[eddie]
Probably does. But that would require putting a capture card in my living room 😆
[jgmac1106] joined the channel
#
[jgmac1106]
then eddie gets a Ninentdo labo and figures out some fun hacks with that
eli_oat joined the channel
#
[Rose]
So, 2 things, Eddie where can I find your script? And Aaron, have you documented how you're doing "still there"?
#
[eddie]
[Rose] I'll have it online in a gist shortly 🙂
#
[Rose]
Awesome
#
[Rose]
I would love to have an instagram story-like aspect for a now page, so I can show stuff without it being on my site permanently, but with some stuff being permanent
#
[Rose]
An IWC project
#
aaronpk
[Rose]: this isn't very much but this is what I've got on that https://aaronparecki.com/2017/05/19/18/still-here
#
Loqi
[Aaron Parecki] I'm Still Here!
#
@janboddez
I'll soon cook up a Bridgy-like WordPress plugin that regularly pulls in Mastodon and Twitter replies and such. (I've chosen to not include backlinks in my crossposted statuses, so webmentions aren't really possible.) Sticking to a single protocol is… https://mastodon.social/@janboddez/101743882374785019
(twitter.com/_/status/1105843245286899712)
[pfefferle] joined the channel
#
[Rose]
Better than nothing. Thanks Aaron!
#
aaronpk
what I really need now is a quick way to add posts to my collections
[kevinmarks] joined the channel
#
[eddie]
[Rose] Here is my nintendo switch import script: https://eddiehinkle.com/2019/03/13/5/code/
#
Loqi
[Eddie Hinkle] nintendo-switch-importer.ts
#
[eddie]
If you want it as a gist, there is also a syndication link on the bottom to the github gist copy of it
swentie joined the channel
#
[eddie]
If you decide to actually use it, I should write up a couple tips about the OpenID header fetching.
#
sknebel
aaronpk: hm, micropub doesn't explicitly mention how children work?
#
aaronpk
I think it's straightforward with JSON requests?
#
aaronpk
although updates might need special support for children
#
sknebel
right, was thinking updates
swentel joined the channel
#
aaronpk
in the mean time I can just make a UI in my own site for this if I knew what sort of UI I wanted
[jgmac1106] and jackjamieson joined the channel
#
[jgmac1106]
kevinmarks I still get sent trip summaries from Google photos all the time
#
[jgmac1106]
well really from Google as it cotains my flights, photos, reviews (if I write them)
#
[jgmac1106]
on Android->photos->photo books. That is where my trips get sent now
#
aaronpk
that worked
#
aaronpk
it's ugly but it works. it gives me a list of URLs in a text field and I can add or remove or reorder them
#
[jgmac1106]
apologize they are in albums, each trip becomes an album, the book loses all the map data
#
aaronpk
good enough for now
#
aaronpk
at least this way I can create these faster
#
aaronpk
gonna push this and make my first trip post
#
aaronpk
always a good idea to push code right before a 14-hour flight right?
#
[jgmac1106]
no..do it on the flight
#
Zegnat
Well, aren’t you always around to push from the air anyway aaronpk? No real difference then
#
aaronpk
probly no wifi on this flight
#
aaronpk
also I wish the line on my map went the right way lol
[stefp] joined the channel
#
aaronpk
hmm these aren't even a special post type so I can just go create an event in quill to make a new trip!
#
[eddie]
That's pretty nifty!
#
aaronpk
hm i'll need to do a better job making a map image of these...
#
aaronpk
or not include a map
#
aaronpk
that's one difference from a regular event
#
aaronpk
oh no lol my trip sent a webmention to the posts in the trip
#
Loqi
[Aaron Parecki] Tokyo to Los Angeles, Los Angeles to Portland https://aaronparecki.com/2019/03/21/1/map.png
#
aaronpk
which I guess is true
#
aaronpk
but maybe not what I want to show
#
aaronpk
I guess I fix that on my webmention receiving code? if a post gets a webmention from a source URL that is a collection that contains the post, ignore it?
#
[eddie]
aaronpk OR you could check if the type of post is a trip, and if so utilize the webmention to say "Part of the following trip" with the webmention of the trip
#
[eddie]
So that the trip essentially auto-links itself so people can find the trip from the individual post 🙂
idstam joined the channel
#
aaronpk
I don't need the webmention for that, it knows it already
#
aaronpk
my photos do that already I just need to port it to the regular collections
#
[eddie]
ohhhh gotcha
#
[eddie]
:thumbsup:
snarfed and eli_oat joined the channel
#
sknebel
feels like adding could also be a state - e.g. shouldn't all checkins during the trip time default to "part of trip"?
#
aaronpk
I thought about that but that isn't actually my goal with this post
#
aaronpk
i do want it to be a curated set of things
#
aaronpk
like if you go look at my checkins there are a bunch that aren't particularly interesting right now
#
sknebel
makes sense
#
sknebel
and I guess the time range of the trip could still provide you with that information if you wanted it for other purposes
#
aaronpk
Possibly every checkin with text or a photo could be automatically added but I'm not quite sure about that
#
aaronpk
I'm going to use this trip as a test to see what I actually want to include in the post by doing it all manually
#
aaronpk
i guess I'm thinking about it more like how you'd take all your vacation photos and put only a few of them into a physical photo album
#
aaronpk
except this isn't physical and they aren't just photos haha
[schmarty] joined the channel
#
[schmarty]
i am very interested in this because i have a heck of a time doing this after-the-fact.
#
sknebel
right, it's tracking everything vs a presentable end product
#
sknebel
both of which are useful, but not solved by the same thing
#
aaronpk
Yeah exactly
#
aaronpk
I have a *lot* of posts generated during the trip so maybe what I need is some sort of UI to quickly select which ones should go into this post from a subset that my site can be smart about generating
#
aaronpk
so best of both worlds
#
[eddie]
That does seem pretty handy
#
[eddie]
Show all posts within a given time period with a button to "add to collection"
#
aaronpk
use cues like time range and "interestingness" to prompt to add them but still have adding them be a manual set
#
aaronpk
I'll probably have some food posts (with photos) I want to add too :-)
#
sknebel
and probably some "had starbucks at the airport" you don't :D
#
aaronpk
Haha yes
eli_oat, snarfed, anth_x2, [tantek] and barpthewire joined the channel
#
jeremycherfas
Woohoo. My PHP listens script can now extract the salient details for an episode from the Overcast extended OPML and create a post in Grav with resized image artwork. That'll do for today. Tomorrow, polish the display template. Might even run it for real and see what happens.
#
Loqi
does a happy dance!
#
@schnarfed
↩️ @janboddez these kinds of webmentions (aka backfeed) are definitely possible without backlinks! https://brid.gy/about#link
(twitter.com/_/status/1105884992616316928)
#
@schnarfed
↩️ @janboddez these kinds of webmentions (aka backfeed) are definitely possible without backlinks! https://brid.gy/about#link
(twitter.com/_/status/1105884992616316928)
#
jeremycherfas
joins Loqi in the happy dance
#
idstam
I'm building a static site generator. What feed format should I choose A:tom, RSS S .9, 1, 2?
#
snarfed
!tell eddie hi! just fyi, https://eddiehinkle.com/2019/03/13/5/code/ is 500ing
#
Loqi
Ok, I'll tell them that when I see them next
#
snarfed
idstam: people around here will usually recommend h-feed. more forward looking, if not as widely supported yet. https://indieweb.org/h-feed
#
idstam
snarfed: That was nice. I'll go for that first.
[eddie] joined the channel
#
[eddie]
oh uh!
#
Loqi
[eddie]: snarfed left you a message 6 minutes ago: hi! just fyi, https://eddiehinkle.com/2019/03/13/5/code/ is 500ing
#
[eddie]
something went wrong! Thanks snarfed!
#
snarfed
i love error reporting tools for this kind of thing. they email you every time your site serves a 500, etc. (ideally only on new ones, to avoid floods.)
#
[eddie]
I have one for my homepage
#
[eddie]
unfortunately i only broke my individual permalinks for some pages
#
[eddie]
I should probably instead add an error reporting for one of each post type
#
snarfed
[eddie]: i'm guessing the one for your homepage is a monitoring probe? ie it fetches it every minute or so and tells you if it's down? or is it built into your site?
#
[eddie]
that would help catch when I break something based on various post type logic
#
[eddie]
Yeah it's an external monitoring probe
#
jeremycherfas
Do you recommend any specific one snarfed?
#
Loqi
definitely
#
jeremycherfas
Or [eddie] ?
#
[eddie]
Ohhh you mean something built into the site, snarfed?
#
snarfed
ah. yeah these are different. they're catch-all error handlers built into your site's code itself that trigger whenever you have an uncaught exception or serve a 500, etc
#
[eddie]
Ohhh that's a good idea
#
snarfed
both are good and worth using
#
snarfed
[jeremycherfas] they're pretty dependent on framework, host, language
#
jeremycherfas
I thought you meant external
#
[eddie]
In fact, I could add one that pushes errors into a microsub reader channel as well
#
snarfed
jeremycherfas: i use https://cloud.google.com/error-reporting/ for bridgy, granary, etc. it's awesome, but primarily for stuff on google cloud
#
[eddie]
jeremycherfas I also use updown.io
#
snarfed
monitoring++
#
Loqi
monitoring has 1 karma over the last year
KartikPrabhu joined the channel
#
[eddie]
Yay, the permalink if fixed
#
snarfed
[eddie]++
#
Loqi
[eddie] has 36 karma in this channel over the last year (95 in all channels)
#
jeremycherfas
Thanks snarfed and [eddie]
#
[eddie]
adds better error handling including Microsub notifications of errors to my itches
#
[jgmac1106]
I use pingdom but it cost money
[smerrill] joined the channel
#
[smerrill]
Uptime Robot has a free tier.
#
snarfed
i'd also encourage people to distinguish between *outages*, which is what uptime monitoring is generally for, vs errors/bugs, which are better caught and aggregated by buillt in error reporting.
#
snarfed
and especially for self care etc, be deliberate about what you consider an "emergency," ie something worth getting worked up about or interrupting whatever you're currently doing. outages may be worth it; bugs usually aren't.
#
[jgmac1106]
... As someone who just discovered an error log that was 1.4 gigs large.. Wish I had it on my personal sites
#
snarfed
hah, yes. the "reporting" part of error reporting!
#
snarfed
errorreporting++
#
Loqi
errorreporting has 1 karma over the last year
swentel and [kevinmarks] joined the channel
#
GWG
Afternoon all
#
GWG
aaronpk, like the trip stuff
#
GWG
I need to brainstorm on that
#
dougbeal
jeremycherfas++ Nice, looking forward to extracting overcast listens
#
Loqi
jeremycherfas has 10 karma in this channel over the last year (29 in all channels)
#
jeremycherfas
Thanks. I’ll share as soon as it works well enough.
[schmarty], snarfed, iasai, [jgmac1106] and [cleverdevil] joined the channel
#
[cleverdevil]
!tell [aaronpk] it would be cool if Aperture included a bit more metadata on feeds within channels. Presently, all it returns is "url". I'd love it if it also had a title or name, etc. This would be for a specialized microsub client that generates shareable OPML files.
#
Loqi
Ok, I'll tell them that when I see them next
iasai joined the channel