Tutorial by Examples: 6

Incorrect code Sub DoSomething() Dim row As Integer For row = 1 To 100000 'do stuff Next End Sub Why doesn't this work? The Integer data type is a 16-bit signed integer with a maximum value of 32,767; assigning it to anything larger than that will overflow the type and ...
A settings variable Default_Base is set on the instance of Ada.Text_IO.Integer_IO; also, Default_Width is set so that output cannot have leading space. with Ada.Text_IO; use Ada.Text_IO; procedure Print_Hex is subtype Count is Integer range -1_000_000 .. 1_000_000; package Count_IO...
This will take about 30 minutes. We will be setting Ruby on Rails Development Environment on Ubuntu 16.10 Yakkety Yak. Open up your terminal using Ctrl + Alt + T. Installing Ruby The First step is to install Dependencies For Ruby. sudo apt-get update sudo apt-get install git-core curl zlib1g-...
Given a normalized phone number like +178612345678 we will get a formatted number with the provided pattern. private String getFormattedNumber(String phoneNumber) { PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); Phonemetadata.NumberFormat numberFormat = new P...
import React from 'react'; class SearchEs6 extends React.Component{ constructor(props) { super(props); this.state = { searchResults: [] }; } showResults(response){ this.setState({ searchResults: response.results ...
JS es6 (also known as es2015) is a set of new features to JS language aim to make it more intuitive when using OOP or while facing modern development tasks. Prerequisites: Check out the new es6 features at http://es6-features.org - it may clarify to you if you really intend to use it on your n...
After spending more than 5 hours, i found this easy solution: -To verify that the system has a CUDA-capable GPU, run the following command: lspci | grep -i NVIDIA You will see output similar to the following example (showing an NVIDIA Tesla K80/M60 card): -Disabling the nouveau driver: sudo...
create or replace directory DATAPUMP_REMOTE_DIR as '/oracle/scripts/expimp';
Step 1 – Install LAMP To start with Laravel, we first need to set up a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to set up lamp on Ubuntu system. Install PHP 5.6 $ sudo apt-get install python-software-properties $ sudo add-apt-reposit...
We have here a file Size filter to describe how to add costum filter to an existing module : let fileSize=function (size,unit,fixedDigit) { return size.toFixed(fixedDigit) + ' '+unit; }; let fileSizeFilter=function () { return function (size) { if (isNaN(size)) ...
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...
class Mammel { constructor(legs){ this.legs = legs; } eat(){ console.log('eating...'); } static count(){ console.log('static count...'); } } class Dog extends Mammel{ constructor(name, legs){ super(legs); this.name = name; } sleep(){ super...
# Roll a 6 sided die, rand(6) returns a number from 0 to 5 inclusive dice_roll_result = 1 + rand(6)
For this example, let's assume that the inputs have a dimensionality of (frames, channels, rows, columns), and the outputs have a dimensionality of (classes). from keras.applications.vgg16 import VGG16 from keras.models import Model from keras.layers import Dense, Input from keras.layers.pooling...
Getting started with Ext JS 6. Prerequisite steps: Download Sencha Cmd 6 and install it with sencha command set in environment path variables. Download trail version of Sencha SDK (ext-6.2.1.zip) and unzip it.(on location D:\ext-6.2.1) System is ready to create Extjs 6 application. Create ...
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...
How to find documents created 60 seconds ago seconds = 60 gen_time = datetime.datetime.today() - datetime.timedelta(seconds=seconds) dummy_id = ObjectId.from_datetime(gen_time) db.CollectionName.find({"_id": {"$gte": dummy_id}}) If you're in a different timezone, y...
Getting started with Ext JS 6. Prerequisite steps: Download Sencha Cmd 6 and install it with sencha command set in environment path variables. Download trail version of Sencha SDK (ext-6.2.1.zip) and unzip it.(on location D:\ext-6.2.1) System is ready to create Extjs 6 application. Create ...
Install msys2 (http://www.msys2.org/) Install the required prerequisites for Vala pacman -S mingw64/mingw-w64-x86_64-gcc pacman -S mingw64/mingw-w64-x86_64-pkg-config pacman -S mingw64/mingw-w64-x86_64-vala and all the additional packages your code requires, i.e. pacman -S mingw64/mi...
class Person { constructor(firstname, lastname) { this._firstname = firstname; this._lastname = lastname; } get firstname() { return this._firstname; } set firstname(name) { this._firstname = name; } get lastname() { return this._lastname; } ...

Page 5 of 6