text
stringlengths
0
2.35k
[399.68 --> 400.04] Yeah.
[400.44 --> 401.70] That's a horror story there.
[402.06 --> 402.22] Yeah.
[402.22 --> 409.10] You can choose individual bits of corn and have them different flavors and just have as many as you want.
[409.24 --> 409.86] You just program it.
[409.90 --> 412.18] You do it as an app and then it pops it on demand.
[412.86 --> 415.96] You say that, but we do have soda machines where you can choose your own flavor.
[416.34 --> 416.70] Yeah.
[416.98 --> 417.74] I've seen that.
[417.82 --> 419.48] Those freestyle Coke things.
[419.60 --> 419.68] Yeah.
[419.68 --> 421.04] Has anyone come up with a good one yet?
[421.10 --> 422.80] Because I imagine they're all terrible.
[423.34 --> 425.36] But you reckon someone's like, do you know what?
[425.38 --> 429.64] I've accidentally pressed these three and I've made a brand new flavor that never existed before.
[430.00 --> 430.34] Well, no.
[430.46 --> 435.94] I think they make it so you can't make any truly terrible tasting ones because that would be perhaps bad for them.
[436.28 --> 436.30] So.
[437.26 --> 437.82] Oh, really?
[438.06 --> 438.42] Clever.
[438.42 --> 439.28] How do they do that?
[440.00 --> 440.92] Oh, well, we'll never know.
[441.52 --> 444.78] Well, speaking of horror stories, let's get into this, shall we?
[444.82 --> 447.16] Who wants to kick us off with a spooky story?
[447.30 --> 454.08] Oh, by the way, we should actually introduce Dee because Dee wrote a package that I think a lot of people here will be familiar with.
[454.42 --> 455.56] Can you tell us about Blue Monday?
[456.58 --> 457.40] Ah, Blue Monday.
[457.90 --> 462.34] It's named because there was a package called Black Friday, which is all the best markdowns.
[462.34 --> 463.52] And it's a markdown package.
[464.10 --> 468.76] And after you've generated markdown, markdown can include HTML, which makes it dangerous.
[469.20 --> 474.72] It's probably you're using this because you've got user-generated content and you want to sanitize it.
[474.72 --> 478.88] So Blue Monday is named after the New Order song, but follows Black Friday.
[479.46 --> 481.52] And it basically sanitizes HTML.
[481.78 --> 488.54] It's the only Go package that sanitizes HTML, which is a foolish and reckless thing to attempt to take on.
[488.92 --> 489.66] But that's what I did.
[490.90 --> 491.40] Amazing.
[491.40 --> 494.68] And what do you like about it and what don't you like about it?
[495.00 --> 496.12] I like that it works.
[496.54 --> 498.38] It's all a streaming parser.
[498.62 --> 499.60] It's got fixed memory.
[499.78 --> 503.22] So you can use it quite comfortably in a lot of situations and throw a lot through it.
[503.52 --> 507.42] I don't like when people tell me there's security issues with it and then I have to go,
[507.82 --> 509.98] oh, I'm supposed to take this open source thing seriously.
[510.64 --> 511.86] I do appreciate it.
[511.90 --> 514.00] I should actually say I do appreciate security reports.
[514.20 --> 520.54] But at the same time, you never can predict when they're going to turn up and you never know what kind of worms you're going to open
[520.54 --> 521.96] to try and actually figure it out.
[521.96 --> 527.82] Yeah, there must be a lot of responsibility, actually, because it is a package that is used and quite trusted.
[527.82 --> 529.70] Yeah, it's used.
[530.28 --> 534.90] I don't know how many stars it's got, but the stars don't betray the number of times it's used.
[534.90 --> 537.28] Like it's used in Hugo and everyone uses Hugo.
[537.54 --> 540.20] And this is the HTML sanitizer that keeps Hugo safe.
[540.36 --> 542.04] And it's used in so many things.
[542.12 --> 544.22] It's got literally thousands of dependencies.
[544.68 --> 546.42] Do I take it seriously and stressfully?
[546.62 --> 548.02] No, no, I don't.
[548.26 --> 553.96] I figure that if someone is brave enough to take an open source project with a MIT license or BSD3 clause,
[554.04 --> 557.90] whatever it is, and incorporate into their production software, that's on them.
[558.66 --> 559.44] Okay, fair enough.
[559.82 --> 562.44] Well, I have done that, but no, good to know.
[562.44 --> 565.44] I genuinely have used it, though, quite a few times.
[565.86 --> 570.72] So I like it because it's like you opt in to what you want to support, don't you?
[570.78 --> 573.22] Like you explicitly say the things that you want to allow.
[573.82 --> 577.68] Yeah, there's no way of defining what makes a good HTML sanitizer.
[577.96 --> 580.06] Everyone's got a different rule, depending on their use case.
[580.44 --> 584.52] But the Java OWASP, Open Web Application Security thing,
[585.04 --> 588.42] their sanitizer defined this really beautiful interface for sort of going,
[588.42 --> 592.74] I want to allow images, but I don't want to allow this images that end in .gif.
[593.16 --> 596.32] And I copied their API and then extended it for my own use.
[596.78 --> 598.66] So, yeah, it's a really good way of doing it.
[599.96 --> 600.40] Nice.
[600.64 --> 606.62] Okay, well, I'm going to tell you about a horror story in tech of mine that happened quite recently.
[606.62 --> 612.74] I have this project which interacts with Twitter and interacts with the Twitter API.
[613.14 --> 616.26] And so it poll results and then compares them and stuff.
[616.88 --> 619.14] And that's just one of the things it does at a regular interval.
[619.70 --> 624.18] And then what happened recently was something happened where like the API key changed
[624.18 --> 625.84] and that request failed.
[626.20 --> 631.38] And because of the way I was doing it in GCP, it meant essentially that it would retry.
[631.56 --> 634.46] And because it was scheduled, it kept compounding.
[634.46 --> 640.14] And this ran up a $1,000 bill for me, for yours truly.
[640.58 --> 644.22] $1,000 given, paid, gone.
[644.76 --> 646.90] So that's a bit of a tech horror story.
[648.06 --> 649.28] Any advice for me?
[649.74 --> 650.68] Is it tax deductible?
[653.50 --> 653.94] Probably.
[654.34 --> 656.60] AWS famously was funded if you get something wrong.
[656.68 --> 657.70] Did GCP not do that?
[657.96 --> 658.46] I don't know.
[658.50 --> 659.42] It's quite recent.
[659.54 --> 661.10] I haven't yet tried that.
[661.24 --> 663.50] Do you think I should get in touch with support and see if they'll...
[663.50 --> 665.08] $1,000 would motivate me.
[665.66 --> 666.02] Yeah.
[666.58 --> 667.00] There you go.
[667.06 --> 667.44] $1,000.
[668.40 --> 668.76] Okay.
[668.84 --> 671.54] Well, I'll try it and I'll let the listeners know how we get on.
[671.82 --> 672.52] Could have been worse.
[672.94 --> 673.18] Right?
[673.62 --> 674.66] Could have been $2,000.