First off, I'd like to acknowledge all the veterans in the room, so any of those that have served would you stand so I can recognize you. Also, are there men and women here that have veterans and their families? I'd like to acknowledge you. You know, last year I had an opportunity to come here because a good friend of mine that I've grown to love over the years.  And I love road trips, so I said yes, and I wanted to check out what this floating was. I helped her wire up her tank when she got it, so those looked pretty cool. So I came up here, little did I know when I got here that I was going to fall in love with an industry. You know, I'm coming up on 70 years old, and I've never felt younger in my life than I did when I came up here the other day, which is about a year ago. That being said, all these folks that I met up here, there was something that inspired me to what I call saddle up for another rodeo. I've already accomplished a great many things in my life, and it's all been around service to others. It started out early when I was a recovering drug addict and alcoholic. The first 17 years from my return from Vietnam after a short career as a firefighter where I got to save lives instead of taking lives, I used self-medication as a means to deal with the trauma that was stored in my pain body. And I never had a decent night's sleep in all those years except in a blackout condition. So I was hopefully lost to drugs and alcohol, along with a lot of other crazy kind of behavior that was really reckless behavior. That being said, I spent the last 29 years of my life coming up on 30, clean and sober. I no longer take medication except mostly vitamins, and I take only when it's prescribed and that's very rarely. The point that I'm trying to make is I found a way in 1986 as a result of a death experience to go on the inward journey. So for the past 17 years, I've been on this inner journey of self-examination, awareness, how it is I continue to do what I do. So in the slide that I put up here, it's a real simple question. Who am I? Am I the 19-year-old guy that got drafted and went off to Vietnam only to find out that if I didn't do what I had to do, I would be dead? This is the first time in public I've wore this rack outside of a veteran community. And I do that to acknowledge you and the courage that you show me when I'm here, when I was here last time and when I'm here today, that you have the right stuff to make a difference. I'm here to provide an opportunity for you in the float industry to change health care in our country, because if we don't get our country back, we won't have much to work for. We've got a mess on our hands. The young men and women that are coming back don't have a chance. In Vietnam, we made work. We made it do. We're recon. We make things happen. When I came back, I didn't have any help. I went to the VA in 1981 prior to the diagnosis of pro-stimatic stress disorder because I got in a bar room fight and I was going to prison.   Just that simple. I'm personally responsible for the death of thousands of human beings because I was a forward auxiliary. I directed artillery.  The rack I wear is not because I'm anything special. It's because a lot of men that loved me gave their life so I could be here today. Until you've walked into another man's shoes, you're not entitled to your opinion. I work with veterans. I work with the level of the soul. I work with hard energy. I'm a healer of broken souls. My combat experience as a result of 85 combat missions back in the day when there were no rules of engagement gives me the credibility in a front of a room full of broken veterans. They follow me because I got their back. I speak for them today because they cannot speak for themselves because of what you might think. So we're here today as a team from internal wisdom pathways to purpose, not only to acknowledge the float industry for the incredible contribution, the capacity that you have to make a difference at a quantum level because who we are as one makes a difference.  I'm tired of surviving. I want to thrive in my life.  You know, I went to war at 19 not because I had a choice. I went to war because I was drafted. These men and women go because they choose to go. And I guarantee you when I went to the VA in 2005 having retired for the third time, financially very successful, I walked into the VA to get some med help with health care because I completed my third wife, my marriage, and I had no health insurance. And for nine months I sat in the waiting rooms at the VA hospitals. And I watched the sadness and despair in these young men and women, a lot of them with emotional and physical trauma that is beyond my imagination. Back in my day, they put us in bags, put a tag on her toe, and that was it. Okay? These kids are coming home. And there's no real care being offered despite the efforts of the VA. I work with the VA on a very large scale. I'm recon. I'm just a guy that went to war. And I'm a guy that came back. And I was afraid of what you'd think of me for what I'd done. So I built an imagination that kept you from me so that you couldn't hurt me. When you go to war and you step outside the reliance, outside downrange, you only got your buddy. There's nothing else. And when it comes down to them, or you, you choose. So I stand here today to choose you as part of the possibility for us to take back using the float industry as a means, like the young man that was for me. I mean, that's just, it gives me such hope and confidence that there's still an opportunity, there's still time for us to turn this around. As one, as a team to let go of our differences and look for our similarities in such a way that we can open our hearts and speak the language of the heart. If every day and every moment of time, your float experience that you have in a pod, a tank, a room, meditation along the river doesn't matter where. But if every moment of every day could be that way, look at the world we would live in. The world of possibilities where we support and honor and respect one another for who we are and who we're not. The industry, I floated. I took 90 days. I left here. I said, I want to do 90 days. 90 minutes, 90 days. See what happens. That's just a lay of eights off. Do 90 meetings, 90 days, you'll never drink again. Okay, I'll try it. I haven't had a drink since, so obviously it worked. So I said, 90 meetings, 90 days. So what I do, I go back to the shelves. Okay, we're going to do 90 meetings, 90 days, about 45 days later. Thanks to Dave Seafelt, wherever he's at, he came up with this crazy idea it's the one, check this out. I'll bring it down and show it to you and we'll figure it out. Well, what do I do? Good alcoholic. I reverse engineer it. And actually, you know, we got the revival lounge. He's like, wow. And it was all as a possibility because if you follow your passion and you step into the possibility without experience of what other people think, we can change healthcare in this country. So for those of you that are up to a challenge, I would invite you to stop by and see us because we're looking to raise an army. Not only to self-help our veterans, but to take our country back, to be responsible for our healthcare, to take responsibility instead of being a victim. You know, I know the VA really well. They tried their very, very best, but it isn't going to come from the head, it will only come from the heart. And when you generate from the heart, you must be willing to risk being hurt. And I got a big heart. So if you want to play the game with us, stop by and see us. Thank you. And I want to acknowledge you for all the service that you provide. Thank you.


Hello and welcome to the Grand Line Review, your source for everything One Piece. Last time in the Land of Top 5, we performed an examination of some of the best kings in the series. However, while putting together that list, it became incredibly apparent to me that the world of One Piece is also filled with a lot of how shall we say, less than great kings. So in the interest of balance, we now need to throw the spotlight of shame onto these rubbish royals. The criteria for this list is exactly the same as the former list, meaning that one needs to be considered a king in more than just name alone, generally implying that you must be officially recognized as a king of a particular nation. So this means no pirate king or sniper king, not that they'd make it onto this particular list anyway. Hope with that out of the way, let's begin. Welcome to the Top 5 Worst Kings in One Piece. Better known as the Supreme Commander rather than King I suppose, Judge serves as the monarch of the German Kingdom. This kingdom exists mainly to support its military branch known as the German 66, and is heavily involved in mercenary activities, as well as highly proficient scientific research, most of which also goes towards specializing in warfare. As a king, Judge has only one care in the world and that is strength. Judge is known to easily cast those aside who are deemed too weak to serve, including his own son, Vince Moxange. To this effort, Judge has even gone to the lengths of developing disposable clone warriors to use in battle, which might sound slightly more humane at first, but brings a huge ethical debate to the table, one that Judge has no concern with. In conclusion, the German Kingdom exists to serve the interest of the Vince Mox family alone, and that sure as hell isn't a king that I want to serve. This unnamed king lived over 400 years ago during the era of Nolan and Calgara, and the world has quite a good memory of him, with his legacy being that of the man who executed via Nolan, serving some much needed justice. However, in reality, this was all a propaganda ploy by the king in order to cover up his own selfish anger. When Nolan returned to Livneel from one of his grandline voyages, he made the mistake of telling the king about Chandra, the city of gold, and the king of Livneel being the greedy prick he is demanded to be taken to the city, a voyage which cost countless amounts of sailors and soldiers, none of which the king cared about anyway though. When they arrived to discover nothing, the enraged king shot Nolan in the back and had him publicly executed for trying to make a fool of him. So selfish, check. No regard for the lives of your people, check, and willing to sacrifice innocent citizens for the sake of your own false pride, check. Yep, the king of Livneel more than deserves his spot on this list. This guy tends to make a lot of my worst lists, and this is no exception. Despite his title of gang, Wapol holds no qualities desirable in the leader of a nation. He is self-centered, cowardly, and completely unaware of how to manage any aspect of a country. This extends to his greater knowledge of politics as well, as he was foolish enough to attack a 10-year-old Nefertari vivi in the hopes of provoking the country of alabaster into war, a war which Wapol would have surely lost. So obviously he has no regard for the well-being of his own people, but Wapol goes a step further than that. At one stage this quote-unquote, king took the 20 most skilled doctors in the country while murdering or banishing those who wouldn't join him so that the citizens of Drum would have to grovel at his feet to receive medical attention, even for life-threatening illnesses. And that makes Wapol a very special type of bad king. Not only does he not care about the plight of his people, but he actively works to make their living conditions worse. In fact, Wapol is such a bad king that Drum Island being sacked by the Blackbeard Pirates was a more preferable outcome to the continued reign of Wapol, who fled due to his extreme cowardice. It's not often you can say the Blackbeard did the people a solid, but in this case, good job, man. Nicknamed the Heavenly Demon, Dolflamingo was the king of Dressroser for at least a decade. Now, if I told you that Dolflamingo is a former celestial dragon, then that's probably all you need to know to have him land on this list. However, we are going to go into it anyway. Like all celestial dragons, Dolflamingo is immensely arrogant and believes that the lower people of the world exist merely for his manipulation and amusement. However, unlike most of the celestial dragons, Dolflamingo actually possesses the strength to back up his ideals and lives with the belief that the strong get to make the rules. Oh, and we can't forget another one of Dolflamingo's famous ideals. The weak can't choose the way they die, which pretty much encapsulates his attitude towards those he views as less than him, which is everyone. As a result, he will use and abuse the people of Dressroser to suit his desires in a sadistic manner that puts even Wapol to shame. For example, he regularly turned his own citizens into toys and forced them to become slaves for his underground industries. In this case, the word king really should be replaced with tyrant because Dolflamingo is one of the worst of the worst, and yet somehow, we still have not come to the top of this list. Now, you might be a bit confused as to why the young king of the Goa nation could possibly be worse than most of the contenders we've gone through, but it comes down to one particularly dangerous dream. Steli's ambition in life is to become a celestial dragon, and that is a terrifying thing for your leader to wish to be. Unlike Dolflamingo, who has an innate belief in himself, Steli looks up to and intimidates the world nobles, leading directly to the pain and suffering of his own people. At the very least, the celestial dragons have the decency to live on their own in Marijua, but this man-child-boy-bugly thing has direct influence over people's lives, and the lengths he will go to in order to achieve his dream can only be described as horrific. Furthermore, most previous kings on this list have, at the very least, had some sort of strength to defend their kingdom, but Steli here is a coward of the highest order, immediately crapping his pants at the slightest sign of hostility.  And that pretty much does it for the top 5 worst kings in one piece. If you enjoyed this video, then feel free to like, favorite, or subscribe, and please do comment with your own shitty monogs. This has been the Grand Line Review, and I'll see you next time.


