Tutorial by Examples: ti

There are already implemented forms within Django to change the user password, one example being SetPasswordForm. There aren't, however, forms to modify the user e-mail and I think the following example is important to understand how to use a form correctly. The following example performs the foll...
Once you've met the prerequisites for installing Nexus Repository Manager 3, you'll need to follow a few steps to get it running on Linux. Open a terminal Copy the package to a sane place sudo cp nexus-3.1.0-04-unix.tar.gz /usr/local cd /usr/local Untar the Nexus Repository Manager package via...
Once you've met the prerequisites for installing Nexus Repository Manager 3, you'll need to follow a few steps to get it running on Windows. Unzip the package, e.g. 7za.exe e nexus-3.1.0-04-win64.zip Copy the package to a sane place, likely C:\nexus Assuming you are using the command prompt a...
public class MergeSortBU { private static Integer[] array = { 4, 3, 1, 8, 9, 15, 20, 2, 5, 6, 30, 70, 60,80,0,9,67,54,51,52,24,54,7 }; public MergeSortBU() { } private static void merge(Comparable[] arrayToSort, Comparable[] aux, int lo,int mid, int hi) { for (int ...
In [1]: import pandas as pd import numpy as np In [2]: df = pd.DataFrame(np.random.choice(['foo','bar','baz'], size=(100000,3))) df = df.apply(lambda col: col.astype('category')) In [3]: df.head() Out[3]: 0 1 2 0 bar foo baz 1 baz bar baz 2 foo foo b...
Detailed instructions on getting rdf set up or installed.
//integer (not really needed unless you need to round numbers, Excel with use default cell properties) worksheet.Cells["A1:A25"].Style.Numberformat.Format = "0"; //integer without displaying the number 0 in the cell worksheet.Cells["A1:A25"].Style.Numberformat.Form...
Detailed instructions on getting javafx-8 set up or installed.
//default DateTime patterns worksheet.Cells["A1:A25"].Style.Numberformat.Format = DateTimeFormatInfo.CurrentInfo.ShortDatePattern; //custom DateTime patters worksheet.Cells["A1:A25"].Style.Numberformat.Format = "dd-MM-yyyy HH:mm"; //or overwrite the patterns in ...
The ApplicationData.Current.LocalFolder api allows us to get access to the application cache : var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myFile.dat", CreationCollisionOption.ReplaceExisting); The FileIO class contains a set of utility methods to easily add d...
Anonymous pipes, or simply pipes, are kernel-managed objects exposed to processes as a pair of file descriptors, one for the read terminus and one for the write terminus. They are created via the pipe(2) function: int pipefds[2]; int result; result = pipe(pipefds); On success, pipe() record...
Connecting two child processes via a pipe is performed by connecting each of two children to the parent via different ends of the same pipe. Usually, the parent will not be party to the conversation between the children, so it closes its copies of both pipe ends. int demo() { int pipefds[2]; ...
A shell-style pipeline consists of two or more processes, each one with its standard output connected to the standard input of the next. The output-to-input connections are built on pipes. To establish a pipeline-like set of processes, one creates pipe-connected child processes as described in ano...
Example of creating an empty HashTable: $hashTable = @{} Example of creating a HashTable with data: $hashTable = @{ Name1 = 'Value' Name2 = 'Value' Name3 = 'Value3' }
An example, to add a "Key2" key with a value of "Value2" to the hash table, using the addition operator: $hashTable = @{ Key1 = 'Value1' } $hashTable += @{Key2 = 'Value2'} $hashTable #Output Name Value ---- -----...
Intervention Image is an open source PHP image handling and manipulation library. It provides an easier and expressive way to create, edit, and compose images and supports currently the two most common image processing libraries GD Library and Imagick. Read more about this here
Arrow functions will throw a TypeError when used with the new keyword. const foo = function () { return 'foo'; } const a = new foo(); const bar = () => { return 'bar'; } const b = new bar(); // -> Uncaught TypeError: bar is not a constructor...
Let df = pd.DataFrame({'col_1':['A','B','A','B','C'], 'col_2':[3,4,3,5,6]}) df # Output: # col_1 col_2 # 0 A 3 # 1 B 4 # 2 A 3 # 3 B 5 # 4 C 6 To get the distinct values in col_1 you can use Series.unique() df['col_1'].unique() # Output: ...
###### Used for both Classification and Regression examples library(randomForest) library(car) ## For the Soils data data(Soils) ###################################################### ## RF Classification Example set.seed(656) ## for ...
To use an in memory cache in your ASP.NET application, add the following dependencies to your project.json file: "Microsoft.Extensions.Caching.Memory": "1.0.0-rc2-final", add the cache service (from Microsoft.Extensions.Caching.Memory) to ConfigureServices method in Startup...

Page 394 of 505