teleren/devto huggingface dataset:
Ultimate guide to install and launch MongoDB on macOs
Tags: database, beginners, mongodb, tutorial
Published: 2020-12-15 11:32:50

Today we are going to learn how to install and launch **[MongoDB](https://www.mongodb.com/)** on macOS. 
We are going to start with the prerequisites, MongoDB Installation, How to launch MongoDB and the Default configuration files.

# **Introduction**
   **[MongoDB](https://www.mongodb.com/)** is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.

In this tutorial, we are going to set up step by step MongoDB on macOS. 

# **1. Prerequisites**

[Homebrew](https://brew.sh/)
[Homebrew](https://brew.sh/) is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system and Linux.

First of all, you need to verify is homebrew is already installed with the command :

```
brew -v
// Output if it’s installed
// Homebrew 2.4.15
// Homebrew/homebrew-core (git revision 872ea; last commit 2020-08-31)
```

To install it, we need to use the command below :

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

It can take a while to install just be patient.
For further documentation, you can check out this [link](https://brew.sh/#install).


# **2. MongoDB Installation**
First, we need to up brew dependencies with the command :

``` 
brew update
```

After we need to find the MongoDB Tap:

``` 
brew tap mongodb/brew
```
**[brew tap](https://docs.brew.sh/Taps)** adds more repositories to the list of formulae that brew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub.


We can install now MongoDB community Edition on our Computer using this command:

```
brew install mongodb-community
```


# **3. Launch MongoDB**

To have launchd start mongod immediately and also restart at login, use:

```
brew services start mongodb-community
```

To connect to mongodb use the command :
```
mongo
```

**If there is an error**

if for any reason you have an error, open a new terminal window and run the command:
```
mongod
```
wait for 15 seconds and then rerun the command 
```
mongo
``` 
in another terminal.


# **4. Default Configuration Files**

```
The configuration file (/usr/local/etc/mongod.conf)
The log directory path (/usr/local/var/log/mongodb)
The data directory path (/usr/local/var/mongodb)
```

Congratulations.
We have successfully install and launch **mongodb**.
![party-image](https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/whatsapp/238/face-with-party-horn-and-party-hat_1f973.png)
How to run NLP on a PDF file?
Tags: nlp, node, javascript
Published: 2020-12-15 11:26:54

On several occasions we need to extract information from PDF documents. The first step is to convert the PDF document into raw text using a PDF parser. In the following example, we use the <a href="https://www.npmjs.com/package/pdf-parse">pdf-parse</a> NPM package to achieve this. Once we have the raw text, it can be passed to winkNLP's <a href="https://winkjs.org/wink-nlp/read-doc.html">readDoc</a> method to process the text. The `doc` object returned by this API can be used to access a variety of information such as <a href="https://winkjs.org/wink-nlp/entities.html">named entities</a>, <a href="https://winkjs.org/wink-nlp/sentences.html">sentences</a> containing <a href="https://winkjs.org/wink-nlp/its-as-helper.html">negation</a>, overall or sentence wise <a href="https://winkjs.org/wink-nlp/its-as-helper.html">sentiment score</a> and many more. We have illustrated extraction of named entities here — also known as <a href="https://winkjs.org/wink-nlp/entities.html">NER</a>.

```javascript
// Load wink-nlp package & helpers.
const winkNLP = require( 'wink-nlp' );
const its = require( 'wink-nlp/src/its.js' );
const model = require( 'wink-eng-lite-model' );
const nlp = winkNLP( model );

const fs = require('fs');
const pdf = require( 'pdf-parse' );

// Read PDF file.
let dataBuffer = fs.readFileSync( './sample.pdf' );

// Parse & extract entities from the dataBuffer.
pdf( dataBuffer ).then( function( data ) {
  const doc = nlp.readDoc(data.text);
  console.log( doc.entities().out( its.detail ) );
});
```

The above code will read the PDF file located in the current directory and print all the named entities detected along with their <a href="https://github.com/winkjs/wink-eng-lite-model#named-entity-recognition-ner">type</a> i.e. `DATE`, `TIME`, `MONEY`, `EMAIL` and many more. Each entity is in the form of a Javascript object containing two properties — value and type; for example, `{value: 'March 15, 1972', type: 'DATE' }`.

winkNLP’s <a href="https://github.com/winkjs/wink-eng-lite-model">English language lite model</a> uses a pre-trained state machine to recognize named entities.

This could be useful in extraction of meaningful information from a resume, financial document or a complete book.

<small><span>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Annie Spratt</a> on <a href="https://unsplash.com/s/photos/documents?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span></small>
How do you share tips, knowledge and content with your teammates?
Tags: discuss, watercooler
Published: 2020-12-15 11:22:02

What are the best ways you've seen to share content with your team, for instance:
* Articles, podcast and videos that you’ve found interesting
* Tips on something related to your job
* Best practices
* Decisions
 
Personally we use:
* A [stack overflow private team](https://stackoverflow.com/teams), to ask questions and document the answers. That works pretty well!
* We have a #dev-hot-tips channel on slack to share small but useful tips (like how to activate Github dark theme, or sharing a useful IDE plugin)
* We’ve created [a newsletter](https://doctolib.engineering/engineering-news-ruby-rails-react/) to share content about JavaScript and Ruby. This is nice because it allows us to share our learnings internally and outside of the company. Also, some readers share really interesting articles with us as well.
* We’ve implemented a [RFC process](https://en.wikipedia.org/wiki/Request_for_Comments) to make decisions in a distributed way, and to be able to document them.
* We also have a [Github wiki](https://docs.github.com/en/free-pro-team@latest/github/building-a-strong-community/about-wikis) for documentation (currently migrating to [Confluence](https://www.atlassian.com/software/confluence)), but this is harder to maintain than stack overflow at the moment.
 
I'd love to hear your recommendations!

____________

Photo by [Vlad Kutepov](https://unsplash.com/@kvtepov?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/knowledge-library?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText)
issue with componentDidMount data not coming thorun unless i resize window or navigate to other page and come back
Tags: react, javascript, redux
Published: 2020-12-15 11:18:58

i have a redux thunk action fetch some data from 127 django server
and passing data to component that render swiper slides with images
action fire and redux state update correctly passing props to component but image not showing or swiper not read any slide unless i resize browser 
I made example on codeanbox with the full code :https://codesandbox.io/s/p3qgs

try to refresh the sanbox browser perivew you will see a blank page with titles only now resize the preivew and you will see everything will work

Are there any thoughts if this is a problem with the component installation or a bug in swiper
How To Install MongoDB Shell On Ubuntu Through The Terminal
Tags: mongodb, database, ubuntu, nosql
Published: 2020-12-15 11:16:38


Let’s start by defining what MongoDB is, then we will see how we can go about the installation process
 
__What is MongoDB? :-__ MongoDB is a cross platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. 

__*NB: The Mongo shell is an interactive JavaScript interface to MongoDB. You can use the mongo shell to query and update data as well as perform administrative operations.*__

Now let’s see how the installation process looks like on your Ubuntu System.

**---** To start, it is always advised to make sure all your packages are up to date on your ubuntu system by typing the command as seen on the screenshot:


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zdglmmrrdvngjk55o7c0.png)

**---** You can now run the command to install MongoDB on your Ubuntu terminal by typing the command sudo apt-get install mongodb as seen on the screenshot below:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/417kw8nqvwduzehib4z0.png)

It will now prompt you a message if you want to continue. Just type letter “y” on your keyboard which is the same as typing “yes” to accept the process to continue.
         

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/cq4phubujnhbmr73fvnz.png)



**---**  At this point, you will now start the MongoDB service by typing the following command as seen below:


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zr5ho59i5i0vnjse049f.png)


         
**---**  From here on, you can check the status of the newly installed mongodb on your machine to check if it’s running or not and if it is succesfully running, you will see active (running) written in green.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5midtqllth8xg6j4f8k9.png)
                                                                                                                     **---** Now you need to type the following command to start the mongodb server:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/mcrhw7ko7429jcotiov7.png)









Thanks for reading this article.

Please like if you find this article helpful and also follow me to get in touch with all the latest articles I will be posting in the tech world

You can get in touch with me through **Linkedin** by clicking the link      https://www.linkedin.com/in/nkenganyi-clovis-4310b41ba/
INSTALLATION MONGODB (UBUNTU)
Published: 2020-12-15 11:15:45

Installing MongoDB via repositories

                1- mongodb repository

The default repositories available in LTS (Long Term Support) editions of Ubuntu contain MongoDB, but they may be outdated versions of the software. Therefore, let's say apt-get (the software you use to install software from repositories) to look at a custom repository. To do this, you need to create a custom MongoDB list file and specify the repository URL using the following command:

$ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

                       2-Add keys

Next, you need to import the MongoDB public GPG key, which is used to sign the packages, to ensure consistency; you can do this using the apt-key command:

$ sudo apt-key adv --keyserver hkp: //keyserver.ubuntu.com: 80 --recv 7F0CEB10apt-key adv --keyserver hkp: //serveur de clés .ubuntu.com: 80 --recv 7F0CEB10


                        3- update

When this is done, you need to tell apt-get that it contains new repositories; you can do this using the apt-get update command:
 
$ sudo apt-get update

This line made aptitude aware of your manually added repository. This means that you can now tell apt-get to install the software itself.

                           4- install

The previous line made aptitude aware of your manually added repository. This means that you can now tell apt-get to install the software itself. To do this, type the following command in the shell:
 
$ sudo apt-get install -y mongodb-org

This line installs the current stable (production) version of the MongoDB Community Edition.
Set up MySQL with Sequelize in NodeJS :
Tags: database, node, mysql, webdev
Published: 2020-12-15 11:13:08

* First of all we have to create a User of the MySQL database .

```sql
create database devdb;

create user dev identified by 'devpass';

use devdb;

grant all privileges on devdb.* to dev;
```

* Then we have to install sequelize as an orm(object relational mapper ) and mysql2 as the database into our project .

```js 
$ npm i mysql2 sequelize 

$ touch db.js
```

* connecting to a database :

```js 
const sequilize = require('sequilize')
  
const db = new Sequilize(database, user, password{

  host : 'localhost',
  dilect : mysql,
  pool: {
  min : 0,
  max : 5,
  }
});
```

* Create our Model :

```js
const Post = db.define('Post', {
  id: {
  type: Sequilize.INTEGER,
  autoIncrement: true,
  primaryKey: true
  },
  name:{
  type: Sequilize.STRING,
  allowNull: false
  },
});

db.sync()
  .then(() => {
  console.log('Database has been created');
})
.catch((err) => {
  console.log('error creating database '+ err);
})

exports = module.exports = {
 User 
}

node db.js
```

# __Thank You For Reading__
MongoDB Installation w10
Tags: database, nosql, webdev
Published: 2020-12-15 11:11:31

Hello !, we are going to see how to install MongoDB on windows 10
First of all the main site where  you can download it: https://www.mongodb.com/download-center#community

![m0](https://dev-to-uploads.s3.amazonaws.com/i/0rcqv7fundrk97byugsi.png)

Run the Setup File
![md1](https://dev-to-uploads.s3.amazonaws.com/i/ossiis7c44d96m8ijact.png)

Follow the process:
![md2](https://dev-to-uploads.s3.amazonaws.com/i/2y4wueflbhkjth2jy3lv.png)

Follow again: Choose Complete
![md3](https://dev-to-uploads.s3.amazonaws.com/i/angemd2ael1v3mfrzkk8.png)

Next Steps: Run service as Network Service user
![md4](https://dev-to-uploads.s3.amazonaws.com/i/z2wj46weerkn4ci6e6gt.png)

Then after: Just click Next 
![md5](https://dev-to-uploads.s3.amazonaws.com/i/fe2i1hb1mwvgu4pykn8a.png)

Then Click on the Install button to start the installation.
![md6](https://dev-to-uploads.s3.amazonaws.com/i/keyllwvjvpemio9o561m.png)

Installation begins. Click Next once completed
 ![md7](https://dev-to-uploads.s3.amazonaws.com/i/itx54yt91oan3etgj68a.png)

Here , you can choose to close the applications or not
![md8](https://dev-to-uploads.s3.amazonaws.com/i/kzenzvodqhn5esxjs0mq.png)

Ok finished, you’ve done , now you are going to build  sensitive projects

  
  
 ![finish](https://dev-to-uploads.s3.amazonaws.com/i/k8a54ll328r4rbxyio4x.png)
 
![m9](https://dev-to-uploads.s3.amazonaws.com/i/675r6rb5rg82o1zuzbp8.png)
Installing MongoDB on ubuntu
Tags: database, ubuntu, linux, mongodb
Published: 2020-12-15 11:06:19

MongoDB Is a NoSQL (not only structured query language) database management system widely used today.

The installation is done through the command line using the following commands.

First and most importantly to ensure that all plugins are up to date type the `sudo apt-get update` command.

**Step 1:**

To begin the installation we enter the command: `sudo apt-get install MongoDB` this will install MongoDB on your Linux system

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/b8erla80wjxcevds7iva.png)

You will be prompted to grant permission to access your drive imputing "y" for yes and pressing enter will suffice.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/lth1x0jehqmslsd31mhy.png)

**Step 2:**

after that type, the command: `sudo service MongoDB start` will start the MongoDB service.	

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4ivn3s9oanmqah9nai85.png)

**Step 3:**

Finally in order to verify if the MongoDB service is up and running on your system enter the following code :
`sudo systemctl status MongoDB`

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/s9ues3fwir7s69iu3la3.png)

verify to see that it is active and running;
	There you have it, you have finally installed MongoDB on your Linux system;
you can then connect to the server and wit the `mongo` command start working
Learning AWS, against the odds.
Tags: aws
Published: 2020-12-15 11:04:32

![hey there](https://media.giphy.com/media/rDjpBbliIfrZm9tmTa/giphy.gif)

I need some help. 

If you know of anyone who has managed to successfully establish themselves in the world of AWS (doesn't need to be in a technical role) against the odds due to some form of adversity, whether that is physical due to a disability, neurodiversity (like me!) or due to cultural and social issues (also like me!) then please let me know.

I am looking to get some real stories of inspiration for [the elastic guru](https://www.theelastic.guru).

Thank you

![your amazing](https://media.giphy.com/media/L38BSuXrpm6KDWF5dk/giphy.gif)
Creating illustration using CSS
Tags: css, react, beginners
Published: 2020-12-15 11:02:26

Hi all, I was working on this illustration for a few days and now it's completed and I am very excited to show you all.

##How it started
I am an artist besides a software engineer. I am always illustrating and painting in my after office hours. So it gave me thought why not try to make it in CSS. 
I already saw many amazing illustrations by talented people on Twitter and it made me more motivated.

##Illustration choosing
A few months ago, I was trying to learn Adobe Illustrator and for the first practice project, I created a radio or boombox. So this time I also thought why not Boombox. But I somehow lost my illustration so I couldn't able to use it as a reference. :pensive: 
I searched on Pinterest and found some really cool illustrations and took my basic reference from it. Here is the reference pic I choose.

![reference](https://dev-to-uploads.s3.amazonaws.com/i/4i9m6x9sl9a8to1avro9.png)

##Real work started
I used `codesandbox` react editor to create boombox. Actually, I wouldn't say to use `react` specifically, you can create it in simple HTML and CSS. It's all about your personal preference and mine was `react`. :blush:
I wouldn't share the step by step coding procedure, as I don't think of myself as a pro CSS illustration creator. :grinning: 
But I'll share my `codesandbox` link below for you all to check and give me suggestions. I know I need a lot of improvements and with your all help I can learn more. :innocent:

##Final Reveal
After a few days, I able to finish it. But I only worked on it for a couple of hours in a day. I think it would take a maximum of 4 to 5 hours if I would try to complete it in a day.
I also skipped some things from the illustration, I didn't want to make it complex for the first time. I am planning to add these for the second part. :blush:
{% codesandbox boombox-css-0ofou %}
Stay tuned and do share your thoughts about it.
Thanks!:wave:
How To Download and Install MongoDB on Windows10
Tags: mongodb
Published: 2020-12-15 10:46:25

The following steps can be used to install MongoDB on Windows 10
### Step1) Go to link and Download MongoDB Community Server. We will install the 64-bit version for Windows.
https://www.mongodb.com/try/download/community
![f0](https://dev-to-uploads.s3.amazonaws.com/i/cekhak9ojwrthtz11xd6.png)

### Step2)  Once download is complete open the msi file. Click Next in the start up screen
![Q1](https://dev-to-uploads.s3.amazonaws.com/i/exbgdhvotsfpj3onip4n.png)

STEP3)
1.	Accept the End-User License Agreement
2.	Click Nest

![Q2](https://dev-to-uploads.s3.amazonaws.com/i/enho4bs6cfzvtjifsq61.png)

### STEP4) Click on the "complete" button to install all of the components. The custom option can be used to install selective components or if you want to change the location of the installation.

![Q3](https://dev-to-uploads.s3.amazonaws.com/i/qb5nojgiytb0xregxpi0.png)

### STEP5)
1.	Select “Run service as Network Service user”. make a note of the data directory, we’ll need this later.
2.	Click Next

![Q4](https://dev-to-uploads.s3.amazonaws.com/i/s4f6psruniro8hwf65ib.png)

### STEP6) Click on the Install button to start the installation. 

![Q5](https://dev-to-uploads.s3.amazonaws.com/i/pdklq72yzbv3ij6vbb5w.png)

### Step7) Installation begins. Click Next once completed


 ![Q6](https://dev-to-uploads.s3.amazonaws.com/i/che0qx2woikx2equzd11.png)

### Step8) Click on the Finish button to complete the installation

 ![Q7](https://dev-to-uploads.s3.amazonaws.com/i/c909h2zc6tfjllg43aj5.png)

Well done,you just have to make MongoDB available everywhere on your system.

### Step9) copy the bin path

![k1](https://dev-to-uploads.s3.amazonaws.com/i/gq00nh9qc7ojcbn7acms.png)

### Step10)paste that link to you environment system 

![k2](https://dev-to-uploads.s3.amazonaws.com/i/hip9g4d59jjxnrtppqa7.png)

### Step11) see the version on your terminal by typing mongo

![k3](https://dev-to-uploads.s3.amazonaws.com/i/qv6pdv1ppmtz9ux5z8s5.png)

That is all .
facemask progress 2/n
Tags: laravel
Published: 2020-12-15 10:43:51

---
series: facemask on DigitalOcean App Platform Hackathon
---

### hasError ❌
My initial stack is Laravel 8 with Jetstream, Vue, Inertia.js and Tailwind. I had difficulties maintaining this kind of setup. It was challenging for me to debug. I also have to figure out if I have to fix the frontend or the backend.

### I need to rollback 🔙
I decided to settle on a server-side rendered app. I used Breeze instead of Jetstream. Blade will be used for templating and I’ll be using vanilla JS for minimal interactions. Blade UI Kit and Tailwind for styling. If I still have time, I’ll be building the API and completely separating my frontend. For now, I need a minimum viable product as soon as possible.

### isSuccess ✅
* Deployed it already on the DigitalOcean. 
* Auth (just used the Breeze) 
* A functioning multilevel nested comments system.
Find Similar Sites - Most Popular Websites at SimilarZone.com
Tags: similar, like, find
Published: 2020-12-15 10:43:36

![Similar sites](https://dev-to-uploads.s3.amazonaws.com/i/0c0szr5t7r65lluvgzyw.jpg)

SimilarZone is a free tool to find websites similar, alternatives or related to a given site.

<h3>Most Popular Websites at SimilarZone.com</h3>

Sites similar to fetlife: <a href="https://similarzone.com/sites-alternative-to-fetlife.com">https://similarzone.com/sites-alternative-to-fetlife.com</a>

Sites like ranker: <a href="https://similarzone.com/sites-alternative-to-ranker.com">https://similarzone.com/sites-alternative-to-ranker.com</a>

Sites like ibuypower: <a href="https://similarzone.com/sites-alternative-to-ibuypower.com">https://similarzone.com/sites-alternative-to-ibuypower.com</a>

Sites like hi5: <a href="https://similarzone.com/sites-alternative-to-hi5.com">https://similarzone.com/sites-alternative-to-hi5.com</a>

Sebsites similar to care.com: <a href="https://similarzone.com/sites-alternative-to-care.com">https://similarzone.com/sites-alternative-to-care.com</a>

Websites like thisiswhyimbroke: <a href="https://similarzone.com/sites-alternative-to-thisiswhyimbroke.com">https://similarzone.com/sites-alternative-to-thisiswhyimbroke.com</a>

Stores like landsend: <a href="https://similarzone.com/sites-alternative-to-landsend.com">https://similarzone.com/sites-alternative-to-landsend.com</a>

Store like eddie bauer: <a href="https://similarzone.com/sites-alternative-to-eddiebauer.com">https://similarzone.com/sites-alternative-to-eddiebauer.com</a>

Textnow alternatives: <a href="https://similarzone.com/sites-alternative-to-textnow.com">https://similarzone.com/sites-alternative-to-textnow.com</a>

Website like mathway: <a href="https://similarzone.com/sites-alternative-to-mathway.com">https://similarzone.com/sites-alternative-to-mathway.com</a>

More info: <a href="https://similarzone.com">Similarzone.com</a>