Create a Database in MongoDB

MongoDB is one of the most popular NoSQL databases around. The popularity of NoSQL databases boomed with the MEAN and MERN.

Creating a database is really simple especially in MongoDB.

use your_database_name
switched to db your_database_name

It is really that simple. There is one bit of a problem here. When you use the show dbs command, you won’t see any new databases. This is because the new database doesn’t have any collection yet.

> show dbs
admin   0.000GB
config  0.000GB
local   0.000GB

Let’s create our collection

> db.createCollection('books')
{ "ok" : 1 }
> show dbs
admin               0.000GB
config              0.000GB
local               0.000GB
your_database_name  0.000GB

Now that’s how to create your database in MongoDB.

 Opera Browser: Show Full Address with Query Strings or GET parameters

Opera by default hides the query string or GET parameters. To show the full address, you need to enable it.

Steps to get to the Settings:

1 Click on Preferences
2 Click on Advanced on the Sidebar
3 Click on Advanced to show dropdown menu if not yet shown
4 Look for the User Interface section

At this point, enable Show full URL in combined search and address bar

Screen shot 2018 10 29 at 5.44.43 pm

Opera snapshot 2018 10 29 174317 settings

 Could not determine java version from '10.0.1'

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '10.0.1'.

Fix #1

Fix #2

  • Make sure you have also upgraded your build.gradle configuration
buildscript {
    repositories {
    dependencies {
        classpath ''

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

Fix #3

Add the following under your build.gradle file

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 25
                buildToolsVersion '25.0.0'


 Gem::Ext::BuildError: ERROR: Failed to build gem native extension for the JSON gem

The dreaded Gem::Ext::BuildError: ERROR: Failed to build gem native extension has been in existence since I started dabbling with higher versions of rails.

Fetching gem metadata from
Fetching rake 11.2.2
Installing rake 11.2.2
Using i18n 0.7.0
Fetching json 1.8.3
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/user/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/Users/user/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170619-29262-1b1jy13.rb extconf.rb
creating Makefile

Remove the Gemfile.lock file

Removing the Gemfile.lock file lets your bundler do its work and find the compatible versions for your gems. Run bundler and you’ll have a nice install and have a new Gemfile.lock file.

Bundle complete! 51 Gemfile dependencies, 177 gems now installed.