#dev 2020-04-21

2020-04-21 UTC
#
Salt[m]
gRegorLove: I made those changes, though I do notice that the table on the HWC wiki page doesn't have any of the newer ones, dunno if that is just because it is manual
plut4rch, [Aaron_Klemm], nickodd, [tantek], loicm, strugee, swentel, [LewisCowles], [fluffy], chrisaldrich, [Arne], [prtksxna] and [jgmac1106] joined the channel
#
[LewisCowles]
I have an interview today with a company using really cool tech to solve an interesting problem. This interview is not a coding one, but the coding one they have is online and available, and it looks like whoever wrote it was not 100% clear about what they want.
#
[jgmac1106]
hopefully in interview that comes out a bit, or they are using pre purchased crappy white board exercises, I would so rther pay someone to work on a real small project overtime, hire if I like the work and say thanks here is your check if I don't...but always had luxury of time and pain of not enough . money to pay
#
[jgmac1106]
my new challenge I want to work on, break my resume into snippets and then have different views for different audiences, need to write an instructional design resume this morning, should be a radial button with the data entered just once
KartikPrabhu, [prtksxna] and hs0ucy joined the channel
#
[LewisCowles]
that sounds very cool
[KevinMarks] joined the channel
#
[jgmac1106]
yeah no time right now, need to get the resume out, but I think I could do it and maybe not use JS, but maybe a little, like rearrange snippets using grid areas
#
[jgmac1106]
nobody but HigherEd uses 20+ plus page Vitas
#
[KevinMarks]
Or put classes on each block and hide them Selectively
#
[jgmac1106]
I thought about that and maybe easiest, but worried about screen readers...could try aria: hidden....never really worked with aria....not sure I want to start
#
xsteadfastx
i try to get my head around newbase60. i want to use https://github.com/willnorris/newbase60 for it
#
Loqi
[willnorris] newbase60: Go implementation of NewBase60 encoding algorithm
#
xsteadfastx
i have a url and i want to make it newbase60
#
xsteadfastx
is it possible to get a original url back from a NewBase60 encoded string=
#
[jgmac1106]
thx for ideas Lewis and Kevin!!
#
xsteadfastx
?
#
Zegnat
xsteadfastx: I don’t think NewBase60 is made to encode strings, only made to encode numbers
#
Zegnat
It could surely be made to encode strings, as text is nothing but numbers to a computer, but I do not know any implementation that supports this
#
[LewisCowles]
I've not tested it with newer Jekyll and it's not ideal, but builds HTML in pieces and is fairly unopinionated
#
Zegnat
[jgmac1106]: no need to think about aria hidden. display:none would do the same. So unless you are targetting non-CSS browsers, it should not be a problem
#
xsteadfastx
Zegnat: so whats the point of using it as a url shortener? only if the url consists of numbers?
#
Zegnat
I think people may use it when they have unique IDs for posts. E.g. if your website can render “post numer 1234”. Then you can shorten the URL by writing 1234 in base60
#
xsteadfastx
ah ok... thanks for explaining
#
Zegnat
From the NewBase60 page:
#
Zegnat
> Typical URL shorteners take an arbitrary URL and return a short URL, usually on a shorter domain, followed by a seemingly random set of alphanumeric digits that usually indicate an id of an entry in a database which has the original URL.
#
Zegnat
Basically you would use a NewBase60 number as the reference to the entry ID mentioned in that description.
#
[LewisCowles]
it's essentially PHP including some files exactly as they are. You could even do it using PHP if you didn't want a static artifact, or save the pages if you did
#
xsteadfastx
Zegnat:thanks alot
KartikPrabhu joined the channel
#
[jgmac1106]
good ideas all around, I was worried zegnat with display:none, that a screen reader would still se all versions, good to know I was wrong, Lewis yeah that is what I might try...if I don't need to change verbage and can just moe or hide different parts
#
Zegnat
AFAIK display:none removes something not only from the rendering tree, but also from the accessibility tree. This is why you need special CSS if you want to visually hide something but still provide it to screen readers.
#
Zegnat
Chances are tools that build a faulty accessibility tree with display:none do not support ARIA anyway. Best to stick with the easier solution. But of course: test :D
jeremych_ and supernovah joined the channel
#
supernovah
what do you call a front end design that works across multiple platforms and browsers?
#
supernovah
As in, is there an adjective for it now?
loicm joined the channel
#
swentel
responsive?
#
jacky
what exactly is 'working'?
#
jacky
and the platform bit is a bit 'invisible' since (if it's being viewed from the browser) the platform == browser
#
jacky
but if it doesn't have vendor specific or exclusive functionality (like WebUSB perhaps?) then it's cross-browser
#
supernovah
swentel: cheers, that's what I've heard before just forgot it
KartikPrabhu, swentel, nickodd and [LewisCowles] joined the channel
#
[LewisCowles]
jacky++ for drilling in
#
Loqi
jacky has 20 karma in this channel over the last year (76 in all channels)
#
[LewisCowles]
I'm not sure responsive covers it enough, but I don't think one word ever will
#
[LewisCowles]
I was tempted to answer "a website" because they should all work across devices, just some better than others
[grantcodes], jacky, [Michael_Beckwi], geoffo, [prtksxna], tno, aaronpk_, [jgarber] and strugee joined the channel
#
Loqi
zegnat has 20 karma in this channel over the last year (60 in all channels)
#
[jgmac1106]
that makes sense I was mixing up the opacity counters I sometimes use to have different divs fade in and out on a different z-index...not display:none...I think I have my next IndieWeb goal to work on
[schmarty], aaronpk_ and superkuh joined the channel
#
Zegnat
opacity:0 I *think* drops elements from the accessibility tree as well, but I am not sure if it always does that. So that could be troublesome, yeah
aaronpk_ and [Sadik_Shahadu] joined the channel
#
[Sadik_Shahadu]
It's still loading after 15 mins
#
[Sadik_Shahadu]
Linux mint on Lenovo think pad
#
[jgmac1106]
Oh oh [Sadik_Shahadu] good luck.
[LewisCowles] joined the channel
#
[LewisCowles]
[Sadik_Shahadu] what happened prior to that?
#
[Sadik_Shahadu]
I was in a zoom meeting
#
[LewisCowles]
can you boot from a USB and run SMART/ATA diagnostics on the machine?
#
[Sadik_Shahadu]
Not sure
#
[LewisCowles]
It could be nothing, but it could be a hardware failure
#
[Sadik_Shahadu]
Ok
#
[Sadik_Shahadu]
I see so many failed systemd_journal Id
#
[Sadik_Shahadu]
Linux mint erminal is not visible on screen
#
[Sadik_Shahadu]
What happens if I try to turn it off?
#
[LewisCowles]
Have you not power cycled yet?
#
[Sadik_Shahadu]
Not yet.
#
[LewisCowles]
if you can ctrl+alt+del enough times to get it to soft reset, it would be better
#
[Sadik_Shahadu]
I thought it was gonna load and reboot. Now it's over 30mins
#
[Sadik_Shahadu]
Ok
#
[LewisCowles]
but otherwise hold power button for 10-30 seconds it should turn off.
#
[Sadik_Shahadu]
↩️ Failed to shutdown binary freezing
#
[Sadik_Shahadu]
Just turned it off now
#
[Sadik_Shahadu]
Wondering what will happen if it turn it on again😢
voxpelli, mattl, Kemwer_, aaronpk_ and genehack joined the channel
#
[Sadik_Shahadu]
Wooo it worked!🤗 It worked
justache and danyao joined the channel
#
[Sadik_Shahadu]
Thanks [LewisCowles] 👍
#
[LewisCowles]
NP. Glad it's working. This isn't a tech support forum. I was obviously happy to help, but there might be better advice elsewhere on the internet and it's not the core purpose of this channel or any channel I'm aware of on IndieWeb.
#
[LewisCowles]
Do you have a personal website?
aaronpk_ and [KevinMarks] joined the channel
#
[KevinMarks]
Opacity 0 won't remove the bounds from the document, so it only really works for elements on top of each other
aaronpk_ joined the channel
#
[Sadik_Shahadu]
↩️ Yes. I do.
#
[Sadik_Shahadu]
↩️ sadik.goifnetwork.org
#
[LewisCowles]
↩️ Wonderful
[aaronpk], aaronpk_, Kongaloosh, swentel, Loqi_, gRegorLove and IWSlackGateway joined the channel; nickodd left the channel
#
gRegorLove
I was looking at this for a regex to extract a bearer token and was curious about the underscore https://github.com/Zegnat/php-mintoken/blob/master/endpoint.php#L212
#
aaronpk
gRegorLove: when it generates the token the token string is actually the ID and hash: https://github.com/Zegnat/php-mintoken/blob/master/endpoint.php#L75
#
aaronpk
separated by an underscore
#
Zegnat
gRegorLove: Mintoken does not need to match generic tokens with all symbols allowed by OAuth spec, uonly needs to parse what it creates itself.
#
aaronpk
rather than the string itself being a value in the database
#
gRegorLove
Cool, thanks
#
Zegnat
Basically securing against timing attacks when database lookups are involved. At least in theory
Loqi_ joined the channel
#
Zegnat
That token design might be a case of my trying to be overly clever, gRegorLove. But I like the idea of using well tested security functions from username/password authentication and applying it to my tokens
#
Zegnat
I could shorten the tokens a lot by dropping the underscore and encoding the whole token byte string in something like base64 instead of hex, but meh, this gave me more clarity when building and testing
leg and tno joined the channel
#
gRegorLove
Good info, I'll have to consider that for the ProcessWire token endpoint (that I haven't worked on in too long, sigh)
[LewisCowles] joined the channel
#
GWG
How do you generate random tokens?
[snarfed] joined the channel
#
GWG
I seem to do an SHA256 hash on a seed then base64 encode it
#
[snarfed]
begs the question of where you get the seed
[Zegnat] joined the channel
#
[snarfed]
alternatively just shell out to something like `pwgen 40 1 1`
#
jacky
or like `openssl rand -hex 64`
IWSlackGateway joined the channel
#
gRegorLove
For PHP, some good info here: https://paragonie.com/blog/2015/07/how-safely-generate-random-strings-and-integers-in-php Note 2015, but I think it's still correct?
[Zegnat] and [KevinMarks] joined the channel
#
GWG
[snarfed]: I use the wordpress random password generator
[LewisCowles] joined the channel
#
[LewisCowles]
[jacky] the hex part of that should maybe be changed. By reducing the values to hex it makes it one of a few characters which reduces the space I'm sure
#
[LewisCowles]
ignore that
[aaronpk] joined the channel
#
jacky
wait ignore your statement? lol
#
jacky
I use 64 because it's nice and big
#
[LewisCowles]
I thought it was restricting the character representations, I just read something and that one isn't the bad one
#
[LewisCowles]
that one takes the bytes and represents as hex so 128 chars
[prtksxna], tno, aaronpk_, rmdes and [jgmac1106] joined the channel
#
Loqi
[swentel] #97 Allow iframe from YouTube and Vimeo
#
swentel
hoping tests on all environments will pass :)
deathrow1 joined the channel
#
jmac
Question about sending a "Please delete an earlier webmention" webmention: Do I understand correctly that so long as the source URL returns HTTP `401 Gone`, the content no longer needs to contain the new webmention's target URL?
loicm joined the channel
#
swentel
did a tiny fix on the assert
#
KartikPrabhu
jmac: yeah I think so
#
swentel
aaronpk, would you accept a parser too for youtube channel rss feeds? I'd extract the thumbnail for instance and push that into 'photo'
#
swentel
you only have title and url now, which is fine in a way of course :)
#
swentel
otoh, clients can of course handle that too, hmmm
#
swentel
nvm that question, I'll experiment with indigenous first
#
aaronpk
Hm I'm not sure putting the video thumbnail in photo is right
#
swentel
hmm true, description could probably go into content/text
#
aaronpk
that's more realistic
#
swentel
will see what I can do with the client first
#
swentel
girlfriend is pushing me, but the feedback is awesome :)
#
aaronpk
i guess really you'd want the content to have the video iframe
#
aaronpk
although some youtube videos can't be played when embedded in an iframe
aaronpk_ joined the channel
#
swentel
oh yeah, depending on video settings
tno and [LewisCowles] joined the channel
#
aaronpk
maybe this is a better way to handle iframe videos in readers
[mapkyca] joined the channel
#
[jgmac1106]
video thumbnail = poster
#
[jgmac1106]
if rss even has a spot for that..
#
aaronpk
hmm authorship question again
[LewisCowles] joined the channel
#
aaronpk
actually i guess i don't need to do that yet
#
aaronpk
i decided i'm going to interpret "has" to mean anywhere in the tree, not just the top level though https://github.com/indieweb/authorship/issues/2
#
Loqi
[aaronpk] #2 Clarify step 7 "has 1+ h-card"
#
Zegnat
aaronpk, swentel, I wrote that previously linked wiki page about video in jf2 specifically because I want adding YouTube to XRay. Code may very well still be usable: https://github.com/Zegnat/XRay/tree/youtube
#
gRegorLove
Barnaby's mf-cleaner lib makes that "has" really easy, btw
#
aaronpk
yeah i did it a little differently than that but same idea
#
aaronpk
i did it as a recursive function instead of a sort of flattening operation
[chrisaldrich] joined the channel
#
aaronpk
gRegorLove: fixed!
#
GWG
aaronpk: Curious what you do with Zegnat's brainstorming
#
aaronpk
yeah i'm not sure
#
aaronpk
changing what xray returns for the "video" property is a big change
#
aaronpk
i think i need to come at it by looking at how i want monocle to behave
[tantek] joined the channel
#
[tantek]
Working across browsers? That’s called “standards based”, in contrast to proprietary or proposals based
#
aaronpk
okay that was a productive morning
gxt and KartikPrabhu joined the channel