PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 13th of October, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:59:25] <tripflex> http://smyl.es/how-to-count-the-number-of-values-found-for-a-field-in-mongodb-using-node-js-and-mongoose-using-aggregation/
[00:59:27] <tripflex> :)
[02:57:19] <Xzyx987X> hmm... is there any way in mongo to fetch the names of all the values in an entry, but not the values themselves?
[03:51:08] <tripflex> thats like ... an oxymoron
[05:21:25] <crudson> Xzyx987X: I'm not sure there is a command for that
[06:41:01] <Xzyx987X> crudson: eh, I thought that might be the case. it's not that important because I can get the information by just reading all the values in an entry abd looking at the keys of the hash. it would just be a bit more optimised to only get the keys, if it were possible
[07:12:49] <liquid-silence> hey all
[07:23:11] <liquid-silence> anyone around?
[07:35:50] <liquid-silence> arg might aswell go back to SQL
[07:38:07] <czajkowski> liquid-silence: it's the weekend
[07:38:12] <czajkowski> people aren't always here
[07:38:16] <liquid-silence> I know :)
[07:38:23] <liquid-silence> I was saying that mainly for myself
[07:38:32] <liquid-silence> mongo is awesome, but hell
[07:41:54] <liquid-silence> if I have http://pastebin.com/6jp4qvPa
[07:42:11] <liquid-silence> how would I add another folder or asset to the document?
[07:46:31] <liquid-silence> ok folders are the easy one
[07:46:43] <liquid-silence> db.containers.update({ _id: ObjectId("525a4bace5e7c40f6c47c717")}, { $push: { folders: { name: "new folder" }}})
[07:49:05] <liquid-silence> no how would I do db.containers.update({ "folders.name": "test folder"}, { $push: { "folder.assets": { name: "new asset" }}})
[07:49:25] <liquid-silence> seems to add the asset to the root and not to the assets array of the current folder
[07:52:07] <liquid-silence> ok nevermind found the issue
[08:33:47] <briefcaseofguts> erg can anyone tell me how to use mongoexport to give me all the collections into a csv?
[15:31:17] <metd> hi. I'm trying to run c++driver usage example, which is here: http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-cpp-driver/ , but I got a lot of undefined references from mongodb code to boost. g++ returns: http://pastebin.com/aVqBeCE9 . I use Debian testing on amd64 with boost 1.54. ( sorry for doubling. I was first time disconnected)
[17:45:25] <agrim> anyone in? I has question about using mongodb with Flask. Any takers?
[17:48:14] <agrim> I already set up the Flask secret key, but in looking at the tutorial they also mention to use a mongodb secret key. Do these both have the same function? Or is it a good idea to have both secret keys?
[18:36:19] <agrim> currently working on setting up a Flask app with mongodb. in the tutorial they have you set up a secret key, I already have one set up for Flask. Do I need to set up another for mongodb? Or do they have the same function and one with be sufficient?
[19:15:42] <agrim> currently working on setting up a Flask app with mongodb. in the tutorial they have you set up a secret key, I already have one set up for Flask. Do I need to set up another for mongodb? Or do they have the same function and one with be sufficient?
[19:37:34] <agrim> this channel is dead
[20:05:17] <joannac> agrim: this channel is served by volunteers; there's no SLA here :)
[20:05:31] <agrim> SLA?
[20:05:51] <joannac> agrim: To answer your question; if you're just playing around, sure you can share. If this is anything of note, i wouldn't share secret keys.
[20:05:59] <joannac> SLA=service level agreement
[20:05:59] <agrim> I knew it was served by volunteers but was hoping there was more activity
[20:06:33] <joannac> It's still the weekend for most of the world :)
[20:06:53] <agrim> so the secret key for Flask and mongodb would have different functions then?
[20:07:15] <agrim> basic questions like this aren't answered easily through stackoverflow and docs :/
[20:07:52] <agrim> thanks for the assist joannac, even on your weekend :)
[20:12:39] <joannac> I don't know, I'm just giving you generic advice
[20:13:30] <joannac> from my 30 seconds of googling, looks like it's used to sign cookies and things
[20:16:08] <agrim> hmm
[20:16:45] <agrim> the flask key is to prevent outside invasion and authorizing requests.
[20:17:22] <agrim> Maybe better to just have both
[20:17:36] <agrim> I guess if there are issues can just work them out later
[20:18:32] <joannac> http://flask.pocoo.org/docs/api/#flask.Flask.secret_key
[20:19:33] <agrim> so maybe they are the same?
[20:19:56] <agrim> I'm a little new to this so tredding water
[23:33:20] <ProLoser> how can i figure out what user credentials to use for my local mongo?
[23:33:22] <ProLoser> or create new users?