Home
Search results “Public property name as string”
How To Create Class in C#.net In Console Program
 
02:30
Here You will get information about how to create class in console programming. We simple create class. You will get Code of program below class Employee { private int _id; private string _name; private double _salary; //Defalt Constructor public Employee() { } //Parameterised Constructor public Employee(int id, string name, double salary) { _id = id; _name = name; _salary = salary; } //Properties //Readonly property public int ID { get { return _id; } } //Writeonly property public string NAME { set { _name = value; } } //Read and Write property public double SALARY { get { return _salary; } set { _salary = value; } } } class Program { // This is main program where we are calling Employee class with Paramter and defaul constructor static void Main(string[] args) { //Class object create here. Employee e = new Employee(); Console.WriteLine(); Employee e1 = new Employee(101,"Ramesh",1000); //call to readonly property & it cannot be written Console.WriteLine(e1.ID); //call to writeonly property & it cannot be read e1.NAME = "Suresh"; //call to both readwrite property so it can be written & read e1.SALARY = 12000; Console.WriteLine("Salary : "+e1.SALARY); Console.ReadKey(); } }
Views: 27 Wonder World
Strong naming an assembly
 
14:19
C#, SQL Server, WCF, MVC and ASP .NET video tutorials for beginners http://www.youtube.com/user/kudvenkat/playlists Complete 7 part Dot Net basics video series: http://www.youtube.com/playlist?list=PL8598C97BA1D871C1&feature=view_all My Blog: www.csharp-video-tutorials.blogspot.co.uk My Channel: www.youtube.com/user/kudvenkat In this video we will learn: 1. Strong naming an assembly, that is signing an assembly with strong name using private and public key pair 2. Assembly Versioning 3. Using strong naming tool - sn.exe
Views: 147008 kudvenkat
Allow remote connections to SQL Server Express : How to Video
 
07:36
Enable remote connection on SQL Server 2014 express. By default, when SQL Server Express is installed it generates a random port to listen on. In this video you will learn how to configure SQL Server 2014 Express to accept remote connections over TCP/IP using SQL Server Configuration Manager and how to open the port on firewall for incoming connection.
Views: 261177 Sachin Samy
Learn and understand classes in c# with simple steps
 
26:11
OOP (Object Oriented Programming) OOP can be defined as real world representation of real world objects in shape of classes. Real world object features in OOP are defined as properties or attributes or fields. Class for Human public class Human { public string Name; public Int32 Age; public string Address; public float Height; public float Width; } Getting details Processing details Etc Processes as Methods in class public class HumanWithMethods { public string Name; public Int32 Age; public string Address; public float Height; public float Width; public void GetDetails() { Console.Write("Name : " + this.Name + " Age : " + this.Age + " Address : " + this.Address + " Height : " + this.Height.ToString() + " Width : " + this.Width.ToString()); } } Static Properties When a property declaration includes a static modifier, the property is said to be a static property. A static property is not associated with a specific instance. Access Modifiers Private : Access is limited to the containing type. Protected : Access is limited to the containing class or types derived from the containing class. Public : Access is not restricted. Constructor A constructor is invoked when you use the "new" operator. By default there is Default constructor. Constructor can be parameterized. Example : EmployeeClass, etc.
Views: 363 techsapphire
Part 67   Action selectors in mvc
 
09:53
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/08/part-67-action-selectors-in-mvc.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss action selectors in asp.net mvc Actions are public methods in an mvc controller that responds to an URL request. You can control or influence which action method gets invoked using action selectors in mvc. Action selectors are attributes that can be applied to an action method in a controller. ActionName selector: This action selector is used when you want to invoke an action method with a different name, than what is already given to the action method. For example, the following URL request would invoke Index() action method in HomeController /Home/Index public class HomeController : Controller { public string Index() { return "Index action method invoked"; } } If you want to invoke Index() action method, with the following URL /Home/List Then decorate the action method with ActionName attribute as shown below. public class HomeController : Controller { [ActionName("List")] public string Index() { return "Index action method invoked"; } } Now, if you navigate to /Home/Index, you will get an error - The resource cannot be found. At the moment, the Index() action method is returning a string, but if it returns a view, should the view be named - Index or List.? [ActionName("List")] public ActionResult Index() { return View(); } List should be the view name. If for some reason, you want to use "Index" as the view name, then modify the controller action method as shown below. [ActionName("List")] public ActionResult Index() { return View("Index"); } AcceptVerbs selector: Use this selector, when you want to control, the invocation of an action method based on the request type. In the example below, the "Edit" method that is decorated with GET acceptverb responds to the GET request, where as the other "Edit" method responds to POST request. The default is GET. So, if you don't decorate an action method with any accept verb, then, by default, the method responds to GET request. public class HomeController : Controller { [AcceptVerbs(HttpVerbs.Get)] public ActionResult Edit(int id) { Employee employee = GetEmployeeFromDB(id); return View(employee); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult Save(Employee employee) { if (ModelState.IsValid) { // Save employee to the database return RedirectToAction("Index"); } return View(employee); } } HttpGet and HttpPost attributes can be used as shown below. This is an alternative to using AcceptVerbs attribute. public class HomeController : Controller { [HttpGet] public ActionResult Edit(int id) { Employee employee = GetEmployeeFromDB(id); return View(employee); } [HttpPost] public ActionResult Save(Employee employee) { if (ModelState.IsValid) { // Save employee to the database return RedirectToAction("Index"); } return View(employee); } }
Views: 68166 kudvenkat
How to Set Up Characters in Your RPG Battle System
 
22:11
ACCESS the FULL COURSE here: https://academy.zenva.com/product/rpg-academy/?zva_src=youtube-rpg-academy TRANSCRIPT Hey guys, welcome back. In this lesson we're gonna start our character script file. What I'm gonna do first is get rid of these by deleting them. Don't worry, they are in our Spells folder as prefabs. So inside of our scripts folder I'm gonna create a new C Sharp script and I'm gonna call it Character. Now this is gonna be the base class that all of our characters, well not all of them, we have two different types. We have a party member and an enemy object. They're going in inherit the values and properties from Character, so this is gonna be the base class for those two types of characters. So we're gonna have Character, we're also gonna have Enemy. Then we'll have a PartyMember, and Enemy is gonna be what our enemies are built on top of, and PartyMember is gonna be what our players will build on top of. Let's open up Character in Visual Studio, and we're gonna treat this similarly to how we treated out spells. What does a character need? Well first of all, a character's gonna need a character name, so a public string characterName. We're also gonna have to have some stats. We're gonna need our health value. We're gonna need our attack power, our defense power. How much mana points do we have? What kind of spells can we cast? That kind of thing, so wanna have a public int called health, and I also wanna know how much health we could possibly have, so the health is going to be the current health. I then want to have a public int that's going to be the maxHealth. So I'll have say 10 health out of 20 potential health. That allows us to heal up to that maximum health. Think of a health bar, it's gonna have on the left side, zero, on the right side the maximum health our character can have. Also wanna have a public int for the attackPower, so how strong is this character. Whether they're just doing a normal attack or they're casting a spell, that kind of thing. Then a public int that's gonna be defensePower. How much damage can we reduce incoming damage by? We'll create a very simple formula to help us decide how much our defense affects incoming damage. I also wanna know how much mana my character has, so input an int for manaPoints. I then wanna have a simple list of the possible spells that my character can have, so each character is gonna have a different set of spells. Say if we have a dragon character they'll have fire breath. If we have a ranged character, they'll have the arrow rain spell we just created, that kind of thing, so I wanna make sure that we have a list of spells per character I'm gonna have a public list, and I'm gonna call it Spell. Now if you recall from the Unity 101 course, a list is a generic collection of items, so they can define what type of items go in there by deciding inside the curly brackets here it's a Spell. We can also dynamically add and remove from this list as we please. May not have to do that for this system, but it's there if we do need to, and we'll call it spells. Now we're gonna be adding spells to this list from the inspector. That's gonna be all the properties our character's going to need. Now I'm saying the word property even though we're just creating some public variables here. Now if we were using any type of other system where we could actually simply serialize our properties, which would be a property like this, in the inspector to add the values to it, we would be using properties to have anything that is accessed outside of Character handled. In this case, Unity does not serialize properties in the inspector for us, or in general, so we have to handle it by using a public field like we're using here. So what does our character need to be able to do? Well we know they wanna be able to cast spells. Right, that makes sense. Enemies and characters, or enemies and players, want to be able to cast spells. They also wanna be able to take damage. Maybe don't want to, but they need to be able to take damage. They also want to be able to be healed. Right, so let's start off with those two things, healing and taking damage. So I have a public void method here, so publicly accessible because anything outside of Character that does damage to it has to be able to use this method, so public void Hurt, I'll call it.
Views: 187 Zenva
Part 7   Projection Operators in LINQ
 
11:22
Text version of the video http://csharp-video-tutorials.blogspot.com/2014/07/part-7-projection-operators-in-linq_9.html Slides http://csharp-video-tutorials.blogspot.com/2014/07/part-7-projection-operators-in-linq.html LINQ Tutorial - All Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2014/07/linq-tutorial.html LINQ Tutorial Playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWi8K02Eqxp3Xyh_OmQ0Rp6 Dot Net, SQL, Angular, JavaScript, jQuery and Bootstrap complete courses https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd The following 2 standard LINQ query operators belong to Projection Operators category. Select SelectMany Projection Operators (Select & SelectMany) are used to transform the results of a query. In this video we will discuss Select operator and in a later video session we will discuss SelectMany operator. Select clause in SQL allows to specify what columns we want to retrieve. In a similar fashion LINQ SELECT standard query operator allows us to specify what properties we want to retrieve. It also allows us to perform calculations. For example, you may have a collection of Employee objects. The following are the properties of the Employee class. EmployeeID FirstName LastName AnnualSalay Gender Now using the SELECT projection operator 1. We can select just EmployeeID property OR 2. We can select multiple properties (FirstName & Gender) into an anonymous type OR 3. Perform calculations a) MonthlySalary = AnnualSalay/12 b) FullName = FirstName + " " + LastName We will be using the following Employee class for this demo. public class Employee { public int EmployeeID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Gender { get; set; } public int AnnualSalary { get; set; } public static List[Employee] GetAllEmployees() { List[Employee] listEmployees = new List[Employee] { new Employee { EmployeeID = 101, FirstName = "Tom", LastName = "Daely", Gender = "Male", AnnualSalary = 60000 }, new Employee { EmployeeID = 102, FirstName = "Mike", LastName = "Mist", Gender = "Male", AnnualSalary = 72000 }, new Employee { EmployeeID = 103, FirstName = "Mary", LastName = "Lambeth", Gender = "Female", AnnualSalary = 48000 }, new Employee { EmployeeID = 104, FirstName = "Pam", LastName = "Penny", Gender = "Female", AnnualSalary = 84000 }, }; return listEmployees; } } Example 1: Retrieves just the EmployeeID property of all employees IEnumerable[int] employeeIds = Employee.GetAllEmployees().Select(emp =] emp.EmployeeID); foreach (int id in employeeIds) { Console.WriteLine(id); } Example 2: Projects FirstName & Gender properties of all employees into anonymous type. var result = Employee.GetAllEmployees().Select(emp =] new { FirstName = emp.FirstName, Gender = emp.Gender }); foreach (var v in result) { Console.WriteLine(v.FirstName + " - " + v.Gender); } Example 3: Computes FullName and MonthlySalay of all employees and projects these 2 new computed properties into anonymous type. var result = Employee.GetAllEmployees().Select(emp =] new { FullName = emp.FirstName + " " + emp.LastName, MonthlySalary = emp.AnnualSalary / 12 }); foreach (var v in result) { Console.WriteLine(v.FullName + " - " + v.MonthlySalary); } Example 4: Give 10% bonus to all employees whose annual salary is greater than 50000 and project all such employee's FirstName, AnnualSalay and Bonus into anonymous type. var result = Employee.GetAllEmployees() .Where(emp =] emp.AnnualSalary ] 50000) .Select(emp =] new { Name = emp.FirstName, Salary = emp.AnnualSalary, Bonus = emp.AnnualSalary * .1 }); foreach (var v in result) { Console.WriteLine(v.Name + " : " + v.Salary + " - " + v.Bonus); }
Views: 57762 kudvenkat
Magnetic Properties
 
06:46
070 - Magnetic Properties In this video Paul Andersen explains how all material has magnetic properties. Ferromagnetic material can be permanently magnetized, paramagnetic material will align with magnetic fields, and diamagnetic material will align weakly with magnetic fields. Magnetism is a quantum property that acts at all scale levels Do you speak another language? Help me translate my videos: http://www.bozemanscience.com/translations/ Music Attribution Title: String Theory Artist: Herman Jolly http://sunsetvalley.bandcamp.com/track/string-theory All of the images are licensed under creative commons and public domain licensing: Bar Magnet, n.d. http://commons.wikimedia.org/wiki/File:Bar_magnet.jpg. Böning, Jens. Simple Illustration of a Paramagnetic Probe Made up from Miniature Magnets., January 10, 2006. selfmade – selbst gemacht. http://commons.wikimedia.org/wiki/File:Paramagnetic_probe_without_magnetic_field.svg. “Diamagnetism.” Wikipedia, the Free Encyclopedia, November 30, 2014. http://en.wikipedia.org/w/index.php?title=Diamagnetism&oldid=635529492. “File:Magnetic Domains 2.svg.” Wikipedia, the Free Encyclopedia. Accessed May 29, 2014. http://en.wikipedia.org/wiki/File:Magnetic_Domains_2.svg. “File:Powstawanie Domen by Zureks.png.” Wikipedia, the Free Encyclopedia. Accessed May 29, 2014. http://en.wikipedia.org/wiki/File:Powstawanie_domen_by_Zureks.png. Iron.svg, n.d. http://upload.wikimedia.org/wikipedia/commons/b/b9/Electron_shell_026_Iron.svg. “Permeability (electromagnetism).” Wikipedia, the Free Encyclopedia, December 5, 2014. http://en.wikipedia.org/w/index.php?title=Permeability_(electromagnetism)&oldid=636768598.
Views: 49038 Bozeman Science
Part 11  Using business objects as model in mvc
 
16:21
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/05/part-11-using-business-objects-as-model.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-11-using-business-objects-as-model.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video, we will discuss using business objects as model. Until now, we have been using entity framework and entities. Entities are mapped to database tables, and object relational mapping tools like Entity Framework, nHibernate, etc are used to retrieve and save data. Business objects contain both state(data) and behaviour, that is logic specific to the business. In MVC there are several conventions that needs to be followed. For example, controllers need to have the word controller in them and should implement IController interface either directly or indirectly. Views should be placed in a specific location that MVC can find them. The following URL will invoke Index() action method with in the HomeController. Notice that our HomeController inherits from base Controller class which inturn inherits from ControllerBase class. ControllerBase inturn inherits from IController class. http://localhost/MVCDemo/Home/Index return View() statement with in the HomeController by default looks for a view with name = "Index" in "/Views/Home/" and "/Views/Shared/" folders. If a view with name = "Index" is not found, then, we get an error But with models, there are no strict rules. Infact "Models" folder is optional and they can live anywhere. They can even be present in a separate project. Let's now turn our attention to using business objects as model. Stored procedure to retrieve data Create procedure spGetAllEmployees as Begin Select Id, Name, Gender, City, DateOfBirth from tblEmployee End Step 1: Create an ASP.NET MVC 4 Web application with name = MVCDemo Step 2: Add a Class Library project with Name="BusinessLayer" Step 3: Right click on the BusinessLayer class library project, and add a class file with name = Employee.cs. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BusinessLayer { public class Employee { public int ID { get; set; } public string Name { get; set; } public string Gender { get; set; } public string City { get; set; } public DateTime DateOfBirth { get; set; } } } Step 4: Right click on the "References" folder of the "BusinessLayer" class library project, and add a reference to "System.Configuration" assembly. Step 5: Right click on the BusinessLayer class library project, and add a class file with name = EmployeeBusinessLayer.cs. Step 6: Right click on the "References" folder of the "MVCDemo" project, and add a reference to "BusinessLayer" project. Step 7: Include a connection string with name = "DBCS" in Web.Config file Step 8: Right click on the "Controllers" folder and add Controller with name = "EmployeeController.cs". Step 9: Right click on the Index() action method in the "EmployeeController" class and select "Add View" from the context menu. Set View name = Index View engine = Razor Select "Create a strongly-typed view" checkbox Scaffold Template = List Click "Add" button Run the application.
Views: 347763 kudvenkat
Java Programming Tutorial - 04 - Defining a Class and Creating Objects in Java
 
13:43
Get the full course at: http://www.MathTutorDVD.com In this lesson, you will learn how to define a class and create instances of that class (called objects) in the Java programming language. Learn how to program in java with our online tutorial. We will cover variables, loops, if else branching, arrays, strings, objects, classes, object oriented programming, conditional statements, and more.
Views: 242612 mathtutordvd
Part 35   How to set an item selected when an asp net mvc dropdownlist is loaded
 
08:43
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/06/part-35-setting-item-selected-when.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-35-setting-item-selected-when.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss, how to set an item selected when an asp.net mvc dropdownlist options are loaded from a database table. Please watch Part 34 before proceeding. To have the "IT" department selected, when the departments are loaded from tblDepartment table, use the following overloaded constructor of "SelectList" class. Notice that we are passing a value of "1" for "selectedValue" parameter. ViewBag.Departments = new SelectList(db.Departments, "Id", "Name", "1"); If you run the application at this point, "IT" department will be selected, when the dropdownlist is rendered. The downside of hardcoding the "selectedValue" in code is that, application code needs to be modified, if we want "HR" department to be selected instead of "IT". Let's now discuss, the steps required to drive the selection of an item in the dropdownlist using a column in tblDepartment table. Step 1: Add "IsSelected" bit column to tblDepartment table ALTER TABLE tblDepartment ADD IsSelected BIT Step 2: At this point, this column will be null for all the rows in tblDepartment table. If we want IT department to be selected by default when the dropdownlist is loaded, set "IsSelected=1" for the "IT" department row. Update tblDepartment Set IsSelected = 1 Where Id = 2 Step 3: Refresh ADO.NET Entity Data Model Step 4: Finally, make the following changes to the "Index()" action method in "HomeController" class. public ActionResult Index() { SampleDBContext db = new SampleDBContext(); List[SelectListItem] selectListItems = new List[SelectListItem](); foreach (Department department in db.Departments) { SelectListItem selectListItem = new SelectListItem { Text = department.Name, Value = department.Id.ToString(), Selected = department.IsSelected.HasValue ? department.IsSelected.Value : false }; selectListItems.Add(selectListItem); } ViewBag.Departments = selectListItems; return View(); } Run the application and notice that, "IT" department is selected, when the dropdownlist is loaded. If you now want "HR" department to be selected, instead of "IT", set "IsSelected=1" for "HR" department and "IsSelected=0" for "IT" department. Update tblDepartment Set IsSelected = 1 Where Id = 2 Update tblDepartment Set IsSelected = 0 Where Id = 1
Views: 156820 kudvenkat
What's the meaning of underscores (_ & __) in Python variable names?
 
06:01
https://dbader.org/python-tricks ► Make those underscores count and write clean and beautiful Python, by example Leading underscores in Python variable names (for example _foo and __foo) protect developers from naming conflicts. In this video you'll learn how to work with these Pythonic coding conventions and why they exist. A single underscore in front of a variable name (prefix) is a hint that a variable is meant for internal use only. A double underscore prefix causes the Python interpreter to rewrite the variable name in order to avoid naming conflicts in subclasses. Double underscores are also called "dunders" in Python. Watch the video tutorial to see the details of how double underscore name mangling works and how it affects your own Python classes. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Views: 117172 Real Python
Singleton Design Pattern
 
11:59
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/05/singleton-design-pattern.html Slides http://csharp-video-tutorials.blogspot.com/2017/05/singleton-design-pattern_13.html Design Patterns Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhUbctIoxoVTrklN3LMwTCmd All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this tutorial we will discuss 1. What is Singleton Design Pattern 2. Singleton as Creational Pattern 3. Implementation Guidelines 4. How do we implement a Singleton class This is continuation to Part 1 of Design Patterns Tutorial. So please watch Part 1 before proceeding. Singleton Pattern belongs to Creational type pattern. As discussed in our previous video, Gang of four have defined five design patterns that belongs to creational design type category. Singleton is one among them and the rest are Factory, Abstract Factory, Builder and Prototype patterns. As the name implies, creational design type deals with object creation mechanisms. Basically, to simplify this, creational pattern explain us the creation of objects in a manner suitable to a given situation. Singleton design pattern is used when we need to ensure that only one object of a particular class is Instantiated. That single instance created is responsible to coordinate actions across the application. Advantages and Guidelines for Singleton implementation. Concurrent access to the resource is well managed by singleton design pattern. As part of the Implementation guidelines we need to ensure that only one instance of the class exists by declaring all constructors of the class to be private. Also, to control the singleton access we need to provide a static property that returns a single instance of the object. Singleton Class Implementation Example Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // First version of Singleton demo namespace SingletonDemo { class Program { static void Main(string[] args) { /* * Assuming Singleton is created from employee class * we refer to the GetInstance property from the Singleton class */ Singleton fromEmployee = Singleton.GetInstance; fromEmployee.PrintDetails("From Employee"); /* * Assuming Singleton is created from student class * we refer to the GetInstance property from the Singleton class */ Singleton fromStudent = Singleton.GetInstance; fromStudent.PrintDetails("From Student"); Console.ReadLine(); } } } Singleton.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SingletonDemo { /* * Sealed ensures the class being inherited and * object instantiation is restricted in the derived class */ public sealed class Singleton { private static int counter = 0; /* * Private property initilized with null * ensures that only one instance of the object is created * based on the null condition */ private static Singleton instance = null; /* * public property is used to return only one instance of the class * leveraging on the private property */ public static Singleton GetInstance { get { if (instance == null) instance = new Singleton(); return instance; } } /* * Private constructor ensures that object is not * instantiated other than with in the class itself */ private Singleton() { counter++; Console.WriteLine("Counter Value " + counter.ToString()); } /* * Public method which can be invoked through the singleton instance */ public void PrintDetails(string message) { Console.WriteLine(message); } } }
Views: 204878 kudvenkat
Encapsulation in Object Oriented Programming In Hindi #3
 
10:36
In this video you will learn about Java Encapsulation. Encapsulation is one of the most useful object oriented programming concept that all should understand well. Like, Comments, Share and SUBSCRIBE don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺ Download my you tube channel Android application from here- https://www.dropbox.com/s/stoehcarylm5374/AndroJava%20Tech4U.apk?dl=0 Encapsulation:- It is the process of wrapping the datamember and member function into a single unit called class. Java Bean:- It Is general purpose resuble code which having fallowing feature form a normal class:- 1)-It sould be public. 2)-Its Datamember should be private. 3)-Its should have public setter and getter method(properties method) 4)-Its should be inside package. 5)-Its should have public default constructor. 6)-This class should not extends any specific class or implements any specific interface, but must implements java.io.Serilizable Program- package com.androjavatech4u.login; public class Login implements java.io.Serializable { private String name,pass; public void setName(String name) { this.name=name; } public void setPass(String pass) { this.pass=pass; } public String getName() { return name; } public String getPass() { return pass; } public Login() { } } class Test { public static void main(String ss[]) { Login l=new Login(); java.util.Scanner s=new java.util.Scanner(System.in); System.out.println("Eneter Name"); String name=s.next(); System.out.println("Eneter Pass"); String pass=s.next(); l.setName(name); l.setPass(pass); String msg=Validation.validate(l); if(msg.equals("success")) javax.swing.JOptionPane.showMessageDialog(null,"Welcome="+l.getName()); else javax.swing.JOptionPane.showMessageDialog(null,"invalid User Name or Pass"); } } class Validation { public static String validate(Login l) { if(l.getName().equals("admin")&&l.getPass().equals("admin")) return "success"; else return "fail"; } } awt url- https://www.youtube.com/watch?v=n9NF1O1xzCg&list=PLnfapp4WoqppnD7iLCygNJV41hrnQKa3b&index=1 path seting- https://www.youtube.com/watch?v=k2gCo4oKKmg&index=20&list=PLnfapp4WoqpqWgXpfNvPCoQ3tEVUTnsYG java doc- https://www.youtube.com/watch?v=NLfXdTtW9q8&index=15&list=PLnfapp4WoqpqWgXpfNvPCoQ3tEVUTnsYG Connect on Socials:- Facebook:- https://www.facebook.com/AndroJavaTech4U/ Twitter:- https://twitter.com/AndroJavaTech4U Google Plus:- https://plus.google.com/u/0/+AndroJavaTech4U LinkedIn:- https://www.linke
Views: 367 AndroJava Tech4U
Python Tutorial for Beginners 2: Strings - Working with Textual Data
 
21:12
In this Python Beginner Tutorial, we will begin learning about the string data type. Strings allow us to work with textual data in Python. We will be going over different ways to format strings, and also a lot of useful string methods. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-Strings Watch the full Python Beginner Series here: https://www.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7 Slicing Video: https://youtu.be/ajrtAuDg3yw String Formatting Video: https://youtu.be/vTX3IwquFkc ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 315320 Corey Schafer
Regular Expressions (Regex) Tutorial: How to Match Any Pattern of Text
 
37:55
In this regular expressions (regex) tutorial, we're going to be learning how to match patterns of text. Regular expressions are extremely useful for matching common patterns of text such as email addresses, phone numbers, URLs, etc. Almost every programming language has a regular expression library, so learning regular expressions with not only help you with finding patterns in your text editors, but also you'll be able to use these programming libraries to search for patterns programmatically as well. Let's get started... The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Regular-Expressions Python Regex Tutorial: https://youtu.be/K8L6KVGG-7o ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/
Views: 255991 Corey Schafer
Part 8  Data access in mvc using entity framework
 
13:29
Tags asp.net mvc database tutorial asp.net mvc database application tutorial creating asp.net mvc application with database asp.net mvc database connection using entity framework asp.net mvc database project database connectivity in asp.net mvc Text version of the video http://csharp-video-tutorials.blogspot.com/2013/05/part-8-data-access-in-mvc-using-entity.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-8-data-access-in-mvc-using-entity.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists The controller responds to URL request, gets data from a model and hands it over to the view. The view then renders the data. Model can be entities or business objects. In part 7, we have built Employee entity. public class Employee { public int EmployeeId { get; set; } public string Name { get; set; } public string Gender { get; set; } public string City { get; set; } } In this video, we will discuss, retrieving data from a database table tblEmployee using entity framework. In a later video, we will discuss using business objects as our model. Step 1: Install entity framework, if you don't have it installed already on your computer. At the time of this recording the latest version is 5.0.0.0. Using nuget package manager, is the easiest way to install. A reference to EntityFramework.dll is automatically added. Open visual studio - Tools - Library Package Manager - Manage NuGet Packages for Solution Step 2: Add EmployeeContext.cs class file to the Models folder. Add the following "using" declaration. using System.Data.Entity; Copy & paste the following code in EmployeeContext.cs public class EmployeeContext : DbContext { // Replace square brackets, with angular brackets public DbSet[Employee] Employees {get; set;} } EmployeeContext class derives from DbContext class, and is responsible for establishing a connection to the database. So the next step, is to include connection string in web.config file. Step 3: Add a connection string, to the web.config file, in the root directory. Step 4: Map "Employee" model class to the database table, tblEmployee using "Table" attribute as shown below. [Table("tblEmployee")] public class Employee { public int EmployeeId { get; set; } public string Name { get; set; } public string Gender { get; set; } public string City { get; set; } } Note: "Table" attribute is present in "System.ComponentModel.DataAnnotations.Schema" namespace. Step 5: Make the changes to "Details()" action method in "EmployeeController" as shown below. public ActionResult Details(int id) { EmployeeContext employeeContext = new EmployeeContext(); Employee employee = employeeContext.Employees.Single(x =] x.EmployeeId == id); return View(employee); } Step 6: Finally, copy and paste the following code in Application_Start() function, in Global.asax file. Database class is present "in System.Data.Entity" namespace. Existing databases do not need, database initializer so it can be turned off. Database.SetInitializer[MVCDemo.Models.EmployeeContext](null); That's it, run the application and notice that the relevant employee details are displayed as expected.
Views: 694963 kudvenkat
Python Tutorial for Beginners 5: Dictionaries - Working with Key-Value Pairs
 
09:59
In this Python Beginner Tutorial, we will begin learning about dictionaries. Dictionaries allow us to work with key-value pairs in Python. We will go over dictionary methods, how to add and remove values, and also how to loop through the key-value pairs. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-Dicts Watch the full Python Beginner Series here: https://www.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7 ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 259930 Corey Schafer
Python OOP Tutorial 1: Classes and Instances
 
15:24
In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 1190667 Corey Schafer
Part 7  Models in an mvc application
 
11:15
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/04/part-7-models-in-mvc-application.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-7-models-in-mvc-application.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss models in an mvc application. Let's understand models with an example. We want to retrieve an employee information from tblEmployee table and display it in a view. To encapsulate Employee information, add Employee model class to the Models folder. To do this 1. Right click on "Models" folder - Add - Class 2. Name the class as Employee.cs 3. Click "Add" Copy and paste the following code in Employee.cs class file. public class Employee { public int EmployeeId { get; set; } public string Name { get; set; } public string Gender { get; set; } public string City { get; set; } } Now let's Add EmployeeController class to "Controllers" folder. To do this 1. Right click on "Controllers" folder - Add - Controller 2. Use EmployeeController as the name 3. Click "Add" We want to use "Employee" model class in EmployeeController. So copy and paste the following "using" statement in "EmployeeController.cs" using MVCDemo.Models; By default an Index() Action method is created in EmployeeController. Change the name of the function to Details(). Create an instance of Employee class. For now we will hard code Employee data in this class. In a later video session, we will discuss about retrieving employee information from the database table tblEmployee. At this point EmployeeController should look as shown below. public ActionResult Details() { Employee employee = new Employee() { EmployeeId = 101, Name = "John", Gender = "Male", City = "London" }; return View(); } Now, we need to pass the employee model object that we constructed in EmployeeController to a view, so the view can generate the HTML and send it to the requested client. To do this we first need to add a view. To add a view 1. Right click on Details() action method and select "Add View" from the context menu 2. Set a)View Name = Details b)View Engine = Razor c)Select "Create strongly typed view" check box d)From the "Model class" dropdownlist, select "Employee (MVCDemo.Models)" Note: If Employee class is not visible in the dropdownlist, please build your project and then try adding the view again. 3. Finally click "Add" At this point, Details.cshtml should be added to "Employee" folder. Please note that "Employee" folder is automatically created and added to "Views" folder. Copy and paste the following code from my blog http://csharp-video-tutorials.blogspot.com/2013/04/part-7-models-in-mvc-application.html At this point if you run the project, and if you navigate to the following URL, you get a runtime error stating - Object reference not set to an instance of an object. localhost/MVCDemo/Employee/Details To fix this error, pass "Employee" object to the view. The "return" statement in Details() action method need to be modified as shown below. return View(employee); That's it. Run the application and navigate to localhost/MVCDemo/Employee/Details. We should get the output as expected.
Views: 514071 kudvenkat
Part 73   OutputCache attribute in mvc
 
