Tutorial by Examples: f

The simple way to implement multi-threaded applications is to use Java's built-in synchronization and locking primitives; e.g. the synchronized keyword. The following example shows how we might use synchronized to accumulate counts. public class Counters { private final int[] counters; ...
Flexbox or flexible box is a layout method for arranging content on a page in a predictable manner. Flexbox provides an improvement over traditional block model positioning using floats or even table like positioning for content on the page. At its core, Flexbox can be broken down into a parent ele...
Right Click your project and select Publish to AWS Lambda... The Upload to AWS Lambda screen will appear. Make sure the correct region is selected. Keep all of the defaults. Then only enter the Function Name: AWSLambdaFunctionAgeInYears and then click next. On the next page, sele...
After Step 3 above, Visual Studio will open the View Function window with your function loaded. On the bottom left of this screen, enter the following json into the Sample Input box: { "month": "10", "day": "28", "year": "1979" } ...
There are different types of variables in Clojure: numbers Types of numbers: integers longs (numbers larger than 2^31 - 1) floats (decimals) strings collections Types of collections: maps sequences vectors functions
Ada.Text_IO.Editing offers formatting decimal fixed point values using “picture strings”. These describe output using “magical” characters for separators, currency signs, etc. with Ada.Text_IO.Editing; use Ada.Text_IO; procedure Print_Value is Max_Count : constant := 1_000_000; ...
A simple sports2000 example: FIND FIRST Customer NO-LOCK WHERE CustNum = 1 NO-ERROR. IF AVAILABLE Customer THEN DO: DISPLAY Customer.NAME. END. ELSE DO: MESSAGE "No record available". END. FIRST - find the first record that matches the query NO-LOCK - don't lock the r...
Paste this snippet somewhere in the http {} Block; or place it in it's own file in the /etc/nginx/conf.d/ folder. Also see the official docs for logging to syslog. # # Access Log # log_format fmt_syslog '[$time_local] $status $remote_addr $http_host "$request" $body_bytes_sent $reque...
Coding method used: Hybrid/Spongy It has been forever a myth that div's can not be used in emails. There are email clients (unlike outlook) that can render div's properly. The example below will illustrate how an email can be coded that will work on Gmail app (with updates not rolled out yet), Sams...
electron-packager C:/my-app MyApp
var packager = require('electron-packager'); packager({ dir: '/', }, function(err, path){ if(err) throw err; // Application has been packaged });
To include an icon font 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'), ...
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...
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'even' }) export class EvenPipe implements PipeTransform { transform(value: string): string { if(value && value %2 === 0){ return value; } } } @Component({ selector: '...
When investigating some geometric problem, there are a number of questions you might want to ask yourself to narrow down the scope of the question. How many dimensions are you dealing with? Is it 2d, 3d, a specific number of higher dimensions, or without respect to dimensionality? In case of a 2...
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...
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.

Page 383 of 457