Tutorial by Examples: st

index.html: <html ng-app="masterAngularMaterial"> <head> <!-- This is important (meta) --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Angular and other dependencies --> ...
Let's take this example without using generics protocol JSONDecodable { static func from(_ json: [String: Any]) -> Any? } The protocol declaration seems fine unless you actually use it. let myTestObject = TestObject.from(myJson) as? TestObject Why do you have to cast the result to T...
import { BrowserModule } from '@angular/platform-browser'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { Component, DebugElement } from '@angular/core'; import { dispatchEvent } from "@an...
Informats are used to tell SAS how to read in the data and are identified with an informat statement. data test; infile test.csv; informat id $6. date mmddyy10. cost comma10.2 ; input @1 id @7 date @20 cost ; run; Informats and Format...
Keras is a high-level neural networks library, written in Python and capable of running on top of either TensorFlow or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research. Use Keras ...
Install-Module -Name <name>
Uninstall-Module -Name <Name> -RequiredVersion <Version>
Before setting up a Selenium grid you need to make sure you have Java installed and configured in your computer’s environment path. Configure the Hub Download latest stable Selenium Server version. Start the command prompt and navigate to the location in which you placed the Selenium server jar...
Detailed instructions on getting data-warehouse set up or installed.
To run the private registry (securely) you have to generate a self-signed certificate, you can refer to previous example to generate it. For my example I put server.key and server.crt into /root/certs Before run docker command you should be placed (use cd) into the directory that contains certs fo...
The continue statement in Objective-C programming language works somewhat like the break statement. Instead of forcing termination, however, continue forces the next iteration of the loop to take place, skipping any code in between. For the for loop, continue statement causes the conditional test a...
Our openstack tenant is already set: a virtual lan gives instances private IP a virtual router map public IP to private IP a security key has been generated we have default firewall configuration for ssh and port 80 we are able to launch an instance thanks to the OpenStack web interface ...
Let use 'os_server' command from module 'Cloud' [http://docs.ansible.com/ansible/os_server_module.html]. Variables are defined in ./group_vars/all. $vi launch_compute.yml - name: launch a compute instance hosts: localhost gather_facts: False tasks: - name: Create and launch the VM ...
Use the 'os_server_facts' command from module 'Cloud' [http://docs.ansible.com/ansible/os_server_module.html]. Variables are defined in ./group_vars/all and the instance name is in server: "MyOwnPersonalInstance". $vi get_compute_info.yml - name: Get and print instance IP hosts: loca...
Instead of printing all the informations, we print only IP address of the first instance whose name is "MyOwnPersonalInstance". It's usually all we need. $vi get_compute_ip.yml - name: Get and print instance IP hosts: localhost gather_facts: False tasks: - name: Get VM infos...
To delete our instance, reuse the os_server command with all authentication information and simply replace ' state: present' by ' state: absent'. $vi stop_compute.yml - name: launch a compute instance hosts: localhost gather_facts: False tasks: - name: Create and launch the VM os_...
This guide is explicitly for PostgreSQL 9.1 or higher on linux machines. It uses the postgres extensions-feature that will greatly improve the import of extensions to an existing postgres-installation. If you have to work with an older version of postgres, please refer to the official documentations...
Query to search last executed sp's in db SELECT execquery.last_execution_time AS [Date Time], execsql.text AS [Script] FROM sys.dm_exec_query_stats AS execquery CROSS APPLY sys.dm_exec_sql_text(execquery.sql_handle) AS execsql ORDER BY execquery.last_execution_time DESC Query to search thro...
Asterisk is an open source framework for building communications applications. You can use it for any of the following: IP PBX systems VoIP gateways ISDN/ 3G IVVR Here is a brief instruction for step by step installation of asterisk 1.8(or you can do for latest versions) on Redhat/centos (fo...
This is a unit test of a component that has Store as a dependency. Here, we are creating a new class called MockStore that is injected into our component instead of the usual Store. import { Injectable } from '@angular/core'; import { TestBed, async} from '@angular/core/testing'; import { AppComp...

Page 300 of 369