For the circuit Python part today, I wanted to show you how to iterate forward through a loop and then back through a loop. And in this case, to do some cool ASCII graphics, but you could apply this to anything, particularly things like Neopixel animations is a good one, sound things. Anytime you want to create an increase and a decrease running back and forth, back and forth, this will help. And it's quite simple. So all I'm importing library wise is the time library, so I can put little pauses, I can adjust my intervals. Then I have an integer variable called len for length, length of 10. So that's how many times I'm going to loop forward and then how many times I'm going to loop backward. My interval is the time period, so that's how quickly this happens. And then here you can see in my main loop, I have essentially the same type of for loop repeated twice. Notice I say for i in the range of my length, in this case 10, I'm going to print a space multiplied by i. So at first, i is going to be 0, then 1, then 2, then 3, then 4, all the way up through the end of the length of the thing. So I'm just adding spaces and then I'm also printing this little ASCII art of a dot dot and a bracket. I pause a little bit between each one so it doesn't zip by too fast. So that gives us the increase and we get out to the edge of that sort of saw wave we see. Then we're working our way backwards. We say for, again, i in the range of that length of 10, we're going to print space times the length minus i. So initially, i is 0, so it's just that length. Then the next time through, we're going to be increasing i, so we're going to take length and subtract 1 from it to 3, 4, 5, 6, 7, 8, 9 all the way through until we reach the end and then loop back through. And so this is one way you can really clearly and easily loop forward and backward through a range. And that is your circuit Python Parsec.


YouTube want that I mean She got one thousand here What do I matter in boxing I messed up, you know We got our Was echo dot yesterday You know it's an Alexa thing get good off from Amazon And she kept on I'm gonna be doing like that Alexa. How was your day actually? Everything's great Good year Alexa. Thank you Let's see what's in this box They go back I think it's how you pronounce it in ee W er That's a pretty good deal on this nothing major fancy, but it's Something I've been kind of wanting. I got it because it was cheap And I can use it Recording microphone is that it's a boom mic.  I'm liking it Don't she's waiting on you you said Alexa and she kicked on if you know goes there. How are you you want it? You know that later Now let's look at the mic the mic is in here Convincer microphone for this will work on that other mic too. I got huh. Let's just plug in putting microphone as well Let's see what goes in front Of your microphone you just set up here a little quick and I'll show it to you be an idea here as well Pretty nice-looking like and I also have another mic with this this cord will fit on and It will go in here. It's like a regular mic, but I can still use it with the stands. So pretty cool looking I don't hook it up to try it out and I'll give you an update on it later But there you go. This is an unboxing nice looking like I said, this is a this is called a windsock, but You can put this over here It also acts as a filter so Like it's when you're breathing like I am it won't pick it up in the mic That's bad. It's got noise cancellation background noise cancellation that kind of thing so And I'll just say that just get it set up and I'll give you guys the Viewing of it sometime There it is. Thanks for watching. That's another boxing video for you so I got a new tripod that the cameras on I'll show you in another video as well. I got some primer bulbs for the For the two chain cells remember I bought the three chain cells I got primer bulbs for the two they came ahead of time and Fuel lines so the one needs fuel lines as well. So I'm going to do those Maybe this week. I'll get to those or at least do one and I'll show you how to do those and Let me see. What else? Oh monkey's got something too. Don't you monkey? Yeah She's calm patience. So anyway guys, thanks for watching my unboxing videos And I'll give you an update on this Mike One of the future very future upcoming videos, so Anyway, remember check out monkey one thousand. I am sure that one thousand the myth man the legend and I'm gone For now. Well, I'll talk to you guys later. Bye. Bye


I'm Nikolai, I'm a Surgeon of Mobile Surgical Team, ICRC in South Sudan. Today we have only one patient, tomorrow we can get 100 patients. Under this permanent fighting, they need our help. One of the most dramatic days, it was the admission of 4 patients with abdominal gunshot, blood loss about 2 litres. You know that you will never get blood to compensate. You need to work very fast, you need to work very careful. At the same time, you keep in mind that you have 3 more patients waiting. We don't have always the possibility to keep the generator working 24 hours. The single source of oxygen, this is an oxygen concentrator, which needs electricity. And finally, we end up with 4 patients after laparotomy. Only because of very high professional level of anesthesiologist, all of them survive. And one of them need to be under ventilation. And this is anesthesiologist who pumped him. This was manual breathing for few hours. But the result, in fact it was excellent. We saved all of them. We almost don't have access to internet, it's just satellite phone. You definitely cannot contact with your family or friends. You are not able even to send a text message. Mostly you are busy with your job. And when you spend 12 hours in OT, for you it already doesn't matter where exactly you are going to sleep. You are happy absolutely about every place where it's more or less dry and there is no mosquito or another animals. Surgery, which we can do here, this is completely based on the basic principles of war surgery. It's not sophisticated techniques, but they are life-saving. We are not gods, but we do our best.


