teleren/devto huggingface dataset:
AWS EC2 Instance Features:
Published: 2023-01-11 09:21:30

Amazon EC2 instances provide a number of additional features to help you deploy, manage, and scale your applications.

- ➢ Burstable Performance instances
- ➢ Multiple Storage Options
- ➢ EBS Optimized Instances
- ➢ Cluster Networking

**Burstable Performance Instances:**
Amazon EC2 allows you to choose between Fixed Performance
Instances (e.g. M5, C5, and R5) and Burstable Performance Instances (e.g. T3). Burstable Performance Instances provide a baseline level of CPU performance with the ability to burst above the baseline.

For example, a t2.small instance receives credits continuously at a rate of 12 CPU Credits per hour. This capability provides baseline performance equivalent to 20% of a CPU core (20% x 60 mins = 12 mins). If the instance does not use the credits it receives, they are stored in its CPU Credit balance up to a maximum of 288 CPU Credits. When the t2.small instance needs to burst to more than 20% of a core, it draws from its CPU Credit balance to handle this surge automatically.

**Multiple Storage Options:** Amazon EC2 allows you to choose between multiple storage options based on your requirements. Amazon EBS is a durable, block-level storage volume that you can attach to a
single, running Amazon EC2 instance. Amazon EBS provides three volume types to best meet the needs of your workloads: General Purpose (SSD), Provisioned IOPS (SSD), and Magnetic.5

**EBS Optimized instances:** For an additional, low, hourly fee, customers can launch selected Amazon EC2 instances types as EBS-optimized instances. For M6g, M5, M4, C6g, C5, C4, R6g, P3, P2, G3, and D2 instances, this feature is enabled by default at no additional cost. EBS-optimized instances enable EC2 instances to fully use the IOPS provisioned on an EBS volume. EBS-optimized instances deliver dedicated throughput between Amazon EC2 and Amazon EBS, with options between 500 and 4,000 Megabits per second (Mbps) depending on the instance type used.

**Cluster Networking:** Select EC2 instances support cluster networking when launched into a common cluster placement group. A cluster placement group provides low-latency networking between all instances in the cluster. The bandwidth an EC2 instance can utilize depends on the instance type and its networking performance specification.
Amazon EC2 Instance Types
Published: 2023-01-11 09:15:24


Amazon EC2 provides a wide selection of instance types optimized to fit different use cases.
Instance types comprise varying combinations of CPU, memory, storage, and networking capacity Each instance type includes one or more instance sizes, allowing you to scale your resources to the requirements of your target workload.
1. General Purpose
2. Compute Optimized
3. Accelerated Computing (GPU Optimized)
4. Memory Optimized
5. Storage Optimized


**1. General Purpose:**
General purpose instances provide a balance of compute, memory and networking resources, and can be used for a variety of diverse workloads. These instances are ideal for applications that use
these resources in equal proportions such as web servers and code repositories.
Ex: Mac, T4g, T3, T3a, T2, M6g, M5, M5a, M5n, M5zn, M4, A1

**Compute Optimized:**
Compute Optimized instances are ideal for compute bound applications that benefit from high performance processors. Instances belonging to this family are well suited for batch processing workloads, media transcoding, high performance web servers, high performance computing
Ex: C6g, C6gn, C5, C5a, C5n, C4

**Memory Optimized:**
Memory optimized instances are designed to deliver fast performance for workloads that process large data sets in memory.
Use case: Memory-intensive applications such as open-source databases, in-memory caches, and real time big data analytics
Ex: R6g, R5, R5a, R5b, R5n, R4, X2gd, X1e, X1, u, Z1d4

**Accelerated Computing:**
Accelerated computing instances use hardware accelerators, or co-processors, to perform functions, such as floating point number calculations, graphics processing, or data pattern matching,
more efficiently than is possible in software running on CPUs.
Use Case: Machine learning, high performance computing, computational fluid dynamics, computational finance, seismic analysis, speech recognition, autonomous vehicles, and drug discovery.
Ex: P4, P3, P2, Inf1, G4dn, G3, F1