11:39
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/08/part-73-outputcache-attribute-in-mvc.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss OutputCache attribute and partial caching in asp.net mvc. OutputCacheAttribute is used to cache the content returned by a controller action method, so that, the same content does not need to be generated each and every time the same controller action is invoked. Let us understand this with an example. We will be using table tblEmployee for this demo. Please refer to Part 62 of MVC Tutorial, if you need SQL script to create and populate this table. Step 1: Add ado.net entity data model based on table tblEmployee. We have discussed doing this several times, in previous sessions of this video series. Step 2: Add HomeController with the following settings. a) Controller name = HomeController b) Template = MVC controller with read/write actions and views, using Entity Framework c) Model class = Employee d) Data context class = SampleDBContext e) Views = Razor Step 3: Modify the Index() action method in HomeController as shown below. Notice that, we are using OutPutCache attribute to cache the content returned by Index() action method for 10 seconds. [OutputCache(Duration = 10)] public ActionResult Index() { System.Threading.Thread.Sleep(3000); return View(db.Employees.ToList()); } Step 4: Modify code in "Index.cshtml" view as shown below. The modified code is highlighted in Yellow. @model IEnumerable[MVCDemo.Models.Employee] [div style="font-family:Arial"] [p] @Html.ActionLink("Create New", "Create") [/p] [table border="1"] [tr] [td colspan="4"] [b]Employee List retrieved @@ @DateTime.Now.ToString()[/b] [/td] [/tr] [tr] [th] @Html.DisplayNameFor(model =] model.Name) [/th] [th] @Html.DisplayNameFor(model =] model.Gender) [/th] [th] @Html.DisplayNameFor(model =] model.Email) [/th] [th][/th] [/tr] @foreach (var item in Model) { [tr] [td] @Html.DisplayFor(modelItem =] item.Name) [/td] [td] @Html.DisplayFor(modelItem =] item.Gender) [/td] [td] @Html.DisplayFor(modelItem =] item.Email) [/td] [td] @Html.ActionLink("Edit", "Edit", new { id=item.ID }) | @Html.ActionLink("Details", "Details", new { id=item.ID }) | @Html.ActionLink("Delete", "Delete", new { id=item.ID }) [/td] [/tr] } [/table] [/div] When you navigate to /Home/Index, the view ouput is cached for 10 seconds. If you refresh the view, within 10 seconds you will get a cached response. After 10 seconds, the cache expires, code is executed again and the output is cached for another 10 seconds. Caching specific portion of a view using ChildActionOnly attribute: Step 1: Remove OutputCache attribute and the line which calls Thread.Sleep(), from the Index() action method in HomeController. After the changes, the Index() action method should be as shown below. public ActionResult Index() { return View(db.Employees.ToList()); } Step 2: Add GetEmployeeCount() action method to HomeController. Notice that, this method is decorated with OutputCache and ChildActionOnly attributes. // Child actions can be used to implement partial caching, // although not necessary. In this case, even if the ChildActionOnly // attribue is removed, a portion of the view will be cached as expected [ChildActionOnly] [OutputCache(Duration = 10)] public string GetEmployeeCount() { return "Employee Count = " + db.Employees.Count().ToString() + "@ " + DateTime.Now.ToString(); } Step 3: Copy and paste the following code, just below the closing table tag in Index.cshtml view. [br /][br /] [b] @Html.Action("GetEmployeeCount") [/b] Navigate to /Home/Index. Notice that, everytime you refresh the page, the time in the section of the page that displays employee list changes, but not the time, that displays the employee count. This proves that, only a portion of the view, is cached. Make sure to replace [ with LESSTHAN and ] with GREATERTHAN symbol.
Views: 73886 kudvenkat
125 Different Ways For Sharing information from Servlet to Servlet | adv java Servlet tutorial
 
