Tutorial by Examples: er

As we knew, WebRTC is all based on the JavaScript development and coding and for more information and examples please refer here and here. And now, let me show you a very simple example to use getUserMedia(); For what getUserMedia() is used? getUserMedia() is used to get the user/visitor's camera...
Most programming languages support the for-loop control structure. It is generally implemented in this way: for(init; condition; increment){ content_code(); } The above pseudocode is identical with the pseudocode below: init; start_loop: if(condition){ content_code(); increme...
In this tutorial , I will explain how to integrate Google's BigQuery API with web application. My web application is going to get the data using BigQuery and plot a graph using d3.js and Javascript. Each project on Google Developers Console has a clientID and you need to copy the clientID and put i...
let's say you have two users with username chyingp and casper, and want to add them both to group root. usermod chyingp -a -G root usermod casper -a -G root here comes the explanation of -a, -G -a, --append Add the user to the supplementary group(s). Use only with the -G option. -G, --groups...
Being able to understand Error/Exit codes is a fundamental skill for developers on Window's machine. Yet for many, the cryptic hexadecimal code that can be produced on an application exiting with on error can prove to be time consuming and painstaking process for the developer to track down and isol...
Example Table There are several ways to inject your data into DataTables. Serverside Processing is just one method. In this manner, DataTables has a pre-configured endpoint to retrieve data from, and that endpoint is responsible for accepting all paging/filtering/sorting requests that DataTables ap...
Anchor tag helper is used generate href attributes to link to a particular controller action or MVC route. Basic example <a asp-controller="Products" asp-action="Index">Login</a> Sometimes, we need to specify additional parameters for the controller action that ...
create() write() search() browse() exists() ref() ensure_one()
The invoice number is used to verify the sale for publishers. Many publishers of paid asset or plugin ask for the invoice number upon request of support. The invoice number is also used as a license key to activate some asset or plugin. The invoice number can be found in two place: After you b...
if a directory contain 2 files: $ ls makefile example.txt and makefile contain the following text %.gz: % gzip $< then you can obtain example.txt.gz by typing in the shell $ make -f makefile example.txt.gz the makefile consist of only one rule that instruct make how to create a...
The following utility can be used for auto-completion of commands: $ which aws_completer /usr/bin/aws_completer $ complete -C '/usr/bin/aws_completer' aws For future shell sessions, consider add this to your ~/.bashrc $ echo "complete -C '/usr/bin/aws_completer' aws" >> ~/.b...
Main features of this Makefile : Automatic detection of C sources in specified folders Multiple source folders Multiple corresponding target folders for object and dependency files Automatic rule generation for each target folder Creation of target folders when they don't exist Dependency ma...
It is a dialog which prompts user to select date using DatePicker. The dialog requires context, initial year, month and day to show the dialog with starting date. When the user selects the date it callbacks via DatePickerDialog.OnDateSetListener. public void showDatePicker(Context context,int init...
To match a query string, a condition must be added to the RewriteRule. This is done by putting RewriteCond directives before the corresponding rule. In the following example we dynamically internally rewrite an old url to a new url. RewriteCond %{QUERY_STRING} ^name=([^&]*)$ RewriteRule ^oldsc...
You can use extensions for reference View, no more boilerplate after you created the views. Original Idea is by Anko Library Extensions inline fun <reified T : View> View.find(id: Int): T = findViewById(id) as T inline fun <reified T : View> Activity.find(id: Int): T = findViewById(i...
Getters and setters are methods that are behaved like properties. it means they have function structure but when used, they are used same as properties: Structure of getter functions: they should have get keyword after function keyword and before function name, with no argument, a return type spec...
Float data type The float data type is a single-precision 32-bit IEEE 754 floating point. Float overflow Maximum possible value is 3.4028235e+38 , When it exceeds this value it produces Infinity float f = 3.4e38f; float result = f*2; System.out.println(result); //Infinity Float Und...
We may forget to apply the Antiforgery attribute for each POST request so we should make it by default. This sample will make sure Antiforgery filter will always be applied to every POST request. Firstly create new AntiForgeryTokenFilter filter: //This will add ValidateAntiForgeryToken Attribute t...
Traversing from the root node to a descendant element using the child axis: /child::html/child::body/child::div/child::span Since the child axis is the default axis, this can be abbreviated to: /html/body/div/span
The descendant and descendant-or-self axes can be used to find all descendant elements of a node at any depth. In contrast, the child axis only traverses immediate children. /child::html/descendant::span /child::html/descendant-or-self::* The double slash // is a shortcut for /descendant-or-sel...

Page 266 of 417