I need help in referencing the name of each individual database attached to a MongoDB instance. I just want to connect to a database with PHP and list the names of all the databases. In the code below I can connect to MongoDB instance and find all the databases. I need to extract the name of the databases to place them in a list box and then to do the same for all the collections within each database. First I need to know is how to reference the name of the databases I see when the following code is used. …

Member Avatar
Member Avatar
+0 forum 2

When I tried to start MongoDB with the `mongod` command I got the following. garrett@mint-desktop ~ $ mongod mongod --help for help and startup options Sun Jan 10 14:50:55.049 [initandlisten] MongoDB starting : pid=23327 port=27017 dbpath=/data/db/ 64-bit host=mint-desktop Sun Jan 10 14:50:55.050 [initandlisten] db version v2.4.9 Sun Jan 10 14:50:55.050 [initandlisten] git version: nogitversion Sun Jan 10 14:50:55.050 [initandlisten] build info: Linux orlo 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 BOOST_LIB_VERSION=1_54 Sun Jan 10 14:50:55.050 [initandlisten] allocator: tcmalloc Sun Jan 10 14:50:55.050 [initandlisten] options: {} Sun Jan 10 14:50:55.050 [initandlisten] exception in initAndListen: 10296 ********************************************************************* ERROR: dbpath …

Member Avatar
Member Avatar
+0 forum 2

Hello I have a rest web service which implement oauth2.0 . Now I have my web application with a login which currently using spring security. I want to use the same login to authenticate with the rest web service using oauth2. My question is: Does this tutorial is suitable for me? [Click Here](https://raymondhlee.wordpress.com/2014/12/21/implementing-oauth2-with-spring-security/) I just want to authenticate my login with the rest webservice. My web application is using hibernate/spring. Please advise. Thanks

Member Avatar
+0 forum 0

Will u plzz help me for displaying the content from the database in datagridview in vb with backend mongodb?

Member Avatar
Member Avatar
+0 forum 1

I am new to Pyramid, Python, Jinja2 , jQuery AJAX, MongoDB and mongoengine. I was told to delvelop a system using these technologies. I am at a point where I do not know how to go futher. I have searched the web for answers, but found nothing that is helpful. I do not know what to do with AJAX $.post data. I do not know how to store that data in MongoDB as a Document. my AJAX: var url = "{{'add_candidate'|route_url}}"; $("form[name='is_submitted']").submit(function(e) { e.preventDefault(); var data = $('form').serialize(); $.post(url, data).success(function(data, status) { alert("Data: " + data + "\nStatus: " + …

Member Avatar
+0 forum 0

I am new to Pyramid, Python, Jinja2 , jQuery AJAX, MongoDB and mongoengine. I was told to delvelop a system using these technologies. I am at a point where I do not know how to go futher. I have searched the web for answers, but found nothing that is helpful. I do not know what to do with AJAX $.post data. I do not know how to store that data in MongoDB as a Document. my AJAX: var url = "{{'add_candidate'|route_url}}"; $("form[name='is_submitted']").submit(function(e) { e.preventDefault(); var data = $('form').serialize(); $.post(url, data).success(function(data, status) { alert("Data: " + data + "\nStatus: " + …

Member Avatar
+0 forum 0

Hi, I am new to Python and am looking into web development frameworks i.e. Pyramid. Is there anyone here who is familiar with this Framework using MongoDB? I am using pymongo and Ming I follwed a tutorial [here](http://pieceofpy.com/2012/01/10/working-with-pyramid-and-ming/). I am getting an `AttributeError: 'str' object has no attribute '_auto_ensure_indexes'` in this code : from ming import Session from ming.datastore import DataStore from ming.orm import ThreadLocalORMSession from ming.orm import Mapper session = Session DBSession = ThreadLocalORMSession(session) def init_mongo(engine): server, database = engine datastore = DataStore(server, database=database) session.bind = datastore Mapper.compile_all() # Here we just ensure indexes on all our mappers at …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am executing below query. db.leads.find(); How to get execution time(in milli seconds) it take.

Member Avatar
Member Avatar
+0 forum 1

Hi Experts, Which database is better acc to Performance factor. Need Suggestions..

Member Avatar
Member Avatar
+0 forum 3

Hello developers, I have written this code which walks through the html files in a directory and fetches event and date information and print it on screen. I want this data to be stored in a database. I have installed mongodb and pymongo module. How can I insert the output data into the database. import re import os from bs4 import BeautifulSoup for subdir, dirs, files in os.walk("/home/himanshu/event/"): for fle in files: path = os.path.join(subdir, fle) soup = BeautifulSoup(open(path)) #print event title print (soup.h1.string) #Date and Time detection s=soup.get_text() pat=r'\d{1,2} - \d{1,2} \w{3} \d{4}' m=re.search(pat,s) if m is None: pat1=r'\d{1,2} …

Member Avatar
Member Avatar
+0 forum 1

Hey guys, im working on a website and i need to design the database so that a user can follow another user and it will be easy to figure out the number of people i follow and the number of followers i have. I'm using mongoDb btw. [URL="http://www.mongodb.org/"]http://www.mongodb.org/[/URL] can someone please provide an explenation on how i can achieve this by using a NoSql database such as the one i listed? Thank you

Member Avatar
Member Avatar
+0 forum 7

i'm trying to get mongodb to work with cakephp. I'm not sure on where to place ichikaway's mongodb driver for cakephp. The following is my directory structure: under c:/websites/ I have cakephp folder and my project merry_flowers folder. am i supposed to place the mongodb driver in cakephp/app/plugins or merry_flowers/plugins? where am I supposed to add the database connection? in cakephp/app/config/database.php or merry_flowers/config/database.php Any help is much appreciated.

Member Avatar
+0 forum 0

The End.