#dev 2020-02-23
2020-02-23 UTC
[dave] and [KevinMarks] joined the channel
# [KevinMarks] Outputting MySQL using php is fairly widely done - what's the problem?
miklb joined the channel
# [chrisaldrich] What is Django?
# Loqi Django is a python web application framework used in some IndieWeb projects https://indieweb.org/Django
# [chrisaldrich] [Rasul_Kireev] ^^ has a few examples of people who are using it (or variants). KartikPrabhu is frequently in the chat here.
# KartikPrabhu yeah I was busy at the time of the question
# [chrisaldrich] I'm curious what problem(s) you're having though?
# [chrisaldrich] Is it a webmention issue or a bridgy issue?
# KartikPrabhu most likely the Django-webmention plugin
# KartikPrabhu bridgy formats everything as HTML+mf2 so it can't be bridgy's fault
[Brian], miklb, [jgmac1106], [datashaman], tbbrown, [gRegorLove], [dave] and [chrisaldrich] joined the channel
# [chrisaldrich] I'm totally lost by the turbolinks session notes from earlier today. If someone who was there could flesh things out a bit more for our future selves, it would be appreciated. π
# jacky something I've finally finished: https://i.imgur.com/yMFTy1A.png being able to 'enable' post types on my site
[Michael_Beckwit and gRegorLove joined the channel
# KartikPrabhu what is turbolinks?
# Loqi It looks like we don't have a page for "turbolinks" yet. Would you like to create it? (Or just say "turbolinks is ____", a sentence describing the term)
KartikPrabhu and [jeremycherfas] joined the channel
[LewisCowles] and petermolnar joined the channel
# @aviaryan123 β©οΈ @swyx @ThePracticalDev FYI this page 404s for me https://www.swyx.io/writing/clientside-webmentions/ (twitter.com/_/status/1231494516059697153)
[KevinMarks] and [datashaman] joined the channel
# [datashaman] I'd like to confirm my understanding of how IndieAuth works with Micropub. I"m busy implementing a micropub service. When I get the first point of entry, I get an access token, which I must authenticate against a token endpoint in order to get the packet with _me_ etc. There is no indication which token endpoint to use, so does this mean that a micropub service _must_ share a common token endpoint with any site using it?
# [datashaman] Up till now I've been using tokens.indieauth.com/token but this is not universal - for example aaron has his own endpoint - does this mean that he would not be able to use this service? or am I missing a piece of the puzzle somewhere...
# [datashaman] sure, but in order for me (as micropub service provider) to validate the token we must agree on a token endpoint, correct?
[LewisCowles] joined the channel
# [datashaman] it is, but it could be any token endpoint that's in the HTML link, when i receive a token from a micropub request all i have is the token, there's no hint at that point which token endpoint it was dispensed from
# [datashaman] against what tho
# [datashaman] there's no session in this, it's stateless
# [datashaman] that metadata is only accessible once you've validated it with a configured token endpoint
# [datashaman] the info about the token endpoint is embedded in the token, which needs to the token endpoint to decode. π
# [datashaman] ~to~
# [datashaman] thinks how to express this
# [datashaman] Simplified sequence of events:
# [datashaman] β’ micropub client (MC) asks token endpoint (TE) for a token
# [datashaman] β’ TE returns an opaque token to MC
# [datashaman] β’ MC uses opaque token to query micropub service (MS)
# [datashaman] β’ MS receives request with token, but has no info at this point about which TE was used to dispense the token.
# [datashaman] i don't think there's any point before that where the source of the token can be stored or saved.
# [datashaman] i dont know which site it's for now which TE was used, that's encoded in the token and is only shown to the MS when the token is validated
# [datashaman] ~now~ nor
# [datashaman] when the indieauth site is registered in my service
# [datashaman] basic flow is this:
# [datashaman] β’ user logs in with an indieauth site, adding it to their list of managed sites
# [datashaman] β’ user logs in with github to get access to repositories
# [datashaman] β’ membership in that list of sites allows micropub clients to use the service
# [datashaman] i get a token and scopes back from that first login, yes
# [datashaman] the micropub service is using a diff token, diff client, diff requests
# [datashaman] thanks for trying π
# [datashaman] i've looked in headers and all the input, no hints
# [datashaman] it's no biggie to restrict access to sites that use a specific TE, it's just my stuff for now.
[KevinMarks] joined the channel
# [KevinMarks] isn't it up to your site to specify a token endpoint?
# [KevinMarks] with rel="token_endpoint"
# [KevinMarks] so, you pick one, publish that, and use it to verify tokens
# [KevinMarks] now maybe you use a common token algorithm that other endpoints also support, but you can't really relay on that as tokens are opaqu
# [datashaman] thanks, that clarifies the process for me, and makes total sense
# [datashaman] otherwise an answer could be spoofed by a dodgy token endpoint
# [KevinMarks] I mean it still could be if your site links to a dodgy one, but you have said that you trust it.
# Zegnat [datashaman]: if you have a Micropub client and want to see a βmulti-user endpointβ in action, play with https://sink.zegnat.net/
[jgmac1106] joined the channel
# Zegnat Depends on what part of the flow (WIP flow diagram: https://www.svenknebel.de/temp/autoauth_diagram.svg) you are thinking of
# [jgmac1106] moving from main channel it terms of a note feed out of https://jgregorymcverry.com/poetryportpoems I may just use time as the link...in the poetry example the entire day is an h-entry the dt-published is on the day and then each poem just a h-item
# [jgmac1106] going to use h-entry for each note....probably not nested....not sure about the link name. Note number? Time of day?
# [jgmac1106] Can I do <a class="u-url href="#"><time="dt-published">time</time></a>
# [jgmac1106] yeah I was short handing
# [jgmac1106] thanks....I think I will display notes by time of day, .oooh p-name.....crap...maybe their is a page on minimal h-entry
# [jgmac1106] http://microformats.org/wiki/h-entry#faq what does name can be implied mean?
# [datashaman] i think it might be nice to include a header with the token response that indicates which token endpoint it was issued by, so that services can decide which they trust
# [jgmac1106] <a class="u-url" href="#"><time class="dt-published"><span class="p-name">16:30</span></time></a> that might work
# [jgmac1106] okay so if I use the id property, I can include start of note.....though I think I kinda like using the time as the p-name for a calender feed
# [jgmac1106] ahh sweet, thanks, that is what i will do. time to finally build my notes feed
# [datashaman] all problems, agreed; i think my way gives people more flexibility; but with that comes risk, but it's self-assumed risk
# [jgmac1106] 5 pages: october-feb
# [datashaman] bestest option is to be the auth provider as well i suppose
# [jgmac1106] ..scratch that starting with February and moving forward, save backfill for later date
# Zegnat [datashaman]: what I am doing with sink.zegnat.net is that I am the auth and token provider, except the auth provider is not username/password but actually in itself is IndieAuth. Meaning that the Micropub endpoint only trusts stuff I generate, but I trust the user to decide what auth they want. (Which in turn means the user does not need to trust me with passwords, they only see their own login screen.)
# [jgmac1106] I may drop M-F, so I don't have to worry about aligning calendar with days of the week
# [datashaman] that's an interesting idea, but I fear I am shaving yaks here. I"ll get basic micropub working with indieauth.com as TE first. thanks for the tips.
# Zegnat https://tokens.indieauth.com/ ? I keep forgetting that exists, haha
# [jgmac1106] then realizes like a weirdo I may have estimated by dt-published to land on the fourth minute and 20 second mark...of every note..........
# [jgmac1106] <div><a class="event event-end h-entry u-url" href="/notes/2020-02-01-1"><time class="dt-published p-name" datetime="2020-02-01 07:44:20">7:44</time></a>
[LewisCowles] joined the channel
# [jgmac1106] yeah realized that. trying to get it as small as possible
# [jgmac1106] may just wrap it in a div
# [jgmac1106] why I kinda liked doing each day as an h-entry and each poem as an h-item but not doing that for notes
# [jgmac1106] working on fixing this poem first: https://jgregorymcverry.com/heavenlyremixes took a break
# [jgmac1106] and I haven't even looked at what today's word is for new poems...
# [jgmac1106] each poem could have been an h-entry, but I feel like with a 30 challenge the entry is the day.
# [jgmac1106] every day I wake up and have to delete 8 gigs from a folder called .git I should figure out how to stop needing to do this
# [jgmac1106] I dunno, it refreshes every day
# [jgmac1106] I think it is my entire site, maybe an extra copy?
# [jgmac1106] so I wake up log in and delete it
# [jgmac1106] rinse, wash, repeat
[jgmac1106] joined the channel
# [jgmac1106] I am using git
# [jgmac1106] I use github desktop and an ftp action
# [jgmac1106] there is probably something I can add to the YAML file nto to back it all up, need to dig in
# [jgmac1106] Ilemme see how many commits I made yesterday
# [jgmac1106] 253 commits this month, not sure how many yesterday
# [jgmac1106] 14 yesterday, I will poke around what you can do with the ftp action and see if I can stop it some how
# [jgmac1106] yeah I will wait until tomorrow when it is there again, and poke around
[jeremycherfas] joined the channel
# [datashaman] yesss! micropub working
tbbrown and gRegorLove joined the channel
# jamietanna[m] !tell snarfed just seen your message about releases for granary and oauth-dropins. I'd be happy to help, but don't want to slow things down if you want them out there :)
[yo] joined the channel
# [jgmac1106] so close...just can't figure out for life of me why the note on Saturday the first showing up on Sunday
# [jgmac1106] each week is set up as a grid, that satruday should be the 7th spot
# [jgmac1106] sknebel++
# [jgmac1106] yeah there are some to span multiple days, I was just looking for a CSS Grid calendar to start from
[LewisCowles] joined the channel
# [jgmac1106] I might just drop the M-F and just have calendar start on one to make it easier
# [jgmac1106] but if I wanted to add an h-event for remoting into Austin I could us: event-start, event-end, and data-span="2"
[tantek] joined the channel
# [jgmac1106] that fixed it, thanks
[snarfed] joined the channel
# [jgmac1106] snarfed can I use an HTML entity for spaces with Bridgy? Only tried once but I messed something up
# [jgmac1106] thx [yo], it works on Known and @kevinmarks taught me about option C whihc I get to work
# [jgmac1106] jacky, snarfed doesn't really matter as the poem will look correct, thus mean the same thing you want it to on my website, spacing lost on POSSE copy oh well
loophole1 joined the channel
# aaronpk oh look there's an open issue for this https://github.com/aaronpk/XRay/issues/55
[Erika_W_] joined the channel
[chrisaldrich] joined the channel
# [jgmac1106] so if I use time as p-name for my notes am I thereby making them into articles since they now have a p-name different than e-content?
# [jgmac1106] I am trying to build a feed of notes but put them on the calendar
# [jgmac1106] I guess I will go back to default on the id and including that
# [jgmac1106] well I have to have some p-name for a minimal h-entry
# [jgmac1106] unless I go back to having it get inferred from id
# [jgmac1106] just a space contsraint issue
# [jgmac1106] but then I don't meet requirments for a minimal h-entry
# [jgmac1106] the question about bare requirements
# [jgmac1106] only way I could see name gets implied is by using the id property
gRegorLove joined the channel
# [jgmac1106] so in trying to build an h-feed of all my notes which each have their own canonical url...that is what I am trying to do
# [jgmac1106] sorry
# [jgmac1106] let me go check indieweb wiki for other examples of note feeds
# [jgmac1106] ...ohh thx, been bugging me for a long time....in terms of designing notes and titleless poems
# [jgmac1106] on my calendar of poetryport poems I ended up just using h-items nested in an h-entry because I couldn't figure out how to do the name and dt-published....but they actually look pretty cool in parser and readers so don't mind
# [jgmac1106] still may go back and fix now that I know name can be ignored
phpbooob joined the channel
# [jgmac1106] I am gonna fix.
# [jgmac1106] aaronpk just let me know that what I was reading on the microformats wiki was wrong
# [jgmac1106] h-item allowed me to avoid having to figure out p-name and dt-published
# [jgmac1106] no, before you did this I chose h-item as a way to avoid having to include a dt-published and p-name
# [jgmac1106] I read minimal requirements....was like....that is going to be really hard to design how to fit all that in tight space...found h-item and went with it
# [jgmac1106] it looks great in feed previews
# [jgmac1106] and this is a very unique thing because each day has a theme so I used the theme for the day as the p-name and the date for the dt-published, then nested in the h-items. I will switch to h-entry
# [jgmac1106] it still turns to pretty rss with granary which is all I really care about in the end, I don't know many people who use social readers
[tantek] joined the channel
# [jgmac1106] I know, but I am talking about everyone I know that uses RSS readers...which is everyone I know outside this community
# [jgmac1106] goal is get people to try social readers but I also need to provide the feed for my communities
# [jgmac1106] no our education blogging space a bit different, never stopped running on RSS
# [jgmac1106] every single person here uses RSS: https://clmoocring.jgregorymcverry.com/members/ that is my community, to not provide a way to interact with them is wrong
# [jgmac1106] and it's not like it looks bad for social readers did you look at the feed preview
# [jgmac1106] inoreader
# Loqi Inoreader is a feed reader service https://indieweb.org/Inoreader
# [jgmac1106] and jacket just announced a major rewrite to support titleless posts for micro.blog and it takes rss
# [jgmac1106] that was part of the session on microformats yesterday
# [jgmac1106] said he looked at adding support but the feeds were unreliable on most sites he checked out
# [jgmac1106] ...he was looking at micro.blog sites as people kept asking him for better no title support
# [jgmac1106] inoreader and feedly, every educational blogger as a pro account to either
# [jgmac1106] if you teach through blogging and rss you tend to lean more towards inoreader for filters and rules
# [jgmac1106] allows you to sort student blog feeds by assignment and such
# [jgmac1106] and technically we are trying to replace Google+ not Instagram...pinterest...maybe but Instagram doesn't have a huge educational community
# [jgmac1106] CLMOOC does have a twitter hashtag and a facebook group as well though but that is much amplification as network
[KevinMarks] joined the channel
# [jgmac1106] in terms of inoreader..reading tea leaves of Discord comments, leaning more towards the json feed for microblogging, what was recommended to use when adding sites from micro.blog
# [jgmac1106] Okay moving on to see if I can fix my CSS Grid on: https://jgregorymcverry.com/mypoetry/ been driving me crazy....may just start over and build with Grid areas
# [jgmac1106] ohh and feedburner and other WP plugins, people build public RSS feeds with those as well
oh_that_courtney joined the channel
# oh_that_courtney can somebody in Austin tell me ifyou can reach http://172.18.1.110:4000/ .... i'm trying to figure out if i can demo from local
macgenie joined the channel
# Loqi Using rel=me on a hyperlink indicates that its destination represents the same person or entity as the current page, which is a key building-block of web-sign-in and IndieAuth https://indieweb.org/rel-me
[Brian] joined the channel
# [Brian] Just gonna drop this in here in case it affects anytthing y'all have set up https://www.theregister.co.uk/2020/02/20/apple_shorter_cert_lifetime/
# [jgmac1106] h-entry now: https://jgregorymcverry.com/poetryportpoems
# [jgmac1106] still need to figure out what to do with dtpublished on each one, I really do not want to display it
# [KevinMarks] h-cite might make more sense given the comments precedent
# [KevinMarks] also you have an h-tem in there
flex14 joined the channel
# [jgmac1106] I didn't know it was required
# [jgmac1106] if* dt-published [KevinMarks] sould be write since these are technically published somewhere elese
# [jgmac1106] well didn't fix my grid here on time: https://jgregorymcverry.com/mypoetry....can't get the rows straight at all
# [jgmac1106] zegnat...I don't know but the h-items did parse well
# [jgmac1106] in terms of how they looked for people in inoreader
# [jgmac1106] Will find out what happens with granary->rss
# [jgmac1106] interesting the h-items worked with Granary but not with nested h-entries
# [jgmac1106] gonna switch to h-cite as that probably is technically correct since they were published elsewhere
# [jgmac1106] Granary is my consumer use case
# [jgmac1106] I don't want to do my own xml for RSS
# [jgmac1106] I think it is pretty good for human visitors, all the poems under the correct day with the theme
# [jgmac1106] yeah I know, but it will the h-cite
courtney_ and phpbooob1 joined the channel
# [jgmac1106] no it doesn't with the h-cite...only the h-items worked
# [KevinMarks] because h-item is used for review
# [jgmac1106] ahhh
# [KevinMarks] (I think - [snarfed] can give you more)
# [jgmac1106] but it also makes an rss feed I like, nested h-entries and h-cites do not show up
# [KevinMarks] right, RSS can't nest
# [KevinMarks] OPML can
# [jgmac1106] doesn't look bad actually
[dave], gRegorLove_, [ColinMorris] and [David_Bryant] joined the channel
# [David_Bryant] Looking forward to comparing photo publishing and gallery implementation notes with you!
# @joemasilotti Spent the weekend learning about #indieweb and meeting a bunch of awesome people at IndieWebCamp Austin! Today I added v1 of listing webmentions on my site. https://masilotti.com/webmentions/ (twitter.com/_/status/1231725298992979968)
[gRegorLove] joined the channel
# @joemasilotti Spent the weekend learning about #indieweb and meeting a bunch of awesome people at @indiewebcamp Austin! Today I added v1 of listing webmentions on my site. https://masilotti.com/webmentions/ (twitter.com/_/status/1231728039723184128)