Tutorial by Examples: l

Component: <md2-select [(ngModel)]="item" (change)="change($event)" [disabled]="disabled"> <md2-option *ngFor="let i of items" [value]="i.value" [disabled]="i.disabled"> {{i.name}}</md2-option> </md2-select> ...
Tooltip is a directive, it allows the user to show hint text while the user mouse hover over an element. A tooltip would have the following markup. <span tooltip-direction="left" tooltip="On the Left!">Left</span> <button tooltip="some message" ...
Assume that, we implement a simple API and we have the following models. class Parent(models.Model): name = models.CharField(max_length=50) class Child(models.Model): parent = models.ForeignKey(Parent) child_name = models.CharField(max_length=80) And we want to return a respo...
This command allows you to change or view the TLD (top-level domain) used to bind domains to your local machine. Get The Current TLD $ valet domain > dev Set the TLD $ valet domain local > Your Valet domain has been updated to [local].
Md2Collapse : Collapse is a directive, it's allow the user to toggle visiblity of the section. Examples A collapse would have the following markup. <div [collapse]="isCollapsed"> Lorum Ipsum Content </div> Md2Accordion : Accordion it's allow the user to toggle vis...
Detailed instructions on getting avr set up or installed.
In Kotlin, we can declare variable which can hold null reference. Suppose we have a nullable reference a, we can say "if a is not null, use it, otherwise use some non-null value x" var a: String? = "Nullable String Value" Now, a can be null. So when we need to access value o...
Detailed instructions on getting greasemonkey set up or installed.
Prerequisites: Java is installed Selenium is extracted in a folder (Contains 2 files, and 1 folder) Follow these steps to set up IntelliJ Idea for Selenium. Click On "New Project". Choose Java < "Hello World" Application Type the name of the Project, and create it....
We use the get method to go to a website. For Example, this would open google public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "path of the exe file\\chromedriver.exe"); WebDriver driver = new ChromeDriv...
Every Html-Element in Selenium is called a WebElement. For example, a p tag would be a WebElement, an a tag would be a WebElement, etc. Consider the following html Structure: <a id="link1" href="https://www.google.com">google</a> <p class="p1"> This...
Now that we know the basics of Selenium, we can make our own project. For this example, we'll be making a program, which finds the Newest questions on stack-overflow. We start easy, lets open stack-overflow. public static void main(String[] args) throws InterruptedException { System.setProper...
To get the attribute of a WebElement, we use getAttribute on that WebElement. For example, consider the following html tag <a id="click" href="https://www.google.com"> We can find the Element's href attribute by WebElement e = driver.findElement(By.id("click&quot...
This is a very simple image processing and computer vision Python exercise series, designed to introduce these topics with little practicals. I am sorry in advance for any rookie mistakes, it is still under development. In this series, I will be limiting digital images we can use to PNG files for t...
`To calculate 1D convolution by hand, you slide your kernel over the input, calculate the element-wise multiplications and sum them up. The easiest way is for padding=0, stride=1 So if your input = [1, 0, 2, 3, 0, 1, 1] and kernel = [2, 1, 3] the result of the convolution is [8, 11, 7, 9, 4], whic...
Detailed instructions on getting openui5 set up or installed.
Steps: Generate a Base 64 keyfile for Mongo node authentication. Place this file in chef data_bags Go to chef suppermarket and download docker cookbook. Generate a custom cookbook (e.g custom_mongo) and add depends 'docker', '~> 2.0' to your cookbook's metadata.rb Create an attribu...
Now we will apply a strided convolution to our previously described padded example and calculate the convolution where p = 1, s = 2 Previously when we used strides = 1, our slided window moved by 1 position, with strides = s it moves by s positions (you need to calculate s^2 elements less. But in...
Creating a LUIS Model requires little to no programming experience. However, you need to be familiar with 2 important terms that will be used extensively. Intents - These are how you identify functions that need to be executed when the user types in something. Eg - An intent named Hi will identif...
using Xunit; namespace MyFirstUnitTests { public class TestClass { [Fact] public void PassingTest() { Assert.Equal(4, Add(2, 2)); } [Fact] public void FailingTest() { Assert.Equal(5, Add(2, 2)); ...

Page 808 of 861