فشرف بل اشتغالي بالعلم ولا تبغي به ما عشت يا بدا بدا وياله من شراف العظيم رحيم الله أخذه في حفظه رحيم الله big time it becomes clear to us after following his methodology نبوان أنه رتب أحديث الكتاب على الأبواب والمواضيع على طريقة المعهودة في ترتيب كتب الأحكام على أبواب الفق أبواب الفق that the author, رحمه الله he organized the hadith of this book he organized it and he placed it in chapterings that are well-known in the Jew Spoon rulings فق the way he organized it for example, he started with the book of Tahara فبتدأ بكتاب الطهارة وثلنا بكتاب الصلاة وثلث بكتاب الزكات وهكذا he started with the book of Tahara and then he made the book of prayer next and then the book of Zakat and then he went on and if you look at it what he does after that is فما إنه يقسم كل كل كتاب إلى الأبواب التي تنترج تحته and after that when he brings the book of Tahara the book of Salah the book of Zakat what he does is after he brings أبواب he brings أبواب فe example if we look at كتاب البيوع ذكرة تحته عدة أبواب he mentions a lot of chapters under it فe example he brings the first chapter of كتاب البيوع is what بابه شروط بابه شروطه ومانه عنه the conditions of بايع and that which is prohibited in it the first chaptering اخيار ان بابه الربا بابه الصلح so he writes كتاب البيوع باب باب باب باب all of those تندرج تحته it comes right under the كتاب ثم يذكروا تحت كل باب and then after under every باب he mentions what الحديث المتعليقات به that's connected to the so now we're talking about the way he organized his book he organized his book by following the well-known structure of the فقهة when he came to write in their books the فقهة they don't write their books with حديث they only mention their but he used the books كتاب الصلاة كتاب الصلاة and etc. he copied them now in it and then when he did was he placed and he finds a حديث connected to the باب this is the layout of the book point number 2 that we learned from the book and the methodology of إبن حجر is إمام مبن حجر did not fully compile in his book a particular he didn't rely fully on a particular book for example he didn't rely on only صحيحين he didn't say oh my book is only going to be the حديث of بخاري المسلم he didn't say that كما فعل صحيب العمده عبدالغاني عبدالواحيدي المقدسي what did he do that's a chart he made he did إبن حجر didn't do that أو شرطة فيها شرطة معينا and إبن حجر did not say I'm going to follow this one particular condition this is my condition I'm going to tread on كما صنع صحيب التقريب الأسانيد وليه الدين العراقي يا what did he do he has a book التقريب الأسانيد that's what he said he said he's only going to rely on that حديث which I think if I'm not wrong his condition was what I'm only going to rely on the حديث are you with me the أصحه الأسانيد that were mentioned the golden chains and the authentic chains that people scholars mentioned he said he's going to bring it in that if I'm not wrong that's what I think he did he conditioned I remember when حجر didn't do that so what do we realize from that he did not say I'm going to particularly narrate from a particular books of the مصادر he did say I'm going to fully rely on صحيحين like صاحب العمده like عبدالغاني and he also didn't say that which صاحب التقريب الأسانيد he didn't say that but what did he do بالرادة إنه أراد أن يكون كتابه شاملة إبن حضر one thing he's booked to be vast not restricted for what أصول الأدلة الحديثية اللي لحكام الشرعية he mentioned it in an old book he did not say أصول الأدلة الحديثية he mentioned the fundamental حديث there are in the jurisprudent rulings which are in the legal Islamic rulings all the fundamental حديث there are in legal Islamic rules wherever they are they do not restrict himself he mentions that in which scholars of HaFuqa they rely on so you see him relying on صحيحين he uses صنان الأربعة he also uses أحمد من حبل he also relies on the three معاجم التبراني معجم الكبرى he also goes to Bazaar all of that and other than that if the hadith is weak فإن كان الحديث ضعيفا if the hadith is weak فإنه يذكر ويبين ضعفه this hadith is weak this hadith is not he mentioned it ولو تركه كان هذا نقصا في الكتابه وفات على دارسي لكتابه بحث مسألة من مسائل الفق المهمة هذا الحديث أصل فيها and if he leaves it that is a deficiency to his book if you look at ابن حجر رحمه الله وتعالى and you follow up if you look at the weak narration that he brought the hadith that he brought that were weak it will become apparent to you it will become apparent to you it will become apparent to you that the weak narrations that ابن حجر رحمه الله it will become apparent to you that ابن حجر رحمه الله that weak narration he brought has two benefits in it the first one is there is a strong narration on this hadith the second one is that the hadith that was mentioned here is actually حسن for the chaptering that it's in and insha'Allah تعالى many examples will come in that regard we will show examples when we come to it in the شرح of it number three ابن حجر رحمه الله mentioned in his مقدمة that he said حررته تحريرا بالغا ليصيرا من يحفظه من بين أقرانه نابغا ابن حجر say I have strove حررته تحريرا بالغا means I have put excessive effort in so the one who memorizes it ليصيرا من يحفظه so the one who memorizes my book will surpass his peers and the effort and the hard work that he is putting in his book these are the examples this statement of his حررته تحريرا بالغا I have put excessive effort in this hadith book so the one who memorizes it can surpass his peers the following things is what he has done number one انتقائه للحديث من الأصول he extracted a hadith which are fundamental and he doesn't mention him الحجر except a hadith which is صحيح or a hadith which is حسن or a hadith which is weak but there is implementation on it or a hadith that a person cannot find for this chapter except this hadith this is the only hadith out there for it number two this is his hard work that he put in number two after every hadith he mentions who narrated this hadith from the أئمة he mentions it and not only did he do that but he tried to summarize even the name of those who narrated it by saying أخرجه السبعة or ستة or خمسة or أربعة or ثلاثة summarizing it for you to say the seven narrated it, the six narrated it the three narrated it and he mentioned what he means by those terminologies in the مقدمة of his book and we mentioned it right now number three is classifying and grading the حديث and not only grading it but actually placing a ruling on it as well if the hadith is outside if the حديث is outside بخاري المسلم what did you do he will tell you who authenticated it he will also tell you who classified this حديث or he will even tell you who weakened it from the أئمة to وحفاظ الأمة the scholars of hadith who from amongst them weakened it or he may even place a ruling on it from his own self by classifying it to be صحيحة or ضعيف or if the حديث is defaulted there is a default in the حديث if the حديث is defectory if the حديث has a defect in it he will give you the إلا that is in it are you with me but all of that he will say in a very well structured in a very well structured wordings very summarized so even the person can memorize the grading even if he wants to and this is why he had the أبحن number 4 the other effort that he put towards it that indicates it is what all of this falls under the point 3 number 3 is اختصاره سياق ومطونة حديث طويلة the wording of the حديث he summarizes it he doesn't bring you pages of narrations he doesn't make a حديث which is if it's lengthy the حديث he only takes from the حديث that which is accurate for the chapter that he put so the student who is reading it can automatically see from it موضع الشاهد مينها where is إبن حجر trying to extract the ruling from and what is the reason for him to put this حديث under the chaptering are you with me and this is also something that helps the person to memorize this book and this is also where gave him the أبحن وهو من ممتاز به على العمده and this is why he surpassed عمدت الحكام in the chapterings عمدت الحكام سمأ حديث you don't even know why he put it in there is the majority of the times after every حديث he mentions the different sources in which he narrated it from and the wording difference on each source he will say to this is the رواية of فولان and this is the love of this and this is the love of that he will tell you which wording in which book it is the majority of the times he does that so this is another MISA to give you the wording that you are memorizing he will tell you it very good number 6 ابن حجر gave اعتنا he gave a lot of consideration and concern by the زيادات المهمة the additional parts that are added to the حديث on the matter of the حديث if there is a زيادة on it another رواية brings a زيادة he will bring it and then there is another one out there but that has another زيادة on it he mentions it but also keeping in mind the تخرج of that زيادة and if it is weak or authentic he will mention it to you because he could be shan or if it is not he will classify it and grade it for you number 7 he brings the evidences التي يحتج بها الفقاها على المسألة مسائل he brings you when he does that what does he do دون تعصوب or ميلن مدهب معينن في المسألة فتجدو احيانا he doesn't do that from any fanaticism in him to a particular مدهب he doesn't do that rather sometimes guess what you find sometimes what do you find مستجدو احيانا and sometimes يسوقو في المسألة الوحدة الحديث المتعرضة sometimes in a particular place he brings two hadiths which seem like they oppose one another why would he do that the reason why he does that is الذي يمثل كل حديث منها مدهب المعينة each hadith a group of مدهب held onto it are we going to bring examples of different views that were out there he brings both of the hadiths so you can see them نعم those are the points that fall under number 3 which is when he said حررتو تحريرا بالغا ليصير من يحفظه من بين اقرانه نابغا وتحريله له تمثل فيما يلي number 4 number 4 pertaining to the مدهب إبن حجر العسقل we finished point number 3 the fourth منهج that we realized from this book after تتبع الإستقراء is أنه دينون كتابه هذا بكتاب الجامع that ابن حجر after finishing the حديث الحكام at the ending he brought a chapter called كتاب الجامع he brought in the أخلاق ذكر and etc. and this is a MISA this is an upper hand over the other books he finished his book so a person يكون روح له so it can be a soul a purification of his heart وعلامة على علوي منزلته and that the person it can be a sign for him to grow and nurture himself and this is من مخطص به كتابه البلوغ this is the unique thing that the بلوغ المرام عن غيره من المصنفات الحديثية في الحكام over the other books that are written in this particular field we are now going to speak about the last point which is the fourth point when it comes to pertaining to التعريف بكتابه بلوغ المرام the fourth point again one more time the first one we were talking about was regarding what the first thing that we spoke about is the intent behind الحديث الأحكام and some of the books that were written in it we finished that one we also spoke about the name of the book attribute to this book to the author and when he read it and why he read it number three was the methodology of the author ابن حجر in this particular book we are now going to go to the fourth point which is في ذكر نصخ في ذكر نصخه الخطية والمطبوع when I am going to speak about the manuscript in which this book has and those books that were published of it في ذكر نصخه الخطية والمطبوع as we have previously mentioned brothers بلوغ المرام this book حصل من البقبولي والمنزلة الرفيعة this book gained a high position admiration and love the people they hastened to taking this book the minute and this is rather even before publishing houses came before this publishing machines before to copy machines came this is way before زمن الطبع the people hastened they hastened في حياتي مؤلفه when ابن حجر was alive as we mentioned last lesson that some people were memorizing it on him and they were reading it on him وبعض they were 30 even after he died people were also what they were giving a lot of consideration to this and as I said last time قلّ it was little and تجد مكتبة علمية it was very little to go to a library in which he wouldn't find this book very little or even if you went to a door مندور الكتب العلمية العامة or العامة you will always find this book present there whether it's universities whether it's marrakes institutes من مراكز البحث العلمي except you would find عدة نصخ خطية محفوظة من كتابة الوجه المرام you find manuscripts present there and when it became apparent the time of the publishing houses started and books were being published the publishing houses they hastened to publishing this book and it was one of the earliest books that were published and they gave it وعطائه الأولوية لإخراجي بن حيازي المخطوطات they took it out of the world of مخطوطات means in the world of by making it a printed book so they brought it to the العالم المطوعات why تداوله so the people became easy for them to take from this book and this book it did happen وتم الفائدة المرجوة all of the good that was hoping came out from it the people memorised it institutions and university started to oblige people to memorise this book if they wanted to learn كتب الحديث so we're going to إشاء الله وإتعالى speak about the first places that it was published the first number one the first place توبة علي أول مرة طبعة حجرية the first time that was ever published that it was was in Lucknow in India and the year was one thousand two hundred and fifty three the second time it was in this time it was the second time it was in Lahore the year one thousand three hundred and five and then was the طبعة الأصاري and this time it was in India the year one thousand three hundred and eleven and then the fourth is ثم طبعة it was then published إذا مطبعة التمدن في مصر the year one thousand three hundred and twenty and then after that the fifth one was ثم طبعة بطبعة مصطفة البابي الحلبي which is in Egypt when the year was one thousand three hundred and fifty one number six was it got published again by in Egypt but this time it was when the year was one thousand three hundred and fifty two the seventh is it was then published ثم طبعة في مطبعة the publishing house was عبد الحميد حنفي the year was one thousand three hundred and seventy two this time it had the تعليقات of الشيخ عبد الله ابن محمد الصديق العماري the eighth was ثم طبعة بدار الكتب العربي when the year was one thousand three hundred and seventy three with the تصحيح of الشيخ بحمد رضوان the ninth is ثم طبعة في مكتبة النحظة الحديثة في مكة المكرمة when the year was باعتناء الشيخين two scholars that came together and they worked on it محمد أمين كتبي عبد الوهاب عبد العطيف the tenth one was ثم طبعة بالمكتب الإسلامي بدمشقة and this was the year one thousand three hundred and ninety three and at the bottom you would find the حاشية of العلامة أحمد حسن الدهلوي رب إيلافن is ثم طبعة بدار إحياء العلومي ببيبروت with the تحقيق of الشيخ وصابه صلاح الدين المني I think was المني منه one of those two if I'm not wrong the year was one thousand four hundred and thirteen in which they added to it the تعليقات that were already on the previous copy of محمد حامد الفقي and they also added extra things on to it the twelfth was ثم طبعة في دار الحديث في القاهرة when the year was one thousand four hundred and fourteen with the تحقيقة the تخرج and the فهرسة was put now a content page was added to it with الشيخ عصاب الدين سيد is ثم طبعة بدار إبنو كثير في دمشقة and then it got published in دار إبنو كثير in دمشقة when the year was one thousand four hundred and fifteen with the تحقيق and the تحقيق of الشيخ يوسف ابن علي البديوي number fourteen دار السلام في رياض they published it when the year was one thousand four hundred and seventeen and at the bottom you find ده التعليق which is كود اتحافو الكرام بتعليق على كتابي بروغ المرام باي لفضيلة الشيخ صفير الرحمن المباركة فوري وضيوطر رحيق المخطوم number fifteen is وطبعة بمكتبة النزار مصطفة الباز المكة المكرمة this time it had the تحقيق of المركز الدراسات والبحوث في المكتبة نفسها they did it themselves المكة the year was what the year one thousand four hundred and seventeen it's the same year in which فضيلة الشيخ صفير الرحمن المباركة فوري number sixteen is في المكتبة العربية السعودية when the year was one thousand four hundred and seventeen this time it had the تحقيق تحقيق of الشيخ صمير ابن أمين الزوهيري and it was published in two volumes and sometimes you find it in one volume and it's the one over there this is the one of تخرج of الشيخ صمير ابن أمين الزوهيري and the next one is مكتبة الصميع in رياض the year one thousand four hundred and eighteen they published it on the تحقيق of نظري من محمد الفريابي and he published two volumes recently ماهر ياسين الفحل and طارق عوض الله I saw the two ones they came out طارق عوض الله and ماهر ياسين الفحل if I'm not wrong if I'm not wrong حلاق صمح الحلاق who done the تحقيق of the kitab بايمام الشوكاني رحم الله I think if I'm not wrong he also has a تحقيق انا تخرج انا تعليق of the kitab so I never got the opportunity to compare between ماهر ياسين الفحل is one طارق عوض الله is one and سمير امين الزوهير is one but when I remember when we were studying this book the best publication that everyone used to praise and they would study it and it was the best one is الشيخ سمير امين الزوهيري if you just give me that copy الدكتور سمير امين الزوهير is one in which he done a تحقيق of it and he brought the hadiths out and he was on it he said that this طبع is a طبع in which the manuscript that was relied on is انا نسقة انقرئة على الحافظ وعليها خطو a copy that was read in the hadar it was read on him and also his writing are on it and his handwriting is on it if you go to page 33 he brings some of those examples in which he wrote his hand he said and this is what he he mentioned he brings some of it he brings some of the points where the author رحمه الله he brought so he replies on the نسق البقاعي he relies on the نسق الأزهرية he relies on a lot of نسخ and every year he brings out he looks into it and he brings out whatever he thinks that needs to be that needs to be done but that which I've known this was very good and الله تباركه التعالى that it was best and he will stop there and inshallah we will be speaking about and inshallah we will be speaking about and inshallah we will be speaking about بعض الأحكام المهمة المتعليقة بالصيام and we will be speaking about which is going to be the fourth مبحث and we will be speaking about some of the the important are connected to fasting سبحانك اللهم بحمدك الله إلا إلا الله أستغفرك وأتوب إلي


