[01:07:05] <jeremy-> Does pymongo have stuff like $exists , $and in the documentation
[01:12:12] <_aegis_> jeremy-: just put quotes around them
[01:13:19] <jeremy-> I was having quite a lot of problems trying to get my syntax out, just realised i should create a bunch of test cases which im going through now
[01:18:51] <jeremy-> I've created my test case as: col.update({"fieldname" : {"$exists" : False}}, { "$set" : {{"fieldname" : "newvalue"}}})
[01:19:20] <jeremy-> err, double curly, how did i check it 5 times and only see it now
[01:23:37] <jeremy-> I used vim initially, i like the file management stuff with eclipse, easy to switch between stuff, maybe i just dont know how to use vim properly
[01:23:50] <jeremy-> I used samba to share to a windows box and i develop on my eclipse as of a few weeks ago
[01:25:26] <LesTR> its all about first moment, when u take a time (maybe week) to vim, all editor can be pease of shit (and now i stopped here) Let's go to party guys
[01:34:42] <jeremy-> Am i supposed to use $not $exists True
[01:36:37] <jeremy-> col.update({"fieldname" : {"$exists" : False}}, { "$set" : {"fieldname" : "value that is conditional to exists False"}})
[02:07:23] <jeremy-> I know ive been draining this channel but I cant understand why my pymongo syntax is accepted yet it does unexpected things
[02:07:53] <jeremy-> For instance, i gaveup on using $exists, tried $nin (an list of potential values)
[02:08:04] <jeremy-> db.log.update( {"date" : ISODate("2013-01-04T00:00:00.0Z"), "fieldtest" : {$nin : [1, 2, 3]}}, { $set : {"fieldtest" : "field value updated if not in 1,2,3"}})
[02:08:29] <jeremy-> Works fine in console, try the same thing in python with a correct datetime object which i know converts to bson date, and simply change "set" and "nin" to have quotes
[02:09:01] <jeremy-> It just ignores the query and updates the field regardless of whether "$in" or "$nin"
[02:14:54] <jeremy-> OMG finally, i ripped out the pymongo code into a new file and it works, so its gotta be something to do with initialising the mongoclient connection (maybe twice), causing a bug
[02:15:03] <jeremy-> Almost ripped out my hair in frustration :D
[14:16:36] <Zelest> Anyone happen to use GridFS and know of any program/module to mount it on a regular Linux distro?
[14:17:01] <Zelest> E.g, mount -t gridfs mongo://localhost/db /mount/point
[14:26:24] <Hilli> Zelest: Haven't tried it, but you should probably be looking for a combination of Fuse and GridFS: https://github.com/mikejs/gridfs-fuse
[14:26:41] <irakli> why mongodb aggregation framework doesn't support $within in $match and geospatial stuff?
[15:11:50] <mahoski> I have duplicate documents in a collection and want to remove them. The collection looks like: [{_id: 1, name: 'bob'}, {_id: 2, name: 'bob'}, {_id: 3, name: 'sue'}, {_id: 4, name: 'sue'}]. There are no dependencies thus all I care about is having one 'bob', one 'sue' etc. How is this done (from the mongo shell)? I am familiar the operators reference page. Collection size is 17k documents, 2k of which are dupes. Aside: I am usi
[17:14:08] <praeconium> Hey guys, I have a small frontend q. I've got a bootstrap template up via node.js and connect package, connected to my mongodb. I am able to query it, but can anyone guide me how to proceed in order to present queries in frontend?
[17:15:25] <praeconium> I connect to mongodb via mongojs