Can’t access SSH after enable UFW in EC2 AWS?

Can't access SSH after enable UFW in EC2 AWS? May be you enabled UFW? You may be trying to enable the ufw or trying to give access to the apache server and you stuck into a disabled ssh access, Hi-Fi, I know this may be very frustrating when you are trying to install everything related... » read more

Mongoose find to match id with values stored as comma separated string

Mongoose query (find) to match id with values stored as comma separated string in MongoDB Assuming that we have stored the values into db is like [ { "tags": "fun,game,reading,photography" }, { "tags": "politics,game,workout,photography" }, { "tags": "programming,photography,business" } ] Model: Customer Customer.find({$where : 'this.categoryid.indexOf("' + categoryId + '") != -1'}); Originally posted Here