When generating new Angular 2 components in a .NET Core project, you may run into the following errors (as of version 0.8.3):
Error locating module for declaration
SilentError: No module files found
OR
No app module found. Please add your new Class to your component.
Identica...
The following features added in SQL Server 2000 from its previous version:
New data types were added (BIGINT, SQL_VARIANT, TABLE)
Instead of and for Triggers were introduced as advancement to the DDL.
Cascading referential integrity.
XML support
User defined functions and partition views.
In...
I wrote a simple C code foo.c
int main()
{
int i = 0;
int j = 0;
for (i = 0; i < 5; i++) {
j = i + 1;
}
return 0;
}
When compiled with -O0 i.e. by disabling all compiler optimizations
$ gcc -o foo.S foo.c -O0 -S
I got this:
.file "foo.c&...
A simple OGL 4.0 GLSL shader program with vertex position and color attribute.
The program is executed with a phyton script. To run the script, PyOpenGL must be installed.
A shader program consists at least of a vertex shader and a fragmant shader (exception of computer shaders).
The 1st shader s...
A simple OGL 4.0 GLSL shader program that shows the use of a model, view, and projection matrix
The program is executed with a phyton script. To run the script, PyOpenGL and NumPy must be installed.
Projection matrix:
The projection matrix describes the mapping of a pinhole camera from 3D poi...
A simple OGL 4.0 GLSL shader program that shows how to map a 2D texture on a mesh.
The program is executed with a phyton script. To run the script, PyOpenGL and NumPy must be installed.
The texture matrix defines how the texture is mapped on the mesh.
By manipulating the texture matrix, the textu...
A simple OGL 4.0 GLSL shader program that shows the use of a interface block and a uniform block on a Cook-Torrance microfacet light model implementation.
The program is executed with a phyton script. To run the script, PyOpenGL and NumPy must be installed.
An Interface Block is a group of GLSL in...
A simple OGL 4.0 GLSL shader program that shows the use of geometry shaders.
The program is executed with a phyton script. To run the script, PyOpenGL and NumPy must be installed.
In this example, the entire geometry (a cylinder) is generated in the geometry shader.
Vertex shader
geo.vert
#vers...
A simple OGL 4.0 GLSL shader program that shows the use shader subroutines.
The program is executed with a phyton script. To run the script, PyOpenGL and NumPy must be installed.
The subroutines switch between different geometry generated in the geometry shader and change the surface representatio...
A simple OGL 4.0 GLSL shader program that shows that shows how to add details with tessellation shader to the geometry.
The program is executed with a python script. To run the script, PyOpenGL and NumPy must be installed.
The basic mesh in this example is an icosahedron that consists of 20 triang...
If we want to look at a scene as if we had photographed it with a camera, we must first define some things:
The position from which the scene is viewed, the eye position pos.
The point we look at in the scene (target).
It is also common to define the direction in which we look. Technically we n...
To start a new project in Visual Studio 2010:
Click File Menu
Select Project
Next, we have project types and available languages listed :
Select Languages available from left most panel [Below we have languages like Visual C#, VB, F# etc]
Once we select languages from installed template...
File Commands
File.NewProject :
CTRL + SHIFT + N
Displays the New Project dialog box.
File.OpenProject:
CTRL + SHIFT + O
Displays the Open Project dialog box, where existing projects can be
added to the solution.
Project.AddClass:
SHIFT + ALT + C
Displays the Add N...
Visual Studio Community 2017
Free, fully-featured IDE for students,
open-source and individual developer
Visual Studio Professional 2017
Professional developer tools,
services, and subscription benefits for small teams
Visual Studio Enterprise 2017
End-to-end solution to meet demand...
Moving Average of last 30 Items sold
SELECT
value_column1,
( SELECT
AVG(value_column1) AS moving_average
FROM Table1 T2
WHERE ( SELECT
COUNT(*)
FROM Table1 T3
WHERE date_column1 BETWEEN T2.date_column1...