teleren/devto huggingface dataset:
How to get Task By Id in React with mongoose
Tags: beginners, react, mongodb, javascript
Published: 2022-07-14 13:05:57

Hello,
How to getTaskById React js & mongodb
Please help Me!!!

**Router File**

router.post("/get-task-info-by-id", authMiddleware, async (req, res) => {
  try {
    const getTask = await Task.findOne({ _id: req.body._id });
    res.status(200).send({
      success: true,
      message: "Task info fetched successfully",
      data: getTask,
    });
    console.log(req.body);
  } catch (error) {
    res
      .status(500)
      .send({ message: "Error getting doctor info", success: false, error });
  }
});

**React File**

const getTasksData = async () => {
    try {
      const response = await axios.post(
        "/api/admin/get-task-info-by-id",
        {
          _id: params._id,
        },
        {
          headers: {
            Authorization: `Bearer ${localStorage.getItem("token")}`,
          },
        }
      );
      if (response.data.success) {
        setTasks(response.data.data);
      }
    } catch (error) {
      console.log(JSON.stringify(error));
    }
  };

**Console Log Value**
{ userId: '62d00aaadba2207fb5402880' }
#Event – In Person with the Highlights from Microsoft Build 2022
Tags: englishpost, build2022, microsoftreactor
Published: 2022-07-14 14:45:43

---
title: #Event – In Person with the Highlights from Microsoft Build 2022
published: true
date: 2022-07-14 12:59:10 UTC
tags: EnglishPost,Build2022,EnglishPost,MicrosoftReactor
canonical_url: 
---

