Tutorial by Examples: ti

Detailed instructions on getting plone set up or installed.
JUnit can also be used to test if a method throws a specific exception for a given input. In this example we will test if the following method really throws an exception if the Boolean format (input) is not recognized/unknown: public static boolean parseBoolean(@NonNull String raw) throws IllegalA...
JUnit defines quite some assertEquals methods at least one for each primitive type and one for Objects is available. These methods are by default not directly available to call and should be called like this: Assert.assertEquals. But because these methods are used so often people almost always use a...
In this example we will describe what happens when you scaffold a new project. First thing, the following dependencies will be added to you project (currently project.json file) : "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", "Microsoft.Extensions.Co...
When dealing with large configuration sets of value, it might become quite unhandy to load them one buy one. Option model which comes with asp.net offers a convenient way to map a section to a dotnet poco: For instance, one might hydrate StorageOptions directly from a configuration section b addin...
You can also source configuration from an in memory object such as a Dictionary<string,string> .AddInMemoryCollection(new Dictionary<string, string> { ["akey"] = "a value" }) This can reveal helpful in integration/unit testing scenarios.
To use OpenGL ES in your application you must add this to the manifest: <uses-feature android:glEsVersion="0x00020000" android:required="true"/> Create your extended GLSurfaceView: import static android.opengl.GLES20.*; // To use all OpenGL ES 2.0 methods and constants...
In order to be able to directly deploy web project changes to an Web Server, the following steps must be followed. If target server has Internet access, the process is quite simple, as Microsoft has a Web Platform package to do almost everything that is needed. Cleanup Make sure that C:\Progra...
import com.couchbase.client.core.endpoint.SSLEngineFactory import com.couchbase.client.java.env.DefaultCouchbaseEnvironment import com.couchbase.client.java.CouchbaseCluster object CouchbaseConnection extends App { //Create default environment object. //Set the keystone file path(downlo...
Detailed instructions on getting pyqt4 set up or installed. Windows Link Mac Link Linux Link If you want to install the version specific to your system python version and you system configuration(32-bit or 64-bit) then go to this link and download and install the package. You can install the...
A function returns everything that is not captured by something else. If u use the return keyword, every statement after the return line will not be executed! Like this: Function Test-Function { Param ( [switch]$ExceptionalReturn ) "Start" if($Exceptio...
At the very core, your entity main DAC must have GUID column (NoteID) to reference CSAnswers table and must have field that identify the class of the Entity. We will make use of Order Type to define list of attributes to gather particular order type-specific information. Create a Graph Extension f...
var indexController = myApp.controller("indexController", function ($scope) { // Application logic goes here });
var indexController = myApp.controller("indexController", function ($scope) { // controller logic goes here $scope.message = "Hello Hacking World" });
Lets say you have a user schema, which contains name , contactNo, address, and friends. var UserSchema = new mongoose.Schema({ name : String, contactNo : Number, address : String, friends :[{ type: mongoose.Schema.Types.ObjectId, ref : User }] }); If y...
Fully configuration of Web deployment without Internet connection (offline) is harder to make because Web platform installer (UI) operates by querying packages list and content from an Internet location. Cleanup Make sure that C:\Program Files\IIS does not contain older version of Microsoft We...
Detailed instructions on getting dicom set up or installed.
To be able to change the view location, you need to implement the IViewLocationExpander. The ExpandViewLocations method returns an IEnumerable<string> containing the different locations where to search, with public class MyViewLocationExpander : IViewLocationExpander { public IEnumerabl...
You now need to register the Expander, in order for it to be used by the Razor View Engine. Just add this in the ConfigureServices of your Startup class. public void ConfigureServices(IServiceCollection services) { services.Configure<RazorViewEngineOptions>(options => { opti...

Page 408 of 505