teleren/devto huggingface dataset:
cybersecurity breach wipes out more than $2 billion in market cap
Tags: webdev, discuss, news
Published: 2023-10-25 18:15:33

Okta, a cloud identity management company, has recently suffered a security breach. According to Okta's Chief Security Officer, David Bradbury, the hackers were able to view content uploaded by some Okta customers related to recent support cases. These files, known as HTTP archive (HAR) files, help support personnel replicate customer browser activity for troubleshooting. The incident affected a "very small number" of customers. Okta has taken measures to protect its customers, including the revocation of embedded session tokens. It is important to note that user data or passwords were not hacked. However, the breach has wiped out more than $2 billion in market cap for Okta. Please note that this information is current as of October 23, 2023, and may be subject to change.
Day 3 of DPI camp
Published: 2023-10-25 18:13:49

Good morning world! 

Today I'll be starting off with adding some styling and more html to my linktree app, I'm excited to continue work on it. Went to my favorite coffee shop to sit down and get started on things. Gonna throw on Sampha's new album and get to work on this first Pomodoro, we shall see how things go. 

**Pomodoro 1**


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

The page is finished! At least the first draft of it is, I'm going to take some time to come back to it and add some changes to the on hover colors as well as whatever style changes I end up thinking of for the future.

 Regardless I'm glad to have knocked this out. I'm in the process of deploying it now.

**Pomodoro 2**

I took some time during the break to the site and finally have everything deployed. 
 
Im moving on to a focus on ruby and will take some time to study it for the rest of the day while working on what project I'll put my focus on next.
Gin Framework (Go)
Tags: go
Published: 2023-10-25 17:12:01


**Introduction to Gin Framework**

When it comes to developing web applications in the Go programming language, the Gin web framework can be a powerful ally. In this article, we will explore what Gin Framework is, how to install it, and provide a step-by-step breakdown of a simple Go web application using Gin.

**Installation**

Before we dive into Gin, you'll need to install it. Thankfully, installing Gin is a straightforward process. You can use the `go get` command to fetch and install the Gin package. Open your terminal or command prompt and run the following command:

```bash
go get -u github.com/gin-gonic/gin
```

This command will download the Gin package and its dependencies to your Go workspace.

**Getting Started with Gin**

After successfully installing Gin, you can start building web applications with it. Here's how you can get started:

1. **Import Gin Package**:

   First, you need to import the Gin package in your Go source code. Add the following import statement at the top of your Go file:

   ```go
   import "github.com/gin-gonic/gin"
   ```

2. **Creating a Simple Gin Application**:

   Let's create a basic Go web application using Gin. Below is the code for a simple "Hello World" web application. We will break down each part of the code:

   ```go
   package main

   import (
       "net/http"
       "github.com/gin-gonic/gin"
   )

   func main() {
       r := gin.Default()
       r.GET("/hello", func(c *gin.Context) {
           // Send a JSON response
           c.JSON(http.StatusOK, gin.H{
               "message": "Hello Go members!",
           })
       })

       r.Run()
   }
   ```

   **Explanation of the Code**:

   - We import the necessary packages, including `net/http` for HTTP-related functionalities and Gin.
   - In the `main` function, we create a Gin router using `gin.Default()`, which sets up the default middleware and configurations.
   - We define a route using `r.GET("/hello", ...)`, which specifies that the endpoint "/hello" will be accessible via an HTTP GET request.
   - Inside the route handler, we respond with a JSON message, indicating "Hello GoLinuxCloud members!" when someone accesses "/hello."
   - Finally, we start the web server by calling `r.Run()`, which listens and serves on port 8080.

And that's it! You've just created a simple Go web application using the Gin Framework. You can now access the "Hello World" message by navigating to `http://localhost:8080/hello` in your web browser. Gin Framework makes it easy to develop efficient and performant web applications in Go.
How to Deploy Your Node.js Backend on Vercel: A Step-by-Step Guide
Tags: javascript, vercel, serverless, node
Published: 2023-10-25 18:03:39

