Tutorial by Examples: 2

How to: CALL ANGULAR 2 HTML/JS COMPONENT FROM ASP.NET Core CONTROLLER: We call the HTML instead return View() return File("~/html/About.html", "text/html"); And load angular component in the html. Here we can decide if we want to work with same or diferent module. Depends o...
To run WordPress on your computer you need to configurate a database first. Be sure that Apache and MySQL are running (see Installing XAMPP step 3) Start a web browser of your choice and enter "localhost" in the address. Choose your preferred language and select in the category "...
webpack.config.js const webpack = require("webpack") const helpers = require('./helpers') const path = require("path") const WebpackNotifierPlugin = require('webpack-notifier'); module.exports = { // set entry point for your app module "entry": { ...
In this example I will be using oauth2 in rest api with redis database Important: You will need to install redis database on your machine, Download it from here for linux users and from here to install windows version, and we will be using redis manager desktop app, install it from here. ...
HTML <div :class="classes"> <input v-model="compValue" type="text" class="form-control" @keydown.enter = 'enter' @keydown.down = 'down' @keydown.up = 'up' @input = "cha...
As another example, we have the function map, which takes a function and a list of values, and applies the function to each value of the list: map :: (a -> b) -> [a] -> [b] Let's say we want to increment each value in a list. You may decide to define your own function, which adds one to...
Object1 := nil; Object2 := nil; try Object1 := TMyObject.Create; Object2 := TMyObject.Create; finally Object1.Free; Object2.Free; end; If you do not initialize the objects with nil outside the try-finally block, if one of them fails to be created an AV will occur on the finally bl...
Example of how to calculate the output shape and overcome the difficulties of using tf.nn.conv2d_transpose with unknown batch size (when input.get_shape() is (?, H, W, C) or (?, C, H, W)). def upconvolution (input, output_channel_size, filter_size_h, filter_size_w, stride_h, str...
One of the best Linux distributions currently for Raspberry Pi (from now on, "RPi") is Arch Linux. This web shows the installation for: RPi2. ARMv7 architecture (32 bits). RPi3. There are two options: ARMv7 architecture (32 bits) or AArch architecture (64 bits). This t...
The method of SQL generation from BQL PXSelectGroupBy<> data views has been changed in Acumatica Framework 5.2. The sections below illustrate the differences using the example of PXSelectGroupBy<FinYear, Aggregate<GroupBy<FinYear.finPeriods>>>.Select(graph): Acumatica Frame...
ecosystem.json { "name": "app-name", "script": "server", "exec_mode": "cluster", "instances": 0, "wait_ready": true "listen_timeout": 10000, "kill_timeout": 500...
If you are using Bootstrap Modal then be sure that Model tabindex=-1 is removed. $('#targetId').select2({ width: '100%', dropdownParent: $("#myModal") })
We can create dynamic component and get the instances of component into an array and finally rendered it on template. For example, we can can consider two widget component, ChartWidget and PatientWidget which extended the class WidgetComponent that I wanted to add in the container. ChartWidget.ts ...
Using Select2 in a Bootstrap Modal/PopUp If you are using Bootstrap Modal then be sure that Model tabindex=-1 is removed. $('#targetId').select2({ width: '100%', dropdownParent: $("#myModal") })
SharePoint 2013: Access User Profile Service Data using JSOM in SharePoint 2013 ​ In this article, we will learn to manage or access User Profile Service(UPS) Application using JSOM (Javascript Object Model) and create a basic App. Before we start, lets go through basic UPS terminology first. Us...
Install msys2 (http://www.msys2.org/) Install the required prerequisites for Vala pacman -S mingw64/mingw-w64-x86_64-gcc pacman -S mingw64/mingw-w64-x86_64-pkg-config pacman -S mingw64/mingw-w64-x86_64-vala and all the additional packages your code requires, i.e. pacman -S mingw64/mi...
{ "status": 200, "message": "OK", "data": [ { "name": "dignissimos", "description": "Maxime rerum molestias error a consequatur adipisci inventore corrupti.", ...
iText 2 and earlier: import com.lowagie.text.*; iText 5: import com.itextpdf.text.*; iText 7: import com.itextpdf.kernel.*; import com.itextpdf.layout.*; ...
In following example we will create table movies with AWS Ruby SDK v2. Here, each Movie as one unique Partition Key as id, and Range Key year. Apart from this we want to be able to query movies with their name, hence we will create a Global Secondary Index (GSI) name-year-index with name as Hash Ke...
set var to 2 if var = 2 then say "Var equals 2" end if

Page 18 of 21