Tutorial by Examples

TestNG is your updated test framework for junit. We are going to utilize testng.xml for invoking test suites. This is helpful when we are going to use CI ahead. testng.xml In the root folder of your project create an xml file with the name testng.xml. Note that name can be different as well, but f...
TBD. How to setup pom.xml for calling testng.xml
TBD. Will cover the Jenkins setup for pulling code from git/bitbucket etc.
public class Equatable { public string field1; public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; var type = obj.GetType(); if (GetType() != type) re...
Navigation bars are essentially a list of links, so the ul and li elements are used to encase navigation links. <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">...
To make a navigation bar using the HTML5 nav element, encase the links within the nav tag. <nav> <a href="#">Home</a> <a href="#">About</a> <a href="#">Contact</a> </nav>
The tokio-signal crate provides a tokio-based solution for handling signals. It's still in it's early stages though. extern crate futures; extern crate tokio_core; extern crate tokio_signal; use futures::{Future, Stream}; use tokio_core::reactor::Core use tokio_signal::unix::{self as unix_si...
public class Foo { private String name; public Foo(@NonNull String name){...}; ... } Here @NonNull is annotation which is processed compile time by the android studio to warn you that the particular function needs non null parameter.
Ensure you met all requirements, as per Requirements Mount the temporary API filesystems: cd /location/of/new/root mount -t proc proc proc/ mount --rbind /sys sys/ mount --rbind /dev dev/ mount --rbind /run run/ (optionally) If you need to use an internet connection in the c...
root privileges another working Linux environment,such as Live CD boot or an existing distribution matching environment architectures of chroot source and destination (check current environment architecture with uname -m) kernel modules which you may need in chroot environment must be loaded (f...
Changing root is commonly done for performing system maintenance on systems where booting and/or logging in is no longer possible. Common examples are: reinstalling the bootloader rebuilding the initramfs image upgrading or downgrading packages resetting a forgotten password building softwar...
There are three types of annotations. Marker Annotation - annotation that has no method @interface CustomAnnotation {} Single-Value Annotation - annotation that has one method @interface CustomAnnotation { int value(); } Multi-Value Annotation - annotation that...
For creating custom annotations we need to decide Target - on which these annotations will work on like field level, method level, type level etc. Retention - to what level annotation will be available. For this, we have built in custom annotations. Check out these mostly used ones: @Target...
This way can be so helpfull, but, some people (like me) are afreak of repeat code, and like you are showin us, it means that I need to create a contact controller with the same code on each proyect that we have, so, I thing that this can be helpfull too This is my class, that can be on a DLL or wha...
You can create a new notebook in RStudio with the menu command File -> New File -> R Notebook If you don't see the option for R Notebook, then you need to update your version of RStudio. For installation of RStudio follow this guide
Chunks are pieces of code that can be executed interactively. In-order to insert a new chunk by clicking on the insert button present on the notebook toolbar and select your desired code platform (R in this case, since we want to write R code). Alternatively we can use keyboard shortcuts to insert a...
You can run the current chunk by clicking Run current Chunk (green play button) present on the right side of the chunk. Alternatively we can use keyboard shortcut Ctrl + Shift + Enter (OS X: Cmd + Shift + Enter) The output from all the lines in the chunk will appear beneath the chunk. Splitting Co...
When you execute code in a notebook, an indicator will appear in the gutter to show you execution progress. Lines of code which have been sent to R are marked with dark green; lines which have not yet been sent to R are marked with light green. Executing Multiple Chunks Running or Re-Running indiv...
Before rendering the final version of a notebook we can preview the output. Click on the Preview button on the toolbar and select the desired output format. You can change the type of output by using the output options as "pdf_document" or "html_notebook"
When a notebook .Rmd is saved, an .nb.html file is created alongside it. This file is a self-contained HTML file which contains both a rendered copy of the notebook with all current chunk outputs (suitable for display on a website) and a copy of the notebook .Rmd itself. More info can be found at R...

Page 1307 of 1336