teleren/devto huggingface dataset:
How to extend an EBS volume in AWS and then grow EFS Filesystem
Tags: aws, ebs, efs, filesystem
Published: 2023-07-26 07:01:09

Here are the steps to extend an EBS volume in AWS and then to grow the filesystem on it:

1) **Increase the EBS volume size in AWS:**

- Open the EC2 console on AWS. 
- On the left-hand side menu, navigate to 'Volumes' under 'Elastic Block Store'.
- Identify the volume connected to your instance, right-click on it and select 'Modify Volume'. 
- Specify the new desired volume size and then select 'Modify'. The state of the volume will change to 'Optimizing' after a short while, this indicates that the size alteration has been recognized by AWS. 

> Note: The process can be executed while your instance is still running, but it's advisable to take a snapshot before making changes to avoid any data loss.

2) **Rescan the disk on your EC2 instance:**

To ensure that your EC2 instance identifies the new disk size, connect via SSH and execute the command:

```
sudo lsblk
```

The output should reveal that the disk size has increased, but the partition size hasn't.

3) **Grow the partition to use the new space:**

If the partition does not reflect the new size, you will need to expand it. Run the following command to do this:

```
sudo growpart /dev/xvda 1
```

In the command above, `/dev/xvda` is the disk, and `1` is the partition number.

4) **Resize the filesystem:**

Following the partition extension, resize the filesystem with the following command (assuming the filesystem is XFS):

```
sudo xfs_growfs /dev/xvda1
```

The command may vary based on the filesystem. For instance, if the filesystem is EXT, you'd use `resize2fs` instead of `xfs_growfs`. If you're unsure of the filesystem, use `sudo file -s /dev/xvda1` to find out.

> IMPORTANT: Always ensure you have a solid backup of your data before running these operations. Misusing these commands can lead to data loss.

5) **Verify the changes:**

Finally, verify that your filesystem is using the new space by running the `df -h` command:

```
df -h
```

You should now see that the size of the filesystem matches the size of the EBS volume you set in AWS.

Remember, these steps are specific to an AWS EC2 instance using an EBS volume with an XFS filesystem. If your setup is different, the steps may vary.
ChatGPT wrapper aka GPT2API released
Tags: chatgpt, api, nextjs, ai
Published: 2023-07-26 07:00:47

I used to be a Laravel developer. But my team members are not good in PHP. Because PHP is a weak type language. They always write some code in strange style. Over time, the code becomes difficult to maintain. When we develop with Laravel, we use Vue as our frontend framework.

When I start this new project, I want to fix these problems by switching to a new stack. I've been learning Golang for a long time, but I've never written a project using React.

