teleren/devto huggingface dataset:
What do you know about work ethics 🤔
Tags: ethics, intern, hngx, essence
Published: 2023-09-09 19:42:44

Overtime, it is required of every personality to keep to work ethics, which simply means keeping to rules and regulations guiding the affairs and smooth running of work.
You don't know the essence yet, join me as we unveil it together.
Ethics relating to intern-mentor relationship, stick to the fact that, interns are meant to perform their activities, with diligent surveillance, from the mentors, thereby providing a smooth working environment.
Yes,mentors have the sole-right to recall or read out the necessary ethics to follow to the interns, thereby keeping the interns in line,and on track.
A concise example is HNGx Internship, having mentors engaging the interns,to stick to the rules and regulations which is the ethics, to ensure a serene and suitable environment for learning.
But do you really think, not explaining ethics as required will help the interns to perform well?,
That's what will be discussed in another article.
Adhere to ethics, don't fret, the ethics are always simple and easy to keep track of, for best achievements on both sides.
Curious about both sides 🤔,yeah, on both the intern and the mentor sides.

![Uploading image](...)
String Formatting in Python
Tags: python, programming, beginners, tutorial
Published: 2023-09-09 19:00:14

String formatting is a fundamental aspect of Python programming that helps you create well-structured and dynamic strings. It allows you to embed variables and values into predefined placeholders within a string. In this blog, we will explore two key methods for string formatting in Python: the `.format()` method and f-strings.

## Using the `.format()` Method

The `.format()` method is a traditional way of formatting strings in Python. It involves using placeholders within a string and supplying values to replace these placeholders. Let's delve into some examples to grasp this concept.

### Basic Usage of `.format()`

```python
print('This is a string {} through the format method with the help of {}'.format('INSERTED', 'CURLY_BRACKETS'))
```

In this example, we have two placeholders (`{}`) in the string, and the `.format()` method takes two arguments, which are inserted into these placeholders in the order they appear.

```python
print('The {2} {1} {0}'.format('fox', 'brown', 'quick'))
```

Here, we explicitly specify the positions of the values to insert. It's important to note that Python uses zero-based indexing, so the order of insertion is 'quick', 'brown', 'fox'.

### Named Parameters

You can also use named parameters to enhance readability:

```python
print('The {q} {b} {f}'.format(f='fox', b='brown', q='quick'))
```

This approach allows you to assign values to placeholders by name, making your code more self-explanatory.

## Formatting Floating-Point Numbers

String formatting isn't limited to inserting text; it's equally valuable when dealing with numbers, especially floating-point values. You can control the width and precision of floating-point numbers using the following syntax: `{value:width.precisionf}`.

```python
result = 65 / 989
print('The result is {}'.format(result))
print('The result is {r}'.format(r=result))
print('The result is {:2.4f}'.format(result))
```

In the above example, `:2.4f` specifies that we want the result to be displayed with a width of 2 characters and a precision of 4 decimal places. You can adjust these values to suit your requirements.

## Embracing F-Strings

F-strings, introduced in Python 3.6 and later versions, offer a more concise and intuitive way to format strings:

```python
name = 'John Doe'
print(f'Hello, I am from England, and my name is {name}')
```

With f-strings, you simply prefix your string with an 'f' and use curly braces `{}` to directly embed variables or expressions within the string. This approach enhances code readability, particularly when working with variables.

In summary, string formatting in Python empowers you to create dynamic and well-structured strings. While the `.format()` method remains versatile and suitable for older Python versions, f-strings provide a cleaner and more readable option for modern Python development. Choose the method that aligns with your project's requirements and coding style. Happy coding!
OLD PROJECTS
Published: 2023-09-09 18:55:27

I see alot of projects on peoples githubs when they were just starting out as devs and they still have alot of bugs. I think if a person made a project while starting up i think its best to come back and fix the bugs rather than just leaving them.

I think it shows how you use knowledge after acquiring it
This saturday I fixed my landing page https://github.com/Mtendekuyokwa19/AfricaLandingpage
https://startupsafrica.netlify.app/
I'm back!!!
Tags: css, design, community
Published: 2023-09-09 18:47:00

