teleren/devto huggingface dataset:
Why Code?
Tags: beginners, programming, career, codenewbie
Published: 2023-02-06 12:32:28

> “We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology.” - Carl Sagan

Learning to code in today’s world is like learning to read and write or more like learning to draw, to play a musical instrument, to play a sport. Learning to code is like learning to find solutions. Job of a coder is not to write code for machines, but to find a solution for people to make life easy.

There used to be a time when we had problem like how to stay connected with friends who lived in another part of the world, in another city. By creating Facebook, Mark Zuckerberg just didn’t wrote thousands line of codes, but actually solved the problem of millions of people. This is just one example, there are plenty.

We should study code, for the same reason we should study mathematics, chemistry, economics, philosophy and ethics, local and world history. We study these subjects to have a better understanding of our surroundings and to provide better solutions to the problems.

Learning how to code will also helps us understand the world in a better way. Computer runs the world, and code runs computers. We are dependent on computers, computers are dependent on codes.

Everyone should be able to code, for the same reason that everyone should be able to speak another language. Learning how to code is like learning how to speak with computers effectively. It helps us communicate with computers. It helps in communicating what we want to build or do more effectively.

Coding gives us ability to translate an idea into a prototype.

The mental skills developed by learning to code are supremely useful in many other facets of life. It improves your ability to take a large problem and break it down into a series of smaller tasks. It will improve your decision-making and critical thinking.

Learn to code if you have a desire to understand machines, computers, internet, mobile apps, blogs, websites etc.

I think we should all have a rudimentary understanding of our pervasive technology and how it works, so that we can make more intelligent decisions.

> “Computer Programming is an art, because it applies accumulated knowledge to the world, because it requires skill and ingenuity, and especially because it produces object of beauty.” -Donald Knuth
Flutter App
Tags: flutter, ios, android, animallovers
Published: 2023-02-06 12:31:33