As we watch the news each day, many of us ask ourselves why people can't cooperate, work together for economic prosperity and security for all against war. Why can't we come together against the degradation of our environment? But in strong contrast to this, the central question in the study of human evolution is why humans are so extraordinarily cooperative as compared with many other creatures. In most primate groups, competition is the norm, but humans form vast complex systems of cooperation. Humans live out their lives in societies, and the outcomes to those social systems and our individual lives is largely a function of the nature of our interaction with others. A central question of interest across the social sciences, economics, and management is this question of how people interact with each other and structures of cooperation and conflict that emerge out of these. Of course, social interaction is a very complex phenomenon. We see people form friendships, trading partners, romantic partnerships, businesses compete in markets, countries go to war, the list of types of interaction between actors is almost endless. For thousands of years, we have searched for the answers to why humans cooperate or enter into conflict by looking at the nature of the individuals themselves. But there is another way of posing this question. Where we look at the structure of the system where an agents interact and ask how does the innate structure of that system create the emergent outcomes. The study of these systems is called game theory. Game theory is the formal study of situations of interdependence between adaptive agents and the dynamics of cooperation and competition that emerge out of this. These agents may be individual people, groups, social organizations, but they may also be biological creatures, they may be technologies. The concepts of game theory provide a language to formulate, structure, analyze, and understand strategic interactions between agents of all kind. Since its advent during the mid 20th century, game theory has become a mainstream tool for researchers in many areas, most notably economics, management studies, psychology, political science, anthropology, computer science, and biology. However, the limitations of classical game theory that developed during the mid 20th century are today well known. Thus, in this course, we will introduce you to the basics of classical game theory while making explicit the limitations of such models. We will build upon this basic understanding by then introducing you to new developments within the field such as evolutionary game theory and network game theory that try to expand this core framework. In the first section, we will take an overview of game theory. We will introduce you to the models for representing games, the different elements involved in a game, and the various factors that affect the nature and structure of a game being played. In the second section, we look at non cooperative games. Here you will be introduced to the classical tools of game theory used for studying competitive strategic interaction based around the idea of Nash equilibrium. We will illustrate the dynamics of such interactions and various formal rules for solving non cooperative games. In the third section, we turn our attention to the theme of cooperation. We start out with a general discourse on the nature of social cooperation before going on to explore these ideas within a number of popular models, such as the social dilemma, tragedy of the commons, and public goods games. Finally, talking about ways for solving social dilemmas through enabling cooperative structures. The last section of the course deals with how games play out over time as we look at evolutionary game theory. Here we talk about how game theory has been generalized to whole populations of agents interacting over time through an evolutionary process to create a constantly changing dynamic as structures of cooperation rise and fall. Finally, in this section, we will talk about the new area of network game theory that helps to model how games take place within some context that can be understood as a network of interdependencies. This course is a gentle introduction to game theory and it should be accessible to all. Unlike a more traditional course in game theory, the aim of this course will not be on the formalities of classical game theory and solving for Nash equilibrium, but instead using this modeling framework as a tool for reasoning about the real-world dynamics of cooperation and competition.


