teleren/devto huggingface dataset:
Beginners Guide For Python programming
Published: 2023-05-11 11:15:34

Python is a popular high-level programming language used for a variety of purposes, including web development, data analysis, artificial intelligence, and more. It is known for its simplicity, readability, and versatility, making it a great language for beginners to learn. In this beginner's guide, we'll cover the basics of Python programming and provide some resources for further learning.

Getting Started with Python
Before we dive into coding, we need to set up a development environment. Python is available on all major operating systems, including Windows, macOS, and Linux. Here are the steps to install Python on your computer:

Download and install the latest version of Python from the official website.
Open a terminal or command prompt and type "python" to ensure that Python is installed correctly.
Choose a code editor or IDE (Integrated Development Environment) to write and run your Python code. Some popular options include Visual Studio Code, PyCharm, and Jupyter Notebook.
Once you have Python and a code editor installed, you're ready to start programming!

Basic Syntax
**[Python Classes in Aurangabad](https://www.sevenmentor.com/python-classes-in-aurangabad)** is known for its easy-to-read syntax, making it a great language for beginners. Let's start with some basic concepts:

Comments: Comments in Python start with the # symbol and are used to explain your code to others. They are not executed by the interpreter.
Variables: Variables are used to store data. They can hold values such as numbers, strings, or lists. Variables in Python are dynamically typed, meaning they can hold any type of data.
Operators: Operators are used to perform operations on variables or values. Some common operators in Python include +, -, *, /, and %.

Control Flow
Control flow refers to the order in which statements are executed in a program. Python has several control flow statements, including:

Conditional statements: These statements are used to execute different code depending on whether a condition is true or false. The most common conditional statement in Python is the if statement.
Loops: Loops are used to repeat a block of code multiple times. Python has two types of loops: for and while loops.

Functions
Functions are blocks of code that can be reused throughout a program. They take inputs (known as parameters) and return outputs. In Python, functions are defined using the def keyword.

Conclusion
**[Python Training in Aurangabad](https://www.sevenmentor.com/python-classes-in-aurangabad)** for beginners to learn due to its simplicity, readability, and versatility. In this beginner's guide, we covered the basics of Python programming, including installation, syntax, control flow, and functions. With practice and further learning, you can become a proficient Python programmer and use it to build a variety of applications.
Manfaat Pendidikan Untuk Masa Depan
Published: 2023-05-11 11:27:01

Pendidikan memiliki banyak manfaat untuk masa depan, baik bagi individu maupun masyarakat secara keseluruhan. Berikut adalah beberapa manfaat pendidikan untuk masa depan dari [Blog pendidikan](https://ruangstudy.com/) yang bisa bermanfaat untuk kalian:

Meningkatkan Peluang Karir: Pendidikan dapat membuka pintu untuk berbagai kesempatan karir, memperluas pilihan pekerjaan, dan meningkatkan penghasilan. Dengan pendidikan yang baik, individu dapat memperoleh keterampilan dan pengetahuan yang dibutuhkan untuk menjadi sukses dalam karir mereka.

Mengembangkan Keterampilan dan Kemampuan: Pendidikan membantu individu mengembangkan keterampilan dan kemampuan, seperti keterampilan komunikasi, analisis, dan pemecahan masalah. Keterampilan ini sangat penting untuk kesuksesan di tempat kerja dan dalam kehidupan sehari-hari.

Meningkatkan Kesehatan dan Kesejahteraan: Pendidikan memainkan peran penting dalam meningkatkan kesehatan dan kesejahteraan masyarakat. Dengan pendidikan yang baik, individu dapat memperoleh pengetahuan tentang [Ide Bisnis](https://basebisnis.com/) kesehatan dan gaya hidup sehat, serta memahami pentingnya pola makan yang baik dan olahraga teratur.

Meningkatkan Partisipasi Politik: Pendidikan dapat meningkatkan partisipasi politik masyarakat dengan membantu individu memahami hak-hak mereka dan menjalankan tanggung jawab mereka sebagai warga negara yang bertanggung jawab.

Mengurangi Kemiskinan dan Ketidaksetaraan: Pendidikan dapat membantu mengurangi kemiskinan dan ketidaksetaraan di masyarakat dengan membuka akses ke kesempatan yang sama bagi semua orang, terlepas dari latar belakang mereka.

Meningkatkan Inovasi dan Kemajuan: Pendidikan adalah kunci untuk inovasi dan kemajuan di masyarakat. Dengan pendidikan yang baik, individu dapat memperoleh pengetahuan dan keterampilan yang dibutuhkan untuk menciptakan produk dan layanan baru, mengembangkan teknologi, dan memecahkan masalah kompleks.

Secara keseluruhan, pendidikan memiliki manfaat yang besar untuk masa depan individu dan masyarakat secara keseluruhan. Oleh karena itu, penting untuk memprioritaskan investasi dalam pendidikan dan memastikan bahwa semua orang memiliki akses ke pendidikan yang berkualitas.
Django:- Serving user uploaded files
Published: 2023-05-11 11:21:51

-  In Settings.py:

```py
       add MEDIA_URL = '/images/
       add MEDIA_ROOT =  BASE_DIRS/ 'static/images'
```

-in urls.py:

``` py
       from django.conf import settings
       from django.conf.urls.static import static

       urlpatterns +=  static(settings.MEDIA_URL, document_root = 
                              settings.MEDIA_ROOT)

```
-in forms.py:
       

```py
add enctype='multipart/form-data'
```
    eg below:

``` py
<form method='POST' enctype= 'multipart/form-data'>

       </form>
```

       

-in views.py

    

``` py
form = ClassForm()
    if request.method == "POST":
        form = ClassForm(request.POST, request.files)
```
Patterns and practices for building resilient applications
Tags: aws, resilience, chaosengineering
Published: 2023-05-11 10:53:26

---
title: Patterns and practices for building resilient applications
published: true
description: Resources for the session Patterns and practices for building resilient applications
tags: aws,resilience,chaosengineering
// cover_image: https://cdn.grosch.se/dev-to/improve-resilience-with-automated-chaos-engineering/improve-resilience-with-automated-chaos-engineering.png
---

This post contains resources for the session Patterns and practices for building resilient applications.

#### AWS Well-Architected Framework
Best practices for Architecting in the AWS Cloud
https://aws.amazon.com/architecture/well-architected

##### Reliability Pillar
https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/welcome.html

##### Operational Excellence Pillar
https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/welcome.html

#### AWS Well-Architected Labs
Hands-on labs to help you learn, measure, and  build using architectural best practices
https://wellarchitectedlabs.com/

#### AWS Architecture Center
Official AWS repository for all Architecture resources
https://aws.amazon.com/architecture

#### AWS Solutions Library
Vetted reference implementations and  Well-Architected patterns
https://aws.amazon.com/solutions/

#### Use immutable infrastructure with no human access
https://docs.aws.amazon.com/wellarchitected/latest/financial-services-industry-lens/use-immutable-infrastructure-with-no-human-access.html

#### Guidance for Cell-based Architecture on AWS
https://aws.amazon.com/solutions/guidance/cell-based-architecture-on-aws/

#### Public Amazon S3 bucket remediation
https://github.com/awslabs/aws-config-rules/tree/master/aws-config-conformance-packs

#### Public SSH access remediation
https://github.com/adhorn/ssh-restricted

#### Chaos Engineering on AWS workshop
https://catalog.us-east-1.prod.workshops.aws/workshops/5fc0039f-9f15-47f8-aff0-09dc7b1779ee/en-US

#### Resilient and Well-Architected Apps with Chaos Engineering
https://catalog.workshops.aws/resilient-apps/en-US

If you have any questions, please reach out on [Twitter](https://twitter.com/GunnarGrosch) or [LinkedIn](https://www.linkedin.com/in/gunnargrosch/).
What is needed to move the needle on employee engagement?
Tags: digitalworkplace, employeeengagement, remoteworker
Published: 2023-05-11 10:35:35

Creating and sustaining an engaged workforce still remains a major challenge for most organizations. Gallup’s State of the Global Workplace report states that 85% of employees are not engaged at work. This is a high margin, something that organizations should be wary of. For implementing any kind of strategy aimed at boosting engagement, it is pivotal to familiarize yourself with what employee engagement essentially means. Investopedia defines it as the level of enthusiasm and dedication a worker feels toward their job. 

A more elaborate definition would be how a workplace brings in the right set of conditions in order for employees to feel motivated to perform their jobs at maximum efficiency and align themselves with the goals and values driving the organization. So, at the base level, organizations should have a clear understanding of engagement principles and then find ways to effectively put them into action. Bringing all collaboration and communications under one roof is one step to achieving this. For companies that have a mix of hybrid and remote workers, investing in digital workplace solutions like [InfinCE](https://www.infince.com/digital-workplace/) seems a viable option. Such virtual workspaces bring a cohesive platform where employees can get every aspect of their job done. 

Another way to get these engagement initiatives rolling forth successfully is by ensuring the processes that go behind from HR to job assignment and so forth are as smooth and timely as possible. A clear and transparent process is a sure way to keep employees satisfied and their queries or requests resolved at the earliest. From the side of managers at the top and medium level, engagement simply involves making sure that each employee under them is offered all the resources they need to get their job done fast. 

Learning and development strategies are part of this and the manager can ensure that their teams get adequate opportunities to reskill themselves to better suit their job roles and turn into active and productive members of the organization. 

Leadership has a great role here by setting an example of what active engagement really looks like. In a company, the leaders and upper management can start by digging into the root causes of disengagement and seeking out employees who are adrift from their work and career goals. They can personally mentor and inspire these employees and act as a model for them to emulate. This will instill a change in perspective as employees will begin to orient themselves with organizational objectives and actively step up to be enthusiastic and contributing elements that drive the business forward.
Simplify networking with socat
Published: 2023-05-11 10:23:52

In many cases, it's necessary to forward requests from one host to another. For instance, the minikube registry addon starts the Docker registry inside the minikube VM, so if you want to push locally built images to the registry, you need to forward the requests from your host to the minikube VM. When you use the docker driver to start minikube, the Docker VM and the minikube VM are connected to the same virtual network interface. The easiest way to forward the requests from your host to the minikube VM is to run `socat` inside a Docker container on your host and use it to forward requests to the minikube VM:

```
docker run --rm -it --network=host alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:$(minikube ip):5000"
```

`socat`, it's a powerful and versatile network tool that can simplify a wide range of networking tasks. I recommend checking out this helpful [post](https://www.redhat.com/sysadmin/getting-started-socat) on getting started with socat to learn more about what it can do.
Input Validation and Sanitization in GraphQL
Tags: graphql, security, backend
Published: 2023-05-11 10:10:32

Hey Dev.to community!

I have a lot of questions about how to sanitize and validate GraphQL input, so I decided to write a blog post about it with the different techniques :)

[👉 Input Validation and Sanitization in GraphQL](https://escape.tech/blog/graphql-input-validation-and-sanitization/)

Feel free to share yours in the comments ;)

Best,
Antoine
Maximum Sum With Exactly K Elements
Tags: leetcode, problemsolving, python
Published: 2023-05-11 10:02:37

You are given a 0-indexed integer array nums and an integer k. Your task is to perform the following operation exactly k times in order to maximize your score:

Select an element m from nums.
Remove the selected element m from the array.
Add a new element with a value of m + 1 to the array.
Increase your score by m.
Return the maximum score you can achieve after performing the operation exactly k times.


```py
class Solution(object):
    def maximizeSum(self, nums, k):
        totalSum = maximum = max(nums)
        for i in range(1, k):
            totalSum += (maximum + 1)
            maximum += 1
        return totalSum    
    

```
Implementing the interceptors
Published: 2023-05-11 09:55:35

Hi,
I have a problem with interceptors, now I'm learning JWT reaching the step dealing with interceptors, I'm not able to know the source of the issue, the interceptor is getting block the login API to be consumed and generate the token that will be injected in request header in the interceptor; here the code of the interceptor class:

import { catchError } from 'rxjs/operators';
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse } from "@angular/common/http";
import { Injectable } from '@angular/core';
import { tap } from 'rxjs/operators';
import { Router } from "@angular/router";
import { Observable, throwError } from 'rxjs';

@Injectable()
export class AuthInterceptor implements HttpInterceptor {

    constructor(){}

    intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>{
          console.log("you are in interceptor");
          // get the token from the local storage
          const token = localStorage.getItem('token');
          if(token){
            console.log("token stored to the local store: "+token);
            // modify the request header
            req = req.clone({
              setHeaders: {Authorization: `${token}`}
            });
            // handling errors
            return next.handle(req).pipe(catchError(err=>{
              console.log("something wrong in interceptor");
              if(err instanceof HttpErrorResponse){
                 console.log(err.status + ': token expired, login again');
              }
              return throwError(()=> new Error('Some Unknown Error'));
            }));
          }
          else console.log("token not provided");

    }
}

if you would like the full code using Node.js and angular, here is the link on angular: https://github.com/process20/JWT-Implementation.
Hope you to help me fixing this issue, I'm struggling for more than 10 days.
How to setup Magento 2 login with social account
Tags: webdev, magento, magento2tutorials
Published: 2023-05-11 09:54:03

Social Login has arisen as an inclined toward highlight among online business stores, inferable from its capacity to empower clients to sign in to their website easily and quickly utilizing their current web-based entertainment account. By coordinating Magento 2 social login, you can improve the login cycle for your clients and upgrade the general client experience of your store.

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

This blog entry will outfit you with a bit by bit instructional exercise on **_how to setup Magento 2 login with a social account_**. It will cover all that from choosing the right expansion to customizing the social login buttons, giving you all the pivotal data you expect to get everything rolling with Magento 2 social login. Whether or not you are a fledgling or prepared Magento 2 client, this guide will outfit you with every one of the fundamental subtleties.

For more details, visit **_https://webguru.dev/how-to-setup-magento-2-login-with-social-account/

_**
Life of an engineering student in India
Tags: engineering, jee, india, education
Published: 2023-05-11 09:43:40

<p>Being an engineering student in India can be both exciting and challenging. Pursuing a degree in engineering requires dedication, hard work, and a passion for learning. From long hours in the classroom to practical assignments, engineering students have a lot on their plates. In this article, we will explore the life of an engineering student in India.</p>
<p>The journey of an engineering student starts right after completing their high school education. Admissions to engineering colleges are highly competitive, and the selection process is rigorous. Once admitted, students begin their journey into the world of engineering.</p>
<figure><img style="max-width: 100%;" src="https://images.unsplash.com/photo-1581092446327-9b52bd1570c2?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3w0Mjg1OTN8MHwxfHNlYXJjaHwxNHx8ZW5naW5lZXJpbmd8ZW58MHwwfHx8MTY4Mzc5ODA5MXww&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=1080">
<figcaption></figcaption>
</figure>
<p>&nbsp;</p>
<p>The academic curriculum for engineering students is rigorous, with a focus on mathematics, physics, and technology. Students attend lectures and practical classes, complete assignments and projects, and prepare for examinations. The workload is heavy, and students are expected to keep up with the pace of the course.</p>
<p>Apart from academics, engineering students are also encouraged to participate in extracurricular activities such as sports, cultural events, and technical competitions. These activities help to develop teamwork, leadership skills, and a sense of community.</p>
<p>Engineering students also have access to a wide range of resources such as libraries, labs, and research centers. They can also interact with professors, industry experts, and alumni to gain knowledge and insights into the field of engineering.</p>
<p>One of the biggest challenges that engineering students face is balancing academics and personal life. With long hours of study and projects, it can be challenging to find time for family and friends. However, it is essential to maintain a healthy work-life balance to avoid burnout.</p>
<figure><img style="max-width: 100%;" src="https://images.unsplash.com/photo-1581093803931-46e730e7622e?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3w0Mjg1OTN8MHwxfHNlYXJjaHwyNHx8ZW5naW5lZXJpbmd8ZW58MHwwfHx8MTY4Mzc5ODE0MHww&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=1080">
<figcaption></figcaption>
</figure>
<p>&nbsp;</p>
<p>The journey of an engineering student in India culminates with a final project and thesis submission. This is a critical phase of the course where students are expected to showcase their technical skills and knowledge. After completing their degree, students can opt for higher studies or enter the workforce.</p>
<p>In conclusion, the life of an engineering student in India is both challenging and rewarding. It requires dedication, hard work, and a passion for learning. With the right mindset, resources, and support, engineering students can succeed in their academic and professional endeavors.</p>
WSO2 Key Manager types
Tags: wso2, keymanager
Published: 2023-05-11 09:41:17

This is a list of key manager types that can be used as identity providers in the the wso2 api manager. Am listing them here incase anyone is looking for them.
1. AuthO
2. Azure AD
3. Wso2 Identity Server
4. Forgerock
5. KeyCloak
6. PingFederate
7. Okta
How to Manage Appointments in .NET MAUI Scheduler
Tags: dotnet, dotnetmaui, csharp
Published: 2023-05-11 09:40:04

Learn how to work with appointments in the Syncfusion .NET MAUI scheduler control. This video shows how to create different types of appointments, such as spanned appointments, all-day appointments, and recurring appointments. It also shows how to load appointments on demand for visible dates, how to create appointments for different time zones, and the supported calendar types. The Syncfusion .NET MAUI Scheduler offers nine built-in view modes that can be configured to display appointments in different ways. These view modes provide common scheduling functionality, making it easy for users to create and manage appointments efficiently. Scheduler also supports data binding to different sources, allowing for flexible integration into your application. 

_Product overview_: https://www.syncfusion.com/maui-controls/maui-scheduler

_Tutorial video_: https://www.syncfusion.com/tutorial-videos

_Download example from GitHub_: https://github.com/SyncfusionExamples/maui-scheduler-examples/tree/main/RecurringAppointment

{% youtube 2QRyCBIVKFk %}
Web3 Developer Career Landscape
Tags: web3, blockchain, career
Published: 2023-05-11 09:21:53

Web3, also known as the decentralized web, is a growing field that encompasses various technologies and applications built on blockchain technology. At its core, Web3 is a vision for a more decentralized internet that empowers individuals and communities, rather than centralized platforms and corporations. Blockchain technology, the underlying technology behind Web3, enables decentralized applications by providing a secure and transparent way to store and transfer data.

In this post, we will take a look on what kind of career can a Web3 Developer expect to gain in the coming years.



## Web3 Industry on Developer Perspective 
As decentralized technologies become globally recognized and adopted, the demand for skilled web3 developers is on the rise. This continuous expansion will be followed by an increase in the number of [web3 developer jobs](https://kleoverse.com/jobs?categories=blockchain-dev&remote=false&datePosted=all&searchText=blockchain%20Engineer).

In addition to web3 developer roles, there are various blockchain-related jobs that individuals with web3 development skills can pursue. Some good examples found on [Kleoverse](https://kleoverse.com/jobs)’s job site include [blockchain analysts](https://kleoverse.com/jobs?categories=data%20scientist&datePosted=all), blockchain project managers, [developer relations](https://kleoverse.com/job/UN6NHFBg2r), and blockchain architects. These roles can provide opportunities for advancement and growth within the field of blockchain technology.

Overall, the web3 industry offers a promising career path for individuals with the necessary skills and knowledge. With the potential for high salaries and a wide range of job opportunities, pursuing a career in web3 development can be a rewarding and fulfilling choice.


## **What is the salary of a Web3 developer?**

According to [Web3.career](https://web3.career/web3-salaries#:~:text=Their%20average%20yearly%20salary%20is%20%2450k%2C%20with%20a%20minimum,a%20maximum%20of%20%24150k.), the average salary for a web3 developer is around $100,000 to $175,000 per year. The salary of a web3 developer varies depending on factors such as location, experience, and skill level. However, there is potential for growth as the industry continues to expand.


## Ready to prove your Talent?
Kleoverse was created for web3 developers and other professionals to find web3 jobs and bounties, and it includes everything a web3 organization or project needs to maximize its company's growth.

Kleoverse acts as a curation layer for web3 talents and web3 organizations to showcase their talents and hire web3 professionals respectively. Kleoverse also serves as a bounty platform where interested web3 professionals can find open bounties from their favourite web3 organizations.

Feel free to check the top web3 jobs at Kleoverse Talent Platform for Web3 Builders: https://kleoverse.com/