How To Disable Bell/Ding/Bing/Sound in MongoDB - mongodb

I'm using the mongo shell to try some stuff out on MongoDB, but that bell (ding, bind, sound, etc) keeps irritating me. I know how to disable it in bash and vim, but I can't find a way to disable it in the mongo shell. I can't find the answer from Googling. Maybe I'm using the wrong words. Does anyone know how to disable it?

Related

What code should I use? sys.exit() or some other thing I haven't found?

I'm a high school student in a class that is using Python 2 on Enthought Canopy Windows Edition. I often get stuck in coding loops, but the only way I can get out is by closing out all forms of open Enthought. Is there any more reliable way to do it? I've been using sys.exit(0), but it doesn't work correctly, and is leaving my coding in a jam. I can't even test it without it getting me stuck. Anyone know how to fix this issue?
If your code is already running, then you can't reliably type a command to stop it, because the prompt won't necessarily be live then.
Often you can use the Run menu's "Interrupt kernel" command, and you should usually be able to use "Restart kernel", though this doesn't work all the time.

MongoDB GUI Suggestions (MongoHub and RoboMongo)

I am a beginner to MongoDB. Using Mongo version 3.2.6. I usually use the mongo terminal from the shell. To get a deeper understanding visually I tried using a GUI but I am finding no luck in it. Initially I tried using RoboMongo, the issue is even though I get connected at 127.0.0.1:27017 I am not able to view the collection items. I also have authentication issues with both RoboMongo and MongoHub. Please suggest the best GUI for learning MongoDB
Thanks in advance
# user3632894 Thank you so much. Using the robomongo-0.9.0-rc8 fixed my problem.

Eclipse vrapper undo

I use Eclipse for programming in almost any language. I also like the vim shortcuts for quick editing so I installed vrapper.
The problem is when I write a lot of code, and I just want to undo some little things. It undos a lot of chunks of code back, instead of 2 or 3 little things.
I've found some threads which seem to resolve my issue by using "set noati", but it does nothing. It doesn't matter if I use "Ctrl+Z" or "u" from vim command mode.
Can someone please help me to resolve this issue ?
The set noati seems to be the solution for that (at least was for me and other people in vrapper forums)... simply to update to the latest version of vrapper then you either specific the set noati (no ":" here!) in the ".vrapperrc" (this config file should be placed in your home directory) or you simply run the :set noati command from Eclipse vrapper.
HTH.
Here are two things that might help you.
1) Stay out of insert mode.
The way undo works is in terms of vim commands. So if you change to insert mode and type a hundred words, that counts as a single command. On the other hand, if you press escape every once in a while to get out of insert mode, undo will behave much more pleasantly.
Once you get more familiar with vim, you will want to do less and less in a single insert. So the undo problem will likely be reduced as well.
2) Temporarily disable vrapper via the toolbar icon.
This is an alternative if you absolutely need the default undo behaviour of Eclipse.

Is there a way to run arbitrary command in MongoVUE

I was looking for a way to execute an arbitrary command in MongoVUE: db.collection.runCommand(..), but was not able to find anything.
I am using the latest (at the time of asking) version 1.6.1.0. There is nothing in the context menu as well as in the main menu:
Is there a way to achieve it? If no, are there any other suitable guis for desktop (not web-based).
P.S. I know how to perform this in mongo-shell
I've run into the same limitation with the .distinct() command. It is not currently possible in MongoVUE to do anything aside from .find/.aggregate/.mapreduce. You're best off running commands out of the Mongo Shell.

How come when I push "up" on MongoDB's console, it doesn't cycle through my previous command?

Instead, it displays this:
^[[A^[[A
update to mongo 1.6+
http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
(via http://groups.google.com/group/mongodb-user/browse_thread/thread/8611c444fdfe2fe0?pli=1)
It will be better if you post this question on MongoDb's mailing list with little more explanation that after which command you face this problem because this is not the normal behavior.
Here is a link that may be of some use, though I have not yet gotten it to work:
http://www.mongodbadmin.com/node/149
This seems to assume you are installing mongo from source.
You don't have readline installed, so the mongo shell falls back to a simple mode without history navigation using the arrow keys.