Tutorial by Examples: at

Here is how to create your own singleton class for toast messages, If your application need to show success, warning and the danger messages for different use cases you can use this class after you have modified it to your own specifications. public class ToastGenerate { private stati...
The MyFrame class the extends JFrame and also contains the main method import javax.swing.JFrame; public class MyFrame extends JFrame{ //main method called on startup public static void main(String[] args) throws InterruptedException { //creates a frame window ...
The below example uses Android.Runtime.InputStreamInvoker and Android.Runtime.OutputStreamInvoker types obtain Java.IO.InputStream and Java.IO.OutputStream. Once we have a Java.IO.InputStream instance, we can use its .Available() method to get the number of available response bytes which we can use...
Grouping with the data.table package is done using the syntax dt[i, j, by] Which can be read out loud as: "Take dt, subset rows using i, then calculate j, grouped by by." Within the dt statement, multiple calculations or groups should be put in a list. Since an alias for list() is .(), bo...
Static members have class scope as opposed to object scope C++ Example // define in header class Singleton { public: static Singleton *getInstance(); private: Singleton() {} static Singleton *instance; }; // initialize in .cpp Singleton* Singleton::instance = 0...
This example shows how to to display specific property in dropdown but bind with the whole object. autocomplete-overview-example.html: <md-input-container> <input mdInput placeholder="State" [(ngModel)]="selection" [mdAutocomplete]="auto" [formCo...
data.service.ts: import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import 'rxjs/add/operator/map'; @Injectable() export class DataService { constructor(private http: Http) { } fetchData(){ return this.http.get('https://dinstruct-d4b62.firebaseio....
Add a new file to Xcode (File > New > File), then select “Source” and click “Header File“. Name your file “YourProjectName-Bridging-Header.h”. Example: In my app Station, the file is named “Station-Bridging-Header”. Create the file. Navigate to your project build settings ...
Add a new Swift file to your Xcode project. Name it as you please and you should get an alert box asking if you would like to create a bridging header. Note: If you don’t receive a prompt to add a bridging header, you probably declined this message once before and you will have to add the header m...
To find the word foo in the file bar : grep foo ~/Desktop/bar To find all lines that do not contain foo in the file bar : grep –v foo ~/Desktop/bar To use find all words containing foo in the end (WIldcard Expansion): grep "*foo" ~/Desktop/bar
When offering IAP within an an app, you must first add an entry for each individual purchase within iTunes Connect. If you’ve ever listed an app for sale in the store, it’s a similar process and includes things like choosing a pricing tier for the purchase. When the user makes a purchase, the App ...
In iTunes Connect, click iTunes Connect in the top left corner of the window to get back to the main menu. Select Users and Roles, then click the Sandbox Testers tab. Click + next to the “Tester” title. Fill out the information and click Save when you’re done. You can make up a first and last nam...
Detailed instructions on getting cognos set up or installed.
GridView is an ASP.NET server control and as such simply requires any version of .Net installed on your computer along with a .Net development environment, typically any version of Visual Studio. Assuming you have a .Net development environment, create any Web Forms Application or MVC Application p...
SECTIONs in COBOL can be required or optional, depending on which DIVISION they are in. DATA DIVISION. FILE SECTION. FD SAMPLE-FILE 01 FILE-NAME PIC X(20). WORKING-STORAGE SECTION. 01 WS-STUDENT PIC A(10). 01 WS-ID PIC 9(5). LOCAL-STORAGE SECTION. 01 LS-CLASS PIC 9(3). LINKAGE SECTION. 01...
Detailed instructions on getting xml-parsing set up or installed.
Pseudorandom Distribution Accorinding to this Stack Overflow answer, user CherryDT pointed out this code: set /a num=%random% %% 100 does not give a uniform distribution. The internal dynamic variable %random% does gives a uniform distribution, but the above code will not be a uniformed random...
Step 1: Make a design of GridView for displaying your data (HTML Code): <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField HeaderText="ID"> <ItemTemplate> ...
To associate an Application with something in the Database there are three main parts: Application Privilege: An Application Privilege describes Privileges like SELECT, INSERT, UPDATE, DELETE, ... Application Privileges can be summarized as an Aggregate Privilege. XS$PRIVILEGE( name=>'pri...
/* Method: To Create Custom Menu This is First Function to be called when App Loads */ function onOpen() { var ui = SpreadsheetApp.getUi(); // Or DocumentApp or FormApp. ui.createMenu('My HR') .addItem('Send Form to All', 'sendIDPForm_All') .addItem('Trigger IDP System...

Page 437 of 442