Tutorial by Examples

Splatting is done by replacing the dollar-sign $ with the splatting operator @ when using a variable containing a HashTable of parameters and values in a command call. $MyParameters = @{ Name = "iexplore" FileVersionInfo = $true } Get-Process @MyParameters Without splatti...
Detailed instructions on getting nopcommerce set up or installed.
Capabilities of the Canvas Canvas lets you programmatically draw onto your webpage: Images, Texts, Lines and Curves. Canvas drawings can be extensively styled: stroke width, stroke color, shape fill color, opacity, shadowing, linear gradients and radial gradients, font face, font ...
Recycling can be used in a clever way to simplify code. Subsetting If we want to keep every third element of a vector we can do the following: my_vec <- c(1,2,3,4,5,6,7,8,9,10) my_vec[c(TRUE, FALSE)] [1] 1 3 5 7 9 Here the logical expression was expanded to the length of the vector. ...
Private Sub Get_Last_Used_Row_Index() Dim wS As Worksheet Set wS = ThisWorkbook.Sheets("Sheet1") Debug.Print LastCol_1(wS) Debug.Print LastCol_0(wS) End Sub You can choose between 2 options, regarding if you want to know if there is no data in the worksheet :...
The simplest way to refer to a single cell on the current Excel worksheet is simply to enclose the A1 form of its reference in square brackets: [a3] = "Hello!" Note that square brackets are just convenient syntactic sugar for the Evaluate method of the Application object, so technicall...
To save a reference to a cell in a variable, you must use the Set syntax, for example: Dim R as Range Set R = ActiveSheet.Cells(3, 1) later... R.Font.Color = RGB(255, 0, 0) Why is the Set keyword required? Set tells Visual Basic that the value on the right hand side of the = is meant to be ...
os.path.abspath(os.path.join(PATH_TO_GET_THE_PARENT, os.pardir))
context.globalAlpha=0.50 You can change the opacity of new drawings by setting the globalAlpha to a value between 0.00 (fully transparent) and 1.00 (fully opaque). The default globalAlpha is 1.00 (fully opaque). Existing drawings are not affected by globalAlpha. // draw an opaque rectangle co...
NSDictionary can be enumerated using fast enumeration, just like other collection types: NSDictionary stockSymbolsDictionary = @{ @"AAPL": @"Apple", @"GOOGL": @"Alphabet", ...
appendToFile: Append single src, or multiple srcs from local file system to the destination file system. Also reads input from stdin and appends to destination file system. Keep the as - hdfs dfs -appendToFile [localfile1 localfile2 ..] [/HDFS/FILE/PATH..] cat: Copies source paths to stdout. ...
The command pattern encapsulates parameters to a method, current object state, and which method to call. It is useful to compartmentalize everything needed to call a method at a later time. It can be used to issue a "command" and decide later which piece of code to use to execute the comma...
An iterator pattern provides a simple method for selecting, sequentially, the next item in a collection. Fixed Collection class BeverageForPizza { constructor(preferenceRank) { this.beverageList = beverageList; this.pointer = 0; } next() { return this.be...
To begin, npm install the desired loaders for your project. Inside of the configuration object that is being exported in webpack.config.js, a module property will hold all of your loaders. const source = `${__dirname}/client/src/`; module.exports = { // other settings here module: { ...
The pattern (p1, p2) is strict in the outermost tuple constructor, which can lead to unexpected strictness behaviour. For example, the following expression diverges (using Data.Function.fix): fix $ \(x, y) -> (1, 2) since the match on (x, y) is strict in the tuple constructor. However, the fo...
It is the basic usage of the TextInputLayout. Make sure to add the dependency in the build.gradle file as described in the remarks section. Example: <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wra...
You can use the TextInputLayout to display error messages according to the material design guidelines using the setError and setErrorEnabledmethods. In order to show the error below the EditText use: TextInputLayout til = (TextInputLayout) findViewById(R.id.username); til.setErrorEnabled(true); ...
The TextInputLayout has a character counter for an EditText defined within it. The counter will be rendered below the EditText. Just use the setCounterEnabled() and setCounterMaxLength methods: TextInputLayout til = (TextInputLayout) findViewById(R.id.username); til.setCounterEnabled(true); til...
With an input password type, you can also enable an icon that can show or hide the entire text using the passwordToggleEnabled attribute. You can also customize same default using these attributes: passwordToggleDrawable: to change the default eye icon passwordToggleTint: to apply a tint to the...
The TextInputEditText is an EditText with an extra fix to display a hint in the IME when in 'extract' mode. The Extract mode is the mode that the keyboard editor switches to when you click on an EditText when the space is too small (for example landscape on a smartphone). In this case, using an Ed...

Page 788 of 1336