Tutorial by Examples: x

<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx = "http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX...
webpack-dev-server can proxy some requests to others servers. This might be useful for developing API client when you want to send requests to same domain. Proxy is configured via proxy parameter. Example configuration of dev server passing requests to /api to other service listening on port 8080 ...
There are different approaches to the installation of SFML on Linux: Install it directly from your distribution's package repository Get the source code, build it and install it Download the precompiled SDK and manually copy the files Option 1 is the preferred one; if the version of SFML tha...
For example, say below is the sample data in an Excel 'Test', Purchase_Date Customer_Name Price 05-05-2017 Adam 1075 06-05-2017 Noah 1093 07-05-2017 Peter 1072 08-05-2017 Louis 1101 09-05-2017 Zoe 1248 10-05-2017 Kevin 1045 11-05-2017 Messiah 1...
This is project directory. A service endpoint interface First we will create a service endpoint interface. The javax.jws.WebService @WebService annotation defines the class as a web service endpoint. import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws.soap.SOAPBi...
A common need for random numbers it to generate a number that is X% of some max value. this can be done by treating the result of NextDouble() as a percentage: var rnd = new Random(); var maxValue = 5000; var percentage = rnd.NextDouble(); var result = maxValue * percentage; //suppose NextDoub...
std::mutex is a simple, non-recursive synchronization structure that is used to protect data which is accessed by multiple threads. std::atomic_int temp{0}; std::mutex _mutex; std::thread t( [&](){ while( temp!= -1){ ...
Recursive mutex allows the same thread to recursively lock a resource - up to an unspecified limit. There are very few real-word justifications for this. Certain complex implementations might need to call an overloaded copy of a function without releasing the lock. std::atomic_int temp{0}; ...
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
import {Http} from '@angular/http'; @Injectable() export class StudentService{ constructor(public http: Http){} getAllStudents(): Observable<Students[]>{ return this.http.get('assets/students.json') .map(res => res.json().data) } } notice ...
export class HomePage implements OnInit { ... .... constructor(....){} ngOnInit(){ this._studentService.getAllStudents().subscribe( (students: Students[]) => this.students = students, )
Add a new function called showGoogleForm and adapt the follow code to suit. Note for simplicity this example does not contain any error checking which should be added in a production environment. The url should look something like this: https://docs.google.com/forms/.../?usp=pp_url&entry.17391...
{ "id": 89, "name": "Aldous Huxley", "type": "Author", "books":[{ "name": "Brave New World", "date": 1932 }, { &q...
InputBox, userinput This will store what the user types into the input box in the variable named userinput
To get all the server variables run this query either in the SQL window of your preferred interface (PHPMyAdmin or other) or in the MySQL CLI interface SHOW VARIABLES; You can specify if you want the session variables or the global variables as follows: Session variables: SHOW SESSION VARIABLE...
To get the database server status run this query in either the SQL window of your preferred interface (PHPMyAdmin or other) or on the MySQL CLI interface. SHOW STATUS; You can specify whether you wish to receive the SESSION or GLOBAL status of your sever like so: Session status: SHOW SESSION S...
This example show how I have created a package for my project RegExpTestor So first of all, you have to create a tree. In my case I did this: regexp_testor ├── DEBIAN │   ├── control │   └── postinst ├── opt │   └── regexp_testor │   ├── Icon │   │   └── 48x48 │   │   └── r...
Processlist This will show all active & sleeping queries in that order then by how long. SELECT * FROM information_schema.PROCESSLIST ORDER BY INFO DESC, TIME DESC; This is a bit more detail on time-frames as it is in seconds by default SELECT ID, USER, HOST, DB, COMMAND, TIME as time_second...
C++1x offers a selection of mutex classes: std::mutex - offers simple locking functionality. std::timed_mutex - offers try_to_lock functionality std::recursive_mutex - allows recursive locking by the same thread. std::shared_mutex, std::shared_timed_mutex - offers shared and unique lock functi...

Page 167 of 182