#dev 2017-11-15

2017-11-15 UTC
tantek and snarfed joined the channel
#
aaronpk
Alright made some awesome progress on Monocle today!
#
aaronpk
Gonna hopefully publish a microcast episode about it tomorrow or thursday
snarfed joined the channel
#
tantek.com
edited /User:Tantek.com (+1765) "next steps on post-type-discovery, WebComment, WebLike, WebRepost, WebRSVP"
(view diff)
#
jamesshelley.com
created /User:Jamesshelley.com (+32) "Created page with "Curious. Generalist. Freelancer.""
(view diff)
[eddie] joined the channel
#
[eddie]
Awesome, congrats aaronpk! The Microsub stuff is all very easy but my Microsub Server got put on hold because the parsing stuff was so difficult!
#
[eddie]
So I’m impressed with your h-feed parsing and polling server progress
#
aaronpk
[eddie]: totally
#
aaronpk
You're welcome to use XRay for that if you want
#
aaronpk
Splitting up the feed parsing from fetching was definitely the right call
#
jamesshelley.com
edited /Planning (+93) "/* Potential Cities */"
(view diff)
tantek joined the channel
#
tantek
aaronpk Monocle Mark II?
renem, eli_oat, KartikPrabhu and [eddie] joined the channel
#
[eddie]
aaronpk: Yeah, with your progress, when I finish up my active work on Indigenous, then I'll probably switch back and install Xray locally and use some of your hardwork :)
gRegorLove joined the channel
tantek, KartikPrabhu, gdelf, snarfed and cweiske joined the channel
#
ancarda
I have a question around WebMentions and redirects; if the source sends me into an infinite loop (to try and be malicious), would that carry on until the curl timeout? Should I disable all redirects, or limit to something reasonable?
#
cweiske
every client I know of has a redirection limit
#
cweiske
at around 5 or 20
#
ancarda
Alright, thank you!
#
ancarda
Hopefully I’ll have my IndieWebsite up sometime this year
#
cweiske
you should publish early, even if most of the features you wish for are missing
#
Loqi
I agree
#
ancarda
Even if WebMentions aren’t working yet?
#
ancarda
I suppose I can log them to a file for now, then follow up later once the system is working
#
tantek
indeed
#
cweiske
you could also delegate webmention receiving to a hosted service for now until you have your own code running
#
ancarda
Alright, I’ll work on Microformats then :) I already have some content
#
cweiske
all that matters in my eyes is that you publish what you have to say. everything else is sugar coating
#
cweiske
even microformats are not a must to get your content published
#
ancarda
I need to buy a server first haha, but I can have something up by the weekend. Unfortunately I spend a lot of time afk so it’ll take some time for anything to be live
#
Loqi
rofl
#
ancarda
But I salvaged over 600 posts from the silo I spent 3 years posting to, so I’d like to put that live
#
ancarda
Are any of your websites open source? I was thinking of putting mine on GitLab (MIT license) as Zegnat seemed interested in how I was building it (e.g. the blog post editor I’m working on saves drafts automatically when you finish typing)
#
ancarda
Although, isn’t that putting data into another silo? (We need h-repo and u-commit)
#
cweiske
mine is not, voxpelli's should be IIRC
#
cweiske
I just my git repos on my own server
#
cweiske
but yes, using gitlab and github to host your code is siloing again
#
cweiske
I mirror my public git repos to github though
#
cweiske
posseing if you will
#
ancarda
Hmm, that could work
#
ancarda
I will not host my own emails or DNS though, been there - it’s not worth the hassle
#
cweiske
it's hard, yes
#
cweiske
but by having my own DNS server I could implement my own dyndns
#
Loqi
[Christian Weiske] DynDNS via SSH
#
ancarda
I was hosting my own so I could have CAA records and SSHFP (needs DNSSEC). CAA is now widely supported and SSHFP wasn’t that useful to me in the end
#
ancarda
Anyway, half the time my website would be down and it was always BIND needed restarting. I never figured out why it was broken
#
ancarda
cweiske: that’s really cool!
KartikPrabhu, jeremycherfas, [kevinmarks] and loicm joined the channel
#
cweiske
Zegnat, re testing - the elephant in the room is phpunit. why not use that?
#
cweiske
what do you gain from phpspec that phpunit has not?
#
ancarda
I haven’t worked much with phpunit so I can’t comment, possibly easier mocking?
#
ancarda
Do you think phpunit is better? My current site is built using phpspec but I could look into unit more
#
ancarda
It’s a pain sometimes, I’ve had to work around it more than once :/ we use it at work so it’s something I have experience with
#
cweiske
i have not used phpspec yet
[pfefferle] joined the channel
#
Zegnat
I just need an easy way to pump HTML in and get a list out, and do that a lot with different inputs. I have no real preference for a framework.
#
Loqi
Zegnat: tantek left you a message 10 hours, 37 minutes ago: is there a place on the IWC Berlin wiki page where it lists all the demos / code produced for it like your https://github.com/Zegnat/php-linkextractor ?
#
ancarda
cweiske, Zegnat: I wrote a very quick sample of what a class and a test often looks like: https://pastebin.com/W5wvbwJ4 this is with mocking an injected database object
#
ancarda
It's a bit messy, but hopefully gives an idea of what phpspec looks like? I'll look into phpunit
#
Zegnat
All those shouldReturns are what I do not look forward to writing... So I would end up in a place where I am going to be generating the test files dynamically then
#
ancarda
One thing I do like is you write the test first, run phpspec, and it'll create empty functions for you, so it can somewhat make it nicer to work with
#
Zegnat
Also, big blobs of HTML in the PHP test files...
#
cweiske
I would keep the html files separate
#
cweiske
any only load them in the test
#
cweiske
you could make it even easier by having a test.html and text.urls files
#
Zegnat
Yeah, that’s basically what I have
#
Zegnat
Just need a way to automate the testing of that
#
cweiske
and the test would load both files, parsing test.html and comparing the result with the list of urls line-separated in test.urls
#
Zegnat
Will any of the test frameworks actually help me do that. Or am I going to write my own automation within PHPUnit/phpspec?
#
Zegnat
In the case of the latter, I may as well not use a framework
#
cweiske
let me code something up
#
Zegnat
I guess my main gripe is that I do not want to learn and conform to a testing framework if I am going to have to write 100% own logic to then handle my cases. Could just stick with phpt files then.
#
cweiske
phpunit gives you nice diffs: http://p.cweiske.de/513
#
cweiske
it would expect a three-set of .html, .url and .urls file for each test case
#
ancarda
That looks better than phpspec, I was just reading the manual, I like @dataprovider
#
ancarda
Will that run `testExtract` for each item in the array returned by `filesProvider`?
#
ancarda
That's pretty cool
#
Zegnat
I am probably going to lift that from you and work on it on my commute home. Thanks cweiske!
#
Zegnat
cweiske++
#
Loqi
cweiske has 23 karma in this channel (121 overall)
#
Zegnat
Didn’t know I could make PHPUnit do the looping for me, That’s basically what I needed!
#
cweiske
@dataProvider is pretty helpful
#
cweiske
you can even return iterators that lazy-load data on access
#
ancarda
What do you think I should do about models? phpspec would have me mock the database object when I'm testing my blog class, is that the right approach?
#
Zegnat
I guess that would be memory efficient if the HTML files get too big, haha
#
Loqi
haha
#
ancarda
I've always been uncomfortable with that because I don't actually test if the SQL is correct
#
ancarda
Maybe run a script to create tables with a test_ prefix, assert they're empty (and were created correctly), run functions to create data, assert there's some data returned?
[kevinmarks] and mlopatka joined the channel
#
cweiske
you could use sqlite for testing
#
cweiske
when starting the test, run you migration/schema setup in an in-memory sqlite database
#
cweiske
then do your queries
jeremych_, eli_oat and loicm joined the channel
#
aaronpk
Zegnat: take a look at the tests in XRay, I suspect that's similar to what you want to achieve
#
Zegnat
Will do aaronpk
#
aaronpk
All the html (and http headers since I also have tests for redirect handling) are in files, and the library knows how to retrieve from that file instead of make an http request when the tests are running https://github.com/aaronpk/XRay/tree/master/tests/data/source.example.com
KevinMarks joined the channel
#
GWG
Morning.
#
Loqi
guten morgen
KevinMarks_, eli_oat and snarfed joined the channel
#
www.svenknebel.de
edited /User:Kaja.sknebel.net (+193) "/* features */"
(view diff)
eli_oat, KevinMarks and [kevinmarks] joined the channel
#
loqi.me
created /FHIR (+100) "prompted by sknebel and dfn added by Zegnat"
(view diff)
#
kaja.sknebel.net
edited /FHIR (+1) "linkify ('x is y. <url>.' pattern)"
(view diff)
#
Zegnat
Kaja++
#
Loqi
kaja has 2 karma in this channel (5 overall)
#
martymcgui.re
edited /site-deaths (+313) "/* 2012 */ Webshots"
(view diff)
#
aaronpk
woo, running php 5.6 and 7.1 side by side
[eddie] joined the channel
[miklb] joined the channel
#
[eddie]
Oh wow, that does look cool
snarfed and John__ joined the channel
#
grantcodes
And on the same day VSCode announce the same thing!
#
[eddie]
hmmm I have an Indigenous user who has a profile at the root of their domain. Their blog is at domain/blog/. Their authorization server is set at domain/blog/ (it's indieauth), their twitter rel=me is set on their root domain.
#
[eddie]
I don't think they've ever fully use indieauth/micropub yet. Because I don't see a way for the connections to successfully be made
#
[eddie]
So I think the biggest question is what is the best recommendation to make to them. I'm assuming it's adding the endpoint code to the root of their domain
#
[eddie]
But then I guess the me value will be the root domain and I need to find out if their wordpress plugin will allow the root domain
#
[eddie]
Is there anyway to add to domain/blog/ to say "hey my identity is over there" and point to the root domain? or is that not a thing?
tantek joined the channel
#
[eddie]
Ohhh nevermind. I think I might see a solution if it's snarfed's wordpress micropub plugin. I'll have to find out what plugin they are using
[chrisaldrich] joined the channel
#
[chrisaldrich]
eddie I don't think there are any other Micropub plugins for WordPress other than the one you mentioned.
#
[eddie]
Ahh good to know, thanks chrisaldrich
#
[chrisaldrich]
are you working on authentication?
#
[eddie]
Yeah, they are having issues authenticating. I think they need to add the endpoint urls to their main domain
#
[eddie]
that way they authenticate with indieauth, and the wordpress micropub should accept them as long as their profile url matches their root domain
#
[chrisaldrich]
It seems like the rel-me issue for this had been solved before so one could have their h-card/rel-me on one page but a blog feed on another.
#
[eddie]
Well, if the user enters their root domain in IndieAuth.com, they can login, but there isn't a micropub endpoint on the root domain
#
[chrisaldrich]
the only issue I could see one having is if they've got two separate wordpress installs: one at root and a separate one at /blog/
#
[eddie]
Ohh yeah thankfully not the case here
#
[eddie]
so that's where my app dies
#
[eddie]
the homepage seems to be static html
#
[chrisaldrich]
I know there was discussion of having an h-card on one page with a "fuller" one on a separate page at /rel-me IIRC
#
[eddie]
Oh, awesome. I'll take a look at that too. Thanks ?
#
[chrisaldrich]
If they do have a static page on root and a WP install at /blog/ then their problem is the rough equivalent of having two separate WP installs at each.
#
lars-peters.net profile lape
created /User:Lars-peters.net_profile_lape (+59) "Created page with "My personal site: [https://lars-peters.net lars-peters.net]""
(view diff)
#
[chrisaldrich]
They might remedy the issue by manually adding the line: <link rel="micropub" href="http://example.com/blog?micropub=endpoint"> to the header of their static site if they need it for micropub.
#
[chrisaldrich]
(Or whatever the micropub endpoint is on their WP install at /blog/)
#
[chrisaldrich]
I have to think someone has run across this before and snarfed, pfefferle, or GWG have accounted for it somewhere?
rmk1 joined the channel
#
tantek
Awesome that people are just showing up and creating their user pages!
KevinMarks_, snarfed and KevinMarks joined the channel
#
eli_oat
Does anyone know of documentation for [omnibear](https://omnibear.com)? I'm interested in adding support for reacji, but not certain of what to add to my endpoint. The enty on indieweb.org is pretty sparse: https://indieweb.org/Omnibear
#
sknebel
eli_oat: don't think there is more
eli_oat1 joined the channel
#
sknebel
do you want to add support to omnibear or does it not work with your site?
#
eli_oat1
it isn't working with my site
#
eli_oat1
It used to, but doesn't any longer
#
eli_oat1
And the error message isn't helping me figure out what is happening
#
sknebel
what is the error?
#
Loqi
It looks like we don't have a page for "error" yet. Would you like to create it?
#
eli_oat1
Just "Error posting Note" or whatever type I'm attempting to post
#
sknebel
what is reacji?
#
Loqi
reacji is an emoji reaction, the use of a single emoji character in response to a post, introduced as a feature by Slack[1] https://indieweb.org/reacji
#
sknebel
you could try posting an emoji manually or with a different client?
#
eli_oat1
It isn't an issue with emoji. I can post them just fine using quill and the micro.blog app. The issue seems to be that I can't post anything with omnibear
#
eli_oat1
which is almost certainly a problem with my micropub endpoint
#
sknebel
oh you can't post anything
#
sknebel
tried logging in again?
#
sknebel
other than that, hard to debug without logs. you can debug the extension locally and see what responses it gets as well
#
eli_oat1
HARK!
#
eli_oat1
I feel like an idiot
#
eli_oat1
signing in and out fixed everything
KevinMarks joined the channel
#
Zegnat
Did you switch token endpoint at some point maybe? That would’ve made the token in Omnibear’s memory go stale, and I am not sure it actually checks for anything like that
KevinMarks_ joined the channel
#
eli_oat1
I upgraded to a new version of FF, which may have impacted something?
eli_oat joined the channel
#
www.boffosocko.com
edited /Indieweb_for_Journalism (+247) "archiving section"
(view diff)
#
sknebel
chrisaldrich++ for regular work on the indieweb for journalism article!
#
Loqi
chrisaldrich has 10 karma in this channel (57 overall)
#
www.boffosocko.com
edited /archival_copy (+465) "/* Services */ www.SaveMy.News"
(view diff)
#
www.boffosocko.com
edited /archival_copy (+60) "/* See Also */ PASTA"
(view diff)
#
sknebel
what is a webhook?
#
Loqi
A webhook is a mechanism for notifying a server about updates to some content in realtime by making an HTTP request https://indieweb.org/webhook
KartikPrabhu joined the channel
#
www.svenknebel.de
edited /webhook (+109) "/* APIs that support webhooks */ add reading.am"
(view diff)
#
www.svenknebel.de
edited /Reading.am (+25) "clarify that for web content"
(view diff)
KevinMarks and tantek joined the channel
#
www.svenknebel.de
edited /Leaders (-53) "berlin didn't happen, need new date"
(view diff)
#
tantek.com
edited /Leaders (+293) "next IWS mid 2018 will likely have a LS, if you're planning an IWC and want to organize one, add it here"
(view diff)
#
Zegnat
Reading.am << https://www.reading.am/footnotes/url - Webhook documentation
#
Loqi
ok, I added "https://www.reading.am/footnotes/url - Webhook documentation" to the "See Also" section of /Reading.am
#
loqi.me
edited /Reading.am (+80) "/* See Also */ new section"
(view diff)
#
Zegnat
Reading.am << https://twitter.com/martijnvdven/status/930878863302971392 Current Firefox extension is outdated
#
@martijnvdven
@reading are you planning on releasing a new Firefox addon that is compatible with the WebExtensions APIs? Right now users of the new Firefox are unable to use reading.am ?
(twitter.com/_/status/930878863302971392)
#
Loqi
ok, I added "https://twitter.com/martijnvdven/status/930878863302971392 Current Firefox extension is outdated" to the "See Also" section of /Reading.am
#
loqi.me
edited /Reading.am (+99) "Zegnat added "https://twitter.com/martijnvdven/status/930878863302971392 Current Firefox extension is outdated" to "See Also""
(view diff)
KevinMarks joined the channel
#
martymcgui.re
edited /Planning (+822) "/* New Locations */ IWC Baltimore proposed dates!"
(view diff)
#
@benjaminparry
? Homebrewing again - Attempting an automated POSSE webmention via brid.gy at tonight’s Homebrew Website Club: http://benjamin.parry.is/collecting/thoughts/2017/11/homebrewing-again/
(twitter.com/_/status/930889059744002048)
KevinMarks_ joined the channel
[kevinmarks] joined the channel
#
@ChrisAldrich
For citations, @Regina2SU, you could use the W3C's Webmention protocol for sending/receiving notifications https://indieweb.org/webmention
(twitter.com/_/status/930891469547765760)
cweiske, [mrkrndvs], [jeremycherfas], [eddie] and tantek joined the channel
#
eddiehinkle.com
edited /Planning (+152) "/* Baltimore */ +eddiehinkle.com"
(view diff)
#
tantek
hmm our /WebRTC page is a bit thin, and does not indicate IndieWeb significance (if any)
#
martymcgui.re
edited /Planning (+1) "/* Baltimore */ date typo"
(view diff)
#
tantek
like we should at least list directly the WebRTC tools we have used for remote participation - talky.io, appear.in, any others?
KevinMarks joined the channel
#
jonathanprozzi.net
edited /Planning (+100) "/* Baltimore */"
(view diff)
[kevinmarks], snarfed and [miklb] joined the channel
#
tantek.com
edited /SEO (+529) "IndieWeb Examples, wiki, NASCAR problem"
(view diff)
#
tantek.com
edited /WebRTC (+397) "is a spec, not just a "project", link to spec with status, move advocacy site to see also, spec status flow chart"
(view diff)
#
tantek
static site folks might be interested in this: https://github.com/strugee/lazymention
#
Loqi
[strugee] lazymention: Support WebSub and Webmention on a static site
j12t, [mrkrndvs], tantek, bengo, snarfed, KevinMarks and KevinMarks_ joined the channel
#
schmarty
strugee++ nice service!
#
Loqi
strugee has 1 karma in this channel (2 overall)
tantek joined the channel
#
martymcgui.re
edited /tools (+71) "/* IndieAuth Tools */"
(view diff)
[kevinmarks], [thunder] and KevinMarks joined the channel