#dev 2023-07-31

2023-07-31 UTC
tei_1 and IWSlackGateway joined the channel
#
benatkin
I think literals in whatever programming language you're using are becoming popular
#
benatkin
But that is showing weakness in popular configuration formats
#
benatkin
I kinda like this one, but it seems to lack implementations in other programming languages. https://github.com/ron-rs/ron
#
Loqi
[preview] [ron-rs] ron: Rusty Object Notation
#
benatkin
After the latest Chrome privacy invasion, "Web Environment Integrity", I started running off to Firefox again. I wish Firefox scored high on this: https://www.bryanbraun.com/2021/03/24/infinitely-nested-iframes/
IWSlackGateway, gRegor, vladimyr__, tei_, tei_1 and [tantek] joined the channel
#
[tantek]
rubenwardy, I have only ever had an Atom feed file, never bothered with an RSS feed file and haven't had any problems or complaints.
tei_1, eitilt, petermolnar and [aciccarello] joined the channel
#
[aciccarello]
[snarfed] I'm getting a bad cert error when trying to log into bridgy fed. I moved domain registrars this week but the certificate should be updated now. Is something wrong with my site?
#
[aciccarello]
I had some issue with my non-www domain which could be related. I thought that was fixed though. BF Error says "Couldn't connect to https://www.ciccarello.me/: 502 Bad Gateway: HTTPSConnectionPool(host='http://ciccarello.me', port=443):"
#
Loqi
[preview] Anthony Ciccarello
gRegor, [capjamesg], [KevinMarks] and tei_1 joined the channel
#
[KevinMarks]
You may need to update any map tile links that use Stamen - also they have vector tiles now https://stamen.com/here-comes-the-future-of-stamen-maps/
#
Loqi
[preview] Since 2011, Stamen has provided free custom-designed basemaps for the whole world, for anyone to use, for any purpose. Long after other map providers went out of business, started requiring API keys, or charging for usage of their maps, we kept provi...
tei_ and [schmarty] joined the channel
#
[schmarty]
Oh wow. Thanks for the heads-up, KevinMarks++
#
Loqi
KevinMarks has 16 karma in this channel over the last year (45 in all channels)
[Jo], shreyan[m], [0x3b0b], vladimyr, movedtoshreyanbe, bkil, jengaio[m], olaf[m], JaeItIts[m], kandr3s and benatkin joined the channel
#
c​apjamesg
[tantek] While I was working on my links project yesterday, I saw the webmention for the post you wrote on venues.
#
Loqi
[preview] [Tantek Çelik] 🌱 I have long been a fan of @Foursquare.com and @Swarmapp.com, having created many venues, posted many tips, and (checks profile) over 45,000 checkins. I recently joined @happycow.net and before I start posting new vegan (friendly) venues or revie...
#
c​apjamesg
What about a PHP page that takes in an OSM resource, extracts the key data (opening hours, location, etc.), and marks it up with mf2?
#
c​apjamesg
I am not content with the way I do checkins right now. Breakfast and Coffee is much closer to the UX I want, but it is for community checkins and aggregating reviews.
#
sknebel
I'd say start with "how do I want them" instead of building random pieces that might or might not be useful
[Caleb_Hearth] joined the channel
#
[Caleb_Hearth]
#lazyweb a bit but are there parsing rules for pulling the u-photo out of a <picture> tag and/or best practices around tagging u-photo? i.e., does it make sense to tag all <source> tags, just the <img> tag, a specific <src> that might be better than the <img src>, etc.?
#
c​apjamesg
[KevinMarks] I want the Inbound Links panel to fall back to the Common Crawl link graph.
#
[tantek]
No special parsing/publishing rules for the picture element yet. I think we're still gathering real world experience with picture element publishing
#
c​apjamesg
The link txt file is 24 GB. Then I'd have to mung them into a JSON dict for fast querying. I assume there is no way I can load that without 24 GB+ RAM?
#
c​apjamesg
What can I do here? Shard the data by first / second / third letters then do a read for each request?
#
c​apjamesg
Ooh! Or a database!
#
[KevinMarks]
That feels like the kind of size where a document db might make sense, like AWS DynamoDB or Google Firestore. Or you could build it as a db cache over the text file if you don't mind the first hit being a grep of the text file.
#
[KevinMarks]
How many separate urls does it index? A regular sql db might work - then index size is what wants to be in ram.
#
[Caleb_Hearth]
↩️ I think I’ll pop it on <img> based on existing HTML semantics: alt, height, width, title, etc. will use the <img> for any <source> the browser selects.
#
[Caleb_Hearth]
↩️ Just means it’ll be picking a potentially too-large image I guess.
#
[tantek]
[Caleb_Hearth] that's probably fine. Did you check the mf2 issues to see if there was one about the picture element and prior discussions? Might also be better for #microformats unless you have a specific indieweb use case
#
c​apjamesg
Okay so I could handle 25GB on DynamoDB's free tier.
#
c​apjamesg
Could I just put these in a Postgres DB though?
[Jo] joined the channel
#
[KevinMarks]
You could, though I'm not sure about ram limits needed for that size
#
[KevinMarks]
A lookup by a single key seems like a good fit for the DynamoDB kind of document db. You could potentially stash several kinds of parsed preview in the 400kb record limit.
[snarfed] joined the channel
#
[snarfed]
[aciccarello] hmm! what's the URL for that log?
#
c​apjamesg
Firestore looks good too.
eitilt and btrem joined the channel
#
[aciccarello]
[snarfed] I get the error when trying to log in to https://fed.brid.gy/web-site with https://www.ciccarello.me/
#
[aciccarello]
This happens before any kind of indieauth flow client side
tei_ joined the channel
#
[snarfed]
Ahh ok, will look
jonnybarnes joined the channel
#
[aciccarello]
Thanks as always for the stellar support! snarfed++
#
Loqi
snarfed has 102 karma in this channel over the last year (157 in all channels)
#
[snarfed]
[aciccarello] welcome! looks like this is due to BF special casing and dropping the www subdomain. it does that first, so it's trying to fetch https://ciccarello.me/ , which serves a mismatched SSL cert for *.http://netlify.app
#
[aciccarello]
Okay, I'll try to see what's going on with that cert.
#
[snarfed]
I can also try to fix that and use www for IndieAuth, but I suspect there are other similar issues for sites that like the no-www fediverse @-@ identity, but don't actually serve on no-www
tei_, gRegor, vilhalmer and kushal joined the channel
#
[aciccarello]
I found where to update the certificate on netlify's site and it's working now. Thanks!
paulrobertlloyd joined the channel
#
paulrobertlloyd
👋 Am fixing Indiekit’s Micropub endpoint to better deal with update requests that result in no changes being made. This can happen for a number of reasons, such as when using a post editing interface and submitting the form without making any changes. What should the endpoint response be? Am thinking the same as a successful update request (200 OK), but with a message that says nothing was updated, for example: ‘Post at
#
paulrobertlloyd
https://website.example/my-great-post remains unchanged as no updates were made‘. Here’s the change I’m considering: https://github.com/getindiekit/indiekit/pull/641
#
[snarfed]
real creates/updates should return HTTP 201, right? https://micropub.spec.indieweb.org/#response
#
[snarfed]
for "no change," either 200 or 204 sounds ok
[tw2113_Slack_], [campegg], tei_1 and paulrobertlloyd joined the channel
#
paulrobertlloyd
Yeah, I was looking at 204 as an option. Maybe its a good choice as its distinct from the the other responses while still be reasonably accurate.
geoffo joined the channel
#
[aciccarello]
Hi paulrobertlloyd! I'm still looking at getting Indiekit up on my site. I've been playing around with it locally.
#
[aciccarello]
I'm almost done with the metaformats work on the node mf2 parser too.
paulrobertlloyd joined the channel
#
paulrobertlloyd
(Ooooh, but if you use 204, you can’t return a message (as no content!). Looks like 200 is the way to go)
#
paulrobertlloyd
(Or maybe I deal with 204 on consuming side of things… 🤔)
#
paulrobertlloyd
(Or maybe I deal with 204 on consuming side of things… more fiddling required! 🤔)
#
paulrobertlloyd
@aciccarello oh great news - was taking a look at the mf2 stuff last night, but decided I’ve got to stop distracting myself from fixing Indiekit’s syndication issues!
#
[tantek]
what is 204
#
Loqi
It looks like we don't have a page for "204" yet. Would you like to create it? (Or just say "204 is ____", a sentence describing the term)
#
[tantek]
might be worth documenting the exploration of 204 with respect to Micropub and any conclusions we reach when (not) to use it, etc.
tei_1 joined the channel
#
[aciccarello]
I reached out to the mf2utiljs library maintainer to see if they would be open to community involvement but haven't heard a response https://github.com/drivet/mf2utiljs/issues/1
#
[aciccarello]
Last night I was noticing some issues with the `wm` node package so I'm also trying to figure out how to move forward with that.
#
[aciccarello]
Too many things to think about 😅
paulrobertlloyd joined the channel
#
paulrobertlloyd
tantek good idea. interestingly, looking at https://indieweb.org/Micropub#Handling_a_micropub_request, I see that it says "If the update was successful and didn’t cause the content’s URL to change, return an empty HTTP 204 response". This contradicts the spec which says "the server MUST respond with 200 or 204, depending on whether the response body has content. No body is required in the response, but the response MAY conta
#
paulrobertlloyd
JSON object describing the changes that were made"
#
[tantek]
interesting. perhaps aaronpk can comment on the difference there
paulrobertlloyd joined the channel
#
paulrobertlloyd
what is 204
#
Loqi
204 is an HTTP status code used to indicate that a request has succeeded, but that the client doesn’t need to navigate away from its current page https://indieweb.org/204
#
paulrobertlloyd
☝️ added a page for HTTP 204, and added a section highlighting how the Micropub spec recommends using success status codes
#
paulrobertlloyd
Think I’m going to return a 200 with note saying nothing has changed, and file a bug that removes the assumption that a Micropub action response will always include JSON
#
paulrobertlloyd
(a bug against Indiekit)
geoffo and tei_ joined the channel
IWSlackGateway and tei_ joined the channel
#
capjamesg
Common Crawl doesn't have URL->URL links, only host->host and domain->domain.
[tantek] joined the channel
#
[tantek]
nice! bsky.link++
#
Loqi
bsky.link has 2 karma over the last year
[snarfed] and tei_ joined the channel