Skip to main content
View on YouTube to comment and like!

Syntax Video

Syntax Bytes with CJ - CSS Battles | Working on Tauri App and Syntax.fm

Chapter 1 00:00

Transcript

hello there welcome into syntax bytes episode number four today we are going to be doing some CSS battles and then we'll work on the tari app that we've been working on uh which is the syntax production assistant and after that we'll also work on syntax. FM so I've got a couple of issues pulled up for both the production assistant and the website and so we'll work on those uh when we get there but before that we're going to play CSS battle so if you haven't heard of CSS battles um you can go to CSS battle. deev they have various battles that you can try and do where essentially you're given some image and you need to recreate that using only CSS and HTML uh so we're today we're going to be doing battle number 122 and then after that we'll be doing uh battle number 121 where we're creating like this little eight bit 8bit level is what it looks like uh but that's the plan for today let me welcome everybody in and then we'll we'll get started

uh oh thank you Randy I I did my best I have some uh OBS plugins for Transitions and stuff like that but welcome in good to see you all yeah Scott's here Scott's actually working on yeah one of the things we'll probably do before we work on production assistant is review Scott's pool request so Scott uh is updating dependencies in the repo and then also cleaning up some of the CSS Styles so before we actually work we'll do a code review so we'll definitely do that but yeah thanks for being here Scott and Randy and Ryan and Chris Ball good to see you and over on the twitch side who do we got one computer guy thank you for that follow what's up fob and Stony and acid spark uh welcome in everyone good to see you uh let's get into it let's let's write some CSS this is the show where we we write code but Scott is saying still working on the CSS one got distracted by the idea of making a game with party kit o that sounds fun and uh what's up uh zerus uh zerus Z zuru good to see you

William Cameron hello what's up Lance and Vivian good to see you as well um yeah it it could be fun to to make some sort of game uh for people in the chat to play while we're streaming because if you watch over on the coding Garden we have the drop game where people can drop emojis and emotes and it just like randomly Falls but can can it can potentially land in the garden um which was inspired by instaff he has like a drop game but it'd be interest it'd be cool to come up with a game that we could have for everyone to play while we're streaming what's up Miguel welcome in as well and uh good to see you Oscar hello hello Scott needs to show twitch some love too it's it's hard to balance two different chats it really is um oh nice Fab is working on a I guess like a picture app for school very cool all right let's do it we're going to do CSS battle number 122 uh if you'd like to play along at home feel free to go here and try give it a try um I'm going to do my best and

and um after I'm done if you want to share your solution you can put it like in a GitHub gist or something like that and I'll take a look but let's Dive Right In so here on CSS battle they give you all of the colors that you need so this is the blue color that we need and I'm going to set this as the background color for the body so just going to grab the body background okay we are on our way now um I when I look at this I see CSS grid there are some CSS efficient AOS out there that are going to see something else like oh I could do it this way I could do it that way to me the the easiest thing to do here is to set this up as a CSS grid and then color each grid a specific color also will set up uh some Gap some automatic Gap that's what I'm going to do it's going to it's going to require a lot of Dives but to me that's the simplest solution so that's what I'm going to go for uh so here's a game idea

a mini syntax skateboard that moves on the screen by check that could be fun if you do like exclamation mark kick flip it like rolls across the bottom of the screen that could be cool um uh Scott gave me a whole bunch of syntax skateboards actually um I think we'll we'll run a giveaway uh later on so stick around after the CSS battles uh we'll give away one of these anybody that's here you I I'll ship it any anywhere in the

world um but yeah that could be really cool like skateboard flies across the screen what's up Hassan welcome in um and uh oh it's an imager clone nice Oscar says we're halfway there you know we really are setting the background color and we're halfway there okay uh now uh I'm actually not going to have a div a direct div style I think I'm just going to have uh various classes for all the background colors and then we're going to create a bunch of divs that are all of the squares and we'll also make the body a CSS grid okay but um yeah let's do this um let's say that the body is display grid so that's going to make this entire container of grid and then if we look at number of rows and number of columns we've got 1 2 3 four five six six rows and 1 2 3 four 5 six 7even eight columns so six

rows eight columns so we can do grid template rows um and then we want to repeat I always forget is it this and then this let's see um let's say that anything inside of the body has a background of red so that should style any of the divs inside the body um and we'll also give this a gap of 10 pixels okay so nothing's showing up I'm guessing we need to do like this six one fraction maybe we need to add the column grid template columns I think I said

there were eight columns we want to repeat eight times one fraction um and I guess let's just style that div directly and give it a background of red right cuz all of these divs should appear inside the grid nothing is happening let's let's open up the dev tools and uh let's actually see what is actually What's Happening Here do we have ourselves a CS

grid um okay so here's our div ah it's inside of an ey frame it's going to be hard to actually inspect this element oh what happened I kind of messed

up okay uh I'm getting some help from the chat though so shark turnup says it's repeat the number of things you want and then the unit so I got that right after I swapped it up so the number of things and then how many we want I guess oh I need to give this I need to give it a height uh because by default the height only takes up the content so if I if I do 100 view height there we go yes yeah it needs a height and mlin in YouTube they they got it too cuz without a height the grid doesn't have anything to film okay so we're on the way look at that so every single div um is red um I'm curious if our Gap is correct no our Gap is not correct our Gap is too big so let's do like a five pixel Gap um ooh uh it has margin though so I need to make sure that the body has no margin so that way it's all top left yeah okay

I think I need my Gap to be a little bit more like seven pixels yeah I think we're on our way beautiful okay now I just need a metric boatload of divs so this is the plan we're just gonna have divs on divs on divs on divs on divs um and then how many more do we need I think we need six more one one uh start here one 2 3 four five six need six more okay so I have myself uh a grid with a bunch of squares inside of it um and now I need to color them so I think by default we'll just set it to the background color actually I'm going to leave it uh like a red for

now just so I know what's been styled and what hasn't but then afterwards we can just uh remove the default background color so now what I want to do is I want to create a CSS class for all of the other colors so I want a yellow a red a blue and a purple so that way I can apply it to the specific divs um okay so yeah we'll create a class called yellow the background is going to be this color here and then we'll create a class called red and the background is going to be this color here and then we'll create a class called uh teal I'll call it blue so blue and the background is this color here and then uh we also need uh purple and the background

is this one here okay I'm going to get rid of all these comments at the bottom here too all right so now that I have all these classes I need to apply them to the individual elements um so let's do that let me catch up on chat and then basically all I'm going to do is I'm going to go through and each one that needs to be a different color I'm going to give it this class and we're done I hope somebody has a better solution than this because this is very manual right literally have to have a div for every single uh Square here but it works for me this is my this is my CSS process um William Cameron says ship anywhere I mean I was going to cover the cost but I guess I could probably expense it Century would cover it for me to ship it anywhere um yeah and Scott's going to win the skateboard deck but he already has an entire box of them at home expense yeah I'll expense it um

yeah it's a cyan it's a teal but yeah the weird numbers it's not always that way but here we're talking about the Gap so right now the Gap is seven pixels it's like an awkward number but that seems to be what it is it might also be a percentage of the overall width but I don't want to calculate it uh I believe it's a 6x8 grid right one two oh you're right no no no but then there's eight across yeah there's eight across yeah I think we got that that uh an Oscar's solution would be to just create an image that looks like this and then set the background URL um that's that's kind of an amazing way to do it and thank you rollers thank you for that follow and also uh wayne.

deev thank you for the follows um I think they detect against that like if you if you literally screen cap this image on the right and just set the background URL I think they protect against that uh okay now we manually go through and set all of the colors I think I'm going to start at the bottom and work my way up so this far right one stays and then this next one is purple there we go on our way and then this next one is going to be blue because we're actually going across the bottom here okay and then we'll do that again it cyan it's teal it's in the family of blue so we have three blue um oh I missed I missed one there needs to be a blue

here and then a empty div there I missed one okay and then this last one here is yellow

all right we've got the bottom row now you just got to sit here and watch me watch me do this I mean I guess technically if I made it centered and then didn't have a row for the right and the the left and the right that might be easier it's fine everything's fine uh we are now on the next row so this is the empty one on the far left this is empty one on the far right and then now we're on the next row here and this needs to be purple

good and then um we got this one here and Stony says we know what we signed up for yeah CJ the the manual coder I just type everything type everything out okay uh purple purple and then blue and then red red red

look at this the bottom looks basically

perfect so I mean Hassan has a good question which is can you make one instance instead of three blue I think that's another way to approach this right so like basically consider each Tetris shape it's own div and then style it specifically to me that seems harder though because how do you get such a consistent gap between everything I guess you'd have to work like you'd have to have margin it would be tricky yeah oh you could do column span three but then it but then it wouldn't have a gap though the main issue is I need a gap um cuz if you do column span then that div would take up three columns but there wouldn't be a gap in between each column okay we're going to keep moving so uh this will be the far left green this is the far right green and then this one needs to be purple uh that is wrong there's two

blank ones and then a purple yeah and then another blank one and then a red okay and then two yellows

great um and then that's the far left one and then we actually need three blank ones followed by a red one mhm and then another blank one and then two yellow ones

all right yeah inth child I guess could work um yeah I don't know uh so I I guess I've picked this day as my my live streaming day but learn with Jason is awesome you should go watch he's probably doing something way cooler than picking dibs and putting class names on them so go go watch Jason for sure um in I guess inth child could work we'd have to know what what each child is and then we could specify their color directly in CSS instead of putting the class names on it that could work yeah um yeah speaking of gaming I'm building a classic game of Puerto Rico but in an app ah cool this is how V1 of GI up contributions graft worked just just keep typing out classes yeah it's like color it's color by number with CJ exactly Okay so we've got those two we're on our way to the

