Tutorial by Examples

Detailed instructions on getting xcode8 set up or installed.
As a workaround, you may use the wildfly-specific VFS api and write your own ResourceAcessor implementation, such as this one below. public class WildflyVFSClassLoaderResourceAccessor extends AbstractResourceAccessor { private ClassLoader classLoader; public WildflyVFSClassLoaderResou...
A wordpress theme consists two types of files. The basic files that each theme has and the files that define the theme's layout and functionality. This second group i'm going to call the theme specific files. The basic theme files The basic theme files are the files that are used to setup and regi...
Detailed instructions on getting task-parallel-library set up or installed.
In a terminal run brew install maven Once the install is over check that maven works correctly with mvn -v. The output should look something like: Apache Maven 3.3.9 Maven home: /usr/local/Cellar/maven/3.3.9/libexec Java version: 1.8.0_121, vendor: Oracle Corporation Java home: /Library/Ja...
As mentioned in another example a subset of the elements of an array, called an array section, may be referenced. From that example we may have real x(10) x(:) = 0. x(2:6) = 1. x(3:4) = [3., 5.] Array sections may be more general than this, though. They may take the form of subscript trip...
Given I have entered <FirstOperand> into the calculator And I have also entered <SecondOperand> into the calculator When I press add Then the result should be <Result> on the screen |FirstOperand|SecondOperand|Result| |20 |30 |50 |...
In the new Angular framework, Components are the main building blocks that compose the user interface. So one of the first steps that helps an AngularJS app to be migrated to the new Angular is to refactor it into a more component-oriented structure. Components were also introduced in the old Angu...
This snippet will list all the filenames of a zip archive. The filenames are relative to the zip root. using (FileStream fs = new FileStream("archive.zip", FileMode.Open)) using (ZipArchive archive = new ZipArchive(fs, ZipArchiveMode.Read)) { for (int i = 0; i < archive.Entries....
Extracting all the files into a directory is very easy: using (FileStream fs = new FileStream("archive.zip", FileMode.Open)) using (ZipArchive archive = new ZipArchive(fs, ZipArchiveMode.Read)) { archive.ExtractToDirectory(AppDomain.CurrentDomain.BaseDirectory); } When the file...
To update a ZIP file, the file has to be opened with ZipArchiveMode.Update instead. using (FileStream fs = new FileStream("archive.zip", FileMode.Open)) using (ZipArchive archive = new ZipArchive(fs, ZipArchiveMode.Update)) { // Add file to root archive.CreateEntryFromFile(&qu...
runtime: php vm: true api_version: 1 runtime_config: document_root: web
iText 2 and earlier: import com.lowagie.text.*; iText 5: import com.itextpdf.text.*; iText 7: import com.itextpdf.kernel.*; import com.itextpdf.layout.*; ...
The operators <, <=, > and >= are binary operators for comparing numeric types. The meaning of the operators is as you would expect. For example, if a and b are declared as any of byte, short, char, int, long, float, double or the corresponding boxed types: - `a < b` tests if the v...
Detailed instructions on getting graph-theory set up or installed.
This example is strictly a workaround since, currently there is no way to disable a behaviour known as ShiftMode. Create a function as such. public static void disableMenuShiftMode(BottomNavigationView view) { BottomNavigationMenuView menuView = (BottomNavigationMenuView) view.getChildAt(0); ...
If you want to use Swift3.0 or Bitcode you can add this code in your podfile. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'YES' config.build_settings['SWIFT...
For this example we will test the sum method of a simple calculator. In this example we will test the application: ApplicationToTest. This one has a class called Calc. This class has a method Sum(). The method Sum() looks like this: public void Sum(int a, int b) { return a + b; } The un...
Template - signup.component.html <form #signUpForm="ngForm" (ngSubmit)="onSubmit()"> <div class="title"> Sign Up </div> <div class="input-field"> <label for="username">username</label> ...
You can get JCodec automatically with maven. For this just add below snippet to your pom.xml . <dependency> <groupId>org.jcodec</groupId> <artifactId>jcodec-javase</artifactId> <version>0.1.9</version> </dependency>

Page 1247 of 1336