Tutorial by Examples: al

With the virtual hard drive just created, boot the virtual machine with the android-x86 image as the optical drive. In the booting options of the Live CD choose "Installation - Install Android to hard disk" Choose the sda1 partition and install android and we'll install grub. Reboot t...
step 1: Create Project - Application - app.js - Controllers - appController.js - Factories - SignalR-factory.js - index.html - Scripts - angular.js - jquery.js - jquery.signalR.min.js - Hubs SignalR version use: signalR-2.2.1 Step 2: Startu...
Suppose we have a simple class with validation annotations public class UserDTO { @NotEmpty private String name; @Min(18) private int age; //getters/setters } A controller to check the UserDTO validity. @RestController public class ValidationController { @Reque...
Q-learning is a variant of model-free reinforcement learning. In Q-learning we want the agent to estimate how good a (state, action) pair is so that it can choose good actions in each state. This is done by approximating an action-value function (Q) that fits in equation below: Where s and a are ...
So the good news is that Apple kindly includes a Ruby interpreter. Unfortunately, it tends not to be a recent version: $ /usr/bin/ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] If you have Homebrew installed, you can get the latest Ruby with: $ brew install ruby...
Run the following bash script as sudo #!/bin/bash # get deps apt -y install build-essential libncurses5-dev libxml2-dev libsqlite3-dev libssl-dev libsrtp0-dev uuid-dev libjansson-dev # download cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz...
Getting started with xUnit.net, on Platform: .NET Core / ASP.NET Core Desktop CLR Universal Windows Apps
display dialog "Password" default answer "" set w to text returned of the result if w = "Password" then display notification "Correct" end if
Working with Kettle There are two versions of Kettle aka Pentaho Data Integration : Kettle CE (Community Edition) Kettle EE (Enterprise Edition) Documents aims mainly on Kettle CE edition. Prerequisites PDI requires the Oracle Java Runtime Environment (JRE) version 7. You can obtain a JRE ...
Any @Component or @Configuration could be marked with @Profile annotation @Configuration @Profile("production") public class ProductionConfiguration { // ... } The same in XML config <beans profile="dev"> <bean id="dataSource" class="&l...
Suppose you need to work on three different projects project A, project B and project C. project A and project B need python 3 and some required libraries. But for project C you need python 2.7 and dependent libraries. So best practice for this is to separate those project environments. To create v...
Suppose you need to work on three different projects project A, project B and project C. project A and project B need python 3 and some required libraries. But for project C you need python 2.7 and dependent libraries. So best practice for this is to separate those project environments. For creati...
Detailed instructions on getting owl set up or installed.
Detailed instructions on getting influxdb set up or installed.
In DRF, serializer validation is run in a specific, undocumented order Field deserialization called (serializer.to_internal_value and field.run_validators) serializer.validate_[field] is called for each field. Serializer-level validators are called (serializer.run_validation followed by seriali...
Detailed instructions on getting kdb set up or installed.
In this example we will extract all the web links from a website. I am using http://stackoverflow.com/ for illustration. Here recursion is used, where each obtained link's page is parsed for presence of an anchor tag and that link is again submitted to the same function. The condition if(add &&...
public class Foobar { public static void main(String[] args) { // example: Boolean ignore = null; if (ignore == false) { System.out.println("Do not ignore!"); } } } The pitfall here is that null is compared to false. Since w...
If we want to disable all the actions like Copy, Paste, Replace, Select, etc from UITextField then we can use following custom text field: class CustomTextField: UITextField { var enableLongPressActions = false required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder)! } o...
Parameter TypesReturn TypeInterface()voidRunnable()TSupplier()booleanBooleanSupplier()intIntSupplier()longLongSupplier()doubleDoubleSupplier(T)voidConsumer<T>(T)TUnaryOperator<T>(T)RFunction<T,R>(T)booleanPredicate<T>(T)intToIntFunction<T>(T)longToLongFunction<T>(...

Page 252 of 269