#dev 2019-01-09

2019-01-09 UTC
#
@nhoizey
↩️ @mereteresa @iamtzi Alors il y a un plugin qui prend les Webmentions en charge, à priori (je connais peu WP) : https://fr.wordpress.org/plugins/webmention/
(twitter.com/_/status/1082794284422701056)
#
@abenico
Web上の言及/mentionで思い出した。こういうので標準化されるといいのかな?Recommendationだ > Webmention https://www.w3.org/TR/2017/REC-webmention-20170112/
(twitter.com/_/status/1082797167205482496)
snarfed, [tantek] and [eddie] joined the channel
#
[eddie]
!tell aaronpk I did a brainstorming session today for a potential IndieAuth extension for having a Mobile App to approve Authentication (similar to what you do with the Okta app). https://indieweb.org/RemoteAuth If you don't mind taking a look and providing feedback, it could be awesome or it could be horrible. You decide 🙂
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
!tell jacky I finished writing up the idea we were talking about the other day, it's still very much a rough draft idea: https://indieweb.org/RemoteAuth
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
Hi Eddie
#
[eddie]
Hey GWG
#
[eddie]
How are things going?
#
GWG
Playing with Indigenous for Android and altitude.
#
GWG
I am also wondering how to enhance my weather station display
#
[eddie]
Nice, sounds fun!
#
GWG
It's in my sidebar. I have other data, but not sure on presentation
#
[eddie]
3D weather effects!!
#
GWG
Actually, I was trying to decide if I should show humidity, pressure, rain/snow, etc
#
[eddie]
Ohhh gotcha. I definitely think things like rain/snow/other weather types is helpful.
#
[eddie]
I'm not sure about pressure but I can see humidity helping
#
GWG
I also have a feature to lookup by airport code I want to do more with
#
GWG
I have a thing for airport codes
#
[eddie]
Nice. I don't go to airports enough to do anything with them
#
GWG
Come to Austin?
#
GWG
But, traveling more of late has given me a chance to work on timezone issues, maps, weather etc
#
[eddie]
I wish! Unfortunately that doesn’t look in the cards this year. Probably won’t make it to any IWCs unless it’s Baltimore or NYC
#
[eddie]
That’s awesome though being able to do a lot with the travel related stuff
#
GWG
Eddie, someday I would like to do a Google esque trip report
#
GWG
I am moving there piece by piece
#
[eddie]
Yeah, I would love that too!
#
GWG
I think I might do it by fancy archive page
snarfed, KartikPrabhu, DenSchub_, deathrow1|absnt, stevestreza, [pfefferle] and [Rose] joined the channel
#
[Rose]
I might use my TripIt data as a base for a trip report.
#
GWG
Rose, looking forward to seeing what you build
#
[Rose]
I'm going to Seattle next week, hopefully before then I can automate the "start a trip" calls to Compass from my TripIt calendar so I don't forget.
#
[Rose]
(And end a trip. We shall see)
cweiske, [tantek], barpthewire, strugee, TripFandango, jeremych_, swentel, [jgmac1106] and [Rose] joined the channel
#
[jgmac1106]
Was I correct that there is no way to write a media query for <detail><summary > to expand by default? Could not use print media query... Had to build page... Violate DRY
[voss] and [Vincent] joined the channel
#
[Vincent]
[jgmac1106] If I remember correctly that is controlled by the HTML only. If you write your HTML with <details open> instead of <details> then it should be open by default
#
[Vincent]
if the user clicks it, the browser will remove the open parameter so dont worry about programmatically doing anything to overwrite it.
#
[jgmac1106]
I want closed by default but open on media query. Will try details open thx
#
sknebel
display: contents should do it (but I have not tested if all browsers do it that way), you can also use JS otherwise/as a fallback
cjwillcock and [relapse] joined the channel
#
[relapse]
Since it's toggled by the presence of an attribute rather than style, I'm not sure if media queries can access it to activate it/ deactivate it. You can _detect_ it with `detail[open]` but I think that's it.
#
[jgmac1106]
Yeah saw an open issue in the CSS W3c working group repo... Will stick with a print page rather than query
[davidmead], [voss], [smerrill] and [tantek] joined the channel
#
[tantek]
That really should be a pseudo-class (since it’s about element state) rather than depending on a particular attribute
[grantcodes] and [schmarty] joined the channel
#
[schmarty]
looks like controlling the open state of a details element is still being debated at w3c: https://github.com/w3c/csswg-drafts/issues/2084
#
Zegnat
Huh. I just added signin through indielogin to a project in less than 100 lines of code. Wonder how much this is going to grow when I handle IndieAuth myself rather than outsourcing it to aaronpk
[smerrill] joined the channel
#
swentel
it's not that much to be honest
#
Loqi
swentel: snarfed left you a message 4 days, 16 hours ago: got it. thanks for trying! fortunately dansup is indieweb friendly and likely to merge PRs if you send him one or two to fix those issues
#
Loqi
swentel: snarfed left you a message 4 days, 16 hours ago: eg feel free to send him https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attributedto which shows that attributedTo can be an array
#
[smerrill]
woah, b2. that’s a name i havent heard in a long time.
[jgmac1106], dougbeal|mb1, micahsilverman, snarfed and [eddie] joined the channel
#
[eddie]
Zegnat: Yeah, logging in through IndieAuth really isn't that bad
#
Zegnat
I mostly wanted to see how easy I could get this to work with Zend’s default auth middleware. Answer was in less than 100 lines ;)
#
[eddie]
RelMe is a different beast, but straight IndieAuth is fairly standard, just a couple POST requests and some JSON parsing
[tantek] joined the channel
#
[eddie]
That's awesome
#
[eddie]
Zegnat++
#
Loqi
Zegnat has 57 karma in this channel over the last year (162 in all channels)
#
Zegnat
Will see about doing it without indieauth.com later, and then see if there is a simple way to package this up for reuse
snarfed, [smerrill], [pfefferle], cweiske, jackjamieson, [kevinmarks], [schmarty], [cleverdevil], KartikPrabhu, micahsilverman and tglobe joined the channel
#
kisik21
I need to speak to the developer of Checkmention; their indieauth tripped pyindieblog's redirect_uri spoof protection
krychu joined the channel
#
snarfed
kisik21: https://checkmention.appspot.com/ has the link to github, try there
#
kisik21
ok
#
kisik21
snarfed: the thing is: last commit is dated 2014
#
snarfed
that's not necessarily a bad sign
#
snarfed
sometimes just means a project is complete and mature
#
snarfed
(others have discussed it here before, but i think freshness/recency is an overrated bad sign of project quality, if not just plain bad)
calumryan, calumryan_ and [jgmac1106] joined the channel
#
kisik21
snarfed: oh no, the checkmention project is not the culprit... It seems to be indieauth.com itself! investigating this further right now
#
kisik21
aaaand my server times out
#
kisik21
i really need to speed up the software by adding more caches
#
kisik21
for various things
#
kisik21
like posts... it fetches stuff from the FS every time it needs to render a post
#
snarfed
reading one or two or a few small files from disk for each user request is reasonable. magnetic disk seeks are ~10ms; SSDs are orders of magnitude faster.
#
snarfed
if your site is slow, i'd look elsewhere for optimizations, unless you're reading a ton of files or they're huge
#
kisik21
SD card in an RPi2
#
kisik21
is Loqi down?
#
kisik21
or it can't just see my post?
#
KartikPrabhu
what is loqi?
#
snarfed
latency on that page seems fine for me. <2s client side, so probably a lot faster on your side
#
KartikPrabhu
oops spaces
#
kisik21
who is kisik21
#
Loqi
A trans-person and a clueless amateur coder. Doesn't like her look and uses an anime-styled avatar instead https://indieweb.org/User:Fireburn.ru
#
kisik21
oh hey it works
#
kisik21
so it just can't read posts
#
kisik21
or specifically my blog
#
kisik21
snarfed: checkout my homepage
#
snarfed
still ~2s
#
kisik21
oh nice
[asuh] joined the channel
#
snarfed
(which again means your backend is rendering much faster, i expect well below 1s)
[smerrill] joined the channel
#
kisik21
weird
#
[smerrill]
i/o and network are going to be slower on an rpi than any dedicated server class machine; but for a personal blog it ought not matter enough to be worth worrying about.
#
kisik21
because I bet that I've seen 9 seconds on my homepage in my log!
#
kisik21
[smerrill]: and I support WebSub so consumers are expected not to flood my site with updates but subscribe to Switchboard (which is acting as my hub) so they receive fat pings every time I post stuff
#
[smerrill]
and depending on what else you have running, and how much memory is being used, the Linux kernel will keep pages in cache for you, to minimize disk i/o.
#
kisik21
so I guess the only load should come from crawlers and visitors reading my blog directly rather than via readers
#
kisik21
there is probably more bots on my site than humans
[eddie], chrisaldrich and [Rose] joined the channel
#
kisik21
aaronpk: IndieAuth.com doesn't pass redirect_uri spoof protection in pyindieblog when using IndieAuth provider button; should an issue be filed despite indielogin.com being a viable and recommended replacement?
#
kisik21
and maybe it's my bug?
#
aaronpk
indielogin.com is only a replacement for half of indieauth.com so it's not going anywhere any time soon. Feel free to file an issue!
#
Loqi
aaronpk: [eddie] left you a message 17 hours, 59 minutes ago: I did a brainstorming session today for a potential IndieAuth extension for having a Mobile App to approve Authentication (similar to what you do with the Okta app). https://indieweb.org/RemoteAuth If you don't mind taking a look and providing feedback, it could be awesome or it could be horrible. You decide 🙂
KartikPrabhu, snarfed1, [tantek] and [voss] joined the channel
#
[tantek]
Interesting comparison (inspired by the RSS died article) https://trends.google.com/trends/explore?date=all&geo=US&q=rss,json,xml
KartikPrabhu, [cleverdevil], [Rose] and [eddie] joined the channel
#
[eddie]
Hmmm, so I'm currently owning my code snippets on my site: https://eddiehinkle.com/code/ So now I'm thinking what does it look like if I fork existing code? For the most part it should look the same, I'm thinking you just need to link to the original source.
#
[eddie]
Would that be considered canonical? Or since it's a fork, is my fork canonical to itself and the original source would be referred to as something else?
[smerrill] joined the channel
#
[smerrill]
the fork is its own thing.
#
aaronpk
thankfully there's a bunch of prior art for this now
#
aaronpk
github does this with gists even
#
cweiske
[eddie], I display the root and other forks: http://p.cweiske.de/117
#
[eddie]
Yeah, that's what I'm thinking through duplicating is how gists fork
#
[eddie]
ohhh interesting cweiske, as you said, you display what it's the "fork-of" plus "forks" themselves
#
[eddie]
GitHub Gists calls it "forked-from"
#
[eddie]
pretty similar
#
[eddie]
What is a fork?
#
Loqi
fork is a special type of reply that is similar to an edit except with the expectation of diverging from the original rather than suggesting changes to it, and is also like a repost in that a fork displays most or all of the original likely with its changes made inline https://indieweb.org/fork
#
cweiske
also works when forking from github gists: http://p.cweiske.de/123
#
[eddie]
Oh awesome, cweiske!
#
cweiske
but unfortunately, github does not support webmentions to link my fork on their page
#
[eddie]
Hmmm I don't agree with that a fork is a "special type of reply"
#
aaronpk
[eddie]: yeah i agree, i think it's only a "reply" in the plumbing sense
#
aaronpk
at least "response" would be a better term there
#
[eddie]
Well I feel like it's not really a response
#
[eddie]
a Pull Request is a response
#
[eddie]
a fork might never be sent back?
#
[eddie]
I guess response as in repost
#
[eddie]
makes sense
#
aaronpk
i agree that's not the primary motivation, but i do think it's useful to treat it as a response for plumbing reasons
#
aaronpk
like how cweiske shows forks of his, he'd expect someone who forked one to send the fork as a response to his canonical one
#
[eddie]
Yeah, definitely
#
snarfed1
honestly the post/reply/interaction etc taxonomy doesn't really match repos, commits, PRs, etc that well
#
[eddie]
That makes sense
#
[eddie]
What is a fork?
#
Loqi
fork is a form of response that is similar to an edit except with the expectation of diverging from the original rather than suggesting changes to it, and is also like a repost in that a fork displays most or all of the original likely with its changes made inline https://indieweb.org/fork
#
[eddie]
There, I feel better about the def now
#
snarfed
i get that we've mapped between the two a bit, and we can kind of make it work if we squint, and start to tie ourselves in knots, but i'd hate to see us try too hard to align the two entirely
#
aaronpk
it seems fine for simple code snippets
#
[eddie]
Yeah I think for Repos it gets complex
#
snarfed
snippets sure. repos, forks, commits, hunks, PRs, no.
#
aaronpk
but i agree once you start getting into full code bases with PRs and etc then it's not so useful
#
snarfed
exactly
#
aaronpk
i added code snippets to my site and actually treating it as a regular post was useful because i got to bring along all the other stuff that my posts do, like handling responses
#
sknebel
(not even getting in the entire double-meaning of "fork" that's around nowadays, since Github choose to use that word for "a users copy")
#
aaronpk
true true
#
snarfed
sknebel: your local working copy is usually referred to as a clone, not a fork, right? i haven't really heard that double meaning of fork.
#
snarfed
(hence git clone)
#
sknebel
snarfed: but your "fork" on github is much more like your working copy
#
snarfed
ahhh that double meaning. got it. nm.
#
sknebel
fork in the traditional sense implies to me a split of direction, community, ..
#
sknebel
whereas me pressing "fork" to send you a PR is none of that
#
snarfed
right, understood
#
[eddie]
I made my first IndieWeb Fork, the source code was a gist! https://eddiehinkle.com/2019/01/09/13/code/
[smerrill] joined the channel
#
[smerrill]
that neat
#
sknebel
neat. I find the multiline selection thing a bit much though
#
[eddie]
Yeah, you don’t find times when you need to highlight a section of code that you’re sending to someone?
#
[eddie]
I’ve done it on GitHub code samples often when trying to direct someone to a section of a file
#
sknebel
being able to do it somehow is nice, but that randomly clicking highlights stuff feels odd
#
sknebel
e.g. I (browser-) hightlight text to copy it, click to remove the highlight, suddenly a line is marked as something
#
[eddie]
True, I could hide it behind a button
#
[eddie]
That’s a good point
#
sknebel
or maybe have to click the line numbers?
#
Loqi
jacky: [eddie] left you a message 20 hours, 45 minutes ago: I finished writing up the idea we were talking about the other day, it's still very much a rough draft idea: https://indieweb.org/RemoteAuth
#
jacky
ahhh nice!
#
[eddie]
sknebel: yeah I started with line numbers and then decided the line was easier. Maybe I’ll start by going back to just the numbers for now
[jgmac1106] joined the channel
#
[eddie]
Great idea, thanks!
#
jacky
woah so much detail; thanks [eddie]
#
[eddie]
haha yeah, I went through essentially a full spec draft once I got started, jacky! 😆
#
@rubygems
jekyll-webmention_io (3.3.4): This Gem includes a suite of tools for managing webmentions in Jekyll: * Tags *… https://rubygems.org/gems/jekyll-webmention_io
(twitter.com/_/status/1083130427903262720)
[cleverdevil], [asuh], j12t, chrisaldrich, deathrow1, [grantcodes], tbbrown, snarfed and [tantek] joined the channel
#
[tantek]
Apparently YQL just shutdown days ago! https://developer.yahoo.com/yql/
#
[tantek]
site-deaths << 2019-01-03 YQL per https://developer.yahoo.com/yql/ <blockquote>As of Thursday, Jan. 3, 2019, the YQL service at query.yahooapis.com will be retired. This will impact users of datatables.org</blockquote>
#
Loqi
ok, I added "2019-01-03 YQL per https://developer.yahoo.com/yql/ <blockquote>As of Thursday, Jan. 3, 2019, the YQL service at query.yahooapis.com will be retired. This will impact users of datatables.org</blockquote>" to the "See Also" section of /site-deaths https://indieweb.org/wiki/index.php?diff=55450&oldid=55420
snarfed joined the channel
#
snarfed
yql++ oh man memories
#
Loqi
yql has 1 karma over the last year