teleren/devto huggingface dataset:
Volume on android app
Tags: flutter
Published: 2023-05-30 15:44:49

Hi,

I have a problem with flutter. I'm doing some edits on an app, that use flutter_tts library. I noticed that the volume of that is lower than the volume of other apps, also when the volume of my Android smartphone is setted to max.

I tried this only on Android for now, I seen that the library offer some methods for iOS.

There is a way to resolve that you can suggest me?

I don't know what informations give you in particular, if you need something let me know.

I tried to read documentations of the library, and the code of the class, but I found solutions only for iOS, and I tried to find other library to try to increase the volume of the entire app.

Thanks in advance.
Ni, one solution for all Nodejs package manager
Tags: webdev, javascript, node, beginners
Published: 2023-05-30 15:36:46

When working on multiple projects, it can be difficult to keep track of which package manager is being used, whether it's npm, yarn, or pnpm. This is where the ni package manager comes in handy. ni is a lightweight and efficient package manager that simplifies the management of dependencies in Node.js projects.

## Installing

To get started with ni, you need to install it globally on your system using npm. You can do this by running the following command in your terminal.

```bash
npm i -g @antfu/ni
```
The ni command is used to install packages, and it supports various flags that allow you to install packages globally or install specific versions of packages. For example, if you want to install the React package, you can simply run:

```bash
ni react
```
To install package globally

```bash
ni -g eslint
```

### nr
This command is used to run scripts in a project, it will run scripts according to the package manager used in your project. To use it, use the following command
```bash
nr start
```
or just run the `nr` command to select between all available scripts.

![demo img](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4nwryrxbkuqdzgwcgww.gif)

### nu
This command is used to upgrade packages, and it supports interactive upgrades, allowing you to select which packages to upgrade and to which version.
```bash
nu
```

### nun
This command is used to uninstall packages using the package manager of your project.
```bash
nun react
```
Overall, `ni` is a powerful and versatile package manager tool that simplifies the management of dependencies in Node.js projects. It helps you to save time during the development process.

I hope this article is helpful to you. If you like this article share it with others.
Frontend developers money Hacking.
Tags: webdev, frontend, discuss, career
Published: 2023-05-30 15:28:57

I've recently get a question from one of my friend who just recently start with frontend development. His question was


## How can I make extra money besides my full time job?

![a boy image with his question](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qe9669159c0l07ypfs5r.jpg)

**Well here I'm sharing my opinion which will help other developers who just recently start their career as a frontend developer.**

- **Freelancing:** Consider taking up freelance projects in your spare time. Websites like Upwork, Freelancer, and Toptal offer opportunities to find clients and projects that match your skills. This allows you to work on various projects and earn additional income.
- **Build and sell digital products:** Use your frontend skills to create digital products such as website templates, UI kits, or WordPress themes. You can sell these products on platforms like ThemeForest, Creative Market, or your own website. Once you've created the initial product, you can continue earning passive income from its sales.

- **Develop and monetize your own apps or websites:** Identify a problem or niche that you're passionate about and create your own app or website. Once you've built it, you can monetize it through various means, such as advertisements, subscriptions, or selling products/services.

- **Offer consultation or coaching services:** Share your expertise by offering consultation or coaching services to other aspiring developers or businesses. You can provide one-on-one sessions, conduct workshops, or create online courses to teach frontend development.

- **Participate in hackathons or coding competitions:** Engage in coding competitions or hackathons, which often offer cash prizes or job opportunities for winners. Participating in these events can enhance your skills, provide networking opportunities, and potentially lead to additional income.

- **Contribute to open-source projects:** Contribute to popular open-source projects in your free time. This can not only improve your skills and visibility within the developer community but may also lead to job offers or sponsorship opportunities.

- **Create and monetize a tech-focused blog or YouTube channel:** Share your frontend development knowledge by creating content through a blog or YouTube channel. With consistent high-quality content, you can attract a following and monetize it through ads, sponsorships, or affiliate marketing.

**I hope you guys have their answer now. Thank you.
HAPPY CODING**
Email Checker
Tags: react, ai, news, serverless
Published: 2023-05-30 15:28:43

Email Checker is a nice little tool that helps you find out whether an email address is valid or not, within a second.