09:42
Different Ways For #Sharing #information #from #Servlet #to #Servlet: #advance #java #servlet #programming #tutorial 1)Using RequestDispatcher include() and forward() method: --------------------------------------------------------- request.setAttribute("name", "Yogesh"); request.getRequestDispatcher("/homeServlet").forward(req,res); OR request.getRequestDispatcher("/addStudent.jsp").include(req,res); 2) Using HttpServletResponse sendRedirect() method: -------------------------------------------------- response.sendRedirect("welcomeServlet"); 3) Using ServletContext setAttribute() and getAttribute() methods. ------------------------------------------------------------ one Servlet context which is shared by all the servlets We can use in each servlet: getServletContext().getInitParameter("driver"); 4) Using Java's system-wide Properties list -------------------------------------------- import java.util.*; public class PropertiesTest { public static void main(String args[]) { Properties prop= new Properties(); Set String key; prop.put("driver", "oracle.jdbc.driver.OracleDriver"); // Show all Countries and capitals in hashtable. key= prop.keySet(); // get set-view of keys Iterator itr = key.iterator(); while(itr.hasNext()) { str = (String) itr.next(); System.out.println("The key is" +str + " name is " + prop.getProperty(str) + "."); } } } 5) Using singleton class object: ------------------------------- Singleton is desing pattern which allows to create only one object, that single object will act as gloabal access point. public class JavaContext{ private static Javacontext ctx = new Javacontext(); private String dname ="com.gjt.mysql.Driver"; private Javacontext(){ } public static Javacontext getInstance(){ return ctx; } public String getname(){ return name; } }
Views: 77 tech fort
OC FEDERAL COURTHOUSE SECURITY WANTS ME OFF THE PROPERTY...1ST AMENDMENT AUDIT
 
