#dev 2021-07-23

2021-07-23 UTC
webonedotzero and KartikPrabhu joined the channel
[fluffy], nertzy, alex11, KartikPrabhu, [tantek], capjamesg, hendursa1 and AIC joined the channel
#
capjamesg
What is a link graph?
#
Loqi
It looks like we don't have a page for "link graph" yet. Would you like to create it? (Or just say "link graph is ____", a sentence describing the term)
#
capjamesg
What is a social graph?
#
Loqi
A social graph is a network of social profiles/identities and relationships between them, either on a single site like a silo, across the web, or in-person connections https://indieweb.org/social_graph
#
[snarfed]
capjamesg have you seen https://indiemap.org/ ?
#
capjamesg
snarfed Yep.
#
capjamesg
I'd love to go deeper into linked data.
#
@askender43
↩️ Feedly. 我在做dweb搜索引擎,会顺带写网页版RSS阅读器 问题: 1. 很多博客不支持RSS了 计划推广将RSS带上作者提供的接收赞赏的方式 2. RSS只显示最新几篇文章 计划推广带翻页的jsonfeed 3. RSS的评论互动功能不强 Webmention任道重远 4. 写博客人少 计划做论坛,也输出RSS和和下一代的RSS
(twitter.com/_/status/1418574784951062530)
KartikPrabhu, hendursa1, shoesNsocks, capjamesg, klez_ and hendursaga joined the channel
#
aaronpk
um anyone want to help me track down the most bizarre error in the php microformats parser?
#
[tw2113_Slack_]1
you got this [aaronpk] I believe in you
#
sknebel
aaronpk: sure
#
sknebel
details?
#
aaronpk
trying to understand still
#
aaronpk
here is the page in question http://klezlab.it/
#
aaronpk
i downloaded the html locally and am running the parser against it
#
aaronpk
if i take off all the h-entry classes the doc parses fine
#
sknebel
php.microformats.io seems happy with it
#
aaronpk
adding each one back doubles the number of iterations it goes through the parser
#
sknebel
so which parser version are you running?
#
sknebel
with masterminds html parser?
#
aaronpk
aha maybe not
#
sknebel
because otherwise you are running the same as microformats.io and this is about to become really fun :P
#
aaronpk
installing that dropped it from 8000 iterations to 53
#
aaronpk
well i guess that answers that
#
angelo
<article></article> is malformed
#
sknebel
and the simple HTML parser doesn't resolve that correctly I assume
#
sknebel
making some structure that's way more complex than needed
#
sknebel
because it doesn't know it can force-close the <div>
#
aaronpk
i didn't catch that
#
sknebel
(can you dump the output you got before somewherE? curious to see what exactly it makes of it)
#
aaronpk
not sure how
#
sknebel
np. saved a copy of the page source, if I get curious enough later I'll check myself
#
aaronpk
ok so each time it encounters a missing closing tag it effectively duplicates the whole doc
#
aaronpk
so it doubles the amount of stuff to run through the parser each time it encounters an mf2 tag
#
aaronpk
(I was measuring the number of times the parse_recursive function was called)
#
sknebel
that still sounds odd
#
sknebel
a the HTML parser does? yeah ok
#
klez
aaronpk, in the meantime I should have fixed the html
#
klez
on my side, I mean
#
aaronpk
i also fixed indielogin.com to use the better parse that handles errors better :)
#
klez
login is working again, thanks :)
#
aaronpk
well that was fun
#
Zegnat
Yeah, it is a big problem with the PHP DOMParser from HTML implementation. It’ll only correct closing elements for HTML elements that are hardcoded into libxml2 (? I think it was that one?) and that has not been updated in years and does not know any of the HTML5 tags. One of the major reasons to run with the userspace parser.
#
Zegnat
is always sad about how few languages have proper HTML-spec compliant parsers
AIC1, KartikPrabhu, alex11, alex_, shoesNsocks1, shoesNsocks and capjamesg joined the channel
#
[KevinMarks]
Or have one but don't use it by default (thank you python)
#
@SyahmiSaadon
Thank you @sprucekhalifa for writing this helpful article. How to Use Webmentions with Gatsby.js – A Beginner's Guide https://www.freecodecamp.org/news/how-to-use-webmentions-with-gatsby-beginners-guide/
(twitter.com/_/status/1418657926793744385)
ben_thatmustbeme joined the channel
#
@sprucekhalifa
I recently wrote an article on @freeCodeCamp on how to use webmentions on your Gatsby site: Reply to this tweet and click on the link below to see webmentions in action https://iamspruce.dev/blog/how-to-use-webmentions-with-gatsby-beginners-guide
(twitter.com/_/status/1418667948365996041)
#
[tw2113_Slack_]1
for a second, probably due to the colors and in part the font, i thought that said watermelons.
neocow, GWG, [Rose]1, jjuran_ and nertzy joined the channel