#dev 2020-07-24

2020-07-24 UTC
prologic left the channel
#
[tantek]
I'd say showcase your biggest strengths!
#
[tantek]
that way better chance you'll be contacted for those reasons and be a good match
[kimberlyhirsh], [tw2113], samwilson, Rixon, [jgmac1106], [chrisaldrich], geoffo, justache, nickodd and KartikPrabhu joined the channel; nickodd left the channel
#
Summer[m]
Morning, good people!
[Rose] joined the channel
#
Summer[m]
Wondering what a Micropub server expects in the mp-syndicate-to query parameter: the syndication target's uid or name? I figure it's the uid but worth checking. Can't seem to find anything in the spec on this.
KartikPrabhu, [Chaitanya] and swentel joined the channel
dckc, moppy, KartikPrabhu, [fluffy], [KevinMarks] and jeremy joined the channel
#
Zegnat
Really wish I could make the Micropub popup on Saturday, but I have a family dinner. Good to get a little socialising in. But I will be keeping an eye out for any and all IndieAuth popups
#
GWG
Zegnat: We'll record it
#
Zegnat
I was hoping for notes in chat, so I could speed read between courses. Can that be arranged? ;)
#
GWG
Zegnat, etherpad work?
#
Zegnat
I am just joking of course, but yeah, I might just keep the etherpad open on my phone.
KartikPrabhu, [jgmac1106] and [KevinMarks] joined the channel
#
[KevinMarks]
today in js being helpful - if I forget to set a date, nunjucks will happily coerce undefined into current time on the server, which is in UTC, but my client is in BST. yay
#
Loqi
yay!
#
[KevinMarks]
I didn't notice this originally because it was winter and the client was in GMT. timezones--
#
Loqi
timezones has -1 karma over the last year
#
jbove
What is nunjucks?
#
Loqi
It looks like we don't have a page for "nunjucks" yet. Would you like to create it? (Or just say "nunjucks is ____", a sentence describing the term)
#
@jgmac1106
For the #dailychallenges try to do the reply post so they link together. You may also want to consider using a tag or category to make them easier to sort. You can have a ton of fun teaching with webmentions. (https://quickthoughts.jgregorymcverry.com/s/1Ui0MP)
(twitter.com/_/status/1286645491124633601)
#
Zegnat
new Date(undefined) does not work for me. So not sure if it is JS doing things, or specifically nunjucks
#
jbove
nunjucks is a templating language for JavaScript
KartikPrabhu and [tw2113] joined the channel
#
[KevinMarks]
Nunjucks is smart about defaults for missing fields in templates, which is usually what you want. I think it turns undefined into ""
[chrisaldrich], zenen, [tantek], geoffo, [fluffy], jamietanna and [manton] joined the channel
#
[manton]
We released the first beta of Sunlit 3.0 today. It’s a photo-blogging iOS app designed around Micro.blog, but it can also post to WordPress and Micropub blogs. Open source! Details and short video of the posting interface here: https://www.manton.org/2020/07/24/sunlit-beta-and.html
#
Loqi
[Manton Reece] Sunlit 3.0 beta and source
#
[manton]
Posting to #indieweb-dev in case anyone wants to tinker with it. Releasing this much code is new for us, but something I want to do more of.
#
GWG
I don't have an iOS device to tinker
#
[manton]
Sorry. iOS-only for now (with macOS to follow). I’d like to port it to Android but don’t have enough experience myself right now.
[schmarty] joined the channel
#
[schmarty]
manton: woo!!! Trying it out now
#
GWG
I have swentel's work
#
[schmarty]
Hahahahaha I am stuck at login because iOS gives the email keyboard so I can't put the ":" in https://
#
Loqi
hahahaha
#
[manton]
[schmarty] For this beta, you need to start by signing in to Micro.blog, then go into Settings and add your Micropub blog.
#
[schmarty]
Ok. The sign-in prompt says otherwise!
#
[manton]
Oops, I should have updated the text. The plan was not to require Micro.blog sign-in, but it was easier for this beta. Long-term that won’t be a requirement.
#
[manton]
Yeah, that text is wrong. Pretend it doesn’t say that for now. 🙂
[chrisaldrich], nickodd and [Murray] joined the channel
#
[Murray]
manton: don't have iOS but wanted to view the video on your post, getting a MIME type error when I hit play, is that my end or yours? 😄
deathrow1 joined the channel
#
[manton]
[Murray] It’s working here, but I think I did encode it wrong… Do you mind seeing if this loads? https://www.manton.org/uploads/2020/526e822666.mov
#
[Murray]
oh ok if I load that link in Chrome it autodownloads the video (firefox does not)
#
[Murray]
locally on VLC it plays fine
#
[manton]
Seems that Firefox doesn’t like it for some reason. I’ve never run into this, but I did export it with a beta of macOS, so could be a bug somewhere.
#
[Murray]
Well, I've seen it now, so thanks 😄 Looks really interesting, already have your previous post tagged to keep an eye on but will just have to cross thumbs that a PWA or Android fork happens one day 🙂
deathrow1 joined the channel
#
[KevinMarks]
Can you do mp4 rather than mov?
#
[KevinMarks]
Due to bad decisions by Phil Schiller and Apple Legal, the mov file format is not widely supported
#
[manton]
I could try renaming it and see if serving it with a different MIME type would help. Micro.blog runs most video uploads through ffmpeg, but it got skipped in this case because the video is already pretty small.
[fluffy], KartikPrabhu and [jeremycherfas] joined the channel
#
[jeremycherfas]
Hmmm. I wonder whether Sunlit 3.0 will post to WithKnown. I have my doubts.
KartikPrabhu joined the channel; nickodd left the channel
#
[manton]
Is there anything unusual about Micropub support in Known? Sunlit doesn’t need much. IndieAuth and being able to post HTML.
#
swentel
[manton], known returns the access token in the body, not a json response
#
Loqi
[EdwardHinkle] #1986 [MicroPub] Token Endpoint should return content as application/json not application/x-www-form-urlencoded
[tantek] and [michael_lewis] joined the channel
#
[michael_lewis]
Hello again. Moving this to dev as it may be a bit more devvy. Thanks for all the submissions to searchmysite.net and feedback.
#
[michael_lewis]
I've had a few evenings this week to make a few changes based on submissions so far. The main one, as per [jgmac1106] suggestion, is to implement selective filtering, based either on the path (e.g. /search/?query=) or on the page type (currently derived from meta property="og:type" and article data-post-type=). (This is currently just read-only in Manage for now but I'll aim to make editable one night next week.)
#
[michael_lewis]
I did implement a way of defining custom page types with xpath expressions, but that wouldn't have actually helped that much - some sites have nothing at all in either the HTML or path to differentiate the microblog posts from the longform posts. I could add the custom page types again if there is interest though, because it could be a powerful feature, e.g. combined with the query filters in the API.
#
[michael_lewis]
Anyway, the index is slightly cleaner looking now, and where the microblog posts can't be filtered out the relevancy tuning should handle once more longform content arrives.
#
[michael_lewis]
Interesting to see also that, even with a small number of sites, there is a good amount of cross-linking, so when I finish off the PageRank equivalent that could actually make a useful difference.
#
[manton]
@swentel Ah, most likely won’t work then. Doesn’t look like our response detection is smart enough to handle that.
#
swentel
[michael_lewis], cool clean interface!
#
swentel
I've been thinking about this a couple of times as well, glad you started that project :)
#
[manton]
Seems simple enough to support. Thanks.
[KevinMarks] joined the channel
#
[tantek]
searchmysite++ this is cool and snappy
#
Loqi
searchmysite has 1 karma over the last year
#
[KevinMarks]
[michael_lewis] have you looked at the post types discovery page on the wiki?
#
[tantek]
I entered donotmail@example.com because I don't want any notifications etc.
#
[tantek]
maybe consider making the field optional otherwise people will enter more stuff like that
#
[tantek]
can't force people to give a functioning email
#
[michael_lewis]
[KevinMarks] Thanks for the tip. I hadn't seen https://indieweb.org/post-type-discovery, and it sounds good and could be useful. I've added to my todo list, although I'm still focussing on trying to get the basics right at the moment to be honest.
#
[michael_lewis]
[tantek] I'd have liked to not even ask for email at all because then (i) I'd have held zero information that could be considered personal, and (ii) the submission process via IndieAuth would literally be a super simple box where you enter your home page and that's it. But I decided to add it to have some way of telling people their listing is about to expire in a year's time (haven't decided exactly what to do on expiry time, but
#
[michael_lewis]
probably just stop indexing unless the listing is renewed, to hopefully keep it to actively updated sites). But yes, will think about making it optional. As you say, since it's not validated it might as well be.
#
@terronk
* Low code is infinitely more interesting than no code. The most popular programming language in the world is Excel. We are massively underestimating the number of people who can low-code in their area of expertise. The barriers to entry for coding are lowering every day.
(twitter.com/_/status/1286774560105193473)
#
jacky
Let's say I have a "private" post that's available to a few people (protected feels more accurate). When I publish it, would it make sense to send it to a WebSub hub to let people know something's been updated?
#
jacky
I think that for this case it'd make sense to have some way to tell people that this is a hub that they should subscribe to if they want to know about new protected posts
#
jacky
which is similar to having a feed that's only accessible to a set of people