**Storage Optimized:**
Storage optimized instances are designed for workloads that require high, sequential read and write access to very large data sets on local storage. They are optimized to deliver tens of thousands of low-latency, random I/O operations per second (IOPS) to applications.
Ex: I3, I3en, D2, D3, D3en, H1

In upcoming story, will cover instance features.
Let's create corona virus using python
Tags: python, virus, webdev, programming
Published: 2023-01-11 09:07:19

Welcome to the wild and wacky world of turtle graphics! Today, we're going to explore the world of turtle programming by creating a fun, virus-like image.

Full Code:

```
import turtle
turtle.speed(40)
turtle.color('cyan')
turtle.bgcolor("black")
b = 200
while b > 0:
    turtle.left(b)
    turtle.forward(b*3)
    b = b - 1


```

First, we're going to import the turtle module and set the speed to 40. This means that the turtle will move quickly, creating a cool, dynamic effect. Next, we're going to set the color to cyan and the background color to black. This creates a cool, neon-like effect that will make our virus stand out.

Now comes the fun part: the while loop. This loop will run as long as the variable "b" is greater than 0. Inside the loop, we're going to have the turtle move left by the value of "b", then move forward by "b" times 3. Finally, we'll decrease the value of "b" by 1.

As the loop runs, the turtle will create a spiral-like pattern that looks like a virus spreading and infecting the screen. And with the high speed of turtle movement, this effect is amplified and looks dynamic.

As the loop runs, you'll notice the spiral getting smaller and smaller. This is because we're decreasing the value of "b" by 1 each time the loop runs. Finally, when "b" is equal to 0, the loop will stop running, and our virus-like image will be complete!


![Corona Virus](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q9k68f9v439dnsn71w7g.png)



In conclusion, turtle graphics is a fun and easy way to create cool, dynamic images. This little program can be used as a base to make more complex graphics, Or used to make cool animation with multiple turtle and different shapes. Give it a try and unleash your inner artist!
Getting Started with AWS Cloud: An Overview of AWS Services for Developers
Tags: aws, cp, cloudpractitioner, cloudskills
Published: 2023-01-11 09:05:26

**AWS (Amazon Web Services)** is a popular and powerful 
suite of cloud computing services that allow developers and organizations to easily build, deploy, and scale applications and services on a highly-reliable and secure infrastructure.

AWS offers a wide range of services that can be used to accomplish various tasks, including computing power, storage, databases, analytics, application services, and much more. One of the key benefits of using AWS is that it allows organizations to pay only for the resources they need and use, without having to make large upfront investments in expensive hardware or software.

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

One of the most popular AWS services is **Amazon Elastic Compute Cloud (EC2)**, which provides scalable and customizable computing power in the cloud. Using EC2, developers can quickly launch and scale virtual servers, and choose from a wide variety of operating systems, including Windows and Linux.

Another popular AWS service is **Amazon Simple Storage Service (S3)**, which provides secure and scalable storage in the cloud. S3 allows developers to store and retrieve any amount of data at any time, from anywhere on the web. This makes it ideal for storing and managing files, images, backups, and other types of data.

In addition to these services, AWS also offers a number of other services that can be used to build and deploy highly-available and highly-scalable applications, such as Amazon Relational Database Service **(RDS)**, which allows developers to set up and manage a variety of relational databases easily, and Amazon Elastic Block Store **(EBS)**, which provides block-level storage for use with EC2 instances.

AWS also offers services for **monitoring and managing** the performance and health of your applications and services, such as **Amazon CloudWatch**, and for deploying and managing containerized applications, such as **Amazon Elastic Container Service (ECS)** and **Amazon Elastic Kubernetes Service (EKS)**.

Overall, AWS offers a wealth of powerful services that can be used to build and deploy a wide variety of applications and services, making it a great choice for developers and organizations looking to take advantage of the power and scalability of the cloud. And with the availability of **free-tier** plans for new users and **pay-as-you-go** pricing, getting started with AWS is easy and cost-effective.

