[00:40:17] <hdon> hi all :) i've built mongodb from source. installed and working. how do i get the man pages?
[03:01:45] <ArturoVM> Hi everybody, I have a question regarding usage :)
[03:02:59] <ArturoVM> I'd asked it before on SO, but no one gave me a satisfying answer. It's kinda long, so here it is: http://stackoverflow.com/questions/11799953/whats-the-best-practice-for-mongodb-connections-on-node-js
[03:32:55] <ArturoVM> mrpro: Well, I guess you could call it niche right now, but I really hope it gets traction soon. It's an awesome language, have you tried it?
[03:39:45] <mrpro> on windows tests run using MSUnit
[03:39:55] <mrpro> but when its built for Mono, it uses NUnit
[03:40:39] <hdon> hi guys :) using node.js with node-mongodb-native. is require('mongodb').connect() recommended? i can pass options or a callback, but i can't seem to pass both. where can i find reference for this function?
[03:41:12] <ArturoVM> mrpro: But I just love Go, it's a pleasure writing code with that thing. Plus the standard library is one of the best std libs I've ever seen.
[03:43:30] <ArturoVM> hdon: is this what you're looking for? http://mongodb.github.com/node-mongodb-native/api-generated/db.html#db-connect
[03:44:46] <crudson> cmplrz: hmm. what is: db.serverBuildInfo().version
[03:44:53] <ArturoVM> mrpro: It's got some really neat low-level stuff, plus some really nice standard things that most languages are missing today out-of-the-box (json & xml parser/serializer, encryption/hashing, http, etc.)
[03:44:58] <hdon> ArturoVM, if require('mongodb').Db.connect() is the same as require('mongodb').connect(), then it's odd that i can't do .connect(url, options, callback) // when i do this, it says it doesn't see the callback :\
[03:45:34] <ArturoVM> hdon: Hang on, I had some old code lying around with what you need.
[03:45:40] <hdon> ArturoVM, perhaps i made a mistake. also, they are the same function :)
[03:46:00] <hdon> ArturoVM, the problem is that my callback is not being called. i'm investigating why now, perhaps the connection is not being established...
[03:46:52] <crudson> cmplrz: wondering what server version you are running, if it's an old one
[03:46:53] <ArturoVM> hdon: on your node.js code, to console.
[03:47:28] <hdon> ArturoVM, i see everything on the console, but i'm not seeing any errors yet. perhaps i'm being impatient and SIGINTing before the connection timeout
[03:47:49] <ArturoVM> hdon: hmm, hang on, I'll look for that code.
[03:48:27] <hdon> ArturoVM, this is what i'm doing: http://pastebin.mozilla.org/1865666
[03:50:01] <hdon> ArturoVM, perhaps my problem is different than i thought. right now if i connect from shell, it works. it's not working when i run node in non-interactive mode
[03:50:26] <ArturoVM> hdon: why not just get a db var and then using open()?
[03:50:37] <hdon> ArturoVM, i suppose that's what i'm going to do, thanks :)
[03:50:44] <ArturoVM> I'll put that into a snippet, hang on.
[03:50:47] <hdon> ArturoVM, that seems to be how everyone else does it
[03:51:10] <ArturoVM> Yeah, that's how I do it, but then I ran into some confusing problems :S
[03:58:26] <hdon> ArturoVM, no, it's someone else's mongo server with a bunch of test data. they began their application in Flask, and so i'm supposed now to use that data as an example of what their mongo documents will look like
[04:00:13] <ArturoVM> hdon: I'm curious, how are you handling connections?
[04:00:33] <ArturoVM> hdon: Are you re-using? Are you putting everything inside the callback?
[04:00:58] <ArturoVM> hdon: here's the question I have, which is precisely regarding that http://stackoverflow.com/questions/11799953/whats-the-best-practice-for-mongodb-connections-on-node-js
[04:02:37] <hdon> ArturoVM, i was going to put everything inside the callback and use auto reconnect option
[04:03:23] <hdon> ArturoVM, let me see if i can find something that shows what i was going to do
[04:03:45] <hdon> ArturoVM, one of the links you gave me has it. http://mongodb.github.com/node-mongodb-native/api-articles/nodekoarticle1.html#getting-that-connection-to-the-database
[04:04:05] <hdon> ArturoVM, it uses auto_reconnect which i hope does what i think it does :) i'll find out soon enough
[06:05:47] <tpae> logic makes sense to me, "increments field by the number value if field is present in the object, otherwise sets field to the number value. This can also be used to decrement by using a negative value."
[06:09:12] <tpae> $today is a string, but i believe it's being sent as int..
[06:09:24] <tpae> which think it's backfilling array
[06:16:05] <crudson> you seem to be doing a find, then in, then update (again, not knowing the language). Shouldn't the whole thing be encapsulated within a single operation?
[06:17:22] <tpae> i need to track daily usage of the API
[06:18:10] <crudson> I want to help, but I don't want to lead myself down a road of misunderstanding your language syntax. Just not familiar with that api...sorry.
[06:19:24] <crudson> plus I'm a few deep into the whiskey ;)
[18:56:36] <nicolaerusan> Hey guys, I'm pretty new to mongo (we use it at large scale where I work, although I haven't interfaced with it myself too much). I'm just starting out on a Rails project, and have opted to use Mongo since it's schema-less nature is fitted for the task at hand: an unknown schema, that should still be query-able. I've started with MongoMapper, and am implementing the authentication at the moment. I've opted to build it from scratch
[18:56:37] <nicolaerusan> rather than using one of the existing gems. I was just wondering if there were any high-level words of wisdom that any of you had in terms of working w/ Rails + Mongo, or if you could point me to any recommended reading.
[23:47:34] <_m> mongod is the primary database process that runs on an individual server. mongos is the sharding process. mongo is the administrative shell.
[23:48:01] <_cmplrz> Bilge: who are you talking too
[23:48:34] <_cmplrz> Bilge: whom are you talking about
[23:48:56] <_cmplrz> Bilge: what are you talking about
[23:49:49] <_m> _cmplrz: The last two messages were meant to inform you on *daemon* processes and MongoDB.
[23:52:32] <_cmplrz> _m: thanks, i'm used to *daemon* proceses and I know in geneal that they have to be there before starting the client/child process. That's why I'm surprised that I can run mongo without even starting mongod