#dev 2020-09-15

2020-09-15 UTC
[manton], KartikPrabhu, petermolnar_ and [jgarber] joined the channel
#
[jgarber]
[tb] I’m sorry for the delay, but I was able to take a cursory look at your PR from a few days ago. Will take a more thorough look when I’m back in front of a computer.
[tb] joined the channel
#
[tb]
Hey np [jgarber], I appreciate it! I've been hard at work the last few days trying to port my indieauth_discovery library to TypeScript for a Next.js app
#
[jgarber]
Oh, my. 😄
jonnybarnes and vilhalmer joined the channel
#
[tb]
It's been a bit of a journey haha
[jgmac1106], sp1ff, jonnybarnes, geoffo, [tw2113], justache, gRegorLove__ and gRegorLove_ joined the channel
#
jacky
what are databases
#
Loqi
It looks like we don't have a page for "databases" yet. Would you like to create it? (Or just say "databases is ____", a sentence describing the term)
#
jacky
what is a database
#
Loqi
A database is software and or storage accessed via the software for storing data in a structured way, used by some indieweb projects https://indieweb.org/database
#
jacky
I thought that'd be more useful / relevant
#
jacky
hmm had to go into the `database-antipattern` to see the bit about longevity
[chrisaldrich], jonnybarnes, gRegorLove_, justache and [tw2113] joined the channel
#
[tw2113]
gah, another idea for a domain...this time "microbooks"
justache joined the channel
#
@sonicrocketman
I need proofreaders for my book, Going Indie: A complete guide to becoming an independent software developer. If you're a techie or an indie-dev and you want to help out, get in touch! DM, Webmention, or my email at http://brianschrader.com/about
(twitter.com/_/status/1305724571828584453)
#
[tantek]
not sure I've seen Webmention used as a contact method like that but ok!
[jeremycherfas] joined the channel
#
[jeremycherfas]
I don’t make much use of my exit data, and certainly not at that level of detail.
KartikPrabhu, cweiske, jonnybarnes, swentel, [tw2113], [jeremycherfas], [James_Gallaghe], dckc, deathrow1, [Ana_Rodrigues] and [tantek] joined the channel; petermolnar_ left the channel
#
[tantek]
I got an email supposedly from Google "New Mobile Usability issue detected for site http://tantek.com/"
#
[tantek]
Mobile Usability issues detected on http://tantek.com/
#
[tantek]
Search Console has identified that your site is affected by 1 Mobile Usability issues:
#
[tantek]
The following issues were found on your site:
#
[tantek]
*Top Issues*
#
[tantek]
Content wider than screen
#
Loqi
Tantek Çelik
#
Loqi
Tantek Çelik
#
Loqi
Tantek Çelik
#
[tantek]
(which is obviously false because I use media queries and just double-checked, when resizing the window narrower it works fine to narrow the content)
#
[tantek]
So there seems to be a bug in how Google's crawler checks the "width of content". In case anyone else gets an erroneous email like this from Google
jgmac1106_ joined the channel
#
swentel
[tantek], maybe it complains about the footer section?
#
cweiske
yes, I also have this problem
#
swentel
because I'm getting a horizontal scrollbar there if I make the window narrow
#
[tantek]
really? which browser?
#
[tantek]
hmm, maybe there is a slight range, I tried very narrow and didn't see anything
[jgmac1106] joined the channel
#
swentel
[tantek], firefox
#
swentel
let me take screenshot
#
[tantek]
yup, found it, it was in between range before my narrower media query kicked in, due to an image being too wide in the sidebar
#
[tantek]
just adjusted with max-width:100%
#
[tantek]
swentel, reload
#
swentel
yeah, I couldn't reproduce anymore:)
#
[tantek]
nice! ok well that was trickier than expected but apparently helpful
#
[tantek]
what is Content wider than screen
#
Loqi
It looks like we don't have a page for "Content wider than screen" yet. Would you like to create it? (Or just say "Content wider than screen is ____", a sentence describing the term)
#
swentel
hmm still a scrollbar, but maybe for only one pixel or so
#
swentel
played a bit with the max width on the body, setting to 95% instead of that none, however, I'm no CSS expert, so there might be a more elegant solution :)
#
sknebel
I wonder how they test these and why they don't tell you the specific case where it breaks
#
[tantek]
unfortunately that ruins the full bleed effect on the photos that I want where they go all the way to the edge (similar to how photos go to the edge of the screen in IG)
#
[tantek]
but I did find the extra 2 pixels. now to figure out where they're coming from
KartikPrabhu joined the channel
#
swentel
[tantek], hmm, I think negative margin on div.stream li.hentry
#
swentel
if I set to 0, than it's fine
#
[tantek]
right, that also ruins the full bleed effect on the photos
[Murray] joined the channel
#
[tantek]
swentel, the scrollbar for only one pixel or so should be fixed now, there should be no horizontal scrolling at all, not even a little nudge
#
swentel
[tantek], yep, perfect now!
#
[tantek]
thanks for double-checking, appreciated swentel++
#
Loqi
swentel has 28 karma in this channel over the last year (48 in all channels)
#
[tantek]
at some point I need to rewrite *a lot* of my blog styling (especially layout) using CSS "variables" to reduce the number of places that use the same literal numbers / units
#
[tantek]
well that's something done for my site for HWC West lol
[grantcodes] joined the channel
#
[grantcodes]
That's also a classic mac developer problem since it has hidden scrollbars by default it's very difficult to notice
jeremycherfas, jonnybarnes, callMeBaby, swentie, [jgmac1106], ndegruchy, [Ana_Rodrigues] and nickodd joined the channel
#
@waterproofheart
I’m looking forward to teaching how to add Webmentions to a website on @LWJShow in a few weeks! Check out the LWJShow site for more info:
(twitter.com/_/status/1305847836123320322)
#
JK_na
<jamietanna[m] "Re dumping all to file, if you a"> After finally figuring out how to dump the MF2 request to a file and understand the different categorisation of `mp-photo-alt` as a _command I managed to hack the micropub endpoint to output the alts into the frontmatter of the resultant yaml file.. now if I can figure out how to get hugo reference two arrays on with the same index, I'll be laughing.. as opposed to crying
#
JK_na
which is my normal response when trying to figure out how to do relatively simple things in hugo!
#
JK_na
jamietanna++
#
Loqi
jamietanna has 10 karma in this channel over the last year (31 in all channels)
jonnybarnes joined the channel
#
jamietanna[m]
Awesome stuff! Let me know if you need a hand with the Hugo stuff - I run Hugo too so may be able to help 🙃
jeremycherfas joined the channel
#
JK_na
OK, so basically, in the yaml frontmatter I now have an array called 'alt' and another called 'photo' - the first contains each of the `mp-photo-alt` entries and the latter the URLs of the photos (I tried fruitlessly to get the micropub backend to reformat this, as I'm sure I can get the desired results easier in php).. I'm trying to understand how I can align or reference both arrays at the same time to print the
#
JK_na
matching URL and alt text.. any ideas?
#
JK_na
Ideally, I'd have the photo array containing URL and alt text but I'm php'd out for today
genehack_, dietricha_, skalnik_, cjav_dev_, jbove_, danyao_, ludovicchabant_, themaxdavitt_, zootella_, myfreeweb_, mattl_, oodani_, seblog, [jgmac1106], jonnybarnes, geoffo, jimpick, [James_Gallaghe], [Murray], [Ana_Rodrigues], [tantek] and dckc joined the channel
#
sknebel
(that's kinda why I'm not a fan of the additional mp- for formencoded ... More places for compatibility to break, more stuff to implement for all servers)
[schmarty], petermolnar_, [Ana_Rodrigues] and gRegorLove joined the channel
#
@ModernRetroMe
Island in the NetAn Indieweb Podcast: Episode 4 “Webmentions and Privacy” #indieweb https://islandinthenet.com/indieweb-podcast-episode-4-webmentions-privacy/ via @khurtwilliams
(twitter.com/_/status/1304993269470945280)
gRegorLove joined the channel
#
JK_na
<JK_na "Ideally, I'd have the photo arra"> Managed to sweep away some PHP cobwebs, should be able to sort this without having to bang my head off the hugo wall this evening!
[tw2113], geoffo, justache, jonnybarnes, jamietanna and [chrisaldrich] joined the channel
#
jamietanna
JK_na you could probably grab the length of one array, then do a `range` between 0 and len-1 ?
#
jamietanna
then use `index` into each array?
#
jamietanna
alternatively you could tweak it so it stores it as a single array with two keys?
geoffo, [James_Gallaghe], justache, jonnybarnes, [tantek], swentel and [Chaitanya] joined the channel; nickodd left the channel
#
JK_na
<jamietanna "alternatively you could tweak it"> So far I've managed to pull the URL and alt text into a 2 dimensional array in php, I'm now just trying to work through the logic to get it to output in the correct format for the yaml frontmatter
[Murray], gRegorLove, [jgmac1106], jonnybarnes and [tantek] joined the channel