In short, AWS cloud is a great platform for the developer to start with, especially to use for web and application development, **Data analytics and AI/ML** with a variety of services which are scalable, customizable and cost-effective. AWS is one of the major cloud platforms used by enterprise companies and developers as it gives **easy-to-use**, **easy-to-manage and secure infrastructure**.
When Is Neco 2023 Starting
Published: 2023-01-11 08:57:45

[https://multischolar.com/neco-timetable/](https://multischolar.com/neco-timetable/#utm_source=backlinks&utm_medium=search&utm_campaign=darry+ring+us&utm_content=Michelle)
https://plaza.rakuten.co.jp/chenlee/diary/202301110001/
https://www.provenexpert.com/2023neco/
https://www.producthunt.com/@2023neco
https://www.divephotoguide.com/user/2023neco/
https://www.diggerslist.com/2023neco/about
https://www.heromachine.com/forums/users/2023neco/
https://wakelet.com/@2023neco643
https://vocal.media/authors/2023neco
https://www.lifeofpix.com/photographers/2023neco/
https://seedandspark.com/user/2023neco
https://rosalind.info/users/2023neco/
http://phillipsservices.net/UserProfile/tabid/43/userId/192887/Default.aspx
https://app.roll20.net/users/11496022/2023-neco
http://uid.me/2023neco
https://speakerdeck.com/2023neco
https://social.msdn.microsoft.com/Profile/2023neco
https://www.iheart.com/podcast/269-when-is-neco-2023-starting-107102171/
https://active.popsugar.com/@2023neco/profile
https://www.longisland.com/profile/2023neco
https://camp-fire.jp/profile/2023neco
https://plazapublica.cdmx.gob.mx/profiles/neco/activity
https://www.metal-archives.com/users/2023neco
https://artmight.com/user/profile/914303
https://storium.com/user/2023neco
https://trabajo.merca20.com/author/2023neco/
https://telegra.ph/When-is-neco-2023-starting-01-11
https://www.intensedebate.com/people/2023neco
https://www.mifare.net/support/forum/users/2023neco/
https://pinshape.com/users/2551947-2023neco
http://foxsheets.com/UserProfile/tabid/57/userId/117796/Default.aspx
https://www.credly.com/users/2023-neco/badges
https://www.myminifactory.com/users/2023neco
https://www.speedrun.com/user/2023neco
https://www.sqlservercentral.com/forums/user/2023neco
https://leanin.org/circles/when-is-neco-2023-starting
https://myanimelist.net/profile/2023neco
What is DevRel? Get Answers to FAQs
Tags: devrel, beginners, career
Published: 2023-01-11 08:42:00

Are you looking to pivot into #DevRel this year? I've compiled answers to the FAQs I've gotten about DevRel.

## What is DevRel?

DevRel stands for Developer Relations. It is an umbrella term that involves building a relationship between a company and the developers using the company's products so that these developers feel empowered and supported.

## What do DevRel folks do?

It could vary depending on the company's size or the specific job title. Mostly writing technical content, improving docs, speaking at conferences, managing community, hosting meetups/hackathons, and working with devs to improve a company's products.

## What are some common career roles in DevRel?

- Developer Advocate
- Developer Relations Engineer
- Developer Evangelist
- Technical Writer
- Developer Marketer
- Developer Educator
- Developer Experience Engineer
- Community Manager


## What tech skills do I need to land a job?
Depending on the role you're applying for:

- Engineering (apps you've developed)
- Community building  (communities you've managed and events organized)
- Technical content creation (blog posts, YouTube videos, tweets)


## Do I need to have any soft skills?
Yes, soft skills are equally necessary to succeed in DevRel. 

- Empathy for developers
- Curiosity
- Great communication
- Continuous Learning
- Ability to wear multiple hats


## What's the best practical way to pivot to DevRel?

- Start advocating for devs in your current role by creating demos of how to use a technology
￼
- Hone your writing skills by regularly writing articles #Hashnoade / #Devto 
￼
- Network with other DevRel folks online and in person


## What are some books to help in my DevRel journey?

Developer Marketing & Relations by Slash Data
Developer Relations by CarolineLewko
The Business Value of Developer Relations by Mary Thengvall
Developer Marketing Does not Exist by Adam DuVander
Getting Started in DevRel by Sam Julien


## What is the salary range for a DevRel professional?

It varies depending on the company, your level, and the role. 

According to the state of Devrel report in 2022, the avg salary was USD $148,000

## Where can I find DevRel jobs?
https://devrelcareers.com/
http://commonroom.io/uncommon/jobs
http://devrelx.com/jobs

## How can I prepare for a DevRel interview

- Apply to jobs with a custom resume that highlights your DevRel experience
- Familiarize yourself with the company's product before the interview
- Ask questions about what DevRel means to the company you're interviewing with. 
- Be clear on your strengths and discuss the value you'll provide to the company.

&nbsp;

I hope you found this helpful! Let me know in the comments 💖
AI vs Humananity
Tags: ai, discuss, community
Published: 2023-01-11 08:41:51

### First of all

I think AI is amazing, and quite frankly, one of the best inventions humankind has came up with!

I think with Artificial Intelligence we can reach new heights that humanity never even thought they could reach. Its just about when that happens, not if.

### Can AI replace humans?

Now, I believe it can replace us in physical strength, speed, etc. Mentally? No, hell no! 

I've seen a lot of people who use this AI art tool, and while fascinating, I cant help but think that its no where near human levels, and never will be. Why? The simple answer to that is creativity. A robot will never be able to be as creative as humans, I mean just think of a dog in your head right now, draw it and have it there for safe keeping. Now, let an AI draw it, are your drawings different? Exactly! You're different, an AI will just use that drawing and make the same thing over and over, meanwhile you can make it in your imagination over 1 million times and never get the same result

That's the beauty of the human mind, it never stops thinking, and it never stops thinking of something new! Something a robot could NEVER do, if a robot cant feel emotions towards creativity, why would it be creative? Why would it surpass us? HOW could it surpass us.

Now that's just my take on this subject, I know there's millions of takes that could argue with mine, but I'm dead set on humankind being more creative than a little robot.
Javascript Programming for beginners.
Tags: webdev, javascript, beginners, programming
Published: 2023-01-11 08:24:07

JavaScript is a versatile programming language that is primarily used to create interactive front-end web development. It is a scripting language that is executed by the browser, rather than on a server, and can update the content and layout of a website without requiring a page refresh. JavaScript can also be used to create server-side applications using technologies such as Node.js. It is a high-level, dynamic, and interpreted programming language. It is also one of the core technologies of the World Wide Web (WWW) along with HTML and CSS.It is supported by all major web browsers and can be run both on the front-end (client-side) and back-end (server-side) of web development.

Here is an overview of some of the key concepts and features of JavaScript that beginner programmers should be familiar with:

**Variables**: Variables are used to store and manipulate data in JavaScript. They are declared using the var, let, or const keywords. For example:

```
let x = 5;
let name = "John Doe";

```
**Data Types**: JavaScript has several built-in data types, including numbers, strings, booleans, and arrays. You can use these data types to create and store data in your program. For example:

```
let age = 25;    // number
let name = "John Doe";   // string
let isStudent = true;   // boolean
let colors = ["red", "blue", "green"];    // array
```

**Functions**: Functions are blocks of code that can be reused throughout your program. They are declared using the function keyword, followed by a name and a set of parentheses. For example:

```
function greet() {
   console.log("Hello, World!");
}
greet();

```
**Events**: JavaScript can respond to different types of events, such as button clicks, form submissions, and page loads. You can add event listeners to elements on a web page to listen for specific events and execute code when they occur. For example:

```
 let button = document.getElementById("myButton");
  button.addEventListener("click", function() {
    console.log("Button was clicked!");
  });
```

`Objects`: JavaScript objects are used to organize and store data in a structured way. An object is a collection of properties (variables) and methods (functions). For example:

```
 let person = {
    name: "John Doe",
    age: 25,
    greet: function() {
      console.log("Hello, my name is " + this.name);
    }
  };
  person.greet();

```
Function Overloading: How to Handle Multiple Function Signatures
Tags: typescript, javascript, programming, tutorial
Published: 2023-01-11 08:09:51

Function overloading in TypeScript allows you to have multiple functions with the same name but with a different signature (parameters and types). This means that the parameters have different types or the number of parameters is different for each function. The correct function to call is determined at runtime based on the arguments passed.

For example, consider a function that takes an argument and returns its square. If the argument is a number, you can calculate the square by multiplying the number by itself. However, if the argument is an array of numbers, you can calculate the square by squaring each element of the array.

```ts
function square(x: number): number;
function square(x: number[]): number[];
function square(x: number | number[]): number | number[] {
    if (typeof x === 'number') {
        return x * x;
    } else {
        return x.map(e => e * e);
    }
}

square(3); // => 9
square([3, 5, 7]) // => [9, 25, 49]
```

Here the first two lines describe the function signature with two different argument types, `number` and `number[]`. The actual function implementation begins on the third line, and its signature must be a union of `number | number[]`. The implementation uses the `typeof` operator to determine which branch of the implementation to use.

Another example would be a database query function that reads a user from the database based on an ID (number), username (string), or attributes (object).

```ts
function query(id: number): User;
function query(username: string): User;
function query(attributes: Record<string, any>): User;
function query(arg: number | string | Record<string, any>): User {
    let condition = '';

    if (typeof arg === 'number') {
        // Query the database using an id
        condition = `id: ${arg}`;
    } else if (typeof arg === 'string') {
        // Query the database using a username
        condition = `username: "${arg}"`;
    } else {
        // Query the database using attributes
        condition = JSON.stringify(arg);
    }

    return db.query(`SELECT * FROM User WHERE ${condition}`);
}

query(1); // => id: 1
query('johndoe'); // => username: johndoe
query({ firstName: 'John', lastName: 'Doe' }); // => attributes: {"firstName":"John","lastName":"Doe"}
```

In this example, the query function is overloaded three times, each time with a different signature. The first signature accepts a single parameter of type `number`, the second signature accepts a single parameter of type `string`, and the third signature accepts a single parameter of type `Record<string, any>`, which is a simple key-value map.

The examples I gave earlier show how you can use function overloading to process different types of input and give you an idea of how it can be useful in practice.
How to expose PostgreSQL connection in ubuntu
Tags: postgres, database, webdev
Published: 2023-01-11 08:08:46

If you have a PostgreSQL database instance running on an Ubuntu server, you might want 
to access it from outside the server.
In this article, I'm going to show you how you can do it.


The default Postgres connection port is usually 5432. We are going to expose our connection through this port.
You can use your other port if not using the default one.

**Allow Postgres port in the firewall (`5432` in our case)**

```
sudo ufw allow 5432/tcp
```


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

**Open your Postgres config file**

```
sudo nano /etc/postgresql/<postgres_version>/main/pg_hba.conf
```

Notice that I used ../14/.. . That's because I have PostgreSQL version 14 installed. Change it to your installed version



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

It will open your PostgreSQL config file.


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

By default, the allowed address to access the Postgres connection is `127.0.0.1/32`.
That means you can only be connected if you are on the same server.

We have to change that since we want the connection to be public.

**Change the IP address from `127.0.0.1:32`  =>  `0.0.0.0/0`**


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

What we did is allow any IP address at any port to access ur connection.

Now you can connect to the database from anywhere.
 

**N.B**: Changing from  `127.0.0.1/32`  in your configs to  `0.0.0.0/0`  means you are allowing any device from any.
This is insecure. If you want to be more secure, you can change it from  `127.0.0.1/32`  to  `your_trusted_ip/your_trusted_ip_port`
 


Construct a connection string like this and connect it to your database.

👉🏽 `postgresql://[user[:password]@][our_server_ip][:our_postgres_server_ip][/dbname]`

You can also test the connection with [PGAdmin](https://www.pgadmin.org/download) which is a powerful Postgres client.


You should be able to access your database 🎉