teleren/devto huggingface dataset:
First Pull Request of Hacktoberfest
Tags: hacktoberfest23, beginners, opensource
Published: 2023-10-16 00:48:28

Hi everyone, this year I'm participating in [Hacktoberfest](https://hacktoberfest.com/) for the first time. Last week, I made my first contribution to it. It was a really simple PR that I had to make, and was a great start to Hacktoberfest. I'll first talk about how I was finding issues related to the event.

### Searching for Hacktoberfest Related Issues
I search for issues related to Hacktober fest by typing this line into the Github search bar `label:hacktoberfest state:open`. So this way I can find any Hacktober fest related issues that may not be assigned to anyone yet. 

At first, I did have a hard time looking for issues, as I was coming across repos for just algorithm implementation and adding your name to a README file. However, I did eventually find this repo called [HeadX](https://github.com/theritikchoure/headx). They had a really simple [issue](https://github.com/theritikchoure/headx/issues/10#issuecomment-1755752767) created for someone to do, which was adding a table of contents to their README. I saw this as a decent way to start off Hacktoberfest, as I can work my way up from simple to more complex issues.

### Working on the Issue
Working on the issue was really simple. I first read through the [CONTRIBUTING.md](https://github.com/theritikchoure/headx/blob/master/CONTRIBUTING.md) file they created for people like me. Then I asked for it to be assigned to me. After it was, I got to work. I forked the repo, cloned it to my PC and created a branch for the issue. To make a table of contents in Markdown, I had to create a list like the example below

```Markdown 
Table of Contents
1. [Install](#Install)
2. [Usage](#Usage)
3. [Features](#Feature)
 - [Feature 1](#Feature-1)
 - [Feature 2](#Feature-2)
```
and so on. I did first have to look this up, as I wasn't 100% sure how to link a piece of text to a header in Markdown. However, turns out it's just like how to make a URL clickable in Markdown. Once I was done, I looked at a preview of the README file that my IDE offered me and was happy with the way it turned out. Then I created the [Pull Request](https://github.com/theritikchoure/headx/pull/11) for it. The repo owner was happy with my work and decided to merge it into the main branch. 

#### Conclusion
While this was a more simple PR to make for Hacktober, I wanted to start of small and work my way up into bigger more complex issues. So for now, that's one PR down, with three more to go. I'm looking forward to what other repos I can find and how I can work on something more complex. Thanks for reading and catch you in the next post!
Como a Meditação mudou a vida da Mãe, Empresária - Meditantes PodCast #5
Tags: medita
Published: 2023-10-16 00:33:32

Como a Meditação mudou a vida da Mãe, Empresária - Meditantes PodCast #5

No ar o quinto episódio do Meditantes PodCast com apresentação de Domício Shanti-Rham e participação de Andreia Ishvany Kin. Ouça, veja, curte, participe, compartilhe...

Ouça, veja, curte, participe, compartilhe...

mais em: [https://youtu.be/1m8tyIs03mY](https://youtu.be/1m8tyIs03mY)

#meditação #méditer #meditation #meditazione #meditación #nachdenken #meditar #muse #meditativo #meditantespodcast #meditantes #podcast #shantirham


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k42wk4w8om51o61zy805.jpg)
CAP 이론
Tags: cap, consistency, availablity, partitiontorlerance
Published: 2023-10-16 00:32:03

C: 일관성 

- 어떤 노드에서 접근을해도 동시에 동일한 내용을 제공

A: 가용성

- 사용자의 요청에 항상 응답하는 것.

P: 분할 허용성 (네트워크)

- 네트워크 파티션이 있어도 시스템이 계속 작동하는 능력


> 분할 허용시…

> 일관성과 가용성을 적절한 **가중치** 배분이 중요


### case 1. 은행의 경우

atm 2대로 가정을 하면,

하이브리드 구성

- 잔액조회만 가능, 소규모 출금만 가능

### case2. 구글독스 CAP 전략

구글독스의 충돌전략은 **가용성과 분할 허용성**을 우선시합니다. 즉, 사용자가 문서를 항상 사용할 수 있고, 시스템이 분할되어 있어도 작동하도록 설계되었습니다.

구글독스의 충돌전략은 다음과 같이 CAP에 구성되어 있습니다.

- **일관성:** 구글독스는 버전 관리 시스템을 사용하여 문서의 이전 버전을 저장합니다. 충돌이 발생하면 사용자는 이전 버전에서 선택할 수 있습니다. 따라서 구글독스는 일관성을 일부 희생합니다.
- **가용성:** 구글독스는 문서를 여러 서버에 분산하여 저장합니다. 따라서 시스템이 분할되어 있어도 문서에 액세스할 수 있습니다.
- **분할 허용성:** 구글독스는 문서에 대한 변경 사항을 추적하여 충돌을 감지합니다. 충돌이 감지되면 사용자에게 경고하고 해결 방법을 제안합니다. 따라서 구글독스는 분할 허용성을 달성합니다.

구글독스의 충돌전략은 사용자 친화적이고 효과적이지만, 일부 상황에서는 일관성이 약화될 수 있습니다. 예를 들어, 두 사용자가 동시에 동일한 단어를 수정한 경우, 충돌이 발생하여 사용자가 이전 버전으로 돌아가야 할 수 있습니다.

### case 1. 은행의 경우

atm 2대로 가정을 하면,

하이브리드 구성

- 잔액조회만 가능, 소규모 출금만 가능

### case2. 구글독스 CAP 전략

구글독스의 충돌전략은 **가용성과 분할 허용성**을 우선시합니다. 즉, 사용자가 문서를 항상 사용할 수 있고, 시스템이 분할되어 있어도 작동하도록 설계되었습니다.

구글독스의 충돌전략은 다음과 같이 CAP에 구성되어 있습니다.

- **일관성:** 구글독스는 버전 관리 시스템을 사용하여 문서의 이전 버전을 저장합니다. 충돌이 발생하면 사용자는 이전 버전에서 선택할 수 있습니다. 따라서 구글독스는 일관성을 일부 희생합니다.
- **가용성:** 구글독스는 문서를 여러 서버에 분산하여 저장합니다. 따라서 시스템이 분할되어 있어도 문서에 액세스할 수 있습니다.
- **분할 허용성:** 구글독스는 문서에 대한 변경 사항을 추적하여 충돌을 감지합니다. 충돌이 감지되면 사용자에게 경고하고 해결 방법을 제안합니다. 따라서 구글독스는 분할 허용성을 달성합니다.

구글독스의 충돌전략은 사용자 친화적이고 효과적이지만, 일부 상황에서는 일관성이 약화될 수 있습니다. 예를 들어, 두 사용자가 동시에 동일한 단어를 수정한 경우, 충돌이 발생하여 사용자가 이전 버전으로 돌아가야 할 수 있습니다.


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


### case3. 다양한 케이스

CAP 전략은 분산 시스템에서 중요한 고려 사항입니다. 다양한 케이스에 따라 다음과 같은 다양한 CAP 전략을 사용할 수 있습니다.

- **일관성을 우선시하는 경우:**
    - **원자성(Atomicity):** 모든 작업이 성공하거나 실패하도록 합니다.
    - **멱등성(Idempotence):** 작업을 여러 번 실행해도 동일한 결과를 얻도록 합니다.
    - **지연된 일관성(Eventual consistency):** 시간이 지남에 따라 데이터가 일관되도록 합니다.
- **가용성을 우선시하는 경우:**
    - **캐싱(Caching):** 데이터를 임시로 저장하여 성능을 향상시킵니다.
    - **복제(Replication):** 데이터를 여러 서버에 복제하여 가용성을 향상시킵니다.
    - **투명성(Transparency):** 사용자에게 시스템이 분산되어 있다는 사실을 숨깁니다.
- **분할 허용성을 우선시하는 경우:**
    - **파티셔닝(Partitioning):** 데이터를 여러 서버에 분산하여 분할을 허용합니다.
    - **동기화(Synchronization):** 분할된 서버 간에 데이터를 동기화합니다.
    - **재시도(Retry):** 실패한 작업을 다시 시도합니다.

다음은 CAP 전략을 적용한 몇 가지 구체적인 예입니다.

- **온라인 쇼핑몰:** 주문 처리 시스템은 가용성을 우선시합니다. 시스템이 분할되어 있어도 사용자는 주문을 할 수 있어야 합니다. 따라서 시스템은 주문 데이터를 여러 서버에 복제하고, 사용자가 주문할 때마다 가장 가까운 서버에 요청을 보냅니다.
- **금융 서비스:** 결제 시스템은 일관성을 우선시합니다. 모든 거래는 동일한 결과를 가져야 합니다. 따라서 시스템은 트랜잭션을 원자적으로 실행하고, 트랜잭션이 실패하면 모든 변경 사항을 되돌립니다.
- **게임:** 게임 서버는 분할 허용성을 우선시합니다. 게임 서버가 분할되어 있어도 플레이어는 게임을 계속할 수 있어야 합니다. 따라서 시스템은 게임 상태를 여러 서버에 복제하고, 플레이어가 게임을 할 때마다 가장 가까운 서버에 연결합니다.

CAP 전략은 분산 시스템을 설계 및 구현할 때 중요한 고려 사항입니다. 시스템의 요구 사항을 평가하고 적절한 CAP 전략을 선택해야 합니다.
A Meditação na vida da Mulher, Mãe, Empreendedora - Meditantes PodCast #4
Tags: medita
Published: 2023-10-16 00:27:26



No ar o quarto episódio do Meditantes PodCast com apresentação de Domício Shanti-Rham e participação de Cristina Rossa Pereira. 

Ouça, veja, curte, participe, compartilhe. 

Saiba mais em: [https://youtu.be/GMRroEWy73Q](https://youtu.be/GMRroEWy73Q)

#meditação #méditer #meditation #meditazione #meditación #nachdenken #meditar #muse #meditativo #meditantespodcast #meditantes #podcast #shantirham


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l1zgqucvgooj43e51dxj.jpg)
Meditação para amenizar situações estressantes - Meditantes PodCast #3
Tags: medita
Published: 2023-10-16 00:26:26

Meditação para amenizar situações estressantes - Meditantes PodCast #3

No ar o terceiro episódio do Meditantes PodCast com apresentação de Domício Shanti-Rham e Mauricio Luz Farakian.

Ouça, veja, curte, participe, compartilhe.

Saiba mais em: [https://youtu.be/ZTR4evL0gMg](https://youtu.be/ZTR4evL0gMg)

#meditação #méditer #meditation #meditazione #meditación #nachdenken #meditar #muse #meditativo #meditantespodcast #meditantes #podcast #shantirham


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zuu2kwdwqok8uman4l0a.jpg)
Loto66 Vip
Published: 2023-10-05 19:54:58

Loto66 không đơn giản chỉ là sân chơi giải trí để anh em tham gia cá cược mà tại đây, người chơi còn có thể thoải mái kiếm tiền, chứng minh năng lực làm giàu của bản thân. Truy cập loto66.com ngay từ hôm nay, chắc chắn bạn sẽ có cho mình vô vàn trải nghiệm thú vị, đảm bảo có 1-0-2.
Địa chỉ: 12 Võ Trường Toản, Phường 15, Quận 5, Thành phố Hồ Chí Minh 70000
Website: https://loto66.vip/
Email: s999.sodocasino66@gmail.com
Phone: 083453179
Zipcode: 72900
#loto66 #loto66vip
Google Map: https://maps.app.goo.gl/UAdDW3nzBGCsJSSU7
https://loto66.vip/
https://maps.app.goo.gl/UAdDW3nzBGCsJSSU7
https://loto66.vip/
https://maps.app.goo.gl/UAdDW3nzBGCsJSSU7
https://www.youtube.com/@loto66/about
https://twitter.com/loto66vip2023
https://vimeo.com/loto66
https://www.pinterest.com/loto66vip2023/
https://www.tumblr.com/loto66vip
https://vimeo.com/loto66
https://www.twitch.tv/loto66vip/about
https://influence.co/loto66vip
https://www.giantbomb.com/profile/loto66vip/
https://www.divephotoguide.com/user/loto66vip
https://artmight.com/user/profile/2782142
https://experiment.com/users/loto66vip
https://www.designspiration.com/loto66vip/saves/
https://svetovalnica.zrc-sazu.si/user/loto66vip
https://app.roll20.net/users/12500910/loto66-v
https://my.archdaily.com/us/@loto66-vip
https://www.bitsdujour.com/profiles/w9b9AQ
https://my.desktopnexus.com/loto66vip/
https://www.catchafire.org/profiles/2516673/
https://www.cruzetalk.com/members/loto66vip.455134/#about
https://www.360cities.net/profile/loto66vip
https://www.metroflog.co/loto66vip
https://rpgmaker.net/users/loto66vip2023/
https://www.anibookmark.com/user/loto66vip.html
https://www.notebook.ai/users/668953
https://imgpile.com/loto66vip
https://commiss.io/loto66vip1
https://loto66vip.bravesites.com/
https://peatix.com/user/19283343/view
http://languagelearningbase.com/contributor/loto66vip
https://www.maltafawiq.net/user/loto66vip
https://matkafasi.com/user/loto66vip
https://learn.centa.org/members/loto66vip/activity/
https://social.msdn.microsoft.com/Profile/Loto66%20Vip
https://500px.com/p/loto66vip2023?view=photos
https://www.flickr.com/people/199285142@N04/
https://en.gravatar.com/loto66vip
https://www.instapaper.com/p/13188325
https://hub.docker.com/u/loto66
https://flipboard.com/@loto66vip/loto66-vip-d7q0n75by
https://issuu.com/loto66vip
https://gab.com/loto66vip
https://beermapping.com/account/loto66vip
https://qiita.com/loto66
https://www.reverbnation.com/loto66vip
https://pbase.com/loto66vip/profile
https://www.openstreetmap.org/user/Loto66%20Vip
https://www.webwiki.com/loto66.vip
https://www.fundable.com/user-773142
https://guides.co/a/loto66-vip/
https://os.mbed.com/users/loto66/
https://www.metooo.io/u/651f06f7119b751a01cc19b3
https://www.fitday.com/fitness/forums/members/loto66vip.html
https://www.iniuria.us/forum/member.php?375844-loto66vip
Hello Dev.to, I’m a WordPress and PHP Enthusiast!
Tags: webdev, wordpress, php, developer
Published: 2023-10-16 00:13:49

Hello everyone! 👋

I’m excited to join the dev.to community and connect with other developers. I’m a professional WordPress and PHP developer, and I absolutely love working with both.

## My Journey
I started my journey as a PHP developer, building dynamic websites and web applications. PHP is a powerful scripting language that allows you to create complex and secure web applications. It’s been an incredible journey learning and mastering PHP.

Later, I discovered WordPress and was amazed by its simplicity and flexibility. WordPress is not just a blogging platform; it’s a full-fledged content management system that powers over 30% of the web. I’ve been working with WordPress for several years now, creating custom themes, plugins, and even contributing to the core.

## Why I Love WordPress and PHP
What I love about WordPress is its simplicity and flexibility. You can create anything from a simple blog to an e-commerce store with WordPress. And with PHP, you can add any functionality you want to your WordPress site.

PHP is also a great language for web development. It’s easy to learn, yet powerful enough to build complex web applications. And with the latest updates in PHP 7 and 8, it’s become even more efficient and secure.

## What I’ll Be Sharing
I’ll be sharing my knowledge and experience in WordPress and PHP development here on dev.to. Expect posts on:

- Building custom themes in WordPress
- Developing plugins for WordPress
- Advanced PHP techniques
- Security best practices in PHP and WordPress
- Performance optimization for WordPress sites
- And much more!

## Let’s Connect!
I’m looking forward to connecting with other developers here on dev.to. If you’re working with WordPress or PHP, or if you’re interested in learning or discussing more about them, let’s connect! Feel free to leave a comment or send me a message.

Happy coding! 🚀
Jay Mishra (@akajay_tech)
Update plotly.js data in Angular
Tags: plotly, angular, socketio
Published: 2023-10-16 00:07:26

## The problem

I have data coming [from a socket.io server](https://dev.to/lucianopinheiro/receiving-messages-from-socketio-in-angular-39jj). Every new arriving message is sent to an array. I'm using a Service to keep all my data. It allows me to share the data among components.

```ts

// app.component.ts
  constructor(
    private webSocketService: WebSocketService,
    private data: SessionDataService 
  ) {
    this.socket.on('balance', (message: any) => {
      this.data.setBalance(JSON.parse(message));
    });
  }

// session-data.service.ts
export class SessionDataService {
  setBalance(balance: any) {
    this.balance = balance;
    this.balance_history.push(balance);
  }
}

```
At some point, I needed a graph to plot that history. I made a new component and put my data there, but it didn't work. Why? The update happened only at beginning of the Component.

```ts
// wallet component
// doesn't work
export class WalletComponent {
  balance_history: any[] = [];
  constructor(data: SessionDataService) {
    balance_history = data.balance_history;    
  }
}
```

## The solution

If we need to get the updated version, we need to subscribe the data through a Observer. So, it will update every time the value changes. Remember that if you leave the component, the data will be destroyed. So, we must keep all the data in the service.

The solution is something like this:

```ts
// wallet component uses service
export class WalletComponent {
  // define data that will be shown in the template
  plot_data: any[] = [];

  constructor(data: SessionDataService) {
    // subscribe to the observable
    data.wallet_history.subscribe((balance) => {
      // every time there is a new message, 
      // we update service data and local variable
      this.update_plot_data();
    });    
  }

  update_plot_data() {
    // data in format plotly will understand
    this.plot_data = {
      data: [
        {
          x: this.data.balance_history.map((_: number, index: number) => index),
          y: this.data.balance_history,
          type: 'scatter',
          mode: 'lines+points',
          marker: { color: 'red' },
        },
      ],
    };
  }
}

// service SessionDataService 
export class SessionDataService {
  wallet: any = {};
  balance_history: any = [];

  messages: string[] = [];

  // make observable
  private wallet_historySource = new BehaviorSubject({});
  public wallet_history = this.wallet_historySource.asObservable();

  // when receive a websocket message from server, 
  // 
  setWallet(wallet: any) {
    this.wallet = wallet;
    this.balance_history.push(wallet.balance);
    this.wallet_historySource.next(wallet.balance);
  }

}
```

A variation of this solution is to keep `plot_data` inside SessionDataService so you don't have to use observable. Maybe it's in fact a better solution for this case, but I could not show the subscription feature.
What Are You Struggling to Learn?
Tags: discuss, codenewbie, beginner
Published: 2023-10-16 00:00:00

---
published_at : 2023-10-16 00:00 +0000
---
Have you ever found yourself struggling to learn something, such as programming, and feeling disheartened by how effortlessly others seemed to grasp it? We'd love to hear about your experiences and the strategies you used to stay motivated and regain confidence.

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
Have You Ever Received Inspiration from an Unexpected Place?
Tags: discuss
Published: 2023-10-16 00:00:00

---
published_at : 2023-10-16 00:00 +0000
---
What's the most unexpected source of inspiration that challenged your perspective? Reflect on a source of inspiration that pushed you to think differently or reconsider your beliefs

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
Day 8: Learned Typography By Building a Nutrition Label
Tags: webdev, javascript, beginners, programming
Published: 2023-10-15 23:36:30

Hello Guys,

Still on the journey of becoming a web developer in 100days, by using the popular twitter #100daysofcodechallenge to hone my skill.

The basic of html and CSS is still making more sense everyday, Today I was able to build Building a Nutrition Label, the main purpose was to learn Typography, which I did. I'm happy to share this with you guys, can't wait to get into the logic side of web development so I can create more interesting articles.

Link: https://github.com/Duke411/Typography
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x6ullij0agf5ujt8g5dm.png)
RClone Mounting CLI-Style!
Tags: rclone, archlinux, cloudstorage
Published: 2023-10-15 23:26:52

Hello everyone!

It's been a while since I created a post here. 

I just want to write this up because I have my own businesses and I needed to mount these cloud storages to my file explorer, Thunar.

I use Arch Linux using i3wm.

I can confirm that this works for Google Drive, Box, and Dropbox. I also mounted 2 google drives.

First thing first install rclone.

You can use yay or just sudo pacman -S rclone

I would create a Parent Folder, RemoteCloud. I just like to have this to have them all in one place.
Create subfolders such as Dropbox, GDrive1, GDrive2, Box, etc.

Once you got those created, go to your terminal and type

```
rclone config
```
and create new remotes one by one. You will login and confirm that rclone will have access to your cloud storage. This is safe.

In order to mount you will have to run the following command line in your terminal:

```
rclone mount yourRemoteName: ~/path/to/subfolder
example.
rclone mount GDrive: ~/RemoteCloud/GDrive
```
Unfortunately, this is temporary. As soon as you quit your terminal this would disconnect all mounts.

I would go into the config file
my i3wm config file is located in

`~/.config/i3/config`

at the end of the file, I would just add

```
exec_always --no-startup-id rclone mount yourRemoteName: ~/path/to/subfolder
```
This is also a reminder for myself if I ever forget. Because I will forget it if I don't use it often enough.
Why Rust is the Smart Choice for New Developers
Published: 2023-10-15 23:26:17

When it comes to selecting a programming language for your next project, the choices can be overwhelming. Among the sea of options, Rust stands out as a wise and forward-thinking choice for developers. This relatively new systems programming language has gained rapid popularity for several compelling reasons.

1. **Memory Safety:** One of Rust's standout features is its robust memory management system. Rust ensures that your code is free from common memory-related bugs like null pointer dereferences, buffer overflows, and data races. This not only reduces the likelihood of security vulnerabilities but also makes the codebase more reliable and easier to maintain.

2. **Performance:** Rust offers a high level of control over hardware resources, allowing developers to write efficient and performant code. Its zero-cost abstractions and low-level memory management capabilities enable you to build applications that can rival the performance of languages like C and C++, while still providing the safety and expressiveness of higher-level languages.

3. **Concurrency:** Rust's ownership system and built-in support for concurrency make it an ideal choice for building parallel and multi-threaded applications. With features like the 'Send' and 'Sync' traits, Rust allows developers to write safe and efficient concurrent code, reducing the risk of data races and other threading-related issues.

4. **Community and Ecosystem:** Rust boasts a vibrant and growing community of developers. This means access to a wealth of libraries, frameworks, and tools that can significantly expedite development. The package manager, Cargo, simplifies dependency management and project setup, making it easy to integrate third-party libraries and keep your codebase organized.

5. **Cross-Platform Compatibility:** Rust's ability to compile to a wide range of target architectures and platforms makes it a versatile choice for building cross-platform applications. Whether you're developing for desktop, mobile, or embedded systems, Rust has you covered.

6. **Strong Typing System:** Rust's type system is both powerful and expressive, allowing developers to catch a wide range of errors at compile-time. This leads to more predictable and maintainable code and results in fewer runtime surprises.

7. **Open Source:** Rust is open source, which means it's constantly evolving with the help of a dedicated community. This ensures that the language remains up-to-date and relevant, and it's free to use, making it accessible to developers of all backgrounds.

8. **Safety without Sacrificing Control:** Unlike some high-level languages that prioritize safety at the expense of low-level control, Rust offers both. It empowers developers to manage system resources directly while maintaining the safety and security of their codebase.