_**So... I've been MIA for a while...**_

In case you haven't noticed, I've been missing around these parts for a little while, although [a lot has certainly been happening](https://rolandixor.pro/outreachy). In May of this year, I began my [Outreachy](https://outreachy.org) journey, working with the Fedora Badges design project.

Before this time, I'd been hinting that I'd be releasing some new content, which I indeed ha(d/ve) in the works. The nature of life being as it is, however, I've had to delay the release of those articles, so I could focus on completing my internship successfully and taking care of some other pressing matters in life.

That said, my internship is now (successfully!) completed, and I've got some room to focus on giving you the content I've been promising for so long!

## So what are we looking for, sir?

_Glad you... or I? somebody... asked!_

I've been working on a LONG post about conditionally applying styles via the use of `@supports` in CSS. Initially, I was going to release this post in one go, but as time dragged on and the post grew, I've come to realize that it would be better to split this post up into a series. And that's exactly what I'll be doing.

Part of the reason I've decided to do this is because CSS has been gaining new features by the bunch in recent years/months... weeks, even. There are a lot of opportunities for turning these new features into amazing functions within our websites and projects.

For instance, we can now use :has(), cascade layers, accent colors, and so much more!!!

I'll be playing with these new toys (and some old toys) and bringing you more #CSSFunstuff to play with! It's gonna be a fun ride!

If you haven't yet, feel free to follow me _(wink wink, nudge nudge)_, but also let me know what new features in CSS you're excited about, so we can talk about them! I'm happy to dive in!

## Until next post...

I'll be seeing you around! Please send me cool DEV articles in the comments or on [my Mastodon profile](https://mastodon.social/@rolandixor) (I'm pretty much done with... that other place). I'd like to see what everyone's been working on and learn some new tricks myself!
AppListr | The Desktop App Marketplace!
Tags: desktop, marketplace, showcase
Published: 2023-09-09 18:16:59

---
title: AppListr | The Desktop App Marketplace!
published: true
description: AppListr | The Desktop App Marketplace!
tags: #desktop #marketplace #showcase
# cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vecpt2ysh0j5a3eb2uot.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-09 18:12 +0000
---
![Ilogo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aqju9xt7t7sc9edaczz6.png)
Introducing our new app: AppListr - The Desktop App Marketplace!

https://applistr.vercel.app/

Discover a wide range of desktop applications used by developers, content creators, and more.

As we're just getting started, you may not find an extensive app selection yet. However, if you use any desktop apps, you can contribute by listing them after filling out our submission form.

We invite you to explore the app and kindly share your valuable feedback with us.

Thank you for being a part of AppListr!
incorrect output on NumCPU() when using cgroups2
Tags: nginx, ingressnginx
Published: 2023-09-09 18:14:25

Assuming it as a helm-chart deployment*

- On a cgroup2 enabled k8s cluster, in ingress controller pod the nginx process will use all the cores of the node and will not be restricted by container resource limits. This can cause OOM and ingress-controller pod will go to a CrashLoopBackOff.

- As of now, workaround is to set the worker_processes in a configmap (nginx.conf).

