teleren/devto huggingface dataset:
Abordagem Innersource nas organizações
Tags: git, github, opensource, braziliandevs
Published: 2023-03-29 14:17:29

Innersource é uma abordagem para o desenvolvimento de software que aplica conceitos de código aberto para projetos internos de uma empresa. Isso significa que as equipes de desenvolvimento compartilham seu código e colaboram uns com os outros, assim como acontece em projetos de código aberto. O objetivo é aproveitar a colaboração e a inovação que ocorrem em projetos de código aberto e aplicá-los a projetos internos.

Algumas das vantagens do innersource incluem:

- Melhoria da colaboração entre equipes
- Aumento da reutilização de código
- Melhoria da qualidade do código
- Redução de duplicação de esforços
- Aumento da transparência e da responsabilidade

O innersource é uma abordagem que pode ser útil para empresas que desejam aproveitar as vantagens da colaboração e do código aberto, mas que precisam manter algum grau de controle sobre seus projetos internos. No entanto, implementar o innersource pode ser desafiante, pois requer mudanças nas culturas e processos da empresa, bem como em sua abordagem para o desenvolvimento de software.

O GitHub mantem um material bem legal sobre o assunto =D

[https://resources.github.com/innersource/fundamentals/](https://resources.github.com/innersource/fundamentals/)

Alem disso existe a comunidade InnerSource Commons que foca em discuções e volução do tema. 

[https://innersourcecommons.org/](https://innersourcecommons.org/)

Para participar ativamente você pode utilizar o slack da comunidade: [innersourcecommons.slack.com](https://innersourcecommons.slack.com/join/shared_invite/zt-1msf8vcqu-fYEHcyI1l4eSPq6rGprMXA#/shared-invite/email)

Por ultimo, e mantida uma pesquisa para entender a evolução do tema chamada State of InnerSource, a ultima edição ocorreu em 2021 e pode ser acessada por esse [link](https://innersourcecommons.org/documents/surveys/State.of.InnerSource.Report.2021.pdf)
Game Go88 Pro - Link tải Game bài GO88 ios/Apk Androids
Published: 2023-03-29 14:16:33

https://gamego88.pro/
Go88 là một cổng game đổi thưởng đẳng cấp số 1 Châu Á ✔️ Kho game đa dạng ✔️ Hệ thống game đổi thưởng xanh chín ✔️ Tỷ lệ đổi thưởng 1:1
#go88 #gamego88 
smphlhnuthxng@gmail.com
https://www.slideshare.net/Go882/
https://getpocket.com/@0g0A0g03d5e9aTd578pf897p24T5d7fv2e5B66k140zTimV3958dkb17r44dbMn4
https://www.blogger.com/profile/02165669221900063271
Tailwind not working in React-App
Tags: programming, frontend, react, reactnative
Published: 2023-03-29 14:05:42

Many people come across a challenge where tailwind css will not be working in a react-app. I have come up with the solution after having same challenge for so many times, I got a permanent solution. 

Just add the following code to your 

`tailwind.config` file

```
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {},
  },
  plugins: [],
};
```
Done.Happy!                                           T
When try to start nestjs, stay in "ConfigModule dependencies"
Tags: nestjs
Published: 2023-03-29 14:02:52

Im using nestjs in windows, and I execute:

npm install
npm run build
npm ls typescript
yarn start:dev

But stay in:
[Nest] 25692  - 29/03/2023, 8:53:04     LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[Nest] 25692  - 29/03/2023, 8:53:04     LOG [InstanceLoader] JwtModule dependencies initialized +1ms
[Nest] 25692  - 29/03/2023, 8:53:04     LOG [InstanceLoader] EmailModule dependencies initialized +0ms
[Nest] 25692  - 29/03/2023, 8:53:04     LOG [InstanceLoader] ConfigModule dependencies initialized +1ms

And not run.
Paracetamol.js💊| #213: Explica este código JavaScript
Tags: javascript, spanish, webdev, programming
Published: 2023-03-29 13:51:23

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```js
const isInteger = (x) => Number.isInteger(x);
const isInteger2 = (x) => x % 1 === 0;

console.log(isInteger(2.1))
console.log(isInteger2(-2))
```

- A. `true`, `true`
- B. `false`, `false`
- C. `false`, `true`
- D. `true`, `false`  


Respuesta en el primer comentario.

---
Did You Know? AWS profiles
Tags: aws, awstidbits, didyouknow
Published: 2023-03-29 13:51:22

## Do you have multiple accounts and are starting to use the CLI?

Use AWS named profiles for the AWS CLI to interact with different accounts.

#### Using named profiles:

To set up a new profile:  
`aws configure --profile myprodprofile`   
To use a specific profile:  
`aws s3 ls s3://mybucket --profile myprodprofile`    
	
[Reference](https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/keys-profiles-credentials.html) 

Now you can store credentials from many accounts and use them in the same session!


[Reference](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)


## Now You Know!
Did You Know? Multi-Account creation
Tags: aws, didyouknow, awstidbits
Published: 2023-03-29 13:49:07

## Looking to create multiple AWS accounts but only have one gmail?

If you have a gmail account, for example myemail@gmail.com, appending a "+" sign to that account will result in an address that still delivers mail to your original account. You can also do this by adding "." anywhere in the email since gmail ignores ".". 
This will allow you to have multiple AWS accounts under the same email account. 

Use this to create multiple AWS accounts that all pool into the same gmail account.

**Example:**

- myemail@gmail.com ==> Main AWS account.   
- myemail+prod@gmail.com ==> Production AWS account.  
- myemail+dev@gmail.com ==> Development AWS account.  
- myemail+test@gmail.com ==> Testing AWS account. 


Use this trick to separate your development projects or to experiment with AWS organizations or multi-account access!

[Reference](https://gmail.googleblog.com/2008/03/2-hidden-ways-to-get-more-from-your.html)


## Now You Know!
Did You Know? AWS Budgets
Tags: aws, awstidbits, didyouknow
Published: 2023-03-29 13:38:43



# Ever forgotten to delete a resource you were experimenting with on AWS and got an unpleasant bill at the end of the month?

Reduce the chances of that happening by setting up a budget on all your accounts. You can receive notifications when your reach certain thresholds as Well!
 
### Setting a budget: 

To create a cost budget:    

1. Sign in to the AWS Management console.   
2. Open the AWS [Cost Management console](https://console.aws.amazon.com/cost-management/home).   
3. In the navigation pane, choose "Budgets".   
4. At the top of the page, choose "Create budget".   
5. Fill in the form and Save changes!   
6. Sleep better knowing your money is safe from mistakes!
	
[Reference](https://docs.aws.amazon.com/cost-management/latest/userguide/create-cost-budget.html) 
	

Now you have notifications that alert you if your spending threshold is reached!


[Reference](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html)


## Now You Know!
Did You Know? Lambda Warm start
Published: 2023-03-29 13:45:21

## Lambda Warm start
Lambda uses the same execution environment for separate invocations of the same function.

This process, called "warm start", is great because it means that consecutive runs of your function are faster than the first invocation. However, you need to be careful about Global variables and the possibility that what is thought of as an isolated run might not be as isolated as you thought.


[Reference](https://docs.aws.amazon.com/lambda/latest/operatorguide/execution-environments.html)


## Now You Know!
Did You Know? IAM precedence
Tags: aws, awstidbits, didyouknow
Published: 2023-03-29 13:42:59

# Do you have several AWS credentials and are confused which one is being used?

AWS has a defined Default Credential Provider Chain which dictates the order of which credentials it uses in the case where there are several.
 

The Default Credential Provider Chain Order for Java SDK is:

1. Environment variables: "**AWS\_ACCESS\_KEY\_ID**" and "**AWS\_SECRET\_ACCESS\_KEY**".   
2. Java system properties: **aws.accessKeyId** and **aws.secretAccessKey**. 
3. Web Identity Token credentials from the environment or container.
4. The default credential profiles file: typically located at ~/.aws/credentials
5. Amazon ECS container credentials: loaded from the Amazon ECS if the environment variable AWS\_\CONTAINER\_CREDENTIALS\_RELATIVE\_URI is set.  
6. Instance profile credentials: used on EC2 instances, and delivered through the Amazon EC2 metadata service.


[Reference](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html)


## Now You Know!
Iniciando em linguagem de programação
Published: 2023-03-29 13:42:11

Se você está começando agora a aprender uma linguagem de programação, parabéns! Você está prestes a embarcar em uma jornada cheia de desafios e muita diversão.

A primeira coisa que você precisa saber é que programação não é nada difícil ou reservado apenas para os "nerds". Na verdade, programação é como um jogo de quebra-cabeça: você tem que juntar as peças certas para criar algo incrível.

E não se preocupe se você não entende tudo de primeira. Todos nós já estivemos no seu lugar. O segredo é ter paciência e perseverança. Aprender programação é um processo contínuo e leva tempo.

Outra coisa importante é encontrar sua motivação. Por que você quer aprender a programar? Talvez seja para criar um aplicativo que resolva um problema em sua comunidade ou até mesmo para construir um jogo que você sempre quis jogar.

Seja qual for sua motivação, mantenha-a em mente sempre que se sentir frustrado ou desmotivado. Acredite em si e em sua capacidade de aprender e evoluir.

Para começar, escolha uma linguagem de programação que seja recomendada para iniciantes, como Python ou JavaScript. Há vários cursos online gratuitos que podem te ajudar a aprender o básico.

Lembre-se de praticar sempre que puder. Crie pequenos projetos e explore as possibilidades da linguagem. Não tenha medo de errar, pois isso faz parte do processo de aprendizagem.

Por fim, encontre uma comunidade de programadores para trocar experiências e tirar dúvidas. A internet está repleta de fóruns e grupos em redes sociais onde você pode encontrar pessoas que estão na mesma jornada que você.

Aprender programação pode ser desafiador, mas também é uma das habilidades mais valiosas que você pode adquirir atualmente. Então, vá em frente e divirta-se criando coisas incríveis!
How to download a text using js
Published: 2023-03-29 13:39:44

Hello:)
You can easily download a custom text using js.

```
function Download(){
    var name = "file name"

    const content = "text";
    const element = document.createElement('a');
    const blob= new Blob([content], {
        type:'plain/text'
    });
    const fileurl = URL.createObjectURL(blob);
    element.setAttribute('href', fileurl);
    element.setAttribute('download', name+".html");
    element.style.display = 'none';
    document.body.appendChild(element);
    element.click();

    document.body.removeChild(element);
}
```
This function will download a file as a text file
Did You Know? Account Aliases
Tags: aws, didyouknow, awstidbits
Published: 2023-03-29 13:34:26


# Having a hard time remembering your AWS 12 Digit account ID?

You can create an account Alias that would be a lot easier to remember!

### Via the CLI
To create a new alias:  
		`aws iam create-account-alias --account-alias mynewalias`   
	 To list account aliases:  
		`aws iam list-account-aliases`    
	To delete account aliases:   
	`aws iam delete-account-alias`   
	[Reference](https://docs.aws.amazon.com/cli/latest/reference/iam/index.html#cli-aws-iam)

### Via the AWS Console

1. Sign in to the AWS Management Console.  
2. Open the [IAM console](https://console.aws.amazon.com/iam/).  
3. In the navigation pane, choose Dashboard.     
4. In the right-hand pane under AWS account, choose Customize. If an alias already exists, then choose Edit.  
5. Save changes. 
  

Now you can use your Alias to sign into your account and can avoid the 12 Digit ID!


[Reference](https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-alias.html)


## Now You Know!
𝐓𝐡𝐫𝐢𝐥𝐥𝐞𝐝 𝐭𝐨 𝐀𝐧𝐧𝐨𝐮𝐧𝐜𝐞 𝐚 𝐅𝐚𝐧𝐭𝐚𝐬𝐭𝐢𝐜 𝐂𝐨𝐥𝐥𝐚𝐛𝐨𝐫𝐚𝐭𝐢𝐨𝐧! ✨
Tags: solidity, solidityaudit
Published: 2023-03-29 13:33:42

**CredShields joins forces with BuildBear Labs to revolutionize the world of DAPP development!**

This integration empowers all smart contracts deployed to your customized Testnet using BuildBear to undergo vulnerability scans through SolidityScan, powered by CredShields.

𝐁𝐮𝐢𝐥𝐝𝐁𝐞𝐚𝐫: Create & test DAPPs at scale
𝐂𝐫𝐞𝐝𝐒𝐡𝐢𝐞𝐥𝐝𝐬: Ensure top-notch security with SolidityScan

This partnership means our developers can rest easy knowing their contracts are secure and trustworthy. We're proud to offer this extra layer of protection and can't wait to see what our amazing community of developers will build next! 🚀

For more information, read [here](https://medium.com/buildbear/announcement-credshields-and-buildbear-integration-making-web3-secure-4f0dbe6b392e)
Welcome Thread - v218
Tags: welcome
Published: 2023-03-29 13:23:43

---
title: Welcome Thread - v218
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
canonical_url: 
---

![the word hello flashing on a blue and green background with a hand drawn heart underneath](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/smhg1rxdkzyl0qzf5g99.gif)

---

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Content Collections are a welcome addition to my Astro setup
Tags: astro
Published: 2023-04-09 11:06:21

---
title: Content Collections are a welcome addition to my Astro setup
published: true
date: 2023-03-29 13:15:00 UTC
tags: astro
canonical_url: https://rachsmith.com/content-collections-astro/
---

All of the notes on this site are built from markdown files in an [Astro](Astro.build) static site. As of [Astro 2.0](https://astro.build/blog/astro-2/), you can effectively add type validation to your markdown files, via a feature called Content Collections.

I must confess I don't enjoy TypeScript all that much. I can see how and why it is helpful in certain circumstances, but I'm not in the "make everything TypeScript because _TyPeScRiPt iS tHe fUtUre_" demographic.

It makes sense for this usecase of improving the experience of debugging issues in your markdown files. I'm currently working on a little redesign of this site, and having the note content typed has made working on it faster and easier.

## How I upgraded my site to use Content Collections

### Updated Astro

`npm install astro@latest`

### Moved all the notes to `src/content/notes`

Previously there were in a a directory at `src/notes`, but Content Collections need to be kept in the `content` directory.

### Added type definitions

For my notes collection in `src/content/config.js`

```
// 1. Import utilities from `astro:content`
import { z, defineCollection } from 'astro:content';
// 2. Define your collection(s)
const notesCollection = defineCollection({
  schema: z.object({
    title: z.string(),
    tags: z.array(z.string()),
    added: z.string(),
    updated: z.string(),
    excerpt: z.string().nullable(),
  })
});
// 3. Export a single `collections` object to register your collection(s)
// This key should match your collection directory name in "src/content"
export const collections = {
  'notes': notesCollection,
};

```

### Replaced the usage of `Astro.glob` with `getCollection`

The old way of getting all my notes:

```
const notes = await Astro.glob(`../notes/*.md`);

```

The new way:

```
import { getCollection, getEntryBySlug } from 'astro:content';

const notes = await getCollection('notes');

```

`Astro.glob` returned an array objects with a `frontmatter` property. `getCollection` returns an array of objects with a `data` property, so I had to update the places where I was accessing the frontmatter.

For example

```
note.frontmatter.title

```

is now

```
note.data.title

```
AWS account best practices
Published: 2023-03-29 13:14:30

This is a living document that will keep growing to highlight AWS Best Practices!

#### Create an admin user and avoid using the root account
 
The root user has full privileges to the AWS account. For security purposes, it is recommended to limit the use of the root account. For daily processes, you can set up an [administrator account](https://docs.aws.amazon.com/singlesignon/latest/userguide/get-started-assign-account-access-admin-user.html) instead.
    
 [Reference](https://docs.aws.amazon.com/accounts/latest/reference/best-practices-root-user.html)

#### Enable MFA on user sign-ins, especially for the root user
    
  Multi-factor Authentication (MFA) allows you to secure your accounts and reduces the risk of being hacked.
    
  [Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_enable.html)

#### Grant Least Privilege Access Required

For better security, set up your IAM policies to allow only the required tasks.
     
   [Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege)
   
#### Set Up AWS budgets and account monitoring

To avoid unexpected bills, add budgets and notifications on each account.
          
   [Reference](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-best-practices.html)
3 Analogies to Describe TypeScript 👩‍💻
Tags: webdev, javascript, typescript, programming
Published: 2023-03-29 13:07:16

***TypeScript explained analogously.***

TypeScript is quite a popular programming language, especially among web developers. It’s gained a lot of traction over the last few years, and some developers swear by it over JavaScript. Regardless of your feelings (if any) on the language, here are three analogies to help you gain a bit of understanding of the TypeScript language.



## 1st Analogy

TypeScript can be compared to a global positioning system.

* **Before** a driver 🚗 leaves their house, route **checking** occurs through a GPS to ensure the driving route is as optimal **as possible**.

* **Before** a developer 👩‍💻 runs their program, type **checking** occurs through a static type system to ensure the code is as error-free **as possible**.

![](https://cdn-images-1.medium.com/max/2000/0*VYRrJvHjJvoBwwhq)

---

## 2nd Analogy

TypeScript is like a parachute for developers.

* A parachute gives a skydiver 🪂 the **confidence** they need to know they can fall out of a plane ✈️ **safely** and without danger.

* TypeScript gives developers 👨‍💻 the **confidence** they need to know they can run their code 💻 **safely** and without errors.

![](https://cdn-images-1.medium.com/max/2000/0*puxwhwn0k36EzX2U)

---

## 3rd Analogy

TypeScript can be thought of as the more disciplined sibling of JavaScript.

* TypeScript is **good at** following specific typed rules and could result in **bug** catches. 🥅

* JavaScript is **good at** not following specific typed rules and could result in **bug**attacks! 🐛

![](https://cdn-images-1.medium.com/max/2000/0*OzG3-dU6fTFhSz4z)

---

## Video

{% embed https://youtube.com/shorts/9VQ1qNXimOY %}

---

*Courtney Yatteau, a Developer Advocate at Esri, wrote this article. The opinions in this article are solely Courtney’s opinions and do not necessarily represent the postings, strategies, or opinions of her employer. If you have any feedback, please like and/or comment. Also, you can contact Courtney through [Twitter](https://mobile.twitter.com/c_yatteau) if you have any questions or comments that you’d prefer to send privately.*
Storage with Supabase
Tags: webdev, javascript, beginners, programming
Published: 2023-03-29 13:03:50

{% embed https://www.youtube.com/watch?v=cN2RE6EpExE %}

Supabase is a popular cloud-based platform that provides developers with a range of tools to create and manage their applications. One of the essential features offered by Supabase is storage, which enables developers to store and manage files and data in the cloud.

Supabase storage provides developers with a simple, yet powerful, way to store and manage their application data. Whether you need to store images, videos, or other files, Supabase storage can help you do it with ease. With Supabase storage, developers don't need to worry about managing their own storage infrastructure, as Supabase takes care of everything.

Supabase storage supports various file formats, including images, videos, and documents, making it a versatile storage solution. Developers can store files of up to 5GB in size, making it suitable for both small and large applications.

One of the most significant advantages of using Supabase storage is that it's fully integrated with other Supabase features, such as authentication and database management. This integration makes it easy for developers to manage their application data, access control, and storage all in one place.

Supabase storage is also secure, with built-in access control and encryption. This security ensures that only authorized users can access files, and all files are encrypted at rest, providing additional security for sensitive data.

To use Supabase storage, developers need to create a new storage bucket and upload their files. They can then manage these files using the Supabase console or API. Developers can also set access control rules, such as allowing or denying access to specific files or folders.

In summary, Supabase storage is a powerful, versatile, and secure solution for storing and managing application data. Its integration with other Supabase features makes it easy for developers to manage their application data, access control, and storage all in one place. Supabase storage is suitable for both small and large applications and supports various file formats. Its built-in security ensures that application data is always protected, making it an ideal storage solution for developers.

Guillaume Duhan