#dev 2017-01-02
2017-01-02 UTC
KevinMarks_ joined the channel
#
petermolnar !tell Zegnat the only thing I considered to add is the url as title for the inline footnote link, but pandoc don't seem to be able to do that; navigating indeed can be problematic this way, but I'm yet to find a solution for that :(

#
petermolnar !tell sknebel I don't think that is doable with CSS

#
petermolnar I will most probably need to add some JS to render a float popup on hover for the footnote references with the footnote content

#
petermolnar that's not too hard and it will solve most problems

#
Loqi Gogs is a self-hosted Git server with additional features such as issue management https://indieweb.org/Gogs

#
Loqi It looks like we don't have a page for "Gitea" yet. Would you like to create it?

#
petermolnar !tell Zegnat apparently, there is a built-in backreference for footnotes in pandoc, I somehow misunderstood it's purpose and made it invisible w/ styling; it's back now, so you can jump back into the text from the footnotes.

KevinMarks joined the channel
#
KartikPrabhu Loqi messages?

tantek joined the channel
#
tantek.com edited /100DaysOfIndieWeb (+217) "/* More 100 days projects */ 100 days of positive photos" (view diff)

cweiske and KevinMarks joined the channel
#
vanderven.se martijn uploaded /Special:Log/upload "uploaded "[[File:is-traveling-to-x-from-y.png]]""
#
petermolnar true

#
petermolnar thanks

#
petermolnar https://plainjs.com/ - for those who need one js to do one thing well without frameworks :)

#
Zegnat There is also http://youmightnotneedjquery.com/ that will give you code snippets to replace things you might be using jQuery for

#
petermolnar yep, I'm aware of that

#
petermolnar although I'm still trying to avoid JS; CSS can do a lot of stuff on it's own now, like dynamically sizing elements to viewport width/height

#
petermolnar back in the days that way done by nasty js

#
cweiske !tell aaronpk your site still can be fooled into handling posts as replies to themselves by sending a webmention with an anchor, e.g. on https://aaronparecki.com/2016/12/29/10/
tantek joined the channel
#
sebsel Zegnat your mention is there :) http://5eb.nl/4m82

#
Loqi authorship is a claim about who the author(s) of a post are https://indieweb.org/authorship

singpolyma joined the channel
#
Zegnat So it just doesn’t implement /authorship?

#
aaronpk looks like it'll need more tests for the different authorship cases https://github.com/indieweb/php-comments/blob/master/tests/BasicTest.php#L374

#
Loqi aaronpk: cweiske left you a message 1 hour, 30 minutes ago: your site still can be fooled into handling posts as replies to themselves by sending a webmention with an anchor, e.g. on https://aaronparecki.com/2016/12/29/10/

#
aaronpk the whole authorship algorithm is here https://github.com/aaronpk/XRay/blob/master/lib/Formats/Mf2.php#L384

#
aaronpk all the mf2 parsing logic is contained within a class, and called by the API here https://github.com/aaronpk/XRay/blob/master/controllers/Parse.php#L211

#
Loqi HTTP is an abbreviation for Hypertext Transfer Protocol, a protocol for communication, supported by web servers (like Apache & nginx) and browsers https://indieweb.org/HTTP

#
aaronpk here's one implementation of it https://github.com/aaronpk/XRay/blob/master/lib/HTTPCurl.php

#
voxpelli I guess XRay do http://microformats.org/wiki/jf2 ?

#
aaronpk there's even a spec for it :) https://www.w3.org/TR/post-type-discovery/

KevinMarks joined the channel
#
aaronpk rhiaro: progress! I have a line for my trip now. just gotta make it curved next https://media.aaronpk.com/Screen-Shot-2017-01-02-08-29-36.png

DanC joined the channel
#
aaronpk slightly more interesting one https://media.aaronpk.com/Screen-Shot-2017-01-02-08-31-45.png

KevinMarks joined the channel
tantek joined the channel
#
KevinMarks You could adjust the map projection so the great circle line is straight and the country outlines conform

#
KevinMarks Or you could do the svg cheat I suggested yesterday.

#
KevinMarks <path d="M x1,y1 Q 0,0 x2,y2">

#
KevinMarks And play with the 0,0 until you like the curve

#
KartikPrabhu svg can use relative coordinates

#
KevinMarks 0,0 is the top left so you'll get a curve that pulls that way. You likely want y=0 and some blend of the x1 and x2 depending. Quadratic beziers are easier to think about than cubics.

#
KartikPrabhu let me find relative coordinates then because I am sure SVG does that too

#
KevinMarks Scroll down to the Q example

#
KartikPrabhu aaronpk: search for "lowercase letter specifies relative coordinates"

