teleren/devto huggingface dataset:
Roadmap to learn Kubernetes
Tags: kubernetes, containers, docker, devops
Published: 2023-03-16 04:26:56

Kubernetes is a hot topic and if you are beginner you can follow below path to start your journey to learn Kubernetes:

##Understand the basics of containers:

Before diving into Kubernetes, it's important to have a strong understanding of containers and how they work. Learn about containerization technologies like Docker and how they are used to package applications and dependencies.

##Learn Linux: 

Kubernetes is built on top of Linux, so it's important to have a good understanding of Linux. Learn about the command line, file systems, and basic networking.

##Learn Kubernetes architecture: 

Kubernetes is a complex system with many moving parts. It's important to understand the architecture and how all the components fit together. Learn about Kubernetes objects, control plane, worker nodes, and networking.

##Set up a Kubernetes cluster: 

The best way to learn Kubernetes is to set up your own cluster. This will allow you to experiment with different configurations and get a feel for how the system works in practice. You can use Kubernetes on local machines, or on cloud providers like AWS or Google Cloud.

##Deploy and manage applications: 

Kubernetes is primarily used to deploy and manage applications. Learn how to create Kubernetes manifests and use them to deploy and manage applications. This includes tasks like scaling, rolling updates, and load balancing.

##Learn Kubernetes API: 

The Kubernetes API is a powerful tool for interacting with the Kubernetes control plane. Learn how to use the API to create and manage Kubernetes resources.

##Learn Kubernetes networking: 

Kubernetes networking is complex, but it's crucial to understand how it works. Learn about Kubernetes networking models, service discovery, and ingress.

##Practice troubleshooting: 

Like any complex system, Kubernetes can run into issues. Learn how to troubleshoot common issues like networking problems, resource constraints, and configuration errors. This will help you become a proficient Kubernetes administrator and allow you to handle issues when they arise.

##Learn Kubernetes security: 

Kubernetes security is an important topic. Learn about Kubernetes RBAC, network policies, and pod security policies.

##Stay up-to-date with new developments: 

The Kubernetes ecosystem is constantly evolving, with new features and tools being developed all the time. Stay up-to-date with the latest developments to stay on the cutting edge. Attend Kubernetes conferences, read Kubernetes blogs, and contribute to the Kubernetes community.
Loops, for, while, do-while
Tags: javascript, webdev, beginners, programming
Published: 2023-03-16 10:32:57

## Loops(tsiklar) kod blokini bir necha marta takrorlash usulidir. JavaScript-da tsikllarning uchta asosiy turi mavjud: for, while va do-while.

**1.** `for loop` : for loop kod blokini ma'lum bir necha marta bajarish uchun ishlatiladi. U uch qismdan iborat: ishga tushirish, shart va iteration (takrorlash). Mana 0 dan 4 gacha hisoblangan for sikliga misol:
```js
for (var i = 0; i < 5; i++) {
  console.log(i);
}
```
Ta'rif: `i` o'zgaruvchisini 0 ga ishga tushiradi, `i` 5 dan kichik yoki yo'qligini tekshiradi va har bir iteratsiyadan keyin `i` ni 1 ga oshiradi. Loop 5 marta bajariladi va i ning 0 dan 4 gacha bo'lgan qiymatlarini chiqaradi.

**2.** `while` tsikli: while tsikli shart rost bo'lganda kod blokini bajarish uchun ishlatiladi. 0 dan 4 gacha hisoblangan while tsikliga misol:

```js
var i = 0;
while (i < 5) {
  console.log(i);
  i++;
}
```
Ta'rif: `i` o'zgaruvchisini 0 ga ishga tushiradi, `i` 5 dan kichik yoki yo'qligini tekshiradi va har bir iteratsiyadan keyin `i` ni 1 ga oshiradi. Loop 5 marta bajariladi va `i` ning 0 dan 4 gacha bo'lgan qiymatlarini chiqaradi.

**3.** `do-while` tsikli: `do-while` tsikli `while` tsikliga o‘xshaydi, lekin shartni tekshirishdan oldin u kod blokini kamida bir marta bajaradi. 0 dan 4 gacha sanaladigan `do-while` tsiklining misoli:

```js
var i = 0;
do {
  console.log(i);
  i++;
} while (i < 5);
```
Ta'rif: `i` o'zgaruvchisini 0 ga ishga tushiradi, kod blokini kamida bir marta bajaradi, `i` ning 5 dan kichikligini tekshiradi va har bir iteratsiyadan keyin `i` ni 1 ga oshiradi. Loop 5 marta bajariladi va `i` ning 0 dan 4 gacha bo'lgan qiymatlarini chiqaradi.