Welcome back. In the last segment, we made a high level plan for designing our string class. Now we are going to jump into the implementation of it. Okay, so let us start off with a equal to pqr. So this is an assignment statement. We want the character string pqr to be stored in our string variable a. How should that happen? Clearly as we said a.ptr should be pointing to the string pqr and our rule was that a.ptr should point to things on the heap. Now since we said that we cannot immediately just directly set a.ptr to pqr. After all we know pqr and we know that pqr is a const char ptr. So we cannot just write a.ptr equal to whatever that pointer is because we decided beforehand that the member ptr will point only to the heap memory. Okay, why are we doing that? Well if we know that it is only going to point to the heap memory then we can delete it. If we do not know that, if there is a possibility that sometimes maybe it points to the heap memory, sometimes it points to activation frame then we cannot delete it. And therefore in order to be able to delete it confidently whatever data it points to should always be on the heap. And therefore we must first copy the character string constant to the heap. Alright, so that is the first consideration that we must copy pqr to the heap because it in general it may not be on the heap. But then there is also another consideration a.ptr we want to set to point to this pqr but it is already pointing to some variable on the heap that is what our convention is. Well unless it is null but in general it could be pointing to some variable on the heap. So what do we do? We are making a.ptr point to something else so this variable that it points to is going to be useless and therefore we should be deleting it. Why is that? Because we are guaranteed that no other pointer points to that variable. So therefore we can just delete a.ptr. So that is all there is to it. So the way the implementation works a equal to pqr for a equal to pqr we should do what I just said but the way to do it is that this statement for this statement c++ makes a call to a.operator equal to with a being the receiver and pqr being the argument. And so whatever I just said has to be put inside this function. So we have to overload this function. So what are the types of argument? What is the type of the argument to this member function operator equal to? So this is a character string constant and we know that this is represented by a variable of type const char star and whose address is the starting address of this array. So the member function operator equal to will have a parameter const char star so we can just so this call will be a valid call. Then what value should it return? So this is a little tricky. Now a equal to pqr wants us to assign pqr into a but if you remember we can chain assignments. So what does that mean? We can write something like b equal to a equal to pqr. So if this assignment operator is a part of this expression then this assignment operator is supposed to produce a value and that value should be returned by the member function operator equal to. So what is the value that this is supposed to produce? Well it is supposed to produce a reference to this a itself. So from which we can pick up the value. So the return value should be the left hand side. So it should be this a itself and the return type must be a reference to string because a has type string so we should be returning a reference to that string. So here is the core so we are defining a member function operator equal to in the string this will go into the string class and it will take so it will be operating on a string will be the receiver and it will be receiving as argument a character string constant so some variable of type const char star and let us call that variable rhs. So first of all we said that if we are implementing this so we are changing a.ptr so a is the receiver we are changing a.ptr so whatever a.ptr is pointing to should be deleted but since a is the receiver then this is just ptr remember that if it is a member appears here without any qualification then it is just the pointer member of that receiver so we are going to delete that ptr. So effectively what has happened now is that we were assigning we were executing this statement the memory that a was pointing to a.ptr was pointing to has now been returned back to the heap. Now we said that we have to make a copy of this pqr on the heap so how do we do that well we are going to allocate an array of size length of this rhs so for pqr it will be just 3 plus 1 byte to store this the null character. So how do we do that so in section 15.1.4 we had this length function which we talked which we mentioned earlier and we just call that so length of rhs will tell us how long rhs is we add one to that and we allocate an array on the heap so mu does that and its address is put into ptr. So this is the array that has been allocated we have not yet moved the data into it so this whatever that string constant rhs is it only its length has been used up the data actually has not been used up. So the next step is to actually do the copy so again we had this scopy function which is very simple which actually just copies every element of this into this until we reach the null and the null is also copied so there is a simple loop but anyway you can get that function from this section and finally we are going to return this receiver itself so remember a equal to pqr got translated into a.operator equal to of pqr. So this is the receiver and we want to return the receiver and here is how we return the receiver so this is a special word in C++ so let me just explain that to you so this is a C++ keyword and inside a member function this is a pointer to the receiver so star this would mean the receiver itself. So here that is exactly what we want we want to return the receiver itself why are we not returning a pointer because this says that we want to return a reference this says we want to return a reference and the references and references are two variables so here we should not be having pointers but we should be having references so then reference can be picked up so we should write star this over here so this is a keyword and this would mean the receiver itself and the value of an assignment var equal to expression is var so the assignment must return var as a result and hence the return value is star this so that was assigning a character string constant to one of our string variables but we would also like to be able to assign one of our string variables to another of our string variables. So we want to allow code such that a equal to b a equal to pqr and b equal to a so how do we do this so the statement b equal to a is going to call is going to be looked upon by c plus plus as this statement so it is the object b and we are making a member function call on it so b is the receiver and the argument is a so this is another assignment and it is very similar to the assignment that we made earlier except that now the argument is not char star but it is a string variable and if you want to get the actual string that we want copied we have to go through its pointer so we will do that so we want a member function operator which takes string as our argument we already have a member function which takes cares const char star as an argument but we can have another so we can overload we can have more functions so long as the signatures are different okay so this time we have string reference returning being returned name of the member function is operator equal to in in the class string and the argument this time is not const char star but const string reference RHS so I could have had RHS over here but I do not really want unnecessary copying and therefore I am going to just get a reference to it so we have to be a little bit careful in all of this okay and in principle our programmer is allowed to write something like a equals a so a equals a is really nonsense but it is not disallowed and therefore we had better deal with it okay so the best way to deal with things like this is to just make a special case so what we are going to say is that if this if the receiver is the same okay if the address of the receiver is the same as the address of the right hand side then that means we are in this situation so in that case we have nothing to do but we can just return this object itself okay and of course a reference to that gets returned but we are returning this object itself okay so suppose now for the rest of the code that the receiver is different from this right hand side okay so we are in a situation not like this but we are in a situation like whatever a equals b where a and b are different strings okay in that case as argued earlier we are going to change ptr and if ptr points to something and ptr will be pointing to something okay we have to release that memory so for that we have to issue delete ptr and delete ptr is fine even if ptr is null by the way okay so so that is not an issue okay but if ptr is not null then we have to return that memory back to the heap and that is what this statement is going to end up doing okay then as before we are going to make a copy of the string in the RHS on the heap okay so for this as before we will allocate length which is RHS dot ptr a length of RHS dot ptr dot ptr plus one that one is again to store that null ptr okay and this is done quite easily by a very similar statement as before length of RHS dot ptr plus one okay so that much memory we are going to allocate on the heap okay and we are going to copy we are going to copy the memory that RHS points to or the string that RHS is RHS contains is being now copied to the receiver as well. So ptr which is the receivers pointer the address that it points to will now contain whatever is contained in RHS dot ptr okay so for this we again use this copy function so it just essentially transfers characters from copies characters from here to here at corresponding displacements and finally again as before we are going to return this the variable that this points to okay that is it. So what have we discussed we have discussed how to implement assignment operator okay so I should say by suitably defining member function operator equal to and we define two member functions operator equal to one which takes as argument const char star and another which takes as argument another string object. In the next segment we will be talking about the implementation of the other operators but before that we will take a quick break.