next one so left blank and then we're going to need two blank ones on the right and then this should be a red one um yep and then the next one is a red one yep and then the rest of the row is empty oh we're almost done we literally only need to do um the 61 as red so 1 2 3 4 5 6 this one is red and we're done all right now all I have to do is get rid of this default background color and we're in that's it that's it that's all it's perfect um and thank you uh Mr uh Barbosa thank you for that follow appreciate you clear clear clear yellow clear huh I I do want to see if anybody else out

there gave it a try or is solving it in a different way let me know I want to see your solution uh I'm going to go ahead and start working on the next one but if you're but if you get a solution for this let me know in the chat and um we'll we'll do it yeah we have H happy little CSS accidents right okay so so Roga has an inth child solution um wow wait what is this colors zero colors one I've never seen that variable syntax for CSS can you specify like an array of

variables because what I see Roga doing is you have VAR you specify the variable and then there're specifying zero and then one and then two the second ARG is the default oh it's a fallback okay that's what uh Stony is saying that it's a fall back um okay okay not perfect my boxes are smaller or larger let's see is that true oh you're totally right you're totally right like okay um yeah look at that this the um I think I need to increase or I need to decrease my Gap if if what if my Gap goes to six

pixels that is better yeah the Gap is six pixels not seven pixels thank you for for calling that out uh was it fob yeah you're completely right um AET spark says my solution would be appropriate I generate the Grid in JavaScript yeah I if we if we didn't have to use manual HTML and CSS I'd use JavaScript too okay um all right let's submit it so the uh and uh James Warner thank you for that raid welcome in Raiders yo yo yo yo yo welcome to syntax welcome to syntax bites uh we're just doing some CSS battles right now um but yeah thank you for the raid appreciate you thank you for the follow uh let's shout out James Warner yeah thanks where what are you working on over there welcome in Raiders good to see you um okay so Scott has an interesting solution so if you're just

joining us from the raid basically we recreated this using only CSS and HTML and my simple idea was to say let's do this as a CSS grid and then color each individual cell the specific color that it needs to be and we got it but it's a whole lot of divs right so every single div I just specify what color it needs to be so we're trying to think of water some other ways we could do this uh and so Scott says an off-the-wall solution would be do this with six divs one for each row then make the color boxes with CSS gradients oh okay yeah so uh basically you could have a CSS gradient that's blue and then red from here to here and then Blue from here to here and then red from here to here and then Blue from here to here yeah each one of these could be a c CSS gradient that feels like more code but it is a way to do it yeah it would not be fun flexible uh a 6x6 grid that is centered oh yeah I guess you're completely I I

thought about this too so because I ended up doing a 6x8 grid so that way I have the edges but if you do a 6x6 grid centered I wasn't sure if the Gap would be appropriate like if the Gap would put it in the right spot which is why I did a 6x8 grid um so top of the compare window select diff when it's close or hard to see diff oh okay my solution isn't perfect look at this and it's probably because it's a 6x6 grid thank you for letting I didn't know that this was uh I didn't know this was the thing so you can see that my boxes are like slightly bigger than they need to be huh I'm curious if we do like a 6.5 s 5.5

5.8 all right we're going to have to go back to the drawing board like we might need to uh create a 6x6 grid that is centered that will probably give us the right alignment then that's what I was worried about initially but apparently it's not perfect okay um yeah and uh yeah so what was James working on a little open source Spotify utility just launched a new feature that updates a CSV with your listening history as someone requested on GitHub oh nice uh feel free to link the GitHub repo that's pretty cool um what's up Ames backet good to see you um you can do this you did that last time with gradients yeah I could do it as gradients but like Scott said it would not be flexible at all because it would be like very rigid scale half a pixel for each uh don't use Gap use margin well the Gap is what gives us the Gap in between each of these

squares um I guess if I set a margin for the cells it's got it's got to be Gap it's got to be Gap I so here's my here's my hunch we need a 6x6 grid um and uh then we just Center it I think that should that should work better so let's let's that's what that's the route that I'm going to go down sweet and uh I missed you too as bucket thank you for being here spot a local this is cool this is kind of like uh so audio scrabbling which is where you keep track of all the songs you've listened to this is cool it's not like a third party service it just writes it to a file oh no this would be used for streaming so like if you're listening to music while you're streaming it can write it to a file and then like OBS could be could read it in to say what your current song is nice heck yeah that's

awesome okay here we go uh I thought I honestly thought this was going to be so easy but it's not so I'm going to do uh a grid template Columns of six columns instead o um but then we also have to set the the

width I guess I don't understand why it's off by so little

do the individual divs need margin is that what we were saying so if I give a div a margin of one pixel um these look very uniform is the thing they're just like slightly bigger margin of a negative 1 pixel negative -2 negative3 it's not it's not quite it's not quite there oh man has a few different uses keeping it simple with local files no API Keys third party account servers yeah that's awesome um you know here here's what I'm going to do it could be close enough that we get 100% because it it uses like an image diffing algorithm and we're probably like 99% of the way there I am just

going to submit this and see what

happens 99.6% match is that good am I is that good I think I want to call this good enough I do not want to spend time just like slightly moving these around to get rid of those borders I don't know I'm going to set a two-minute timer if if um if anyone in the chat can think of a way to fix the weirdness will do it it fix it easily we'll do it otherwise I'm moving on to the next one because I I don't have all day uh why not give the Collins and Rose explicit pixel size instead of fractional oh okay this is a this is a good this is a good Strat I like that um I'm streaming in the wrong chat I'm streaming on syntax what do you mean um this if this was a spec from designer at work I'd call it yeah ABS me too so the thing is there are a lot of people that call themselves like Pixel Perfect devs and that's awesome I'm definitely not

one of them I get it good enough and that's usually enough you know uh margin right one pixel on the body okay I like Scott's idea of giving specific pixel sizes well honestly scaling the divs could help could work too let's just try scaling the divs if we take each div and then do a transform scale of 095 0.9 0.99 98 97 95 we're still like slightly too big there's a scale property

since when is it supported in Firefox

uh Baseline 2022 how did I not know about this but thank you Scott thank you thank you for the scale property also H how did you hire me if I don't know all this stuff about CSS CSS I guess I know a lot of other things but cool that's that's fantastic I did not know that we didn't have to use transform anymore all right scale [Music] [Applause] [Music] 0.95 um and Scott is saying it's only better because you can animate them independently oh like you can animate scales separate from the rest of your transforms that's awesome I like that my money's on the goal being rendered in a different engine like yeah they're backend service that checks to see how close we are is like slightly different um keep seeing that scale property and I'm still shocked it exists

yeah try 1.05 so we should scale up

all right if we do an eight pixel Gap and then a scale of 1 Point 09 9 7 6 5 4 3 two one two there's no way I think we were we're like super close with 0 4 okay let's do 0. five and then like an eight a 7.9 6.5.4 3.2.1 7 6.8 n yeah three hours later uh I I'm not I think I'm done here um and tough crunch says thank you for the self host playlist I've just got into self hosting it has been such a

lovely late late nights week nice glad to hear it yeah um all right let's just see so we want to beat 99.6 let's see if we can beat

99.6 it's worse it's worse all right I'm going to put it back and I'm going to move on but um if anyone can come up with a better solution uh that gets better that's better than 99.6 and maybe a different approach like maybe you're not using using CSS grid I'd love to look at it so give this one a try I'm going to work on the next one but if you do want to give this one a try here it is I'll come look at your solution uh after that have I tried a PIX oh no I didn't try that but I kind of want to move on yeah that could work um so if we have 1 two 3 four five six seven eight um how big are these they 50 pixels 40 pixels 45 pixels yeah they're 45

pixels yeah it's just like slightly there but let's see if this gets us any Clos

that's worse okay that's worse all right I have to I have to end it here I can't stay on this forever um Scott solution with explicit sizes maybe I have to find a different explicit size I guess okay yeah well here's the thing if we do like 46 with a smaller Gap Maybe that's the way to go

right do we for sure know that it's like a seven pixel

Gap or a six pixel Gap I got to move on got to move on yeah and thank you tuto and Ames bucket thank you for those follows all right I did all right 99 six that's fine this one it's going to be interesting uh this one it's almost like we're recreating like a a level from a video game like pixel art video game where you have like the grass the ground the tree the shrub uh this one will be interesting so this is Battle number 121 I'm going to take a quick sip of water then we're going to get into it I think this one's going to be easier we can use fixed position we can just have divs that are of specific height and width oh is it from Duck Hunt uh that's what shark turnup is saying let's see uh duck hunt [Music] Nintendo it's very similar yeah you have

the tree and then the bush yeah sweet okay yeah this is basic we're basically recreating the duck hunt level um okay let's do it I'm going to set the background of the body to be this blue color and I'm going to remove the margin back gr and then I'm going to remove the margin from the body um actually I'm going to remove the margin from everything this is like a very simple reset so select everything margin zero and then also a box sizing border box honestly would this fix our previous

solution no no it won't okay we have a blue background uh I guess I Pro I probably should use a CSS gradient for the background because I did learn about CSS gradients last time let me try to do a CSS gradient so I think I want a linear gradient um that is at this color well I need to look up the syntax I still don't remember it we can have a linear gradient with three different colors in it so you do color and then um like start or color and then end location something like this so it's going to be this is

0% and then uh let's call it like 60% is going to be the green color so the green color starts at

60% no commas in between the number and um so color start color

start or color width I always I can't I don't know why this isn't sticking with me is it start or is it with it's start right um

ah I think I can include two numbers so 0% 60% so start and stop and then start and

stop okay the first one should just be 60%

oh this happens every time to even see this I have to set a height on the body I always forget this there's no automatic height here it has to be 100 100 view height I'm like freaking out why it's not working okay uh this is great there we go and it does look like it's uh 60% ooh there's like a tiny little line 61% 60.

25% six we're going to go with 60% I think that tiny little line in the diff is okay like there's that like tiny little line there okay so we got the green and then lastly we need uh this uh ground color and I'm guessing it's probably 10% from there so this goes from 60 to uh 70% and then we have this one which goes from 70% to 100% not quite um 75 80 76

77 it's not quite 75

73 73.5

