teleren/devto huggingface dataset:
Stripe Connect Capability Enquiry
Tags: stripe, payment, api
Published: 2023-09-07 09:44:08

I'm trying to add a functionality using Stripe Connect where the user (A) makes a payment that is split between the website (B) and the service provider (C).
However, I want to implement this in a way where either:

1) The payment is held by B for around a week until B sends a signal/API request to stripe to either complete the payment or refund it to A

OR

2) The payment is deducted from A but not transferred to B or C until B sends a signal/API request to stripe to either complete the transaction or refund it to A

I want to know if this is currently possible and if not, what the standard method of implementation should be.
If it is possible, I would like to know what tool/API/feature of Stripe Connect would make this possible.

Any help would be greatly appreciated
Mastering Conflict Resolution: 8 Expert Tips to Transform Challenging Interactions into Opportunities
Tags: beginners, career, discuss, management
Published: 2023-09-07 09:38:21

1. We're not doctors (well, most of us). Refrain from making diagnosis for others (e.g., labeling someone as a drama queen or a narcissist.) Instead, focus on addressing their specific behaviors.
2. Don't label the person; label the behavior. Some common problematic behaviors include being overly argumentative, placing blame, excessive criticism, defensiveness, and emotional outbursts.
3. Our perspective significantly influences our emotions and actions. When faced with conflicts, start by examining your thoughts and perspective. Ask yourself, "Why would a perfectly reasonable and sane person behave this way?"
4. Be mindful of irresponsible language such as blame, excuses, or playing the "grass is greener" game. Even as a joke, irresponsible language can have negative consequences.
5. To identify problematic behaviors, precisely define what the person is doing that you find unacceptable. Understand how these actions affect both you and the team.
6. Telling someone that their behavior is annoying you rarely leads to positive change. Instead, frame the issue as their problem and motivate them to change by answering:
1) What specific behavior needs to change?
2) How would the change benefit the individual?
3) How would the organization benefit from the change?
7. If you're new to a company, take the time to observe for a reasonable period before proposing or making changes.
8. Sometimes we feel powerless when people lose control, insult others, or yell. Especially when we're not in a position of authority. However, remember that we do have control. Just as the law works when enforced, it's up to us to set boundaries and act when others cross them. Clearly communicate the consequences for crossing those boundaries and be prepared to follow through.

Did You have any experience dealing with conflicting people? Share with us to improve together!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fyq1h6karl1lkj4z0ywc.jpg)
Form backend service
Tags: webdev, forms, html, website
Published: 2023-09-07 09:33:16

