Tutorial by Examples

When generating new Angular 2 components in a .NET Core project, you may run into the following errors (as of version 0.8.3): Error locating module for declaration SilentError: No module files found OR No app module found. Please add your new Class to your component. Identica...
Like other value types, GUID also has a nullable type which can take null value. Declaration : Guid? myGuidVar = null; This is particularly useful when retrieving data from the data base when there is a possibility that value from a table is NULL.
JavaScript: Vue.component('props-component', { template: '#props-component-template', // array of all props props: ['myprop', 'calcprop'] }); new Vue({ el: '#app' }); HTML: <div id="app"> <template id="props-component-template"> ...
JavaScript: const MainPage = { template: '#mainpage-template' } const Page1 = { template: '#page1-template' } const Page2 = { template: '#page2-template' } const Page3 = { template: '#page3-template' } const router = new VueRouter({ mode: 'hash', routes: [{ path: ...
const foop = { get value() {}, set value(v) {} }; it('can spy on getter', () => { spyOnProperty(foop, 'value', 'get').and.returnValue(1); expect(foop.value).toBe(1); }); it('and on setters', () => { const spiez = spyOnProperty(foop, 'value', 'set'); foop.v...
import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; public class SetAndListExample { public static void main( String[] args ) { System.out.println("List example ....."); List list = new ArrayList(); list.add("1"); list.a...
import java.sql.*; class Rsmd { public static void main(String args[]) { try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:xe", ...
This is an Example which print rectangle and fill color in the rectangle. https://i.stack.imgur.com/dlC5v.jpg Most methods of the Graphics class can be divided into two basic groups: Draw and fill methods, enabling you to render basic shapes, text, and images Attributes setting methods, whic...
import javax.swing.*; import java.awt.*; public class MyPanel extends JPanel { @Override public void paintComponent(Graphics g){ // clear the previous painting super.paintComponent(g); Graphics2D g2 = (Graphics2D)g; g2.setColor(Co...
Dim rng As New Random() This declares an instance of the Random class called rng. In this case, the current time at the point where the object is created is used to calculate the seed. This is the most common usage, but has its own problems as we shall see later in the remarks Instead of allowin...
The following example declares a new instance of the Random class and then uses the method .Next to generate the next number in the sequence of pseudo-random numbers. Dim rnd As New Random Dim x As Integer x = rnd.Next The last line above will generate the next pseudo-random number and assign ...
The following features added in SQL Server 2000 from its previous version: New data types were added (BIGINT, SQL_VARIANT, TABLE) Instead of and for Triggers were introduced as advancement to the DDL. Cascading referential integrity. XML support User defined functions and partition views. In...
MySQL Workbench is available for all major operating systems -Windows, Linux, Mac- You can find the version for you operating system from here. For windows: It uses the msi (Windows installer) to install packages. You only need to right click install and it starts. For Linux: There are multiple ....
#include <windows.h> static Windows::Foundation::DateTime GetCurrentDateTime() { // Get the current system time SYSTEMTIME st; GetSystemTime(&st); // Convert it to something DateTime will understand FILETIME ft; SystemTimeToFileTime(&st, &ft); ...
LinearLayout is a view group that aligns all children in a single direction, vertically or horizontally. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=&q...
Detailed instructions on getting oracle12c set up or installed.
Jenkins: The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. Sonar Qube: SonarQube provides the capability to not only show health of an application but also to highlight issues newly introduced. Apache Ant: A...
A clean way to handle booleans is using an inline conditional with the a ? b : c ternary operator, which is part of Swift's Basic Operations. The inline conditional is made up of 3 components: question ? answerIfTrue : answerIfFalse where question is a boolean that is evaluated and answerIfTrue...
Blender's viewport is a dynamic, changeable interface composed of many different windows. With the program running by default, the viewport is composed of 5 different windows. Windows can be identified by looking for their small square indicator icons either in the top or bottom-left corner. They ma...
While eval may not be needed for a pop like function, it is however required whenever you use getopt: Consider the following function that accepts -h as an option: f() { local __me__="${FUNCNAME[0]}" local argv="$(getopt -o 'h' -n $__me__ -- "$@")" e...

Page 1270 of 1336