July 20242:55:534.3k views

Automating my life (or at least the boring parts)

About

A livestream working on my Life OS app. I build a queued workflow that creates a podcast episode, downloads the audio, and saves a transcript, then start on telling the speakers apart. It ends with a good idea dying to "Serialization of closure is not allowed."

Transcript

Everything I said

00:00

There we go. Test, test, test. Can you guys hear me? All right.

00:21

Let's check. There we go. Okay.

00:43

Hello, Zion. Hello, Hussein. All right. We're cooking. Let's check YouTube. I guess I'm live.

01:08

All these comments are coming in from YouTube, so I must be live on YouTube. Uh, yes, bobbing my head to Glass Animals again. Still very good. Oh, from Italy. All right.

01:31

Guys, look, I did it. Are you so proud of me? I found a plugin that, uh, that doesn't show, that doesn't show my ENV variables. I did it.

01:53

I'm gonna stop leaking stuff. Oh, hey, Andy. Lobster, Ethan, Joseph. Lobster. Um, yeah, so hopefully I will stop leaking and stop having to roll my API keys. Yeah, that one's fine. Um, yikes, that's hot.

02:18

What was it? It was like, um, Jet Brain- no, uh, PhpStorm ENV plugin. I think it's this one. Yeah, it's this one.

02:39

I was actually, um, I don't wanna-- I'm so tired of leaking them. I was looking at how to create my own PhpStorm plugin, 'cause I was like, "This is stupid. I can't keep doing this." And so I found this one that was like, oh, it supports ENV files. I didn't see anything about, um, hiding, and I was like, "Oh, good, it's open source, so I'm gonna go there and copy it." And then I saw, "Last year, option for hiding values in ENV files." And I was like, "Why

03:10

don't I just install this? I don't have to build it. I don't have to build it. Somebody already built it." Well, that's the best thing. Or disappointing if you wanted to build it. That is also true. Mother, that's hot. Um, I also added a little bit of what I'm working on today, uh, on the bottom there.

03:34

So I sent a email to Steve. Steve's out this week, so I sent him an email. Um, sent him an email with like, "Hey, we gotta make my stream look pretty." Um, so that's coming, but right now I, I, I at least added some text at the bottom so that I hopefully don't have to answer the question all day every day, um, but if you wanna ask it, that's fine.

04:01

Um, so I'm getting better. I'm getting better at streaming. I've, I've hidden my ENVs. I've got some text up there. I've got the chat rolling in. I fixed-- I figured out a mute button, so if I push this. Uh, and now hopefully you can hear me.

04:24

So, oh, pretty happy about that. Uh, if you could hear me when I was supposed to be muted, oh, shoot. Let me check that again. It says it's muted, so...

04:56

Okay, being a freaking turkey, that's what you're doing. All right, um. Let's get to work. We got stuff we gotta do. Yeah, see, this is the problem with chat is I believe everybody.

05:17

I just am like, "Oh, everyone's telling me the truth all the time." Okay. I think I wanna integrate the Telegram, Telegram bot today, 'cause I want it to start messaging me stuff. Um, so a few things.

05:38

I want to-- I have just enough faith in humanity. I want to, um, get transcriptions done, and as a part of transcriptions, uh, identify speakers, and that's when the system's gonna have to, uh, message me and be like, "Hey, who is this speaker?" So let's go back to, uh, what workflow were we working on yesterday?

06:07

I think we were working on the mostly technical workflow. Um, chat is super delayed. That is one good thing about putting chat on the video is y'all know between when you send it and when it shows up on the video, you know what the delay is.

06:36

Okay. So we're gonna be using Deepgram for... We're gonna be using Deepgram for transcription unless somebody has a better idea, but I quite like Deepgram. Um, let me open up a new browser here, close my normal browser.

07:04

Okay. Um, a setting where? OBS, Restream? Yeah, thirty to forty-five seconds is a long time. Let me make sure there's no, um, keys here.

07:29

So, let me log in. Project ID, I don't see a key. I see a project ID, which seems fine. Um, credits.

07:52

Yeah, I think we're fine. Uh, I think some of the latency depends on, maybe it depends on the service that you're using. Like if you're using-- YouTube might be ahead, might be ahead of Twitter, for example. Um, okay. So what do we have so far?

08:13

Oh, ten seconds is not bad. But where's Andy watching from? She's watching from-- They're watching from YouTube as well, so who knows? Um, YouTube and Twitch, I don't know how to do that.

08:37

Do that later, doesn't matter. Um, okay. So if I have the path, if I have the path... Oh, I do wanna store the audio on S3. That's probably next. E fetch latest.

09:08

Uh, there's nothing on line twenty-one. So now that I have the path, I probably need to store it on S3. The problem with workflows, so we're using, um, Laravel Workflow.

09:33

We're using this, the-- which is great, and I love it. The problem is, it's not really a problem. I'm sure they say it some here. No. Um, you can't really do anything outside of an activity in a workflow, or at least you don't want

10:03

to. Um, let's see, constraints, workflow constraints. Yeah, okay. Um, so inside of a workflow, don't use Carbon now. Workflow stub now, that's interesting.

10:24

Um, pass the user to the input when the workflow is started. That's fine, I'm not really doing that. Um, use an activity to retrieve data. Yeah, I don't see any, um, I don't see any, uh,

10:56

documentation about this, but here we go. So activities need to be idempotent, idempotent as well. Workflows should be deterministic. The workflow engine relies on being able to recreate the state in order to continue execution.

11:20

If it is not deterministic, it will be impossible for the workflow engine to accurately recreate the state of the workflow and continue execution. Activities should be... Is it idempotent or idempotent? Idempotent. Idempotent. May be retried multiple times in the event of a failure. If an activity is not idempotent, it may produce unintended side effects, different results.

11:49

Yeah, 'cause the activities can be retried, they have to be idempotent. So you never say it out loud. That's probably the right answer. AR make, did we decide activity? Move- What do I wanna call it when I store it on S3?

12:16

Um, I'll just call it save audio. Um, okay, let's-- I need to do something RQ. Hello, Bob.

12:51

Need to send a message real quick. Give me one second.

13:19

Sending a message. All right, back to it. Okay, sometimes you do an oopsie, you know? Um, so did we make that?

13:40

Yes, but I hate that it puts it here every time. So this should be an activity. We'll pass in the path. So now we can say, uh, yield activity stub make store.

14:10

What did, what did I call it? Guys, I am off. Save, save audio class. All right, so we're gonna dispatch this. Oh, great, just being a troll. Fantastic. You're welcome to hang out as long as you're nice to people. Um, all right, so we're gonna stash that on S3, which means we can open our ENV file.

14:40

Oh, I'm so nervous still. Just to make sure. Yes, we can open our ENV file, and nobody can see it. So I need to set, uh, some S3 credentials. Oh, that's interesting. If you comment something out, it's still, it's gonna show up. That's bad. Well, that's fine. Okay, file systems.

15:07

I think I already have a bucket somewhere that I can use, that I'm going to use. Let me check, 'cause you know what I don't wanna do? Set up a bunch of frigging AWS keys. That's what I definitely don't wanna do. So let's check the aaronfrancis.com repo for...

15:33

Oh, here's a Deepgram secret. That's good. I'll take that. Let's plop that. So we're gonna grab Deepgram. So we've got YouTube, Transistor, and Deepgram. And now I need... Are these AWS keys good? Yeah, this is, goes into an Aaron Francis bucket.

15:56

That's fine. Mm, mm, mm. I just have had this one bucket around for, like, 10 years, and that's the one that I use for everything. Um, okay.

16:24

Okay, I think we're good. Yes, I think we're good. All right. So stole some keys.

16:45

Let me make sure I close. Yep, stole some keys from another project, so I think we should be good. Um, file systems. So let's do this. Let's do AR tinker, and let's do, uh, storage disk S3.

17:07

What can you do here? Can you do files? Oh, I didn't install the S3 driver. Laravel file system. S3. All right, so we're gonna install.

17:32

Oh. Uh, somebody asked earlier how the sales are going for, um, SQLite course. They're going great. Uh, it's not enough-- We're not gonna retire off of it, but it's going pretty well.

17:58

Now we just need to turn it into a business. Hey, cool. Test.text is there. Can you list directories? Cool. What do I have in there? Snake. You guys know that I once created, um, the game Snake in Microsoft Excel.

18:20

It's back when I was an accountant. Let's see if we can find that. Guess not. I guess it's long gone. That's a pity.

18:53

Hmm. It was cool. There's a video somewhere, I'll find it later. But I created a, a fully playable game of Snake in Excel, which was kind of awesome. All right. We've got... We should just make a directory called Life OS and just put everything in there, I think.

19:18

So s-s-s... if we do can you, can you just do something like, um... So if we were to say Aaron Francis. Is this allowed?

19:41

That doesn't seem like it should be allowed, but I don't know if it is. Negative. Bomp, bomp, bomp, bomp. Oh, that's a pity.

20:04

I really wanna... I think the real answer is you should just create your own bucket for it. I think that's what I should absolutely do. Hmm, hmm, hmm. That's too bad. That would've been cool. If there's a way to do that, uh, will somebody let me know?

20:29

Flysystem. Bucket name, optional path prefix. Where do you go? How do I get to you? Um, let's go into, um...

20:53

Let's go find it. Let's go freaking find it. Vendor, Laravel, framework, source, storage probably. No. Source, file system. The root option, is that in the docs? Storage build.

21:22

That's interesting. Uh, let's just try it before we do something silly. Uh, bucket and then root is, we'll just try this. Cool.

21:44

That might have worked. Um, so if we say storage disk S3, can you just do this? Test.text with a value of one, two, three, four. Now, if we remove the root, dang, I think whoever said this was totally right.

22:07

Um, we see a Life OS directory. I think that's, that's all I needed. All file, all files is gonna be a mess. I don't wanna do that. Cool. I think we did it. Cool. Thanks, whoever said that. Sh- who, who said that? Uh, oh, man, it was Jason.

