Tutorial by Examples: ti

Detailed instructions on getting sharedpreferences set up or installed.
Create a new rails app hello-world from command in Windows and Terminal in Linux. rails new hello-world Now move to new app directory cd hello-world Now generate a controller rails generate controller hello_world index Here index is the name of method in hello_world controller. You can c...
Below is a non-tail-recursive function to compute the sum of a list of integers. let rec sum = function | [] -> 0 | h::t -> h + (sum t) The last operation the function performs is the addition. Thus, the function isn't tail-recursive. Below is a tail-recursive version of the same fu...
Detailed instructions on getting uicollectionview set up or installed.
An example configuration for a hub: java -jar selenium-server-standalone-<version>.jar -role hub -hubConfig hubConfig.json { "_comment" : "Configuration for Hub - hubConfig.json", "host": ip, "maxSessions": 5, "port": 4444...
The advantage of using vim over a simple text editor like notepad or gedit is that it allows the user to customize it's almost everything about itself. If you ever find yourself doing some kind of action over and over again, vim has a multitude of features that will help you do this action faster a...
The easiest way to get up and running with vue-router is to use the version provided via CDN. HTML: <script src="https://unpkg.com/vue/dist/vue.js"></script> <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script> <div id="rou...
Detailed instructions on getting google-compute-engine set up or installed.
To create a customization package replacing images on the login page, follow the steps below on your local Acumatica instance: Create a new folder in the Acumatica instance folder. For this example I added a folder called IconsCustomized in my local LoginImages instance: Add your custom ...
If you have a date stored as a string you will need to parse it. Use time.Parse. // time.Parse( format , date to parse) date, err := time.Parse("01/02/2006", "04/08/2017") if err != nil { panic(err) } fmt.Println(date) // Prints 2017-04-08 00:00:00 +00...
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...
Creating app project When creating an Android app ready for the app store it's important when using ionic start that we add --appname|-a and --id|-i flags which is used for google play to identify your app from other apps. If you're starting a new mobile app project you can use the cli example b...
Now open the document using OpenXML, you must add an imagePart that references the picture object to the MainDocumentPart object by using a file stream, and get the ID of the image string temp; MainDocumentPart mainPart = document.MainDocumentPart; ImagePart ima...
Now that you have a collection of all the shape references in the document. Loop through the collection with a foreach, and through each iteration create a Blip object. Set the Blip object embed value to the picture ID reference you captured earlier from the image part. Also create a Stretch object...
Conditionals in Pug can evaluate statements in a manner similar to JavaScript. You can evaluate variables created in Pug, or those passed to it by your route (res.render, pug.renderFile, etc). index.js var authorized = true res.render("index", { authorized: authorized }); index...
You can choose to prepend an if or else operator with a dash, but it is not necessary. You will need to wrap the statement in parentheses, though (if you omit a dash, you do not need parentheses.) - var showLogin = false; - if (showLogin === true) .welcome Welcome back to our website! - else...
Package fmt implements functions to print and format text using format verbs. Verbs are represented with a percent sign. General verbs: %v // the value in a default format // when printing structs, the plus flag (%+v) adds field names %#v // a Go-syntax representation of the value %T...
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 ...
Since you need to sort & rename the fields, the best option will be the Sort Component in the Data Flow task (like you mentioned) . If you only want to rename columns, then use the "Derived Column" component. The Sort component should look as follows: In my example, you can see the ...
Having lots of styles in App.xaml will quickly become complex, so they can be placed in separate resource dictionaries. In order to use the dictionary, it must be merged with App.xaml. So, in App.xaml, after the resource dictionary has been created: <Application xmlns="http://s...

Page 457 of 505