Ref: [https://github.com/kubernetes/ingress-nginx/issues/9665](https://github.com/kubernetes/ingress-nginx/issues/9665)
proc-watch: find out what is using the most CPU and memory
Tags: prometheus, devops, python
Published: 2023-09-09 18:13:56

When you are running multiple EC2 instances or running a shared environment, it is useful to monitor the amount of CPU being used and how much memory is being used over time.

For example, if there's a lot of processing happening and CPU usage
- there could be something strange going on
- ...or it could be an expected amount of CPU usage depending on the workloads of the compute nodes

If there's a lot of memory usage that is unexpected
- it could be a memory leak
- ...or a new process launched that is consuming more resources

If there are more users logging in and starting various programs, there could be more processes running or more CPU or memory usage around particular times of the days.

*It can be hard to tell what's actually happening unless you SSH into the instance and check the CPU/memory usage with `top` or `htop`.*

[`proc-watch` is meant to help in this respect. It is a Python program that will parse the output of `ps` on Linux and MacOS systems](https://github.com/rudolfolah/proc-watch) to tell you:
- the number of processes that are currently running
- the process that is using the most memory
- the process that is using the most CPU
- the most memory being used by one process
- the most CPU being used by one process

It exports these metrics to Prometheus so that you can monitor the changes over time.

Here's how it would be useful:
- you will be able to see that the system has no load when the most CPU or memory usage is barely hovering above 0.1%
- when a resource-intensive process is started, you will be able to see that, a-ha! It's headless Chrome starting an automated test run!

Check out the code here: https://github.com/rudolfolah/proc-watch
The Ultimate Chrome Tutorial
Published: 2023-09-09 18:03:13

Chrome is a cross-platform created by google that hosts search engines which are used to search for information over the internet which is then returned as a list of web pages that match the search uery.

## How to Choose a Search Engine In Chrome

On the top right side of the screen click the three dots to go to settings.
a left side menu appears on the settings page, click on search engine option.

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

Select your preferred search engine from the drop down list as indicated in the diagram.

![Search dropdown](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/snyczffoj0sbzcfvkhg7.PNG)

## How To Search 
To successfully search for any information on the internet via a web browser, you will need an internet connection.

On the new tab, type the text you would like to search for in the input section. 

![Search article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ugh04b823dvxkmd4fxku.PNG) 

Press enter to view your search results.
The search engine tries as much as possible to give to the best matching results.

Your search results will display a list of websites with the keyword you typed for. Through search engine mechanisms the displayed information will also contain additional information as provided by a specific website. This way you can determine if the result is the one you are looking for before opening the website.

Example.
On the search bar enter the input text appwrite.
The search results will come in different formats and you can choose which format you want. By default you will have the all results option selected.

![Search filter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wf9h9srh5o82xxnqgypu.PNG)
Samsung Galaxy S23 FE Price In Bangladesh and full spec
Published: 2023-09-09 17:44:03

[Samsung Galaxy S23 FE price in Bangladesh](https://sohag.com.bd/samsung-galaxy-s23-fe-price-in-bangladesh-and-full-spec/): Discover the latest for a smartphone that redefines excellence with its outstanding features. It features an impressive 12 GB of RAM, a generous 128 GB of storage, and a powerful 108 MP main camera.

And driven by an octa-core processor clocked at 1.2 GHz, this device represents the pinnacle of mobile technology. Plus, with a long-lasting 4500 mAh battery, it’s ready to meet the demands of your digital lifestyle.
Kubernetes service workflow
Tags: discuss, devops, kubernetes, webdev
Published: 2023-09-09 17:38:53


![Kubernetes Service](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rri6b4aq6r97iyg84uo5.png)Navigating the Kubernetes waters with Services and Pods! ⚙️ Discover how they keep your containers afloat. #KubernetesMagic #ContainerLifestyle #TechExplorers 📸
Research and Develop Thinking for UI/UX
Published: 2023-10-18 08:11:50

---
title: Research and Develop Thinking for UI/UX
published: true
date: 2023-09-09 17:30:00 UTC
tags: 
canonical_url: 
---

UX တွေကို R&D များများလုပ်ခိုင်းဖို့လိုပါတယ်။ နောက်သိရမှာက UX တင်မဟုတ်ဘဲနဲ့ DX ပါ။ Developer Experience ကိုသိထားဖို့လိုတယ်။ Stakeholders တွေနဲ့အရင်စကားပြောရတာက များသောအားဖြင့် UX တွေဖြစ်တယ်။ DX ကဘယ်အပိုင်းတွေမှာ Stuck နိုင်တယ်ဆိုတာကိုပါ Estimate ထဲထည့်ပြီးတွက်ထားနိင်ဖို့၊ တွက်တတ်ဖို့ Practice လုပ်သင့်တယ်။
Generate code snippet for REST API call from Postman
Tags: restapi, postman, postmanapi
Published: 2023-09-09 17:01:11

Testing REST APIs in Postman is a norm for all software developers. Once the REST API is tested in Postman, it is time to integrate the same with the frontend interface to fetch or post data.
During the integration phase, if you face a blocker while developing the code for an API call, then Postman is here to help.
Just follow the below-mentioned steps:

1. Add the REST API call in POST man and initialize the body and headers based on the method (GET or POST)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjyzqhg6ielj7h21ppjx.png)

2. Once you receive the success response, click the code icon in the top right corner. In the dialog box, select the relevant coding language from the dropdown.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v3ces8kf4gac00lvlfes.png)

3. Postman will generate a code snippet that you can now copy and paste in your project. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/89ej5hghfm4ef486sgti.png)

