#dev 2024-12-26

2024-12-26 UTC
Hoinkas, MyNetAz and [mattl] joined the channel
#
[mattl]
Be sure to edit your fake wp-login.php to ask if the CEO of Automattic likes pizza
#
[tantek]
Anyone know an API to query a city name (plus state or zip etc) and get back a list of neighborhoods?
grufwub joined the channel
#
[mattl]
Maybe the phone company?
#
[tantek]
Was thinking maybe wikidata
#
[tantek]
Also doubt any phone company would handle neighborhoods for worldwide cities
#
GWG
[tantek]: Geonames?
#
GWG
It might do that
#
[tantek]
what is Geonames?
#
Loqi
It looks like we don't have a page for "Geonames" yet. Would you like to create it?_T (Or just say "Geonames is ____", a sentence describing the term)
MyNetAz, claudinec, Guest6, [KevinMarks], ttybitnik, bterry1 and nemonical joined the channel
#
GWG
Geonames is geonames.org
#
doesnm
too short?
#
GWG
Time limit I believe
#
GWG
I wasn't trying to define it
#
GWG
I would want to think more on a good description
[Joe_Crawford] and ttybitnik joined the channel
#
[tantek]
GWG I tried a trivial neighborhood search for SF ("Cole Valley") and it failed so no Geonames is not an answer to finding neighborhoods in cities
#
GWG
Okay
#
[tantek]
I decided to try the "obvious" thing and ask Google Search: how to find lists of neighborhoods in cities
#
GWG
And what did you find?
#
[tantek]
And in the fricking AI generated answer, long before anything useful in any "organic" results, it said: «... use online sources like Wikipedia's "Lists of neighborhoods by city" category»
#
[tantek]
When I tapped it, it gave me a link to https://en.m.wikipedia.org/wiki/Lists_of_neighborhoods_by_city which is more thorough than I would have expected!
#
superkuh
It blows my mind that people use html elements barely covered by late 2023 browser and pretend this is being accessible. re: popover.
[snarfed] joined the channel
#
[snarfed]
hmm. accessibility is different from compatibility, right?
#
superkuh
Accessibility without compatibility is neither.
#
superkuh
Supporting only modern browsers is like only having steps and no ramp.
#
superkuh
Sorry, gotta have a modern wheelchair that can climb stairs.
#
[tantek]
superkuh, is this related to someone's indieweb use of popover? I checked the past few days of this channel and didn't see any mention
#
superkuh
Just grumbling to myself over https://htmhell.dev/adventcalendar/2024/22/
#
superkuh
title is perfectly accessible for old browsers. It's only new ones that broke it.
#
[tantek]
Maybe write a short blog post about it? Backward compatibility sounds like a good technique to emphasize and it sounds like you've put some thought into this particular feature / set of interactions
#
[tantek]
Would make a good indieweb gift for today: how to you use the title attribute properly in 2024 and progressively enhance with popover
#
[tantek]
how to use*
#
superkuh
If I were to write such a thing it'd be a rant against rapid change. Because change is what causes the problem.
#
superkuh
alt -> title -> popover is just one instance.
#
[Joe_Crawford]
superkuh are you stuck on a machine you can't install a new browser on? is that why this has come up? I certainly have run into tricky browser issues for friends with very old (>20 year) hardware. Tricky things with SSL and such in particular. But in most cases more modern browsers based on newer runtimes are available.
#
superkuh
I do often use older machines and older OSes and older browsers. But I am not the only person. There are significantly more people using old computers and old browsers than JS dependent statistics would suggest.
#
[Joe_Crawford]
Ok. Beyond the rant, is there something dev can assist you with? I'm not sure "I'm angry and I disagree with a thing on the internet" is a great use of this helpful space.
#
superkuh
You're right. I probably don't fit in here.
superkuh left the channel
#
[Joe_Crawford]
Sorry, but I am *certain* that's not what I said or indicated. We share this space, to try to help each other accomplish things and learn. When we lose sight of that, or a particular problem, it is easy to get mired in anger at all wrong with the world or all the things we disagree with. That would be some other space.
#
carrvo[d]
Has the AI generated search results been useful for people? I keep finding that either there is no link for me to save so I can refer to the answer later or that it shows me part of the content with a "click for more" that has none of the content in the preview.
#
carrvo[d]
Hmm. Maybe that would be better asked in a different channel.
#
[Joe_Crawford]
If that's a q about Google's ai-generated summations, I have not found them more useful and I use DuckDuckGo slightly more. And add `-ai` when I remember in Google.
#
[Joe_Crawford]
And [tantek] your question about neighborhoods in cities and an api there are a number of apis for location. Mostly what I've dealt with is Google and Bing's Maps autocomplete address apis which is about specific address. But there's interesting neighborhood geocoding in the location data they provide. I'd want to see example queries of what you hope to put in and what you expect out before commenting on what's possible.
#
[Joe_Crawford]
I've also done work identifying proper postal address and zip and zip+4 but I can't remember what endpoint we dealt with for that. But again, that wasn't exploratory as much as it was laser targeted on a correct final address format.
#
[tantek]
Thanks for the follow up [Joe_Crawford]
#
[tantek]
Here's a more precise query use case. In: name of a city, optional state, country. Out: return largest city that matches in params (canonical city name, state, country) and a flat list of the neighborhoods in that city
#
[tantek]
I think that would work for 95% of the cities I visit / have visited / will visit
#
[tantek]
There are some interesting 1 out of ~20 exceptions like "New York city" would return a VERY long list of mini/microhoods per the Wikipedia page
#
[tantek]
But I’m willing to punt on that til I plan my next trip there
#
[tantek]
San Diego is also more interesting from a hierarchy of neighborhoods perspective than I would have guessed from my personal experiences
#
[tantek]
E.g. the alphabetical list is both long and has bits of hierarchy https://en.m.wikipedia.org/wiki/List_of_communities_and_neighborhoods_of_San_Diego
#
capjamesg[d]
aaronpk I'm having a bit of trouble understanding webauthn.
#
capjamesg[d]
I don't understand how my app should know what to use as an ID to look up the credentials that authorize a user at the /generate-authentication-options stage.
#
capjamesg[d]
Wait, it looks like the ID is optional.
#
[Joe_Crawford]
Most metros over a million people are going to have vagaries around naming and boundaries. In part because cities are living things. Looking at Google’s apis their places api does imply you can narrow to places but it’s really about finding businesses and entities that are that size. Library. Post office, park. You showcase a Wikipedia page and they do have an api which could be narrowed to location to find parallel “list of
#
[Joe_Crawford]
communities and neighborhoods”
#
[Joe_Crawford]
Very neat problem, and I understand why it doesn’t exist as such. Search is tuned to a purpose, “find me dog groomers in SoHo” not “what are the neighborhoods in london?” … it’s a search that’s in the middle, before you get specific.
sebbu2 joined the channel
#
[tantek]
Right! It's a search that's in the middle but also how one could present a plain text hierarchy to explore and learn "chunks" of a city, which matches up well IMO how (most?) humans learn and store and retrieve information (chunking)
#
[tantek]
And tying it back to my personal indieweb usecase, for now I'll use Wikipedia manually to look up neighborhoods for the subheadings (for neighborhood clusterings) for my city recommendations page(s)
gRegor and CRISPR joined the channel
#
capjamesg[d]
aaronpk Passkeys are really amazing!
[morganm] joined the channel
#
[morganm]
Im really trying to wrap my head around this https://utopia.fyi/
#
[morganm]
Fluid typography and spacing seems like such a better solution but my brain is not immediately getting it
CRISPR joined the channel
#
aaronpk
capjamesg[d]: yeah! did you get it to work?
#
_pi_r2_0[d]
huge fan of web passkeys
#
capjamesg[d]
aaronpk Yes!
#
capjamesg[d]
It took a few hours to get my head around it.
#
capjamesg[d]
But now I can use Touch ID to auth!
#
aaronpk
amazing!
#
capjamesg[d]
Is this the right UX?
#
capjamesg[d]
The username/password are not necessary for passkeys.
#
capjamesg[d]
Or should I have a landing login page that has the two buttons, then have a separate page for username/password?
#
_pi_r2_0[d]
I would consider login "tabs" to indicate there are 2 paths early on?
#
aaronpk
that's a good question... i think it would be confusing to see a password box along with the passkey button, but i'm not sure if there is a standard for that yet
CRISPR joined the channel
#
[tantek]
Worth some experimenting and user testing