A [form backend service](https://fabform.io) plays a crucial role in managing the data submitted through forms on websites or applications. Here's a more detailed breakdown of its functions:

1. **Data Collection**: When a user fills out a form on a website (like a contact form or a survey), the form backend service captures and collects all the information provided.

2. **Data Validation**: It ensures that the information submitted is accurate and follows any specified criteria. For example, it might check if email addresses are in the correct format or if phone numbers have the right number of digits.

3. **Storage and Database Management**: The service securely stores the collected data. This is typically done in a structured database, which allows for organized storage and easy retrieval of information.

4. **Notification and Alerts**: Upon receiving a new form submission, the service can send notifications to designated recipients. This ensures that relevant parties are promptly informed of new information.

5. **Integration with Other Services**: It can connect with other tools or platforms that a website or application might use. For instance, it could automatically send form data to a customer relationship management (CRM) system, email marketing service, or analytics tool.

6. **Security and Compliance**: Form backend services often have security measures in place to protect sensitive information. This could involve encryption, access controls, and other security protocols. Additionally, they may comply with data protection regulations to ensure the privacy of user information.

7. **Analytics and Reporting**: Some form backend services offer tools to track and analyze form submission data. This can be useful for understanding user behavior and preferences.

Overall, a [form backend service](https://fabform.io) streamlines the process of collecting and managing data from website forms. It provides a structured and organized system for handling this information, which is especially important for businesses, organizations, and individuals who rely on accurate and timely data for various purposes.
Discord Profile Card With Webhook
Tags: codepen, html, css, javascript
Published: 2023-09-07 09:27:03

<p>An exact copy of discord profile card with 3 cards</p>

<p>Features :</p>

<ol>
<li>Send message with webhook.</li>
<li>With username badge hashtag.</li>
<li>Add note.</li>
<li>Photo profile &amp; Animation banner.</li>
<li>rolles &amp; random roles.</li>
</ol>
[MY GITHUB](https://github.com/McDaived/Discord-Profile-Card)

{% codepen https://codepen.io/Daived/pen/Bavpzjv %}
Matplotlib Tutorial #6: Plot Line Customization
Tags: datascience, python, beginners, tutorial
Published: 2023-09-07 09:18:49

{% embed https://youtu.be/9gsq_S5a-tA %}

In previous blog I have explained how to customize a marker in Matplotlib plot, in today's blog I will show you how to customize a line in plot.

---

## Line Style
You can use the keyword argument `linestyle`, or shorter `ls`, to change the style of the plotted line. `linestyle` can have values of:
- `-` or `solid` to have a solid line, this is the default style of line of you don't specify it.
- `:` or `dotted` to have a dotted line.
- `--` or `dashed` to have a dashed line.
- `-.` or `dashdot` to have a dashdot line.
- `''` or `None` to have a plot with no line.

The following is the implementation of Matplotlib linestyle customization
```python
import matplotlib.pyplot as plt
import numpy as np

ypoints = np.arange(10)

plt.plot(ypoints, linestyle='--')
plt.show()
```
The following is the output of the above code

![Plot 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pc57rabclxug7t3guk42.png)

## Line Width
You can use the keyword argument `linewidth` or the shorter `lw` to change the width of the line

```python
import matplotlib.pyplot as plt
import numpy as np

ypoints = np.arange(10)

plt.plot(ypoints, linewidth=20)
plt.show()
```

You will get the following output

![Plot 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o8p3it3qmcg61yl37mrg.png)

---

There you go, that is how you can customize line in Matplotlib plot. Thank you for reading this blog, and have a good day!
Laravel 10 Image Validation Tutorial
Tags: laravel, imagevalidation, validation
Published: 2023-09-07 09:04:40

You can validate the image's mime type, size, and dimension before uploading it to the database and server folder in laravel 10. For example, you can validate that the image is in jpg/png/gif/svg format and that the maximum allowed size is 2048 kilobytes. You can also use MIME type validators to validate against custom MIME types.

Image validation in Laravel, regardless of the specific version, often involves using Laravel's built-in validation features and possibly some additional packages like Intervention Image for more advanced image handling. The specific implementation of image validation may vary depending on your project requirements.

In Laravel, you can perform image validation using Laravel's built-in validation rules. Here's an example of how to validate an uploaded image in a Laravel controller:

```
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;

class ImageUploadController extends Controller
{
    public function store(Request $request)
    {
        // Define the validation rules for the image upload
        $rules = [
            'image' => 'required|image|mimes:jpeg,png,jpg,gif|max:2048', // Adjust the allowed file types and size as needed
        ];

        // Create a validator instance and apply the rules to the request data
        $validator = Validator::make($request->all(), $rules);

        // Check if the validation fails
        if ($validator->fails()) {
            return redirect()->back()
                ->withErrors($validator)
                ->withInput();
        }

        // If the validation passes, process the uploaded image
        if ($request->hasFile('image')) {
            $image = $request->file('image');

            // Generate a unique filename
            $filename = uniqid() . '.' . $image->getClientOriginalExtension();

            // Store the image in the storage directory (you may need to configure your storage settings)
            $image->storeAs('images', $filename);

            // Optionally, you can save the filename to the database or perform any other actions.
        }

        // Redirect back with a success message
        return redirect()->back()->with('success', 'Image uploaded successfully.');
    }
}

```

Read More [image validation in laravel 10](https://www.tutsmake.com/image-validation-in-laravel/)
Offering my blog to new authors
Tags: blog
Published: 2023-09-07 09:02:00

Regular readers of this blog know that I started it a long time ago, namely in April 2008. I soon found my cruising speed: a post a week. It requires time and discipline, but I achieved this goal during all those years.

However, while I still have enough of both, I start to miss good post ideas. There are several reasons for this. I've always told that working on real-world projects is a vast source of ideas. Moving to Developer Advocacy, I've widened the list of topics I'm familiar with but cut myself from this source. However, I would prefer to reduce the pace of the weekly post.

Still, the [blog](https://blog.frankel.ch/) has traction. The number of unique monthly sessions varies between 25k and +30k. For this reason, I'd like to offer the platform to them. I believe it can be a good opportunity for first-time (or second-time) writers. Compared to regular content aggregators, the main benefit is that your content won't be drowned among the rest and will be featured for an entire week. As for my regular blog posts, I'll also spread the word about guest authors'. In fact, there will be no difference between my posts and others.

I'll enforce a couple of rules, though:

* No advertisement in any form. The blog has always been about technical content, first and foremost, even though I rant now and then. I want to keep it this way.
* No payment either way. You won't pay to use my blog; I won't pay either.
* You'll be credited as the author.
* You can cross-post to your heart content, as long as you reference the original post on the blog using the [link rel=canonical attribute](https://blog.frankel.ch/rel-canonical-content-writers/). Google hates duplicate content.
* I'll help you review the post
* I have the final say whether to publish the post or not. You can think of me as the editor-in-chief. In particular, I don't support some themes I consider hype but bring nothing to the industry table, _e.g._, the so-called Web3.

If interested, please ping me on [Twitter](https://twitter.com/nicolas_frankel) or [Mastodon](https://mastodon.top/@frankel).

_Originally published at [A Java Geek](https://blog.frankel.ch/my-blog-new-authors/) on September 2<sup>nd</sup>, 2023_
GIÁ KỆ CÔNG NGHIỆP
Published: 2023-09-07 08:33:05

"Giá kệ công nghiệp là loại kệ chuyên dụng nhằm mục đích lưu trữ khối lượng hàng hóa, nguyên vật liệu nhiều và liên tục. 
Địa chỉ: 86 Nguyễn Phúc Lai – Phường Ô chợ Dừa – Quận Đống Đa – TP Hà Nội.SĐT:0903 418 369 
Website https://vnatech.com.vn/gia-ke-cong-nghiep/
https://www.instagram.com/giakecongnghiep/	
https://twitter.com/giakecongnghiep
InstaDP
Tags: instadp, instadpstory, instahd, instastoryview
Published: 2023-09-07 08:32:36


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5kktl9gxojzotvx5titn.jpg)
Absolutely, let's explore how to master [InstaDP Download HD](https://storysaverhd.io/instadp/) and effectively manage your Instagram profile picture.

Mastering InstaDP: A Comprehensive Guide to Profile Picture Management**

Your Instagram profile picture is often the first impression you make on visitors to your profile. Here's a comprehensive guide to help you manage it effectively:

1. Choosing the Perfect Profile Picture:

   -Quality Matters: Select a high-resolution image to ensure it looks sharp and clear.
   
   -Represent Yourself: Your profile picture should reflect your personality or brand. It's a visual identity, so choose wisely.

2. Sizing Your Profile Picture:

   -Square Dimensions: Instagram displays profile pictures as a circle, but it's best to upload a square image to avoid any cropping.

   -Recommended Size: Aim for a size of at least 320x320 pixels for quality. Instagram will automatically resize it.

3. Updating Your Profile Picture:

   -Regular Updates: Change your profile picture to keep your profile fresh. Consider updating it for special occasions or to match seasonal themes.

   -Consistency: If it's for personal branding or business, maintain consistency across all your social media profiles.

4. Privacy Considerations:

   -Public vs. Private: Remember that if your Instagram account is private, only approved followers will see your profile picture.

5. How to Use InstaDP for Profile Pictures:

   -InstaDP.io: This user-friendly online tool allows you to view and download profile pictures from Instagram. It's handy for accessing full-resolution versions of profile pictures.

6. Profile Security:

   -Two-Factor Authentication (2FA):
Enhance the security of your Instagram account by enabling 2FA.

7. Engagement:

   - Interact with Followers: Engage with your audience by responding to comments and messages. A friendly profile picture can make your interactions more personal.

8. Story Highlights:

   -Create Highlights: Use Instagram Story Highlights to organize and showcase your best stories. Your profile picture is your Highlight cover, so make it appealing.

9. Branding and Recognition:

   -Consistent Branding: If you're running a brand or business, your profile picture should align with your branding strategy for easy recognition.

10. Profile Optimization:

   -Optimize for Search: Use relevant keywords in your profile description to make your profile easier to discover.

Your Instagram profile picture is your visual identity, so it's crucial to manage it effectively. By following these tips and utilizing tools like InstaDP.io when necessary, you can make the most of your Instagram presence and leave a lasting impression on your followers and visitors.
How to Install and use sweetalert2 in Laravel 10
Published: 2023-09-07 08:26:24

SweetAlert2 is a popular JavaScript library for creating beautiful and customizable alert and confirmation dialogs.
However, i will show you how to install and use SweetAlert2 in Laravel 10 apps. 

## How to Install and use sweetalert2 in Laravel 10

You can follow these steps to install and use SweetAlert2 in your Laravel application:

- 1. Create a New Laravel Project (if not already done):
- 2. Install SweetAlert2:
- 3. Include SweetAlert2 in Your JavaScript Files:
- 4. Compile Your Assets:
- 5. Use SweetAlert2 in Your Laravel Blade Views:


Read More [How to Install and use sweetalert2 in Laravel 10
](laravel-sweet-alert-example-tutorial)
We built a tool to speed up your MVP validation
Tags: webdev
Published: 2023-09-07 08:16:46

Hi all,

Have you struggled with MVP validation when starting a new project? We’ve been there too, which is why we built this tool to make the process smoother. 

It's common to have high video traffic but few leads. One reason could be the value you provide, but another could be the barriers viewers face in taking action. So, we're wondering if allowing prospects to sign up and leave feedback directly in the video would improve conversion rates and speed up data collection for your MVP. 

With the interactive video tool from Gemoo.com, you can add email collectors, quizzes, and buttons to your videos to engage your viewers and increase the chances of collecting useful information. 

**How it works?**
- Upload your video (Or feel free to record one using our built-in recorder)
- Add the interactive elements you want to the video
- Share it through a link with your audience
- Check the data report to see how your viewers interact with your video

We're offering a free trial and would appreciate it if you could try it out and leave your comments. Thanks a ton!
How to use Templates in FastAPI
Tags: python, fastapi, coding, html
Published: 2023-09-07 08:03:29

## Hi 🙂🖐

Welcome to my new post, In this post, I will show you how to use HTML templates in FastAPI. FastAPI provides amazing methods to render templates in easy ways. You can use any template engine you want with FastAPI. 
FastAPI supports Jinja2, the same one used by Flask and other tools.

## step 1

Install `jinja2`
`pip install jinja2`

## step 2

Create folders You need to create two folders.

**1 - templates**

Inside this folder, you will create the HTML files you want to display.

**2 - static**
This folder is used for static files like CSS and Javascript.


## step 3

Inside templates folder create `welcome.html` page

```html
<html>
<head>
    <title>Welcome</title>
    <link href="{{ url_for('static', path='/css/style.css') }}" rel="stylesheet">
</head>
<body>
    <div class="user-name">
        <h1>Welcome : {{ name }} ;)</h1>
    </div>
</body>
</html>
```
Now we need to make another folder called css inside static folder to add `style.css` file 🤗

```css
.user-name {
    margin: 100px auto;
    width: 60%;
    background-color: #673AB7;
    padding: 20px;
    color: white;
    text-align: center;
    font-family: monospace;
}
```



## step 4

Create the `main.py` file and import the required modules.

```python
from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates
from fastapi.staticfiles import StaticFiles
```

Setting up static folders and template directories

```python

app = FastAPI()

app.mount("/static", StaticFiles(directory="static"), name="static")

templates = Jinja2Templates(directory = 'templates')
```

Create route called welcome this route will take name and display it into `welcome.html` page

```python
@app.get('/welcome/{name}', response_class = HTMLResponse)
def welcome(name : str, request : Request):
    return templates.TemplateResponse(
        'welcome.html', 
        {'request': request, 'name': name}
    )
```

Now we are ready to run the app. 😎

```
uvicorn main:app --reload
```

## result

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0hi2ho2p8a194yym0epa.PNG)


**Now we're done 🤗**

**Don't forget to like and follow 🙂**

**Support me on PayPal 🤗**
https://www.paypal.com/paypalme/amr396
Hiring!
Tags: devops, dotnet
Published: 2023-09-07 08:13:54

Hello Everyone,

We're a recruitment agency specialized in the Technological field.
Our clients are of a high level!

I've joined the Dev Community to raise the voice that **we have available opportunities that matches all of your profiles.**
I will post the available vacancies every once in a while.
Do not hesitate to contact us!
Below is the link of my profile.

https://www.linkedin.com/in/cynthia-kh/

Follow for more info
You can contact me through ckhairallah@net-recrute.com
Upgrade Laravel Version 9 to 10
Published: 2023-09-07 08:05:59


Here's a general outline of the steps you might follow when upgrading Laravel:

Read the Upgrade Guide: Start by checking if Laravel's official documentation has released an upgrade guide for the specific version you want to upgrade to. Laravel's documentation is usually very comprehensive, and it will provide you with step-by-step instructions on how to upgrade your application.

Check Compatibility: Before attempting an upgrade, ensure that your application's dependencies and packages are compatible with the new Laravel version. Some packages or custom code may need adjustments to work with the new version.

Backup Your Application: Always create a backup of your current application code, database, and any configuration files before proceeding with the upgrade. This ensures that you can roll back to the previous version in case something goes wrong.

Upgrade Dependencies: Update your application's composer.json file to require the new version of Laravel. Then, run composer update to update your dependencies to the latest versions compatible with Laravel 10.

Update Configuration: Check the config directory for any changes in configuration files. Laravel often introduces new configuration options or changes to existing ones. Make sure your configuration is up-to-date.

Update Routes and Middleware: Check your routes and middleware. There may be changes in the way routes or middleware are defined or used in the new version.

Check for Deprecated Features: Laravel may deprecate certain features between major versions. Review the deprecation notices in the documentation and update your code accordingly.

Test Your Application: After making the necessary code changes, thoroughly test your application to ensure that it works as expected. Pay special attention to any areas of your application that interact with Laravel's core components.

Update Dependencies and Packages: Laravel upgrades may require updates to third-party packages and libraries used in your application. Make sure all your dependencies are compatible with the new Laravel version.

Deploy Gradually: If your application is in production, consider deploying the upgrade in a staging environment first to catch any issues before rolling it out to production.

Monitor for Issues: After deploying to production, monitor your application closely for any issues, errors, or performance problems. Be prepared to address them quickly.

[Upgrade Laravel Version 8, 9 to 10](https://morioh.com/p/2493ce4fe7c1?f=5da9689101f5411200a17843)