10:58
THIS IS A EDUCATIONAL VIDEO ON THE 1ST AMENDMENT, FREEDOM OF THE PRESS AND THE FREEDOM OF SPEECH FILMING IN PUBLIC AT THE FEDERAL BUILDING AND APPROACHED BY SECURITY JUST TO GET SHUT DOWN HELP SUPPORT THE CAUSE. TO HELP KEEP THESE EDUCATIONAL VIDEOS COMING BY DONATING TO.. SGV NEWS FIRST https://www.gofundme.com/sgv-news-first
Views: 49786 SGV NEWS FIRST
1st amendment audit, Got a 1st name?Yep. Can i have it? No!
 
04:49
Marion county detention center re audit and my main camera goes down, still captured the audio with my second camera which was pointed to high. Like, share and subscribe!
Views: 80199 rogue nation
Python Tutorial: Variable Scope - Understanding the LEGB rule and global/nonlocal statements
 
20:59
In this Python Tutorial, we will be going over variable scope in Python. Scope is important because we need to understand it in just about every program we write. It allows us to understand where our variables can be seen from within our program and also what values these variables hold. It also helps with debugging, because scope is a common problem when errors are thrown. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Scope ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 83357 Corey Schafer
2013 Isaac Asimov Memorial Debate: The Existence of Nothing
 
01:54:00
The concept of nothing is as old as zero itself. How do we grapple with the concept of nothing? From the best laboratory vacuums on Earth to the vacuum of space to what lies beyond, the idea of nothing continues to intrigue professionals and the public alike. Join moderator and Hayden Planetarium Director Neil deGrasse Tyson as he leads a spirited discussion with a group of physicists, philosophers and journalists about the existence of nothing. The event, which was streamed live to the web, took place at the American Museum of Natural History on March 20, 2013. PANELISTS: J. Richard Gott, professor of astrophysical sciences, Princeton University, and author of Sizing Up the Universe: The Cosmos in Perspective Jim Holt, science journalist and author of Why Does the World Exist? An Existential Detective Story Lawrence Krauss, professor of physics, Arizona State University and author of A Universe from Nothing: Why There is Something Rather Than Nothing Charles Seife, professor of journalism, New York University, and author of Zero: The Biography of a Dangerous Idea Eve Silverstein, professor of physics, Stanford University, and co-editor of Strings, Branes and Gravity The late Dr. Isaac Asimov, one of the most prolific and influential authors of our time, was a dear friend and supporter of the American Museum of Natural History. In his memory, the Hayden Planetarium is honored to host the annual Isaac Asimov Memorial Debate — generously endowed by relatives, friends, and admirers of Isaac Asimov and his work — bringing the finest minds in the world to the Museum each year to debate pressing questions on the frontier of scientific discovery. Proceeds from ticket sales of the Isaac Asimov Memorial Debates benefit the scientific and educational programs of the Hayden Planetarium. 2017 Isaac Asimov Memorial Debate: De-Extinction https://www.youtube.com/watch?v=_LnAtMeSVeY&index=1&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2016 Isaac Asimov Memorial Debate: Is the Universe a Simulation? https://www.youtube.com/watch?v=wgSZA3NPpBs&index=2&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2015 Isaac Asimov Memorial Debate: Water, Water https://www.youtube.com/watch?v=FSF79uS3t04&index=3&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2014 Isaac Asimov Memorial Debate: Selling Space https://www.youtube.com/watch?v=GbmFeEIKBFI&index=4&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2013 Isaac Asimov Memorial Debate: The Existence of Nothing https://www.youtube.com/watch?v=1OLz6uUuMp8&index=5&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2012 Isaac Asimov Memorial Debate: Faster Than the Speed of Light https://www.youtube.com/watch?v=5qlLW60wOjo&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ&index=6 2011 Isaac Asimov Memorial Debate: The Theory of Everything https://www.youtube.com/watch?v=Eb8_3BUHcuw&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ&index=7 Rose Center Anniversary Isaac Asimov Debate: Is Earth Unique? https://www.youtube.com/watch?v=9Ji_GdAk9vU&index=8&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ&t=25s *** Subscribe to our channel: http://www.youtube.com/subscription_center?add_user=AMNHorg Check out our full video catalog: http://www.youtube.com/user/AMNHorg Facebook: http://fb.com/naturalhistory Twitter: http://twitter.com/amnh Tumblr: http://amnhnyc.tumblr.com/ Instagram: http://instagram.com/amnh
2016 Isaac Asimov Memorial Debate: Is the Universe a Simulation?
 
02:00:59
What may have started as a science fiction speculation—that perhaps the universe as we know it is a computer simulation—has become a serious line of theoretical and experimental investigation among physicists, astrophysicists, and philosophers. Neil deGrasse Tyson, Frederick P. Rose Director of the Hayden Planetarium, hosts and moderates a panel of experts in a lively discussion about the merits and shortcomings of this provocative and revolutionary idea. The 17th annual Isaac Asimov Memorial Debate took place at The American Museum of Natural History on April 5, 2016. #IsaacAsimov #debates #simulations #universe 2016 Asimov Panelists: David Chalmers Professor of philosophy, New York University Zohreh Davoudi Theoretical physicist, Massachusetts Institute of Technology James Gates  Theoretical physicist, University of Maryland Lisa Randall Theoretical physicist, Harvard University Max Tegmark  Cosmologist, Massachusetts Institute of Technology The late Dr. Isaac Asimov, one of the most prolific and influential authors of our time, was a dear friend and supporter of the American Museum of Natural History.  In his memory, the Hayden Planetarium is honored to host the annual Isaac Asimov Memorial Debate — generously endowed by relatives, friends, and admirers of Isaac Asimov and his work — bringing the finest minds in the world to the Museum each year to debate pressing questions on the frontier of scientific discovery.  Proceeds from ticket sales of the Isaac Asimov Memorial Debates benefit the scientific and educational programs of the Hayden Planetarium. 2017 Isaac Asimov Memorial Debate: De-Extinction https://www.youtube.com/watch?v=_LnAtMeSVeY&index=1&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2016 Isaac Asimov Memorial Debate: Is the Universe a Simulation? https://www.youtube.com/watch?v=wgSZA3NPpBs&index=2&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2015 Isaac Asimov Memorial Debate: Water, Water https://www.youtube.com/watch?v=FSF79uS3t04&index=3&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2014 Isaac Asimov Memorial Debate: Selling Space https://www.youtube.com/watch?v=GbmFeEIKBFI&index=4&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2013 Isaac Asimov Memorial Debate: The Existence of Nothing https://www.youtube.com/watch?v=1OLz6uUuMp8&index=5&t=25s&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ 2012 Isaac Asimov Memorial Debate: Faster Than the Speed of Light https://www.youtube.com/watch?v=5qlLW60wOjo&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ&index=6 2011 Isaac Asimov Memorial Debate: The Theory of Everything https://www.youtube.com/watch?v=Eb8_3BUHcuw&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ&index=7 Rose Center Anniversary Isaac Asimov Debate: Is Earth Unique? https://www.youtube.com/watch?v=9Ji_GdAk9vU&index=8&list=PLrfcruGtplwGKzxDI_Ne06NlpOKt-yonZ&t=25s *** Subscribe to our channel: http://www.youtube.com/subscription_c... Check out our full video catalog: http://www.youtube.com/user/AMNHorg Facebook: http://fb.com/naturalhistory Twitter: http://twitter.com/amnh Tumblr: http://amnhnyc.tumblr.com/ Instagram: http://instagram.com/amnh This video and all media incorporated herein (including text, images, and audio) are the property of the American Museum of Natural History or its licensors, all rights reserved. The Museum has made this video available for your personal, educational use. You may not use this video, or any part of it, for commercial purposes, nor may you reproduce, distribute, publish, prepare derivative works from, or publicly display it without the prior written consent of the Museum. © American Museum of Natural History, New York, NY
Part 97   Implement autocomplete textbox functionality in mvc
 