Same kind of numbers. Don't you believe this election is really over? No, I just I can't bring myself to say anything of that of that kind. I'm Call it a fixation. I have Traumatic shock created by President Dewey You know, I I'm looking for the end of it, but What are you being told as to how it's it looks in the various states at this point? well the our own pollsters keep Saying that there hasn't been much movement In the polls at all so I can say that it looks good from here, but I'm not going to go beyond that. I won't predict All seem to agree or most of them seem to agree that you won the second debate fairly convincingly Given the fact that the Louisville debate didn't go go quite as well Did you feel a lot of pressure to do well going into Kansas City? well, of course you you feel pressure about something of that kind you realize that You know that a great many people are looking and making a judgment at all the I'll tell you something about both debates though that I've I've wondered about a format of that kind Maybe in addition to the Panelists and the moderator there ought to be a couple of referees who have access to the facts because It was a debate in which someone could make an outlandish statement and and get away with it Particularly if that outlandish statement was made after it finished your rebuttal Was there a moment in that debate mr. President the second debate where you you kind of knew you had it Where you knew that you had won it You know it's The game is still going until the to the gun sounds and No, I thought in this one that I Well, I wasn't making a mistake that I made in the first one. I tried in the first one to Everything that I'd heard that I knew was not factual. I tried to rebut it and and What that did was suddenly put me into a kind of He was calling the shots in that I was responding to everything he'd said in even neglecting at that point some of the questions asked of me and I Just realized that But because there was no referee to say well, he's right and you were wrong I didn't get any credit for the fact that I corrected some misstatements there You were obviously expecting that question about age. Where did you get that one liner? No, that just That just came out Were you concerned at any point that age might become a dominant issue in this campaign Not really they've tried for so long So many years back to make it an issue and I Besides I don't I don't feel that old Debates now seem to be institutionalized. Do you think that's a good idea? Do you think the American public is you gets a good glimpse into someone like yourself? Through the debate format. No, I really don't I Have to I have to wonder if they serve a purpose take look at this situation now here to two of us I have been in government now 12 years and certainly In a form of public life and public speaking and so forth for longer than that He has been in government around 16 years or so in the Senate and the vice president We've got records our positions on things Certainly are available If not already known by people and then to suddenly say well now in 90 minutes We're gonna have a back-and-forth answering some questions here in front of the people and and this may be is going to decide the outcome and I I'm not enthusiastic about it So you would prefer that they not be institutionalized that that they don't become a standard ritual of presidential campaigns No, I think we've I think we've gone far enough with regard to Controls of campaigning and so forth to the point that pretty soon it's It's going to be a routine rather than It's up to the individual to go out there and do what they think is necessary to What would you say to the comment that it's the issues are really irrelevant in these debates and that it's the man's style That really wins it one way or the other and you have certainly benefited from that Assessment well, I would have to say this too in I think some of the journalists themselves your colleagues have remarked about 90 minutes that based on style or Something of this kind a decision is to be made about who should hold this office No, it should be Your issues your philosophy and if you've had a record your your record So so why given all this mr. President did you agree to debate if you had these sorts of reservations because I was quite sure that Very frankly that it would be made a great big issue in that I would find myself Defending against a charge of cowardice If I didn't What are your feelings about the way this campaign is evolving so far? I mean there's been some name-calling on both sides and your rhetoric has been Kind of harsh really since Kansas City Do you do you think that's the way a campaign should be played out? well, I would prefer the other kind and talking about your own record, but when finally you've reached a point that so many outright false charges have been made and Claims of and Promises campaign promises made by the other side and no attention paid to the individual's real positions are My so-called harsh rhetoric has been one of saying This is the record this is what was done and You know to vote 16 times for tax increases as a senator to vote virtually a 100% against any improvement in national defense in all those years Including being According to statements made by others opposed to even his own president when he was the vice president Who toward the end of his term? Wanted to take some steps to rebuild our defenses these are the things that I was talking about and In response to that I think the There was something of personal attacks that would be made against me Are we gonna hear more of the kind of rhetoric? Let's are we gonna hear more of the same sort of tone that we've heard from you this last week Mr. President the rest of the way or are you gonna go back to the high road towards the end? We're going to be no there'll be some of that but also We'll be talking about our own ideas and our own plans for the future But we had planned it wasn't any result of a debate or anything We had planned that as that campaign went on and that if he continued with the kind of attacks that he was making that As we got closer to the election I Was going to speak to the record I could ask you to be Walter Mondale's campaign manager though considering how far behind he is Do you think he could have done anything else but to try to attack you personally? I can't answer that. I don't I don't know I think that I Could have been more about What he intended to do and But he it was a disadvantage there since he wants to raise the people's taxes and no one wants that What you've already said mr. President, what do you think about the kind of campaign he is he has run Is there anything any other observation you'd like to make on that point? No What what do you really think of him? What what do you really think of mr. Mondale? Oh, that's I Think that's kind of irrelevant in the contest here. I believe that he's sincere I think he's honest in his views, but I think that we have two completely different philosophies and His voting record is Reveals that that he For example his belief that attacks increase is the answer to deficits when I Happen to believe that restoring the growth to the economy is Going to result in far greater revenues for the government than a tax increase Because I think it tax increases were partly responsible for the economic Chaos that we were in Government can become a drag on the economy and had been and I think has been a number of times Because of what has been the for the last half century the democratic economic policy the Growth in government spending you stop to think that Back along about the time when I was starting to vote in there that the federal government Only took a third out of the total tax dollar in the United States States and local governments took the rest now the federal government takes two-thirds and The tax is taking four times as much or more out of the dollar as was being taken in those earlier days And we've had eight recessions since World War two Mr. President I don't if it's possible for you to take yourself out of this But to look at what appears to be an electoral landslide in your favor Do you see this as a possible realigning election along the lines of FDR? I don't think anyone could say that as of now having been a member of the other party myself. I know How difficult it is to bring yourself to change it's almost like changing religions and So what I see right now, however, is a kind of a bipartisan approach in that people are crossing the line to vote because they agree more with The things that we are proposing then they do with the course that the leadership of their party has been following But whether that's going to result in a change of party. I know for a long time After I had decided that I could not follow the Policies of the Democratic leadership. I still felt an obligation to stay and try to redirect as a member of the party Redirect the party so I don't know whether It could be a realignment or not, but aren't you aren't you possibly missing an opportunity? To help to hasten that realignment, Mr. President by not concentrating your personal campaigning these last 10 days in congressional districts Your campaign said this morning that you're going to concentrate on on helping Senate candidates and vice president Bush is going to Concentrate on house house races doesn't that pass up a bit of an opportunity? Well, I've been trying to help in the remember that the difference is that when you're the incumbent You do have a job to do so campaigning is part time But what I have done and what I think probably reaches more people than say Showing up at a fundraiser or something I have I have done radio and television spots For our candidates for our incumbents who are seeking reelection have done letters for them and Will continue to do that and then every place I do go Why I have all the candidates That are Not someplace else in the stump themselves on the platform with me where I can call attention to them and Give them As much of a plug as is possible In a newsweek interview that will come out next week vice president bush has suggested that his role and presumably yours What might change in a second term I think what he's implying is that you might be might be less involved in the day-to-day activities and Over the next four years. How do you respond to that that I might be? Oh, no, I I listen I I really mean it when I say we made a new beginning, but it's only a beginning And the only reason I'm running is I want to finish the job I want to fully implement what what we started, but I also want to say this about about george He has been I think The best vice president that I certainly can ever recall in this country And he has very definitely been a part Of the administration. I have always believed I did this when I was governor and had a lieutenant governor I believe that the vice president is like the vice president executive vice president in the corporation that He's not sitting on the bench waiting to be called into the game He's in the game. What about some of the locker room rhetoric that's been in his campaign? What do you think about that? well this is a little bit like my supposed ill-timed joker When I was at the ranch and doing my own radio show um I think things that are picked up by a microphone That are on that it's unintentional of the individual's part to say them into the microphone I have little patience with people using those obviously I think all of us at some times Say some things that We wouldn't say in polite company Or get angry and if we hit our thumb with a hammer say some things that aren't to be repeated but The only time that someone should be blamed Is if they say some of those things intentionally For public dissemination Then you can question their good taste. Well, I've never had reason to ever question. George Bush's good taste and We've asked you about one vice presidential candidate. Let me ask you about About the other. How do you think mrs. Ferraro has acquitted herself as a vice presidential candidate? well I'd rather not Comment on that. I think she has to be judged by the people and On the basis of their deciding whether she has the Experience and qualifications for that job And I'll let the people make the decision. Do you have any other observations? Mr. President about about this campaign? About the course of this campaign or how does this compare? To the to the 1980 campaign any general observations along those lines? Well, you see I've only had one previous experience with running as an incumbent and that was my second term as governor and It is different the believe me when you're the incumbent And maybe this was evident debates that you were asking about You were you were being assailed And challenged I have to tell you that it is easier to run as the challenger than it is as the incumbent There is that plus the time element and the fact that you can't just Lock the oval office door and go out there and say well, I'll see you in november You talk about being assailed and as I think that the temptation for an incumbent is to Retreat into what I think has been called for you a cocoon Um, how do you react to the charges that you're the most inaccessible president since Richard Nixon during watergate? And how you know how do you plan to change that at all in a second term because they aren't true And uh, all right, so I haven't had as many formal press conferences as some of the other governors have had On the other hand though I have had regional press In groups from various sections of the united states come into the white house I have had interviews like this and then I've had them with groups of the of the white house press corps and I have had a fairly regular Off the record sessions with them so that we can just sit around and I can be free to talk and they can be free to Pump what they want to know that's just for their own own thinking Of I've had groups of citizens In of various kinds and for white house luncheons and so forth from all over the country And I can't remember the exact number, but what is the number? 400 all in if you add them all together types of questions, that's That's quite a few now in toting up the formal press conferences And comparing them to previous presidents as anyone ever Compared did they ever do these other things that I've done or did they just depend on the press conference? Some people thought you were maybe a little rusty in that first debate that you hadn't Had enough give no, I was the one it was and it was my fault. I was flat I was so filled with all the things that he'd been saying That I just wanted to make sure that there wasn't A fact and figure that I Didn't have right up here in the front of my brain. No, I just had to turn and ask for the total number of those things I You know you don't keep that on the right up in front or on the tip of your tongue And I think what had happened is that I had just So filled myself with that that I knew I felt flat I think it was like what do they say about a fighter leaving his fight in the locker room I think I'd done that Those other accessible incumbents ever debated their opponents when they were 12 to 15 And they only hang around here four years, too Mr. Baker and president Ford did that No, no concede the point This is the equivalent of Richard Nixon or Lyndon Johnson debating and you deserve your your your due for that You took a risk and it worked Second term is really you've called it a new beginning. Do you anticipate any major changes in your cabinet or your white house staff? No, I haven't queried anyone or I haven't heard any reports. We know that of course the attorney general is leaving He made that plane. I can only tell you that both with regard to staff and cabinet I have always In asking people to come into the administration said, you know, for whatever time you feel you can give Never pinned anyone down as to duration And nor did I in california when I was governor Now I've heard no references of any on the part of any of them They're leaving some of them may Feel that way and that they have to get back to their own businesses or careers, whatever it might be But as far as my wanting to make any changes. No, I'm perfectly content With I think I've got a fine staff and a fine cabinet Um in broad terms if you get the mandate that everyone thinks you will from the voters in broad terms What do you want to do with it? Well, if I were president in the second term here I would want very much and do want very much to that's why i'm running to have the opportunity to continue with what we've been doing and The main overall points of our program were the reducing of the What the share that government is taking from the gross national product and which makes it a drag on the economy Further pursuing ways in which with the tax system you can make it Even more of an incentive for people and business and so forth for the economy to grow Making government more efficient bringing it up to date which it isn't in many business practices It's always stuck struck me as strange that the federal government has the highest overhead administrative overhead for delivering a service or a dollar to the people of any echelon of government or certainly of anything in the private sector and We're still whittling at the useless regulations and all let me give you an example of the type of things that can still be done we put 62 Categorical grant programs into 10 block grants for the states and local governments In doing that in giving them more authority and autonomy to Set the priorities in these programs in their own areas rather than trying to do it all from washington as if the whole country is alike and doesn't have a diversity In doing that we found that we reduced to 600 From 3 000 the number of people at the federal level that have been dealing with these programs but at the local level 885 pages of regulations were shrunk down federal regulations were shrunk down to 30 pages now More of this to go forward and then in the international scene to continue Really the drive for peace And our whole military buildup which has been Talked about so much in this campaign is only part of a dual track The other part of that dual track is arms reduction bringing the soviet union to the table And i want to pursue those two and i still want to pursue the idea of being able to Rid the world of nuclear weapons entirely I think we save save the rest for later. I just want to ask what you wrote in the time capsule Well, I finished the time capsule the part that they interrupted me You never said what you put in the letter though. No What I was what I was using it for was to illustrate That how the thought had come to me That yes, there is a future and there are people that are going to be talking about What did we do? How did we affect their lives good or bad? And it was when that Going down the coast that day and it really happened that I had that thought about golly I wonder if it's going to look like this and and with that came a whole new approach to the letter I said wait a minute. I was just going to write about things here as if those people hadn't heard about them Well Through history. They're going to know all about us And when I said this letter has got to be different than anything I had conceived of as yet So from then I of course had to write about our times But then I thought I could write about things they wouldn't know about What was our thinking about this and how did we view the future and what we were doing now as to what it might Affect them and so forth But no the part of the part of the thing that they stopped me on was when I turned to the young people and was going to say That our responsibility All of us and and then I put it my generation and those Several generations between mine and theirs the kids the responsibility we had to Turn over the right kind of a country to them And my tagline was going to be that we have a sacred responsibility To when it is their turn to hand them an america that is free in a world that is at peace And I didn't get to say it. So I've been saying it to the kids out there What is it about you that that turns these kids on on the college campuses? I mean, it's like a michael jackson rally almost well you're asking a I don't know whether you're asking an authority on that because as a governor I was in the era in which if I went to a campus the I started riot and in those days and to suddenly find This attitude and the part of young people it's I must say sometimes I I get a lump in my throat out there at seeing them and having feeling them that way But I've tried to ask some young people Just like I get an individual and say, you know, what is it why and and the answer I get from them is They're interested now in their future And they think that what we've been doing is right that their future is safer and better and They've got a chance for careers and jobs I guess they're They weren't too young To have recognized that talk about an era of limits and things aren't going to be as good as they were and All of a sudden they have hope and optimism President we appreciate it very much we at one point We're going to try to hope to talk with you a little bit about some specific things for the second term But as as paul axwell told us once you don't like to tempt your iris superstition in these sorts of circumstances So we're happy to to forego that and keep our fingers crossed. Hope we have a chance a little bit later But we appreciate it very much. Well I won't try to turn it off. I don't understand mechanical things