22:32

Hate it when Jason's right, and he's right so often. Dang. Good job, Jason. Cool. Nice job, Jason. All right, so now we are set on S3, so we should be in a good spot where we can just do, uh...

23:02

We can go back up here to the app and workflows, activities, save audio, path. So I think this is idempotent, so I think we're okay. Storage, disk, S3. Put...

23:26

How do I pass a file descriptor? Uh, stream interface. I need a, I need a local and a remote path, don't I?

23:51

So this will be local, remote. I'll put-- I think you put file name first and then contents. Um, local as a read. Can I just...

24:14

I think that should work. I need to figure out, um, testing for these activities, 'cause I don't wanna continue to run through a workflow every time to test the whole thing. Okay, so I need to pass through a local path. Local and remote.

24:40

Oh, goodness. Um, remote can just be audio. I probably should... Remote equals... All right.

25:09

I need a stable remote file name, and what is... So this is a full-on... At this point, path is a full-on path. I could probably just take file name from there, huh? I feel like I've done this before, but I never remember how.

25:30

So given, given a full-on path, given a full-on path, how do I strip off just the name? Path info with path info array shape.

25:58

Um, uh, my brother, I think I'm on Twitch. Am I not? So I think I can just pass in. Am I not on Twitch? I don't know who's calling me from Chula Vista.

26:25

Look at that. The delay on Twitch is very low. That was very close t-to live. Yep. Yep. Yep. I just want base name.

26:46

So can you pass through expected values flags? And I just want path info base name. Flags path info base name. So what does that do? I don't think your internet is on.

27:12

Oh, you're liking the course? That is great news. Um, I'm gonna record the next modules next week, and so the week after that. So if today is the third, which it is, then the tenth would be next week, and so maybe, like, that, the Monday after that.

27:38

All right. Cool. This is nice. I'll take that. So I'm gonna take this, I'm gonna take this guy, get out of here, come back to the workflow, and say that file name equals that, um, path. I don't think your internet is on.

28:00

Josh, are you being, are you being a goofus? You messing with me? All right. So this download YouTube as audio is going to put it in a random location, which is fine, and then download it, strip out...

28:20

Yep, yep, yep. I knew it. I knew you were being a goofball. This will create the file name from that, and then we'll say that. Replace file name. Because then what we need to do is, I think, can we create the model at this point?

28:45

I don't think I should create it outside of an activity, first of all. But what did we do in the migration? S- s- s- create workflows, jobs, podcasts.

29:07

Do we have an external... So the external URL, uh, I want to be, like, the Y- YouTube URL, and so I need an, I need an audio URL, which is gonna be our stash.

29:30

Audio URL. Three thirty working on LiveWire? Mm. What are you building? Slash, are you actually applying for the job at HelpSpot, Ian's job?

29:53

I saw on Twitter some masination, machinations that you were applying there. Uh, external audio. Uh, yeah, I can catch you up here in a second. I kinda wanna get this one done real quick. Um, so episodes have an extra, an audio URL and videos.

30:19

I don't think I'm actually... Hm. Yeah, I do need to strip audio off of my own videos so that I can transcribe them. Let's see. Am I still... How's it going on Twitter? Speaking of Ian. This is amazing.

30:55

Yeah, pretty light. I'll tell you what, that coffee that I made is terrible. Just absolutely terrible. Um, okay, cool. So we can now say, episode create audio URL is, uh... Boy, that's not a URL, is it?

31:16

That's just a path. Which is, which is true. And in fact, I don't want, um, I don't want it to be a URL 'cause it needs to be signed. Mark. Um, so audio URL is wrong. That's a lie.

31:37

Audio path. Um, audio path. Where else did I do audio URL? That's a lie. That should be a path. Okay, now that's the truth. Cool. Audio path. Um, there is a way with this workflows package...

32:02

Oh, here we go. There is a way to have a closure. How do you have a closure? It's like, uh... Oh, goodness.

32:23

What is it called? A side effect is a closure. See, this is cool. Look at this. Look how cool this is. They need some syntax highlighting.

32:46

Um, but this is crystal cool. Look how... Okay, so in a workflow, workflow could be executed, actually, in fact, will be executed, uh, multiple times because it's gonna execute once and get here, and then stop, and then execute once and get here, and then stop, and then execute once and get here.

33:11

So it's gonna run multiple times. So if you need something to only run once, like generate a random number, you can use this side effect thing. Look at this. Look at this.

33:32

This is wild. That's pretty cool. Pretty cool. Pretty cool. Good job. I still think there's, like, a closure on here. Oh, yeah, I can do...

34:00

So what's, what's the difference between a side effect and a, uh, an async activity? 'Cause I could do this. Activity stub async, and then I could put a function in here. So what's the difference? And why would I want one versus the other?

34:27

Um, I think I have to yield this probably. Guys, I don't know. Rather than creating a child workflow, you can pass a callback to activity stub async, and it will be executed in the context of a separate workflow.

34:55

That feels a little too heavyweight for what I'm doing, I think. I don't think that's right. I mean, this is cool. So you can run... It looks like you can run... Mute. It looks like you can run ad hoc workflows without creating a workflow class, which

35:26

is cool, but that's not what I'm doing. My Git commit workflow is, uh, commit whenever I feel like it, especially, especially on this project, um, because it's just, it's just me. So, we will use a side effect.

35:50

All of that to be said, being said, we will use a side effect. So we're gonna say function. Um, I haven't tried FrankenPHP. I'm not smart enough. Um, I- that's not a, that's not a generous take.

36:18

I don't feel like I know enough about, like, mm, the layer right below the application to experiment with something like FrankenPHP. I'll wait until Taylor blesses it with a Laravel package or something. And This is a wild way of programming, by

36:48

the way, this whole async stuff. I'm not, I'm not very comfortable with it, to be honest. Um, yeah, I know Octane has it, but I don't... I've never tried it. It might be very easy. So at this point, if I wanna create an episode, what all do I need?

37:11

I need the-- That's nullable, so I need a title, a description, a publish date, and a status, and the rest are nullable. The audio path, the only one that I put in is actually nullable. So perhaps, um, perhaps we do this. So I'm gonna create...

37:39

So I gotta move this up somewhere. I think I should return more than just the video ID. If I'm gonna go fetch from YouTube, I might as well return the whole deal. Video, what are we gonna-- what's our shape gonna be?

38:05

Let's do it. So we're just modifying it as we go. We need to remember what this shape looks like, and then we'll decide what we want our real shape to look like. So if we DD videos, what am I doing?

38:29

The first one. Uh, right now I'm automating, right now I'm automating some YouTube fetching, et cetera. So what does that look like? All right, so for the table, I need a title, a description, and those are both

38:59

in snippet. So what we're gonna do is title, description. What do I need for the actual table? I need title, description, and publish date. Great, that's not very much. Published at. Can get that out of the snippet.

39:24

So if we get... Let's go look here. Um, I just want that to be called date. So the question is, carbon make, uh, create from. Create from what?

39:46

Create from format. We'll do that. Who knows, uh, the format of this off the top of their head? Oh, there's publish time too? No, this feels like it belongs on the channel.

40:10

Snippet published at. What is this format? This is Zulu. That might just be the default format. I might be able to just carbon make that. Carbon make.

40:32

Ooh. That looks pretty good to me. I don't need to make it from a format at all. Thank you, standards. All right, so I can just do make from here. So then if we do, uh, video equals...

40:57

What did we decide it was? I think it's just an array. Oh, is it just an array? It's just an array, so we're gonna say video equals R get videos zero. Oh, no, I wanna get... No, I wanna get by key.

41:18

I wanna get the first one, zero. Um, if not video, return an empty array. And now we're down into... Oh, man. You know what? Somebody taught me that when I was, like, in the middle of recording the SQLite course.

41:45

It's like the first several videos are all me hand-typing clear like an animal. Telling you guys, I don't know, I don't know super much. Hello, uh, logs enroll. Hmm. Hmm. Title is gonna be...

42:08

Oh, that's cool. So now we're at video. And now we just need to pluck it out of snippet. So we will use, uh, data get. So we'll use data get video snippet.title, snippet.description, and snippet.publishedat.

42:40

I don't need to do snippet, do I? I should make that better No, wrap it, you doofus. Oh, well that's incredibly frustrating. Okay. Uh, DD this.

43:06

Uh-huh, got the title. Oh, that's a great idea. Diet Coke consumption. Unfortunately, it'll be really easy to measure right now, 'cause it's at zero, like a loser. I'm not drinking a single Diet Coke. Hey, it's still Life OS.

43:31

I'm not shy about calling it a Life OS. I just don't think people knew what it was which may be, which may inform what you're doing, Kitsy, but I don't think anybody knew what it was. Um, I'm gonna change this to video equals data get videos zero dot snippet, because then what I can do is clean that up,

44:01

and in fact, I don't need data get anymore because this is an object. Oh, so I can just kill that, and then kill that, and then kill that, and put that back. And then I need a trailing. So that feels cleaner to me.

44:33

Yep, that feels better. Yeah, that's exactly what happened, is people were like, "Oh, what operating s- or what, uh, w- like what flavor of Linux is this gonna run on?" And I was like, "Oh, you've badly misunderstood what I'm doing." So it's, it's a Life OS, but it's, uh, it's not, not what you're thinking.

45:00

Um, Jason, I did actually... I didn't get a, I didn't get a McFlurry, but I did actually go to McDonald's and get a soda that day. Uh, fetch latest YouTube. So now this will return a better object.

45:25

If not video, return an array. Do I wanna return an empty array or a false? Uh, uh, uh, uh, uh, I don't wanna inspect into it. Yeah, Jason, Jason shared some pictures of McFlurry machines that did not, did not work for my stomach.

45:55

Coke Zero. Guys, guys, guys, guys, guys. The problem with Coke Zero is that Coke Zero tastes like Coke. I don't like Coke. I like Diet Coke. Diet Coke is its own thing.