20:42
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/09/part-97-implement-autocomplete-textbox.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd In this video, we will discuss implementing auto-complete functionality in an asp.net mvc application using jQuery Autocomplete Widget. Step 1: We will be using tblStudents table in this demo. Step 2: Create an ado.net entity data model using table tblStudents. Change the name of the generated entity from tblStudent to Student. Step 3: Download autocomplete widget from http://jqueryui.com/download. Step 4: Open "js" folder copy "jquery-1.9.1.js" and "jquery-ui-1.10.3.custom.min.js" files and paste them in the "Scripts" folder of you mvc project. Now open "css" folder. This folder will be present in "ui-lightness" folder. Copy "images" folder and "jquery-ui-1.10.3.custom.min.css" file and paste them in "Content" folder in your mvc project. If you are following along, at this point your solution explorer should look as shown below. Step 5: Right click on the "Controllers" folder and add "Home" controller. Copy and paste the following code. Please make sure to include "MVCDemo.Models" namespace. public class HomeController : Controller { public ActionResult Index() { DatabaseContext db = new DatabaseContext(); return View(db.Students); } [HttpPost] public ActionResult Index(string searchTerm) { DatabaseContext db = new DatabaseContext(); List[Student] students; if (string.IsNullOrEmpty(searchTerm)) { students = db.Students.ToList(); } else { students = db.Students .Where(s =] s.Name.StartsWith(searchTerm)).ToList(); } return View(students); } public JsonResult GetStudents(string term) { DatabaseContext db = new DatabaseContext(); List[string] students = db.Students.Where(s =] s.Name.StartsWith(term)) .Select(x =] x.Name).ToList(); return Json(students, JsonRequestBehavior.AllowGet); } } Step 6: Right click on the "Index" action method in the "HomeController" and add "Index" view. Copy and paste the following code. @model IEnumerable[MVCDemo.Models.Student] [link href="~/Content/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" /] [script src="~/Scripts/jquery-1.9.1.js" type="text/javascript"][/script] [script src="~/Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"][/script] [script type="text/javascript"] $(function () { $('#txtSearch').autocomplete({ source: '@Url.Action("GetStudents")', minLength: 1 }); }); [/script] [div style="font-family:Arial"] @using (@Html.BeginForm()) { [label for="Name"]Name: [/label] @Html.TextBox("searchTerm", null, new { id = "txtSearch" }) [input type="submit" value="Search" /] } [table border="1"] [tr] [th] @Html.DisplayNameFor(model =] model.Name) [/th] [th] @Html.DisplayNameFor(model =] model.Gender) [/th] [th] @Html.DisplayNameFor(model =] model.TotalMarks) [/th] [/tr] @foreach (var item in Model) { [tr] [td] @Html.DisplayFor(modelItem =] item.Name) [/td] [td] @Html.DisplayFor(modelItem =] item.Gender) [/td] [td] @Html.DisplayFor(modelItem =] item.TotalMarks) [/td] [/tr] } [/table] [/div]
Views: 91247 kudvenkat
Best Android Studio Tutorial: How to Parse JSON from URL
 
20:01
The Easiest Android JSON Parsing Tutorial: How to Parse JSON from URL (Android Studio) works on any Android Phone. Please subscribe https://youtube.com/oumsaokosal?sub_confirmation=1 Android Json Parsing Tutorial: How to Parse JSON from URL (Android Studio): In this video, I will teach how to do JSON Arrray Parsing in Android from URL of a website. Did you know there was no easy way to parse JSON from a URL into objects in Android? Originally we used JSONArray class to parse. Later Google released another lib called GSON. It was fairly useful and easy but you still needed to do a lot of code yourself, which consumed a lot of your time. Even worse, you needed to do the same thing over and over again from one project to another. Please note that this tutorial may work on your older Samsung Galaxy, LG, Oppo, Huawei, Sony or Nokia Android phones which run Android Operating Systems depended on their API version. Lately, I discovered a way to make it simpler. Instead of rewriting the code all the time, I created a reusable library. I uploaded the lib on GitHub at https://github.com/kosalgeek/KGJsonConverter. However, I still need GSON to be part of my lib. So you have to download the GSON as well, at http://repo1.maven.org/maven2/com/google/code/gson/gson/2.2.4/gson-2.2.4.pom or you add a Gradle -- compile 'com.google.code.gson:gson:2.2.4' -- in your project. To use that, first you add a model class that has its properties matching to JSON objects. For example, you have a tbl_post table and 4 attributes (post_id, post_title, post_text, image_url). Then by using json_encode() method in PHP, you should get the same object names in JSON. So, in Android you should create class named Post with 4 properties as well. See the sample code below: import com.google.gson.annotations.SerializedName; public class Post { @SerializedName("post_id ") public int post_id; @SerializedName("post_title") public String post_title; @SerializedName("post_text") public String post_text; @SerializedName("image_url") public String image_url; } The SerializeName annotation is the keyword that helps your JSON objects properties match an Android objects properties. You have to make sure they are the same. After that, you need to add another library of mine at https://github.com/kosalgeek/generic_asynctask at read the JSON from URL to Android. You can check another YouTube at https://www.youtube.com/watch?v=e4eFBQmWs8Q to see how to connect Android with PHP, MySQL in details. Finally, what you have to do is to call a one magic line of code: JsonConverter This code will parse the JSON text into objects. You can use that ArrayList for your custom ArrayAdapter to display texts and images in a ListView. But in this video, I make it simpler by just using a text list instead. Stay tuned for another awesome video about the custom ArrayAdapter. Now, you are reaching the end of the Android JSON Parser from URL tutorial. Thanks for watching my video. Don't forget to subscribe for more videos. Like and share it to your friends. If you want cool videos like this, you can follow me: https://youtube.com/user/oumsaokosal https://twitter.com/okosal https://kosalgeek.com Oum Saokosal Photo Credit: The photo (https://www.flickr.com/photos/sergesegal/13974185939/) used in my video cover is copyright (c) by Sergey Galyonkin (https://www.flickr.com/photos/sergesegal/) made it available under Creative Commons (https://creativecommons.org/licenses/by/2.0/). The Creator of Channel Oum Saokosal Android Json Parsing Tutorial
Views: 30807 Oum Saokosal
The Atmosphere
 
12:53
004 - The Atmosphere In this video Paul Andersen explains how the atmosphere surrounds the planet. The state of the atmosphere is climate and is affected by unequal heating, the Coriolis Effect, and the ocean. Convection cells and ENSO are discussed in detail. Do you speak another language? Help me translate my videos: http://www.bozemanscience.com/translations/ Music Attribution Intro Title: I4dsong_loop_main.wav Artist: CosmicD Link to sound: http://www.freesound.org/people/CosmicD/sounds/72556/ Creative Commons Atribution License Outro Title: String Theory Artist: Herman Jolly http://sunsetvalley.bandcamp.com/track/string-theory All of the images are licensed under creative commons and public domain licensing: “Biome.” Wikipedia, the Free Encyclopedia, August 20, 2015. https://en.wikipedia.org/w/index.php?title=Biome&oldid=677028948. Bjankuloski06en, Latitude_and_Longitude_of_the_Earth svg: Djexploderivative work: Македонски: Илустрација На Географската Ширина И Должина На Земјата., February 9, 2013. This file was derived from: Latitude and Longitude of the Earth.svg: https://commons.wikimedia.org/wiki/File:Latitude_and_Longitude_of_the_Earth_mk.svg. Brown Cone, n.d. https://openclipart.org/detail/82747/brown-cone. domain, Robert Simmon, NASA Minor modifications by Robert A. Rohde also released to the public. English: This Map Shows the Pattern of Thermohaline Circulation, March 29, 2008. NASA Earth Observatory. https://commons.wikimedia.org/wiki/File:Thermohaline_Circulation_2.png. “Earth - Free Shapes Icons.” Flaticon. Accessed August 29, 2015. www.flaticon.com/free-icon/earth_44386. en.wikipedia, National Weather Service JetStream Original uploader was Thegreatdr at. English: Cross Section of the Two Main Jet Streams, by Latitude, May 8, 2008. https://commons.wikimedia.org/wiki/File:Jetcrosssection.jpg. “Hadley Cell.” Wikipedia, the Free Encyclopedia, August 15, 2015. https://en.wikipedia.org/w/index.php?title=Hadley_cell&oldid=676237171. Lilly, Florence. English:, February 28, 2013. http://www.public-domain-image.com/public-domain-images-pictures-free-stock-photos/nature-landscapes-public-domain-images-pictures/oceans-public-domain-images-pictures/ocean-water-surface.jpg. https://commons.wikimedia.org/wiki/File:Ocean_water_surface.jpg. “Mountain Summit - Free Nature Icons.” Flaticon. Accessed August 29, 2015. www.flaticon.com/free-icon/mountain-summit_27798. NOAA. NOAA Continental US Weather Forecast Map for Election Day 2012-18-8, [object HTMLTableCellElement]. http://www.wpc.ncep.noaa.gov/noaa/noaa.gif date 08-18-12. https://commons.wikimedia.org/wiki/File:USA_weather_forecast_2006-11-07.gif. “Ocean Current.” Wikipedia, the Free Encyclopedia, July 23, 2015. https://en.wikipedia.org/w/index.php?title=Ocean_current&oldid=672659791. Olsen, Arctic light-Frank. English: Camera: Canon EOS 5D Mark III, September 1, 2013. Own work. https://commons.wikimedia.org/wiki/File:Aurora_and_sunset.jpg. Oyster, Fred the. English: ENSO/El Niño State., September 7, 2014. Own work. https://commons.wikimedia.org/wiki/File:ENSO_-_El_Ni%C3%B1o.svg. ———. English: ENSO Normal State., September 7, 2014. Own work. https://commons.wikimedia.org/wiki/File:ENSO_-_normal.svg. “Ozone Depletion.” Wikipedia, the Free Encyclopedia, August 28, 2015. https://en.wikipedia.org/w/index.php?title=Ozone_depletion&oldid=678301341. Tauʻolunga. English: The Earth at the Start of the 4 (astronomical) Seasons as Seen from the North and Ignoring the Atmosphere (no Clouds, No Twilight)., July 7, 2006. Own work. https://commons.wikimedia.org/wiki/File:North_season.jpg. “The Blue Marble.” Wikipedia, the Free Encyclopedia, July 26, 2015. https://en.wikipedia.org/w/index.php?title=The_Blue_Marble&oldid=673203597.
Views: 574163 Bozeman Science
Neil deGrasse Tyson: Dark Matter, Dark Gravity, Ghost Particles, & the Essence of All Objects
 
07:25
There's something fundamental we all need to understand about dark matter—it may not actually be matter at all. Neil deGrasse Tyson has a bone to pick with this misnomer that is distracting physicists and the public from the real discoveries to be made. Scientists know very little about "dark matter", and in fact it can only be observed indirectly by its effect on other objects. Tyson has a few suggestions for its re-naming: how about "Fred", he jokes, which is a name devoid of any implied meaning—suitable for our current level of knowledge. But if you want it to sound sexy and be accurate, then the way to go is dark gravity, according to Tyson. Why? Because when you add up everything in the universe—the stars, moons, gas clouds, black holes, everything—85% of gravity is unaccounted for. That is so-called "dark matter". What makes it so interesting isn't the wild-goose-chase question of whether or not it exists, but why it doesn't interact with ordinary, known matter? On the way to explaining that dark matter "doesn't give a rats ass about us," Tyson explores ghost particles, the essence of objects, and why we haven't found any dark matter planets. Tyson's new book is Astrophysics for People in a Hurry. Read more at BigThink.com: http://bigthink.com/videos/neil-degrasse-tyson-dark-matter-is-a-misnomer Follow Big Think here: YouTube: http://goo.gl/CPTsV5 Facebook: https://www.facebook.com/BigThinkdotcom Twitter: https://twitter.com/bigthink
Views: 490552 Big Think
Part 62   Implementing search functionality in asp net mvc
 
