Tutorial by Examples: dse

SleekXMPP (Python) import sleekxmpp client = sleekxmpp.Client("[email protected]", "password") client.connect() client.process(blocking=False) client.send_message(mto="[email protected]", mbody=self.msg) Smack (Java / Android) XMPPTCPConnection connectio...
Used by awk to split each record into multiple fields: echo "a-b-c d-e-f" | awk 'BEGIN {FS="-"} {print $2}' will result in: b e The variable FS can also be set using the option -F: echo "a-b-c d-e-f" | awk -F '-' '{print $2}' By default, the fields are se...
Used by awk to split the input into multiple records. For example: echo "a b c|d e f" | awk 'BEGIN {RS="|"} {print $0}' produces: a b c d e f By default, the record separator is the newline character. Similarly: echo "a b c|d e f" | awk 'BEGIN {RS="|&quo...
A lexer action is a block of arbitrary code in the target language surrounded by {...}, which is executed during matching: IDENTIFIER: [A-Z]+ { log("matched rule"); }; A semantic predicate is a block of arbitrary code in the target language surrounded by {...}?, which evaluates to a bo...
When working with multiple open Workbooks, each of which may have multiple Sheets, it’s safest to define and set reference to all Workbooks and Sheets. Don't rely on ActiveWorkbook or ActiveSheet as they might be changed by the user. The following code example demonstrates how to copy a range from...
Note that many datatypes don't need to be quoted, since they evaluate to themselves. QUOTE is especially useful for symbols and lists, to prevent evaluation as Lisp forms. Example for other datatypes not needed to be quoted to prevent evaluation: strings, numbers, characters, CLOS objects, ... Her...
Once you have both your server-side logging running, and your client side development tools, you can start looking at Meteor specific extensions like the Meteor Chrome DevTools Extension. This lets you actually observe server logging in the client! Because the database is everywhere. As is logging. ...
Install the stable release from CRAN: install.packages("data.table") Or the development version from github: install.packages("data.table", type = "source", repos = "http://Rdatatable.github.io/data.table") To revert from devel to CRAN, the ...
CSS Getter The .css() getter function can be applied to every DOM element on the page like the following: // Rendered width in px as a string. ex: `150px` // Notice the `as a string` designation - if you require a true integer, // refer to `$.width()` method $("body").css("width...
Used by awk to separate fields output by the print statement. For example: echo "a b c d e f" | awk 'BEGIN {OFS="-"} {print $2, $3}' produces: b-c e-f The default value is , a string consisting of a single space.
Used by awk to separate records and is output at the end of every print statement. For example: echo "a b c d e f" | awk 'BEGIN {ORS="|"} {print $2, $3}' produces: b c|e f The default value is \n (newline character).
@IBOutlet weak var title: UILabel! { didSet { label.textColor = UIColor.redColor() label.font = UIFont.systemFontOfSize(20) label.backgroundColor = UIColor.blueColor() } } It's also possible to both set a value and initialize it: private var loginButton = UIButton() { ...
The easiest way to use Processing is by downloading the Processing editor from the Processing download page. That comes as a zip file. Unzip that file anywhere, and you'll have a directory that contains an executable (on Windows, that's processing.exe). Running that executable opens up the Process...
Ordering the results and setting a limit can easily be achieved with 2 additional lines added to the chain, like so: $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('*') ->from('#__users') ->where('username = '. $db->q('John')) ->ord...
Encapsulation is a basic concept in OOP. It is about wrapping data and code as a single unit. In this case, it is a good practice to declare the variables as private and then access them through Getters and Setters to view and/or modify them. public class Sample { private String name; privat...
The Ionic Platform offers a range of powerful, hybrid-focused mobile backend services and tools to make it easy to scale beautiful, performant hybrid apps, at a rapid pace. In order to use Ionic Platform you need to have the Ionic Framework installed. 1.) Registration (sign-up) You need to enter...
The variable FS is used to set the input field separator. In awk, space and tab act as default field separators. The corresponding field value can be accessed through $1, $2, $3... and so on. awk -F'=' '{print $1}' file -F - command-line option for setting input field separator. awk 'BEGIN ...
This variable is used to set the output field separator which is a space by default. awk -F'=' 'BEGIN { OFS=":" } { print $1 }' file Example: $ cat file.csv col1,col2,col3,col4 col1,col2,col3 col1,col2 col1 col1,col2,col3,col4,col5 $ awk -F',' 'BEGIN { OFS="|" } { $...
This variable is used to set input record separator, by default a newline. awk 'BEGIN{RS=","} {print $0}' file
This variable is used to set output record separator, by default a newline. awk 'BEGIN{ORS=","} {print $0}' file

Page 4 of 10