46:24

You know what's good is Dr. Pepper Ten, because Dr. Pepper Ten tastes like Dr. Pepper, and Dr. Pepper is really good. If I had a functioning pancreas, which I don't - Pepsi gang, okay, that's adorable.

46:46

If I had a functioning pancreas, I would drink Dr. Pepper all the freaking time. I would be so unhealthy. Oh, man, you should not drink anything Coke related. Uh, yeah, but isn't it, isn't it pretty good? Isn't it pretty yummy? I think, I think you're forgetting how good it is.

47:11

Like, maybe, you know, health or whatever, but you're forgetting that it's quite yummy. I don't care, Restream. Why are you telling me this? I don't care about that. Don't, don't, don't, don't put your branding into my thing. I pay for your service. Pepsi Twist, what even is that?

47:34

I've never heard of that in my entire life. Ha ha ha. So now at this point, video is a proper object, and we need to change this to be, ch-choo, bam. Did I do that right? I didn't even return the ID. Hey, come on.

47:55

Come on, guy. Use your brain. Use your big, powerful brain. F. The ID lives above, it lives above the snippet. ID, video ID. Shoot. Um, shoot.

48:21

Dang it. I gotta go back. We must return. Oh, silly, silly boy. Video equals video zero. Silly boy.

48:44

I don't even need to do all the data get stuff. Video ID, these are proper objects. Video ID. Snippets. Does that work?

49:10

Yeah, that worked. Why no 1080p? I have no idea. What are you seeing on YouTube? It's probably because I'm streaming in a weird, uh, aspect ratio, so it doesn't conform strictly to 1080p.

49:33

Does it still look okay? Hmm. Hmm, sure enough.

49:58

That's interesting. I don't know, man. Yeah, 864p on Twitter or on Twitch. Um, I don't know. It's a good question. See,

50:30

this is the thing. I can't pump any more through 'cause it's telling me that Twitter can't handle it. So my resolution's 2016 by 864, and I'm pumping as much as I can without Twitter just totally bombing out. Um, so I don't know.

50:55

Don't know, y'all. Figuring it out as we go. Um, I have not made a decision on the swimming pool, but I think I'm gonna, I think I'm gonna build a swimming pool. Can you imagine, can you imagine how much good content that would be? Are you crazy? That would be amazing content.

51:19

Would it be a disaster? Probably. But that would make it even better. That would make the best content. So there's such a thing as, there's such a thing as a natural pool, and most of them look, most of them look pretty janky, I'm not gonna lie.

51:47

Um, over two years, yeah, that's the problem. Natural swimming pools. See, this is what most natural swimming pool... Get out of here. This is what most natural swimming pools look like over here on... Nah, stop doing that. Over here on the right. And I don't want, I don't want a, I don't want a pond. I really don't want a swimming pond.

52:10

I want a swimming pool, and this is a swimming pond. And you know who's not gonna love that? The boss. She's gonna be like, "Hey, if we're gonna build a pool, don't build me a, a dirty koi pond. Build me a swimming pool." But I mean, that's cool.

52:33

That's just not what I want. Look at that. That's cool. I don't want that. Can I zoom in on this and it comes through? Yeah, that's boss. Um, but I watched one recently, I watched one recently that looked like a proper... See, look. Look at that.

52:54

Um, that, that's great. That looks like a swimming pool to me, and it's got that recharge zone at the end. All right, we'll click in. We'll click in. We'll give you, we'll give you a click. So it's got that recharge zone at the end, and that's where all the plants go. But look how... That's a swimming pool. That's normal. Man, look at, look at the views on...

53:20

This is crazy. 200,000 views, 500, 600, 500. 500. See? See? I gotta build a pool. This is, honestly, this is exactly the, the style that I would go for.

53:47

I would go, I would go for this style, where we're not gonna have a hot tub. We're not gonna have a freaking hot tub. Hot tubs are trouble. I don't want my children in a hot tub. There's no... up to no good. Um, so we don't need a hot tub. We need a recharge zone with a bunch of doofy-looking plants. That's gonna be awesome. Yeah, and then I don't have chemicals. I don't have, um, pool equipment that's gonna break all the time.

54:10

It's just, like, two or three little pumps that, like, circulate the water and bubble, um, so it adds oxygen. Um, this is cool. I like this one. Let's, uh, let's go ahead and give this a, uh... Let's save that to, uh, uh, watch later. Save to watch later.

54:33

We're gonna watch that one later. That's a good one. Yeah. Maybe a, maybe do a post Laracon, uh, pool conf, but it's not actually at a pool. It's digging a pool. So we could, like, trick people into coming by saying, "Hey, it's a pool conference." And then when they get there, "Surprise, you're digging a pool." Seems kind of fun, right?

55:00

People would like it just for, like, the, the novelty of it. Is, is, um, is Andy Newhouse, are you still here?

55:21

Are you still watching or have you logged off? Oh, I'll provide shovels, don't worry. That's the least I can do. I'll provide you a shovel. Hello, Holaco. Yeah, honestly, I would absolutely rent an excavator.

55:45

That's exactly what I would do. Okay, so I think we can return all of this. So we're in a good spot now. Video, video, video. Um, so now I can move this up a little bit.

56:12

I watch so much DIY YouTube. Actually, I can just leave it down here. I don't need it to move up. So I'm gonna use video and remote, and this is going to be video title. And I can just yoink video description. Video...

56:36

In fact, um, m, m, m... Do I want that to be a carbon object? S, s, s, s, s, s, s, s, s, no, I want it to be a date. I don't wanna pass around a carbon object.

57:03

I don't need it anymore. I would absolutely rent an excavator. Yeah. We're just programming and talking about digging a pool in the backyard. All right, so now this published date, where does that live?

57:23

That lives on date. Status is, I think we have an e- uh, an enum, don't we? Publish status. Uh, what is it? Draft? Draft. Audio path. I do want, um... I think I should store the external ID as

57:53

a way to dedupe. Um, so let's hop back into episodes, external URL. Ooh, is external URL an easy enough way to dedupe? Do I need the... Yeah, let's go ahead and do it, 'cause external URL is where I'm going to send people, um, but I do wanna keep track of the external ID because

58:25

I'll be pulling all of these off of, either off of YouTube or off of somebody's RSS or something. Cool. Cool, cool, cool. So now we need, um, uh, uh, uh, uh, uh-huh, uh-huh, uh-huh. External ID is video ID.

58:49

And external URL, I think I can just construct. If we go back to YouTube, yoink. I can just construct this. So should I even store both? Great question. We're gonna do it. Um, all right, those two go way down there.

59:12

So we've got title, description, published, status, external, external, and audio. Um, okay. So this should only run once. Okay, so we have done this part and this part. Let's go ahead and run this, and then we'll do transcription, associate, label speaker, and set to publish.

59:37

Cool. Let's run this bad boy. Oh, we need to migrate fresh. AR, oh, what is it? C- Control + L? Yeah. That's boss. AR migrate fresh. Oh, yep, migrate fresh.

59:57

"I'm building a book app. I created published at column as a date column. There are books published before the birth of Christ." Yeah, there's one, uh, there's one called Genesis. That one's really old. And then there's one called Exodus that's also quite old. Um, let's see, what else is there?

1:00:20

Genesis, Exege- Exodus, Leviticus, Numbers, Deuteronomy, and that's where I stop. I don't remember, First, Second Kings. I don't f- I don't remember what comes after that. Um, got 'em. Got the lol from Will. Got 'em. That's what I'm after. Um, also, of course, I think the Iliad and the Odyssey are BC. Um, just wanted the lol. That's all I wanted. All right, so we migrated fresh.

1:00:43

Um, oh, Elijah, I'm all over Dig Drive DIY. Love it. It's great. Great, great channel. Um, Joshua, Judges, Ruth. All right, so we don't have any episodes in here.

1:01:09

Uh-huh, uh-huh, uh-huh. And then we can come over here to Laravel.log, clear you out, and then we're gonna run this workflow. And this time-- So last time, I ran the queue worker in work mode, um, but I'm gonna run it in listen mode so that it just, pshh, blows all the way through it.

1:01:36

I think this is... I mean, I think this is gonna work, but I think everything I do is gonna work. Yeah, Dig Drive DIY. He's very likable too. He's just like a guy. And he built, um...

1:02:04

You can see I've already watched this one from three days ago. This is this guy's pond. Look how freaking huge that is. That is-- That makes no sense to me. It's enormous. So I'm not doing that.

1:02:26

Good channel, though. He seems, he seems like a happy dude. Um, he's-- I don't know what he does. I think he does, like, earthworks, and so he's always, like, driving big trucks and stuff, and, uh, he just seems happy.

1:02:48

He's got, I think, two or three daughters, um, and they, like, live on this land in, uh, Fort Wayne. I think it's Fort Wayne, Indiana, maybe. So he's got, he's got, like, a bunch of land, low cost of living, good job. He just... I don't know. I like him. Yeah, that's truly an American-sized piece of land there.

1:03:12

Let's run this bad boy. What are we, what are we yapping around here for? Let's get rid of this. Um, oh, what did we call it? Fetch l-l... I think we have a command to dispatch this. Yeah. Which, if this is, if this is the whole command, do I need a command? I don't think so.

1:03:39

We have counties that are larger than countries. Hell yeah. A hundred-foot-long garden is pretty cool. Here's a question. Before we run this workflow, what do y'all know about bamboo? Do you know much about bamboo? Here's what I know about bamboo. It grows really fast, and it's incredibly invasive.

1:04:03

But if I plant it in, like, metal containers... Don't do it. Uh, the plant. Uh, yeah. See? That's the problem. If I plant it in metal containers, can I constrain it, or is that, is that a fool's errand?

1:04:28

You sell a lot of bamboo? I don't know what that means. Do you literally sell bamboo? Or is this some sort of bit that I'm not understanding? Probably a bit. Um, still sounds like... Oh, I don't know if I want everyone to see what I've been...

