teleren/devto huggingface dataset:
CURD Operations And JWT
Published: 2021-12-23 07:23:14

CRUD Operations:
The elaboration of CRUD is create,read, update,delete.it is a set of operations with get,put,post,delete.
Create(POST):to make something
Read(GET):to read something
Update(PUT):to change something
Delete(DELETE):to delete or remove something
The REST API is constructed with GET, POST,GET, DELETE.

Mongoose:
A connection between MongoDB and the express web application framework is created by Mongoose which is a Javascript Object Oriented Programming Language Library.
Mongoose is a library for MongoDB which is a Node.js-based object data modeling. It is similar to Object Relational Mapper(ORM) such as SQLAlchemy for traditional SQL databases. However, the problem arises as Mongoose aims to solve ia allowing developers a specific schema at the application layer. Moreover, besides enforcing a schema, Mongoose provides varieties of model validation, hooks and other features which aim to make it easy to work with Mongoose.

JWT:
JWT is very popular as it helps to secure API. The elaboration of JWT is Json Web Token.JWT is an open standard that helps or is used to secure/share secure information between two parties client and server.
Each JWT token contains JSON objects which are encoded including a set of claims. Cryptographic algorithm signs JWT to ensure that the claims cannot be altered after the token is issued.

JSON indicates or stands for Javascript Object Notation. JSON is a text-based format for transmitting data across web applications. It stored information that is easily accessible both for developers and computers. It can be used at any programming language as a data format. It’s quickly becoming the preferred syntax for API’s that surpassing XML.
JWT is a token. Token means a string of data that normally indicates here as an identity.
JWT token is different from other web token as they contain a set of claims. For transmitting information between two parties, Claims are used. Use case at hand depends on these claims.
A JWT is a token that consists of three parts and they are separated by dots. It is serialized using base64. JWT looks something like aaaaaa.yyyyyy.ssssss in compact serialization format.

Once it’s decoded, two JSON strings are found
The payload and the Header
The signature
The JOSE(JSON Object Signing and Encryption) header contains the type of token JWT in this case and the signing algorithm.

The payload that contains the claims. The payload is displayed as a JSON string. It usually contains no more than a dozen fields which help to keep JWT compact. This information is typically used by the server to verify that the user has permission to perform the action they are requesting.

 The token has not been altered is ensured by the signature. A secret that is known to both issuer and reciever when the party creates the JWT signs with the header and payload or a private key that is known only to the sender. At the time of token is being used, the receiving party verifies/ensures that the payload and the header match the signature.

Shortly, the JWT token is useful for secure authentication for users and sharing information
Design & Code Tips - NFT
Tags: uiweekly, css, design, tailwindcss
Published: 2021-12-23 06:57:03


![NFT Website UI Design & Code in CSS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vo39k5hj6hksx7d4h2r1.jpg)

The NFT website UI design is complete. Next post will be how to code it.
What is Oracle OSS Helidon?
Tags: programming, webdev, microservices
Published: 2021-12-23 06:51:31

#Helidon is a #cloud-native, open‑source set of #Java libraries for writing #microservices that run on a fast web core powered by #Netty.
1/ main: https://helidon.io/
2/ repo: https://github.com/oracle/helidon
10 Handy Automation Scripts You Should Try Using Python
Tags: programming, python, productivity, beginners
Published: 2021-12-23 06:51:30


![Photo by wayhomestudio on Freepik Created Using Canva](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tx4rn00sx4lhb9vk6mm0.png)
Automation is the process of completing a task without any human intervention. There are many programming languages that provide different ways to automate tasks but out of all python is a preferred and first choice. The reason is it offers a simple syntax, tons of useful packages to work with. In this blog, we are going to take a look at 10 handy automation scripts you should have using python.

1. Your Friend For Reading Articles 👁‍🗨
2. One-Click Sketching
3. Stay Up With Top Headlines
4. Stocks Updates On The Start
5. Bulk Email Sender
6. No Time For EDA
7. Smart Login To Different Sites
8. Be Safe & Watermark Your Images
9. Remember That (Reminder App)
10. Google Scraper