BEWARE: The snippet may require some modification based on your project. 

Happy Coding!

Follow us on [Instagram ](https://www.instagram.com/commitandpush/)

[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hqmyq1twcon9ndguelyd.png)](https://www.buymeacoffee.com/hardiquedasore)
Increase your productivity with pomodoro aesthetic timer: The perfect ally for a productive routine
Tags: pomodoro, productivity, pomodorotimer, webdev
Published: 2023-09-09 16:53:51


![pomodooro timer aesthetic](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j84pxerkcv9e24wl0mwx.png)

# Introduction to the pomodoro technique
In a world filled with distractions and constant demands, finding effective ways to manage time time is staying focused became crucial using the pomodoro timer.

That's where [the Pomodoro Technique comes](https://pomodorotimeraesthetic.netlify.app/) in, a proven approach to increasing productivity and maximizing time. performance. In this article, we are going to explore the Pomodoro technique and present a unique tool that matches this powerful methodology with an aesthetic design (pomodoro online), the Pomodoro Timer aesthetic.

The best pomodoro timer aesthetic: https://pomodorotimeraesthetic.netlify.app/

https://pomodorotimeraesthetic.netlify.app/

https://pomodorotimeraesthetic.netlify.app/
Support i18n / tips
Tags: javascript, webdev, tutorial, programming
Published: 2023-09-09 16:35:22

Support i18n to your website is not a easy jobs but you do many stuff manualy like write a translation. This function helpyou to format price, amount like client side and server side code.


#i18n
#tips
#javascript
#frontend
#backend
#fullstack
#life
Navigating the Perfect PPPoker Club in Today's Online Landscape
Published: 2023-09-09 16:33:52


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

In the fast-paced universe of online poker, finding the perfect club becomes increasingly important. There are numerous elements to consider, and in this article, we aim to guide you through this labyrinth of options to make an educated decision. The website [pppoker ](https://pppoker.su/) and [our comprehensive video](https://youtu.be/88ckTweD5Z0) review can serve as valuable resources during this journey.

**Key Criteria When Choosing a Club:**
**Credibility:** Go through user reviews and expert critiques about the club. Share your thoughts and experiences on community forums and social platforms.
**Game Diversity:** A variety of tables and tournaments indicates that the club is lively and can cater to different skill levels.
**Incentive Schemes and Promotions:** Clubs often roll out bonuses and promotions to entice new users and retain regulars.
**Quality of Support:** An efficient and knowledgeable support team reflects the seriousness and reliability of the club.
**Expert Opinions:**
Our in-depth video elucidates the pivotal aspects you should bear in mind while choosing a PPPoker club. It gives you a holistic understanding of what needs particular focus.

**Conclusion:**
Choosing a [PPPoker club](https://youtu.be/88ckTweD5Z0) is a multifaceted process that calls for a meticulous approach. By adhering to the above-mentioned guidelines and consulting resources like [pppoker](https://pppoker.su/) and [the video guide](https://youtu.be/88ckTweD5Z0), you'll be better equipped to make a well-informed choice and relish the game to its fullest.
Create Quotes API using FastAPI and Python
Tags: python, fastapi, api, programming
Published: 2023-09-09 16:31:48


## Hi 🙂

Welcome to a new post. Today I will share with you how to create quotes using the FastAPI and Python APIs. It is very easy to make an API like this. You need to create a JSON file to store quotes. Use this link: https://www.goodreads.com/quotes/ to find more quotes.

```json

{
    "quotes": [
        {
            "quote": "If children were brought into the world by an act of pure reason alone, would the human race continue to exist? Would not a man rather have so much sympathy with the coming generation as to spare it the burden of existence, or at any rate not take it upon himself to impose that burden upon it in cold blood?",
            "author": "Arthur Schopenhauer"
        },

        {
            "quote" : "The idea of bringing someone into the world fills me with horror. I would curse myself if I were a father. A son of mine! Oh no, no, no! May my entire flesh perish and may I transmit to no one the aggravations and the disgrace of existence.",
            "author": "Gustave Flaubert"
        },

        {
            "quote" : "A coin is examined, and only after careful deliberation, given to a beggar, whereas a child is flung out into the cosmic brutality without hesitation.",
            "author": "Peter Wessel Zapffe"
        },

        {
            "quote" : "Parents have a child, and in doing so they bring into the world a monster that kills everything it comes in contact with.",
            "author": "Thomas Bernhard"
        },

        {
            "quote" : "Every time a man is begotten and born the clock of human life is wound up anew, to repeat once more its same old tune that has already been played innumerable times, movement by movement and measure by measure, with insignificant variations.",
            "author": "Arthur Schopenhauer"
        }
    ]
}
```

Now we are ready to create the API. 🤗

```python

import json
from fastapi import FastAPI


app = FastAPI()

quotes = json.load(open('quotes.json', 'r'))

@app.get('/')
def home():
    return {}

@app.get('/quotes')
def get_quotes():
    return quotes['quotes']


```
## run the API
```
uvicorn main:app --reload
```

## result

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6euc91tgpzqnv5h0ltgt.PNG)

This is a very simple example of the create quotes API. You can add more features, like getting quotes by tag name, author name, and more.

**Now we're done 🤗**

**Don't forget to like and follow 🙂**

**Support me on PayPal 🤗**
https://www.paypal.com/paypalme/amr396
Typesafe Github Workflows explained to a 5 years old
Tags: github, githubactions, showdev
Published: 2023-09-09 16:18:29

{% embed https://dev.to/devteam/can-you-explain-your-project-to-a-5-year-old-14h2 %}

I am big fan of explaining stuff to five years old because you push your limits as a pedagogue. 

5 years old can understand many things you wouldn't expect if you exchange complex words for story telling.

{% embed https://dev.to/jmfayard/best-of-explainlikeimfive-3a0f %}

So I'm going to explain my last project, whose main credits go to [Piotr Krzemiński](https://github.com/krzema12) in both geek and greek editions.

## Geek Mythology

If you are a DEV, this is the story we tell you :

_[typesafegithub/github-workflows-kt](https://github.com/typesafegithub/github-workflows-kt/) is a tool for creating GitHub Actions workflows in a type-safe script, helping you to build robust workflows for your GitHub projects without mistakes, with pleasure, in Kotlin_.

**You won't go back to YAML!**

![](https://share.cleanshot.com/YVkf1zGB+)

{% embed https://github.com/typesafegithub/github-workflows-kt/ %}

## Greek Mythology

It may sound tricky to explain type safety and YAML to a 5 years old

But those little devils are smart, so let's try.

_Dear 5yo_,

_Typesafe Github Workflows are just like your favorite story from the greek mythology_. 

_Odysseus and its crew, we call them the devs, have worked hard and want to go home_.

_But while they are heading home, a terror invade their hearts. They hear a seducing song from the sirens on an island called GitHub.__

__That song is written in a terrifying foreign language that pretend to be a programming language__.

😱 **YAML** 😱. 

_The devs in the boat fear that it may be the very last sound they hear before their death_.

_There is in missing space in that YAML_.

_That may not sound much to you, but the YAML world is a very unstable world. That missing space changes everything and meances to destroy the whole world around the DEVs_.

_But Odysseus, just like my project, smartly put wax in the devs's ears,  so they don't have to hear any of that scary YAML stuff, remain unaffected and go home safely_.

_Odeysseus and my project have to hear the YAML, and we struggle to resist, but in the end we live to tell the tale._

{% embed https://www.youtube.com/watch?v=jVVL_zPsMNI %}