#dev 2019-03-07

2019-03-07 UTC
jgmac1106 joined the channel
#
@jgmac1106
I am still manually creating my webmention badges but quickly discovering workflow, now matter of cutting and pasting if these were not all new classes I had to design and the badges were made this would be fast. Can't wait till you build me a micropub… https://quickthoughts.jgregorymcverry.com/2019/03/07/i-am-still-manually-creating-my-webmention
(twitter.com/_/status/1103449398632169472)
chrisaldrich, [tantek], [schmarty], [eddie], j12t, j12t_, [jgmac1106] and asana joined the channel; mblaney left the channel
#
Loqi
Empowering Media shuts down all services in ~1hr at 21:01 PST.
#
Loqi
Countdown set by [tantek] on 2019-03-06 at 11:01am PST
[eddie] and anth_x joined the channel
#
[tantek]
Doesn't look like I'm going to get H2VX running by then
#
[tantek]
Filed a support ticket for tidy functionality on the new host.
#
anth_x
Howdy. Not sure this is the place for this, but...
#
anth_x
I'm interested in getting my site to the point where I can use something like Indigenous, and have the stie generally be a good indieweb/micropub/microsub citizen.
#
anth_x
But the site itself is a custom server... state-of-the-art circa 2000, so I'm going to be doing pretty much all the dev work myself.
#
anth_x
I'm trying to figure out what all that is... and it seems like a lot. Is there a dev guide, dependency list, or the like? I'm having a bit of a hard time seeing how all the bits fit together.
#
[eddie]
Hi anth_x this is the perfect place to ask that question!
#
anth_x
Oh good. :-)
#
[eddie]
There are a couple things, first if visuals are helpful this page has a diagram about how IndieAuth/Micropub/Microsub/Webmention all work together: https://indieweb.org/graphics#Illustrations_and_Sketch_Notes
#
[eddie]
So if you want to get started with a Social Reader like Indigenous there are a couple things to setup. The Getting Started page can’t help in general: https://indieweb.org/Getting_Started
#
[eddie]
What language is your website built in?
#
[eddie]
Specifically for a Social Reader you’ll want to set up IndieAuth, Micropub and Microsub. There are easier and more involved ways of setting those up depending on language, etc
#
anth_x
Not one anything exists for.
#
anth_x
Limbo.
#
[eddie]
Ahh gotcha. Lol yeah haven’t heard of that
#
anth_x
So my biggest concern is the auth part. I've poked at Oauth a bit, but never finished an implementation. IndieAuth is... a superset? Oauth with constraints?
#
[eddie]
So the easiest way to get started and what I did at first is outsource IndieAuth and Microsub and then work on building a Micropub Endpoint
#
[eddie]
Yep, correct. It’s OAuth with constraints that allow for apps to not have to pre-register
#
[eddie]
Here’s a pretty good video that Aaron Parecki presented recently about IndieAuth that could be informative if you are wanting to start by building the Auth part rather then outsourcing: https://www.youtube.com/watch?v=EeCNlB7v08I
#
anth_x
I will definitely check out the video, although I'm okay outsourcing auth to start.
#
anth_x
But if I do that, what will my micropub endpoint validate the bearer token against?
oodani joined the channel
#
[eddie]
IndieAuth supports a token verification endpoint: (very technical details here) https://indieauth.spec.indieweb.org/#access-token-verification
#
anth_x
Oh, I see, I found https://tokens.indieauth.com
#
[eddie]
Yep, so that can confirm the tokens you get at your Micropub Endpoint with a simple POST request
#
[eddie]
https://indieauth.com/setup has details about outsourcing your authentication to IndieAuth.com
#
anth_x
Yeah, I had seen that and started on it.
#
[eddie]
Gotcha 👍
#
anth_x
I think I've got the auth links on http://a.9srv.net/index.html.
#
[eddie]
Yep, looks good!
#
[eddie]
Perfect you also have an Aperture link already set up for Microsub as well
#
[eddie]
So in that case you should have both IndieAuth and Microsub now set up. Which just leaves Micropub which, since you’re using Limbo will probably mean building it from Scratch 🙂
#
anth_x
Yeah, I was prepared for that part. :-)
#
anth_x
I the example on tokens.indieauth.com, am I validating "me" or "client_id" as what the micropub endpoint thinks of as the user posting?
#
[eddie]
You would want to validate me, at this point client_id isn’t really an issue unless you have a client_is block list
#
[eddie]
Client Id is the app that is posting
#
anth_x
Ah, I see.
#
[eddie]
Me is the url of the user who is posting
#
[eddie]
So you can just verify that me is equal to your url and you should be all set
#
anth_x
So given that the server uses "conventional" unix-like usernames, I'd need something that maps that to the "me" value.
#
[eddie]
Yeah, if you need to be able to link it back to a Unix-like username you’d want some type of data storage linking the two
#
anth_x
Okay, i'll have to think about how best to do that internally, but I have a few options.
#
[eddie]
If your url doesn’t change you could also literally just start the Micropub Endpoint with a hard-coded url, if me === http://a.9srv.net/
#
Loqi
Anthony Sorace
#
[eddie]
Unless other people will be on that url as well
#
anth_x
Oh, I see. Probably best not to hard-code it here, but I can generate it algorithmically. "a" in that URL is the username, and I can check for <username>.<basename> easy enough.
#
[eddie]
Ah, that makes sense! That would definitely work using that algorithmic approach
#
[eddie]
The YouTube video I posted above a bit, Aaron Parecki builds a (VERY basic) Micropub server in PHP in 30/40 minutes. It’s not super robust but it’s a nice overview that can help get things started if you’re not as interested in diving head first into the Micropub specification document
#
anth_x
Okay, cool.
#
anth_x
I have to take the trash out, but now I have some nice viewing for the rest of the evening, and a nice bottle of wine to finish. :-)
#
anth_x
This has been very helpful for orientation, thanks.
#
[eddie]
My pleasure! Have a great evening! 🙂
#
[eddie]
Also https://indieweb.org/Micropub#Syntax is a helpful read as well
#
[eddie]
Come back and ask more questions any time!
#
anth_x
Had that one open already. :-)
#
anth_x
I certainly will.
[tantek] joined the channel
#
jeremycherfas
What a great dialogue. [eddie] ++ anth_x ++
#
jeremycherfas
What a great dialogue. [eddie]++ anth_x++
#
Loqi
anth_x has 1 karma over the last year
#
Loqi
[eddie] has 35 karma in this channel over the last year (87 in all channels)
anth_x, cweiske and [galexk] joined the channel
#
[galexk]
Anyone here also using gatsby.js https://www.gatsbyjs.org for development?
#
jacky
what is gatsby
#
Loqi
Gatsby is a React-based static site generator with live preview https://indieweb.org/gatsby
#
jacky
what is gatsbyjs
#
Loqi
It looks like we don't have a page for "gatsbyjs" yet. Would you like to create it? (Or just say "gatsbyjs is ____", a sentence describing the term)
#
jacky
gatsbyjs is /gatsby
#
jacky
[galexk]: might be some listing on that Wiki page
#
[galexk]
Thx @Loqi and @jacky. I'm checking this out later!
#
Loqi
you're welcome
swentel, iasai, jgmac1106, [jgmac1106], sandro_ and barpthewire joined the channel
#
GWG
Morning
#
Loqi
greetings human
jgmac1106, sandro_, swentie and swentel joined the channel
#
GWG
Morning swentel
#
swentel
afternoon GWG
#
swentel
how's the parsing going?
#
GWG
The Micropub additions that parse and store the parsed geo object are done. A few more tweaks and I will do the PR
#
GWG
It displays properly in testing.
#
GWG
So it works
#
swentel
tested finding the location name on a couple of place now
#
swentel
and works beautifully
#
swentel
going to check all my providers now to see which ones return venues
#
GWG
If you are going to have a venue UI, I would implement the query before I have a local UI for it
#
GWG
swentel, I love posting with location
#
swentel
GWG, yeah, I'm also just going to send venues initially
#
swentel
and see how to extend it further at the Drupal storage
#
swentel
yeah, it's fun right
#
GWG
And remember I have a secondary function hooked into location
#
GWG
Every time I send location it stores weather
#
swentel
oh, I don't do that yet
#
swentel
I don't really have use for it (right now)
#
swentel
there's enough hooks in Drupal, so if someone really wants that, they can configure/code it :)
#
swentel
GWG, do you have configuration for sending the profile info in IndieAuth ?
#
swentel
In the UI
#
GWG
What do you mean?
#
GWG
In the Indieauth return, it adds a field called profile that contains a simplified jf2 h-card
#
swentel
GWG, yes, and the contents of that: name, picture, where do you get it ?
#
swentel
from the authenticated user ?
#
Loqi
[dshanske] #31 Returning Profile Data
#
GWG
swentel, correct
#
swentel
or can the user also configure what to retun
#
swentel
ah, ok
#
GWG
My tokens are associated with a user, so just that user
#
GWG
Now, if we wanted to return more than url, photo, and name, then that would need a scope, but not needed yet
#
swentel
ok, will probably add that part today
#
swentel
in drupal and indigenous
[Vincent] joined the channel
#
GWG
iteration++
#
Loqi
iteration has 1 karma over the last year
#
swentel
GWG, btw, I wonder if, in the q=geo response, the 'venues' property should be something like 'places'. I mean, a restaurant isn't necessarily a venue right. Or is the property more of a standard used in other api's ?
#
sknebel
true, places seems a better match
#
swentel
that way, we could probably just even ditch the two properties, and just return an array. If only one result, that is the match
#
swentel
if more, the client presents a way to select the 'right' one
#
swentel
hmm, re-reading the proposal
#
swentel
two returns is probably fine
#
swentel
but, I think still think 'places' is better though
#
swentel
two properties in return I mean
jgmac1106, [jgmac1106] and [xavierroy] joined the channel
#
[xavierroy]
Does anyone post polyline locations? My use case is I listen to audiobooks/podcasts on my commute. And I would want to use that route as a location.
eli_oat and eli_oat1 joined the channel
#
Loqi
Google+ API shuts down
#
Loqi
Countdown set by snarfed on 2019-03-04 at 7:15am PST
[grantcodes], rayna, iasai, [schmarty], [jgmac1106], snarfed, gRegorLove, gRegorLove_ and [tantek] joined the channel
#
[tantek]
what is phprc
#
Loqi
It looks like we don't have a page for "phprc" yet. Would you like to create it? (Or just say "phprc is ____", a sentence describing the term)
#
[tantek]
pretty good response from Dreamhost, they had to explicitly enable 'tidy.so' by adding to it my phprc? this is all news to me and just goes to show that just because it's in your phpinfo doesn't mean it's enabled?
#
[tantek]
tl;dr: https://h2vx.com/ is up & running and converting hCards to vcf and hCalendar events to ics!
#
[tantek]
that's 10/10 migration complete!
[kevinmarks] joined the channel
#
sknebel
phprc is what Dreamhost calls what's normally a [[php.ini]] config file - see https://help.dreamhost.com/hc/en-us/articles/214200688-php-ini-overview.
#
[tantek]
sknebel++ thank you!
#
Loqi
sknebel has 41 karma in this channel over the last year (104 in all channels)
TheFerridge joined the channel
#
[tantek]
phprc << TIL: If you want to use the 'tidy' extension (like to clean-up malformed HTML before parsing it for [[microformats]] for typical IndieWeb use-cases), in your PHP code that runs on [[DreamHost]], you have to add it to your phprc which is inside a nested series of PHP and version number folders in your home directory, e.g. /home/tantek/.php/7.2/phprc - {{t}}
#
Loqi
ok, I added "TIL: If you want to use the 'tidy' extension (like to clean-up malformed HTML before parsing it for [[microformats]] for typical IndieWeb use-cases), in your PHP code that runs on [[DreamHost]], you have to add it to your phprc which is inside a nested series of PHP and version number folders in your home directory, e.g. /home/tantek/.php/7.2/phprc - {{t}}" to a brand new "See Also" section of /phprc https://indieweb.org/wiki/index.php?diff=57775&oldid=57774
#
[tantek]
what is tidy
#
Loqi
It looks like we don't have a page for "tidy" yet. Would you like to create it? (Or just say "tidy is ____", a sentence describing the term)
#
[tantek]
tidy is a library which you can use to cleanup malformed HTML before parsing it for [[microformats]] for typical IndieWeb use-cases; it’s available in most [[PHP]] setups, but you may have to explicitly enable it in your php ini or [[phprc]] (depending on your [[webhost]]).
#
[tantek]
^^^ breadcrumbs I could have used last night
#
@kisik21
PSA: Some of my posts are exclusively posted on my website for various reasons - a hiccup in Twitter syndication, replying to people on other sites via #webmentions or just random stuff I don't want to be on my Twitter. So you'd better be subscribed to my website's feed!
(twitter.com/_/status/1103694786152804352)
iasai joined the channel
#
aaronpk
is POSSEing more content to linkedin lately and kind of wants that backfeed via bridgy
#
[tantek]
why is it worth POSSEing to LinkedIn?
#
aaronpk
cause people follow me there
#
[tantek]
needs a way to *not* autolink a link
#
[tantek]
whoa really? like that's the only place they follow you?!?
#
aaronpk
if interactions is an indication then yes
#
[tantek]
is it more private / private by default? is that why?
#
aaronpk
i suspect some of them also follow me on facebook but i stopped posting there entirely
#
[tantek]
(you see where I'm going with this)
#
aaronpk
there's no guarantee that sharing a blog post or video i made on facebook will result in anyone actually seeing it since their algorithm deprioritizes links so much now
#
[tantek]
I don't bother to POSSE to FB since they shutdown their API
#
aaronpk
same, unintentionally
#
aaronpk
and then i realized i also stopped caring about manually POSSEing too
#
[tantek]
drat I know I found / used a dot character instead of a period '.' to avoid having something autolink before (and posted / POSSEd it to test it!) but now I can't remember it, nor am I able to search for it, on my own site or on Twitter
#
aaronpk
this one? ․
#
[tantek]
tries a copy/paste
#
[tantek]
looks like that works
iasai and snarfed joined the channel
#
[tantek]
this whole migration experience reminded me of the huge relief of having fewer moving pieces / dependencies in your web setup, e.g. no database(s) to migrate, or shell scripts etc.
#
[jgmac1106]
reminded me why I gave my shared host $25.00 to do migration for me....no way I would have had the skills to do that with a WordPress site and MYSQL
#
[jgmac1106]
congrats on getting the job done!
#
[jgmac1106]
saw you posted ti IWC Auston, that is awesome
#
snarfed
aaronpk: feel free to bump https://github.com/snarfed/bridgy/issues/166 with any details about your current desire(s)
#
Loqi
[snarfed] #166 add LinkedIn support
#
snarfed
(looks like [jgmac1106] was interested earlier too :P)
#
snarfed
i don't actually use linkedin myself
#
jgmac1106
I meant to go and add it to Bridgy…the new LinkedIn API a pain, need to reauthorize every thirty days
#
jgmac1106
need to check I think they have finally retired the older APIs
#
snarfed
jgmac1106: that's not too bad. facebook bridgy users had to do the same thing every 2 mos. i just made bridgy send them an FB notif each time to remind them
#
snarfed
jgmac1106: if you even just survey the existing APIs and post links to the parts that bridgy needs for backfeed/publish (into the issue), that alone would be a huge contribution!
#
snarfed
aaronpk: are you looking for just comments, likes, ...? are there reshares? anything else exotic? (i have no idea how LI works)
#
jgmac1106
okay…will propose a session for IWC Online this weekend and bang it out, it just fell down my priority list….but that is where the people who write the checks hang, my readers on Twitter, their bosses are on LinkedIn
#
aaronpk
just comments and likes would be a good start
#
aaronpk
there's also the ability for someone to re-share a post which i guess would translate to a repost? but i doubt there's an API to find those
#
aaronpk
posting there just doesn't feel real unless I get the responses back to my site :)
#
snarfed
backfeed++
#
Loqi
backfeed has 1 karma over the last year
#
snarfed
alternatively aaronpk this could be good motivation to expand our woefully poor backfeed diversity
anth_x1 joined the channel
#
snarfed
build an OYLI for backfeed!
#
aaronpk
i don't have a way to automatically post there either so i could do both in one
[kevinmarks] joined the channel
#
snarfed
TheFerridge: looks like you got your bridgy problem worked out. lmk if you have any other bridgy q's.
barpthewire, jdpinto and [schmarty] joined the channel
#
[schmarty]
tantek++ congrats on 10/10 migration!
#
Loqi
tantek has 26 karma in this channel over the last year (111 in all channels)
#
[tantek]
Thanks [schmarty]! Bunch more to do on H2VX but at least it's https and has some HTML5 support.
#
[schmarty]
plus you're in a pretty rare position where you have just touched every project that was on that box
#
[schmarty]
time to braindump whatever you can stand!
#
[tantek]
seriously.
#
[tantek]
it definitely has me itching to do A LOT more coding again
jeremych_ joined the channel
#
[tantek]
also rare position: h2vx.com now is exactly what is top of tree at https://github.com/microformats/h2vx.com
#
Loqi
[microformats] h2vx.com: H2VX microformats to vCard/iCalendar converter, test dev.h2vx.com for issues
#
[tantek]
wondering what kind of auto-deployment should I consider hooking up.
#
aaronpk
the autodeploy for the new indieweb server i did is a simple php script that runs 'git pull' in response to github's web hook
#
[tantek]
like auto-deploy (with auto named-revision) to dev.h2vx and then somehow a manual deploy of a specific named-revision to h2vx production
#
aaronpk
then i protected the "master" branch of the repos to require a PR with one reviewer
#
[tantek]
I'm not sure that's enough "protection" for a web service that people rely upon to just quietly work
#
aaronpk
depends on if there are tests i guess
#
[tantek]
probably need more CI, automated testing with test cases etc
#
aaronpk
if there are tests you can prevent a merge to master unless the tests pass too
#
[tantek]
there are, though only briansuda might know where they are
#
[tantek]
what is deployment
#
Loqi
deployment is the both the act (to deploy), process, and specific instances (a deployment) of updating (and sometimes installing) software on a server, like a web server https://indieweb.org/deployment
#
[tantek]
^^^ that could use an update with a brief blurb or link to how the autodeploy for the new indieweb server works
#
[tantek]
maybe in a new subsection at the top of https://indieweb.org/deployment#IndieWeb_Approaches ?
#
jacky
I think for posting to linkedin, you need some like "reviewed" app
[cleverdevil] joined the channel
#
[tantek]
like IFTTT?
#
[tantek]
what is linkedin
#
Loqi
LinkedIn is a special-purpose silo for hosting your professional resume, history, and contacts https://indieweb.org/LinkedIn
#
jacky
nope nvm
#
jacky
[tantek]: I was thinking so but I might be wrong
gRegorLove and snarfed joined the channel
#
jacky
eh, I began but then gave up
#
jacky
linkedin has been one place I never cared much for
#
jacky
my name's been relatively unique that if I did delete my linkedin account; I'd be discoverable enough
#
jacky
s/unique/good with "SEO"/g
#
jacky
that doesn't apply to everyone tho
snarfed, TheFerridge, [eddie] and leg joined the channel
#
aaronpk
classic aaronpk problems. just updated my indieweb itches list, then realized i'd really like a nicer display of that and also that it should live on my own domain somewhere. then want to build a site to manage my projects
#
[tantek]
performance << https://larahogan.me/performance/ - good resources, talks, presentations on web performance
#
Loqi
ok, I added "https://larahogan.me/performance/ - good resources, talks, presentations on web performance" to the "See Also" section of /performance https://indieweb.org/wiki/index.php?diff=57784&oldid=56692
jgmac1106 joined the channel
#
Loqi
[aaronpk] Project-Status: Simple project status dashboard
#
jacky
aaronpk: I've ended up using the 'Deck' feature in Nextcloud for this. I wanted to move it to CalDav so it's more 'open' in its storage format but eh
#
jacky
(tasks with tags by way of CalDav)
#
aaronpk
i haven't seen the "deck" thing
#
Loqi
[nextcloud] deck: 🗂 Kanban-style project & personal management tool for Nextcloud, similar to Trello
#
aaronpk
ah nice
#
aaronpk
yeah but but
#
aaronpk
i also want to be able to make public ones
#
aaronpk
and have them receive webmentions
#
jacky
interesting
#
sknebel
U think there was an open spruce Trello clone called wekan, which I think had an API
#
sknebel
Open spruce? Autocorrect...
TheFerridge, KartikPrabhu1 and snarfed joined the channel
#
jacky
sknebel: yeah
swentel joined the channel
#
Zegnat
Wow, I don’t understand what is going on in those screenshots at all. Clearly I do not understand the whole Trello/board/kanban(?) way of working
[grantcodes] joined the channel
#
aaronpk
I'm not a huge fan of it either tbh
#
aaronpk
I've tried it a few times but it never sticks
#
Zegnat
What I need is a selfhostable version of GitHub issues, hehe
#
aaronpk
That's what started this while thread haha
#
sknebel
Time to indiewebify gitea or gogs?
#
aaronpk
Please do
#
aaronpk
(tho I actually also want an issues-only project since I often use GitHub/gogs for issue tracking with no code in the repo)
snarfed, [schmarty], iasai, TheFerridge, jgmac1106 and [jgmac1106] joined the channel
#
jgmac1106
been fooling around with something manually, its just three < ul > and you move around some <ll>haven’t thoguht abotu mixing in cards but I could see the layout…but its manual so I do it fo two days…foget the next four…
[tantek] joined the channel
#
[tantek]
textfiles++
#
Loqi
textfiles has 1 karma in this channel over the last year (2 in all channels)
#
aaronpk
airtable is a nice way to prototype stuff
#
snarfed
airtable++
#
Loqi
airtable has 1 karma over the last year
#
aaronpk
it's like a database and UI all in one
#
snarfed
good product
iasai, tbbrown, gRegorLove, jgmac1106, chrisaldrich and sandro_ joined the channel
#
jgmac1106
gRegorLove do you have a demo to the photo grid you demoed in Austin? I didnt see it in your repo
#
Loqi
[gRegor Morrill] My IndieWebCamp Austin Demo
#
gRegorLove
It's a static demo, still in progress.
#
GWG
I need someone to review a PR
#
GWG
I am not sure who will review PRs for Micropub for WordPress
#
GWG
Anyone willing to volunteer?
#
@wchadly
How I dumped Disqus comments on my @gatsbyjs site in favor of @indiewebcamp WebMentions and created a source plugin along the way https://www.chadly.net/embracing-the-indieweb/
(twitter.com/_/status/1103803489212354560)
jjuran joined the channel
#
gRegorLove
GWG, I can look over the code though don't have a test WP site to run it on.
#
GWG
Gregorlove, I just want another set of eyes on it
#
GWG
I hold things in the Indieweb repo to a higher standard than in my personal repo
#
GWG
Not that I don't hold my own stuff to a standard
#
gRegorLove
GWG: Sure, you can tag me on github or assign as a reviewer
#
GWG
Gregorlove, should have the PR ready shortly
#
GWG
It is to support swentel's checkin option in Indigenous
jjuran joined the channel
#
GWG
It is using extra properties in the geo URI to avoid using nested properties