#dev 2020-09-23

2020-09-23 UTC
paulrobertlloyd joined the channel
#
paulrobertlloyd
On time zones, I think I’ve summarised all the available scenarios and different options: https://github.com/getindiekit/indiekit/issues/287 Thanks aaronpk++
#
Loqi
aaronpk has 72 karma in this channel over the last year (251 in all channels)
#
Loqi
[paulrobertlloyd] #287 RFC: Time zone support
#
aaronpk
i'm a litle confused on the labeling of "ignore" in some of them, but i think you got the options all laid out
#
aaronpk
is almost done with his talk for activitypub conf
#
aaronpk
explaining oauth and indieauth to the activitypub audience
#
aaronpk
it should be available tomorrow :)
deltab and [snarfed] joined the channel
#
[snarfed]
aaronpk++
#
Loqi
aaronpk has 73 karma in this channel over the last year (252 in all channels)
#
aaronpk
now i need to figure out how to post this on my site in a way that isn't just a giant mp4 file
#
aaronpk
looks up notes from IWC Austin
[tw2113] and geoffo joined the channel
#
jacky
mp4++
#
Loqi
mp4 has 1 karma over the last year
#
jacky
(lol)
#
jacky
doesn't _really_ care
lahacker, geoffo, jonnybarnes, khimaros[m]1, joshproehl_, jamietanna[m], nickodd, VioletPixel, treora, KartikPrabhu and [fluffy] joined the channel
#
[fluffy]
Does video.js have instructions on how to do the HLS thing? Every time I go down the rabbit hole of trying to self-host HLS video I always find a bunch of things that just show a single-minded “here’s how to encode Big Buck Bunny” in a weirdly hardcoded way and I lose interest.
#
Ruxton
[fluffy]: have a look at owncast if you're looking to do self-hosted live HLS
#
[fluffy]
There’s plenty of things for live HLS, but I’m talking about encoding a playlist.
#
[fluffy]
taking a fixed video file and converting it to HLS playlists and segments.
#
Ruxton
ahh yep, there's some interesting stuff around that was started by some news media dudes called snickers that does that
#
[fluffy]
Like that feels like a thing that should have an ffmpeg very-long-one-liner script or something.
#
[fluffy]
https://github.com/snickers/snickers ? looks like a good starting point, thanks
#
Loqi
[snickers] snickers: :chocolate_bar: An open source alternative to the video cloud encoding services.
#
Ruxton
its not really worked on anymore
#
[fluffy]
and it’s also an HTTP API, I just want a heckin’ commandline tool
#
Ruxton
oh ok
#
[fluffy]
like, insert video file, retrieve a bunch of .m3u8 and .m4v (or whatever) files
#
Ruxton
>> ffmpeg -i input.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls index.m3u8
#
Ruxton
adjust size as you choose
#
Ruxton
it wont generate adaptive HLS though
#
[fluffy]
adaptive HLS is just a matter of generating a bunch of sizes and then having a master playlist that collates them, right?
#
Ruxton
you'd have to write something to generate multiple -s and encoding levels wth ffmpeg and then mash them together
#
Ruxton
yeah :)
#
[fluffy]
not that I’m having any luck finding any non-RFC-speak documentation of what goes into the master .m3u8
#
[fluffy]
seems like everyone just wants to sell expensive software to make this “easy”
justache joined the channel
#
aaronpk
[fluffy]: You just described my evening 😂
#
aaronpk
All the blog posts and everything makes it sound like it's going to be so easy but then fail to give actual practical examples
#
aaronpk
I'm determined to get this video posted to my site as entirely static files with a tiny bit of JS and I'll document what I did to make that happen
[jeremycherfas] joined the channel
#
[fluffy]
yeah I was asking those questions prompted by your post at 5:51 :)
#
aaronpk
Has it been that long already 😭
#
aaronpk
Even just finding the download link for apples tools was a real challenge
#
aaronpk
they break urls and UIs all the time so half the SO answers are wrong now
#
aaronpk
we'll I'm going to bed now, but I will have this done and written up by 10am tomorrow
jonnybarnes, swentel, KartikPrabhu, moppy, shoesNsocks and [grantcodes] joined the channel
KartikPrabhu, [Ana_Rodrigues], jeremych_, jonnybarnes and jeremycherfas joined the channel
#
@dailydotdev
↩️ Here is another excellent daily tip by @DailyDevTips1. This time he tells us about Webmentions. A new way to discuss and interact on the web. https://app.daily.dev/posts/1Dga3S5Yx
(twitter.com/_/status/1308740961313398787)
#
sebbu
reminds me of webbadges
[Murray], [James_Gallaghe], shoesNsocks and [KevinMarks] joined the channel
#
@usk
Webmention なるものを知ってちょっと調べてたらトラックバックの話とかが出てきて懐かしい気持ちになった。
(twitter.com/_/status/1308766757822164992)
geoffo, joshproehl, nickodd, [tw2113] and [Rose] joined the channel
#
GWG
[James_Gallaghe]: Editing the weather page?
#
[James_Gallaghe]
My weather station?
#
[James_Gallaghe]
Oh, yeah. I’m thinking about doing some weather things.
jonnybarnes and j605 joined the channel
#
GWG
[James_Gallaghe]: I love to chat weather stuff
#
[James_Gallaghe]
I have a trick up my sleeve that I am going to build inspired by the weather style sheet example.
#
[James_Gallaghe]
I hope to build a weather feature into my site tomorrow and then write about it.
#
[James_Gallaghe]
You have a weather sidebar item on your site, right?
#
GWG
[James_Gallaghe]: I have a lot more options
[chrisaldrich] joined the channel
#
GWG
But I have not hooked up my own data yet, even though I have it... I'm using the US National Weather Service because I have not written the logic to only show my data when I'm at home and show 3rd party when I'm not
#
GWG
I post weather as part of the location property of my post
#
GWG
I should update my part of that page
#
Loqi
yea!
#
[James_Gallaghe]
What are you using to collect your own data?
[jgmac1106] joined the channel
#
[tw2113]
depends on the type of data and if i have anything auto-recording it
#
[tw2113]
for example for awhile I was tracking “checkins” for coffee shops, from the select handful I frequent, but with Covid that kind of stopped and “died”
#
[tw2113]
I was just using a form to record those visits
#
[James_Gallaghe]
I meant the weather data :)
#
[tw2113]
ah, sorry, missed seeing the previous convo
#
[tw2113]
goes back to dayjob work
jonnybarnes joined the channel
#
GWG
[James_Gallaghe]: I have a variety of sensors...radio, esp8266 homemade, etc
jonnybarnes, [Emma_Humphries], NinjaTrappeur1, [schmarty], NinjaTrappeur, KartikPrabhu, [fluffy] and [James_Gallaghe] joined the channel
#
[James_Gallaghe]
Interesting. I only have my Raspberry Pi for sensing and I decommissioned my weather station (after only a few days in operation) because it was too much to maintain 🙂
swentel joined the channel; nickodd left the channel
#
@adam_greenough
↩️ Webmentions is a nice middle ground I think!
(twitter.com/_/status/1308829763159625728)
#
@remkusdevries
↩️ Webmentions, if we’re honest, is long overdue. And notfications. P.s. what’s your aversion to using headings in post content? :P
(twitter.com/_/status/1308831774550757376)
KartikPrabhu and NinjaTrappeur joined the channel
#
GWG
[James_Gallaghe]: How so? I just change the batteries every few months. Otherwise it transmits data to a computer on the 433mhz band
#
GWG
Used to use a Pi but the database stuff wears it out
#
[James_Gallaghe]
You have your Pi run in batteries? Interesting. I only keep my Pi on during the day when I need it so the weather station has been offline a lot.
KartikPrabhu, jeremycherfas, [Murray], jonnybarnes and jamietanna joined the channel
#
@adam_greenough
↩️ Sorta! Webmentions allows submission of reply URLs (or can automatically pick them up from socials). It is an IndieWeb standard. Lots of integrations out there already for various site generators/CMS. https://indieweb.org/Webmention
(twitter.com/_/status/1308843038895210497)
#
GWG
[James_Gallaghe]: No, the sensors run on batteries
#
GWG
The Pi or the computer just has a SDR attached to pick up the signal
#
[James_Gallaghe]
Ah, that makes sense.
[jgmac1106], jonnybarnes, angelenos, jeremycherfas, [fluffy], [schmarty], [Emma_Humphries], NinjaTrappeur, timotimo, [chrisaldrich], dietricha, myfreeweb, craftyphotons_, skalnik, ludovicchabant, danyao, kitt, genehack, mitchell and [snarfed] joined the channel
#
aaronpk
btw, my activitypub conf talk is done! they’ll be posting it to the conference website soon, but i also posted it on my site! https://aaronparecki.com/2020/09/22/25/activitypub-oauth-2-1
#
Loqi
[Aaron Parecki] ActivityPub and OAuth 2.1
#
aaronpk
also, a fun demo of self-hosted HLS
shoesNsocks1 joined the channel
#
[snarfed]
aaronpk++
#
Loqi
aaronpk has 74 karma in this channel over the last year (253 in all channels)
#
timotimo
that hls is http live streaming?
#
timotimo
probably a safe assumption
#
timotimo
huh, there's a little hitch at about 00:45 where a loading throbber briefly appears and there is a skip in video and audio
[LewisCowles] joined the channel
#
aaronpk
That's it switching to a different resolution
#
aaronpk
safari does better with native HLS support
#
timotimo
i'm sure there is already a well-known answer for this, but how do you deal with apps that show you an instrumented browser to do your login in? like, it could just show a green lock and the html it got from the page legitimately, but insert some shady javascript?
#
aaronpk
It won't act the same as the real browser
#
aaronpk
you could make a pretty convincing fake, but there will always be something a little off
#
timotimo
i would assume an average user might even be bamboozled into typing their username and password into a browser that looks completely off
#
aaronpk
One of the other ways is to stop using passwords and rely on hardware authenticators like WebAuthn which can't be phished at all
#
timotimo
i've got an OTP app on my phone already to secure stuff like github or paypal, but that's different, right?
#
aaronpk
yeah OTP is phishable
#
aaronpk
that’s why there’s always warnings like “dont give this code to anyone”
#
timotimo
right, it doesn't encode intent at all
#
timotimo
i haven't heard of WebAuthentication before today, though
#
timotimo
tangentially, did you make the cat imagery for the stickers yourself, or hired an artist?
#
[snarfed]
also if you’re diligent about using a password manager, and only use it to autofill, never type or paste a password manually, you get much of the same anti-phishing benefits as with U2F/security keys
#
[snarfed]
(ideally combine both, though!)
#
[snarfed]
upshot is, security is hard, it’s an arm race, we’re never done 😭
#
aaronpk
I'm super optimistic about WebAuthn because it is the first time we've seen cooperation from everything from the hardware under the CPUs to the operating system to the browser to the websites
#
aaronpk
timotimo: the cats are by an illustrator, same one who does the cats for ohmydollar.com and MeowBox
#
[snarfed]
aaronpk++ for web at least, maybe so!
[tb] joined the channel
#
[tb]
I really want to find the motivation to get WebAuthn set up on my IndieAuth server so I can log in with my yubi
voxpelli joined the channel
#
aaronpk
[tb]: that'd be sweet!
craftyphotons_ joined the channel
#
[tb]
There's actually a solid Ruby library out there for the server side https://github.com/cedarcode/webauthn-ruby — just haven't had the inspiration to work on it yet
#
Loqi
[cedarcode] webauthn-ruby: WebAuthn ruby server library ― Make your Ruby/Rails web server become a conformant WebAuthn Relying Party
willnorris, ludovicchabant, skalnik, dietricha and myfreeweb joined the channel
#
timotimo
is WebAuthn the official name or a shortening?
danyao, genehack, shakeel, themaxdavitt, jmac, zootella, mattl and mitchell joined the channel
#
aaronpk
It's an official shortening
#
timotimo
that's fun
jonnybarnes joined the channel
#
mayakate[m]
I'm not sure if this is exactly what you mean but I have had great experiences with https://github.com/newhouseb/nginxwebauthn for getting some simple webauthn set up in front of an arbitrary nginx host
#
Loqi
[newhouseb] nginxwebauthn: Easily add (single user) webauthn in front of an arbitrary nginx host.
#
aaronpk
oh nice
[schmarty], deltab, moppy and jonnybarnes joined the channel