Tutorial by Examples

Information about vertex attributes can be retrieved with the OGL function glGetProgram and the parameters GL_ACTIVE_ATTRIBUTES and GL_ACTIVE_ATTRIBUTE_MAX_LENGTH. The location of an active shader attribute can be determined by the OGL function glGetAttribLocation, by the index of the attribute. G...
There are various approach to read a excel file. I'll provide a example with file path parameter. You can get various way to read a file at this post. public void ReadExcel(string path) { // Write data in workbook from xls document. XSSFWorkbook workbook = new XSS...
This is a good step by step guide for setting up asp net Identity and Identity server for authorization and authentication. https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity You can also follow the official docs examples and IdentityServer4 quickstart samples on Github ...
// Import the action types to recognize them import { ACTION_ERROR, ACTION_ENTITIES_LOADED, ACTION_ENTITY_CREATED } from './actions'; // Set up a default state const initialState = { error: undefined, entities: [], loading: true }; // If no state is provided, we take the defa...
Information about active uniforms in a program can be retrieved with the OGL function glGetProgram and the parameters GL_ACTIVE_UNIFORMS and GL_ACTIVE_UNIFORM_MAX_LENGTH. The location of an active shader uniform variable can be determined by the OGL function glGetActiveUniform, by the index of the ...
Detailed instructions on getting es6-promise set up or installed.
Detailed instructions on getting office-interop set up or installed.
This bug was reported by steve2916 from this Microsoft Windows Forum thread. Cause Consider a folder with such files. TestA.doc TestB.doc TestC.docx TestD.docx If we want to remove all .doc file in this directory, we usually would do: del *.doc However, this command also removes the ....
6 This example will walk the user through creating a job where they can run X++ code within Dynamics AX. There is a node titled Jobs in the Application Object Tree (AOT). This sample can be added under the Jobs node, and then the job can be run. Within Dynamics Ax, open the AOT (Application O...
You can copy and paste this whole plugin to try it. The class skeleton is used from here. class-oop-ajax.cpp <?php /** * The plugin bootstrap file * * This file is read by WordPress to generate the plugin information in the plugin * Dashboard. This file defines a function that start...
In Spark, a DataFrame is a distributed collection of data organized into named columns. It is conceptually equivalent to a table in a relational database or a data frame in R/Python, but with richer optimizations under the hood. DataFrames can be constructed from a wide array of sources such as stru...
using (SPSite site = new SPSite("http://server/sites/siteCollection")) using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists["Some list"]; // It is always better and faster to query list items with GetItems method with // empty SPQuery object than to use...
using (SPSite site = new SPSite("http://server/sites/siteCollection")) using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists["Some list"]; SPQuery query = new SPQuery() { RowLimit = 100 }; do { SPListItemCollection items ...
using (SPSite site = new SPSite("http://server/sites/siteCollection")) using (SPWeb web = site.OpenWeb()) { string listUrl = string.Format("{0}{1}", web.ServerRelativeUrl, "Lists/SomeList"); SPList list = web.GetList(listUrl); }
When creating a new list item, its fields can be set using syntax similar to string arrays. Note that these fields are not created on the fly and are defined by the schema of the list. These fields (or columns) must exist on the server otherwise the create will fail. All list items will have the Tit...
Usecase : Login to FB account import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class FaceBookLoginTest { private static WebDriver driver; HomePage homePage; ...
Let's try to look at the differences between client and cluster mode of Spark. Client: When running Spark in the client mode, the SparkContext and Driver program run external to the cluster; for example, from your laptop. Local mode is only for the case when you do not want to use a cluster and in...
First in case you are consulting mobile.angular.io the flag --mobile doesn't work anymore. So to start , we can create a normal project with angular cli. ng new serviceWorking-example cd serviceWorking-example Now the important thing, to said to angular cli that we want to use service worker w...
The Take Method Takes elements up to a specified position starting from the first element in a sequence. Signature of Take: Public static IEnumerable<TSource> Take<TSource>(this IEnumerable<TSource> source,int count); Example: int[] numbers = { 1, 5, 8, 4, 9, 3, 6, 7, 2, 0 };...
Skips elements up to a specified position starting from the first element in a sequence. Signature of Skip: Public static IEnumerable Skip(this IEnumerable source,int count); Example int[] numbers = { 1, 5, 8, 4, 9, 3, 6, 7, 2, 0 }; var SkipFirstFiveElement = numbers.Take(5); Output: The ...

Page 1318 of 1336