<    March 2017    >
Su Mo Tu We Th Fr Sa  
          1  2  3  4  
 5  6  7  8  9 10 11  
12 13 14 15 16 17 18  
19 20 21 22 23 _2_4 25  
26 27 28 29 30 31
00:04 ahr3n joined
00:34 raspado_ joined
00:35 raspado_ joined
00:46 sz0 joined
00:49 Gwayne joined
00:49 energizer joined
00:52 gentunian joined
00:54 svm_invictvs joined
00:56 caley joined
01:27 Derperperd joined
01:36 Derperperd joined
01:47 Peste_Bubonica joined
02:33 kevin joined
02:45 StephenLynx joined
03:00 SkyRocknRoll joined
03:16 Koarl joined
03:42 mantazer joined
03:43 caley joined
03:43 <mantazer> hi
03:44 <mantazer> what is the best way of converting my document back into a python object?
03:46 madprops left
03:48 svm_invictvs joined
03:56 igniting joined
05:07 blizzow joined
05:30 svm_invictvs joined
05:39 ayogi joined
05:50 blizzow joined
05:54 lqez joined
06:00 xtrntr joined
06:09 blizzow joined
06:16 lpin joined
06:18 Mmike joined
06:18 lqez joined
06:19 Mmike joined
06:21 lqez joined
06:23 blizzow joined
06:27 xtrntr joined
06:32 igniting joined
06:41 xtrntr joined
06:46 kexmex joined
06:46 xtrntr joined
06:51 bob_ joined
06:51 quattro_ joined
06:54 raspado joined
06:57 _jd joined
07:02 coudenysj joined
07:08 YoY joined
07:10 coudenysj1 joined
07:11 xtrntr joined
07:25 quattro_ joined
07:26 quattro_ joined
07:26 quattro_ joined
07:27 quattro_ joined
07:29 jamesaxl joined
07:30 igniting joined
07:36 YoY joined
07:45 Flyer joined
07:55 quattro_ joined
08:00 jwd joined
08:10 lqez joined
08:11 xtrntr joined
08:13 lqez joined
08:17 kexmex joined
08:27 jaequery joined
08:35 xtrntr joined
08:42 Mia joined
08:51 Tantamounter joined
08:56 xtrntr joined
09:03 jwaibel joined
09:04 rendar joined
09:06 synchroack joined
09:08 Koarl joined
09:10 lqez joined
09:14 Derperperd joined
09:16 xtrntr joined
09:21 xtrntr joined
09:21 keph joined
09:21 <keph> hi
09:22 <keph> if I wanted to index two fields in a collection I'm aggregating, where both fields are used but on different aggregation stages, am I better off having two indices, or one compound?
09:29 synchroack joined
09:49 Lujeni joined
09:51 lqez joined
09:58 tokam joined
10:01 xtrntr joined
10:04 xtrntr joined
10:18 an_ joined
10:22 an_ left
10:22 kcjpop joined
10:23 <keph> so... anyone? ;)
10:23 <kcjpop> hi guys, my db instance couldn't start because of full disk space and am thinking to manually delete the .wt file in dbpath folder. Is it somehow...safe to do?
10:26 lqez joined
10:33 <Derick> kcjpop: do you still need the data?
10:33 undertuga joined
10:34 <kcjpop> partly yes, but it's scheduled to delete later
10:34 <Derick> then you can't touch the .wt files savely
10:35 <kcjpop> I see
10:35 <kcjpop> but if I just delete the .wt, can the instance start again? I hope yes
10:35 <Derick> yes, but you lose your data
10:35 <kcjpop> *I can ask the decision from upper manager
10:36 <kcjpop> okay I guess that's our option at the moment
10:36 Koarl joined
10:36 <kcjpop> because we can collect those data again, it just takes time :(
10:36 <Derick> you might need to empty out the whole dbpath - it's best not to mess with the files
10:38 <kcjpop> hmm, it's tricky because there are collections that we definitely want to keep
10:38 <keph> btw on the off chance my question got lost in all those quits and joins: if I wanted to index two fields in a collection I'm aggregating, where both fields are used but on different aggregation stages, am I better off having two indices, or one compound?
10:42 xtrntr joined
10:48 xtrntr joined
10:50 lqez joined
10:57 coudenysj joined
11:01 dgdekoning joined
11:01 dgdekoning left
11:16 xtrntr joined
11:21 felixjet joined
11:30 jwd joined
11:31 xtrntr1 joined
11:36 xtrntr joined
11:42 lpin joined
11:42 xtrntr joined
11:44 kexmex joined
11:53 Koarl joined
11:56 StephenLynx joined
12:19 Koarl joined
12:23 artok joined
12:26 xtrntr joined
12:30 canderson9 joined
12:31 canderson9 left
12:33 dump joined
12:36 xtrntr joined
13:00 geoffb joined
13:02 ramortegui joined
13:04 Derperperd joined
13:05 tokam left
13:17 lpin joined
13:27 orbyt_ joined
13:28 xtrntr joined
13:31 Liara- joined
13:31 jwd joined
13:33 gentunian joined
13:36 stalled joined
13:40 <* ssarah> says hi
13:43 Liara- joined
13:43 yeitijem joined
13:44 ramortegui joined
13:45 preludedrew joined
14:08 blindbox_ joined
14:21 quattro_ joined
14:22 caley joined
14:43 din0 joined
14:44 freeport joined
14:44 scorphus joined
14:58 sz0 joined
15:01 orbyt_ joined
15:06 nanohest joined
15:08 todakure joined
15:10 kexmex joined
15:11 Liara- joined
15:12 orbyt_ joined
15:14 kuadrosx joined
15:17 Waheedi joined
15:18 samwierema joined
15:20 kexmex joined
15:22 xtrntr joined
15:23 blizzow joined
15:26 Liara- joined
15:32 jwd joined
15:37 Koarl joined
15:41 blizzow joined
15:45 raspado joined
15:47 lpin joined
15:51 ggus left
15:54 AvianFlu joined
16:04 energizer joined
16:10 jaraco joined
16:12 <jaraco> this has got to be an easy one - how do I create a document if it doesn’t exist, return the new or existing document, but not modify it? The findOneAndUpdate seems to do what I want except that it wants me to modify the document. Passing an empty update is rejected because findOneAndUpdate _insists_ on at least one atomic operator.
16:13 nanohest joined
16:13 pmxbot joined
16:15 Buffman joined
16:25 artok joined
16:28 fmunozs joined
16:30 Derperpe1 joined
16:32 silenced joined
16:33 Neil_ joined
16:40 svm_invictvs joined
16:47 jwd joined
16:48 gitgud joined
16:51 Liara- joined
16:57 pmxbot joined
16:59 nanohest joined
17:10 silenced joined
17:10 Liara- joined
17:19 jaequery joined
17:34 lpin joined
17:35 re1 joined
17:38 igniting joined
17:38 energizer joined
17:41 blizzow joined
17:49 KamiRathAlt joined
17:51 <KamiRathAlt> i'm trying to run the following on node.js and it fails, but it works successfully in shell
17:51 <KamiRathAlt> can someone please elaborate?
17:51 <KamiRathAlt> https://hastebin.com/evipizupav.coffeescript
17:51 <KamiRathAlt> it's just a simple updateMany call
17:55 <gitgud> dont know why it wont work :P
17:55 timg__ joined
17:55 <gitgud> i have used node with native mongodb and it works on mine
17:57 <gitgud> KamiRathAlt, i think you needs to learn async code
17:57 <KamiRathAlt> gitgud, ?
17:57 <KamiRathAlt> whats wrong with the code snippet i pasted lol
17:57 <KamiRathAlt> i'm using promises correctly
17:58 <gitgud> KamiRathAlt, can you paste the error?
17:58 <gitgud> if you are getting any?
17:59 <KamiRathAlt> gitgud, there is no error, it's just breaking implicit contracts. I.e result.matchedCount should equal 1 and result.modifiedCount should equal 1
17:59 <KamiRathAlt> but both are 0
17:59 <KamiRathAlt> everything else works, inserts etc
18:00 <gitgud> if both are 0 then that means it failed to match, no?
18:00 <KamiRathAlt> i'm so confused, it just started working out of nowhere... now i am scared I have a race-time error
18:01 <KamiRathAlt> gitgud, yea it failed to match but then shell works
18:01 <KamiRathAlt> the same exact command
18:01 <gitgud> its working on coffescript now?
18:01 <KamiRathAlt> yea...
18:01 <KamiRathAlt> this is fucking weird
18:01 <KamiRathAlt> I didnt change a single line of code
18:01 <gitgud> well test like 10 more times
18:01 <gitgud> to see if its viable
18:01 <gitgud> lol
18:02 <gitgud> make sure you edit the thing back after each test lol
18:02 <gitgud> cause u need to have it match right
18:02 <KamiRathAlt> yea
18:04 <KamiRathAlt> gitgud, tested like 20 times it works
18:04 <KamiRathAlt> what in the world...
18:04 <KamiRathAlt> i dont feel satisfied lol, i ran into this error during production
18:04 <gitgud> yeah maybe you forgot to change it back at a time
18:04 <gitgud> so this happened
18:05 <KamiRathAlt> gitgud, yea maybe, thanks anyways!
18:05 <KamiRathAlt> will just have to see if this happens again
18:05 <gitgud> KamiRathAlt, btw question for you
18:05 <gitgud> why do you like coffeescript?
18:06 <KamiRathAlt> gitgud, i'm not using coffeescript haha
18:06 <KamiRathAlt> hastebin just auto inferred it was
18:06 <gitgud> ok
18:06 <gitgud> lol
18:06 <gitgud> what the fuck hastebin
18:06 <KamiRathAlt> personally I hate cs, I feel like it strips away too much meaning
18:06 <gitgud> CS?
18:06 <KamiRathAlt> JS is already flexible AF
18:06 <KamiRathAlt> coffeescript
18:06 <gitgud> oh coffeescript lol
18:06 <gitgud> i thought u said "comp sci"
18:06 <gitgud> see im stupid like that lol
18:07 <gitgud> oh so you're a js fan. cool
18:07 <gitgud> i like node
18:07 <gitgud> i use the native mongodb thing as i feel it doesnt take away too much
18:07 <gitgud> from shell format
18:08 <KamiRathAlt> gitgud, yea, mongo can use some extra frameworks and stuff though
18:08 <KamiRathAlt> mongoose imo is trash
18:08 <gitgud> extra frameworks?
18:08 <KamiRathAlt> maybe something to track state
18:08 <gitgud> i dont like mongoose
18:08 <gitgud> i heard that mongoose is slower
18:08 lpin joined
18:09 <KamiRathAlt> eh, I just think mongoose strips away from mongo a lot of the flexibility it offers
18:09 <KamiRathAlt> you might as well use a RDBMS
18:09 <gitgud> oh yes def
18:09 <gitgud> mongoose makes you use a forced schema
18:09 silenced joined
18:09 <gitgud> on a db that is supposed to be schemaless
18:09 <KamiRathAlt> mongo to me is what dbs should be, but I really hate how its not ACID compliant
18:10 <KamiRathAlt> what dbs should be: global application memory basically
18:10 <gitgud> well there are places where a rdbms is useful too no?
18:10 <KamiRathAlt> the way I see it, nosql can potentially mimic rdbms so what is the use case for rdbms?
18:11 Sasazuka joined
18:11 <gitgud> yeah i was thinking that too
18:11 <gitgud> schemas can be enforced on a schemaless but not other way around
18:12 <gitgud> so in a way, this json based stuff is more flexible
18:12 <KamiRathAlt> yea, so definitely some sort of framework that allows for easier way to "identify" implicit schema on schemaless data
18:12 <KamiRathAlt> cause in the end you can say it is schemaless but data still has relationships and such you know
18:13 <KamiRathAlt> management of variable usage and other stuff
18:13 <gitgud> KamiRathAlt, not sure why a framework needs to exist to identify schema?
18:13 <gitgud> the user can just use varialbes he needs throughout the program
18:13 <gitgud> and keep it in his mind
18:13 <gitgud> a framework doesnt need to be there to force you
18:13 <KamiRathAlt> gitgud, well if the project gets complex enough you may lose track of where variables are
18:14 <KamiRathAlt> the biggest issue with a schemaless design is that it is more up to the user to make sure the db does not get corrupted
18:14 <gitgud> well if you are so inclined you can keep a file open with the schemas in there lol
18:14 <KamiRathAlt> add schemaless to non-acid complaint and you have a mess, but the philosophy behind mongodb is good
18:14 <gitgud> like what variables are in your schema you can just remember
18:15 <KamiRathAlt> gitgud, right but then that would require two sets of documentation
18:15 <gitgud> you can use tools like robomongo to see it visually too
18:15 <KamiRathAlt> I prefer my code to be my documentation
18:15 sz0 joined
18:15 <gitgud> so you need build an entire framework just for that one thing?
18:15 <gitgud> i dunno man
18:15 <KamiRathAlt> gitgud, well it wouldn't be a large framework it would be a pretty light framework
18:16 <KamiRathAlt> robomongo looks interesting though, maybe you can do it through mongo natively
18:16 <KamiRathAlt> but it would only probably be through mongo events or etc
18:16 <gitgud> robomongo just shows you what data you have in your thing
18:16 <gitgud> one quick look at your existing set and you know what your schema variables are :p
18:16 <gitgud> if you know you're schema based
18:16 <KamiRathAlt> i'm talking about adding mongo db logic to a framework which you can then request for that db logic back later
18:16 <gitgud> but if not, then that also works
18:17 <KamiRathAlt> keeps logic all in one place, allows for you to pre-emptively see a birds eye view of what logic pieces would change what variables
18:17 <KamiRathAlt> without actually needing the code to execute
18:17 <KamiRathAlt> but maybe i'm doing/seeing it wrong
18:17 <gitgud> idk
18:17 <gitgud> if you need it then you need it LOL
18:18 <gitgud> for me i just look at my routes and i can understand what kind of insert/update i need or am doing in there
18:18 <gitgud> its a big project too
18:18 <KamiRathAlt> gitgud, maybe I have a shitty memory hahaha
18:18 <gitgud> but if others need such a framework
18:18 <gitgud> then i cant say no
18:18 <gitgud> just make sure ya use the framework lol
18:18 <gitgud> if it exists
18:18 <KamiRathAlt> yea, my biggest worry though is that it makes designing less flexible
18:18 <gitgud> and not just import it because someone told u tho
18:19 <KamiRathAlt> which is okay if the framework is a good framework but, heh.
18:19 <KamiRathAlt> gitgud, well i'd probably code this framework from scratch lol
18:19 <gitgud> KamiRathAlt, like for example in nodejs so many people import express just because someone told them to
18:19 <KamiRathAlt> eh, express isn't horrible though
18:19 <gitgud> even tho it doesnt get used in that particular project
18:19 <gitgud> every framework isnt horrible if you use its features
18:19 <gitgud> but if you import it and dont use it
18:20 <gitgud> then thats another abstraction thats just there for nothing
18:20 <KamiRathAlt> why would someone import express and not use it though O.o
18:20 <KamiRathAlt> they just use `http`?
18:20 <gitgud> because they are usually noobs
18:20 <gitgud> i just use 'http'
18:20 <gitgud> i have no use for express
18:20 Sasazuka_ joined
18:20 <gitgud> but there are people who dont know what express even is or does
18:20 <gitgud> and import it anyway
18:20 <gitgud> because its the popular thing
18:20 <gitgud> MEAN stack or whatever
18:20 <KamiRathAlt> express is a nice pretty nice framework though
18:21 <KamiRathAlt> middlewares and all
18:21 <KamiRathAlt> it's a good design
18:21 <gitgud> that router feature is something i have created in my program in 20 minutes lol
18:21 <gitgud> i mean i dont mean to put people down btw
18:21 <KamiRathAlt> well is it closed source?
18:21 <gitgud> currently yea
18:21 <gitgud> dude
18:21 <KamiRathAlt> i'd still trust express more then haha
18:21 <KamiRathAlt> more testing
18:21 <gitgud> sure i guess
18:21 <gitgud> express is just taking those routes
18:22 <gitgud> then attaching functions to it
18:22 <gitgud> like a map
18:22 <KamiRathAlt> yup
18:22 <KamiRathAlt> it's a framework afterall
18:22 <gitgud> you can do that yourself?
18:22 <gitgud> lol
18:22 <KamiRathAlt> you can
18:22 <KamiRathAlt> but why should I?
18:22 <gitgud> you have to look at benchmarked performance too
18:22 <gitgud> express takes up more performance on every http call
18:22 <gitgud> than your http module
18:22 <gitgud> because it copies values
18:22 <gitgud> into other object
18:22 <gitgud> needlessly
18:22 <KamiRathAlt> gitgud, but that would be a micro-op wouldn't it?
18:23 <KamiRathAlt> e.g node.js likes to scale horizontally not vertically
18:23 <gitgud> KamiRathAlt, if you can throw hardware at it, go ahead haha
18:24 <gitgud> me personally i also like to optimize
18:24 <KamiRathAlt> gitgud, why waste time writing/debugging/maintaining a more performant framework if I can just throw up another cheap node :D
18:24 <gitgud> and it took me 20 minutes
18:24 <gitgud> so i have no use for express
18:24 re1 joined
18:24 <KamiRathAlt> gitgud, have you checked out koa?
18:24 <gitgud> no
18:24 <gitgud> camping?
18:24 <KamiRathAlt> gitgud, no koajs
18:25 <KamiRathAlt> designed by team behind express, more performance, uses generators
18:25 <gitgud> nah never used it
18:25 <KamiRathAlt> got an example site I can visit to see your work gitgud ?
18:25 <gitgud> KamiRathAlt, no we have not released yet :)
18:25 <KamiRathAlt> first project? gitgud
18:25 <gitgud> first project of this type yeas
18:26 <gitgud> before this i worked on backend stuff
18:26 <gitgud> data processing
18:31 samwierema joined
18:33 gentunian joined
18:37 quattro_ joined
18:51 Derperpe1 joined
18:52 Derperpe1 joined
18:54 ramortegui joined
18:55 Derperpe1 joined
18:57 Derperpe1 joined
19:00 s2013 joined
19:04 raspado joined
19:05 Derperpe1 joined
19:06 xaep joined
19:08 nanohest joined
19:10 Sasazuka joined
19:11 Derperpe1 joined
19:13 fmunozs joined
19:17 point joined
19:18 silenced joined
19:28 jamesaxl joined
19:29 artok joined
19:32 kexmex joined
19:37 Waheedi joined
20:03 <Bodenhaltung> I try to migrate my application to php7 and the new php-driver, how can i "adapt" the datetime? At the moment, i use "$date->sec", is there a way to keep this format with less overhead? May i am not sure but this is the "new" way? $date->toDateTime()->format('U')
20:09 Derperpe1 joined
20:12 jamesaxl joined
20:19 shackra joined
20:27 <Bodenhaltung> Hmm and if $date is empty...i get "Uncaught Error: Call to a member function toDateTime() on null", so i cannot check "$date->sec != ''"? Or is there a Workarround wich i dont see?
20:37 svm_invictvs joined
20:38 Sasazuka joined
20:45 mbwe joined
20:49 Sasazuka joined
20:59 philipballew joined
21:05 fernando joined
21:10 Sasazuka joined
21:23 Mia joined
21:23 Mia joined
21:26 rendar joined
21:26 rendar joined
21:32 mortal1 joined
21:33 <mortal1> howdy folks, I've tried to save a function in mongo with db.sytem.js.save
21:33 <mortal1> i do a db.loadServerScripts();
21:33 <mortal1> and try to execute my function, and it doesn't work
21:34 <mortal1> any way i can confirm my function is there?
21:36 caley joined
21:37 <mortal1> http://pastebin.com/sRggLYGD
21:43 StephenLynx joined
21:45 gentunian joined
21:54 Liara- joined
22:11 coudenysj joined
22:22 swiftkey joined
22:41 caley joined
22:42 coudenysj1 joined
22:49 artok_ joined
22:52 artok_ left
22:59 Sasazuka joined
23:03 silenced joined
23:08 StephenLynx joined
23:11 jaequery joined
23:13 Sasazuka joined
23:15 Derperperd joined
23:23 JonathanMcClare joined
23:26 schlitzer joined
23:30 StephenLynx joined
23:47 Tantamounter joined
23:50 Derperperd joined
23:59 svm_invictvs joined