Tutorial by Examples: e

Human Mortality Database Human Mortality Database is a project of the Max Planck Institute for Demographic Research that gathers and pre-process human mortality data for those countries, where more or less reliable statistics is available. # load required packages library(tidyverse) library(ext...
Detailed instructions on getting odoo-10 set up or installed.
Spaghetti code means a code snippet that uses many, and often confusing structures. Such as GOTOs, exceptions and inconsistent code. Examples and Solutions Example A @echo off set /a counter=0 :Loop set /a counter=%counter% + 1 echo %counter% if %counter% equ 10 goto :exit goto :Loop ...
For a convenient way to iterate through an arrayBuffer, you can create a simple iterator that implements the DataView methods under the hood: var ArrayBufferCursor = function() { var ArrayBufferCursor = function(arrayBuffer) { this.dataview = new DataView(arrayBuffer, 0); this.size = a...
Detailed instructions on getting url set up or installed.
Detailed instructions on getting user-interface set up or installed.
An entity represents an object of a game like a player figure or an enemy figure. Since this object does not do much without arms and legs we can add the components to this. To create this system apple has the GKEntity and GKComponent classes. Lets assume we have the following classe for the follow...
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...
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); }

Page 1174 of 1191