Hello everybody and welcome to this video. My name is Lucas and I am a senior engineer at Upstart. Today I wanted to show you how EZ Octa makes it to enable developer self-service OAuth application security utilizing their authorization servers as well as their Terraform provider. A couple weeks ago I posted an article that outlines the benefits of OAuth and why your company should consider using it. To implement OAuth with Octa you need a couple things. You need an OAuth application, you need scopes for that application, access policies and access policy rules to name a few. Typically you'd request these from the IT team. It would take a couple days for them to receive and triage the request. Then they would have to get approval to do all those things via change management control. This process could take a couple days if not a couple weeks. With the Terraform module that's mentioned in that article on medium this can be done in the amount of time it takes for a person to review a pull request in an Octa Terraform repository as this module creates a client side application, a server side application, the app policy, the app policy rule and the scopes for the application. Also to note if you want to change things or you need to add scopes to your application you don't have to submit another IT request if you have this Terraform module all you have to do is go and add the scope to the module declaration in your Octa Terraform repository making iterations so much quicker and everyone's a lot more happy. So with that being said let's jump into the code and see how it works. All right so what we see here is a simple flask app with a couple different routes. There's the root route and then a mix cookie route. So let's get this app running. See okay it's running. Let's go ahead and click that. This app is dope. Okay so we are running successfully. Now we see that this route slash mix cookie accepts a post request and it will mix our cookie dough. So let's go ahead and do that. So we'll do curl dash x post and then grab the URL which is this and then add the route to it. Great message cookie dough mix status code 204 which is what we'd expect here. All is fine and well and now we have mixed cookie dough. So this is great. However what if we don't want anyone to be able to mix the cookie dough. A funny example let's say you're running this easy bake oven server on your internal network for some reason and someone hacks your Roomba which is also on the internal network. Then somebody that hacks into your Roomba might be able to talk to your easy bake oven server and mix the cookie dough. You don't want that to happen. So what we want is to add a verification or protection to this route and how we can accomplish this is via OAuth and what that'll look like. So let's start writing some code here. We'll say okay proceed is going to be a variable. And let's say it's going to call a verify method with the request made to the server and maybe the scope that we need to be able to do this. Great. So we have this function and the variable and then this variable will probably be a Boolean like if proceed is allowed or if proceed is true then go ahead and return this message saying that the cookie dough is mixed. Else return message error and status code 500 or something like that. Not 5000. That would be real bad. Okay great. So we have this workflow now that we're going to call some function verify with the request details and the scope that's needed to perform this request. So let's go ahead and make this verify function and it's going to take request context as well as the scope needed to verify this call. So what we're going to do is we're going to get the request headers which would contain our authorization token from the OAuth server and we want to get that token and do an introspection on it. So octa offers the introspection endpoint in their OAuth API and that will provide us details on things like whether or not the token is active the scopes provided for the token and things that will help us verify that their request is true. So I just wrote a couple lines of code. If the request headers if the authorization header does not exist we will return false and that will mean that the status code is equal to 500 the cookie dough did not get mixed. So now that we have this let's go ahead and restart our flask server and then let's go ahead and run this post request again. We'll get a 500 because this post request did not contain the authorization header. Great. So that works perfect. Now else because we want to be able to make a request here successfully with some criteria and this is basically saying now we know authorization exists because it's not none. We will do an introspect call which I will define soon and the token is going to be equal to request headers.  So we're going to replace that in the string because when we request the authorization header it's going to say bearer space token value. So let me also put a t here so that makes sense. We're going to introspect this token and then if there is no response we are going to return false let's say so if we introspect the token and there's a error introspecting it we will return false and then if not we are going to say json is equal to r not json so we're going to get the json response of the introspection and we will return our json.get active is equal to true and scope in r underscore json.get scope. So a couple things that I want to explain here. When we introspect the token with octas introspection endpoint there is an active attribute in the response and there is also a scope attribute in the response. If we look at the documentation we see that active it indicates whether the token is active or not and then there's a space to limited list of scopes in the response. So what we want is we want the scope that we're going to pass into this verify function do.cookie.mix to exist in the list of scopes and we want the token to be true. So that will give us the confidence that this token is legit and it can mix the cookie. So we have to now define this introspect function. So this will handle the token introspection to octa and we will it will take a token as the argument and then we will do a try r is equal to request.post we're using the python request library for this and then there is a config file that has all the variables we need here and we're going to use the default auth server with this module and we will hit the introspection endpoint and then our headers are going to be content type and then we will do application as x s w w dash form dash url encoded so this all this stuff can be found in the api documentation and then the data that we're going to supply we're going to supply the client id of the application that's performing the introspection this is typically going to be hosted on your server versus client and then we will get the client secret of that as well all this is defined in the config file so I don't expose my secrets to the world and then the token is going to be the token that's passed in from the function argument we'll do r dot raise for status just to blow anything up if something doesn't work and then if it works we will return r and then we wrap this in a try block so we're going to accept quests dot exceptions dot request exception as e and then we will just print e return false so now that we look at this introspection function oops we'll see that we will return a response an HTTP response if there is no error introspecting the token otherwise we'll return false so that's what introspect is going to do and if we combine that with the verify function um we'll return false if not r otherwise we will return the value of the token being active and the scope being in the token so great now we have this hopefully now if we request the token with the correct scope we will be able to make a successful request however these scopes that you configure we need to configure on the octa side so this is where the terraform module piece comes in so let's hop over to that window all right now that we have our application set up to perform an oauth request and introspect let's go ahead and set up our octa resources using that terraform module so we're going to head to the module documentation um and we're going to look at an example usage of this module to see how we can use it so pretty simple um we'll just copy this and then we'll fill out the rest step by step and we'll kind of explain how exactly it's being used so we will go ahead and declare the module with the source great so we have our source just to get hub link to the repository with the 2.0.1 release and we'll just flip back and forth we are going to use the um documentation provided in the uh read me so let's go ahead and take a look so in this module there are a couple inputs access token lifetime minutes so this is going to be how long you want your tokens to be able to perform actions before you need to provide another uh it's not required and the default is five so we will leave that there five minutes is okay um client credentials we'll skip that and come back to that because we're going to handle that in a little bit label this is the name of your service so the name of the application is definitely required um and there is no default value so let's go ahead and add one pop back over to the window type label is equal to let's say easy bake oven great okay so we have our label um oh yeah it's type string so we know that next variable we have oauth config uh this has the oauth config for your application um and the default value is application web grant types client credentials authorization code response types or code uh we're going to stick with this um this is for the client credentials flow for server-to-server authentication and um i'm not going to mess with the different types of grants responses um that are available the uh can the spec for oauth gets pretty confusing in that aspect so we're going to keep it simple client credential flow server-to-server so we aren't going to include this um we'll just accept that that's the default value and move along uh policy description this sets the description for your app's access policy so let's go ahead and say that um pop back over to the window so we'll do policy description and i believe that was a string if it makes sense yep so the policy description this policy allows only my easy bake oven to or maybe not allows my computer to access my easy bake oven i don't know something like that great policy description set redirect uri is kind of the same thing as oauth config there are a couple dependencies combined between some of these values and the redirect uri whether or not it's necessary um we're just going to make it simple and keep the default value as google.com um as this doesn't have any uh client-facing redirects or anything but uh due to some nuances in octa's oauth implementation we have to include this so we'll just keep it as simple as google.com and then scopes so we see scope is a list of objects that have a name and a description so this is the default value just some dummy scopes so like service dot object dot read service dot object dot admin um we are going to provide our own list of scopes as a typical developer would so let's go ahead and pop over here and we'll do scopes is equal to and it was a list of objects such that the um objects contain name and description keys so if we remember um see if i could pop back over to our application uh we are expecting to be able to mix cookies we need the scope doe dot cookie dot mix so we're going to declare that scope in our application so let's go ahead and do name and this is going to be doe dot cookie dot mix and then it needs a description so we will put that oops and this will be grants the ability for caller to mix cookie doe great okay so we have that scope lovely now one last thing that we have to do uh if you remember a couple minutes ago i said we are going to handle client credentials a little different there is a great article that i found on dealing with secrets uh in terraform because currently uh secrets are stored in the terraform state file this is an aside and that state file is in plain text more or less so if you decide to use this there's a disclaimer you should definitely encrypt your data at rest for your terraform state file um typically uh an s3 backend we should have encryption on that bucket um so to to be as secure as possible otherwise there isn't a way yet in terraform to not store secrets in the state file um however that doesn't mean that we should declare them in plain text in our uh terraform configurations that's an even worse thing to do so how i handle it and how i've seen other people handle it is they use a secrets vault like aws secrets manager to store the secrets and then pull them in with variables uh and data sources and terraform to load them into uh whatever they need because this way we won't be sharing any values it's just going to be a variable so um how we do that or how i do it at least and this is uh just a little bit of knowledge of the aws terraform provider let me pop back over to the code window here we go we are going to declare a data source so aws secrets manager secret version and then we'll just call it creds and the secret id is going to be local dot secret so we're going to look up a secret based on a local value and we just call it secret so now we have to declare our locals um and secret id is going to just be called test secret so you'd have this configured on your end and secrets manager already um and then creds is equal to json decode data dot aws secrets manager secret version dot creds dot secret string so if you look into the provider documentation for secrets manager this is a viable way to pull in your secrets as a json object or i guess a map or just plain object in terraform's language um so we're going to decode the json into an object and store that as a local variable called creds oh hold on there's a bug we'll get rid of that so great now we pulled in the secret and then we decoded it into a variable called creds so now let's go ahead and get rid of that terminal um and declare our client credentials here it's equal to and then pop over the documentation to see what they expect they expect an object with client with these values client client id client client secret server client id and then server client secret um the client will be making the request for the token and the server will be doing the introspection that's why there's two different ones um so so now uh we will just do and this is kind of uh bulky so just hang with me um client client id is equal to and then we'll just um oh shoot okay client client secret and then we'll just change this to server and we'll do the same down here server client id and server secret okay now we need to figure out what these are so if you remember we stored that our secret json decoded as the creds so we'll do local dot creds and then we're going to index this way and i'm going to try to make this as quick as possible because this is a lot of typing a client dot client secret and then we want to do the same thing here but server client id and then server client secret okay cool so we have our client credentials that we provided to the module so now this module is declared this should provide us with scopes our applications and access policy rules access policies and the client id so lovely now we do some terraform stuff typically in a production environment this would be behind some type of cicd deploy pipeline but this is all local stuff for example so i'm just going to run some commands terraform init all right so we run terraform init great terraform repository has been initialized so we should be good to go let's run a terraform apply and we'll see what the output is i would expect like five things to be created here um so let's take a look at what the module is going to create for us make this a little bigger for everybody it's going to create our client side up great um easy bake up in client it's going to create our server side application for the introspection and then it's going to create the app policy for the authorization server and it's going to create the app policy rule for the authorization server and then it will create the scope that we needed it to create and awesome all that looks lovely we will enter a yes for terraform to apply okay perfect so those resources are created and we can head over to octa to see them created all right so here we are in octa we can see that our easy bake oven and our our client and our server applications are deployed and then the other pieces that we need are the api pieces so we'll go to the auth server we will edit it and we see the scope doh dot cookie dot mixes there great we go to access policies we have the easy bake oven policy and this is for the client and let's check out the easy bake oven policy rule it'll say okay um if this and it targets the easy bake oven client so if the client requests doh dot cookie dot mix we will grant the token for five minutes awesome perfect that's what we want so now that we have our octa configured with that terraform module we should be good to go back to our application and start making some requests to verify that it works so you don't see it but i have a config file with all those credentials which i would imagine you would since you're providing your own credentials to these applications so with that being said if you remember the last request i made to the server was a post request to mix cookies and we get a 500 error code so great we know that if we have no authorization header that we are going to get denied um now what we want to do uh i have a test request file um just for ease of use i'm just gonna have it pre-typed out and we are going to make a request to the server all this should work you could see we're doing doh dot cookie dot mix we're asking for that scope we have the client config client id which if you remember from our access policy rule if it requests this scope we are good to go through the client credentials flow it's gonna get that token and then it's going to make a request to the server with mix dot cookie um with the token as the authorization header it's a bear token and then we're going to print the response just to see that it works so if we run poetry run python three test requests we should see a 200 great okay cookie dough mixed lovely love a mixed cookie dough um with the 204 status code so now you're saying okay but that could just be because it only has authorization header how do i know that this bear token actually works um so what we can do is just take this out and then we can go ahead and make that same request and we will get a 500 great message error status code 500 so great we see that the token generation works and that we can send a valid token um but let's say we send an invalid token um let's change this to a stf 1234 courty let's see what happens then awesome invalid token we get a status code 500 error obviously if you have a more built out application you can kind of custom tailor your error messages or something to say invalid token but yeah so all the octa resources are set up ready to go for your application's authorization and it was just as simple as making a terraform apply um in your octa terraform repository now that we know this works let's go over what we saw today so a couple things we saw today that hopefully peaked your interest or would make you want to dive in more are that one um all this was done by one person uh you we didn't even have to log into octa to verify that that configuration was there if we have the terraform repository set up correctly we are good to go with just a pull request and merge it into main and since you provided your own credentials you probably had all of your own um access policy setup on those secrets so literally all you had to do that was left from developing your application was just getting all the octa resources set up how how much easier could that be we didn't have to wait for communications between teams the possibility of someone entering something in error and also we have that repository set up if you needed to add another scope it was as simple as adding the name in the description of the scope so if you wanted to add like maybe cookie dot bake um as a scope and a cookie dot and a cookie underscore bake route to your application um it's as simple as developing the application on your side and then making a four line code pull request adding that scope thanks for tuning in everybody i hope you enjoyed the content let me know if you have any questions or want to talk about this some more thanks


