teleren/devto huggingface dataset:
8 Months Recap.
Tags: devjournal, webdev, gamedev, german
Published: 2024-07-06 21:48:21




8 Months Recap. 
Back on Saturdays just like before, here's why I stopped posting about my growth here for the past 8 months. Last September I started learning German, completely on my own. No courses, no language schools, no online tutoring. Just me and grammar books and YouTube videos explaining them. 
At first I was skeptical that I'm going to achieve this huge goal, but as things took off and I started understanding German content on the Internet, I felt that there may be some hope. 


The Final goal was to reach the intermediate level or according to The Common European Framework of Reference for Languages (CEFR), the goal was to pass an acknowledged B1 exam such as Goethe's. And yesterday, the news came, the good news if I may. An email from the institute with the opening line: "Herzlichen Glückwunsch! Sie haben die Prüfung Goethe-Zertifikat B1 erfolgreich abgelegt." which directly translates to "Congratulations! You have successfully passed the Goethe-Zertifikat B1 examination.". Off course I was happy because I passed the test, but there was more to it. See dear reader, passing the exam on my own increased my self confidence by at least ten times. Because the Image in mind started to get clear that if I planned something well and poured my effort into it as well, good things will happen.


 I Took the TOEFL last year completely on my own and got a solid 87 out of 120. I Took Goethe B1 Exam this year and nailed a 91 in writing, an 85 in speaking, an 80 in reading and finally a 63 in listening. Now the the last one was a shock to me especially seeing the huge margin between it and the other marks. Moreover, one of the things that helped me getting better at German were the audio-books and the German music I listened to, so how come I score the least on the thing I did the most? Personally I believe it was the stress of the exam.

 I was so fearful of the dialects (especially the Swiss one) and I have to admit it. No matter the reason, there's one clear thing to me now. I have to practice more, I have to give more time and effort consistently to improve on this awesome skill I acquired. And I'll do that side to side with the journey I'm starting next month. I will start learning JS as it's the last element in my skill chain as a web-developer that I haven't collected yet. Next Saturday, I'm going to speak about the resources I used to learn German and the incredible series of "MENSCHEN". Until then, friends!
Sure Predictions
Published: 2024-07-06 21:39:41

