Tutorial by Examples: am

A DataFrame is a distributed collection of data organized into named columns. It is conceptually equivalent to a table in a relational database. DataFrames can be constructed from a wide array of sources such as: structured data files, tables in Hive, external databases, or existing RDDs. Reading a...
Blackboard.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Blackboard { public class BlackBoard { public List<KnowledgeWorker> knowledgeWorkers; protected Dictionary<string, ControlData> data; ...
This can be done in 3 steps : You must define an elixir module which use Ecto.Repo and register your app as an otp_app. defmodule Repo do use Ecto.Repo, otp_app: :custom_app end You must also define some config for the Repo which will allow you to connect to the database. Here is an...
/// <summary> /// Overrides the onDisconnected function and sets the user object to offline, this can be checked when other players interacts with them... /// </summary> /// <param name="stopCalled"></param> /// <returns></returns&gt...
This example extends the basic example passing parameters in the route in order to use them in the controller To do so we need to: Configure the parameter position and name in the route name Inject $routeParams service in our Controller app.js angular.module('myApp', ['ngRoute']) .contro...
Select * from firm's_address; Select * from "firm's_address";
Say you have a table named table or you want to create a table with name which is also a keyword, You have to include the name table in pair of double quotes "table" Select * from table; Above query will fail with syntax error, where as below query will run fine. Select * from "tab...
When publishing Sitecore item programmatically the developer should keep in mind that Sitecore could be configured for several publishing targets, as well that several languages could be defined for item. ID targetDatabaseFieldId = ID.Parse("{39ECFD90-55D2-49D8-B513-99D15573DE41}"); ...
With Ruby you can modify the structure of the program in execution time. One way to do it, is by defining methods dynamically using the method method_missing. Let's say that we want to be able to test if a number is greater than other number with the syntax 777.is_greater_than_123?. # open Numeric...
drop table table01; drop table table02; create table table01 ( code int, name varchar(50), old int ); create table table02 ( code int, name varchar(50), old int ); truncate table table01; insert into table01 values (1, 'A', 10); insert in...
export function myDirective($location: ng.ILocationService): ng.IDirective { return { link: (scope: ng.IScope, element: ng.IAugmentedJQuery, attributes: ng.IAttributes): void => { element.text("Current URL: " + $location.url()); ...
With this line we will install all the necessary packages in one step, and the last update: pacman -Syu apache php php-apache mariadb HTTP Edit /etc/httpd/conf/httpd.conf Change ServerAdmin [email protected] as you need. The folder of the WEB Pages by default is ServerRoot "/etc/httpd&q...
Create new Xamarin.iOS blank project (Single View App). Right click on the "Components" folder and select "Get More Components": In search box type: "Flout Navigation" and add below component to your app: Remember also to add "Mono.Touch.D...
This example shows a call of AfxBeginThread that starts the worker thread and an example worker thread procedure for that thread. // example simple thread procedure. UINT __cdecl threadProc(LPVOID rawInput) { // convert it to the correct data type. It's common to pass entire structures this ...
.populate() in Mongoose allows you to populate a reference you have in your current collection or document with the information from that collection. The previous may sound confusing but I think an example will help clear up any confusion. The following code creates two collections, User and Post: ...
/* SD card basic file example This example shows how to create and destroy an SD card file The circuit: * SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 created Nov 2010 by David A. Mellis modified 9 Apr 2012 by ...
function myFunction { param( # If parameter 'a' is used, then 'c' is mandatory # If parameter 'b' is used, then 'c' is optional, but allowed # You can use parameter 'c' in combination with either 'a' or 'b' # 'a' and 'b' cannot be used together [p...
We now know how to create a modal. But what if we want to pass some data from modal to our home page. To do so, let us look into an example with modal as Register page passing parameters to parent page. Register.html <ion-header> <ion-toolbar> <ion-title> Login ...
Passing parameters to a modal is similar to how we pass values to a NavController. To do so, we are altering our list in home.html to open a modal when clicking a list item and passing the required parameters as a second argument to the create method. Home.html <ion-list> <ion-item ...
class my_model(models.Model): _name = "my.model" name = fields.Char('Name') @api.multi def foo_manipulate_records_1(self): """ function returns list of tuples (id,name) """ return [(i.id,i.name) for i in self] @...

Page 78 of 129