73.2 okay beautiful um there are like the diff does show like tiny little differences I think it's perfectly fine okay now we need ourselves a little tree so I want to create a uh Brown rectangle and then try to position it in the right spot so uh let's create a little tree class it's going to have a background color of this brown color here like that and then uh for now we'll just give it a height of 200 pixels and a width of uh 50 pixels which makes me think should we use specific pixel values here instead of percentages that might get us closer but let me see if there's anything happening in the chat uh duck hunt uh dog is my favorite Smash Brothers character I didn't know you could play as him in Smash Bros that's

crazy yeah so we're we're doing a three-color gradient for the background we figured it out um it is true if we only set a blue background we've got like a 50% match already um color position along defined access yeah I think we got it yeah happy little tree class and Lady Lyra thank you for that follow um it's a it's a happy little tree um okay so we have this tree class let's give this div a class of tree okay um it's definitely going to be smaller and uh way less tall that's it is and then let's try to position it in the right spot um I think I just need to do position uh absolute and uh or position fixed and

put it exactly where it needs to go so if we say position fixed I can say left 20 pixels and that moves it over like that and then I can say top 100 pixels and that moves it down like that okay so uh we need to go down a little further great um and then we probably need to go over a little bit like that we need to go over even

more it's perfect it's perfect we got ourselves a tree trunk now we need to create some little green circles uh what I see here is like 1 2 four green circles all on top of each other um there's probably another way to do this oh James Warner got the grid one nice if you want to share your code feel free to um I don't know if they let you link your Solution on here but if you throw your code in a uh a CSS or a GitHub gist I'd love to take a look at

it but yeah I mean I guess you could potentially you could use like a custom path and with the background color I'm just thinking of absolutely positioned circles yeah what's up smiley face welcome in welcome in you'd have a single circle with three box Shadows for the

treetop oh I I don't I don't know anything about that I don't know let's let's take a quick pause to see how James Warner did this one so this is the the grid one um okay so they've got a bunch of spans then ah they used inth child yeah so somebody mentioned we should do this but uh it was to me it would it seemed like more work because I'd have to count and figure out which Childs they were but I I like this honestly this is potentially I mean it's probably about the same amount of code because what I did is I went to each individual element and specified the background color but in this case you're saying grab these elements their background color should be this grab these elements their background color should be this I like it yeah I like it great work um you could probably do that last square one with a ton of box Shadows is is today the day where I learn how to do box Shadows because I don't feel like it U

but let's let's let's look up box

Shadow see I can't even imagine how you would do like a cur like a curved box shadow

huh um Can someone provide some kind of example that gets me there because in my mind I see this I can't imagine any kind of box Shadow like I guess like what you were saying is have a um oh but so if you have a circle you can set its box Shadow to be completely offset and then that's like taking this circle and putting it here is that what we're saying yeah okay I think okay that that makes more sense yeah so because the the Box Shadow is a is a repetition of the shape itself in the case most of us are familiar with a box Shadow is like on a rectangle or like a card but if you make it a circle the Box Shadow is just the same thing and so then you offset it uh but can we have multiple can we have like a left Shadow and a right Shadow or do we just need to have multiple on top of each

other you can have infinite H we should go down this route because I am extremely unfamiliar with box shadows and so we'll learn what all these numbers mean so you can create a ton can you basically do like a comma and and create separate ones I guess that's what that's what this is doing here yeah so you just do a comma so they set a red box Shadow comma the next box Shadow and basically all we need to do is um one box Shadow for the left the right and then the bottom and that gives that basically we have a circle that we can repeat three more times using box Shadow this is it this is this is the day where we learn box Shadows um oh no now I want to do a box Shadow they're similar to gradients okay let's let's figure this out let's get ourselves a treetop and this is going to have a background

that is green color yeah Scott is saying now I wonder if there's a limit on how many you can do I mean I would imagine four one for each side but um any number of Shadows it says any I think they mean infinite yeah Scott is say you do way more than four yeah uh before the oh before before the browser crashes uh honestly if you could crash the browser with a ton of box Shadows that's crazy that'd be funny but it's crazy that it's even possible okay um all right we have the green background color I'm going to give this a fixed width of let's just call it 20 pixels for now and a height of 20 pixels and uh a border radius of 50% so

this should give us a nice green circle now we're going to add the tree top right above the tree uh we're actually going to add it below the tree because we want to draw this Treetop on top of the trunk and right now you can see that my trunk is like a little bit too high but that's fine because we're going to draw the the Treet top on top of it so if we put the Treet top below it'll be rendered on top of it okay so there's our our little Tree Top I think it needs to be bit bigger probably like 30 pixels bigger 50 pixels smaller 40 pixels okay and then um I'm going to uh fix position it to put the circle right here and then we'll make these other three with box Shadow so let's do this

okay for left we'll do 40 pixels that looks kind that looks great uh let's go 90 80 70 60 all right let's look at the diff spot on look at that so that little buddy is in the exact spot he's the right size now let's do a border Shadow to create the left Circle here we go um here we go it has um you can

have I got to figure out what these numbers mean where's the docks uh length length length color uh what about the offset okay specifies the offset length of the Shadow this parameter accepts two three or four values the third and fourth values are optional they are interpreted as follows if two values are specified they're interpreted as offset X and offset y a negative offset X places the Shadows to the left of the element okay so we're going to want a negative offset x with a positive y so that it pushes it down okay um that helps so we're going to do box Shadow we for now let's just do -10

pixels and then a y of 10 pixels and then set it to this it's happening look at that thing it showed up actually let's let's keep it uh let's keep it a different color for now um so that way I can it's easy to differentiate um yeah heck yeah okay so this this value this second value is the yv value so this pushes it up or down um so we probably want it like right there and then we want to go even more over to the left like that okay um we probably want uh more uh we want to go down a little more and then over a little

more that's it we've done it we learned box Shadows so it's actually very simple it's X offset y offset color simple as and then we'll throw the color on there and then we'll look at the diff okay um it's not it's it's not quite big enough is the issue can I increase the size cuz it's it's smack dab in the middle of where we want it to be but it's not oh no never mind it's 20 20 20 but you can use apparently you can use spread if we want to change the the the size um if anyone wants to see Pro box Shadow Mastery let's

see wait are these all done with box Shadow wait wait wait what am I looking at check the second link this one hand coded entirely in HTML and

CSS oh the second link in the chat okay

actually can I just look at the source like this I can okay um we have all of these leaves that we're styling fascinating and then okay the CSS is minimized it's a bit hard to see what's going on um I guess we can see all of these are individual elements like let's just look at the hair here um and then you have a strand of hair which is a box Shadow fascinating and then you have another strand which is another box Shadow okay wow okay uh I remember I did a 4K image with a box Shadow for each pixel and it didn't crash fascinating but yeah and thank you Chris that that was the way to go we did netive - 2020 and now it's in

the perfect space spot sweet um you did the grid one with shadows whoa okay so they saw uh James solved this one with box Shadows this is a sight to see let's see what it looks

like wow and it's almost perfect holy moly that's awesome that's awesome James um so you're calculating like spacing yeah it's not it's not even a grid oh yeah and you're saying it's 100% okay yeah so even the like little offsets were are fine wow so every single square is a box Shadow that's just offset in a specific way

wow that's beautiful great work yeah Draw Something in the most annoying way that you can uh and thank you dub dub dub dub dub thank you for that follow appreciate you um yeah I it might be because I'm running in Firefox James but yeah the fact that I did the comparison and there's like extra okay uh we're learning about box Shadows that's great so uh at this point I need another box Shadow but it's going to be in the opposite direction look I can do this on the first try first try watch this we're going to just copy this and then I know that the X offset is the other way so we just flip these this becomes positive and then uh yeah that's it that's it beautiful and then the last one I can also do first try we don't want any X offset we just want to push it down um but we're going to have to figure out the pixel amount so here I can say uh

don't offset that yeah it's it's perfect look at me I know how to do box Shadows um yeah I guess that's true impressive but a pain to debug I don't know how often I would reach for box shadow in like regular CS regular like building out the CSS of a website um it does seem like um there's very like specific use cases where it would make sense to pull out the uh thing yeah and Scott says sick James great work good work uh now add the shrub with the same Shadow yeah it's simple simple as huh okay let's get ourselves a little shrub

um okay I don't care about code golfing so I'm just going to repeat all this CSS and the only one we want is to just repeat it in repeat the one below it like this um and then we'll change our offset so the left actually we'll do right and then top

I'm a wizard no okay I guess these these shrubs are bigger or is

my oh they're they're smaller it's smaller so probably like U like 30 maybe 20 35

okay that's closer just need to move it over a little more

um it needs to be a little bit wider um I mean is it 40 it is

okay I guess I can't tell what this diff which way I need to go with it we're too far to the right oh it's perfect we did it we made duck hunt Okay uh I think in the real world you're not going to have a lot of these fixed pixel values but for these specific challenges our window here is always 400 by 300 so these offsets they they can be explicit like that um so box Shadow can be very handy for example set the color to current color inherit it from whatever theme you have going on oh um I could have done that here right well no because it's the background color can I not you can I use current color here in box Shadow

H oh SQL gster has it don't create a new div use the same one just offset that box Shadow way off okay that's that's hard mode right well I mean it's just another box Shadow it's box Shadows all the way down so instead of having a shrub element we add two more box Shadows to the tree that just get offset way way over here we have to try it right we got to we got to flex our our our box Shadow skills um yeah okay so if we do offset X way way way way over to the right um so like 200 pixels offset y uh probably like 50 pixels and then that this C this circle is a box Shadow

for this shape that's way over here okay we're on our way um so the X needs to go over a little [Music] more 300 is too much 270 yeah 270 and then we need to go down a little

more I feel like I've I've unlocked CSS like I I can do anything now with box Shadows this is this is great okay um and then the same thing so we want another one that uh will be pushed down uh like 290 oh no no so same X but push it down there it's amazing I've done it it's just like magic that's sick okay so I I think I I should get 100% on this cuz like whenever I do the diff you're seeing like these little artifacts but I think technically it'll still get covered as 100% um let's get rid of that so your score so the other part of these battles is technically they code golf like you're

