#dev 2019-04-19

2019-04-19 UTC
[tantek] joined the channel
#
[tantek]
huh no. Wonder how long. Microblog probably knows
#
Loqi
[tantek]: snarfed left you a message 2 hours, 35 minutes ago: hi! just fyi your atom feed has been 500ing for a while. intentional? http://tantek.com/updates.atom
#
GWG
If I am reading the Microsub spec correctly, like Micropub, it supports json and form encoded information.
#
GWG
Is anyone doing json encoded, because the Yarns code isn't and seems to work with everything
[Michael_Beckwit, jjuran and eli_oat joined the channel
#
aaronpk
GWG: what do you mean? In micropub, all requests are regular form encoded post requests and all responses are JSON
jjuran, iasai, [tantek], [eddie] and [Michael_Beckwit joined the channel
#
GWG
aaronpk, Misread it. It said must not
#
GWG
I was tired
#
GWG
Will read more closely
ingoogni, KartikPrabhu, gRegorLove_, raucao, tomasparks, [jgmac1106], iasai, [frank] and [adamprocter] joined the channel; mblaney left the channel
#
[adamprocter]
Thanks I’ll have a think. But one of the reasons to use vuex store was so data can be everywhere the store just talks to pouchdb
eli_oat and ingoogni joined the channel
#
[jgmac1106]
if you are publishing a collection but every entry is by the same author do you display it in each h-entry?
#
aaronpk
Sounds like a subjective design decision
#
[jgmac1106]
thx...making a twitter moment waaay easier than making a collection of notes...
#
GWG
I am wondering if I can help get Yarns Microsub 1.0 ready for Summit
#
GWG
That would be a great demo
#
[jgmac1106]
what is the difference between rel="permalink" and rel="canonical"
snarfed, [schmarty], [Michael_Beckwit and jackjamieson joined the channel
#
jackjamieson
GWG: I think Yarns 1.0 for summit is doable, and would be great
#
GWG
Exactly
stevestreza, snarfed, eli_oat, [Michael_Beckwit, eli_oat1, calumryan, gRegorLove_, [eddie], [tantek], [schmarty], chrisaldrich, KartikPrabhu, iasai, ingoogni and [cleverdevil] joined the channel
#
[cleverdevil]
Hmm... I am wanting to put a toggle button on my website to allow people to flip between "light mode" and "dark mode."
#
[cleverdevil]
I am using "@media (prefers-color-scheme: dark)" in a CSS file to detect dark mode preference from the OS.
#
[cleverdevil]
Does anyone know if you can manually set this preference or override it?
#
[cleverdevil]
Or am I better off doing some sort of JavaScript-fu to not include the "dark.css" resource?
snarfed joined the channel
#
aaronpk
whoa github added a "social preview" section to repository settings so you can upload an image
#
aaronpk
"Upload an image to customize your repository’s social media preview."
#
gRegorLove
Ooh, neat
#
aaronpk
just like i thought, it's not visible on the page either lol
#
aaronpk
https://github.com/aaronpk/Monocle this probably looks good in slack now
#
Loqi
[aaronpk] Monocle: Monocle is a reader app that talks to a Microsub server
#
aaronpk
guess slack doesn't unfurl links from bots?
[aaronpk] and [schmarty] joined the channel
#
[schmarty]
it didn't show up in slack 😢
#
[schmarty]
(link appeared, but no slack unfurling)
#
aaronpk
maybe it's cached still
#
gRegorLove
Shows up in FB debugger when I do a fresh scrape
#
[schmarty]
ditto the twitter card validator
#
KartikPrabhu
[cleverdevil]: might be good to use CSS custom properties i.e. CSS variables. You can then switch the variables on the @media-query or using the toggle
[tantek] and [Michael_Beckwit joined the channel
#
[Michael_Beckwit
ooh
#
[Michael_Beckwit
i still like the idea of random color schemes for some reason
#
[Michael_Beckwit
the color pairings would be planned so it’d all be readable
#
[Michael_Beckwit
but just randomized in application 😄
#
KartikPrabhu
[Michael_Beckwit: yeah CSS custom properties are also useful for themeing
#
[cleverdevil]
Nice thanks!
#
KartikPrabhu
[cleverdevil]: that article only does the media query part, but I am sure you can toggle the color similarly either in JS or using checkboxes and some CSS
#
sknebel
[cleverdevil]: you can look at petermolnars site for an example implementation
#
jalcine
yeah ::checked and CSS would be the no-JS way
#
[tantek]
:checked 🙂
#
KartikPrabhu
yeah pseudoelement vs pseudoclass
snarfed and [grantcodes] joined the channel
#
[grantcodes]
You can do checked but you still need to store it so it persists across page loads