**Xulosa:** tsikllar dasturlashning asosiy tushunchasi bo'lib, bir xil kodni qayta-qayta takrorlamasdan kod blokini bir necha marta bajarishga imkon beradi.

#### **Task (vazifa)**
 
**1.** 0 dan 100 gacha bo'lgan 10 dan ortib, har bir raqamni konsolga kiritadigan `for`, (ixtiyoriy: `while`va `do-while`) tsiklini yozing.
**2.** 0 dan 100 gacha bo'lgan, lekin faqat juft raqamlarni konsolga kiritadigan `for` tsiklini yozing.
OSDC-2023-second-assignment
Tags: osdc, git, github, yaml
Published: 2023-03-16 19:48:44

---
title: OSDC-2023-second-assignment
published: true
description: 
tags: osdc, git, github, yaml
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-03-16 18:30 +0000
---

##Today in class at the course [OSDC](https://osdc.code-maven.com/)
we go over the PRs that we opened and fix issues in PR instead of opening new ones. we saw how to follow interesting projects on GitHub to get notifications. We got a better understanding of the structure of a Github URL, and how to find a git repo of a project. We found out for the first time what are yaml files and other impressive and important things!

###Second assignment###
I have selected some more interesting projects to follow, among them:
[El kantoniko de Ladino en el Internet] (https://github.com/kantoniko)
[Ansible] (https://github.com/ansible) 
played around with [yaml] (https://github.com/OSDC-Code-Maven/open-source-by-organizations/tree/main/github) edited the [OSDC course repository](https://github.com/OSDC-Code-Maven/osdc-2023-03-azrieli), added JSON file, and sent a PR.
Days_1 Print Statements
Published: 2023-03-17 08:16:43

Check out what I did on my first day of Python with #replit100daysofcode!

```
Name = "Ari Wira Saputra"
Date = "29 Februari 2000"
print(Name + " " + Date)
Text = "I am signing up for Replit's 100 days of Python challenge!
I will make sure to spend some time every day coding along, for a
minimum of 10 minutes a day. I'll be using Replit, an amazing
online IDE so I can do this from my phone wherever I happend to be.
No excuses for not coding from the middle of a field!"
print(Text)
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xbfyufmrkqrgl5qlwao7.png)
Animation -7 : CSS Moon loader with color effect
Tags: css, design, webdev, animation
Published: 2023-03-17 08:38:11

Are you looking for animations to enhance your website? We've got you covered with our wide selection of creative and engaging #animations. Say goodbye to endless searching and hello to seamless integration on your website!

#### We're excited to introduce our latest YouTube series, which features diverse creative and inspiring website animations.

---

In our short videos, you'll find a variety of #animations that can be easily implemented on your website to enhance user experience.


---

### CSS Moon loader with color effect 

---

{% youtube xa9i2SVnHro %}

 ---
### [Source code](https://bbbootstrap.com/snippets/moon-loader-color-effect-10815890)


---
## For more information

1. Check my GitHub profile
[https://github.com/amitSharma7741](https://github.com/amitSharma7741)

2. Check out my Fiver profile if you need any freelancing work
[https://www.fiverr.com/amit_sharma77](https://www.fiverr.com/amit_sharma77)

3. Check out my Instagram
[https://www.instagram.com/fromgoodthings/](https://www.instagram.com/fromgoodthings/)

4. Linktree
[https://linktr.ee/jonSnow77](https://linktr.ee/jonSnow77)

5. Check my project

- EVSTART: Electric Vehicle is the Future
[https://evstart.netlify.app/](https://evstart.netlify.app/)
-  News Website in react
 [https://newsmon.netlify.app/](https://newsmon.netlify.app/)
-  Hindi jokes API
 [https://hindi-jokes-api.onrender.com/](https://hindi-jokes-api.onrender.com/)
- Sudoku Game And API
[https://sudoku-game-and-api.netlify.app/](https://sudoku-game-and-api.netlify.app/)

---
---
Question to all remote developers.
Tags: beginners, discuss, programming, career
Published: 2023-03-17 14:19:19

Hello everyone.
My name is Ozan and I am currently learning **python** and I want to work as **back-end** developer or **anything with python**(Before you say yes I am going to learn about javascript and necessary libs as well). I have no problem with studying and all but I really wonder how you guys find your remote jobs? Like did you applied to them or you knew someone who knew someone? and how I can do the same thing a junior developer for different country.

So let me tell you about my story so hopefully you can understand and answer me 

I know I am sugar coating my question but here is my situation.

Currently I live in Turkey and the city that I live is touristic area so because of that there is no company is hiring right now(The hiring ones are hiring seniors). And finding job in bigger cities is not possible because the salary they are offering are not enough to cover my expenses. So only thing I have in my hand is remote works. I am willing to do everything I could to just start working. So How did you guys do and what is the way that the way I need to follow if local work is not possible?
Managing Dependencies with Yarn: Understanding Dependency Conflicts.
Tags: javascript, beginners, yarn, node
Published: 2023-03-21 12:08:29


**Introduction**:

Managing dependencies in any project is like juggling multiple balls at once - it's essential to ensure that the project completes successfully, on time, and on budget. This is where tools like Yarn come in. Yarn is a package manager for Node.js that helps manage dependencies by leveraging two files: package.json and yarn.lock. In this blog post, we'll take a closer look at how Yarn manages dependencies and how to resolve dependency conflicts - without dropping any balls!

**Let's See how yarn manages dependencies:**
Yarn manages dependencies through two files: package.json and yarn.lock. Think of these files like your to-do list and your grocery list. The package.json file lists all the dependencies that your project needs, while the yarn.lock file lists the exact versions of those dependencies. Just like how you don't want to forget anything on your grocery list, Yarn ensures that your project has all the necessary dependencies, and that they're the right versions.

However, conflicts can arise when managing dependencies - just like how you might argue with your family about which brand of cereal to buy at the grocery store. For example, suppose you need to add packages A and B as dependencies. Package A depends on some dependency xy21.9, and package B depends on dependency xyz2.9. In that case, a conflict will emerge, saying "unable to resolve package dependency." It's like your family arguing about which brand of cereal to buy, and no one can agree!

To resolve these conflicts, you can take inspiration from how you resolve conflicts with your family - you have to compromise. Here are some ways to resolve dependency conflicts:

Upgrade or downgrade the version of the conflicting dependency in either of the packages.

Delete the conflicting package if it is not needed.

In package.json, inside the yarn resolution field, specify the version of the conflicting dependency that you want to use. 

_package.json file:_
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/869jc8zts583jp98hwf9.png)

_yarn.lock file:_
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zuc49022aurmty5k1dt3.png)



Use the command yarn install --interactive: If you run this command, Yarn will go through the package.json file and display a conflicting dependency menu with possible versions to upgrade or downgrade to. (**Note**: this command is only available in Yarn 1 and Yarn 2). 

**Conclusion:**
In conclusion, managing dependencies with Yarn is like a balancing act, but it doesn't have to be a serious one. Understanding how Yarn manages dependencies and how to resolve dependency conflicts can help you develop and deploy applications more efficiently - and with fewer arguments! With the tips provided in this blog post, you'll be better equipped to handle any dependency conflicts that arise in your projects - and maybe even use some humor to lighten the mood.
berufliches Vorwärtskommen: So übersieht man seine Stärken
Tags: deutsch, career, discuss, motivation
Published: 2023-03-26 08:26:44

Moin Moin,

unsere Stärken zu übersehen ist ähnlich einfach wie unsere Körpergröße als normal zu empfinden. Wir verwenden unsere Stärken stets, ohne großartig drüber nachzudenken und wir sehen die Welt immer aus unserer Perspektive.
Dem entsprechend erscheinen uns Herausforderungen leicht oder schwer, bzw. andere Menschen groß oder klein.

Also, wie groß bist du ?  Was sagen andere zu deinen Leistungen ?  Bei welchen Errungenschaften oder Problemlösungen waren Leute erstaunt, während du es nicht als besonders schwierig empfandest ?

>
Sehe deine Stärken, Sehe deine Körpergröße.

Beste Grüße,
Mustafa
Master Python Documentation - Part1: Using the Python Interpreter.
Published: 2023-03-26 13:50:26


This is the summary of the first part of a [video series](https://youtu.be/fUvT0O76DyY) in which we will go through the  [`Tutorial` part of Python official documentation](https://docs.python.org/3/tutorial/interpreter.html#invoking-the-interpreter). 

> *Reading the documentation of your programming language, framework, or library, won't make you a pro-coder overnight, but it will help you improve your understanding. It helps you discover the tips, tricks and caveats of the technology that tutorials, courses, or books do not necessarily provide.*
> 
----------

## Summary

In this part,  the documentation introduces us to the python interpreter. It shows the different ways to invoke the python interpreter and how to invoke python modules and scripts. We have also seen how to pass and retrieve arguments using the `sys` built-in module.

---------

## Questions

*Let's see if you can find the right answers to these questions.*

### 1- _What are the ways to exit the python interpreter presented in the documentation? (select all the answers that apply):_
a. Ctrl-X
b. Ctrl-D
c. Ctrl-ESC
d. `quit()`



### 2- _When no script and no arguments are given to the python prompt, what will be the output of the following code:_
    
```python
import sys
print(sys.argv[0])
```
 
a. `IndexError: list index out of range` because `sys.argv` is empty
b. `None` 
c. an empty string `""`   



### 3- _Complete this sentence:_
When -m module is used, sys.argv[0] is set to the ……….. :
 
a. name of the module file
b. full name of the located module
c. relative name of the module

--------

Here is the link to the video: [https://youtu.be/fUvT0O76DyY]

Here is the link part of the documentation that we covered in the video: [https://docs.python.org/3/tutorial/interpreter.html#invoking-the-interpreter]
Critical Thinking
Tags: career, productivity, ai
Published: 2023-03-26 14:36:31

We are bombarded daily with a huge amount of data, news, opinions and recommendations.

To avoid manipulation and logical errors, we need to learn how to carefully filter information. It is necessary to evaluate and analyze before accepting it as truth.

We are finding ourselves asking ChatGPT and its AI friends more often than searching Google ourselves these days. We are coming to fully trust their answers without realizing it.

This could be dangerous.

We cannot guarantee that AI models are unbiased, even though they are trained on massive amounts of data. Their algorithms or the information used to develop them could be wrong or outdated.

The skill of critical thinking is now becoming even more in demand than any hard skill.

Follow these simple rules:

- Get clear understanding of message. If unsure, ask questions. Questions unlock understanding.
- Don't just take things at face value. Look for proof, hard facts, expert opinions, statistics, and real examples to support what people say.
- Consider other options. This will lead you to make more balanced and reasonable decisions.

As AI progresses, we must streamline our work. But we should not blindly hand over all accountability to AI.

Trust, but verify. Think critically.
Start now.
Entering into the Multiverse of Blazor with Bit Platform templates
Tags: webdev, dotnet, csharp, blazor
Published: 2023-03-26 17:00:35

Looking for a solution to create both Web and App projects in a single shared codebase? Look no further than [Bit Platform](https://bitplatform.dev/)'s templates!

Bit Platform's [TodoTemplate](https://bitplatform.dev/todo-template/overview) is a comprehensive solution that utilizes ASP.NET Core, Identity, Web API, and EF Core for the server-side, and Blazor for the client-side. With this powerful combination, you can build a wide variety of applications from a single codebase, including:

### Blazor Modes

- Blazor Server: Ideal for fast development and debugging
- Blazor WebAssembly: Perfect for SPA and PWA (for production)
- Blazor Hybrid: Provides Android, iOS, Mac Catalyst, Tizen, and WinUI apps with full access to platform native features using .NET MAUI!
- Blazor Electron: Provides WPF, macOS Cocoa, and Linux apps with full access to platform native features using Electron.NET!

###Features
With pre-configured options for Android, iOS, macOS, Windows, and Linux apps, as well as PWA (for offline-capable web apps) and SPA with/without pre-rendering, Bit Platform's templates offer unparalleled flexibility and startup speed. These templates also utilize Bit Blazor UI components, which are fast, lightweight (less than 200KB), and perfect for building even complex applications like e-commerce sites.

###Demos
Bit Platform has already developed and published several websites and apps using these templates, including:

* [Bit Components web site](https://components.bitplatform.dev/)
* [Bit Components mobile app](https://install.appcenter.ms/orgs/bitfoundation/apps/bitcomponents/distribution_groups/testers)

* [Bit Platform web site](https://bitplatform.dev/)

* [Todo SSR enabled web app](https://todo.bitplatform.dev/)
* [Todo PWA](https://todo-app.bitplatform.dev/)
* [Todo mobile app](https://install.appcenter.ms/orgs/bitfoundation/apps/todo/distribution_groups/testers)

* [Admin panel multilingual web app](https://adminpanel.bitplatform.dev/)
* [Admin panel multilingual mobile app](https://install.appcenter.ms/orgs/bitfoundation/apps/adminpanel/distribution_groups/testers)

###Support
In addition to offering a convenient and streamlined development process, Bit Platform's TodoTemplate also comes with excellent documentation and support. Their team of experts is always ready to answer questions and provide guidance, making it easy for developers of all levels to use their platform effectively.

---

Don't let the complexity of building web and app projects separately hold you back. Try Bit Platform's templates and start building your next project today!

You can also find more information about Bit Platform's TodoTemplate at https://bitplatform.dev/todo-template/overview and components at https://components.bitplatform.dev/

Happy coding ;D
How to Clean Up Snap Versions to Free Up Disk Space
Tags: ubuntu, snap
Published: 2023-03-26 21:29:06

(see: [My source of information](https://www.debugpoint.com/clean-up-snap/))

#### Symptom: the partition containing `/var` is running out of diskspace.
_OS: Linux Ubuntu_

This quick guide with a script helps to clean up old snap versions and free some disk space in your Ubuntu systems. 

Snap can consume a considerable amount of storage space because it keeps old revisions of a package for retention.

The default value is 3 for several revisions for retention. That means Snap keeps three older versions of each package, including the active version. This is okay if you do not have constraints on your disk space.

But for servers and other use cases, this can easily run into cost issues, consuming your disk space.

However, you can easily modify the count using the following command. The value can be between 2 to 20.
```Bash
sudo snap set system refresh.retain=2
```

## Clean Up Snap Versions
In a post in SuperUser, Popey, the ex-Engineering Manager at Canonical, [provided](https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps/1330590#1330590) a simple script that can clean up old versions of Snaps and keep the latest one.

Fire-up nano to create a new script in `/bin`:
```Bash
sudo nano /bin/clean_snap.sh
```
Here’s the script we will use to clean the Snap up.
```Bash
#!/bin/bash
 #Removes old revisions of snaps
 #CLOSE ALL SNAPS BEFORE RUNNING THIS
 set -eu
 LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
     while read snapname revision; do
         snap remove "$snapname" --revision="$revision"
     done
```
Save the file by pressing `ctrl`+`x`, `y` in nano.

Make it executable:
```Bash
sudo chmod +x /bin/clean_snap.sh
```
CLOSE ALL SNAPS and then run the script to clean old snaps:
```Bash
sudo /bin/clean_snap.sh
```
Debian estable....mi distro final?
Tags: debian
Published: 2023-03-26 23:54:17

Llevo usando toda una semana #debian11 en su versión #estable de manera en mi laptop Asus VivoBook y puedo llegar a las siguientes conclusiones:

No me volvió a fallar el wifi en ningún momento.

A pesar de ser la versión de gnome 3.38 bastante tosco, el rendimiento va mas que sobrado y me ha demostrado porque muchas personas adoran debían.

Luego de instalar el kernel xanmod 6.2…. pues tocaba probar haciendo primero el día de ayer un directo vía youtube con múltiples trabajos al mismo tiempo y todo controlado y bastante satisfecho.

El día de hoy me toco probar para jugar, por lo que tuve que irme a jugar CSGO y los resultados fueron mejor de lo esperado. (No juego habitualmente aunque compre algunos juegos y los tengo ahí).

Finalmente debo concluir que esta versión se ha asentado mejor de lo que esperaba, dándome una sensación de estabilidad, comodidad y jugabilidad. Esperemos que debian 12 mantenga esa misma magia con mi laptop, de ser así, pues creo que encontré mi centro de gravedad con debian.

Que esperar de debian12??? pues, personalmente espero un salto muy cuantificable sobretodo en gnome por el paso de 3.38 a la versión 44 con la que calculo va a quedar en su versión estable.

No quiero decirme que ya soy debianita, pero ya les digo que me ha dado mejor sensación que mi amada fedora…llegara a reemplazarla definitivamente…solo el tiempo dirá.
20- Computing the distance between a pair of points using PyQGIS
Tags: programming, python, pyqgis
Published: 2023-03-27 00:40:07

--- series: A beginner's guide to using Python with QGIS ---
```python
# import the necessary module
from qgis.core import QgsDistanceArea

# create a new QgsDistanceArea instance
d = QgsDistanceArea()

# set the ellipsoid to use for the measurement (in this case, WGS84)
d.setEllipsoid('WGS84')

# create two QgsPointXY instances representing the coordinates of Erbil and Duhok
Erbil = QgsPointXY(44.01, 36.19)
Duhok = QgsPointXY(42.99, 36.86)

# calculate the distance between the two points using the QgsDistanceArea instance
distance = d.measureLine([Erbil, Duhok])

# print the result of the distance calculation, converted from meters to kilometers
print("The distance between Erbil and Huhok is", distance / 1000, "KM")
```

> If you like the content, please [SUBSCRIBE](https://www.youtube.com/channel/UCpbWlHEqBSnJb6i4UemXQpA?sub_confirmation=1) to my channel for the future content