try to do it in the least amount of code I'm not worried about that because I'm just I'm just trying to learn about box Shadows so um 100% nice yeah I'm going to take over the world with CSS it's true Vivian uh go back to the first challenge of grid and use box Shadow I'm not going to do that uh but I could I could figure it out uh because because J James Warner did this with box Shadows which I think that's that's a bit more advanced for me that's that's after I've been using box Shadow for like a week probably yeah um render text pixel by pixel for lur ipsum this is the thing with box Shadows you can literally render pixels you can specify where you want every single Pixel to go you could you could do pixel art with with with box

Shadows is that you you you could do anything um you could have done it with one div and a before or after effect yeah that's something that I don't have a lot of practice with either is you style an element and then style the before or style the after cuz like this this uh shrub could have been the after potentially and then like it has a uh a box Shadow okay this was fun um any other solutions that anyone wants to share for the Duck Hunt game or for Tetris um I just realize I didn't even realize this going into it we basically had a a retro game theme Here we we implemented Tetris and duck duck hunt with CSS um but if anyone wants to share their solution I'll I'll give you another minute or so to send a link in the chat we'll take a look at it uh but then after that I'm going to take a quick break and then we're GNA hop into a code review so uh Scott has um added a PR that does an update of dependencies

and I think he's working on a PR right now that uh updates some Styles and moves some things around so we'll take a look at that as well what's up Pao welcome in good to see you all right all right I'm G to take a break then okay so uh thank you all for participating and sharing your insights and also uh thanks to James for showing his solution those were super cool uh I'm going to take a 5minute break when I come back we're going to do a PR review for the production assistant uh let me show you what that

is [Music] um how do I abort it merged and I had some changes okay we'll fix this

then are you kidding me is it just like extra space

I spelled merge wrong that's okay uh

cool we're going to start this up I and we'll take a look at it but uh yeah welcome in uh Yuki dookie good to see you um we actually just finished up our CSS challenges if you uh want to take a look they are over here you can try them out um I did all right I think I did all right I learned about box shadow um yeah uh I don't know Yuki doie that's just twitch twitch has some automated things it could be like you have a supicious IP address or maybe you've been reported in other channels but um I just met you so I'm not going to assume anything about you um yeah I assume yeah as long as you as long as you stay chill um I yeah everything's good but this is the app we're going to be working on so if you haven't heard of it is the syntax production assistant uh Scott actually talked about it in a recent episode of syntax so you check out

um this episode 8:25 uh this was our hack week project so at Century every year uh the entire company takes a break for a week and people get to work on whatever they want we decided to work on the production assistant which makes it easier to publish the podcast so the idea is uh we can create a project here we drop a video file that got exported from Da Vinci resolve onto it the app then automatically converts that video file into into MP3 that's the MP3 file MP3 file that's going to get published out to uh Apple music and Spotify and anywhere else where you get your podcasts that's the file that we use uh and the video also had embedded metadata about chapters and so we extract all of that out out and uh give you give the uh give you give and give a nice markdown editor here that uses those extracted timestamps um because these timestamps and notes also get go to a lot of

different places so if you for instance look at the YouTube video for any podcast episode welcome it's going to have those chapters right there right and so uh the app provides a way to do that you say copy notes is text that literally just gives you unformatted markdown that we can put into the YouTube description um and then if you head over to syntax. FM this also uses markdown so if you look at episode 825 it's got all of the show notes with all the links and everything else and so this is a markdown file so uh we essentially can take this and automatically create a PR over on GitHub that when merged adds this page to the website um and then lastly if you look anywhere where you get podcasts if you open up the uh description area that's also going to have these notes with like the time stamps and stuff like that and so um the way we handle that is our current publishing platform allows us to set it as HTML so we can click this

button gives us the HTML we can go set it there and then that's what gets pushed out all over like RSS feeds and stuff like that so this is the app we're working on last time I made these updates here where you could very easily add like sick pics and Social Links in the output um and a bug we're going to work on today is whenever you open a PR sometimes it uh adjust the title in the wrong way let's actually see this yeah like this for whatever reason it got rid of the space between the word test and do so I'm going to try to fix that today but before I work on fixes we're going to we're going to do a PR so or a PR review so Scott uh updated dependencies we'll take a look get that and then he's also working on some CSS changes if he's not done with that in the meantime I'll start working on the the fix for the name getting concatenated but uh essentially inside of the app whenever you're done with

your notes you click open PR and it automatically opens a pool request here on GitHub uh with the link to uh with the markdown file that has all of this stuff in here and essentially once this gets merged in it gets Auto deployed to syntax. FM and yeah yeah it's a nice one-click deploy so uh I'm going to take a uh a quick let's call it three minute break and then when I come back we'll do a review and start working on that issue um oh yeah and our our spelt dependencies are getting are got updated by Scott um yeah you can check out my theme here so this has all of my settings my extensions and theme and stuff like that and then I did a a video on syntax that kind of goes over all of my VSS code settings um so if you check out this video

called the best vs code settings um this this gives a rundown of all my settings and and what I use yeah um yeah I think it's a pretty cool app yeah uh Spotify does have chapter time stamps they do yeah yeah we we do front end we do back we do all all of the stuff yeah and um I need to learn GitHub and get before I get into Devas a career it's it's definitely useful I know I know some developers that don't know it very well but uh I would say uh it's good to know as well yes felt was mentioned all right I'll be back in three minutes and we'll work on this codes in the meantime go grab a drink of water Get Up Stand Up out of your your chair we'll see you soon

[Music]

[Music] he [Music] oh [Music]

[Music]

[Music]

[Music]

oh [Music]

hello there welcome back hopefully you all uh took a quick break with me and uh or like me and we can get back into coding um so um Scott says tari isn't showing me Dom and styles in the dev tools really so uh we are going to be working on this app here so this is a desktop app it's built with tari and usually you can go inspect element uh it's a me problem says Scott um but so basically this is a native app but it's running a web View and inside of that web view we have a spelt application so this is why and this is why we can use the element inspector here and this is actually running a safari web view because I'm on a Mac but you can see here we can we can look at these elements we can inspect them Etc um apparently Scott can't though so um but that's okay we have one PR

that we can review um yeah uh what's the best way to learn webdev uh I have a few resources for you so the Odin project is really great um especially if you want to get out of tutorial hell because uh the Odin project forces you to go read articles to uh check your to go through the process of checking your own understanding and they have a few different curriculums so yeah you definitely go through the foundations path um but for instance if you look at this article on how does the web work um here are the things the objectives of the lesson this is these are your objectives and then uh your assignment is to go watch this video read this article watch this and then specifically you have a knowledge check so like the whole idea of not getting stuck in tutorial hell is learning how to check your own understanding like uh stop following people stop following tutorials exactly

and just assuming that now you know the stuff because you follow the the tutorial um you need to actually show that you can do the stuff without the tutorial and so this each lesson has a knowledge check where you should be able to answer all of these questions if you've actually done the work of reading and watching and if you can't answer these questions you need to go back and figure out how to answer those questions uh and then beyond that a lot of the lessons have um uh projects that you specifically need to work on so uh Odin project is really good for that uh you can check out the foundations course and then after that dive into like the full stack JavaScript course but I highly highly recommend this yeah the other thing like Pao is suggesting is follow syntax so you can follow us here on Twitch uh we're also over on YouTube and uh Tik Tok and then everywhere you are on the internet and um you can learn from myself but also the hosts of the podcast Wes and Scott and uh they do three episodes a week uh I try to publish two videos a week over

on YouTube and it's always about web dev related stuff yeah yeah so yeah Odin project is great uh free code Camp is good too uh but the issue with free code Camp uh in comparison to the Odin project is it's it kind of holds your hand right so um if you look at the lessons that they provide you're actually writing code inside of the web browser so like let's look at lesson one here so it shows you what you're going to be building it gives you a lesson on here's the thing you need to do step by step and you're just writing all of your code inside of here uh which is fine I think it's really great for learning especially if you're completely new to all of this stuff but in contrast to that the Odin project actually has you set up a Linux machine and it has you set up an editor so you're doing all this stuff on your local computer which is much closer what you would be doing in in the real world

um but they both have their their uses um but it depends on where you're at in your in your learning Learning Journey yeah that's okay Yuki doie I'm just gonna I'm going to ignore it um I could probably turn off my

um this I don't know if I can't I guess I can't I can't get rid of it but uh I trust you you've been you've been a good viewer so far Yuki doie but those are those are some resources for you uh let's get into it so we are going to review this PR by Scott so this updates everything at once so this is updating all of our dependencies um we're moving spelt to next because yeah we are using spelt version 5 which is currently is it RC what's the current version of uh spelt five did I say nextjs not next spel kit spell kit we're using spell kit um and it's using the next version of spell kit uh but we are using version five do they have like a V5

Branch I'm just curious how I would find this like I guess if we look yeah okay here it is so they're currently in pre-release where does pre-release fall is that after Alpha after beta is pre-release before release candidate I don't know I feel like we're really close we're really we're really close to getting a spell tap and what's up clario good to see you um you're on the YouTube side we're actually streaming over on Twitch too uh do you still stream on on uh on Twitch we I haven't I haven't seen you in a while I'm also not not on um uh not on Twitch as often anymore but yeah go go follow clario um but yeah good to see you uh it is not open source so one of the the tasks that Scott is working on right now is just making sure that we don't have any accidentally committed Secrets or anything like that and then after that we're going to open source it so anybody will be able to go to this repo and see

