How to change to an older version of Node.js

One way is to use NVM, the Node Version Manager. Use following command to get nvm You can find it at https://github.com/creationix/nvm It allows you to easily install and manage multiple versions of node. Here’s a snippet from the help:

Meaning of the GitHub message: push declined due to email privacy restrictions

The remote repository has been configured to disallow you pushing a commit that would reveal your personal e-mail address. For example in GitHub you have checked the Block command line pushes that expose my email checkbox to enable this. While you can of course uncheck that setting, it will expose your private e-mail address to everyone in the … Read more

Replace one substring for another string in shell script

To replace the first occurrence of a pattern with a given string, use ${parameter/pattern/string}: To replace all occurrences, use ${parameter//pattern/string}: (This is documented in the Bash Reference Manual, §3.5.3 “Shell Parameter Expansion”.) Note that this feature is not specified by POSIX — it’s a Bash extension — so not all Unix shells implement it. For the relevant POSIX documentation, see The Open Group Technical … Read more

How do I make an image smaller with CSS?

I have this page and I have users uploading an icon image for the industries and they are uploading a bigger image. I want to resize it via CSS and it’s cutting it when changing it in Firebug. To see what I mean, select “retail” from the top dropdown “Select Industry Category” and then select “General” from “Select Business Type” … Read more

Lua Program Delay

The os.clock function returns the number of seconds of CPU time for the program. So the sleep function of yours waits for n seconds, if you need to delay 2 minutes, just call: Note that there are some better solutions to implement sleep functions other than busy waiting, see Sleep Function for detail.

Access to the path is denied

ou need to find out from the application pool for the website what is the identity it is running under (by default this is Application Pool Identity) and grant that the correct permissions.