Node.js strongly recommend using a Node version manager like n to install Node.js and npm. They do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.
Install n directly from Github:
curl -L https://bit.ly/n-install | bash
Then check your versions (remember than node comes with npm)
node --version && npm --version
Note: if you are already having problems, first remove everything related with Node.js and NPM
Best way to install Node.js and NPM
/in JavaScript/by GénesisNode.js strongly recommend using a Node version manager like n to install Node.js and npm. They do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.
Install n directly from Github:
Then check your versions (remember than node comes with npm)
Note: if you are already having problems, first remove everything related with Node.js and NPM
Resize a bunch of images at the same time using a Bash loop
/in Tooling/by GénesisYou can take advantage of Bash and ImageMagick to quickly do processing of many images.
But it could be even easier using the command mogrify from the same library:
HOW TO RESIZE MULTIPLE IMAGES AT ONCE
HTML range value
/in HTML5/by GénesisShortest version without form, min or external JavaScript.
Forcing the domain to serve securely using HTTPS (for any site)
/in Tooling/by GénesisIs your WordPress site shown as No Secure Connection? Solve this easily forcing any http request to be rewritten using https. Just copy and paste the code below into your .htaccess file exactly as shown.
Fusion Dance – HTML5 and CSS3
/in Design/by GénesisI’ve had this Goku fusion idea between HTML & CSS in mind for a while but I couldn’t find the time to draw it till now. Many web developers grow in ego once they know some JavaScript tricks but a real front-end engineer is not really good until he/she masters HTML and CSS as well. Never underestimate HTML and CSS!