Tutorial by Examples: and

Change Directory Navigate to a directory cd [directory] Example: Changing to the projects directory username$ cd projects Navigate to the root directory (regardless of working directory) cd / Navigate to the parent directory (the directory containing the working directory) cd .. ...
1)First, add dependency in project.json - "Microsoft.AspNetCore.Session": "1.1.0", 2)In startup.cs and add AddSession() and AddDistributedMemoryCache() lines to the ConfigureServices like this- services.AddDistributedMemoryCache(); //This way ASP.NET Core will use a Memory Cach...
1. Go to File --> Settings (e.g. Ctrl+Alt+S ). 2. In the left-hand pane, select Plugins. 3.On the Plugins window, click "Install JetBrains plugin" or the "Browse repositories button".
DIO streams are currently not recognized by the Event extension. There is no clean way to obtain the file descriptor encapsulated into the DIO resource. But there is a workaround: open stream for the port with fopen(); make the stream non-blocking with stream_set_blocking(); obtain numeric file...
You can add below hooks to add your own logo and link to replace default wordpress logo. To add custom logo function custom_login_logo() { echo '<style type="text/css"> h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.png) !important; backgro...
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...
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...
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...
With hierarchical clustering, outliers often show up as one-point clusters. Generate three Gaussian distributions to illustrate the effect of outliers. set.seed(656) x = c(rnorm(150, 0, 1), rnorm(150,9,1), rnorm(150,4.5,1)) y = c(rnorm(150, 0, 1), rnorm(150,0,1), rnorm(150,5,1)) ...
###### Used for both Classification and Regression examples library(randomForest) library(car) ## For the Soils data data(Soils) ###################################################### ## RF Classification Example set.seed(656) ## for ...
Sometimes you need to make a script for someone but you are not sure what he has on his machine. Is there everything that your script needs? Not to worry. Bundler has a great function called in line. It provides a gemfile method and before the script is run it downloads and requires all the necessa...
Unlike the .xs method, this allows you to assign values. Indexing using slicers is available since version 0.14.0. In [1]: import pandas as pd import numpy as np arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], ['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two'...
Go to the Bitbucket repository you want to add users to. On the left, go to Settings (the last icon on the bottom left). Select Users and group access. Under Users, start typing the name or email address of the user whom you want to add. Select the privilege you want to grant that user (Read, ...
ngRepeat uses $watchCollection to detect changes in the collection. When a change happens, ngRepeat then makes the corresponding changes to the DOM: When an item is added, a new instance of the template is added to the DOM. When an item is removed, its template instance is removed from the DOM...
Channel adapter is one of message endpoints in Spring Integration. It is used for unidirectional message flow. There are two types of channel adapter: Inbound Adapter: input side of the channel. Listen or actively read message. Outbound Adapter: output side of the channel. Send message to Java cla...
When moving to "Running" state there is special handler connected with this event: Open "App.xaml.cx" class and see "OnLaunched" method - this is activated when applicaiton is opened by user from "Terminaded" state: protected override void OnLaunched(LaunchA...
When moving to "Suspened" state there is special handler connected with this event: Open "App.xaml.cx" class and see "App" constructor - there is event handler: public App() { this.InitializeComponent(); //Handle suspending operation with event h...
Your application can be opened by user from "Suspended" state. When doing it "OnResuming" event handler is used. In "App.xaml.cs" class: public App() { this.InitializeComponent(); this.Suspending += OnSuspending; //Handle resuming operat...
import android.util.Log; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; public class Compress { private static f...
You have already created a plist. This plist will remain same in app. If you want to edit the data in this plist, add new data in plist or remove data from plist, you can't make changes in this file. For this purpose you will have to store your plist in Document Directory. You can edit your plist s...

Page 117 of 153