Tutorial by Examples: st

In this example we are creating a new xs:complexType (EmployeeType) based on an existing xs:complexType (PersonType). The construction of this is slightly more complicated. Because the base xs:complexType (PersonType) is considered to be complex (more about this below) we add the <xs:complexCon...
This is where things get a little tricky. We are now restricting an existing xs:complexType. Our SolidStateDriveType derives from HardDiskType but removes the spinUpTime attribute and the RotationSpeed element. Notice the approach for dealing with attributes and elements is different. To remove an ...
# Get two numbers from STDIN, separated by a newline, and output the result number1 = gets number2 = gets puts number1.to_i + number2.to_i ## run with: $ ruby a_plus_b.rb ## or: $ echo -e "1\n2" | ruby a_plus_b.rb
After installing the SDK, atlas-run-standalone starts a JIRA instance with the latest released version. atlas-run-standalone --product jira The instance is available http://localhost:2990/jira The created instance is for testing only. It provides an other directory structure as production insta...
It is possible to customize the JIRA version, the port or the context path. atlas-run-standalone --product jira --version 6.0 --http-port 1337 --context-path issues The JIRA 6 instance is available under http://localhost:1337/issues There are more parameters that can be set for running atlas-ru...
The easiest way to run a local JIRA instance, is to install the SDK and run atlas-run-standalone For further details see Starting a local JIRA test instance Please note that this runs a local test instance and is not meant for production.
Consider the following code to copy one file to another: import java.io.*; public class FileCopy { public static void main(String[] args) throws Exception { try (InputStream is = new FileInputStream(args[0]); OutputStream os = new FileOutputStream(args[1])) { ...
The COMPILER system handle let's you look at information regarding a recent compile. Assuming ok-program.p is a program without any errors or warning: COMPILE ok-program.p SAVE NO-ERROR. DEFINE VARIABLE iError AS INTEGER NO-UNDO. MESSAGE "Errors: " COMPILER:ERROR SKIP ...
This example uses a class on the placeholder to turn it into a line and make it take up no room. HTML <div id="sortable"> <div>1</div> <div>2</div> <div>3</div> <div>4</div> </div> JS $("#sortable&q...
Executable C++ program code is usually produced by a compiler. A compiler is a program that translates code from a programming language into another form which is (more) directly executable for a computer. Using a compiler to translate code is called compilation. C++ inherits the form of its compi...
Selection of a Version Control System Of course many organisations or projects already have a preferred or selected version control system if this is the case for you just skip to client installation. There are a number of things to consider when selecting the version control system to use, given ...
RTE { classes { btn-lg { name = Button (large) requires = btn btn-default } btn-default { name = Button (default) requires = btn } } default { buttons.link.properties.class.allowedClas...
You would need to install ruby before you can install rails. Mac already comes with ruby installed based on how recent your macOS is? Depending on what ruby version you want for your development, the best way to install Ruby is to use RVM. In your terminal, type the command below listed in step...
The easiest way of installing Vala is to install your distribution-specific package. On Ubuntu: sudo apt install valac On Fedora: sudo dnf install vala On Arch: sudo pacman -S vala On OS X, with Homebrew: brew install vala On Windows, you can get an installer for the latest version ...
Cassandra uses two kinds of keys: the Partition Keys is responsible for data distribution across nodes the Clustering Key is responsible for data sorting within a partition A primary key is a combination of those to types. The vocabulary depends on the combination: simple primary key: only...
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.dropboxapi.com/2/files/list_folder"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CAINFO, "cacert.pem"); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOP...
As edgeapi suggests, it provides an interface for protecting attributes from end-user assignment. This makes Action Controller parameters forbidden to be used in Active Model mass assignment until they have been whitelisted. In addition, parameters can be marked as required and flow through a prede...
Now that you have the providers for your different models, you need to request them. Just as Vehicle needs Motor, you have to add the @Inject annotation in the Vehicle constructor as follows: @Inject public Vehicle(Motor motor){ this.motor = motor; } You can use the @Inject annotation to ...
Arrays can be passed to proceedures by putting () after the name of the array variable. Function countElements(ByRef arr() As Double) As Long countElements = UBound(arr) - LBound(arr) + 1 End Function Arrays must be passed by reference. If no passing mechanism is specified, e.g. myFunction...
Detailed instructions on getting ansible-playbook set up or installed.

Page 312 of 369