![](https://brunocapuano.files.wordpress.com/2022/07/image.png?w=600)

Hi !

Next Saturday July 16, join me and an amazing group of professionals to review the most exciting news and annoucements from Microsoft Build 2022.

Doors will open at 9:30am with the first presentation kicking off at 10:00am. We’re preparing a line-up of subject matter experts to deliver 40-minute presentations covering each of the 5 themes from Microsoft Build 2022.

More information visit the following link

### [Highlights from Microsoft Build 2022 – Toronto Edition](https://www.meetup.com/microsoft-reactor-toronto/events/286566984/)

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

* * *
Not Only STEPN: Top-5 Move-to-Earn Projects (And Tokens!) That Change The Narrative in Web3
Tags: stepn, movetoearn, blockchain, getblock
Published: 2022-07-14 12:56:20

STEPN app, a much-overhyped gamified decentralized application, introduced the ‘Move-to-Earn’ concept to a global audience. Here’s who is coming to follow its success

Euphoria around ‘Move-to-Earn’ protocols is the last massive hype wave in crypto so far. Despite markets being in deep red, numerous teams are exploring the benefits of ‘Move-to-Earn’.

## What is ‘Move-to-Earn’ and why is M2E popular?

Move-to-Earn is a spin-off of the Play-to-Earn concept. Move-to-Earn (or M2E) should be referred to as a type of blockchain protocol that allows their users to earn money (in crypto) for physical activity: jogging, running, doing yoga, climbing, gym exercises, and so on.

Solana-based protocol STEPN made headlines in Q2, 2022: it introduced Move-to-Earn to thousands of crypto newbies across the globe. Not unlike gaming guilds in Play-to-Earn, STEPN crypto fans created large and vibrant communities; thousands of them made STEPN their full-time job.

However, by July 2022, the hype around STEPN almost disappeared; a new generation of Move-to-Earn protocols is ready to on-board excited neophytes.

## Top 5 Move-to-Earn ecosystems in the shadow of STEPN

GetBlock’s team unveils the brief review of trending Move-to-Earn applications across various blockchains.

OliveX is a pioneering fitness metaverse in Web3. OliveX is an official partner of The Sandbox, first-ever mainstream metaverse project. The protocol allows users to earn crypto for various activities; its economics is underpinned by DOSE token.

Genopets promotes itself as a pioneering Move-to-Earn game with integrated NFTs. In Genopets people create their virtual personalities. These avatars evolve into powerful players as their owners increase their daily activity. The protocol boasts GENE and KI tokens.

Walken is an intersection between Play-to-Earn and Move-to-Earn platforms. Users are invited to breed their pets and use them in battles and tournaments. Winners are rewarded with WLKN tokens.

Step App prioritizes socialization and physical activity of Web3 fans. Not unlike STEPN, Step App crypto game invites players to buy virtual sneakers and earn FITFI token for completing real-world missions.

Amazy is a lifestyle application that allows its players to walk and run in customized footwear. The protocol is hosted by BNB Chain (former Binance Smart Chain); most prominent runners are rewarded with AZY tokens.

## Introducing GetBlock, a top blockchain nodes provider for M2E

First and foremost, speed, low transaction costs and zero latency are characteristics required by Move-to-Earn applications. They prioritize microtransactions; high transaction fees can destroy the tokenomics of M2E app.

GetBlock with its feature-rich and high-performance nodes stack, is a smart bet for M2E. GetBlock supports wide range of M2E-centric blockchains including [Solana](http://getblock.io/nodes/sol/), [Polygon](http://getblock.io/nodes/matic/), [BNB Chain](http://getblock.io/nodes/bsc/), and so on.
Monero (XMR) 5% Rise: Bullish Crypto Market Is Back?
Tags: monero, crypto, blockchain, getblock
Published: 2022-07-14 12:51:13

On Monday, the Monero (XMR) crypto was up 5.01 reaching the $132.66 level, with the overall market down 2.86%. The XMR coin also made a 135% profit in trading volume, coming up at number 27 as the most traded crypto according to Coinmarketcap.com. Why is Monero (XMR) rising and what’s next to come for the bullish XMR coin?

**What is Monero (XMR)?
**
Monero (XMR) was first launched in 2014. It is the first-ever privacy-focused network designed to hide senders’ and recipients’ sensitive information, such as their identities. Based on a CryptoNode transaction protocol, Monero (XMR) focuses on eliminating the most dangerous bottleneck of cryptocurrencies – their traceability.

With first-gen cryptocurrencies, transaction history might be traced back on the open-source blockchain. Monero (XMR), in turn, makes it so the source is concealed.

**Why is Monero (XMR) up?
**
InvestorsObserver gave [Monero](http://getblock.io/nodes/xmr/) (XMR) a bullish rating according to the website’s sentiment score. This is due to the fact that the XMR coin has been trading higher than its overall performance over the past few weeks. According to the Monero (XMR) community, on April 20th, the blockchain announced a network update to be performed on July 16, which could play a significant role in the XMR coin’s current bullish traction.

While it is still unclear whether Monero (XMR) will continue to grow, it is important to consider all risks associated with investing in volatile cryptocurrencies.

**How does Monero (XMR) crypto guarantee blockchain privacy?
**
The Monero (XMR) blockchain utilizes Ring Confidential Transactions (Ring CT), ZK-proofs, IP obfuscation, and Stealth addresses to make the transactions untraceable. For instance, Ring CT signs transactions with multi-layered completely anonymous group signatures; whereas Stealth Addresses makes it possible to create one-time addresses for performing transactions.

For Monero (XMR) blockchain, privacy remains the most important issue; however, the network also offers a user-friendly interface, efficient transactions, and other robust features.

**Utilize Monero with GetBlock
**
For Monero (XMR) users, GetBlock offers one of the best nodes to buy with Shared and Dedicated nodes options for the Monero blockchain. Via GetBlock, buying blockchain nodes has never been easier.

Monero Shared nodes provide a peer-shared node architecture for all crypto entrepreneurs to experiment with their software products under real blockchain conditions.

Monero Dedicated nodes as a service is the perfect solution for detail-oriented businesses, where API-driven technology is the basis of success.

GetBlock’s full blockchain nodes list includes over 40 leading networks. If you wish to learn more about investing in blockchain nodes, how nodes work in blockchain or check out our crypto nodes review, please visit [GetBlock.io](http://getblock.io/) and do not hesitate to contact us via [this link.](https://getblock.io/contact/)
#hiring - A hot startup is looking for #Rust Dev and Head of Engineering for full-time and remote work.
Tags: career, blockchain, hiring, rust
Published: 2022-07-14 12:47:17

❇️ The company is a distributed systems R&D lab that is developing an open-source protocol, network, and incentive layer for interoperable high-performance blockchains.

https://djinni.co/jobs/444993-rust-engineer-b2b-professional-services/

https://djinni.co/jobs/444416-head-of-engineering-b2b-professional-services/

👍Do you know someone who gonna be interested in it? Please share it with him/her!
👍Want to discuss? Feel free to contact me:
✉️ viktoriia.vyborna@gmail.com
⌕ telegram: @carum_est_quod_rarum_est_v
Social CNC and Trade
Tags: programming, react, nextjs, javascript
Published: 2022-07-14 12:44:35

Social CNC and Trade Manufacturing Network

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/01j328ye3readdy7vov4.png)

Social CNC and Trade is a networking site for the CNC Machine Tool and Manufacturing Industry. Here you can connect to other machinists, share your CNC knowledge and research machining concepts. We also offer trading for free to buy and sell used machines.
[Social CNC and Trade Manufacturing Network](https://socialcnc.com/)

What You Can Do On Social CNC: Create A Profile Page. Send and Receive Messages. Post In The Forum. Research Data (Machine Specifications, Programming, Alarms). Buy and Sell Used Machinery For Free. Advertise Your Machine Tool Services and Product.
Python Complex Number
Tags: javascript, python, tutorial, webdev
Published: 2022-07-14 12:19:38

hey Everyone 

Today I share you a link where you can read the article related to python complex number 

So Go and check it out -

**https://codersvillage.com/python/python-complex-number/**

Here is the solution of python complex number so check it out 
If you like the article so just hit on ❤️ 


Thank You Everyone 
Shivani Tiwari
(software Developer)
Useful Git Commands
Tags: git, github, productivity, beginners
Published: 2022-07-14 12:03:12

Version control (sometimes referred to as source control) plays an important role in any development project, including test automation. It is the practice of tracking and providing control over changes made in the source code. And since one of the most common tools used in version control is Git, let’s get to understand some of the most common Git commands.


Git is a fast, scalable, and distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.

- Initialize current directory as a Git repository.
```js
git init
``` 
- Create a local copy of a repository from a hosted location via URL.
```js
git clone URL
```
- Show a list of modified files in your working directory and whether they are staged for the next commit.
```js
git status
```
- Add changes from a specific file to the stage, ready for your next commit.
```js
git add file.js
```
- Add changes from all files to the stage ready for your next commit.
```js
git add .
```
- Unstage a specific file, while still retaining the changes in the working directory.
```js
git reset file.js
```
- Unstage all files, while still retaining the changes in the working directory.
```js
git reset
```
- Display a list of branches with an asterisk(*) next to the active branch
```js
git branch
```
- Create a new branch
```js
git branch name
```
- Switch to another branch and check it out into your working directory.
```js
git checkout branch
```
- Create a new branch and switch to that branch
```js
git checkout -b branch_name
```
- Commit your staged content as a new commit snapshot with a specified message.
```js
git commit -m "your commit message"
```
- Fetch all the changes from the remote repository and merge any remote changes in the current local branch.
```js
git pull
```

These are few basic commands which can help you get started with git easily. Hope you find this article useful.

Thank you.
Data Science and Data Scientist Requirements
Tags: datascience, machinelearning, ai, deeplearning
Published: 2022-07-14 11:53:14

Data science uses **the most powerful hardware, programming systems, and most efficient algorithms to solve the data related problems.**

## What is Data Science?

**_Data science is an interdisciplinary field that uses scientific methods, processes, algorithms and systems to extract knowledge and insights from noisy, structured and unstructured data and apply knowledge from data across a broad range of application domains._**

In the other words, we describe a data science is all about:

- Modeling the data using various complex and efficient algorithms

- Visualizing the data to get a better perspective

- Asking the correct questions and analyzing the raw data

- Understanding the data to make better decisions and finding the final result


## Data Scientist Requirements

There is a describe in 4 components.

1. **Math & Statistics**
2. **Domain Knowledge & Soft Skills**
3. **Programming & Database**
4. **Communication & Visualization**


![Data Science](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hx3r267hpsony9yvuhss.png)

**1. <u>MATH and STATISTICS**</u>


![Math & Statistics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mq9a9c2j5gkboh6y9ov6.png)

- Machine Learning
- Deep Learning
- Statistical Modeling
- Experiment Design
- Bayesian Interface
- Supervised Learning :
  - Decision Trees
  - Random Forests
  - Logistic Regression
  - Linear Regression
- Unsupervised Learning :
  - Clustering
  - Dimensionally Reduction
- Optimization :
  - Gradient Descent
  - Variants


**2. <u>DOMAIN KNOWLEDGE and SOFT SKILLS**</u>


![Domain Knowledge & Soft Skills](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7rjyaqrzxqb5gzeljwje.jpg)

- Passionate about the Business
- Curious about Data
- Influence without Authority
- Problem Solver
- Strategic
- Proactive
- Creative
- Innovative
- Collaborative


**3. <u>PROGRAMMING and DATABASE**</u>


![Programming & Database](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uiqjfkey8doxjc6mqh4x.png)

- Computer Science Fundamentals
- Python / R
- Databases SQL and NoSQL
- Relational Algebra
- Parallel Databases
- Parallel Query Processing
- MapReduce Concepts
- Hadoop and Hive/Pig
- Custom Reducers
- Experience with xaaS like AWS


**4. <u>COMMUNICATION and VISUALIZATION**</u>


![Communication & Visualization](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vkvx9pspq8979wq60u70.jpg)


- Able to engage with seniors
- Translate data-driven insights into decision and actions
- Visual art design
- R packages like ggplot or lattice
- Knowledge of any of Visualization tools
  - Flare
  - D3.js
  - Tableau
Best SEO Practice : How i get 10,000 + per traffic from Google in 1 month😎
Tags: seo, webdev, tutorial, saas
Published: 2022-07-14 11:51:48

I have started this general niche blog with my SEO knowledge with mix different language like Hindi, English, Gujarati 

in this blog mainly i have done well keyword research and on-page SEO optimization on that keyword and schema implementation that help me to achieve this result

this blog is on blogger. Com with custom domain because at that time I have not budget to go with WordPress, but I have experience on WordPress also I have build heaven-overseas.com site on WordPress   

my main expertise in keyword research, on-page SEO, schema implementation and some off-page SEO trick like forum, profile link building  

if you have any query or you want guide then dm me at 
[linkedin ashish donga](https://www.linkedin.com/in/ashish-donga/)
Fetch Data From API using JavaScript
Tags: javascript, html, css
Published: 2022-07-14 11:39:37

Fetch is a powerful API for retrieving data from web services. It lets you send requests to web servers and fetch the response as a JavaScript object. 

The fetch object has properties for headers, status, and content. You can use these properties to specify the desired information in your request. 

Additionally, fetch supports promises, so you can use them to make sure that your requests are handled correctly.

{% codepen https://codepen.io/developerupdates/pen/XWENNZV %}

Join our Telegram Group Developer Updates for Web Development Updates : [Link](](https://t.me/developerupdates))
WhatsApp Data Analysis Project Use Case
Tags: dataanalysis, whatsapp, portfolio, github
Published: 2022-07-14 11:26:42

One of the common challenges facing data analyst enthusiasts or beginners is how to know when knowledge has been converted to skill.

Lots of people learn for months and even a year and aren’t confident if what they’ve learned is strong enough to get them jobs. The easiest way around this is through project showcasing.

Here is an interesting project you can also take up with solid skill to showcase in Power BI.

No matter how rich your CV is, it is not enough to remain competitive in the skill market, you need to showcase your skill through projects!

Proper documentation is another plus yet to be leveraged by the majority of enthusiasts in the space. when properly done, it can be a great game changer.

{% embed https://youtu.be/JwzT6u-Hr3w %}

Check it out here: https://github.com/BolajiBI/WhatsAppPowerBIReport

Follow me for more on Tech, Data, and Lifesytle
Our First Day at Work
Tags: workexperience, firstdayatwork, fun, lifestyle
Published: 2022-07-14 11:22:43

Your Experience on the first day at work can set your mood for a week, month, or for the duration of your stay in that organization if not properly handled.

No matter your experience on your first day at work, you can be the best at what you do.

In this video, we shared the Good, The Bad, and The Ugly experiences we had.

{% embed https://youtu.be/gtSOU1xiuUM %}

Follow me for more on Tech, Data, and Lifesytle.
Simple guide to closures in JavaScript 😎😎
Tags: javascript, beginners, tutorial, codenewbie
Published: 2022-07-14 11:00:31

Closures are function that are bundled together with the lexical environment within which that function was declared

```
const outer = {} => {
let outervar = "outer";
console.log(outervar);
function inner(){
console.log(outervar,innervar);
}
return inner;
}
outer();
}
```

the inner function here is a closure why because it enclose or contains the variables from this outer function since it is closure we can use this outside 

```
let myFunc = outer();
console.log(myFunc);
```

output:

```
outer
inner(){
console.log(outervar,innervar);
}
```

## use of closures

1 the for loop dilemma
2 emulating private variables in javascript
3 creation of higher order function

## some advance use cases of closures

carrying - it is the pattern of functions that immediately evaluate and return other function

function compositions - function composition is the ability to create functions from another function
30 Days After — Focus on What You Can Control
Tags: focus, doit, justdoit, motivation
Published: 2022-07-14 11:20:58

If you let what you cannot control stop you from giving your best to what you can control, you will be at the losing end.

Look at your goal and plan today and make sure what is stopping you aren’t things you have little to no control over. Give your best and the rest will be full of success stories

I captured the message in this short video

{% embed https://youtu.be/RU8Z-HRrIeI %}

Follow me for more on Tech, Data, and Lifesytle
Cloning / restoring / migrating MongoDB with mongodump
Tags: mongodb, mongodump, migrating, database
Published: 2022-07-14 11:18:31

---
title: Cloning / restoring / migrating MongoDB with mongodump
published: true
description: How to clone, retore, migrate mongodb in 2 steps
tags: MongoDB, mongodump, migrating, database
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

There is an easy way to migrate MongoDB database between different hosts. Sometimes we might need it for example in case of:
- moving db from local database to the remote
- creating a backup copy of the db "freezing" all the content we have to be able to restore at some time
- getting the production db and moving to local server for some testing, development, etc.. 

And any other possible case you might think about. 

With mongodump it's only 2 simple steps. 

First you will need to install mongodump for your platform: https://www.mongodb.com/docs/database-tools/mongodump/

## Then first step is to create the dump:

`mongodump --uri='URLOFMONGO'`

`'URLOFMONGO'` is URL you are using to connect your app to MongoDB -- either local like let's say `mongodb://127.0.0.1/ourDatabase` or remote like `mongodb+srv://yourSuperApp:superSecretPassword@cluster0.wxtxjy6.mongodb.net/superAppDB`

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4kul54hscicy9lfxab1.jpg)

It will save the dump – the whole content of your database – in the `dump` folder in the current folder from there the command was executed. 

Inside `dump` folder you would see the folder with the name of the DB - it's the one you would like to use to restore. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pb53d8pzzc0gobxs7k8q.jpg)

## To restore:

`mongorestore  --uri='URL_OF_MONGODB' -d NAME_OF_DB_TO_PUT_DATA_INTO FOLDER_WITH_DUMP`

such as

`mongorestore --uri='mongodb://127.0.0.1' -d winemind dump/Winemind`

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjkmosvhyfor9eshgm97.jpg)

Now we moved data from remote DB called `Winemind` to localhost DB named `winemind`

The end :)
Scala Mind Map
Tags: scala, mindmap
Published: 2022-07-14 11:16:00

---
title: Scala Mind Map
published: true
description: 
tags: scala, mindmap
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
canonical_url: https://www.aloneguid.uk/posts/2022/05/scala-mind-map/
---

This post has no words but mostly a mind map I've created over years when learning Scala. It's serves as a quick reminder for majority of Scala features. You can zoom it indefinitely thanks for it being exported in SVG.

[![map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03pjp8ozupaw2947l207.png)](https://www.aloneguid.uk/posts/2022/05/scala-mind-map/map.svg)

P.S. Watch [this page](https://www.aloneguid.uk/posts/2022/05/scala-mind-map/) for further updates.