In this video, I'm going to talk about the midpoint formula and go through a couple of examples that uses the midpoint formula The first example that I'm going to do is just a simple, okay, find the midpoint between two coordinates example and the second one that I have over here is Actually, you know what one quartet is and you know what the midpoint is But you want to find what the other quartet is so this one over here is a little bit more difficult But we'll start with the easy stuff and then move over to the harder examples All right. So the first thing I'm actually going to write down is the the midpoint formula Right off the bat. So usually when we do midpoint formula, we write big M equals parentheses X1 plus x2 over Two okay, so this is x sub 1 what I mean by sub We write a 1 or a 2 below. It's not an exponent. A lot of students get that get that wrong. It's not an exponent It's just a label. It's basically what this means is this is the first x. This is the second x That's all that really means. Anyway, so you take your x's add them together divide by two and then also same thing for the y take y1 plus y2 and You divide by two add them together divide by two now There's another thing in math that you use if you take two numbers divide by two. That's also known as the average So during this during this video. I'm gonna say that a lot the average of the x's right here and the average of the y's That's what's used to find the midpoint. Okay, so this doesn't look like a normal formula that we that we've used in the past We have parentheses. We got commas and all sorts of stuff like that Basically what this is is we got a formula right here to find out what the x coordinate is and we got a formula right here to Find out what the y coordinate is that's what we use to find midpoint So that's why it looks a little bit different from the rest of them. Anyway, all right So what we want to do is we want to find the coordinates of the midpoint of Segment pq with n points p is negative eight three and q is negative two seven Okay, so what I want to do is I just want to use the midpoint formula here So my midpoint again, we usually say that a midpoint is m a little mistake that I made here Actually shouldn't do that. It's not m equals. It's simply just m midpoint Okay, you could probably put equals there, but it doesn't make much of a difference But anyway, I won't put an equal sign there m. So I want to take my x coordinates Add them together divide by two take the average of the x's and what I want to do is I want to take the average of the y's Okay, so now what I need to do is I need to take these numbers negative eight three and negative two seven and plug them Into the right spot now. This is where it gets a little bit tricky Make sure that you plug the x's in where they're supposed to go and the y's in where they're supposed to go Just don't mix them up So for p we have an x of negative eight and for q we have a negative two So for my midpoint, it's going to be negative eight plus and negative two divided by two And for the y's I have a y of three and a y of seven So we're gonna have three plus seven divided by two just getting just the average of the numbers All right, so eight I'm gonna do this all at once negative eight plus negative two two negative numbers We're gonna add to get a bigger bigger negative number. So this is negative ten divided by two is negative five So I know what the x coordinates Of my midpoint is it is negative five and then over here three plus seven divided by two Three plus seven is ten ten divided by two is five. Okay positive five So my midpoint is negative five five. So that's the point that's halfway in between these two coordinates All right, so again, that's using the midpoint formula pretty simple. Just make sure you plug in the points where they're supposed to go all right, so Now let's do this next problem This one's a little bit more difficult the difficulty level between the first and the second problem here is is pretty steep Okay, so stick with me here m is the midpoint m is the midpoint of the segment x y So m is in the middle x has a coordinates of two seven case We're just like last time and m has a coordinates of six one. Okay, so this is where it's a little bit different We know what x is it's two seven and we know that the point in the middle is going to be six one It's a little bit different find the coordinates of y so now we're finding the coordinates on the outside So it kind of looks like this if you don't have a grid you don't have a graph with you Okay, so here's x here's m here's y we know that X is two seven. This is a very bad drawing. This is not very accurate drawing, but it gives us Kind of an example of what's going on. So x is two seven m is six one, but we don't know We don't know bad Question marks there. We don't know what y is so that's what we're here to find out Okay, alright, so we know where the middle is we know what the first point is we need to find the second point Okay Now what we're going to do is even though this problem is a lot different We're still going to use the midpoint formula just like the last problem We're still going to use the midpoint formula to start off. So my m is Eek not equal don't use the equal get rid of that is x1 plus x2 over 2 Y1 plus y2 over 2 Okay, now I'm going to plug in the things that I know I'm going to plug in the things that I know now This is where it's going to look a lot different from the previous problem but stick with me here now The thing is this part right here of m this middle point. We already know what that is We know it's six this piece right here We know that the coordinates of m are six one this piece We already know what the answer to is and we and x coordinate x coordinate those two We actually know what one of those already is if we look at our x coordinate Two so we actually know pieces here. So this is what it's going to look like when you solve these type of problems Two is one of the x's that we know the other x. We don't know That's one of these ones up here. We don't know okay So I'm just going to leave it as x2 divided by 2 but the thing is I know what the end results going to be So what I'm going to do is this piece is going to be equal to Six Now again, that looks very different from what we did over here But again, it's two different types of problems So again the formula looks the same that we're going to use but the method of solving is going to be a little bit different Okay, so to go over this once more M where do you know what the x coordinate is going to be it's going to be six So we know what the end results going to be and we know what one of the x coordinates is We know that it is two But we don't know what the other x coordinate is okay. That's why up here We don't know what that is so that is how that is why we set it up the way that we do okay Now the y portion over here in the second part is going to be set up the exact same way so now I know what one of the Y coordinates is it's seven Plus y2 Okay, I don't know what the other y-cord it is that's up over here I don't know what it is and divided by two and I know that eventually it's going to equal One I know eventually it's going to equal one So now what I have here is I actually have two equations that I need to solve To figure out what this x-cord it is and to figure out what this y-cord it is Okay, I got two equations to solve and both these equations are going to be two-step equations So I'm going to try to do all my work right here if I have space for it Okay, so now what I'm going to do with this portion of it If I want to solve for this variable here, I need to get rid of this to that's dividing So I need to multiply both sides by two. So 2x nope. Nope. Why am I using x? Don't use x 2 plus x sub 2 Equals 12 Multiply times 2 on both sides gets rid of the divide by 2 and then I got to multiply the 6 times 2 which is 12 And then get rid of this 2 over here. So I got to subtract it over x 2 is equal to 10 And we'll put my parentheses around that. I Don't necessarily need to put parentheses around that let's not do that save some space here okay So now that x 2 x sub 2 that tells me what the second x coordinate is supposed to be it's supposed to be 10 Okay, now I'm gonna come over here do the same thing get rid of this 2 to get rid of this 2 I got to multiply times 2 on both sides. Okay 7 plus y 2 Equals 2 if I multiply times 2 on this side It just gets rid of the divide by 2 if I multiply times 2 on this side 1 times 2 is going to be 2 Okay, take the 7 subtract it over to the other side y 2 is equal to this is 2 minus 7 is going to be a negative 5 All right, so now what I have here is I have what the second y coordinate is supposed to be I have what the second x coordinate is supposed to be and those represent this Point up here this y that's supposed to be on the edge So this tells me that my y coordinate is 10 negative 5 That's my answer Again the difficulty level of this type of problem is much higher than what the first one was over here I just keep that in mind with this you might have to wash that a couple of times to get all that The biggest struggle is to get from the first line here to the second because now we got these equals in here That's a little bit different. Okay, but you might have to watch this again to fully understand Fully understand what's going on All right, that is a couple of examples of the midpoint formula. Hopefully these will help Just make sure slow down take your time. Make sure you write out Make sure you write out the formulas to begin with so that you know where the numbers are supposed to go I just don't throw numbers in there willy-nilly You got to make sure I have some organizations this anyway. Hope these are a couple of examples out


