PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 1st of November, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:41:41] <bewilled> Hi, I'm using System.setProperty("socksProxyHost", "127.0.0.1"); from a java app, that writes to mongo but this seems to be affecting the mongo client too. Anyone knows a workaround for this?
[12:21:47] <loa> hello, how i can create collection with zlib compression from python in mongo?
[12:22:16] <loa> i tried this https://dl.dropboxusercontent.com/u/25725476/screenshots/screenshot-2015.11.01-15%3A17%3A38.png
[14:39:33] <jokke> hello
[15:08:56] <wsad> Hello all
[15:11:53] <wsad> I installed MongoDB on my Mac running Yosemite using this blopg post as reference -> http://www.choskim.me/how-to-install-mongodb-on-apples-mac-os-x/ My db location is custom and hence I ran this command -> mongod --dbpath /usr/local/mongodb/data/db/ What I want to know is where do I create the mongod.conf file and add the dbpath to it?
[15:22:31] <wsad> Anyone?
[15:23:27] <StephenLynx> I`d use a VM with centOS 7.
[15:40:04] <noncom|2> does the fact that i want to have a "class" field in my mongo db objects indicate bad architecture?
[15:48:19] <StephenLynx> no.
[15:48:39] <StephenLynx> if that implies in few changes on application behaviour.
[15:49:05] <StephenLynx> however if that causes your documents to be handled completely different, then yes, you might be better with a separate collection.
[15:58:17] <loa> how i can check if my db is really use wiretiger with zlib compression?
[17:06:59] <noncom|2> StephenLynx: interesting, thank you!
[17:47:32] <buZz> eh
[18:34:02] <shoshy> hey, i've install mongodb on an EC2 instance with inbound 27017 port open. I have an instance with an outbound 27017 port open trying to connect using pymongo. I know mongo is running (can log into it locally and see the demon using the port) , but i can't connect to it from the other instance. What am i missing?
[18:34:46] <shoshy> the ip given for the "client instance" is the private one of the mongo instance (using vpc)
[18:57:27] <Upgreydd> Hello. Can i get here support for mongoose?
[19:03:07] <StephenLynx> hardly.
[19:12:33] <Upgreydd> Ok i got it :/ I have very very big js object ( ~ 20 000 lines). I've created Schema for it. Schema contains nested objects. Do i need to use
[19:13:10] <Upgreydd> Ok i got it :/ I have very very big js object ( ~ 20 000 lines). I've created Schema for it. Schema contains nested objects. Do i need to use loop for each nested object to save?
[20:05:15] <cheeser> Upgreydd: "nested documents" are a semantic concept for us humans. mongodb sees one documents with stuff inside.
[20:05:24] <cheeser> so just insert your massive doc and you're done.
[20:07:51] <Upgreydd> cheeser: http://pastie.org/private/roif67o23yb9gqawhxyhxg meybe you know better way to do this?
[20:08:44] <cheeser> my better way would not involve javascript :)
[20:09:13] <Upgreydd> I have ~ 40 types of HARDWARE,ACCESSLOG etc.
[20:09:30] <StephenLynx> you might as well stop using BSON too :v
[20:09:41] <StephenLynx> since its based on json
[20:09:45] <StephenLynx> and its based on js
[20:10:07] <StephenLynx> you can`t tell people to not use js while using a db that has its roots on js.
[20:10:15] <StephenLynx> and not being a hypocrite, that is.
[20:10:27] <cheeser> sure i can.
[20:10:30] <Upgreydd> i'm writing in in MEAN technology ;]
[20:10:31] <StephenLynx> that is one awful piece of js code, though.
[20:10:35] <StephenLynx> >mean
[20:10:36] <StephenLynx> ffs
[20:10:37] <cheeser> using json is not the same as writing javascript
[20:10:50] <StephenLynx> just dont. mean is total bullshit.
[20:11:00] <StephenLynx> express is ass and coupling it to front-end is non-sense.
[20:11:13] <Upgreydd> why?
[20:11:18] <StephenLynx> it makes ZERO sense coupling your front-end with your database.
[20:11:22] <cheeser> oh, dear. another anti-framework screed.
[20:11:43] <StephenLynx> that is what unmaintainable software is made of.
[20:12:04] <StephenLynx> want to adapt to have a separate UI for some random system? though luck, everything revolves around angular now.
[20:12:08] <Upgreydd> I very like angular, i was working with jhipster, but i don't like static typing languages, that's why i'm trying with nosql and MEAN ;]
[20:12:38] <StephenLynx> just use node as one separate technology and mongo as another separate technology
[20:12:40] <Upgreydd> i have few big projects in jhipster (java REST + SpringIO + angularJS)
[20:12:45] <StephenLynx> without coupling it to any kind of front-end
[20:13:03] <StephenLynx> or don`t. I am not the one having to maintain your code.
[20:13:39] <Upgreydd> connectiong java via REST with frontend is very painfull, you need to convert every json to object and vice versa.
[20:13:49] <cheeser> no, you don't.
[20:13:58] <cheeser> you can use Maps all day long if you want
[20:14:44] <StephenLynx> not to mention
[20:14:47] <Upgreydd> cheeser: i know, but i'm working with last project ~ 8 months and i'm very tired with JAVA :/
[20:14:50] <StephenLynx> you always can use jsonobject from apache.
[20:15:04] <cheeser> it's Java. not JAVA.
[20:15:05] <StephenLynx> it comes with the android SDK and works great
[20:15:26] <StephenLynx> I also worked with this library on desktop.
[20:15:30] <StephenLynx> never had a single issue.
[20:15:47] <StephenLynx> working with json on a java back-end is not an issue at all.
[20:16:03] <StephenLynx> I do have some negative views on java as a web server in general, but json is not one of the issues.
[20:17:23] <StephenLynx> and btw, REST is bullshit.
[20:17:27] <Upgreydd> StephenLynx: after 8 months it would be ;)
[20:17:35] <StephenLynx> it wouldnt.
[20:17:43] <StephenLynx> only if the programmer is retarded in the head.
[20:18:04] <cheeser> i've been doing it for years and years. json in java is not an issue.
[20:18:05] <StephenLynx> and didn`t funnelled the request > object
[20:19:01] <StephenLynx> if you don`t abstract the raw I/O on high-level platform you are doing it wrong.
[20:19:27] <StephenLynx> on a high-level*
[20:20:40] <StephenLynx> if you wish to see how I would do on node using mongo: gitlab.com/mrseth/LynxChan
[20:21:32] <StephenLynx> so you don't think I just talk about stuff I am not familiar.
[20:21:54] <StephenLynx> all this time I never seen a single reason you would wish to couple node with other stuff on a fundamental level.
[22:05:30] <iszak> StephenLynx: because isomorphism!
[22:10:45] <StephenLynx> wot
[22:11:46] <iszak> StephenLynx: I didn't read all the conversation, but people want to couple database models with client models
[22:12:05] <StephenLynx> yeah, MEAN stack.
[22:12:17] <StephenLynx> that was the topic
[22:13:09] <StephenLynx> bundling a database with a web front-end library
[22:13:12] <iszak> StephenLynx: Yeah MEAN is the new hotness
[22:13:28] <StephenLynx> and as anything coming from web developers: its fucking retarded.
[22:13:44] <StephenLynx> thank god I am leaving web development.
[22:13:50] <iszak> StephenLynx: management?
[22:13:53] <StephenLynx> nope
[22:13:54] <StephenLynx> C
[22:14:10] <iszak> No Rust?
[22:14:15] <StephenLynx> kek
[22:14:18] <StephenLynx> rust has no future.
[22:14:38] <iszak> I am not so sure
[22:14:44] <StephenLynx> I dunno, I might be wrong, I will admit it if I get proven wrong.
[22:14:59] <iszak> no one will care if you're wrong anyway
[22:15:04] <StephenLynx> I will.
[22:15:29] <iszak> No you won't, you'll be too busy looking for that null pointer, or that stack overflow
[22:15:37] <StephenLynx> anyway, I am the sole maintainer of a C application that uses serial IO to some medical machinery of sorts.
[22:15:49] <StephenLynx> >projecting that much.
[22:16:07] <StephenLynx> My code compiles with -pedantic-errors and valgrind points zero errors or memory leak.
[22:16:26] <StephenLynx> sorry if you are bad.
[22:16:41] <iszak> I don't go low enough to worry about null pointers or stack overflows
[22:16:50] <StephenLynx> ok
[22:17:28] <StephenLynx> nothing wrong with being just a high-level developer.
[22:17:49] <iszak> StephenLynx: no of course not, cranking out those CRUD apps in MEAN
[22:17:53] <StephenLynx> kek
[22:19:11] <iszak> StephenLynx: software engineering huh? algorithm efficiency is O(n^2) but could be O(n), who cares
[22:20:56] <StephenLynx> were you being sarcastic?
[22:21:33] <iszak> StephenLynx: no it's reality
[22:21:57] <StephenLynx> are you REALLY saying that is not important to write efficient code?
[22:22:09] <StephenLynx> that you can just throw more hardware and call it a day?
[22:22:16] <iszak> StephenLynx: in software engineering, yes that's correct
[22:22:27] <StephenLynx> what is your point?
[22:22:48] <iszak> StephenLynx: no one cares about good design, coupling f/e to b/e data models, who cares?
[22:22:52] <StephenLynx> I do.
[22:23:13] <StephenLynx> and when you need to develop software to certain scenarios
[22:23:20] <StephenLynx> you either care or it just doesn`t work. period.
[22:23:32] <StephenLynx> there is a level above the every day code monkey shit.
[22:23:47] <iszak> StephenLynx: sure, what you doing almost certainly does, you have limited resources
[22:23:49] <StephenLynx> that you either do it right or you fall flat on your ass.
[22:24:19] <StephenLynx> and software quality is not just about performance.
[22:24:38] <iszak> sure, it's about good design as well
[22:24:38] <StephenLynx> is about having to implement more features and not taking ages or breaking every fucking thing.
[22:25:09] <StephenLynx> if you think you can just do whatever and fuck it, so be it. I will never have to work with your software.
[22:25:19] <StephenLynx> but don`t try to pass that bullshit as acceptable with me.
[22:26:48] <iszak> StephenLynx: you just described web development in a nut shut "just do whatever and fuck it, so be it"
[22:27:08] <StephenLynx> yeah, web developers are usually like that.
[22:27:38] <StephenLynx> "hurr here are buzzwords to compensate the system shityness"
[22:28:24] <StephenLynx> "AGILE WEB SCALE MEAN FULL STACK SCRUM DILDOS"
[22:28:53] <StephenLynx> tl,dr; its shit.
[22:29:29] <iszak> StephenLynx: enjoy C :)
[22:29:36] <StephenLynx> I got a boner for C
[22:29:42] <StephenLynx> C is mai waifu >:3
[22:29:54] <StephenLynx> I started a personal project last week
[22:30:00] <StephenLynx> gitlab.com/mrseth/LynxFortress
[22:30:14] <StephenLynx> just finished implementing optimization of routes from the path-finding.
[22:31:50] <iszak> meh
[22:32:03] <iszak> why can't you use github like everyone else?
[22:33:03] <StephenLynx> because they are anti-meritocracy, pro-censorship and bigots.
[22:33:29] <StephenLynx> and the community is shit.
[22:33:38] <StephenLynx> plus gitlab has better tools.
[22:33:50] <StephenLynx> you can clone repositories outside the site.
[22:33:53] <iszak> which they shamelessly ripped off
[22:33:57] <iszak> You can do that with Github!
[22:34:05] <StephenLynx> really? how?
[22:34:11] <iszak> Stop trolling me
[22:34:16] <StephenLynx> I am for real.
[22:34:20] <StephenLynx> I checked that and couldn`t find.
[22:34:53] <iszak> StephenLynx: git clone https://github.com/nodejs/node.git ?
[22:35:06] <StephenLynx> I meant fork.
[22:35:08] <StephenLynx> my bad.
[22:35:23] <StephenLynx> with gitlab when creating a new repository you can copy a repository from outside gitlab.
[22:35:31] <iszak> I guess they have to
[22:35:37] <StephenLynx> with github you can only fork repositories on github.
[22:35:56] <iszak> You can easily do it with the cli..
[22:36:08] <StephenLynx> well, then I might as well just self-host.
[22:36:22] <StephenLynx> if I don`t care about the system features they offer.
[22:36:30] <StephenLynx> and even then, none of that changes the human factors.
[22:36:38] <StephenLynx> and the awful community.
[22:36:57] <StephenLynx> I rather self-host than deal with github community.
[22:37:32] <iszak> StephenLynx: have you considered you are the bigot?
[22:38:05] <StephenLynx> no, I can tolerate people who have different opinions and I can work on them on a separate level than the one these opinions relate to.
[22:38:18] <StephenLynx> I am not one.
[22:38:25] <StephenLynx> I am open to debate.
[22:38:35] <StephenLynx> I don`t ask for censorship of those who have different discourses.
[22:38:50] <iszak> I think this is OT
[22:38:53] <StephenLynx> OT?
[22:38:57] <iszak> off topic
[22:39:14] <StephenLynx> well, I will promptly stop discussing if anything on-topic starts being discussed.
[22:39:46] <StephenLynx> I can`t see any problem with off-topic if it isn`t disrupting anything on-topic and isn`t of bad-taste on a more tasteful channel.
[23:26:04] <Silverfall> so, in the lapse of 1 second, out of 181 random mongo docwrite requests only 161 are actually written
[23:26:20] <Silverfall> didn't this have a safe mode or something?
[23:32:48] <StephenLynx> what is the write concern being used?
[23:33:06] <StephenLynx> is the application receiving an error on the operations that didn't went through?