Tutorial by Examples: al

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <p> <input id="cbGroup1" type="checkbox">Select all <input name="cbGroup1" type="checkbox" value="value1_1">Group1 v...
Directional lights are like a light source that is infinitely far away, but shining from a specific direction, like the sun. Thus, absolute position do not have an effect on the intensity of the light on an entity. We can specify the direction using the position component. The example below creates...
Detailed instructions on getting office365 set up or installed.
IMPORTANT!! Valet is a tool designed for macOS, the version below is ported for Linux OS. Prerequisites Do not install valet as root or by using the sudo command. Valet utilizes your local machine's HTTP port (port 80), therefore, you will not be able to use if Apache or Nginx are installed and...
Drupal itself provide good caching options to increase the page speed and serve pages fast to end users. Caches are used to improve the performance of your Drupal site. But it also has a drawback that sometimes it could lead the "stale" data. This means, sometimes, the system may start to ...
If you want to have a placeholder that may be omitted, you can give it a default value: Using YAML: # app/config/routing.yml blog_list: path: /blog/{page} defaults: { _controller: AppBundle:Blog:list, page: 1 } requirements: page: '\d+' Using Annotations: // src/...
You can use UILocalNotification, old APIs also works fine with iOS10, but we had better use the APIs in the User Notifications framework instead. There are also some new features, you can only use with iOS10 User Notifications framework. This also happens to Remote Notification, for more informatio...
Imagine that you need sort records by lowest value of either one of two columns. Some databases could use a non-aggregated MIN() or LEAST() function for this (... ORDER BY MIN(Date1, Date2)), but in standard SQL, you have to use a CASE expression. The CASE expression in the query below looks at th...
PHP exposes a number of so-called global variables which contain information about the HTTP request, such as $_POST, $_GET, $_FILES, $_SESSION, etc. The Request class contains a static createFromGlobals() method in order to instantiate a request object based on these variables: use Symfony\Componen...
Using the command git tag lists out all available tags: $ git tag <output follows> v0.1 v1.3 Note: the tags are output in an alphabetical order. One may also search for available tags: $ git tag -l "v1.8.5*" <output follows> v1.8.5 v1.8.5-rc0 v1.8.5-rc1 v1.8.5...
The ternary operator (?:) Support for the extended ternary operator was added in Twig 1.12.0. {{ foo ? 'yes' : 'no' }} Evaluates: if foo echo yes else echo no {{ foo ?: 'no' }} or {{ foo ? foo : 'no' }} Evaluates: if foo echo it, else echo no {{ foo ? 'yes' }} or {{ f...
Kotlin uses == for equality (that is, calls equals internally) and === for referential identity. JavaKotlina.equals(b);a == ba == b;a === ba != b;a !== b See: https://kotlinlang.org/docs/reference/equality.html
Detailed instructions on getting windows-installer set up or installed.
The following app will start an HTTP server listening on port 8080 that returns Hello world on GET /hello/world import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server._ import akka.stream.ActorMaterializer i...
For example, consider the following that sets the contents of $@ to the contents of a given variable: a=(1 2 3) eval set -- "${a[@]}" This code is often accompanied by getopt or getopts to set $@ to the output of the aforementioned option parsers, however, you can also use it to creat...
Ubuntu # sudo apt-get update # sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc Windows Recommended The normal and recommended way to install VLC on a Windows operating system is via the installer package.(Download Link)
Step 1: Open a Document Step 2 Option A: Press Alt + F11 This is the standard shortcut to open the VBE. Step 2 Option B: Developer Tab --> View Code First, the Developer Tab must be added to the ribbon. Go to File -> Options -> Customize Ribbon, then check the box for developer. Th...
The core data structure in numpy is the ndarray (short for n-dimensional array). ndarrays are homogeneous (i.e. they contain items of the same data-type) contain items of fixed sizes (given by a shape, a tuple of n positive integers that specify the sizes of each dimension) One-dimensional ar...
Integral type ranges ( IntRange , LongRange , CharRange ) have an extra feature: they can be iterated over. The compiler takes care of converting this analogously to Java's indexed for-loop, without extra overhead for (i in 1..4) print(i) // prints "1234" for (i in 4..1) print(i) // pri...
This will be a very basic app which will illustrate different ModalpresentationStyle in iOS. According to documentation found here, There are 9 different values for UIModalPresentationStyle which are as follows, fullScreen pageSheet formSheet currentContext custom overFullScreen overCurrent...

Page 255 of 269