1:04:50

I don't know what I have. Have I been ChatGPTing embarrassing things? Um, no, I haven't. There's nothing embarrassing here. Oh, I can hide the sidebar anyway. Cool. Um, all right. Um, how does bamboo, how does bamboo spread?

1:05:16

Is it by roots or by, uh, what's the other option? Uh, some, some sort of airborne seed. Through its roots. Rhizomes. They grow horizontally. Okay, so...

1:05:45

I would love to have a few pandas in the backyard. Can you imagine how cool that would be? Uh, underground, invasive, yeah, yeah, yeah. Tight circular pattern. I don't want that. Okay, cool. Cool.

1:06:09

Fif-fifty to a hundred and twenty years. I think I should be okay. Yeah. So I wanna put a, I wanna put a whole thing of bamboo along my back fence. In containers. I'm gonna do it in containers. Um, so if I clear this and do AR, what's this one called?

1:06:34

Podcasts fetch. All this is going to do is create a workflow. So it created a workflow in a pending state. We currently have no episodes, which is correct. Now, if I run ARQ listen, I think this is the slow one, but it will reload when code changes, which is what I want.

1:07:03

Uh, let's see what happens. All right. Started the workflow. Ran fetch latest YouTube. Back to the workflow. Now it's downloading the YouTube as audio. So it's running our workflow. So you see it, like, uh, puts itself in the queue and then processes the first action or activity, I suppose, and then puts itself back on the queue, and now it's going to the second activity.

1:07:35

Bamboo root barrier. 60 mil thick. That's pretty thick. Cool. What if I put it in, like, giant containers?

1:07:55

That, that'll work too, right? Containers are made of metal. All right, here we go. Uh, download, back to the workflow, save audio, back to the workflow, done. So I think it processed all the steps. So if we check the workflows, we'll see that the status is completed, and we check the episode.

1:08:16

Son of a gun. Look at that. Hot dang. That is pretty boss. Dive into dot, dot, dot. Mm, I don't super love that. But we got, uh, status of draft.

1:08:39

Aaron's course launch. 50 centimeters tall. Oh, it's gonna be very tall. Yeah. Heck yeah. This totally worked. Great.

1:09:01

Let's move on to transcription. We're not gonna run the workflow again, 'cause it's kind of a pain. Let's move on to transcription. Um, that is the best moment, when you're like, "I'm gonna do it," and then it freaking works. Uh, so did we make a transcribe audio activity?

1:09:24

We sure did. Less bamboo? Mm. Sorry. I love bamboo. All right, so we need to make a... I think I actually have a saloon. Um, I'm using Deepgram to transcribe.

1:09:52

Hmm. So let me see if I have... Where would I have Deepgram transcription? Maybe in aaronfrancis.com, which this is going to become. This is going to become my personal site. Um, so if we check over here, we need-- we're looking for a saloon integration.

1:10:16

Heyo. Love that. Make sure it's not hard-coded here. It is not. It is not. Cool. All right, so I am going to... I think we decided yesterday that this is not the way that you have to do that.

1:10:38

You can set the authorization in a better, in a better way. Um, I'm gonna yoink this. Integrations Deepgram. Uh, I'm gonna move the connector to the top level to match the transistor one. Get rid of connectors. Make sure this namespace is right.

1:10:59

App, HTTP, integrations, Deepgram. Feels good. And this one is in Deepgram, uh, requests.

1:11:21

I think that feels good. Did we decide that this was silly? I think we did decide that was silly. Yeah, default auth. Here we go. Default auth. Oh, no. Do you see an API key? Which one?

1:11:47

Where do you see an API key? Please tell me I haven't done it again. So header authenticator. Default is authorization, which is this, so I don't need the second param. And we're gonna take Deepgram.

1:12:13

I don't know if I have that set up. So if we go to services, transistor, do, do, do, do. I do not have it set up, so we're gonna say Deepgram is no leak today yet. Yeah, don't, don't jinx me here.

1:12:35

Actually, I'm gonna blur. Um... See, I'm glad I blurred because look, you can even see it through the freaking, through the blurring. It's showing my AWS keys, but, like, it's hiding all the rest.

1:12:58

So how is that helpful? I can't trust it. I can't trust it. And I can't trust it. Okay. So all right, now we've got our Deepgram secret, and is there a better way to do this?

1:13:19

I feel like I feel like I should be able to set somewhere else that this is JSON. This feels icky to me. We'll just move on. Um, Ahmed, if you can reverse the blur, please tell me.

1:13:48

So in-- So here's our... We're gonna hit the listen endpoint, and the body is URL. So in the constructor, we pass URL, and we also have this multiple speakers thing.

1:14:12

So we can set with multiple speakers to true. Um, and then here are diarize. That's where, um, if there are multiple speakers, it'll try to split them out into speaker one, two, three, et cetera. So let's go back to... Let's go back to our test command, and we'll do, um, a connector equals new Deepgram and

1:14:44

a request equals new transcribe, and this is where we pass the URL. Uh, yes, this is PhpStorm. All right, I need a URL.

1:15:05

So I'm gonna do episode first. So episode equals episode first, and then, um, I need S3. I need storage, disk, S3, temporary, temporary.

1:15:29

Come on. I think it's temporary URL. I think that's right. Storage. Let's just check the docs. They'll probably say. Um, I will be using, uh, Vue.js for the UI.

1:16:01

Temporary. Yeah, that's what I thought. Storage temporary URL. So I need to create a signed URL, which is incredibly easy to do. Do not need a service for this. Uh, episode, the signed URL, where did we put it?

1:16:22

I think we put it at audio path. Is that where we put it? Uh, I'm gonna use, I'm gonna use inertia, audio path. And I don't really care if Deepgram has access to it for a long time. So let's keep all of this stuff together.

1:16:49

So then I can pass the URL to Deepgram, and we are gonna say, if we can, um, hello, request with multiple speakers, because Ian and I are both on the show, of course. It's a good show. Uh, yeah, apparently I need to try Laravel Idea.

1:17:16

Um, so does Deepgram... I actually don't know what Deepgram returns. We're gonna find out together. Um, all right, so I'm gonna grab the first episode. I'm gonna construct a URL out of the audio path that lasts for an hour. Gonna create a new...

1:17:38

I don't need that there. Okay, and then we'll just DD the response JSON. Can I do that? Oh, it returns a response.

1:18:13

Yeah, super useful. All right, body. We'll see what body does. You did request JSON. Let's check the Saloon docs. Mm, responses.

1:18:42

Response body. Yeah, all right. JSON should be there. Uh, we'll find out. Yeah, that's why. Huh.

1:19:04

Just gotta type the right things. That's programming for you. Just gotta type the right things. So can it intuit? Yeah, if I had typed the right thing, it would've worked. All right. Let's run it. Let's see what happens. So we're gonna grab it, URL, new request.

1:19:30

Let's make this a little snazzier. And then we're gonna send it. Request response, response. Cool. What did we call this one? I think this is the test command. All right. Access token must be of type string.

1:19:56

Oh, so my, um... So I did something wrong here. Services Deepgram secret. I didn't. It's just Deepgram. Um, gotta get used to that Control + L thing. Okay, we're getting, getting somewhere different.

1:20:20

Invalid credentials. You know what? I bet that's 'cause I friggin' revealed the key on stream, and so that key that I have there no longer works. So give me one second. Um, this is life OS key. You guys can't see that. Let's just, you know, um...

1:20:44

Okay, create key. You can't see any of this. And then let's swap out the Deepgram key. Okay.

1:21:08

Make sure that nobody can see this. That's an attack vector I actually hadn't thought of. Um, okay, so we're still blurred. And we're back. Let's see if we did it right. I swear, if this thing friggin' dumps my API key onto the screen.

1:21:35

Invalid credentials. Hmm. Sure seems like those should be valid credentials, doesn't it? I am gonna dump this. So see ya. All right, so the key is showing up, but it's saying it's not valid.

1:22:02

Here's a question. If we go back to this... Oh, is that what it is? Do I have to write the word token like a friggin' animal? That's silly. Hey, that's silly. Come on.

1:22:24

You shouldn't need the word token. You should figure it out. So does it just hang, or can I do, like, an async thing? Am I fine with it just hanging? I mean, I've got the workflow, so I might as well.

1:22:51

I mean, the workflow's gonna run in the background, so I don't think it super matters one way or another. Boy. Is that just keeping the request open the entire time?

1:23:17

That would, that would be surprising. 'Cause that's taking... Oh, there we go. Look at all this. My word. I think those are individual s- like, sentences, basically.

1:23:44

Individual words, good grief. All right, so what's our shape here? Transaction key deprecated. I don't know what that means. Oh, we used two General Nova.

1:24:07

I want results, and then I want channels zero. Goodness, what a mess. Why is it nested so much? Um, okay, if we go to, um... Okay, so we're just gonna plop this guy here, and then we're gonna say that response equals response JSON.

1:24:33

Let's go ahead and add a throw in there, so now we're kinda safe. Um, is results a top-level key? We've got metadata that contains nine items, and then I think results is a top-level key. Um, okay, so let's do some, mm.

1:24:57

Hmm. Okay, let's do some multi-cursor. Oh, multi-cursors are the best. Um, that's close. Hmm.

1:25:44

Feels better. Okay, um, is everything-- Yeah, I, I really don't understand why they would structure it this way, but to each their own, as the Bible says. The Bible doesn't say that. Um, speech to text.

1:26:05

That's not what I want. Text to speech. Uh, no, I do want speech to text. Um, pre-recorded. Uh, Deepgram. Deepgram is a transcription service.

1:26:31

Well, it's a, like, an AI service. Show me the format. Show me the actual format. Okay. Results, channels, alternatives. Yeah, they, they sure do. And then they give you every single word, which is good, I suppose, for timestamping.

1:26:57

All right, in this response, we see transcript, confidence, words, transaction key. I wish it would give me, like, a API.

1:27:23

