Tutorial by Examples: l

This uses the Dropbox Objective-C SDK to upload a local file to Dropbox as "/test.txt". [[client.filesRoutes uploadUrl:@"/test.txt" inputUrl:[NSURL fileURLWithPath:@"/local/path/to/test.txt"]] response:^(DBFILESFileMetadata *metadata, DBFILESUploadError *uploadError, D...
This uses the Dropbox Objective-C SDK to get the user's account information from the Dropbox API. [[client.usersRoutes getCurrentAccount] response:^(DBUSERSFullAccount *account, DBNilObject *_, DBRequestError *error) { if (account) { NSLog(@"%@", account); } else if (er...
This uses the Dropbox Objective-C SDK to download a file from Dropbox at "/test.txt". [[[client.filesRoutes downloadData:@"/test.txt"] response:^(DBFILESFileMetadata *metadata, DBFILESDownloadError *downloadError, DBRequestError *error, NSData *fileData) { if (metadata) { ...
The SharePoint Unified Logging Service (ULS) provides support and debugging capabilities for both ops and developers. Understanding how to read the logs is an important first step to resolving issues. Tooling Microsoft provides the ULS Viewer to help read old logs and logs that are currently being...
$command = 'Get-ChildItem' & $Command Will execute Get-ChildItem
You can add a button or another javafx component to Tableview using column setCellFactory(Callback value) method. Sample Application In this application we are going to add a button to TableView. When clicked to this column button, data on the same row as button is selected and its information pri...
Hello friends before start code we have need to declare dependency for access firebase ui component, so here is the dependency which you can put it in your gradel other wise you can add dependency as jar also. compile 'com.firebaseui:firebase-ui-database:0.4.0' Then after we are querying in fire...
An XSD that describe a contact information about a company is given below. <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://NamespaceTest.com/CommonTypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" ...
First, let's create a template to be rendered! p Hello World, #{name}! Save this in a file ending with the .pug extension (you can call it anything you like, but we will use view.pug in the following code to compile it). All that's left to do, now, is compile that template! Create a JS script f...
Running the installer will set up the application along with any and all available add-ons to enable additional functionality (for example, the Web add-on is required in order to allow QTP to control browser objects, the Terminal add-on allows it to control terminal emulator applications, the Java a...
It internally creates a ReplaySubject and makes it multicast compatible. The minimal replay value of ReplaySubject is 1 emission. This results in the following: First subscription will trigger the publishReplay(1) to internally subscribe to the source stream and pipe all emissions through the Rep...
Detailed instructions on getting spark-dataframe set up or installed.
//check if there is actually a file being uploaded if (FileUpload1.HasFile) { //load the uploaded file into the memorystream using (MemoryStream stream = new MemoryStream(FileUpload1.FileBytes)) using (ExcelPackage excelPackage = new ExcelPackage(stream)) { //loop all ...
public static DataTable ExcelPackageToDataTable(ExcelPackage excelPackage) { DataTable dt = new DataTable(); ExcelWorksheet worksheet = excelPackage.Workbook.Worksheets[1]; //check if the worksheet is completely empty if (worksheet.Dimension == null) { return dt;...
[HttpPost] [Route("api/Fitbit/Activity/Stats")] public async Task<HttpResponseMessage> ActivityStats(FitbitRequestDTO request) { if (string.IsNullOrEmpty(request.PatientId) || string.IsNullOrEmpty(request.DeviceId)) ret...
public async Task<HttpResponseMessage> ActivityStats(FitbitRequestDTO request) { try { var tokenErrorResponse = await EnsureToken(request); if (tokenErrorResponse != null) return tokenErrorRespons...
In LR Classifier, he probabilities describing the possible outcomes of a single trial are modeled using a logistic function. It is implemented in the linear_model library from sklearn.linear_model import LogisticRegression The sklearn LR implementation can fit binary, One-vs- Rest, or multinomia...
New Java programmers often forget, or fail to fully comprehend, that the Java String class is immutable. This leads to problems like the one in the following example: public class Shout { public static void main(String[] args) { for (String s : args) { s.toUpperCase(); ...
K-fold cross-validation is a systematic process for repeating the train/test split procedure multiple times, in order to reduce the variance associated with a single trial of train/test split. You essentially split the entire dataset into K equal size "folds", and each fold is used once fo...
This tool lets you produce messages from the command-line. Send simple string messages to a topic: kafka-console-producer --broker-list localhost:9092 --topic test here is a message here is another message ^D (each new line is a new message, type ctrl+D or ctrl+C to stop) Send messages with...

Page 722 of 861