Tag: r

63 votes
17 answers
1K views
How can I add a PHP page to WordPress?

I want to create a custom page for my WordPress blog that will execute my PHP code in it, whilst remaining a p

avatar
Janella
0 1 0 9
asked 07 September, 2021
54 votes
12 answers
2.9K views
upstream sent too big header while reading response header from upstream

I am getting these kind of errors: 2014/05/24 11:49:06 [error] 8376#0: *54031 upstream sent too big header

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
399 views
Can I install/update WordPress plugins without providing FTP access?

I am using WordPress on my live server which only uses SFTP using an SSH key. I want to install and upgrade

avatar
Benton
0 1 0 9
asked 07 September, 2021
67 votes
20 answers
2.1K views
Create a folder if it doesn't already exist

I've run into a few cases with WordPress installs with Bluehost where I've encountered errors with m

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
54 votes
22 answers
611 views
Avoid "current URL string parser is deprecated" warning by setting useNewUrlParser to true

I have a database wrapper class that establishes a connection to some MongoDB instance: async connect(connect

avatar
Jeff
0 1 0 9
asked 07 September, 2021
62 votes
22 answers
3K views
How to select a single field for all documents in a MongoDB collection?

In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this col

avatar
Serina
0 1 0 9
asked 07 September, 2021
51 votes
8 answers
1.5K views
mongodb/mongoose findMany - find all documents with IDs listed in array

I have an array of _ids and I want to get all docs accordingly, what's the best way to do it ? Something

avatar
Royal
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
437 views
Render basic HTML view?

I have a basic node.js app that I am trying to get off the ground using Express framework. I have a views fol

avatar
Clarice
0 1 0 9
asked 07 September, 2021
47 votes
8 answers
2.7K views
Ways to implement data versioning in MongoDB

Can you share your thoughts how would you implement data versioning in MongoDB. (I've asked similar quest

avatar
Chaya
0 1 0 9
asked 07 September, 2021
56 votes
23 answers
2.1K views
How do I remove documents using Node.js Mongoose?

FBFriendModel.find({ id: 333 }, function (err, docs) { docs.remove(); //Remove all the documents that

avatar
Majorie
0 1 0 9
asked 07 September, 2021
54 votes
22 answers
937 views
Get names of all keys in the collection

I'd like to get the names of all the keys in a MongoDB collection. For example, from this: db.things.in

avatar
Joseph
0 1 0 9
asked 07 September, 2021
56 votes
7 answers
2.3K views
"continue" in cursor.forEach()

I'm building an app using meteor.js and MongoDB and I have a question about cursor.forEach(). I want to c

avatar
Suzan
0 1 0 9
asked 07 September, 2021
66 votes
8 answers
778 views
MySQL vs MongoDB 1000 reads

I have been very excited about MongoDb and have been testing it lately. I had a table called posts in MySQL wi

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
54 votes
28 answers
1K views
Random record from MongoDB

I am looking to get a random record from a huge collection (100 million records). What is the fastest and most

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.8K views
How to export all collections in MongoDB?

I want to export all collections in MongoDB by the command: mongoexport -d dbname -o Mongo.json The resul

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
51 votes
15 answers
1.5K views
How to remove a field completely from a MongoDB document?

{ name: 'book', tags: { words: ['abc','123'], lat: 33,

avatar
Keila
0 1 0 9
asked 07 September, 2021
59 votes
14 answers
2.5K views
Retrieve only the queried element in an object array in MongoDB collection

Suppose you have the following documents in my collection: { "_id":ObjectId("562e7c594c12942f08fe4192"),

avatar
Clarice
0 1 0 9
asked 07 September, 2021
62 votes
23 answers
2.8K views
How do I update/upsert a document in Mongoose?

Perhaps it's the time, perhaps it's me drowning in sparse documentation and not being able to wrap m

avatar
Rufus
0 1 0 9
asked 07 September, 2021
59 votes
11 answers
2K views
Update MongoDB field using value of another field

In MongoDB, is it possible to update the value of a field using the value from another field? The equivalent

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
53 votes
15 answers
1.6K views
Find objects between two dates MongoDB

I've been playing around storing tweets inside mongodb, each object looks like this: { "_id" : ObjectId(

avatar
Kristopher
0 1 0 9
asked 07 September, 2021