Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
Create a file named rarreg.key
in the Winrar Installation folder and the paste the following data
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
arr.__proto__ = object | |
arr.prototype is same is arr.__proto__ which is a object. | |
and each and every object in javascript has a prototype. | |
that means arr.__proto__ also has a prototype | |
arr.__proto__.__proto__ which is actually Object.prototype which is again an object | |
arr.__proto__.__proto__.__proto__ |
Source: https://askubuntu.com/questions/1075157/unable-to-set-my-screen-resolution-higher
Ubuntu or the other versions of it like (k,l,x,edu,etc.,) are required to add the resolution we want to set on some monitors.
So follow my steps:-
Open a Terminal by CTRL+ALT+T
Type xrandr and ENTER
Note the display name usually VGA-1 or HDMI-1 or DP-1
/* | |
Write a function that takes two strings (a and b) as arguments. Return the number of times a occurs in b. | |
Test Cases: | |
myFunction('m', 'how many times does the character occur in this sentence?') | |
Expected 2 | |
myFunction('h', 'how many times does the character occur in this sentence?') | |
Expected 4 |
let strs = ["abc" , "def", "ghi"]; | |
console.log(strs); | |
let strs2 = strs.map(item => { | |
return item.split(''); | |
}); | |
let transposed = transpose(strs2); | |
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /dstatus
Node.js JSON Cleaning In the JavaScript file, write a program to perform a GET request on the route https://coderbyte.com/api/challenges/json/json-cleaning and then clean the object according to the following rules: Remove all keys that have values of N/A, -, or empty strings. If one of these values appear in an array, remove that single item from the array. Then console log the modified object as a string.
Example Input
{"name":{"first":"Daniel","middle":"N/A","last":"Smith"},"age":45}
Example Output
{"name":{"first":"Daniel","last":"Smith"},"age":45}