#dev 2018-12-30

2018-12-30 UTC
cuibonobo and [nick] joined the channel
#
@Cambridgeport90
↩️ Basically there is a third-party service I have attached to the site, and I'm trying to figure out why webmentions aren't working.
(twitter.com/_/status/1079177637250154497)
eli_oat and [asuh] joined the channel
#
jacky
pulling my hair on doing URL extraction at the moment lol
#
jacky
there isn't a _clean_ (read: plug-n-play) library for it in Elixir so I'm going to have to write it by hand
#
jacky
aka find a good PCRE regex and use that
#
jacky
and got it! :D
#
@mrkrndvs
↩️ Even better Bill is if we had such conversations from the comfort of our own backyard using http://brid.gy and webmenbtions, rather than someone else’s playground? #indieweb (https://collect.readwriterespond.com/something-weird-is-happening-on-twitter-right-now/)
(twitter.com/_/status/1079207780886532096)
barnabywalters joined the channel
#
jacky
agh koype didn't support pulling webmention info from headers
#
jacky
broke a little test I had going
[tantek] joined the channel
#
jacky
dunno if I should skip this for my MVP or just aim for full spec support
#
[tantek]
jacky, I've found it was worth the time to get full webmention.rocks support working for my webmention sending code, since so many do discovery differently e.g. http headers vs link elements etc.
#
jacky
that makes sense
#
jacky
back into the plumbing I go :)
[asuh] and eli_oat joined the channel
#
jacky
welp lol now I'm in the hole of parsing the Link header
#
jacky
going to bring this to a hacky MVP and write a test a wee bit later
[asuh] and [relapse] joined the channel
#
[relapse]
First draft of h-resume peppered page. https://vonexplaino.com/blog/posts/resume/resume-of-colin-morris.html Feedback/ advice welcome.
[tantek] joined the channel
#
[tantek]
[nick] definitely check the indieweb dev channel for more implementation discussions!
[nick] joined the channel
#
[nick]
+!
#
jacky
nice [relapse]!
#
jacky
[relapse]++
#
Loqi
[relapse] has 1 karma over the last year
#
jacky
hmm so I _really_ have to do some soft conversion of the raw text in my notes into links when detected
#
[tantek]
what is autolink?
#
Loqi
An autolink is a hyperlink that was automatically added to some text to link that text to an obvious or useful destination, like hyperlinking a URL in plaintext to the URL itself, linking hashtags to search results, and @-names to their profile pages https://indieweb.org/autolink
#
[tantek]
[nick] that's interesting about Django and drafts - could you consider documenting that since it has to do pretty directly with indieweb / blogging on https://indieweb.org/Django ?
#
jacky
I think I might just treat "plain text" as markdown tbh
#
jacky
I'd get the full strength of Markdown in my plain text posts and would be able to HTML-ify to disk
#
jacky
and I'm comfortable with markdown
#
jacky
lol I think I might have to work on my own micropub client that defaults to use Markdown :D
#
[nick]
[tantek] I could write something up pretty simple I suppose.
#
[nick]
I'm planning on OS my page soon
#
[nick]
I've done a bad thing though... I have some secrets in my git repo... which means I can't do it yet
#
[nick]
😞
#
[nick]
most secrets exist now in docker secrets but there's a couple lingering and I haven't had the energy to remove them...
[relapse] joined the channel
#
[relapse]
Thanks Jacky.
#
[relapse]
Interestingly, the parser is picking up the p-education names in the p-resume name list. erf.
#
[nick]
alright I added myself to the django bits as well.. but I've got some work to do on my site! 😉
#
[nick]
time to go to bed for me...
#
[nick]
thanks for the help earlier.
#
jacky
o/ g'night!
barpthewire, strugee and loicm joined the channel
#
vasilakisfil
I checked the matrix protocol, hmm I am not sure if I like it or not. What I don't like is the approach to solve everything at once, we all know where this usually leads (xkcd standards). Another thing is, at least in their docs/website, they emphasize in the HTTP API and not in the high level overview. It's good to be rigid and extensively specify the http API responses/requests, but I would like to see something more
#
vasilakisfil
highlevel, in case you need to apply the matrix under a different protocol (like mqtt). I feel it's more like an IRC replacement rather than a generic IM/Voip replacement.
strugee, calumryan, krychu and [kevinmarks] joined the channel
#
@vasilakisfil
↩️ We already have standardized protocols by IETF like XMPP, OAuth2, WebFinger (just to name a few) and W3C recommendations for social apps like ActivityPub with ActivityStreams, LDN, Micropub, Webmention, Websub. We already have the infrastructure there!
(twitter.com/_/status/1079326567577337856)
#
vasilakisfil
lol
jjuran, [relapse] and [kevinmarks] joined the channel
#
[kevinmarks]
Did you write up notes on dat, scuttlebut and matrix?
#
[kevinmarks]
Dat felt OK to me as a swap out for http, but l had a bit of contention with the Fritter folks for their json centricity
jgmac1106, swentel, loicm, strugee, [Khurt] and [jgmac1106] joined the channel
#
[jgmac1106]
.hhmmmm I can't get my archive site to load https://archive.jgregorymcverry.com
#
Zegnat
Looks like there is an infinite redirect going on, [jgmac1106]
#
Zegnat
Which will then go infinite
#
[jgmac1106]
Okay, need to work on my redirect then... Hmmm was working for days. Wondered what changed
#
Zegnat
Did you put the same redirects you are using for jgreg...com on archive.jgreg...com by accident? That might be making it redirect to itself
[relapse] joined the channel
#
[relapse]
Subpages seem to work? https://archive.jgregorymcverry.com/posts/ for example.
#
[relapse]
And 404s work (e.g. adding index.html).
loicm joined the channel
#
[jgmac1106]
@zegnat maybe will poke around. Good place to start
#
[jgmac1106]
Thx Zegnat and [relapse]
#
Zegnat
For things like redirects, that might be a little opaque in browsers, I would recommend testing URLs with curl. E.g. I did the following command to request your archive, have curl print out both the requests it did and the responses it received back (with all headers), and limit it to follow 5 redirects:
#
[jgmac1106]
What is curl?
#
Loqi
cURL is a common Linux software library and command line used to get/send a file from/to a URL using only HTTP(S) https://indieweb.org/cURL
jgmac1106 joined the channel
#
[jgmac1106]
here is my current htaccess file: https://gist.github.com/jgmac1106/0082fb5a23130316f2e7030a137223f5 on the archive site...that is my default WP htaccess set up
[habari], swentel and strugee joined the channel
#
AngeloGladding
ls
#
AngeloGladding
ls
#
AngeloGladding
.....ls?
#
AngeloGladding
morning guys
cweiske and [jgmac1106] joined the channel
#
[jgmac1106]
Was was was
[kevinmarks] joined the channel
#
[kevinmarks]
just deployed an updated unmung.com which uses tot mf2py, so the id parsing shoudl show up
#
[kevinmarks]
was there an example for that?
#
[kevinmarks]
I also restored my bbc recipes custom backcompat, though the author image isn't working
#
[jgmac1106]
@zegnat and [relapse] it was a redirect plugin I added to WordPress... Going to revise tutorial
strugee, [tantek], jackjamieson, [tmiller], swentel and [schmarty] joined the channel
#
[tantek]
[kevinmarks] my home page has IDs on its h-feed elements
[kevinmarks] joined the channel
#
Loqi
Tantek Çelik
#
[kevinmarks]
Should unmung allow filter by I'd?
#
[tantek]
[kevinmarks] can you note that in mf2 issue 44?
#
@vasilakisfil
We should built protocols that can be reused in various ways and complete the whole picture. You see something missing ? Then yes go on and create the missing piece. BUT FIRST, we should first try to use the existing protocols before reinventing the wheel.
(twitter.com/_/status/1079326569125040128)
#
Loqi
vasilakisfil has 1 karma over the last year
[asuh] joined the channel
#
[tantek]
Especially “can be reused in various ways”
#
[tantek]
That’s a key design element of IndieWeb /building-blocks which some of the other approaches don’t follow (they attempt be all - all in one)
#
vasilakisfil
yeah exactly
strugee, gRegorLove_, [kim_landwehr], [kevinmarks] and jjuran joined the channel
#
Zegnat
[kevinmarks], jacky, petermolnar, this is my go-to resource for url regex. Though not specifically for extracting URLs: https://mathiasbynens.be/demo/url-regex
#
jacky
yeah extracting is rough
#
jacky
that's where I was looking to
#
Zegnat
jacky: “If more than one [webmention endpoint] is present, the first HTTP Link header takes precedence, followed by the first <link> or <a> element in document order.” https://webmention.net/draft/#sender-discovers-receiver-webmention-endpoint
#
jacky
scribbles RTFM onto my monitor
#
jacky
:) thank you Zegnat
[davidmead] joined the channel
#
jacky
I wonder how many people's implementation fail at https://webmention.rocks/test/7 lol
#
Loqi
[Webmention Rocks!] Discovery Test #7
#
jacky
I'm good from 1 - 6
#
jacky
ooh this is a nice one
#
Loqi
[Webmention Rocks!] Discovery Test #15
#
Zegnat
jacky, http/2 is all lowercase on the headers, so that solves that issue ;)
[pfefferle] joined the channel
#
jacky
indeed but I can't rely on everyone to have that!
#
Zegnat
That is true, but if your consuming code is written for http/2 and looks for lowercase link, all you need is an intermediary step in the HTTP request to convert all HTTP/1 headers to lowercase.
#
Zegnat
At least that is how I tend to solve it :)
strugee joined the channel
#
jacky
hm that's close to what I began looking into just now
[tantek] joined the channel
#
[tantek]
jacky I made sure Falcon passes all the Discovery tests, and coded a lot of the logic into the PHP library that I shared
#
Zegnat
Ooh, I totally missed that wiki page, now I need to go add my discovery library
#
Zegnat
Which also passes all tests
#
[tantek]
webmention << webmention-developer
#
Loqi
ok, I added "webmention-developer" to the "See Also" section of /Webmention https://indieweb.org/wiki/index.php?diff=55107&oldid=55067
#
[tantek]
well that was useless
[nick] joined the channel
#
jacky
I'll extract my logic once I get it tested more
#
jacky
for webmentions
#
jacky
the approach I have for micropub feels nice
#
jacky
it's agnostic to the kind of content being passed in (entry, card, etc)
#
[tantek]
Zegnat I added a "Libraries" stub on the Webmention page - would that have helped you find that?
#
jacky
so if it's not supported; it'll just fail (which makes sense to me)
#
Zegnat
[tantek], maybe? It depends on what I was reading at the time I wrote this... I may not have looked at the webmention page at all
#
Zegnat
I should return to do some work on that lib, looks like I have an IWC NYC branch that has been in stasis since then. Oops
#
Zegnat
Thanks for the encouragement Loqi
#
Loqi
you're welcome
#
Zegnat
I guess as my blogging output dwindled, my need for sending webmentions disappeared as well
[schmarty] joined the channel
#
[schmarty]
re: Hugo build times - my whole site builds in about 2-3 seconds on my laptop. But 20s on the cheap VPS I use for my build server! 😅
#
[tantek]
what is build time
#
Loqi
It looks like we don't have a page for "build time" yet. Would you like to create it? (Or just say "build time is ____", a sentence describing the term)
#
Zegnat
[schmarty]: does sound like Hugo isn't fast enough for you then!
#
[schmarty]
Zegnat: I think it's too slow. I appreciate that it is better, at least.
#
[schmarty]
I am tempted to have a two-step build process by splitting the Hugo theme into two. One step for permalink pages, after which syndication and webmentions can happen. A second for feed, tag, and archive pages, after which websub triggers.
#
Zegnat
Hmm, looking at the curl code included in that rel parser, I wonder at what point a page is no longer "curlable" because it requires to many curl options to be set.
[relapse] joined the channel
#
[relapse]
[jgmac1106] Good discovery work on your redirect issue.
tomasparks, strugee, [kevinmarks], [kim_landwehr] and [pfefferle] joined the channel
#
jacky
very rough hack / preview of my new "homepage" http://98c75c53.ngrok.io/
#
[relapse]
Anyone with a homepage that starts with "grrrr" is immediately my friend.
#
[relapse]
Not entirely sure what I'm seeing. It looks like a social-feed but I don't see anything about you/ what to expect from the site.
#
jacky
so this is a local "build" / demo of it
#
jacky
the feed's going to be the guts of the home page
#
jacky
I'm thinking about picking a post from the "now" tag and making it appear as the first one on the page
#
jacky
designing the experience to be around me in the moment as you see it
#
[relapse]
I like the use of the <aside> tag for the permalink/ metadata.
#
KartikPrabhu
what is pin
#
Loqi
pin or pinning is a feature that allows the author to choose a post to put at the top of their profile (or homepage) which is then called a pinned or sticky post https://indieweb.org/Pin
#
[relapse]
Is there a reason why you're spanning in a dot rather than using a ul+li?
#
jacky
I want the dot to be on the line
#
jacky
totally futzing around it
#
[relapse]
Ah.
#
jacky
might end up using a ul+li and seeing how that fares in a few
#
[relapse]
Adding a date+time?
#
[relapse]
I've tried to do a timeline like this before, I feel it's a great way of showing time-based information.
#
jacky
ahh I 100% forgot about that!
#
jacky
yeah it feels more legit
#
jacky
once it's locked in, I might play around with pushing new updates to the feed in real time
[smerrill] joined the channel
#
[smerrill]
i forget: is it possible to have multiple <artcile class=“h-entry”> on a page? Rather than one-tweet-per-file, I’m rolling up tweets by month. I dont think I want a list (<ul>) of items; but before I jam dozens of h-entries on a single page thought I’d sanity check.
#
[relapse]
[smerrill] Sounds like a h-feed of h-entries?
#
[smerrill]
quite possibly. new territory for me.
#
KartikPrabhu
it is allowed to have multiple h-entries even without a h-feed
#
jacky
oh man this just _works_ lol
#
jacky
I love it
#
[relapse]
Oh that's cool. Excellent work with the websocket too.
#
[smerrill]
is h-feed designed to be human-friendly? I hear “feed” and immediately think rss or atom.
#
jacky
that's a good question
#
jacky
like I think it is meant to be
#
KartikPrabhu
not sure what "human friendly" means. h-feed is as human friendly as any other HTML/mf2 markup
#
[smerrill]
but if multiple h-entry elements are legal and semantically correct on a page, then that’s okay too
#
KartikPrabhu
"human friendly" depends on the consuming side i.e. /readers
#
[relapse]
I agree with Kartik. It's embedded in the HTML, and HTML is meant for human readers (after being parsed by a browser, and you can get the gist of a page reading HTML with semantic markup)
#
KartikPrabhu
https://indieweb.org/feed_discovery#How_to mentions that top-level h-entries count as a feed
#
[smerrill]
let me refine my question. I am moving all my tweets from one file per tweet to one file per month. Is h-feed the suggested best way to present each tweet as its own h-entry on a page with lots of such tweets?
#
[tantek]
h-feed works for the collection
#
[tantek]
on a single page
#
[tantek]
that way you can also markup the name of the collection of tweets on that page, e.g. if you have a heading for "tweets from December 2018" or something
[grantcodes] joined the channel
#
[smerrill]
and then each tweet would be an h-entry, correct?
#
[tantek]
correct!
#
[smerrill]
thank you!
#
[kevinmarks]
Yes h-feed is where you put info that applies to all of the entries