Today, performance is one of the most important metrics we need to evaluate when developing a web service/Application. Keeping customers engaged is critical to any product and for this reason, it is extremely important to improve the performances and reduce page load times.
When running a web serve...
As the first step, we’ll build a basic web server that stores data in MongoDB. For this demonstration, we’ll name it “fast Library”. The server will have two basic operations:
POST /book: This endpoint will receive the title, the author, and the content of the book, and create a book entry in the d...
During a review, user has the possibility to add comments to explain his point of view. There is several kind of comments
Comment a file : The yellow symbol allow user to add comment on entire file
Line comment : Click the line number to comment it
Word selection : The last option i...
Installing typescript, typings and webpack globally
npm install -g typescript typings webpack
Installing loaders and linking typescript
npm install --save-dev ts-loader source-map-loader npm link typescript
Linking TypeScript allows ts-loader to use your global installation of TypeScript inste...
1.Download font-awesome from here.
2.Copy the font-awesome directory into your project.
3.In the of your html, reference the location to your font-awesome.min.css.
<link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"...
Suppose we want to have the following behaviour - We have a heading (say h3 element) and on clicking it, we want it to become an input box so that we can modify heading name. React makes this highly simple and intuitive using component states and if else statements. (Code explanation below)
// I ha...
The first thing you want to do for local development is install ElasticSearch in your machine and test it to see if it is running. It requires Java to be installed. The installation is pretty straightforward:
Mac OS X: brew install elasticsearch
Ubuntu: sudo apt-get install elasticsearch
Then...
FOR XML PATH and STUFF to concatenate the multiple rows into a single row:
select distinct t1.id,
STUFF(
(SELECT ', ' + convert(varchar(10), t2.date, 120)
FROM yourtable t2
where t1.id = t2.id
FOR XML PATH (''))
, 1,...
Ubuntu binaries are available for both 32-bit and 64-bit architectures
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo a...
Downloading
Prerequisites: We provide native 64-bit binaries for Windows 7 and above. A 64-bit version of Windows is required.
Download the ZIP archive and unpack it in a directory of your choice.
The Windows port of RethinkDB is a recent addition and hasn't received as much tuning as the Linux a...
User defined table functions represented by org.apache.hadoop.hive.ql.udf.generic.GenericUDTF interface. This function allows to output multiple rows and multiple columns for a single input.
We have to overwrite below methods :
1.we specify input and output parameters
abstract StructObjectInspe...