#dev 2022-06-30

2022-06-30 UTC
jacky, geoffo_, gxt and nertzy joined the channel
#
Loqi
[gRegorLove] #101 Update validate-h-card
jacky, geoffo, strugee, [jamesg483] and gxt joined the channel
#
@DavidDarnes
This was a nice problem to have. Had to fix my webmention comments on my posts because people were sharing useful links. All fixed now: https://darn.es/you-should-add-a-generator-tag-to-your-eleventy-site/#comments
(twitter.com/_/status/1542419470194442242)
#
IWDiscordGateway
<capjamesg> KevinMarks I already expose last_crawled dates on IndieWeb search "search for "last_crawled" in this JSON file:
#
IWDiscordGateway
<capjamesg> To access, append &format=results_page_json to the end of any query.
#
IWDiscordGateway
<capjamesg> I'm not sure if this data is fully backfilled.
#
IWDiscordGateway
<capjamesg> Is a first_crawled helpful?
angelo, jeremycherfas, [grantcodes], gRegor, tetov-irc, mro, nertzy, jacky and [snarfed] joined the channel
#
[snarfed]
capjamesg I use https://cloud.google.com/logging/ to capture Bridgy's logs, but there are lots of similar monitoring/observability tools. New Relic, Datadog, Splunk, Honeycomb, etc
#
[snarfed]
a good monitoring tool is worth its weight in gold
geoffo and jacky joined the channel
#
IWDiscordGateway
<capjamesg> snarfed Do you serve those logs from the brid.gy web interface (i.e. the ones that shows whether retrieving a Tweet was successful)?
geoffo joined the channel
jacky joined the channel
#
IWDiscordGateway
<capjamesg> Fascinating! That might solve this issue for me!
#
IWDiscordGateway
<capjamesg> How do you store logs in terms of what goes into each file?
#
[snarfed]
it's a service, it doesn't use a file abstraction, but log entries come in many different types and have different metadata attached - project, module, URL for HTTP requests, module and line number for python log message, etc. you can query by those
#
[snarfed]
all of these tools are similar
#
[snarfed]
(in Python specifically, GCP attaches a `logging.Handler` that bundles up log messages and sends them to the GCP Logging service over the network to be stored)
gRegor, geoffo, AramZS and [hollie] joined the channel
#
IWDiscordGateway
<capjamesg> [snarfed] Wow. This makes logging so much easier.
#
[snarfed]
capjamesg++
#
Loqi
capjamesg has 35 karma in this channel over the last year (86 in all channels)
#
IWDiscordGateway
<capjamesg> Context: I'm planning on making IndieWeb Search crawl logs public.
jacky and AramZS joined the channel
#
[snarfed]
Ahhhh interesting!
#
IWDiscordGateway
<capjamesg> [snarfed]
#
IWDiscordGateway
<capjamesg> [snarfed] Are POST requests rate limited?
#
IWDiscordGateway
<capjamesg> Never mind. The issue I was having was caused by instantiating the logger too many times.
#
IWDiscordGateway
<capjamesg> This is going to be really difficult...
#
IWDiscordGateway
<capjamesg> I have a system through which I can query a domain and return logs. But, it takes 7 seconds to retrieve 200 lines of logs from Google Cloud.
#
[snarfed]
capjamesg yup, latency can vary widely. the big thing I did to improve that was a narrow timestamp window
#
[KevinMarks]
Another thing to look at for performance logging is honeycomb.io
AramZS joined the channel
jacky and gxt joined the channel
#
gRegor
neat, indieweb specs in spambot names
#
[tantek]
Is this webmention spam? 💁‍♂️🦋
#
gRegor
Maybe not spam bot, looks like a twitter account to test gatsby webmention, though the profile URL doesn't work now. https://twitter.com/gtsb_webmention
#
[tantek]
yeah I noticed that too. also been inactive since 2020
#
IWDiscordGateway
<capjamesg> "Is this webmention spam?" 😂
#
IWDiscordGateway
<capjamesg> [snarfed] Thank you for sharing!
#
IWDiscordGateway
<capjamesg> Based on my intended use case, it might be quite difficult to work with GCP.
#
IWDiscordGateway
<capjamesg> (i.e. see all crawl logs for a domain in the last three months)
#
IWDiscordGateway
<capjamesg> The alternative is for me to store them locally.
#
IWDiscordGateway
<capjamesg> But that limits my capacity to search them without starting an ELK sort of thing 😂
#
[snarfed]
understood! lots of other alternatives too, mentioned above
#
gRegor
Thanks for the review, jacky. Updated https://github.com/indieweb/indiewebify-me/pull/101. Think someone with write access also needs to make an approving review, then it can be merged.
#
Loqi
[gRegorLove] #101 Update validate-h-card
#
gRegor
Soon I want to get back to the migration from Silex (no longer supported) to symofoy/flex. I think that will make the code a lot easier, plus Twig templates.
#
gRegor
*symfony/flex
#
gRegor
Heh, started on that for the 2019 IndieWeb Challenge. Some things happened since then.
#
IWDiscordGateway
<capjamesg> Has anyone played around with fly.io?
#
[schmarty]
i just migrated a Rails app to fly.io. i also used to use fly.io as a custom domain proxy in front of a glitch.com app (they have since made custom domains a part of glitch so i dropped that)
#
[tantek]
gRegor I'm taking a look at that indiewebify pr. the whitespace changes at the same time as code changes is making it harder 😛
#
gRegor
Thanks. There's a setting at the top of the Files tab to ignore whitespace
#
gRegor
*Files Changed tab
#
gRegor
Or I think query string ?w=1 does it
#
[tantek]
there's Hide/Show whitespace but not ignore
#
gRegor
Sorry, hide is what I meant
#
[tantek]
reviewed. is that enough for you to move forward with it?
#
gRegor
I think so. If it looks good it can be merged and I think it deploys
#
gRegor
Just saw your comment. Want me to work on some tests first?
#
gRegor
I tried it with a handful of regulars sites. Not sure I've ever actually run the indiewebify-me test suite though, haha
#
[tantek]
I think the key is to have tests that exercise each of the if/elseif/else clauses that you changed
#
gRegor
phpunit 4.8.7, ouch
#
[tantek]
e.g. a site with only one h-card, not representative
#
gRegor
they're on phpunit 9 now XD
#
[tantek]
a site with a representative h-card
#
[tantek]
a site with multiple h-cards, none representative
#
gRegor
makes sense
#
[tantek]
a site with multiple h-cards, with one representative
#
[tantek]
that way you can test to see if you're seeing the expected messages that you wrote code for for each of those cases
#
gRegor
Yeah, I tested on my copy with the links in the first post for those scenarios, but would be good to have them in the bundled tests
#
[tantek]
my guess is you can find most of those examples among our existing indieweb sites
tetov-irc and AramZS joined the channel