#dev 2018-04-17

2018-04-17 UTC
jjuran joined the channel
#
dansup
aaronpk: interesting, is your site compatible with gnusocial?
#
aaronpk
not yet, I tried getting bridgy fed set up with it so it would be, but ran into some problems
#
aaronpk
but people are following my photos, and i'm following other peoples' photos just fine right now
#
dansup
interesting
tantek joined the channel
#
dansup
aaronpk: I'm working on a federated image sharing web app (like instagram meets mastodon), I'll have to bug you sometime and figure out how we can get interop
#
dansup
Just started it last night, but I'm making pretty good progress already. Basic stuff like registering and posting to the local timeline is done
#
aaronpk
well the easy place to start is adding microformats to the site, then everyone using indieweb readers can follow the posts. then you could send and receive webmentions like micro.blog does.
jjuran joined the channel
#
aaronpk
interop in small pieces
#
dansup
aaronpk: I'm not sure that webmentions are the best idea for use in the fediverse, privacy wise. https://mastodon.social/@dansup/99798566933190785
#
Loqi
[dansup] I don't think webmentions are appropriate for the fediverse. The privacy implications, along with the potential for abuse (DDoS) do not justify any benefits in my opinion. #webmentions #fediverse
#
dansup
If you have ActivityPub support on your site, I can remote follow you and my server will push any updates I make to your site
#
aaronpk
that's not the gargron thread is it?
#
aaronpk
that argument completely missed the point
#
dansup
no I made that thread I linked.
#
Loqi
[dansup] @deadsuperhero Privacy should be the priority. Gargron made a good point here https://mastodon.social/@Gargron/99798054496158900. If webmentions are implemented, it should default to opt-out with a setting to enable it.
#
dansup
aaronpk: If webmentions are supported, I think it should be opt-in by default. The user might not be aware of that, so I think privacy wise it should be disabled by default. What do you think?
#
aaronpk
the point is webmention is just the federation plumbing, and is just how it works. no need to enable or disable
#
aaronpk
if you're really concerned, you could avoid sending webmentions to links that are just a plain mention of a URL, e.g. just linking to something in a post. but any like-of or reply-to URLs should always get a webmention, since you're saying you're actively replying to that link
#
dansup
Yeah, maybe I am being too paranoid. I would be okay with blacklisting webmentions to facebook and google and enabling them ;)
#
aaronpk
"luckily" facebook and google don't accept webmentions right now anyway so you're safe
#
GWG
aaronpk: That cookie that pfefferle put in isn't working.
#
aaronpk
GWG: what cookie?
#
aaronpk
that sounds familiar
#
aaronpk
GWG: i'm fixing indieauth.com right now to not mangle the query string
eli_oat joined the channel
#
gRegorLove
This is a weird PHP thing I don't think I've seen before: `class Foo {}` followed by just `Foo;` not `new Foo();`
#
gRegorLove
Inherited code on a PHP 5.4 server (ouch)
#
aaronpk
gRegorLove: does that.. do anything?
#
gRegorLove
That's what I'm trying to figure out, hah. In my testing no, just treats it as an undefined constant, so treats it as 'Foo'
#
gRegorLove
The files were encrypted with ionCube, so I'm wondering if the decryption messed something up.
#
aaronpk
runs away
#
aaronpk
GWG: okay fixed indieauth.com to work with auth endpoints that have a query string
#
GWG
aaronpk: I'm still trying to figure out why this cookie isn't being picked up
#
aaronpk
is that what's going on?
#
GWG
aaronpk: In my tests, yes.
#
aaronpk
i'm trying to replicate this
#
GWG
Oh...there is the issue.
AngeloGladding joined the channel
#
GWG
He didn't set GMT
#
aaronpk
so I got this error "The authorization server replied with me=https://tiny.xyz.dev/ but we were expecting https://scratch.io.dev/"
#
aaronpk
thinks we should move to -wordpress
Mandrake and renem_ joined the channel
#
@ChrisAldrich
Today I updated the IndieAuth plugin for #WordPress, and I can now use my own website as an #IndieAuth authorization endpoint (including provisioning and revoking tokens) for a multitude of things including a huge number of micropub clients. http://boffosocko.com/2018/04/16/indieauth-for-wordpress/
(twitter.com/_/status/986059289658777600)
#
GWG
Editing the episode of that podcast where I talked to Chris about the IndieAuth plugin, and told him that my endpoint has a UI for revoking tokens.
#
GWG
And you can't do that in some other endpoints
#
aaronpk
I don't even have a UI for that!
#
GWG
aaronpk: I said that
#
GWG
It's a feature I like.
#
aaronpk
Indeed. I would like to add that for myself at some point
#
aaronpk
Along with showing the last time each was used
#
GWG
My UI needs work
leg and [miklb] joined the channel
#
[miklb]
aaronpk I’m looking over dgold’s installation instructions and it mentions ” need to have a token endpoint set up already in order for Aperture to know how to verify access tokens it receives in Microsub requests” I don’t follow that step
#
aaronpk
If you already support Micropub clients it should work fine
#
aaronpk
Aperture will ask your token endpoint to check if a token is valid
jjuran joined the channel
#
[miklb]
gotcha. thanks
#
j12t
aaronpk: so Watchtower has three entry points? 1) Web server request, 2) a persistent .service, and 3) a cron job? What's the difference between 2 and 3?
#
aaronpk
The cron job triggers the scheduler to run the background tasks
#
aaronpk
I want to combine 2 and 3 at some point but this was easier
#
j12t
I see. So what does the .service thing do?
[eddie] joined the channel
#
@bijnaSimon
Heb net mijn @withknown (micro)blog gekoppeld aan mijn Twitter-account. Met de resulterende mogelijkheid van http://IndieAuth.com om met mijn domein in te loggen, heb ik op de IndieWeb-wiki een gebruikerspagina aangemaakt — https://indieweb.org/User:bijnaSimon (https://vrij-inter.net/s/4Ih8m)
(twitter.com/_/status/986083647945093120)
#
cweiske.de
edited /site-deaths (+76) "/* Upcoming */ gnusocial"
(view diff)
AngeloGladding, [jeremycherfas], cweiske, eli_oat[m], [pfefferle], mindB, plindner, grantcodes, schmarty, myfreeweb, peterlawson[m] and zoglesby joined the channel
#
jjuran
“it should default to opt-out with a setting to enable it.” <— what
#
jjuran
So, opt-in?
KartikPrabhu, [unoabraham], [jeremycherfas] and [kevinmarks] joined the channel
#
[kevinmarks]
[dansup] how are the privacy and ddos implications different for activitypub than webmention?
swentel joined the channel
#
[kevinmarks]
If you accept @ mentions from people, how is using webmention versus activitypub different?
#
swentel
hmm different implemenation, same result I guess?
#
swentel
*implementation
#
[kevinmarks]
Right but dansup and gargnon are talking as if webmention is qualitatively different and I don't understand why
#
swentel
less quality in what exactly ? the data you receive?
[snarfed] joined the channel
#
[snarfed]
I'm guessing they (and AP) need private sharing, and we don't really have even private posts (much less wms) thoroughly worked out and widespread in the wild in indieweb, so they don't know that it's possible or how to do it
#
[snarfed]
if so, they're kinda right. onus is on us!
#
swentel
hmm yeah, I've been thinking about that yesterday, I see a private property in the webmention payload, but haven't thought about it how it would work nicely
#
swentel
especially in combination with bridgy for instance
#
swentel
oh interesting
#
[snarfed]
(but forget about bridgy for now, no support for private anything planned there)
#
swentel
in a way it doesn't make much sense anyway
#
swentel
it's something I wouldn't want to code either, too sensitive
#
Zegnat
“how are the privacy and ddos implications different for activitypub” - AP includes the whole message in the POST body to my inbox, right? If I do not need to fetch an unknown external resource, that may make for different ddos implications?
[unoabraham] and dgold joined the channel
#
petermolnar
Zegnat: see the history of trackback on that
[kevinmarks] joined the channel
#
[kevinmarks]
And see the history of email for the inbox outbox model that activitypub uses
jeremycherfas joined the channel
#
loqi.me
created /balloons (+36) "prompted by [kevinmarks] and redirect added by [kevinmarks]"
(view diff)
jeremych_ and [jgmac1106] joined the channel
#
dgold
!tell [miklib] oops, that could be clearer. will amend
#
Loqi
Ok, I'll tell them that when I see them next
[jgmac1106] joined the channel
#
[jgmac1106]
I use a script for all my nav menus on my courses. I release modules once a week. My students have to delete their browser cache to get the javascript to load my side navigation. Is there anything I can do so they don't have to do this?
#
swentel
use a parameter on the call to the js ? e.g. <script src="file.js?id=1"> - augment the counter to get a fresh version should work
[kevinmarks] joined the channel
#
[kevinmarks]
how is the js loading the data?
#
dgold
!tell [miklib] done!
#
Loqi
Ok, I'll tell them that when I see them next
iasai_ joined the channel
#
[jgmac1106]
swentel I just tried it. tjhat works thanks
#
[jgmac1106]
sorry Kevin didn't see you asked. I was using: var xhr = new XMLHttpRequest();
#
[jgmac1106]
xhr.open('GET', encodeURI('sidebar.html'));
#
[jgmac1106]
xhr.onload = function() {
#
[jgmac1106]
if (xhr.status === 200) {
#
[jgmac1106]
//alert('User\'s name is ' + xhr.responseText);
#
[jgmac1106]
document.getElementById('sidebar-wrapper').innerHTML = xhr.responseText;
#
[jgmac1106]
alert('There is no sidebar.html to load. Error: ' + xhr.status);
#
[jgmac1106]
xhr.send();
[miklb] joined the channel
#
www.svenknebel.de
edited /Fatwigoo (+186) "also potentially an issue if content is included in other pages"
(view diff)
[jgmac1106], KartikPrabhu, leg, [pfefferle] and [miklb] joined the channel
#
loqi.me
edited /Fatwigoo (+131) "Zegnat added "The name is inspired by the worst offenders, social media buttons: '''Fa'''cebook, '''Twi'''tter, '''Goo'''gle." to "See Also""
(view diff)
[kevinmarks] joined the channel
#
[kevinmarks]
That should use browser caching, so if it is not working right you may have your cache headers misset
singpolyma and Mandrake joined the channel
#
@Uxlco0
↩️ @Tamala75 @MaisOuVaLeWeb La blockchain des blogs ? aah oui Webmentions ;)
(twitter.com/_/status/986263073886560257)
KartikPrabhu, tantek and [jgmac1106] joined the channel
#
[jgmac1106]
<meta http-equiv="Cache-control" content="no-cache"> in the header would that work?
#
[jgmac1106]
that doesn't seem smart though
#
tantek
what is cache-control?
#
Loqi
It looks like we don't have a page for "cache-control" yet. Would you like to create it? (Or just say "cache-control is ____", a sentence describing the term)
#
[jgmac1106]
reading the MDN article now so not answering, have to hand it to the crew Documentation getting better and better.
benharri joined the channel
#
[jgmac1106]
ooh may play with <expires> since I release moduels on a weekly schedule
#
@Tamala75
↩️ @Uxlco0 @MaisOuVaLeWeb mmmh je découvre Webmention, je vais creuser ça :) https://t.co/ju2Gtd2n8n
(twitter.com/_/status/986269851953004544)
#
[jgmac1106]
"Cache-Control: max-age=604799, must-revalidate" maybe better will this on a supershort interval and then see if I can deploy for next week
snarfed joined the channel
#
tantek
!tell sebsel thanks for the link https://seblog.nl/2017/02/20/4/day-36-reacji - I'm having difficulty understanding what the screenshot is about though - is it a screenshot of your home page/stream? or is it how you show reacji from other to your posts?
#
Loqi
Ok, I'll tell them that when I see them next
#
loqi.me
created /orgmode (+311) "prompted by tantek and dfn added by dgold"
(view diff)
#
loqi.me
edited /orgmode (+39) "dgold added "https://orgmode.org" to "See Also""
(view diff)
kaushalmodi joined the channel
#
kaushalmodi
Surprised to see Org mode referenced here; I use it for my site source :)
singpolyma and jjuran joined the channel
#
tantek
wow completely missed the DRY / sidefile debate yesterday morning
#
tantek
anything new?
#
tantek
anyone who thinks stuff "just" works with side-files / feed files has never had to incrementally implement new content types in their own CMS / site and feel the actual engineering / development pain of having to implement *twice* (or more) for every feature.
#
kaushalmodi
After the debate, I tried implementing jf2 json files for my static site, and it was a much better experience than manually embedding the mf2
#
tantek
side-files do not "just work", they force you to double (or more) your code maintenance tasks, including bugfixes over time
#
tantek
kaushalmodi: you're mistaking the cost of initial implementation, for the cost of lifetime implementation, which is 99% maintenance, 1% intial implementation
#
tantek
maintenance is where side-files die
#
kaushalmodi
Of course I am talking from my perspective, but there's hardly any maintenance neeeded in the case of static sites.. it's just 2 lines to implement the jf2post.. which will work independently of how the page HTML changes: https://gitlab.com/kaushalmodi/hugo-theme-refined/blob/0f371f0fecbaabadaf7ff2621eb020d5f53ba313/layouts/_default/single.jf2post.json#L20-21
#
tantek
no, when you add new features to your CMS, new content types, new properties for higher fidelity content, you have to maintain your code, updating it accordingly
#
tantek
if all you want to do is reimplement early 2000s RSS then yes, "there's hardly any maintenance neeeded"
#
tantek
if you want to create something feature competitive with modern social media tools, you will have to keep incrementally implementing new features
#
tantek
every (side-file / feed file) format you add support for increases your code maintenance burden accordingly
#
tantek
code meaning the code that generates the static sites
#
Zegnat
Adding mf2 to your HTML also adds maintenance, I think that is the argument some people are making. So if (plain HTML + sidefile) is less maintenance than (plain HTML + mf2), that is totally doable. E.g. kaushalmodi saying adding a jf2 file was less maintenance than adding mf2 into the HTML.
#
Zegnat
¯\_(ツ)_/¯
#
kaushalmodi
Someelse else presented the benefit of sidefiles.. basically separating the content from metadata.
#
kaushalmodi
If I disable jf2 generation (by commenting just one line in my site setup), my site will still be functional.
#
kaushalmodi
I cannot disable mf2 embedding that easily.
#
dgold
I don't think mf2 + html <= html + sidefile
#
dgold
its a similar level of maintenance
#
dgold
the peculiarities of the side file might make a little headache, mind
#
tantek
but it's not meta-data, it's actual data
#
kaushalmodi
For mf2 embedding, you might have to structure your HTML a particular way.. for example, I needed to add few extra div wrappers for mf2 classes.
#
kaushalmodi
Adding jf2 sidefiles did not need me to mess with the content (HTML)
#
tantek
kaushalmodi: mf2 was designed to minimize or not even need any changes in the markup - if you're finding you have to do that, share your example and ask for help
#
tantek
probably means we could provide more examples
#
kaushalmodi
tantek: By meta-data, I mean.. the data not used to show the content on browser.
#
aaronpk
there's definitely a maintenance cost to adding mf2. that's why I haven't even added mf2 to some of my post types yet
#
kaushalmodi
I had to add many divs and spans with .hide class just for adding p-author, h-card, etc.
#
tantek
that's not what meta-data is, meta-data is literally data about data
#
kaushalmodi
Because I treat that as meta-data, not something to display on my site
#
tantek
kaushalmodi: you shouldn't have had to add "many divs and spans" - sounds like there may be a misunderstanding of how mf2 works
#
tantek
you don't display divs and spans either
#
tantek
mf2 classes are just like more tags, they're not "meta-data"
#
kaushalmodi
OK, let's not consider the technicality of meta-data vs data for now.
#
tantek
if you follow your reasoning, you should just serve plain .txt and put the HTML in a separate file
#
tantek
mf2 is just more HTML that's the key
#
kaushalmodi
What I am getting at is that I needed to add this for h-entry compability:
#
kaushalmodi
<!-- To complete the h-entry meta-data as per https://indiewebify.me/validate-h-entry/ --> <a class="u-url hide" href="{{ .Permalink }}"></a>
#
tantek
you didn't already have a link to your permalink?
#
kaushalmodi
no, not on that same page
#
tantek
on which page?
#
Zegnat
Oh yeah, that gets me sometimes too. I have been hijacking the link[rel="canonical"] for that recently.
#
kaushalmodi
On the list/feed pages, I of course had the post permalinks, so there this hide class was not needed
#
aaronpk
that's a pretty common one i've seen
#
tantek
o rly
#
tantek
if it's so common, where are the docs of examples of it?
#
aaronpk
also getting the authorship right is always a trick
#
Zegnat
People do not want a navigationable link from the permalink page to the permalink page. Thus people are hiding the link.
#
kaushalmodi
tantek: https://scripter.co/optimize-your-fontawesome/ For example: why would I need a permalink for a page on itself?
#
aaronpk
personally i like having a page link to itself on the timestamp of the post, but not everyone agrees
#
tantek
hmm I'm confused, I thought the *common* pattern (e.g. WordPress by default etc.) is for the post title to link to the permalink
#
tantek
even on the permalink page
#
aaronpk
post title? i don't think so. also that doesn't help with posts with no titles
#
Zegnat
Not in modern WP, and not for a long time at the least. Not sure when they would have done that.
#
singpolyma
I've always done that, but I know some people don't
#
kaushalmodi
also, some posts don't have dates too.. like "about" page or "colophon" page
#
singpolyma
the default WP theme still does
#
aaronpk
oh yeah, i had to add the text "permalink" in place of the timestamp for those kinds of pages
#
Zegnat
Default WP theme does that? I totally do not remember it doing that.
#
singpolyma
... and "about" page is not a post
#
kaushalmodi
so that's the point I am making..
#
kaushalmodi
with sidefiles, you can pack all the needed "data" in there, without messing with the normal page HTML structure
#
Zegnat
kaushalmodi, a possibly slightly less ugly way to do it is to use link[rel="canonical"]. See source here: https://vanderven.se/martijn/big5.html
#
Loqi
[Martijn van der Ven] Martijn’s Big Five personality traits
#
kaushalmodi
Zegnat++ Very cool, will do that.
#
Loqi
zegnat has 53 karma in this channel (196 overall)
#
Zegnat
Well done Loqi, getting my name and everything!
#
singpolyma
you certainly don't need the class=hide in your case because (a) you have no text in the anchor tag, so it won't show anyway and (b) you can target u-url directly with CSS
#
tantek
interesting, I use a visible <input> at the end of my posts to make it easier to copy/paste the URL when you've finished reading it
#
tantek
and that's marked up with u-url u-uid
#
tantek
with the canonical URL of course
#
tantek
instead of hiding it in a <link>
#
tantek
sounds like this discussion / examples is worth documenting, since it is unobvious, and/or a challenge
#
tantek
what is a permalink?
#
Loqi
A permalink is a URL which typically represents and retrieves a single post (also explicitly called a post permalink) https://indieweb.org/permalink
#
kaushalmodi
tantek: About copying, I just do Ctrl+L Ctrl+C :)
#
singpolyma
In general, people can copy the permalink from their location bar. But I do still linkify my title because it's easy
#
singpolyma
and helps some users
#
tantek
kaushalmodi: sure that works for you but is not obvious for most users
#
aaronpk
i copy from location bar on a laptop, but it's soooo awkward on mobile
#
tantek
^^^ exactly
#
aaronpk
much easier to use the "share" action on mobile
#
singpolyma
really? Which mobile?
#
aaronpk
ios, it always selects things awkwardly
#
tantek
there's plenty of web UIs where copying the URL is difficult or completely hidden
#
singpolyma
interesting
#
tantek
singpolyma: EVERY SINGLE EMBEDDED WEBVIEW IN A SEPARATE APP
#
aaronpk
oh god also that
#
tantek
like if you click on a link in the Twitter iOS app
#
tantek
no URL bar. good luck
#
aaronpk
want to copy the link of the thing you opened in the twitter app? good luck
#
singpolyma
Oh man. that sounds horrible
#
tantek
lol jinx
#
tantek
sounds like we have a bit of a divide here
#
tantek
between experience being primarily / only laptop / desktop
#
tantek
and OTOH mobile browser / webviews
#
singpolyma
I use mobile all day. Just not iOS :)
#
tantek
same in android apps
#
singpolyma
Good to hear about these limitations
#
Zegnat
webviews on Android haven’t been hard on me, but I may not end up in them often enough. Most of them have a way to send whatever is open to Chrome where you get the full UI.
#
kaushalmodi
Zegnat: I see one problem implementing your trick.. My "single post" template touches just the body tag.
#
Zegnat
E.g. Facebook just lets you break out of the webview on Android
#
tantek
kaushalmodi: also many (most?) CMS put various ?utm_crap in the URL in the address bar
#
tantek
so after you paste it you have to edit that crap out
#
Zegnat
kaushalmodi, ah, yes, that would be a setback.
#
kaushalmodi
To add that rel=canonical, I will need to rearrange my template structure to include head tag in the "single post" layout too
#
singpolyma
kaushalmodi: or move the link tag to body, maybe?
#
tantek
kaushalmodi: if you have to, <a class="u-url" href=""></a> also works
#
kaushalmodi
tantek: that's why I stick with static sites.. think work exactly as I designed.. but I can see a use of permalinks in those cases
#
kaushalmodi
s/think works/things work/
#
kaushalmodi
tantek: That's was I have right now
#
kaushalmodi
.. the a tag with u-url class
#
Zegnat
A big part of the static site generator I am playing with is actually just smartly adding a wrapper div to my content to make e-content work. So I totally see where people are coming from when they say they need to reorganise their HTML to add mf2 :)
#
kaushalmodi
I was just looking into refactoring that into rel=canonical
#
tantek
kaushalmodi: but you don't need to replicate your permalink
#
tantek
since relative URL resolution will fix it in your case (since you don't use any ?utm nonsense)
#
singpolyma
kaushalmodi: tantek means that markup literall. empty string for href
#
kaushalmodi
ah, understood, thanks
#
Zegnat
(You can actually add rel="canonical" to the <a> as well, if you want to provide that.)
#
tantek
hmm I thought we had an issue for also treating non-href u-* values as relative
#
Loqi
[Zegnat] #10 u- parsing should always do relative URL resolution
#
kaushalmodi
tantek: I'll just leave it as it is for now. Replicating the permalink is not a problem.. it's just .Permalink in my template
#
kaushalmodi
I've always been a fan of absolute links
#
tantek
kaushalmodi: fair, in that case you can make the markup even friendlier (and invisible even without any CSS) with a <data> element
#
tantek
e.g. <data class="u-url" value="{{ .Permalink }}"></data>
#
tantek
that's also better for accessibility, since you avoid having an empty anchor
#
kaushalmodi
Thanks. Can that data tag live in the body tag?
#
tantek
yes absolutely
#
kaushalmodi
Cool! data class="u-url" value="{{ .Permalink }}" /> it is then :)
#
kaushalmodi
s/data/<data/
#
Zegnat
Not selfclosing
#
Zegnat
I think
#
tantek
even if it's not perfect, it's an improvement
#
tantek
correct, do not self-close
#
Zegnat
Double checked. Not self-closing.
#
kaushalmodi
ok, thanks.. I thought that data tag was analogous to self-closing meta tags in head
#
tantek
in general in HTML, there will be no more self-closing tags
#
tantek
that bit of XML has been abandoned
snarfed joined the channel
#
kaushalmodi
TIL. Thanks tantek++
#
kaushalmodi
Loqi did not see that?
#
tantek
Loqi wants to see any ++ -- first
#
kaushalmodi
tantek++ :)
#
Loqi
tantek has 27 karma in this channel (427 overall)
#
tantek
kaushalmodi: the broader purpose of the data tag is to markup data that is different from the visible text, e.g. <data class="p-rsvp" value="yes">I'm going!</data>
#
tantek
different *syntax
#
Zegnat
Ha, the example showing “a blog post using the article element” in the HTML spec can’t be marked up with mf2 without adding a wrapper <div> either. Atleast not to cover what most people expect from h-entry.
#
tantek
Zegnat - worth a pull request to improve the HTML spec :)
#
Zegnat
Not really. There is simply no <content> element. Which we would need to add e-content
#
kaushalmodi
Just to clarify.. can u-* type be a non-link?
#
Zegnat
Anything can be anything. u-* just instructs parsers to look in e.g. href-attributes first. And to resolve from relative URLs to absolute ones.
#
Zegnat
You could use p-url as well, if the URL isn’t in a href-attribute but in plain text.
#
kaushalmodi
I failed to note of an issue.. some p-*/u-*/?? did not work in the wrong tag.
#
Zegnat
Basically the classes are: [parser instruction]-[property name]
#
kaushalmodi
Let me see if I recorded that in any of my commits
#
Zegnat
p- is never going to look in href-attributes, for instance.
snarfed joined the channel
#
tantek
Uh oh I just got this error: "No hub at pubsubhubbub.superfeedr.com"
#
tantek
anyone else using pubsubhubbub.superfeedr.com?
#
Zegnat
The example blog post from the HTML5 spec, but featuring mf2: https://gist.github.com/Zegnat/23b1edc42c1b0d48d2443cea922cf8be ... if only I could mark up the contents.
#
Loqi
The Very First Rule of Life
#
Loqi
The Very First Rule of Life
#
Zegnat
That HTML is actually super close to how I have been authoring my posts for grapefruit.zegnat.net. My static site generator adds the wrapping <div> required for e-contents when I am done writing.
#
kaushalmodi
Zegnat: What SSG are you using? Have the theme in public?
#
Zegnat
My SSG is 1 file of PHP DOM-mutation code that I wrote myself.
#
tantek
onefilephp++ :)
#
Loqi
onefilephp has 1 karma
#
Zegnat
It parses the HTML of a template file, parses separate post files. From every post file it extracts the root “article” tag, does some magic to embed mf2, and then appends it to the month-view-template.
#
Zegnat
Then writes 1 file per month, and sets a symbolic link for index.html to the latest month.
#
Zegnat
Of course whether the month stuff works I will not know until next month ;)
#
tantek
Zegnat hah - I used to keep one static file per month in my original blog! (2002-2008)
#
tantek
(I mean it's still there at tantek.com/log )
#
kaushalmodi
Thanks for that info.
#
Zegnat
You were definitely one of many inspirations for the format, tantek
#
tantek
Zegnat it made some things easier
#
tantek
and enabled preserving some of the stylistic creativity I experimented with early on
#
tantek
but since I noticed that I stopped changing the styling for the last many months of those years of the blog, I decided I could let go of the simplicity of that "feature" when building Falcon for my new blog
#
Zegnat
Makes sense.
#
Zegnat
If I have time again, maybe this summer, I will see if I can port the site generator to Go. See if I can learn that language.
#
Zegnat
Mostly because I like doing DOM manipulation on the HTML, and PHP isn’t really the best language for that.
#
tantek
haha seriously
#
tantek
I am painfully aware of that
#
tantek
(my static file storage depends on / uses PHP documenting loading and DOM manipulation)
#
aaronpk
there is no best language for DOM manipulation :P
#
Zegnat
Possibly
#
Zegnat
But in PHP I have to use a separate library for HTML5 parsing, and then I still only get what libxml things of as a DOM to work on :(
#
tantek
no seriously did superfeedr just go down?
#
tantek
now getting lots of "No hub at pubsubhubbub.superfeedr.com"
#
Zegnat
(Also considering Python, as the HTML5 library there seems to be doing well for other IndieWebbers.)
AngeloGladding joined the channel
#
tantek
no it was working fine until today
#
tantek
did it change?
#
tantek
perhaps to websub.superfeedr ;)
#
tantek.com
edited /reacji (+514) "GitHub - list specific reacji, link to Bridgy Publish support, supported since with citation"
(view diff)
[kevinmarks], [xavierroy] and snarfed joined the channel
#
tantek.com
edited /reacji (+485) "/* Facebook */ temporary purple flower and rainbow"
(view diff)
#
tantek
!tell grantcodes https://indieweb.org/User:Grant.codes/post-type-markup-experiment is very cool. Are you interested in feedback / suggested improvements?
#
Loqi
Ok, I'll tell them that when I see them next
#
tantek
!tell grantcodes I'm also thinking such minimal examples would be great for each microformat page on the microformats wiki e.g. microformats.org/wiki/h-card /h-entry /h-event etc.
#
Loqi
Ok, I'll tell them that when I see them next
#
[kevinmarks]
Node and Go have post html5 default parsers, which is helpful. PHP, python, Ruby and java all have various sgml/xml based things that need care.
#
[kevinmarks]
I need to make that "I <? PHP" t-shirt again
#
tantek
speaking of PHP funtimes
#
tantek
I'm about done with the complexity of emoji detection in PHP
#
tantek
so here is my heuristic for detecting a likely short (one character-ish) emoji string in my reply-to content:
#
tantek
function is_short_emoji($s) { return ord($s)>225 && strlen($s)<26; }
#
tantek
use-case, compact reply-contexts for reacji posts (especially in-stream)
#
sknebel
[kevinmarks]: don't think it's fair to say node is better than python just because python has a bad one in the stdlib instead of none at all like node
#
aaronpk
I don't think the difficulty of emoji detection is limited to php
#
[kevinmarks]
Is strlen bytes?
#
aaronpk
I believe so yes
#
aaronpk
mb_strlen is the one that's aware of multibyte chars
#
[kevinmarks]
Does that work on Welsh and Scottish flags?
#
tantek
using mb_strlen didn't make any difference
#
tantek
still reporting length in bytes
#
[kevinmarks]
I can see that, sknebel as you could pick a bad lib, but python has 3 legacy ones built in that lead you astray.
#
tantek
[kevinmarks] have you seen any flag reacji in the wild, anywhere? much less those flags?
#
sebsel
Facebook had a rainbow-flag last summer
#
Loqi
sebsel: tantek left you a message 1 hour, 54 minutes ago: thanks for the link https://seblog.nl/2017/02/20/4/day-36-reacji - I'm having difficulty understanding what the screenshot is about though - is it a screenshot of your home page/stream? or is it how you show reacji from other to your posts?
#
tantek
sebsel: last two summers for Pride. and documented: https://indieweb.org/reacji#Facebook
#
sebsel
Oh, yes, that might not be clear. It's a screenshot from my feed, the upper post is a reacji.
#
sebsel
oh, seems like past-me made this page: https://seblog.nl/reacji
#
tantek
sebsel++ nice!
#
Loqi
sebsel has 19 karma in this channel (61 overall)
#
tantek
(perhaps right below Ben Roberts, and include your screenshots / links with explanation? that would help a lot!)
#
sebsel
But... I'm the Sebastiaan Andeweg on there. Right under you
#
tantek
oh wait you're there, you just need a more prominent section
#
sebsel
There is something weird with the sub-heading.
#
tantek
fixing
#
dgold
§/go 18
#
grantcodes
tantek: feedback welcome on that, I'm working on turning it into a wiki plugin to automate generating the other outputs from html so it is never out of date
#
Loqi
grantcodes: tantek left you a message 19 minutes ago: https://indieweb.org/User:Grant.codes/post-type-markup-experiment is very cool. Are you interested in feedback / suggested improvements?
#
Loqi
grantcodes: tantek left you a message 18 minutes ago: I'm also thinking such minimal examples would be great for each microformat page on the microformats wiki e.g. microformats.org/wiki/h-card /h-entry /h-event etc.
#
tantek.com
edited /reacji (+296) "move a couple of display reacjis posts up to upper section, note distinction in sections"
(view diff)
#
tantek
could you add screenshots or links to your posts of the screenshots?
#
sebsel
tantek oh yes, on it!
[pfefferle] and [miklb] joined the channel
#
Zegnat
[kevinmarks], put me down for a <? PHP t-shirt. Haha
#
@TheVampsband
Who wants to come #OnStageWithTheVamps in Cardiff tonight? 🏴󠁧󠁢󠁷󠁬󠁳󠁿
(twitter.com/_/status/986303250201800706)
#
@ColombianEng
🇺🇸 Over there. 🏴󠁧󠁢󠁥󠁮󠁧󠁿 Over there. 🇦🇺 Over there. 🇨🇴 😗😗😗 #ColombianEnglish
(twitter.com/_/status/986264332890755072)
#
loqi.me
edited /Unicode (+29) "sknebel added "[[emoji]]" to "See Also""
(view diff)
#
seblog.nl
edited /reacji (+507) "/* Sebastiaan Andeweg */ added screenshots"
(view diff)
cweiske joined the channel
#
cweiske
There should be no issues with the indiechat search site anymore; I've just upgraded from 8 to 32 GiB of RAM on the server.
#
Loqi
cweiske: sebsel left you a message 3 days, 11 hours ago: There's a 500 on https://indiechat.search.cweiske.de/ :(
#
sknebel
cweiske++
#
Loqi
cweiske has 33 karma in this channel (136 overall)
#
sknebel
(thanks for running it!)
#
cweiske
I had feared that I'd need to move everything onto a new server, which is a labour-intensive process taking days
#
cweiske
but it actually was only a config upgrade that took .. 30 seconds
#
cweiske
now we pay 40 instead of 30€/month, but since I share the server with 2 friends it's only 3€ per person extra
#
sebsel
cweiske++
#
Loqi
cweiske has 34 karma in this channel (137 overall)
snarfed, swentel, [kevinmarks], iasai, swentel_ and tantek joined the channel
#
tantek
cweiske++ for running/hosting indie chat search.
#
Loqi
cweiske has 35 karma in this channel (139 overall)
#
tantek
if you can estimate an annual cost that you think is the % use of that hosting fee for the search, maybe we can apply some opencollective funds to help pay for it
#
tantek
IMO it's definitely a very valuable service to the community that is worth at least helping to cover the hosting costs for
#
tantek
though perhaps that's more #indieweb-meta
#
tantek
grantcodes: great! here's a few quick ones - all presentational off the top of my head
#
tantek
s/MF2 HTML Markup/HTML+mf2
#
tantek
s/Rendered HTML/Rendered
#
tantek
s/MF2 JSON/mf2 JSON
#
tantek
those are all in the tab names
#
tantek
we don't need to say "Markup" in the tabs because the heading is already "How to markup"
#
tantek
another thought is:
#
tantek
s/MF2 JSON/Parsed
#
tantek
oh and
#
tantek
s/JF2 JSON/JF2
#
tantek
because JF2 already implies JSON
#
tantek
unless part of the goal is to appeal to JSON API trendiness
#
tantek
in which case:
#
tantek
s/MF2 JSON/JSON
#
tantek
seblog++ this is SUPER helpful! Thank you! https://indieweb.org/reacji#Sebastiaan_Andeweg
#
Loqi
seblog has 1 karma in this channel (2 overall)
#
tantek
sebsel++ I mean :)
#
Loqi
sebsel has 20 karma in this channel (62 overall)
[miklb], eli_oat, Tom, iasai_ and [cleverdevil] joined the channel
#
aaronparecki.com
edited /Web_Authentication (+184) "add my blog post"
(view diff)
tantek and snarfed joined the channel
#
aaronparecki.com
edited /Web_Authentication (+27) "add w3c diagram"
(view diff)
snarfed joined the channel
#
schmarty
GWG I probably need to update Flask-IndieAuth to handle the recent updates to the indieauth spec
#
GWG
schmarty: That is likely.
#
GWG
IndieAuth for WordPress has the aaronpk stamp of approval in terms of standard compliance.
Kaja__ joined the channel
#
schmarty
That will probably help me get this back up to snuff
#
GWG
schmarty: Would you consider working on https://github.com/martymcguire/screech/issues/3
#
Loqi
[dshanske] #3 Add docs
#
schmarty
I would!
#
schmarty
I’m traveling at the moment but I can tell you that it does the simplest possible thing. A form encoded POST with audio, photo, name, description, tags. The metadata from the mp3 comes in as id3-title, id3-duration, etc
#
schmarty
I’ll get that written up though
#
GWG
Should it be id3-title?
#
schmarty
No media endpoint support, for example. No JSON posts.