teleren/devto huggingface dataset:
Amazon EC2 Storage - Basics
Tags: aws
Published: 2022-12-13 13:42:13

Let's have a look at EC2 Storage. There are different storage options for EC2 instances.

### 💾 EBS Volumes
An EBS volume is a network drive that can be attached to an instance. It stores data even after the termination of the instance, when you configure it to. EBS volumes are bound to a specific availabilty zone. If you want to move an EBS volume to a different Availability zone(AZ) you need to create a snapshot first and then copy it to the new AZ. You can also detach an EBS volume to attach it to a different instance.

### 💾 EC2 Instance Store
The EC2 instance store is a temporary storage for your instance. It is located on disks that are physically attached to the host computer. If you need a high-performance disk, this option is a good choice. The instance store gets deleted when your instance is stopped.

### 📁 EFS - Elastic File Storage
EFS is a scalable shared file system that can be mounted to a lot of EC2 instances. It works across multiple Availability Zones. EFS Infrequent Access (EFS-IA) is a storage class that is less expensive than EFS Standard. Its fitting when your instance doesn't access your files every day. When you enable Amazon EFS Lifecycle Management for your file system, Amazon EFS will automatically move your files to the lower cost storage class based on the last time they were accessed.

### 📁 Amazon FSx
Amazon FSx is a service to launch high-performance file systems on AWS. There are three different options: FSx for Lustre, FSx for Windows File Server and FSx for NetApp ONTAP. FSx for Lustre can be used for High-Perfomance Computing (HPC) and needs to run on Linux based instances.  

### 💻 AMI - Amazon Machine image
An Amazon Machine Image (AMI) is an image from AWS that provides the information required to launch an instance. You can also create your own customized image. On the AWS Marketplace you can find and buy AMIs which have been created by a third party. AMIs can be build from your instances.
K8s forcefully delete resources
Tags: kubernetes, devops, sre
Published: 2023-01-16 14:34:00

Sometimes, when we are working with custom resources, they are stucked in a `Terminating` phase.

Today, we will see how to resolve this use easily.

---

# Warning
First I need to warn you. Force deleting a custom resource can be risky and generate other issues. So be sure about what you are doing before forcing the deletion.

---

To force delete a custom resource, follow these steps :

- Edit the Object : `kubectl edit customresource/name`
- Remove finalizer parameter
- Delete the object : `kubectl delete customresource/name`

And that's it!

I hope it will help you! 🍺
Javascript map() function
Tags: javascript, webdev, tutorial, beginners
Published: 2022-12-15 03:22:29

## 1. theory
The map method in JavaScript is a method that is used to create a new array from an existing array by applying a callback function to each element in the original array. This allows us to transform the elements in the original array into new elements that are added to the new array.

The general syntax for using the map method is as follows:

```
const newArray = originalArray.map(callbackFunction);
```
Here, the callbackFunction is a function that is applied to each element in the original array. This function takes in the current element being processed and returns the new element that should be added to the new array.

For example, if we have an array of numbers and we want to double each number in the array, we can use the map method like this:


```
const numbers = [1, 2, 3, 4, 5];

// Double each number in the array
const doubledNumbers = numbers.map(number => number * 2);

console.log(doubledNumbers); // [2, 4, 6, 8, 10]
```
In this example, we pass a callback function to the map method that takes in a number and returns the number doubled. This results in a new array with each number doubled.

The map method is very useful for transforming arrays of data into new arrays that can be used for other purposes, such as creating HTML markup or performing calculations.

## 2. example
this is gonna be a straightforward names section in react. and to display names, we are gonna use the map() function.

{% codesandbox jtpvh2 %}
Kafka mTLS Setup
Tags: osquery, flink, cybersecurity, pulsar
Published: 2022-12-14 14:20:02

Learn how to route osquery logs.

OSQuery is an open source tool that lets you query operating system events using SQL.The events can be fed into a #streaming platform, in this case Pulsar, for subsequent transformation and routing on the stream using Decodable.

