Tutorial by Examples: ce

Since A-Frame fetches assets using XHRs, browser security requires the browser to serve assets with cross-origin resource sharing (CORS) headers if the asset is on a different domain. Otherwise, we'd have to host assets on the same origin as the scene. For some options, GitHub Pages serves every...
When an entity includes multiple mixins that define the same component properties, the right-most mixin takes precedence. In the example below, the entity includes both red and blue mixins, and since the blue mixin is included last, the final color of the cube will be blue. <a-scene> &l...
One common use of variable-length argument lists is to implement functions that are a thin wrapper around the printf() family of functions. One such example is a set of error reporting functions. errmsg.h #ifndef ERRMSG_H_INCLUDED #define ERRMSG_H_INCLUDED #include <stdarg.h> #include...
If you want to use WebVR content mixed with HTML content, for example when you're making a extended showcase key content, you could use the embedded tag. When you're using this, it's possible to look around inside 360° content using the gyroscope of your smartphone or click and drag on computer. &l...
In a pipeline series each function runs parallel to the others, like parallel threads. The first processed object is transmitted to the next pipeline and the next processing is immediately executed in another thread. This explains the high speed gain compared to the standard ForEach @( bigFile_1, b...
If your application does not need any HTTP interface (for example for a console only app), you will want to disable at least Twig and SensioFrameworkExtra Just comment out those lines: app/AppKernel.php $bundles = [ //... // new Symfony\Bundle\TwigBundle\TwigBundle(), // new Sensio\Bundl...
Using YAML: # app/config/routing.yml blog_show: path: /blog/{slug} defaults: { _controller: AppBundle:Blog:show } Using Annotations: // src/AppBundle/Controller/BlogController.php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use S...
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/...
To get the contents of a form that is submitted with method="post", use the post property: $name = $request->request->get('name');
$id = $request->cookies->get('PHPSESSID'); This will return the value of the 'PHPSESSID' cookie sent by the browser.
Create a UITableView cell category class. UITableViewCell+RRCell.h file #import <UIKit/UIKit.h> @interface UITableViewCell (RRCell) -(id)initWithOwner:(id)owner; @end UITableViewCell+RRCell.m file #import "UITableViewCell+RRCell.h" @implementation UITableViewCell (R...
Both are used to define error handling for a website, but different software refers to different config elements. customErrors are a legacy (backwards compatable) element, used by Visual Studio Development Server (aka. VSDS or Cassini). httpErrors are the new element which is only used by IIS7. T...
Explains how the Windows installer works, what MSI packages are, what merge modules are, how and why transforms can be used and finally commandline options for MSIEXEC. Describes the tools being provided by Microsoft (and 3rd party authoring tools such as InstallShield, Advanced Installer, Wise Pac...
<dependencies> <dependency> <groupId>{ejbModuleGroupId}</groupId> <artifactId>{ejbModuleArtifactId}</artifactId> <version>{ejbModuleVersion}</version> <type>ejb</type> </dependency> &...
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...
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...
Dim rng As New Random() This declares an instance of the Random class called rng. In this case, the current time at the point where the object is created is used to calculate the seed. This is the most common usage, but has its own problems as we shall see later in the remarks Instead of allowin...
The following example declares a new instance of the Random class and then uses the method .Next to generate the next number in the sequence of pseudo-random numbers. Dim rnd As New Random Dim x As Integer x = rnd.Next The last line above will generate the next pseudo-random number and assign ...
Jenkins: The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. Sonar Qube: SonarQube provides the capability to not only show health of an application but also to highlight issues newly introduced. Apache Ant: A...
ExpandoObject (the System.Dynamic namespace) is a class that was added to the .Net Framework 4.0. This class allows us to dynamically add and remove properties onto an object at runtime. By using Expando object we can add our model classes into dynamically created Expando object. Following example e...

Page 126 of 134