Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "mongodb"
Hired a new backend Dev. He writes a script and sends it for testing...
Tester: "It's not working..."
Backend Dev: Goes to Mongo and deletes the tester's whole profile...
I cant control my laughter every time I remember this incident...He claimed it was a mistake, I don't think that it was a mistake...the tester had it coming...
"It's not working" that's all he says every time...I mean at least give me something to start with...!5
Worst legacy code experience?
Well grab your spelunking gear and follow me down this rabbit hole!
It started early this year when our biggest customer asked us to send ETAs for deliveries. Simple enough, how bad could it be? Just need to add an ETA form for the drivers in their mobile app. And yes, that part was easy, but then we had to go from our mobile app to our internal system.
Welcome to the IBM AS/400! Where time has stood still for two decades and the mainframe is alive and well.
The shitshow started in March and, spoiler alert, it's still not working.
We begin by dumping the mobile app data in to a table that an RPG program watches. I'm not sure if it's a limitation of RPG or a limitation on the brains of our RPG developers, but timestamps do not exist here. There are only varchars. There are also a multitude of formats for these timestamps, because that makes life more interesting. This program breaks frequently.
If by some miracle the RPG program processes the data, then the ETA goes to a table that's completely separate from the entity it belongs on. If the data is needed, it is JOINed. The old ETA field is now permanently blank.
Why, you ask? Because RPG programs need to be recompiled every time the underlying database changes, and half our system hasn't been compiled in like 10 years. God only knows if we *can* recompile at this point. We extensively use Synon/2E, which compiles to RPG, which can (and has) been hand-modified to fix bugs instead of fixing them in the "higher" language. So now if we try to recompile, we might be losing those fixes *forever*.
Naturally, there is NO referential integrity between this tables. There's orphan rows all through the system. There's also one-to-many relationships in tables meant for one-to-one. Also there's no unique keys. You have to combine multiple fields to get a (potentially) unique key.
Now, there's a series Synon programs that run every 5 minutes to check if any data needs to be sent out. These Synon/2E programs do *full table scans* of the database and check for changes. And, of course, they're buggy as shit.
But you can't debug it there, oh no no no, the output gets pumped straight to...
Wait for it..
A fucking COBOL program.
This COBOL program takes the data from the Synon/2E programs and puts it in a horrible format called X12. X12 looks something like this:
This shit is why JSON was invented. Yes, that's what an ETA for 2017-06-10 14:00:00 looks like. The timezone is "Local Time", whatever the fuck that's supposed to mean.
So this COBOL program has logs, which should make life easy, right?
Using the 'search and audit' function in the program dumps 90 char lines of text on the screen with no line breaks. Worse, the terminal can only show 87 of those lines, so you have to push Shift+F8 to move to the right by three characters. There's no way to search for the actual ETA events using the program, and while you can filter by reference number all this garbage is sent in 5 minute batches, so you'll get a dump of irrelevant data along with the thing you're looking for. Also there's no such thing is grep in this environment, or anything even close to it.
I have hundreds of these bad data transfers to debug, so there's no way in hell I'm doing this manually.
I never did figure out exactly where the raw data is kept, but apparently it's tucked away in one of a thousand tables associated in something called "multiple member files". It seems IBM tried the "schemaless" thing long before MongoDB thought it'd be hip, and like so many MongoDB projects this too ended up a shitshow. Multiple member files are now deprecated I believe, and IBM documentation + resources are sparse anyway so that's pretty much a non-starter.
But I did figure out that the "Print" function of this program can be called directly with a batch number... So here's what I do:
Get the dates of the oldest and newest bad ETAs I'm looking at. Find those two manually and note that batch numbers. Call the "Print" function with these batch numbers (provided the difference is less than 32,767 because yay 16-bit programs). Take the print file and convert it to a "PC-Style ACII" stream and put it on the emulated file system and ancient SMB server. Copy that file and parse that garbage to find the relevant events, and finally dump it to a CSV for quick and easy viewing.
That last paragraph took me a couple weeks to figure out. Fuck IBM.
Now, finally, after fixing all the bugs I found on our side, we've finally come to the conclusion that the data we're sending is good. But! The customer is still having trouble parsing it...
You see, they're having some problems with their IBM AS/400. There's a lot of old code that's supposed to parse the data we're sending, and they're just not quite sure why it isn't working.17
She - So. Do you read ?
Me - Yes. Infact a lot. Daily. My life is filled with it.
She - Wow. Nice. So what do you read mostly ? Which one is your favourite
Me - Mostly Documentations. Vuejs documentation is my favourite followed by express and mongodb documentation. And yeah webpack. You should read them too. Then there is a book on ES6, 'Understanding ES6' by Nikolas S Zakas, famous author and programmer. Great stuff48
A Java Development vacancy I came across today:
° Appropriate Education
° Experience with Spring, NoSQL(MongoDB)
° Experience with Tomcat/Jboss/Glassfish
° JDBC, JSF, JSP, JSTL, Angular, ExtJS
° HTML5, CSS3, XML, Jquery, Bootstrap, Primefaces
° Implementation of specific requirements
° Cooperation with business analytics and clarification of reuirements
° Participation in the development of application architecture and technology selection
Who are they hiring?53
Fucking HR cunts. I found a nice computer vision vacancy and decided to apply, look what these motherfuckers require :
- Amazon Web Services
- Spring Boot
- Web Sockets
- Grafana - Prometheus
- Java EE
- Graph QL
FUCK OFF FUCK OFF FUCKING FuCK OFF you monkeys. Shove your vacancy up your ass.
Another vacancy, another instance, I'm going to apply at employers site, (they sell some sort of CRM crapshit) forms not working, bc not fucking connected to anything. Just a fucking HTML and JS popup notification for submission laying around with its legs wide spread. Like its copied from w3schools or something.
Looked more on the site it is fucked from all sides like it's made by a school kid.
So I fired an email to the HR, something like "I went to apply but your forms are not working, I found the issue, it's that. Also I found some glory holes in your site, hope your I.T. finds them too. Anyways here is my CV, have a nice day"
Day later I'm shortlisted.36
Just saw a job posting:
• Strong experience with MongoDB
• Experience with Bootstrap or Angular
• MongoDB experience a plus
Who the hell wrote this crap?6
Some Romanian "Hacker" is trying to hack my forum xD
He tried to call the setup script for PhpMyAdmin, but I don't even have PhpMyAdmin installed because I use MongoDB xDDD
I'm lying on the floor laughing7
The Adventures of my Project Manager.
--- Part 1
a little back story first:
The project manager is the CEO's younger brother.
end of back story.
PM: Hey, we should stop using Nodejs on our API.
PM: I don't see why it is necessary when we could make our android app talk directly with MongoDB.
Currently stuck at the Nice's train station, with slow internet. Some gummy bears help me wait for the heavy mongodb documentation to load!10
So we had a dev on our team who was on a performance improvement plan, wasn't going to pass it, but decided to quit before it was over saving us 2 weeks.
I was ecstatic when he left (caused us hell). I knew updating his code wouldn't be great, but he was only here 6 months
"how bad could it be" - practiseSafeHex - moron, idiot, suicidal.
A little run down would be:
- Despite the fact that we use Angular 2+, one of his apps is Angular 1 ... Nobody on the team has ever used Angular 1.
- According to his package.json he seems to require both mongoDb and Cloudant (couchDb).
- Opened up a config file (in plaintext) to find all the API keys and tokens.
- Had to rename all the projects (micro services) because they are all following a different style of camelcase and it was upsetting my soul.
- All the projects have a "src" folder for ... you know ... the source code, except sometimes we've decided to not use it for you know, reasons.
- Indentation is a mess.
- He has ... its like ... ok I don't even know wtf that is suppose to be.
- Curly braces follow a different pattern depending on the file you open. Sometimes even what function you look at.
- The only comments, are ones that are not needed. For example 30+ lines of business logic and model manipulation ... no comment. But thank god we have a comment over `Fs.readFile(...)` saying /* Read the config file */. Praise Jesus for that one, would have taken me all week to figure that out.
Managers have been asking me how long the "clean up" will take. They've been pushing me towards doing as little as possible and just starting the new features on top of this ... this "code".
The answer will be ... no ... its getting deleted, any machine its ever been on is getting burned, and any mention of it will be grounds for death.6
That awkward moment when I was able to run three docker containers on a 512MB server:
1. DotNet core web service
BUT I cannot run:
1. NodeJs web service
2. MongoDB container
Spent two hours configuring the damn server to get hit by this T_T14
I always thought that this could only happen with big orgs with precious data. One of my coworkers sent me this last night12
I'M A MORON!!!!!!!
I JUST SPENT 4 HOURS DEBUGGING SOME FUNCTIONS IN A NODE BACKEND THAT USES MONGOOSE. THE FUNCTIONS USED MONGODB METHODS!
lesson: while RTFM, read precisely, not just skim read.3
I get on the phone with this greasy know-it-all from a new startup, and he starts drilling me with technical questions right away. He wanted to know if I knew Angular, React, MongoDB, Node js, etc.
The interviewer proceeds to... kinda berate me? As if I wasn’t studying hard enough? It was surreal. He said that colleges aren’t hard enough on students these days, among other things.
Turns out, this “developer” was always a fucking fraud. His startup utterly crashed and burned, and he’s gone on to start a couple more disastrous startups, each time with a bigger lie for his investors.
Moral of the story: none, idc. Thanks for reading!5
Arrived today, hyped!
I have real-world experience with MongoDB, MySQL, Firebase, and caching with Redis.
A colleague in ops recommended this book a while back and I thought I'd give it a whirl to better understand what other options I have available.9
Client reads about MomgoDB ransomware attacks online.
Him: I heard that the MongoDB is not secure, we should use something else in our system.
Me: Those databases got attacked because security features were turned off. If you want you can have an external security team to test the system when it's done.
Him: I don't wana take any risk, so I we should use something else.
We have been working on this system for almost a year and the final stage was supposed to be delivered in a month.
He wants me to replace it with MySQL12
I think I will ship a free open-source messenger with end-to-end encryption soon.
With zero maintenance cost, it’ll be awesome to watch it grow and become popular or remain unknown and become an everlasting portfolio project.
So I created Heroku account with free NodeJS dyno ($0/mo), set up UptimeRobot for it to not fall asleep ($0/mo), plugged in MongoDB (around 700mb for free) and Redis for api rate limiting (30 mb of ram for free, enough if I’m going to purge the whole database each three seconds, and there’ll be only api hit counters), set up GitHub auto deployment.
So, backend will be in nodejs, cryptico will manage private/public keys stuff, express will be responsible for api, I also decided to plug in Helmet and Sqreen, just to be sure.
Actual data will be stored in mongo, rate limit counters – in redis.
Frontend will probably be implemented in React, hosted for free at GitHub pages. I also can attach a custom domain there, let’s see if I can attach it to Freenom garbage.
So, here we go, starting up modern nosql-nodejs-react application completely for free.
If it blasts off, I’m moving to Clojure + Cassandra for backend.
And the last thing. It’ll be end-to-end encrypted. That means if it blasts off, it will probably attract evil russian government. They’ll want me to give him keys. It’ll be impossible, you know. But they doesn’t accept that answer. So if I accidentally stop posting there, please tell my girl that I love her and I’m probably dead or captured27
At 4pm, after 6 hours of work of migrating from mysql to mongodb...
I am drinking coffee with my team.
Boss, comes from somewhere and asks...
what do you all want? (What he meant was, go back to work you all)
One of my team member- (angry and agitated) says-- a comfortable sofa.
Holy fuck, i laughed my ass out.
Guess what happend next...23
Made a simple college project using Node.Js, MongoDB, React... Wrote everything from scratch, starting from HTML to CSS and Routes even OAuth. No template was used.. Guess what teacher said...
She said I love the second project made using wordpress template because, "It looks amazing and beautiful"
One of the reasons why I hate college...11
I work with a couple of "developers" (and I use that word lightly) who are starting up their own freelance dev company on the side. On their website, they say that they're "Experts in Mongo and Node."
I just overheard this conversation between them:
"I dunno, maybe"
...they're "experts" in Mongo and Node, but they don't know that Mongo interaction is implemented into Node through an npm install
Ladies and gentlemen, be sure to hire these guys for all of your Mongo and Node development needs!5
Boss wants to scale our webservers because it seems they're having performance/capacity issues....
I'VE BEEN TELLING HIM FOR WEEKS IT'S NOT THE SERVERS!!! IT'S THE FACT THAT EVERY SINGLE QUERY HITS A SINGLE MONGODB... AND NO CACHE EITHER... AND THE DB CANT BE ENTIRELY LOADED INTO MEMORY AS ITS TOO BIG FOR RAM ON A SINGLE SERVER...
HOW THE FUCK CAN YOU SCALE IF EVERYTHING HAS A DEPENDENCY ON 1 NON-DISTRIBUTED DATABASE?6
„I have secured our mongodb by setting the dbpath deeper than 20 folders by using more than 256 chars. To protect us from windows hacker boys.“
That moment when the practical work supervisor don't understand why you don't use netbeans because he thinks that MongoDB is a netbeans plugin.2
Wrote angular service, named it "MongoService", handles calls/requests to mongodb. Spent an hour wondering why it wasn't running one of my functions from controller. Just realized I am calling MangoService instead of Mongo. Lord help me.2
i am obsessed with MongoDB:
police officer: "can I see your ID?"
me: "sure, it's ObjectId('ade638bcf730')"
Friend: Hey, so what do you do?
Me: I build backend systems and apis. I work with java/mongodb. I dable into some elixir and kotlin on my free time.
Friend: Cool, can you build me an Android app?11
After nine months of work, my capstone project is finally coming together.
It's an audio server written in Node.JS and MongoDB. I can run it on a pi plugged into a stereo and remote control it from my phone via the web server.10
Usually I develop in python, mongo, cordova and node. Few days back I installed Windows on my laptop cause I needed to use the Visual Studio for a specific task. Then I thought that if I can setup the python, mongo, cordova and node stack on Windows then I don't need to switch between Linux and Windows frequently. And that was a horrible decision.
It took almost 8-10 hours to setup that shit, and still I couldn't make it work. There are so much complexities and those do not make any fucking sense! I mean why the hell I need to add the python path to the environment variables, and then again add the pip path separately. Then mongodb can not autostart. And finally I needed to make and build a package, and that waa the moment when I just scrapped it.
It takes me 2-3 hours to setup a fresh Linux box (which supports apt) including the OS installation. Same for the osX. I still wonder that why Microsoft does this! If Windows is for non-dev and non-tech people then why don't they release a Windows developer edition? Developing anything except ASP.NET and Java in Windows is a fucking nightmare for me!11
That feeling when you try to get entries from a mongodb and it doesn't put out anything, not even errors and after 4 FUCKING HOURS trying, googling and looking around on stackoverflow, you realize THAT THE PROGRAMM DIDN'T EVEN CONNECT TO THE DATABASE
That's the stupidest problem I ever had IN MY ENTIRE FUCKING LIFE
Thanks devRant, I feel better now.4
Might be nothing for others, but I finally published my Vue website with the following setup:
1. Vue inside docker
2. Nodejs API inside docker
3. MongoDB inside docker
4. Nginx as reverse proxy
5. Let's Encrypt
6. NO I WILL NOT SHARE THE LINK, don't want to be hacked lol and it is for personal use only.
But I'd love to thank devRant members who have helped me reach this point, two months ago I was a complete noob in Vue and a beginner in NodeJs services, now I have my own todo website customized for my needs.
Thank you :)27
So last semester, my college made a class compulsory to attend.
We were taught, "How to install MongoDB on Windows"...
With screenshots, not even live installation.
I wanted to die.. So much.. 😖4
Starting a new project, and have been considering using mongodb to drive the back end.
Result? Fuck MongoDB, and Fuck this stupid "brogrammer" trend to use all things cool.
MongoDB is an absolute joke, except it isn't funny!
Some years ago, we used it for a large scale enterprise application. Never run it before that, and figured it was worth a shot.
The result was data loss. LOTS of data loss. Periodically, submissions would just silently fail and we'd lose records at a rate of 1 every 20,000 submissions.
Fortunately, as we didn't know how it would fair, we added an MsSQL fallback which duplicated the data. We could see the extent of it from that, and saw how bad it was. Don't trust MongoDB - it's not changed, it's not improved, and it never will!
I'm going to fall back to what I know I can trust - java, spring, and tomcat.
Handle deps with maven, build it once, deploy a .war file, and there's the app.
Build a rest api using maven, and plug it into a real database (mysql possibly, postgres most likely).
Might use an ORM, probably won't bother - I'd rather craft the SQL manually and then I know what its actually doing in the background.
This desperate desire to get away from SQL is driving two trends in programming which are concerning and crippling. ORM and NoSQL DBs.
SQL is the best way to form a data query, bar none. It's the reason why ORM solutions use it in the background.
NoSQL databases are too immature to trust with anything serious, and there is no ORM platform which can provide the right balance of flexibility and reliability to replace SQL in all instances.
Just learn SQL, learn to structure a DB and learn to normalise to 4nf AT LEAST!13
I once found a MongoDB cluster open to the internet with no authentication with nearly a terabyte of data that backed a CRM service whose customers included Microsoft and Adobe to name a few.7
So I'm playing around with Node late at night and decide to make something of it. Made a real-time 2-way communication system with NodeJS, Express and Socket.io. The UI currently looks cheap, but it's clean. Open multiple tabs to see it in action.
You can also send private messages by typing /p username message. I could add authentication here and also connect it to MongoDB.
Any other ideas or reviews? Also any other ideas for Node projects? Thank you.
Try it out here: https://node--chat-io.herokuapp.com4
What would you answer if your IT support asks: "What do you use to connect to MongoDB, Internet Explorer or Chrome?"8
Made my first Node.js Todo list today! Got myself a new front end design tool, Bootstrap Studio (50% off). Learned about REST, using Node as an API and MongoDB and Angular! Had a lot of fun learning and I would recommend it to anyone that's a Node.js beginner. I want to do a video tutorial series on Node.js, is that a good idea?11
Using mongodb for one product
A colleague as experimenting with elastic search (I think it was).
It installed a proxy around the collection to get all events for the external search storage.
Worked well, but it was just a test so once done we removed it
But thats where it got scary.
When we removed the proxy through the search dashboard it dropped the underlying collection of live data!!!
A collection it did not create.
Hows that for bad UI.
Always experiment on a separate db server.
I am turning 16 in 3 months and I want to start freelancing then. I want to earn money and get some experience .
I will still go to school until I have my a levels so I can go to university later.
Do you have any advice for an absolute freelancing beginner? I will probably make websites with HTML and CSS (of course, what the hell else) and react. Nodejs and mongodb for the Backend.
What should I do in these 3 months to prepare myself?
I want to build a portfolio website and learn more about node, especially how to do safe authentication in these 3 months, anything else? Also which websites would you recommend me?30
Okay karma, why?!
I made some backup scripts, it should dump our MongoDB every 30 Minutes... Nope I didn't test if there's something in the tar and yes it's my fault but now we needed this backup AND THE ONLY BACKUP SCRIPT WHICH DIDN'T WORK WAS THE ONE WHICH BACKUPS THE DATABASE...
Least favorite enterprise software: MongoDB...
"Ensure all writes" is still a suggestion that sometimes works.8
Create a Frontend for production MongoDB Database and integrate it with the production version of website. Also, Don't put a password just make it accessible via a route that no one is going to figure out.1
JSON: "Ok fine you can use our syntax and everything else but make sure you change the name of the format so people know there is a difference"
MongoDB : "K"3
Started to learn nodejs REST, with mongodb, either the service is too light (still only has login) or mongodb is too fast, I've never seen that speed in fetching a single user with 6 properties in its json response, it takes 15ms on my laptop when a dot net core service + MySQL takes at least 70ms9
I just feel so worthless and useless in life 😫 Currently I'm a student in high school and because of my mental health I'm on long term medical leave. Yesterday I decided to go back to school because I am in charge of a training programme (in my country all students must have an after-school activity, like being in Infocomm Club or Track and Fields, etc.). The training I am in charge of was a competition training, and two guys decided to come late because one had lessons and the other has to meet his teacher. Got grilled by my teacher in charge because that last guy "decided that meeting teacher is more important than competition training", and that "if one guy cannot put his heart and mind into the competition, he should be removed". Needless to say I feel real bad.
So I usually stay at home and avoid school. Not that school is bad, just that the academics stresses me out a lot, and that if I'm in school I may screw things up like above. To try and get my mind off things I code. Sometimes it does succeed in making me a little bit happier, when I get something to work, but other times I will feel even more crap when I don't understand something. Recently I started trying to learn Express and MongoDB, and it's just. so. hard. Maybe it's just me man idk.
I don't even know why I feel sad everyday. Like maybe because I caused myself to be sad, and hence I am the one responsible for my feelings. So in a sense, I deserved to feel sad since I landed myself to this position. I don't deserve this life. And myself. Life is so hard to deal with.7
What To Learn?
I was mentoring a group of students and helping them with their graduation project. I taught them NodeJS, MongoDB & few other things.
One time, one of them came to show me her code, and it has the weirdest and most bizarre structure ever!
I asked her, “who told you to structure your code like that? This is wrong! I didn’t teach you this way!”.
She replies: “<<a local shitty tech startup name>>’s CTO”
When I searched about him, he’s a civil engineer who founded a startup and assigned himself as CTO with no technical background or knowledge whatsoever! FFS students believe that he’s a real CTO and started learning from him 😑 His code was so bad in every way that a fresh would write a better code!5
What do you think about keystoneJS CMS? I am building a website and it must be done in a very short period of time. Oh yh im building it with MERN stack so I found keystoneJS and i kinda like it and its also built with Nodejs and MongoDB so what do you think about it? Or what do you suggest as an alternative to build a CMS quickly?
When you migrate from PHP 5.6 to PHP 7, if you use MongoDB, be careful, the driver is not the same ! So you have to rewrite your implementation !1
A great and very common web attack is known as 'SQL injection'.
So if I am using MongoDB, does that become 'NoSQL injection'?1
MongoDB really needs to chill the fuck out with their email marketing, daily emails plus frequent harassment from sales reps wanting to know why I downloaded their software is getting on my tits now.
Anybody would think I'm the first person that's ever installed the bloody thing.
Whenever I add an address to spam or unsubscribe it just seems like the origin address changes, having to rely on client side filtering, yayyy7
After having my soul suck away by "corporate", I installed VS code on my Windows 10 gaming machine.
Now, I have a pretty hardcore dev setup on my MacOS (it's unix-based and it's good, so stop the hate). I'm talking about fully automatized Rakefile that will provision it from scratch: vim, macvim, tmux, iterm configs, 15+ brew tools, 15+ brew-cask tools, themes, plugins, etc.
Installing VS Code, Node and MongoDB on Windows, just for the fun and giggles, and not having any of my hardcore tools, made me feel like... it's something silly and fun again. I'm once again that softcore developer with no stress and no constant self-reminder to improve workflow effectiveness.
Made me a little happy.
Checkout this picture, this is my Windows 10's "tmux" lol3
Fucking mongodb... the name is really fitting "mongol db"..
I get that a NoSQL db can be very useful but holy crap mongodb is shit..
Even better is the security.. holy shit it's insecure..
"Just use the configuration to only allow 127.0.0.1" stfu that shit apparently doesn't work on fucking centos..
And yes my customer did get hacked
And yes they did blame me
And yes I did have a backup5
I - Lets move your database to mlab. They offer 512mb database for free, every month. That is beyond your lifetime usage
Client - No. They Steal Data ( Like Facebook )
And client don't know a shit about mlab and development. Aware of quite a few names, bigrock, godaddy, bluehost. Even AWS is not in the list
- mlab is mongodb database service4
I had a ticket to enhance the loading of a page.
So instead of doing 40K requests to a MySQL DB in order to generate a tree and display it to to the user on each page visit, the initial query was optimized and moreover, the results are saved in a MongoDB which will then are served to the user on each page visit.
Long story short, after a code review the code got shipped to production and there was a bug which got fixed in a Hotfix shortly afterwards.
I got all the blame for the bug.
I don't deny I have a responsibility for the bug.
Do you guys think the code reviewer also has a shared responsibility for the bug?4
It's been a year since I first entered the world of development.
Let's see what I have accomplished so far:
Java, J2EE, Node.js, Python, Django, Android, Angular, html/css, Rxjs, RxJava, Linux, MySQL, Mongodb, Docker, Heroku, AWS
Still working in IT security goddammit.
Fucking hell. Why am I so good at learning but shit at working?6
SSHd to a vultr server, downloaded MongoDB docker (approx 170MB) download and extracting 70% of the image was done faster than me navigating from devRan notifs page, to devRant feed page, I need a new internet plan T_T1
Thanks MongoDB for introducing transactions (ACID) in 4.0 version ... This is really going to help a lot.1
Me: Put the prototype application on a VPS and tell the boss about it so he can follow development along.
I began an internship school year for the same company, continuing my previous mission. School year begin, I'm not actively working on the application.
I begin an application with a friend and we need a server so we use the same VPS. We somehow reinstall it from centos to ubuntu because he doesn't have the time to learn a new system.
I don't bother putting the company's prototype up and running back as it's not even in beta testing.
Some week passes I'm still in class and haven't got back at the company yet, and then I receive a message:
Sub-Boss: "Hey, the boss is presenting the app to the big boss, why doesn't it work ?"
Internal-me: "WHAT THE FUCK ?!?!! The big boss ?! The one who leads 160,000 employees ?!!?? Ok, I'm dead...."
Me: "Ok, I leave my class and see what I can do."
Sub-Boss: "Thanks, you have 15min."
Teacher: "Everything's fine ?"
Me: "Not at all, can I get out for 15mins ?"
I get out and open my laptop, fire up ssh.
The app is not dockerized yet, so I had to reinstall everything. I somehow managed to install nginx, node, mongodb, etc... Launch the application, open up the port for it to work, realize nginx config is wrong, correct it, git clone the client, launch the build and deploy process that, thanks God, I wrote down as a shell script;
All that under the 15mins, my brain was literally melting.
Me: "The app is up and running again."
I got back in class, and slept on my table... The teacher even asked if I was sure to come back when he saw my face.
I hate my boss.2
And i mean with all the full stack services and all the shit we need to know by heart
node + redis + rails + django + scss + grunt + npm + postgres + mongodb + npm + angular + react + all that shit and moreeeee
And then make comments like "heh thats html it what i was doing when i was 12"
Installed mongodb on ubuntu 18.04 (localmachine)
1. Installation finished
2. Its working fine
3. WHERE THE FUCK ITS INSTALLED? I CANT FIND ANY FILE RELATED TO IT!!!!8
It's going to be a long rant here and probably my fist rant ! And yes I am pissed up with a community growing in dev world .
There are so called framework experts who are so good that they can spin up a nodejs server with express and mongodb .
So to the people who bash on php , who bash down MySQL for no fuckig reason other than they have heard these are not so cool.fuck yourself incompetent piece of crap!!! I can hear all day about how algorithms and datsructure are not important form these people.fuck you because if you don't know /understand /want to understand the basics of computing how the fuck can your brain be trusted with anyting serious??If you can't write down proofs of basic / standard algorithms and till bash down on people who do those please fuck you because those are the people indirectly responsible for your Job so that u can work on fancy frameworks and cool IDE's .
Instead of whining down dedicate some time to your maturity and knowledge because that what we devs are all about.we like solving problems right?.
I repeat if you are anything like stating up it career in mid 20s maybe.leave everything if you can .Forget all fucking frameworks and technologies start with basics of computing, right at instruction level using assembly .Then move to a higher language when u know and reason about what your CPU is actually doing.
If you can't do that and keep on crying and bashing down things wihout proper explanations fuck yourself with a cactus .5
Definitely when my boss got me super hyped up that we were gonna start using MongoDB/node.js/angular or react, I spent hours learning the languages.
Then he comes up to me a few weeks later and decides to “pivot”
I wanted to cry. Back to coldfusion2
Today I tried to make an asp.net app and publish it to iis all without the help of Visual Studio. This is teribly difficult!
Then I had a great idea for website to store my .ppt and .doc files (and other school shit) with mongodb and tried node.js as backend. Holy shit did I really host everything all in 10 lines of js!?!?!!! Comment some great tutorials.
I'm in the first semester at my third college, working on my B.S. degree. I get a job in the finance and operations IT department doing web development. I get to use lots of tech I've never used before, like Python Flask, Docker, Redis, Azure, Slack, Microsoft VSTS, Portainer, MongoDB, Oracle database (weeeeeeeeeeee), and who knows what else awaits me. It took a week to get me access permissions to various systems but that's fine. I expected that.
* It's the first time I've ever touched Docker. I manage to break it so badly (somehow) that I BSOD my Win10 machine. Everyone in the office congratulates me on such a feat.
* I get assigned to an internal app management site to not only patch because it's currently broken but also improve. Coming from a PHP background, I've seen some nasty code. What I didn't expect was the same exact same anti-patterns and coding "practices" (examples: everything in a single file, all forms on a page POSTing back to itself for submission, sloppy, mostly uncommented, densely packed code) in a Python Flask project. I was told it was thrown together quickly by a previous employee who made this as his first Flask app, but this was not what I envisioned.
It's as if everything I do in my career is to prepare me to untangle the next monster code base I come across. I feel like the universe is mocking me.
That's cool. Bring it on. I'm ready. I'm enjoying this job anyway. 😎3
My first rant. Woohoo!
Honestly I do the whole shebang ussualy depending on what the needs are from network to servers to coding because for some reason nobody has any technical experience where I work.
I just started app development for a gamedev startup and I am in sheer awe of the amount of transpiling/compiling etc that needs to be done for an multiplatform app for iOS and android with js(x)/typescript, html, css.
I remember when I could just write some spaghetti code to make it working by following a couple of tutorials. Then refractoring and testing it for a couple of hours and be done with it. push it into production.
Now I am lost having to learn OOP, functional programming, reactjs, react native, express, webpack, mongodb, babel, and the list goes on and on...
Why not just make a new backend that does all of that in another language which supports all of that.
I have no formal education in programming/coding and the last time I learned JS it was just some if else, switches and simple dom manipulation.
I just want to get to coding a freakin' game but I have to learn JSX for the front and typescript on the backend.
I am this close to going back to ye ol' lamp stack and quitting this job. 😥5
What cloud service does DevRant use?
Aws Or Azure?
And how much do you pay a month for maintenance costs?
What tables to store data? MongoDB, dynamoDB, oracle?
Or S3 streams?
What are your experiences with vps services. I'm looking for vpss to run a mail server setup(like @Linux has) 2-3 web servers,mongoDB instances,a gitlab server and a backup solution.
Which vps services would you recommend/have had good experiences with, so far?18
You guys heard of the MEAN Stack?
I'm currently learning it...
It is basically the combination of MongoDB, Express.js, AngularJS and Node.js7
After 4 - 5 months of learning webD, I am trying to build my first fullstack web application (simple chat one ).
My stack :
Vue.js + Materialize
Express ( handling routes )
Mongoose/MongoDB ( Database )
Socket.io ( web sockets for real time connection )
Had dreamt of this 2 months ago where I built a basic front end using html and css, and now porting it to Vue is like a breeze.
Wish me luck and let's hope it doesnot become one of the unfinished projects. ( My university semester exams are coming up , would have to complete this as fast as possible ). I am also learning DSA + STL and aim to learn basic python syntax before holidays so that I can focus my time on ML during them. It's so fucking overloaded that I have my doubts ::((4
Any other IT company is like:
* Task -> Designer -> Markup coder -> Backend -> Finish
Our IT company:
Act I: "Art of setting up contact with idiots".
*Cave scripts (aka "typical task")
Designer: -- "DAFUQ?"
Customer: *gives another interpretation*
Designer: -- "Erm... really? White text on white background?"
Customer: -- "Make a decision by yourself. I was expecting much more independence from you. You are an expert after all."
Designer: -- "Well. I'm making decision by myself. The text will be placed *here* and will be gray-colored, because *bla-bla-bla*"
Customer: -- "I disagree."
Designer: *1 hour of silence later* -- "Well...k."
Act II: "Design meets ar(u)tist"
*Something, that was drawn by dumb kid while smashing his own head against desk. (PSD layout)
* Salt (to pour it on open wounds)
Designer: -- "I'm seeing this task *this way*"
Markup: -- "And how do u think i should get this done? Have you even seen what you made?? This is bullshit!"
Designer: -- "It's not bullshit! It's a sci-fi themed layout!"
Markup: -- "With gameplay elements and graphics from Alien Shooter??"
Designer: -- "Well, I don't care." *brings new edits and changes*
Markup: -- "????"
Designer: *smug face* -- "!!!"
Act III (7 days later, 9 hours till deadline): "Short story about boy, who was trying to hang himself, but instead fell out from window."
*Markup, smelling like it went through hell and back (x1)
* Markup coder with fried butt (x1)
Backend: -- "What. Is. THAT?"
Markup: -- "It's a work we should complete in 9 hours."
Backend: -- "WE?? I know u mean me, but that's a nightmare. What the f*ck were you doing all this time?"
Markup: -- "Well..." *finds out that he was only watching films and sleeping* "I was making this thing up..."
Backend: -- "You mean "f*cking" *this* thing "up"?"
Markup: -- "Not without it"
(*3 hours of edits and changes of color from white to white later*)
Backend: -- "Well, let's do this."
*Picks PHP and tries to bundle it up with MongoDB. After some time tries to rewrite everything to JS and starts shouting something like "F***CK" and looking for window to walk through. Figures out that he is on first floor. And that he is too lazy to go upstairs*
Act IV (3 days after deadline): "Pain and misery":
*Something covered with insul(t)ating tape. (Final product)
Customer: -- "Really?"
Team: -- "Kinda."
Customer: -- "Well, thanks for your work anyway. It feels like it's going to disassemble right in my hands but it just works. Oh, also, you didnt made this in time, so your payment will be over9000 times lower. That's all"
Backend, on fluids: -- "Well...yeah..."
Markup: -- "Don't look at me like that. I really was doing my job."
Designer, with twitching eye: -- "Huh, I see. You worked so hard that we have nothing to eat now. Thanks for that."
What certifications do you guys have, and which do you recommend having?
I'm currently pursuing AWS Developer Assosiate, and in the future Google certified Android developer and MongoDB developer.
Been thinking about Docker but it costs too much15
Clients wanted a simple backend to be deployed specifically on Apache. Used PHP. Spoke to them and they were fine with PHP .... Until I delivered the application. Told me how bad a developer I am to not use the MEAN stack. Didn't even pay.3
How do you folks handle your pagination at backend?
I was initially using skip and limit. But that is prone to error.
Then I thought about using last sent items id and using its created_at time and fetching rows/documents after that. But that too is prone to error ( more than one can have same timestamp) hence either having data repeats or data That gets missed.
What is your goto strategy for pagination?8
I remember back then when we were building an E-commerce website. To maintain good performance the boss insisted using flat table. This was also applied to other projects like GPS. That was already 2013 when NoSQL databases like MongoDB was around already. His concern is he didn't like to risk on new technologies and it would cost money for training instead of using the existing "MySQL" and Microsoft SQL Server.
Everything I learned from that guy was just poop.
Has anyone here used MongoDB for relational databases? I am trying to use MySQL with Node but I feel like the whole thing is a mess. There are some ORMs like Knex or Sequelize for MySQL but they are pretty crap. I am thinking if I should just move onto MongoDB instead of MySQL, at the same time I feel a little dirty to store relational data in a document store :(18
In my university web development class, we used node as a web server to server up web pages and also handlebars for creating the model view controller and mongodb. It was really fun and I enjoyed it. I wanted to know if using all these together like that is best practices or something I could do for professional web development. Thanks!2
Soooo, i think i need to finally install some normal server os on my "server". So currently my server is runing off external hdd with kali linux installed on it (thumbs up for kali, it had apache preinstalled :) ). So ya... I think all of u agree that thats not a proper setup....
1. Debian based
2. Low on bullshit
Preferably has preinstalled: (but i can install it myself)
3. Email server
Took a day off and came back to find my team and I were moved from frontend to backend (which I always wanted to be).
Manager says we get to learn Java, Mongodb and even Hadoop.
I am so so excited.
But the only little hold back is, there is limited support for Java in sublime text and I should instead use eclipse. I had dozens of shortcuts customised with all those beautiful themes in sublime, but eclipse takes the fun out of coding(no offense to eclipse lovers).5
So... We're going to totally rewrite one of our web applications at work. It's currently written using the .NET framework, and we're moving to Node.js instead. For me, that's absolutely wonderful! Outside work I practically only work with Node, so I'm happy. There is just one thing that's bothering me. My colleague wants to use MySQL for the database. Even worse is that he's the one deciding, since I started working there just a couple of weeks ago.
Now, I really, really want to use Mongodb. It integrates so wonderfully with Node together with Mongoose, and just the thought of using JSON everywhere makes my body shiver of satisfaction.
So therefore I have two questions.
A. Would you prefer Mongodb over MySQL for a node application?
B. How the hell can I convince him to use Mongodb?!
Creating a simple application to keep track of changes in api and inform the subscribers about changes.
Stack - Vue.js (quasar), nodejs, mongoDb3
When it comes to choosing a database, What is the best for a Java project?
1.SQL - MySQL
Probably that one time we lost to a shitty app that was of no use to the community and literally scammed the opinion of the jury.
Their concept was a webapp that would suggest a room to study to a student on our campus. It was called "is it free/vacant" but should've been called "is it open" since there is no way of knowing how many seats are occupied, etc.
The jury was amazed, the app was worthless, literally 15 minutes of coding, presentation had a shit ton of buzz words like "were using mongodb to store the classrooms", was just fucking horrible
On the same competition a guy tried to enter his company that was developing the Facebook page managing app for Windows phone, already having a working app and making revenue from it for at least a year lol
We still got second place, but it was a really disappointing second place, shit was rigged yo1
I'm not a beefy dude, But I consider myself as a terminator 🔫 because when I find a BUG I fucking console log the shit out of it !
I'm currently doing project in Java using JavaFX for GUI and after like 6 months I found out we can bind textfields to variables(yea,dumb me) and I got more than 20 forms so of course, binding is useful than that getText method. So I think there are many things like this which will help me to optimize my code but I dont know, so can anyone tell me more stuff like this?
I'm using MongoDb so I'm currently finding easiest way to make Bson document from textfield values. Any suggestions?
(Sorry, for my bad English)1
I picked a module of my nodejs app which uses MongoDB to pieces until I had no more idea what could be wrong. It should work. There could be nothing wrong. Then I thought: "What if I try to find() from the wrong collection?" Yes. Fucking YES! I've lost about 2 hours of my life because I've written the collection name in singular rather then plural. Just a fucking single character. Just a fucking "s"! Why don't you output an error? Why? Fuck you! Why don't you do that?1
Me : After learning js,nodejs,marcojs,mongodb,bootstrap,c#,asp.net,fcking php,java and Python from internet cause college SUCKs and finished(A bad dream),
Where is fcking local good job from which I can pay all things on my own(though i didn't gone anywhere for interview).
My friend told who is going in one local company told all local company likes to suck blood from junior developer like paying them 100$ per month while training for 3-4 months and legal bond of year paying fixed amount 150-200$/pm WTF even security guard are getting more salary.
Me : learning fcking new stuff(vue,react and whatever) from FCC, udacity and internet and building project to make profile stronger(1-2 months) then to get 100$ pm and will looking for remote job 🤒.
Am I Doing right thing ???7
I built a webinterface a few months ago. it was based on the php framework laravel. but i want to change to nodejs in combination with mongodb.
do you know good nodejs mvc frameworks similar to laravel?3
Stackoverflow is great but sometimes I want to ask 'bad' questions. Questions that cannot be answered. I just want to see opinions no matter how biased. Maybe this is the place? Or is there somewhere else?
btw anyone know if there is any is a decent free ui for mongoDB that works with Atlas?2
Can we just agree that mongodb is shit and we all would just be happy without it?
Its the example of all things that should not exist.3
- Continue learning Node.js, Express, MongoDB (I just need to learn mongoose now, then I can start making bigger projects).
- Learn PHP and start making freelance work;
- Continue getting good grades at uni;
- Workout more often (like 4 times per week);
- MAKE MONEY!!!
Edit: Happy 2018!!!
So I've one project based on fingerprint scanner where the scanner came with sdk for c# and other language libraries.
So basically the user punches for login and logout I'm storing timestamp based on that to MongoDB. Now the only concern is when the user punches, it doesn't give any response like sound or light for telling it's accepted or not.
For that I've to do something so my guess was
But, it's for library and they don't want sound. And my scanner don't have any extra light for that.
Anyone got any suggestion or cool idea?
(I'm using Nitgen Fingkey Hamster I DX HFDU06)4
Just spent all morning adding my own user account to my local MongoDB because some network security guy found I was running an unprotected server on my PC....
I tried all the admin roles to get full access across all databases I have but none worked....
Until I see one at the bottom of the official documentation:
Rails, React, React-Native, Docker, Kubernetes, Openstack, Jenkins, AWS, Microservices, Realm, MongoDB, PostgresQL, GraphQL (list goes on...), and I'm not even done yet.
6 months was spent learning all of the above because I found a Rails-only monolith on Heroku unsettling. My first batch of containers was just deployed and I couldn't be happier. Love my job.3
A simple app, just proceed with the coding. it doesn't matter whether it's mysql or mongo. Get the shit done guys!3
I've been creating a new website layout for a small theatre group. I am like how it's coming together :)
It is designed with user interaction in mind because the layout they are using now is... Well, thrown together. It uses images as buttons and I had a few friends of mine ask "Where do I get tickets" and it is not updated regularly.
I plan to automate a few things like for shows, if the show date has passed, it will remove itself from the home page. I also plan to web scrape, if the site permits, some information to be displayed on the show page.
I got to lots to do before I can show them what I've made.3
As an Angular developer, i am thinking switching to React, major companies and websites are using it
Facebook,Twitter Instagram,Dropbox,Aws,New outlook,mongodb cloud, Amazon drive,Udemy, ....
Gcloud, not many more
Is the switch advisable?7
Full stack developer?! Which one is hard front end or back end? I'm talking about MEAN other than mongodb!5
So I accidentally used an email as a username to create an account through Jira for mongodb to report a bug.. That apparently breaks the entire Jira login system. I cant recover my account, and I can't create another account because my email is already in use.. Thanks Jira for deciding I'm going to bar before I go home today...9
just receive a refurbished 4 years old laptop.... then deep clean it.... now having dilemma on picking a distro......
mainly use to run data analysis (r, Python, Java, C++, mySQL, MongoDB and some cloud servers...)
my thinking about a good distro to me, comfortable appearances, customize freedom, community support and constant security update.
any suggestion people??6
Just dumped one month's GitHub public data or my local machine. Ah boy that was too much data. About 80 GB with 30.9 million documents in mongodb. Too much for local machine. :sigh:
ANYONE USING MONGOOSE HERE?!!
TypeError: User is not a function.
That User is a Schema. I've been searching for so long now and I can't seem to find a way to make this work. Sorry for being desperate that I had to ask on devRant.6
I am building a web application which is multimedia centric (mostly video chat). Text to Speech and vice versa.
I have chosen Node with mongoDb as backend API with React Frontend.
What stack would you suggest for such an application?8
Today is bank holiday in the UK. Fucking boss slacked me to say he needs graphql n mongodb wired up by tomorrow. I almost tell him to fuck off, today is not work, bitch1
Who is doing this to me *sobs*, mongoose or MongoDB? 😥😥
I'm adding new records (array) to an embedded document, but the first record to be added gets duplicated, even with the same ID and stuff :(..
Was using Callbacks, switched to promises, still the same.
The small company I work for has FINALLY decided to start moving towards the MEAN stack, in which I was overly thrilled! However they have started to regress because "cold fusion is so much easier to write"
Which database program do you use? MySQL, MongoDB etc.
I'm using MySQL at the moment, but a lot of jobs requires MongoDB. Does anyone know why?
Though I can't get it to work on my dedicated server, giving up for now...13
I don't know what to think about this.
Postgres' jsonb on a raspberry like SBC is still much faster than mongodb on an 8 core x86.
I need advice. I'm to create a web application with an interactive map (lots of polygons to put on it, with markers and other map things) with a large amount of data and it is expected to have frequent changes to the said data. I have no idea of the tech stack to be used and the performance of the app is the biggest concern. (I'm thinking maybe to create an API, use MongoDB, then create a web client for it but I'm not that sure). Please give me your insights.7
Today I'm bringing a tool for you guys, mount servers with old phones Or have servers in your phone for testing.
Tool: Servers Ultimate Pro
Note1.: Doesn't handle well above android 6+, So test one of the free servers you're intending to use before buying.
Note2.: This App costs around 10€/$ but you can get single App servers for free (I think even html + php + mysql package for free).
Not promotional, I'm just a user that loves this App.
I already talked about this a few times (usually I just call the cell phone I'm using my web server), but as a noob I don't even knot the possibilities.
This App comes with more then 70 protocols (60+ servers and a mix of servers).
From ssh, ftp, html (nginx, lightppd, Apache, simple) with php and mysql, Webdav...
Run over 60 servers with over 70 protocols!
Now you can run a CVS, DC Hub, DHCP, UPnP, DNS, Dynamic DNS, eDonkey, Email (POP3 / SMTP), FTP Proxy, FTP, FTPS, Flash Policy, Git, Gopher, HTTP Snoop, ICAP, IRC Bot, IRC, ISCSI, Icecast, LPD, Load Balancer, MQTT, Memcached, MongoDB, MySQL, NFS, NTP, NZB Client, Napster, PHP and Lighttpd, PXE, Port Forwarder, Proxy, RTMP, Remote Control, Rsync, SMB/CIFS, SMPP, SMS, Socks, SFTP, SSH, Server Monitor, Stomp, Styx, Syslog, TFTP, Telnet, Test, Time, Torrent Client, Torrent Tracker, Trigger, UPnP Port Mapper, VNC, Wake On Lan, Web, WebDAV, WebSocket, X11 and/or XMPP server!
A question for Web developers:
I'm planing to start working on a web part of my project. Important part is that it's supposed to be working with MongoDB. The idea is to build a small digital library, so the main functionalities should be user registering, his login, querying database for books, showing list of results and viewing pdf files up to 200MB size.
Please note that this is a school project on which I'm working after my job, and not something to be deployed to customers.
just created a mongoDB/mongoose query and streamed the results.
assigned the stream to a const named "mainStream".
instead of a stream of docs as a result i only got back a string: "LOL"
Working with nested arrays in MongoDb!! Who would have thought it would be such a pain to update data in nested arrays in a database! So frustrated!!!!
Another haveibeenpowned news story, why can't people set a password on their mongodb instance? Is it that hard or different from other databases?3
i feel its a great time to be a developer we have so many toys to play with
machine learning, scientific python, nodejs, frontend js frameworks, nosql, NLP, elasticsearch, mongodb, open source .net, big data with java, arduino..., VR, 3d printing
what toys are you playing with?
Hi! I've Been Watching a Tutorial series on How to make Amazon clone by nodejs,mongodb. He used Faker Api to insert Product but I tried to make a seperate Layout to insert product but using Async but it keeps saying "Cannot read Property '_id' of undefined.12
This week, I worked on my side project. The basic idea of this project is to let everyone build software components in their favorite programming language without any need to learn any complicated protocols (such as CORBA or whatever).
It already worked good enough for some stand alone cases, but recently, I build a web app based on it.
So far, I write the code by myself. But I guess the project won't be as good as what it is right now without any help from everyone. Some fellow developers in real life and in devRant (especially @plugsut) really help me in order to write a better code. And I'm grateful for that.
Below is the specs of my project:
* Repository: https://github.com/goFrendiAsgard/...
* npm: https://npmjs.com/package/...
CREATING BOILER PLATE:
* Install Chimera-Framework (`npm install --global chimera-framework`)
* Create web project (`chimera-init-web <your-project-name>`)
RUN THE SERVER
* `npm start`
* `npm test`
* Database: MongoDB
* Supported Programming Language: CHIML + virtually any programming language.
* JWT Authentication: Fully tested.
* REST API with Whitehouse API standard (https://github.com/WhiteHouse/...): Fully tested.
* Total request performed for testing: 27
* Total assertion: 92
* Total testing time: 7 seconds
* Average response time: 217 miliseconds
* Write documentation for fellow developers
* Create GUI for mere mortals
Do any of you ever try to create two instance of monk manager and apply different set of middleware on them?
I have a hypothesis regarding to `why it doesn't work`, but I can't find any solution.
I post the more detail question in stackoverflow (https://stackoverflow.com/questions...)
I will be happy if any of you can give any solution or any statement/question that can lead to the solution.
Thanks in advance2
Guys, I need some advice. I finally got a customer, and I'm trying to convince them to let me add SSL encryption, but they don't want the extra costs involved, that hosting providers tend to charge.
I don't really know of many hosting providers, as I run my own server, so I was wondering if people could recommend anyone that can let me run a nodejs backend, using mongodb?8
Hey guys, could anyone tell me what's needed to become a proper Angular developer(like full-stack)? I know MongoDB, Postgres and all of the frontend stuff(HTML5, CSS, etc), plus Spring and Hibernate. Also, I use Linux, so count in Bash.
Surely there'd be other bundles of Angular besides MEAN?4
Im building an API with NancyFx (HTTP stuff) and mobgoDB (database). i had very strage errors when starting queres. and after 2 fucking days if debugging i found it!
accidentally I wrote somewhere in a custom type conversion "ObjectId" i stead of "OwnerId".
F M L
#MongoDB #NancyFx #CSharp/.Net1
How do you implement storage of chat messages server side. Assume the data structure has to fit in MongoDB and work with Mongoose. Every user has a unique ID. Application written in Node.js. Anything else is fair game.3
Using DB triggers is something bad? I have started using NoSLQ databases (CouchDB and MongoDB) and I can't find anything intuitive or native to the BD.
The worse is that I have googled it and I rarely find people asking for triggers in NoSQL databases.
What am I missing? My concepts about RDBMS blind me about NoSQL?7
People love to talk crap about MongoDB but it's not horrible for getting in to NoSql databases. Is it good for extremely important production apps? No, but nobody is saying it is.
Spent the whole day trying to get php driver for mongoDB to work.. made a php script that connects to remote db, the connection kept returning null/false no matter what i did.. in the end i uncommented a code below that fetches data with the "null" connection and suddenly I see data printed out 😐 well f you too very much 😡
Tomorrow I'll finally play with mongo 😊 i hope it won't be too much of a pain with php2
Struggling to find any good developers in London!2
Just a question about a generic social app. Using mongodb , 3 entities ,like comment and post . how do I display posts in feeds with comment count and like count . since its mongodb I can't do joins . the other way is to maintain a data structure on the server side . or yet another way would be making 2 extra queries to db for retrieving like and comments count . Any other way this is possible or is it possible to form a query in mongo db to retrieve all 3 at the same time???1
Did you know that theres no real long in php (if so, please tell me how to cast..)?
And did you know that mongodb decides what it puts into it's collection?
I have no idea how to force it to set an int64 instead of int32..5
Well, I hinted what I am doing the site I am building. I am proud on how it is coming!
Why does my database provider now have a rainbow background for their logo? My DATABASE PROVIDER !? Still better the Microsoft sequel's logo though, theirs has swastikas 😂 😂1
So, I have a problem I'm working with mongoose in nodejs and I want to make a dynamic query like I have 2 fields gender and type of room and these are optionals so what I did I wrote an if condition that if gender is not undefined a variable which is q += "gender:" + " ' " + gender + " ' " + ","; and when I pass this variable in find() it doesn't work but if i write the same query directly there in find() it works what seems to be the problem?1
Ugh trying to refactor a Node.js MUD codebase to use mongodb. It currently accesses/stores it's data in json files via synchronous FS operations. Callback and/or .then hell, here I come!
Recently created a simple nodeJS-mongodb backend for my android app. Is it bad practice to send a potentially big object with arrays to my front end ? I've been struggling implementing this alongside with an ORM because I can't store arrays in my sql ORM.4
Mother of rants ...
The AWS and MongoDB Infrastructure of Parse: Lessons Learned -
Backend developers, your thoughts on this?
"Why you should never use MongoDB"
I have some homework todo:
1.- Install & config a lemp environment for testing
1.1.- Maybe mongoDB & nodejs
2.- Install & config a gitlab server
3.- Config a local DNS