Use a dummy column
- Add a dummy column to all rows with value as 1.
- Print the sum of this dummy column to count the rows.
SELECT SUM(ROW_COUNT) AS COUNT
FROM (
SELECT NAME, 1 AS ROW_COUNT
FROM EMPLOYEE
);
SELECT SUM(ROW_COUNT) AS COUNT
FROM (
SELECT NAME, 1 AS ROW_COUNT
FROM EMPLOYEE
);
See if there are any alias defined for ls
on your terminal
The
ARG
instruction defines a variable that users can pass at build-time to the builder with the docker build command using the--build-arg <varname>=<value>
flag. More details at docs.docker.com
Enable
.GitInfo
object for each page (if the Hugo site is versioned by Git). This will then update theLastmod
parameter for each page using the last git commit date for that content file.
You can skip this section if you have not formatted the drive after connecting it to your computer and have the original partitions.
As Debian wheezy version has reached the end of life, the usual repositories do not exist anymore and have been moved to the archive.
npm install --save-dev eslint-plugin-import eslint
Use the base version for Node.js applications. They also publish a version for React applications as eslint-config-airbnb
.
Git stash is a great set of commands while working on volatile porjects where you are just trying out a proof of concept or a module.
While returning data from the database as an API response, the virtuals/methods available on a mongoose document are unnecessary. Lean option can be set on such queries to return just the data directly from the database. It also improves the overall performance of the API.
Spotinst is one of the providers which support deploying serverless functions or FaaS (Function as a Service). Serverless Framework is an NPM module which makes building serverless applications easy and open.