teleren/devto huggingface dataset:
Testes de integração potencializados por EF, docker e TestContainer
Published: 2023-11-04 19:12:56

**YAN JUSTINO**
[MSc. Software Engineering](https://repositorio.ufrn.br/handle/123456789/26370) · [PhD. Student](https://www.cesar.school/doutorado-profissional-em-engenharia-de-software/)
[AWS](https://www.youracclaim.com/users/yan-justino/badges) · [MCSD](https://www.youracclaim.com/users/yan-justino/badges) · [OCA](https://www.youracclaim.com/users/yan-justino/badges) · [ORCID](https://orcid.org/0000-0001-7248-716X)  · [Tech Lead at ITAÚ Unibanco]()

_Este artigo foi escrito originalmente em **04 de Novembro de 2023**. Ele foi revisado e, é importante lembrar que, ele representa uma visão da época em que foi escrito_.

![Static Badge](https://img.shields.io/badge/demo-tests-F6A506?style=for-the-badge)

---

> Sim, o desenvolvedor gastará boa parte do seu tempo escrevendo código de testes. Mas isso não quer dizer que ele seja menos produtivo por causa disso - **Mauricio aniche**

Nessa demo adentramos no universo das práticas modernas de desenvolvimento de software para explorar como o uso estratégico de Entity Framework, Docker e TestContainer pode revolucionar seus processos de testes de integração. 

À medida que a tecnologia evolui, nossas metodologias também precisam evoluir, e ao adotar essas ferramentas, podemos aprimorar a produtividade, confiabilidade e a qualidade geral de nossos projetos de software. 

Acompanhem-me enquanto percorremos os benefícios que essas tecnologias oferecem e descubram como elas podem elevar seu processo de desenvolvimento a novas alturas. Aproveite o vídeo e compartilhe se gostar...

{% embed https://youtu.be/qUP4FO4vVZ4?si=XXT3U4_u0xxONE43 %}

{% embed https://github.com/yanjustino/sql-sartuday-es %}

## CONTEXTUALIZANDO...  

Essa demo é resultado da minha última participação em eventos presenciais: o SQL Sartuday, realizado no sádado dia 28/10/2023. Muitas pessoas me pediram o link da gravação. Infelizmente o evento não registrou as palestras. Sendo assim, decidi gravar o conteúdo da palestra e disponibiliza-lo no canal "Academia .net para zumbis". 

Essa canal, com 1.5K de inscritos, é muito especial para mim e estou feliz em poder trazer novos conteúdos para ele. O desejo é reativá-lo e poder contribuir mais com a comunidade.
Design Principles
Published: 2023-11-04 19:04:28

There are certain universal laws and principles in software development that guide architects, programmers, and anyone needing to design software.

KISS
YAGNI
Do The Simplest Thing That Could Possibly Work
Separation of Concerns
Keep things DRY
Code For The Maintainer
Avoid Premature Optimization
Minimise Coupling
Law of Demeter
Composition Over Inheritance
Orthogonality
Robustness Principle
Inversion of Control
Maximise Cohesion
Liskov Substitution Principle
Open/Closed Principle
Single Responsibility Principle
Hide Implementation Details
Curly's Law
Encapsulate What Changes
Interface Segregation Principle
Boy-Scout Rule
Command Query Separation
Murphy's Law
Brooks's Law
Linus's Law
Use & Search files created using Ubuntu on Windows
Tags: ubuntu, windows, searchfiles, ubuntuforwindows
Published: 2023-11-04 18:56:55

Hey there, today we'll discuss how we can search for files created while using "[Ubuntu on windows](https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview)" feature of Windows 10/11. If you've already configured how to use ubuntu from your windows system, you can skip below steps. 

---

How to use Ubuntu in your Windows system.

Step 1: Open powershell & Run as Administrator
Step 2: Type in below command `wsl --install` & wait for the process to complete.
Step 3: Download Ubuntu from Windows Store
Step 4: Type the command `wsl --install -d ubuntu` . This will install WSL & Ubuntu in your system
Step 5: Restart your system
Step 6: Now, you need to create a username & password for Ubuntu setup. You can leave blank for password, if you don't want to retype your password again & again
Step 7: Now, you need to update & upgrade your ubuntu. Type the following commands - `sudo apt update` & then `sudo apt upgrade`
Step 8: Now, you might need to check below 2 options from the 'Turn windows features on or off' - Virtual Machine Platform & Windows Subsystem for Linux.

Source - https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview

---

Now, let's say you're using this Ubuntu on Windows & created some files/folders. You might need to check'em or copy them too for future. How will you get them? If you google search about this question, you'll get below answer:

> The Ubuntu files installed through the Windows Subsystem for Linux (WSL) are stored in the "AppData" folder in Windows 10. The full path to the folder is usually something like "C:\Users{username}\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_{random_characters}\LocalState\rootfs". It is recommended that you use the Ubuntu terminal to interact with the Ubuntu files and applications, rather than modifying the files directly through Windows File Explorer.

Source - https://qr.ae/pKAFBO

But this won't work in many cases. I've got a solution to this actually. 

---

Where do our files resides if using 'Ubuntu on Windows'?

Step 1: Type the following text at the address bar of windows explorer - `\\wsl$` & hit Enter
Step 2: Navigate to root/home/username/
Step 3: You'll get all the files/folders you've created here

Source - https://stackoverflow.com/a/74059809/10957470

---

In case you're facing any issues, feel free to ping me on [LinkedIn](https://linkedin.com/in/nitin30kumar), [Instagram](https://instagram.com/nitinkumar30py) or [Mail](nitinkumarpythonic@gmail.com). You can also checkout my [portfolio](https://nitinkr.me).

HAPPY HACKING !!
iPhone ou Xiaomi: Vale a Pena Sair da Apple e Comprar um MI?
Tags: notícias
Published: 2023-11-06 20:12:21

---
title: iPhone ou Xiaomi: Vale a Pena Sair da Apple e Comprar um MI?
published: true
date: 2023-11-04 18:45:30 UTC
tags: Notícias
canonical_url: https://astronautsdevelopers.com/iphone-ou-xiaomi-vale-a-pena-sair-da-apple-e-comprar-um-mi/
---

O mundo dos smartphones está em constante evolução, e duas marcas líderes, Apple e Xiaomi, competem para conquistar o mercado. Os iPhones da Apple sempre foram admirados por seu design elegante, qualidade de construção e ecossistema exclusivo. Por outro lado, os dispositivos Xiaomi são conhecidos por oferecer especificações impressionantes a preços mais acessíveis. Mas, em...

https://astronautsdevelopers.com/iphone-ou-xiaomi-vale-a-pena-sair-da-apple-e-comprar-um-mi/
The best way to create high quality, SEO optimized blog posts from any YouTube Video using AI
Published: 2023-11-04 18:29:35

Did you know that you can create amazing, high quality, SEO optimized blog content from ANY YouTube video in literally one click of a button?

Well, you can.

Let's go through exactly how you can do this...

## 1. Copy YouTube URL

Head to YouTube and copy a video URL of your liking. It can be your own published content or someone else's. 


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


---



## 2. Go To VideoToBlog.ai

Head over to [VideoToBlog.ai
](https://www.videoToBlog.ai) and paste in the URL you just copied in the previous step.


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


---



## 3. Edit and Publish

With your newly generated blog, you can edit and refine as you see fit. Once you're done, simply export it and publish it on the blogging platform of your choice.

It's that easy!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqopmtyfl7ftm4lt3lt4.png)
Code in the Winter's🚀
Tags: datastructures, leetcode, winter, beginners
Published: 2023-11-04 18:12:03

Hey, Dev Community!

Winters are coming soon, and we'll soon feel the shivering chill in the air. I wanted to hop on here and share my goal for this month. I'm kicking off my geekforgeeks or LeetCode journey and diving headfirst into Data Structures and Algorithms (DSA). Last month, I was caught up in some development part and  some open-source contributions, and it was great, but now it's time to shift gears.   

it's important to note that I'm a beginner in DSA. I only know the fundamentals of programming. but this month, I'm all about that disciplined DSA practice. I understand that there are practical's and proficiency tests, which are part of my college studies, and it's not going to be easy. And, I'm a beginner on LeetCode.

No more letting time slip away – I believe in setting monthly goals to hold myself accountable. Plus, I'm new to this platform, so there's no fear of judgment here. It's all about reminding myself and staying laser-focused.

We've only got two months left in this year, and  I have a lot to achieve. Alongside DSA, I'm also working on enhancing my JavaScript and React skills. Let's catch up next month and see where we stand.

Stay focused, keep it simple, and let's crush those goals!
🚀 Elevating Code Quality: Embracing Strong Return Types 📦
Tags: webdev, programming, opensource, csharp
Published: 2023-11-04 17:51:26

#CleanCodeTip #netcore
🚀 Elevating Code Quality: Embracing Strong Return Types 📦

When it comes to writing clean, maintainable code, one key principle we should always keep in mind is the significance of strong return types. 💡

Instead of returning a single variable like an integer, string, or boolean from a method, consider returning a well-defined object or custom class. 🛠️

Here's why this practice is invaluable:

🚀 Improved Code Readability: Strong return types provide clear intent. They convey what the method is delivering, making it easier for other developers (and your future self) to understand and utilize your code effectively.

🚀Enhanced Code Maintenance: When you return an object, you encapsulate related data and behavior within it. This makes it simpler to manage and maintain your codebase as it grows. when you want to make changes in future.

🚀Flexibility & Scalability: By returning objects, you're not bound by the limitations of primitive data types. You can include multiple attributes and methods, allowing your code to evolve with ease.

🚀Reduced Error-Prone Code: Returning an object enforces a structured approach. This helps reduce potential errors, improves type safety, and makes debugging a smoother process.

🚀 Better Documentation: Strong return types serve as documentation in your code. They act as a contract, clearly specifying what the method should return.

By adopting this practice, we promote clean code that's robust, self-explanatory, and ready for future growth. 🌱 Let's aim to make our codebases more accessible and maintainable.

Share your thoughts on strong return types! How have they improved your coding experience? 🤝💬
Easy to transfer data from mySQL to postgreSQL using Node.js
Published: 2023-11-04 17:36:21

---
title: Easy to transfer data from mySQL to postgreSQL using Node.js
published: true
description: You can transfer data from mySQL to postgreSQL using Nodejs
tags: 
# cover_image: https://assets-global.website-files.com/6064b31ff49a2d31e0493af1/61ae87d2bfb87e7f567b3e24_Migrate%20from%20MySQL%20to%20PostgreSQL.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-11-04 17:19 +0000
---

#### i built a stupid node.js to transfer data from mySQL to postgreSQL, you can try to visit [my repository](https://github.com/petchpool/migrate-data-from-mysql-to-postgresql)
Makine Öğrenmesi Nedir? Genel Bir Bakış
Tags: machinelearning, ai, beginners
Published: 2023-11-04 17:35:32

İnsan müdahalesi olmadan verilerden öğrenebilir deneyimlerinden gelişebilir. Öğrenme görevleri arasında girdi-çıktıyı hesaplayan fonksiyonu üretme, etiketsiz veride gizli yapıyı saptama ya da 'örnek tabanlı öğrenme' yer alabilir.


**1.Denetimli (Supervized) Makine Öğrenmesi:** Girdi değişkenlerini (X), çıktı değişkenlerine (Y) eşleme işlevini öğrenmek için etiketli eğitim verileri kullanılır.

_a. Sınflandırma:_ Kategoriler halinde çıktı değişkenlerinin olduğu belirli bir örneğin sonucunu öngörmektir. Kadın ve erkek, hasta ve sağlıklı örneklerinde olduğu gibi.
_b. Regresyon:_ Verilen değişkenin gerçek değerler biçiminde olduğu belirli bir örneğin sonucunu öngörmektir. Buna örnek olarak belirli bir bölgenin yağış miktarı ya da bir insan boyu verilebilir.

**2.  Denetimsiz (Unsupervised) Makine Öğrenmesi:** Denetimsiz öğrenme problemleri yalnızca girdi değişkenlerine (X) sahiptir, buna karşılık çıktı değişkenleri yoktur. Verilerin altında yatan yapıyı modellemek için etiketsiz eğitim verileri kullanılır.

_a. Birleştirme:_ Herhangi bir toplamada farklı bileşenlerin bir arada olma ihtimali üzerine çalışmalar yapılır. Market sepetlerinde sıklıkla kullanılır. Örneğin bir müşteri ekmek aldıysa %80 ihtimalle yumurta da alacaktır. 
_b. Kümeleme:_ Farklı bir kümedeki örnekleri ayırıp birbirine benzeyen örnekleri bir arada toplamaya denir. 
_c. Boyut Azaltma:_ Adına uygun olarak, önemli bilgilerin hala iletildiğini garanti ederken bir veri kümesinin değişkenlerinin sayısını azaltmak anlamına gelir. Boyut azaltma, öznitelik çıkarımı ve özellik seçimi yöntemleri kullanılarak yapılabilir.
Özellik seçimi, orijinal değişkenlerin bir alt kümesini seçerken öznitelik çıkarımı, yüksek boyutlu bir alandan düşük boyutlu bir alana veri dönüştürme işlemi gerçekleştirir. PCA algoritmasında öznitelik çıkarımı kullanılmıştır. Bu gruba giren 6–8 algoritmaları; Apriori, K-Means ve PCA, denetimsiz öğrenme örnekleridir.

**3. Takviyeli Öğrenme:** Ödülü en üst düzeye çıkaracak davranışları öğrenerek, aracının mevcut durumuna dayalı sıradaki en etkili işlemi belirlemesini sağlayan bir makine öğrenmesi algoritması türüdür. Takviyeli öğrenmede yazılımlar, genellikle deneme yanılma yoluyla en iyi eylemleri öğrenirler.

Burada bir robot, engele çarptıktan sonra negatif geri bildirim alarak çarpışmalardan kaçmayı öğrenebilir. Ayrıca video oyunlarında da, yine deneme yanılma yöntemiyle bir oyuncunun ödülleri alabileceği belirli hareketleri saptayabilir ve bir sonraki hareketini buna göre komutlar.
Understanding the Fundamentals of VPC Peering in AWS
Published: 2023-11-04 17:07:01

## **Introduction**
In AWS, Virtual Private Cloud (VPC) peering is a pivotal concept for architects and developers aiming to design interconnected network architectures. This blog explores the fundamentals of VPC peering, exploring what it is, how it works, and why it's essential for effectively managing cloud resources.

## **What is VPC peering?**
VPC peering is a networking connection between two VPCs that enables you to route traffic between them using private IP addresses. In AWS, VPCs are isolated sections of the cloud where you can define and control network environments. Peering, in essence, bridges these isolated environments, allowing for seamless integration without the data traversing the public internet.

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

## **How to set up a VPC peering**

Setting up VPC peering involves a few steps:

1. **Peering request** - Initiate a peering request from the requester's VPC to the accepter's VPC, identifying each VPC by its ID and owner account.
2. **Acceptance** - The owner of the accepter VPC must accept the peering request for the connection to be established.
3. **Route tables** - Once accepted, both VPCs' route tables must be configured to direct traffic destined for the other VPC to the peering connection.
4. **Security groups** - Modify security groups and network access control lists (NACLs) to allow traffic between the VPCs if necessary.

## **Some best practices and considerations**
When implementing VPC peering, keep the following best practices in mind:

1. **IP address range** - Ensure no overlapping CIDR blocks between peered VPCs to avoid route conflicts.
2. **Scalability** - For multiple VPC connections, consider using AWS Transit Gateway for better management and scalability.
3. **Security** - Regularly review security group and NACL rules to maintain a minimum required level of access.

## **In summary**
VPC peering enhances the capability of VPCs by allowing private, secure, and direct networking communication between separate VPCs. It supports various architectural needs, from simple pairwise connections to more complex, multi-account collaborations. By mastering the fundamentals of VPC peering, you can leverage the full potential of AWS networking to build efficient, scalable, and secure cloud environments.
Leetcode Challenge Progress - (Continuing Blind 75 Leetcode)
Tags: coding, development, webdev, programming
Published: 2023-11-04 17:04:29


"It's 10:15 at night, and I've decided to wrap up everything early because my brain can't handle any more Leetcode today. 😜"

## Progress Report! 📈
Done with **Stack, Queues and Linked List** question from 75 Blind. These questions were quite easy, so I decided to practice more on topics other than these.
Such as _Flatten Linked List_, _Copy Linked List with random Pointer_, etc.

## Other than Leetcode , but still coding!

![Leetcode 75 blind Challenge](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aazxtindvg69d1f4jdou.gif)
I need to create a simple React JS application called 'Text To Image.' I believe the name speaks for itself. It's a project for my college, as per the usual academic requirements (Ahhh.. asian things) 

## Later but more coding!
Helped a friend of mine with some coding problems. 
Those problems were from the topic- Math and Trie(I Never focused on Tries🤷‍♀️)

This was all about today!
Abhishek 😉!
Windows 11 Hack: Make Google Chrome Your Default Browser in Minutes
Tags: webdev, windows11, google, tutorial
Published: 2023-11-04 16:49:01

{% youtube dbgiAreTa5c %}

## To make Google Chrome your default browser on a Windows computer, you can follow these steps:

- 
 Open **settings** and search for the **apps** on the left side

![settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3vr9wtyj15q186q1jzf.png)

- 
After that, select the **default apps**.


![default apps](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8g4jldd82papvh1r6aoa.png)


- 
In the default apps, you can see the **set defaults for application**  and type Google Chrome here.

![set default](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jujczinunkld6yd4gejr.png)

- 
 Click on the arrow over Google Chrome, and now you can go ahead and set it for any app.


![set app](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/apf177a2q4pipmuz8l37.png)

- 
We can change the default option for other apps; we can also make **Edge** or **Firefox **the default browser the same way.

Google Chrome should now be set as your default browser in Windows. 
[Windows 11 Hack: Make Google Chrome Your Default Browser in Minutes](https://youtu.be/dbgiAreTa5c?si=c2z_2xf_Z3bGUAnU)
Disney em Orlando: Vale a Pena Comprar Pacotes de Viagem?
Tags: viagenseturismo, disney, orlando, viagem
Published: 2023-11-18 11:43:49

---
title: Disney em Orlando: Vale a Pena Comprar Pacotes de Viagem?
published: true
date: 2023-11-04 15:41:31 UTC
tags: ViagenseTurismo,Disney,Orlando,Viagem
canonical_url: https://astronautsdevelopers.com/disney-em-orlando-vale-a-pena-comprar-pacotes-de-viagem/
---

Quem nunca sonhou em visitar a Disney em Orlando, Flórida? O mundo mágico de parques temáticos, personagens icônicos e atrações emocionantes é o destino dos sonhos de muitas famílias. No entanto, quando se trata de planejar essa viagem incrível, uma pergunta comum surge: vale a pena comprar pacotes de viagem para a Disney em Orlando?...
Creating Linux user without home directory
Tags: useradd, nohomedirectory, linux, webdev
Published: 2023-11-04 15:37:12

To create a linux user without home directory:

sudo useradd --no-create-home john
or
sudo useradd -M john

    sudo: Grants administrative privileges.
    useradd: Adds a new user
    -M or --no-create-home: Skips creating a home directory for the new user.
    john: Creates a new user named john.

Reference URL: https://linuxsimply.com/ubuntu-create-user-without-home-directory/
Melhores MacBook: Nossas Principais Escolhas Para 2024
Tags: notícias, apple, macbook
Published: 2023-11-06 20:13:06

---
title: Melhores MacBook: Nossas Principais Escolhas Para 2024
published: true
date: 2023-11-04 15:31:07 UTC
tags: Notícias,Apple,Macbook
canonical_url: https://astronautsdevelopers.com/melhores-macbook-nossas-principais-escolhas/
---

A Apple é conhecida por sua inovação, design elegante e desempenho excepcional, e seus laptops MacBook não são exceção. Com uma variedade de opções disponíveis, escolher o MacBook perfeito para suas necessidades pode ser uma tarefa desafiadora. Neste guia abrangente, ajudaremos você a navegar pelo mundo dos MacBooks, destacando os principais modelos e oferecendo insights...

https://astronautsdevelopers.com/melhores-macbook-nossas-principais-escolhas/
C# - Partial Methods for Extensible Code
Tags: csharp, programming, tutorial
Published: 2023-11-04 15:30:00

Partial methods allow you to split the declaration and implementation of a method across multiple parts of a partial class. This is often used in code generation scenarios or for creating extensible code, where one part of the code can provide a method's declaration, and another part can provide the implementation.

Here's an example:

```csharp
using System;

public partial class Person
{
    // Declaration of the partial method
    partial void OnNameChanged(string oldName, string newName);

    private string name;

    public string Name
    {
        get => name;
        set
        {
            if (name != value)
            {
                string oldName = name;
                name = value;
                
                // Call the partial method
                OnNameChanged(oldName, value);
            }
        }
    }
}

public partial class Person
{
    // Implementation of the partial method
    partial void OnNameChanged(string oldName, string newName)
    {
        Console.WriteLine($"Name changed from {oldName} to {newName}");
    }
}

public class Program
{
    public static void Main()
    {
        var person = new Person();
        person.Name = "Alice";
    }
}
```

In this example:

- We define a `Person` class using two partial class definitions. The first part declares a `partial void OnNameChanged(string oldName, string newName)` method, and the second part implements that method.

- The `Name` property setter calls the `OnNameChanged` method when the name is changed, but only if the partial method is implemented in another part of the class.

- When we change the `Name` property, the `OnNameChanged` method is called and prints a message.

Partial methods are especially useful when you want to allow external code or code generators to provide specific behavior for a method while still keeping the method call in the main codebase. They are commonly used in frameworks and libraries to enable extensibility without changing existing code.
Make a Queue from using stacks in java
Tags: java, algorithms, datastructures
Published: 2023-11-04 15:25:06

```java
public class Q1 {
    private final Stack<Integer> newest =new Stack<>();
    private final Stack<Integer> oldest=new Stack<>();

    void enqueue(Integer e){
        newest.push(e);
    }

    private void shift(){
        while(!newest.empty()){
            oldest.push(newest.pop());
        }
    }

    Integer deque(){
        shift();
        return oldest.pop();
    }
}
```
and below tests
```java
class Q1Test {
    Q1 testee = new Q1();

    @Test
    void enqueue() {
        for (int i = 0; i < 10; i++) {
            testee.enqueue(i);
        }
        System.out.println(testee.deque());
        for (int i = 11; i < 22; i++) {
            testee.enqueue(i);
        }
        System.out.println(testee.deque());
    }

    @Test
    void deque() {

    }
}
```