[SurePredictions.net](https://surepredictions.net) is renowned as the premier destination for accurate soccer predictions globally. Our expert analysts provide reliable football tips, ensuring high confidence in our sure predictions for today's matches.

Here are the links in markdown format:

- [Must Win Teams Today](https://surepredictions.net/blog/must-win-teams-today)
- [Bet2Win](https://surepredictions.net/blog/bet2win)
- [Loyal Tips](https://surepredictions.net/blog/loyal-tips)
- [Sure Predictions](https://surepredictions.net)
- [Draw Tips](https://surepredictions.net/tips-store/draw)
- [Double Chance Tips](https://surepredictions.net/tips-store/double-chance)
- [BTTS Tips](https://surepredictions.net/tips-store/btts)
- [0.5 HT Tips](https://surepredictions.net/tips-store/0.5HT)
- [Over 1.5 Goals Tips](https://surepredictions.net/tips-store/over-1.5-goals)
- [Over 2.5 Goals Tips](https://surepredictions.net/tips-store/over-2.5-goals)
- [Win Either Half Tips](https://surepredictions.net/tips-store/win-either-half)
- [Under 3.5 Goals Tips](https://surepredictions.net/tips-store/under-3.5-goals)
- [Handicap Prediction Tips](https://surepredictions.net/tips-store/handicap-prediction)
Howdy!
Tags: webdev, javascript, programming, devops
Published: 2024-07-06 21:36:36

Glad to be here in the dev.to community.

We've recently announced a new developer productivity tool called What the Portal (as you might have guessed by our name!) and are looking for some beta testers.

If you're curious to give it a whurl, we'd love the feedback!

The announcement post is on our Org page here:

https://dev.to/what-the-portal/introducing-what-the-portal-n8n

Hit us up in our discord and we'll get ya in:

https://whattheportal.com/discord
Day 6 of 100 Days of Code
Tags: 100daysofcode, beginners, webdev, javascript
Published: 2024-07-06 21:29:45

Sat, July 6, 2024

Yesterday I spent reviewing CSS and CSS projects. CSS seems an important base to be able to later employ media queries and React to structure HTML.

I looked at a couple VS Code time tracking extensions, but most of my time is spent in the browser, so I'll review this later, but [CodeTime](https://codetime.dev/en/) has some nice features, including nice summary and data visualizations, all data is kept indefinitely with full control, and there's a free level. However, there were some issues initializing the API token, so I'll call it a beta release. If anyone has a good experience either using an extension for VS Code and Chrome to track your coding time, or another approach, please share in the comments!

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

My remaining lessons for Codecademy Web Dev Foundations course:
Developing Websites Locally
Deploying Websites
Improved Styling with CSS
Making a Website Responsive

While these lessons look attainable, I'm unfamiliar with their material, so I'll target one lesson per day and see how quickly I can move on to the second Codecademy course, Building Interactive Websites, starting with JavaScript. Back to it now.
Programar y cocinar, primos hermanos son
Tags: personal, spansih
Published: 2024-07-06 21:28:51

 Corría el año 1999 y un jovenzuelo Jorge hacía su primer viaje transoceánico y visitaba Costa Rica (imposible olvidar ese viaje y los otros 3 que le sucedieron)

Sentados en un puesto callejero en Puerto Viejo veíamos a la cocinera preparar las cenas que le íbamos encargando. El puesto eran un par de mesas corridas, unos fogones, un lavadero y poco más pero el gallo pico con leche de coco que nos comimos me supo a gloria.

Mientras yo salivaba viendo a aquella mujer desenvolverse entre los fogones y tuppers mi maestro y mentor Fran, con el que viajaba, la observaba: 

> fíjate cómo va limpiando y guardando los cacharros a medida que los usa y de esa manera aprovecha el poco espacio que tiene. Eso es lo que define a un buen cocinero, no el hacer un plato espectacular pero dejando la cocina como si hubiera caído una bomba, sino el hacer un plato sabroso y que parezca que no ha hecho nada. Pues algo así es programar 

 (más o menos, no me puedo acordar exactamente)

Yo devoraba ya mi plato, pero si algo aprendí desde que le conocí era a guardar sus comentarios y volver a ellos más tarde.

Y esta frase viene a menudo a mí, sobre todo en días como hoy que me encargo de hacer el arroz con cosas para la tropa, y con la excusa de que requiere concentración me abstraigo y me imagino teniendo la conversación que mi colega esperaba

- Pues sí, si en algo se parece programar es a cocinar. En ambas necesitas una planificación, una receta ...

- Experiencia ...

- Sí, correcto, pero ojo la experiencia no es solo que se hace día a día, sino cagándola y repitiendo

- Claro, además tienes las recetas, es sólo seguirlas y ya

- Ufff, para nada, una receta te sirve para tener la planificación y la idea del resultado final pero cada comida, como cada proyecto, es única. Además está bien seguir la receta pero al ser un algo único deberías sentir la necesidad de hacerla especial e innovar algún punto. Tal vez un ingrediente nuevo, tal vez cambiar el orden...

- Y volviendo a nuestra cocinera, todo aquel que programe debería ser como ella: ir limpiando las cosas a medida que las usas y tener así un entorno ordenado, con todo a la vista y cada cosa en su sitio, sin importar si ese cacharro lo vas a tener que volver a usar dentro de un rato otra vez

...

Horas y horas de conversación se me pasan en mi cabeza durante esos 30 minutos que termina el arroz en hacer chupchup. 

"Horas" de conversaciones donde sigo dialogando con mi colega Fran y buscamos similitudes entre cocinar y programar 

Pero lo peor son que esas "horas" de conversaciones sólo consigo plasmarlas en 10 párrafos de un artículo


![1999 subiendo al volcán Barba en Costa Rica](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zrx0terrmby8xtvx3c6q.jpg)
JavaScript MMORPG - Maiu Online - #babylonjs - Ep: 26 Abilities definitions and new targeting marks
Tags: babylonjs, indiegamedev, mmorpg, javascript
Published: 2024-07-06 21:24:42

Hello,
This week I spent mostly on  thinking about future gameplay. I did several tests and prototypes, I know much more then before and I gain some knowledge about limitations and problems which gameplay related stuff brings into the game.

From the stuff that is visible I managed to improve targeting marking. I added new target mark under the mesh and outline around it.
Recently I had some  problems and most of the area of the meshes didn't triggered cursorOver/cursorPick events, it was occurring for random entities and i didn't manage to replicate it in the babylonjs playground. To not spend to much time on this problem which might be related to the mesh itself I fixed it with a hack. Each entity has assigned cylinder which is user for picking and it works quite good :)
I made first steps into abilities. Since now each class has 2 abilities, which are fetched from the server with all related data: icons, descriptions, animations names etc... Also there's tooltip with spell description - again i didn't manage to make tooltip showing next to the icon so i picked ad hoc solution and it's displayed in the middle of the screen.
The last thing which I added are tabs in the settings panel. 

Last 3 days i spent on rewriting player controller system , adding key bindings and handling user inputs with some more structured way. I broke movement and combat and for now it's not working :p. I hope this version(4th or 5th one) which I'm working on will be final and soon I'll be able to continue working on the abilities.

{% youtube m3eoblgMTHg  %}
TradingView / Coinglass
Published: 2024-07-06 20:52:00

Hello everyone and thank you for your help.

I would like to add this function to my indicator on TradingView:

https://www.coinglass.com/pro/futures/LiquidationHeatMap

Is there an equivalence that exists on TradingView

How to do it?

Thank you for your valuable help.
king's clean.
Published: 2024-07-06 20:42:50

**cleaning service landing page**
For this, I used CSS Grid and Flex. They allow me to focus more on the design and worry less about different screen sizes. CSS Grid and Flex are perfect for creating responsive layouts; they fit and display beautifully on all kinds of screens without requiring media queries. This is a cleaning company landing page—a demo I designed to showcase how a simple page can include all the necessary details without the need for navigation between pages.
Telegram weather bot
Tags: javascript, programming, tutorial, telegram
Published: 2024-07-06 20:38:08

Hello, friends! I want to share my project with you. This is a Telegram bot that gets weather information using the OpenWeatherMap API. But more importantly, it has a scalable and modular architecture. I would appreciate it if you would check out my repository and star it if you find it useful, and maybe even follow me (if you feel like it). Feel free to leave a comment about what you think about the project - I'd love to hear your feedback! GitHub repository link: https://github.com/kyoresuas/telegram-weather-bot
NoSQL
Published: 2024-07-03 08:26:55

##**When to use a NoSQL Database**
- **Need to be able to store different data type formats:** NoSQL was also created to handle different data configurations: structured, semi-structured, and unstructured data. JSON, XML documents can all be handled easily with NoSQL.
- **Large amounts of data:** Relational Databases are not distributed databases and because of this they can only scale vertically by adding more storage in the machine itself. NoSQL databases were created to be able to be horizontally scalable. The more servers/systems you add to the database the more data that can be hosted with high availability and low latency (fast reads and writes).
- **Need horizontal scalability:** Horizontal scalability is the ability to add more machines or nodes to a system to increase performance and space for data
- **Need high throughput:** While ACID transactions bring benefits they also slow down the process of reading and writing data. If you need very fast reads and writes using a relational database may not suit your needs.
- **Need a flexible schema:** Flexible schema can allow for columns to be added that do not have to be used by every row, saving disk space.
- **Need high availability:** Relational databases have a single point of failure. When that database goes down, a failover to a backup system must happen and takes time.


##**When NOT to use a NoSQL Database?**
- **When you have a small dataset:** NoSQL databases were made for big datasets not small datasets and while it works it wasn’t created for that.
- **When you need ACID Transactions:** If you need a consistent database with ACID transactions, then most NoSQL databases will not be able to serve this need. NoSQL database are eventually consistent and do not provide ACID transactions. However, there are exceptions to it. Some non-relational databases like MongoDB can support ACID transactions.
- **When you need the ability to do JOINS across tables:** NoSQL does not allow the ability to do JOINS. This is not allowed as this will result in full table scans.
- **If you want to be able to do aggregations and analytics**
- **If you have changing business requirements :** Ad-hoc queries are possible but difficult as the data model was done to fix particular queries
- **If your queries are not available and you need the flexibility :** You need your queries in advance. If those are not available or you will need to be able to have flexibility on how you query your data you might need to stick with a relational database
How to Create a Virtual Machine Scale Set in Azure
Tags: virtualmachinescaleset, vmss, azure, virtualmachine
Published: 2024-07-06 20:31:19

Creating a Virtual Machine Scale Set (VMSS) in Azure allows you to manage and automatically scale a group of virtual machines. 

Here's a step-by-step guide to create a VMSS using the Azure portal:

###Step 1: Sign in to Azure Portal###
Open your web browser and go to the Azure portal.
Sign in with your Azure account credentials.
###Step 2: Navigate to Virtual Machine Scale Sets###
In the Azure portal, click on the **"Create a resourc"** button (+) in the left-hand menu.
In the **"Search the Marketplace"** box, type **"Virtual Machine Scale Sets"** and select it from the list.
Click "Create" to start the creation process.
Step 3: Configure Basic Settings
Subscription: Select your Azure subscription.
Resource Group: Select an existing resource group or create a new one.
Name: Enter a name for your scale set.
Region: Choose the region where you want to deploy the VMSS.
Availability Zone: (Optional) Select an availability zone if required.
Orchestration mode: Choose Uniform (recommended for most scenarios) or Flexible.
Step 4: Configure Instance Details
Image: Select an operating system image for your VMs (e.g., Ubuntu Server 20.04 LTS).
Size: Choose a VM size (e.g., Standard DS1 v2).
Step 5: Configure Scaling Settings
Instance Count: Set the initial number of instances (e.g., 2).
Scaling Policy: Configure the scaling policy to automatically increase or decrease the number of instances based on CPU usage, memory, or custom metrics.
Step 6: Configure Networking
Virtual Network: Select an existing virtual network or create a new one.
Subnet: Select a subnet within the chosen virtual network.
Public IP Address: Choose whether to associate a public IP address with the VMs.
Load Balancer: (Optional) Select a load balancer to distribute traffic across the VMs.
Step 7: Configure Management Settings
Diagnostics: Enable boot diagnostics and choose a storage account for storing diagnostic logs.
Identity: (Optional) Assign a managed identity for your VMSS to access other Azure resources securely.
Auto-shutdown: Configure auto-shutdown settings if needed.
Step 8: Review and Create
Review all the settings you have configured.
Click "Review + create" to validate the configuration.
Once validation passes, click "Create" to deploy the VMSS.
Step 9: Monitor and Manage the VMSS
After deployment, navigate to the "Virtual Machine Scale Sets" service in the Azure portal.
Select your newly created VMSS to view its details.
Use the "Instances" tab to monitor the status of individual VM instances.
Use the "Scaling" tab to adjust scaling policies and settings.
Step 10: Connect to a VM Instance
In the VMSS overview, click on "Instances".
Select an instance and click "Connect".
Follow the instructions to connect to the VM instance using SSH (for Linux) or RDP (for Windows).
Conclusion
By following these steps, you can create a Virtual Machine Scale Set in Azure, which allows you to automatically scale your application based on demand, ensuring high availability and performance.
Smoke and Fire Detection integrated with LoRA Module
Tags: webdev, developers, python, ai
Published: 2024-07-06 20:25:49

Breathe easy with my smoke detection project! Using the power of Python, I’ve created a vigilant sentinel that spots smoke faster than a campfire storyteller. Whether it’s a smoldering toast or a sneaky cigarette, this code has your back, keeping your space safe and sound.
HMI for Cheese Manufacturing Factory
Tags: webdev, python, ai, developers
Published: 2024-07-06 20:23:14

Say cheese to the future of dairy! I've created an HMI project that transforms your cheese manufacturing factory into a smooth operation. With just a swipe and a tap, you can control the curds and whey like a maestro, making sure every wheel of cheese is perfect. From milk to mozzarella, I’ve made cheese-making a breeze!
How to save time when run RSpec tests
Tags: rails, tdd, test, rspec
Published: 2024-07-06 19:39:19

**two tips that help a lot to save time when running test suites on Rails with RSpec.**


## 1. Reduce Devise.stretches

  

> Note: _This tip is useful if you are using Devise as an 
>   authentication tool._

In your spec/test.rb file, add the following line:

`Devise.stretches = 1`

When using Devise, the cost value is set by a class variable called stretches, with a default value of 11. It specifies the number of times the password is hashed. By setting this value lower, you make the hash algorithm less costly and time-consuming, saving time in the test suite as it's unnecessary to have such a secure password in our testing environment.

## 2. Increase log level in the test environment

In your spec/test.rb file, add the following line:

`Rails.logger.level = 4`

Rails logs everything that happens in your test environment by default to "log/test.log". By increasing the logger level, you reduce IO during your tests. The downside is that if a test fails, nothing will be logged. In such cases, simply comment out the above configuration option and rerun your tests.

These two tips already help you save a lot of time when running the test suite with RSpec. Hope this helps!
jwt decode link: https://www.npmjs.com/package/jwt-decode
Published: 2024-07-06 18:58:52

npm i jwt-decode

1. 
verifyJwt.ts****
import { jwtDecode } from 'jwt-decode';
export const verifyToken = (token: string) => {
    return jwtDecode(token);
};

2. 
Login.tsx****
const onSubmit = async (data) => {
        console.log(data);
        const userInfo = {
            id: data.id,
            password: data.password,
        };
        const res = await login(userInfo).unwrap();
        const user = verifyToken(res.data.accessToken);
        dispatch(setUser({ user: user, token: res.data.accessToken }));
    };
Expondo seu localhost com Ngrok (muito útil para testar webhooks)
Tags: braziliandevs, webdev, webhooks, tutorial
Published: 2024-07-06 18:58:51

> Os problemas de "na minha máquina funciona" acabaram!

## Problema

Estava precisando fazer alguns testes de webhooks, porém só conhecia uma maneira que seria deployar a app e só assim conseguir testar os webhooks. Esse método funciona e é muito utilizado por devs. Mas ele tem um problema... todo teste você vai precisar deployar novamente sua aplicação e isso leva bastante tempo.

Pesquisando por aí encontrei o [Ngrok](https://ngrok.com/) e com ele conseguimos expor nosso localhost de forma bem simples.

## Instalação

> você pode seguir a [Documentação Oficial](https://ngrok.com/docs/guides/getting-started/#step-2-install-the-ngrok-agent) também.

### Mac

Use o [Homebrew](https://brew.sh/):

```sh
brew install ngrok/ngrok/ngrok
```

### Linux

Use o apt

```sh
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | \
  sudo gpg --dearmor -o /etc/apt/keyrings/ngrok.gpg && \
  echo "deb [signed-by=/etc/apt/keyrings/ngrok.gpg] https://ngrok-agent.s3.amazonaws.com buster main" | \
  sudo tee /etc/apt/sources.list.d/ngrok.list && \
  sudo apt update && sudo apt install ngrok
```

### Windows

Use o [Chocolatey](https://chocolatey.org/install)

```sh
choco install ngrok
```

## Conecte o seu agent à sua conta do ngrok

Pra isso é necessário que você faça o [log in ou sign up](https://dashboard.ngrok.com/) no Ngrok e pegue seu Authtoken.

Copie o token e adicione no seu terminal

```sh
ngrok config add-authtoken <TOKEN>
```

## Rode o Ngrok

Starte o Ngrok rodando o comando abaixo (você pode escolher a porta que preferir, mas no exemplo utilizei a porta `8000`):

```sh
ngrok http 8000
```

Obrigado por ler até aqui! Espero que esse post te ajude :)

Confira mais em https://thayto.com/links

_Originalmente postado em [https://thayto.com](https://thayto.com/blog/expondo-seu-localhost-com-ngrok) dia 06 de Julho de 2024._

_Cover Image: Photo by <a href="https://unsplash.com/@incrprl?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Stepan Kalinin</a> on <a href="https://unsplash.com/photos/a-woman-standing-on-a-platform-waiting-for-a-train-JzjLO92in88?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>_