#dev 2023-07-02

2023-07-02 UTC
Xe, omz13, tiim, jbrr[m], kirbo_kirbstar, jjuran, tei_, gRegor, sebbu2 and gxt__ joined the channel
#
capjamesg
I have a weird issue.
#
capjamesg
The audio isn't collected for sending.
#
capjamesg
Could someone take a look?
#
[KevinMarks]
instead of console.log on mobile, try appending to the innerhtml of an element so you can see the logging
#
capjamesg
I have my phone plugged into my Mac.
#
[KevinMarks]
(define a log function and reroute it to console or appending to a variable and setting innerhtml)
#
capjamesg
I am using Safari dev mode to access the console and network info.
#
capjamesg
"chunks" is empty on mobile.
#
capjamesg
Which suggests the mediaRecorder.ondataavailable() function isn't firing.
#
capjamesg
But I can't figure out why.
#
capjamesg
I remember running into weird things with video on mobile too and I can't recall how I fixed them.
#
[KevinMarks]
is the log for it firing?
IWSlackGateway joined the channel
[KevinMarks] joined the channel
#
[KevinMarks]
log the size of the chunks too
#
capjamesg
Ah, I am getting the chunks.
#
capjamesg
But maybe wav isn't supported on iOS?
#
capjamesg
Can I Use says it was.
#
[KevinMarks]
what was it?
#
Loqi
It was a dark and stormy night https://indieweb.org/It
#
capjamesg
The data was getting sent as an audio/mp4 clip.
#
capjamesg
My audio processing pipeline wasn't expecting that, causing a 500.
#
capjamesg
There was 1 chunk being sent, but that was because I was recording short clips for testing.
#
capjamesg
After I figured that out, I added ffmpeg on the back end to convert from mp4 to WAV, then save to a tmp file for processing.
#
capjamesg
(side note: why do so many audio pipelines read from files! :facepalm:)
#
[KevinMarks]
ah, that is kinda natural for Apple, mp4 is QuickTime format. Can't you configure it at start of recording?
#
capjamesg
I kept getting codec errors when I tried to change it to something other than an mp4.
#
capjamesg
on mobile
#
[KevinMarks]
seems like a regression from the OS X APIs I worked on tbh
#
[KevinMarks]
there's no list of capabilities? you have to keep throwing combinations at it until you find one that works? No way to invoke a user dialog to let them choose?
#
[KevinMarks]
we definitely had a better abstraction for this 25 years ago.
[tantek] and tei_ joined the channel
#
tei_
I've been doing Hugo tutorials for a while, considering trying to migrate the personal site I built in neocities to it... but ultimately i think it's higher-powered than what I actually need. All I really want is the ability to find-replace across multiple files at once (so that, for instance, I could change a word in the navbar across all pages that have the navbar.) surely there must be a way to do this that doesn't require a whole new w
#
tei_
a command line tool or something?
#
tei_
idk, does this seem like a reasonable way to edit a website? or should I suck it up and try to figure out how to shove it into hugo?
[manton] joined the channel
#
[KevinMarks]
It's a tradeoff. If you're on MacOS, BBEdit is good at multifile diff and replace. It's more if you want to use a template to make things consistent. Hugo will also do pagination by date and construct tag pages etc for you, so if you want those kinds of things it may be easier.
#
tei_
yeah, I don't actually want tags or dates on anything, haha. I really just want to make it easier to make little changes to my current structure
#
tei_
I'm on linux mint
[jacky] joined the channel
#
Loqi
[jacky]: vikanezrimaya left you a message 22 hours, 21 minutes ago: regarding the `microformats` crate: sorry if I'm being annoying, but are you still planning to work on <https://gitlab.com/maxburon/microformats-parser/-/issues/7>? additionally, the html5ever dependency requires updating because my rustc complains it's not gonna support some syntax in there soon, and there's 0.26.0 already, while microformats is using 0.22.5
#
[KevinMarks]
Recursive find and replace without undo sounds a bit scary
#
[jacky]
Ohhhh thanks for the nudge. I am! Def feel free to send PRs, I'll review them!
#
[jacky]
I'm working on cleaning up the IndieWeb rust utility crate
#
[jacky]
^ vikanezrimaya
#
vikanezrimaya
don't worry, I have reliable notifications from my IRC bouncer, so I was alerted the moment Loqi pinged you
#
vikanezrimaya
I might try my hand at updating the html5ever version, but not sure if I'll be able to tackle that spec compliance issue in #7
#
vikanezrimaya
hopefully I'll have some time after my dream job to dig into the internals
#
vikanezrimaya
by the way, funny thing, I managed to plug mf2py into Rust via pyo3, so we might make a test setup to check the two against each other 😝
#
vikanezrimaya
wait, did I just type "dream job"? I meant day job, but I don't think that's too far from truth lmao
btrem, gxt__, angelo, sebbu, geoffo, tei_, [aciccarello] and gRegor joined the channel