Deploying your Node.js backend on Vercel is a streamlined process that can bring your application to life on the web. In this revised guide, we'll walk you through the updated steps to ensure your backend is deployed using the most current methods. Let's get started.

## 1. Create **Your Vercel Account**

To begin, sign up for a Vercel account at [vercel.com](https://vercel.com/) . You can choose your preferred authentication method, whether it's GitHub, GitLab, or Bitbucket.

## 2. **Create a Simple Express API**

Ensure you have Node.js and NPM installed on your local machine. If not, you can download them from <https://nodejs.org/>.

Start by creating a new directory for your project, navigating to it, and initializing a new Node.js project:

```js
mkdir my-express-api
cd my-express-api
npm init -y

```

Install Express and create an `index.js` file :

```sql
npm install express
touch index.js
```

Open `index.js` in your preferred code editor and add the following code to create a basic Express API:

```js
const express = require("express");
const app = express();

app.get("/", (req, res) => {
  res.send("Express on Vercel");
});

const PORT = process.env.PORT || 5000;
app.listen(PORT, () => {
  console.log(`Server is running on port ${PORT}`);
});
```

## 3. **Export the Express API**

Modify your `index.js` file to export the Express app at the end of the file:

```js
// ... (previous code)

module.exports = app; // Export the Express app
```

## 4. **Add** `vercel.json` **Configuration**

Create a `vercel.json` file in your project directory:

````sql
touch vercel.json
```Inside `` `vercel.json `` , specify the build settings and routes as follows:

```js

{
  "version": 2,
  "builds": [
    {
      "src": "index.js",
      "use": "@now/node"
    }
  ],
  "routes": [
    {
      "src": "/(.*)",
      "dest": "index.js"
    }
  ]
}
````

## 5. **Deploy Your Express API**

Initialize a Git repository, commit your code, and push it to your source repository, whether it's on GitHub, GitLab, or another platform.

- Vercel will automatically detect your repository and build your Express API based on the `vercel.json` configuration.

Once the deployment is complete, you can access your API at the provided Vercel URL, such as `your-app-name.vercel.app`, to confirm that it's up and running.

Congratulations! Your Node.js backend is now successfully deployed on Vercel as a serverless function. Be sure to adapt this guide to your specific project structure and requirements for a seamless deployment experience.![]()
Finished my first Hacktoberfest 2023
Tags: hack23contributor
Published: 2023-10-25 18:01:35

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} --> 

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
Automated Backup to S3 with Lambda
Tags: aws, webdev, cloud, security
Published: 2023-10-25 17:54:33

In today’s digital era, data is a critical asset for businesses of all sizes. Automated backup to S3 (Simple Storage Service) is a highly effective way to protect your data from loss or corruption. S3 is a secure, scalable, and durable object storage service that offers virtually limitless storage space.

## Benefits of Automated Backup to S3

There are numerous benefits:

- **Reduced risk of data loss**: Automated backups ensure that your data is regularly backed up, minimizing the risk of data loss due to hardware failure, software corruption, or human error.
- **Increased data security**: S3 offers a high level of data security, with features such as encryption, access control lists (ACLs), and versioning.
- **Improved disaster recovery**: In the event of a disaster, automated backups can be used to quickly restore your data to a previous state.
- **Reduced administrative overhead**: Automated backups can be scheduled to run unattended, freeing up your time for other tasks.
- **Cost-effective**: S3 is a cost-effective storage solution, with pricing based on the amount of data you store.


## How It Works

Automated file backup to S3 with Lambda works by using a Lambda function to trigger the backup process. When a file is added to a designated S3 bucket, the Lambda function is invoked. The Lambda function then copies the file from the S3 bucket to a local directory. Once the file has been copied, the Lambda function can perform any additional tasks, such as compressing or encrypting the file. The file is then uploaded to a designated S3 bucket for safekeeping.

Checkout the step-by-step implementation [here](https://codesolutionshub.com/2023/10/21/automated-backup-to-s3-with-lambda/)
HacktoberFest Experience as Contributor
Tags: hack23contributor, hacktoberfest, opensource, beginners
Published: 2023-10-25 17:53:00

**Intro**
hi,This is the first time i have participated on open source hackathon . For the past few months i have been trying to start open source contributions , hacktoberfest2023 provided with and opportunity to start open source journey.

**Highs and Lows**
The biggest issue is finding new repository which is actively maintained and contributing to it. I got a better understanding of using GitHub and how to contribute 

So any contirbutor looking taking part in Hacktoberfest.

- always check the last commit merged to get idea if mainter is active or not

- before jumping to issue go through the contributor.md file and work on issue accordingly some repos have strict rules others don't.

These two points will save u from making PR that won't get merged.

Thank you
I Reviewed 1,000s of Opinions on GitHub Copilot
Tags: ai, coding, github, llm
Published: 2023-10-25 17:36:05

GitHub Copilot has recently taken the software engineering world by storm, hitting a milestone of $100M ARR. This achievement alone qualifies it to be a publicly listed company. Meanwhile, funding continues to flow into code-focused LLM use cases. But what do developers actually think about GitHub Copilot?

Read more here! https://konfigthis.com/blog/github-copilot
Rollercoaster Ride at Hacktoberfest 2023
Tags: hack23contributor, webdev, react, opensource
Published: 2023-10-25 17:34:23



### Intro
Hi Everyone myself [Abhinab] (https://github.com/abhinab-choudhury) a aspering Web-Dev from Indian.

### Highs and Lows
During this Journey of 30 Days of October I learned a lot about opensource and improved my skills .
So During this period I have beging doing some DSA as well because in my college if anyone want to get into the Coding Club they need to pass the Coding Contest which were purely DSA based. Managing  both of them was bit problematic. And you guessed correct I didn't passed the contest but I am happy that I successful completed by opensource challenge i.e. Hacktoberfest 

### Growth
Initial days were bit overwhelming as I have never seen  such big codebase and awesome projects,but still I enjoyed doing opensource and will be joining Hacktoberfest fest next year as well.
Error handling in express.js
Published: 2023-10-25 17:31:31

### Introduction
In this article, I used the code in the following repository:
[https://github.com/rezahazegh/demo-express-error-handling](https://github.com/rezahazegh/demo-express-error-handling)


To demonstrate how express.js behaves regarding error handling by using some pretty straightforward examples. Then, I provided a solution to have cleaner syntax to handle errors.  

**Hint**: express.js behavior is different for version 5 and above.

### Trail and Error
The project includes some routes which show express behavior under different conditions:

1. `/test`  
   * We use it to check either app crashed or still working


2. `/sync`  
   * If you call this route it throws an error from within a sync route handler.  
   * if we call `test` the app would work. So, express catches it automatically and, we don't need any extra action for sync handlers. 


3. `/async-not-handled`  
   * If you call this route it throws an error from within an async route handler which is not handled.  
   * If you call `test` the app won't work and, you will see it already crashed.
   * So, we need to somehow handle errors for async handlers. we show how to do that on the next ones.


4. `/async-handled-regular`
   * If you call this route it throws an error from within an async route handler which is handled using try/catch.
   * The point is you should pass error to `next` function.
   * Now, if we call `test` the app would work.

### Magic solution
The following solution helps you to get rid of try/catch in your handlers.  

Functions in javascript are first class citizens: 
* you can pass a function as a parameter to another one. 
* Also, you can return a function as a return value.

We are going to use these features to design our solution.  

`handler` function helps us to extract try/catch from our handlers. It takes our handler as a parameter and wrap it in a try/catch in a new function. Then return the new function.

5. `/async-handled-using-handler`
   * If you call this route it throws an error from within an async route handler which is handled using `handler` function.
   * Now, if we call `test` the app would work.
Wednesday Links - Edition 2023-10-25
Tags: java, jvm, git, orm
Published: 2023-10-25 17:25:52

In the defence of Object-Relational Mappers (4 min)🛡️
https://event-driven.io/en/in_the_defence_of_orms/

Limits of Loom's performance (12 min)🚎
https://softwaremill.com/limits-of-looms-performance/

Loom is just HyperThreading in Java (1 min)🔀
https://mostlynerdless.de/blog/2023/10/23/loom-is-just-hyperthreading-in-java/

Putting JFR into Context (5 min)🍱
https://mostlynerdless.de/blog/2023/10/19/putting-jfr-into-context/

Alternate String Formatting with # (6 min)#️⃣
https://www.javaspecialists.eu/archive/Issue312-Alternate-String-Formatting-with-..html

Some miscellaneous git facts (4 min)🤔
https://jvns.ca/blog/2023/10/20/some-miscellaneous-git-facts/

Organizing multiple Git identities (1 min)👔
https://garrit.xyz/posts/2023-10-13-organizing-multiple-git-identities

Common Gradle misconceptions (11 min)🙃
https://medium.com/@rolgalan/common-gradle-misconceptions-03269b1a559a
EKS now allows modification of cluster subnets and security groups
Tags: aws, eks, security, cloud
Published: 2023-10-25 17:23:38

The recent update from Amazon Elastic Kubernetes Service (EKS) on October 24, 2023, announced a new feature that allows customers to modify the subnets and security groups associated with their existing EKS clusters. This enhancement aims to provide greater flexibility for cluster administrators to synchronize changes made to Amazon Virtual Private Cloud (VPC) resources, simplifying cluster management.

The problem that this update addresses is the challenge of adapting EKS clusters to changes in the underlying VPC resources, such as modifications or expansions in the VPC subnets. Previously, when changes were made to VPC resources, it necessitated the creation of new EKS clusters, which could be time-consuming and complex, especially for production environments.

The solution introduced by Amazon EKS is the capability for customers to update the subnets and security groups associated with their existing EKS clusters directly. This means that when changes occur in the VPC resources, such as modifications to the subnets due to VPC expansion, customers can now conveniently update their EKS clusters without the need to create new ones.

With this new functionality, cluster administrators can easily ensure that their EKS clusters remain synchronized with any changes made to the underlying VPC resources, thus streamlining the management process. This feature is immediately available for use on all existing EKS clusters across all AWS Regions where EKS is accessible. Customers interested in utilizing this feature can refer to the EKS documentation for detailed instructions on getting started.

Reference: 
- https://aws.amazon.com/about-aws/whats-new/2023/10/amazon-eks-modification-cluster-subnets-security/
- https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html
Day 76: Testimonial
Tags: webdev, frontend, 100daysofcode, html
Published: 2023-10-25 17:17:12

# Challenge
Your task is to create an HTML and CSS code snippet that  shows testimonial slider as below.

### Desktop
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v0srosb2zsu9urk9wsoc.jpg)

### Mobile
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l26v71io3ctlk2vtfeh0.jpg)


### 📰 Details

For the necessary assets, design specification, please refer to the Github repository: [Github - Testimonials Slider](https://github.com/dhrn/testimonials-slider)

The solution link will be revealed tomorrow in the comments, so stay tuned.

**Note**: This challenge is sourced from Frontend Mentor.
[Weni Growth] O que puder automatizar, automatize. pt. 3
Published: 2023-10-25 17:14:43

_**Matheus Enrique. Dev na Weni.**_

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

_(O próximo palestrante é Matheus Enrique. Ele estava no SEBRAE ensinando como usar chatbots para negócios. E no Weni Growth, ele discutiu: O aumento em 48% do volume de dados.
Ele ofereceu um algoritmo para criar chatbots.
Ele afirmou que os chatbots podem ser trabalhadores ativos em uma empresa.
A apresentação de Matheus Enrique foi incrível, repleta de insights valiosos sobre o uso de chatbots para aprimorar os negócios.)_

Resposta:

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

_**Leandro Neves. CEO na Weni.**_

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

_(O próximo palestrante foi Leandro Neves, CEO da Weni. Ele falou sobre casos de automação, com destaque para Ton, uma automação da Stone, um banco digital aqui no Brasil. Ele afirmou que Ton é o melhor "vendedor" na Stone. Leandro discutiu a cultura de automação nos negócios e como as automações podem ser soluções para problemas futuros. Ele também mencionou a cultura pop, fazendo referência ao filme "HER" que aborda a inteligência artificial. Leandro explicou que os desenvolvedores da Stone precisaram assistir a esse filme para compreender a criação de Ton. Ele discutiu as vantagens que as automações trazem em vendas, integração de novos clientes, atendimento e retenção de clientes.)_

Resposta:

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

_**Matheus Amorim. Diretor de CS na Weni.**_

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

_(O próximo palestrante foi Matheus Amorim. Ele é o chefe de Customer Success na Weni. Sua palestra abordou a automação no pós-venda e incluiu os seguintes pontos:
A melhoria de 20% na experiência do usuário com a automação.
A importância da eficiência para os clientes.
Como um serviço mal executado pode contribuir para o término de um relacionamento com os clientes.
As expectativas elevadas devido ao amplo acesso à informação.
A facilidade com que as empresas podem ser substituídas.)_

Resposta:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ygwv10qvoaflixsb5jld.png)
The Complete Guide to Time Series Models
Published: 2023-10-25 16:56:14

Are you ready to explore the fascinating world of time­ analysis? Imagine this scenario: you're e­xamining a dataset and notice a captivating pattern that e­volves over time. This is where time­ series models be­come invaluable tools in deciphe­ring the temporal dimension within your data.

## **What is a time series model?**
A time series model is a set of data points ordered in time, and it’s used in forecasting the future. Time series models are applied to analyze, forecast, and comprehend the patterns and trends within such data. This guide comprehensively covers various aspects of time serie­s models. It includes an exploration of their types, components, modeling techniques, as well as practical considerations that you should keep in mind.

## **Components of Time Series Models**
To better understand how time series models work, it is important to be familiar with their components. Time series data typically consists of three main components - trend, seasonality, and noise.
**Trend**
The tre­nd component in data analysis represe­nts the long-term pattern or dire­ction. It can be either line­ar or non-linear, indicating an upward or downward movement over time.
**Seasonality**
Seasonality in a time­ series refe­rs to a recurring pattern that happens at re­gular intervals. For instance, the sale­s of ice cream might show seasonality, with highe­r sales during summer and lower sale­s during winter.
**Noise**
The noise component represents the random fluctuations or unexpected variations in the data that cannot be explained by the trend or seasonality. It is often referred to as the residual or error term.

## **Modeling Techniques**
After identifying the components of a time series, there are several commonly used modeling techniques that can be applied to analyze and predict the data. These techniques include:
**Decomposition**
To gain a deeper understanding and enhance forecasting accuracy, it is important to decompose time series data into its core components - trend, seasonality, and noise. This process provides a detailed analysis of each component, enabling more effective forecasting.
**Smoothing**
One useful technique for analyzing data is smoothing. This involves using methods like moving averages and exponential smoothing to eliminate the¬ fluctuations in the data and reveal the underlying pattern. These¬ techniques are e¬specially helpful for identifying trends or seasonal patterns.
**The Box-Jenkins**
The Box-Jenkins approach is a systematic and iterative method for fitting the ARIMA model to time series data. It involves identifying the appropriate order of differencing, autoregressive, and moving average terms through diagnostic testing.