how we built it with tar and potentially even make PRS if if if that's the kind of thing that you want to do yeah yeah oh nice yeah yeah glad to hear it Cario and thank you Lucas thank you for that follow for friend end I want to learn SP looks fun and less annoying than react but react also has very big user base yeah that's that's the kind of the Dilemma but I would say if you don't know the basics of front-end development at all you should definitely learn the basics of h2l CSS and JavaScript before diving into like spelt and react and stuff like that um okay but uh Scott has updated our repo to use this latest version here and then potentially fixed any breaking changes and then also updated all of the tari dependencies so let's see we got four files changed um this is bumping all of the versions we're using a lot of pre-release software because we're also

using tari version 2 uh which isn't officially released yet it's actually in release candidate um yeah we're we're using V2 and we're using spelt V5 which also isn't released we're on the bleeding edge so those are all updated and then um what is this what does this do Scott dollar sign inspect is that a uh oh that's a spelt thing right or did that used to be a a spel thing [Music] um docks inspect roughly equivalent to console log with the exception exception that it will rerun whenever the argument changes oh that's cool but uh why did you call it illegal illegal okay regardless I'm

actually I'm going to pull this down and make sure that the app still runs for me after updating all of the dependencies so uh let's do that I'm going to kill the app and then if I do a get fetch that should pull any remote branches that I don't have locally and then I can check out the update depths Branch so if I do get to checkout update depths uh now if we do uh a p& PMI that should install the latest dependencies I guess I can update my version of pnpm too let's do that [Music] okay do it again looks good and then I know I can do like a cargo update or a cargo run but if I start up tari uh part of what it allows us to do is uh or what it does behind the scenes is it'll automatically update those dependencies if it sees us they they've changed I believe um yeah so it's going to update

all of our crates so crates are our rust dependency so we have some native code written in Rust and that has a other set of dependencies that it

needs oh I see Scott is saying they were using inspect outside of a component which is illegal and that broke the build

okay yeah um and uh Yuki is saying it's a lot of updates for 1 PR it is but it it needs to happen and um the thing is there were no code changes so I'm guessing uh Scott kind of went through and made sure everything's still at least yeah I mean the app at least starts up we probably like we don't have any tests written but we probably want to go through and just do like a manual test of all of the stuff make sure that it nothing breaks and then and then we'll merge in so we're going to go through the full flow of uh what our producer Randy would do whenever they're publishing an episode so let me let me pull up my example episode and I'll show you how this whole thing

works okay here we go so basically what you do is you say new project and then you can drop a video onto it and so these videos uh are the edited versions of the episodes that were exported from Da Vinci resolve but they include chapter information and we need to convert these into MP3s um right now it sounds like my computer is about to take off I I have noise cancellation so you might not be able to hear it um but this latest build is really making my CPU turn but that that should be fine for now anyways so what we can do is basically this video gets exported and now we want to turn it into an MP3 and create the show notes so if I grab this and I drop it here um whoa do we have a check now to see if the MP3 file already exists because I think that's what

happened um so let's actually try that again but I'm going to delete this MP3

file M it is not updating the progress anymore um like it basically gave us the path instantly but it didn't show the progress yeah do I fix it or do I tell Scott to fix it I'm just going to keep note of the things that I that I see here um was that because it happened so fast no I saw behind the scenes it was still saying progress let me show you one more time like if we um just do a different episode like 816 see it shows finished but behind the scenes it's like 20 26 it's not for whatever reason it's not reporting back I don't know if if maybe if tari V2 if they changed how you do like async commands and updates um but just going to make a list of issues and then we'll either fix them

or um ask Scott to fix them uh MP3 conversion progress is no longer

reported uh it only it immediate immediately chose the file path but the CLI still shows progress

yeah Scott is saying interesting that you get the path right away I'm not sure how the code is written but yeah it would seem that this thing res this thing Returns the path when the the function is done running um like we can see it on the tar side if we look over here and Source tari here there should be a command for uh create a B3 which is this right here um it's an async command it's got to do all of this work and then finally when it's done doing all of the work it responds with the output path so that yeah that is very weird that it's actually responding with the output path even though it's still being created behind the scenes is it po okay here's the other thing to check is it possible that it is created immediately but these progress updates are like way behind let's actually see

um what I want to see is here in my file explorer is that MP3 file does it have the full size is it actually created immediately yeah see it's zero bytes we still have this here still converting behind the scenes now it exists and now it has actual MBS so it's not finishing immediately it's just not reporting the progress that's super weird um okay that's one issue yeah that's super weird um because I mean that Scott Scott just said WTF in the chat I agree because look this function Returns the output path is it possible it's some Rust thing where like we're not

um we're not waiting for the command to complete because like technically the output file exists it's just zero bytes we need to wait for the the full thing to be completed um but that's what I thought this was doing I don't know we'll debug it later but that is an issue Okay so that's one thing is it converts it into an MP3 file uh next it also needed to extract the metadata to create the show notes did it do that it did so here is where all of those notes are extracted to uh that looks good I'm going to open up the the dev tools and make sure there's no like weird errors in the console um web view internal toggle Dev tools not allowed permission associated with this command maybe that's a new thing in tarv 2 too but we need to

enable loading up the dev tools that's that's very likely a permission um inide of the tar settings so if you look in tari the tari config there is a section where you can specify permissions well maybe it's not the tari config um I thought it was

capabilities default this this file lists all of the things that our app needs to do like make Network requests open the window and stuff like that and so I think we need to add a permission that says open up Dev tools um and that's probably a change in something that got added to V2 um let me add that

here likely need to add permission to uh tar Json file cool yeah lima lima be says I concur with everything and I I have zero knowledge of coding uh it reminds me of the the movie Catch Me If You Can with uh Leonardo DiCaprio where he's like pretending to be a doctor and he's like do you Concur and he's like uh and then afterwards he's like I should have concurred just concur just concur I'm trying to learn without going to college um I understand logic gates fairly well due to engineering games but here we go yeah you can do it I think uh programming is very logical so yeah um I love that movie it's uh Catch Me If You Can it's based on a true story um where uh Leonardo DiCaprio just just pretends to be all kinds he pretends to

be a pilot he pretends to be a uh a doctor and uh all all kinds of stuff it's based on a true story it's really fun uh yeah Scott's going to fix it okay uh cool so that's another thing we came across this is I mean it's this is fine though it's not nothing it's not anything crazy um I guess I want to keep those Dev tools open though and then see if we get anything else so if we for instance We'll add this other

stuff got all our Social Links uh let's change the episode number to 99999 test do not merge and then um yeah let's just try publishing so when I click this button it creates a new branch on GitHub commits these show notes as a file and then creates a

PR beautiful um this is probably an error that uh there's an error but this is I think this is an error that Randy is potentially running into because he mentioned that creating the pr didn't work so whenever we were doing this we got a status of 422 huh it still created it I wonder why yeah you didn't yeah so this is not your fault Scott this is definitely not your fault um oh no I didn't I didn't know that uh Scott I know I hate to tell you this but the story was completely made up by the author I believe it so we're we're talking about Catch Me If You Can now um but they're saying the biggest scam is that he didn't actually do any of those things and he just convinced people that he did do those things and then made a movie in a book about it uh I mean yeah

yeah yeah uh it's it's a good movie though um yeah thanks for that follow Lima B yeah yeah for whatever reason it's it's got get tagged here um but both of you have been behaving so that's good yeah that's fascinating to hear I wonder if we look at the Wikipedia article if it would tell us that but yeah uh Scott Scott did not cause this this very likely is related to a different issue the thing is it still created the PR but like this one creating the branch no PR that didn't happen here I'll have to I'll have to look into that later but it is interesting to see that we're getting an error here but uh this creates the pr it's got all the stuff that seems perfectly fine okay is there anything else I need to test

um yeah we can delete projects great seems fine looks good to me so I'm just gonna I'm going to comment the things that are broken and then we'll we'll work on one of the other issues um so let's do that and I'm just going to close this uh dummy

PR yeah

cool that is my

review I'd still blame Scott um Scott do you have do you have time to work on these two things or uh are these things that I should uh work on is otherwise I'm going to jump into one of the other issu like the other issues I don't think are dependent on this stuff I don't think it'll affect anything if I if I try and work on them cuz specifically the one that I want to work on is uh the pr title getting truncated so this just has to do with calling the GitHub API and um that shouldn't be affected by anything else you can Okay cool so I'll wait for I'll wait for Scott to work on that stuff and in the meantime we're going to go work on another issue but um cool all right let's jump into it so you might have saw this like this actually happened on the the example PR that I just opened so if we go to the

syntax website repo for whatever reason the name is missing a space right there between test do not merge um so let's fix that good to know uh Scott is mentioning there's a podcast that goes deep into the Catch Me If You Can Saga and is it is it real or not yeah oh nice fob you're writing Microsoft SQL in C last I heard you were doing like laravel and PHP so that's interesting yeah um can I get rid of this I guess not it's kind of annoying to look at here we go first issue uh the random PR title truncation so let me check out the main branch again

um we'll sync up reinstall dependencies to make sure that we get the right versions of all the stuff and then start up tari I don't know if tar is going to install other versions it's not

okay yeah and uh Chris Paul is saying a someone who quotes pretty much exclusively on their own seeing this PR process is quite fun yeah glad to hear it um I did some some code reviews of the stuff that Wes was working on yesterday that one actually is public if you go to the the syntax uh website repo uh yesterday Wes made a PR that added the spooky story submissions page so this is actually something I'm going to I'm gonna point out really quick uh if you're not aware every year uh Scott and Wes uh get User submitted spooky stories and talk about them during during Halloween so things like were you ever at work and you accidentally deleted the production database or you took down a website or maybe you left some curse words in the console logs or sent a thousand test emails um or accidentally sent an inbound ballistic missile notification to the entire state of Hawaii if you've ever done anything like that uh we want to hear about it so uh

yesterday Wes actually built this page where you can submit so it tells you all the stuff you would need you can listen to past years to hear those spooky stories but then you can enter in your spooky story info we get it and then Scott and Wes are going to review them on some upcoming episodes uh on an upcoming episode I don't know if they do one or two yeah they I think they do two episodes back toback that talk about spooky stories um but this page was created by Wes yesterday and we had a whole PR review process so he opened the initial PR um actually this is a different one this one he opened this PR and then he hit us up on slack and he was like like hey cjr Scott can you review this then I went in and I looked at the code and I made comments on it so um I was like hey add this variable to the EnV file and then here I was like hey you should validate the email here and then I was also like

