#dev 2017-12-01

2017-12-01 UTC
dougbeal|mb1, jjuran and snarfed joined the channel
#
snarfed
aaronpk: instagram api vs scraping, whee! :P right, granary REST and UI now only scrape, for exactly that reason. the library itself still supports the API, for users with approved apps.
#
aaronpk
oh gosh okay haha
#
Loqi
hehe
#
aaronpk
I was trying to find out how granary was scraping but then didn't see that code
#
aaronpk
aha :) I saw a bunch of references to the API URL strings and didn't realize that file did both!
#
aaronpk
window._sharedData thought so!
#
aaronpk
so does it convert only the images loaded in the single request? so like 12 at a time or whatever?
#
snarfed
🛄🏝
#
snarfed
(cargo cult)
#
snarfed
yeah just that page
#
snarfed
but has to fetch each media permalink to get comments, likes, etc
#
aaronpk
oh nice
#
snarfed
i can probably get scraping into the REST API by tomorrow mid morning ish if you don't want to reproduce all this
#
aaronpk
that sounds great 😄
#
GWG
aaronpk: Thanks for the Emoji Detector update
#
aaronpk
no problem!
#
aaronpk
I mean it was a little bit of a problem
#
aaronpk
but it's done now :)
#
GWG
aaronpk: You did some other stuff at the same time I see
#
aaronpk
I updated the emoji DB as well
#
aaronpk
but that was unrelated to the changes needed for 5.3
j12t joined the channel
#
gRegorLove
Ooh, I like the chat log date subheadings in the selected timezone
#
aaronpk
it was necessary when I switched the day pages to UTC
#
aaronpk
cause now the lines might span a day change in your local timezone
[eddie] joined the channel
#
[eddie]
hey aaronpk, you still around?
#
[eddie]
!tell aaronpk: I’m installing telegraph on my server, and while following the instructions I don’t see a schema.sql as instructed here: https://github.com/aaronpk/Telegraph#developing I only see under ‘migrations’ an init.sql and a couple random id strings .sql files
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[aaronpk] Telegraph: Telegraph is an API for sending Webmentions
snarfed, treora_, sebsel_, GWG-, sebsel, renem, [miklb], j12t, ben_thatmust, [chrisaldrich], cweiske, loicm, [pfefferle], jeremycherfas and [kevinmarks] joined the channel
#
Zegnat
Finally: `$ apt install php7.2`
#
Loqi
sebsel: lol
[pfefferle] joined the channel
#
@_martinwolf
@Maybach @UARRR Könnte man vielleicht was mit Webmentions machen. Das Thema wollte ich mir eh mal anschauen. Stichwort IndieWeb. Mhhh
(twtr.io/1Yw86uxmp68)
eli_oat joined the channel
#
cweiske.de
edited /Loqi (+273) "/* Interactions */ retweet"
(view diff)
#
www.svenknebel.de
edited /Loqi (+44) "/* Interactions */"
(view diff)
#
eddiehinkle.com
edited /Let's_Encrypt (+276) "/* IndieWeb Examples */ +me"
(view diff)
#
Zegnat
sknebel if I may make a wiki edit request of you, could you have a look at https://indieweb.org/Let%27s_Encrypt#Renewal ? E.g. the systemd heading talks about setting up a service, but certbot comes with a service all ready these days if I remember correctly from us setting it up? That page might do well with a little updating so people will be les
#
Zegnat
s worried about renewals!
#
sknebel
remind me tomorrow evening if I haven't done it in the mean time?
#
Zegnat
Will do. Thank you!
#
Zegnat
I don’t actually know enough about what we did to do it myself, I’m afraid.
snarfed and jeremycherfas joined the channel
#
ancarda
I can confirm the Certbot timer that's installed out of the box does work, at-least for Apache. I haven't tested it with Nginx (I guess wait a few months and see if my website's SSL breaks)
#
ancarda
Perhaps it's worth saying I typed the whole command like, `certbot certonly --non-interactive -d $domain --agree-tos -m you@example.com --webroot --webroot-path /path/to/www`
sgreger joined the channel
#
ancarda
There's a way to add a hook to that to run `systemctl reload nginx.service`, but I never added that
#
aaronpk
sgreger: I think what you're seeing is the fallback API mode. try setting "extended entities" in the API request
#
Loqi
aaronpk: [eddie] left you a message 13 hours, 36 minutes ago: I’m installing telegraph on my server, and while following the instructions I don’t see a schema.sql as instructed here: https://github.com/aaronpk/Telegraph#developing I only see under ‘migrations’ an init.sql and a couple random id strings .sql files
#
aaronpk
oops [eddie] i'll fix
#
aaronpk
sgreger: in the fallback mode, any tweet longer than 140 chars by the old counting rules will be truncated and you'll see the link to the full tweet
#
aaronpk
in extended mode you should see everything
#
sgreger
aaronpk: does that also work with statuses/home_timeline ? it's not mentioned in the parameters there.
#
aaronpk
yeah it should
[eddie] joined the channel
#
[eddie]
aaronpk: I'm working on breaking my monolithic eddiehinkle.com code into more micro-services. I kind of want to make my authorization endpoint completely separate from my website. So that I have a micropub endpoint, an authorization endpoint, and a website that are all separate.
#
[eddie]
The only issue I'm thinking through is I want to do something similar to your login screen where I can override what channels things get added to during authorization. Is your authorization code base built into your micropub endpoint? Is that how you are setting those values? Or do you somehow communicate that information between your authorization endpoint and the micropub endpoint?
#
aaronpk
my micropub endpoint and authorization endpoint are both part of my actual website
#
[eddie]
ahhh gotcha. I figured they probably were based on those customization options
#
sgreger
aaronpk: cool, that was the nudge in the right direction! using the Twython library, I had to add tweet_mode='extended' to the api call and now it works :)
#
aaronpk
sgreger: awesome
#
Zegnat
ancarda: I followed instructions from sknebel to add the nginx reloading hook. Which is one of those little things that I forgot the exact detail about, so would love him to document instead
#
[eddie]
aaronpk: the only other question I have is, have you ever tried to have them separate and it went badly or you just decided to build it together from the get-go?
#
sgreger
aaronpk: thanks for you help! what i am trying to replicate is what tantek mentioned here: https://chat.indieweb.org/2017-11-28#t1511911221641000
#
Loqi
[tantek] wow this is cool (indie aggregator by Andy Baio) http://belong.io/
#
aaronpk
I was using indieauth.com for a while but decided to move it into my own site in order to have more customization options like that
#
[eddie]
Makes sense. Thanks 🙂 Always good to gather lessons learned before embarking down a specific direction 🙂
#
sebsel
[eddie] to me it doesn't make sense to get the micropub endpoint outside of your site... it's like taking a door out of a house (and adding a window that connects to the door)? Posts have to get inside in some way, right?
#
aaronpk
having a separate micropub endpoint makes sense for things like jekyll sites, where it's a separate service because it can't really be part of your site
#
sebsel
aaa, yeah. You can't separate it from the content, but you can separate it from the part that serves the content.
#
aaronpk
that's a good way of putting it
[kevinmarks] joined the channel
#
[eddie]
sebsel: Yeah, currently I have jekyll so I have a micropub endpoint that puts content into a specific folder but the "display" code is currently jekyll. I am planning on changing that, but I do like the idea that if I wanted I could have a PHP website with a node.js micropub endpoint, etc
#
[eddie]
Basically being able to use the right tool for the right job
#
[eddie]
and just have them all agree on the content directly
#
[eddie]
directory*
arbogasta joined the channel
#
[eddie]
I'm thinking customization is definitely something I want, so maybe integrating my micropub and IndieAuth service is the right direction. That should allow customizations like channels, etc. But since I want my website to be able to allow others to authenticate and view private content. So my website will have to add IndieAuth login flow for other users, so I might as well use it for my login to.
#
sebsel
(o wow, I just looked at slack because eddie pinged me, but it looks like the whole conversation between aaronpk and me is shown as send by me... is that a known bug?)
#
[eddie]
Yeah, known iOS bug
#
aaronpk
it's a Slack iOS bug
#
sebsel
Okay!
#
[eddie]
That's actually pushed me to start using the chat.indieweb.org for reading on mobile 🙂
#
aaronpk
[eddie]: being an indieauth server and logging users in is pretty separate, there's nothing wrong with solving those two different ways
#
sgreger
aaronpk: it still returns quite a few Twitter status-URLs, but those appear to be posts from people i don't follow (i.e. from retweets/likes)
#
sgreger
...i guess i could at a later stage work on some way to retrieve those links as well
#
sgreger
(but that would likely have to be on a tweet-by-tweet basis)
#
[eddie]
aaronpk: Yeah, that's what I was thinking. Seems like authenticating users with IndieAuth and displaying content from my site to them (or me) is fine to be it's own encapsulated thing (except for the content directory, which it and micropub have to agree on).
#
[eddie]
If anyone else reads the logs and has thoughts how I'm separating my site, feel free to ping me 😉 I'm interesting in thinking this through well before implementing
#
aaronpk
the guiding principle I used when deciding how to split up my new site was essentially that the core of my site should not interact with any external URLs
#
aaronpk
*URLs not under my control
#
aaronpk
so the first one to split out is obviously sending and receiving webmentions, since in both cases that requires interacting with arbitrary URLs
#
aaronpk
webmention.io handles the verification and parsing of received webmentions, then delivers them to my site as a web hook
#
[eddie]
ohhhhh, that makes sense.
#
sgreger
that is something i have been doing as well (if i understand that correctly) - my site does not load any 3rd party resources or links to functionalities provided under external urls
#
[eddie]
That's one reason I installed Xray locally. There was parsing I was doing inside of my micropub endpoint, and I'm trying to shift that all to my local xray install
#
aaronpk
sgreger: I think you're a more extreme example of that even. I have 3rd party client-side scripts still.
#
sgreger
heh. indeed!
#
aaronpk
but my server-side code doesn't interact with arbitrary URLs. it's more about the security of my server than anytihng related to 3rd parties
#
sgreger
and all the indieweb magic (at least the parts i use) is provided by the wordpress plugins ;)
#
sgreger
ah, i see!
#
sknebel
Zegnat ancarda the mean issue with renewal is that if you add your own cron/timer with a renewal hook set and let the default one run in parallel, sometimes the default will win and renew the cert without a reload. Got some people confused in the past (especially since they added their own later/switched it from cron to timer on debian at least)
John__ joined the channel
#
andrea__
IndieWeb development-focused chat - logs at https://chat.indieweb.org/dev/today - bridged with #dev in Slack
snarfed and j12t joined the channel
#
@rubygems
jekyll-webmention_io (2.8.5): This Gem includes a suite of tools for managing webmentions in Jekyll: * Tags *… https://rubygems.org/gems/jekyll-webmention_io
(twtr.io/1YwWs0ihZXj)
#
@dependable_io
New version of jekyll-webmention_io: release 2.8.5. Check it out at http://updates.dependable.io/gems/jekyll-webmention_io
(twtr.io/1YwWrJWHhFV)
#
snarfed
aaronpk: done, granary rest and ui now support instagram cookie
#
aaronpk
snarfed++ amazing
#
Loqi
snarfed has 24 karma in this channel (326 overall)
#
aaronpk
I have a request :)
saranix joined the channel
#
GWG
So, inspired by pfefferle implementing composer in one of his plugins I contribute to, I decided to do the similarly in mind.
#
GWG
Anyone have any good composer advice?
#
ancarda
What sort of advice? Are you making a package or just depending on one?
#
GWG
Depending. Trying to think of useful things to do with it
#
GWG
I was manually pulling in dependencies.
#
ancarda
Well, any dependency you had previously, if it’s on packagist.org (or you manually define the location), you could pull in via composer
#
ancarda
I guess the main benefit would be keeping third party stuff in the vendor directory, as well as allowing you to update versions easily
#
ancarda
It also pulls in your dependencies’ dependencies, e.g. Slim depends on Psr/Http
#
GWG
I just figured that I should research the capabilities of the tool.
#
GWG
I see a scripting option
#
aaronpk
i'm very glad to have started using composer
#
GWG
aaronpk, how so?
#
GWG
The manual talks about scripts, plugins and custom installers
#
aaronpk
makes sharing code between projects so much simpler
#
aaronpk
the manual isn't a very good tutorial IMO
snarfed joined the channel
#
aaronpk
it goes into depth on eeeeverything
#
GWG
I got basic covered
josejuanisaac joined the channel
#
GWG
This started when Semantic Linkbacks started using composer to bring in the Emoji library
#
GWG
I ended up in a rabbit hole
#
Loqi
WordPress of Things: Connecting your digital presence to your physical footprint.
#
GWG
Hmm... I would want to see this even if it wasn't WordPress specific
#
snarfed
thanks for the bug reports aaronpk!
#
aaronpk
👍 sorry to make more work for you :P
#
GWG
aaronpk, we all seem to like doing work for others as well as ourselves.
tantek joined the channel
#
tantek
[chrisaldrich] you're a good (prolific, consistent) writer, do you have any ideas / plans for a December series, Advent-styled or otherwise?
[miklb], brigitte1, KartikPrabhu, snarfed, gRegorLove, raretrack and aaronpk_web joined the channel
#
aaronpk_web
hey look at me in all the channels
#
tantek
maybe we can do a collective IndieWeb Advent calendar
#
tantek
this looks like a good candidate for today :)
#
sebsel
Sounds like a nice plan!
#
sebsel
Way easier than 100 days.
#
tantek
yes. and anyone can contribute
#
tantek
if you're looking for ideas, see: /to-do
#
tantek
or if you have ideas for stuff that would help the community, add to /to-do
#
sebsel
what is to do?
#
Loqi
Next steps for IndieWebCamp and IndieWeb efforts https://indieweb.org/to-do
snarfed joined the channel
#
gRegorLove
12 Days of Indiewebmas?
aaronpk_ joined the channel
#
tantek
that's kind of the idea
#
tantek
shipping updates to libraries / plugins / services definitely counts btw
#
aaronpk
i'd contribute to that
#
tantek
I think you just did! (with the new IRC web UI!)
eddie_web and [eddie] joined the channel
#
[eddie]
Would the goal be for each person to do 12 days? Or is the goal to have 1 person out of our community do a new thing each day in Dec?
[chrisaldrich] and brigitte1 joined the channel
#
www.boffosocko.com
edited /commonplace_book (+171) "WordCamp session"
(view diff)
#
aaronparecki.com
edited /IRC (-79) "/* Logs */ update URLs"
(view diff)
#
aaronparecki.com
edited /discuss (-77) "update URLs"
(view diff)
snarfed joined the channel
#
GWG
I'm doing 8 days of Indieweb Chanukah.
#
aaronpk
that *almost* overlaps with indiewebcamp austin
#
aaronpk
ooh the .bot TLD is going live next week
#
aaronpk
they're first opening it to people who have published a bot using with Amazon Lex, Microsoft Bot Framework, or DialogFlow, interesting
#
sknebel
where do you get that info? the official pages I can find all are basically empty, even don't have info other amazon pages claim they have
#
aaronpk
just got an email
[manton] joined the channel
#
[manton]
Neat, I could think of some uses for .bot, although I probably don't need any more domains. 🙂 Any idea on pricing?
#
[eddie]
GWG++ Nice
#
Loqi
gwg has 17 karma in this channel (277 overall)
#
aaronpk
no clue yet
#
aaronpk
i'm going to try setting up a test bot so I can register loqi.bot
#
[eddie]
Another step toward all of us serving Loqi after it reaches self-actualization....
#
sknebel
[eddie]: you gotta start worrying it if it gets .loqi
#
[eddie]
that is true, that would most definitely be worrying
#
[chrisaldrich]
GWG, are you going to do a /holiday_theme for it as well? 😉
#
GWG
chrisaldrich, theming isn't my strong point
#
gRegorLove
aaronpk: Maybe we could get php-mf2 0.4.0 released by the end of the year
#
gRegorLove
what is holiday theme?
#
Loqi
Holiday theme is a temporary custom CSS or other change in a website typically meant to visually indicate the celebration of a holiday or special occasion https://indieweb.org/holiday_theme
#
aaronpk
I forgot the state of that , is it pending some changes ?
#
gRegorLove
aaronpk: I think it just needs review of the latest changes in my PR: https://github.com/indieweb/php-mf2/pull/131
#
Loqi
[gRegorLove] #131 Improve dt- parsing
#
gRegorLove
And 0.4.0 because https://github.com/indieweb/php-mf2/pull/125 is technically a breaking change for removing 'alternates'
#
Loqi
[gRegorLove] #125 Add rel-urls object
#
GWG
What is new in php mf2?
#
Loqi
It looks like we don't have a page for "new in php mf2" yet. Would you like to create it?
tantek and [andrea_arbogast joined the channel
#
loqi.me
created /utm (+319) "prompted by tantek and dfn added by tantek"
(view diff)
#
tantek.com
edited /URL_design (+4) "/* Long URLs */ link utm_"
(view diff)
#
loqi.me
created /utm_source (+17) "prompted by tantek and dfn added by tantek"
(view diff)
#
loqi.me
created /utm_medium (+17) "prompted by tantek and dfn added by tantek"
(view diff)
#
loqi.me
created /utm_campaign (+17) "prompted by tantek and dfn added by tantek"
(view diff)
#
loqi.me
edited /utm (+147) "/* See Also */ new section"
(view diff)
#
loqi.me
edited /utm (+17) "tantek added "[[URL design]]" to "See Also""
(view diff)
#
tantek.com
edited /utm (+33) "dfn the others"
(view diff)
snarfed and [eddie] joined the channel
#
vanderven.se martijn
edited /site-deaths (+314) "/* Upcoming */ Vidme is closing, another YouTube alternative down."
(view diff)