Like, I don't wanna use your SDK, I wanna use your... Yeah, that's what I want. Transcribe, post to listen. There we go. Post to listen. See, this is-- I could, hmm.

1:27:46

I could do it async, but do I care? I don't think I care. I think that would just add complexity that doesn't get me anywhere because it's not, it's not happening in the request-response cycle. So, I

1:28:20

don't think I care if it's async. Hmm. I don't care. Sorry, just texting the boss. Okay, I don't care.

1:28:42

I do not care. It does not matter to me. So, um, transcript. Transcript is gonna be response of... So I've narrowed the response all the way down to zero here. So response, uh, response is zero, so now I can just do, uh, it is an array, so I can just do, uh, transcript.

1:29:12

What am I doing? Should I just create a m- should I just create the model here? Um, so transcript is there, and then what else do we have? I think we have words, and we have summary. Boy, this, this one's way too fast.

1:29:35

I don't like that one. Okay. Um, confidence I don't care about. Words, I, I'll keep words just for giggles. But I-- Whatever. I'll just keep it for giggles. Uh, yeah, PhpStorm works great with, uh, JavaScript.

1:30:02

Sushi is also great. Lots of words. Um, ooh, paragraphs is good. I actually do want paragraphs. Paragraphs is probably what I end up putting on the webpage anyway. Paragraphs, and then summary sure feels outside of-- I feel like summary's way out here.

1:30:30

Um, so we'll call that results, and then we'll say that summary... Did I do this already? Where do I use this transcribe? I wonder if I've already done this. I guarantee you I've already done this.

1:30:52

Find usages. Mm-hmm. What a freaking disaster. So I just do paragraphs here. Um, boy, destructuring this response is kinda gnarly.

1:31:21

So I'm claiming it's results channel zero, alternatives zero, paragraphs paragraphs, which is just horrifying. I think I'm gonna just drop that out. This is just disgusting Uh, yeah, I think the words do have...

1:31:48

I think this is alternative words, and this is alternatives zero transcript. And this is... Man, this is hideous.

1:32:08

I hate this. See, I don't think it, I don't think summary is all the way down there. I feel like summary is out at the top. Summary.short. Results. Is it-- F this.

1:32:29

This is gross. What do the docs say? Query params. Responses. Two hundred response. Okay, metadata, don't want that. Results, objects, alternatives, transcript, confidence, and words are down there.

1:32:56

It's freaking-- it doesn't even show me where summary is. Ah. F that. That's so frustrating. All right, we can do it. By sheer force of will, we can do this. Um, I don't think summary is all the way down there.

1:33:29

You know what I'm gonna do? Here's what I'm gonna do. This is a good idea. Um, response equals, um, I am going to pull out the ones that I know exist. So I'm gonna pull from response. Does this take dots? I think it takes dots. I think it will.

1:33:51

Um, so I'm gonna pull out... This is what I'm gonna do. Boy, oh boy, oh boy. If we pull this out, um, that pulls it out, passes it in by reference, so it will affect the...

1:34:12

And then we'll get the key out, which will make the whole thing smaller, which is what I'm after. Results, channels, alternatives, zero.transcript.paragraphs.paragraphs. Okay, so then what I'm gonna do is I don't think that one is right, so then I'm gonna DD the response. We're gonna see what is left after plucking all of that stuff out.

1:34:38

Yeah, I think that'll be fine. Unfortunately, we have to... Gotta run the whole thing again. Oh, what is it? Test? All right, so it's gonna run the whole thing again. So are we learning anything?

1:34:59

I don't know. I think we're learning, um, I think we're learning that I don't like the response format of Deepgram. I think we're learning that workflows are cool, but a little bit hard to test.

1:35:20

Let's read the testing docs on the workflows. Um, yeah, Rox Codes OBS. This video tells you how to do it at the twenty-six minute mark. So how to get started live coding by Rox Codes. So if we look at testing.

1:35:47

You can execute workflows synchronously. Yeah. Um, workflow stub fake, and then mocking the activity. That's kind of cool. So you can mock an activity, so that's good.

1:36:12

That's a way to test, uh, parts of a workflow without testing the whole thing. I do wonder... Here we go. This is what I want. Hmm.

1:36:35

It's not very pretty, but I think it could work. Yeah, I'll need to write, I'll need to write a little harness around that, 'cause I don't think that's that pretty. This chaotic zero now to date time string doesn't feel right to me.

1:37:14

Okay, so this is interesting. Um, hello, hat guy. Oh, it's hysterical. What a great show. So alternatives.paragraphs.transcript contains... I don't think I want that.

1:37:37

I don't need that at all. I don't think I need that at all. Let's take this whole thing. This is not great. This is not great, not great video.

1:37:58

Um, all right, if we do, uh... Let's just do plain text. I'll drop this in here, and then we can just clear that out. All right, now we're getting somewhere. All right, so transcript paragraphs.

1:38:24

So it's at the same level as channels, so it's results.zero.summary.short. What a freaking disaster. So summary is results. What did I say it was?

1:38:50

Oh, no, results.summary.short. Yep, yep, yep, yep, yep. Hello. So results.summary.short. Value creation framework for advertising and creating a dinner party.

1:39:21

Ah, is the summary useless? Do I even want the summary? Um, I don't think that summary is very good. Guess it's better than a poke in the eye, but it's not that good. All right, so I can create a transcript.

1:39:45

Yeah, I don't think that was a part of it. All right, so what can I do to make this look prettier?

1:40:11

I can... Everybody belongs under the results key, so I can pull that guy out. Yep, yep, yep. So can get rid of you guys, um, and then I can do, oh, what would I call this?

1:40:34

Something. All of those belong under .0. Doesn't need to be pull anymore. Um, so this one, this one, and this one don't need to be pull. This should be there, but I'll do get instead, and then I'll do ASDF, and then I can drop all of those.

1:41:04

That looks better. Paragraphs.paragraphs is insane. I mean, I'm, I'm guilty of that, but it's insane. Uh, yeah, I store everything, all podcasts I've been on and all podcasts... Well, all podcasts I've been on as a host or a guest, I store the audio on S3.

1:41:26

Podcasts, go away, man. Results is unclear, but that's fine. Transcript, words, paragraphs, and summary. I probably need to store, um...

1:41:51

We'll just say that everything I'm doing is gonna come via audio path, so if I ever need to get back to it, audio path. So now I know what the file was. I get the results back. Y'all, I wish I could play this on stream.

1:42:18

Yesterday, I played like 30 seconds on stream, and boom, got slammed. YouTube was like, "Hey, you stole this music, you little thief." It's like, shoot, but it is so good. S- this song specifically. Look up Creatures in Heaven by Glass Animals. It is so good.

1:42:51

Hey, Benjamin. Um, the transcript table, that ain't gonna work, 'cause we don't, we haven't done that. So what have I done here? What have I done? I need all of those guys, and then we'll hop back to the create podcast table and look for transcript.

1:43:14

Morph, yeah, right. I'll do that some, some point. So this should be table. Most of it's gonna be JSON, so I'll start with JSON and then close all of these guys out. Um, I mean, can it be nullable? I guess. Most of them can be.

1:43:37

Um, you can't have, can't have a transcript without an audio path. I guess you could have an incomplete transcript, should you... Yeah, yeah, yeah, yeah, yeah, yeah. That really should be a morph.

1:44:03

But I don't want to do that. Um, so this is actually a string. That is-- These can all be... I think that should be text. Yeah, that's actually just text. There's nothing... So we'll put the summary up there, and then the transcript is, I believe, JSON.

1:44:28

The words are definitely JSON, and the paragraphs are definitely JSON. Okay. I don't wanna lose the episode, so what I'm gonna do is yoink. Um, AR make migration create transcripts table.

1:44:55

Create transcripts table. 'Cause it's already there. This is not necessarily how you should do things, but that's okay. Okay. So do we have a transcripts table that has stuff in it?

1:45:19

We sure do. Cool. All right, I got twenty more minutes. It's almost noon. I got twenty more minutes. We didn't get to the Telegram stuff, did we? We're barely getting to the diarization stuff. Which is fine.

1:45:45

Um, ooh, should I store... I feel like I should store speaker names. Um, I should definitely store speaker names. Table JSON speakers. Yeah, high noon. We gotta go underground so we don't melt. It's what we do in the afternoons in Texas.

1:46:08

JSON speakers. Um, AR migrate. I'm actually gonna migrate down. I never do this. Migrate, roll back just one and migrate. So now we have... Great, now we have speakers. How do I know how many speakers there are?

1:46:35

Oh, F. Ah, dang it. I didn't know Chris was here. Shoot. I didn't know he was here. Oh, no. I'm gonna delete the down method before I commit it, just so you know.

1:46:58

This sucks. I gotta... To figure out how many speakers there are, I have to, like, walk through the paragraphs array, which is stupid. That's very, very stupid. I do not like that. But hey, we have to do things we don't like sometimes. Audio path, yes.

1:47:20

Uh, speakers, we're just gonna say are null right now. Rather empty. It's nullable. I don't need to do that. Um, and in fact, let's go over here. Oh, I will continue to develop it. Trust me, Target X, I am, uh, not guarded.

1:47:45

Actually, guarded's fine. I am not living my best life because all this stuff keeps falling through the cracks, so I'm definitely gonna do it. That is boss man Chris. Speakers. Yo, yo, yo, there we go.

1:48:13

Cool, cool, cool. I will say, I will say I do feel like I'm doing this right. I think this is gonna work. Not just, like, this specific thing, but, like, I feel like this system is gonna work.

1:48:36

Oh yeah, I'm gonna live stream the whole thing. So you're gonna see. Somebody made a hysterical, um... Yes, that is me formatting the code. Somebody made a hysterical tweet that was like, "Aaron said he's gonna be working on this for months, and then he held up a blank sheet." Um, and it is kind of blank, but it actually has stuff on it.

1:49:00

