2018-10-29 UTC
[jgmac1106], renem, Ruxton, snarfed, cweiske, KartikPrabhu, [tantek], [tonz], ben_thatmustbeme, swentel, [Rose] and [eddie] joined the channel
# 10:56 [eddie] It’s trying to parse information from your Micropub endpoints first syndication target
# 10:56 [eddie] and it’s failing. It’s expecting a JSON string, which seems odd, I think
# 10:58 [eddie] I do remember I think Known Syndication targets were a bit funky
# 10:59 [eddie] I’ll need to look through my code see if I can figure out what was wrong with them and send that info to swentel
# 10:59 cweiske ? I did not see this error. slack<->irc sync problem?
[Rose] joined the channel
# 11:04 [eddie] I found my commit where I fixed the syndication targets for Known but alas I didn’t make many notes about why I made the changes I made
# 11:04 Loqi pasteddie has -1 karma over the last year
[kevinmarks] joined the channel
# 11:06 [eddie] Ohhh I think swentel is expecting a jf2 object for every syndication target
# 11:06 [eddie] but sometimes it’s just an id string (like in Known)
# 11:08 [eddie] What I ended up doing is they put the service then “::” then the service username
# 11:09 [eddie] if it fails, then I split on “::” if it exists and I can then use the service name and username to make a nicer looking syndication target
# 11:11 swentel Now I show an error message that it couldn't parse
# 11:11 swentel I did that because at some point I switch the storage
# 11:11 swentel but yeah, if known sends it differently, than it needs a fix
# 11:12 [eddie] Spec gives two options: a UID known by the Micropub endpoint or a jf2 object to provide a nicer display
# 11:13 [eddie] Most people do jf2 I think because it looks nicer
# 11:14 sknebel [eddie]: huh? it has to be a json with name + uid afaik
# 11:15 sknebel "At a minimum, a syndication target MUST have a uid and human-readable name property. "
# 11:16 sknebel yeah, that feature might very well be older than the spec in Known
Kongaloosh joined the channel
# 11:17 [kevinmarks] Known was the first one to support syndication, but took a while to update
# 11:21 Loqi [Zegnat] verify-me-locally: A spin-off of @kevinmarks’ verify-me without external dependencies.
# 11:22 Zegnat It probably needs updating to the new web extensions?
oodani joined the channel
# 11:22 Zegnat I'm not against moving, but it is a bit stale at the moment
# 11:22 [kevinmarks] the original chrome extension is now banned due to no privacy statement, so yours would be a big improvement
# 11:23 [eddie] 😕 Well now I can’t figure out what it was that was wrong with Known in my code
# 11:23 [kevinmarks] whats it like wiht my hosted known? i think that is still running an older one that confuses some clients
# 11:24 Zegnat I think it should be able to run the same extension code on Chrome and Firefox, just need to find the time to update it to the proper stuff... Did you want this done before the Mastodon release, [kevinmarks] ?
# 11:26 Loqi [indieweb] verify-me: A plugin that checks all rel="me" links are reciprocal, doing distributed verification
# 11:26 [kevinmarks] I expect we'll see more discussion about it this week, so would be good to have it ready for HN etc
jimpick joined the channel
# 11:31 [eddie] ahh swentel and sknebel: yeah they are doing wrong things
# 11:32 [eddie] But the syndication target endpoint yep, you have to ask for json
# 11:32 [eddie] I’ll create an issue in Known for them to just always return json
# 11:33 swentel well, if the spec allows for both, that's fine I guess for them
# 11:33 [eddie] I think the official spec requires the json object
# 11:36 [eddie] Yeah, swentel I confirmed the spec requires the json structure
jgmac1106 and [jgmac1106] joined the channel
# 12:13 Loqi [EdwardHinkle] #2001 [MicroPub] syndication targets should return both UID and name from the q=config micropub endpoint
# 12:13 [eddie] So….. i’m guessing we shouldn’t expect for it to be fixed
# 12:15 [eddie] Even worse, it’s fixed in a random branch in March
# 12:16 [eddie] It looks like they were GOING to move it out of core
# 12:17 [eddie] but that effort seems to have been abandoned? Because the issue regarding moving it out of core was labeled as “not right now”
# 12:17 [eddie] Which is really unfortunate as that means Micropub would no longer have native support within Known
# 12:17 Loqi known has -1 karma in this channel over the last year (0 in all channels)
ludovicchabant and [Vincent] joined the channel
# 13:00 [eddie] So I added a dark mode to my website for macOS Mojave users with the Safari Tech Preview (and eventually after the new Safari version, any Mojave user with dark mode). The biggest question is, should I provide an actual “dark/light” mode switcher to allow someone to switch between themes?
# 13:00 [eddie] Because someone MAY prefer to use a dark version of my website even if they don’t have macOS Mojave or they may not use Dark Mode
# 13:01 [eddie] I’m thinking I will, but that leads to the following question. Do I add a query parameter to every page of my website? ?theme=dark and alter the display based on that. OR do I just provide a JS switcher
# 13:02 [eddie] I can do it easily either way because it’s really just adding a css class to the page body
# 13:02 [eddie] but I don’t really like the idea of altering my url for a theme
# 13:03 [eddie] I guess I could just do cookies, which could work on both sides?
# 13:03 [eddie] When you are on the page if you click the theme switcher the JS will add a theme cookie and change the css class on the body
# 13:04 [eddie] That’s probably the way to go as the more I think about it, I really don’t want to mess with my url structure for theming
# 13:12 sknebel seems like a fair use case for cookie/localstorage + JS
eli_oat joined the channel
# 13:14 [eddie] [Vincent] So you are saying you would consider dark mode (due to accessibility POV) a basic user need, thus you would shy away from js?
# 13:14 [eddie] I definitely see Dark Mode as useful for accessibility
# 13:15 [eddie] and I definitely think JS should be progressive enhancement
# 13:15 [eddie] I guess I’m just not sure where I fall on Dark Mode being need or enhancement
# 13:15 aaronpk [eddie]: id set a cookie to toggle dark mode. You can do it from JavaScript or server side
# 13:15 [eddie] So if <no script> make the toggle button a POST form?
# 13:15 [eddie] that would change the cookie and redirect back to the existing page?
# 13:16 [eddie] If js it intercepts and just changes on the fly and updates the cookie?
# 13:17 [Vincent] [eddie] yeah I would these days. It’s amazing how many visual impairments are affected by it. It’s on my backlog for my blog, once I find time
# 13:19 [eddie] Interesting. I have 0 visual impairments (besides being near-sighted) so I’m not as familiar with how dark mode helps out
# 13:19 [eddie] I hear people mention it, but don’t actually know any specifics, etc
# 13:21 sknebel it's in a "resolved" section for things that are in spec
# 13:21 sknebel I guess we could put links to the spec sections and put the old text in detail-blocks
# 13:22 sknebel (I think I went through last year some point and just sorted them that way, but didn't go further than that)
# 13:22 sknebel careful with server-side style changes and caching tho :D
# 13:23 petermolnar re dark mode; I see it' possible to use it with a media query, but I keep wondering how it could be triggered by hand as well. Currently I have a theme switcher which either turns a light-override set of CSS on or off, but if I want to support automatic light/dark mode, I need to figure a way to trigger it with JS as well, if needed. Anyone aware of any solution for it?
# 13:24 sknebel you can enable/disable CSS in JS by turning on/off the link tags
# 13:25 [eddie] petermolnar I currently have my light mode as default
# 13:25 sknebel you can put media queries in the link tag AFAIK, and can remove the query from the link tag?
# 13:26 [eddie] My goal is to basically have a set of css (the dark mode css) that is listed both under the css query AND a css class
# 13:26 [eddie] so I can trigger dark mode by adding a dark-mode class to the body
# 13:26 petermolnar ok, I'll rephrase the question: can JS detect light and dark mode preferred? If yes, how?
# 13:29 [eddie] window.matchMedia(“(prefers-color-scheme: dark)“).matches returned true when I was in dark mode
# 13:30 sknebel aaronpk: webmention.io uses xray, right? do you know off-hand if it supports any of the "remote yes" rsvp proposals?
# 13:31 [Vincent] [eddie] for context, it’s usually helpful for users with dyslexia, or eye problems such as Usher syndrome.
# 13:32 [Vincent] about 50% of the population have some eye condition that makes black text against white be a problem in some way
[Rose] joined the channel
# 13:34 [Rose] A note: I, and several people I know with mild astigmatisms, don't find it to be too much of a problem. But accessibility is a good thing regardless of course.
# 13:35 [Rose] (I actually live in dark mode most of the time, Slack just likes to burn my retinas for me)
# 13:35 [Vincent] lol ditto. And I have 20/20 vision
# 13:35 [Vincent] *curses slack*
# 13:36 [Rose] With contact lenses or glasses my vision is excellent (better than 20/20 one optician said), though of course tiredness plays a role
[kevinmarks] joined the channel
# 13:43 [kevinmarks] Does dark mode effectively stop sites doing the stupid low contrast thing?
# 13:44 [Rose] Light mode is light, dark menu, dark mode is dark
# 14:00 [Vincent] @petermolnar I see black background, white text.
# 14:01 [Vincent] ah wait. I’m on dark mode. my bad
# 14:01 aaronpk I see light text on dark, but my mac doesn't support dark mode yet
# 14:03 petermolnar aaronpk: yep, that's the default, clicking on the contrast icon in the toolbar at the top switches to light
# 14:03 petermolnar in theory, I added a line, that should trigger the light mode when detected
# 14:03 petermolnar unless there's already a preference set, hence the clear localstorage part
# 14:03 [Vincent] Switched to light mode, cleared cache. Reloaded page. I still see dark mode.
# 14:05 [Vincent] Apparently Safari 68 supports dark mode
# 14:18 [Vincent] Dark mode demo. Safari 68.
snarfed joined the channel
[kevinmarks], eli_oat, [schmarty] and benwerd joined the channel
# 16:23 [schmarty] lol my site hasn't been updating for a week and i just noticed.
[eddie] joined the channel
# 16:24 [schmarty] note to self: don't blindly re-fetch a bunch of webmention data and just assume that jekyll can consume it before embarking on 2 days of travel and three days of sickness.
jgmac1106 joined the channel
# 16:25 [schmarty] is so close to feature parity with the new hugo templates for his site.
# 16:25 [schmarty] looks like a couple of swarm posts got flipped in time, also.
# 16:27 [eddie] !tell aaronpk In order for Compass’ Web Hooks to run, does it require the background process to run? because I’m not seeing the pings on my server. But I haven’t run the background process, so I’m wondering if that’s what is missing
# 16:27 Loqi Ok, I'll tell them that when I see them next
# 16:28 [eddie] schmarty the Swarm stuff is probably because a couple days ago OYS had API denial issues from Foursquare
[jgmac1106] joined the channel
# 16:30 [schmarty] these posts went through before that. the ordering problem is from a "safety feature" on my micropub server where i decided never to trust incoming publish dates and times. :}
chrisaldrich joined the channel
# 16:33 [schmarty] oh, nvm, they seem to have come through a couple of days late, so it's a combination of those issues. :}
swentel, snarfed, [chrisaldrich], [kevinmarks], eli_oat and gRegorLove joined the channel
# 17:59 aaronpk [eddie] yeah you need to run the background script for the trip stuff and web hooks to run
# 17:59 Loqi aaronpk: [eddie] left you a message 1 hour, 31 minutes ago: In order for Compass’ Web Hooks to run, does it require the background process to run? because I’m not seeing the pings on my server. But I haven’t run the background process, so I’m wondering if that’s what is missing
# 17:59 aaronpk I don't like relying on the HTTP connection from the phone to also do long-running stuff like that
[eddie] joined the channel
# 18:02 [eddie] Gotcha. I intentionally don't have the background process because the trip stuff doesn't use a media endpoint yet it still just sends it in that multipart that breaks on my Micropub endpoint. haha
# 18:02 [eddie] If I let the background process run and all the trips are "sent" is there anyway to retrieve them?
# 18:03 aaronpk the trips are kind weird, and I probably need to redo how it's handled completely
# 18:03 [eddie] haha I basically have it not running in the hope that when I get Compass to send the geodata via media endpoint, I can turn it on and all my trips will send.
# 18:03 aaronpk really a trip is just a few additional properties on the start and end location in the regular collection of locations
# 18:04 aaronpk when the HTTP endpoint recognizes that a trip has ended, it queues a job to process it
# 18:04 [eddie] So I guess if I wanted to "query the trips" from the past, I could just scrape each day and look for the start and end parameters
# 18:04 aaronpk so depending on what you've configured for your job queue, you might have a bunch of jobs queued up already now. but if not, the trip data is still in there but you'd have to iterate over all the records to find them
# 18:05 aaronpk I probably should have stored the trip start/end markers in a separate database table so they'd be easier to find :sigh:
# 18:05 [eddie] Gotcha. I *think* the jobs are in the queue because when I ran the background worker for a minute awhile ago it started sending stuff
# 18:05 [eddie] So I've left the background worker off so my queue builds up
# 18:06 [eddie] haha maybe not a good idea though because.... who knows how many queue items have piled up
# 18:06 [eddie] I'm guessing it's probably just easier for me to dump the queue, turn on the background worker and then fetch the past trips by iterating over the content in the future
# 18:12 Loqi Ok, I'll tell them that when I see them next
snarfed and tonz joined the channel
# 20:02 swentel hmm the scope for deleting an item from a timeline, is that channels then ?
# 20:05 aaronpk good question, I can't remember what I did on aperture
# 20:28 Loqi [federicoculloca] #5485 Added rel="me" to website link on user profile
[Rose] and [jgmac1106] joined the channel
# 21:49 sknebel there's to e-contents, the outer one includes way to much
# 21:52 [jgmac1106] Weird he would get two e-contents... Using Independent Publisher... Must be another bug. I will test when I have a chance
[kevinmarks], snarfed, benwerd_, benwerd, [tantek] and chrisaldrich joined the channel