0:00:17
all right welcome back everyone another
0:00:22
episode of build break and fix
0:00:25
um if you are new here we are road
0:00:27
quarters we stream from 9 30 p.m
0:00:30
melbourne every day on youtube and
0:00:35
you're working on a project which
0:00:39
persistent storage to the current open
0:00:41
source project called scrambler.ca um so
0:00:45
yesterday what happened was we
0:00:48
were able to fix the
0:00:52
error which was there
0:00:54
uh with a lot of persistence we were
0:00:58
uh finish it in a very professional way
0:01:01
we didn't make any shortcuts so
0:01:04
that's what we were hoping for as well
0:01:06
and we are glad we did that
0:01:09
um but as we did that we encountered
0:01:13
our post board functionality wasn't
0:01:17
so today we're gonna go ahead and see
0:01:22
this section of the code isn't
0:01:23
functional and work you get through it
0:01:27
then then what do we have today
0:01:31
that was fantastic and yeah i think you
0:01:34
pretty much covered it all we can just
0:01:41
your part was a fun part but
0:01:44
now we can move on to the even funner
0:01:48
part i just made that word by the way i
0:01:50
just made the word up
0:01:55
all right cool so i'll just share my
0:01:58
yep um should i go ahead and share my
0:02:00
screen because we're doing a middleware
0:02:04
yeah that'd be a good pickup
0:02:07
if you can and um i'll i'll just open up
0:02:11
and uh because i want to make sure
0:02:14
that the back end of the posting
0:02:20
i'll do that as well
0:02:24
you can see my screen
0:02:42
oh you changed your
0:02:45
the toolbar to come on the left same as
0:02:48
mine did i know i said
0:02:53
what was that other part appearing there
0:02:56
no there was a screenshot from ah disco
0:03:20
okay i should have posted a little body
0:03:45
um yeah that looks fine
0:04:03
okay cool so that means that the backend
0:04:06
api which is actually app
0:04:11
so that's a good thing let's try it here
0:04:16
you never know it might work
0:04:20
because we are working with tech
0:04:53
okay that's interesting
0:05:01
has the server started
0:05:05
oh could be on the wrong folder
0:05:08
yeah yeah atmosphere
0:05:27
okay we'll come back to this later but
0:05:46
oh i think i know why it's not working
0:05:49
why not oh wait no it should work
0:06:03
it doesn't show us any errors
0:06:07
let me see in the console one second
0:06:26
okay try to keep it simple because i
0:06:29
lose track is sleep when you
0:06:32
right too much into testing so it's
0:06:35
extra um effort on the eyes try to
0:06:40
look for your wants as in
0:06:43
i think one two three four conflict four
0:06:50
keep your best a bit simple
0:07:04
all right i'll prevent it from going to
0:07:08
yeah pointing these out
0:07:11
yeah do that because
0:07:13
that would actually save us a lot of
0:07:19
i want to see the error um yeah
0:07:27
there we go oh wait that's not right
0:07:37
seriously start the server
0:07:43
log into aws as well
0:07:48
try and clear out with the table
0:07:51
and then we can happy
0:07:53
that will be helpful
0:07:56
oh wow oh wow oh my goodness wait one
0:07:59
second um before you clear it out just
0:08:04
all right actually clear it out now
0:08:09
okay i need to login first because i
0:08:12
cleared the cache and everything is gone
0:08:17
yeah so just keep logging in now
0:08:29
i've just logged in
0:08:40
all right um dynamite ebay
0:08:47
all righty let's try to
0:08:49
go through this as well
0:09:36
all right i'm about to clear the data
0:10:00
all board ids and then delete them yeah
0:10:12
alrighty simple simple kiss
0:10:25
that's fine that's india
0:10:29
okay middleweight.js
0:10:32
what what does it say
0:10:36
oh okay that's the industrial html
0:10:42
actually let me try it once then i'll go
0:10:48
i don't think it's going to work anyway
0:10:52
go is unknown function
0:10:54
this is no function the same thing
0:11:04
goes no functioning
0:11:12
this one i don't know why it thinks it's
0:11:18
oh wait i think middleware is not
0:11:22
no no that doesn't work properly
0:11:30
maybe a room no no we can't remove the
0:11:38
go to the middleware
0:11:42
and see if the go function is here
0:11:48
on the girl function
0:11:50
and do it it won't show anything i'm
0:12:14
so is picking that one up
0:12:17
let's see if it is
0:12:20
okay this is the weirdest thing in the
0:12:30
isn't beyond programming and computer
0:12:32
science about logic how how is this
0:12:45
ah this is interesting honestly i'm just
0:12:49
that is defying the whole like whole
0:12:53
proportion of logics
0:13:01
with too early to say that the
0:13:05
add node functionality should be there
0:13:09
okay yeah i do that one as well
0:13:12
all right the uncommenting
0:13:31
okay do now because i already hit q1
0:13:41
uh open the phone so up
0:13:43
oh it's already open
0:13:46
i just want to check index file that's
0:13:56
cheese oh it's comment recommended now
0:14:01
ah i can't because
0:14:05
yeah i can pull it
0:14:09
yeah i didn't pull it but because there
0:14:13
but now i'll pull it after this works
0:14:18
if you're funny after you pull in the
0:14:20
posting of the board doesn't work again
0:14:41
give me a bit of time
0:14:45
or i have my friend
0:15:05
yeah i'll just reload it
0:15:29
let's start this over now
0:15:41
and see where it goes
0:15:45
okay i think i should just get bullet
0:16:15
ah because your publication ah
0:16:32
fine for now because yeah
0:16:50
all right how do i
0:17:06
if you already have this stuff right
0:17:25
getting all the changes
0:17:28
hmm that's an interesting oh wait that
0:17:30
wasn't mean that's right
0:17:36
come on give me a fetch
0:17:44
that's not that one
0:17:49
one second let's see if i'm wrong oh
0:17:52
yeah that makes that make sense
0:18:05
because i cloned this to test locally
0:18:09
so that we didn't have to make any
0:18:21
here let me see which brown
0:18:33
okay let's join this one
0:18:40
like wrong folder oh yeah wow
0:18:49
sm simple http server
0:18:54
all right starting the new server doing
0:19:04
and opening the console.log it's also
0:19:18
interesting um just wanna check the
0:19:21
index file okay that's uncommented
0:19:29
middleware looks fine as well go to the
0:19:37
the socket stuff is commented as well
0:19:40
let me see how big the file is
0:19:44
yeah that looks fine for some reason i
0:19:46
think it's a cache
0:19:48
okay i'll i'll give that a call
0:19:59
switch to the master and try the
0:20:02
functionality there
0:20:08
are you but you didn't commit anything
0:20:10
to the master right no i didn't
0:20:15
oh how would the master be working oh
0:20:18
yeah yes you're right
0:20:21
you're right ignore me
0:20:23
all right let's try clearing the crash
0:20:31
i've got to be really careful
0:20:34
cookies yes browsing svs
0:20:39
and the last 24 hours
0:20:50
starting up the server again now
0:20:57
this time i realized by myself
0:21:04
to be safe i will open this in the new
0:21:09
okay opening the console now
0:21:18
there we go and just to make sure it's
0:21:22
i'll give it a test
0:21:43
so what i'm seeing is that if the adding
0:21:46
of the notes work then the posting board
0:21:49
name doesn't because the person
0:21:53
they're not related
0:21:57
right let's see the what the error is
0:21:59
fine um it'll work
0:22:01
yeah it has to propose
0:22:02
um i'm just commenting so that it
0:22:04
doesn't go to the next page for now
0:22:09
so that we can see if any error is
0:22:14
i'll just do an alert oh yeah there it
0:22:18
um i'll start the server now as i save
0:22:21
the file so that they won't go to the
0:22:24
page right let's go ahead refresh
0:22:33
a2 because k2 didn't go through
0:22:43
it shouldn't have gone through
0:22:51
i'll try restarting the server are you
0:22:54
you know why it's going through
0:22:58
because if you go down in your in your
0:23:01
so you commented that as well okay yeah
0:23:04
she shouldn't have done that
0:23:06
yeah that's unexpected
0:23:10
yes i'll try it in safari
0:23:19
please give me a oh wow
0:23:26
is it running it somewhere else
0:23:34
yeah you know it's all wherever you ever
0:23:37
and then to avoid the confusions first i
0:23:44
this might be the reason
0:23:53
making sure if it's the right one
0:23:58
the wrong one so i'll close this
0:24:07
all right this is the right one for sure
0:24:12
i'll just make sure one more time yeah
0:24:15
that's my github folder so
0:24:19
all right cd client
0:24:25
that looks fine i'll start this over
0:24:36
and before starting the server i'll
0:24:45
now i'll start this server
0:24:49
okay the server has started
0:24:59
to check for any errors
0:25:06
and this is really weird
0:25:44
all right let's try it now i'm pretty
0:25:46
sure this time it'll work
0:25:58
okay at least it's not going through but
0:26:01
it's not throwing any error as well
0:26:03
oh now it's posting
0:26:09
well you're kind of right when the
0:26:12
post note is working
0:26:22
the post no completely
0:26:28
i don't feel related to post
0:26:30
notes comment that
0:26:33
one thinking that i want to try
0:26:36
both approaches now as in
0:26:39
there's nothing related to post note by
0:26:41
post not i meant like
0:26:43
adding not in the front end
0:26:46
that's exactly what we meant
0:26:50
so okay i'll rephrase myself
0:26:53
comment our script.js
0:26:59
it's working now i'm pretty sure
0:27:03
so you mean to say posting board
0:27:17
and then go to that one
0:27:30
that is interesting
0:27:32
add another number
0:27:35
to be sure because i'm pretty sure that
0:27:42
even though that they're not connected
0:27:45
either one doesn't work i'll do k4
0:27:48
because k4 isn't there okay yeah cool
0:27:52
okay and that one's done so now go there
0:27:55
and look for careful
0:28:03
yeah okay so that is
0:28:12
commence script.js
0:28:22
and now yeah just running it again
0:28:25
posting off the board
0:28:38
that's fine even if it's going to the
0:28:42
um it didn't come true
0:28:50
the count is still 10
0:28:56
i feel like it's something on aws's end
0:28:58
it's working inconsistently
0:29:01
like it's working but
0:29:03
is this working inconsistently if you're
0:29:06
i don't think it's something to do with
0:29:08
a ws but what i think that it might be
0:29:30
if i try like after two minutes
0:29:33
which would start working
0:29:47
okay i've got one question
0:29:51
you know i'm gonna go up go up please
0:29:56
um you know the line on
0:30:10
go in in the post request
0:30:13
over there as well
0:30:19
shouldn't we just use them
0:30:23
line once in either places
0:30:26
because it's doing basically the same
0:30:28
thing but in two different
0:30:32
in two different approaches it's doing
0:30:39
because the post board
0:30:41
name is already being called in
0:30:44
the gold gold method i i don't think
0:30:47
there's any point of adding that in this
0:30:52
in your postpone name as well
0:30:57
sure it might or it might not because i
0:31:02
all right well we can try that out
0:31:06
i'm just trying to perform
0:31:10
and i'll try to uncommend this and i'll
0:31:12
keep get this comment yeah yeah
0:31:32
okay it goes through
0:31:35
on the country dude
0:31:39
i just did that yeah was it
0:31:42
yeah but the count is still 10 for it
0:31:46
yeah there's no point finding kitten can
0:31:48
you clear your cash
0:31:52
hard refresh card refresh
0:31:59
all starting i'll locate you again i
0:32:03
just becoming a bit of a cd in this now
0:32:08
i just want to confirm it
0:32:11
yeah i'm doing k3 right
0:32:30
um still then i can try and post myself
0:32:36
let the ocd juices flowing yeah
0:32:46
um is this working
0:32:50
nice oh we commented script yes all
0:32:57
um i just want to comment and see what
0:32:59
the problem is with this now
0:33:01
i have a feeling that
0:33:03
this or this line is
0:33:07
oh wait i think i know why this is
0:33:13
now it makes sense let me try it once
0:33:20
yeah just one second
0:33:35
so as i told you previously remember how
0:33:39
the request is being overwritten as the
0:33:50
um our new page is loading
0:33:54
before the request receives a 200.
0:34:00
does that make sense
0:34:06
right right right so what i'll do is
0:34:09
give me one second
0:34:14
so in that case we shouldn't really have
0:34:17
the index donation in the gold method
0:34:20
then we should have it in this
0:34:23
post request isn't it
0:34:27
seeing what i can do um just let me try
0:34:29
this and i will explain this
0:34:40
all right so if their request um
0:34:45
so you must be returning this status
0:34:53
and if this returns a value to be 200
0:34:57
i'll just take this out of the
0:35:03
i'll uncover these bad boys and let's
0:35:10
surely you understood what i did right
0:35:14
no no i understood
0:35:29
um just want to do one thing
0:35:38
i just want to do this
0:35:55
what was the sleep function or wait
0:36:08
i'll set timeout yeah
0:36:15
wow man i really honestly
0:36:19
thank you as a compliment i really
0:36:30
like as in upon me might have said
0:36:34
okay hang on hang on just give me two
0:36:37
seconds just give me two sec
0:36:45
i'm not even gonna bother i mean it's
0:36:47
just that you know how when you start
0:36:49
working you're familiar what what you're
0:36:51
doing so right right
0:36:54
when you're still studying you have to
0:36:57
a lot of new stuff so you're like it's
0:36:59
just how your brain is in like what
0:37:01
cognitive state i guess yeah um it's not
0:37:05
something like someone is gifted it's
0:37:07
just the circumstances
0:37:09
yeah i'm pretty sure in uni you were you
0:37:11
were really like that as well
0:37:15
used to be well when i got
0:37:18
my first job oh yeah
0:37:21
okay i can calm down a bit now yeah yeah
0:37:25
well i guess that yes what that's it
0:37:30
to be honest it was a compliment so
0:37:34
thank you so much yes that
0:37:39
all right i just made this function just
0:37:41
for now i'll delete it um
0:37:51
okay yeah yeah yeah that makes sense
0:37:54
we'll just leave for 500 milliseconds
0:37:58
so that um this is able to receive
0:38:13
this is really risky
0:38:32
this is not working
0:38:34
because script is oh yeah
0:38:47
okay fingers crossed
0:38:51
i'll find the best plan for the first
0:38:53
take all the precautions this time
0:38:58
and open this incognito as well all
0:39:14
that looks promising
0:39:17
it definitely does
0:39:22
cool there we go i can see it brilliant
0:39:36
yeah i'll push it to death
0:39:45
clean up the code a bit
0:39:47
yeah yeah sure let's do that
0:39:50
i'll make a comment on this
0:39:54
but do we have to keep yeah we need to
0:40:40
get rid of those comments in
0:40:50
self self-explanatory the code
0:41:03
leave that one and can you
0:41:09
lines so press enter oh yeah
0:41:22
what do you want me to do
0:41:31
i'm just making it look a bit sexy now
0:41:37
that looks fine um
0:41:39
you know my um one of my um
0:41:42
tech to lead at the first job at the
0:41:46
undergraduate program he actually
0:41:56
you're done with your code
0:41:59
working at everything and you're about
0:42:04
treat him like your
0:42:08
keeping looking really sexy
0:42:14
i'm not sure if everything wants to hear
0:42:19
she knows this is my passion and she
0:42:22
just as in that's good she goes as long
0:42:27
you're happy i'm happy um can you bring
0:42:31
from line 18 to 21 backwards so it's
0:42:39
so press shifts and tab
0:42:42
highlight them and press shift attack
0:42:57
no that's not sexy
0:43:09
um can you remove the
0:43:13
uh the comment there
0:43:16
um i was just wondering can we ask
0:43:18
whoever added this
0:43:31
good pick we should do that
0:43:34
i mean there must be a reason why they
0:43:35
did that yeah of course
0:43:50
can you quickly give
0:43:52
me control of your fears
0:43:56
because i think they might be a lot
0:43:58
if i do the formatting
0:44:02
okay yeah if you want to do that or what
0:44:04
i can do is i can um commit it and you i
0:44:07
mean it's in depth so you can pull it
0:44:08
and format it on your screen okay cool
0:44:11
yeah because um vs code will be really
0:44:19
fixing both functions
0:44:26
and then you can just push it
0:44:31
take it from my side
0:44:34
um it didn't get pushed just one second
0:44:41
all right there you go
0:44:59
i'm just gonna do a bit of formatting
0:45:09
also to everyone who is here um
0:45:13
we have a special guest coming on
0:45:18
he's at he's with me he's uh
0:45:22
resident of the programming club at our
0:45:24
mighty uh his name is samuel
0:45:27
so we're really excited to for him to
0:45:29
come along with us on thursday
0:45:48
okay there you go to response
0:45:52
cold this one's there uh this was cool
0:45:56
don't need that one
0:46:00
okay that was there
0:46:03
and did you actually read about what's
0:46:05
happening in afghanistan
0:46:11
don't watch the was out
0:46:17
you should actually couldn't try eating
0:46:23
it's like really horrific um
0:46:26
the government has been dissolved
0:46:31
and like taliban has taken control over
0:46:35
uh presidential palace and now they are
0:46:44
yeah it might be a pretty hard time for
0:46:47
them guys yeah yeah it's really bad
0:46:54
so i was just following the news since
0:46:56
last two three days too
0:47:00
see what's happening
0:47:30
change this to left
0:47:33
but i don't really wanna be using
0:48:05
then did you hear about the
0:48:14
know from people because
0:48:16
i don't really watch those kind of news
0:48:22
suggestion told me that
0:48:25
pretty sure you know the restrictions
0:48:26
right like the curfew restrictions
0:48:29
jeff from the people that i talk to i i
0:48:33
don't watch the teams man
0:48:41
a lot of people and then
0:48:45
tell me everything and i'm cool good to
0:48:54
you tell me that if you
0:48:56
worry about this what can you
0:48:59
improve is beyond your control isn't it
0:49:07
it's good to know what's happening
0:49:09
like not over like just like um
0:49:15
yeah i've got a physical
0:49:18
channel in my apartment yeah so you you
0:49:21
you have other sources to get there yeah
0:49:26
that's that's one way to do it
0:49:32
uh am i sharing my screen
0:49:34
yes yes i did yes i am
0:49:36
all right cool so i'm just gonna commit
0:49:40
and then it is ready to
0:49:46
if you want to merge the monster and do
0:49:51
request and then i can as in accept the
0:49:54
perfect as you review it and then and
0:49:58
then merge it there
0:50:00
right yeah you're right with that
0:50:05
something else in mind
0:50:07
i'm just thinking should we merge two
0:50:10
masks i think we should here
0:50:38
okay so it it did everything
0:50:41
this whole case sam schema i don't need
0:50:45
i'll probably have to
0:50:49
you can do a reset
0:50:56
give me one second
0:50:58
i'm always confused between reset revert
0:51:02
it should really as in
0:51:04
i think it would be a
0:51:08
read about this properly okay yeah minus
0:51:11
reset minus minus head sorry
0:51:23
yeah let's just do a yeah that's fine
0:51:30
formatting crowd is at that one
0:51:43
professional i guess
0:51:52
probably make the message it's like
0:51:57
i have to put this on this side
0:51:59
i'm gonna put this on my portfolio so
0:52:02
you know i think that had a bit of
0:52:07
for the harry manny just then they would
0:52:11
they would get kind of an impression
0:52:15
that was programming but he mixes fun
0:52:20
but that would just be
0:52:22
one way of looking at it okay
0:52:25
i mean the fact that we are doing live
0:52:34
formatting code all right
0:52:39
um it's already done
0:52:42
oh wait it didn't oh
0:52:53
i just realized there's a thing called
0:52:55
get reset soft as well
0:52:57
so what we want to do is a soft reset
0:53:00
that's my best what exactly
0:53:15
um yeah try doing it
0:53:22
i don't get status no seeing any changes
0:53:33
hang on i think i'm
0:53:35
there's another command that i can
0:53:54
this sign as well oh yeah the sign yeah
0:54:06
also it's like the same but just like
0:54:13
i think you have to enter the sign
0:54:14
manually yourself it won't copy it
0:54:19
i don't even have that stop left
0:54:27
that's not the sign no
0:54:29
um it's this sign i'll finish let me
0:54:34
no i sent it to you in private chat
0:54:43
are you sure that's the sign
0:54:58
i've got a different keyboard
0:55:01
oh wait what oh no
0:55:04
i probably have to
0:55:05
copy and paste this yeah i can send it
0:55:08
to you on the copy and paste it thingy
0:55:10
that's fine oh here we go
0:55:13
yeah that's the one
0:55:24
now a fixed import functionality
0:55:28
i have a feeling it made the code unsexy
0:55:42
actually you know what don't worry about
0:55:44
it it's not afterwards
0:55:46
yeah i'll just push it
0:55:50
you don't need to push it then it's
0:55:52
yeah okay yeah so um if you want to
0:55:56
and then do a request
0:56:00
i don't know how to do that locally
0:56:03
all right let's try it
0:56:06
i know how to merge it but i know how to
0:56:08
just create a pull request it will come
0:56:17
merge depth into master then i think it
0:56:22
create a pull request by itself
0:56:38
we need to do this conflicts as well now
0:56:43
um go to the first one
0:56:50
accept current change hang on a minute
0:56:59
do that how do i do that how to accept
0:57:06
accepts incoming change erica
0:57:10
and now the incoming
0:57:14
or all should be incoming change
0:57:41
this isn't because of an unresolved
0:57:45
there's still one apparently
0:57:57
oh um in this 16 as in
0:58:01
the get icon on the left pane
0:58:04
third from the top yeah
0:58:06
go to that one merge
0:58:15
should i delete this
0:58:19
you can't delete it it's
0:58:31
just to all accept all incoming
0:58:40
now in the merge changes build.tamil
0:58:52
manage all incoming
0:58:56
what you hovered on
0:58:59
stage on my changes
0:59:04
that looks fine to be honest i'm scared
0:59:09
let me just try commenting i guess
0:59:13
but you won't be able to i think because
0:59:16
there's still it won't let you
0:59:20
is it magic are possible because you
0:59:22
have unmerged files
0:59:26
staged my change um can you
0:59:34
less pain can you expand that
0:59:38
this one the left pain oh where the
0:59:44
um my changes state
0:59:53
why is it still red
0:59:56
probably do stage as in do a plus icon
1:00:06
i'll do plus on all three of them
1:00:16
i'll just stage all then i guess for
1:00:18
that yeah because we deleted
1:00:28
click the live file
1:00:50
it's telling me to comment
1:01:36
um the only issue is you push
1:01:41
yeah the only issue is i'm pretty sure
1:01:42
it didn't create a
1:01:44
pull request or something it just
1:01:48
that's fine you probably have to do it
1:01:53
i'll just go and check
1:02:02
yeah for now at least the
1:02:20
figure that out um yeah
1:02:25
i guess we can call it a night for now
1:02:29
thanks a lot guys for um
1:02:32
staying with us we made the appreciate
1:02:35
we didn't manage to um
1:02:39
solve the merging issues and now our
1:02:42
merge and i'm sorry not the merge
1:02:46
the main branch and the dev is
1:02:53
the next step we are going to be doing
1:02:57
i think this some kind of a rule to
1:03:02
for certain people that they shouldn't
1:03:05
be able to answer some main branch
1:03:08
we will do that tomorrow i guess
1:03:17
that's all right i just want to thank
1:03:20
you guys and um have you got anything to
1:03:24
no um just join us on thursday when our
1:03:28
guest for this week joins us and
1:03:31
we'll take it from there tomorrow
1:03:35
all right guys have a good night
1:03:37
wherever you are um
1:03:39
morning evening or night but in terms of
1:03:42
melbourne have a relaxing one and
1:03:45
we'll see you tomorrow same time same
1:03:47
place and an exciting different task
1:03:52
also i'll update the jira board as well
1:03:54
to this to be done
1:03:56
fantastic yeah thanks a lot guys okay