#
KartikPrabhu fragmentions would be useful here :P

#
KartikPrabhu basically lowercase version of the command makes the point's position relative to the previous one

#
Loqi ImageMagick is open source software for editing images https://indieweb.org/ImageMagick

#
KartikPrabhu what is vulns?

#
Loqi It looks like we don't have a page for "vulns" yet. Would you like to create it?

#
Loqi It looks like we don't have a page for "vulnerabilities" yet. Would you like to create it?

#
KevinMarks Technically vulns are insecurity

chrisaldrich joined the channel
#
KartikPrabhu well this happened in response to cluttered webpages BS: https://mercury.postlight.com/

#
KartikPrabhu it seems like a rebranding of readability

#
@sl007 @mahemoff Working on indieauth-node. Realized SMS is 100x more expensive in germany/EU (and empire?) compared to US. Also sad! (twitter.com/_/status/815980813183488000)
miklb joined the channel
#
KevinMarks I wrote great circle interpolation in 1993, so me too.

#
KevinMarks That's why I was suggesting the xy cheat, as presumably you already cropped the map sensibly

#
aaronpk ok this is dumb, can anyone help with this? https://media.aaronpk.com/Screen-Shot-2017-01-02-10-30-07.png

#
KevinMarks Why do you want that point?

#
KartikPrabhu which axes is X?

#
KartikPrabhu actually what sknebel said seems correct

#
KartikPrabhu so X axis is horizontal?

#
KartikPrabhu and you know coordinates of A and B right?

#
aaronpk oh hey i got it! https://media.aaronpk.com/Screen-Shot-2017-01-02-10-53-15.png

#
aaronpk that's from http://math.stackexchange.com/a/383648

#
aaronpk and now i can adjust the angle used to tweak how it looks https://media.aaronpk.com/Screen-Shot-2017-01-02-10-55-53.png

#
aaronpk !tell rhiaro does this look about right to you? https://media.aaronpk.com/Screen-Shot-2017-01-02-10-55-53.png

#
aaronpk better: rounded caps https://media.aaronpk.com/Screen-Shot-2017-01-02-11-02-36.png

#
KartikPrabhu that looks great

#
KartikPrabhu technically it is correct !

#
KartikPrabhu you'll have to figure out a heuristic of when to flip the directions

#
KartikPrabhu well as in it follows your algorithm for the curves.

#
KevinMarks That sort of what I was getting at - people want a curve that goes up and left rather than down and right

#
kartikprabhu.com edited /fragmention (+403) "/* Challenges */ add challenge about focus" (view diff)

#
KartikPrabhu KevinMarks: see the new Challenge on https://indieweb.org/fragmention#Should_an_element_selected_by_fragmentioned_URL_be_focussed.3F

#
aaronpk flipping both looks wrong: https://media.aaronpk.com/Screen-Shot-2017-01-02-11-10-12.png

#
KartikPrabhu yeah you only want to fip the shorter one

#
KartikPrabhu and flipping both will mess up in some other situation

#
KevinMarks Try midpoint for X and 0 or min(y1, y2) for y

#
KartikPrabhu it think the min will give you a direction flip

#
KevinMarks 0 will give you bouncier curves that imply flying up

KevinMarks joined the channel
chrisaldrich1, chrisaldrich_ and bret joined the channel
#
KevinMarks It is one of those things where geography and perception fight a bit

#
KartikPrabhu Zegnat: not to worry

#
aaronpk the only one that looks slightly weird is SEA->KEF->FRA but i'm not actually sure what I *want* this to look like https://media.aaronpk.com/Screen-Shot-2017-01-02-12-29-27.png

#
aaronpk aw man, another edge case? https://media.aaronpk.com/Screen-Shot-2017-01-02-12-32-49.png shouldn't that short hop be flipped?

KevinMarks joined the channel
#
KevinMarks That is a plausible great circle route - it does go over Iceland

#
sebsel btw aaronpk: I solved my webmention-display :) I just worked around php-comments. https://seblog.nl/2017/01/02/2/screenshots

#
KevinMarks Did you look at the Google ones, aaronpk?

#
KevinMarks Looks like they only do one leg at a time though

#
KevinMarks And they decided portland was vancouver

#
Zegnat KevinMarks, in case you missed it, this is Facebook’s display: https://indieweb.org/File:is-traveling-to-x-from-y.png

#
KevinMarks Wow, that is a clone of the Google one, down to the icons

#
aaronpk hm should this one be flipped? https://aaronparecki.com/2016/09/23/1/

#
KartikPrabhu lgtm

#
Zegnat aaronpk, that was probably because of the tiny green goblins in your math. http://www.smbc-comics.com/comic/monty-hall-problems