uh we should use the parse data when inserting into the DB and then I was like hey you should add some Val so basically I P I reviewed I was like you should update these changes um and then Scott also made some notes focused on the CSS though which is also good which is like instead of hardcoded values use these variables there's some other variables too honestly this is my one complaint about CSS variables is like I don't know which variables exist I didn't write this code Wes wrote this code but it's very hard to know what variables exist and where you should use them um but Scott knows because he he wrote all those variables so he added that in the code review as well um so yeah and then uh Wes made the updates the site's live now and people are submitting their stuff I guess that's the thing is just go to vs. CSS but but that's I guess that's my main point is I now have to uh either search through that document to see if the variable exists um and then I potentially miss it

because I don't know what to search for um I don't know if I have a better solution I think like I guess the thing about um CSS and JS is there's like like a static reference to the classes that you're using that apply specific Styles and then um I don't think Tailwind would solve this issue because I mean it could because you can have theming in tailwind and then you could use their built-in colors and then if you know the Tailwind names that would work I don't know this is just to complaint about CSS variables and large projects with CSS in general not necessarily anything that you're doing Scott um because there's no I don't know if it exists there needs to exist some kind of uh like editor extension or way of statically linking to to CSS so that when I'm inside of my HTML or inside of a component it knows every possible CSS

class or css variable that I have access to so I get nice autocomplete that's probably my main complaint because we don't we don't get that uh but yeah um I was just about to start working on this but Scott says he's got another PR so let's take a look but this is also another scenario where I will uh I'm going to learn about the CSS included in this app that I haven't learned about yet uh because again I think it's a very similar scenario when I'm working on this production assistant app Scott created a lot of the like the base variables and the base reusable stuff and I never learned about it so every now and then I'm kind of either like implementing from from scratch or like not knowing where to look for that stuff um so we got a nice new close button that's awesome right now I just did like basic built-in styles that one looks great

um a beautifully styled dialogue I think like better it's got look at that nice drop shadow and there's there's no uh border color either I like that um and we get a vertical spacing system bard radius sweet let me review this before I work on the next

issue um we've got like an H5 class using the warning class

here just a adjusting where that button that uh delete button is cool I am curious though uh why we we would use pixel values for the the Gap here I guess because we don't want that Gap to change based on screen size um I don't know if you're listening right now Scott while I'm while I'm looking at this but uh buttons is a container that has multiple buttons inside of it and instead of rims we're doing hardcoded pixel values but my guess is uh we want that Gap always to be the same cuz you don't want the Gap to get too big based on screen size so that makes sense um and then we have some variables

vssl cool um you committed a YouTube debugging file BS is vertical space okay um so Scott is saying this is a large vertical space and we can use that variable for margin top okay um have you heard of is it called I forget what it's there's like a CSS framework that gives you a bunch of variables that are similar to kind of the design system you get with tailin but they're all CSS variables um is it CSS skeleton open

props this is very interesting um because it gives you all of these variables that you can use all over your codebase but it's kind of the same idea as like if you learn the Tailwind design system like you know that uh mt1 means a specific thing same idea they have probably like a margin -1 variable and then you can like use that all over your code base um what do you how do you feel about this Scott well how do you feel about using something like that in the codebase yeah open props

Scott wrote his own open props I think I think the main issue is like it's not standardized so I have to go in and learn what all of these are but that makes sense because we have vertical spacing border radius

um font sizes default color palette cool cool

yeah um I wonder if any AI feature will connect the docs between HML and CSS I have not seen the void editor um but I'm guessing something like that could help like basically having context of the various files I wonder if anybody's even tried to work on that though because it seems like a hard problem to solve cuz ultimately you almost have to have the context of where this element is going to be rendered because when it's running in the browser there are specific rules that happen that decide that certain CSS classes are going to be applied to that element and those same rules need to be applying inside of your Editor to give you the same kind of autocomplete yeah yeah um I like open profits but I tend to like more direct and tune variables as opposed to general purpose that makes sense right because uh the this I mean radius does seem lower level but I guess what you're saying is um instead of having a

general uh sizing each one for like vertical spacing and padding each one has its own whereas like in the open prop system you might have vertical spacing -1 and padding -1 but we're specifically using sizes and then tying those back to specific pixels and margins yeah okay so this file just has stuff to do with YouTube um the layout file is importing the

Styles fades in the the

UI I see you extracted this out into its own file that makes sense and then uh Scott dropped in all of his Dr in variables

nice also have like a warning

class cool I have no complaints about all of this um should I run it locally probably probably should uh run stuff before before just merging it in um oh yeah I'll I'll check out the focus visible that's what Scott is

saying so uh when the button is focused draw an outline I guess I'm not familiar with Focus visible uh selector and then if it is not supported just draw it on Focus did you talk about Focus visible in your talk so Scott is saying it's a neat pseudo selector that only puts the outline ring with keyboard Focus instead of mouse Focus I like that yeah that makes sense because if oh it's it's available in Firefox sweet um but yeah like if you hover um

I guess right now the keyboard has focused it so that applies it but how is that different than just focus oh I guess like in this scenario right now I'm clicking it and it's not technically focused but if it has keyboard focused it is it's diff yeah okay that's cool this meant all elements including links and buttons had a ring applied when focused which may many found ugly sweet so yeah instead now you can specifically Target when the keyboard is focused on it uh show it that's awesome this is another thing uh to know about when you're working with a lot of this CSS stuff is this at supports thing so you can basically it's almost like a fallback so if the current browser does not support this feature then the fallback is to just apply this to the focus class yeah what's up Mr extremely welcome in

uh um syntax is a web development podcast and video media company syntax. FM will tell you everything you need to know but there's a podcast that's hosted by West boss and Scott tulinsky they release three episodes a week and then I make videos for their YouTube channel so if you check out their YouTube channel all of the podcast episodes get uploaded here as well but every now and then I'll do deep Dives tutorials uh various stuff like that and sometimes like dive deeper into the topics that are covered on the podcast so that is what syntax is you should definitely check it out yeah what happens if you don't support at supports that was my question too so what we're talking about here is what if there's a browser that doesn't support at supports I think it's okay I think it like it technically would then be like a syntax error but maybe it knows to

ignore it I'm very curious though where is at support supported it only has 92% support it's not supported in I 11 uh or in Opera Mobile

um yeah oh yeah let me check this out um notes on RAM earlier I was talking about rims versus fixed pixels so Rim is the scale of the body font size for accessibility a browser could override the value to scale up the fonts and interface so Rim if you want to scale pixels if you don't and that makes sense because we don't necessarily want to scale the gap between the buttons which is what we we were which is where RS I was using rims before cool uh let me check out this branch

here we are oo look at that nice button I think um we can look at the the fade in

it's hard to see the fade in if it just like instantly launches but uh nice little button very cool uh when you click it this is the new Styles you can also see that we have uh Focus I I like the glow Scott that's a cool I like the outline there that's awesome

um oh what were some of the other things that changed

um and we changed the button there and then the overall layout and then added the these variables cool yeah yeah behind the scenes changes think it's good just once step of a bigger reorganization cool I approve here we go uh let me add my review this is what everybody likes to meme about um looks good to me a lot of people will just comment looks good to me without actually reviewing it or running it um yeah this looks good uh another thing about uh PRS is I like to do a squash so right now you can see on this this Branch Scott actually has two commits they've got the uh cleans up the main layout and then begins to implement this um I like to

squash it so that way this PR is just will just show up as a single commit on the Mage main branch so I'll do a squash and

merge and we've got big news the code is now open s yay so uh yeah you can link you can check the link there and see all the stuff that we've been writing yeah uh like like I mentioned earlier we just wanted to make sure we weren't leaking any secrets or anything like that but now you can you can see all the codes you can inspect it you can I know some people that listened to the episode where Scott was talking about the app they wanted to know how we were doing ooth look at the code take look at the code yeah i1 still exists yeah I don't know as much anymore because I don't work in Enterprise or interface with people in Enterprise but at larger companies they move a lot slower and a lot of times they stay on older versions

that are still supported because uh they want to make sure that they're not they don't they're not using software that potentially has security vulnerabilities or whatever I think we're probably at the point where any company using Microsoft products uh very likely has their users on edge at this point because I think the there was like end of life for ie1 like it's actually not supported by uh Microsoft anymore um but that would be the scenario where people would still be using it is if it's like a large corporation yeah oh thanks Yuki uh we like the software too uh unrelated question when you were a student if you were a student or when you were learning how did you find internships uh I want to get into creative coding uh and was wondering where do I start looking for inter internships in that Niche field I don't know about that Niche field um usually you would search job boards but it's probably if it's something Niche then you're probably going to have to find

those in some kind of community so I know there's like creative coding communities here on Twitch so just keep an eye out in any of the people that are streaming that kind of stuff also take a look at like X or Twitter I don't know where other where else they hang out at um maybe find some discords but also don't outright just say I'm looking for internships uh make yourself visible like be a contributing member of the community um so that when you do need to ask somebody about an internship or a job uh it's not as awkward because they already know you and they already know that you're a uh a a nice person and help out and stuff like that iie is also very popular in South Korea the major Banks require IE ah so that's another reason so Internet Explorer 11 has active X there's like this older stuff for like loading extensions into IE that aren't supported in Edge anymore and some of these older companies need those so they're they're stuck on older

versions um but yeah I thought that Microsoft dropped support for IE entirely yeah how do I know if I'm a nice person um uh self-introspection so basically find nice people out there uh whether that's in person or at school or at work or in twitch chat or on Twitch or on Twitter um and uh make a note of why you think those people are nice and then try to replicate it I think I think that's the easiest way to go is mimicry try to be nice like other people are nice and then eventually you'll just be naturally nice I guess so they dropped all IE support I would imagine okay yeah we're open source check the link and uh yeah sweet all right now let me work on an issue I'm going to check out the main branch

