Tutorial by Examples: o

Use it if you want to be flexible about the source type of your data. It won't bind to an actual property but to its name. If you want to bind to the DataContext
Use CTRL+SHIFT+O (⌘+SHIFT+O for mac) to navigate to a javaScript function/CSS rule when viewing a file.
List of commands that will be introduced here: ls #view contents of a directory touch #create new file mkdir #create new directory cp #copy contents of one file to another mv #move file from one location to another rm #delete a file or directory ls examples jennifer@my_co...
michael@who-cares:~$ The symbol ~ after the who-cares: is the current directory. ~ actually means the person's home directory. In this case, that's /home/michael. michael@who-cares:~$ cd Downloads michael@who-cares:~/Downloads$ Looks for Downloads in the current directory, then makes that th...
Elixir is available in main packages repository. Update the packages list before installing any package: emerge --sync This is one step installation: emerge --ask dev-lang/elixir
Install jekyll on Linux Mint 18 with the following steps: sudo apt install ruby sudo apt install build-essential sudo apt install ruby-dev sudo gem install jekyll
Open a command prompt with Administrator access Install Chocolatey: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin Close the comm...
Encryption is used to transform data in its orignal format (Eg: The contents of a letter, Credentials part of authorizing a financial transaction) to something that cannot be easily reconstructed by anyone who is not intended to be part of the conversation. Basically encryption is used to preve...
Ionic Platform: Build, push, deploy, and scale your Ionic apps, the easy way. Title Description: The Ionic Platform is a cloud platform for managing and scaling cross-platform mobile apps. Integrated services enable you and your team to build, deploy, and grow your apps efficiently. Docume...
When a hit is sent to Google Analytics the data must be processed. Processing latency is 24-48 hours. This means that it can take time before you will see data under standard reports (Not real-time) any data that you do see may not be correct as it has probably not completed processing. Standard a...
It is possible to create more complex loops with dictionaries. From vars: packages: - present: tree - present: nmap - absent: apache2 then the loop: - name: manage packages package: name={{ item.value }} state={{ item.key }} with_items: '{{ packages }}' Or, if you don't like ...
You can use a dictionary for a slightly more complex loop. - name: manage packages package: name={{ item.name }} state={{ item.state }} with_items: - { name: tree, state: present } - { name: nmap, state: present } - { name: apache2, state: absent }
You can create nested loops using with_nested. from vars: keys: - key1 - key2 - key3 - key4 then the loop: - name: Distribute SSH keys among multiple users lineinfile: dest=/home/{{ item[0] }}/.ssh/authorized_keys line={{ item[1] }} state=present with_nested: - [ 'calvin...
To decouple and reuse the same error logging code for all your services you need two boilerplate classes and tuck them away in a library somewhere. ErrorhandlerAttribute implementing IServiceBehavior. FaultErrorhandler implementing IErrorhandler which logs all the exceptions. [AttributeUsage(Attr...
Modals slide in off screen to display a temporary UI, often used for login or signup pages, message composition, and option selection. import { ModalController } from 'ionic-angular'; import { ModalPage } from './modal-page'; export class MyPage { constructor(public modalCtrl: ModalControlle...
Instead of bloating your main js file that contains your navigator with buttons. It's cleaner to just inject buttons on-demand in any page that you need. //In the page "Home", I want to have the right nav button to show //a settings modal that resides in "Home" component. c...
'use strict'; import React, {Component} from 'react'; import ReactNative from 'react-native'; const { AppRegistry, StyleSheet, Text, View, Navigator, Alert, TouchableHighlight } = ReactNative; //This is the app container that contains the navigator stuff class AppC...
HttpClient httpClient = new StdHttpClient.Builder(). url("http://yourcouchdbhost:5984"). username("admin"). password("password"). build(); CouchDbInstance dbInstance = new StdCouchDbInstance(httpClient);
Given you have a valid CouchDbInstance instance, you connect to a database within CouchDB in the following manner CouchDbConnector connector = dbInstance.createConnector("databaseName", true);
One of the great things about Ektorp, is that it provides ORM like functionality, straight out of the box. This example will walk you through creating a simple POJO and doing standard CRUD operation on it Creating a simple POJO First off, we define a POJO as follows import com.fasterxml.jackson...

Page 676 of 1038