Tutorial by Examples: l

Step 1 – Install LAMP To start with Laravel, we first need to set up a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to set up lamp on Ubuntu system. Install PHP 5.6 $ sudo apt-get install python-software-properties $ sudo add-apt-reposit...
Suppose we want to know how many users have the same name. Let us create table users as follows: create table users( id int primary key auto_increment, name varchar(8), count int, unique key name(name) ); Now, we just discovered a new user named Joe and would like to take hi...
Suppose we want to know how many users have the same name. Let us create table users as follows: create table users( id serial, name varchar(8) unique, count int ); Now, we just discovered a new user named Joe and would like to take him into account. To achieve that, we need to d...
Install Firebase resource in the the AppScript To do that click on Resources and then on Libraries. Firebase has a unique project library key that need to be installed in the AppScript. Click on Libraries The following pop-up appears. Enter the following project key in the textbox. MYeP8ZEE...
1. To write a simple data to test whether connection is working or not. function myFunction(){ var firebaseUrl = "https://example-app.firebaseio.com/"; var secret = "secret-key"; var base = FirebaseApp.getDatabaseByUrl(firebaseUrl, secret); base.setData("test&quo...
it is very easy to write an angularJS controller with ES6 if your are familiarized with the Object Oriented Programming : class exampleContoller{ constructor(service1,service2,...serviceN){ let ctrl=this; ctrl.service1=service1; ctrl.se...
Master process spawns server and client applications with a single process for each application. Server opens a port and client connects to that port. Then client sends data to server with MPI_Send to verify that the connection is established. master.c #include "mpi.h" int main(int ar...
public void OpenXmppConnection(int port, bool useSsl, string serverJid, string userName, string password) { try { _xmppClientConnection.AutoResolveConnectServer = true; _xmppClientConnection.Port = port; _xmppClien...
public class ConnectionManager { private XmppClientConnection _xmppClientConnection = null; public ConnectionManager() { if (_xmppClientConnection == null) { _xmppClientConnection = new ...
First step of creating a plugin is creating the folder and file which the plugin will load from. Plugins are located in /wp-content/plugins/. The WordPress standard is to create a folder and filename that mirror each other like so: /wp-content/plugins/myplugin/ /wp-content/plugins/myplugin/myplu...
Some projects like GoLang might need to clone other dependent GitLab repositories during build. To get this working you can add a Deploy Key to dependent repositories and put the private key (without password) into the origin repository. Create and check-in a SSH key inside the Git Repository that ...
public class ConversationManager { #region ClassMemeber private XmppClientConnection _xmppClientConnection = null; public ConversationManager(XmppClientConnection con) { _xmppClientConnection = con...
We have here a file Size filter to describe how to add costum filter to an existing module : let fileSize=function (size,unit,fixedDigit) { return size.toFixed(fixedDigit) + ' '+unit; }; let fileSizeFilter=function () { return function (size) { if (isNaN(size)) ...
QTP uses VBScript as its programming language. Therefore a Hello World example can be given in pure VBScript: MsgBox "Hello World!" Executing this script (by pressing F5 or clicking the Play button on the taskbar) will produce a message box with the text "Hello World!" in it...
Detailed instructions on getting spring-data-rest set up or installed.
Creates a graph topology in a distributed manner so that each node defines its neighbors. Each node communicates its rank among neighbors with MPI_Neighbor_allgather. #include <mpi.h> #include <stdio.h> #define nnode 4 int main() { MPI_Init(NULL, NULL); int rank; ...
println("Hello Scala.js") // In ES6: console.log("Hello Scala.js");
class Person(val firstName: String, val lastName: String) { def fullName(): String = s"$firstName $lastName" }
val personMap = Map( 10 -> new Person("Roger", "Moore"), 20 -> new Person("James", "Bond") ) val names = for { (key, person) <- personMap if key > 15 } yield s"$key = ${person.firstName}"
import org.scalajs.dom import dom.document def appendP(target: dom.Node, text: String) = { val pNode = document.createElement("p") val textNode = document.createTextNode(text) pNode.appendChild(textNode) target.appendChild(pNode) }

Page 761 of 861