Now, the Niger Delta Development Commission, NDDC Commissioner, representing Imosted Keegan Uche, who has promised to provide all rich communities with impactful development projects. Speaking in ORE during a Youth and Women Empowerment Summit, he said the commitment of the NDDC to fast-track the development of the Niger Delta region is second to none, reassuring that the commission would not relent in discharging these responsibilities. Meanwhile, the umbrella youth body of the commission, known as Niger Delta Youth Movement, has accused the NDDC, Evil Commission of Investing Funds meant for the people as Christmas packages. Before the LTC period, money was released to him to the tune of 100 million and 330 bags of racks for the youth as a form of palliative. It is surprising that he called his chronics, formed so many youth bodies, who does not exist. I don't see any of you, if you are there, you will see so many of those organizations and you have been a reporter for a very long time, you have not seen any of them within your zone. He just created those things to embezzle that money meant for the youth. And that money from the proper population with logistics, the money is 150 million Naira with logistics, as in people that are coming to carry this thing, transport and everything, but the main son is 100 million, logistics and everything is 50 million, which amount to 150 million and with 330 bags of racks, all he is doing is just to create an avenue to embezzle that money and we are aware of that. That's why you did not see anybody from NDYM in that he is submitted today. Hello, hope you enjoyed the news. Please do subscribe to our YouTube channel and don't forget to hit the notification button so you get notified about fresh news updates.