You just can't see it. But this is... That's what we're building. That's what we're building. Greenville? Do you know where I live? I'll be honest, I don't know where Greenville is, but I do know it is not, it is not here in Texas.

1:49:26

Um, so before I go through the pain of transcribing again, let's just see if I've done, let's just see if I've done this right. Um, so we'll just say that summary is an empty object. Paragraphs is an empty object. Words is an empty object. Okay, I did not write my API keys on, on this sheet of paper.

1:49:52

Very, very funny, sir. Uh, summary is an array. It sh-should be text, and audio path should be text. Cool. Cool, man.

1:50:16

Crystal cool. So I haven't dorked anything up there. Um, all right. So, all right, we're gonna run this one time through again. Uh, yeah, argit is the same, except it only works on arrays. Um, datagit works on all of it.

1:50:43

We're gonna run this one time through out here, and then we're gonna run the workflow again. Godspeed to us all. Should we talk about bamboo while this is running? Here's the containers I wanna put the bamboo in.

1:51:04

Um, metal planting containers. No, those are ugly. That's not what I want. I want something like that, um, but much, much taller. Much, much taller. Corten. I think Corten is right.

1:51:25

Um, Corten steel planters. See, look at that. Look how cool that looks. Now, imagine, imagine that was full of... Imagine that's full of bamboo that's, like, 12, 12 feet tall. Hell yeah, right?

1:51:46

Along the back fence. No, no bamboo roots are getting out of that thing, and it's gonna be super tall. Yeah. I don't wanna learn how to weld. I mean, I kinda do. I kinda do. But this is what I want, Corten, because it rusts so nicely. Like, look at that.

1:52:08

Wow. Cool. Good job, Aaron. Good idea. Um, oh, it finished. I guess we're not dumping anything. Reduce spread. As if I know what that means.

1:52:29

Um, okay, this is interesting. For a new... The speaker discuss their desire for a new hat. Yeah. Yeah, maybe we did.

1:52:52

Um, AR tinker transcript first. Yeah, Chris is, he's trying to, he's trying to fool me.

1:53:15

I'm not, I'm not falling for it. So I need... Why are... Why is that freaking quoted like that? That's my question. Oh, I think I know. I don't know if it actually is. No, I think we're fine.

1:53:46

I don't think those are extraneous quotes. No, they sure are. Those quotes exist. Dang. Why are, why do those quotes exist? Oh, maybe because... That's why. I cast summary as JSON, so that would explain that one.

1:54:10

And it looks like I cast transcript as JSON. Those quotes are in the data. Confirm. So it looks like summary and transcripts are... Shoot, I'm gonna migrate down again in front of Chris. This is so embarrassing. Wrong one.

1:54:36

So speakers is an array, summary is text, transcript is text, JSON words, JSON paragraphs. So I got transcript and summary wrong. Yep. Speakers, words, and paragraphs. I know.

1:54:57

I just haven't written any seeders yet. I need to write seeders. All right. What we're gonna do is we're going to AR migrate down, roll back. Uh, nobody clip this part. I'm actually using a down migration. AR migrate up. We're clear, and now we're just gonna yoink this from test.

1:55:22

We're gonna yoink this whole thing, and we're gonna run the workflow again. All right, so if we look at the workflow, workflows, mostly technical workflow. Where are we? We're down here. So we've created the episode, now we need to transcribe. So we need...

1:55:47

Let's do the whole thing. I think they serialize models for us. Is this real, transcribe audio? Yeah, I didn't think so. What's the activity actually called? Transcribe audio. Yeah. Hey, Shan G. So if we hop into transcribe audio Very good, very

1:56:17

good stub, Aaron. Very smart man. All right, we don't need episode first. We just need, um, a path. Love a mute button. Uh, and then we can just put path here. S-so what's the default for temporary URL?

1:56:44

No default. You have to pass it. All right, that's fine. Mm, mm, mm. Yeah, that's fine. I'm into that. That is fine by me. What are you complaining about? Duplicates? Well, how about that then?

1:57:08

All right, did we import-- We imported Deepgram and Transcribe. Can I make this prettier? I feel like this isn't super pretty. All right, so this is not idempotent, um, because every time this runs, it will return, it will create, it will create a new transcript.

1:57:36

Um, so why don't we do this? Transcript where... This means I can only transcribe something once, but I think I'm into that. Where audio path equals path first.

1:58:06

Mm, mm, mm. So we're just gonna short-circuit this. So now it's idempotent. I can make that better.

1:58:33

So now, should I put an index on that? I will, but I'm not gonna re-migrate. Create transcripts table. I mean, how many indexes am I g- I mean, how many rows are gonna be in here? It doesn't matter. Who freaking cares? Um, yeah, I, I don't know if it's idempotent or idempotent. This

1:59:05

guy says idempotent. Let me pause so I don't get freaking banned. No, I don't wanna update OBS right now. Why would I ever wanna update OBS right now? Idempotent. Idempotent.

1:59:27

Idempotent. He's got a little, he needs a, he needs a pop filter. Idempotent. Idempotent. Idempotent. Idempotent. Idempotent. Idempotent. Idempotent. Idempotent. Cool. That's basically exactly what I said. Idempotent.

1:59:51

Cool. I think we're ready to run this workflow all the way through. Did we make this idempotent? I think we did. So if a transcript already exists for this audio path, um, I could do something fancy where I do, like, first or, and then a function to, like, actually create it if it doesn't exist.

2:00:12

But that, I don't like nesting stuff in callbacks like that. I just wanna return early and get out. Okay. URL. Create a temporary URL. That's fine. Um, oh. I am not guaranteed, I am not guaranteed that this will always have multiple speakers.

2:00:44

That is not a guarantee. If, um, multiple speakers... You know what? That's gonna get gnarly, huh? Um, mm, mm, mm. Yeah, I've thought about making it public.

2:01:05

I think I'm, I think I will. I, I mean, I don't... I'm not gonna sell this. Like, this is not gonna be a SaaS or anything. I don't have dreams of... I am building this 100% for myself. Um, but it might be fun to open source it. So maybe.

2:01:26

We'll say maybe. We're gonna do something that's either clever or stupid and possibly both. Um. How do we feel, how do we feel, like, how do we feel about this?

2:01:51

Is callable right, or is it... I think callable's right. How do we feel about this? This seems kinda cool to me. I kinda dig this. So then if we hop out to the mostly technical workflow, we can transcribe.

2:02:17

The path is, um, episode audio And then, um, I hate that you have to pass this through the execute, 'cause you don't get any type hinting at all.

2:02:38

Which, like, what am I even saying? I sound like a, sound like a TypeScript guy now. Um, so I think I can do function request as a type of, as a type of transcribe, in fact. Um, so then I can say request with multiple speakers.

2:03:04

That feels kinda cool. I'm not gonna lie. How do we feel about that? Formatting, I'm not in love with. In fact, I'm in hate with the formatting. That's a little chaotic, but I do like that better.

2:03:27

Oh, should I do a freaking... Oh, I hate to say it, but that's much better. Hate to say it, hate to say it, that's much better. Um, that's cool. I love a callback.

2:03:49

Love a callback. Callbacks rule. Um, this feels cool. And if there's one thing I'm optimizing for, it's being freaking awesome, and I think we've done it here. See callable with request, and then if with request exists, then we're gonna pass with request.

2:04:24

It's cool. You gotta admit, it's pretty cool. We love stuff that's cool. That's all, that's all anyone ever wants is to be cool, right? All right, so we're gonna return that. I know. I gotta make a video before everyone's like, "Oh, cool. These workflow things, now I know about them." I want people to be like, "Whoa.

2:04:46

Great video, Aaron. Good job. You're so smart." Oh, what's the boss say? Man, you know what we do a lot? We play a lot of Catch Phrase. Have you guys ever played Catch Phrase? We play a lot of Catch Phrase. Catch Phrase, Catch Phrase is the best.

2:05:12

I think this'll do it. Um, and so then I need to associate... So then I will episode, I need to do this in a side effect. Episode update. I could associate, but, uh, I don't know how to do that right now. Episodes, transcript ID.

2:05:38

So I need to do this in a side effect as well. Do I? I don't. It doesn't matter if that happens 100 times. It's gonna be the same thing. Don't have to care about it. Cool. Um, so that's that.

2:05:59

What we're gonna do, however, is we're gonna just say, I don't wanna run all of that. We've got an episode in the database, episode first. Now we can just dispatch the workflow and skip the YouTube part. Let's get this transcript out.

2:06:22

Oh, F. No, I just deleted the episode. Son of a... Ah. Um, that was a very, very silly thing to do. Is there any way to get that back? That was a very, very silly thing to do.

2:06:47

F it. We'll do it live. We're gonna run the whole thing. Yeah, that was, that was, uh, not my best. So, like I was saying, uh, we are going to run the whole thing because I just deleted the one episode, the one model in the database that I actually needed.

2:07:10

Um, so we're gonna do it all. All right, let's do it. We're gonna watch this bad boy go. Um, ri-dit-dit-do.

2:07:31

We want... So we're gonna dispatch this workflow by running podcasts fetch, AR podcasts fetch. That's just gonna put it onto the queue. It's not actually gonna do anything. So we have a workflow that is pending. We've got one that's completed, which I deleted all the models for, so good job, Aaron.

2:07:55

Um, now we can run AR queue listen. All right, here we go. This is so freaking cool. These workflows, man. You know what's great about these that I realized last night?

2:08:18

Um, you can, like, run a workflow that requires user input and pause that workflow While you're waiting for the user's input, which is what we're gonna do here in a second. Here in a second, we're gonna send me a message on Telegram from this workflow and ask me to give names to the speakers, and then once I give names

2:08:48

to the speakers, the workflow will continue with that input, with that data, which is just incredibly cool. All right, so here's something. Here's, here's another cool thing. Um, here's another cool thing. Um, so this workflow, so the episode got created, which is good. Now, the workflow has failed.

2:09:11

Um, so let's open... Let's see what this workflow failure looks like. Waterline failed. So, exceptions.

