[05:14:18] <diegoaguilar> however, uptownhr_ I got a question, ti's actually about mongoose ... what's difference between using schema.methods and schema.static for injecting methods to them
[10:39:42] <dreambox> I have a question... I am using a MeanJS stack.. has a scheme by default, all is good. Now I want to add a property/key, but it will have keys inside it as well...
[10:40:24] <dreambox> I am reading http://mongoosejs.com/docs/2.7.x/docs/model-definition.html and I am wondering should I use an array thingie and make a new schema and insert it as a value of the original schema
[10:41:04] <dreambox> or should I directly write json type .. {location : { "lat": ... , "long": ... } }
[10:55:07] <dreambox> here is how my model looks like : https://gist.github.com/ff8b66af904fb8e53d7b
[12:53:31] <Monotoko> I'm trying to run a repair on a database that's crashing out on me
[12:53:46] <Monotoko> however it won't run unless I shut it down clearly
[13:01:41] <drag0nius> for this query http://wklej.org/hash/0055075ac11/
[14:27:16] <jonjons> I have a db where I have marked 90% of the records as "deleted" without actually deleting them, I want to keep them but they no longer need to be indexed etc
[14:27:21] <jonjons> what is the best strategy here?
[17:37:32] <esmalling> trying to run MongoDB with ssl, built 2.6.5 from source, am getting the following in the log at startup: invalid char in key file /var/lib/mongodb/ssl/ssl/mongodb-rs.pem: -
[17:39:14] <esmalling> it’s a concat of key and cert from openssl using the exact args described here: http://docs.mongodb.org/manual/tutorial/configure-ssl/
[17:44:54] <flyingkiwi> esmalling, so there are 2 parts delimited by "-----BEGIN PRIVATE KEY-----" and "-----BEGIN CERTIFICATE-----"?
[17:56:38] <esmalling> sorry - it looks like my coworker was trying to use a .pem file for the replication keyFile setting - when I put it in the correct net.ssl.PEMKeyFile param, it’s working
[17:56:46] <flyingkiwi> esmalling, you could try to parse it with openssl - it may give you a better understanding whats wrong with that file. "openssl x509 -in mongodb.pem -noout -text" and "openssl rsa -in mongodb.pem -noout -text"
[17:56:47] <esmalling> thanks for your help though
[20:12:40] <nacsurte> is there a good mongodb client that has similar features to that of Sequel Pro for mysql?
[21:54:38] <dimon222> dont think so, mongodb clients are pretty sh...
[21:57:00] <nylon> using mongodb version 2.4.9, I'm currently experiencience the following error when attempting to execute 'eval()' against any given database with an error message of:
[21:57:27] <nylon> not authorized on [DB NAME] to execute command { $eval:
[21:57:56] <nylon> I have tried running the following command:
[22:21:16] <nylon> i'm curious if you will be able to execute db.eval(function(){ return 'Hello'}); without error
[22:23:49] <joannac> nylon: "If you need access to all actions on all resources, for example to run the eval or applyOps commands, do not assign this role. Instead, create a user-defined role that grants anyAction on anyResource and ensure that only the users who needs access to these operations has this access."
[22:49:21] <devguy01> I am writing an app in PHP using MongoDB and for some reason the data is adding \r\n in my variable but last night it wasnt doing that so im not sure what has changed
[22:49:57] <devguy01> I've tried using str_replace to remove them but not having much luck
[22:51:11] <devguy01> there is no spaces at all the spaces have been replaces by \r\n and its all jumbled together
[22:51:43] <okapi> i hope this is not too much of a stupid question but how would i query all records that were created on i.e. mondays?
[22:51:54] <Boomtime> devguy01: that is a php question, you should try in #php - however, you should be using trim not str_replace
[22:52:20] <okapi> i see how i would query for a timerange but i google didnt give me any indication as to how i would just generally go about for such a query
[22:53:56] <Boomtime> okapi: you could use aggregation: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfWeek/
[22:54:28] <devguy01> its just werid how its changed all the sudden i haven'
[22:54:30] <Boomtime> however, you want to make sure you do a $match before that $project or you'll end up walking the entire collection which would be unindexable
[22:54:32] <okapi> lets have a look at that. thx :)
[23:08:15] <okapi> little too far down the road for that :P
[23:09:31] <Boomtime> you are asking about how to do a particular query you need, but you've already made fundamental design choices that prevent you from accessing that ability?
[23:10:02] <Boomtime> aggregation is the way to do it with preexisting data
[23:10:18] <Boomtime> you can modify your data instead to have a "day of week" fielkd
[23:10:28] <Boomtime> then you can simply query on that
[23:11:53] <Derick> okapi: does meteorjs support commands? if it does, you can use that to use aggregations
[23:13:20] <okapi> Boomtime: day of week field might be a good idea. didnt think of that stupidly. so obvious ...
[23:13:27] <okapi> Derick: not sure gonna have to research that tbh