#dev 2019-10-10

2019-10-10 UTC
dougbeal| joined the channel
#
[tantek]
Would be better if you could point such theme devs to a validator that could check their work
#
[jgmac1106]
they really aren't theme devs, if you watch the design and code channels they are very much hobbyist fooling around
#
[jgmac1106]
but getting default themes proper will take care of 90% of usecase (using a totally made up number for most)
#
[tantek]
Theme authors then
#
[tantek]
Yes default themes should absolutely be 100% valid
#
[jgmac1106]
I need a few more hacktober PRs will try one or two more. @schmarty is a HUGO pro maybe he can take a look, we get one or two correct, the rest should be easy to follow
#
[jgmac1106]
okay now I am not doing the photos or the email, time to go dark
#
[jgmac1106]
in photo posts do people use the datetime of when the post is published or when the photo was taken?
#
[jgmac1106]
I guess it would have to be date of publish for reader and chronological publishing??
#
aaronpk
I do it the same way as instagram... the time the post is published, because often my photo posts also have accompanying text, which was written when I publish it not when I took the photo
#
[jgmac1106]
cool what I am doing, trying to tell the IWC story in a collection of photos
#
[jgmac1106]
okay back to trying to get this post...sharing a link to the Google Photos folder...was slightly easier.....
#
[tantek]
Published date is when you, uh, publish them :)
#
[tantek]
That said I tag my photos with the actual date taken so they can show up in my future implementation of on this day
#
[tantek]
I’ve been brainstorming about a dt-creates too for capturing when a post was created or a photo was taken
#
[tantek]
dt-created*
#
aaronpk
plindner[m]: is there any overlap between the SSB and ham radio communities? I feel like there's some opportunity there
#
[tantek]
waits for the packet size analysis of a “modern” protocol that assumes IP / WiFi / Bluetooth bandwidth
#
[KevinMarks]
that was my point - the serif fonts they picked were all very narrow and light, except computer modern and the monospaced one
#
aaronpk
not a lot of search results
[schmarty] and jfoster joined the channel
#
@mdempsky
↩️ Hm, after reading their wiki and FAQ, I don't see the value in supporting IndieAuth instead of just allowing the user to specify an arbitrary OpenID Connect provider?
(twitter.com/_/status/1182103872451383296)
#
aaronpk
WELL let me tell you a story
#
aaronpk
thankfully I have already told this story so I just need to link to a blog post
#
[tantek]
so good
#
Loqi
[dmitshur] has 1 karma in this channel over the last year (2 in all channels)
[dmitshur] joined the channel
#
[dmitshur]
(still catching up)
#
[dmitshur]
it took me a while, but I think I'm starting to really understand IndieAuth now. which is great because it means I can actually implement it fully.
#
aaronpk
if you can pinpoint particular aspects you were struggling with or were not clear from things you read, please do let me know so that I can improve those!
#
[dmitshur]
it also means I can convince myself and others about its merits, and not just that "it feels cool"
#
aaronpk
if you haven't already read it, this post (should) provide arguments that you can articulate in conversations https://aaronparecki.com/2018/07/07/7/oauth-for-the-open-web
#
[dmitshur]
sure Aaron, will do (and maybe I'll be inspired to write a blog post about it :gasp: )
#
plindner[m]
aaronpk: I don't know of specific ham radio + ssb support.
#
[dmitshur]
I have read that, and it's very useful, but what I think was missing for me were some concrete examples. I think it's very helpful to set the expectation right away: there are two halves to IndieAuth: being the consumer and being the provider. so "implementing support for IndieAuth" means very different things depending on what part of it you choose implement (first, or at all).
#
[dmitshur]
it's also very helpful to know at least 1 other person who can help you test it (hat tip [schmarty])
#
[dmitshur]
but the main reason it took me a long time is because it takes time to sit down and figure it out, and I haven't had free time and never got around to it.
#
[dmitshur]
until IndieWebCamp 2019 🙂
jfoster joined the channel
#
[dmitshur]
> [yesterday 1:18 AM] yes that's called the consent screen
#
[dmitshur]
that sounds great. thanks for confirming [aaronpk]!
#
[dmitshur]
> [yesterday 1:19 AM] it's ultimately up to the IndieAuth server whether and how and when to show it, but it's generally a good idea
#
[tantek]
what is the consent screen
#
Loqi
It looks like we don't have a page for "consent screen" yet. Would you like to create it?_ (Or just say "consent screen is ____", a sentence describing the term)
#
aaronpk
consent screen is the page you see during an OAuth flow that asks whether you want to allow the application you're logging in to to be able to access the data it's requesting
#
Loqi
ok, I added "https://www.oauth.com/oauth2-servers/authorization/the-authorization-interface/" to a brand new "See Also" section of /consent_screen https://indieweb.org/wiki/index.php?diff=65386&oldid=65385
#
Loqi
ok, I added "https://www.flickr.com/photos/factoryjoe/sets/72157624457629866/" to the "See Also" section of /consent_screen https://indieweb.org/wiki/index.php?diff=65387&oldid=65386
#
aaronpk
huh I thought I had a flickr album of these too
#
aaronpk
consent screen << [[IndieAuth]]
#
dougbeal|
aaronpk: indielogin only supports manually added indieauth servers?
#
aaronpk
dougbeal|: I don't understand the question
gRegorLove joined the channel
#
dougbeal|
Say I want to use my wordpress site to autheticate to webmention.io for a static site
#
dougbeal|
I get none of the URLs were recognized as a supported provider
#
dougbeal|
maybe PGP key authentication makes more sense
#
aaronpk
Webmention.io uses indielogin.com to authenticate ppl. Indielogin.com supports many different options to authenticate users including IndieAuth email, pgp, Twitter, github
#
aaronpk
IndieAuth is just one option and is by no means required
#
aaronpk
But if you have a Wordpress site then the best option is to install the IndieAuth plugin and avoid the whole rel=me stuff with other services
jfoster joined the channel
#
dougbeal|
I was missing the indieauth endpoints on the static site.
#
dougbeal|
I would need to create a user that matches the static site?
[Rose], [tonz], gxt, [Michael_Beckwit, [jeremycherfas], cweiske, krychu, gRegorLove and [Lewis_Cowles] joined the channel
#
@hankchizljaw
↩️ I hear good things about https://commento.io/ I’ve got webmentions but it’s they’re not as good as I thought they’d be, so tempted to give this a shot.
(twitter.com/_/status/1182207424616370178)
[Rose], [grantcodes], [pawel_madej], [pfefferle], [chrisbergr] and jeremych_ joined the channel
#
jeremycherfas
Commento looks interesting but the onboarding is not at all straightforward. It offers, for example, authentication with github but then refused actually to let me use that. I don't know what system it is using for that.
#
jeremycherfas
Ah. Commento is using OAuth, but apparently not for me.
[Lewis_Cowles] joined the channel
#
jeremycherfas
Error: no name returned by Github
[jgmac1106] joined the channel
#
jeremycherfas
Than got an email from Github saying that I had indeed been authorised. Super confusing.
[Rose], [tonz], gxt, [JHSheridan], dopplergange, [grantcodes] and [jgmac1106] joined the channel
#
[Rose]
Ok, I think I'm not going to get a "yes" to this, but is it possible to resize a header on scroll with just CSS? There's a JS example here: https://www.w3schools.com/howto/howto_js_shrink_header_scroll.asp
#
jeremycherfas
You saw the SO answer, of two headers at different sizes?
#
[Rose]
Nope, not yet. Link?
#
[grantcodes]
Just css no. Not shrink like that example anyway
#
[Rose]
I did wonder about just visually extending it and living with it scrolling away (so a separate element below the sticky part)
#
[grantcodes]
You could easily remove some padding on scrolling with a bit of a hacky method
#
[Rose]
I am definitely curious as to that
#
[Rose]
As it is I may end up including JS anyway, but I'd like to avoid it if I can
#
[jgmac1106]
the shrink element on scroll animation all had a bit of vanilla JS but it was small
#
jeremycherfas
My responsive menu is js, and I have bookmarked a way to redo it, but it is low on my list of priorities, for now.
#
[grantcodes]
That stackoverflow idea is probably going to end up showing duplicate headers. And having 2 in html doesn't really feel right.
#
jeremycherfas
It certainly looks hacky. TBH, while I currently have a resizing header, I'm going for simplicity in my new theme and just allowing the header image to scroll off the page. Still undecided about letting the navbar do the same.
#
[Rose]
I'm starting to think I just need to think about showing one image on screen sizes over X and others under that size, which will basically solve my problem anyway
#
[Rose]
Because then I can stick with a "plain" sticky navbar and show more information for people with bigger screens (namely my full name) but still have my branding on the smaller screen without blocking their view of the actual content they're there for.
#
[Rose]
Which probably works best anyway
#
jeremycherfas
I'm showing the same image, but less of it, IYSWIM
beko joined the channel
#
[grantcodes]
I made a fake shrinking header just because it seemed like a fun little challenge: https://codepen.io/terminalpixel/pen/yLLYVLy
jfoster joined the channel
#
[Rose]
Wow, thanks!
#
[grantcodes]
But I wouldn't really recommend it, it's a bit of a hack. I would go with your image change + javascript if you need it.
#
[Rose]
Well I should be able to set the image based on the media viewport size, so hopefully that eliminates the need for JS there
#
jeremycherfas
[grantcodes] Can you just explain, how come you don't have to say directly about scroll?
#
aaronpk
I dunno, after the demos at View Source I feel like css can do anything
#
[Rose]
I figured out of the groups of people I know this chat was the most likely to be able to provide me with pointers to figure it out 😄
#
jeremycherfas
I know! I keep getting these updates from Codepen that are simply beyond belief.
[tantek] joined the channel
#
[tantek]
at an indieweb / distributedweb related meeting at work this week, it was suggested that we start documenting IndieWeb standards (especially W3C specs!) on MDN
#
[tantek]
so if there's anyone here who is interested in helping stub "developer documentation" for Webmention, Micropub, Websub, etc., in addition to improving microformats2 documentation for h-entry, h-event etc., let me know and I'd be happy to help collaborate to make it happen!
#
aaronpk
that's a good place for it!
#
[jgmac1106]
I can help with the mf2 stuff, been meaning to expand it, the hits are climbing
#
[tantek]
right I wanted to make clear there is both acceptance and strong interest!
#
[tantek]
[jgmac1106] I'm editing that page right now
#
[tantek]
cleaning up a bunch
#
[tantek]
we need developer documentation by and for folks who have actually *built* to these standards
#
[jgmac1106]
okay then will not edit
#
[tantek]
to be frank. otherwise it tends to be more theoretical and handwavy and that's not good
#
[jgmac1106]
I thought we did a decent job on the first pass of mf2
#
[jgmac1106]
and I challenge the assumption that I have not been building my web pages to mfg2 standards, weird to say hey we want help just not you
#
[tantek]
no you have been writing mf2, that's why your additions have been good 🙂
#
[tantek]
that was more about the other specs Webmention, Micropub, Websub, IndieAuth etc
#
[tantek]
which we don't have pages for yet
#
[tantek]
apologies for not making that clear
#
[tantek]
it's too early for me and I didn't get enough sleep (had 7am meeting today)
#
[jgmac1106]
ohh okay....my apologize for being jumpy as well...IWCs always put me behind eight ball at work, and there is still post event wrap up stuff to do
#
[tantek]
yup - that's a good focus, post IWC NYC wrap-up, appreciated!
#
[jgmac1106]
Been talking to mdn team about stubbing out each h* ...but just kept falling down the list of things I need to get to
#
[tantek]
ok to chat about that in #microformats too
#
[jgmac1106]
well good luck all ctaching up, only one week to Brighton to fall behind again
#
[tantek]
don't need to take all the burden yourself 🙂
#
[jgmac1106]
schamrty and sknebel came in behind me and helped a ton, I only got ball rolling
#
[jgmac1106]
sorry for idiom behind the eight ball= behind on things you must get done
#
jeremycherfas
Thanks Kaja++
#
Loqi
Kaja has 1 karma in this channel over the last year (3 in all channels)
jfoster and [Lewis_Cowles] joined the channel
#
[Lewis_Cowles]
[grantcodes] wow
#
jeremycherfas
Hmmn. Checking mf2 is going to be more difficult than I expected. I probably need to spend a lot more time going through templates by hand.
#
[Rose]
It might be a fun session at Brighton - making MDN docs for IndieWeb. Could give us some collaborative projects for the Sunday too.
[schmarty] joined the channel
#
[grantcodes]
jeremycherfas: I don't understand your scroll question?
#
jeremycherfas
How does the browser know that you have scrolled away from the top of the page?
#
jeremycherfas
Is that a variable one can use?
#
[grantcodes]
In my codepen example? or in js?
gRegorLove joined the channel
#
jeremycherfas
Codepen example
#
[grantcodes]
It's using position: sticky which pins stuff so it stays in view inside its container.
#
[grantcodes]
Plus some hacks
#
[grantcodes]
If you change the fake header background color it may become more obvious what is actually happening
#
sknebel
jeremycherfas: I'm curious what you mean by checking mf2 exactly?
[KevinMarks] joined the channel
#
[KevinMarks]
[Rose] you could maybe use position:sticky https://gedd.ski/post/position-sticky/
#
[Rose]
I’m planning to!
#
jeremycherfas
sknebel I mean that I have been cobbling together a new theme for Grav, which knows nothing about mf2, and because I have pulled it together from bits of my old theme and a lot of new stuff, I wasn't paying attention to the mf2 while I was paying attention to look and feel. Now I want to check how the mf2 is parsed.
jfoster joined the channel
#
[KevinMarks]
ah, I was scrolled up, ironically
#
jeremycherfas
I also want to take the opportunity to simplify where possible, so perhaps change divs to spans where the only purpose of the div was to specify a microformat
[arush] joined the channel
#
[tantek]
[Rose]++ that is a GREAT idea
#
Loqi
[Rose] has 13 karma in this channel over the last year (47 in all channels)
#
[tantek]
Would love to join you on an IndieWeb MDN docs sprint
#
[tantek]
I’d be down to start on Saturday and continue on Sunday as one of our “easy” projects
#
Loqi
Rose has 14 karma in this channel over the last year (48 in all channels)
#
[tantek]
Shall we start brainstorming a page list ahead of time? Of pages to create and or update
Amgine_[m] left the channel
#
aaronpk
"easy" hahaha
#
Loqi
awesome
#
[Rose]
I like the sound of that
#
[Rose]
Aaron: Easy relative to the other projects we may have perhaps, Not was in the grand scheme of life :P
#
[Rose]
[tantek] Do you want to go ahead and start the page with the sorts of things we should be including in the MDN docs long term? Then we can go from there. (I figure you know better than me what's being looked for)
#
[tantek]
[Rose] a page for each of the specs I mentioned above
#
[tantek]
Go ahead and start the list with those
#
[tantek]
We can figure out “what’s the right place on MDN” later
#
[tantek]
Plus I’m sure [jgmac1106] can provide links to existing pages we could / should update like the microformats page
#
[tantek]
And he had suggestions for new subpages too like for all the popular h-* vocabularies
#
[tantek]
We might even want a dedicated mf2 page
#
[tantek]
To move a bunch of the detail from the main MDN microformats Page
#
[jgmac1106]
Yeah the mf2 is very general. We only review properties used in the examples. On each h-* should list any properties currently in use by standard =>2 consumer rule
#
[jgmac1106]
Keep any expiremental properties on the mf wiki
#
[tantek]
Agreed that’s a great guideline
[manton] joined the channel
#
[manton]
[tantek] Thanks, I need to review the themes (and I'm in the middle of some theme improvements this week). [jgmac1106] also submitted a pull request with some MF2 fixes that I need to incorporate.
#
[tantek]
[manton] would be interesting to understand your method for evaluating / validating such fixes, and if you have any CI tests for making sure they don't break in the future.
#
[Rose]
Definitely very interesting
#
[tantek]
And of course, how can we help with any of that?
[tonz] and [Will_Monroe] joined the channel
#
[Rose]
^^ seconded
#
[Rose]
(I have a feeling the MDN docs will be a good starter for some of this stuff in general, maybe not specifically for micro.blog)
#
[manton]
Short answer: I have no automated tests for this, but I should! All the themes are open source. For example: https://github.com/microdotblog/theme-default
#
[manton]
My workflow is that I make tweaks to the themes as I have time, then I push the changes to separate repositories on GitHub (one per theme). Most started as existing open source themes which I've ported from Jekyll to Hugo or made other improvements to.
#
[Rose]
Would it be helpful to you to have a readme for each of these with screenshots and documentation for regular tweaks?
#
[Rose]
E.g. I frequently see questions about making light and dark versions of themes, I think I saw something semi recently on pagination.
#
[manton]
Yes, basically anything would be helpful. 🙂 The READMEs are very out of date in some cases. I'm currently working on making pagination consistent across all themes (with a Micro.blog setting) and adding new themes.
#
[Rose]
Is there an (un)official place where people are documenting how they make changes to micro.blog themes?
#
[manton]
Not an official place, but custom.micro.blog has been linking to some other blog posts.
#
[tantek]
There’s a long term minimizing admintax aspect to this that felt very necessary / relevant to IndieWeb dev: https://twitter.com/mark_riedl/status/1182307100736643072
#
@mark_riedl
Today’s realities: 1. Non-neural net code written more than 5 years ago works just fine 2. Neural net code written a year ago on TensorFlow doesn’t work anymore
(twitter.com/_/status/1182307100736643072)
#
aaronpk
shoot there's some bug with watchtower getting stuck on some feeds
#
aaronpk
i just noticed one of my channels was oddly quiet
#
[KevinMarks]
It's stopped updating my granary feed of a twitter list
#
[KevinMarks]
It's still expiring old ones though
#
aaronpk
yeah i see that one
dougbeal|, [tmiller], [schmarty], [fluffy] and [jgmac1106] joined the channel
#
[jgmac1106]
[manton] I have never hugo themed but the pattern is discernible. If that first one is close I should be able to update others quickly
#
[jgmac1106]
If right, maybe a post with 2-3 minute video pinned in micro.blog code and design channel will help users
#
[jgmac1106]
Unscientifically going through my feed everyone(ish) uses a default theme
#
[jgmac1106]
Agree [tantek] HTML is most sustainable bc it can be u derstood in a tablet running latest browser or carved into stone tablet
#
@AndreJaenisch
↩️ My website supports WebMentions (kinda. Receiving end is not implemented on my own yet but is using a service - gotta change that somewhen later)
(twitter.com/_/status/1182389890845155328)
#
[manton]
[jgmac1106] Some of the themes are similar but most don't really share much HTML. I think the one you picked had the worst support for MF2, so it was a nice one to update! I've been wanting to make the templates a little more consistent so that changes across all themes aren't so tedious (but I also like the flexibility of allowing them to be completely different).
dopplerg- and KartikPrabhu joined the channel
#
[jgmac1106]
To make your life easier make as many of your default themes share as much HTML possible, that is most flexible
#
[jgmac1106]
CSS clothing can fit any HTML no matter <body> type. Tyranny of defaults. Keep those as POSH as possible. Provide tutorials for those going beyond
#
[tantek]
Responsive CSS that is
gxt and [fluffy] joined the channel