Note: The Redis project does not officially support Windows.
However, the Microsoft Open Tech group develops and maintains this Windows port targeting Win64. Official redis.io/download
You can choose to download different versions or the latest version of Redis github.com/MSOpenTech/redis/release...
To create a window do a prefix followed by c
ie, by default ctrlb followed by c
To list all windows, do a prefix followed by w
ie, by default ctrlb followed by w
To rename current window, do a prefix followed by ,
ie, by default ctrlb followed by ,
To understand Dependency Inversion Principle (DIP) we need to clear concept about Inversion Of Control(IOC) and Dependency Injection(DI). So here we discuss all about the terms with Dependency Inversion Principle (DIP).
Inversion Of Control(IOC) :
The control or logic which is not the part of t...
/In async.series,all the functions are executed in series and the consolidated outputs of each function is passed to the final callback. e.g/
var async = require('async');
async.series([
function (callback) {
console.log('First Execute..');
callback(null, 'userPersonalData');
},
function (cal...
The basic syntax of find() method with projection is as follows
> db.COLLECTION_NAME.find({},{KEY:1});
If you want to show all documents without the age field then the command is as follows
db.people.find({},{age : 0});
If you want to show all documents the age field then the command is a...
In MongoDB, projection means selecting only the necessary data rather than selecting whole of the data of a document.
The basic syntax of find() method with projection is as follows
> db.COLLECTION_NAME.find({},{KEY:1});
If you want to to show all document without the age field then the comm...
The andThen function allows update call composition. Can be used with the pipeline operator (|>) to chain updates.
Example: You are making a document editor, and you want that each modification message you send to your document, you also save it:
import Update.Extra exposing (andThen)
import U...
The org.bukkit.event.EventHandler annotation accepts a couple parameters.
priority - Indicates the priority of your listener. There are the six different priorities, in order of execution: LOWEST,LOW,NORMAL[default],HIGH,HIGHEST,MONITOR. These constants refer to the org.bukkit.event.EventPriority e...
# It creates vendor folder and vendor.json inside it
govendor init
# Add dependencies in vendor.json
govendor fetch <dependency>
# Usage on new repository
# fetch depenencies in vendor.json
govendor sync
Example vendor.json
{
"comment": "",
"ignore&qu...
# General syntax:
# grep(<pattern>, <character vector>)
mystring <- c('The number 5',
'The number 8',
'1 is the loneliest number',
'Company, 3 is',
'Git SSH tag is [email protected]',
'My personal site is w...
In this example 2000 bytes will be transfered using DMA, Transmit Half Complete and Transmit Complete interrupts achieving the best performance.
The first half of the transmit buffer is loaded with new data by the CPU in the Transmit Half Complete interrupt callback while the second half of the buf...
To illustrate this, here is a function that has 3 different "wrong" behaviors
the parameter is completely stupid: we use a user-defined expression
the parameter has a typo: we use Oracle standard NO_DATA_FOUND error
another, but not handled case
Feel free to adapt it to your standa...
Each standard Oracle error is associated with an error number. It's important to anticipate what could go wrong in your code. Here for a connection to another database, it can be:
-28000 account is locked
-28001 password expired
-28002 grace period
-1017 wrong user / password
Here is a way ...
The idea behind the AdhocWorkspace is to create a workspace on the fly.
var workspace = new AdhocWorkspace();
string projectName = "HelloWorldProject";
ProjectId projectId = ProjectId.CreateNewId();
VersionStamp versionStamp = VersionStamp.Create();
ProjectInfo helloWorldProject = P...
The MSBuildWorspace is built around the concept of handling MSBuild solutions (.sln files) and their respective projects (.csproj, .vbproj).
Adding new projects and documents to this workspace is not supported.
string solutionPath = @"C:\Path\To\Solution\Sample.sln";
MSBuildWorkspace ...
Design Patterns provide solutions to the commonly occurring problems in software design. The design patterns were first introduced by GoF(Gang of Four) where they described the common patterns as problems which occur over and over again and solutions to those problems.
Design patterns have four ess...