#dev 2025-07-04

2025-07-04 UTC
grufwub and troojg joined the channel
#
Kolev
I don't see a page on the wiki for handwritten HTML.
thegreekgeek_ joined the channel
#
[tantek]
I think i need to see the video of someone handwriting HTML with a stylus on a tablet and having it OCR correctly
#
[tantek]
Or did you mean raw coding?
#
Kolev
[tantek], raw coding.
#
[tantek]
Though now that we've brought it up, I expect someone at an indiewebcamp will demonstrate handwritten HTML on their iPad
#
Kolev
Scary.
KE0VVT joined the channel
#
[tantek]
given that we've gotten handtyped notes posted from an Indiewebcamp (2023 SD), it's not a stretch
#
[0x3b0b]
Some coworkers and I, cleaning out the desk of a coworker who had left the company some time before, found a spiral-bound notebook full of PHP...in cursive.
bugliker0 joined the channel
#
KE0VVT
[0x3b0b]: Wow!
angelo, geoffo, thegreekgeek__ and bugliker0 joined the channel
#
[mattl]
Someone used to fax me handwritten updates to http://gnu.org
bugliker04, jak2k and [pfefferle] joined the channel
jak2k and jak2k1 joined the channel
#
capjamesg
doesnm I am using "Intl.DateTimeFormat().resolvedOptions().timeZone" to get the user's timezone.
#
doesnm
it showed Atlantic/Reykjavik
#
doesnm
maybe rfp trick?
#
capjamesg
Interesting.
#
capjamesg
I thought this was the best way to get the user's timezone...
#
doesnm
maybe for non-rfp it working correctly :)
#
capjamesg
No 😭
#
capjamesg
I have only tested AP support on half-a-dozen Mastodon accounts. More testing is definitely needed.
#
capjamesg
Is the account running Mastodon or another software (if you know)?
#
doesnm
@capjamesg GoToSocial
#
doesnm
found artemis email in spam folder. Damn email
jak2k joined the channel
#
aaronpk
TIL about that browser API
#
aaronpk
I always thought the browsers didn't want to return the names timezone for the user because it is a privacy violation, the named timezone gives much more of a clue about location
#
doesnm
aaronpk: browser itself is a privacy violation. every js value can be used for fingerprinting
#
capjamesg
Interesting. On reflection I don't technically need the user's timezone, just their UTC offset. But I am unsure if there is an intuitive way to ask for only that information.
#
capjamesg
Hm and this makes me think how the system works if a user is in a timezone that is offset by a minute value too (i.e. X:30).
#
capjamesg
The reader runs polling at midnight in a user's timezone and runs once per hour. I either need to update the script to do a check once every 30 mins, or round the minute value.
#
aaronpk
the Date() API returns the local time, so you can use that to get the UTC offset
#
capjamesg
The problem is more of UX.
#
capjamesg
If I only save the UTC offset, I can't map it back to a timezone in a select menu.
ttybitnik joined the channel
#
aaronpk
yeah, I decided to store only the UTC offset for my posts, since that's the "real" data anyway
#
aaronpk
named timezones can change over time, so you always need a full tzdb to go from named timezone to an actual timestamp
#
doesnm
does artemis really suitable for following some activitypub users if they are write microblog posts?
#
capjamesg
It's a very early stage feature, but yes.
#
capjamesg
(At least eventually!)
#
capjamesg
I am following a few accounts on Mastodon with Artemis right now.
#
capjamesg
But, of note, it doesn't send an ActivityPub follow or anything.
#
doesnm
i'm tested with gts and mitra
#
doesnm
both are empty
#
doesnm
@capjamesg why? you can avoid polling with activitypub
[schmarty] joined the channel
#
[schmarty]
doesnm: "avoid polling with ActivityPub" - that's a lot of complexity to avoid polling each inbox once per day (Artemis only updates once per day).
#
[schmarty]
*Polling each outbox
#
capjamesg
doesnm Can you share a URL of a feed that's not working?
#
capjamesg
I think I'm going to need to write tests for all the most common AP implementations.
#
doesnm
@darkcat09@gts.dc09.ru
#
doesnm
and @copypasta@mitra.ernesto-copypasta.cc
#
capjamesg
Thank you! I will take a look at these at the weekend.
balintm joined the channel
#
balintm
hey all! i'm playing with the idea of implementing POSSE for my art from my site to fedi by leveraging oembed/opengraph/json-ld rich cards in Mastodon clients. does anyone here have experience with something like this? basically instead of rehosting images as attachments to fedi posts i'm thinking i could post a link and the rich embed would take care of displaying the artwork — assuming there's a way to ensure that the image is full size and
#
balintm
the correct aspect ratio without any cropping.
#
balintm
*a reliable way too. i might have to do my own research to see whether at least the most popular clients would behave the way i would expect them to consistently.
bugliker05 joined the channel
#
[tantek]
great question. no idea what conventions Mastodon clients follow for showing link previews
#
[tantek]
what is link preview
#
Loqi
A link preview is what posts show about one or more embedded links, e.g https://indieweb.org/link_preview
#
balintm
the official ones support all 3 mentioned i think, possibly to varying degrees
#
doesnm
@capjamesg did you used user-agent on fetching feeds?
#
capjamesg
doesnm Yes.
#
doesnm
huh, i can't even use gts provided rss
#
capjamesg
Do you have a link?
#
doesnm
preview is empty
[snarfed] joined the channel
#
[snarfed]
capjamesg congratulations and condolences on officially joining the fediverse/AP interop debugging party
#
[snarfed]
"you can check out but you can never leave" 😭
#
capjamesg
doesnm++
#
Loqi
doesnm has 7 karma in this channel over the last year (13 in all channels)
#
capjamesg
When Artemis polls feeds, it makes a HEAD request first.
#
capjamesg
I just learned that the value of a requests.get() call in Python evaluates to False if the request was not successful.
#
capjamesg
My code was escaping because the HEAD request was returning a 405.
#
capjamesg
This, ironically, is exactly the same issue that was breaking another feed I wanted to subscribe to as well.
troojg joined the channel
#
capjamesg
I will have a fix live in the next few hours.
#
[snarfed]
ballintm the short answer is, link previews aren't very consistent across the fediverse, and only really show thumbnails at best on Mastodon, and probably most other servers. if you're an artist hoping for a good way to show your art, link previews probably aren't it
#
balintm
thanks snarfed++, about what i expected but i was hoping there'd be a magical solution out there to make it consistent somehow.
#
balintm
snarfed++
#
Loqi
snarfed has 37 karma in this channel over the last year (72 in all channels)
#
capjamesg
snarfed Yes 😂
#
capjamesg
Does the party at least have cake?
#
balintm
looking at some art related hashtags on mastodon i did run into a few uncropped artworks with a portrait orientation, but they likely look different on other clients
#
capjamesg
doesnm The AP feed you tried was not working because the content type was "ld+json" and I had only cased for "activity+json".
#
capjamesg
conneg--
#
Loqi
conneg has -26 karma in this channel over the last year (-29 in all channels)
#
capjamesg
[snarfed]++
#
Loqi
[snarfed] has 38 karma in this channel over the last year (73 in all channels)
#
capjamesg
Thank you, this is exactly what I needed to read.
bugliker0 joined the channel
#
[tantek]
conneg--
#
Loqi
conneg has -27 karma in this channel over the last year (-30 in all channels)
#
doesnm
wow, -27
#
[KevinMarks]
Not sure if this belongs in #indieweb-dev or #indieweb-random https://bsky.app/profile/simonwillison.net/post/3lt5rwrjwbk2v
balintm joined the channel
#
capjamesg
I didn't used to get the - for conneg, until I started running into content negotiation issues 🙃
#
capjamesg
[KevinMarks] Your comment made me lol haha
#
[snarfed]
oh funny there's at least one older separate implementation of that
#
[KevinMarks]
That's from the eevee post I linked earlier
#
[snarfed]
argh wrong clipboard paste
#
[snarfed]
those libraries are hilarious
barnaby joined the channel
#
[KevinMarks]
There was one before that would search stack overflow and return the highest ranked code block in the answers
bugliker02 joined the channel
#
capjamesg
Wow haha
[kimberlyhirsh] joined the channel
#
[kimberlyhirsh]
Y'all I remember years ago reading somebody experimenting with microformats in just HTML to set up a blog but I can't remember who or where. Does anybody else remember this or even have a link?
#
[snarfed]
people do that very regularly around here! lots of those kinds of writeups pass through over time
thegreekgeek_ joined the channel
#
doesnm
am i only person which don't have blog?
#
doesnm
at least i have h-card...
barnabywalters joined the channel
#
[KevinMarks]
What are you using for your blog [kimberlyhirsh]?
Pixi, jak2k, troojg, barnaby and balintm joined the channel
#
[tantek]
doesnm, I think plenty of folks have contact card or portfolio personal sites
ttybitnik and barnaby joined the channel
#
[mattl]
I have a blog but don’t post
Pixi and barnaby joined the channel
#
[tantek]
I've had days/months/years like that
troojg joined the channel
#
[mattl]
Yeah, I posted a fair bit for a little while. I’ll get back to it soon enough.
[morganm] and troojg joined the channel