#dev 2023-11-10

2023-11-10 UTC
#
GWG
At least something helpful came out of the conversation. https://github.com/indieweb/indieauth/pull/129
#
Loqi
[preview] [dshanske] #129 Move Definition of Issuer Identifier to the Identifier Section and Update References to RFC9207
#
GWG
I have some tweaks to Ticketing based on your legitimate comment.
#
gRegor
GWG, sent you a ticket just now and looks like it was redeemed successfully
#
GWG
Yay
#
GWG
gRegor: It isn't on the list
#
GWG
Last one I got was sknebel on the 29th
#
GWG
I see a post to it
#
gRegor
staging.gregorlove.com, not gregorlove.com
#
gRegor
I have two redeemed tickets from wpdev.gwg.us resulting in access tokens
#
GWG
Interesting... I was playing with the code so maybe I broke something
#
GWG
So it isn't logging it
#
gRegor
I need to add more logging on my end too
#
gRegor
The request I send with the ticket includes `iss`, in case that has an impact
#
gRegor
GWG, Ah, 500 error: {"error":"unknown","error_description":"Unable to Identify User Associated with Me Property"}
#
gRegor
Ticket is still getting redeemed, though
#
GWG
gRegor: Time to build a better notification
#
gRegor
If you build it, the notifications will come
#
[jacky]
that dark mode in SVG trick is nifty, Kevin!
geoffo, jan6, tbbrown, Kaja, gxt, t0nic, dustinm`, gRegorLove_ and [tantek] joined the channel
#
jeremycherfas
Trying to understand the display of a map.
#
jeremycherfas
Code contains `<div id="map_6fe9a186-a0ed-4660-b8c3-e7e0b52d723c" style="height: 250px"></div>`
#
jeremycherfas
But first line of script is `var map6fe9a186-a0ed-4660-b8c3-e7e0b52d723c = L.map('map_6fe9a186-a0ed-4660-b8c3-e7e0b52d723c', {
#
jeremycherfas
In other words, there is an underscore missing from the references to the map div's id, and that is true for all subsequent references to the map.
tbbrown joined the channel
#
jeremycherfas
Such as `addTo(map6fe9a186-a0ed-4660-b8c3-e7e0b52d723c)`
#
jeremycherfas
Could that mismatch be the reason for a map not displaying? Or have I misunderstood the connection between the ID of the map's div and the id in the script? (Quite possible)
#
sknebel
the `var map6f....` is just a variable name to hold the reference to the map created with the `L.map` call
#
sknebel
what its name is is totally irrelevant
tbbrown joined the channel
#
jeremycherfas
So they do not need to match?
#
jeremycherfas
Oh well, there goes my simplest explanation.
#
sknebel
whats important is that the first parameter to L.map matches the ID in the HTML, and that iseems to do
#
jeremycherfas
All the examples I have seen in tutorials, they do match.
#
jeremycherfas
Yes, that first parameter does match. OK. Thanks. I will keep digging.
#
[tantek]
what is SVG
#
Loqi
SVG is Scalable Vector Graphics, a standard way to display vector images that integrates well into HTML and is implemented in all modern browsers https://indieweb.org/SVG
#
[tantek]
[KevinMarks] if you are using that SVG dark mode trick yourself, can you add yourself as an IndieWeb Example with link / explanation to how you're doing it on your own site to the /SVG page?
#
[tantek]
cc: [jacky] ^
#
[tantek]
re Datenstrom, what's the difference between a flat-file based CMS and a static site generator? Are they the same thing? If so we should pick the more recognizable phrase and use it consistently
#
[tantek]
^ gRegor, Pablo
#
sknebel
CMS runs code on request, static generator dumps out static html
#
sknebel
i.e. your site is afaik a custom "flat-file based CMS"
[snarfed] joined the channel
#
[snarfed]
right, both falcon and p3k I think?
#
[snarfed]
iirc aaronpk may use a db as a cache but authoritative storage is files?
#
sknebel
something like that
#
sknebel
i.e. the flat-file refers to the input, not the output
#
[tantek]
ahhhh thank you sknebel, that distinction makes a lot of sense
#
[tantek]
then I don't understand this expression on the /Datenstrom page: "a flat-file CMS (static site generator)"
#
[tantek]
is it a mistake?
#
[tantek]
or someone else that understands Datenstrom
#
sknebel
it can do both afaik
#
sknebel
i.e. it can be run both on a server as a CMS or be used like a static site generator that spits out the entire site as HTML
#
[tantek]
that should be clarified then because the parenthetical makes it seem like it's the same thing
#
[tantek]
what is a flat-file CMS
#
Loqi
It looks like we don't have a page for "flat-file CMS" yet. Would you like to create it? (Or just say "flat-file CMS is ____", a sentence describing the term)
#
[tantek]
what is a static-site generator
#
Loqi
Static site generators or SSGs are programs that take a set of flat text files on disk and transforms them into a set of static HTML files ready to be served by a standard web server, or some variation of this example https://indieweb.org/static_site_generator
#
[tantek]
^ sknebel those could be improved accordingly to make the difference more clear (or the possibility of combining them and what that means)
#
jeremycherfas
Grav is also flat-file CMS, builds pages dynamically from files, with quite aggressive caching.
#
jeremycherfas
But cannot just create static HTML.
#
[tantek]
Yes, that is a useful distinction
#
[KevinMarks]
Anything can create static html with a bit of wrapping, but yes.
#
[tantek]
there are many references to flat-file CMS on the wiki (in prose) so clearly it's a "thing" we should define
#
[tantek]
Grav, Kirby, Datenstrom (perhaps others)
#
[tantek]
lol even in https://indieweb.org/events/2023-05-24-hwc-pacific "What's the difference between flat-file CMS and static site generator? "
#
[tantek]
so there's definitely confusion between the two because check out the list here which kinda conflates them: https://indieweb.org/file-storage#Flat_file_%22CMS%22_systems_in_the_wild
#
[tantek]
how much "M" do you need to make something a CMS?
tbbrown joined the channel
#
sknebel
I'd say if it has a feature to create a post its a CMS ;)
[catgirlinspace] joined the channel
#
[jacky]
at least create _and_ delete
#
[jacky]
management implies the ability to make a change to its state so having two states _at the least_ hits that for me
#
[jacky]
well it could be said that _no_ post is a state so maybe create is enough! ha
#
[jacky]
taoist-indieweb++
#
Loqi
taoist-indieweb has 1 karma over the last year
#
jeremycherfas
found at least one preliminary problem with maps in Known https://github.com/idno/known/issues/3161
#
Loqi
[preview] [jeremycherfas] #3161 Hyphen in map div id prevents display of tiles
#
sknebel
oh, derp, of course. didnt even notice that in your line above...
#
[KevinMarks]
CAS - Content Anarchy System
#
sknebel
thats called a "wiki"
#
superkuh
File and folders are the best CMS.
#
superkuh
Even 'flat files' are over-complication.
#
jeremycherfas
I've tracked it down as far as I can and have to hope that someone else can find a proper fix.
benji joined the channel
#
[tantek]
Content Gardening System
#
sknebel
jeremycherfas: seems the format for Ids changed at some point... I guess the easiest fix would be to send them through some filter that makes them usable again in the template
#
sknebel
but I do wonder how much stuff in other templates broke on the same thing
#
jeremycherfas
I don't use many other post types, really, so cannot say. But wouldn't it be easier to find the change and, if it only affects post ids etc change that back?
#
jeremycherfas
I know roughly when it changed, at least for my site. Between 2022-05-30 and 2022-06-15.
#
jeremycherfas
But I was not using git at that time.
#
sknebel
from a quick skim seems indeed to be mostly the maps/checkins
#
jeremycherfas
And I'm not sure how to do a diff, although I do have an install of Known from 2022-01 locally
#
sknebel
and fixing the IDs would mean rewriting their database entries etc
#
jeremycherfas
I couldn't seem to find exactly how the var CheckinMap is calculated
tbbrown joined the channel
#
jeremycherfas
Yes, going into the db and making the changes there would be too difficult, becuse of those blobs that I do not understand.
#
jeremycherfas
Which means I need to trace back to where $object gets its id.
#
sknebel
or just edit that template to put something valid in the source
#
jeremycherfas
Hard coded? I mean, replace `<?php echo $object->_id?>` with `` or something else unique?
#
jeremycherfas
Got to go out now; will pick this up again in a couple of days.
#
Loqi
sknebel has 17 karma in this channel over the last year (38 in all channels)
#
sknebel
e.g. with object->id, but sent through a stringfilter that strips out the "-"
#
sknebel
ok, see you :)
neceve, tbbrown and pharalia joined the channel
#
[tantek]
[KevinMarks] and other folks interested in cutting edge HTML-that-replaces-some-JS-use-cases, see the "Invoke" feature in progress: https://github.com/whatwg/html/pull/9841
#
Loqi
[preview] [keithamus] #9841 Add InvokeElement & InvokeEvent IDLs & invocation steps for Invoke proposal
#
[KevinMarks]
The html feature that blew my mind recently was <output>
#
sknebel
(https://open-ui.org/components/invokers.explainer/ for examples around the invoke feature, from the proposal link)
#
[tantek]
Thanks sknebel, was about to find a link and that's better than what I found
#
[tantek]
In particular I really like the list of default verbs here that give me memories of wanting to do all this declaratively like 10+ y ago: https://open-ui.org/components/invokers.explainer/#defaults (all the audio/video buttons, and fullscreen too!)
#
barnaby
ooh that looks very exciting
CRISPR, tbbrown and [schmarty] joined the channel
#
Zegnat
!tell jeremycherfas What I would propose as a fix is to wrap the contents of that <script> in a function. Then change all the variable names to not include the object ID at all. They only do that so they will not conflict incase multiple checkins have to be rendered on the same page. Happy to explain if you are interested!
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
!tell jeremycherfas actually, that whole thing was like a minute worth of work, so I just used the on-GitHub code-editor to file a PR. Let me know if it fixes it. Happy to explain the code change more if you want for learning! https://github.com/idno/known/pull/3162
#
Loqi
Ok, I'll tell them that when I see them next
#
sknebel
Zegnat++
#
Loqi
Zegnat has 6 karma in this channel over the last year (16 in all channels)
#
GWG
Trying to figure out what notifications I might want in my IndieAuth code. When what happens. I know I want to know when a ticket is sent... but what about other non experimental happenings?
BinarySavior and tbbrown joined the channel