1 00:00:00,930 --> 00:00:02,270 Hello and welcome. 2 00:00:02,460 --> 00:00:08,580 In this lesson we are going to create an external kitchen in order to cook. 3 00:00:08,640 --> 00:00:16,980 Next in the kitchen you will need to have your grimy routine which you have any earlier lesson and also 4 00:00:16,980 --> 00:00:22,840 the cell kitchen which you created out on the grimy 14. 5 00:00:22,890 --> 00:00:31,410 In addition to that you also need to download this file the protein file for these notes in 0 9. 6 00:00:31,470 --> 00:00:40,590 A stand against it so you can downvote all this from the resource section for this lesson after downloading 7 00:00:40,600 --> 00:00:50,140 your standard key Gen 0 9 x in a cage Enzi put it in your fasten projects folder and X and zip it. 8 00:00:54,150 --> 00:00:58,320 Thereafter you may delete the zip file. 9 00:00:58,530 --> 00:01:01,880 Now you have a new folder called Zero and then a. 10 00:01:02,380 --> 00:01:09,510 Just open it and inside you will find the key template us in which we already covered. 11 00:01:09,540 --> 00:01:13,760 Now you listen before we modify this make a copy. 12 00:01:16,900 --> 00:01:20,540 And then rename is to Gen 13 00:01:23,760 --> 00:01:34,950 cache Track B protein because we are going to create a key gen for 2014. 14 00:01:35,010 --> 00:01:39,040 That's why we call it key Gen creamy 14. 15 00:01:39,060 --> 00:01:51,160 Now the next thing we want to do is to look at the code the lines a section we generate in the C rookie. 16 00:01:51,240 --> 00:01:55,190 So let's open this if you know ISIS you've already read G 17 00:02:06,480 --> 00:02:10,890 now we were it and just type any name 18 00:02:14,040 --> 00:02:15,240 and any serial number 19 00:02:17,960 --> 00:02:20,360 and you will get uh error message. 20 00:02:21,150 --> 00:02:28,140 So the past is we are using the same method to create DSA. 21 00:02:28,740 --> 00:02:41,350 So no listing for the user when you call click follow from and if you scroll up you will see this gem. 22 00:02:41,410 --> 00:02:42,110 And for that. 23 00:02:42,700 --> 00:02:47,150 If you look here you will see there is a call to get local time 24 00:02:49,790 --> 00:03:01,350 so local time his uh him that he is using this API to create this hierarchy and we see all this in uh 25 00:03:01,430 --> 00:03:03,560 nicely formatted like this. 26 00:03:03,560 --> 00:03:09,290 You can actually use the plugin X analyzer. 27 00:03:09,550 --> 00:03:09,850 All right. 28 00:03:09,890 --> 00:03:18,380 So what I did was I selected all this right click this and go to s in the riser and nice selection and 29 00:03:18,380 --> 00:03:22,250 then again this analyzer analyze function. 30 00:03:22,340 --> 00:03:25,320 Then you forget all this is easily. 31 00:03:25,610 --> 00:03:32,540 So this function gets to look local time and then after that I stress the various uh parameter from 32 00:03:32,540 --> 00:03:43,730 the visa system time system time to the structure is uh saves the local time and you can see from here 33 00:03:44,330 --> 00:03:54,300 it is uh selecting the various uh part of the system time for the CV to a different registers here and 34 00:03:54,320 --> 00:03:55,890 here and here is true right. 35 00:03:57,200 --> 00:03:59,170 So that's not easy. 36 00:03:59,660 --> 00:04:04,300 So we'll hear the call get local time again. 37 00:04:04,310 --> 00:04:16,760 Let's put a big point here and then quick run we need to close this was a English check in and try a 38 00:04:16,760 --> 00:04:17,680 different name this time. 39 00:04:23,770 --> 00:04:26,940 Again let us try different you. 40 00:04:27,480 --> 00:04:31,230 So um let's play a different game maybe we call it uh my 41 00:04:34,590 --> 00:04:35,250 English check. 42 00:04:36,580 --> 00:04:36,900 All right. 43 00:04:36,900 --> 00:04:43,920 So now it stops here at our break point and we can analyze this as press f it then that it call the 44 00:04:43,920 --> 00:04:46,820 function press f it again. 45 00:04:47,220 --> 00:04:55,340 And now it is going to strike the uh something from this address and CV to x. 46 00:04:55,560 --> 00:05:05,690 So to see what this is we can rightly and for low income GBP minus two a C and then we go here BBB money 47 00:05:05,700 --> 00:05:10,950 to see is no value in 0 7. 48 00:05:10,950 --> 00:05:12,610 Yeah. 49 00:05:12,990 --> 00:05:14,830 So what is 0 7 here. 50 00:05:16,910 --> 00:05:26,520 So we go to uh browser do for a hex to decimal and with the K on the first result. 51 00:05:26,800 --> 00:05:28,340 0 7 E4. 52 00:05:28,410 --> 00:05:29,630 See what we get. 53 00:05:29,640 --> 00:05:30,050 Convert. 54 00:05:30,720 --> 00:05:32,830 So we get 20 20 which is a year. 55 00:05:33,690 --> 00:05:45,710 So now we know that uh this uh this instruction strikes a year from sys time and senses it in he X.. 56 00:05:45,990 --> 00:05:47,370 Now what does this do. 57 00:05:48,300 --> 00:05:52,430 So to finally find out why this is we can actually run press F 58 00:05:55,370 --> 00:05:55,790 and I. 59 00:05:55,820 --> 00:06:00,700 This line he seems to at 42 to be x. 60 00:06:00,830 --> 00:06:03,360 So what is 42. 61 00:06:03,530 --> 00:06:12,480 So we go right here and 13 for me to forty two is one two three four. 62 00:06:12,650 --> 00:06:17,540 That means he s One two three four to the year 2 0 2 0. 63 00:06:17,810 --> 00:06:27,530 From here we get the year C in the x and then we from here we take one two three four add it to the 64 00:06:27,530 --> 00:06:32,120 year 2 0 2 0 and what over here. 65 00:06:32,240 --> 00:06:33,000 What is this do. 66 00:06:33,080 --> 00:06:36,470 Let's press f it was impressive. 67 00:06:36,670 --> 00:06:44,570 You copy the value from here in the easy ex ante and take a look here he says is fall and then you can 68 00:06:44,570 --> 00:06:45,230 examine this. 69 00:06:45,230 --> 00:06:50,750 He is rightly and go to following them BBB minus 2. 70 00:06:51,190 --> 00:06:52,900 And you will see 0 4 swear. 71 00:06:54,030 --> 00:07:03,850 And over here also same issue is 4 so 4 seems to suggest it is the April the month of April 4 so April 72 00:07:03,940 --> 00:07:07,820 is 26 and I know what happened here. 73 00:07:07,850 --> 00:07:11,900 So let's press have it and see it yes. 74 00:07:11,910 --> 00:07:12,370 Yes. 75 00:07:12,380 --> 00:07:20,250 He's aiming at 10 so 10 is the month had a date so to all to all. 76 00:07:20,870 --> 00:07:21,280 Yes. 77 00:07:21,590 --> 00:07:23,050 Yes. 78 00:07:23,180 --> 00:07:29,250 Then you add one two three four to the year to two a year and then for a start in. 79 00:07:29,340 --> 00:07:31,450 Yes foist a month. 80 00:07:31,490 --> 00:07:34,580 And then they start a date which is 10 of April. 81 00:07:35,780 --> 00:07:40,520 So from here you know that all these lines. 82 00:07:40,520 --> 00:07:50,840 The one in January part of this Hiroki from here onwards this few lines before you call are in preparation 83 00:07:51,020 --> 00:07:58,320 for calling getting local time and then once he local time is called All the lines here are to extract 84 00:07:58,320 --> 00:08:04,510 that data from the result of get local time which is LP system time. 85 00:08:04,520 --> 00:08:11,240 So a good place to extract the instruction is from here to here. 86 00:08:11,270 --> 00:08:20,610 So we hand it over the instruction from here to here and then we can use the uh plugins and access it. 87 00:08:20,720 --> 00:08:24,830 Uh copy to us and so that you reached your keyboard. 88 00:08:27,170 --> 00:08:32,580 So once we've got this to keyboard we can paste from the keyboard to unlock that. 89 00:08:33,050 --> 00:08:38,120 So let's open the notepad and base everything in the back. 90 00:08:38,780 --> 00:08:41,710 So yeah copy it up from here to here. 91 00:08:41,960 --> 00:08:42,260 Right. 92 00:08:42,350 --> 00:08:44,840 So now we are ready to use our uh template. 93 00:08:45,860 --> 00:08:54,650 So we'll go through a the Jen open this and this is the key Jen has got a place where you can base your 94 00:08:55,160 --> 00:08:57,860 code here to here. 95 00:08:58,250 --> 00:08:58,520 Right. 96 00:08:58,530 --> 00:09:03,240 This is we paste we look with yours and replace and we're here. 97 00:09:03,260 --> 00:09:05,900 So all this can be replaced we could. 98 00:09:06,050 --> 00:09:12,980 So let's remove this and take our uh I spotted lines. 99 00:09:13,010 --> 00:09:23,520 Copy designs and paste between these two lines or here and we tidy up a bit less tidy a bit. 100 00:09:29,970 --> 00:09:35,700 Now here we need to delete the pointer quotation because it doesn't work in person. 101 00:09:36,120 --> 00:09:37,380 Just delete all the PTA 102 00:09:44,150 --> 00:09:49,950 and here when you call a function it should be in brackets square brackets 103 00:09:53,330 --> 00:09:54,340 and the rest. 104 00:09:54,350 --> 00:09:54,940 One more here 105 00:09:58,030 --> 00:09:58,870 and here. 106 00:10:00,580 --> 00:10:01,840 Hey. 107 00:10:01,900 --> 00:10:02,670 Here. 108 00:10:04,330 --> 00:10:05,150 OK. 109 00:10:05,350 --> 00:10:05,880 So. 110 00:10:05,950 --> 00:10:06,270 And then. 111 00:10:06,280 --> 00:10:12,010 Oh here we are going to strike the values in here x. 112 00:10:12,310 --> 00:10:14,280 Easy X and edicts. 113 00:10:14,320 --> 00:10:17,230 So in order to do that we have to push in reverse order. 114 00:10:17,230 --> 00:10:18,390 So here you push. 115 00:10:18,440 --> 00:10:19,280 Yes. 116 00:10:19,570 --> 00:10:20,280 Here we push. 117 00:10:20,280 --> 00:10:21,890 Easy x. 118 00:10:21,950 --> 00:10:24,340 And here you see X and here. 119 00:10:24,340 --> 00:10:27,040 No need to cheat to five parameters. 120 00:10:27,040 --> 00:10:37,000 And if you recall from the uh if you recall from the uh silky Jane if you were to type anything here 121 00:10:42,300 --> 00:10:47,720 you January straight the first four characters first four. 122 00:10:47,790 --> 00:10:50,680 So from here. 123 00:10:50,910 --> 00:10:57,190 You should use four because four here Mr. U S right in the first four characters so we can leave this 124 00:10:57,200 --> 00:10:57,910 as it is. 125 00:10:57,930 --> 00:10:59,630 No need to change. 126 00:11:00,000 --> 00:11:00,600 So that's it. 127 00:11:01,050 --> 00:11:08,530 So now we can test if we confront compile no errors then we can go and test it up. 128 00:11:08,850 --> 00:11:23,650 We will move to a new for the whole new folder a is this folder so we copy the part and basic here right 129 00:11:23,650 --> 00:11:26,200 click into time here. 130 00:11:26,260 --> 00:11:29,400 This is a program we want to test kitchen. 131 00:11:29,440 --> 00:11:30,690 So we test key chain. 132 00:11:31,130 --> 00:11:31,740 Yeah. 133 00:11:31,840 --> 00:11:34,650 Correct me 14 press delegate presenter. 134 00:11:35,650 --> 00:11:36,790 So now we just test 135 00:11:41,210 --> 00:11:45,060 how we can do three to five four dash for this 10. 136 00:11:45,180 --> 00:11:49,480 So now we need to compare this with our safety and our safety. 137 00:11:49,480 --> 00:11:53,010 Jen gives us do 3 2 5 4 4 1 0. 138 00:11:53,010 --> 00:11:53,950 We time that. 139 00:11:54,570 --> 00:11:58,050 So we need to get this take is dish. 140 00:11:58,470 --> 00:12:00,170 Yes this dash in this dash. 141 00:12:00,600 --> 00:12:10,160 So to do that we just go back to what could go to the format specify and did it this dash and this Dash. 142 00:12:10,950 --> 00:12:18,870 And we compile one more time and we run again and we enter the name Simone. 143 00:12:19,470 --> 00:12:20,730 And we got it correct. 144 00:12:20,970 --> 00:12:22,010 Time. 145 00:12:22,610 --> 00:12:25,940 I do 3 2 5 4 4 1 0. 146 00:12:26,180 --> 00:12:28,120 That starts with another name. 147 00:12:28,140 --> 00:12:30,810 How about this. 148 00:12:31,380 --> 00:12:36,330 Alice So Alice who in January this year a key. 149 00:12:37,200 --> 00:12:38,110 So let's try. 150 00:12:38,160 --> 00:12:39,450 Alice. 151 00:12:39,790 --> 00:12:40,470 Yeah. 152 00:12:40,870 --> 00:12:42,740 Yeah I see. 153 00:12:42,840 --> 00:12:43,950 And Trina. 154 00:12:44,010 --> 00:12:44,600 Ellie. 155 00:12:44,880 --> 00:12:47,540 3 2 5 4 4 1 0. 156 00:12:47,800 --> 00:12:48,120 Yes. 157 00:12:48,600 --> 00:12:52,670 So you have created your own extra Nike jet. 158 00:12:53,550 --> 00:12:53,860 All right. 159 00:12:53,880 --> 00:13:07,830 So this is a simple example of how you can use the analysis of the code to determine where to copy and 160 00:13:08,430 --> 00:13:18,030 how to Pasi to your team to your Fossum here and how to make the necessary changes too. 161 00:13:18,990 --> 00:13:22,830 And also here to make this the necessary changes. 162 00:13:22,920 --> 00:13:27,450 So hope you get an idea of how to place in the kitchen. 163 00:13:27,450 --> 00:13:28,840 Thank you for watching. 164 00:13:28,880 --> 00:13:29,910 Now see you in the next hour.