Tutorial by Examples: app

Step 1 : Install the node-inspector package using npm globally on you machine $ npm install -g node-inspector Step 2 : Start the node-inspector server $ node-inspector Step 3 : Start debugging your node application $ node --debug-brk your/short/node/script.js Step 4 : Open http://127.0....
Steps: Create Empty .Net Core Web App: Go to wwwroot, and create a normal html page called Index.html: Configure Startup.cs to accept static files (this will require to add "Microsoft.AspNetCore.StaticFiles": "1.0.0" library in the “project.json” file): ...
The most basic way to structure your code using spring boot for good automatic package scanning is using @SpringBootApplication annotation. This annotation provide in itself 3 other annotations that helps with automatic scanning: @SpringBootConfiguration, @EnableAutoConfiguration, @ComponentScan (mo...
QtCreator is, at the moment, the best tool to create a Qt application. In this example, we will see how to create a simple Qt application which manage a button and write text. To create a new application click on File->New File or Project: Then choose the Projects->Application->Qt Widge...
So let's say again that you have the following model: public class Person { public int PersonId { get; set; } public string Name { get; set; } } public class Car { public int CarId { get; set; } public string LicensePlate { get; set; } } public class MyDemoContext : DbContext ...
Mapping one-to-one (when both sides are required) is also a tricky thing. Let's imagine how this could be represented with foreign keys. Again, a CarId in People that refers to CarId in Car, and a PersonId in Car that refers to the PersonId in People. Now what happens if you want to insert a car r...
And to finish off, let's briefly look at the case when both sides are optional. By now you should be really bored with these examples :), so I'm not going into the details and play with the idea of having two FK-s and the potential problems and warn you about the dangers of not enforcing these rule...
So let's say you have two different entities, something like this: public class Person { public int PersonId { get; set; } public string Name { get; set; } } public class Car { public int CarId { get; set; } public string LicensePlate { get; set; } } public class MyDemoCon...
In the last example, you can see that EF figures out which column is the foreign key and where should it point to. How? By using conventions. Having a property of type Person that is named Person with a PersonId property leads EF to conclude that PersonId is a foreign key, and it points to the prima...
In the previous examples a car cannot exist without a person. What if you wanted the person to be optional from the car side? Well, it's kind of easy, knowing how to do one-to-many. Just change the PersonId in Car to be nullable: public class Car { public int CarId { get; set; } public s...
Master process spawns server and client applications with a single process for each application. Server opens a port and client connects to that port. Then client sends data to server with MPI_Send to verify that the connection is established. master.c #include "mpi.h" int main(int ar...
Test Automation is broad topic. DEV/QA should delve on this questions first: What is nature of product? (Web, Mobile, Cloud, IOT, Analytics) What is development stage? (Developed-Legacy, In Development) What is technology stack? (Java, C#, Python, Ruby, Node, React) Is it SOA/Micro-services ba...
Note: For brevity, the commands use here-strings (<<<) and ANSI C-quoted strings ($'...'). Both these shell features work in bash, ksh, and zsh. # GNU Sed $ sed '1 a appended text' <<<'line 1' line 1 appended text # BSD Sed (multi-line form) sed '1 a\ appended text'...
Steps for Getting Started: Download Eclipse Create a Java Maven Project with following example package organization src/test/java com.example.pageobjects com.example.steps com.example.runner src/test/resources Add Cucumber Eclipse Plugin : https://github.com/cucumber/cucumber-eclipse/wik...
AppDelegate contains your app’s startup code. It responds to key changes in the state of your app. Specifically, it responds to both temporary interruptions and to changes in the execution state of your app, such as when your app transitions from the foreground to the background. It responds to ...
To access complete schema of server db instead of single table. Follow below steps: Create EXTENSION : CREATE EXTENSION postgres_fdw; Create SERVER : CREATE SERVER server_name FOREIGN DATA WRAPPER postgres_fdw OPTIONS (host 'host_ip', dbname 'db_name', port 'port_numb...
I won't repeat it all here: "Application Default Credentials provide a simple way to get authorization credentials for use calling Google APIs." If you can use Application Default Credentials, do. There is an extra step you will need to perform the before first using Application Default ...
I won't repeat it all here: "Application Default Credentials provide a simple way to get authorization credentials for use calling Google APIs." If you can use Application Default Credentials, do. There is an extra step you will need to perform the before first using Application Default ...
Given that the data directory of the server is empty: The server is initialized. SSL certificate and key files are generated in the data directory. The validate_password plugin is installed and enabled. The superuser account 'root'@'localhost' is created. The password for the superuser is set ...
This will be our example data frame: color name size 0 red rose big 1 blue violet big 2 red tulip small 3 blue harebell small Using the magic __getitem__ or [] accessor. Giving it a list of True and False of the same length as the dataframe will give you: ...

Page 28 of 33