Tutorial by Examples

A DTD is referred to as an internal DTD if elements are declared within the XML files. To reference it as internal DTD, standalone attribute in XML declaration must be set to yes. An XML that describes a note that contains property to, from and message along with internal DTD will look like: <...
In external DTD elements are declared outside the XML file. They are accessed by specifying the system attributes which may be either the legal .dtd file or a valid URL. To reference it as external DTD, the standalone attribute in the XML declaration must be set as no. An XML that describes a note ...
The currency pipe allows you to work with you data as regular numbers but display it with standard currency formatting (currency symbol, decimal places, etc.) in the view. @Component({ selector: 'currency-pipe', template: `<div> <p>A: {{myMoney | currency:'USD':false}}</p&...
The latest find is always the one the availability check will work against - a unsuccesful find will make AVAILABLE return false: DEFINE TEMP-TABLE tt NO-UNDO FIELD nr AS INTEGER. CREATE tt. tt.nr = 1. CREATE tt. tt.nr = 2. CREATE tt. tt.nr = 3. DISPLAY AVAILABL tt. // yes (tt w...
Recommended way of production deployment calls for using Apache/Nginx for serving the static content. Thus, when DEBUG is false static and media contents fail to load. However, we can load the static content in deployment without having to setup Apache/Nginx server for our app using: python manage....
SSL Certificates use something called public key cryptography.We need to use Https instead of Http because of keeping data secure between servers and improving customer trust. To enable this option in grails, we have to run our app differently. The command below: grails run-app -https
var alertResult = await DisplayAlert("Alert Title", Alert Message, null, "OK"); if(!alertResult) { //do your stuff. } Here we will get Ok click action.
First we need to provide Title service. Using setTitle import {Title} from "@angular/platform-browser"; @Component({ selector: 'app', templateUrl: './app.component.html', providers : [Title] }) export class AppComponent implements { constructor( private title: Titl...
Sometimes it is required to implement Enum on your own. E.g. there is no clear way to extend other enums. Custom implementation allows this: class Enum { constructor(protected value: string) {} public toString() { return String(this.value); } public is(value: Enum | string) { ...
enum SourceEnum { value1 = <any>'value1', value2 = <any>'value2' } enum AdditionToSourceEnum { value3 = <any>'value3', value4 = <any>'value4' } // we need this type for TypeScript to resolve the types correctly type TestEnumType = SourceEnum | AdditionToS...
Online Books These are books that are freely accessible online. Practical Common Lisp by Peter Seibel is a good introduction to CL for experienced programmers, which tries to highlight from the very beginning what makes CL different to other languages. Common Lisp: A Gentle Introduction to Symb...
custom_module.info name = Custom Module description = Creates a block containing a custom output. core = 7.x custom_module.module /** * Initiates hook_block_info. * * Registers the block with Drupal. */ function custom_module_block_info() { $blocks = array(); //Registers the ...
Simple form, validation and submission functions to create a "mailing list" feature. This can then be applied to either the basic page or basic block examples. Assumes you have created a table in the drupal database called 'mailing_list' with the fields first name, last name and email ad...
As most of the information contained within Google drive is private user data. You must have an access token in order to access the information. Access tokens can be retrieved via the Oauth2 authentication process. GET https://www.googleapis.com/drive/v2/files?access_token={Valid Access Token} ...
custom_module.info name = Custom Module description = Creates a block containing a custom output. core = 7.x custom_module.module /** * Initiates hook_block_info. * * Registers the block with Drupal. */ function custom_module_block_info() { $blocks = array(); //Registers the ...
Simple form, validation and submission functions to create a "mailing list" feature. This can then be applied to either the basic page or basic block examples. Assumes you have created a table in the drupal database called 'mailing_list' with the fields first name, last name and email ad...
Can be used in conjunction with the custom form example to create a table in the drupal database for a Mailing List feature. This example was made by creating the table directly in my development database, then created the data for hook_schema() using the Schema module. This allows for automatic t...
component file @Component({ selector: 'example-test-compnent', template: '<div> <div>{{user.name}}</div> <div>{{user.fname}}</div> <div>{{user.email}}</div> </div>' }) ex...
Requirements: NodeJS : Download page npm or yarn Run the following commands with cmd from new directory folder: npm install -g @angular/cli or yarn global add @angular/cli ng new PROJECT_NAME cd PROJECT_NAME ng serve Open your browser at localhost:4200
just use your cmd: You can use the ng generate (or just ng g) command to generate Angular components: Component: ng g component my-new-component Directive: ng g directive my-new-directive Pipe: ng g pipe my-new-pipe Service: ng g service my-new-service Class: ng g class my-new-classt...

Page 1125 of 1336