again Pull It in Auto merge update the dependencies oh I let I merged in a a uh a spelling error

uh I let Scott misspell a file it's I guess it's fine it's not that bad Scott says OMG I didn't review close enough the thing is we we potentially could have a linter rule that spell checks and also makes sure that it's uh like snake case I don't know I think for things like this if I don't have a linter rule set up I don't think I would bring it up in the code review because these are uh inconsequential right the codee's still going to work even if the thing is named wrong if I really cared about it that much I would have a lter roll that would catch it so that I don't have to review it you know what I mean you know what I mean

okay let's work on that issue that I was talking about earlier which is the pr title is truncated

um just look at this example unless this has one no this doesn't have a PR yet um but here's what's happening whenever the the pool request is made to GitHub it removes the first space in the title so let's find the code that makes that PR and then uh and then fix it or see why it's happen happening so I know that in Project publish this is where the GitHub publishing stuff is going to happen um do I not have dependencies what is going on here do I need to reload

okay um right here is where we create the pr so uh get number and title from

name it then creates the pr with the number and the

title this has to be where it's going wrong right

it's got to be okay so here's what we're going to do we're just going to log the name and the title or the number here that we get back and then just return so I'm not actually going to call the GitHub API I want to make sure that before we call the GitHub API the title is what we want and expect it to be so here we go let's at the console clear it all out create the pr uh receipt printer with JavaScript that's good that's the right title um

yeah I and that's what I noticed too Randy So Randy is saying it's right it's always right after the first word the issue is right now that title is completely fine um let's look at my function here create show PR that could be doing something weird with the title so let's go look at this ah it there's another regular expression that um that replaces anything that is not an uppercase or lowercase letter or numbers with a with nothing also it's not a global replace so that's why it's only replacing the first thing here's what we need to do we need to make this a global regular expression and we also need to allow spaces like

that that's the issue um and I'm actually just going to test this regular expression right

here and we should be good that was my fault that I wrote that regular expression it's a bad regular expression um yeah perfect but you'll notice if I don't put the space on there uh and actually if I don't put the space on there it's going to with global it would replace all of them but let's check this out if I remove that space now that removed the very first space because that didn't match this regular expression if I would have made this Global it would have removed all of the spaces um and we also don't want that so like if I do this yeah it gets rid of all the spaces so what I want is allow spaces allow letters and numbers but anything else is going to get stripped out so if like there's uh a pound or flashes or whatever else those are just going to get completely removed yeah um I thought the same thing James Warner so James is asking when would be

the use for slash S instead of space so slash S is a reg is how you escape white space inside of regular Expressions uh this accounts for any amount of white space um so basically if there were multiple spaces it would keep all of them or like tabs or new lines um I don't know in this scenario I know that I'm specifically looking for a space which is why I'm just going to do a space right here because I could imagine there's some scenario where maybe we have multiple spaces or I don't know my gut tells me I should just look for a space instead of I mean it should work with SLS as well let's try it with SLS

yeah um but the other thing is and so this is what I was meaning is like if we have a bunch of exclamation marks or anything that is not um letters numbers or spaces uh those are all going to get removed

actually is this already

happening I think this does this already take care of that so any amount of white space followed by a dash followed by any amount of white space followed by the actual title no so this this doesn't remove special characters but I'm curious this up here is supposed to display um oh the window isn't big enough it truncates it now I'm really curious what is what is what are we using to display the name up top CU it's doing some special removing of like special characters too uh let's find that I think this is just going to be on the main project page

and um this is the drop area so maybe it's in the layout it is in the layout because it's it appears on every page um this layout

project.

name is it happen when the name is being

saved oh adding all these special characters did something weird I think to the update I guess I shouldn't worry about it uh I thought there was just some extra logic that I should worry about up here but there's not but now with all of this there can be special characters but when we go to publish you'll notice that it removes all the special characters and then it just has uh the text itself that's mainly what we're trying to do there okay this this should be all we need to change

um yeah we really just need to change that so I'm going to uh discard the changes there and really it just happens before the pr is made so in our lib GitHub utils API right here before we call the API we make sure that the title doesn't have any special characters in it good to go this is all that needs to happen

done uh let's call this uh fix title

truncate and this fixes issue number

35 cool now I'll make a

PR this has this has all of my uh like random commits here I think I need to I need to fix my main branch is this where rebasing would come in come into play uh the main thing is um I'll just make sure that I squash squash this

commit worst case scenario the MP3 progress is working correctly randomly I still don't understand how it can report back the um the path if the function hasn't completed running I um I guess it has something to do with like not blocking and not waiting to return the value I don't know if that's an issue on the rust side or an issue on the tar command side yeah that's that's a problem yeah Rex is sometimes scary uh that would actually just remove those things yeah it would remove that entirely from that but the main thing is I don't want special characters in the pool request title this is the only spot it's going to appear this isn't going to change how it appears anywhere else uh but when he creates a pool request on GitHub I don't want this to have special characters in it that's the main reason yep yeah I know I I have a very

minimal vs code setup and I and I don't I do not use Vim um is rust then Tar worth learning for fun I think anything is worth learning for fun it all depends on like what you're trying to do right um because yeah if you're just trying to learn and you want to do interesting stuff sure if you're trying to get a job maybe you pick something that companies are using or that might be more popular I don't know your workflow is fast I've been doing this a very long time that's probably why it's it's fast all right um my

wait my local main branch has some weird commits that I don't want anymore is this where a rebase is is I I I I'll be honest I don't really know what a a get rebase is I don't really ever do it is this a scenario where I need to rebase yeah like Divergent history get rebase main your current Branch main is up to date I want to rebase with my remote

okay um you can take the changes on the client that AR no that's not what I

want I mean the way that I would do this is I would actually check out some other Branch temporary okay then I would actually delete the main branch get brch uh I think Das D main yeah delete the main branch and then if I do a get fetch that's going to pull the main branch from the the remote and then if I uh check out main now I shouldn't have any weird weird commits that uh get added on to these branches that I'm creating I know this this would have fixed it uh amrock in the chat is saying get reset D dard origin

main that probably would have been the way to go but what I did was just delete the branch repo it that's fine hey uh jiron van vissen thank you for the raid welcome in uh we are I was gonna say we were working on this tar app but we we uh completed this PR um I'm going to go a and merge this in because it literally is just one regular expression change and I want to make sure that I do this squash cuz like these are like all extra commits that don't need to appear on the main branch um they just get merged into a single single one like that cool yeah one viewer right yeah no worries I I appreciate the raid yeah thanks for coming over um okay that got merged in oh that's funny yeah Mi Andre says

get Branch DD main like technically I deleted the main branch but it was all locally right the main branch still exists on GitHub so it's okay to delete the main branch but that could be a potentially spooky story if you uh if you deleted the wrong thing um and what's up uh it's Tom for sure who says I see CJ I like what's up welcome in thank you for the follow uh now the new main is pulled down you can also rebase your local feature branches onto the new main branch because they will still be based on the old main branch that's the yeah that's basically what I was asking about because if you look um I mean it doesn't matter at this point because all my feature branches have been merged in but if I had created a feature branch that was based on the old main that's where rebasing would have been useful cuz I want I want the history to be the exact same as the main branch and not have all these like weird intermediary commits I think that's the main reason for for rebasing um okay is there anything else

that I can work on

here um this one Randy have you I don't know if you're listening if you're listening I'm going to say this out loud if not I'm going to send you a message on slack but have you run into this again where you oh you're here sweet thank you Randy um so you have this issue that says the pr is getting held up two of the three episodes are published without an issue but the third one seems to be having trouble creating the pr oh yeah Randy using light mode he's not a developer it's okay I I I mean I guess I don't know if dark mode is a developer thing obviously not I think it's also an accessibility thing but yeah Randy likes light mode and that's okay um so it creates the PR but is it that the uh the progress bar just keeps moving you're on dark mode forever but you're trying something new and that's

fine I'm okay with that um creates the branch doesn't PR has this happened since then because my example one earlier did get created um but has this happened since you reported it I did notice there were some 422 errors in the log so I'm going to look into those but it's hard to say what's happening because it uh it works for me hasn't happened again okay I'm going to fix those 422 errors and then we'll we'll probably close this issue unless it happens again um so let's check out a branch uh PR fail notes PR fail um because I did notice earlier that one of these API requests is

actually getting a 422 error um let's see what that

is yeah yeah what's up bmind to see you I saw you uh tuned into to the the Denver script live stream yeah if I remember correctly you fetch the remote you want then get rebase okay I think my issue was I had extra commits on my local main branch getting into Outdoors a lot lately or the snow burs us yeah yeah I probably need to do the same it's going to get cold here pretty soon um okay let's just do an example one and then um we watch the network traffic so we drop this in well look at this Scott well never mind I was about to say I'm not on your I'm not on your changes but the the progress bar is working but I think that's because I'm not on the the changes never mind

scratch that um okay we've got the notes let's update this to uh tests do not merge

and then we'll open up the network tab clear everything

out yeah and Scott is saying uh annoyed by this progress bar it works half the time I can't even imagine why it wouldn't work like based on the the codes I don't know uh okay I'm going to click this button it's going to create a branch on GitHub commit the file make a PR let's see what

happens you look at that um now it just fails the stream contains invalid characters uh where is this happening at AG do felt line 32 which page do felt

um P dos felt obviously what's up America 2050 good to see you yeah obviously it's page dwel um could be a tari buug yeah I think so I think it has something to do with an as async tar command that is not waiting to completion it's resolving before the async command is done that's potentially a tar issue let's call it that for now um I don't know if there's anything else we can do within that rust method to um uh