[**Check The Full Article Here**](https://medium.com/pythoneers/10-handy-automation-scripts-you-should-try-using-python-fc9450116938)
It's Prisma Time - Create Db
Tags: javascript, typescript, database, orm
Published: 2021-12-23 06:51:06

Hi Guys 👋
welcome back.
Finally, today it's time to create our database, so don't waste time, and get started.
How can you create your database?
It's simple! You have to run the following script:
```
npx prisma db push
```
This script creates in your `prisma` folder a SQLite database called `dev.db`.
The database's name is taken from the variable `DATABASE_URL` in the `.env` file and inside of the file you can find the next table.
![Post Table](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/omgblt1n17m43g3ye3pz.png)
Ok, now you have your database so it's time to get back at the challenge left open last article.
Run the script
```
yarn dev
```
```console
{ posts: [] }
```
![it's work](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/va4l54jb21hltymty4ow.jpeg)
Ok, there aren't data but it works 🥳
So now you have a database and you can search data inside it, at this point, it's time to create relations between our entities, but it's the goal of the next article 🤪

That's all for today guys!
See you soon
Bye Bye 👋


_You can find the code relative to this post [here](https://github.com/Puppo/it-s-prisma-time/tree/04-create-db)_
Want to learn more in #GitOps and #ArgoCD ?
Tags: kubernetes, devops
Published: 2021-12-23 06:48:47

Want to learn more in #GitOps and #ArgoCD ? I just finished the ebook, GitOps with ArgoCD by Billy Yuen, Alexander Matyushentsev,Todd Ekenstam, and Jesse Suen . Very good and easy reading. You will first know some basics in #kubernets, then how ArgoCD works. Thanks to #codefresh for the free ebook at https://codefresh.io/ebooks/implement-gitops-scale-today/
𝑼𝒑𝒔𝒌𝒊𝒍𝒍 𝒐𝒓 𝑼𝒏𝒔𝒌𝒊𝒍𝒍/𝑷𝒆𝒓𝒊𝒔𝒉 ?
Tags: devops, programming, learning
Published: 2021-12-23 06:47:13

𝑼𝒑𝒔𝒌𝒊𝒍𝒍 𝒐𝒓 𝑼𝒏𝒔𝒌𝒊𝒍𝒍/𝑷𝒆𝒓𝒊𝒔𝒉 ? For us in IT, I feel this sentence is similar to the famous one for Academics, "𝑷𝒖𝒃𝒍𝒊𝒔𝒉 𝒐𝒓 𝑷𝒆𝒓𝒊𝒔𝒉". Please go learn something NEW everyday, it can be any, e.g. Cloud computing, Security, App Development, Blockchain, Quantum computing, Networking, Machine Learning, Big Data, etc....
𝑾𝑬𝑳𝑳 𝑨𝑹𝑪𝑯𝑰𝑻𝑬𝑪𝑻 your cloud workloads !
Tags: aws, cloud, devops, architecture
Published: 2021-12-23 06:45:38

“𝑰𝒇 𝒀𝒐𝒖 𝑭𝒂𝒊𝒍 𝒕𝒐 𝑷𝒍𝒂𝒏, 𝒀𝒐𝒖 𝑨𝒓𝒆 𝑷𝒍𝒂𝒏𝒏𝒊𝒏𝒈 𝒕𝒐 𝑭𝒂𝒊𝒍” — 𝑩𝒆𝒏𝒋𝒂𝒎𝒊𝒏 𝑭𝒓𝒂𝒏𝒌𝒍𝒊𝒏 It is very important to 𝑾𝑬𝑳𝑳 𝑨𝑹𝑪𝑯𝑰𝑻𝑬𝑪𝑻 your cloud workloads and services ! We just had another AWS incident today (12/22/21) due to a power outage at one of its data centers in Northern Virginia. If you did well architect, then you should see less/min. customer impact because of HA and Good resiliency. Also, Chaos engineering is important to test well and find out any weak spots before any incidents/outages. See post at https://www.datacenterdynamics.com/en/news/aws-has-another-east-coast-cloud-outage/
NetSuite Training and Certification Courses


Published: 2021-12-23 06:39:23

[NetSuite training ](https://hkrtrainings.com/netsuite-training)is one of the popular and go-to cloud-based solutions providers from Oracle that is used in enterprises across industry sectors. NetSuite applications help businesses to unify their existing processes that are distributed across platforms to give greater visibility and to improve collaboration between teams and processes. Koenig Solutions offers a complete portfolio of Oracle NetSuite certifications across multiple categories that include Suite Foundation, Administrator, ERP Consultant, and Suite Cloud Developer. There are user-level certifications as well in the form of Suite Analytics User and Financial User courses. 
 
Professionals taking part in the NetSuite certification training will gain an understanding of Business Information Systems, Sales and Marketing, Accounting and it's systems, Retail, eCommerce, Supply Chain, Logistics, and Warehouse Management.

##  **Popular NetSuite Certification Training Courses

**Suite Flow: Advanced Workflows Certification Training:
**
This Suite Flow Advanced Workflows course is a 3-day instructor-led course that is designed to provide individuals and enterprises critical understanding of key concepts, terms, skills, and best practices to use the advanced capabilities of Suite Flow. This course is ideal for anybody who has experience in building workflows and is looking to improve their understanding of SLAs, execute actions, run parallel sub-workflows, and more.

**_Oracle NetSuite Essentials Certification Training
_**
This is one of the popular NetSuite certification courses out there that is ideal for participants to gain a fundamental understanding of NetSuite solutions. This is a 5-day instructor-led course that is ideal for IT Administrators and anybody who is looking to learn about NetSuite capabilities for ERP and CRM business processes.
 
**_SuiteCloud: Exploring the Netsuite Platform Course
_**
This SuiteCloud: Exploring the NetSuite Platform course is a 2-day training program that is ideal for Administrators, Project Team Members, Business Analysts, Software Developers, and more. Through this SuiteCloud course, learners will gain a proper understanding of cloud development tools, the required infrastructure, and applications that helps businesses to tap into the complete potential of cloud computing. Candidates will also learn how to use various components of NetSuite applications in the form of SuiteCloud, SuiteAnalytics, SuiteFlow, SuiteBuilder, SuiteTalk, SuiteBundler, and SuiteScript.
 
**
Metrics Monitoring App with Anomaly Detection using MongoDB
Tags: atlashackathon, python, mongodb, monitoring
Published: 2021-12-23 06:14:10

### Overview of My Submission

Schedule metric collectors to gather measurements from different external services and optionally run anomaly detection on the new values.

The project uses MongoDB as a storage system, storing data as time series entries.

To make the experience complete, a visualization tool is needed. Fortunately, Mongo gives us Mongo Charts which can be used directly from Mongo Atlas.

### Submission Category: 

**Prime Time**

### Link to Code

The code can be found here: {% github https://github.com/madalinfasie/monitoringapp_mongodb%}Click above to read more.

### Additional Info

To test the project, I created three metrics, two of them are randomly generated (as their name suggests) and another one is the number of Dev.to posts in the last 15 minutes (I chose 15 minutes just so I don't have to wait so long for the data). 

In the first screenshot, we can see the number of posts in the last 15 minutes and anther graph, plotting the values returned by `random.randrange(1, 100)`

![Dev.to Articles published last 15 minutes and a random metric](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6fm2vf1203f9f50ibrcm.PNG)

In the second screenshot, we can see the second randomly generated metric (on the right) and a plot of the anomaly prediction (on the left). It is considered an anomaly if the score is `-1`.

As you can see, due to the metric's randomness and few data points, the anomaly prediction is not giving us any real insight.

![A second randomly generated metric and the anomaly detection plot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sg0mmauth9pmossj7f6v.PNG)

#### Built with

[Flask](https://flask.palletsprojects.com/en/2.0.x/): Flask is a lightweight WSGI web application framework

[MongoDB](https://docs.mongodb.com/manual/core/timeseries-collections/): An open-source NoSQL database developed for high performance, high availability, and easy scalability. It also provides Time Series collections.

[Celery](https://docs.celeryproject.org/en/stable/): A task queue with focus on real-time processing, while also supporting task scheduling.

[Docker](https://www.docker.com/): An open platform for developing, shipping, and running applications

[scikit-learn](https://scikit-learn.org/stable/): Simple and efficient tools for predictive data analysis
Create an App Information Component in Nuxt
Tags: jamstack, nuxt, vue, javascript
Published: 2021-12-23 06:13:09

You must have seen multiple apps which show the app’s information like **app version** and **last updated at time** in their footers or via a floating action button. In this tutorial, you’ll learn to create a component to show such kind of information in a Nuxt app.

Read the full blog on [RavSam](https://www.ravsam.in/blog/create-an-app-information-component-in-nuxt/).

Thanks for reading 💜

---

I publish a [monthly newsletter](https://www.ravsam.in/newsletter/) in which I share personal stories, things that I am working on, what is happening in the world of tech, and some interesting dev-related posts which I come across while surfing on the web.

Connect with me through [Twitter](https://twitter.com/ravgeetdhillon) • [LinkedIn](https://linkedin.com/in/ravgeetdhillon) • [Github](https://github.com/ravgeetdhillon) or send me an [Email](mailto:ravgeetdhillon@gmail.com).

— [Ravgeet](https://www.ravgeet.in/), *Full Stack Developer and Technical Content Writer*
Public Solving: Making a CSS art Christmas tree
Tags: css, webdev, watercooler
Published: 2021-12-23 06:05:00

Today's puzzle is a bit different than anything we did before, as we are asked to hand over our version of a Christmas tree in CSS art.

[You can find the complete puzzle here.](https://github.com/devadvent/puzzle-12)

Coincidental I wrote a whole article on this approach last year, as there are many ways to achieve this.
But all come with some pitfalls.

[Read the article on creating tree Christmas threes in CSS](https://daily-dev-tips.com/posts/three-christmas-trees-in-css/)

## Creating a CSS Christmas Tree

For this puzzle, I've decided to use the clip-path version. During my research last year, this was the cleanest and most versatile version.

To set it up we need the following divs:

```html
<div class="xmas-tree">
  <div class="shadow"></div>
  <div class="layer"></div>
  <div class="shadow"></div>
  <div class="layer"></div>
  <div class="layer"></div>
</div>
```

As you can see, there are three layers and two shadow layers.

As for the main wrapper I've decided to not recalculate the clip-paths but rather use a scale transform to make it a bit bigger:

```css
.xmas-tree {
  position: relative;
  margin-top: 20px;
  transform: scale(3, 3);
  top: -250px;
  left: -150px;
}
```

> Note: this is the cheap way of doing it 😅 *(We should have opted to change the clip-paths)

Then the layer element will actually do most of the work to make a conic shape.

```css
.xmas-tree .layer {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: green;
  clip-path: polygon(50% 5%, 100% 85%, 100% 100%, 0 100%, 0 85%);
}
```

This works because it actually creates a square, this gets converted to a circle, and we cut a sphere out.

![CSS Clip path in action](https://cdn.hashnode.com/res/hashnode/image/upload/v1606977063258/5OgLt-Mpe.jpeg)

The shadow layer uses the same pattern, but we slightly offset the conic sphere.

```css
.xmas-tree .shadow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: black;
  clip-path: polygon(50% 0%, 0% 110%, 95% 100%);
  margin-top: 20px;
  margin-left: 10px;
}
```

However, now all the layers are stacked on top of each other. So let's offset them all a bit.

```css
.xmas-tree div:nth-child(1) {
  transform: translateY(5px);
  z-index: 3;
}
.xmas-tree div:nth-child(2) {
  transform: translateY(0);
  z-index: 3;
}
.xmas-tree div:nth-child(3) {
  transform: translateY(40px);
  z-index: 2;
}
.xmas-tree div:nth-child(4) {
  transform: translateY(35px);
  z-index: 2;
}
div:nth-child(5) {
  transform: translateY(70px);
  z-index: 1;
}
```

And for the cherry on top, let's add an emoji star to our tree.

```css
.xmas-tree:before {
  content: '⭐️';
  position: absolute;
  left: 42px;
  z-index: 10;
  top: -9px;
}
```

Resulting in the following:

{% codepen https://codepen.io/rebelchris/pen/OJxbbxQ %}

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Twelve-Factor App Methodology : Simplified
Tags: webdev, microservices, saas, cloudnative
Published: 2021-12-23 05:59:07

The Twelve-Factor App is a methodology that defines a set of steps (twelve steps) to building the software-as-a-service apps. Basically, when we create a microservices app and run it in a cloud environment, we are creating a software-as-a-service because our software is exposed as a service to the end-user. An application totally compliant with the cloud is called a cloud-native application.

The following are the twelve factors:

1. Codebase: One codebase is tracked in the revision control, while many deploy.

2. Dependencies: Explicitly declare and isolate dependencies.

3. Config: Store config in the environment.

4. Backing services: Treat the backing services as attached resources.

5. Build, release, run: Strictly separate the build and run stages.

6. Processes: Execute the app as one or more stateless processes.

7. Port-binding: Export the services via port binding.

8. Concurrency: Scale-out via the process model.

9. Disposability: Maximize robustness with a fast startup and graceful shutdown.

10. Dev/prod parity: Keep development, staging, and production as similar as possible.

11. Logs: Treat logs as event streams.

12. Admin processes: Run admin/management tasks as one-off processes.

The twelve-factors is a guide to develop applications capable to take advantage of cloud computing. In other words, when we follow all the steps of the twelve-factors guide, our applications or microservices are a cloud-native application and is totally compliant with the cloud computing approach.

Hope this was helpful.
Self-Taught Developer Journal, Day 23: TOP JavaScript Fundamentals Part 1 - Numbers cont.
Tags: webdev, beginners, codenewbie, devjournal
Published: 2021-12-23 05:59:05

Today I learned...

## Integer Precision
Integers are accurate up to 15 digits. 

For decimals, the maximum number of digits is 17. After that, the number will round up.

There is also the BigInt data type that can represent integers that are too big for the Numbers data type.

## Float Precision
*"The floating point is not always 100% accurate."*
In the W3School example, 

    let x = 0.2 + 0.1;

The output is 0.30000000000000004, not 0.3. To solve it, multiplying and dividing will work.

    let x = (0.2 * 10 + 0.1 * 10) / 10;

## Adding Numbers and Strings
It seems like the most important thing to remember here is that the **"+"** operator in JavaScript is used for both addition (numbers) and concatenation (strings). 

* Two numbers added will be a number.
* Two strings added will be a string concatenation.
* A string and a number added will be a string concatenation regardless of order (string + number or number + string).

### Reminder
JavaScript interpreter works from left to right. 

    let x = 10;
    let y = 20;
    let z = "30";
    let result = x + y + z;

Output is 3030 because 10 + 20 are added first then the string is concatenated.

## Numeric Strings
For numeric strings, *"JavaScript will try to convert strings to numbers in all numeric operations"*. 

## NaN (Not a Number)
NaN is *"a JavaScript reserved word indicating that a number is not a legal number."* There is a isNan() function to identify if the value is not a number. NaN is a number type.

## Resources
[The Odin Project](https://www.theodinproject.com/paths/foundations/courses/foundations/)
https://www.w3schools.com/js/js_numbers.asp
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
Do not overuse Machine Learning: Why?
Tags: machinelearning, ai, datascience
Published: 2021-12-23 05:54:53

Machine Learning (ML) is the subfield of this big, broad-sweeping category known as Artificial Intelligence. Machine learning gives machines the ability to improve their performance over time, without explicit intervention or help from a human being. With all these functionalities and Machine Learning magic, we need to be extra careful when applying machine learning in the industry. This is because machine learning problems are different from traditional problems, and machine learning is time-consuming too.

Let’s look at some reasons as to why one shouldn’t overuse Machine Learning.

- Given a problem, try not to think if it can be solved using machine learning first. Instead, try thinking if I have enough data and if the problem can be solved using a few business rules.

- If not, and there is scope for machine learning, try and check for AI services available with Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, and so on. But, again, there are a lot of these readymade services available which take care of the infrastructure and scaling; all you need to do is API calls.

- Sometimes you train a custom model with these service providers too. It’s easier to maintain, reliable, and scales, which is important for industry problems.

- Even after this, if you feel your problem is specific and no service providers provide readymade solutions, try AutoML first. Then, we will go through a few AutoML examples. AutoML lets you create ML models easily and quickly and mostly do the tuning themselves.

- Finally, after exhausting all these options, if you still feel you need your models, try and do it over a cloud VM or container. Again, those are easier to maintain, they are reliable, and they scale.

- But some companies don’t trust cloud providers (their data needs to be secure and in-house) and do all of this in-house. In that case, be aware of the CI/CD requirement and production needs. Allocate time and resource for that also and not just model building.

Here’s what we recommend when you come across any business problem:

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

Hope this was helpful.
A web3 project to help you enter the crypto world
Tags: blockchain, web3, showdev
Published: 2021-12-23 05:48:49

---
title: A web3 project to help you enter the crypto world
published: true
description: 
tags: blockchain,web3,showdev
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/icnn5bw7f0ac0i7czquv.png
---
https://bboxdao.com/

I have built a project to help people learn and enter the world of cryptocurrency. I hope some of you can join us.

Features supported now:

- Crypto News
- Crypto Jobs
- Issue Tokens(ERC20/ERC721)
- NFT Storage
- NFT Gallery
- Token approval
- Gas Now