17:32
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/07/part-62-implementing-search.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss, implementing search page in an asp.net mvc application. We should be able to search by Employee Name and Gender. We will be using table tblEmployee for this demo. Use the script below to create and populate the table with sample data. Create table tblEmployee ( ID int identity primary key, Name nvarchar(50), Gender nvarchar(10), Email nvarchar(50) ) Insert into tblEmployee values('Sara Nani', 'Female', '[email protected]') Insert into tblEmployee values('James Histo', 'Male', '[email protected]') Insert into tblEmployee values('Mary Jane', 'Female', '[email protected]') Insert into tblEmployee values('Paul Sensit', 'Male', '[email protected]') Step 1: Create an empty asp.net mvc 4 application. Step 2: Generate ADO.NET entity data model from database using table tblEmployee. Change the entity name from tblEmployee to Employee. Save changes and build the application. Step 3: Add HomeController with the following settings. a) Controller name = HomeController b) Template = MVC controller with read/write actions and views, using Entity Framework c) Model class = Employee d) Data context class = SampleDBContext e) Views = Razor Step 4: Modify the Index() action method in HomeController as shown below. public ActionResult Index(string searchBy, string search) { if (searchBy == "Gender") { return View(db.Employees.Where(x =] x.Gender == search || search == null).ToList()); } else { return View(db.Employees.Where(x =] x.Name.StartsWith(search) || search == null).ToList()); } } Step 5: Copy and paste the following code in Index.cshtml view. @model IEnumerable[MVCDemo.Models.Employee] @{ ViewBag.Title = "Index"; } [div style="font-family:Arial"] [h2]Employee List[/h2] [p] @using (@Html.BeginForm("Index", "Home", FormMethod.Get)) { [b]Search By:[/b] @Html.RadioButton("searchBy", "Name", true) [text]Name[/text] @Html.RadioButton("searchBy", "Gender") [text]Gender[/text][br /] @Html.TextBox("search") [input type="submit" value="search" /] } [/p] [table border="1"] [tr] [th] @Html.DisplayNameFor(model =] model.Name) [/th] [th] @Html.DisplayNameFor(model =] model.Gender) [/th] [th] @Html.DisplayNameFor(model =] model.Email) [/th] [th]Action[/th] [/tr] @if (Model.Count() == 0) { [tr] [td colspan="4"] No records match search criteria [/td] [/tr] } else { foreach (var item in Model) { [tr] [td] @Html.DisplayFor(modelItem =] item.Name) [/td] [td] @Html.DisplayFor(modelItem =] item.Gender) [/td] [td] @Html.DisplayFor(modelItem =] item.Email) [/td] [td] @Html.ActionLink("Edit", "Edit", new { id = item.ID }) | @Html.ActionLink("Details", "Details", new { id = item.ID }) | @Html.ActionLink("Delete", "Delete", new { id = item.ID }) [/td] [/tr] } } [/table] [/div] Please make sure to replace [ with LESSTHAN and ] with GREATERTHAN symbol.
Views: 138589 kudvenkat
Python Tutorial: File Objects - Reading and Writing to Files
 
24:33
In this Python Tutorial, we will be learning how to read and write to files. You will likely come into contact with file objects at some point while using Python, so knowing how to read and write from them is extremely important. We will learn how to read and write from simple text files, open multiple files at once, and also how to copy image binary files. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-Files Read more about opening in binary mode here: https://docs.python.org/3/library/functions.html#open ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 430046 Corey Schafer
Creating your first aspnet mvc application - Part 3
 
12:30
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/04/creating-your-first-aspnet-mvc.html Slides http://csharp-video-tutorials.blogspot.com/2013/04/creating-your-first-aspnet-mvc.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html ASP.NET MVC Playlist https://www.youtube.com/playlist?list=PL4cyC4G0M1RQAV0xCaEjfwAeaFaUuHXuf All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss about 1. Creating an asp.net mvc application 2. Understand how mvc request is processed as apposed to webform request Creating an mvc application: 1. Open visual studio 2. Click File - New Project 3. Select "Web" from "Installed Templates" section 4. Select ASP.NET MVC 4 Web Application 5. Set Name="MVCDemo" 6. Click OK 7. Select "Empty" template. Select "Razor" as the ViewEngine. There are 2 built in view engines - Razor and ASPX. Razor is preferred by most mvc developers. We will discuss about Razor view engine in detail in a later video session. 8. At this point you should have an mvc application created. Notice that in the solution explorer, you have several folders - Models, Views, Controllers etc. As the names suggest these folders are going to contain Models, Views, and Controllers. We will discuss about Models, Views, and Controllers in a later video session. Now let's add a controller to our project. 1. Right Click on "Controllers" folder 2. Select Add - Controller 3. Set Controller Name = HomeController 4. Leave rest of the defaults and click "Add" We should have HomeController.cs added to "Controllers" folder. At this point run the application by pressing CTRL+F5. Notice that you get an error. To fix this error, we need to add a view with name, "Index". We will discuss about views in detail in a later video session. Let's fix it another way. The following is the function that is automatically added to HomeController class public ActionResult Index() { return View(); } Change the return type of Index() function from "ActionResult" to "string", and return string "Hello from MVC Application" instead of View(). public string Index() { return "Hello from MVC Application"; } Run the application and notice that, the string is rendered on the screen. When you run the application, by default it is using built-in asp.net development server. Let's use IIS, to run the application instead of the built-in asp.net development server. 1. In the solution explorer, right click on the project and select "Properties" 2. Click on "Web" tab 3. Select "Use Local IIS Web Server" radio button 4. Notice that the Project Url is set to http://localhost/MVCDemo by default 5. Finally click on "Create Virtual Directory" button //configuring iis to run mvc application.png Run the application, and notice that the URL is "http://localhost/MVCDemo/" Now change the URL to "http://localhost/MVCDemo/Home/index" In the URL "Home" is the name of the controller and "Index" is the method within HomeController class. So the improtant point to understand is that the URL is mapped to a controller action method. Where as in web applications, the URL is mapped to a physical file. For example, in a web application, if we have to display the same message. 1. We add a webform and in the Page_load() event include Response.Write("Hello from ASP.NET Web Forms Application"); 2. We then access WebForm1.aspx as shown below http://localhost/WebFormsApplication/WebForm1.aspx 3. The Page load event gets executed and the message string is displayed.
Views: 813035 kudvenkat
1A audit, tyrants found, rights violated, lawsuit time
 
06:08
Here is the deal, dropping the wife and kids at the airport(St. Pete airport) to visit grandma. Decide to record our public servants, tyrants approach, dont want to hear about the law. I left under threat of violence having already had my rights violated as I clearly explained the case law and my right to be there, having provided TSA's own policy directly from their website. Now I just got to get the $400 bucks together to file the paperwork. Contact numbers are below along with names of the offenders. Cops were Deputy White Corporal Ron Levy (chick would not id, nor did I catch it on video) Pinellas Co. Sheriff office complaint line (they dont have complaint forms) 727-582-6200 Airport guy was Steven Santamaria Airport operations daytime number 727-453-7816 (Erin Johnson is Ops Manager) Main airport number 727-453-7800 Edited to add this link of why they might be scared of cameras https://www.aol.com/article/news/2017/02/14/tsa-workers-busted-running-100-million-cocaine-smuggling-ring/21713642/?a_dgi=aolshare_facebook&fbclid=IwAR2-iVjgO5czuz7z-LbbalX3cFcjV8Jdghvr8DslkT91lSMJHOZCFtxVWvw
Views: 50172 rogue nation
New clue in search for man pulling emergency brakes on subways
 
01:39
The head of the MTA is raising concerns about recent crimes in the subway -- including someone or a group who has been intentionally pulling the emergency brakes on trains and causing major delays. Officials released a photo of at least one man wanted in the string of crimes. The suspects get onboard like every other subway rider in New York. But unlike other riders, they have a key -- a key that unlocks one of the cabs where they pull the train's emergency brake. And with that, they jump off the train and escape -- often into the subway tunnels. Check out more Eyewitness News - http://7ny.tv/2suJHTd NEW HERE? – Hi! We’re abc7NY, also known as Channel 7 on TV, home to Eyewitness News, New York’s Number 1 news. We hope you love us on YouTube as much as you do on television! OUR SOCIAL MEDIA – FACEBOOK: https://www.facebook.com/ABC7NY/ TWITTER: https://twitter.com/abc7ny INSTAGRAM: https://www.instagram.com/abc7ny/ NEW TIPS: Online: http://abc7ny.com/submit-a-news-tip/2599968/ Phone: 917-260-7700 Email: [email protected] #abc7NY #subway #nyc
The Brain
 
13:56
The Brain: Structure and Function In this video Paul Andersen explains the structures and functions of seventeen major parts of the brain. He begins with a quick discussion of brain evolution and ends with a review of the major parts presented inside the brainstem, cerebellum, thalamus, and cerebrum. Do you speak another language? Help me translate my videos: http://www.bozemanscience.com/translations/ Music Attribution Title: String Theory Artist: Herman Jolly http://sunsetvalley.bandcamp.com/track/string-theory All of the images are licensed under creative commons and public domain licensing: Angelo.romano. SVG Drawing Representing a Number of Sports Icons: Ice Hockey, Athletcs, Basketball and Football (soccer), October 2, 2007. self-made with Inkscape, starting from a number of existing SVG drawings taken from the Wikimedia Commons (namely, Image:Basketball ball.svg, Image:Soccer ball.svg and vectorized versions of Image:Olympic pictogram Ice hockey.png and Image:Olympic pictogram Athletics.png. http://commons.wikimedia.org/wiki/File:All_sports_drawing.svg. Bradley, M M, and P J Lang. "Measuring Emotion: The Self-Assessment Manikin and the Semantic Differential." Journal of Behavior Therapy and Experimental Psychiatry 25, no. 1 (March 1994): 49--59. caustic, lunar. Approximately 6 Weeks from Conception, I.e. 8 Weeks from LMP. Shot with 105 Mm Micro-NIKKOR Lens with 2 off Camera SB-800's. Specimen Is Submerged in Alcohol. This Is a Spontaneous (ie. Not a Termination) Abortion. It Was Extruded Intact with the Gestational Sac Surrounded by Developing Placental Tissue and Decidual Tissue. This Was Carefully Opened to Avoid Damaging the Embryo., January 23, 2009. Embryo. http://commons.wikimedia.org/wiki/File:Human_Embryo_-_Approximately_8_weeks_estimated_gestational_age.jpg. College, OpenStax. Illustration from Anatomy & Physiology, Connexions Web Site. http://cnx.org/content/col11496/1.6/, Jun 19, 2013., [object HTMLTableCellElement]. Anatomy & Physiology, Connexions Web site. http://cnx.org/content/col11496/1.6/, Jun 19, 2013. http://commons.wikimedia.org/wiki/File:1810_Major_Pituitary_Hormones.jpg. Dobschütz, Sigismund von. Deutsch: Welpe, May 27, 2011. Own work. http://commons.wikimedia.org/wiki/File:Welpe_2011.JPG. "File:1421 Sensory Homunculus.jpg." Wikipedia, the Free Encyclopedia. Accessed February 19, 2014. http://en.wikipedia.org/wiki/File:1421_Sensory_Homunculus.jpg. "File:Animal Diversity.png." Wikipedia, the Free Encyclopedia. Accessed February 18, 2014. http://en.wikipedia.org/wiki/File:Animal_diversity.png. "File:Basal Ganglia Circuits.svg." Wikipedia, the Free Encyclopedia, January 27, 2014. http://en.wikipedia.org/w/index.php?title=File:Basal_ganglia_circuits.svg&oldid=469762706. "File:Bilaterian-Plan.svg." Wikipedia, the Free Encyclopedia. Accessed February 18, 2014. http://en.wikipedia.org/wiki/File:Bilaterian-plan.svg. "File:Corpus Callosum.png." Wikipedia, the Free Encyclopedia. Accessed February 19, 2014. http://en.wikipedia.org/wiki/File:Corpus_callosum.png. "File:EmbryonicBrain.svg." Wikipedia, the Free Encyclopedia. Accessed February 18, 2014. http://en.wikipedia.org/wiki/File:EmbryonicBrain.svg. "File:Lobes of the Brain NL.svg." Wikipedia, the Free Encyclopedia. Accessed February 19, 2014. http://en.wikipedia.org/wiki/File:Lobes_of_the_brain_NL.svg. "File:Skull and Brain Normal Human.svg." Wikipedia, the Free Encyclopedia. Accessed February 18, 2014. http://en.wikipedia.org/wiki/File:Skull_and_brain_normal_human.svg. "File:Tiburón.jpg." Wikipedia, the Free Encyclopedia. Accessed February 18, 2014. http://en.wikipedia.org/wiki/File:Tibur%C3%B3n.jpg. GerryShaw. English: Cortical Neuron Stained with Antibody to Neurofilament Subunit NF-L in Green. In Red Are Neuronal Stem Cells Stained with Antibody to Alpha-Internexin. Image Created Using Antibodies from EnCor Biotechnology Inc., February 4, 2000. Own work. http://commons.wikimedia.org/wiki/File:Neuron_in_tissue_culture.jpg. Government, U. S. The Seal of the President of the United States. The Blazon Is Defined in Executive Order 10860 As:, [object HTMLTableCellElement]. Extracted from PDF version of Federal Assistance for Impacted Communities guide, archived here, with some small cleanups. http://commons.wikimedia.org/wiki/File:US-President-Seal.svg. Griffiths, Si. English: Brick Wall, March 12, 2005. Own work. http://commons.wikimedia.org/wiki/File:Brick_Wall.jpg. Hagens, Wouter. English: Kitten about 2 Months Old, December 3, 2013. Own work. http://commons.wikimedia.org/wiki/File:20131203_kitten_B.jpg. Häggström, Mikael. English: Organ Adapted for Use in Häggström Diagrams, January 16, 2008. Image:Gray970.png (Public domain license). http://commons.wikimedia.org/wiki/File:Heart_and_lung.gif. illustrator, Patrick J. Lynch, medical. Brain Human Sagittal Section, December 23, 2006. Patrick J. Lynch, medical illustrator.
Views: 2639132 Bozeman Science
Consuming ASP NET Web Service in AngularJS using $http
 
