Tutorial by Examples: am

Persistence is created in docker containers using volumes. Let's create a Limesurvey container and persist the database, uploaded content and configuration in a named volume: docker volume create --name mysql docker volume create --name upload docker run -d --name limesurvey -v mysql:/var/lib/m...
We need to create a container to mount the volume. Then archive it and download the archive to our host. Let's create first a data volume with some data: docker volume create --name=data echo "Hello World" | docker run -i --rm=true -v data:/data ubuntu:trusty tee /data/hello.txt Let...
XML <Deborah> <address>Dark world</address> <master>Babadi</master> <ID>#0</ID> <colour>red</colour> <side>evil</side> </Deborah> XPATH boolean(/Deborah/master/text()) OR string(/Deborah/master...
XML <Dobby> <address>Hogwartz</address> <master></master> <colour>wheatish</colour> <side>all good</side> </Dobby> XPATH boolean(/Dobby/master/text()) OR string(/Dobby/master) != '' OUTPUT false
Whitelisting won't disable the doze mode for your app, but you can do that by using network and hold-wake locks. Whitelisting an Android application programmatically can be done as follows: boolean isIgnoringBatteryOptimizations = pm.isIgnoringBatteryOptimizations(getPackageName()); if(!isIgnorin...
In WSO2 registry is a content store and a metadata repository. In WSO2 products and particularly WSO2 ESB uses registry to store metadata, artifacts (WSDL, XSD etc.,) and other service configurations like endpoints, sequences etc., Registry in WSO2 ESB has three flavours. Local registry Config...
REPLACE ==magic-number== BY ==65535==.
SET handle TO returned-pointer SET handle UP BY LENGTH(returned-pointer) SET ADDRESS OF buffer-space TO handle MOVE buffer-space TO work-store DISPLAY "Second element is " work-store
start indexing key is less than keyfield of indexing-record invalid key display "bad start: " keyfield of indexing-record set no-more-records to true not invalid key read indexing previous record at end set no-more-records to true ...
SUBTRACT item-a item-b item-c FROM account-z ROUNDED MODE IS NEAREST-EVEN ON SIZE ERROR DISPLAY "CALL THE BOSS, Account `Z` is OUT OF MONEY" END-DISPLAY PERFORM promisary-processing NOT ON SIZE ERROR PERFORM normal-processing END-SUBTRACT
TERMINATE report-1 report-2 report-summary
*> Strip off trailing zero bytes STRING c-string DELIMITED BY LOW-VALUE INTO working-store
SUPPRESS PRINTING
\documentclass{beamer} When to use the beamer class ? For presentation slides. What are the specificities of this class ? The output is landscape-oriented. The document is separated in "frames" (slides). Simple example Following example was adapted from : sharelatex.com/learn/Beame...
With Class-Based Views, we use classes instead of methods to implement our views. A simple example of using Class-Based Views looks as follows: from flask import Flask from flask.views import View app = Flask(__name__) class HelloWorld(View): def dispatch_request(self): ret...
@echo off setlocal set /p "_myvar=what is your name?" echo HELLO!>file.txt echo %_myvar%!>>file.txt echo done! pause type file.txt endlocal exit Now file.txt looks like: HELLO! John Smith! (assuming you typed John Smith as your name.) Now your batch file's consol...
The names of modules follow the filesystem's hierarchical structure. With the following file layout: Foo/ ├── Baz/ │ └── Quux.hs └── Bar.hs Foo.hs Bar.hs the module headers would look like this: -- file Foo.hs module Foo where -- file Bar.hs module Bar where -- file Foo/Bar.hs m...
Monthwise difference between two dates(timestamp) select ( (DATE_PART('year', AgeonDate) - DATE_PART('year', tmpdate)) * 12 + (DATE_PART('month', AgeonDate) - DATE_PART('month', tmpdate)) ) from dbo."Table1" Yearwise difference between two dates...
<?php echo get_field('my_field_name'); ?> This will echo the value of the field "my_field_name" from the current post.
WKWebView resizes the fonts on web content so that a full-sized web page will fit on the device's form factor. If you want the web text in both portrait and landscape to be similar in size to the user's preferred reading size, you need to set it explicitly. Swift // build HTML header for dynamic t...

Page 88 of 129