Hello and welcome to Python Bytes, where we deliver news and headlines directly to your earbuds.
This is episode 309, recorded November 8th, Election Day.
I am Brian Hawken.
And I'm Michael Kennedy.
Okay, now let's look at your thing.
So first of all, redesign the Python Bytes website to make it responsive.
So even the table gets super cool when you scroll up.
But that's not what I want to talk about.
That's not why I brought it up.
I mean, I always get these emails.
I know you haven't logged into our site in five years, but we've redesigned it.
Let's tell you about it.
No, I don't care.
The reason I'm on this page, what is the date today?
November what?
It's the 8th.
Yesterday was Python Bytes' birthday.
Six years old now.
Oh my gosh.
I can't believe it's been six years.
Yeah, six years.
The intro to the show in PIP9 is out.
What are we on, like PIP30?
I don't know.
I haven't paid attention.
Well, they went from...
It's past 20, for sure.
They went from Semver to Calver, so it's hard to count.
It's still been a long time.
Yeah.
Absolutely.
All right.
Well, anyway, happy birthday to us.
Let's jump in.
Yay, we said we're at cake.
I know.
Cake.
We have to use cake emojis somewhere today, I suppose.
All right.
So I want to tell you about something that really touches on the cybersecurity, pen testing,
you know, red team, blue team sort of hacker side.
And I don't know if people are aware, but Python is used a lot for the pen testing security side
of the world.
We've had some guests on the show here before that talked about their work, right?
We're like, we don't understand this.
You got to come share this with people yourself.
So it's awesome.
But we're not worthy.
But there's a really interesting set of research.
And this research came from Sofian Yadmani and Robin Thay and Olga Gadiataska.
Sorry if I butchered everyone's name there.
But it is the title of the official academic articles is out of Norway, I think.
How Security Professionals Are Being Attacked, A Study of Malicious CVE Proof of Concept Exploits
and GitHub.
Have you run across this?
No.
Interesting.
So it sounds like it doesn't totally apply as maybe a Python programmer thing.
But here's the deal.
In order to, when these CVEs, these vulnerabilities come out and get announced, a lot of times people
are like, oh my gosh, there's some problem.
But like, what does it manifest like?
If I'm going to write some code to explore it, to understand it, to do all the various things,
how do I get started, right?
A lot of these are super complicated.
And so what people will do is they'll post a simple proof of concept.
Like, imagine you've got a sandboxed web browser and it shouldn't be able to access, like, for
example, your processes and other parts of your file system.
So if I went to a web page, I could make it pop up, I don't know, notepad with the text.
No, no, no, no, no, no.
We got you.
You know, something silly like that.
You're like, oh my God, it opened notepad.
Well, these people did some research and they found 47,000 posted proofs of concept.
And let's see, somewhere it's in the article.
They talk about the actual language breakdown.
Here you go.
So when they said, what languages are these written in?
HTML, 300, Ruby, 300, Go, 400, C++, 1,000.
Python, 8,000.
So that's a lot, right?
So Python is, by a factor of eight, the most common language that they are able to determine
the language of the exploit.
So it's something that really kind of applies to us.
Of the, how many were there?
There was like 47,000 of them.
And out of those, 4,800 or 10% were malicious, which sounds like, so what?
It's a proof of concept of a malicious thing.
No, it's like a meta malicious.
So here's the deal.
It says, we will show you how you can break into Active Directory on this new exploit.
What it really does is installs ransomware on your computer.
So if you as a person are like, I want to try this out and see if our system is vulnerable.
Like instead of it doing what it said it would do, it just takes over your computer.
And there's various ways in which it does it.
It might contact like a known malicious.
No, I know.
There are some lulls in there to be sure.
But the idea is there's some, it'll like take your, you know, your SSH keys and like
upload them to some malicious, you know, pastebin type place.
Or it will install crypto miners or it'll install, you know, ransomware encryption types of things.
And a few of them say, you shouldn't have just run code off the internet.
What are you doing?
And it'll like rickroll you.
But the majority of them take, take over for real.
So there's, isn't that nuts?
Yeah.
So.
Rick rolls are hilarious.
I don't know.
Just saying.
They are.
In the, they are.
Even in the paper, there's actually some, some Python proof of code.
So here let me show you down here.
Like pull this up.
I don't know how to link to a code listing inside of a PDF.
So I'm just going to cruise.
Here we go.
So for example, over here.
So here it says, this is an example of one of these proof of concepts that shows you how things might work.
And what is it going to do?
It's going to go and say, it's going to sleep for a second, get your host name, create a user thing, da, da, da, da, da.
And then oddly, instead of saying the URL is a thing, the URL is a base 64 decoded, encoded bunch of garbage, right?
What is this?
This, this is the malicious website that they're going to send your information to.
But when you look at it, it doesn't look like here's the virus.
It's like, oh, is it just decoding this text?
I see.
No, no, no, no.
This is the virus right there.
And there's way more complicated examples, but you know, pretty nuts.
Yeah.
Anyway.
Plus the formatting is gross.
They should really run black on this.
I know they totally, they totally should.
You deserve what you get if you run that.
No, this is a pretty interesting thing.
And if you're in the security space, you know, if there's a 10% chance of just checking out one of these proof of concepts that you'll get owned, you know, just be aware.
I mean, you consider the audience of the people creating these.
So I guess, you know, a bunch of hackers are like, hey, I made this code.
You should try it.
No, but actually we should have like a search thing or something like that.
Because that base 64 decode thing is a classic.
Just don't touch it sort of thing.
Especially if it's going into a URL or something.
This is, it's not good.
Yeah.
They did come up with a way to automatically test for things.
They said, look, if it's contacting a well-known malicious command and control type IP address, which there's a listing, a database of these types of things.
It's like, you know what, that's a problem.
And here's a proof of concept that should have nothing to do with the internet.
And it's uploading data.
That doesn't seem like it should.
Right.
Or it's downloading this data from somewhere else.
So, yeah.
Yeah.
I like that Kim has got the, he's got the glass half full.
A base 64 encoded URL is surely completely safe and nothing to worry about.
And Marco is concerned about the SSH keys.
Kind of got it.
Yeah.
And thanks for the happy birthday wishes out in the audience as well from everyone.
Yeah.
Thanks, people.
All right, Brian.
That's all I got.
But there's a really cool paper.
There's some proof of concepts in there.
There's a couple of write-ups on it.
It's worth checking out.
Okay.
Cool.
Well, I actually want to talk about something completely sort of different.
So, if you've, let's just, I'll go to us for a second.
If normally I get a lot of my news from people on Twitter.
But Twitter kind of is in the news lately because things are kind of going weird with Twitter.
So, what are people doing?
Well, a lot of people, a lot of people actually are checking out Mastodon.
So, I'm calling this the great Mastodon experiment because tons of us, Python people, and actually tons of tech people and tons of other people also are trying out this Mastodon thing.
And in the back of our mind, it was, well, like, yeah, Mastodon seems kind of interesting.
It's like a sort of maybe alternative to Twitter, but not many people there.
Now, there's a lot of people there.
Like, tons of people.
I don't know what the numbers are compared to Twitter, of course.
But anyway, so, I am part of this.
I'm part of the people that have switched.
But if you, like, we're showing the Mastodon, like, join Mastodon.org site.
And the first thing you want to do, okay, I want to try this.
So, I have to, okay, I have to create an account.
So, the first thing you're hit is, well, which server do you want to use?
I was stuck here for a while, and I'm like, I don't know what to do.
So, I went ahead and used Twitter, and I asked.
And Will was there.
From, Will said he's on Mastodon.social, Will McGoogan.
And I just asked, I'm still stuck on the Choosers server.
What are people using?
And I got one reply right away saying, well, Mastodon.org has Anthony Shaw and a bunch of other people.
And I'm like, good enough for me.
So, I went ahead and picked it.
So, I am now on Fostadon also.
And then I'm just trying stuff.
I'm like, just trying it out, playing it, playing with it, following some people, commenting, whatever.
And so far, I kind of like it.
It's nice.
Now, now that I've kind of like, I got the basics down, now I'm ready to learn some more.
And so, I put together, went through and found some tutorials.
So, if anybody else wants to try this also, I found some kind of fun tutorials.
There's one that's called the Increasingly Less Brief Guide to Mastodon.
It's big.
But it's so, that's nice though.
It starts out with like short answers.
Like, you know, what is it?
How is it like Twitter?
How is it not like Twitter?
Stuff like that.
And one of the things, comparisons that confused me a bit was, how is it like email?
But I didn't get the analogy at first, but I kind of do now.
So, the idea is you have to pick a server, but you can still follow people on other servers.
Just like if you have a Gmail account, you can still email people that are not in Gmail.
Works.
So, there's that.
There's everything I know about Mastodon.
Sorry, but it reminds me a little bit of like BBSs.
Remember, like you go to BBS and write email and then they would like sync at night.
And then you might get email from some other BBS.
Well, yeah, that's something I also noticed.
At first, I was a little annoyed because like it's not as zippy sometimes.
Like, it's growing a lot.
So, a lot of these servers are like adding capacity.
And so, occasionally, like the other day, the Fostadon server was down for a couple hours.
And I'm like, oh my God.
Actually, I'll be fine if I don't use a social media app for two hours.
Just chill.
And so, yeah, it's interesting.
There's a lot of stuff I've learned so far.
Like, it's not filtering what I'm seeing.
I actually just see everything that people write that I'm following.
Actually, isn't that what I wanted?
So, I'm pretty okay with it.
So, I put together, I'll go through a couple of these.
There's everything I know.
It's targeted towards data science people.
But there's a lot of great info there.
And then Simon Willison, he's trying this out too, said,
Mastodon is just blogs.
So, I was confused by that.
But he describes how it's like it uses this active pub feature and gets into a little details.
But I think he knows what he's talking about because he wrote his own.
He's on his own server.
So, you can have your own Mastodon server.
But some of the people trying it out at the same time, we've got some big names.
Lucas Lange, he's trying it out.
He linked to a couple of things that he's learning about.
You know, it's really supposed to repost in multiple places.
Things like that.
I've got Brett Cannon figuring it out.
So, a lot of us over here having a little bit of fun with Mastodon.
That's fantastic.
Yeah.
So, fosstodon.org is the free and open source software Mastodon one, right?
Yeah.
But a lot of people are on, so like a lot of people are on Mastodon.social.
Here's a cool article.
Oh, yeah.
Clients-wise, there's a whole bunch of iPhone clients, too.
But you can use it on the web or anything.
Lucas is on, or Lokesh, I'm sorry, is on Mastodon.social also.
Brett's on Fosstodon.
But there's a whole bunch of others as well.
Yeah.
You have to apply to get in there.
So, I applied, but I have not been let in yet.
So, hopefully, they will find me worthy and I can join you.
Okay.
Let's see.
Well, I know some of them.
So, some of them are, since these are private things, there's got like people running their
own servers, there's funding models on each of them.
And like Fosstodon, for instance, said they want to make sure that they always have six months
of running time or something like that.
And that's cool enough for me.
So, anyway.
Yeah.
I'd be happy to pay a dollar or two a month just to have no ads and have a well-curated,
somewhat not terrible space.
You know, yeah.
I wasn't really getting to get into the politics of it, but the whole $8 a month thing.
Actually, if I could have got rid of ads and actually got some other cool features, I probably
would have paid it anyway.
I just don't want to pay it now.
I'd be like two months ago.
I probably wouldn't have been up for it, but I don't want to do that right now.
Yeah.
I don't know.
I have no intention of leaving Twitter at the moment.
There's still like a really valuable community for the podcast listeners and stuff.
But I do think it's also super interesting to reach out to these other spaces.
Mastodon is one.
It's kind of interesting in that there's a bunch of little islands.
And the thing that's cool about Twitter is you go to the continent and then you find your
space within that.
It's like, here you got it.
What is the place I go to?
I'm telling you, this is like BBSs.
What BBS has the place where there's kind of cool conversations and good games I can play?
You dial that one up.
Or we could just go back to like, you know, Planet Python and RSS feeds for everybody.
Yeah.
Nothing wrong with RSS.
Cool.
Well, thanks for bringing that up.
I have some more thoughts on this as well later.
But for now, for now, maybe we could talk about our sponsor.
What do you think?
We should talk about our sponsor because it's cool that we have one.
But also, it's Microsoft.
So this episode of Python Bytes is brought to you by Microsoft for Startups.
But starting a business is hard.
Most startups go out of business within the first year, which is totally lame.
So Microsoft for Startups set out to understand what startups need to be successful and created
a digital platform to help you overcome those challenges.
And they came up with Microsoft for Startups Founders Hub.
The Founders Hub provides all founders at any stage with free resources to help solve startup
challenges.
The platform provides technology benefits, access to expert guidance and skilled resources,
mentorship and network connections, and so much more.
Unlike others in the industry, Microsoft for Startup Founders Hub doesn't require startups to
be investor backed or third party validated to participate.
Founders Hub is truly open to all.
You can speed up development with free access to GitHub and Microsoft Cloud.
And there's other partners that they've partnered with, such as OpenAI.
You can get discounts through there.
So you'll have access to those extra resources, but you also get access to their mentorship network,
which includes hundreds of mentors across a range of disciplines.
Need advice on marketing, fundraising, idea validation maybe.
Tons of topics that you might need help on, including management and coaching, and you'll
be able to book a one-to-one meeting, one-on-one meeting with mentors, many of whom were former
founders themselves.
It's no longer about who you know.
Get critical support you need from Microsoft for Startups Founders Hub.
Make your idea a reality today.
To join the program, visit pythonbytes.fm Founders Hub 2022.
And that link is in the show notes.
And I know you can find this on your own by Googling, but using that link in the show
notes will help them know that you found it through this podcast.
Thanks.
Yeah, absolutely.
Thank you, Microsoft.
Oh, you're on mute.
I am.
Thank you, Microsoft.
And yeah, let's move on.
A couple of these things are about continued journeys.
Sometimes we're on a journey, you know?
Yeah.
And, switch it over, Thiri, over on Twitter, not Mastodon yet, sent us a message and said,
hey, nice episode.
You know, remember I was on this, I talked about like Panix, SSH, a thing called Prompt,
and some of the other ways I was trying to like, well, how do I just take my iPad and no keyboards
and no extra stuff and just have a little DevOps-y coding environment, right?
So, Thiri says, you should check out Gitpod.
Have you heard of Gitpod?
No.
Pod as in pods from Kubernetes.
But here, he says, you know, basically I'll just pull up and show you what it is.
So, if you go over here, the idea is, it says, always ready to code.
Like, that sounds cool, right?
And I love, look at this little graphic, right?
Okay, you're like, your chair is an enter button.
I love it.
Oh, I didn't notice that right at first.
That's cool.
Yeah.
And by the way, they just, this happened, I think, since this got sent over, they just
scraped a $25 million Series A round.
So, there's a good, you know, there's a lot of effort behind this, right?
Gitpod is, I believe there's an open source version and then like a hosted version as well.
So, the idea is, what you can do is, I can go and it'll create a Kubernetes Docker type
image that I can configure.
So, basically a Linux machine that's isolated for me, which is nice.
And then, I can log into it one of two ways.
I can log into it in the browser.
And just like if you go to github.dev, which is what I suggested before, in the browser, this
connects to your own environment, which the thing that's cool about this is it's that environment,
you have root access to do whatever you want to it.
So, if you got to pip install something that's weird or whatever, like, you're not like, oh,
well, sorry, you can't install this dependency.
Too bad, right?
It's just, it's yours.
You do whatever you want with it.
And that's in the browser.
So, on your iPad browser, for example, or if you happen to be on the desktop and what
you want is just like a, I'm on an ARM machine.
I want an x86 machine or I want a Linux machine that's like production and that is not just my
Mac or my Windows machine.
You can actually connect to it with a full-on VS Code or even PyCharm.
You can plug directly into it and remotely edit locally on PyCharm locally, but then like
debug and run your environment there.
Wow.
What is that?
That's really cool.
Yeah.
It also works for IntelliJ, the Go, basically all the VS Code and all the JetBrains IDEs,
which is like a huge long list.
And Vim, and also Vim.
Wow.
So, anyway, this is really cool.
And there's one of the recommendations or like the reasons for it.
It says, look, you can do multi-track development.
So if I'm working on a feature branch and I'm working on main dev and I'm trying to do a bug
fix instead of, you know, staging or stashing and then checking out and then try that, then
unstat, you know, check over to the other thing, unstat, like, you know, juggling one working
environment.
You can have multiples of these Git pods, one for each part of your project, even.
Bring it closer to your Linux and Docker runtime.
You can even do like paired programming on it, which is kind of interesting.
And here they got an example of it running on an iPad.
And apparently you can install like a bunch of different extensions and stuff and like,
you know, configure up your thing.
So there's an open source version, which is free from big tech influence.
But there's also, you can get their version on the cloud or you can self-host it or whatever.
Right.
And so there is a paid component to this.
Like this, you know, they got $25 million, right?
It's not just like to set on fire, although maybe.
There's a free version, which gives you 50 hours of coding a month.
That's pretty good.
Or you can pay $9 a month for 100 hours or there's like other higher tiers, 25, 40 bucks
and stuff.
But it's open source and there's some free versions and reasonably priced versions.
And yeah, I don't know.
I think it's pretty cool.
So thanks, Theory, for sending it over.
And, you know, it's definitely an option out there.
Yeah.
And the self-hosted also looks like an option as well.
Yeah, exactly.
So you can self-host.
I think you basically probably set up a Kubernetes cluster and like it connects and goes against
that.
Oh, yeah.
Just throw up a Kubernetes cluster.
Yeah.
Exactly.
All right.
Well, I haven't.
I did play around with it and it worked pretty well, but I haven't done anything serious.
It still looks cool, though.
I like it.
Yeah.
Yeah, absolutely.
All right.
What's your last one here?
Oh, last one is a short one.
I just wanted to talk about terminal colors.
So I've got a little pytest plugin called pytest-check.
And it's got some terminal output.
but it does talk about failures.
But it does talk about failures.
And somebody completely reasonably submitted an issue and said, it'd be cool if these were
red so you could see them easier.
And I'm like, yeah, that would be cool.
So what should I do?
Well, I could, you know, Will, I want to let you know that the first thing I thought about
was I could throw a rich at it.
So I could use rich to put red in the terminal.
And but rich is now rich is awesome.
I love rich, but maybe it's a bit of a big hammer for for just adding one color.
I just had a red.
So I went looking around a little bit and there's term color and there's colorama.
There's other things I ended up.
I'm looking at colorama right now is what I'm playing with.
So colorama is used by a lot of applications.
And one of the reasons why is because it helps with the cross being able to use colors on both
both windows and everything else.
Windows is a little special.
It doesn't act like the other stuff.
So you have to do things a bit special.
And I was kind of glad I looked at this because one of the things that came up recently in one
of the new versions is colorama has a thing called just fix windows console.
It's just a from colorama import, just fix windows console.
And you call that.
And after you call that, then your window, if you're running your application on windows,
it acts just like a normal TTY terminal on Linux or Mac or something.
Oh, wow.
At least in terms of a lot of stuff.
The other thing that just fixed windows console, I think I got this right, is it's you used to
have to call a nit.
And now you call this other thing.
But you can you can call that on Mac also.
And it just doesn't hurt anything.
It's fine.
So you can.
And now after you've done that in it, and there's a whole bunch of text here that I just skimmed
really briefly.
I just wanted it to work.
Just call that.
And then you can use these these color codes like for four dot red, for instance.
That's what I wanted.
Some red text.
And there I've got it.
So after you change change stuff around, you also have to reset it.
So there's a reset code.
Now you can do the same thing.
And it has it on there, there read me is you can use the hex or whatever color code escape
sequences.
So backslash zero three three bracket.
31 M is red.
But I don't I think I'll go with the named ones.
How about some constants instead?
Yeah.
So this is pretty cool.
And I think I kind of think this is where I'm going to go with with adding red to my
test check.
So if you want just a little bit of color and nothing that you need rich for, colorama might
be what you want.
So nice.
Colorama is definitely a go to for me when I just want like this needs to be red or green.
It just needs to stand out somehow.
For sure.
It's very cool.
Yeah.
Cool.
Awesome.
All right.
Well, that brings us to our extras, huh?
Yeah.
Do you get any extras?
You know, I do.
Let's see.
Some of these are quick, some slightly more.
So Roman Wright, who often we find here in the live streams as well, maker of Beanie.
Love Beanie.
Beanie is powering Pythonbytes.fm, by the way, for various other things.
So super awesome.
He'd been thinking.
And so Beanie is Pydantic plus MongoDB async.
And so there's plenty of reasons why we might want a synchronous API.
I'm just in the middle of some script and I just need to talk to the database real quick.
Like, do I really need to upgrade this whole thing to handle async code?
Shouldn't there just be a way to call it?
There should.
And so he created a derivative or mirrored version that is like Beanie, but has a synchronous
set of APIs instead of asynchronous.
API is called Bunnet, which I don't know the word Bunnet, but I think it has something
to do with like something to do with a bean.
I'm not sure.
But anyway, Bunnet, it's similar to Beanie, except for you just don't await things, right?
You just use the pipe Mongo base instead of the motor client under the hood.
And then you just, you know, do thing insert or thing dot find one or whatever.
So people can check that out if they're into Beanie, but they don't want the async version.
Hmm.
Yeah.
So I just looked it up.
A Bunnet is a, it's, it's a type of hat.
It's like a Scottish hat.
Okay.
Well, that would explain the, the, the icon here.
Maybe it looks like a bean, but it's actually a hat.
Oh, Roman's here.
Hey, Roman.
So this is a Scottish word.
Fabulous.
And Will McGugan is a Bunnet is a hat worn by old Scottish men.
Lovely.
Cool.
Awesome.
And congrats Roman on getting that out there.
That's awesome.
PyCon, you brought up PyCon 2023 last week.
Yeah.
They've got this cool, like tile sort of celebration of history on their website.
And they tell you that it will be April 19 to 27.
There's a small problem with that though.
How actionable is it?
If I want to go to the conference and I want to go see the main talks, when do I book my travel?
Yeah.
The whole thing.
Just stay there.
It's awesome, right?
I can come to the tutorials and do the week of sprints after.
I don't know.
That's a lot.
And so I reached out to Twitter and Marietta says, tutorials are on Wednesdays and Thursdays.
Talks, keynotes, expo halls are Friday to Sunday.
And from Monday onwards, those are the sprints.
Perfect.
So yesterday, while I was getting studded winter tires put on my car so I can go to the mountains
and not die, I decided to go ahead and book my travel and I'm going to go to the conference.
We talked about maybe we'll go, maybe not.
I'm going to go for a whole week.
I'm going to show up on Thursday and leave on the next Thursday.
Maybe be part of the sprints, but definitely do a ton of podcasting while I'm there and try
to just make it like a, other people will be sprinting out.
Okay.
I'm going to be sprinting on podcast episodes.
I got to decide what I'm going to do.
I haven't decided yet.
I'll probably go.
Flights are still pretty cheap right now.
They might be like hotels and stuff.
I think there are really a lot of variations.
Like there was, I was like, oh, maybe I'll stay at the Hilton.
$3,300.
Like, yeah, maybe I won't stay at the Hilton.
What else?
So I think people are starting to book it out.
Okay.
Yeah.
Anyway.
Thank you, Marietta, for sharing that information.
It makes it much easier for us to plan about participating or even just watching PyCon online.
Yeah.
Cool.
Yeah.
All right.
Quick shout outs to GeForce Now.
Have you heard of GeForce Now?
No.
So my daughter's really into gaming these days.
Plays a bunch of like horse riding games and Minecraft and Planet Zoo.
And there's like a cool Jurassic Park thing that's like a Sims, but for dinosaurs.
Most of these games run on Windows and we have an Alienware computer, but it's like all set
up for my SimRacing.
So it's kind of hard to play games on that don't involve a steering wheel.
And she's like, how can I play these games on my PC?
I'm like, or my Mac, right?
She has a MacBook Air.
Like, I don't know.
She's like, how could I play if I'm not at home and I can stream?
So we try out GeForce Now.
Basically, they'll give you a high-end Windows computer and like a GeForce 3080.
And it just streams like Netflix to your PC.
And it is super low latency.
I mean, it's like you're really just playing it there, but you're not.
It's pretty awesome.
Oh, so you can play a game on a remote computer then?
Yeah.
Or I mean, you can play it on your iPad or you can play it on your iPhone or Android or
on your Mac or whatever.
And they've got a completely 100% free tier.
So it's pretty nuts.
We should check that out.
Anyway, that was a cool techno experience.
Two new YouTube videos I've released.
One five days ago.
One five hours ago.
How about that for timing?
Nice.
So as part of this sort of social media, Twitter madness and various other things, I've been
thinking about this for a while.
Anyway, I'm like, I really want to try to build up my presence on other areas that are not just
Twitter.
And so like, well, YouTube might be one fun place to sort of build up a community.
So I'm starting to add more videos there.
Right.
So like I've done in the past couple of weeks, I've done four videos.
But the last two is a walrus meets a python, which is fun.
That's about the walrus operator.
And then the one that came out today is Python GC settings, which shows some insane stuff
you can do to tweak the GC a little bit and get crazy better performance.
Nice.
The GPC being the garbage collector, right?
Yes.
Not reference counting, which does like 99.9% of Python memory.
The 0.1% or the 0.1%, whatever's left over.
Like that actually, you often can turn that down because you don't really have cycles that
much that get lost.
And it turns out to have some pretty interesting effects.
We talked, we think we covered, was, was it Instagram?
I think, I think they wrote an article called dismissing the garbage collector where they
literally turned it off in production.
It was either that or, or I can't remember which one, which company did it, but this is
kind of like a, well, let's don't be so aggressive like that, but kind of, you know, and it's,
it's pretty, yeah.
Nice.
People can check those out.
Um, yeah.
So one of the things, that I, the only extra I've got is, I really liked this
article, from Simon and Wilson about what to blog about.
So a lot of, so people are, you have a presence somewhere other than Twitter, like, and maybe
write, start writing your blog more.
Um, and I like this, what to blog about with the, he goes through a couple of things.
One of the things is the today I learned.
And I, you know, I actually, at first, when I first encountered the TIL thing, I first was
like, why not, why do you need that?
Can't you just like, just write what you learned anyway?
But a lot of people have this paralysis of if I write how to do something, people are
going to think it's a tutorial and I don't know how to do everything with this tool.
I just learned this little thing of how to do fix my thing.
So, the T to D the TIL at least is a tag that people will know.
It's, it's not a full tutorial.
It's just a little snippet of somebody learned about this thing.
And, and I think this is a great way to go about, writing it.
It can be, it can be short and simple, or it can be longer.
Plus also, if you build up a lot of these around a topic, it might turn into a tutorial
later.
So, cause you can, you, now that you've learned a ton, you can write a blog or longer
blog post about it.
I also just want to tell people that it doesn't have to be a, like a full tutorial.
You don't have to compete with real Python or other places.
You can just do a short thing you learned about.
It doesn't have to be.
Okay.
The other thing he talked about was projects is to write about projects that you've done.
Um, and, and I think that's a great idea.
And, but I also want to make sure that people understand also the things you're working on,
right?
Right.
As you're building stuff, this can be part of the TIL, but it could just be, this
is the fate.
And it's also another way to limit the scope, like, color in the terminal.
I don't want to write about all of color in the terminal, but maybe I could write about
the, just fixing this one bug or this one feature request.
What I went through to figure out how to figure out how to use colorama and, and then how
do I detect whether it's a TTY terminal or not?
Uh, things like that.
That can be a decent article just to write about that.
Um, and so I think these, this, these are great tips for, unblocking yourself.
The other thing I want to tell people about is, you, if, is, if you covered it, you've
learned it from somebody else's blog also already, but you, it didn't quite meet your needs
and you looked at other places.
Um, that means that there is a tutorial out there that's missing and it's the one that
kind of myth fits your brain.
You can rewrite something that is, is similar to what other people have written about and
just write it in a different way that fits you better.
And that'll maybe fit other people better too.
So there's nothing wrong with that.
It doesn't have to be completely unique.
Yeah, absolutely.
Definitely.
It doesn't.
I like it.
That's all I got.
Came out there.
Yeah.
Came out there.
Says TILs are also handy to reread from time to time and remind yourself of things you've
figured out than forgotten.
Yeah.
Like you can see the search engines with stuff that you knew.
And then when you forget it, you can find it again.
And you know, that's how I started blogging and I didn't call it TIL.
I would just, I had a blog, nobody was reading and I would just, throw up stuff
like, commands that I looked up like commands from a tool.
Like, I always forget how to change my commit message if after I've committed too
fast.
Um, so throwing up a little post about get commit amend would be fine.
Yeah.
So yeah, absolutely.
All right.
Well, this has been a fun episode, but it's still good sometimes to just take a moment and
relax.
Right.
Yeah.
I mean, some people, I took my dog for a walk in the woods during sunrise.
There was like this fog that some, for some people getting out in nature is amazing.
But as software developers, a lot of times you want to get kind of close to the
code or like close to the heart of technology and what, what speaks heart of technology
more than the server.
This is crazy, man.
Yeah.
So, so here's a thing you can play.
It's on YouTube.
I'll show you in a second.
And it says pure relaxation server sounds.
And we can come over here and it actually has tracks.
So like it starts with desktop in the doldrum, entering the engine in the engine room, the
far side of the cloud.
I find co-location ventilation to be especially relaxing facing, facing the cloud.
And finally spacewalk.
So I just want to play a little bit of this for people, Ryan.
Okay.
I think, I think they're going to enjoy it.
Maybe.
It's amazing, right?
So relaxing.
So anyway.
You shared it with me before we started though.
And I got to say it's hilarious.
So I'm going to go check this out.
I mean, keep in mind, a lot of people have to wear like big earmuffs sound protection to
go in this room.
So it might be the opposite of relaxing, but you'll see.
You'll see.
Okay, cool.
Nice find.
All right.
Yeah.
Thanks.
Just here to help people be more productive, you know?
Maybe not with this though.
Well, and some of these people that used to be around all these server farms are now working
from home and they might miss that sound.
So that's true.
Good.
Roman out there points out that the scary part is actually if the server room is quiet.
Yeah.
You go, no, why is it quiet?
This is not good.
Yeah.
All right.
Well, thanks a lot for, as always, and thank everybody for watching and showing up and listening.
We love you.
Yep.
Thanks everyone.
It's been an awesome six years and we'll keep going.
Yeah.