14:37
consuming asp.net web service in anggularjs using $http In this video we will discuss how to consume an ASP.NET Web Service in an AngularJS application. Let us understand this step by step from creating an ASP.NET web service to consuming it in an Angular application. Here is what we want to do 1. Create an ASP.NET Web service. This web service retrieves the data from SQL Server database table, returns it in JSON formt. 2. Call the web service using AngularJS and display employee data on the web page web.config file settings [?xml version="1.0" encoding="utf-8"?] [configuration] [connectionStrings] [add name="DBCS" connectionString="server=.;database=SampleDB; integrated security=SSPI"/] [/connectionStrings] [system.web] [webServices] [protocols] [add name="HttpGet"/] [/protocols] [/webServices] [/system.web] [/configuration] WebService (ASMX) using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Web.Script.Serialization; using System.Web.Services; namespace Demo { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] [System.Web.Script.Services.ScriptService] public class EmployeeService : System.Web.Services.WebService { [WebMethod] public void GetAllEmployees() { List[Employee] listEmployees = new List[Employee](); string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("Select * from tblEmployees", con); con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { Employee employee = new Employee(); employee.id = Convert.ToInt32(rdr["Id"]); employee.name = rdr["Name"].ToString(); employee.gender = rdr["Gender"].ToString(); employee.salary = Convert.ToInt32(rdr["Salary"]); listEmployees.Add(employee); } } JavaScriptSerializer js = new JavaScriptSerializer(); Context.Response.Write(js.Serialize(listEmployees)); } } } Script.js var app = angular .module("myModule", []) .controller("myController", function ($scope, $http) { $http.get("EmployeeService.asmx/GetAllEmployees") .then(function (response) { $scope.employees = response.data; }); }); HtmlPage1.html [!DOCTYPE html] [html xmlns="http://www.w3.org/1999/xhtml"] [head] [title][/title] [script src="Scripts/angular.js"][/script] [script src="Scripts/Script.js"][/script] [link href="Styles.css" rel="stylesheet" /] [/head] [body ng-app="myModule"] [div ng-controller="myController"] [table] [thead] [tr] [th]Id[/th] [th]Name[/th] [th]Gender[/th] [th]Salary[/th] [/tr] [/thead] [tbody] [tr ng-repeat="employee in employees"] [td]{{employee.id}}[/td] [td]{{employee.name}}[/td] [td]{{employee.gender}}[/td] [td]{{employee.salary}}[/td] [/tr] [/tbody] [/table] [/div] [/body] [/html] Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/11/consuming-aspnet-web-service-in.html
Views: 230463 kudvenkat
Old School Trick Shots | Dude Perfect
 
06:41
It’s time to look old! Special thanks to the Uncle Drew movie for sponsoring this video! Click here to get your tickets now: http://dudeperfect.com/UncleDrewMovie/ Don’t miss Kyrie, Shaq, and the rest of their crew of NBA all stars channel their old-man alter egos when Uncle Drew hits theaters on June 29th. ► Click HERE to subscribe to Dude Perfect! http://bit.ly/SubDudePerfect Music by Sam Tinnesz - Legends Are Made ► Click HERE to download: http://dudeperfect.com/LegendsAreMade ► Click HERE to watch our most recent videos! http://bit.ly/NewestDudePerfectVideos http://bit.ly/NewestDPVideos ► SHOP our NEW Merchandise! - http://bit.ly/DPStore ►Click HERE to join the exclusive Dude Perfect T-Shirt Club! http://bit.ly/DPTShirtClub Play our NEW iPhone game! ► PLAY Endless Ducker on iPhone -- http://smarturl.it/EndlessDucker ► PLAY Endless Ducker on Android -- http://smarturl.it/EndlessDucker ► VISIT our NEW STORE - http://bit.ly/DPStore ► JOIN our NEWSLETTER - http://bit.ly/DPNewsletterEndCard ► WATCH our STEREOTYPES - http://bit.ly/StereotypesPlaylist In between videos we hang out with you guys on Instagram, Snapchat, Twitter, and Facebook so pick your favorite one and hang with us there too! http://Instagram.com/DudePerfect http://bit.ly/DudePerfectSnapchat http://Twitter.com/DudePerfect http://Facebook.com/DudePerfect Do you have a GO BIG mindset? See for yourself in our book "Go Big." ►http://amzn.to/OYdZ2s A special thanks to those of you who play our iPhone Games and read our book. You guys are amazing and all the great things you tell us about the game and the book make those projects so worthwhile for us! Dude Perfect GAME - http://smarturl.it/DPGameiPhone Dude Perfect BOOK - "Go Big" - http://amzn.to/OYdZ2s Click here if you want to learn more about Dude Perfect: http://www.dudeperfect.com/blog-2/ Bonus points if you're still reading this! Comment: Do old school editor edition 2! As always...Go Big and God Bless! - Your friends at Dude Perfect Business or Media, please contact us at: [email protected] ------------ 5 Best Friends and a Panda. If you like Sports + Comedy, come join the Dude Perfect team! Best known for trick shots, stereotypes, battles, bottle flips, ping pong shots and all around competitive fun, Dude Perfect prides ourselves in making the absolute best family-friendly entertainment possible! Welcome to the crew! Pound it. Noggin. - Dude Perfect
Views: 32840374 Dude Perfect
Part 1   Introduction to asp net web services
 
15:15
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/11/part-1-introduction-to-aspnet-web.html Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss 1. Creating a simple asp.net web service 2. Technologies (HTTP, XML, SOAP) that are used with asp.net web services Please Note: ASMX web services are a legacy technology. Most of the companies are now using WCF (Windows Communication Foundation) to build XML Web services and XML Web service clients. However, this course will be useful for those who are searching for a job as a dot net developer as there are some companies still using ASMX web services today, and could ask interview questions related to them. In WCF video series we will discuss building XML Web Services and clients. What are web services and why should we use web services? Web services are a standardized way for developing interoperable applications i.e enabling an application to invoke a method of another application. These applications can be on the same computer or different computers. Web services use open standards and protocols like HTTP, XML and SOAP. Since these are open and well known protocols, applications built on any platform can interoperate with web services. For example, a JAVA application can interoperate with a web service built using .NET. Similarly a web service built using JAVA can be consumed by a .NET application. Hyper Text Transfer Protocol (HTTP) is the protocl widely used by web services to send and receive messages. The messaging protocol is SOAP. SOAP stands for Simple Object Access Protocol. SOAP messages are in XML format. Building ASP.NET web services Building ASP.NET web services is easy. Here are the steps. Step 1: Create a an ASP.NET Empty Web Application and name it WebServicesDemo. Step 2: Right click on WebServicesDemo project in solution explorer and add - New Item. From the Add New Item dialog box select Web Service. Change the name of the WebService1.asmx to CalculatorWebServices.asmx. Web Services have .asmx extension. For this reason web services are also often called as ASMX web services. Notice that a webservice is a class that is decorated with [WebService] attribute and inherits from System.Web.Services.WebService base class. The [WebService] attribute tells that the this class contains the code for a web service. WebService Namespace is used to uniquely identify your web service on the internet from other services that are already there on the Web. WebService Namespace can be any string, but it is common to give it a company's internet domain name as they are usually unique. Something like [WebService(Namespace = "http://pragimtech.com/webservices")] It is not mandatory for a web service to inherit from System.Web.Services.WebService base class. However, if the web service has to use ASP.NET session or application state objects, then inheriting from System.Web.Services.WebService base class will provide direct access to these asp.net objects. To allow a web service to be called from Javascript, using ASP.NET AJAX, then decorate the web service class with [System.Web.Script.Services.ScriptService] attribute. In a later video session, we will discuss calling a web service using asp.net AJAX. Step 3: Copy and paste the following code in CalculatorWebServices.asmx using System.Web.Services; namespace WebServicesDemo { [WebService(Namespace = "http://pragimtech.com/webservices")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class CalculatorWebServices : System.Web.Services.WebService { [WebMethod] public int Add(int firstNumber, int secondNumber) { return firstNumber + secondNumber; } } } Notice that, the CalculatorWebServices class contains a single method called Add(). This method adds 2 numbers and return the sum. This method is decorated with [WebMethod] attribute. If you want the method exposed as part of the Web service, then the method must be public and should be decorated with [WebMethod] attribute. This attribute has got several properties which can be used to configure the behavior of the XML Web service method. We will discuss these properties in a later video session. At this point we are done building a web service. Run the application by pressing CTRL + F5. Notice that the Add() method that we created in the web service is displayed on the page. Clicking on the method name will take you to page where you can test the method. This page also shows the format of the SOAP request and response messages. SOAP 1.2 is a new version with some major changes. For all the differences between them please refer to the following link http://www.w3.org/2003/06/soap11-soap12.html
Views: 437734 kudvenkat
Positive and Negative Charge
 
