Tutorial by Examples

Increase the saturation level of an image with ctx.globalCompositeOperation = 'saturation'; The amount of the effect can be controled with the alpha setting or the amount of saturation in the fill overlay // Render the image ctx.globalCompositeOperation='source-atop'; ctx.drawImage(image, 0, ...
Create a colored sepia FX with ctx.globalCompositeOperation = 'luminosity'; In this case the sepia colour is rendered first the the image. The amount of the effect can be controled with the alpha setting or the amount of saturation in the fill overlay // Render the image ctx.globalCompositeOp...
Simple pull When you are working on a remote repository (say, GitHub) with someone else, you will at some point want to share your changes with them. Once they have pushed their changes to a remote repository, you can retrieve those changes by pulling from this repository. git pull Will do it, ...
Detailed instructions on getting wordpress-theming set up or installed. Wordpress is opensource.You can find large set of theme for use free or premium themes.All theme are provide a documentation for install and use. What you have to understand while choose a theme? Wordpress version you are ...
Excel formulas are used to process simple or complex equations and output the result to a specific cell within a worksheet. (There is an exception to this where the WorksheetFunction class is used in VBA programming, however VBA is out of scope for this tag - please refer to the excel-vba or vba ...
You can use a filter to log only messages "lower" than e.g. ERROR level. But the filter is not supported by PropertyConfigurator. So you must change to XML config to use it. See log4j-Wiki about filters. Example "specific level" <appender name="info-out" class=&quo...
This function return the standart gravity constant in the specified acceleration units (1 for cm/s², 2 for ft/s², 3 for m/s²) /** * Returns the standard gravity constant in the specified acceleration units * Values taken from https://en.wikipedia.org/wiki/Standard_gravity on July 24, 2016. ...
In order to prevent a button from firing multiple times within a short period of time (let's say 2 clicks within 1 second, which may cause serious problems if the flow is not controlled), one can implement a custom SingleClickListener. This ClickListener sets a specific time interval as threshold (...
Html5 Canvas gives you the ability to fetch and change the color of any pixel on the canvas. You can use Canvas's pixel manipulation to: Create a color-picker for an image or select a color on a color-wheel. Create complex image filters like blurring and edge detection. Recolor any part of an ...
GRANT SELECT, UPDATE ON Employees TO User1, User2; Grant User1 and User2 permission to perform SELECT and UPDATE operations on table Employees. REVOKE SELECT, UPDATE ON Employees FROM User1, User2; Revoke from User1 and User2 the permission to perform SELECT and UPDATE operations on tab...
From the Apple documentation: A UIStoryboardSegue object is responsible for performing the visual transition between two view controllers. In addition, segue objects are used to prepare for the transition from one view controller to another. Segue objects contain information about the view contro...
PrepareForSegue: func prepareForSegue(_ segue:UIStoryboardSegue, sender sender:AnyObject?) Notifies the view controller that a segue is about to be performed Parameters segue: The segue object. sender: The object that initialized the segue. Example in Swift Perform a task if the ident...
ShouldPerformSegueWithIdentifier: func shouldPerformSegueWithIdentifier(_ identifier:String, sender sender:AnyObject?) -> Bool Determines whether the segue with the specified identifier should be performed. Parameters Identifier: String that identifies the triggered segue Sender: The...
Unwind Segues Unwind Segues give you a way to “unwind” the navigation stack and specify a destination to go back to. The signature of this function is key to Interface Builder recognizing it. It must have a return value of IBAction and take one parameter of UIStoryboardSegue. The name of the ...
PerformSegueWithIdentifier: func performSegueWithIdentifier(_ identifier:String, sender sender:AnyObject?) Initiates the segue with the specified identifier from the current view controller's storyboard file Parameters Identifier: String that identifies the triggered segue Sender: The ob...
After you configured your LDAP server correctly, now we want to connect. For example by using PHP. DN = distinguished name. This means, in which part of the database are you working. Can be a user or a group (or even config settings). Entry: an entity, for example a user. Attribute: something ...
Description: phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, ...
Map k v provides a Monoid instance with the following semantics: mempty is the empty Map, i.e. the same as Map.empty m1 <> m2 is the left-biased union of m1 and m2, i.e. if any key is present both in m1 and m2, then the value from m1 is picked for m1 <> m2. This operation is also ava...

Get

Get is getting data from web server. and new WWW("https://urlexample.com"); with a url but without a second parameter is doing a Get. i.e. using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public string url = "http://google.com"...
Every instance of WWW with a second parameter is a post. Here is an example to post user id and password to server. void Login(string id, string pwd) { WWWForm dataParameters = new WWWForm(); // Create a new form. dataParameters.AddField("username", id); dataParameter...

Page 778 of 1336