Tutorial by Examples: an

Detailed instructions on getting windows-installer set up or installed.
Prior to iOS 7 when you want to scan a QR code, we might need to rely on third party frameworks or libraries like zBar or zXing. But Apple introduced AVCaptureMetaDataOutput from iOS 7 for reading barcodes. To read QR code using AVFoundation we need to setup/create AVCaptureSession and use captureO...
Both are used to define error handling for a website, but different software refers to different config elements. customErrors are a legacy (backwards compatable) element, used by Visual Studio Development Server (aka. VSDS or Cassini). httpErrors are the new element which is only used by IIS7. T...
Suppose you want the user to select keywords from a menu, we can create a script similar to #!/usr/bin/env bash select os in "linux" "windows" "mac" do echo "${os}" break done Explanation: Here select keyword is used to loop through a list ...
Example of a TCA field configuration where you can select records from a table 'my_topfeatures' => array( 'label' => 'Select Topfeatures', 'config' => array( 'type' => 'group', 'internal_type' => 'db', 'size' => '4', ...
In Kotlin, if, try and others are expressions (so they do return a value) rather than (void) statements. So, for example, Kotlin does not have Java's ternary Elvis Operator, but you can write something like this: val i = if (someBoolean) 33 else 42 Even more unfamiliar, but equally expressive, ...
If a file is changed, but you don't like to commit it, set the file as "Assume unchanged" Revert "Assume unchanged" Need some steps:
Since Git 2.13, multiple usernames and email addresses could be configured by using a folder filter. Example for Windows: .gitconfig Edit: git config --global -e Add: [includeIf "gitdir:D:/work"] path = .gitconfig-work.config [includeIf "gitdir:D:/opensource/"] ...
A-Frame 0.x0.3 A-Frame provides an implementation for supporting multiple types of 6DoF controllers (Vive, Oculus Touch) via the hand-controls component. The hand-controls component is primarily for 6DoF controllers since it’s geared towards room scale interactions such as grabbing objects. The han...
Integral type ranges ( IntRange , LongRange , CharRange ) have an extra feature: they can be iterated over. The compiler takes care of converting this analogously to Java's indexed for-loop, without extra overhead for (i in 1..4) print(i) // prints "1234" for (i in 4..1) print(i) // pri...
When generating new Angular 2 components in a .NET Core project, you may run into the following errors (as of version 0.8.3): Error locating module for declaration SilentError: No module files found OR No app module found. Please add your new Class to your component. Identica...
Like other value types, GUID also has a nullable type which can take null value. Declaration : Guid? myGuidVar = null; This is particularly useful when retrieving data from the data base when there is a possibility that value from a table is NULL.
This is an Example which print rectangle and fill color in the rectangle. https://i.stack.imgur.com/dlC5v.jpg Most methods of the Graphics class can be divided into two basic groups: Draw and fill methods, enabling you to render basic shapes, text, and images Attributes setting methods, whic...
import javax.swing.*; import java.awt.*; public class MyPanel extends JPanel { @Override public void paintComponent(Graphics g){ // clear the previous painting super.paintComponent(g); Graphics2D g2 = (Graphics2D)g; g2.setColor(Co...
Dim rng As New Random() This declares an instance of the Random class called rng. In this case, the current time at the point where the object is created is used to calculate the seed. This is the most common usage, but has its own problems as we shall see later in the remarks Instead of allowin...
The following example declares a new instance of the Random class and then uses the method .Next to generate the next number in the sequence of pseudo-random numbers. Dim rnd As New Random Dim x As Integer x = rnd.Next The last line above will generate the next pseudo-random number and assign ...
Jenkins: The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. Sonar Qube: SonarQube provides the capability to not only show health of an application but also to highlight issues newly introduced. Apache Ant: A...
A clean way to handle booleans is using an inline conditional with the a ? b : c ternary operator, which is part of Swift's Basic Operations. The inline conditional is made up of 3 components: question ? answerIfTrue : answerIfFalse where question is a boolean that is evaluated and answerIfTrue...
Blender's viewport is a dynamic, changeable interface composed of many different windows. With the program running by default, the viewport is composed of 5 different windows. Windows can be identified by looking for their small square indicator icons either in the top or bottom-left corner. They ma...
We can call an action result in another action result. public ActionResult Action1() { ViewData["OutputMessage"] = "Hello World"; return RedirectToAction("Action2","ControllerName"); //this will go to second action; } public ActionResult...

Page 291 of 307