#dev 2018-01-01

2018-01-01 UTC
[kevinmarks], KevinMarks, [dgold] and [miklb] joined the channel
#
GWG
snarfed: I do have a question for you of a development nature
#
GWG
snarfed: If both the Micropub and IndieAuth plugins support logging into a WordPress site using IndieAuth, how do we avoid collision?
#
snarfed
the usual answer to "how do two plugins coordinate" is hooks and filters
#
GWG
Right now, they use completely different ways of hooking in. So they can be installed independently. But I'd imagine that coordination will be needed in future.
[colinwalker] joined the channel
#
Loqi
[dshanske] #9 Complete Rewrite of Plugin
#
GWG
By the way
#
snarfed
😂😂😂 quite a title
#
tantek
good forethought GWG
#
tantek
seriously
#
GWG
tantek: On which?
#
tantek
forethought on considering indieauth login interactions across plugins
#
KartikPrabhu
can't micropub plugin depend on indieauth plugin?
#
GWG
tantek: Micropub uses a query variable to launch its interaction. Which means it preempts all traditional WordPress functions very early on. I hook in higher up.
#
GWG
KartikPrabhu: If only WordPress had dependency management of any kind.
#
GWG
But it could.
#
GWG
Still trying to figure out what to do with a state parameter
#
GWG
If I'm waiting for a reviewer, does this satisfy a 2018-01-01 commitment?
#
[miklb]
checks with the judges…
#
[miklb]
judges say yes, it counts
#
KartikPrabhu
is this indieweb's got talent?
#
GWG
KartikPrabhu: tantek was talking about the Indieweb Challenge, and Indieweb Commitments....I don't want to disappoint him by not adding it to the list
renem_, tantek and snarfed joined the channel
#
[9 lines deleted]
#
tantek
aaronpk ^^^ please remove spam from archive
#
jjuran
Please also report in #freenode
snarfed1 and snarfed joined the channel
#
cweiske.de
edited /weather (+182) "/* IndieWeb Examples */"
(view diff)
AngeloGladding joined the channel
#
Zegnat
Hmm, didn’t aaronpk add the anti spam Freenode service?
#
Loqi
[Zegnat] #2 Remove the first spam of 2018
#
Zegnat
aaronpk++ for clearing up the IndieAuth endpoint discovery priorities! That can simplify my code a little :D
#
Loqi
aaronpk has 98 karma in this channel (1519 overall)
KevinMarks and tantek joined the channel
#
Zegnat
Ugh, I keep getting random curl timeouts and I have no clue why. Really making testing my IndieAuth code frustrating.
#
Zegnat
Alright. I think Profile URL discovery is done. This redirect stuff did add some head scratching. https://gist.github.com/Zegnat/6cb5ed0aa9bce6d9daca096f180e63ef
[kevinmarks], KevinMarks, KevinMarks_, [xavierroy], snarfed and John__ joined the channel
#
Zegnat
What is the problem you are seeing with Micropub, [xavierroy]?
#
Loqi
It looks like we don't have a page for "problem you are seeing with Micropub, [xavierroy]" yet. Would you like to create it? (Or just say "problem you are seeing with Micropub, [xavierroy] is ____", a sentence describing the term)
#
Loqi
[xavierroy] #80 Error: undefined indexes
#
aaronparecki.com
edited /p3k (+433) "/* Itching */"
(view diff)
#
aaronparecki.com
edited /p3k (+184) "/* Archive Pages */"
(view diff)
#
aaronparecki.com
edited /p3k (+228) "/* Itching */"
(view diff)
#
Zegnat
Aah, my knowledge of anything WordPress will keep me from really helping there :(
KevinMarks joined the channel
#
Zegnat
(My inexistent knowledge, I should say.)
#
aaronparecki.com
edited /p3k (+884) "/* Itching */"
(view diff)
#
sknebel
aaronpk: reading your itches, why not have both collapsed and extended view on feeds?
#
aaronpk
what do you mean both?
#
sknebel
have different urls for both
#
sknebel
and a link to switch
#
sknebel
(still have to pick a default of course)
#
aaronpk
not sure
tantek and KevinMarks joined the channel
#
[3 lines deleted]
#
tantek
!tell aaronpk check logs for spam today 07:48 and yesterday 22:16 both PST and please blank.
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
Zegnat already sent a PR for that :)
#
aaronpk
now anyone can help delete spam!
#
tantek
have we documented that on /irc ?
#
aaronpk
whoa github started signing their own commits
#
aaronpk
which is fishy because now it looks like my github commits are signed with my own key
KevinMarks joined the channel
#
Zegnat
I was also surprised to see stuff I submitted to be signed, as I don’t have a key associated with my profile at all
#
aaronpk
okay, I installed the ubuntu language packs for all the languages indienews supports, but I can't get php to recognize them!
#
aaronpk
the month and days of the week should be localized here https://news.indieweb.org/sv/2017/12
[kevinmarks] joined the channel
#
aaronpk
I didn't have to do anything special and the copy on my laptop works fine
#
Zegnat
Do you need to restart PHP on the server?
#
aaronpk
I even restarted the right version
#
aaronpk
I have 3 php's now lol
#
aaronpk
5.6, 7.1 and 7.2
#
aaronpk
I should probably get rid of 7.1
#
sebsel
And did you restart apache too?
#
aaronpk
it's nginx reverse proxying to php, so not required
#
aaronpk
I don't see any PHP settings that would let me add these explicitly
#
sknebel
utf-8 vs non-utf8 locales issues?
#
aaronpk
oh maybe
#
aaronpk
sknebel++ that was it
#
Loqi
sknebel has 27 karma in this channel (83 overall)
#
Loqi
😊
#
sebsel
yaay!
[xavierroy] joined the channel
#
sebsel
I used to just type out a PHP-array like ['01' => 'januari', '02' => 'februari', ...] every time I needed dates... so bad.
KevinMarks joined the channel
#
aaronparecki.com
edited /IRC (+1877) "add info about how to remove spam from the IRC logs"
(view diff)
#
Zegnat
is now re-re-building the IndieAuth flow of Sink because argh
KevinMarks_ joined the channel
#
GWG
What is the state parameter in Indieauth generally used for other than verifying it doesn't change?
snarfed joined the channel
#
aaronpk
that's the primary use, as a CSRF protection thingy
#
GWG
aaronpk: I thought you were using it for something else. I vaguely remember the conversation.
#
aaronpk
if you don't want to store session info server-side then you can use it to stash info between the initial auth request and the response
#
GWG
aaronpk: That was it.
KevinMarks joined the channel
#
GWG
aaronpk: Is there anything about using it for session info written out anywhere?
#
GWG
Hi, snarfed.
#
GWG
snarfed: Since I seem to be in an Indieauth mood, do you want me to do a PR for https://github.com/snarfed/wordpress-micropub/issues/95
#
Loqi
[aaronpk] #95 use JSON response format for token check
#
aaronpk
I think there's a sentence or two saying approximately that in the book
#
GWG
aaronpk: And I cherish every page of it.
#
sebsel
aaronpk You are using Laravel for your site, right? And you're using a file-system that is indexed by a database? I was wondering... are you using the Eloquent models at all?
#
sebsel
I wrote a sort of HybridModel to handle it, but I am not sure if I still like it.
#
aaronpk
i'm not using the eloquent models for my site, just the DB ORM
#
sebsel
Ah, okay!
#
aaronpk
the classes for my posts are all outside of the Laravel context too
#
dansup
sebsel: Laravel models are really handy
#
sebsel
dansup They are! That's why I like to use them. But I also really want to store the original posts in flat files. :)
#
aaronpk
aw snap I just got the .dev HSTS update in chrome
#
dansup
What about a custom database driver?
#
aaronpk
time to switch over to full wildcard https for my .dev sites
#
sebsel
That sounds even more complicated. I mean: the HybridModel I have now works like a charm, but it just hides so much information about which fields are saved where.
#
sebsel
I am thinking about using a IndexedEntry class which extends Eloquent, and my own Entry class, which does stuff with the file.
#
sebsel
But it also felt like reinventing a wheel aaronpk might have solved, but apparently not, so I'll continue to look for other solutions :)
#
dansup
sebsel: ah, that makes sense.
#
snarfed
GWG: re https://github.com/snarfed/wordpress-micropub/issues/95 , if you include unit tests and manual testing, sure! those are the work. (the actual code change is trivial. :P)
#
Loqi
[aaronpk] #95 use JSON response format for token check
#
GWG
snarfed: Manual testing, definitely. As for unit tests...I was going to try to write some for the Indieauth plugin. Might as well write a token endpoint verification test and add it to both.
#
snarfed
great!
#
dansup
aaronpk: Using laravel valet (dnsmasq/nginx) I can still use .dev/TLS with latest chrome. https://i.dansup.xyz/3i0b1Q2W1U0X
#
GWG
snarfed: I'm still not the best unit test writer.
#
GWG
I'm better at deriving tests from existing ones, as opposed to from scratch, so far
#
Zegnat
I was just messing with token endpoints, never sure how I want to write the tests for it so I just always end up implementing first
#
snarfed
GWG: that's how all code is written, ever :P
#
GWG
Zegnat: These are client tests, not server.
#
GWG
Anyone have some unit tests for indieauth I can derive from then?
#
Zegnat
Ah, yeah, I have never written client code for tokens. Sink is only a client for authentication.
#
GWG
Zegnat: I need to test that too
#
GWG
I can't even find any in aaronpk's repos.
#
GWG
Nor ben_thatmustbeme.
#
GWG
Oh, well.
#
GWG
So much for the easy way
#
sebsel
We all keep an eye on aaronpk's repos for the easy way :P
#
Zegnat
just doesn’t write tests most of the time
#
Loqi
hahaha
#
GWG
Okay. Closest I found.
#
GWG
Zegnat: I must feed snarfed's insatiable appetite for unit testing.
#
Zegnat
I can just never come up with every error situation that can happen in these cases
#
aaronpk
dansup: I have a good https setup for *.dev domains now, just hadn't fully switched every hostname over yet
[pfefferle] joined the channel
#
aaronpk
for every live site, I have a copy on my laptop with the same hostname with .dev at the end, e.g. aaronparecki.com.dev and quill.p3k.io.dev
#
aaronpk
I made a bunch of wildcard certs for *.com.dev and *.p3k.io.dev
#
GWG
aaronpk: How high on your list is indieauth.rocks?
#
aaronpk
GWG: it'll probably be a while before I get there
#
GWG
Okay.
#
aaronpk
btw here's the code for tokens.indieauth.com https://github.com/aaronpk/IndieAuth-Token-Endpoint
#
Loqi
[aaronpk] IndieAuth-Token-Endpoint
#
GWG
aaronpk: Already had it up
KevinMarks and eli_oat joined the channel
#
GWG
First m
#
GWG
First swarm coin display
#
Loqi
[David Shanske] Skip to content David Shanske The Definitive Location Menu ...
#
GWG
Clearly need to check my markup
#
GWG
aaronpk, in 5 to 10 years, every WordPress site could have feature parity with p3k. If you stop iterating, possibly
AngeloGladding, KartikPrabhu, John__ and tantek joined the channel
#
aaronpk
[miklb] i'm getting an error from your profile URL, too many redirects https://miklb.com/author/miklb/
#
aaronpk
also not sure why your profile URL isn't just your home page
KartikPrabhu, gRegorLove, snarfed and tantek joined the channel
#
loqi.me
created /best_nine (+247) "prompted by tantek and dfn added by tantek"
(view diff)
#
loqi.me
edited /Instagram (+16) "tantek added "[[best nine]]" to "See Also""
(view diff)
#
loqi.me
edited /best_nine (+45) "See Also"
(view diff)
#
loqi.me
edited /best_nine (+72) "See Also"
(view diff)
#
loqi.me
edited /best_nine (+55) "tantek added "https://www.instagram.com/explore/tags/2016bestnine/" to "See Also""
(view diff)
#
loqi.me
edited /best_nine (+422) "tantek added "Brainstorming: It should be possible to build an indieweb version into your own site, or even a service that asked for an indieweb site URL, checked all [[photo]] posts from the past year, created a grid of the top 9 posts by number of li..."
(view diff)
#
KartikPrabhu
anyone here who can carry out s simple test for me on Safari?
#
dansup
KartikPrabhu: sure!
#
KartikPrabhu
dansup: https://kartikprabhu.com/static/demo/svg-js.html could you click each button twice and let me know how many feathers appear in each box
#
dansup
KartikPrabhu: here is a gif http://i.dansup.xyz/290W2E0Q2k0u
#
KartikPrabhu
dansup: nice thanks!
#
KartikPrabhu
it seems only Chrome and Opera are the weird ones!
#
dansup
ah, np!
KevinMarks, ben_thatmustbeme and [miklb] joined the channel
#
[miklb]
aaronpk weird. I assume that author url is a default WordPress path, should probably look at the template used for that or change the URL. Not sure why the redirects, I’ll look at my logs. I’ve seen some funky stuff with webmention end point and 500 errors. Concerned my config for caching is not properly optimized.
tantek and deathrow1 joined the channel