05:24
007 - Positive and Negative Charge In this video Paul Andersen explains how all objects contain positive and negative charge. Neutral objects contain an equal amount of positive and negative charges. Charged objects have more positive or negative charges. Like charges repel and unlike charges attract. Neutral objects can be polarized and cause attraction. Do you speak another language? Help me translate my videos: http://www.bozemanscience.com/translations/ Music Attribution Title: String Theory Artist: Herman Jolly http://sunsetvalley.bandcamp.com/track/string-theory All of the images are licensed under creative commons and public domain licensing: AJ. A Blue Balloon on a Ribbon, July 18, 2008. Open clip Art Library image's page. http://commons.wikimedia.org/wiki/File:Blue_toy_balloon.svg. ———. A Red Balloon on a Ribbon, July 18, 2008. Open clip Art Library image's page. http://commons.wikimedia.org/wiki/File:Red_toy_balloon.svg. "Balloons and Static Electricity." PhET. Accessed May 5, 2014. https://phet.colorado.edu/en/simulation/balloons.
Views: 176537 Bozeman Science
4.Models in mvc in Hindi
 
07:59
In this video we will discuss models in an mvc application. Let's understand models with an example. We want to retrieve an employee information from tblEmployee table and display it in a view. To encapsulate Employee information, add Employees model class to the Models folder. To do this 1. Right click on "Models" folder - Add - Class 2. Name the class as Employee.cs 3. Click "Add" Copy and paste the following code in Employees.cs class file. public class Employees { public int Id{ get; set; } public string Name { get; set; } public string Gender { get; set; } public string Salary{ get; set; } } Now let's Add HomeController class to "Controllers" folder. To do this 1. Right click on "Controllers" folder - Add - Controller 2. Use HomeController as the name 3. Click "Add" We want to use "Employee" model class in EmployeeController. So copy and paste the following "using" statement in "EmployeeController.cs" using MVCDemo.Models; By default an Index() Action method is created in EmployeeController. Change the name of the function to Details(). Create an instance of Employee class. For now we will hard code Employee data in this class. In a later video session, we will discuss about retrieving employee information from the database table tblEmployee. At this point EmployeeController should look as shown below. public ActionResult Index() { Employees emp = new Employees() { Id = 1, Name = "Jara", Gender = "Female", Salary = 70000 }; return View(emp); } 1. Right click on Index() action method and select "Add View" from the context menu 2. Set a)View Name = Index b)View Engine = Razor c)Select "Create strongly typed view" check box d)From the "Model class" dropdownlist, select "Employee (MVCDemo.Models)" Note: If Employees class is not visible in the dropdownlist, please build your project and then try adding the view again. 3. Finally click "Add"
Views: 149 Seema Gupta
Electron Configuration
 
10:17
005 - Electron Configuration In this video Paul Andersen explains how to write out the electron configuration for atoms on the periodic table. More importantly he shows you why electrons arrange themselves in shells, subshells and orbitals by using Coulomb's law and studying the first ionization energies of different atoms. ANSWERS: Cl - [Ne] 3s^2 3p^5 Ag - [Kr] 4d^10 5s^1 - Did you get [Kr] 5s^2 4d^9? There are a few exceptions to this law. Most of them are found in the f-block metals and they are not of much chemical significance. Music Attribution Title: String Theory Artist: Herman Jolly http://sunsetvalley.bandcamp.com/track/string-theory All of the images are licensed under creative commons and public domain licensing: File:Electron Configuration Diagrams from H to Ne.svg, n.d. http://commons.wikimedia.org/wiki/File:Electron_configuration_diagrams_from_H_to_Ne.svg. "File:Electron Orbitals.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. https://en.wikipedia.org/wiki/File:Electron_orbitals.svg. "File:Electron Shell 001 Hydrogen - No Label.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. http://en.wikipedia.org/wiki/File:Electron_shell_001_Hydrogen_-_no_label.svg. "File:Electron Shell 002 Helium - No Label.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. http://en.wikipedia.org/wiki/File:Electron_shell_002_Helium_-_no_label.svg. "File:Electron Shell 003 Lithium - No Label.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. http://en.wikipedia.org/wiki/File:Electron_shell_003_Lithium_-_no_label.svg. "File:Electron Shell 004 Beryllium - No Label.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. http://en.wikipedia.org/wiki/File:Electron_shell_004_Beryllium_-_no_label.svg. "File:Empirical Atomic Radius Trends.png." Wikipedia, the Free Encyclopedia. Accessed August 1, 2013. http://en.wikipedia.org/wiki/File:Empirical_atomic_radius_trends.png. "File:First Ionization Energy.svg." Wikipedia, the Free Encyclopedia. Accessed August 1, 2013. http://en.wikipedia.org/wiki/File:First_Ionization_Energy.svg. "File:Klechkovski Rule.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. http://en.wikipedia.org/wiki/File:Klechkovski_rule.svg. "File:Periodic Table 2.svg." Wikipedia, the Free Encyclopedia. Accessed July 31, 2013. https://en.wikipedia.org/wiki/File:Periodic_Table_2.svg. "File:Periodic Trends.svg." Wikipedia, the Free Encyclopedia. Accessed August 1, 2013. http://en.wikipedia.org/wiki/File:Periodic_trends.svg. "File:Periodic Variation of Pauling Electronegativities.png." Wikipedia, the Free Encyclopedia. Accessed August 1, 2013. http://en.wikipedia.org/wiki/File:Periodic_variation_of_Pauling_electronegativities.png. RJHall. Ionization Energies of Neutral Elements, in Units of eV., October 10, 2010. File:Ionization energies.png. http://commons.wikimedia.org/wiki/File:Ionization_energies.svg.
Views: 2166489 Bozeman Science
Python Tutorial: Datetime Module - How to work with Dates, Times, Timedeltas, and Timezones
 
27:49
In this Python Tutorial, we will be learning how to use the datetime module. The datetime module is important to understand, because you will be working with dates and times in just about every application you write. We will look at how to work with dates, times, datetimes, timedeltas, and timezones. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Datetime ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 134890 Corey Schafer
Fundamental Particles
 
04:20
002 - Fundamental Particles In this video Paul Andersen explains how at the smallest level all matter is made of fundamental particles; including quarks, electron, photons and neutrinos. He explains how understanding the properties of these particles allows us to understand the behavior of the matter. Do you speak another language? Help me translate my videos: http://www.bozemanscience.com/translations/ Music Attribution Title: String Theory Artist: Herman Jolly http://sunsetvalley.bandcamp.com/track/string-theory All of the images are licensed under creative commons and public domain licensing: Bewick, Sharon. English: An Ant Surfing a Light Wave., February 22, 2010. File:High School Chemistry.pdf, page 191. http://commons.wikimedia.org/wiki/File:An_ant_surfing_a_light_wave.png. Electron_shell_026_Iron.svg:Pumbaa. Description: Electron Shell Diagram for Iron, the 26th Element in the Periodic Table of Elements. * Author: Pumbaa (original Work by Greg Robson) * Application: (generated by Script) ==, 08:36 (UTC). Electron_shell_026_Iron.svg. http://commons.wikimedia.org/wiki/File:Electron_shell_026_Iron_(el).svg. "File:Iron Electrolytic and 1cm3 Cube.jpg." Wikipedia, the Free Encyclopedia, April 13, 2014. http://en.wikipedia.org/w/index.php?title=File:Iron_electrolytic_and_1cm3_cube.jpg&oldid=468132446. "File:Quark Structure Neutron.svg." Wikipedia, the Free Encyclopedia. Accessed April 26, 2014. http://en.wikipedia.org/wiki/File:Quark_structure_neutron.svg. "File:Standard Model of Elementary Particles.svg." Wikipedia, the Free Encyclopedia. Accessed April 26, 2014. http://en.wikipedia.org/wiki/File:Standard_Model_of_Elementary_Particles.svg. Horvath, Made by Arpad. English: The Quark Structure of the Proton. There Are Two up Quarks in It and One down Quark. The Strong Force Is Mediated by Gluons (wavey). The Strong Force Has Three Types of Charges, the so-Called Red, Green and the Blue. Note That the Choice of Green for the down Quark Is Arbitrary; the "Color Charge" Is Thought of as Circulating among the Three Quarks., March 16, 2006. Made by Arpad Horvath This vector image was created with Inkscape. http://commons.wikimedia.org/wiki/File:Quark_structure_proton.svg. user:MissMJ. English: Electron Neutrino, February 16, 2013. File:Standard Model of Elementary Particles.svg. http://commons.wikimedia.org/wiki/File:Electron_neutrino.svg.
Views: 106896 Bozeman Science
Part5 Introduction to MVC within ASP.Net project - C#
 
06:05
using System.Data.Entity; namespace MvcDemo.Models{public class item{public int id { get; set; }public string name { get; set; }public int price { get; set; } public int quantity { get; set; } public Boolean discountYes { get; set; } public Boolean discountNo { get; set; } public string category { get; set; } }public class itemDBContext : DbContext { // public DbSet .............................................itemsss { get; set; } }
Views: 111 Aiman Turani
Python OOP Tutorial 5: Special (Magic/Dunder) Methods
 
13:50
In this Python Object-Oriented Tutorial, we will be learning about special methods. These are also called magic or dunder methods. These methods allow us to emulate built-in types or implement operator overloading. These can be extremely powerful if used correctly. We will start by writing a few special methods of our own and then look at how some of them are used in the Standard Library. Let's get started. Python Docs: https://docs.python.org/3/reference/datamodel.html#special-method-names Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 232035 Corey Schafer
Python Tutorial: Working with JSON Data using the json Module
 
20:34
In this Python Programming Tutorial, we will be learning how to work with JSON data. We will learn how to load JSON into Python objects from strings and how to convert Python objects into JSON strings. We will also see how to load JSON from a file and save those Python objects back to files. Let's get started... The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-JSON Python File Objects: https://youtu.be/Uh2ebFW8OYM ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 188348 Corey Schafer
How to use Java this keyword
 
06:28
package com.practice.java; //1) this: to refer current class instance variable class Student{ // This is a class int rollno; String name; // some variables float fee; Student(int rollno,String name,float fee){ this.rollno=rollno; this.name=name; this.fee=fee; } // constructor but see here int rollno; as same name as constructor parameter name rollno=rollno; void display(){ System.out.println(rollno+" "+name+" "+fee); } // and a method to desplay the three property. } public class ThisUse { public static void main(String[] args) { Student s1=new Student(111,"ankit",5000f); // create two instance Student s2=new Student(112,"sumit",6000f); s1.display(); // call the display method , now see what will be the output s2.display(); } } //// here output is null because //rollno=rollno; //name=name; //fee=fee; // here 2 names are same so we need to use the "this" keyword, ok? //so here this is use for //1) this: to refer current class instance variable // thanks for watching
Views: 29 Anjan Biswas
Python OOP Tutorial 3: classmethods and staticmethods
 
15:20
In this Python Object-Oriented Tutorial, we will be learning about classmethods and staticmethods. Class methods are methods that automatically take the class as the first argument. Class methods can also be used as alternative constructors. Static methods do not take the instance or the class as the first argument. They behave just like normal functions, yet they should have some logical connection to our class. We will look at some examples of both of these in order to understand both in depth. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 433761 Corey Schafer