After digging deeper into React, I found two frameworks very interesting and I believe they will help me build my project faster. They are [Next.js](https://nextjs.org/) and [shadcn/ui](https://ui.shadcn.com/). If you are new to React, I highly recommend trying [next.js](https://nextjs.org/) and [shadcn/ui](https://ui.shadcn.com/).

## Share some screenshots of GPT2API
### Design API page
![Design API page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m3r2fgapt5xnxy62gw1f.png)
### Run API page
![Run API page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gze8zgibcbdyqky0hk90.png)

## Technical details about my project
Project name: [GPT2API](https://aicanvas.app/gpt)
Website: [https://aicanvas.app/gpt](https://aicanvas.app/gpt)
Frontend Framework: React and Next.js
UI Framework: shadcn/ui and [tailwindcss](https://tailwindcss.com/)
Backend Framework: [Gin](https://gin-gonic.com/) with Golang
Database: Mysql 8
Server: [Linode](https://www.linode.com/lp/refer/?r=083ee8ebd39bbb7229b663617e83d2f86f36d8d7)
Payment: [Paddle](https://paddle.com/)

## What is GPT2API?
GPT2API is a platform to help you build API to make ChatGPT easier to use. You can build API and share it with the community, or you can call API from API.Hub, which is other API shared by the community.

### Features:
1. Build API with ChatGPT commands.
2. Test API on the website.
3. Share it with the community.
4. Have the community extend the API.
5. Sample code for your project.
6. Cheap price for calling ChatGPT, $1 with 600K tokens.

> If you have any questions about GPT2API or programming, you can contact me on the twitter. You are very welcome to experience GPT2API. I hope to get your comments.
What is PHP's Future with PHP 8?
Tags: discuss, php
Published: 2023-07-26 07:00:00

How do you feel about PHP's future, especially with the introduction of PHP 8 and the continued growth of modern PHP frameworks?

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
What Are the Top Three Must-have Apps on Your Phone?
Tags: discuss, watercooler, codenewbie, beginners
Published: 2023-07-26 07:00:00

📱 If your phone could only have three apps (excluding essentials like calls and messages), which apps would you keep, and how do they keep you entertained or organized?

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
What is Expectation-Maximization in Machine learning?
Tags: machinelearning
Published: 2023-07-26 05:20:31

Expectation-Maximization (EM) is a widely used algorithm in machine learning and statistics, particularly for problems involving latent or hidden variables. It is an iterative method employed to find maximum likelihood estimates or maximum a posteriori estimates in the presence of missing or unobserved data. EM is particularly useful when the data is incomplete or when certain variables are not directly observable.

The EM algorithm consists of two main steps: the E-step (Expectation step) and the M-step (Maximization step). In the E-step, the algorithm calculates the expected value of the log-likelihood function with respect to the current estimates of the latent variables. It computes the probability distribution over the hidden variables given the observed data and current parameter estimates. This step provides a way to handle the uncertainty associated with unobserved data. A part from it by obtaining a [Machine Learning Course](https://www.edureka.co/masters-program/machine-learning-engineer-training), you can advance your career in  Machine Learning. With this course, you can demonstrate your expertise in designing and implementing a model building, creating AI and machine learning solutions, performing feature engineering, many more fundamental concepts, and many more critical concepts among others.

After the E-step, in the M-step, the algorithm updates the model parameters to maximize the expected log-likelihood computed in the previous step. The M-step essentially involves finding the values of the parameters that make the model fit the observed data as closely as possible while taking into account the missing data through the expected values from the E-step.

The algorithm then iterates between the E-step and M-step until convergence, where the log-likelihood maximization reaches a satisfactory level or the parameters stabilize. At this point, the EM algorithm has found the maximum likelihood estimates of the model parameters.

EM is commonly used in various machine learning applications, such as clustering, mixture models, and Gaussian mixture models (GMMs). For example, in clustering problems, EM can help identify underlying clusters and estimate their corresponding parameters. EM has also found applications in natural language processing, computer vision, and many other fields where dealing with missing or latent variables is essential for accurate modeling and inference.

Although EM is a powerful and widely used algorithm, it has its limitations, such as sensitivity to initialization and the possibility of converging to local optima. Therefore, researchers often combine EM with other optimization techniques or use it as a building block for more complex algorithms to overcome these limitations. Nonetheless, EM remains a fundamental tool in the arsenal of machine learning and statistical modeling, providing valuable solutions to a wide range of real-world problems.
Generate Unique Random Numbers in Laravel
Published: 2023-07-26 06:58:54

$data = [
      'number' => ticket_number(),
      'subject' => 'Sample subject',
      'description' => 'This is the description sample'
];
  
$ticket = Ticket::create($data);

function ticket_number()
{
    do {
        $number = random_int(1000000, 9999999);
    } while (Ticket::where("number", "=", $number)->first());
    return $number;
}

https://codeanddeploy.com/
🧠 Unraveling the Power of Dynamic Programming in Recursion Trees 🌳🌟
Tags: programming, recursion, algorithms, dynamicprogramming
Published: 2023-07-26 06:58:13

In the enchanting realm of algorithms, we encounter the wondrous concept of Dynamic Programming (DP), a magical technique that breathes life into recursion trees. Let's embark on a journey to understand the essence of DP and why it is an indispensable tool in our coding odyssey.

🌳 The Recursion Tree:
When we use recursion to solve complex problems, a beautiful tree of recursive calls emerges—the Recursion Tree. Each node represents a function call, and the branches symbolize the subproblems that arise during the recursive journey. As we traverse this tree, we encounter overlapping subproblems—instances where we revisit the same subproblem multiple times.

💡 The Need for Dynamic Programming:
Dynamic Programming comes to our rescue to tame this redundant exploration of subproblems. By efficiently storing the solutions to subproblems in a data structure (like a table or an array), DP enables us to avoid repetitive calculations. This sparks a transformative shift in our algorithm's performance, making it more efficient and time-saving.

🔍 Unraveling the Essence of DP:
Dynamic Programming can be realized in two fundamental approaches: Memoization and Tabulation.

📝 Memoization:
Memoization adds a touch of magic to our Recursion Tree by memorizing the solutions to subproblems as we encounter them. By storing these solutions in a cache, subsequent calls to the same subproblem can retrieve the answer directly, avoiding redundant calculations. Memoization beautifully optimizes our recursive exploration, transforming it into a swift and elegant journey.

📊 Tabulation:
Tabulation takes a different approach by building up the solution from the bottom of the Recursion Tree. It starts with the simplest subproblems and systematically works its way up to the original problem. By dynamically filling up a table or array, Tabulation unlocks the true potential of DP, revealing the optimized solutions to each subproblem.

💻 Embrace the Power of Dynamic Programming:
Dynamic Programming elevates our algorithms to new heights, revolutionizing the way we solve complex challenges. Embrace the essence of DP in your coding ventures, and witness the wonders it unfolds in terms of efficiency and elegance.

Let the magic of Dynamic Programming transform your coding odyssey into an enchanting journey of algorithmic brilliance! 🌟🧙‍♂️
What are the most common redirection methods for bingers ?
Tags: webdev, javascript, programming, security
Published: 2023-07-26 06:48:58

Here I know some methods, if you know other please share 

1. 301 Redirect (PHP Example):
A 301 redirect is a permanent redirect from one URL to another. It is used when you want to inform search engines that the original URL has permanently moved to a new location.

<?php
// Permanent 301 redirect
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://www.newdomain.com/new-page");
exit();
?>

2.302 Redirect (PHP Example):
A 302 redirect is a temporary redirect from one URL to another. It tells search engines that the original URL is temporarily moved to a new location.

<?php
// Temporary 302 redirect
header("HTTP/1.1 302 Found");
header("Location: https://www.newdomain.com/temporary-page");
exit();
?>

3.Canonicalization (HTML Example):
Canonicalization helps address duplicate content issues by specifying the preferred URL version of a page. Use the following link tag within the <head> section of your HTML code.

<head>
  <link rel="canonical" href="https://www.example.com/preferred-page">
</head>

4.Meta Refresh (HTML Example):
While not the best option for SEO, you can use the meta refresh tag to redirect users after a specific time delay. Add the following meta tag within the <head> section of your HTML code

<head>
  <meta http-equiv="refresh" content="5;URL=https://www.example.com/new-page">
</head>

5. JavaScript Redirect (JavaScript Example):
Using JavaScript for redirects can be done like this:

<head>
  <script>
    window.location.replace("https://www.example.com/new-page");
  </script>
</head>

6.htaccess Redirect (Apache Server Example):
To implement redirects using the .htaccess file, you can use the following code for 301 and 302 redirects:

# 301 Redirect
Redirect 301 /old-page https://www.example.com/new-page
# 302 Redirect
Redirect 302 /old-page https://www.example.com/temporary-page
Ramas en GIT
Tags: git
Published: 2023-07-26 06:15:59

👀 ramas locales
`git branch`

👀 ramas remotas
`git branch -r`

👀 ramas locales y remotas
`git branch -a`

## Actualizar ramas remotas
`git fetch`

## Crear rama
`git branch <rama>`

## Cambiar de rama
`git checkout <rama>`

## Crear y cambiar al mismo tiempo
`git checkout -b <rama>`

## Eliminar rama 🛑
Si no tienes cambios sin fusionar
`git branch -d <rama>`

Tienes cambios sin fusionar pero igual quieres eliminar
`git branch -D <rama>`

Eliminar una rama remoto
`git push origin --delete <rama>`
How to Convert a Microsoft Access Database to a SQL Server Database
Published: 2023-07-26 05:41:17

In this article, we'll take you on a step-by-step journey, complete with detailed illustrations, on how to migrate a Microsoft Access database to SQL Server using dbForge Studio for SQL Server. This GUI tool is designed to elevate the ease and efficiency of tasks related to databases, spanning an array of functionalities from database design, SQL coding, database comparison, and schema and data synchronization, to the generation of useful test data, among other capabilities.

https://blog.devart.com/convert-microsoft-access-to-sql-server.html

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/op1ssr01hab8g3i1wz82.jpg)
Machine Learning
Tags: machinelearning, talentserve
Published: 2023-07-26 05:24:57

Artificial intelligence (AI) has an area called "machine learning" that focuses on creating statistical models and algorithms that let computers learn from data without having to be explicitly programmed to do so. The basic concept of machine learning is to use data to gradually enhance a system's functionality or behavior.

Types of Machine Learning:

Supervised Learning: In this method, a model is trained on a labeled dataset that contains inputs and their matching outputs. The model picks up knowledge from existing examples and applies it to predict outcomes for new data.

Unsupervised Learning: Unsupervised learning uses data that has not been labelled. Without explicit instructions, the model's goal is to find latent structures, patterns, or clusters in the data.

Semi-supervised Learning: His hybrid approach includes supervised and unsupervised learning components. It makes use of both labeled and unlabeled data to improve the performance of the model.

Reinforcement Learning: According to this model, an agent interacts with the environment and gets rewarded or punished according to its choices. Over time, the agent learns to maximize rewards, which results in the best possible decision-making.
Component In HappyX
Tags: happyx, nim, webdev, beginners
Published: 2023-07-26 05:17:05

With HappyX you can create single-page applications. Most often components are used for this purpose.

And HappyX components is really powerful.

## Declaration 🍍
Components declaration is very easy, ex:
```nim
component MyComponent:
  `template`:
    "Hello, world!"
```

In this example we declare component named `MyComponent`.

## Body 👨‍🔬

Component body consists of:
- `` `template` `` - HTML
- `` `script` `` - code that calls every rerender
- `` `style` `` - isolated CSS (works with current component)
- `[methods]` - methods that can be called.
- **fields** - private/public fields
- `constructors` - component constructors

Any part of the component is optional.

## As JS/CSS:

HappyX provides DSL (Domain-specific language) for HTML, CSS and JS.

Components can use all of these DSLs.
- `` `template` `` uses HTML DSL;
- `` `script` as js `` uses JS DSL;
- `` `style` as css `` uses CSS DSL.

## `` `template` ``, `` `script` ``, `` `style` ``
These statements is main in component body.

```nim
component A:
  `template`:
    # Here is HTML
    tDiv(id = "..", class = "....", style = "....."):
      "Hello, world!"
  `script`:
    echo "Hello from A"
  # To enable syntax highlight
  # use official HappyX extension
  # for visual studio code
  `style`: """
  div {
    ...
  }
  """
```

## Fields
Component fields may be private or public.
```nim
component MyComponent:
  privateField: int
  privateFieldWithDefaultValue: string = ""
  *publicField: float
  *publicFieldWithDefaultValue: seq[int] = @[1, 2, 3]
```

## Methods
Component methods is automatically got `self` param
```nim
component MyComponent:
  left: int = 0
  right: int = 0

  [methods]:
    proc sum(): int =
      self.left + self.right
```

## Constructors
By default you can use component and send some params to it.
```nim
component A:
  a: int = 0
  b: string = "asd"
...

appRoutes "app":
  "/":
    # Default constructor usage
    component A()
    component A(a = 100)
    component A(b = "hello")
    component A(a = 1, b = "sss")
```

Constructors expand component usage:
```nim
component A:
  a: int = 0
  b: string = "asd"
  
  # Constructor
  constructor(a: int):
    self.a = a*a*a
...

appRoutes "app":
  "/":
    # Constructor usage
    component A->constructor(10)
```
Weekly web development resources #159
Tags: webdev, javascript, react, opensource
Published: 2023-07-26 05:12:42



______

*Sponsored*
##[Money Machine Newsletter](https://moneymachinenewsletter.substack.com/)
[![Money Machine Newsletter](https://wweb.dev/weekly/content/158/mmn.jpg)](https://moneymachinenewsletter.substack.com/)
Elite traders narrow down the universe of stocks to their best ideas, delivered weekly to your inbox before the market opens.

______


##[GitHub merge queue](https://github.blog/2023-07-12-github-merge-queue-is-generally-available/)
[![GitHub merge queue](https://wweb.dev/weekly/content/159/merge-queue.jpg)](https://github.blog/2023-07-12-github-merge-queue-is-generally-available/)
A blog post by GitHub introducing merge queue, the newest feature to improve team velocity.

______


##[GGradient](https://ggradient.com/)
[![GGradient](https://wweb.dev/weekly/content/159/ggradient.jpg)](https://ggradient.com/)
A useful and very flexible gradient generator.

______


##[Solito](https://solito.dev/)
[![Solito](https://wweb.dev/weekly/content/159/solito.jpg)](https://solito.dev/)
A library for using React Native with Next.js to build powerful cross-platform apps.

______


##[Dev Radar](https://dev-radar.com/)
[![Dev Radar](https://wweb.dev/weekly/content/159/dev-radar.jpg)](https://dev-radar.com/)
An AI-powered news aggregator that helps you stay up to date with software development. 

______


##[Optics](https://www.optics.page/)
[![Optics](https://wweb.dev/weekly/content/159/optics.jpg)](https://www.optics.page/)
A library for scalable state management in TypeScript applications.

______


##[Iconbuddy](https://iconbuddy.app/)
[![Iconbuddy](https://wweb.dev/weekly/content/159/iconbuddy.jpg)](https://iconbuddy.app/)
A website to search, download, customize, edit over 100k+ open source icons. 

______


##[twenty](https://github.com/twentyhq/twenty)
[![twenty](https://wweb.dev/weekly/content/159/twenty.jpg)](https://github.com/twentyhq/twenty)
A modern open-source CRM as alternative to Salesforce.

______


##[driver.js](https://driverjs.com/)
[![driver.js](https://wweb.dev/weekly/content/159/driverjs.jpg)](https://driverjs.com/)
A JavaScript library for product tours, highlights, contextual help and more.

______


##[Million.js](https://million.dev/)
[![Million.js](https://wweb.dev/weekly/content/159/millionjs.jpg)](https://million.dev/)
A virtual DOM replacement for React to make it up to 70% faster.

______

_Enjoyed this newsletter? You can support me by:_

💸 booking a [sponsored post](https://wweb.dev/sponsorship)

☕️ donating via [Ko-Fi](https://ko-fi.com/wweb_dev)

🚀 helping me grow by sharing it with your friends and colleagues


Cheers,
Vincent from [wweb.dev](https://wweb.dev)
Why Banking as a Service (BaaS) needs good API management
Tags: video, baas, webmethods, apimanagement
Published: 2023-08-16 12:51:33

---
title: Why Banking as a Service (BaaS) needs good API management
published: true
date: 2023-07-26 05:00:03 UTC
tags: Video, baas, webmethods, apimanagement
canonical_url: https://tech.forums.softwareag.com/t/why-banking-as-a-service-baas-needs-good-api-management/281392
---

[![image](https://global.discourse-cdn.com/techcommunity/optimized/3X/2/9/29677a99de65a6bb48904ac87d03540410eb103f_2_517x291.jpeg)](https://global.discourse-cdn.com/techcommunity/original/3X/2/9/29677a99de65a6bb48904ac87d03540410eb103f.jpeg "image")

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

## About the video

Banking as a Service has seen a significant increase in popularity. This rapidly growing market is expected to be worth $75 billion by 2030. It provides a valuable opportunity for mid-sized banks to attract new customers without making significant time or financial investments. Nonetheless, for banks to thrive in the BaaS landscape, they must implement an API management platform.

This video delves into APIs, which are at the heart of BaaS offerings. APIs enable banks to provide their products to partners as building blocks. Although developing APIs is not difficult, mid-sized banks frequently overlook proper tracking, monitoring, and security, resulting in partner dissatisfaction and business loss.

## Related resources

[More about how webMethods.io API can help with your BaaS program](https://blog.softwareag.com/banking-as-a-service/)

[WHITE PAPER Banking as a Service](https://www.softwareag.com/en_corporate/resources/api/wp/banking-as-a-service-report.html)

{% embed https://info.softwareag.com/baas-webinar-on-demand.html %}

[Read full topic](https://tech.forums.softwareag.com/t/why-banking-as-a-service-baas-needs-good-api-management/281392)
How I Passed the AWS Certified Cloud Practitioner in 4 Days
Tags: aws, certification, cloudpractitioner, beginners
Published: 2023-07-26 04:48:26

## I passed the AWS Certified Cloud Practitioner exam in 4 days, *with prior cloud experience.*


**Here are the steps I followed:**

1.  Took a practice test and scored **58%.** (from 6 Practice Exams Course by Stephane Maarek on Udemy)
    
2.  Watched Stephane Maarek's Practitioner Course(Udemy) on 2x speed, taking **no notes.**
    
3.  Read the course slides and took **handwritten** notes (almost 300 pages).
    
4.  Took another practice test and scored **81%.**
    
5.  Reviewed my own handwritten notes.
    
6.  Took 4 more practice tests, reviewed incorrect and correct questions each time, and took handwritten notes.
    
7.  On exam day, I didn't study and passed the exam.
    

**Tips:**

1.  Don't study any dumps. Instead, take **paid** practice tests.
    
2.  Review your incorrect and correct questions after each practice test.
    
3.  Don't over study. The exam is designed to be passed with 70% correct answers.
   

I hope this helps!