2:09:39

Hmm, not, not very, um, this gives me no information. I have no idea what failed. Workflow, workflow handle, run next job, run worker handle. I don't know where it failed, which is not great.

2:10:08

Get return. Huh, this is interesting. So it ran save audio with a null result, uh, downloaded fine, and it fetched just fine. All right. Boy, I do, I do think that exception should be better because this gives me no indication where in user

2:10:38

land it actually occurred. This is all vendor code. I need, uh, I need that TH right there. They need to re-throw that. I need that. I need access to that TH.

2:11:01

In fact, let's go monkey about with it. Workflow.php. Workflow.php. Uh, we gotta go to vendor. Vendor, where are you? Laravel Workflow, which is not what it should be named.

2:11:22

It should be named Workflows for Laravel. Um, workflow.php, and then 214. Yep, throw TH. Actually, you know what? They, maybe, maybe it's time to make a PR.

2:11:43

Exception equals that, and then can't you do something like... Maybe you have to pass it in through the constructor. Message, code, previous. Yeah. So if we do this, um, we can go back here, and we can say message is that, previous

2:12:16

is the TH. So we're gonna at least give us access to it. We'll see if this works. The good news is, um, I think we can skip over the getting the YouTube video now. Um, so if we go to Mostly Technical, it did not get to the transcribe audio part.

2:12:46

Let's do this, um, just to make sure our side effect thing is working. Instead of this, let's do return episode first, 'cause I've, I've never used this side effects thing, so it's possible that that's the issue.

2:13:11

So let's stop this, clear it out. Uh, fetch, podcasts fetch. That's gonna add the workflow. AR listen, queue listen. Uh, immediately failed. Okay. But did we get more information?

2:13:38

You goofball. You goofball. All right, let's run this again. AR, what is it? Episodes, podcasts, fetch. Oh, can't have any empty views. Come on.

2:14:08

Great, cool. So did we get more information? Number five. I don't feel like that helped me at all. Guys.

2:14:31

We're just gonna re-throw it Throw th. So if we fetch... Yeah. Yeah. Thanks, thanks for nothing, library. Oh, you're probably right.

2:15:01

All right. What is this exception now? Ha-ha. That would have been good information to have. Cannot get return value of a generator that hasn't returned. What?

2:15:32

Who hasn't returned? Well, just run the freaking thing then. This is interesting. This is a rough edge, IMO. I don't know what that means.

2:15:57

I mean, I understand, but I don't know how to fix it. Huh. How do I fix thisss?

2:16:34

This is interesting. We're gonna do it live. We'll just figure it out. Um, workflow.php. What is coroutine?

2:16:56

Nothing. Hmm. Where's this freaking coroutine?

2:17:27

This is interesting, isn't it? Um, here's what we're gonna do. We're just gonna dump it out.

2:17:52

It's a generator. It's a closed generator. But I feel like it... I know very little about generators, which is probably bad right now.

2:18:26

That's why I couldn't find it. Um, throws an exception if the generator is still valid. If this isn't replaying, so we're not replaying... Why is it trying to get...

2:18:56

Boy, I really don't understand what this is doing. So if we do fetch & arq work once, that should... Yeah. Oh, serialization of closure is not allowed. Is that a real...

2:19:25

Uh-oh, we're getting to the point where I don't know what's happening, which is not good. What? Oh, it's still pending. Yeah, I don't know anything. Nobody knows what's going on here.

2:19:53

So this one is still pending. This should fail. Just running over and over and over. Huh, I don't know. I wonder if, um, Amex.

2:20:18

So, what am I doing? I feel like this side effect thing is not working like I would expect it to. Um, um, okay, first of all, we're not struggling to build anything except

2:20:50

this thing that we're trying to build. Okay, the code inside a side effect should never fail. Yeah. Yeah. I mean, sure. Is it failing? That's what I don't know. Um, why don't we unwrap this and just say...

2:21:16

Let's just say that episode equals episode first. I just can't imagine that that's failing. So if we were to run this guy now. So that'll put it on ARQ listen.

2:21:39

Okay, so that actually just straight up failed. Which is good. That's good, that's good, that's good. So we're eliminating variables so that we can see what is failing. Serialization of closure is not allowed. Oh, man. My awesome idea.

2:22:08

Man. This doesn't work. Man. Man. Reply Hard Studios.

2:22:33

Um, well, that's a real disappointment, I'm not gonna lie. It doesn't work because I have this closure here, and apparently serialization of closure is not allowed, which is silly because Laravel has a serializable closure.

2:23:04

So in fact, serializable closure. Um,

2:23:44

so it failed because, um, it failed because I can't have serializable closures, which is silly because we have a way to serialize closures. So it's like, why don't you just do that? Um, so we're gonna try this serializable closure thing. Yeah, there's a serialized closure right there.

2:24:07

It's right there. Like, why can't the workflow thing just figure that out? Um, so the question is, how do I call a serialized closure? Call user func on the serialized closure, get closure.

2:24:32

Um. Okay, cool. All right, so we have a serialized closure. Um, PHP is so great. So instead of...

2:24:57

Does this have a make on it? That would be awesome. No, there's no make on that. That's too bad. Pity. Uh, all right. We're just gonna say that we'll pass a serializable closure in, and we'll make this a little bit prettier.

2:25:29

What are you complaining about? I just, I just do not care about that one bit. But see, I don't want that there either. My life is hard. Um, disable.

2:25:50

I just don't care about that at all. Now we need to update the transcribe audio to accept a serializable closure, and then we need to say call user func of with request get closure, pass through the request.

2:26:12

I will not be out-clevered. I want my cleverness, so I will make it work. Hello, Lazar and Pet Food Guy, and Lewis likes Australians. That's good. Are you Australian, Lewis, or do you just like Australians? Either way, that's great.

2:26:35

Okay, episode first. Um, let's clear this and say AR podcasts fetch, and then AR queue listen. All right. Hey, we're not failing. Hmm.

2:27:02

So this is gonna transcribe the audio. Oh, that's cool. That's cool. That's good to know. Let's verify that that's true. It's true.

2:27:25

Cool. Good looking out. So does that mean... Does that mean... Shoot. Look at that. How's this workflow doing?

2:27:54

Oh, it says it's done. Let's look at the episode. The episode has a transcript. We did it. We did it, we did it, we did it. We did it. Cool.

2:28:16

I dig. Um, is it stupid? Maybe, but is it cool to do, um... Where would that live? Where would that live? Um, let's go to the app service provider. Um, what if we did this?

2:28:42

Is this stupid or cool? Um, do I need to do this at like a... Where do I need to do this? Foundation helpers. If function exists.

2:29:06

This feels, this feels stupid, but I think it could be cool. No, I don't think I can do that. No, I don't think I can do that.

2:29:27

Yeah, uh, AR is PHP Artisan. So I think we did it. Um, let's run the whole thing. So did we get diarization? I bet we did. That's fine. Label speakers. We'll have to do label speakers tomorrow, 'cause we're running out of time here.

2:29:48

Let's run the whole thing, and then we can call it a day, and then we'll do Telegram tomorrow. Oh, tomorrow's 4th of July, isn't it? I'm fine creating an enum

2:30:18

now. Let's do that right now before we move on. Let's create a YouTube channels. YouTube channel. We'll make it string-backed, and we'll say case Mostly Technical equals.

2:30:51

Uh, is that gonna cast it to a value or to a string?

2:31:24

So if I were to say string channel, does it cast it to a string, or does it keep it an enum? I bet I have to do bet get value. Blegh. That's PhpStorm.

2:31:53

Wah, wah, wah. I just want it to, like, magically turn it into... That's just so ugly. I'm just gonna make it accept an enum, 'cause that's hideous, and I don't like that. YouTube channel.

2:32:18

Channel. I know, that's what I was thinking. It implements two strings, so what's the freaking deal? Um, channel value. So can I just, could I just brute force it? J- that's silly You

2:32:50

can't even, you can't even brute force it. Pity, pity, pity, pity, pity. Enums are cool, though. But alas. But alas, um... Yeah, that's fine. So I'll pass an enum, it expects an enum, and then I'll pluck the enum.

2:33:14

That's fine. This is good. Okay. Let's run the whole thing and see if the Mostly Technical workflow works. Yeah, that's fine. That's fine.

2:33:47

Do I use filename anywhere? Sure don't. You gone. Okay, that's better. I do use remote, so we're gonna leave that one there. I use it twice. I use it here and here.

2:34:14

This is a no return, so I don't think I, uh... I'm just yielding it. I don't need to do anything. Side effect. I think this is gonna work, but I think everything is gonna work. All right, let's do it. We're gonna run the whole shebang. Let's, uh, delete that, and let's just go ahead and delete, uh, all those workflows.

2:34:42

I should just migrate fresh, shouldn't I? Too late. Videos, episodes. All right. Godspeed to us all. Okay. Podcast fetch. Throw the workflow on. Yes.

2:35:03

Queue listen. Here we go. Fetch latest YouTube. Now it's downloading. Oh, guys, is this gonna make my life better? I sure hope so. I sure hope so.

2:35:26

12:30? Okay. Is it working? Mm-hmm, mm-hmm, mm-hmm. That's a big question. What do you think about AI?

2:35:48

Um, I think it is fundamentally going to change everything about the world, and also it's totally overhyped, so. How you square that circle, I don't know. You and Ian with that East Coast time. Man, you know what the worst time of day is?

2:36:11

It's 3:00, 'cause you're kind of sleepy, and you're also like, "Man, the day's almost over. I haven't gotten enough stuff done." It's 3:00, where you're like, "Shoot, I wish it were not 3:00." But fortunately, it's only 12:30. Look at that.

2:36:34

Did it work? Completed. Do we have a transcript? We have a transcript. Do we have an episode? We've got an episode. Hell yeah. Totally worked. So now what we will do tomorrow is we will, um, send Aaron a telegram.

2:37:05