I want to start a series today that will be called Answer the Call in light of going into the fall, going back to school we want to kind of refresh our mind a little bit of what is the calling of a Christian on this earth what does God call us to do? A lot of times we call God but it's God who calls us also and we love when God picks up the phone and answers every prayer God also loves when you pick up your phone and answer his request mmm that's a mic drop right there and so but today we're gonna focus on that if you have your Bible I'm gonna open to Matthew chapter 4 verse 19 and 20 and it says the following and he said to them to the disciples follow me and I will make you fishers of men they immediately left their nets and followed him someone say amen so Jesus calls his disciples he says follow me and I will make you fishers of men the Bible says and immediately they forsook their nets and they followed him now in the beginning I just want to lay a little foundation to say this there is a general calling of God on the life of every Christian and each Christian has a specific calling that's in the context of the general calling and many times people always ask about things like what does God want me to do with my life where does God want me to be involved in in the church and in the society and I think God really doesn't mind what you do whether it's in the church or in the society that's why Paul says whatever you do do it unto the Lord that's why Jesus says a wise man built his house on the rock Jesus did not say what kind of a house a wise man should build he was saying make sure whatever he builds whether a skyscraper a duplex or a foreplex or a condo or a trailer make sure it's on the right foundation so God doesn't mind whether you go into politics or you go into the working for the government or you go working you know for a daycare or you're going working for a fast food restaurant or you work in the ministry God does not put too much emphasis on that he puts emphasis make sure whatever you do you manifest the kingdom of heaven whatever you do that your identity is not based on your paycheck on your education on the compliments accolades and awards it's based on the blood and the Jesus Christ who is your foundation can somebody say amen let's put our hands together for the Lord your identity is in Jesus Christ whether people get healed or they don't whether people you know Jesus told the disciples when they cast out demons he says don't rejoice that demons leave when you command them your identity is not an exorcism your identity is that your name is written in the book of life whether you got promoted or demoted your identity is not based on that it's based on who you are in Jesus Christ and Jesus says that is more important than the career and the calling that you have a specific calling that you have what is the general calling for each Christian I believe it's outlined in these two verses you can write this down or you can remember these three F's it's the follow it's the forsake and it's the fish everybody say this with me say follow forsake and fish follow means Jesus you have number what calling as a Christian is not to save the world is to follow God can somebody say amen Jesus did not call disciples to preach he called them to follow he didn't call them to lead he called them to follow Jesus called you your number one calling if you want to hear what God is calling you to do and this is what he's calling you to do follow me follow me not just believe in me demons believe in tremble but this is not helping them following him means your life begins to follow him I believe that following Jesus can be outlined in two words devotion which leads to devotions devotion is your heart given to God devotions is the time you spend with God and these two things they go together following Jesus means my heart is given to Jesus my whole life is given to Jesus and as my heart is given to Jesus that is my devotion to Jesus that devotion changes and solves a lot of problems in my life and answers a lot of questions do I sleep in on Sunday? devotion decides that no I don't why because I'm devoted to Jesus do I give my tithe or do I just go buy new Jordans devotion decides that no I give that to Jesus why because Jesus is the one I'm devoted to if you are devoted to Jesus many complicated situations get sorted out quickly if your heart is devoted to Jesus can somebody say amen? out of devotion to Jesus you build your devotions devotions is the time you spend with the Lord whether it's reading three chapters a day one chapter a day praying 15 minutes a day to an hour a day whatever the time that you spend with the Lord that is devotions but devotion is a heart and life given to God when I was younger I thought that devotions are very important and I still believe in that but devotions don't necessarily signify your devotion to God for example there are times I don't spend time with my wife like yesterday I saw her at 6 in the morning and then I saw her at 10 in the evening she had already some things planned with some of the leaders in the church and I went to preach now when I did not spend time and a day with my wife I did not get divorced I didn't remove my ring by 6 p.m. and said because I haven't seen my wife I'm no longer married when last weekend we went for three days and I was in Kansas City see when I was in Kansas City and I was not there with my wife I did not lose my marriage because I lost my fellowship many people live in guilt and shame if they miss a day or two of prayer and they begin to guilt trip themselves and they say my relationship with God is broken no it's your fellowship with God that is right now going through trials but your relationship with God is not based on the time you spent on the life you gave I don't remove my ring if I did not see my wife for a day or for a two I am still married and I don't feel guilty if I don't spend time with her but I do miss her and God doesn't want you to feel guilty if your life got busy you're a mother you're a businessman or you're in something in college and you maybe a day went without prayer you know maybe a week went without prayer and you look at yourself and you say my relationship with God is no good no no no your fellowship with God you need to miss God not feel guilty but miss God because God wants you to follow Him which means devotion a heart given to the Lord and devotions at times spent with the Lord now if your devotions has not happened for three months when you do need to see a marriage counselor if you didn't spend three months with your wife and you don't want her then now we have a marriage problem can somebody say amen and so following Jesus is number one calling of a Christian when you follow Jesus the second calling that will happen to you and I if you follow Jesus is you will forsake some things you will have to forsake who you follow determines what you forsake who you follow determines what you forsake if you follow Hollywood you'll forsake the church if you follow Netflix you'll forsake your service if you follow other things you will forsake the Bible but if you follow Holy Spirit you'll forsake your sin see Jesus didn't call disciples and say drop your drop your nets drop your boat he says follow me and they recognize we can't drag this with us we're gonna have to forsake this if we're gonna follow Him and so my message to you today is not forsake your sin my message is this follow Jesus and you'll quickly find out you can't serve the devil and follow Jesus at the same time one is gonna have to be let go because somebody see a man Lot's wife quickly found out if you wanna follow God and you're still holding on to your past you will not be a people of salt you become a pillar of salt you know what pillars pillars don't move there's a lot of Christians there is no movement in their life their spiritual life is as dead as Lazarus no life there whatsoever they feel like something is missing and this is what they say about their life I am stuck yeah Lot's wife can relate to you because God didn't call you to be a monument He called you to be a movement there's one thing people say about our church all the time our church is more than just a building it's a movement you walk in and there's stuff that is happening why is there stuff happening? it's because when we seek Jesus in prayer and fasting when we follow and then we continue to forsake our tradition we forsake the past we forsake the good old days and we press into the future God will grant us to see a movement instead of become satisfied to be a monument if you found your life is spiritually stuck are you looking back? are you looking to your past? are you dragging some nets and some bows? why do you need the boat if the one you follow walks on water? why do you need to drag your past sin? why do you need to drag your past? you will be pushed you'll be pulled if you don't follow Jesus you don't need to forsake anything why forsake your boat if you don't plan to follow the Messiah? sometimes people come up to me and they say you know how do I tell my homosexual friend they need to be straight and I said why? I said what do you mean why? then everybody I'm like if a person doesn't follow Jesus if a person did not give their life to Jesus Christ there is no need to forsake their sinful ways if they're going to hell let them at least enjoy the journey you have no business telling people to subscribe to rules they didn't subscribe to the Lord they shouldn't be going around preaching you're not going to, we're not preaching you know heterosexual Christianity we are preaching first Jesus and when you follow Jesus then he will, his word will begin to change your life or you will begin to forsake certain things you shouldn't be forsaking your sin if you're not planning to follow Jesus why go to hell in suffering? at least live it up so when you're there you know why you're there I had this conversation with a young man in the lobby in our church he came to me and he said Vlad is it wrong for me to smoke? I said for you no and he said and I knew this young man so I'm not usually like the harsh with people okay but I know him he's just a troubled kid but he didn't surrender his life to the Lord he comes to me and he says why is it not wrong?  I'm like see you're not following Jesus you don't have to do what we're doing I'm like because I follow Jesus I can't drag my stuff but you don't follow him I'm like bro live it up he looked at me with this big eyes he said oh MG through few little colorful words I can't believe you're saying this and I was like listen you don't go to heaven because you don't smoke I'm like there are a lot of people in hell who are non-smokers I'm like that's not what saves you it's not being straight against you to heaven it's not being clean to get you to heaven it's Jesus and when you follow Jesus you will then forsake that's why don't focus on forsaking focus on following and forsaking will come easy I didn't focus on forsaking my single life or my parents I fell in love with my wife and leaving my parents was a joy until I learned that you have to pay bills then I started to miss them but if you are there trying to convince yourself how you're gonna have to leave your sinful past you don't have to if you don't have no one to follow who you follow determines what you forsake if you follow Jesus you will forsake maybe not right away but you will forsake your whole life if you follow the devil you will forsake Jesus it's just a matter of time and I want you to see the third the third general calling is not only we follow not only we forsake but I want you to see this Jesus says I will make you fishers of man what touches me is Jesus didn't promise to make us into good people the world is expecting Christians to be perfect and Jesus didn't say I will make you perfect he said I'll make you fishers of man that tells me that Jesus looks in the scope of eternity and he sees the importance of seeing people come to know him and miss eternity in hell is more important than make Christians into perfect people we are perfected as Christians but only Jesus is perfect and he promises if you follow him and you forsake sin that something will be about you and guys and this is the challenge that we see in our generation Jesus didn't say if you follow me and forsake sin you will become righteous you will become holier than thou he says you will be concerned with other people who don't know me that tells me if in my heart my heart does not beat for souls if my life is not intentional about seeing people come to know Jesus I have the audacity based on the word of God to question the genuineness of my following Jesus if you can quote scriptures and you pray a lot and you fast a lot but your life does not have a concern and intention to see people come to know Jesus I have the right to question that genuineness of your following Jesus Jesus doesn't want you make you into a religious nut he's looking for spiritual fruit and the spiritual fruit is intentionality about people who don't know Jesus that's why I'm asking if you're believing in Jesus if you're following Jesus if you've been forsaking your old ways and we have a fall season coming up that you take the step because Jesus wants to make you into a fisher of man you might not be able to you know go fish the whole ocean but Jesus wants to be a person that goes into the world and pulls the hurting people out of the world and brings them to Jesus Christ and how many of us know you don't sit in your house and pray for the fish to come in your house you go where the fish are at and that's exactly why these host groups are so important because you go to where people are at not hoping for them to come where you are at amen the first that I want to read to you in continuation of this is Joshua 4.8 it says the following but my fellow Israelites who went up with me made the hearts of people melt in fear I however follow the Lord somebody say followed I follow the Lord my God wholeheartedly so on that day Moses swore to me the land on which your feet have walked will be your inheritance and your children forever because you have followed the Lord my God wholeheartedly I want you to see something in the scripture Joshua and Caleb they followed God and because Caleb followed God in general he followed God God did not lead him into a graveyard he led him to the promised land and after he followed God generally God specifically showed him his peace of pie in the promised land, the mountain many people are asking God to reveal to them specific calling when they haven't fulfilled their general calling from God it's like going to CBC without GED you're going to CBC and you say hey I want to get my bachelors and they're like do you have a GED I don't care about GED I need a bachelors did you finish your high school I don't care about high school is for losers I need a bachelors and what will they tell you they say no no you can't do it like that you can't just go and into CBC you need to have that foundation and when you follow Jesus forsake your sin and you focus on getting people saved God will begin to reveal to you your mountain in the promised land your specific calling will become clear when your general calling becomes your goal your specific calling will become clear when your general calling you become busy about it I love the fact that following Jesus didn't bring Joshua following God didn't bring Joshua into nowhere it brought him to the promised land it gave him a mountain and it gave him a blessing for the rest of the generation means talking about generational blessing when you follow Jesus it's not going to make you more religious it will bring a blessing on your life I'm not saying stuff because you can get stuff without blessing but if you get blessing and stuff comes in the stuff doesn't become the main idol the stuff becomes something you enjoy because God is someone you worship because somebody say amen now the part of this message that I want to focus on toward the end right now is this is Caleb Caleb the word Caleb in the Bible original word actually means dog so if you ever call your child Caleb you just call them a dog Caleb actually means a dog his parents called him a dog I think they got too many dogs in the house they called him a dog now I want you to see something in Caleb's life that is very similar to the dog now America is the country that has the most dogs per capita we are a dog loving country I want to share with you five lessons you will learn from the dog concerning following Jesus the first lesson I want you to write down is this is the dog is always near his master there's something that I've seen about a dog and something you see about Caleb as God says he fully followed me a dog dog's number one joy is to be near his master he can play with the toy this morning as the dog was eating started to eat the moment Lana passes by drops the food and literally the whole idea is to follow the master the dog's number one quality is this is that he always follows and is near his master when we release the dog where he sits is always by the door my wife's room his number one joy is to be around his master could you say something about that yeah it's very interesting because if I get up from the couch he will get up and go after me even if he's very tired in the evening his eyes get so red and he barely moves for a puppy he has to be tired to be like that but if I get up from the couch he will get up and follow me if I go to my room because he's not allowed there he sits by the door and waits for me until I come out he knows this the garage opener now and so when the garage opener begins to open that's it stands by the garage door and I scream a little I bring I bribe him with sweets and with other things which we cannot do he won't move his head just a second because the owner is coming his obsession is not toys his obsession is not the tricks his obsession is not even playing his obsession is always one it's his owner and that's why God said to Joshua he says you wholly followed me you were like a dog you were interested in me I want to tell you something guys is this is before this little creature came into our house this little creature the first question I asked my wife is this number one can you afford him? number two can you afford to maintain him? number three do you have the time because I'm like from what I hear these guys need time and she says yes and there was the decision that was made see I want to tell you something about God is that God is the one who is fascinated about you you existed in God's mind before you existed in your mother's womb God decided to create you he looked at his heaven schedule and he says will I have the time will I have the resources to be with these humans and God is fascinated about you but see because God created you God wants you to have a desire and have him as your obsession that's why God came to Abraham and he says I am your exceedingly great reward that's what David says God you're my hiding place you're my refuge God wants to be your number one passion see sometimes we unlike a dog we will leave God if somebody gives us a bone if you give us a small toy and we will abandon the presence of God but God wants you to learn something today this is your number one calling is this to make Jesus your obsession one of the reasons this dog doesn't work is because his number one passion is his master and the master whom he worships takes care of all his needs his organic food his shots his haircut who happens to be a lot more three times more expensive than mine every single thing is provided for this dog and the only thing this dog does enjoys the company of his master actually he wasn't hired for work he was brought in for pleasure you were created for God's pleasure you were created because God enjoys your presence see we say I love your presence God says I love yours more God enjoys your presence God enjoys you he didn't create you some people say God created us because he needed somebody to worship and really God created you because he wanted you because he found pleasure in you and what I want you to learn is your number one calling today is to enjoy God is to fellowship with God and to be near him to me this four-legged creature is just a reminder if he can enjoy somebody as boring as me how much more I can enjoy someone fascinating as God can somebody say amen come on let's put our hands together for the Lord number two is what my wife already has mentioned is dog will go where you go not only Caleb was fascinated with God but Caleb did not follow the promised land Caleb followed the Lord and when he did not enter the promised land and end up in a wilderness for 40 years because of some naysayers you don't see Caleb dropping the mic and say God why do I have to go and suffer for other people's mistakes Caleb says my passion is not the promised land my passion is the presence of the God who promised the land see God wants you to be the person that goes after him where he goes and if you have to go through the valley you go through the valley because God is there with you if you are on a mountain top you go in on a mountain top because God is with you see many of us we are chasing our dream Caleb was chasing the presence because if you're chasing your dream you will quit when it gets hard when you're chasing the presence when things get hard you're never alone you're always with him and God will always bring you to your dream that's why God says he'll fulfill the desires of your heart but see your number one passion has to be his presence because only then your desires can be trusted your desires can be trusted if God is not your passion do you go where he goes when it's hard or are you the person who leaves God when things get easy are you the person who has your instinct is this you're really chasing a breakthrough you know many of us in here the first cars that many of us gave to people we stopped seeing them in church when they got a blessing of a car many of us here today we experienced that many people they come to know God they really are not after God they're really after God because it hurts and the moment it stops hurting and you no longer see them in prayer you no longer see them in anything God doesn't want you to follow success or follow him in failure God wants you to follow him whether you're successful or not successful Jesus didn't say follow me until I make you popular he said follow me through the valley follow me through the cross follow me through the resurrection follow me when you're famous follow me when you're not follow me not your dream but me I will get you to your dream and I will keep you in your dream but I am the one you follow not your dream I know the popular teaching by Oprah Winfrey follow your heart the Bible says don't trust your heart because your heart is wicked above all things you follow God with your heart don't ever follow your heart it's like following a wheelbarrow you're the one leading it follow the Lord with your heart can somebody say amen? the third lesson we learned from the dog that applies to following God is dogs walk by a scent not his sight he can say something about that there's very interesting statistics that we found that dog's sense of smell is from one thousand to ten million times stronger than humans so from one thousand to ten million times his nose can detect from one thousand times to ten million times better than your nose trust his nose yep he has from one hundred twenty-five million to three hundred million sand glands compared to five million for humans only so we have five he has one twenty three hundred million up to three hundred glands in his nose yep and the last one is the part of the brain that controls dog's smell is forty times larger than human one so one thing we probably have seen this dogs sniff that's why they are in the airports that's why they detect heroin that's why you can look at the bag and you will never see drugs a dog doesn't have to see it he sniffs it it's interesting because they went into the promised land and the ten spies saw giants joshua sniffed victory how did he sniff that victory because see when you love the presence of God and you follow God you become like God and God doesn't move is not moved by what he sees God has a spirit and through his spirit what happens is that God looks at things through his spirit and so you begin to look like Moses he looks at Egypt and he sees Egypt is popular but see Moses is not moved by his side Moses has a scent the Bible says he saw something in his spirit that Egypt is going to collapse and he says I'm walking away from this this is going to go down where did he see that he sniffed it when you walk closer to God one thing that's going to happen about you is that your spiritual senses are going to be so much stronger than your physical side other people will see a medical doctor you will see a great physician other people will see a calamity what you are going to see you are going to see a victory in that thing and you will say you are crazy you said the problem is I've been hanging out with my Alpha and it robbed off on me and he has sharpened my spiritual senses and that's why the Bible says a righteous man doesn't live by his side he walks by faith like the joke says poke your neighbor in your eye in his eye and tell him that we live by side by faith but don't do that you are as a Christian you live by your senses by your spirit man instead of by your side you can somebody say amen and number three number four I want you to write this down dog enjoys small pleasures in life because he doesn't stay mad for more than 30 seconds you can hit your dog in the face you can hit him in the back and I've done all kinds of already when he would bite me and I was like just hit him push him off he would go walk off you can see he's upset only for five seconds you come around and you put him a boner thinking which theological school he went through to learn the fruit of the spirit of quick forgiveness many of us literally something happened to us and for 20 years mad face sour face you're still reliving that no wonder you can't enjoy your life because you harbor unforgiveness instead of being quick to forgive your happiness is your choice and it's dependent solely on your ability to let go of what people done against you Jesus taught his disciples if they reject you he didn't say create a book compile on your feet he says learn to shake things off because your peace he says let it come back to you their dirt let it stay with them with us is the opposite we collect their dirt and let him take our peace if somebody stole your peace take it back from them your ability to enjoy life is not dependent on your circumstances the dog doesn't care about the stock market he doesn't walk around being afraid where his next food is gonna come the only thing he does is this wigs his tail puts his tongue out walks around the happiest being ever and the problem is this without education without a job without so many other things happiness is a choice and is dependent on your ability to let go of the offense and the last thing we're gonna come to prayer is dogs can be trained a potential of every dog is within him and that potential can be pulled out by this process called training dogs have the brain size of a two-deer toddler but they can be trained for example this sheep that you just witnessed he doesn't do he doesn't have a lot of training but he knows that he can party in the house so in the morning at six o'clock he will squeak to take him outside after outside he goes back in he knows how to open doors he knows how to sit down but that's about it if you train him he can do a lot of tricks he can do a lot of things you have to understand one thing is that because of your calling God's goal in your life is not just to pamper you God's goal is to train you and the Bible says Jesus learned obedience by the things he suffered obedience is a learned trade it's not a gift you don't get obedience you learn obedience you don't get disobedience you learn disobedience love is a skill you develop it's not a gift you receive a hate is a skill you develop it's not a gift you receive you don't become hateful you choose to become hateful by participating in the life of hate by being trained in that in Romans it says this it says that and we know that all things work together for those who love God see everything in your life is not gonna be good but if you love God there's two requirements we follow God and number two if you're called by His purpose God says this everything in your life will be used for your training if you don't love God and you're not called by God's purpose then everything in your life will always need an explanation you will be mad if some things happen that you prayed for that didn't happen but the beautiful part about being called is that even the bad things the things you don't have explanation for even the setbacks and limitation none of it ever goes in waste it is used for your training the years we went through as a church you know where we didn't see breakthrough yeah it seemed like it was a waste but it's not a waste if we have a vision because every single thing we do God uses it to train us and nothing is worse than receiving your inheritance when you're not prepared for it Prodigal son can give us a testimony when you get something you were not prepared for it doesn't last in your life King Saul couldn't endure the kingdom because he got pushed into it David got prepared into it why did Esther not lose her crown like Vashti because Esther worked for it for years before she became a queen why did Moses endure till the end of his life serving God is because for 40 years he was prepared in the wilderness why did Abraham is the father of many nations because for 25 years he was prepared for that God is not just interested to bless you he wants to prepare you to live in that blessing as somebody say man everything that happens in our life does not happen for a reason but it can be used for a purpose people who come to you if your loved one died and says it's for a reason that's not true God never intended death there is no reason but if your love God and called by his purpose he will not even waste those disappointing moments he will use them recycle them for your good they don't have to be good but he can use them for his purpose because somebody say man thank you for watching this content I hope this was a blessing to you if you're like me and you like to click on things click on this subscribe to our channel and the content will come to you every time we post it and remember the best is yet to come