#dev 2018-03-20

2018-03-20 UTC
[snarfed], snarfed, AngeloGladding, eli_oat and [kevinmarks] joined the channel
#
loqi.me
created /100_days (+30) "prompted by tantek and redirect added by tantek"
(view diff)
[miklb], eli_oat and EmreSokullu joined the channel
#
tantek
hey I'm curious what people think of https://www.eff.org/dnt-policy and the implication for indieweb services
#
tantek
there's a bunch of implementation requirements in there
#
tantek
and wondering who (if anyone) has done it
#
tantek
e.g. 2.a requires dumping logs after 10 days
#
tantek
bear are you familiar with EFF's dnt-policy? opinions?
#
tantek
what is DNT
#
Loqi
Do Not Track (also known as DNT) is a technology and policy proposal that enables users to opt out of tracking by websites they do not visit, including analytics services, advertising networks, and social platforms https://indieweb.org/DNT
#
Loqi
ok, I added "https://www.eff.org/dnt-policy" to the "See Also" section of /Do_Not_Track
#
Loqi
[strugee] #1832 Add webmention.io to the yellowlist
chrisaldrich joined the channel
#
tantek.com
edited /Falcon (+333) "URLs for iterating on RSVPs, bit of posts vs lists cleanup"
(view diff)
renem, tantek and [miklb] joined the channel
#
[miklb]
!tell aaronpk is the code you use to auto syndicate GitHub/Twitter links public by chance? Looking for inspiration on where to start with doing that with WordPress.
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
hm no it's not
#
Loqi
aaronpk: [miklb] left you a message 4 minutes ago: is the code you use to auto syndicate GitHub/Twitter links public by chance? Looking for inspiration on where to start with doing that with WordPress.
#
aaronpk
first it expands the reply context, then it looks at the URL and syndicated URL of the post in the reply context and checks if any of the URLs match a known pattern like twitter.com/statuses/_/_
#
tantek
[miklb] do you mean POSSE reply threading?
#
[miklb]
so I’m on the right track. I can just check against the url stored in the post meta against the services I’d want to auto-syndicate likes & reposts
#
aaronpk
oh that is what I assumed he was asking abot
#
[miklb]
no, if I micropub a like of a Twitter or GitHub url, then auto-syndicate that to the silo. Same for Twitter with reposts
#
tantek
ah, POSSEing of responses in genearl
#
aaronpk
oh yeah, same idea
#
aaronpk
yeah I just do url matching
#
aaronpk
the trick is expanding the reply context first in case the thing you're replying to is someone's indie URL which was also syndicated
#
aaronpk
the simple version is to just pattern match on the URL you're replying to directly. the next step is checking whether the thing you're replying to was also syndicated to a silo you POSSE to
#
[miklb]
well, with replies, the WP bridgy plugin provides a syndication target. But I haven’t really found a micropub client that supports targets for likes and reposts.
#
aaronpk
yeah I don't think you'll see any clients do that really, because "likes" and "reposts" tend to be single-button actions where there isn't any room for an extra UI step to choose where to syndicate it
#
[miklb]
sure. But that’s just a thing that’s slowing me down from POSSE more likes and reposts
#
[miklb]
biggest itch you could say
#
aaronpk
yep same, which is why I wrote that code!
#
tantek
I believe I am doing something similar
#
tantek
heuristics for detecting silo-permalinks in in-reply-to URLs, then using Bridgy Publish to POSSE such responses to those silo(s)
#
tantek
at least for like-of Tweet, rsvp in-reply-to FB event, in-reply-to github
#
bear
tantek - I am indeed, but like all voluntary items it's a great idea but without browser support it's toothless IMO -- now ask me this when GDPR compliance deadline is reached, a lot of companies will be having to manage either multiple privacy policies or take GDPR's as a default
#
bear
I know we (CircleCI) are just going to apply GDPRs for everyone, much easier to manage
tantek, AngeloGladding, cweiske and KartikPrabhu joined the channel
#
vanderven.se martijn
edited /JSON (+1658) "/* Specs */ Because I keep refering to the wrong things, start with this history of linkified specs"
(view diff)
tantek and [kevinmarks] joined the channel
#
cweiske.de
edited /Atom (+255) "atom threading extension"
(view diff)
#
cweiske.de
edited /Nextcloud (+83) "/* IndieWeb Examples */"
(view diff)
#
cweiske.de
edited /ownCloud (-174) "i'm using nextcloud now"
(view diff)
teleno and EmreSokullu joined the channel
#
loqi.me
edited /Facebook (+103) "Zegnat added "https://www.eff.org/deeplinks/2018/03/how-change-your-facebook-settings-opt-out-platform-api-sharing" to "See Also""
(view diff)
EmreSokullu, tantek and jeremycherfas joined the channel
#
www.svenknebel.de
edited /Do_Not_Track (-33) "/* See Also */ remove duplicate link to EFF dnt-policy project"
(view diff)
barpthewire and EmreSokullu joined the channel
#
sknebel
that reminds me, did anything come out of that Apple proposal to allow videos in <img> tags?
[mrkrndvs] and [kevinmarks] joined the channel
#
Zegnat
Safari has already implemented that, right? So that’s what came out of it
leg joined the channel
#
sknebel
wasn't sure if they implemented it, or if anyone else has publicly considered it
#
sknebel
what is gif?
#
Loqi
gif is a bitmap image format introduced by CompuServe in 1987 https://indieweb.org/gif
eli_oat joined the channel
#
vanderven.se martijn
edited /SoundCloud (+294) "/* Speculative Shutdown */ A month later SoundCloud was helped out with 170 million USD funding. A change in management happened at the same time."
(view diff)
snarfed, cweiske, [pfefferle], teleno and [miklb] joined the channel
#
www.svenknebel.de
edited /gif (+114) "gif also used for any gif-like video, regardless of format"
(view diff)
#
cweiske
what is Reader
#
Loqi
A reader (or indie reader) in the context of the indieweb is the portion/feature integrated into an indieweb site that provides a way to read content from other indieweb sites, possibly including posts from the current site as well https://indieweb.org/reader
#
cweiske.de
edited /Atom (+278) "/* Comments */"
(view diff)
loicm and snarfed joined the channel; teleno left the channel
#
realize.be
edited /User:Realize.be (+151) "adding links to indieweb projects"
(view diff)
snarfed, brandon and KartikPrabhu joined the channel
#
@tkadlec
@maximekjaer It's temporary. I had Disqus and agree—a lot of times the discussion was really good. I want to replace it with Webmentions (https://adactio.com/journal/6495/), but I haven't finished the implementation yet.
(twitter.com/_/status/976131014941700096)
snarfed joined the channel
#
@benwerd
@dubber Specifically: there's a standard called webmention that allows anyone with a blog to comment on anyone else's. (As well as RSVP to events, favorite pages, etc.)
(twitter.com/_/status/976142683944108032)
snarfed, [eddie], tantek and [cleverdevil] joined the channel
#
[cleverdevil]
Okay, huge progress on puny, which is now no longer broken out into three pieces: https://github.com/cleverdevil/puny
#
[cleverdevil]
PunyAuth is still broken out, which I think makes sense.
#
Loqi
[cleverdevil] puny: Pure-Python IndieWeb CMS
#
[cleverdevil]
This now passes basically all of the micropub.rocks test suite.
#
[cleverdevil]
And stores everything on disk using ZODB, so there is no database server required.
#
Zegnat
Seems so close to what I am building with Sink that I might just jump ship and use your code, haha
#
Loqi
Zegnat: lol
#
[cleverdevil]
I'd love some help!
#
[cleverdevil]
The backend bits and pieces are pretty reasonable at this point.
#
[cleverdevil]
Its all of the actual website bits that suck.
#
Zegnat
What I know about Python is ectremely limited, I’m afraid.
#
[cleverdevil]
Its easy to learn 🙂
#
[cleverdevil]
I don't yet implement webmentions, or a whole host of other things.
#
Zegnat
Maybe I should start by porting my generic mf2 JSON schema into your mf2 tool. Hmmmmm
#
sknebel
what is ZODB?
#
Loqi
It looks like we don't have a page for "ZODB" yet. Would you like to create it? (Or just say "ZODB is ____", a sentence describing the term)
#
[cleverdevil]
ZODB is a native object database for Python - http://www.zodb.org/en/latest/
#
loqi.me
created /ZODB (+104) "prompted by sknebel and dfn added by [cleverdevil]"
(view diff)
#
sknebel
Kaja << potentially linkify format like https://indieweb.org/wiki/index.php?oldid=46130&rcid=46022 . also, start to collect false-positives for linkify
#
loqi.me
edited /User:Kaja.sknebel.net (+163) "sknebel added "potentially linkify format like https://indieweb.org/wiki/index.php?oldid=46130&rcid=46022 . also, start to collect false-positives for linkify" to "See Also""
(view diff)
#
Loqi
ok, I added "potentially linkify format like https://indieweb.org/wiki/index.php?oldid=46130&rcid=46022 . also, start to collect false-positives for linkify" to a brand new "See Also" section of /User:Kaja.sknebel.net
#
sknebel
hm, not sure what to think of ZODB
#
[cleverdevil]
Its been around for *ages*.
#
[cleverdevil]
I was using something called TinyDB before, and it was just too brittle.
#
[cleverdevil]
I don't want to use a database server if I can avoid it.
#
dgold
anyone know how often micro.blog feeds update?
#
Zegnat
What is PyPy?
#
Loqi
It looks like we don't have a page for "PyPy" yet. Would you like to create it? (Or just say "PyPy is ____", a sentence describing the term)
#
[cleverdevil]
PyPy is an alternative implementation of the Python programming language that provides a JIT compiler, stackless mode, and other interesting features. PyPy is written in a subset of the Python programming language called RPython. http://pypy.org
#
loqi.me
created /PyPy (+273) "prompted by Zegnat and dfn added by [cleverdevil]"
(view diff)
#
kaja.sknebel.net
edited /PyPy (+1) "linkify ('x is y. <url>.' pattern)"
(view diff)
#
Zegnat
Bumped into that because of ZODB mentioning it, had never heard of it.
#
Zegnat
Seems interesting
#
[cleverdevil]
Its great.
#
[cleverdevil]
Very fast.
#
sknebel
[cleverdevil]: I do a yaml-based structure like many static generators for now, been thinking of replacing at least parts of that with something more standardized
[Vanessa] and [chrisaldrich] joined the channel
#
Zegnat
sknebel, I thought YAML was over-standardised already? ;)
#
Zegnat
If you are thinking config files, I would say TOML is a contender? How is Python support on that?
#
sknebel
the file format doesn't matter (if it's any good I dump a dict in and get it out when I ask for the file again), the general bookkeeping is the bigger issue
#
sknebel
all the things that are just "a query" with a database
cweiske and [eddie] joined the channel
#
[eddie]
!tell aaronpk: I used xray to parse a tweet, and noticed it only has content: text, no content: html. I’m surprised that @-mentions in tweets aren’t treated as href’s in xray?
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
aaronpk: [eddie] left you a message 2 minutes ago: I used xray to parse a tweet, and noticed it only has content: text, no content: html. I’m surprised that @-mentions in tweets aren’t treated as href’s in xray?
#
Loqi
[aaronpk] #30 generate autolinked HTML for plaintext posts
KartikPrabhu and [gerwitz] joined the channel
#
[gerwitz]
[aaronpk] OMG, Micropub.rocks is an amazing tool. I wish I had realized how useful it could be for testing earlier. (I thought it was only about publishing reports.)
#
[gerwitz]
[aaronpk] The media endpoint tests insist on a 201 response, though, when the spec says I should be returning 202 because I publish asynchronously.
#
cweiske
[gerwitz], did you solve your shpub media endpoint issue?
#
[gerwitz]
yes! sorry, that github issue tab is still open 😉
#
aaronpk
[gerwitz]: oh interesting, good catch
#
aaronpk
yes i should probably also redo the front page to make it less focused on the reports. that was more the focus when moving the spec through the w3c process
#
[eddie]
Ahh yeah, that is related aaronpk. Definitely seems useful. Doesn’t seem urgent, but I’m surprised that has never made it into xray. I guess because most of your stuff was always IRC to to now?
#
aaronpk
hah yeah probably
#
[eddie]
Because I’m pretty sure your tweet contexts have hyperlinked @-mentions
#
[eddie]
When using xray for reply-contexts you just autolink that text at display time?
#
aaronpk
good question, i'm not sure actually
#
[eddie]
It definitely gets auto-linked at some point: https://aaronparecki.com/2018/03/13/13/
#
[eddie]
haha 😉
#
Loqi
[Aaron Parecki] Naturally! It's the best! Still ride it as my main bicycle! 🚲☀️
#
Loqi
rofl
#
[eddie]
I’m just investigating adding better reply contexts and was analyzing the xray tweet output
#
aaronpk
well either way, you're going to need to handle autolinking anyway, since you can't guarantee all posts will have an HTML version
#
snarfed
[eddie]: granary generates content.html with linked @-mentions, #hashtags, and urls. feel free to try it.
#
dgold
not 100% indieweb, however
#
dgold
if my vps has ipv6 ending ::/64, and I already have :a2be/64, what's another valid endpoint?
#
sknebel
I do not understand the question, sorry. those are two subnets, what do you mean by "endpoint"?
#
dgold
ok, I may not be using the correct terminology, sorry sknebel
#
dgold
my vps is provisioned with the Subnet 2a00:1ca8:17:30a::/64
#
dgold
there is already one `site` at 2a00:1ca8:17:30a::a2be/64
#
dgold
I want to add another one on ipv6, but I am being befuddled at the ipv6 terminology
#
[eddie]
aaronpk: That is true! I’m thinking to start I’ll just go plain text and then focus on auto-linking
#
[eddie]
snarfed: Thanks! I’ll take a look
#
KartikPrabhu
what is text first design?
#
KartikPrabhu
what is text first design?
#
Loqi
Text-first design refers to the practice of designing information so that it is usable/actionable in its most basic plaintext form https://indieweb.org/text_first_design
#
sknebel
dgold: so you can pick anything starting with 2a00:1ca8:17:30a. might just do 2a00:1ca8:17:30a::1, 2a00:1ca8:17:30a::2, ...
#
dgold
sknebel: all the way to ffff?!?!
#
sknebel
all the way to ffff:ffff:ffff:ffff
#
dgold
holy crapsticks! ipv6 is awesome!
#
sknebel
you have 2^64 IP addresses to choose from
#
dgold
why isn't everything run on this?
#
snarfed
😂😭
#
sknebel
loong story
#
snarfed
tldr from that article: due to NATs and beyond, some large carriers kinda consider IP addrs more like semi-ephemeral routing tokens now, as opposed to permanent identifiers. from that perspective, IPv6 is less important.
#
sknebel
if you are a carrier and already have IP space, yes ;)
#
snarfed
(s/carriers/carriers, networking stacks, and device OEMs)
#
dgold
I can see the NAT issue, but c'mon, there are no v4 left
#
snarfed
so? NATs etc extend their usable space almost indefinitely
#
dgold
because NAT is impenetrable to the $user?
#
snarfed
to be clear, i'm all for IPv6. but if you stop thinking of all IP addresses as long-lived endpoint identifiers - which lots of them are not now - it's a really interesting perspective shift
#
snarfed
eh, ICE, TURN, STUN...NATs are very penetrable in the 2018 internet
#
dgold
touché
#
sknebel
people building that stuff sound not quite so optimistic :P
#
sknebel
(neither do people running small new hosting companies. explaining to your customers why you bill them per IPv4 address while your big competitors can throw them around must be quite annoying)
#
snarfed
true, but you don't need a dedicated IPv4 addr for a small web site, especially with SNI
#
dgold
goes adding ipv6 addresses to many websites
#
dgold
snarfed: but if you can have dedicated ipv6 address, why not?
#
sknebel
but yes, the combination of "IPv4 works, and we can keep it working with tricks, and our customers likely don't care/don't have a choice" + various problems with IPv6 + the fact that it's still not available to many is basically why not everything runs on IPv6 yet
#
dgold
if sites are our identity, then ip addresses are our documents
#
aaronpk
there's a coffee shop in portland where the wifi *only* routes ipv6 traffic. it's hilarious.
#
sknebel
bunch of mobile carriers do that too
#
sknebel
and in Germany, some home ISPs
#
dgold
my funtime server is ipv4 only
#
dgold
that's the one that stuff like compass, watchtower et al are living on
#
sknebel
(with NAT of course for IPv4 access)
EmreSokullu joined the channel
#
snarfed
yup i'm all for ipv6 in general, including on our sites. (mine all do.)
chrisaldrich joined the channel
#
Zegnat
I am pretty sure I still do not have IPv6 from home
#
Zegnat
“there's a coffee shop in portland where the wifi *only* routes ipv6 traffic” that sounds both hilarious and problematic.
#
aaronpk
it took me a while to realize what was going on at first
#
aaronpk
visiting google.com works, so you think you're online, but then random sites fail
#
Zegnat
I seem to recall ancarda did IPv6-only for a while, but couldn’t go on with it as stuff started breaking
#
sknebel
yeah, you really need a NAT64 gateway still, and even then some apps will fail. (although e.g. Apple nowadays enforces support for it in the app store. can't hardcode IPv4 addresses anymore)
tbbrown joined the channel
#
ancarda
Oh god, yes I only did it because my ISP at the time (Andrews & Arnold) had a NAT64 gateway
#
ancarda
That was a few years back, and so much was broken
#
ancarda
But, funny, a few weeks ago I was working from home and my company’s VPN was only working for IPv6, and I didn’t notice for like, an hour, because all LAN servers are all IPv6, and almost everything external was Google (we’re heavy G Suite users)
tantek joined the channel
#
ancarda
I used to turn off IPv4 every year in January to see how bad it was, and hopefully see it slowly get less broken every year, but I’ve not had IPv6 for a few years, and only recently gotten back to it
#
tantek
what is Puny
#
Loqi
It looks like we don't have a page for "Puny" yet. Would you like to create it? (Or just say "Puny is ____", a sentence describing the term)
#
tantek
what is PunyAuth
#
Loqi
It looks like we don't have a page for "PunyAuth" yet. Would you like to create it? (Or just say "PunyAuth is ____", a sentence describing the term)
#
tantek
what is ZODB
#
Loqi
ZODB is a native object database for Python - http://www.zodb.org/en/latest/ https://indieweb.org/ZODB
[cleverdevil] joined the channel
#
[cleverdevil]
PunyAuth is an IndieAuth token and auth endpoint implementation written in Python, by {{cleverdevil}}. - https://github.com/cleverdevil/punyauth
#
Loqi
[cleverdevil] punyauth: IndieAuth auth and token endpoint in pure Python
#
tantek
what is PunyAuth
#
Loqi
It looks like we don't have a page for "PunyAuth" yet. Would you like to create it? (Or just say "PunyAuth is ____", a sentence describing the term)
#
tantek
retry [cleverdevil]
#
[cleverdevil]
PunyAuth is an IndieAuth token and auth endpoint implementation written in Python, by {{cleverdevil}}. - https://github.com/cleverdevil/punyauth
#
Loqi
[cleverdevil] punyauth: IndieAuth auth and token endpoint in pure Python
#
loqi.me
created /PunyAuth (+172) "prompted by tantek and dfn added by [cleverdevil]"
(view diff)
#
[cleverdevil]
What is Puny?
#
Loqi
It looks like we don't have a page for "Puny" yet. Would you like to create it? (Or just say "Puny is ____", a sentence describing the term)
#
[cleverdevil]
Puny is an experimental Micropub server, including Media Endpoint, written in Python by {{cleverdevil}}. - https://github.com/cleverdevil/puny
#
Loqi
[cleverdevil] puny: Pure-Python IndieWeb CMS
#
loqi.me
created /Puny (+170) "prompted by [cleverdevil] and dfn added by [cleverdevil]"
(view diff)
#
[cleverdevil]
There 😀
#
[cleverdevil]
I’m pretty pleased with how well documented and readable the Micropub endpoint is - https://github.com/cleverdevil/puny/blob/master/puny/controllers/micropub.py
#
grantcodes
Ok, the new together version is ready for testing!
#
grantcodes
If anyone is running it locally try checking out the feathers branch from github
#
grantcodes
Not put it live yes as I want to double check a few things
snarfed joined the channel
#
tantek.com
edited /Leaders (+225) "mf2 brainstorming resolving needed as part of mf2dev session"
(view diff)
#
tantek.com
edited /Leaders (+143) "/* Issues */ another page to process"
(view diff)
#
[cleverdevil]
Ooh, shiny.
#
grantcodes
Well there's no much new functionally really, marking stuff read on scroll is probably the biggest new feature
benwerd joined the channel
#
[cleverdevil]
I'm imagining performance is a little better.
#
[cleverdevil]
Works great so far, grant.
#
[cleverdevil]
Nice work 🙂
skippy joined the channel
#
skippy
I've tweaked aaronpk's minimal media endpoint, and it accepts uploads and the uploads are visible with direct links. But Quill is unable to show the photo in the editor. What might I be doing wrong?
#
aaronpk
can you check whether it works in quill's note interface?
#
skippy
sorry, that's what i've been using.
#
aaronpk
oh, i assumed you meant the HTML editor
#
skippy
new note. upload photo. in the pop-up the photo is not there. empty box where a photo should be.
#
aaronpk
odd. maybe try one of the micropub.rocks tests so you can see the requests?
#
skippy
good idea! trying that no.
#
skippy
i seem to be returning 200, rather than 201 or 202.
#
aaronpk
that would do it
#
skippy
test 700 works fine; but test 300 fails.
#
skippy
i dont actually see "200" anywhere in the source of the file. how odd.
#
aaronpk
if you don't return anything else specifically it will return 200
#
aaronpk
also if there's an error, but your php is set to not display errors, it might also return 200 in some cases
#
skippy
the 201/202 should come from my micropub endpoint or my media endpoint?
#
aaronpk
media endpoint
#
aaronpk
well both
#
aaronpk
but this sounds like it's failing at the media endpoint one
#
skippy
i think perhaps the media endpoint is working as expected, but the micropub is not. this is helpful.
#
skippy
that was it. my micropub was not returning 201.
#
skippy
thank you.
#
skippy
so: the media endpoint URL is not passed to the micropub endpoint at all? I don't see any indication of this.
#
aaronpk
not sure what you mean
#
aaronpk
the micropub endpoint tells the client what the media endpoint URL is in the configuration query
#
skippy
ok. so i upload a photo through micropub, which sends it to my media endpoint. but then how do I access that media item in the note i"m composing in quill right now?
#
aaronpk
no, other way around
#
skippy
oh, do i manually copy out the URL from the pop-up that quill shows me/
#
aaronpk
the client uploads the photo to the media endpoint, the media endpoint returns the URL of the photo
#
aaronpk
then the client includes the photo URL as the "photo" property in the micropub request
#
aaronpk
no, you don't need to manually copy anything. quill just shows that URL for debugging
#
skippy
ah. there we go. thank you.
snarfed and EmreSokullu joined the channel