[![osquery](https://assets.website-files.com/61d6b61c7084bb1d721a21aa/62aa6d898ba6c2ddaeb2c069_routing%20tracks.jpg)](https://www.decodable.co/blog/routing-osquery-events-via-apache-pulsar)
AWS SQS | AWS Simple Queue Service | How SQS Works | AWS Tutorial
Tags: aws, cloud
Published: 2022-12-14 18:06:28

This video on "AWS SQS" will first explain what is Amazon Simple Queue Service, followed by its architecture and benefits. It also concludes the session by working on Amazon SQS Queue. 
{% embed https://www.youtube.com/watch?v=vLNDaZuA3Dc %}
Understanding Syntax While Writing a Function in JS
Tags: javascript, webdev, beginners
Published: 2022-12-14 20:06:31


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

I took the time to detail what each component of was in the line to try and explain what exactly the code it doing.

Then followed with an example to further demonstrate what is happening when you call the function you write.
Wonder Shine Font
Tags: fon, webdev
Published: 2022-12-15 03:06:12

Download Wonder Shine Font Free for Windows, macOS and Linux in OTF and TTF formats with basic features completely. Use it for commercial purposes: here.

Wondershine Font is an elegant, beautiful and smooth serif font.

It is suitable for invitation cards, decorations, clothing products, greeting cards and others.

This font is PUA encoded which means you can access the available glyphs and swashes with ease!

Download here: https://fontaza.com/serif-fonts/wonder-shine-font/
2022 in Review
Tags: programming, productivity, opensource
Published: 2022-12-15 07:14:52

Today I sat for my last final exam, which also means I am now done with all my courses at Seneca College. It feels strange to suddenly come to a stop from the crazy busy schedule I was pursuing for the last many semesters. Suddenly, I have all the time in the world to do whatever I like, but first, I must pay back my sleep debt. 

2022 has been great in terms of personal growth. I learned to navigate the strange world of remote learning which at times got difficult. I also learned to work under pressure from my many programming courses and work in the open through my open-source development class. Working collaboratively on open-source projects with people I don't know made me more confident in my programming skills. Just a year ago, my GitHub profile had barely any projects uploaded, but now I have developed the muscle memory to intuitively upload all my projects in GitHub, make frequent commits, and have gotten good at navigating my way around it. 

## Some 2022 Accomplishments 🎉

![2022_accomplishments](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/smjqfpaa2o9a7egbd8j8.png)


### December open-source contributions 🚀

This month I challenged myself to work on many small issues within just 10 days. I enjoyed working for Seneca College's internal project repos, therefore, picked two of them to work on. 

My two most recent open-source contributions were made for a Seneca College Internal Project. I decided to go ahead and make 2 different pull requests to this repo to challenge myself to learn new skills. 

#### 1) [My Photohub](https://github.com/humphd/my-photohub) 📸

{% embed https://github.com/humphd/my-photohub/issues/33 %}

#### _The solution_

This issue required me to understand how two of my other peers before me were writing the code. Through this, I was able to practice my skill in reading and understanding other people's codes and then integrating them. 

{% embed https://github.com/humphd/my-photohub/pull/35 %}

#### 2) [vscode Extension for Seneca](https://github.com/Seneca-CDOT/vscode-seneca-college) 🧩

I had no prior experience working with VS Code extensions, so I had to study some VS Code documentation before making this pull request. Making a VS code extension can get difficult if the features needed are big. 


{% embed https://github.com/Seneca-CDOT/vscode-seneca-college/issues/11 %}


#### _The solution_

{% embed https://github.com/Seneca-CDOT/vscode-seneca-college/pull/16 %}

#### 3) [Climate Action Secretariat - CleanBC Industry Fund](https://github.com/bcgov/cas-cif) 🏢

As I was browsing for some issues to contribute to, I came across this repo by the government of British Columbia. I liked the project and decided to make a small contribution here. 

{% embed https://github.com/bcgov/cas-cif/issues/1221 %}

#### _The solution_

{% embed https://github.com/bcgov/cas-cif/pull/1251 %}

### Reflection 

I am really happy with the contributions I have done over the last 3 months. I have big goals planned for 2023 to develop both personally and professionally.
TIL; favicon| tables| difference between internal and external CSS styles| Lists
Tags: webdev, html, css
Published: 2022-12-15 07:55:12


- Favicon; the small image displayed next to the page title in the browser tab.

Example : `<link rel="icon" type="image/jpeg" href="./Mavensey.jpeg"/>`

- Tables (`<table>`);

The table tag helps to insert tables in a document(data in rows and columns). Table values include:

- `<th>` which define table headers
- `<tr>` which define table rows, and
- `<td>` which define the table data in a cell.
- `<thead>`
- `<tbody>`
- `<tfoot>`
- Table size

Styling the size of a single cell, affects the styling of all the cells in the column of that cell. The width of a cell `<td>` is specified in percentages.

The height of a row `<tr>` is specified in pixels.

Column span `colspan`

Row span `rowspan`

Table caption `<caption>`

Tables usually need styling(borders) to clearly separate the various cells.

- Border-collapse: separate
- Border-collapse
- Border-spacing
- Border-radius
- Border-color
- Border-style
- Border-width

- Internal CSS style is defined using a style tag in an html file.
- External CSS style is defined in a separate css file and linked to the html file using the `link` tag.

Padding and spacing

Padding properties include; padding-left , right, top, bottom

Cell Spacing(border-spacing) is the space between the cells

Zebra stripes is a stylistic effect in a table that can easily be achieved using the ‘nth child’ selector.

The ‘nth child(even or odd)’; is a css selector that enables you to select an html element based on its position within its parent.

- Colgroup (`<colgroup>`): this allows a user to efficiently style a number of cells in a column in a particular way. This tag is not always reliable.

NB: Rowgroups do not exist.

Lists

Unordered HTML lists (`<ul>`); Allows a user to add lists to an html document when there is no required order for the list items.

Ordered HTML lists(`<ol>`); Allows a user to add lists to an html document in an ordered manner.

List item(`<li>`;Allows the user to state the list data/particular list item

- Description list `<dl>`; this is used to specify a list of items and their definitions.
- Description term `<dt>`; specifies the specific term to be defined
- Description definition `<dd>`; the definition of the term.

`List-style-type`; Helps the user to specify the list style in a list.

The list style types options include `disc`, `circle`, `square` and `none`, with `disc` being the default style type.

- Nested lists; these are lists within a list.
- The type attribute; allows the user to specify the type of numbering in an ordered list. Type attribute styles include `<type="1">`; which specifies numbers

                                            `<type="i">`; which specifies lowercase roman numerals

                                            `<type="I">`; which specifies uppercase roman numerals

                                            `<type="a">`; which specifies lowercase letters

                                            `<type="B">`; which specifies uppercase letters
What is something library docs do that make it difficult to follow for newbie developers?
Tags: discuss, webdev, programming, codenewbie
Published: 2022-12-15 10:31:50

In your opinion, when newbie developers read docs, what is the most frustrating part?

[I've asked this question on Twitter](https://twitter.com/SavvasStephnds/status/1603074085180825602) yesterday and got a few responses:

> lack of examples! I skim thru when i view any docs.. if it doesn't have examples, i struggle a bit at first 😅

-- [@CuriouZmystee](https://twitter.com/CuriouZmystee)

> Not having working example code or obsolete code that doesn't work and or compile.

-- [@tswain555](https://twitter.com/tswain555)

> Jargon and term standardization is always a killer.

> Hot take: add a synonym guide in the back of all documentation.

-- [@Quasicodo](https://twitter.com/Quasicodo)

What would you add? What has been your experience?
TIL; typescript - classes | public fields in constructor
Tags: typescript, webdev
Published: 2022-12-15 14:57:12

- the use of `public` on arguments on the constructor is a shorthand that allows us to automatically create properties with that name

```jsx
class Student {
	fullName: String;

	constructor(
		public firstName: string,
		public lastName: string
	){
		this.fullName = firstName + " " + lastName;
	}

}
```
> in this case, the class has been given 3 public properties; fullName, firstName and lastName. firstName and lastName were created as public properties on the class by using the public keyword in the constructor params

- classes in TS are just a shorthand for the same prototype-based OO that is frequently used in JS
Streamline your git workflow with HighFlux: the automated git client
Tags: git, devops
Published: 2022-12-15 16:23:13

Do you ever forget to commit a crucial file and end up with a broken build? Or your latest work is on your desktop, and you can't continue working on your laptop because you forgot to push? These are common challenges for developers, and we want to fix those with HighFlux.

[Read the full article about HighFlux here!](https://www.highflux.io/blog/streamline-git-workflow-automated-client)
Bito AI: Change how you do dev with AI, in your IDE
Tags: ai, programming, productivity, testing
Published: 2022-12-15 19:46:02

Hi Dev Community, 👋

I am excited to bring you [Bito AI](https://bito.co), a product that we think can transform your development experience.  We want to help you be a 10x developer, or at least save a couple of hours a day!  

As a developer there are so many things to do, from actually writing code, to testing it, to remembering syntax, understanding new code, making your code secure and performant, etc – the list goes on and on. Many of them are boring, and don’t let you focus on high impact work. 😤

We thought wouldn’t it be great if we could use AI to help you do this, and thus Bito’s AI was born. 🤞 Bito’s AI Assistant is like a Swiss Army knife that can do so many things – and make you that elusive 10x developer!

It works right in your favorite IDE (we support Visual Studio Code and all Jetbrains IDEs like IntelliJ, PyCharm, GoLand, etc) and is also available as a Chrome Extension.  Check out our [2-minute demo](https://bit.ly/BitoDemo).

[Bito AI](https://bito.co) is a **FREE** app! 👍

What does Bito’s AI Assistant help with? Basically, ask any technical question:

☝️ Command Syntax: “how to set git config variables”, “create an encrypted s3 bucket using the AWS cli”

🥇 Test Cases: “Generate test cases for this code ”

🔑 Explain code: “explain this code ”

🔥Generate Code: Examples: “code in java to convert a number from one base to another”, “code to implement a simple rest API in go”

✍️ Comment Method: “Explain this code and explain the parameters ”

⚡ Improve Performance: “how can I improve performance of this code ”

🔒 Check Security: “Is this code secure?”

📽️ Explain concepts: "explain B+ trees, give an example with code", “explain banker’s algorithm”

Trained on billions of lines of code and millions of docs, it’s pretty incredible what [Bito AI](https://bito.co) can help you do without having to search the web or waste time on tedious stuff.

We'd love to have you try it out, let us know what you think! It’s totally free. We know we have a long way to go, but your feedback will make it incredible!

One more thing: Security is something we take very seriously, and we never store or view your code in any way.

Thanks so much for your feedback.  Please email us at founders@bito.co with any questions, we are really eager to get your thoughts.

-Amar, Anand, and Mukesh
[Bito AI](https://bito.co)
How to manage browser driver with Web Driver Manager
Tags: programming, beginners, tutorial, python
Published: 2022-12-15 21:09:28

In this article i will explain how to use Web Driver Manager to manage browser driver easily
 
##Background
when we make a project using selenium library every time there is a newer version of the driver we need to download it and we have to set the corresponding executable path explicitly. After that, we make object from the driver and continue with the code we want to run. these steps become complicated as we need to repeat these steps out every time the versions change.So therefore, we use WebDriverManager to easily manage it.

##Task
Create a simple session to open google.com and search with keyword "web scrapping"

##Getting Started
assuming python is intalled on your machine or virtual environment, then you must install WebDriverManager and selenium

```
pip install webdriver-manager
pip install selenium
```

after that on code editor lets import all library we need

```
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
```
next we start the session by instatiating driver object

```
driver = webdriver.Chrome(options=Options, service=ChromeService(ChromeDriverManager().install()))
```
the script above will install driver browser automatically, 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vf0g46gd0akvsup3m6wd.jpg)
then, lets call the driver object to take action on google.com

```
driver.get("https:www.google.com")
```

and lets find element search and send key "web scraping" on it

```
search_el = driver.find_element(By.CSS_SELECTOR,"input[title='Search']")
search_el.send_keys("web scrapping")
```

if you have arrived at this step, then your screen will be the same as this image


![Web Scraping](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7brlrtd5j2kom6pchlii.jpg)

##Conclusion
now we know that WebDriverManager automates the browser setup in the Selenium code and this make the difficult steps to store newer version of driver become automatic so we can focus on our execution script rather than browser settings

Github :https://github.com/muchamadfaiz
Email : muchamadfaiz@gmail.com
What is Hydration & why does it concern us?
Tags: react, javascript, webdev, webperf
Published: 2022-12-16 13:24:16

---
title: What is Hydration & why does it concern us?
published: true
description: A plain English explainer on why we should care about Hydration.
tags: react, javascript, webdev, webperf
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zx0e7fpisytedm8ylz6h.png
canonical_url: https://punits.dev/jargon-free-intros/hydration/
series: Jargon Free Explainers
# Use a ratio of 100:42 for best results.
# published_at: 2022-12-16 09:26 +0000
---

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-2"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iyxb2brrkmkkfn77uq9u.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-3"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/njzw04mhb3pcallhxjlm.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-4"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vznono96fh4pd5t1lk27.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-5"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cu5m3up794yorkl3p1la.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-6"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o56ikvq60qd2kzwo2wri.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-7"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4h0b3eso4ugaw1j9x3g3.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-8"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1usnfk7kodf5f5trsll5.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-9"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/feiomlkrgq3vg600667r.png" /></a>

<a href="https://punits.dev/jargon-free-intros/hydration/#slide-10"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vi26x8s1godcvw9ciajm.png" /></a>

<hr />
I create jargon-free infographics explaining the fundamentals of things I've been working on for last few years. If you have questions or feedback, please let know.
Carousel version of this explainer (for better readability) <a href="https://punits.dev/jargon-free-intros/hydration/">here</a>.
Other similar explainers <a href="https://punits.dev/jargon-free-intros/">here</a>.
c++ da A=> a ga ozgartish
Tags: beginners, webdev, programming, tutorial
Published: 2022-12-16 14:19:49



```cpp
int main (){
 char a;
  cin >> a;
cout << char(a+32);


 ```
bu kata Adan kichkina aga ozgartiradigan kod


```cpp


using namespace std;
int main (){
 char a;
  cin >> a;
cout << char(a-32);


  return 0;
}

```


Bu esa adan Aga ozgartiradi 


@dawroun
Top 5 Featured DEV Tag(#opensource) Posts from the Past Week
Tags: opensource, c4r4x35
Published: 2022-12-16 15:30:31

##Documentation 101: creating a good README for your software project
Having a good documentation for your open source project is an important (and often overlooked) feature to drive adoption and show the full potential of what users can accomplish with your application...
{% link https://dev.to/erikaheidi/documentation-101-creating-a-good-readme-for-your-software-project-cf8 %}
##Free Python Converter Tool - DataFrames, OpenAPI, CSV to Models, DataTables
Hello Coders!

The video mentioned in this article explains how to use a free conversion tool written in Python to manipulate and convert information into different formats. The tool is a simple UI...
{% link https://dev.to/sm0ke/free-python-converter-tool-dataframes-openapi-csv-to-models-datatables-26jn %}
##5 best open source platforms for B2B ecommerce
B2B ecommerce can be a complicated matter and imposes new requirements for an ecommerce platform compared to what is required to handle regular B2C commerce.

Getting an overview of the B2B features...
{% link https://dev.to/medusajs/5-best-open-source-platforms-for-b2b-ecommerce-1kg4 %}
##Fun but not useful extensions for devs
As developers, we spend a lot of time in our code editors and IDEs, constantly working to improve our skills and deliver great products. But sometimes, it can all feel a little bit too serious and...
{% link https://dev.to/chainguns/fun-but-not-useful-extensions-for-devs-p0h %}
##B2B Commerce w. Medusa: Set up a headless Node.js backend (1/2)
This tutorial series covers how you can use Medusa and its different components and features to implement a B2B commerce store. The series is split in two parts:

Part one: Covers how to prepare your...
{% link https://dev.to/medusajs/b2b-commerce-w-medusa-set-up-a-headless-nodejs-backend-12-2n7m %}