Tutorial by Examples: l

To extend and expand upon the binding experience we have converters to convert one a value of one type into another value of another type. To leverage Converters in a Databinding you first need to create a DataConverter class tht extens either IValueConverter(WPF & UWP) or IMultiVal...
To install Marionette using NPM and Webpack Install NPM following the advice from the NPM blog Create a directory for your JavaScript application Inside that directory, run npm init, giving your application names Install Webpack: npm install --save webpack Install Marionette's dependencies: n...
Working Example: https://jsfiddle.net/Twisty/4f5yh3pa/7/ Cancelling and Reverting a sortable is not strongly documented. The helps show how moving an item from one list to another connected list can be conditionally cancelled. by default, this is not animated by sortable, this example includes an a...
Partial Update: Used when a partial document update is needed to be done, i.e. in the following example the field name of the document with id doc_id is going to be updated to 'John'. Note that if the field is missing, it will just be added to the document. doc = { "doc": { ...
Detailed instructions on getting graphite set up or installed.
Example of usage scalacheck with scalatest. Below we have four tests: "show pass example" - it passes "show simple example without custom error message " - just failed message without details, && boolean operator is used "show example with error messages on arg...
Use case: remember the current URL to return to after adding a new record in a different (related) controller, for instance create a new contact to add to an invoice being edited. InvoiceController / actionUpdate: Url::remember(Url::current(), 'returnInvoice'); ContactController / actionCreate:...
Zeromq has a huge number of bindings for different languages. To find the right binding and instructions how to use follow this. Also you can use: a pure C# implementation or Java implementation
In this example we will make a simple client and server with REQ-REP (request-reply) sockets. The client sends "Hello" to the server, which replies with "World". Server opens a ZeroMQ REP-socket on port 5555, reads requests on it, and replies with "World" to each reque...
this is the simple example of getting the hello world plain text message as output on calling the GET request. import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("/hello") public class HelloExample { @GET...
The stdio.h header defines the fgets() function. This function reads a line from a stream and stores it in a specified string. The function stops reading text from the stream when either n - 1 characters are read, the newline character ('\n') is read or the end of file (EOF) is reached. #include &l...
To use multi-threading in MATLAB one can use the batch command. Note that you must have the Parallel Computing toolbox installed. For a time-consuming script, for example, for ii=1:1e8 A(ii)=sin(ii*2*pi/1e8); end to run it in batch mode one would use the following: job=batch("da&quot...
Detailed instructions on getting liquibase set up or installed.
This example attempts a single Ping request. The ping command inside the runtime.exec method call can be modified to any valid ping command you might perform yourself in the command line. try { Process ipProcess = runtime.exec("/system/bin/ping -c 1 8.8.8.8"); int exitValue = ip...
Detailed instructions on getting angular-dart set up or installed.
Note: For brevity, the commands use here-strings (<<<) and ANSI C-quoted strings ($'...'). Both these shell features work in bash, ksh, and zsh. # GNU Sed $ sed ':a;$!{N;ba}; s/\n/\t/g' <<<$'line_1\nline_2\nline_3' line_1 line_2 line_3 # BSD Sed equivalent (multi-line form) ...
Opening any file NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel beginWithCompletionHandler:^(NSInteger result) { NSURL *url = openPanel.URL; if (result == NSFileHandlingPanelCancelButton || !url) { return; } // do something with a URL }]; Allowing ope...
Screenshot Adapter Class private class MyAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { final int EMPTY_VIEW = 77777; List<CustomData> datalist = new ArrayList<>(); MyAdapter() { super(); } @Override public RecyclerView.ViewHolder onCreateViewH...
Jsoup can be used to manipulate or extract data from a file on local that contains HTML. filePath is path of a file on disk. ENCODING is desired Charset Name e.g. "Windows-31J". It is optional. // load file File inputFile = new File(filePath); // parse file as HTML document ...
Menus act like all standard control items. They have an action which is the function to be called and a target which is the object to send the function to. If the target is set to an object then when a user selects a menu item it the action method will be sent to the target object. If the menu item ...

Page 762 of 861