Get ready for some animal fun with our latest [app ](https://www.youtube.com/shorts/ld-VJ0zbC_M)for Android and iOS! Made using Flutter, our Animal Guesses Game lets you test your knowledge of animals by tapping the play button and listening to the sound, then selecting true or false if the given image corresponds. Let the animal guessing begin!
Qual a importância de um DAST em APIs?
Tags: veracode, beginners, tutorial, security
Published: 2023-02-06 12:24:36

DAST (Dynamic Application Security Testing) é uma técnica de teste de segurança que verifica a segurança de aplicações em execução. Um DAST de API é específico para testar a segurança das APIs (Application Programming Interfaces), que são as interface de programação utilizadas para comunicação entre sistemas.

A importância de um DAST de API inclui:
- **Proteção de dados sensíveis**: As APIs geralmente são responsáveis por transmitir dados sensíveis, como informações pessoais, financeiras e de saúde. Um DAST de API ajuda a garantir que esses dados estejam seguros durante a transmissão.
- **Identificação de vulnerabilidades**: Um DAST de API pode identificar vulnerabilidades que podem ser exploradas por atacantes para obter acesso não autorizado ou interferir no funcionamento do sistema.
- **Melhoria da segurança**: A realização regular de testes de segurança com um DAST de API ajuda a garantir que a segurança da API esteja sempre atualizada e no nível mais alto possível.
- **Conformidade**: Algumas normas de segurança, como o PCI DSS, exigem que as APIs sejam testadas regularmente. Um DAST de API ajuda a garantir a conformidade com essas normas.

Em resumo, um DAST de API é importante para garantir a segurança das APIs, proteger dados sensíveis, identificar vulnerabilidades, melhorar a segurança geral e garantir a conformidade com normas de segurança aplicáveis.

Para saber mais sobre a Veracode e solicitar um ambiente de testes, entre em [contato](https://www.m3corp.com.br/contato/).
Por que unir SAST e SCA?
Tags: veracode, beginners, tutorial, security
Published: 2023-02-06 12:24:27

Unir SAST (Static Application Security Testing) e SCA (Software Composition Analysis) pode ser benéfico por várias razões, incluindo:
- **Melhor cobertura de segurança**: Ao combinar SAST e SCA, é possível obter uma visão mais completa e abrangente da segurança do aplicativo, cobrindo tanto o código fonte quanto as bibliotecas e componentes de terceiros utilizados.
- **Identificação de vulnerabilidades mais precisa**: O SAST identifica vulnerabilidades no código fonte enquanto o SCA analisa bibliotecas e componentes de terceiros. Juntos, eles ajudam a identificar vulnerabilidades que podem ser facilmente ignoradas por um método de teste sozinho.
- **Maior eficiência**: Ao unir SAST e SCA, é possível evitar a realização de testes duplicados e aumentar a eficiência dos testes de segurança.
- **Maior facilidade de gerenciamento**: Ao unir SAST e SCA em uma única ferramenta, é possível gerenciar os resultados dos testes de segurança de maneira mais fácil e eficiente.
- **Melhoria da equipe de desenvolvimento**: Ao fornecer a equipe de desenvolvimento uma visão abrangente da segurança do aplicativo, é possível identificar e corrigir vulnerabilidades mais rapidamente e melhorar a segurança do aplicativo como um todo.

Em resumo, a combinação de SAST e SCA oferece uma cobertura mais abrangente e precisa da segurança do aplicativo, aumenta a eficiência dos testes de segurança, é mais fácil de gerenciar e ajuda a melhorar a equipe de desenvolvimento.

Para saber mais sobre a Veracode e solicitar um ambiente de testes, entre em [contato](https://www.m3corp.com.br/contato/).
SAST, SCA ou DAST?
Tags: veracode, beginners, tutorial, security
Published: 2023-02-06 12:24:16

DAST (Dynamic Application Security Testing), SAST (Static Application Security Testing) e SCA (Software Composition Analysis) são três tipos diferentes de ferramentas de teste de segurança de aplicativos. 
Aqui estão algumas diferenças entre eles:
- **Momento do teste**: SAST é realizado durante o desenvolvimento de um aplicativo, enquanto que DAST é realizado depois que o aplicativo foi implantado e está em funcionamento. SCA é realizado antes da implementação, para identificar as bibliotecas e componentes de terceiros que estão sendo usados no desenvolvimento de um aplicativo.
- **Abordagem de teste**: SAST analisa o código-fonte do aplicativo para identificar vulnerabilidades, enquanto DAST simula ataques reais contra o aplicativo em execução. SCA verifica o uso de bibliotecas e componentes de terceiros em um aplicativo para identificar quaisquer vulnerabilidades conhecidas.
- **Visibilidade**: SAST oferece uma visão detalhada do código-fonte, enquanto DAST oferece uma visão do comportamento do aplicativo em execução. SCA oferece uma visão das bibliotecas e componentes de terceiros que estão sendo usados em um aplicativo.
- **Complexidade**: SAST é uma ferramenta mais simples de usar, enquanto DAST é mais complexo e requer mais conhecimento técnico. SCA é fácil de usar, mas pode requerer mais tempo para analisar todos os componentes de terceiros em um aplicativo.

Em geral, é recomendável usar uma combinação de SAST, DAST e SCA para obter uma visão abrangente da segurança de um aplicativo.

Para saber como a Veracode e a M3Corp podem lhe ajudar em seu programa de segurança, entre em [contato](https://www.m3corp.com.br/contato/).
more methods to format a usb-stick
Published: 2023-02-06 12:23:34



Currently, many many ppl tell me that the best filesystem to share content between Windows and Linux is the so called exFAT filesystem. Well the told me that specially on USB pendrives and SD cards. exFAT is, roughly speaking  the winner among all systems,


exFAT seems to be a kind of a  revision of FAT32 without the 4GB max file size limitation. 

Well is the best method to do that - with exFAT !? 



Btw: if we have no exFAT on the machine - then we have to add it 

$ sudo apt install exfatprogs # Debian/Ubuntu
$ sudo dnf install exfatprogs # Red Hat/Fedora/CentOS
$ sudo pacman -S exfatprogs # Arch Linux/Manjaro
Note: On systems with older kernels, use exfat-utils instead of exfatprogs.

From here, we have exactly two options. Use a graphical tool like gparted - which is pretty awful or (better)
 the command line (which is more fun). Find below steps for the latter.


We can go  like so: 

Plug-in the USB pendrive/SD card.
Identify the device. It should be one of /dev/sd?. In a terminal, run the below command which will show connected devices 
and partition mount points. In this example, /dev/sdb is the device, with two partitions, the first of which is mounted.


but well i think to compare different versions - we can go and have a closer look at the options.: 

Step 2: Unmount and Format USB Drive
Unmount the USB drives before formatting. To do so, run this command:


sudo umount /dev/sdb1

Unmounting the USB drive.
After unmounting, format the USB drive using the preferred file system (here we can do a replace sdb1 with the name of our device):

and if we go ahead to format a USB drive with FAT32 file system, use:
sudo mkfs.vfat /dev/sdb1

in order to format a USB drive while using the NTFS file system run:
sudo mkfs.ntfs /dev/sdb1

and yes: if we are to format a USB drive in accordance with the exFAT file system use:
sudo mkfs.exfat /dev/sdb1


the next step the Step 3: Verify USB Drive Formatting
here we have to confirm the formatting process has completed successfully:

sudo fsck /dev/sdb1

fubakky we cab di a a USB drive with no files indicates successful formatting.
Highest Grossing Marvel Movies Of All Time
Published: 2023-02-06 12:20:02

The Marvel Cinematic Universe has produced many successful and beloved films over the years, but some have risen above the rest as the highest-grossing Marvel movies of all time. Here are the top 5:

[Avengers](https://www.marvel.com/movies/avengers-endgame): Endgame (2019) - This epic conclusion to the Infinity Saga is the highest-grossing film of all time, with a worldwide box office total of over $2.798 billion.

[Avengers: Infinity War](https://www.imdb.com/title/tt4154756/) (2018) - This film, which set the stage for Endgame, is the fourth highest-grossing film of all time, with a worldwide box office total of $2.048 billion. If you want to all those movies for free i would recommend you a site **[Skymovies](https://watchmoviesonline.in/skymovies-download-free-movies/)**.

[Spider-Man: No Way Home](https://en.wikipedia.org/wiki/Spider-Man:_No_Way_Home) (2021) - The latest installment in the Spider-Man franchise, No Way Home brought back fan-favorite characters from previous films and introduced new elements to the Spider-Man mythos. With a worldwide box office total of $1.910 billion, it is the sixth highest-grossing film of all time.

[Black Panther](https://www.youtube.com/watch?v=xjDjIWPwcPU) (2018) - This cultural phenomenon broke records and made history as the first superhero film with a predominantly black cast and crew. With a worldwide box office total of $1.346 billion, it is the ninth highest-grossing film of all time.

[Avengers: Age of Ultron](https://www.rottentomatoes.com/m/avengers_age_of_ultron) (2015) - The second Avengers film brought together Earth's Mightiest Heroes once again to face off against a powerful artificial intelligence. With a worldwide box office total of $1.402 billion, it is the eighth highest-grossing film of all time.

These films represent some of the best and most successful entries in the Marvel Cinematic Universe, and they continue to be beloved by fans around the world. Whether you're a longtime Marvel fan or just getting into the franchise, these films are a great place to start.
Do you have an infinitely growing database? I have. (How to use SQLite with Ceph)
Published: 2023-02-06 12:16:32

---
title: Do you have an infinitely growing database? I have. (How to use SQLite with Ceph)
published: true
description: We look into setting up an RBD pool and running an SQLite database directly against the cluster. We check what languages have built-in support and how to work with the tools available.
tags:
cover_image: https://i.ytimg.com/vi/FXFJgnx1Pgw/maxresdefault.jpg
---

{% youtube FXFJgnx1Pgw %}

We look into setting up an RBD pool and running an SQLite database directly against the cluster. We check what languages have built-in support and how to work with the tools available.
JavaScript Function Types
Tags: javascript
Published: 2023-02-06 12:06:23

* Function declaration
* Function expression
* Arrow function
* Immediately Invoked Function Expression (IIFE)

#### Function declaration
> It starts with keyword function. () is the grouping operator.
```
function name(){}
```

#### Function expression
> It's used in statements, like assigning a function to a variable.
```
const great = function () {...}
great()
```
#### Arrow function
> It's introduced since ES6, and used to shorten the code

```
const great = () => {}
```
#### Immediately Invoked Function Expression (IIFE)
> An IIEF is a JavaScript function that runs as soon as it is defined.
> IIFE contains two major parts
> 1. The first is the anonymous functions with lexical scope enclosed within the Grouping Operator. This can avoid polluting the global scope
> 2. The second part creates the immediately invoked function expression (), the JavaScript engine will directly interpret the function


```
(function(){})()
(()=>{})()
```
Vue router with typescript Part 2
Tags: vue, webdev, javascript, vuerouter
Published: 2023-02-06 11:53:31

Before I start explaining how to use the vue router in a project, I'll explain what routes are and how they work for SPA users.

---


## What is a SPA (Single Page Application)?

SPA are web applications in which the user interacts in only one page, that is, when performing some action on the page it will not need to be completely reloaded.

_No SPA (No Single Page Application)_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3r571aaua1nrltqgabcm.png)
When an application is not a SPA and the user tries to go to the profile tab, the page is completely reloaded.

_SPA (Single Page Application)_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/goqbi2drtaeau7lp7wga.png)
Twitter is a SPA application where when clicking on the profile or any other part of the page, the page will not be completely reloaded, but only what needs to be changed will be loaded, but for that it is necessary to configure a routing system.

---

## Explanation Scenario

Let's create a fictitious scenario where we have an application with a top menu with 3 options: Home, Users and Courses.

When clicking on one of these three items, it is necessary to load a content below the menu according to what was clicked.

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

Having known the scenario, the first thing we can realize is: "The menu will not change at any time". Knowing this then only the content must be changed, so this is a case where we can use routes.

---

## What does vue-router do?

Still using the scenario created and thinking only about using vue, what would you do? when clicking on a menu item the developer would show the corresponding component.

With the use of vue-router in your project, this component modification logic is carried out by vue-router, in addition to being able to perform other functionalities such as: validations, route configurations and child routes (I will explain in the future).


---


I'll be back soon to continue explaining about vue-router. Let me know what you think of the post and any questions you have.

See you later.
What are Route Tables on AWS VPC?
Tags: aws, vpc, network, security
Published: 2023-02-06 11:34:20

Route tables in Amazon Web Services (AWS) are used to determine how traffic is directed within a Virtual Private Cloud (VPC). They contain a set of rules, known as routes, that specify which network traffic is directed to which network interface.

Each subnet in a VPC must be associated with a route table, which controls the traffic for that subnet. A subnet can only be associated with one route table at a time, but a route table can be associated with multiple subnets. This allows you to have different routing rules for different subnets within a VPC.

A route table consists of a set of rules, called routes, that specify which traffic is directed to which network interface. A route consists of a destination and a target. The destination is the IP range that the traffic is being sent to, and the target is the network interface to which the traffic is being sent to.

There are two types of routes in a route table:

1. Local routes: These routes apply to traffic within the VPC. Every VPC has a default local route that allows traffic to flow between subnets within the VPC.
2. Internet Gateway routes: These routes apply to traffic going to and from the internet. Every VPC has a default Internet Gateway route that allows traffic to flow between the VPC and the internet.

In addition to the default route table, you can create additional custom route tables. This allows you to specify custom routing rules for specific subnets within your VPC. For example, you might want to create a custom route table for a subnet that is hosting a database, to ensure that traffic to and from the database is routed properly.

When you create a new VPC, AWS automatically creates a default route table. This default route table contains a local route and an Internet Gateway route, as described above. You can modify the routes in the default route table, but you cannot delete them.

It is important to properly configure your route tables in order to ensure that traffic is directed correctly within your VPC. Incorrectly configured route tables can lead to network connectivity issues and negatively impact your applications’ performance.

There are a few key things to consider when configuring your route tables:

1. Make sure that you have an Internet Gateway route for any subnet that needs to access the internet.
2. Make sure that you have local routes for any subnets that need to communicate with each other within the VPC.
3. Make sure that you have a default route table, and that it is properly configured.
4. Consider creating custom route tables for specific subnets that have unique routing requirements.

**Conclusion**

In summary, route tables in AWS are used to control the routing of traffic within a VPC. They consist of a set of routes that specify which traffic is directed to which network interface, and they are associated with individual subnets within a VPC. Properly configuring your route tables is important for ensuring that traffic is directed correctly within your VPC and for maintaining the performance of your applications.
Here is a high-level roadmap for learning React.js:
Tags: javascript, react, webdev, beginners
Published: 2023-02-06 11:32:45

**Basic HTML, CSS, and JavaScript**: Before diving into React, it's important to have a strong foundation in the basics of web development.

**JavaScript concepts**: Learn the core concepts of JavaScript such as arrays, objects, loops, functions, and more.

**React Fundamentals**: Start by learning the basics of React, including components, JSX, state, and props.

**React Components**: Learn about functional and class components, lifecycle methods, and how to manage state and props.

**React Hooks**: Learn about React Hooks and how to use them for state management and other tasks.

**React Routing**: Learn about React Router and how to add navigation to your React application.

**React and API**: Learn how to make API calls in React and how to handle API data.

**React and Redux**: Learn about the Redux library and how it can be used for state management in React applications.

**React and Context API**: Learn about the Context API and how it can be used for global state management.

**React and Testing**: Learn how to test React components and how to write unit tests for React applications.

**Advanced React**: Study advanced topics such as server-side rendering, performance optimization, and integrating with other libraries.

Note  However, following this roadmap will give you a solid foundation in React and help you build production-ready applications.
Kubespider: A unified download orchestration system, build your home download center.
Tags: python, nas, docker, bt
Published: 2023-02-06 11:32:32

After several months development, Kubespider v0.1.0 was released. Kubespider aims to build your home download center when you have a server(NAS or Linux server), and normalize all download operations on the server.

##Scenario
- subscribe to all possible tv series websites, you can right-click in chrome and send it to Kubesider, it will download all exits season and subscribe to the next on the server.
![kubespider-usage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b2tupw6binjkmhd5trm2.png)
- Accept general file download tasks(same as before, just right-click and send to Kubespider), like zip, iso file, etc.
- Download the 10 most popular animations on some animation websites.
- Download the 10  hottest MV on youtube every day.
- Download the uploaded images from some websites every day.
- Download any parseable resource with user-defined condition(download when updates, download with trigger: right click in chrome), this needs to implement your personal API.
The project link: https://github.com/jwcesign/kubespider, feel free to give an issue if you have problems.
Laravel 10
Tags: laravel, news
Published: 2023-02-06 11:28:57

Prevista para 7 de Fevereiro de 2023, a versão 10 da conhecida framework Laravel trará diversas funcionalidades e correções.

Os releases, até a versão 8, eram liberados a cada seis meses. Entretanto, essa estratégia mudou a partir da versão 9, lançada em 7 de Fevereiro de 2022.

Essa alteração foi necessária para que o time de desenvolvedores tivesse tempo hábil para implementar e testar todas as funcionalidades, bem como corrigir os bugs mais críticos.

---

A partir da versão 10 da framework, não haverá mais suporte para o PHP 8.0 ou inferiores. A versão mínima do PHP exigida pelo release 10 do Laravel passa a ser 8.1.

De acordo com a documentação oficial, algumas funcionalidades disponíveis no PHP 8.1 já haviam sido implementadas no Laravel 9, como por exemplo o método `array_is_list()`.

O método valida se um determinado **array** é uma lista, e para tal o PHP verifica se:
* o **array** possui um índice numérico
* o índice é sequencial
* o índice começa com 0 (zero)
* o último valor do índice é igual a `count($array) -1`

---

A migração a partir da versão 9 é facilitada através do [Laravel Shift](https://laravelshift.com/shifts). Este serviço é pago, possuindo diversas combinações de upgrade a partir de várias versões do Laravel. 

Inclusive existe a possibilidade de upgrades a partir do [Lumen](https://lumen.laravel.com/docs/9.x) (lembram dele?! :astonished:) para a versão compatível do Laravel. Entretanto, a conversão é limitada e podem haver situações onde o processo não será executado, caso de algumas consultas a bancos de dados.

---

Maiores detalhes acerca deste release podem ser encontrados aqui:
[Laravel 10](https://laravel-news.com/laravel-10).

Até breve. :sunglasses: