#dev 2019-05-09

2019-05-09 UTC
#
@ChangelingMx
↩️ You can run http://micro.blog through it. I did that when I was having trouble with my microsub endpoint and wanted to know if it was worth fixing. I personally prefer Indiginous or http://alltogethernow.io. Only thing I can do right now is follow Twitter folks.
(twitter.com/_/status/1126280065308930048)
[Serena] joined the channel
#
GWG
!tell swentel Are you going to follow the iOS Indigenous shift or stay the course?
#
Loqi
Ok, I'll tell them that when I see them next
[eddie] joined the channel
#
[eddie]
GWG Indigenous for Android is staying on course. Swentel and I had a conversation before I went public lol
#
[eddie]
So with this transition it will also allow less confusion between platform and app names
#
GWG
[eddie]: Good to know.
#
GWG
[eddie]: No chance I can talk you into the things I talked swentel into, is there?
#
aaronpk
[eddie]: maybe consider calling it something other than Abode Suite because that definitely looks like Adobe Suite :-)
#
[eddie]
Lol yeah, that was pointed out. I’m gonna think through options haha
#
[eddie]
GWG: some of those things are definitely on the list. If there are any specific high priorities be sure to flag them for me. But I’d like to get most of the Micropub extensions into Chronicler
#
[eddie]
That’s one of the main reasons I wanted to separate things was so I have breathing room in the apps to add more features around posting/editing/etc
#
Loqi
Countdown set by cweiske on 2019-03-28 at 12:27pm CET
#
Loqi
cweiske gives Loqi a cookie
#
GWG
[eddie]: I'll let you go at it for a bit.
callMeBaby joined the channel
#
GWG
Although location is big for me
snarfed, gRegorLove, [frank], [tantek], [Rose], [audioundergroun and [calumryan] joined the channel
#
[Rose]
I wonder if anyone has insight on video hosting, as in do you just throw video at your media endpoint and use that? Or is anyone using a video hosting service?
#
[Rose]
!tell [eddie] I would love to see shortcuts support in Chronicler 😉
#
Loqi
Ok, I'll tell them that when I see them next
swentel joined the channel
#
Zegnat
You could just throw it at your endpoint. It depends on your requirements. If you need automated reencoding and the likes, you might be better off letting someone else handle it
#
Zegnat
I think jgmac1106 started uploading to the Internet Archive a bunch, which may be a solution if your licence is compatible with that
#
[Rose]
That's what I was wondering, as much as I'm not really a fan of YouTube and the like, I see the advantages in letting them do the video hosting.
#
Zegnat
I have put backups of streams (Twitch, Mixer) I have been on online through YouTube, I felt no inclination at all to try and handle that stuff myself.
#
Zegnat
Though I do keep a backup of the file of course, in case YouTube would start acting up
[tantek] joined the channel
#
[tantek]
or acting down (time) as it were 😛
Rounin, [jgmac1106], pd09041999, [calumryan], [xavierroy] and [tonz] joined the channel
#
[jgmac1106]
so I am copying and pasting images from instagram using source code and accidentally tried to open this link, check out the warning: SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone. See the Facebook Help Center for more information.
#
[jgmac1106]
...but I am not logged on to instagram and this link is just available on anyone's page
#
[jgmac1106]
it is the facebookcross domain communication frame
[tantek] joined the channel
pd09041999 joined the channel
#
[tantek]
didn't see a link in your message [jgmac1106]
[Rose] joined the channel
#
GWG
This fatwigoo problem is frustrating me
#
GWG
I just learned that term
#
GWG
Styling inline SVG so that when it's pulled by a feed reader it doesn't end up gigantic when rendered
#
GWG
I keep looking for a good way to address it
#
GWG
The likely solution is to set a width property inside the svg and override it with CSS
#
GWG
But I was trying to read up on other solutions
#
GWG
Wondering if anyone here has thoughts
#
GWG
I still 'blame' kevinmarks for talking up SVG every time I was using icon fonts
#
[Rose]
What are the advantages in using SVGs in your case?
#
Loqi
It looks like we don't have a page for "advantages in using SVGs in your case" yet. Would you like to create it? (Or just say "advantages in using SVGs in your case is ____", a sentence describing the term)
#
GWG
Right now, I am using them and don't want to switch back
#
GWG
They do look better
#
GWG
I may go to a fallback in the feed only
#
GWG
But that doesn't solve h-feed
[audioundergroun joined the channel
#
Zegnat
Any reason why you do not just use a width and height property, as on img elements?
#
GWG
Zegnat, I would have to modify the svg files themselves. I think I could find a tool to do that during my build process
#
[Rose]
The inline styling on the element wouldn't need building into the svg
#
[Rose]
That's the workaround I built into simple location (which will be overridden when it gets updated)
#
Zegnat
Is that something special with the way you inline them or something?
#
GWG
Once I find a solution that I like...
#
Zegnat
I thought you would have the <svg> (or other) tag in a template somewhere, to which you should be able to just add a width and height?
#
GWG
I have it in a file and I inline the file
#
GWG
Simple Location hadn't gotten that change yet
#
GWG
So I need an inline solution
#
[Rose]
return '<img class="icon-location" aria-label="' . __( 'Location: ', 'simple-location' ) . '" aria-hidden="true" src="' . $sprite . '" style="max-height: 1rem; max-width:1rem;" />';
#
[Rose]
That's what I did, just added the style element
#
GWG
It isn't an img, it is an svg
#
GWG
In all other uses but that one
#
GWG
So I matched that to use svg over img
#
[Rose]
Hmm, I would personally have gone the other way and just used inline styles on everything for simplicity 😆
#
Zegnat
SVGs without width and height attributes are the big fatwigoo cause :(
#
GWG
So, I need some sort of auto width adding tool for svg
#
GWG
I'm sure there is one
#
GWG
jkphl has svg sprite
#
Zegnat
Even if there isn’t, it is easy to make one
#
Zegnat
PHP has XML parsing built in, trivial to parse, add attributes, and save again
#
GWG
I want to run it each time I update the dependency
#
Zegnat
So might be an idea to write it in PHP, which you know is going to be available on systems that need to run the code?
#
GWG
Only developers would need to
#
[Rose]
Still, you know they'll have PHP
#
GWG
Either way, will look for any build tool and if not, write one
#
GWG
The other option is to wrap the svg in a container and size the container
#
[Rose]
That might be easier 😛
#
GWG
Or omit the icon in the feed
#
GWG
I'll keep experimenting
[kevinmarks] joined the channel
#
[kevinmarks]
are they inside html in the feed?
#
[kevinmarks]
you could just put height="1em" in the svg files you include and then they'll be OK as inline icons by default
#
[Rose]
Personally for inline elements I would go for rem, even though em is usual for media, in this case because they're in line with the text rem makes more sense to me.
#
[kevinmarks]
I thought em was 'the text height locally' and rem 'the default text height for the page'
#
[Rose]
I don't know the ins and outs of it all, just that nested em gets messy quickly.
#
[kevinmarks]
so if you inline them in a bigger heading you want em or they'll be smaller
jeremych_ joined the channel
#
[kevinmarks]
nested em is relative, yes, so it takes the local height and multiplies
#
[kevinmarks]
which is what you want for icons
#
[kevinmarks]
if you're using them in img you can always override height
[jgmac1106] joined the channel
#
[jgmac1106]
[tantek] given that warning did not want to share not my account
#
[tantek]
ah - I figured you could prune anything that looked like a big unique string
#
Zegnat
[kevinmarks]: I am guessing it is specifically not an img because it is nice to have them CSS targetable
#
[kevinmarks]
ah, right. that makes sense
#
[kevinmarks]
Tantek may have more subtle css answers, but if they are meant as inline icons putting height="1em" in the svg file itself should stop them becoming a fatwigoo problem. That works for sparkline type things too, though you don't want to do it to all svg files in case you have bigger ones as diagrams.
#
[tantek]
I'm not sure it's best practice to put explicit heights inline in SVG files. I think the use-case here is many embedders of a single SVG file, at different sizes.
#
Zegnat
I think the problem is that the SVG files come from “somewhere” and GWG needs them to then get size limited. And not have to do it manually every time he updated the icons
#
GWG
Zegnat, correct
#
GWG
I have a script that refreshes them from the source
#
Zegnat
Do you have a link to that script? Which repo can I look in?
#
[kevinmarks]
You can override the height on an svg element with css though; the question is what happens in a situation where the html is separated from the CSS in a feed or webmention or something.
[eddie] joined the channel
#
[eddie]
!tell [Rose] Definitely. I'm a huge fan of Shortcuts! Any specific shortcuts support you would like to see in Chronicler?
#
Loqi
Ok, I'll tell them that when I see them next
jeremych_ joined the channel
#
[tantek]
bummer, the tweet at the top of this thread has been deleted 😞 https://twitter.com/ThatMightBePaul/status/1117654798944407553
#
@ThatMightBePaul
@exkuchme Apparently there's a p. cool movement dedicated to this idea https://indieweb.org/
(twitter.com/_/status/1117654798944407553)
#
[tantek]
[jgmac1106] you replied https://quickthoughts.jgregorymcverry.com/2019/04/15/that-is-the-best-description-of-homebrew to that tweet, but it wasn't archived until just now (when I archived it manually)
#
Loqi
[Greg McVerry] That is the best description of homebrew website clubs ever @ThatMightBePaul ! We have a about 10-12 active going. @excuhme's living room would make lucky 13. Most of us too lazy to get off our couches anyway and already attend virtual European Union...
#
[eddie]
Let's encrypt admin tax 😞
#
[eddie]
Anyone else delay switching their Let's Encrypt from the old renewal method to the new http-01 one?
[Rose] joined the channel
#
[Rose]
I have a script doing it on the command line, the one they recommended, I didn't know I needed to do anything?
#
Zegnat
Oh, uuh, I guess maybe I will need to change something then. I ran with aaronpk’s tutorial previously
#
Zegnat
I’d like to look into doing wildcard anyway, which I think requires a different method
#
aaronpk
I haven't heard about the new method yet
#
[Rose]
Eddie do you have a link to the new method stuff?
#
aaronpk
I did finally set up a wildcard cert for indieweb.org, it ends up working even tho Linode has a 15 minute delay on dns updates
#
[eddie]
Yeah, let me grab the link about it
jeremych_ joined the channel
#
[Rose]
Certbot does all the work for me, so I guess I would need to update certbot unless it does it itself?
#
[eddie]
Mine was automated too, but maybe because I had an older bot, it was using an older authentication method
#
[eddie]
that they have no depreciated
#
[Rose]
does the lazy thing and sends it to her personal Sysadmin
#
Zegnat
Ah, I don’t think I use TLS-SNI
#
[Rose]
Well, I'll try myself, but I needed to install something on my server yesterday too for Monica PRM but it didn't work
#
[Rose]
In good news I can tell you I shouldn't need to update my certbot though 😆
#
[eddie]
Zegnat Interesting. I don't really know the difference except for some reason the first tutorial I used had me do it that way
#
[Rose]
I'm not incapable of these things, just not experienced with them, running a command to get the version is something I am happy to do 😛
#
[eddie]
Yeah my linux skills are mostly following tutorials till things work right
#
[Rose]
Same, but I am getting better. I've even written bash scripts!
#
Loqi
[Aaron Parecki] Setting up HTTPS with Letsencrypt.org
#
Zegnat
So no admin tax for me ... yet ;)
#
Zegnat
Sadly HTTP-01 does not let me get wildcards, so I want to change at some point.
#
jeremycherfas
Tearing my hair out over what seems like it ought to be a simple PHP problem.
#
[Rose]
What is it?
#
Loqi
It was a dark and stormy night https://indieweb.org/It
#
jeremycherfas
This, below, works
#
jeremycherfas
Php script.php
#
jeremycherfas
Php /Applications/MAMP/htdocs/listens/script.php gives an error "Failed to open $newfile"
#
aaronpk
Oh I am using HTTP-01 and didn't even know it :-)
#
[Rose]
Does anything show up in the MAMP error logs?
#
Zegnat
jeremycherfas: from the command line it is actually important in what directory you are when you run a script
#
Zegnat
That directory is the working directory, and may be important for things like file paths
#
[Rose]
`cd /Applications/MAMP/htdocs/listens; php script.php` will work I suspect
#
[Rose]
*untested
#
Zegnat
The usual fix, if you need paths relative to script.php (no matter from where you call it) is to start all paths inside script.php with __DIR__
#
Zegnat
__DIR__ is a magic constant (https://www.php.net/manual/en/language.constants.predefined.php) containing the path to the current script file, rather than to the current directory you are in with the command line
#
Zegnat
Bit of an info dump for you there, so please lay down any questions for more specific answers!
#
Zegnat
has been reading documentation and emails all day and is eager to look at any code
#
[Rose]
sends Zegnat a small mess of JS, JQuery, HTML and PHP as a present
#
jeremycherfas
This is without any server. MAMP is not running. I am calling it direct from the command line.
#
[Rose]
What Zegnat said is most important
#
[Rose]
(Though more detailed error messages will still be somewhere)
#
jeremycherfas
OK. I had been hoping to have a simple one-line script that would do the needful, manually. I don't want a cron job. Just getting tired of typing it out. So, TextExpander to the rescue, eh [Rose]?
#
Zegnat
Can you put your little script in a gist, jeremycherfas?
snarfed joined the channel
#
jeremycherfas
It is literally not worth it. The script is not the problem. It is running it from the terminal that is the problem.
#
Zegnat
Yes, but that can probably be fixed with a single __DIR__ addition ;)
#
jeremycherfas
UNLESS ... The file it cannot actually open is one called by the script!
#
jeremycherfas
Now I understand what you'\ve been saying. Maybe.
#
jeremycherfas
Creating the gist now.
#
Zegnat
Yes, so $newfile is likely accessible from the path when you are in the right directory in the terminal. But not from other terminals.
#
Zegnat
*from other directories
[jgmac1106] joined the channel
#
Zegnat
So instead you have to make sure that the $newfile path is relative to script.php, by using __DIR__. (__DIR__ is always the directory script.php is in)
#
jeremycherfas
I am using __DIR__ to set the files I am writing T
#
jeremycherfas
O, but not for the file I am reading FROM, as that is in the same directory. Line 23
#
Zegnat
should be __DIR__ . '/shiny.txt' on line 23
#
Zegnat
(assuming shiny.txt is in the same folder as the PHP script)
#
jeremycherfas
Let me try that.
#
jeremycherfas
Zegnat++[Rose]++
#
Loqi
Zegnat has 44 karma in this channel over the last year (146 in all channels)
#
[tantek]
need a space between for Loqi to see those
#
jeremycherfas
In general, then, I peresume it never hurts to put __DIR__ in front of any filename?
#
Loqi
[Rose] has 9 karma in this channel over the last year (34 in all channels)
#
jeremycherfas
(if it is in the same directory as the script)
#
Zegnat
jeremycherfas, no harm, no.
#
[Rose]
Glad it's working!
#
jeremycherfas
One of the things I would really hope to have time for in Utrecht is to learn more about PHP error handling. Not IndieWeb specific, but very useful to me.
#
jeremycherfas
This exercise is also showing me why I should use variable for filenames instead of hard coding them. :(
[manton] joined the channel
#
[manton]
[tantek] Copying the Micro.blog icon is definitely okay! Thanks for linking to it. There's also a help page here with some info about using the SVG version, but whatever you want to use is totally fine: https://help.micro.blog/2018/resources/
#
Loqi
[manton]: [tantek] left you a message 16 hours, 55 minutes ago: I found the SVG mini icon for micro.blog here https://help.micro.blog/2017/mac-version/, and copy/pasted the inline SVG to use on my home page for linking to my micro.blog profile. Hoping that bit of view source, copy, paste is ok! 😂
#
aaronpk
sknebel: i need to look at autoauth again in the context of some recent developments in the oauth community
#
[tantek]
micro.blog << Info about using micro.blog SVG icon: https://help.micro.blog/2018/resources/
#
Loqi
ok, I added "Info about using micro.blog SVG icon: https://help.micro.blog/2018/resources/" to a brand new "See Also" section of /Micro.blog https://indieweb.org/wiki/index.php?diff=60863&oldid=57383
#
sknebel
aaronpk: oh? details?
#
aaronpk
take this with a grain of salt right now, but https://oauth.xyz
#
[Rose]
I clicked on the draft specification and immediately got dizzy
#
aaronpk
it's a bit of a mouthful right now
#
aaronpk
but has some good ideas
#
[Rose]
That page sounds intriguing
#
[Rose]
Though I'm pretty much lacking in Auth knowledge, to the point where I would rather leave the working on it to others instead of accidentally building some massive security holes in 😕
#
aaronpk
yep haha
#
[Rose]
(Though at least I know I'm lacking in knowledge, and what impact that might have!)
#
sknebel
interesting. does it look like people are interested in that to the point that it might become a thing?
#
aaronpk
Quite possibly, but also OAuth 2 isn't going anywhere any time soon either, so we're talking about this on a time scale of 10 years out
#
aaronpk
In October Justin was talking about a version of this that was a minor addition to OAuth 2, and I built a prototype of it real quick
#
aaronpk
I'm wondering if there's anything in here that would make things significantly easier for IndieAuth
#
sknebel
the dynamic stuff could be kind of neat for more complex policies
#
sknebel
e.g. one side saying "please hold, a human needs to be involved"
#
aaronpk
There's a whole discussion around more complex transaction based stuff to replace scopes. Think like you want to allow a specific payment and then not let that app have any more access
#
sknebel
(e.g. "my feedreader can ask for read scopes, but for each domain, the first time it's accessed my authorization endpoint should require a flow involving me"
#
sknebel
otherwise, not sure
#
aaronpk
one thing I like about this is it builds in sidestepping client preregistration which is something we had to make explicit in IndieAuth
#
sknebel
(if it only includes known exchange/auth methods ours might be missing anyways, not sure if any of the included can replace things we had to add)
[eddie], snarfed and pd09041999 joined the channel
#
[eddie]
from IndieWeb channel talking about AutoAuth, I think it doesn't really overlap with the primary functions
#
[eddie]
so I don't think it would cause any issues introducing it into the Wordpress plugin.
#
sknebel
Right. And getting autoauth enabled private posts into WP would be a big and kinda risky thing
#
sknebel
But supporting the authorization endpoint bits would not be
#
[eddie]
Yeah, correct
#
[eddie]
The actual post reading is the riskier part
#
sknebel
A token endpoint supporting it can potentially be standalone, since for everything that's not the homepage it can be different from the main one a user uses
#
snarfed
re private posts, when we launched bridgy backfeed, it seemed to add a lot of positive pressure on implementors. i'd be happy to add private posts if we think that pressure would help
#
snarfed
i don't know that many/any of us have protected twitter accounts, though, so it probably wouldn't have much volume in our community
snarfed left the channel
#
aaronpk
oops where'd he go
snarfed joined the channel
#
aaronpk
snarfed i was hoping bridgy would be able to send me private backfeed from private twitter accounts
#
aaronpk
even tho mine is public
#
[eddie]
That's a good usecase
#
aaronpk
(Of course my site would need to know the response is private and not show it in the comments)
#
snarfed
aaronpk: huh. interesting idea. i don't know how the twitter API handles that. ie if you follow a private twitter acct, can i read its tweets w/the twitter API with token for you?
#
snarfed
looking
#
aaronpk
I would assume so
#
snarfed
haven't found anything in the docs yet
#
snarfed
i can try
jackjamieson joined the channel
#
snarfed
yup, works
#
snarfed
...but sheesh, not sure i'd even know where to begin
#
sknebel
Effectivly bridgy as a sender of private webmentions, interesting
#
sknebel
Guess private GitHub repos too
#
snarfed
and flickr...accounts? photos?
#
snarfed
doesn't use flickr
#
Loqi
[snarfed] #11 detect and handle non-public posts and responses
#
snarfed
i'd worry that some receiving sites would mishandle private data and bridgy would get blamed though
#
aaronpk
yeah that's definitely a trick
#
aaronpk
at least bridgy wouldn't be making the proxy URLs public tho
#
aaronpk
but we definitely need some solid way for a receiver to know a post is private to make it really easy for them to not share it publicly accidentally
#
[tantek]
Needs a tight (like conservative, lots of MUSTS) spec for how to handle the information, a very deliberate Security & Privacy concerns section, and test cases that attempt to trick / exploit the receiver into revealing private information
#
GWG
Re WordPress and autoauth...Does this mean that I should bump that project up on my list
gRegorLove joined the channel
#
GWG
Hoped, by the way, someone would have advice to magically solve my svg problem by the time I got to lunch
#
GWG
I need to solve the auth part though
#
aaronpk
Maybe autoauth will be my hack day project this weekend
#
GWG
aaronpk, document please
#
GWG
I am interested
[jgmac1106], leg, [Rose], pd09041999, [tantek], KartikPrabhu and gxt joined the channel
#
GWG
Missed answering Zegnat. All of them.
#
GWG
Trying to search for inline svg styling options without css
#
KartikPrabhu
you can put the CSS in the SVG
#
GWG
Yes, but I am looking for an automated way to do that
#
GWG
I get my icons from a set and they add new ones all the time, as well as fix old ones
#
GWG
I took out the css so I can play with solutions before putting it back
KartikPrabhu, snarfed and techlifeweb joined the channel