#dev 2018-05-07

2018-05-07 UTC
renem, tantek, leg, eli_oat, AngeloGladding, snarfed, rivercat, KartikPrabhu, [jeremycherfas], cweiske, swentel, sebsel, jeremycherfas, tomasparks, jrb20181, [pfefferle], jjuran_, ben_thatmust, deathrow1|absnt, strugee_ and bear joined the channel; jrb20181 left the channel
#
sknebel
Aaronpk: where do you see HTML sanitization in the microsub stack? E.g. some posts seem to break monocles layout, and I wonder if that is CSS leakage of some kind?
#
Zegnat
Sounds like the reader's problem? It sends jf2 from the backend right? And I doubt that spec is the right place to put sanitation.
#
Loqi
Zegnat: [jeremycherfas] left you a message 18 hours, 54 minutes ago: I will do that, but many of the errors were the result of my ignorance. My feeling is that copying the CLI instruction should come first, as that is the easiest option for people like me.
snarfed joined the channel
#
dgold
is there a schmarty in the house?!
#
schmarty
dgold: affirmative
#
dgold
hi :)
#
dgold
I've been working on my morris issues - I now have it saving the mentions correctly, and not wiping the content every few minutes
#
dgold
_however_, I'm having zero siccess getting it to work in huo
#
dgold
it fails, every time, with: "executing "theme/partials/webmention.html" at <index $.Site.Data.wm...>: error calling index: index of untyped nil"
#
schmarty
hmm. one thing to check is to make sure you're saving data directly into the hugo data folder. hugo doesn't follow symlinks.
#
dgold
yup - saved in a data folder, and hugo is aware of the datalocation in config.toml
#
schmarty
i do this by having the real folder at /path/to/hugo/site/data/webmention_io and morris has a symlink folder named "data" that points to that path.
#
schmarty
that way hugo has "real" files to read.
#
schmarty
ah, cool.
#
dgold
looking at yout template code - you have $mention_id on line 1, then $mention_ids on line 2
#
dgold
is that a typo, or deliberate?
#
schmarty
that looks like a typo
#
dgold
yeah, I `fixed` that early on
#
dgold
maybe I should show my work?
#
dgold
that's where I'm at in terms of the contents of the template
#
dgold
but it does appear that it breaks even if there's nothing inside the range statements
tantek joined the channel
#
schmarty
looks like you're storing your data in data/wm_io/
#
schmarty
you might want to try some debugging to see if hugo understands the data at all
#
schmarty
i think something like {{ $mention_ids | jsonify }} will spit out the data so you can take a look
#
schmarty
i often find myself getting lost in hugo data accessing and doing things like that to spit out the data structures
#
dgold
yeah, despite their claims to the contrary, they really don't have it explained well
#
dgold
I was looking at the docs and came across my favourite bugbear again: variadic arguments
#
schmarty
oops just kidding, you can just output the data. passing through jsonify seems to mess things up.
#
schmarty
it'll take me some time to load the templating logic back into my head :/
#
schmarty
i am very interested to know what you needed to change to get the files saving correctly!
#
dgold
oh, very little - just created a new folder outside the content/ folder and started again
#
dgold
I have no idea _why_ it worked, just that it _does_
#
schmarty
hahaha that is horrifying 😱
#
Loqi
nice
tantek joined the channel
#
schmarty
gives loqi a sense of horror
#
Loqi
laughs at the sense of horror
kaushalmodi joined the channel
#
kaushalmodi
dgold: If you like, I have a webmention processing template here that I use on my site: https://gitlab.com/kaushalmodi/hugo-theme-refined/blob/master/layouts/partials/webmention_rcv.html
#
dgold
does that use morris kaushalmodi?
#
kaushalmodi
no, it's parsing wm.io data
#
kaushalmodi
but the concept of Data access and parsing should be similar?
#
kaushalmodi
As a site, I have this debugprint partial that helps debug maps in Hugo
#
schmarty
unless you specify jf2 when fetching, i think the data structures for wm.io data fetched via API are different than the data delivered by webhook that morris saves :/
#
dgold
whoah! kaushal - you've been asking _me_ for help with this stuff?
#
dgold
mate - your go skillset is _lightyears_ above mine :)
#
kaushalmodi
dgold: I am an Indieweb newb; I had to learn Hugo debugging as I was developing my ox-hugo (Emacs) package
#
kaushalmodi
*Just Go templating skillset
#
kaushalmodi
I had to figure out if the translation of front-matter from Emacs/Org mode to YAML/TOML was happening correctly
#
kaushalmodi
And in the process ended up with that partial
#
schmarty
haha "just" Go templating. i feel like Go templating is a deep, dark ocean of possibilities and pitfalls. :}
#
dgold
</aol>
#
kaushalmodi
Talking about ox-hugo, here's one of the worst case front-matters ;-) https://ox-hugo.scripter.co/test/posts/keyword-collection/
KartikPrabhu joined the channel
#
dgold
schmarty: do _you_ use morris?
#
Zegnat
I feel like I should up my webmention game, reading this
#
schmarty
dgold: i do! i use it on a hugo site and a jekyll site.
#
dgold
schmarty: care to share your webmention.html partial (or equivalent)
#
schmarty
packing 'em up in a gist now
#
schmarty
i don't currently have my full source repo online
#
dgold
is cool (like fonzie)
#
Zegnat
Oh dgold, I was giving nanopub a go this weekend during IndieWebCamp. But never actually got it to work 😅
[sebsel] joined the channel
#
dgold
schmarty - what does this line do: {{ $paths := union (slice .URL) .Params.aliases }}
#
dgold
Zegnat: oh?
#
dgold
what was the failure point?
#
Loqi
It looks like we don't have a page for "failure point" yet. Would you like to create it? (Or just say "failure point is ____", a sentence describing the term)
#
dgold
Zegnat: I have users!
#
dgold
(just need to work out how to monetise them, the fools)
#
Zegnat
I am not sure what was going wrong, and I stopped testing once I had the Micropub client correctly getting a token.
#
Zegnat
Just never got any post content to be stored.
#
schmarty
dgold: i have moved some of my post's URLs in the past, so they have aliases. that line puts the canonical URL plus any aliases in an array so i can iterate over them looking for mentions that might have come to the old url
#
dgold
Zegnat: that's quite concerning, to me
#
Zegnat
Token endpoint test was the important part for me, so I wouldn't need aaronpk's hosted token endpoint anymore. Also easier for offline testing of Micropub.
#
dgold
I've set it up now on three or four different servers, and have helped four people get it working
#
dgold
schmarty: ah, great
#
Zegnat
I can have another go tonight and let you know if I get it working or not.
#
dgold
and it not saving any content hasn't featured (yet)
#
dgold
maybe it caught blankinitis from schmarty's morris!
#
Zegnat
Or maybe it got scared when I changed the token endpoint (which wasn't even in the config file 😱)
[kevinmarks] joined the channel
#
Zegnat
dgold, any reason for the hardcoded token endpoint? Or just because you didn't have a PHP alternative to self-host?
#
dgold
the latter
snarfed, [chrisaldrich], sebsel and KartikPrabhu joined the channel
#
Zegnat
There is one now, haja
#
Loqi
[Zegnat] php-mintoken: A minimal IndieAuth compatible Token Endpoint.
#
dgold
hey hey!
#
dgold
that's awesome, Zegnat
#
dgold
Zegnat++ for expanding the arsenal of freedom
#
Loqi
zegnat has 60 karma in this channel (210 overall)
swentel joined the channel
#
Zegnat
I was hoping to demo nanopub + selfauth + mintoken for a fully offline and functional Micropub setup.
#
Zegnat
But alas
#
jeremycherfas
I was on the same track, but fell at the first.
[eddie] joined the channel
#
dgold
you... can't get nanopub working either?
#
tantek
I do think there's some amount of handwringing going on re: GDPR - as the "personal" exemption seems to cover quite a bit
#
jeremycherfas
No, I was starting to mody Skippy's micropub.
#
tantek
that being said, I do think the right answer is to first focus on solving the "how do we be respectful to other humans we may not know" question, then second any nation/bureaucracy-specific mumbo jumbo
#
tantek
re: ethics vs gdpr etc
#
snarfed
right! and to be fair much of the gdpr conversation has shifted toward that over the last week or so
#
snarfed
including sgreger's postr
#
tantek
I'm approaching it from yet another angle, which is the challenge of, I don't want "bad" (insert your own value judgment) "content" to show up on my site via Webmentions
#
sebsel
tantek is the GDPR really a topic for #dev, so much as to move the conversation?
#
tantek
hence the discussion of pixelation
#
sebsel
(we need a #indieweb-gdpr)
#
tantek
sebsel - I think it is, because as devs we often set policies by default by coding
#
tantek
and since anything "federated" involves "other people's content", whether webmention or websub or feeds etc., there is dev-level rethinking to do
#
tantek
whether to alter defaults (or re-examine their assumptions)
#
tantek
or possibly add (shudder) "options"
#
sebsel
okay I do agree on that.
#
sebsel
We're just losing topics for the main channel :)
#
tantek
nah, main channel is for bringing new folks up to speed on their indieweb sites as fast and painlessly as possible!
#
jeremycherfas
And excluding people who find most of #dev incomprehensible.
#
tantek
and talking about new user-level indieweb features
#
tantek
jeremycherfas: there is sufficient diversity of discussions in dev that at this point I believe most people in dev may find most of dev incomprehensible
#
tantek
because there are so many different dev-like things
#
jeremycherfas
And so many different people.
#
tantek
jeremycherfas: that's not the point. the point is dev-like things are so disparate and specialized that it is inevitable that this channel in particular will sound "obscure" at times for everyone
#
tantek
whereas with the main #indieweb channel we can at least keep it all about user-level things
#
tantek
which everyone there should be able to at least follow if not participate in
#
Zegnat
Back at home, cup of tea, time to give nanopub another shot!
#
jeremycherfas
Have fun zegnat. I'm postponing my next tussle with Micropub.
eli_oat joined the channel
#
Zegnat
I might just rip some stuff out and move it into the config file. As for offline things, I want to disable as many external calls as possible. And I think it is currently impossible to disable things like notifying the WebSub hub
snarfed joined the channel
#
dgold
in nanopub?
tglobe joined the channel
#
[kevinmarks]
Can the "should it be in -dev?" conversation move to -meta? 😉
#
[kevinmarks]
I just linkslapped the main channel with ethics stuff, so do have a look
#
tantek
kevinmarks only if you promise to stop bringing up plumbing in #indieweb :)
#
www.boffosocko.com
edited /bookmark (+2583) "disambiguation from like with examples in wild; articles on semantics of bookmarks"
(view diff)
tglobe joined the channel
#
@frankmeeuwsen
↩️ Oef.. ik haak te laat in voor #blogpraat. Mijn blog slaat geen reacties op, alleen tweets die reageren op mijn blogpost. Moet ik daar iets mee/voor doen? Het zijn zgn webmentions. https://indieweb.org/Webmention
(twitter.com/_/status/993559566913810435)
#
sebsel
lol, there's a Dutch tweet, *recommending* Webmention in answer to "what does a blogger need to do with the new law".
#
Zegnat
Link?
#
Zegnat
I am wondering if I should reply to Frank and point him at chatlogs / sgreger / dgold / IWC notes ...
#
sebsel
The one Loqi just quoted.
#
Zegnat
That quote doesn’t imply to me that Frank is recommending Webmentions? More like asking if he needs to do anything.
#
dgold
in the name of the Great God Om. <holy horns>
#
sebsel
Ah, within context of the tweet he replies to, it seems like he's saying: well, don't store comments, just quote Twitter.
#
sebsel
Or am I misreading?
#
Zegnat
Maybe?
tglobe2 joined the channel
#
dgold
NO! You don't need a fecking Privacy Statement, and a Processing Register, and a Datalekregister (EXTERMINATE!) and a Processing Agreement to host a BLOG!!!!!eleven
#
Zegnat
Hahaha
#
Loqi
Zegnat: lol
tglobe2 joined the channel
#
Zegnat
Note that I am not sure whether “blogger” in the original tweet refers to “blogging-as-a-business”, dgold
#
dgold
Zegnat: oh lord om, you mean the modern Fashionista definition of a blog?
#
dgold
like shilling for eye makeup and so on?
#
Zegnat
The questions comes from a “social media & blog expert” (speaker, trainer, author) who gives weekly tips/tricks. https://twitter.com/eljadaae
#
Zegnat
So I have no idea to whom the advice is aimed. Whenever your website is your main business, *and* is handling personal data of visitors/commenters, I am going to assume all the GDPR boxes do need to be ticked?
tglobe joined the channel
#
Zegnat
Some of the questions being asked by, who I assume are other bloggers following the #blogpraat hashtag, shed an interesting light on some things.
#
dgold
I have followed the links to a dutch lawyers page, and am relying on google translate per https://is.gd/08mOat
#
dgold
Do You Collect Personal Data:
#
dgold
Can readers leave a comment on your blogs? Then you collect a name, e-mail address and probably also an IP address.
#
dgold
eh... bzzzzzzt Incorrect, not necessarily, name alone is not PII &c &c &c
tglobe joined the channel
#
dgold
Oh, but its all okay! Because charlotteslaw will help you draw up a compliant privacy statement! Just email her for a quote!
#
[kevinmarks]
Is charlotteslaw like coleslaw?
#
skippy
Whew! Got silo-specific reply and repost support added to my micropub server. https://github.com/skpy/micropub as i only use twitter, this is actually overkill for me, but maybe helpful to others.
#
Loqi
[skpy] micropub: a minimal PHP micropub endpoint, with media support
#
dgold
schmarty: I made it work!
#
dgold
is ugly as sin, but it works!
#
skippy
functional messy code > pristine implementation plans
#
schmarty
dgold: hooray! what was the secret stumbling block?
#
dgold
muttermumbleforgotthe dot
#
dgold
it was a really hard bit of golang coding! Took me ages and ages, in the process I think I reinvented the wheel and the helicopter
#
Zegnat
Never know when you are going to need that chopper!
#
vanderven.se martijn
edited /GDPR (+838) "/* Articles */ Log the back and forth between {{sgreger}} and {{dgold}}"
(view diff)
#
@martijnvdven
↩️ Er wordt nog hard over Webmentions en hun plaats hierin gediscuteerd. Afgelopen weekend was er een #IndieWebCamp in Düsseldorf met een hele GDPR sessie. Ik weet niet of we al een link-dump hebben. Hier is wel een interessante heen en weer te vinden: https://indieweb.org/GDPR#Articles
(twitter.com/_/status/993569301499142144)
tantek joined the channel
#
@frankmeeuwsen
@voxpelli can you help me out? I use your Webmention endpoint on Heroku for my blog. How do I deal with the GDPR regulations that are coming in effect end of May with regards to your app/code?
(twitter.com/_/status/993572662952767489)
#
sebsel
what have we done :(
#
Zegnat
I almost want to reply “you don’t, it is voxpelli’s problem, if a problem at all”, hahahaha
#
Loqi
rofl
tantek and snarfed joined the channel
#
loqi.me
created /Kapowski (+144) "prompted by schmarty and dfn added by schmarty"
(view diff)
#
kaja.sknebel.net
edited /Kapowski (+1) "linkify ('x is y. <url>.' pattern)"
(view diff)
#
Zegnat
!tell dgold I think I may know why nanopub was failing with Mintoken: you only parse form encoded responses from the endpoint, while the spec only defines a JSON response
#
Loqi
Ok, I'll tell them that when I see them next
#
skippy
whatis mintoken
#
skippy
what is mintoken?
#
Loqi
It looks like we don't have a page for "mintoken" yet. Would you like to create it? (Or just say "mintoken is ____", a sentence describing the term)
#
Zegnat
Mintoken is minimal and self-hostable [[IndieAuth]] compatible [[Token Endpoint]] in [[PHP]]. https://github.com/Zegnat/php-mintoken
#
loqi.me
created /Mintoken (+160) "prompted by skippy and dfn added by Zegnat"
(view diff)
#
Loqi
[Zegnat] php-mintoken: A minimal IndieAuth compatible Token Endpoint.
#
kaja.sknebel.net
edited /Mintoken (+1) "linkify ('x is y. <url>.' pattern)"
(view diff)
ben_thatmustbeme joined the channel
#
jacky
oooh mintoken looks cool
gRegorLove joined the channel
#
Zegnat
Run it, abuse it, report back on it
#
martymcgui.re
edited /Kapowski (+826) "details"
(view diff)
tantek and sebsel joined the channel
#
dgold
Zegnat: I'd love a PR for that :)
#
Loqi
dgold: Zegnat left you a message 20 minutes ago: I think I may know why nanopub was failing with Mintoken: you only parse form encoded responses from the endpoint, while the spec only defines a JSON response
#
dgold
my token logic is wholesale taken from rhiaro's minimal endpoint
KartikPrabhu and [jeremycherfas] joined the channel
#
schmarty
oops, Zegnat, I think i know why auth is failing on Kapowski and it's because of domain fronting issues.
#
schmarty
snarfed: oops, not that kind of domain fronting, haha. i am hosting the app on glitch.com and trying out a service called fly.io which lets me point a custom domain at a glitch.com project.
#
snarfed
ah, dynamic dns, ok
#
snarfed
heh, i opened https://fly.io/ , and i immediately thought, hoo boy, how long had they been around when cloudflare launched workers, and will they survive :P
#
schmarty
i had never heard of them before! they were recommended in the glitch.com faq for custom domains. fun that it seems to work!
[pfefferle], KartikPrabhu and frank joined the channel
#
Guest33614
Hahaha... pretty funny to see my tweets here. Got sent here from micro.blog re GDPR and just catching up in the var channels...
#
Loqi
nice
Loqi_, chrisaldrich and grantcodes joined the channel
#
tantek
aaronpk: do your tag pages contain all post types with that hashtag?
#
aaronpk
yeah everything
#
Loqi
aaronpk: Zegnat left you a message 1 day, 1 hour ago: if you have a moment later, I have questions about the correct error responses for the token endpoint: https://github.com/Zegnat/php-mintoken/issues?q=is%3Aissue+is%3Aopen+label%3Aspec
#
tantek
so yeah, then using your shortdomain/word to route to longdomain/tag/word would work!
#
tantek
from aaron.pk/osbridge to aaronparecki.com/tag/osbridge
#
tantek
then you could customize / override them as needed
#
aaronpk
my pinned posts per tag make that very useful too!
#
tantek
oh yeah that totally works!
[pfefferle] and [eddie] joined the channel
#
[eddie]
I have to say, that is a pretty cool idea!
#
aaronpk
this was inspired by a link I saw on someone's slides at this conference with a hashtag at the end of the URL
[kevinmarks] and tantek joined the channel
#
loqi.me
created /Open_Source_Bridge_10_Year_Celebration (+39) "prompted by tantek and redirect added by tantek"
(view diff)
#
tantek.com
edited /Open_Source_Bridge (+15) "/* 2018 */ name"
(view diff)
snarfed, [tantek] and jgmac1106 joined the channel
#
jgmac1106
here was my thinking on microformats and education . Let me know if I am way off on this stuff: http://quickthoughts.jgregorymcverry.com/2018/05/07/microformats-i-would-like-in-remixable-indieweb-classrooms
#
KartikPrabhu
there is little use in inventing a new microformat if there are no consumers and hence so guideline to how this is supposed to be consumed
#
[tantek]
KartikPrabhu++
#
Loqi
kartikprabhu has 21 karma in this channel (196 overall)
#
[tantek]
[jgmac1106] KartikPrabhu is exactly correct.
#
[tantek]
Without research documenting existing publishing examples, analyzing them for patterns, documenting prior formats (attempts), there is almost zero chance of inventing something both actually useful (that someone would write a consuming application), and especially minimal
#
[tantek]
Years of experience with lots of folks proposing various a priori microformats (like your post) that literally went nowhere because there was no evidence behind any of it
#
[tantek]
The above mentioned research is part of the empirical-based microformats.org/wiki/process
#
KartikPrabhu
right, otherwise you run into "volcanoes with phone numbers"
#
[tantek]
Or inventing things for mars and the moon that have nothing to do with any actually data from NASA
#
[tantek]
(Yes someone actually proposed mars & moon microformats back in the day that they just made up)
#
jgmac1106
thx [tantek] right now there are no standards for marking up learnign events and any futre development is being done by member only profressional orgs where you can’t even see latest specs until becoming member
#
[tantek]
[jgmac1106] more important than marking up “learning events”, is anyone publishing them on the web at all?
#
[tantek]
Start with documenting those (again) as per above process* url
#
jgmac1106
plus those rules say the first step is to make yoru site ugly
#
jgmac1106
though I like plain html a little bit of style ain’t gonna hurt
#
[tantek]
No idea what you’re talking about
#
jgmac1106
when I was researching today it said to try and not use any other classes for microfomramts to work, I might had read this incorrectly. I inferred it as I can’t do things in my style sheet if something had microformats if I wanted to ensure it worked
#
jgmac1106
though it did mention in-line styling after the microformats class so that confused me, if I can add inline styles wouldn’t stuff in my stylesheet be better?
#
jgmac1106
I spent a long time researching this and asked at the OER conference. Everyone said no work has been done since 2013. The closest would have been scorm packages
#
[tantek]
Was it the make your site POSH statement?
#
jgmac1106
I tried to figure out what: https://www.oercommons.org/ pushed out when you added to their repository but found no documentation
#
jgmac1106
yes I followed links to POSH. It was my mistake but I conflated simple with very little styling
#
[tantek]
Not your mistake. Our docs should be better :)
#
[tantek]
That OER thing looks like a silo pretending to be a commons!
#
KartikPrabhu
Commons^(TM)