### What is an Email Checker ?

Email Checker is a simple little tool for verifying an email address. It's free and quite easy to use. Just enter the email address and hit the check button. It tells you whether the email ID is real or fake. Sometimes, it’s unable to correctly predict and say unknown because some email providers have put some limits and restrictions, or they simply don’t like any verification checks on their mailboxes.

If you need to extract emails from text files / documents, use our [online email extractor](https://www.email-checker.icu/) to accomplish that. It’s free to use and does its job very fast, without any sign up or captcha.

### How do we verify an email ?

First, it checks for email address format.

Then make sure that domain name is valid. We also check whether it’s a disposable email address or not.

In the final step, It extracts the MX records from the domain records and connects to the email server (over SMTP and also simulates sending a message) to make sure the mailbox really exists for that user/address. Some mail servers do not cooperate in the process, in such cases, the result of this email [verification](https://www.email-checker.icu/email-verifier) tool may not be as accurate as expected.

Help us improve this site
If you have any suggestion/idea for improving the website or adding new feature or something, feel free to email us.
Using Vercel Analytics with SvelteKit
Tags: svelte, javascript, vite, sveltekit
Published: 2023-05-30 15:07:23

[Vercel's guide on utilizing Analytics on SvelteKit have improved](https://vercel.com/docs/concepts/analytics/quickstart), but regardless I wanted to provide an example of a successful implementation on my profile site.

First install `@vercel/analytics`

```bash
npm install -D @vercel/analytics
```

Next import the analytics package in your root `+layout.svelte` file.

```js
	// Import the Analytics package, and the SvelteKit dev variable.
	import { dev } from '$app/environment';
	import { inject } from '@vercel/analytics';
```

Finally run the inject function with the mode being determined by the Dev variable setting

```js
	// Inject the Analytics functionality
	inject({ mode: dev ? 'development' : 'production' });
```


Here is my final `+layout.svelte` file for reference
```jsx
<script lang="ts">
	import Header from '$lib/Header.svelte';
	import '$lib/theme-luke.css';
	import { AppShell } from '@skeletonlabs/skeleton';
	import '@skeletonlabs/skeleton/styles/all.css';
	import '../app.postcss';

	// Import the Analytics package, and the SvelteKit dev variable.
	import { dev } from '$app/environment';
	import { inject } from '@vercel/analytics';

	// Inject the Analytics functionality
	inject({ mode: dev ? 'development' : 'production' });
</script>

<!-- App Shell -->
<AppShell slotSidebarLeft="bg-surface-500/5 w-56 p-4">
	<svelte:fragment slot="header">
		<!-- App Bar -->
		<Header />
	</svelte:fragment>
	<!-- Page Route Content -->
	<slot />
</AppShell>
```

After everything is implemented as above, you just need to ensure that Vercel analytics is enabled correctly on the Vercel project and your data will begin populating the next time somebody accesses the webpage.

Be good people, and happy development!
How do you say... "fsck"?
Tags: discuss, devops, sre, linux
Published: 2023-05-30 15:03:34

Have you ever had to boot into single user mode and run `fsck`?

It's a word we often read and write but rarely say.  How would you pronounce it to a co-worker or say it out loud?

### So how do you pronounce it? 

I asked over 30 software engineers and technical operators exactly that question.  Here are a handful of their responses.

{% youtube 2dcoBqcujkE %}

There are no agreed upon pronunciations, but here are a handful from [wikipedia](https://en.wikipedia.org/wiki/Fsck).

> "F-S-C-K", "F-S-check", "fizz-check", "F-sack", "fisk", "fizz-k", "fishcake", "fizik", "F-sick", "F-sock", "F-suck", "F-sek", "feshk", the sibilant "fsk", "fix", "farsk", "fosk" or "fusk".


Want to see more tech word pronunciations by tech professionals?  Find them on [Youtube](https://www.youtube.com/@appmap/shorts).  New videos ship every Friday.
Upgrading Old Versions of Dokku
Tags: webdev, devops, paas, cloud
Published: 2023-05-30 15:02:33


Hi there. I originally planned to include this set of instructions as part of another article, but it was getting long. So I decided to make it into its own post. That said, let's jump right in.

If Dokku was automatically included for you through the Digital Ocean (DO) 1-Click Droplet, chances are you're running an inexcusably old version of the tool; version `0.21.4` specifically. It works fine for the most part, but there have since been dozens of releases with numerous improvements. The one improvement I'm particularly interested in is [Cron](https://www.pair.com/support/kb/configuring-cron/) support, because Dokku's Let's Encrypt plugin needs it to schedule cronjobs (tasks) for automatically renewing SSL certificates.

I spoke with the project's maintainer, and he [submitted a PR](https://github.com/digitalocean/droplet-1-clicks/pull/118) to update DO's Droplet to use the latest version (`0.30.6`). He's also interested in automating the releases, so this shouldn't be an issue in the future. But in the meantime, we'll have to upgrade our versions ourselves.

### Confirm The Version You've Got Installed
The upgrade path is dependent on the current version. Check it by running the following:

```sh
# on your dokku host
dokku version
```

If it's below `0.25.x`, you'll have to first upgrade to `0.29.x` before `0.30.x` to avoid a breaking change. Conversely, you can go straight to the latest if you have a higher version.

### Upgrade to Version 0.29.4
Stop all your running apps first using:

```sh
# on your dokku host
# for 0.22.0 and newer versions, use
dokku ps:stop --all

# for versions between 0.11.4 and 0.21.4, use
dokku ps:stopall

# for versions between 0.8.1 and 0.11.3, use
dokku --quiet apps:list | xargs -L1 dokku ps:stop

# for versions versions older than 0.8.1, use
dokku --quiet apps | xargs -L1 dokku ps:stop
```

Then run these two commands to upgrade.

```sh
# on your dokku host
# run the three commands one after the other
rm bootstrap.sh
wget https://raw.githubusercontent.com/dokku/dokku/v0.29.4/bootstrap.sh
sudo DOKKU_TAG=v0.29.4 bash bootstrap.sh
```

### Upgrade to Version 0.30.6
Next, we'll upgrade to the latest version at the time of writing this article.

```sh
# on your dokku host
# run the three commands one after the other
rm bootstrap.sh
wget -NP . https://dokku.com/install/v0.30.6/bootstrap.sh
sudo DOKKU_TAG=v0.30.6 bash bootstrap.sh
```

Confirm the new version by running `dokku version`

### Restart Apps
```sh
# on your dokku host
dokku ps:start --all
```

That's it. You're now on the latest version. If you visit this page in the future, you can find all the latest releases and their respective upgrade commands [here](https://github.com/dokku/dokku/releases).

Thanks for reading.
Till next time!
How Can You Tell A Job You Apply For Is Actually A Safe Space?
Tags: discuss, beginners, codenewbie
Published: 2023-05-30 15:00:00

Hey all! 

Lately I have been posting a series of discussion questions to prompt some talk about diversity, equity, and inclusion practices in the workplace. 

This week, I wanted to discuss finding a job that makes you feel safe and supported.

**So, when it comes to finding a job that aligns with your values and prioritizes a safe working environment, what are some red flags you look out for? What are some green flags?**

Join the conversation below and share your tips for identifying organizations that genuinely care about fostering a safe space for their employees. 

---

_Have a great rest of your day y'all and happy coding!_
What are your goals for the week?
Published: 2023-05-30 14:40:11

## What are your goals for this week?


It's a short week for many in the US. Plus it's the start of Summer break for my son. We spent the weekend at the Renaissance Faire and now need catch up on stuff. 
 

- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week?
- Did you meet your goals last week?


I'll start with how I did last week.

### Last Week's Goals

- [:white_check_mark:] Continue Job Search.
- [:x:] Coffee chat with a recruiter. Postponed. The recruiter was unfortunately caught in some recent layoffs and lost access to his calendar and company Zoom. We had planned a general catch up meeting. Now we need to reschedule it. 
- [:x:] Blog.
- [:x:] Code Challenges/Project work.
- [:white_check_mark:] Process more photos add them to a site.
- Events
  * [:x:] Attend Virtual Coffee Thursday. Last day of my son's school, It's a half day so I can only catch the start. 
  * Other VC events if I can.
- [:white_check_mark:] Make some signage for some prints in an artist booth.


### This Week's Goals

- Continue Job Search.
- Blog
- Code Challenges/Project work
- Process more photos and add them to a site.
- Events
  * Attend Virtual Coffee Thursday. 
  * Other VC events if I can.
- Organize Office

### Your Goals for the week


You've read my goals so I'll throw that question back to you.

What are your goals for the week?

```html
-$JarvisScript git push
```
Understanding Deep and Shallow Copy in JavaScript Objects
Tags: javascript, interview, tutorial, developer
Published: 2023-05-30 14:29:45

Hey dev fam! 👋 Today, I want to dive into an important concept in JavaScript: deep and shallow copying of objects. Understanding these concepts is crucial for effective programming and avoiding unexpected bugs. In almost all the interview you will be asked “What is Shallow Copy and Deep Copy of objects in javascript? and how can we achieve them” So let's get started!

Shallow copy: means that only the first level of the object is copied. Deeper levels are referenced.
Deep copy: means that all levels of the object are copied. This is a true copy of the object.

## Shallow copy
A shallow copy can be achieved using the spread operator (…) or using Object.assign():

After updating a property in the first level of the cloned objects, the original property is not updated.
After updating a property in a deeper level, the original property is also updated. This happens because, in this case, deeper levels are referenced, not copied.

![shallow copy code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/889ucgj1v2ur4no4fk8k.png)

## Deep copy
A deep copy can be achieved using JSON.parse() + JSON.stringify():

After updating a property in the first level of the cloned objects, the original property is not updated.
After updating a property in a deeper level, the original property is neither updated. This happens because, in this case, deeper levels are also copied.

![deep copy code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/59ynfftzt9ljauu64g3p.png)

I hope that I helped you to understand more about deep and shallow copying in JavaScript.
Error: 413 “Request Entity Too Large” in Nginx
Tags: webdev, nginx, tutorial, devops
Published: 2023-05-30 14:26:47

### Why am I seeing Error: 413 “Request Entity Too Large” in Nginx?
This is happening because your nginx server does not allow you to upload a file that is larger than the defined size in nginx config file. To solve it, you have to modify your nginx configuration.

### Follow the step to add/modify your nginx config file.
#### Step 1: Connect to your nginx server with your terminal.

```bash
ssh user@my_server
```

#### Step 2: Go to the config location and open it
```bash
sudo vim /etc/nginx/nginx.conf
```

#### Step 3: Adding/Modifying the `client_max_body_size` variable
If you find it, just increase its size to 100M,
If it doesn’t exist, then you can add the below code inside and at the end of HTTP settings:
```
client_max_body_size 100M;
```

#### Step 4: Restart nginx to apply the changes
```bash
sudo service nginx restart
```
How to Compare the BigQuery table schemas between many tables from different datasets
Tags: bigquery, scripts, python
Published: 2023-05-30 14:22:56


## Description (The problem)
The case: We have multiple datasets in BigQuery that receive data from various sources, such as Azure, AWS, and GCP etc... These datasets have identical table names. 

The 1B$ question: How can we efficiently check the schemas of these tables in a short period of time without manual intervention?

## Solution (Write the script)

To check and compare the schema of many BigQuery SQL tables using a Python script, we can utilize the BigQuery Python client library. 

Here's an example of how we can achieve this using one simple script named: [bq-schema-comparator](https://github.com/ddeveloperr/bq-schema-comparator)

This script retrieves the schemas of many tables using the get_table_schema() function and then compares the schemas using a simple equality check.

By running this Python script, you can check and compare the schema of three BigQuery SQL tables and identify any differences or similarities.

### Here's an example of how you can achieve this:

1. Install the `google-cloud-bigquery` library by running the following command:
```
pip install google-cloud-bigquery
```
2. Import the necessary modules in your Python script:
```
from google.cloud import bigquery
```
3. Set up the BigQuery client:
```
# Create a client instance
client = bigquery.Client()
```
4. Define a function to retrieve the schema of a table:
```
def get_table_schema(project_id, dataset_id, table_id):
    table_ref = client.dataset(dataset_id, project=project_id).table(table_id)
    table = client.get_table(table_ref)
    return table.schema
```
5. Compare the schemas of the three tables:
```
# Define the table names
table1_name = 'table1'
table2_name = 'table2'
table3_name = 'table3'

# Retrieve the schemas of the tables
table1_schema = get_table_schema('project_id', 'dataset_id', table1_name)
table2_schema = get_table_schema('project_id', 'dataset_id', table2_name)
tableN_schema = get_table_schema('project_id', 'dataset_id', tableN_name)

# Compare the schemas field by field
# You can write your own comparison logic here based on your requirements
if table1_schema == table2_schema and table2_schema == tableN_schema:
    print("All table schemas are identical.")
    print(table1_schema) # To see the schema in details!
else:
    print("Table schemas have differences.")
```

## Double Check!
* Make sure to replace 'project_id' and 'dataset_id' with your actual project and dataset IDs.
* Adjust the table names (table1_name, table2_name, tableN_name) as per your table names.
Limitation of the TypeScript type system
Tags: typescript, type, wrong
Published: 2023-05-30 13:23:05

In TypeScript, when you use a type alias with a return type of void for a function, it does not enforce that the function actually returns void. This is a limitation of the TypeScript type system.

Type aliases in TypeScript are used to create reusable type definitions, but they do not provide strict runtime enforcement. When you define a type alias with a return type of void, it serves as a hint or documentation for the expected return type of the function. However, TypeScript does not enforce that the function adheres to that return type.

Here's an example to illustrate this behavior:

typescript Copy code:

```
type MyFunctionType = () => void;

const myFunction: MyFunctionType = () => {
  return "This doesn't match the expected return type";
};

console.log(myFunction()); // Output: "This doesn't match the expected return type"
```

In the example above, we define a type alias MyFunctionType for a function with a return type of void. However, the implementation of myFunction actually returns a string, which doesn't match the expected return type. TypeScript doesn't raise any error for this mismatch.

It's important to note that type aliases are purely a compile-time construct in TypeScript. They provide improved readability and maintainability by giving names to complex or reusable types, but they don't introduce runtime checks or strict enforcement of the defined types.

If you need strict enforcement of return types, you can use TypeScript's built-in function syntax to specify the return type directly in the function signature, like this:

typescript Copy code

```
function myFunction(): void {
  return "This will cause a compile-time error";
}
```
With this approach, TypeScript will correctly raise an error because the function is declared to have a return type of void, but it's actually returning a string.
6 Ideias de Projetos Backend Para Seu Portfólio
Tags: braziliandevs, backend, programming, developers
Published: 2023-05-30 14:04:47

A prática constante é o segredo para aprimorar habilidades e se manter atualizado com as tendências tecnológicas. Enquanto aprendemos conceitos e linguagens, é colocando-os em prática que realmente os compreendemos e internalizamos.

Por isso trouxe aqui 6 ideias de projetos _Backend_ para construir e incluir no seu portfólio.

✔️ Encurtador de URL
💡 Utilize bancos de dados para armazenar e rastrear as URLs. Adicione a opção de personalização, onde o usuário pode escolher uma parte personalizada da URL encurtada. Crie recurso de expiração das novas URLs geradas.

✔️ Sistema de Autenticação
💡 Sistema que permita ao usuário se registrar, fazer login e gerenciar conta. Implemente recursos como recuperação de senha, confirmação por e-mail e controle de acesso baseado em permissões.

✔️ Chatbot
💡 Utilize técnicas de processamento de linguagem natural e aprendizado de máquina para treinar o chatbot e melhorar as respostas ao longo do tempo. É possível criar uma integração com APIs de terceiros para fornecer informações atualizadas, como previsão do tempo, notícias ou resultados de jogos.

✔️ Bate-papo em Tempo Real
💡Utilize tecnologias como o WebSocket. Implemente recursos de envio de mensagens e notificações. Adicione emojis e reações.

✔️ Aplicação Financeira
💡 Permita que o usuário possa criar relatórios, estabelecer metas financeiras, categorizando transações.

✔️ E-commerce
💡 Plataforma de e-commerce onde o usuário possa navegar pelos produtos, adicionar itens ao carrinho, fazer pagamentos e acompanhar status do pedido.

Mão na massa!

---

Vamos nos Conectar? Fique à vontade para me seguir nas minhas [Redes](https://giselletech.vercel.app/). :)