Tutorial by Examples: st

Redis allows you to add items to either the right or the left of a list. If I was working with a list, my_list and I wanted to prepend 3 to the list, I could do that using the Redis LPUSH command: LPUSH my_list 3 If I wanted to append 3 to my_list, I would instead use the RPUSH command: RPUSH ...
Redis provides the LPOP and RPOP commands as a counterpart to the LPUSH and RPUSH commands for fetching data items. If I was working with a list my_list that had several data items in it already, I can get the first item in the list using the LPOP command: LPOP my_list The result of this comman...
Openfire it's available to download at Ignite Realtime website It's also possible to download relative source codeenter link description here Windows installer: Just execute the exe and follow basic instructions as any program (installation directory, shortcut etc.). Unix-Linux-Mac install:...
The basic Redis command for adding an item to a set is SADD. It takes a key and one or more members and adds them to the set stored at the given key. For example, lets say that I wanted to create a set with the items apple, pear and banana. I could execute either of the following: SADD fruit app...
Redis supplies the SISMEMBER command to test if a particular item is already a member of a set. Using the SISMEMBER command I can test and see if apple is already a member of my fruit set. If I construct my fruit set from the previous example, I can check and see if it contains apple using the fol...
Redis provides the ZADD command to add items to a sorted set. The basic form of the ZADD command is to specify the set, the item to add and it's score. For example, if I wanted to construct an ordered set of my favorite food (from least to most), I could use either of: zadd favs 1 apple zadd fav...
The size of a Redis list can be deterimed using the LLEN command. If I have a four element list stored at the key my_list, I can get the size using: LLEN my_list which will return 4. If a user specifies a key that doesn't exist to LLEN, it will return a zero, but if a key is used that points t...
g + geom_bar(mapping = aes(x = cut, fill = clarity), position = "dodge") + theme(axis.text = element_text(colour = "red", size = 12))
g + geom_histogram(aes(price, fill = cut), binwidth = 500) + labs(x = "Price", y = "Number of diamonds", title = "Distribution of prices \n across Cuts") + theme(plot.title = element_text(colour = "red", face = "italic"), ...
Installation: To install the LoopBack command-line interface (CLI) tool: npm install -g loopback-cli This installs the lb command-line tool for scaffolding and modifying LoopBack applications. Create new application: To create a new application: lb The LoopBack application generator will ...
This is the typical approach for novice developers building SQL action queries. They are vulnerable to the Bobby Tables type SQL Injection attacks. Dim strSQL As String strSQL = "INSERT INTO Employees chrFirstName, chrLastName, chrPhone " _ & "VALUES ('" & M...
Detailed instructions on getting opengl-es-2.0 set up or installed.
Let's apply the State Machine pattern for parsing lines with the specific pattern using S4 Class feature from R. PROBLEM ENUNCIATION We need to parse a file where each line provides information about a person, using a delimiter (";"), but some information provided is optional, and instea...
Lets start installing the popular library Alamofire to our Xcode project! Lets first install CocoaPods by using the command: [sudo] gem install cocoapods Then let's create a new project in Xcode called Start! Navigate to the folder that contains the .xcodeproj and create a new text file called ...
In the directory if the xcodeproj, create a new file called Podfile. The following is an example of a Podfile that installs the pod 'AFNetworking' version 1.0 to the app MyApp. target 'MyApp' pod 'AFNetworking', '~> 1.0'
Graph In computer science, a graph is an abstract data type that is meant to implement the undirected graph and directed graph concepts from mathematics. A graph data structure consists of a finite (and possibly mutable) set of vertices or nodes or points, together with a set of unordered pairs of...
Go to ActiveMQ Website and download latest stable version of activeMQ click here to activeMQ downloads after downloading, unzip it if you're using windows 32 Go to apache-activemq-5.14.3\bin\win32 if windows 64 apache-activemq-5.14.3\bin\win64 run the activemq batch file thats it...
In the tsconfig.json set "sourceMap": true, to generate mappings alongside with js-files from the TypeScript sources using the tsc command. The launch.json file: { "version": "0.2.0", "configurations": [ { "type"...
Create a Node.js debug configuration and use index.js as Node parameters.
Add ts-node to your TypeScript project: npm i ts-node Add a script to your package.json: "start:debug": "ts-node --inspect=5858 --debug-brk --ignore false index.ts" The launch.json needs to be configured to use the node2 type and start npm running the start:debug script: ...

Page 314 of 369