Well, let's see. Figure out how many speakers there are on the podcast, 'cause it could be, it could be Aaron, Ian, guest, guest. We could have two guests. We could have multiple guests. Um, send Aaron a telegram message and say, "Who is," uh, let's say, "For each speaker, ask what the

2:37:35

speaker's name is." Um, this is gonna be fun. Receive names back. Store them on the transcript. Uh, transcript, what is that called?

2:37:57

Speakers array. Store them in the transcript speakers array. And then I think, honestly, set it to published. See? I gotta get on Zen, man. Everybody's like, "Tobacco's bad for you," but I'm like, "Yeah, it would be awesome, though." Um, yes.

2:38:26

It... The whole thing, the whole flow was go check the, the Mostly Technical YouTube channel for the latest video. Um, there's always going to be a latest video, so something I need to do, um, is I need to check to see if this video has already been stored as an episode But

2:38:57

that's gonna be interesting. Um, that's gonna be interesting to do. In an idempotent way. So it, uh, checked the Mostly... 'cause if we ran this again, it's actually gonna create the same episode again. We checked to see if there were videos on the Mostly Technical channel, and if there are, if there aren't, we bail.

2:39:24

If there are, we download the YouTube video as audio, then we save that audio to an S3 bucket, and then we create a podcast episode. Um, podcast ID equals... This is, uh, I don't know if Boss Man Chris is still here, but this is where I need, like, hard-coded references in my code to IDs in the database, which

2:39:54

is, um, not ideal. So then we created an episode, and then we called out to Deepgram to make a transcript, and then we associated the transcript with the episode, and then we need to do these things after that. So I'm kinda happy with this because we have all of this, we have all of these, um, reusable activities over here.

2:40:24

Like transcribe audio, I feel like I'm gonna be using, I'm gonna be using a lot, which is very cool. Oh, man. Is anybody in, is anybody in admin on Twitch? Can you get rid of that guy? Yeah.

2:40:47

When I'm done, so this goes-- this is gonna serve a few purposes. Um, I need the transcript because I wanna put it on my website for good SEO, just to... it's a bunch of keywords. So I'm gonna put it on my website for good SEO, and then, um, and then I also wanna extract snippets out of it, um, and potentially turn those into articles that I write.

2:41:17

So I'm never gonna publish anything that ChatGPT wrote, but I am, or would be willing to have ChatGPT get me started and be like, "Hey, you talked about this thing on the podcast. Don't you wanna turn it into a..." Thanks, Robin. "Don't you wanna turn him, turn it into a real, like, a real article?" Um, so having the transcript there is gonna be super valuable.

2:41:43

I feel like this should be a DTO or something that I return back, but I don't really wanna do that. Does this need to be its own action? I feel like, or its own activity? That should be, like, in a side effect or something. It's just so basic.

2:42:07

Cool. I think we're done for today. Um, tomorrow... See? Look at this. This is so great. Um, tomorrow, we're gonna start sending messages back and forth to the system, uh, using this, uh, Laravel Telegraph.

2:42:30

It's very good. It's very, very good. And so this, this is the freaking cool stuff. Um, so imagine this. Imagine, um, we can just install it.

2:42:50

We're not gonna set it up right now. Imagine this. Because I know, because I know that this podcast is usually just me and Ian, um, yeah, Telegraph for Laravel.

2:43:12

Do they call it Laravel Telegraph? You can't do that, man. It's bad news bears. Um, I'll do this in an activity, but, um, who is this speaker? And probably the facade. Why, why are you guys putting these arrows all lined up like that?

2:43:40

Come on now. This is chaotic. There we go. So watch this. Um, so because you can signal these workflows from the outside, um, you can do something like, who is this speaker?

2:44:07

And you could do something like, this speaker is Ian, this speaker is Aaron. And I don't know what delete param, I don't know what that means. Um, but you could do something like URL. So when they push that, we're gonna hit, uh, we'll say route, which doesn't exist, uh, speakers.set with an ID or a query param of

2:44:38

name Ian and workflow, workflow, I don't know if this ID. I don't know. I'll have to figure out how to do the workflow. This is gonna be so boss.

2:45:16

And then the workflow can pause. The workflow can pause until, uh, until this is answered. So you can do like, um, you know, this speakers are set or something. I think it's actually just that.

2:45:40

And then how do you pause? There you go. Await. So we can, uh, we would basically send this message, move this to an action, and make it real.

2:46:11

So we'd send this message, and then we could just chill. Wait until speakers are set. And we would come up here, and we'd say, public speakers are set equals false. And I think you have to...

2:46:35

Do you signal it? Oh, you signal that. Um, so you would do public function set, uh, speakers are set. There you go.

2:47:01

There you go. So tomorrow-- Well, tomorrow's Fourth of July. Boo, sad. Um, tomorrow we'll make this real. So we'll be able to hit a button and say, uh, it's Ian, or it's not Ian, Ian or Aaron, or we'll have to figure out a guest workflow.

2:47:30

Uh, so we'll send this message via Telegram. I will get it at some point, and I'll need to attach, need to attach some words that the speaker has, has said. Otherwise, who is this speaker is not gonna be very clear. And then it'll wait for responses. So that's pretty boss. What are you complaining about?

2:47:56

F you. She's so stupid. Cool. This is what we'll do tomorrow. Gah, tomorrow's Fourth of July. This is what we'll do next time. I'm very happy about this. This is gonna be so cool.

2:48:18

All right, I'm done. I'm gonna log off. Do y'all have any questions before I log off? What do you wanna talk about? Nothing? Well, Steve's off all week, um, so I don't know what I'm doing.

2:48:48

I'm the dummy. Uh, I am in Dallas, Texas. Let's figure out what else, um. So if you guys have any questions, ask me. Otherwise, I'm gonna tell you what else is on, on the list here.

2:49:13

Um, I am very excited for Laracon. I think it's gonna be a lot of fun, and I'm excited to MC. I enjoy MCing. Okay, uh, we're working on podcasts right now. I think next, the real thing that stresses me out, um, the real thing that stresses me out, I think, is bookkeeping.

2:49:43

And so I think next, we should work on bookkeeping. That's gonna involve, that's gonna involve a lot, um, because for bookkeeping, I need to pull in through Plaid and probably through Stripe and maybe through Venmo.

2:50:04

I don't know if Plaid supports Venmo. Um, I'll need to pull all those transactions down and then have a categorization workflow because some expenses, some expenses are, um, some expenses are personal. Some are on the personal card, but are actually business.

2:50:25

Some are on the business card, but are actually personal. Whoops. Uh, and then, of course, we've got stuff that's like, this is a business expense, but I wanna know, does it go towards the studio? Like, it'd be nice to know how much I've spent on this studio. It's impossible to say. Um, or does it go towards, like, do I need to be reimbursed by TryHard, um, like out of the corporate account?

2:50:54

Um, uh, my tax guy sucks. I'm gonna switch to Steve's tax woman 'cause my tax guy's an idiot. That's not true. Um, I use a service, and it's just not very good. I use these people, and it's expensive and not very good. And they're trying to be like luxury tax, and it's like, it's just not that good.

2:51:21

I should have known from the, the gold Rubik's Cube. I should have known it wasn't gonna be good. Oh, I'm not showing you anything. I should have known from the gold Rubik's Cube. Um, I think this is like two or $300 a month, and it sucks.

2:51:46

So not gonna use them. That's for dang sure. Yeah, so I want, uh, pull in all the transactions. Pull in all the transactions, store them, and then categorize them, um, but also assign them to like a, a business unit, basically. And, uh, you know, that could be, that could be personal.

2:52:09

Um, could be personal, could be screencasting.com, could be, um, Accounting 229. It does look like Vercel. Could be accounting229.com, which is my, um, very, very old, very, very young... Who is that person?

2:52:31

I've never seen that guy in my life. Uh, so I feel like bookkeeping is the, the biggest one, and that's gonna be awesome for workflows 'cause it's gonna be very, uh, very async. I also wanna do something where, um, I can...

2:52:53

'Cause all the, uh, all the Amazon transactions come in as Amazon. It's like, yeah, did I buy, uh, did I buy powder to help propagate roots, which I definitely did 'cause I wanna propagate some of the plants that I have in here. Or did I buy a one terabyte drive that needs to be reimbursed by Try Hard Studios?

2:53:15

Don't know. Just says Amazon. The line item just says Amazon, which is infuriating. Um, so I have an idea to create a Chrome extension that will, when I'm on Amazon, it will grab all of the line items from a purchase and post those back to the Life OS, and that way, when a new Amazon thing comes in from Plaid, I can look in the Amazon purchases table and see if there's one where the date is close, but the value, the match

2:53:45

is exactly right. Um, and then I can link those up automatically. So that would be nice. I just can't believe anyone that's not a student watched these accounting videos. That's super cool. Um, I'm gonna have dozens and dozens of automations.

2:54:10

Uh, I'll write down, I'll, I'll try to transfer what's on the paper to digital somehow. Um, and I'm definitely gonna have a dashboard, a web interface. Much of it, in fact, like the transactions, the, the bookkeeping, that's all gonna be on the web for sure. Um, so we're gonna be doing lots and lots of JavaScript.

2:54:36

All right. Anything else? I'm gonna go get some lunch. Any other questions? Okay. Speak now or forever hold your peace. Let's see if Restream gives us any numbies. I think Velvet Taco is for lunch.

2:55:08

Okay, y'all. I'll see you on, uh, not tomorrow 'cause tomorrow's 4th of July. I will see you on Friday morning. Um, Velvet Taco. Oh, they're in Georgia. They're quite good.

2:55:34

Um, yeah. All right. That's all for me. Thanks for hanging out. I'm super glad. Um, this is, one, very fun for me, and two, I think it's very productive, and so I'm glad to hang out with you guys. Um, all right. Until Friday. So long, friendos.

Videos

More videos

All videos

Get the next one by email

I’ll send you some more. Not too many.

Join 7,500+ other readers.

Read past issues