uh the other thing I can think of is instead of returning the file path from the function like this so This returns it instead of that we could Emmit instead of emitting progress we could admit that it is completed and just listen for the completion event uh to be sure um like right here admit complete yeah I mean I I I agree but I just think uh in order for the UI to handle both situations um we like if finished has not been emitted then don't show the file path um I don't know I don't know uh but let me try to fix this issue so I think

I know which page. spelt it's talking about I think it's the it's the publish page here um or so I thought this one publish page here um

invalid characters the string the string contains invalid characters line

32 what

this is the weirdest error um okay we're not using episode number anymore I'm going to get rid of that yeah I can get rid of that um invalid character the string contains invalid characters that's a promise uh these Safari Dev tools are not amazing all right I'm going to hide my screen for a second I don't know if this is going to reveal my my GitHub tokens so give me one

second that was a 200 response that was a 2011

response okay so the GitHub API calls didn't actually fail um just where the heck is this error coming

from okay see that g that gives us a 422 error oh you know what happens I think if the branch already exists it throws an error because the branch got created and then when we click this button Buton um it's trying to recreate it that's some logic I can fix I can I can fix that because I can first check does the branch already exist and if it does then we want to commit to it um I'm going to hide my screen just to look at the network error but I think that's why that gave us a 422 is that Branch already exists um yeah Branch already

exists yeah check it out there's your problem a branch with that name already exists honestly if that's the case we probably want to create uh a different branch because I mean there there usually wouldn't shouldn't be any overlap because the episode number and the episode name is always going to be different um yeah I think I'll that's what I'll do Scott is just quit the process entirely and then um show an error that says hey the the branch already exists change the name and

title

yeah okay so let's go to where we're creating the branch

create

branch and uh if response. okay do it otherwise we're going to throw an

error uh build to create Branch does it already

exist yeah what's up Yash I am check this out I can move my entire desk down um or back up I am I am using a uh a standing desk yeah it's kind of kind of funny to see someone else troubleshooting a weird bug where nothing makes sense yeah that's kind of where we're at today we have all these weird bugs um all right does this make sense to throw the a here um I guess also though if it already exists um then we can just add to that

Branch let's just say uh try

changing actually what is the branch name that we try to create

here not going to do this just yet what I want to see is uh what name are we actually passing in

here the branch name is episode number show

notes this is is the issue is if there's already a branch that has been created for that episode it's going to fail I I have to I have to defer to to like I guess Scott and Randy here so um if the branch already exists that means there was a PR already for this episode um does that mean we want to update the commit or add a new commit uh to the episode or do we just say you know you're trying to create something that already exists because it has to do with uh the branch number here yeah I think it makes sense just to fail all right we will fail um my my other thought was we can always include like a a time stamp here and that way it's always unique but I guess it would make sense to

not yeah to to just to to fail here if uh that's the case Okay um let's go back over to our function we're going to fail if the response is not

okay so if response okay do this otherwise we throw error bu to create

Branch

um a branch with that name already exists make sure this episode number is

unique okay Randy says if I'm trying to publish the same episode again I just need more coffee okay yeah so we'll throw the error here and then the place where we call create branch is down here and really uh create show PR we're going to wrap that in a tri catch um and then show the error if there was one so this we will try

catch going to throw all of this codes

so try to create the show PR if it was successful uh save it save the URL to the project uh if it was not successful we need to show an error in the UI so let's give a spot for that

um if there's not a project URL

um I think I'll just show the error right here it's right here so we'll add an error V variable if it exists we'll show it just a little P tag throw the error in give it a class of think we have an error class in our CSS uh and then error is just going to be a string yeah starts off as nothing and then if there was an error this e and we'll set error to be uh e as an error message like that and then if you click the button

again we will set error to

nothing okay the MP3 thing might be due to a filled process cleanup so it'll work the first time after completion but not subsequent oh like the FFM Peg process isn't being cleaned up all right so now if I click this it should fail because the branch already exists and we should see an error down below yeah failed to create Branch a branch with that name already exists make sure this episode number is unique cool that's good that's good um and so if we go back and we change this to be a number that doesn't exist now we can try it now we need to handle this string contains invalid characters what the heck does that even mean um because it would be in this

function right

let's log the file name we'll say committed notes yeah this is why we need sentry.io uh oh yeah why need sentury yeah I one of the the main issues is yeah and well it's it's worth mentioning syntax is brought to you by sentury uh they're an air monitoring platform I I literally mentioned it I think in this in this issue I was like we we need Sentry in this app I think the main issue is we're using spelt V5 and we're using tari V2 and uh because of that the only option for an SDK is not official it's something that someone else wrote and last I looked all of the there's some issues on it like it's not very performant um so that's the main issue it's like I don't of like why it's hard to bring

in a nice one for next stream yeah the main issue is I don't want to go down the path of adding in someone else's SDK that they implemented and then like it doesn't work or it slows down the app or something like that yeah yeah uh V2 still going smooth for you no uh there's some issues some issues yeah all right see you later Randy thank you for tuning in uh and thank you for your for your input hopefully we can get these these changes over to you pretty soon okay um yeah where on Earth is that error actually happening let's find it yeah here's the other thing I don't know how often this is going to H happen but like it already created the branch so it can't create it again I guess technically I should probably go over

here and um delete these recently created branches like this one and this one so now it shouldn't fail okay so we get file name we get to here and then whenever we go to commit the show notes it says oh wait no the string contains invalid

characters so if we look at commit show notes this grabs our

token passing in the notes is this be a that's causing this

issue um I'm going to do some little debugging here I'm going to say window. notes equals

notes go back delete this Branch fres the page click the button

okay that's the issue uh our bit my Bas 64 encoding cannot handle uh this variable I need to escape it before base 64 encoding it let's

see according to the m and docs you might need to escape then decode to handle Unicode unescape en code URI compon

opponent is that what we

need a to B breaks due to new lines in the response remove them to get your code to

work I needed to have new lines

though like it wouldn't make sense to encode this without new

lines also I can fix the formatting here though

um yeah the front matter needs to go all the way over there that needs to go all the way over there that needs to go all the way over there that

need to go remove this Branch

again

reload take a look at notes this looks better now the spacing is right um but I need to encode it with new

lines the solution um is to actually encode to and from a binary string representation

create a uint 16 array grab every single thing and then p a it

okay see the Unicode problem in the base 64 glass R entry

bites to base

64 where where did that go was I looking at a different um stack Overflow answer I was

the simplest solution is to use a text encoder and text

decoder um so do it do this bites to base

64 this is what we need um we're going to handle this over here

it's going to give us each individual string oh no that's going to give us number

um what is encode return U int 8

array okay um and then now here we're going to say notes is equal to this well actually we can just throw this in directly

right here instead of calling B to a we say uh encode the text get the binary string convert it to base 64 all right here's hoping I'm going to add a note on this function of where it came from C here what was this the um the Unicode

problem okay now let's delete that branch and then it'll work read the pr h H all right now did it encoded in the right way because if we look at the pr we could just see a bunch of junk as the mark down file here we go perfect it didn't do anything weird nice that should fix the issue okay I'm calling it calling it there

full let's just double check what changed and then I'll uh make a PR yeah we handle the failure and then we make sure that we encode it in the right way

sweet and so this ideally should fix number 37

s Chris says the missing space from earlier is back oh because uh this Branch doesn't have that fix on it

that's why if I do if I do a um pull from Maine yeah this this Branch was missing that commit that's that's the main reason um should be fine

though these are these are the only things that changed

yeah

cool all right that looks good and um at this point did you make any updates here Scott not seeing the web view errors might be a version thing okay that works for me um let me just check it

out do an mpmi to get the latest and then a cargo update

it's I want to be on the main branch oh no I guess I did want to be on the um update dependencies

Branch the thing is when I run a cargo update that actually changes the file yeah it it updates the cargo lock let's see what what it changes

um it's updating this package that's literally the only thing it's doing I don't want that um let's see what

happens yeah and thanks for the follow with derp sauce good to see you

okay no errors in the

console um yeah whoa this this one was instant though

so it's like boom MP3 created successfully does it does it check to see if it exists in the directory let's delete

it yeah and then it's not showing the uh um the progress what what did we say the issue with the progress

was yeah that's what my thought was too they literally just updated that package um log into file is the problem I I don't know I don't know what I do know is we're going to merge your changes in and think about this later um is there is there anything else that you uh you wanted to do on this Branch I think we're good to just merge and we can handle that in a separate issue

I'm doing it do I'm not going to do it but I think I am going to merge in the uh the pr the um GitHub PR fix cuz that one was pretty simple just throw an error if the branch already exists and then use this new uh B 64 encoding well welcome back Obby good to see you I'm G to merge this one

in yeah last last check Scott are we are we good to uh are we good to merge

yeah Scott says no okay don't merge all right I won't do it I I do have to I do have to end the stream though so we'll have to take a look at this next time or it might even be merged in the next time that we worked on this so yeah um yeah thank you to uh lore the simmer thank you very much for that follow over on Twitch cool one sec I think I think we'll handle it off stream CU I I do have to go got more stuff to work on um but this has been super fun thank you everybody for tuning in and uh the next live stream I don't think we're going to have one next week but potentially the week after that but I'll keep you all updated follow us over on X if you have not yet um and also all the other places on Tik Tok and YouTube and twitch and um if you're watching on YouTube we're actually going to do a

raid over on the twitch side so if you head over to twitch.tv/ sytax FM you can join us in the raid essentially we're going to take all of our viewers from this stream and then send them over to some other stream we'll find we'll find somebody who's doing something fun and send everybody over but this has been super fun thanks everybody for tuning in we got some work done we got some PRS closed making progress um and uh yeah I'll see you next time and yeah another way is just send your carrier pigeon and you can get all the syntax updates all right that's all I got for you we'll see you on the next episode of syntax bites until then uh stay well and uh join us in this raid here on Twitch all right we'll see you

[Music] w [Music]

[Music]

just make a good game that's the secret yeah it's what uh [Music] oh [Music] he [Music]

Quote it with credit and a link. Quoting Syntax