#dev 2017-01-10

2017-01-10 UTC
#
tantek
what is Altaba?
#
Loqi
It looks like we don't have a page for "Altaba" yet. Would you like to create it?
#
@joelpurra
Switched to #indieauth - seems to be the most modern #openid delegation option out there! https://indieauth.com/
(twitter.com/_/status/818613291140415488)
#
tantek
aaronpk++
#
Loqi
aaronpk has 24 karma in this channel (1174 overall)
#
Loqi
kevinmarks has 2 karma in this channel (261 overall)
#
@kevinmarks
@joelpurra you can delegate to your own sit using <link rel="openid.server" href="https://openid.indieauth.com/openid" />
(twitter.com/_/status/818559777810718720)
#
aaronpk
that's kind of amazing that it fits in a tweet
#
tantek
and it even linked the second "URL"
#
tantek
maybe that's why it fit
#
tantek
tcod to 23 chars
#
KevinMarks
Al Taba?
KevinMarks, gRegorLove, chrisaldrich, KevinMarks_, tantek, loicm, cweiske, pfefferle, GWG, ben_thatmustbeme, Zegnat, dkm, arush and kline joined the channel
#
rhiaro.co.uk
edited /bookmark (+303) "/* IndieWeb Examples */"
(view diff)
chrisaldrich joined the channel
#
cweiske.de
edited /private_posts (+58) "/* Feedback */"
(view diff)
tantek, mabkenar and arush joined the channel
#
rhiaro
!tell aaronpk - do you have a way of automatically picking the best zoom level for a map to fit a path on?
#
Loqi
Ok, I'll tell them that when I see them next
arush joined the channel
#
petermolnar
for analyse text
tantek and sebsel joined the channel
marcthiele and singpolyma joined the channel
#
aaronpk
good morning!
#
Loqi
aaronpk: rhiaro left you a message 1 hour, 34 minutes ago: - do you have a way of automatically picking the best zoom level for a map to fit a path on?
#
Loqi
good morning
#
marcthiele.com
edited /Events (+4) "/* May */"
(view diff)
#
@Uxlco0
@edasfr @ElieSl y'a pas un côté "responsabilisation" et "hygiénique" avec webmentions vu qu'on héberge ses propres commentaires ?
(twitter.com/_/status/818838065250635776)
#
aaronpk
it's basically brute force guess and check
#
rhiaro
aha, swell
#
aaronpk
start at max zoom level. subtract 1. check if everything on the map is within the window. if so, do it again.
#
aaronpk
go until you eventually start clipping stuff off of the map
#
aaronpk
also i'm checking based on the pixel locations, after having converted latlng to x,y pixels
#
aaronpk
and you only need a bounding box, not the whole data, so the math is really simple
#
aaronpk
now that i think about it, it might make more sense to do that the other way around. start with the smallest zoom, see if it fits. if not, increase 1 and check again
#
marcthiele.com
created /2017/Düsseldorf (+6092) "Created page with "= <span class="p-name summary">IndieWebCamp Düsseldorf 2017</span> = The third IndieWebCamp in Düsseldorf, but just one of many [[IndieWebCamps]]! <div class="p-description d...""
(view diff)
#
aaronpk
marcthiele++
#
Loqi
marcthiele has 1 karma in this channel (5 overall)
#
rhiaro
maps lookin' good. Soon live
#
rhiaro
it's taking LA to Japan the long way around the world though :)
#
aaronpk
why's that?
#
rhiaro
I dunno. Does the order of the coords in the path list make a difference?
#
rhiaro
just looks funny
#
marcthiele.com
created /2017/Düsseldorf/Guest_List (+5264) "Created page with "== [[2017/Düsseldorf|IndieWebCamp Düsseldorf 2017]] == * '''When:''' <span class="dt-start dtstart"><time class="value">2017-05-13</time> <time class="value">10:00</time></spa...""
(view diff)
#
aaronpk
oh i see what you mean. no it just always has the -180 line on the left
#
aaronpk
i should fix that :)
#
petermolnar
rhiaro, just out of curiousity, which hashing algo are you using to produce the "57fdb920c75c1" like urls?
#
rhiaro
php uniquid()
#
rhiaro
whatever that is
#
rhiaro
time based I think
#
petermolnar
I thought you're hashing something pre-existing
#
rhiaro
okay, new maps are live
#
aaronpk
ooh nice
tantek joined the channel
#
aaronpk
i didn't realize you were going to just hotlink atlas maps :)
#
rhiaro
For the time being..
#
tantek
hotlinkingforthetimebeing++
#
Loqi
hotlinkingforthetimebeing has 1 karma
#
seblog.nl
edited /2017/Düsseldorf/Guest_List (+245) "/* Participants */ added myself"
(view diff)
#
seblog.nl
edited /2017/Düsseldorf/Guest_List (+0) "/* Participants */ ah, there are numbers too :o"
(view diff)
gRegorLove joined the channel
#
marcthiele.com
edited /2017/Düsseldorf (-21) "/* Organizers */"
(view diff)
#
KevinMarks
That la to Tokyo almost is the pearl harbor joke
#
tantek
KevinMarks: do we have an h-feed validator?
#
tantek
like something that can be run as part of a commit hook or Travis or whatever for GitHub commits?
#
aaronpk
an h-feed and h-entry validator would be super useful
#
tantek
indiewebify.me does something right?
#
aaronpk
ah yeah it has an h-entry validator
#
tantek
what is an h-entry validator?
#
Loqi
It looks like we don't have a page for "h-entry validator" yet. Would you like to create it?
#
tantek
h-entry validator is one of the features of indiewebify.me (https://indiewebify.me/validate-h-entry/) and can be used to check the validity of your [[h-entry]] permalink page, including whether it has various required or recommended properties, and [[authorship]].
#
loqi.me
created /h-entry_validator (+296) "prompted by tantek and dfn added by tantek"
(view diff)
#
tantek
what is h-entry?
#
Loqi
h-entry is the microformats2 vocabulary for marking up blog posts on web sites https://indieweb.org/h-entry
#
tantek
hopefully that makes that a bit more discoverable
#
KevinMarks
Hm. A h-feed validator would make sense too
#
KevinMarks
Basically, he lost the h-entry on posts, so everything went into the feed
#
tantek
ironically sounds like a similar level of problem that WordPress has/had
#
tantek
with h-entry markup being not at the same level as the stuff inside
#
tantek
core vs. themes etc.
#
@ldodds
Anyone experimented with using webmention to capture pings from, e.g. data journalism, back to open datasets? https://www.w3.org/TR/webmention/
(twitter.com/_/status/818875450164477952)
#
KevinMarks
Not sure the indiewebify.me validator would work as an integration test
#
tantek
KevinMarks, could you file an issue on indiewebify.me's github repo as to the problems you see with that, with suggested improvements if any?
#
KevinMarks
I think the indiewebify.me approach is good for humans. I'd like advice from bear on good practice for a ci test validator
#
aaronpk
it would be neat to have a validator that is intended to be used with integration tests. i don't know what that would look like tho
#
tantek
presumably the same "backend" could be used for both
#
aaronpk
probably
#
KevinMarks
For ci you usually have known data to check against, whereas a validator is checking structure
#
aaronpk
i could see doing something like "here's a URL. check whether you can find the "name" of this post and that it matches X"
#
aaronpk
and the validator returns true/false basically
#
bear
I had the beginnings of a thought about that last month
#
bear
using a test domain that was mostly staticly generated but with the python flask elements to build test domains for people
tantek joined the channel
#
KevinMarks
I see a validator as a diagnostic tool. Protecting mastodon against the mf2 being accidentally refactored away is trickier.
#
aaronpk
is there a test suite for mastodon itself?
#
aaronpk
could add tests there with the mf2 PR
#
bear
agree with the need for both a validator and a test suite
#
bear
they are two sides to the stable-spec coin
#
bear
that's why having a static site works well for the CI side -- it's something that can be generated using various tools / libs and then given to a CI suite to test against
#
bear
use text source files -> generate -> store -> standup with flask (or whatevs) -> run client side tests against temp site
#
bear
both sides of the above can be stored as artifacts for others to use against their tools or generators
marcthiele joined the channel
#
KevinMarks
That reminds me that I should take another look at the mf2 test suite
miklb joined the channel
#
miklb
weirdest thing. Two domains on my new server, using same nginx conf file save the domain, and same certbot command also swapping domain and getting error on one of them (the one I really want to issue the cert for)
#
aaronpk
what error? unable to validate?
#
aaronpk
are you sure there isn't some other nginx config block that's stealing that domain?
#
aaronpk
the order matters
#
miklb
hmm. Let me check if another nginx config
#
miklb
hmm. seems my symlink was bad :eek:
#
miklb
heh, thanks aaronpk
#
miklb
usually is the obvious, but after seeing same error over and over, start looking for the difficult
#
aaronpk
i think today is add-twitter-to-xray day
#
tantek
didn't barnabywalters have a bunch of utilities like that?
#
tantek
extensions to php-mf2 that would return a twitter page as if it had microformats and was parsed accordingly?
#
tantek
when you're adding this one-off support, are you adding it as fallback after no mf2 is found?
#
tantek
such that if those sites started supporting mf2 explicitly, then that would be returned instead?
#
aaronpk
no, i check whether the URL is a known silo
#
aaronpk
if twitter suddenly added mf2 support i think we'd know ahead of time
#
tantek
you could make that check after you find no h-* root objects
#
aaronpk
also the twitter one is going to require API keys so it's not even up to XRay to decide that
#
tantek
really? I thought barnabywalters's one didn't require API keys
#
aaronpk
his scrapes the page, but i want to use the api
#
aaronpk
i'll get more info by using the api
KevinMarks joined the channel
#
tantek
also for Twitter why not just do a URL substitution from the tweet permalink to the tweet intent permalink?
#
tantek
(which AFAIK has mf2 from benward)
#
tantek
and if you didn't know about that, I'm going to question your assertion "if twitter suddenly added mf2 support i think we'd know ahead of time" :)
#
aaronpk
i do remember that :) I'd have to check that it actually includes all the parts of the tweet which i suspect it does not
#
KevinMarks
I think I did that with unmung
#
KevinMarks
if "twitter.com" in url and '/intent/' not in url:
#
KevinMarks
Which could be smarter
#
tantek
right
#
aaronpk
i don't see any mf2 in the intent URLs
#
KevinMarks
Hmm looks like they got removed
#
KevinMarks
I need to check the URL rewriting code there
#
aaronpk
ah for the profile url
#
aaronpk
what about for tweet permalinks?
#
tantek
and if not, that's definitely a bug we can file with benward
#
KevinMarks
They were there in the embedded ones in iframes
Double_A, KevinMarks_ and marcthiele joined the channel
#
blog.kenbauer.me
created /User:Blog.kenbauer.me (+536) "Created page with "<span class="h-card">[http://blog.kenbauer.me/ Ken Bauer]</span> == Projects == * Associate professor at the Tecnológico de Monterrey in Guadalajara. * Chair of the Board of Dir...""
(view diff)
tantek joined the channel
#
aaronpk
hm did mb_substr change in php 5.6?
#
aaronpk
it seems to not work with emoji in 5.5
#
aaronpk
and google appengine doesn't run php 5.6 :headdesk:
#
petermolnar
I digged out awstats and I kinda surprised it alive and maintained
#
aaronpk
ah it's just that the default encoding was not utf-8 in php 5.5
KevinMarks joined the channel
#
KevinMarks
Is it the combining emoji?
#
KevinMarks
Zero width join is hard
#
aaronpk
even just one emoji failed
#
aaronpk
but it was just a charset issue. once i told it explicitly to use utf-8 then it worked
#
aaronpk
tho i should probably test it on some fancy emoji. i wonder if twitter's character counters work with that
arush joined the channel