MongoDb shuts down with Code 100

MongoDB needs a folder to store the database. Create a C:\data\db\ directory: and then start MongoDB: Sometimes C:\data\db folder already exists due to previous installation. So if for this reason mongod.exe does not work, you may delete all the contents from C:\data\db folder and execute mongod.exeagain.

How can I Remove .DS_Store files from a Git repository?

Remove existing files from the repository: Add this line: to the file .gitignore, which can be found at the top level of your repository (or create the file if it isn’t there already). You can do this easily with this command in the top directory: Then commit the file to the repo:

How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?

Start debugging, as soon as you’ve arrived at a breakpoint or used Debug > Break All, use Debug > Windows > Modules. You’ll see a list of all the assemblies that are loaded into the process. Locate the one you want to get debug info for. Right-click it and select Symbol Load Information. You’ll get a dialog … Read more

Resource interpreted as stylesheet but transferred with MIME type text/html (seems not related with web server)

i’d like to start by understanding the problem Browsers make HTTP requests to servers. The server then makes an HTTP response. Both requests and responses consist of a bunch of headers and a (sometimes optional) body with some content in it. If there is a body, then one of the headers is the Content-Type which describes what … Read more

error: use of deleted function

The error message clearly says that the default constructor has been deleted implicitly. It even says why: the class contains a non-static, const variable, which would not be initialized by the default ctor. Since X::x is const, it must be initialized — but a default ctor wouldn’t normally initialize it (because it’s a POD type). Therefore, to get a … Read more

Select distinct using linq

Edit: as getting this IEnumerable<> into a List<> seems to be a mystery to many people, you can simply write: But one is often better off working with the IEnumerable rather than IList as the Linq above is lazily evaluated: it doesn’t actually do all of the work until the enumerable is iterated. When you call ToList it actually walks the entire enumerable forcing all … Read more