Tutorial by Examples: 3

After adding the GreenDao library dependency and Gradle plugin, we need to first create an entity object. Entity An entity is a Plain Old Java Object (POJO) that models some data in the database. GreenDao will use this class to create a table in the SQLite database and automatically generate helpe...
Background To get the product of a register and a constant and store it in another register, the naïve way is to do this: imul ecx, 3 ; Set ecx to 5 times its previous value imul edx, eax, 5 ; Store 5 times the contend of eax in edx Use lea Multiplications are expensive operation...
These PDF documents, starting from 1964, are those parts of the OS/360 "System Reference Library" (SRL) with enduring relevance and are also the earliest System/360 publications available on the web. Given IBM's stubborn insistance on full upward compatibility, all facilities described he...
1) IP based vhosts <VirtualHost 192.168.13.37> ServerName example.com DocumentRoot /var/www/domains/example.com/html ErrorLog /var/log/example.com/error.log CustomLog /var/log/example.com/access.log common </VirtualHost> <VirtualHost 192.168.47.11> ...
After you installed XAMPP and setup the MySQL database you can install WordPress. Download the latest version of WordPress. Unzip the file and insert the folder in the root directory of your webserver (if you used the suggested path during the setup of XAMPP it is "c:\xampp\htdocs"). ...
New-S3Bucket -BucketName trevor The Simple Storage Service (S3) bucket name must be globally unique. This means that if someone else has already used the bucket name that you want to use, then you must decide on a new name.
Set-Content -Path myfile.txt -Value 'PowerShell Rocks' Write-S3Object -BucketName powershell -File myfile.txt Uploading files from your local filesystem into AWS S3 is easy, using the Write-S3Object command. In its most basic form, you only need to specify the -BucketName parameter, to indicate ...
Get-S3Object -BucketName powershell | Remove-S3Object -Force Remove-S3Bucket -BucketName powershell -Force In order to remove a S3 bucket, you must first remove all of the S3 objects that are stored inside of the bucket, provided you have permission to do so. In the above example, we are retriev...
Note: This setup guide assumes that you have Java and Eclipse already installed on your machine. If you do not, download the latest version of the Java Development Kit (henceforth referred to as the JDK) and the latest version of Eclipse (Neon 3 at time of writing). Step One: Downloading LWJGL To...
One of the best Linux distributions currently for Raspberry Pi (from now on, "RPi") is Arch Linux. This web shows the installation for: RPi2. ARMv7 architecture (32 bits). RPi3. There are two options: ARMv7 architecture (32 bits) or AArch architecture (64 bits). This t...

S3

The S3 object system is a very simple OO system in R. Every object has an S3 class. It can be get (got?) with the function class. > class(3) [1] "numeric" It can also be set with the function class: > bicycle <- 2 > class(bicycle) <- 'vehicle' > class(bicycle) ...
You must have 3.2 to be able to upgrade to 3.4. This example assumes you are using apt. sudo service mongod stop sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xeni...
SharePoint 2013: Access User Profile Service Data using JSOM in SharePoint 2013 ​ In this article, we will learn to manage or access User Profile Service(UPS) Application using JSOM (Javascript Object Model) and create a basic App. Before we start, lets go through basic UPS terminology first. Us...
Add any JSR 303 implementation to your classpath. Popular one used is Hibernate validator from Hibernate. <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>4.2.0.Final</version> </dependen...
CREATE TABLE Table1 ( id INT UNSIGNED NOT NULL, created_on DATE NOT NULL, PRIMARY KEY (id) ) CREATE TABLE Table2 ( id INT UNSIGNED NOT NULL, personName VARCHAR(255) NOT NULL, PRIMARY KEY (id) ) CREATE TABLE Table3 ( id INT UNSIGNED NOT NULL, accountName VA...
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...
override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let imageView = UIImageView(frame: CGRect(x: CGFloat(0), y: CGFloat(50), width: CGFloat(320), height: CGFloat(320))) view.addSubview(imageVi...
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...
If necessary, change to your project directory cd MyAwesomeProject 1- Add accounts packages: meteor add accounts-base accounts-password react-meteor-data 2- Add the routes to login and signup pages in imports/startup/Routes.jsx The render() method will be as follows: render() { return ( ...

Page 10 of 11