So the first thing to do to start to make better decisions and more decisions is practice making small decisions. This one is quite easy, but if somebody asks you where do you want to go to lunch, don't say I don't know, where do you want to go to lunch? Or they ask what movie do you want to see, don't say I don't know, what do you want to move for? Pick a movie and say this is what I want to do. Now if the other person in your party doesn't want to go to that restaurant or to that movie, they'll probably tell you, so you don't have to worry too much. But the reason most people won't make these small decisions is unconsciously or consciously, they're scared that if they make the wrong decision, the other person will be unhappy with them. It's a codependent behavior. And so you have to get used to the possibility that you're going to make a wrong decision. So don't pick the best restaurant and just cross your fingers and just hope that that person is going to love this restaurant and it turns out perfectly. Pick it and then even if it's a bad restaurant, don't think that you made the wrong decision. Just be happy that you made a decision at all.


Rwyf meddwl, Mr Colew. YouTuber i mewn. Mae'r parw executing. Rwyf meddwl. Mae'r parw executing yn siŵr ychydig iawn. Rwyf meddwl, gwahanol. Rwyf meddwl, rwyf meddwl. Mae'r pethau sy'n ymgynghwyl ar hyn o'r cystafl? Mae'r pethau sy'n mynd ymgynghwyl ar y cael i'r pethau. Mae'r pethau sy'n ymgynghwyl ar hyn. Anyone has any managers out there? Anyone got it in production at the moment? Any react developers out there... I'm just gonna come to air call. Okay. Well this is a talk on building the front end with Anglia J.S. My name is John O'Neil, I'll lead developer at Deeson where digital yma yng nghymru sy'n gynhyrch yn cantybwr i'r UK. Mae'n rhaid i'r modd y dyfodol yn y dyfodol yn yr unig a rwy'n ddych chi'n gweithio'n rwy'n gweithio'n gweithio'n gweithio, ond yw'n gweithio'n ddadfodol efallai, hefyd. Mae ymddi'r newidion drwpl yn ymddir iawn, ac mae'r twyrdd yma'r gweithio'n gweithio'n gweithio'n gweithio. Felly, dwi'n gweithio'n gweithio'n gweithio'n gweithio'n gweithio yma, We have been using it at decent for about a year now in a variety of settings, about a year ago when we were looking at why are we going to go about picking a front end framework like this... the reasons we were going out there to choose a front end framework were that we were feeling limited in some ways in the way that differential handled the front end yn hyn i cymryd yn ymaboutadau ystod cyfnodd o ran hyn iawn. Mae'r arddun enthwys. Mae'n ceisio lle iddyn nhw'n mynd i, oedd hynny'n cymryd gyda'i'r fanluniaeth across-experience. Mae'r byd yn cael y teimlo i ddryig yn gyfrifio ar gyhoedd o'r union a llwyddo i wedi'i bryd nifr criminal. Mae ymweld iddyn nhw'n cwilio i fodwn iddynt fel teimlaen a'r byd yn creu ond mae'r unledion gwir. Mae'r unledion gwir eistedd o'i brwyllfa. AngularJS is supported by Google, and it's a front-end framework, so a front-end framework basically means that you're getting quite a lot of structure and rigor to your JavaScript application and also it's providing an awful lot of add-on extras as well, a lot of modules and things like this. So I won't go into why you might want to use a front-end framework too much because Dries covered it in his keynotes, but effectively what we're doing is in the traditional model the user is at their computer or their device and they make a request to the web server, Drupal picks that up, interprets the request, it pulls in all the data that it needs to handle that request and then it themes the output and returns to the user, the full user interface to the browser. So the user is receiving from Drupal the fully themed HTML interface and there might be some elements of interactivity in there, you might include some JavaScript in what comes back that manipulate the page, but essentially it's Drupal doing most of the layout, most of the theming for you and not the, and so you're using Drupal in order to do that theme. So the way we were thinking about it was that Drupal is providing, I mean Drupal is many things, but it's providing two things to our end users, which is it is a content management system, so it's for the administrators, it's the system by which they enter the content into the system and then it stores and manages that content, but it's also doing a secondary job, which is that it's the website delivery tool as well, so for our client's end users it's providing them the actual interface and the view of their website and the data and the content that they've entered into it. I suggest that Drupal does one of those jobs really well, which is the content management system, the website delivery tool, particularly with Drupal 7 and where we're at the moment, we, like I said before, we were in a finding a need for something that was allowing us to do more than what comes out of the box. So just to highlight the point a bit further, so when you're creating a content type within Drupal and you're adding your fields to it, what you're doing is three things essentially, so in creating your content type in your fields, you're creating your data container, your data model in the database and that's great, so you create your content type and you add your fields to it and you get all your database tables and that's where all your data's going to get stored. But at the same time as doing that, then you're also creating the administrator form, the form that the user's going to be in, that's where you're selecting your widgets on your fields and you've now got the interface by which the administrator can enter content into the system. And then of course you're doing the third thing as well, which is providing a rendered display of the content that's actually going to go out there. And the first two jobs, you click around the interface, you've very quickly got your data model and your user form for your administrators and then you have to spend quite a bit of time getting your display right in the theming layer. So AngularJS then takes over as an option to take over that theming layer for you if you're going to use that within your Drupal website. And there's several different models for this and Dries touched on them during his keynote. What I'm going to talk about later when I do this demonstration, how you get started with AngularJS, I'm going to be looking at the fully decoupled model. It has a lot of advantages and a lot of disadvantages as has been covered elsewhere. But in this, in the fully decoupled model, decoupled in English decoupled means there's no connection between them, what it really is is loosely coupled. So you're loosely coupling your front end from your back end, whereas before the front end was quite integrated into the Drupal site and it was possible to do SQL queries within the theming layer and this kind of thing, by separating out and having your AngularJS application as a completely separate application. Then you're loosely coupling from the front end to the back end and now you've got something in between which is your API. So your back end needs to provide the data to the front end in a known format and it will do this through these things called APIs. And you'll need to design an API that makes sense for your front end to be able to connect to it. And we'll look at it in more detail later when I go through the example. The other model, the other way of using it is that you let Drupal do some of the theming and this is what we've done with a number of our clients where Drupal is providing the header and the footer of the page and the menu and it's doing things like the menu routing and then embedded within the page is our Angular application which is then the rich interface. So for example, on a search page we might have the header and the footer in the menu and then in the centre of the page is our actual search tool. And this one is kind of a progressive model and this allows a sort of a hybrid of both the AngularJS and the Drupal application and it's kind of the best of both worlds. A number of talks on this subject before have always talked about Drupal, the AngularJS application talking directly to Drupal and then you have to think about how you're going to scale your Drupal instance if perhaps you're going to be opening up that API to other tools than just your website. So as an alternative model and this is what we're using, that your administrators might be populating content within Drupal but then Drupal is using something like the search API module to then index that content out to some other service which provides a better API and faster integration to external services such as your AngularJS application. So in this instance here we're putting our data out of Drupal and then we're indexing it into a search appliance so perhaps it's Solar or Elasticsearch and Elasticsearch is particularly good because it's already got an API you can then interact with with your AngularJS application.  So there are a number of frameworks out there and they're all quite similar and they have different pros and cons between them but the reason we went with AngularJS a year ago was that it's supported by Google and Google put a lot of investment into it. So it's not going anywhere. It's got a very large developer community as well. So in the last year that we've used it, any problems we've come up with or anything that we're unsure how to implement, it's quite easy to put your question into Google and someone will have had that problem somewhere before it would have been blogged about there will be questions on stack exchanges that have been answered. So you get a lot of support with AngularJS and there's a lot of people using it and also there's a large number of add-on modules as well. So for a lot of the problems that you'll have, you'll find that somebody else has already solved them in the form of a module. There's ngmodules.org lists them and you'll be able to find them on the internet for most of the things that you'll be doing. One of the reasons for using any front-end framework is that you're going to be producing yourself a more robust and cleaner code base. This was one of the reasons we were looking to select it. The JavaScript was starting to get quite untidy. It was mixed in amongst the PHP and the rest of the code base within Drupal. By separating out, we've now got a much cleaner code base and using something like AngularJS, you've got a known recipe for laying out your files, laying out the way that everything's going to be working and it's got all of these good, rich, the rich vocabulary of things that come with it. If any of you've used, looked at symphony already, then you'll recognise terms like dependency injection, like services. These are all things you'd expect out of a modern software framework, not just a web framework but a software framework. These are the kind of tools you'll now be expecting and this is the reason for using a front-end framework is that you get dependency injection. You can create services, you can create your usable code and you can use plug-in modules as well. Before you begin on developing your AngularJS application, there's an awful lot of front-end technologies that you'll need to get familiar with as well. There's an awful lot of things that exist around to support you as a developer, a lot of tools, a lot of tooling, a lot of toolchain stuff that exists that you need to at least know what it is and we'll go through each of these things. One of the first things you'll end up installing is Node and NPM. Node is a thing for executing JavaScript on the server and it's often used as a web server itself. For local development, the scripts that I'll show you later, and the examples I'll show you later, you can run Node on your local environment and it will serve your application for you automatically. NPM is a package manager for Node, so if you need to bring in any dependencies for Node, NPM is the tool that you'll be using. If you're getting started with this, then the first things you'll be doing is installing Node and NPM. There's some links up there but you can usually install them from your operating system package managers and then you just check that Node's running with Node-V command. You'll also need a JavaScript package manager. A Bower is a popular choice and what the JavaScript package manager does, and this is a bit like Composer for PHP but for your JavaScript front-end application, so you can pull in dependencies. If you require other libraries, then you can use Bower to pull those in and we'll see how that works later. Bower gets installed globally onto a system using NPM install minus G Bower, so once you've got NPM installed, you can just pull that in. The next thing you'll be wanting to look at is using a task runner. There's several choices for these. I suggest start with Grunt but Gulp is getting a lot of interest and there's Broccoli as well, which is a newer one but as you start to get into front-end frameworks, these sort of things start to make more sense as you use them more and understand what they are. A task runner basically allows you to create and contain scripts which do particular tasks. An example of a task might be a test task and then you can create a thing that tells the system how to run the tests on your application. The reason you do this and then you save that with your code base is that the next developer that checks out your code, when they look at it, they can see there's a test task already, they can just run the test task and it will just automatically run the test, so they don't need to know how your particular project is configured, they can just run the tests and understand how that works. Another kind of task you might do is it's kind of a build or deployment task, so it just automates a lot of the the Grunt work that you would have to do to when you're building your applications. The next tool is a scaffolding tool. Yeoman is a popular choice and there are others but Yeoman's one we'll be looking at. A scaffolding tool takes away a lot of the work for building your application to start with, so as it describes a scaffolding tool. So install it with that command and what you'll do is that people will have created recipes out there for a particular type of project, so if you and we'll have a look at one later that's particularly good for angular projects, but it will build up your application from the start, so starting with nothing you start with a Yeoman script and and say yeah I'd like to use Bootstrap and I want to use these libraries and defenses and it will start building that up for you. The other things you'll need to get familiar with are testing frameworks. So Karma is the one that comes with the Angular and Angular puts a lot of effort into making this work and this is a full end to end test framework. Other frameworks are obviously available and we use BeHat for most of our work just because we already know what BeHat is but Karma is the one that's particularly used for AngularJS applications. Okay so I'm going to go through now some of the steps that you go through just to actually start off building your Angular application with Drupal 8. So as an example what we're going to use is the views module and the restful web services module and the views module, we all know what that does, it provides a listing of content on your system and the restful web services module provides a way of serialising that so that what you get out of that listing view from views is a pure JSON output so this is the actual development of an API and this is quite a simple example of how this might work but I'll now go through the steps involved in that. So once you've got your Drupal website set up inside of your structure so just to give you an idea of what we're doing here so what I'm going to build is a blogging platform and so we're going to have the administrator logs into Drupal and write to their blogs the end users, oh dear, the end users come into the end users are going to use an Angular application to actually view the view the blogs okay so if we have a look inside our content types you can see I've created a blog content type already and if we have a look at the fields it's just got a single field which is the body field and then obviously it's got the title to go with it as well and then under structure and then views I've created a viewer slash blog if we have a quick look at this okay so um so the type of view that this is the display is a rest export so this is provided by the um excuse me this is provided by the restful web services module so there's a new display type called the rest export um so this is what this is um the format is serialiser there and we've got a choice as to how we show the data um so this can be um you know the full rendered entity or you can be very specific and decide which fields you're going to want to show so I've chosen to show the fields because I want to have quite a bit of control over what the data goes out of the system um so here we can see what kind of fields I've selected so there's a title field uuid to uniquely identify the content um body field which is going to be the the raw htl that people have entered in the admins entered into the system um I've also provided the the path alias and also the machine name which is going to be blog post um and we'll see why I've done that later um I've also provided a contextual filter um so if we put slash blog slash and then a uuid we're going to get just a specific blog back again um so to see what that now looks like I'll go to those paths so if I go to slash blog now I'm going to get raw jason returned which is all the all of the blog posts on the system but just the data and if I take a specific uuid and apply it at the end then I just get the one blog post return now which matches that uuid okay so after all that we're now ready to start the front end development now um so the first thing you might do is is to scaffold your app so um the last tool we looked at there was the scaffolding tool um so we're going to be using yeoman for this um and there are pre pre made recipes out there for starting your angular app development so if you've never done this before this is a great place to start now so if you've followed through all the slides I've done so far and you've installed all the base dependencies at this point we run these three commands which is we're going to make a make a directory um called angular drew plates that's going to be the name of our project then we switch into the uh into that directory and then we just type yo angular and then name the project angular drew plate and press enter and yeoman will ask a couple of questions on whether we'll want to use um uh sas or um for the css and it also asks whether we're on to use bootstrap and um and these kind of things um but it's a very the very short number of questions and what you get left with um after that is um is it goes away and builds it all in it pulls all the dependencies in and you get this um project structure just seeming there um so i'll just go through the uh the the anatomy now of a of a of an angular application so this is uh remember this is completely divorced now of of our Drupal site so this is a completely separate project this is the full decoupled version um so within here we've got the app directory and this is where we're going to put all our source code so this is where all our custom code is going to be uh going to be ending up there's two other directories here which is power components and node modules these are both library directories so this is going to be this is where all those dependencies get pulled in for uh node and for bower and so node is for our our server side um the the node that's running on the server and bower are um dependencies that angular needs so this is going to be um dependencies on the web application itself um the disk folder um gets created as well so this is our source code lives in slash app uh slash app but when we want to actually release our code to um to production then we'll compile it so and I'm compiling in the in the front end terms means that's we're going to take all the JavaScript files calculate them all together and minify them um sas we're going to turn into CSS and minify that um and there's a whole bunch of other things you can do in terms of like making the um html smaller and and rebuilding things so what all of those tasks are looked after uh are looked after for us automatically by um by the grunt runner and we'll have a look at that moment so the other um the other folder of note is the test folder so your test should live with the rest of your code base um so any test you write should exist inside here as well so if we write in karma tests um they'll exist inside the test folder so the other file of interest is the grunt.js file this got created for us automatically by the yeoman recipe um I haven't had to modify this at all it's just there um and inside this it defines several tasks several things that can um that can be done on the system um that can be done within the project now if you're using um a an id like um web storm or a php storm um they it's grunt aware and it can see that there's a grunt file within it so I get within my id um a little panel which tells me what tasks grunt is going to be providing as part of this project so if this is the first time I've downloaded this project um I'm just about to start work on it as a developer um someone's already gone gone to the trouble of setting me up a build task which is the thing that if I double click this it will create that disk folder it will minify all my um job script and css um and produce me my production um my production product so I don't need to know what the steps are in order to do that someone's already put the effort in to do it and in fact I haven't even had to do that this time as well because this was provided for me by the yeoman recipe that I used to actually scaffold the app in the first place um some of the other tasks in here are the test tasks so like I was talking about before if I double click this it will run all the tests on the system and tell me whether um whether whether it's compliant with all the tests uh and the last one which of interest is the the serve one and if I run this one now what this does is it does all the work that's required um to uh to run the node server and it automatically fires up the web browser so so far I've run three commands after I've installed um if you've got the system set up correctly so far I've just run the three commands and two of those was just creating the directory and moving into it um the third one was running the yeoman application to to build the application from from the yeoman recipe uh and then I've just come into my id double clicked serve um we're ready to go we've got an application uh built and uh built and ready um and if we look down here as well you can see it says it's waiting so um it's also got live reload built into it so it's out there waiting to see it's it's maybe if I'm going to make any edits to my code base and then it'll automatically reload it so if I just move this around just to show you what that looks like um so we're going to my app directory which is where my source code's contained uh and I'm just going to make a modification to the home page and then I'll just save that file and then automatically the page is live reloaded so um these kind of things are really powerful if you're working if you haven't worked with with this before I mean there are modules for this within Drupal as well but um this is really good if you're a front end developer and you want to get these kind of productivity wins um this kind of stuff just comes out of the box um with with with this recipe that was provided for us by uh for yeoman um okay cool so um let's start diving into the app directory now so we can see what what what is made up of an angular application um so when it's an application on its own and not one that's embedded within another one then did they often call it a single page application and the single page is that index.html file so this is the single page of the of the single page application and if I open this up then you should see that it's full of um html so html is the templating language for AngularJS so anyone that um uh anyone that knows html should be able to get started pretty quickly with um uh the templating side of things um so if we have a look down here you can see most of the html there are a few um comments that have been added in here um as well and these are comments which are giving information to the build scripts the grunt scripts um to tell it where to uh where to do things so for example right at the bottom of the file here we have the script tags which are pulling in our dependencies so we've got dependencies on bower components there so um things like jquery angularjs itself are all being pulled in um and we've also got dependencies on things within the scripts directory so this is our own code starting with the app.js file which we'll look at in a moment um but each of these are wrapped in comments which are telling bower that this is where our dependencies have been injected and if we have a quick look inside of the disk folder so once we've built the application you'll notice those things just aren't in there because the process that um the grunt task goes through when it makes the final production version is all these things get minified down so we just have a scripts file and a vendor file so that's our custom code and our um our library code all is um a small minified files which is um which is obviously really good for the production system and also really good that you didn't have to build those yourselves it's all it all comes out the grunt task runner um so next thing though is we're building a blogging platform now so we want to show people um the blogs that have been created so we need a menu link for slash blog so this is uh this is hard coded so here we have the menu this we're inside the index html file here here's the menu we've got three menu links one of which is slash blog so we look at the page there's our slash blog end point um so so when we click on slash blog um how does angular know what to do what to render on the page um so one other thing to look at here is that you place your angular module um you tell it what its scope is within the context of the html document itself so here on the body tag we've got the ng-app directive um which is linking to our module so this is we'll see where that name comes from in a second but this is saying that our module has got um the scope of the body of the page and a little bit further down the html as well we've got a second angular directive here which is ng-view um so this is where the content of the page is going to reside an ng-view is a directive which is used by an angular module called ng-root um and based on the root the page so if we're on the home page or whether we're on the blog page or whichever page of the site we are ng-root makes the decisions to which page we are and then what code we'll need to run within the angular application in order to produce the content of the page okay so so far we've defined we've we've put our link onto slash blog now we have to tell angular what slash blog means um inside the app.js file so we're inside the scripts directory inside app.js um we define our module so there's the name of our module which you saw inside the index html file as being attached to the body so that's the scope for this module um the next thing that we we define for the module as the list of angular module dependencies so one of the dependencies here is ng-root um which is the thing that decides what to do depending on the url and then underneath this we're now going to configure our module so this is sort of the the bootstrapping phase of actually telling the module what's going on and it's worth stopping for a moment just to have a look at this this line here um this is angularjs dependency injection so there are two services well there are several services but there's two that this function we want to make use of um there's one called the root provider and one called the location provider and simply by putting these known service names is variables into that function call angular when it runs it will inject the correct service into this function so root provider is the name of the root provider service by just putting dollar root provider in there now dollar root provider is a thing that we can use um within this function um so one of the things I've done in this application here is that I've made a depending on the location provider and what I've wanted to do here um is use clean URLs um so ordinarily with angular um the out of the box you'll see URLs look a bit like this um with a hashtag inside them if you want to clean url that doesn't have the hash so we want to have slash about directly um then you need to enable html 5 mode uh and there's a couple of things you need to do you need this line in your configuration for your module um and also within the index html you need to specify the base path like this so as long as those two things are in there then you can use clean um clean URLs um the second thing that we've done within the configuration is is telling the ng root module what to do at each url so slash is the home page slash blog is going to be our blog our blog listing page and within here we've got um two main things to look at which are the template that's going to be used so that's that's what's going to be used for the content so where we saw inside of the index html there was an ng view component um we're going to use this template specified here to to lay out the content within that ng view um and we're going to use the blog controller as the thing that's going to be doing the logic and i mean creating the actual variables and the the data that we need uh for that view so if we start looking at the blog controller first um so this is the blog controller there's not much to it um so this is the blog controller there's yeah like i say there's not a lot to it um we define it for our for our modules that's the name of our module we say there is a controller and it's called the blog controller um we've got a dependency on two services one of which is dollar scope which is the global scope um what the global scope is is a place where you can place data and it makes that data available both within the controller and also within the view um so when the view is going to be interested in um the value of blogs here so we've added blogs to it which starts off as the empty array and the second service that i'm depending on is the dollar HTTP service um this is Angler's tool for making Ajax requests so um by depending on the HTTP service we can now specify our path that's the path to our API that we saw earlier so this is Drupalate providing me with a list of blogs in jason format and we just get that list of blogs and we set it to uh the value of dollar uh of blogs on dollar on the on the scope on the global scope okay so so so all the control is done is got the value it got the blogs from from Drupal and it's just shoved them on to uh a variable called blogs on the global scope now the second thing we saw in the in the router was that we were going to use a particular um template so if I now look inside of the listings um blog so this was the template that was going to be used again there's not a lot to it um so ng repeat there you see on that that that first div um this is an Angler directive and it's basically a for each loop and what we're saying is for for every blogs in blog and where does blogs come from it's on the global scope it's available to both the um uh it's available within the view it got set by the controller so for every blog that exists in in blogs we're going to loop over we're going to put a h2 on the page and we're going to put an a link on the page and the h2 is going to be the title of the blog and the the a link's going to link to um blog slash and then the uuid and so just to show you that quickly okay so this is it doing it it's done a request to Drupal we've got a list of blogs back each of those is the um the the title of the blog and then a link to its uuid version so that when we click there we now got a URL that says blog slash uuid uh how does Angler know what to do with that well it's it's exactly the same again uh within our um app.js we've specified blog slash and then that colon uuid means that there's going to be a variable um which uh which is going to be the uuid uh we've specified we're going to be using the blog post controller this time and we're going to be using a different template which is the blog post html so really quickly let's just look at that here i've defined another um another controller against my module this is the blog post controller so it does exactly almost exactly the same thing as before except this time it's it's asking for data from um including the uuid we've got a a dependency on the root parameters um service that Angler provides and we've grabbed the uuid off that service um in order to construct the path that we talked Drupal from um cool so i mean that's a kind of a very quick overview of all of the components of of the basic components of Angler and to show you how you might start building up an application i mean there's an awful lot more to it um and a lot has been said about the dangers of building an application like this because you you sort of walk away from all of the things that Drupal provides you with so um you know we're anonymous here i haven't shown you how to do a login uh login form those kind of things going to get very much more complex with this kind of um this kind of root way of doing things um also you know i hardcoded the menu there you probably want to use Drupal to to manage your menu because your admins are going to want to move things around in the menu and add things like that uh and also we've got a url which looks like this which isn't um the you know it's not the prettiest urls you think well actually i want to be able to specify my own url for for any piece of content uh i don't want to have to have a known root for every type of content within the system um so um just as an example of i've shown out there's a way of perhaps solving the um the url alias problem there so when i go to slash about um i get the about page back from Drupal um but what i haven't done is define that within my uh within my root provider here so there isn't a slash about i haven't specifically requested that so what we've said here is that this kind of this otherwise thing that comes about so if none of the roots match then we'll use a controller that's going to manage our rooting for us um so i've built a controller called the content controller um and i've created a template at view slash content so let's have a look at the content controller quickly um so the content controller is quite simple again um it's going to talk to a Drupal uh a Drupal API endpoint called slash content and it takes as an argument the path that we're currently on i'll get the path from the location uh service there which give it me on location dot path and then i'll ask Drupal okay i'm on this path what is the content that should be on this path um and then if we have a look at what that might look like um so yeah so we go to Drupal and ask it what what what what's it slash about and Drupal responds and says well it's a it's a it's a node of type page and uh here's its title here's its body here's its uu id so it's sending us the exact data back so we've let Drupal do the path aliasing um and so if we then look at the uh templating um so this is the the content HTML template so i'm here i'm using a directive called ng switch and this does as you'd expect this is a switch statement and it's looking at the value of page dot type page is the page that got returned um from Drupal and dot type is obviously it's the value of type um and there's three things that can happen so there's three cases for this switch statement uh when that value is undefined which it will be when the application first runs because Drupal hasn't responded yet then um there's there's nothing there so i've said don't do anything um if you were a designer you'd probably have some form of animated loading gif in there uh if uh Drupal responded with a not found um within my controller i just set the value of page dot type to not found and i'll just show the 404 page instead um and if um uh if it responded with a type so we've got the page type then we'll we'll dynamically load the correct template within the anger application uh for that page type um so it's quite a simplest simplistic example of the kind of things you can do but it just shows that you know some of these problems are solvable um and it depends on the complexity of the application the type of um uh type of the client that you're dealing with and what your what your needs are okay so i'll mention the clean URLs there so that's the HTML5 mode okay yeah so installing other modules so um at some point you're at this point when i think you know my app's going quite well so far you know it hasn't taken me a great deal of time to um uh get to this point um i'm now want to add some some other functionality which somebody else in the world must have solved at some point before and so perhaps you want to add an infinite scroll to that blog listing page um so we we want to be able to just keep scrolling keep seeing blogs um so you type into google um hang your js infinite scroll and this page comes up first and you have a look around at the documentation thing yep this is the kind of thing that this looks like the right thing that i want to use um and so uh what we do then is um we'll install it using using power which for my member is the package manager for um our JavaScript application um the the website gives you the instructions on what to do you type in power install engine infinite scroll uh and then you'll get uh uh then you'll get the dependency automatically downloaded um in order to use a dependency um if there's a couple of things you've then got to do um so we need to make sure that the JavaScript for that dependency is included on our in our page so down here within the script tags got to make sure that our new dependency is added so if we've just added that one as a dependency um we have to make sure that the JavaScript is included um and the second thing we've got to do is to tell angular itself that we're going to depend on a module so within our app.js file uh right at the top and we first define the module we list on dependencies um and we would add our new dependency our new infinite scroll dependency inside of that um okay so i said the thing i mentioned Drupal 7 as well because we're um we're using this with Drupal 7 um there's a couple of ways you can do the uh i mean in terms of the angular application you know it doesn't really matter what your back end is you just open the api up so within Drupal 7 there's certain um modules that exist which allow you to build those um those endpoints and the services module is is um is quite well used by a lot of people um it's got quite a lot of gooey configuration within it to get it set up um and then what you get is kind of it just opens up all all nodes on your system uh are made available um we like to be able to control that a little bit more and there are hooks for the services module so you can override um the way that it's going to send that data back and and do your own one um but i'd recommend looking at the next module down if you're um more code orientated and you want to build these things out a bit more is the restful um restful module um because that's uh that allows you to create objects which define your rest services and it allows you to be very specific about the uh the data that gets returned at your um your particular URLs um and there's also a yeoman script that's been created by the the guys at Gizra um and they've talked about this before um which is really quite interesting um this this yeoman script if you use it it builds you out everything so not just the anger application but also um it builds you out a Drupal 7 instance as well and starts adding um all the debences inside there that it thinks you're going to need for building a a Drupal plus angular headless uh decouple web application um and it also includes behat as the as the testing framework so um if you wanted to try this out with Drupal 7 and um then this is a great place to start because someone's done an awful lot of the legwork for you um in order for defining all of the things that you think you're going to need in order to run these applications uh and that's that that's kind of the end there so thanks very much for listening um I hope you've thought for any questions I think there's a mic in the centre if you want to use it I um I'd like to if you don't mind if you could go into a little more detail about how to handle uh like forms and the form api and you know user service the quiz module yeah you mentioned yourself user login could you outline just the steps uh or the challenges in handling that sort of thing uh yeah well um yeah I mean that is a subject in itself and I think you'll probably stand in for quite some time talking about those things um yeah I mean a form eight one of the reasons for picking anglin is one of the reasons we chose it as well is is because um uh the limitations of using um form api and being able to build dynamic forms um so Angler.js has within it everything you'll need to build um uh good dynamic forms um the two-way data binding that we I've really got into in this talk but allows you to connect something on the scope uh a variable within the scope to a form element on the page so that when the user interacts with the page it's manipulating the scope and then your JavaScript can can respond to what's happening to the changes that the user's making on the page um and this kind of thing is very powerful in terms of building up a data model which you'll then um for search particularly and this is the the reason we use it um if the user's made sort of 15 different choices when a search interface before they've actually done the search we can build up that data model and then and then submit that as a as a as a post request to the Drupal application um and then we'll handle that request and return the data the specific data that um needs to be returned um yeah I mean that's how we're using it um I think there's an awful lot of nuances there that we could we could spend a lot of time talking about in terms of how you would um uh how you build forms with AngularJS something that's a like I say a subject for itself but thanks for your question is there any others uh yes so um the question was um it's a it's a presentation available um I'll um I'll get the presentation online um if you follow me on uh on the the Twitter handle there I'll uh I'll tweet it um at some point today so you can you can get hold of it um I mean a lot of the presentation was um uh me clicking round in the user interface uh so um I think they put all these up online so you'll be able to watch it uh watch back through uh later any other questions knowing that Angular 2 is around the corner are you recommending people in the room to adopt Angular today or to wait for Angular 2 um so I wouldn't recommend anything to anyone but I mean we're using we're using Angular 1 um there's such a huge resort um wealth of resources out there there's an awful lot of people using it I I don't see any uh pressing need to um to wait for Angular 2 um I don't know personally quite when Angular 2 is coming but I do know there's a quite a significant change as the co-base I think it's as at least as much as Drupal 7 to Drupal 8 um so yes if you learned um Angular 1.3 1.4 now um you're going to have to relearn things later but there's so many other things I mean if you're not used a front end framework before I mean that all of the other stuff that I talked about node and grunt and gulp and the task runners automatic deployment all these things are going to be they're going to be of use every every time it's just the the nuances of the syntax for Angular itself that's going to change from from one one release to the next um so yeah I think it's definitely something you should stop thinking about getting into now and it's definitely worth looking at the uh the Angular applications Hi can you speak just a little bit to um some of the agency considerations like scoping um making sure that your staff is ready to go and that type of thing yeah exactly um that's a that's a good question so um in terms of uh how you would need to structure your team around this um I think some people have written about the dangers of of going down this approach and particularly the completely decoupled system where there's there's this thought that perhaps you'll have to um suddenly you'd split your team in half and rather than everyone being Drupal developers suddenly you've got a bunch of front end developers a bunch of back end developers and then they only talk to each other you know once it'll be three weeks at a big team meeting um I mean I don't I wouldn't recommend that as the way of structuring your projects um so the way that we work is that our project teams are composed of someone who is primarily front end someone who's primarily back end but there's a lot of um interact overlap between them and they're just two two people that would have always been in the project anyway just they were both through within Drupal um the feedback we've had from our front end developers is always that and this is very freeing for them um that they can kind of they don't need to know that the specifics are Drupal and there's an awful lot of people out there that don't know Drupal but they're very proficient in the front end frameworks um and so as an agency if you're looking at um you know particularly hiring and understand how to build your team up you can find you'll probably be able to find yourself some very good front end developers that perhaps don't know Drupal and but they will be very useful inside of a team that's composed of Drupal developers and front end developers and and this approach allows you to start separating that out um yeah John can you give uh some concrete examples of the sort of exciting things that we can do with it um ideally even showing us to at least telling us the because I mean I see what you do but I think okay well I can do that with Drupal at the moment you know the very simple examples uh yeah and it's it's as things get more complex um I mean there's you know I haven't got any specific examples to um to demonstrate today but um I mean there's there's there's plenty of examples of stuff out there but it it's where you start to turn your application when when your web application becomes more of an application and less of just a form that someone's filling in so there's an awful lot more elements that are going on so I gave the example before of um a user may have done a lot of things within the interface before you make your callback before you do your search so they might be making um selections on um you know multiple facets all at the same time that that I'm making a choice of one facet may reduce the number of facets to somewhere else and so you start to build up a data model within um within your just your front end and then you just send that directly back to the server and say well what what results does this does this provide um so I don't think that answers your question exactly but um it's it's as you it's as the complexity increases that um both the code base becomes more unmanageable if you're not using something that is more structured um and also the ability to um to do more interesting things becomes restricted if you're not using uh a front end framework or at least that's what we found okay thank you thank you uh any other questions cool okay well I guess we'll leave it there then so thanks very much


Liberia- Hi Guys, Welcome to Episode 1 in the Navratri series. Today I'm going to show you the Navratri bruschetta which is very interesting and I'm very proud about it. It's actually a recipe made with summer rice and banyan millet which I made like cubes before. And then I made it crispy.  आप दोगी एक से च्रिस्पीड कोछ तोस गदा लगाची है जो ती ब कॊटत रित्त Altis is on top of those crispy toasts because it is so delicious and then drizzle some honey and lemon juice and that's ready. Do try this recipe out & don't forget to include more milits in your diet. Bye