#dev 2016-10-03

2016-10-03 UTC
kylewm and KevinMarks joined the channel
#
Zegnat
KevinMarks: I do not want to replicate my hcard. Took the tantek route of using rel="author", and I think I used it right. But implementation seems iffy at this point.
loicm joined the channel
#
KevinMarks
You don't need to replicate it, you have all the bits there save a photo
#
KevinMarks
If you put p-author h-card on the link instead of u-author you'd get name and url
#
Zegnat
Maybe I'll do that when I get back from work. Maybe I will concentrate on permalink pages first
KevinMarks_, loicm, KartikPrabhu, singpolyma, kylewm and tantek joined the channel
#
tantek.com
edited /events/2016-10-05-homebrew-website-club (+51) "fix a little markup, ambiguate SF location pending co-host discussion"
(view diff)
gRegorLove joined the channel
tantek joined the channel
#
aaronpk
alright. super in progress, but who wants to try out micropub.rocks
#
aaronpk
i have a set of tests for creating posts in form-encoded and JSON formats
#
barryf
aaronpk I'll give the form-encoded tests a try. My JSON endpoint isn't far away so this will be very useful.
#
aaronpk
cool, thanks!
#
aaronpk
definitely let me know if you think any additional tests would be helpful
#
barryf
Nice. 100 and 101 pass, but 102 failed. I'll go and fix my numeric array offsets :)
#
barryf
Also, I first failed to read the fields correctly and added my URL rather than Micropub endpoint. May be good to have a way of editing/deleting endpoints.
#
aaronpk
i saw :) i'm adding that now
AngeloGladding joined the channel
#
bear
hmm, I getting an "error=invalid_state" error trying to indieauth to my access endpoint to generate a token
#
aaronpk
on indieauth.com?
#
aaronpk
which provider?
#
bear
clef
tantek joined the channel
#
bear
i'm using my token generator to try and get a post token for micropub.rocks
#
aaronpk
hmm me too
#
aaronpk
logging in a second time with clef worked
#
bear
now that persona is gone, it's my only way to auth
#
tantek
bear, wait, pretty sure the servers still work til November
#
aaronpk
well you can always have indieauth.com email you a code
#
tantek
is still using to log into things at work
#
aaronpk
i took persona out of indieauth.com already
#
bear
but they are no longer presented as an option for indieauth
#
tantek
yeah that probably makes sense ;(
#
aaronpk
i figured there's no point in encouraging people to sign up for persona now if it's just going to go away soon
#
aaronpk
i still get a lot of new people using indieauth.com as an openid provider because it's one of the few left
#
bear
logging in again via clef is causing my indieauth code to cough up an invalid token error
KevinMarks joined the channel
#
bear
indieauth.com/auth is returning a 400 now :/
#
bear
I logged in using github
#
bear
oh man, micropub.rocks is going to be *painful* ... 2nd test in and i'm already getting exceptions
#
bear
(but in a joyously fun way!)
#
aaronpk
haha fun
#
Loqi
rofl
#
aaronpk
yeah i'm already failing one test
#
bear
most of it is stuff I expect from specs that are written with a php-centric view of array encodings ;)
#
bear
ugh - and my json handling is blowing up
#
bear
knows what he is doing tonight
#
aaronpk
haha yeah, form-encoding is less a standard and more a PHP convention
#
bear
very much so - I was cringing when I saw micropub use so much of it
#
aaronpk
there unfortunately isn't anything very much better
#
bear
which is why I just sat on my hands and knew that the python versions would be very "flexible"
#
bear
in what they allow and handle
KevinMarks joined the channel
#
bear
hmm, my h-entry with two categories created the item but still failed
#
bear
that means the mf2 for the categories is wrong I guess
#
bear
oh - it doesn't scan the resulting code because it's a 202 I guess
#
aaronpk
it doesn't look at the post at all actually. the last box is always self-reported
#
aaronpk
(i hope the instructions there made that clear)
#
bear
kinda
#
bear
I would change the checkbox to read something like "Now check that the Post has both categories"
#
bear
the current wording implied that it would be verified by something, just now clear on who
#
bear
hmm, test 102 doesn't change the slug/title enough to cause a new post so it "passes" only because my code detects it's the same url and doesn't do a new create but rather an update
#
aaronpk
whoa what
#
aaronpk
your server treats that as an update?
#
aaronpk
that's odd
#
bear
it's the same slug - why is that odd
#
aaronpk
it's not passing you a slug tho
#
bear
right, and without a slug it's using the title as one
KartikPrabhu joined the channel
#
tantek
changing the slug slightly is a valid update use-case
#
bear
yea, this is the old discussion of why slug based metadata stores are fraught with problems - I get that
#
aaronpk
bear: that seems like it could lead to unintentional data loss
#
aaronpk
this test being a (relatively contrived) example
#
bear
since i'm the only one creating new items... :)
#
bear
my backend actually uses date+slug to minimize that
#
bear
i'm wondering if you should compare the location returned and fail it if it's already found in the domain's list of test passed
#
aaronpk
that's a good idea
#
bear
so we can root out this slug == item once and for all
#
bear
which is going to cause me a *LOT* of reworking...
#
bear
laughs - photo-by-url and my code is telling me to basically to f-off ;) -- no signs of anything like a photo url in the debug output
#
aaronpk
oh dear
#
aaronpk
i may need to double check i'm encoding everything right
#
aaronpk
i'm doing a somewhat crazy thing which is the text on the test page is actually what is sent to your endpoint. you browser extracts it and tells the server to go post it to your endpoint.
#
aaronpk
bear: refresh 104 and try again
#
gregorlove.com
edited /Instagram (+273) "/* Features */ settings > comments"
(view diff)
#
bear
aaronpk - that's better, my code still fails, but now I can see the entry that failed
#
aaronpk
cool. that was my fault for not URLencoding the photo URL
#
@bitworking
Working on this myself, added HTTPS support, now slowly working on webmention support. https://twitter.com/waxpancake/status/783030608444297216
(twitter.com/_/status/783039385721638913)
#
aaronpk
apparently php is more forgiving of things like that
#
bear
my list of items to look for comes from an old copy of the micropub spec, so I need to get it refreshed or realize that now any item can appear and make it more flexible
#
bear
that's why it's important to test with multiple implementations in different languages
#
aaronpk
i went with the approach of "store everything" and sort it out when displaying it
#
bear
yea, I filter everything and pass only known good on to the backend
#
bear
so if it's not in my whitelist the post creation code never sees it
#
aaronpk
wonders what bear is going to say about this then https://micropub.net/draft/#unrecognized-properties
#
Loqi
[Aaron Parecki] Micropub
#
bear
i'm going to sigh that deep sigh of php-inspired spec madness and carry on
#
aaronpk
haha what that has nothing to do with php
#
Loqi
aaronpk: lol
#
bear
true, this one should have been "web dev inspired spec madness"
#
bear
but that's the world I live in now - i'm adjusting (and consuming more beer)
#
bear
section 3.3.5 is really targeting proxies or other intermediate agents - they should always store everything even if only acting on a small fraction of it
#
bear
because they don't know what the up/down stream handlers will want/need
#
gregorlove.com
edited /Instagram (-9) "/* Tweet text to Instagram */ updated instagram image URL, used photosrcalt template"
(view diff)
#
bear
gets a late lunch
#
aaronpk
takes a lunch break, considers having a beer and then getting back to work on the rest of the server tests
#
gregorlove.com
edited /Instagram (+472) "/* POSSE */ +me"
(view diff)
AngeloGladding joined the channel
#
tantek.com
edited /events/2016-10-05-homebrew-website-club (+23) "SF is at GoDaddy this week, sort alpha"
(view diff)
#
tantek.com
edited /events/2016-10-05-homebrew-website-club (+220) "/* What */ topics, @waxpancake tweet"
(view diff)
#
tantek
!tell chrisaldrich1 would a checklist like this help for IWC LA? https://github.com/donut-js/donut-js.github.io/issues/21
#
Loqi
Ok, I'll tell them that when I see them next
#
tantek
Also curious about what other HWC co-organizers think of a checklist like that
#
tantek
closest equivalent we have currently is: https://indieweb.org/Homebrew_Website_Club#Structure
#
calumryan.com
edited /Main_Page (-7) "/* Homebrew Website Club */"
(view diff)
#
calumryan.com
edited /Events (+37) "/* October */"
(view diff)
#
aaronpk
okay finished the first "update" test. the site first creates a post, then you click "continue" to run the update request
#
aaronpk
i think that's a reasonable flow
#
gregorlove.com
edited /Events (-22) "bye-bye September. Updated sort order"
(view diff)
#
gregorlove.com
edited /events/2016 (+2751) "/* 2016 */ archiving March 2016 events"
(view diff)
#
gregorlove.com
edited /Events () "(-2752) /* March */ archiving March 2016 events"
(view diff)
#
gRegorLove
tantek: Think we should leave latest 3 months on /Events#Recent instead of 6? Or maybe just move them directly to /events/2016 and link to that from the #Recent subheading?
#
tantek
we could do latest 3 months only
#
tantek
I vaguely remember keeping latest 6 so that the IndieWebSummit for a given year would show up in the list of past events for that year during that year
#
tantek
but that's not particularly strong reasoning
#
gRegorLove
There's /Events#IndieWebCamps for that, though not in h-event format
#
tantek
right, that's probably good enough at this point
#
gregorlove.com
edited /events/2016 (+12677) "/* 2016 */ archiving April-June 2016"
(view diff)
#
gregorlove.com
edited /Events () "(-12678) /* Recent */ archiving April-June 2016"
(view diff)
#
gregorlove.com
edited /Events (+76) "/* Recent */ added "earlier" subhead with link to /events/2016"
(view diff)
#
KevinMarks
Hm, lots of non-resident in here today
#
KevinMarks
Lol non-dev is what I thought I typed
#
KevinMarks
Thanks SwiftKey