Tutorial by Examples

Compress-Archive -Path C:\Documents\* -Update -DestinationPath C:\Archives\Documents.zip this will add or replace all files Documents.zip with the new ones from C:\Documents
Expand-Archive -Path C:\Archives\Documents.zip -DestinationPath C:\Documents this will extract all files from Documents.zip into the folder C:\Documents
index.js var http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Heroku world!"); response.end(); }).listen(process.env.PORT); package.json { &quo...
if (Patterns.EMAIL_ADDRESS.matcher(email).matches()){ Log.i("EmailCheck","It is valid"); }
The List interface is implemented by different classes. Each of them has its own way for implementing it with different strategies and providing different pros and cons. Classes implementing List These are all of the public classes in Java SE 8 that implement the java.util.List interface: Abs...
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...
Vertical join appends dataset B to dataset A providing both of them have similar variables. For example, we have sales for the month of Jan'17 in dataset A and sales for Feb'17 in dataset B. To create a dataset C that has sales of both Jan and Feb we use Vertical Join. PROC SQL; CREATE TABLE C AS ...
Inner join creates a dataset that contains records that have matching values from both the tables. For example, we have a dataset A that contains customer information and a dataset B that contains credit card details. To get the credit card details of customers in dataset A, let us create dataset C ...
Left join returns all the observations in the left data set regardless of their key values but only observations with matching key values from the right data set. Considering the same example as above, PROC SQL; CREATE TABLE C AS SELECT A.*, B.CC_NUMBER, B.START_DATE FROM CUSTOMER A LEFT JOIN CC...
Like left join, right join selects all the observations from the right dataset and the matched records from the left table. PROC SQL; CREATE TABLE C AS SELECT A.*, B.CC_NUMBER, B.START_DATE FROM CUSTOMER A RIGHT JOIN CC_DETAILS B ON A.CUSTOMERID=B.CUSTOMERID QUIT; Dataset C contains all the...
Full join selects all the observations from both data sets but there are missing values where the key value in each observation is found in one table only. PROC SQL; CREATE TABLE C AS SELECT A.*, B.CC_NUMBER, B.START_DATE FROM CUSTOMER A FULL JOIN CC_DETAILS B ON A.CUSTOMERID=B.CUSTOMERID QUI...
Many biological questions can be translated into a DNA sequencing problem. For instance, if you want to know the expression level of a gene you can: copy its mRNAs into complementary DNA molecules, sequence each of the resulting DNA molecules, map those sequences back to the reference genome, and th...
LRU Cache The following example code demonstrates a possible implementation of the LruCache class for caching images. private LruCache<String, Bitmap> mMemoryCache; Here string value is key for bitmap value. // Get max available VM memory, exceeding this amount will throw an // OutOfMem...
Scope is used as the "glue" that we use to communicate between the parent controller, the directive, and the directive template. Whenever the AngularJS application is bootstrapped, a rootScope object is created. Each scope created by controllers, directives and services are prototypically ...
On the server: var express = require('express'); var socketio = require('socket.io'); var app = express(); var server = http.createServer(app); var io = socketio(server); io.on('connect', function (socket) { socket.on('userConnected', socket.join); socket.on('userDisconnected', socke...
These are my VirtualBox settings: OS Type: Linux 2.6 (I've user 64bit because my computer can support it) Virtual hard drive size: 4Gb Ram Memory: 2048 Video Memory: 8M Sound device: Sound Blaster 16. Network device: PCnet-Fast III, attached to NAT. You can also use bridged adapter, but you...
In brief: Properties make it easy to pass updates from the python side to the user interface Binding passes the changes that happened on the user interface to the python side. from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.lang import Builder from kivy.properti...
Most kivy apps start with this structure: from kivy.app import App class TutorialApp(App): def build(self): return TutorialApp().run() There is several way to go from here : All the codes below (except example 1 and 3) have the same widget and similar features, but show diffe...
First, we create an empty map, and insert some elements into it: Java SE 7 TreeMap<Integer, String> treeMap = new TreeMap<>(); Java SE 7 TreeMap<Integer, String> treeMap = new TreeMap<Integer, String>(); treeMap.put(10, "ten"); treeMap.put(4, "fou...
First, we create an empty set, and insert some elements into it: Java SE 7 TreeSet<Integer> treeSet = new TreeSet<>(); Java SE 7 TreeSet<Integer> treeSet = new TreeSet<Integer>(); treeSet.add(10); treeSet.add(4); treeSet.add(1); treeSet.add(12); Once we hav...

Page 1242 of 1336