#dev 2017-12-31

2017-12-31 UTC
#
upon2020.com
edited /Tutorials (+245) "Added links to background info on tech"
(view diff)
#
upon2020.com
edited /Special:Log/upload () "uploaded a new version of "[[File:ubos-logo-big.png]]": Updated logo"
(view diff)
snarfed and [kevinmarks] joined the channel
#
aaronparecki.com
edited /Special:Log/upload () "uploaded a new version of "[[File:indiewebcamp-button.png]]": grey border"
(view diff)
[tantek] and gRegorLove_ joined the channel
renem, snarfed, [eddie] and tomasparks joined the channel
#
aaronparecki.com
edited /weather (+75) "/* Eddie Hinkle */ add link to blog post"
(view diff)
[miklb] joined the channel
#
aaronparecki.com
edited /weather (+199) "/* IndieWeb Examples */"
(view diff)
[eddie], gRegorLove_, gRegorLove, [miklb] and tomasparks joined the channel
#
tantek.com
edited /badge (+101) "EFF member badge"
(view diff)
#
benatkin.com
edited /User:Benatkin.com (+251) "update what I'm doing"
(view diff)
[kevinmarks] joined the channel
#
@hubertlepicki
Junior developer: "I will just copy over this code to reuse it" Middle developer: "I will make it DRY with code sharing/inheritance/macros" Senior developer: "I will just copy over this code to reuse it"
(twitter.com/_/status/946725454043598849)
[kevinmarks], [colinwalker], John__ and KevinMarks joined the channel
#
dgold
i am getting increasingly annoyed with mastodon
#
dgold
kind of hard to programatically recognise when a reply/repost/like is of a mastodon post
[kevinmarks] joined the channel
#
[kevinmarks]
Did their mf2 go bad?
snarfed joined the channel
#
sknebel
dgold: what are you trying to do?
#
dgold
sknebel: to send like-of and repost-of actions through to mastodon from micropub
#
dgold
so if, e.g. I was using quill to send a like-of to my site, this would automagically be sent to mastodon and show as a like-of there
#
dgold
all the 'reactions' to that tweet, like-of, repost-of and reply-to, were done via my micropub endpoint
#
snarfed
dgold: you've seen https://fed.brid.gy/ , right?
#
Loqi
Ryan Barrett
jjuran joined the channel
#
dgold
to be perfectly frank, snarfed, I forgot all about it :(
#
snarfed
lol np
#
dgold
that's a nice waste of an hour :-)
#
Loqi
aww, cheer up
#
dgold
so - I need an atom feed (check) .well-known set up (check)
#
dgold
ok - my atom feed needs to advertise a pubsubhub?
KevinMarks joined the channel
#
dgold
snarfed: ok - I appear to be present on the mastodon fediverse, as @ascraeus.org@ascraeus.org
#
snarfed
dgold: congrats!
#
dgold
is that doubling an artefact of poor config on my part?
#
snarfed
no, it's intentional. https://fed.brid.gy/#use
#
snarfed
mastodon sometimes only shows the username, or de-emphasizes the instance domain, so this was a tradeoff
#
dgold
that's a good tradeoff
#
Loqi
[00dani] #3 allow users to choose their own username
#
dgold
snarfed: how do I now post onto mastodon?
#
Loqi
[snarfed] #18 figure out user and post discovery
#
dgold
I see the data re like/post/reply, but can I use fed.br to _post_?
#
snarfed
once your site is set up as described, mastodon users *should* technically be able to follow your site
#
snarfed
in practice that's been a bit flaky, but possible
#
dgold
well, I've 'followed' myself (and orthodox freudians everywhere are exploding) so I'll see
tomasparks and aaronpk joined the channel
#
aaronpk
oh crap, the feed parser library I am using was just updated to say it's not maintained anymore
#
Loqi
[miniflux] picoFeed: [Not Maintained] PHP library to parse and write RSS/Atom feeds
#
dgold
snarfed: I'm guessing the link to fed.br needs to be _in_ the atom feed?
#
dgold
or is it just on the website page? or am I completely misreading here
#
snarfed
dgold: link? for replying via webmention?
#
dgold
snarfed: from your docs - "To like, repost or reply to a post on a fedsocnet, create an indie like, repost, or reply as usual, and include a link to https://fed.brid.gy/ in that post."
#
Loqi
Ryan Barrett
#
snarfed
right, just to trigger a webmention. the link itself doesn't really matter, bridgy fed doesn't check for it
#
snarfed
(aaronpk earmuffs :P)
#
aaronpk
oh gosh what
#
snarfed
nothing, nothing *whistles*
#
dgold
aaronpk: that's concerning - given that miniflux uses that parser
#
aaronpk
oh jeez, he's rewriting his reader in Go
#
aaronpk
"Miniflux 2 is a rewrite of Miniflux 1.x in Golang. The development still in progress and it's not ready to be used."
#
dgold
buwha?
#
aaronparecki.com
edited /Miniflux (+620) "version 1 is deprecated"
(view diff)
#
dgold
I have a copy of the php version, phew
#
aaronpk
welp guess I need to find another feed parsing library if I want to keep that stuff up to date
#
sknebel
fork all the things!!!
#
aaronpk
on the plus side, RSS/Atom are mostly stable so at least there aren't changes to keep up with in a library
#
dgold
ah, he's left the code for the php version at https://github.com/miniflux/miniflux-legacy
#
Loqi
[miniflux] miniflux-legacy: Minimalist RSS reader (version 1.x)
#
petermolnar
golang, ok - postgres WHY?!
#
snarfed
hey now
#
aaronpk
postgres is a fine database
#
petermolnar
that I agree with
#
petermolnar
but not for this purpose
#
sknebel
doesn't want to use an ORM, wants to use postgres only features
#
petermolnar
miniflux was php+sqlite, moving to go is... ok, why not, but postres brings a whole new level of dependencies
#
aaronpk
oh I didn't realize it was sqlite before
#
sknebel
afaik it supported multiple DB types before
#
dgold
Sqlite 3 or Postgres >= 9.3
#
dgold
but in the docs: "By default, Miniflux uses Sqlite, if you would like to use Postgres or MySQL instead you will have to modify your config.php file."
#
sknebel
according to config docs also mysql
#
dgold
config.example.php line 21: // Database driver: "sqlite", "postgres", or "mysql" default is sqlite
#
petermolnar
the point is it could use sqlite
#
petermolnar
so no db server dependency
#
dgold
exactly. the reason I chose it
#
aaronpk
oh well
#
dgold
oh jeez. "Miniflux doesn’t use any config file, only environment variables.
#
aaronpk
I still say feed readers without the ability to interact with the content are a dead end
#
petermolnar
that'd the 2.0 thing, dgold?
#
dgold
petermolnar: yup
#
petermolnar
beautiful
#
Zegnat
I didn’t use Miniflux, but sad to see a PHP project die. It is still infinitely easier to run a PHP self-hosted anything than almost everything else in my experience. Because shared hosting will often only offer PHP.
#
petermolnar
while I did develop a love for python, php-fpm is certainly a simpler thing than any python wrapper
#
Zegnat
But I think several other packages (including XRay?) are using the PHP feed parser that was built for Miniflux? That library losing support might be worse than just Miniflux moving to go.
#
petermolnar
potentially faster as well
#
dgold
i've been using it these past four or five months, ever since the tt-rss chap went all pepe the frog; I'm pretty upset at these developments
#
petermolnar
you went all pepe - never go full pepe
#
Zegnat
Yep. picoFeed (also used in XRay) is now officially deprecated. https://github.com/miniflux/picofeed
#
petermolnar
that could be a line in tropic thunder 2
#
Loqi
[miniflux] picoFeed: [Not Maintained] PHP library to parse and write RSS/Atom feeds
#
aaronpk
Zegnat: yeah that's how I found out about this in the first place
#
dgold
Zegnat: :) that discovery is what prompted the entire discourse
#
Zegnat
Ah, sorry, I was busy, hehe
#
dgold
with your sink?
#
Zegnat
With sink-related code. That is, the port from Sink to licit.li so it can power my blog.
[kevinmarks] joined the channel
#
[kevinmarks]
Wonder if unmung as a service would be a way to do this.
#
Zegnat
aaronpk, are you forking picoFeed?
#
[kevinmarks]
Though unmung doesn't parse h-feed, ironically
[eddie] joined the channel
#
[eddie]
So I had a question/though. Is there anyway to detect that websites a given identity can edit provided a URL? My first thought was if it was part of your identity url, like https://eddiehinkle.com can be assumed to be able to edit anything at https://eddiehinkle.com but this would not be the case for Zegnat where identity url and blog url at different domains.
#
Loqi
Eddie Hinkle
#
[eddie]
So has there been any thoughts as to be able to determine if blog post xyz.example/post can be edited by identity.example?
#
aaronpk
[eddie]: I think that kind of thing is very implementation-dependent
#
Zegnat
No. There exists no connection between those two things. xyz.example/post can be edited by anyone with a token (with correct update scopes) for the xyz.example micropub endpoint
#
aaronpk
it's also possible that someone may be able to edit a site and doesn't want that information made public
#
Zegnat
Only xyz.example (or its token endpoint) knows what tokens are valid for updates.
#
aaronpk
Zegnat: I already forked picofeed to make a minor change, and he merged the PR right before deprecating the library. sadly didn't publish a new release to packagist tho.
#
aaronpk
i'm not sure I want to actually maintain the library though, so I will probably just find a new one when I need to
#
Zegnat
Someone else seems to be working on picoFeed ... https://github.com/nicolus/picoFeed/commits/feature/break-http
#
snarfed
hey aaronpk did the chat.indieweb.org css change recently? i'm now seeing the sidebar on mobile, on top of the transcript...but only for the main channel, not others
#
aaronpk
I just added word-wrap: break-word, because without that it went nuts with the really long line from indienews
#
Loqi
[Zegnat] #42 Long lines break log display in Chrome for Android.
#
aaronpk
might need to refresh to get the new CSS but it looks good to me on chrome (ios) now
#
aaronpk
Zegnat: can you check on android?
#
[eddie]
I basically was trying to figure out if there was a way for Indigenous to know if it should display an edit option or not.
#
Zegnat
It is still broken for me. Not sure how I can force a CSS refresh.
#
snarfed
i'm on android. refresh doesn't fix it. waiting until tomorrow will though, i'll just do that :P
#
aaronpk
I can never get hard refresh to work on mobile devices
#
[eddie]
But if there’s no way to detect that, I guess I could always show the edit button, and when you click edit, it could try a source query against the Micropub endpoint. If it fails then it returns that you can edit that post
#
snarfed
oh also aaronpk nudge on counting wm.io wms! not urgent, i expect it's on your todo list
#
aaronpk
will do!
#
aaronpk
[eddie]: whoa are you building in editing support?
#
Zegnat
That’s probably the only way [eddie]. You have to know the Micropub endpoint for the specific post and then know if your client has a token stored for that endpoint.
#
[eddie]
I am laying the foundation for it. Editing won’t be in the next version but it will likely be within the next month or two and I’m trying to make sure things like up correctly
#
Zegnat
But note that separate post URLs might not even expose their Micropub endpoint :/
#
aaronpk
Zegnat: that sounds like a good reason for post URLs to advertise a micropub endpoint!
#
Zegnat
Definitely a good reason!
#
aaronpk
like how wordpress and mediawiki both link to their edit URLs
#
[eddie]
I do have a list of all Micropub endpoints that are authorized within the app so that seems like a good solution
#
[eddie]
I know all my posts have Micropub endpoint displayed
#
aaronpk
yeah the client should know which micropub endpoints it has a token for, and whether the token has the "update" scope, so if a post advertises a micropub endpoint that matches one then the client can assume it can edit the post
#
Zegnat
I think I am going to expose my micropub endpoint in the HTTP header domain-wide, so mine will have it too.
#
[eddie]
Bingo! That feels like a nice solution
#
[eddie]
Thanks guys! Great brainstorm!! 😁
#
Zegnat
is it safe for the client to check for a specific scope value, aaronpk? Is there an authoritative list of scopes that Micropub servers must adhere to?
#
Zegnat
(Sink just sets a single scope value "all".)
#
sknebel
there is a list of common ones, but nothing explicitly demanded in the spec
#
aaronpk
the spec doesn't list them out but that's just because I didn't want to hard-code the list so early
#
aaronpk
the goal is to standardize on them eventually
#
Zegnat
I just checked the online logs again, and display seems to have been fixed aaronpk!
#
Zegnat
(I cleared data in Chrome for Android, and to be sure, navigated to the CSS file and manually refreshed there.)
#
aaronpk
oh good
#
Zegnat
switches default scope on Sink to create
snarfed joined the channel
#
GWG
Scopes. I am stuck on that
#
Zegnat
Ask away, GWG ;)
#
[eddie]
Right now that scopes that Indigenous recognizes are: create, update, delete and of course microsub ones eventually
#
[eddie]
Will do!
#
eddiehinkle.com
edited /scope (+97) "/* Scopes used by IndieWeb apps */ added indigenous"
(view diff)
KevinMarks joined the channel
#
[eddie]
I also like the media scope, so I’d like to add that to my endpoint and indigenous when Indigenous supports uploads
KevinMarks joined the channel
#
GWG
I can't figure out how to map them to WordPress
#
aaronpk
does wordpress have the concept of users with limited permissions?
#
GWG
Yes
#
GWG
But do I want to add extra users?
#
Zegnat
I’d say the client gets the permissions of the authenticated user?
#
aaronpk
who said anything about adding extra users??
snarfed and mifga joined the channel
#
GWG
If I map a token to a user, the app gets all the permissions of the user
#
GWG
There is no middle ground
#
aaronpk
does wordpress have a middle ground?
#
aaronpk
i'm guessing not
#
aaronpk
if you use any third-party app with your wordpress site that app has full permissions to do everything you can do within wordpress, right?
#
GWG
Unless I build one, yes
#
GWG
No middle ground
#
aaronpk
then just don't do anything special for now
#
aaronpk
if wordpress users are accustomed to third-party apps having full access, then it's fine for micropub apps to work the same
#
GWG
aaronpk, what is the best way to test an Indieauth client implementation?
#
aaronpk
micropub.rocks will give you lots of info
#
GWG
At IWC Austin I used a temporary application password to post to my site. I want to use an Indieauth token instead
#
aaronpk
you can use this to get a token https://gimme-a-token.5eb.nl/
#
GWG
I did that
#
GWG
Gomne
#
GWG
Gimme a token
#
GWG
aaronpk, I am finding it a challenge still
#
GWG
Even though I got it working last night
#
Zegnat
Finally getting a start on User profile URL canonicalisation and validation for IndieAuth. https://gist.github.com/Zegnat/6cb5ed0aa9bce6d9daca096f180e63ef
KevinMarks joined the channel
#
GWG
Zegnat, what is your end goal?
KevinMarks joined the channel
#
Zegnat
GWG, the goal is to make it easier for me to handle IndieAuth per spec.
#
GWG
I am working on that now too, amongst other things
#
GWG
I have to talk to snarfed though. There is an Indieauth implementation inside his Micropub plugin and I have to figure out how to avoid conflicts
#
Loqi
You are very welcome future Ben
#
Loqi
Countdown set by ben_thatmustbeme on 2017-01-31 at 1:44pm EST
#
aaronpk
lol what
[eddie] joined the channel
#
[eddie]
Hahaha!!
#
Loqi
awesome
#
Zegnat
GWG, aaronpk also has an open source helper library for handling IndieAuth.
#
GWG
I may look at it for inspiration
[kevinmarks] joined the channel
#
Zegnat
I am not sure if my domain validation is correct yet... It looks like I will have to depend on an external library :(
#
eddiehinkle.com
edited /holiday_theme (+269) "/* IndieWeb Examples */ +my new years"
(view diff)
CamB and gRegorLove joined the channel
#
sknebel
aaronpk: also, your calendar view on your site you linked earlier looks messed up with tons of overlapping elements. known issue?
#
aaronpk
no, what browser?
KartikPrabhu joined the channel
#
dgold
my view accords with that
[kevinmarks] joined the channel
#
Zegnat
I see the same as sknebel
#
aaronpk
well at least it looks the same in FF on osx
#
Zegnat
Firefox 59.0a1 (2017-11-19) (64-bit), macOS
#
Zegnat
Whenever I use curl in PHP I am always sure I messed up one of the million parameters :/
#
dansup
Happy gnu years everyone!
#
aaronpk
that's a little nicer lol
#
Zegnat
If you are making the properties public, why do you still need a __get and __set?
#
Zegnat
just realised he is doing the IndieAuth thing all wrong
#
dansup
Zegnat: good question, I added the magic methods for additional properties.
#
sknebel
Zegnat: `?
#
Zegnat
I need to validate the profile URL *after* resolving redirects
#
Zegnat
I am so tired I wrote “infalid” in the DocBlock. What am I even doing?!
#
dansup
heh, too much egg nog?
#
Zegnat
So far I have only had a single glass of rose.
#
Zegnat
Maybe I am worrying about my arbitrary midnight deadline too much. Hurrying when implementing a spec is never a good idea.
#
dgold
also, like, its New Years
#
dgold
all normal activity is suspended
#
dgold
time has no meaning
#
Zegnat
But, but, but, new year’s commitments! :P
#
Zegnat
I could also skip implementing section 4.1’s redirects, because my domain isn’t going to redirect. But then the completionist in me gets angry.
#
Zegnat
No way to win.
#
[kevinmarks]
Isn't that what happened to ssl?
#
dgold
lookit, leave it tide over to the morrow, watch the New Years Concert from Vienna, then you can make your commitment part of the 2018 thing
[eddie] joined the channel
#
[eddie]
Zegnat: I feel like a 2018-01-01 commitment you should have until 11:59 PM on 2018-01-01
#
dgold
agrees with eddie
tantek, KevinMarks and AngeloGladding joined the channel
#
Zegnat
I love how everyone is helping me come up with excuses not to launch :P
#
Zegnat
[kevinmarks], what is what happened to ssl?
#
gRegorLove
This is why I like the #newwwwyear challenge, since it asked you to set your date. I chose 2018-01-07 :)
#
Zegnat
Thing is, I just know it will end up shelved until next year if I don’t actually sit down to finish it.
#
Zegnat
makes it a rush job instead
KartikPrabhu and KevinMarks joined the channel
#
gRegorLove
Go Zegnat, go!
#
[eddie]
👏👏
KevinMarks joined the channel
#
tantek
what is realtime
#
Loqi
Realtime generally refers to a user experience where content is updated live; for example: a new comment shows up on a page while you're viewing it, or chat notification "your friend is typing a message." https://indieweb.org/Realtime
#
loqi.me
created /realtime_comments (+21) "prompted by tantek and redirect added by tantek"
(view diff)
KevinMarks joined the channel
#
tantek.com
edited /realtime (+214) "GitHub issues"
(view diff)
#
tantek
gRegorLove: ^^^ not sure if there's a way for you to capture a screenshot (e.g. if it outlined the comment or something in a colored border), but feel free to add any commentary about your experience in seeing that
[kevinmarks] joined the channel
KartikPrabhu joined the channel
#
gregorlove.com
edited /realtime (+260) "/* GitHub */ describe experience"
(view diff)
#
aaronparecki.com
edited /js;dr (+91) "/* Web Content Examples */"
(view diff)
tomasparks, KevinMarks, [miklb], gRegorLove_, tantek, tantek_, KartikPrabhu and snarfed joined the channel