Tutorial by Examples: c

To use an icon in your HTML, you can do each of the following : <!-- Method 1 --> <!--- * * * * * * * * * * * * --> <!-- Set a font-family for an entire HTML element --> <!-- Define your icon fonts in your CSS font-family after your regular fonts --> <!-- This means ...
Consider a down-pointing triangle. There are several correct ways to display this symbol on a web page. Method 1 : use decimal HTML entity HTML : ▼ Method 2 : use hexidecimal HTML entity HTML : ▼ Method 3 : use character directly HTML : ▼ Method 4 : use CS...
The following is a list of popular icon fonts: Font Awesome Fontello Modern Pictograms Typicons Foundation Icon Fonts Pictonic Pictos
To include a webfont in your CSS, you can include the following code: @font-face { font-family: 'myfont'; src:url('fonts/myfont.eot?-td2xif'); src:url('fonts/myfont.eot?#iefix-td2xif') format('embedded-opentype'), url('fonts/myfont.woff?-td2xif') format('woff'), url...
Overall you have two ways to monitor processes at linux host Static monitoring Most widely used command is ps (i.e., process status) command is used to provide information about the currently running processes, including their process identification numbers (PIDs). Here few useful options to gath...
To get general statistics about main components of Linux family of stat commands are extremely useful CPU To get processors related statistics you can use mpstat command but with some options it will provide better visibility: $ mpstat 2 10 Memory We all know command free to show amount of (r...
One can describe a line in the plane as y = a*x + b so that the line is essentially controlled by two parameters a, b. For a given line, the choice of these parameters is unique. But vertical lines cannot be described like this.
One can describe a line in arbitrary dimensions as X = A + t*D where A and D are both vectors of suitably many dimensions. So in 2d this would be x = Ax + t*Dx y = Ay + t*Dy Now as t assumes any real value, this equation will produce all points along the line. The representation is not uniq...
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....
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...

Page 699 of 826