Transcript #367: A New Cloud Computing Paradigm at Python Bytes
Return to episode page view on github00:00 Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds.
00:04 This is episode 367, recorded January 16, 2024. And I am Brian Okken.
00:11 And I'm Michael Kennedy.
00:12 And I guess we do have a sponsor today, so that's awesome.
00:18 But Michael, do you want to tell us why you're not?
00:23 Yeah, for people who are listening, maybe they hear a slightly different setup for me.
00:29 For people who might watch the video, well, that right there in the background is lovely and very icy Portland, Oregon.
00:36 And so I'll go ahead and put this on the screen.
00:41 People can check out if they feel like they can check out the YouTube stream at like one minute, 19 seconds.
00:47 This is the entrance to my house, Brian.
00:49 And it looks like an apocalypse.
00:51 Just every, I would say every block or so, there's like a hundred foot tree that's fallen somewhere.
00:58 And it's just taken out the power in so many ways.
01:01 It's like it was now, it was 13, now it's 18 degrees Fahrenheit.
01:06 So negative nine, something like that Celsius.
01:08 No power, four or five days.
01:10 Not a place for podcasting.
01:11 So I'm hanging out here in a hotel with the family until the power comes back on.
01:17 Hopefully today, fingers crossed.
01:19 Well, hopefully, yeah.
01:21 Hopefully there's actually quite a few people in Portland without power and did experience power outages and pipes bursting and things like that.
01:31 And, you know, for people that are in parts of the country where they get like way colder than us, it might seem like we're just being wusses.
01:40 But what we get here is often very heavy rain, heavy snow or freezing rain.
01:47 And the freezing rain just weighs down trees and breaks power lines and stuff like that.
01:53 Absolutely.
01:53 And this had up to 100 mile an hour winds with these really old trees.
01:56 And also just the city is not really built for it.
01:59 We don't get it enough that they have infrastructures for it.
02:01 So it's like, oh, it snowed three inches.
02:03 So just good luck with that.
02:05 We're not going to do anything, right?
02:06 No salt, no gravel.
02:08 Just hope that works out.
02:10 So anyway, it's been all right.
02:12 But yeah, different setup, Brian.
02:13 So thanks everyone for the understanding.
02:16 Indeed.
02:16 And also I want to say thanks to Bright Data.
02:21 We'll talk more about them for sponsoring the show.
02:24 But let's talk about something contrarian, I guess you would say, Brian.
02:30 Okay.
02:30 You know, many people I'm sure have heard of 37 Signals, right?
02:35 David Hennemeyer Hansen.
02:37 He's the guy who created Ruby on Rails.
02:39 Most notably, but there's also Basecamp and Heymail and all that kind of stuff, right?
02:44 Yeah.
02:45 So needless to say, they run a ton of SaaS products in the cloud.
02:48 And I came across what I guess was more or less some kind of conclusion to a bunch of conversations
02:57 and stuff they've been working on.
02:59 And so I'll work my way backwards just a little bit.
03:01 But it's pretty fascinating.
03:02 And the headline on the post is, we have left the cloud.
03:07 Brian, I thought we were all told to go to the cloud.
03:10 I mean, we saw the picture of what happens when the clouds get angry.
03:13 So I understand why you might leave the clouds.
03:15 But more seriously, like clouds are supposed to save us.
03:18 They save us money.
03:19 They give us agility, et cetera, et cetera.
03:21 Right?
03:22 Yeah.
03:23 So hence the contrarian aspect, right?
03:25 Yeah.
03:26 Like, I guess it's not like 37 Signals is the same sort of place as like a lot of startups.
03:32 But, you know.
03:33 That's true.
03:34 If you're in, they do make that point.
03:36 Like if you are an early stage startup where the costs are low, by all means, cloud it up.
03:42 But as I guess one of the big lessons here is the more that you get like the cloud hooks in the abstract sense into your app, the more it might set you up for a tough time as you get bigger.
03:56 Right?
03:57 So let me get through this and we can talk a bit more about that.
03:59 So they say we stand to save over $7 million in five years from our cloud exit.
04:09 And so why do they not just say, well, that's 1.2 or 1. whatever it is, 1.1 million per year because of our cloud exit?
04:17 Because what they did is they went and they bought.
04:19 So when they said they left the cloud, they didn't mean just like we're not using Kubernetes or we're not using Lambdas and serverless.
04:28 Like they are, they bought physical hardware.
04:32 Okay.
04:33 So they've got these, these big pallets.
04:35 And what they did is they bought this Dell, 20 Dell R7 625 servers, which don't mean a lot to me, maybe due to some people.
04:45 But it basically takes up like two server racks.
04:49 And that means 4,000 CPUs, 7.7 terabytes of RAM and almost a half a petabyte of high speed SSD storage.
05:00 And that cost them $600,000 to buy that, which is a lot of money.
05:06 However, they were paying, like 1.2 million a year in cloud prices and cloud to AWS basically.
05:16 And so after six months it's paid for.
05:18 And the five years part is they expect this hardware to last them five years.
05:22 And apparently it's super, super fast.
05:24 So, it's, it's pretty interesting.
05:27 I would really recommend people go through and read this, what some of the values were.
05:33 And basically what they did is they said, we're going to buy like a really big server.
05:37 I know it's a bunch of kind of CPUs and stuff, but they kind of clustered into like one compute cluster.
05:44 And then they, they came up with this thing called, it's kind of like Kubernetes called Camel, which would work for Python.
05:50 But I think originally they're deploying Rails apps on it and basically gives you zero downtime slices of this giant server.
05:58 And the reason this really fascinates me is this, this whole philosophy here.
06:04 It's, it's also not just, Hey, they're leaving the cloud because, you know, many people are running to the cloud, but it's also, they're getting a really huge server.
06:15 Like one huge server rather than a whole bunch of small distributed servers, which also was like a little bit the way that, the cloud was initially sold, right?
06:24 We'll get commodity hardware.
06:26 You buy a bunch of little small slices all over the place.
06:29 You can buy more small slices with auto scaling if you need.
06:31 And instead they're like, no, this, and sort of along those same lines is I little while ago interviewed Mark Rusinovich, the CTO of Azure at Microsoft.
06:41 Super cool guy, really, really smart, but also CTO of Azure.
06:46 And he talked about how they started out with a bunch of small machines as well.
06:50 And they're just getting bigger and bigger ones and slicing them up for tenants to be using them.
06:55 So I think this is also a really interesting trend that we're going to see more of is like more, more big machines rather than a bunch of small machines that then maybe you slice up with Docker or Kubernetes or other things.
07:09 And Brian, we've hardly even talked about this yet, but that has changed the way I got to type holding, pulling the mic in the wrong hand here for typing.
07:20 That's changed the way that I'm running a lot of our infrastructure.
07:23 So I've been thinking about this for a while and reading this stuff.
07:26 I thought I'd make it the first topic of our show, but also I had eight servers for all the talk Python and Python bytes infrastructure, you know, some database server stuff.
07:37 One that ran Python bytes, a bunch of services and a bunch of small machines.
07:42 Right.
07:42 And I'm like, you know, why am I messing with all these small machines?
07:44 So I, I ended up consolidating like last week, all of that into one big, big server, just running a bunch of multi-tier Docker setups over there.
07:55 And it's glorious, right?
07:56 One machine runs great.
07:58 There's a single command.
08:00 I typed to upgrade like 13 different web apps all at once.
08:04 That means upgrade their server infrastructure, upgrade their, potentially to ship their new dependencies to rebuild them.
08:11 All of that kind of stuff.
08:12 One command.
08:13 Interesting.
08:14 So yeah, it's really interesting.
08:16 And it's really different.
08:17 It let me like quickly and easily throw in some more things.
08:19 And also I think it's better for security, right?
08:22 Like I had like little, FastAPI apps that were just like little utility things running that I didn't pay this much attention to as I did the other apps.
08:31 And so, you know, they just didn't, they didn't get their dependencies updated as frequently, frequently in their Python versions revved as frequently.
08:40 And if something happened to them, right.
08:42 It's on technically on the same VM, right?
08:44 That's an issue.
08:44 But now they're, they're all locked up behind like a Docker container.
08:48 so it's a little more isolation as well.
08:50 Anyway, it's this whole, I encourage people to read through.
08:53 I put a bunch of different, parts of this story in for the 37 signals.
08:59 We've left the cloud.
09:00 It's worth reading.
09:01 I'll just go through really quick, the five values.
09:03 And then this is kind of a long segment.
09:04 So I'll, I'll move us on.
09:06 But here are the five values guiding our cloud exit.
09:10 We value independence above all else.
09:13 And being trapped in Amazon cloud is not great.
09:17 We serve the internet.
09:18 This business owes its entire existence to societal and economic aberration.
09:24 That is the internet in a positive way.
09:26 And we don't want to just be locked up behind a few hyperscalers.
09:30 We want to be kind of just on the internet on our own terms, spend money wisely.
09:35 Even if you have lots of money, you know, they're getting better value for money.
09:39 leading the way, the cloud has been sold as the answer to SAS companies.
09:43 We're not so sure.
09:44 And they seek adventure and you bet that they do.
09:47 So anyway, it's not leaving data centers.
09:50 They have that in a managed data center.
09:51 They just have it on hardware that they own.
09:53 So anyway, what do you think about all this?
09:55 so a lot of this is, I think it's interesting that, that it affects you even like that you, but you're, you're not okay.
10:04 When you said you, you put them all on one machine, you're not, it's, you don't have like a, a server in your
10:09 basement or something.
10:10 No, no.
10:11 So what I did is I, instead of having a bunch of small VMs at digital ocean, I bought one big VM.
10:16 Okay.
10:16 The one I have right now is like eight gigs, four CPUs, but I'm pretty sure I'm going to
10:20 switch to like 16 gigs and eight CPUs.
10:22 And even that would be cheaper than what I was doing before.
10:25 And it's still, it, and the other thing that's interesting or in danger of going super long in
10:30 this, but, but because all those different apps are sharing, let's say the final destination of
10:35 eight CPUs, there's spikes in performance are not at the same time.
10:40 Like what makes talk Python or Python bytes spike in, in load is not the same that what
10:45 makes the courses spike on load, like a new course release or like black Friday or something
10:50 like that is very unlikely to intersect with when a podcast is released because I'm busy
10:55 doing one or the other.
10:56 Right.
10:56 And so they basically has access to all eight cores instead of that one gets two cores, that
11:02 one gets one core.
11:03 And even though they're sharing like basically in aggregate, it's the same number because the
11:07 spikes don't line up, they get more capacity for whatever they're doing.
11:11 It's pretty interesting.
11:12 Yeah.
11:13 Okay.
11:13 It is interesting.
11:15 Back to you.
11:15 Well, let's, let's completely go to a short topic.
11:20 And I'd like to talk about little tiny scripts or maybe big scripts, but single file applications.
11:27 So single file scripts.
11:29 So I wanted to talk about PEP 723 and that is inline script metadata.
11:35 And one of the things that we've noticed come recently in this, this is authored, it's interesting
11:41 author.
11:42 So the author is Ofec Lev.
11:44 I think that's how you say his name.
11:46 He's the dude from hatch.
11:47 So hatch is, I guess, in packaging.
11:51 So this is around packaging.
11:53 And the idea is that you've got a script has depend, might have dependencies also, and it
12:00 also might depend on Python and how we can't really tell Python currently that a script needs
12:07 a dependency or a particular version of Python.
12:10 So this is an attempt to kind of fix that.
12:13 And there's some, some motivation and stuff at the top that I like, you know, kind of
12:18 skimmed through a little bit.
12:19 No, I read it.
12:20 But the, the, the real at the end is we're going to put stuff like pyproject.toml, but
12:27 you can do it in a script.
12:29 And this isn't there yet, but there's an example where you just sort of do a pound sign and then
12:36 like a few slashes and then say script.
12:39 And then after that, you can put a little bit of like toml right in your, as a comment.
12:44 And the idea is something like a pip.
12:48 Right.
12:48 This is like the, the world's craziest docstring sort of thing.
12:53 Right.
12:53 Almost.
12:53 I don't understand.
12:54 So supposedly there's, there's reasons behind this syntax.
12:58 It's the weirdest syntax I've ever seen, but maybe it's just, it's not quite shebang, but
13:02 it's kind of shebang ish.
13:03 Yeah.
13:04 But like the, in their example, they're saying, okay, well, you've got a little, a little
13:09 script that just requires, you know, and this is going to be common.
13:12 I think actually requires requests and rich.
13:17 So, cause it's going to like grab something off the internet and it's going to print some
13:20 stuff and wants to do it with color and whatever.
13:23 But how do you do that without packaging it?
13:26 And, and here's one way is to just tell Python that it needs these other things.
13:31 So there's a, it's, I don't really completely understand this.
13:36 Like how, what are the, the backend, what's going to happen?
13:39 What is, I think the different tools will treat this different because my question is really,
13:45 where are these dependencies going to be installed at?
13:47 Is it like, if I just say, I guess it depends on the thing.
13:51 So if you're going to do, if it hatched for instance, or pipX might handle this.
13:56 So if I say pipX, you know, run this script and it finds this, it'll probably create a pipX
14:01 virtual environment area.
14:02 And hatch will do the same thing in a different manner.
14:06 But behind the scenes grab, like create a little virtual environment.
14:10 This kind of, it mostly, it seems like it's hiding virtual environment.
14:14 And dependency installs from users, but it's probably needed.
14:19 So anyway, what do you think of this?
14:20 It gets interesting.
14:22 Similar to installed, as Liz is pointing out, sounds very similar to installed that we talked
14:30 about not too long ago.
14:31 And I think it solves an interesting problem.
14:33 All of these do have that, that little bit of a bootstrap that has to happen, right?
14:38 For, or something for, for this work, it's not built into Python, right?
14:44 And so you've got to have like one library installed that then you can use to run and kick off all the other runs.
14:51 But if, if you somehow make that happen or get a, get your company to agree, like we're all going to have this foundation and then it just runs.
14:59 I think that's pretty cool.
15:02 And I think OFAC is killing it, right?
15:05 He's, he's being really creative and working a lot of different things.
15:09 And this is a PEP, right?
15:10 So if this was built into Python, then, then all of a sudden, yeah, we can have, have it run.
15:17 So I, okay.
15:18 So for some reason I flew right over my head that it's a PEP and not just an extension to Hatch.
15:22 So yeah, this, this is going to be, this could be super, super important.
15:28 And it was last updated in December.
15:30 It's accepted now.
15:31 I'm not sure how long it's been accepted, but it's around the packaging.
15:35 So PEPs with packaging are interesting because we don't really have to wait for, once they're accepted, we don't really have to wait for a release of Python.
15:44 Because things like PEP and Hatch and other things don't have the same, you know, release cadence as Python.
15:52 So this could be like, there's a note here that says it's not going to be declared final until at least a couple of tools utilize it.
16:01 So, so far, there's no tools that utilize it.
16:04 But their example is possibly pip run and pip X.
16:08 So, and, and probably Hatch as well.
16:10 It's considering who wrote it.
16:13 But yeah, yeah, I would imagine it might show up and might get support from Hatch as well.
16:17 Yeah.
16:18 Yeah.
16:18 Funny, funny comments out there in the audience.
16:20 About being Rust inspired indeed.
16:23 Brian, you want to know what else is inspiring?
16:26 What?
16:27 Our sponsor, Bright Data.
16:29 Yeah.
16:30 Indeed.
16:30 So I just want to say thank you to Bright Data for supporting the show.
16:35 Check them out at pythonbytes.fm/bright data.
16:38 And there's, go ahead, yeah.
16:40 Do we want to put their stuff on the?
16:42 We do.
16:43 And somehow I did not quite, we didn't quite do it.
16:47 There we go.
16:49 Awesome.
16:49 Yeah.
16:50 So there's tons and tons of data out on the internet.
16:54 Unimaginable amounts of data, right?
16:56 And we're lucky to live in a time where so much of this is behind structured APIs.
17:00 And you can go and access it with HTTPX or requests or whatever.
17:04 But the truth is that most of the data is not served up over clean APIs.
17:08 It's just sitting there on a web page as gnarly HTML.
17:12 Maybe it's even worse than that.
17:14 Maybe it's obscured behind some front-end framework like React, where when you actually look at the
17:20 HTML, it just says, pull in the React app.
17:22 Good luck with that.
17:23 And then something else happens somewhere along the way, right?
17:25 So getting access to that data can be hard.
17:28 What's the answer?
17:28 Well, web scraping, everyone says.
17:31 Yes.
17:31 True.
17:33 But just like you wouldn't want to set up your production infrastructure in your home office,
17:36 running web scraping jobs on a single computer, even in a data center, can lead to your program
17:42 being potentially unreliable with data pinned to whatever source you're accessing thinks you're
17:50 located, right?
17:50 So maybe there's different data if you're in the EU than if you're in Ohio, but your computer's in Ohio,
17:55 so there you go.
17:56 Or, you know, it gets blocked because of rate limiting or other types of things like that,
18:01 right?
18:01 So if you need to do professional web scraping, check out Bright Data.
18:05 They have award-winning proxy network with millions of different places to access data from.
18:11 And powerful web scrapers, they have even ready-to-go data sets you can download.
18:16 So they've already curated these data sets, and you can just access them.
18:20 And get updates from them and not even do web scraping, which is awesome.
18:24 So they've got a whole marketplace for that.
18:25 And everyone knows, we're probably going to come back to it some more, privacy-conscious
18:31 stuff that I really care about.
18:32 And they are both CCPA and GDPR compliant.
18:36 They have low-code solutions, as well as Python programming models with asyncioM Playwrights.
18:41 So if you have serious data needs and those websites that have the data don't offer an API,
18:46 then you need to check out Bright Data.
18:48 Give them a try at pythonbytes.fm/brightdata.
18:52 And please use that URL so you know that they heard from us.
18:55 Thank you to Bright Data for supporting the show.
18:56 Links in your podcast player show notes.
18:59 So pretty awesome.
19:01 All right.
19:02 Back to the next thing.
19:05 So this is super exciting.
19:07 And it came, I believe this was sent in by Balaz.
19:10 Let me check.
19:10 Yeah, Balaz sent this over.
19:11 Thank you, Balaz, for pointing this out.
19:13 So I've had Fyodor Fitzner on Python before.
19:18 And we've talked about Flet.
19:21 And Flet is basically Flutter, but with a Python programming API, right?
19:27 Flutter is actually how we built the apps at Talk Python, right, for courses.
19:32 Super cool framework.
19:33 But you're writing Dart.
19:35 And Dart is good, but it's not Python, right?
19:38 And so it'd be great to be able to write that kind of code.
19:41 Here's an example, by the way, Brian.
19:43 We talked about fast UI.
19:45 And I said, oh, that reminds me, this sort of hierarchical code structure reminds me of Flutter, right?
19:53 And so here's the same thing, the Flutter UI, but in Python code instead of Dart.
19:58 And the link for this code is in the show notes.
20:00 You can check it out, right?
20:01 So the big news is you can now build APKs for Android.
20:05 And for those of you who have not suffered the indignity of the app stores,
20:10 the way you get something into the Google Play store is you build what's called an APK.
20:15 And then you send them that.
20:17 They process it.
20:18 And then that's what gets shipped out to run on the phones on Android.
20:22 So this means even though Flutter built Flutter apps, you couldn't really deploy it.
20:27 You could kind of get the Flutter app and then put your Python code on there.
20:31 But that's not like your app.
20:32 That's like Jupyter or something like that kind of.
20:35 So this is awesome.
20:36 This means that people can now build apps that go in the app store, at least for Android, with Flutter and Flutter and Python in particular.
20:45 We'll see about iOS.
20:47 It's on the roadmap.
20:48 So super exciting.
20:49 Yeah.
20:50 I mean, I would have used Flutter if I was sure I could get it to build and ship and on the different things.
20:59 I'd much rather have done that than use Flutter or a Dart, you know, for Flutter.
21:03 But, you know, you got to work with the building blocks you got.
21:06 And this one just got better.
21:07 So exciting.
21:08 Yeah.
21:09 Oh, also really quick.
21:10 In those show notes, there's a video by this guy called Neural9.
21:15 His channel is called Neural9.
21:16 Walking through the steps to do that, all that build.
21:18 So you want to see how it works.
21:19 You can watch that eight-minute video.
21:21 Cool.
21:21 Cool.
21:21 Neat.
21:22 So that's for Android apps.
21:25 For command line, normal command line stuff, I was going to talk about Harlequin.
21:31 So there's a lot of people that use SQL and SQLite for different purposes, of course, for databases.
21:39 But to take a look at your SQLite data, there is an IDE called Harlequin.
21:46 I don't think we've covered it.
21:48 But it's an open source Python project that it looks like it's pretty cool.
21:57 It's got like on the, we're showing on the screen, the little snippet or screenshot.
22:03 You've got kind of your tables, your data catalog on the left panel.
22:08 They've got a query editor and then some query results at the bottom right.
22:13 And it actually looks pretty slick for like quickly going through some data.
22:18 It looks like it has hooks to go into DuckDB and SQLite.
22:24 That's why I brought up SQLite.
22:26 And I'd probably use it for SQLite.
22:28 I haven't used DuckDB.
22:29 Yeah, for people who don't know, DuckDB is also in process, very much like SQLite,
22:35 but it's columnar instead of row-based.
22:36 So they're kind of in the same way.
22:38 Oh, okay.
22:39 I guess.
22:39 Yeah.
22:40 Okay.
22:40 Yeah, I haven't used it, but definitely SQLite use that a lot.
22:45 So this is kind of fun.
22:48 I like command line tools.
22:49 This looks neat.
22:50 It's kind of a short topic.
22:52 Just, hey, this is a command line interface for SQLite or DuckDB.
22:57 And that's fun.
22:59 It looks like it runs on Linux, Mac, and Windows, which is cool.
23:04 But I was also, one of the things I've noticed is in, like, for instance, a lot of Django tutorials,
23:11 Django starts with SQLite.
23:14 And you, I mean, by default, it does that.
23:17 And I think that you can, and then you can specify other databases.
23:20 But I noticed today a discussion on Mastodon that I wanted to bring up kind of SQLite related.
23:26 Jeff Triplett posted a post by somebody else, Anze.
23:33 But, okay, Jeff's comment is, this is a nice write-up about using SQLite in production with pitfalls and open questions.
23:40 I cringe whenever I see some Django Python luminary recommending people use SQLite in production.
23:46 I don't care how good you are.
23:48 You won't get it right, even if you think you did.
23:51 Anyway, so interesting commentary there.
23:55 So Anze's post was, I wrote a blog post about using SQLite in production and dealing with DB.
24:02 DB is closed errors.
24:03 I'm happy to hear your thoughts.
24:05 So the article is called Django SQLite and Databases Locked Error, and it walks through those.
24:12 And kind of the reality is Django doesn't, I guess, lock the database when it reads correctly.
24:20 The transactions are weird.
24:21 And a lot of the discussion around this really is if you're using SQLite for a database that's mostly read-only, most people are just reading stuff, it'll probably work fine.
24:34 And it might work great.
24:35 And it might be way less hassle than doing Postgres or something else.
24:39 But if there are a lot of transactions that are writing to it, if you have multiple writers, then you've got issues.
24:47 So just thought this was an interesting discussion.
24:51 I wanted to bring it up.
24:52 Yeah.
24:53 I think it really depends on the type of app you got.
24:57 Is it an analytics thing that's writing like crazy?
25:00 Or is it basically like the database here blog?
25:03 Right where it's really just you make an entry once a week if you're a good blogger.
25:09 You know what I mean?
25:10 That kind of thing.
25:10 And then it's all reads.
25:12 Probably fine.
25:13 Right.
25:13 So somewhere in the middle, I guess, like you can sort of turn that bar or watch that gauge turn from green to red as it gets closer to like a full analytics system.
25:23 But yeah, it's pretty interesting.
25:24 Yeah.
25:25 Hey, interesting discussion.
25:26 Indeed.
25:27 All right.
25:28 What you got?
25:28 Oh, we're done.
25:30 We're done.
25:31 We're done.
25:31 But we're not done because I have many extras.
25:33 Do you have extras?
25:33 I've got just a couple extras.
25:36 So since I've got my screen up, I'll run through a couple extras.
25:40 I've been I've kind of start.
25:42 I started Python people podcast last summer and then kind of ran out of time trying to get the pytest course done.
25:51 And so now I'm coming back and cleaning up some things.
25:54 So there's there's a few recent episodes that finally came out.
25:58 So like I stopped in October and then picked it up in January.
26:01 So we've got Will Vincent and Julian Seguera and Pamela Fox episodes out now.
26:06 So check those out.
26:07 Oh, excellent.
26:08 Yeah.
26:09 Those are all great people.
26:09 And many of them have been on on this show as well.
26:13 So very cool.
26:14 Nice to see these going there.
26:15 They provide a really interesting look, like really out of bounds looks into what people are doing.
26:21 You know, like you and Paul talked a lot about lacrosse.
26:25 Right.
26:26 And empowering women and and not not the next pep.
26:30 And that was really interesting.
26:32 So keep it going.
26:33 Some of the fun bits are to try to try to talk to kind of dig deeper into stuff that like I normally don't ask about in.
26:42 Yeah.
26:42 Like, for instance, Julian Seguera.
26:44 Julian's a really pretty positive person.
26:47 So I poked at that a bit and tried to ask him, like, really, how did you get this mindset?
26:51 I mean, clearly bad stuff must happen to you.
26:53 And so we talk about his, you know, how does he get through it and, you know, keep maintaining a positive mindset.
27:00 So it's good.
27:01 Anyway, what are your extras for us?
27:03 Let's see if I can find him here.
27:05 Okay.
27:05 Page find.
27:06 Yes, that's the first one.
27:07 Page find.
27:08 So, Brian, you and I, we both Hugo, right?
27:11 Yeah.
27:12 Hugo is awesome.
27:14 Go Hugo for people who don't know.
27:17 Go Hugo.io.
27:18 That's right.
27:20 Super, super cool way to build static websites, not just blogs, but static websites that are really, really powerful.
27:26 And I learned about this one from Mark Little.
27:30 He also does a ton of stuff with Hugo and said, hey, you should check out page find.
27:36 So what is this?
27:38 I have no idea.
27:39 So page find, this is not just a Hugo thing, but for all static sites, it's a fully static search library, right?
27:47 So for static sites, whether this is Flask Freeze or Hugo or Pelican or whatever, this is like a post build step thing that runs and it indexes all of your HTML or the parts that you tell it to index.
28:01 Or tell it to, you know, you can basically say, don't include this part or whatever.
28:04 And it's no configuration.
28:07 It has rich filtering.
28:08 It has custom sorting attributes.
28:11 And the way it structures, what it does basically is JavaScript and it has an index that then the JavaScript reads in.
28:18 But the index is broken into a bunch of pieces.
28:21 So the front end stuff can like pull just little bits of it and not pull all the results back basically, right?
28:26 So I added this over to my website where if you're over here, like Brian, we could see what I said about AI and check that out.
28:34 Isn't that awesome?
28:35 So it finds all the different things that we could be talking about.
28:38 But it also like in my document, in my markdown, I have like H1, H2, H3, and it will actually subdivide the results into sections.
28:48 Like what is in this section marked by H2 on this one page?
28:53 Oh, that's pretty cool.
28:54 That's really cool, right?
28:55 And it also does things like, I don't know if I can see any examples here, but if you type Y-O, it'll do like you, yourself, et cetera.
29:05 So it's not even just like exact word matching.
29:07 It's like a really smart search engine.
29:09 And all it takes is just running a script for like a couple of seconds after you build your static site and then dropping the output into like a known location.
29:17 Is that cool or what?
29:18 That's very cool.
29:19 It's one of the issues I've had when switching to a static site is not knowing how to deal with the search part.
29:25 Yeah.
29:26 So I was psyched when Mark sent this over.
29:27 I'm like, yes, this is going in.
29:29 Yeah.
29:29 The other part that I'm trying to figure out is how to get a decent contact form.
29:34 So that's still to be determined.
29:37 Yeah.
29:38 I don't think page find is going to help with that, but this is cool.
29:40 This is really cool.
29:40 So I recommend it.
29:42 I'll add it to my stuff too.
29:43 Neat.
29:44 It's incredibly fast.
29:45 Like search for AI and I'm on like hotel Wi-Fi and it's nearly instant.
29:49 Right.
29:50 So that's, that is super, super cool where there's a lot of sites, even static sites.
29:55 You'll be like searching, searching.
29:57 You'll see the little spinner.
29:58 You're like, what is it doing?
29:59 Like, why is this search slow?
30:00 No, it should be instant.
30:01 Right.
30:02 And that's, you know, very much in line with like plugging something like this into Hugo means like it's still instant.
30:08 All right.
30:08 I got a few more.
30:09 Let's, let's blaze them.
30:10 Okay.
30:10 This is not to encourage people like more of a, just an interesting, Hey, careful.
30:16 We've got PyPI and pip.
30:18 The JavaScript world has NPM.
30:20 There's an article called when everything becomes too much, the NPM package chaos of 2024.
30:27 An NPM user named Patrick JS launched a troll campaign with a package called everything that depended on every NPM package there.
30:40 So when you install it, it tries to install the, you know, millions of NPM packages.
30:45 And it just, it destroyed it.
30:48 Like, cause people were installing it and, it was just taking too much resources and so on.
30:54 So the follies of package management.
30:56 How's that?
30:57 Yeah.
30:57 Nice.
30:58 All right.
30:59 I'll get a little out of order here.
31:00 So Matthew Feikert wanted us, and we're happy to do so, announce that the SciPy conference, is coming and will be in beautiful Tacoma, Washington this year.
31:11 So if you're interested, check that out and put a link to that.
31:16 And the last thing is I wrote an essay called unsolicited advice from Mozilla and Firefox about four things.
31:24 I think, you know, three things I think they did wrong and four things I think they could do to like absolutely both change the way that, the place of Firefox in the market and alleviate their, their insane dependency on Google.
31:40 Like I'm not anti-Google.
31:42 I, I do stuff with Google.
31:44 I love YouTube, things like that necessarily, but I don't think they're congruent with Python, with, Firefox's focus on privacy very much.
31:53 And also 95% of your company's revenue from one deal with one company that's kind of at a whim could just change their mind.
32:01 That's not a great place to be.
32:02 I'd like to see Firefox doing well.
32:03 So I thought a lot about it and wrote about it, including they should just lie about their user agent, right?
32:09 Like when a website says this site runs best on Chrome and using this crappy old browser, we don't know about, you know why you never see that on Vivaldi or Brave?
32:16 Because their user agent is identical to Chrome.
32:19 So when you get to the website, like, oh, this is my favorite one.
32:21 Perfect.
32:22 We're good to go.
32:23 Right.
32:23 How many people leave Firefox?
32:25 Cause when they get to a site, it says, this doesn't work well, you need to go get this other browser.
32:29 Yeah.
32:29 It would stop saying that if Firefox just said, Hey, our, we're Chrome, you know, things like that.
32:34 Right.
32:34 And sure.
32:35 It would hurt a little.
32:36 It would hurt their pride.
32:37 But people leave Firefox because the website will refuse to run.
32:41 Right.
32:42 Yeah.
32:42 And if, if it, it probably would work, but if it's going to refuse to work, then it's not going to work.
32:47 Right.
32:48 Things like that.
32:48 So anyway, this is, I think it's a really fun article.
32:50 I had a lot of fun thinking about it.
32:52 So people can check that out.
32:53 And I think, I don't want to dwell on this too much, but the, there are like a lot of internal sites stuff.
32:59 So a lot of people, do internal tools at companies and the, they'll do that.
33:05 They'll be like, it should use Chrome and somebody will try it with Firefox and they'll be like, Oh, it doesn't work.
33:11 And it probably does.
33:12 It just, it just blocks it for the heck of it.
33:15 So.
33:15 Exactly.
33:16 And no one's going to update that site.
33:17 Right.
33:18 It's just, yeah.
33:19 Another thing that's just maybe interesting to put on people's radar is another thing.
33:24 a friend of mine co-founded is this thing called Island, which is like a enterprise browser meant just for like giving enterprises, super interesting control over things like that.
33:37 You're just talking about.
33:38 So this is actually a super interesting.
33:40 One of the things I think Firefox could do, but also it was just really interesting.
33:42 Island.io.
33:43 People can check that out.
33:44 Sounds weird.
33:45 Like, why would you ever want that?
33:46 And then you watch the video or listen to it and you're like, actually, that's awesome.
33:49 So.
33:49 Okay.
33:51 Like installed.
33:52 All right.
33:53 All right.
33:53 Shall we joke?
33:54 Yeah, let's do a joke.
33:56 All right.
33:57 Well, this is a Linux joke.
33:58 It's more than a Python joke, honestly.
34:00 So Brian, have you ever got a bike lock?
34:03 One of those, really a combination lock for anything.
34:05 But in this case, it's a bike lock, right?
34:06 Okay.
34:07 So here's a little character says my new bicycle lock to keep my new bicycle secure.
34:13 It has three digits.
34:14 Let's see.
34:14 So that's a thousand combinations of what we could have.
34:17 And then they start to rule out what are the ridiculous ones, right?
34:21 Like one, two, three and stuff like, hmm, nine, nine, eight, maybe.
34:24 I am not silly enough to use 666 or 777 to give full access to everyone.
34:31 You know, change mod 777, which gives it full access to the, rewrite access to whatever you
34:36 change modded.
34:38 That is funny.
34:39 Yeah, it's pretty good.
34:41 I mean, obviously you wouldn't use 777.
34:42 I may be the wrong target market for this because it's sort of funny, but also I'm thinking,
34:51 did bike locks really have three combinations, three of those, or were there four?
34:55 You're being way too practical.
34:57 You're like four or six or something like that.
35:00 I had a smartphone smart lock once and it was awesome.
35:03 You would hold your phone up to it and it went lock.
35:05 I got it from my electric bike before my knees decided electric biking wasn't for me.
35:10 And one time I was out biking with a friend and I parked it in the summer in the sun and like the
35:16 electronics bit of it got direct sunlight and it's black because it's a lock, right?
35:20 Got super hot, like so hot you couldn't hardly touch it, but also so hot that like the electronics
35:25 wouldn't run and I couldn't unlock it.
35:27 I had to like put it in the shade for an hour before I could go home.
35:29 I was so frustrated.
35:30 I like covered it with my shirt or something and just sat there till it cooled off so I could
35:33 go home.
35:34 Oh, that's bad.
35:35 And then also I've seen like the combination really kind of doesn't matter.
35:41 It's how thick the rest of the lock is because I've seen people just come up with these like
35:45 battery powered just cutters and just cut the lock off.
35:49 Yeah, exactly.
35:51 It's probably not the combination, but if you do have one, don't use 777 because clearly that's
35:57 going to, it'll just fall right off if you do that.
36:00 Yeah, just go with one, two, three, four.
36:03 Yeah, exactly.
36:04 It's fine.
36:05 Anyway.
36:05 Well, thanks a lot.
36:07 I hope you get power back at your house soon.
36:09 Thanks.
36:09 I hope so too.
36:10 Probably the power people said probably today, but you never know.
36:15 You never know.
36:15 All right.
36:16 Well, good to be here with you.
36:18 Talk to everybody later.
36:18 Bye.
36:19 Yeah.
36:19 Bye everyone.