teleren/devto huggingface dataset:
Creating Fullchain Self Signed SSL With 3 Commands
Published: 2023-12-21 09:38:19

## Overview 

I wrote about how to create a fullchain ssl certificate manually in a previous post. Today, I will show you how you can create fullchain ssl cert with only 3 commands. 

We will use a tool named crtforge which is free and open-source application that you can find on [Github](https://github.com/safderun/crtforge). 

## Install `crtforge`

To install `crtforge`, you need Linux or macOS. You can also use the `crtforge` on Windows with wsl.

```bash
sudo curl -L -o /usr/bin/crtforge https://github.com/safderun/crtForge/releases/latest/download/crtforge-$(uname -s)-$(uname -m) && \
sudo chmod +x /usr/bin/crtforge
```

These two command will install crtforge binary to your system.

## Create a fullchain cert.

You can directly run `crtforge` with a appname and domains that app needs.

```bash
crtforge websiteApp myapp.com app.myapp.com
```

Congratulations 🎉, you will have your fullchain with 3 commands in total.

You can get the certs from the `$HOME/.config/crtforge/default/websiteApp` directory. 

For detailed usage like custom root CA, custom intermediate CA and trusting the root CAs, you can check the readme of the [repository](https://github.com/safderun/crtForge).
How to Customize the Rows of ASP.NET Core DataGrid using Templates
Tags: webdev, aspdotnet, aspdotnetcore, csharp
Published: 2023-12-21 09:38:18

Learn how to customize rows in the Syncfusion ASP.NET Core DataGrid using templates. You’ll also learn how to use a detail template to show additional information about a particular grid row by expanding or collapsing it. 

The ASP.NET Core DataGrid is a feature-rich control for displaying data in a tabular format. Its various functionalities include data binding, editing, Excel-like filtering, aggregating rows, custom sorting, selection, and support for Excel, CSV, and PDF formats. You can bind data seamlessly from various local and remote data sources such as JSON, OData, WCF, and RESTful web services with the help of a data manager. The data manager lets users perform create, read, update, and delete operations (CRUD) easily with a list of business objects or remote data service. 

The DataGrid provides a way to use a custom layout for its rows using the template feature. The rowTemplate property accepts either strings or the HTML element`s ID value, which will be used as the template for the row. 

In this video, we present employee information with employee photos in the first column and employee details like name and address in the second column. The detail row template provides additional information about a data row, which can be shown or hidden by clicking the expand or collapse buttons. 

The detailTemplate property accepts either strings or the HTML element`s ID value, which will be used as the template for the detail row. In this video, we present employee information with images in the detail row. 

**Tutorial video:** https://www.syncfusion.com/tutorial-videos

**Download an example from GitHub:** https://github.com/SyncfusionExamples/how-to-customize-the-rows-of-aspdotnet-core-datagrid-using-templates

{% youtube wIzGggZzn68 %}
Brasserie B by Bobby Flay at Caesars Palace is accepting reservations
Published: 2023-12-21 09:36:17

Award-winning chef Bobby Flay is bringing French-inspired favorites to his new restaurant inside Caesars Palace. Brasserie B by Bobby Flay is accepting reservations beginning January 2024 for brunch, lunch and dinner through OpenTable. [바카라사이트](https://www.casinositehot.com/)

Brasserie B follows the tremendous success of Amalfi by Bobby Flay and offers an intersection of French cuisine and Flay’s creative touches. Visitors can expect the unexpected, as Flay puts his signature twists on traditional frites, unique raw bar selections, a variety of starters and entrees and desserts. Guests can also enjoy a beverage program featuring classic brasserie cocktails and martinis, France-focused wines by the glass, as well as draft beer, bottled beer and cider.

“I’m thrilled to unleash my new restaurant, Brasserie B, at Caesars Palace in Las Vegas,” said Bobby Flay. “Designed with Parisian brasseries in mind, the cuisine will appear to hit many French classics with tons of the impactful, bold flavors I’ve become known for. Get ready for the hustle, the bustle and the high-powered cooking of Brasserie B.”

Signature menu items include a variety of grilled proteins served with house-made French fries. The Lobster avec Frites features lobster with roasted garlic and lemon butter, and the Ribeye Piquant avec Frites includes steak with spicy and sweet glaze and chile butter. The lunch and brunch menu at Brasserie B showcases Flay’s take on popular dishes such as Eggs Royale, a variation of eggs benedict with smoked salmon and lemon chive hollandaise.

Designed by Olivia Jane Design, the restaurant transports guests from the heart of the Las Vegas Strip to a timeless brasserie in Paris. From the casino floor, guests are drawn to Brasserie B’s entrance by a neon sign curved along an exaggerated cornice and the warm interior lighting. The façade is reminiscent of a Parisian storefront with a rich, burgundy plaster.

“During our nearly 20-year partnership with Bobby Flay, he has taken our guests around the world through his restaurants – from the American Southwest to the Mediterranean,” said Terrence O’Donnell, SVP and General Manager of Caesars Palace. “Now, with Brasserie B, he introduces guests to a different cuisine inspired by his travels in France. We are excited to offer another incredible dining destination at our resort, especially for brunch and lunch.”

Brasserie B features an L-shaped, 20-seat bar with weathered marble, fluted wood and zinc accents. The lounge flows into the main dining space, which includes a showstopping raw bar with a lit canopy that spills over the tables below. The intimate, 175-seat dining room features blown glass chandeliers, cane-backed cafe chairs and handmade subway tile. Burgundy banquettes line each of the spaces, and oversized mirrors clad the walls, amplifying the bustling energy that fills the room. A set of folding bistro-style doors bisect the space to create a private dining room with an abstract mural ceiling and illuminated wine displays.
How to Test SMTP Settings under 5 Minutes
Tags: smtp, go, testing, mail
Published: 2023-12-21 09:35:42

## Overview

In this tutorial, you will see how to test SMTP settings with a tool named `gomtp` on Linux and macOS cli.

`gomtp` is a open-source and free software to test SMTP settings. You can see the source code on the [Github page](https://github.com/safderun/gomtp). 

## Table of Contents
1. [Install the `gomtp` tool.](#install-gomtp)
2. [Configure the SMTP settings.](#smtp-configuration)
3. [Test the configuration.](#test-the-configuration)

## Install gomtp

To install the `gomtp`, you can simply run the command below:

```bash
sudo curl -L -o /usr/local/bin/gomtp "https://github.com/safderun/gomtp/releases/latest/download/gomtp-$(uname -s)-$(uname -m)" && \
sudo chmod +x /usr/local/bin/gomtp
```

## SMTP configuration.

To test SMTP settings, you first need to configure a yaml file.

- Create a file named `gomtp.yaml`.
```bash
vim gomtp.yaml
```
❗The file name must be `gomtp.yaml` by default.

- Configure the SMTP settings for your needs.
```yaml
##### Gmail Example #####
 username: 'from@gmail.com'
 password: 'appPassword'
 from: 'from@gmail.com'
 to: 'to@example.com'
 host: 'smtp.gmail.com'
 port: 587
 ssl: false
 tls: true
 auth: 'LOGIN'
 subject: 'Testing Email'
 body: |
   this is line 1
   This is line 2
```

ℹ You can find some other example configurations under [the repository](https://github.com/safderun/gomtp/blob/master/gomtp.yml).

## Test the Configuration

Now it's time to test the configuration.

- Be sure that you are in the same directory with the `gomtp.yaml` file you have just created previously.

- Run the `gomtp` directly with no argument.
```bash
gomtp
```
- If the configuration is valid, you will see this output.
```shell
$ gomtp
Email sent successfully!
```

- If the configuration is invalid, you will see an error message that describe the problem.
```shell
$ gomtp
2023/12/21 11:44:33 535 5.7.8 Error: authentication failed: Invalid user or password! 1703148273-WiJ7lX77XKo0
```
Sử dụng Builder Pattern cho function có nhiều filter params trong Java
Tags: java, cleancode
Published: 2023-12-21 09:32:21

Nếu hàm chứa quá nhiều biến dùng để filter, đặc biệt dùng cho các api filter/sort của list thì việc sử dụng Builder Pattern giúp code đọc vào dễ hiểu và dễ maintain hơn.

```
public class FilterParams {
    private String param1;
    private int param2;

    private FilterParams(Builder builder) {
        this.param1 = builder.param1;
        this.param2 = builder.param2;
    }

    // Getter methods
    // ...
    
    public static class Builder {
        private String param1;
        private int param2;

        public Builder param1(String param1) {
            this.param1 = param1;
            return this;
        }

        public Builder param2(int param2) {
            this.param2 = param2;
            return this;
        }

        public FilterParams build() {
            return new FilterParams(this);
        }
    }
}

public void processWithFilters(FilterParams filters) {
    // Process based on the filters
}

// Usage:
FilterParams filters = new FilterParams.Builder()
        .param1("value1")
        .param2(123)
        .build();
processWithFilters(filters);

```

## Đơn giản code hơn với annotation @Builder và @Getter của lombok 

```
import lombok.Builder;
import lombok.Getter;

@Getter 
@Builder 
public class FilterParams {
   String param1;
   int param2;
}
```
Why Should You Invest in a Co working Space?
Published: 2023-12-21 09:14:58

Investing in a [co-working space ](https://aicdsu.foundation/)can be a strategic move for several reasons:

**1. Growing Demand:** The demand for flexible workspaces is on the rise, driven by freelancers, startups, remote workers, and even larger companies looking for cost-effective and collaborative work environments.

**2. Diversification of Real Estate Portfolio:** Investing in a co-working space diversifies a real estate portfolio. It offers an alternative to traditional office spaces, potentially reducing risk by catering to a different market segment.

**3. Potential for High Returns:** Successful co-working spaces can yield high returns on investment. With the right location, amenities, and management, they can generate significant revenue from memberships and services.

**4. Adaptability and Flexibility:** Co-working spaces offer flexibility in terms of leasing arrangements. Investors can explore various models, such as owning the property outright, partnering with an established co-working brand, or developing their own space.

**5. Community and Networking Opportunities:** A well-curated co-working space fosters a community of professionals from diverse backgrounds. This community aspect can attract more users and create networking opportunities, enhancing the space's value proposition.

**6. Alignment with Changing Work Trends:** As remote work and flexible arrangements become more prevalent, investing in a co-working space aligns with the evolving work trends and preferences of modern professionals.

**7. Potential for Innovation and Collaboration:** Co-working spaces often stimulate creativity and collaboration among members from different industries. This environment can attract innovative individuals and businesses seeking synergies and partnerships.

**8. Scalability and Growth Potential:** Successful co-working spaces can expand their offerings or locations, allowing for scalability and further growth, potentially increasing the investment's value over time.

However, investing in a co-working space requires careful consideration of factors such as location, market demand, competition, management, and the overall feasibility of the venture. Conducting thorough market research and understanding the dynamics of the local real estate and workspace market is crucial before making such an investment.
KNIP | unused files detector
Tags: webdev, tutorial, beginners, productivity
Published: 2023-12-21 09:06:26

Hey everyone, this video is about a package named "KNIP", which is used to detect unused files, imports/exports, packages, etc in your projects.

Feel free to give suggestions in comments

THANK YOU FOR CHECKING THIS POST
You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

You can help me with some donation at the link below Thank you👇👇
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well

{% link https://dev.to/shubhamtiwari909/css-trigonometry-circle-3bl3 %}
{% link https://dev.to/shubhamtiwari909/next-js-multistep-form-2gc9 %}
{% link https://dev.to/shubhamtiwari909/react-components-gallary-3p7b %}
{% link https://dev.to/shubhamtiwari909/react-interactive-components-tabs-48fh %}
هزینه درمان با نوروفیدبک
Published: 2023-12-21 09:02:34

هزینه هر جلسه نوروفیدبک در مراکز مختلف بین 300 هزار تومان تا یک میلیون متفاوت است، که هزینه هر جلسه نوروفیدبک در مرکز تخصصی روانشناسی و لورتا نوروفیدبک بیات، مجهزترین و بروزترین مرکز نوروفیدبک در شیراز، 240 هزارتومان است. هزینه نوروفیدبک و دیگر خدمات نوروتراپی تحت پوشش بیمه‌های درمانی از جمله بیمه‌های تکمیلی، بانک‌ها ، نیروهای مسلح، شرکت نفت و گاز و … می‌باشد. هزینه درمان با نوروفیدبک در ایران و جهان می‌تواند به عوامل مختلفی بستگی داشته باشد؛ که هر کدام بر روی کاهش یا افزایش این هزینه تاثیر گذارند. در ادامه با تمام عواملی که می‌تواند بر روی هزینه درمان با نوروفیدبک تاثیر گذار باشد آشنا خواهیم شد.

مکان: مکان مشاوره می‌تواند بر روی هزینه درمان با نوروفیدبک تاثیر گذار باشد. در مناطق و کشورهای پیشرفته‌تر هزینه این روش درمانی بیشتر است.
تجهیزات: درمان با نوروفیدبک نیازمند تجهیزات مخصوص خود است؛ که با توجه به کیفیت و پیشرفته‌بودن این تجهیزات هزینه آن نیز افزایش می‌یابد.
نوع اختلال: نوع اختلال روانی و شدت آن می‌تواند باعث تغییر هزینه درمان شود. برخی اختلالات روانی مانند اختلال بیش‌فعالی و نقص توجه به دلیل اینکه به جلسات بیشتری برای درمان نیازمند است هزینه آن نیز افزایش می‌یابد.
تعداد جلسات: تعداد جلسات مورد نیاز درمان با نوروفیدبک در هر فرد با توجه به نوع اختلال و شدت آن متفاوت است؛ به‌صورت میانگین هر فرد به 30 تا 40 جلسه درمان با نوروفیدبک نیازمند است.
تخصص ارائه دهندگان خدمات: هر چه تخصص فرد در انجام این روش درمانی بیشتر باشد؛ کیفیت و اثربخش بودن آن نیز بیشتر است؛ به همین دلیل هزینه درمان با نوروفیدبک افزایش می‌یابد.
بیمه: یکی دیگر از عواملی که بر روی هزینه درمان با نوروفیدبک تاثیر گذار است بیمه است. برخی از بیمه‌های موجود در ایران هزینه‌های مربوط با نوروفیدبک را تحت پوشش قرار می‌دهند. برای اطلاع از این موضوع می‌توانید اطلاعات مورد نیاز را از بیمه خود دریافت کنید.
دارو درمانی: برای درمان برخی از اختلالات علاوه‌بر نوروفیدبک نیاز به دارو درمانی نیز است؛ که هزینه آن جداگانه محاسبه می‌شود.
جلسات مشاوره: در برخی اختلالات نیز نیاز به جلسات مشاوره و روان درمانی وجود دارد؛ که هزینه این مورد نیز مانند دارو درمانی جداگانه محاسبه می‌شود.
[هزینه درمان با نوروفیدبک](https://bayatco.ir/%D9%87%D8%B2%DB%8C%D9%86%D9%87-%D8%AF%D8%B1%D9%85%D8%A7%D9%86-%D8%A8%D8%A7-%D9%86%D9%88%D8%B1%D9%88%D9%81%DB%8C%D8%AF%D8%A8%DA%A9/)
آی پی ثابت وبگردی
Published: 2023-12-21 08:56:37

بدون شک یکی از واژگانی که امروزه بارها نام آن را در سراسر اینترنت شنیده‌اید، آی پی ثابت وبگردی است. از آن جایی که به صورت روزافزون به تعداد پلتفرم‌ها و شرکت‌هایی که کشور ایران را به لیست تحریم خود اضافه می‌کنند، افزوده می‌شود باید برای رفع اینگونه تحریم‌ها یک فکر اساسی کرد. اینجا است که آی پی ثابت وبگردی به کمک شما خواهد آمد. به کمک این سرویس می‌توانید به راحتی از امکانات پلتفرم‌های مختلف استفاده کنید و تحریم را برای همیشه از یاد ببرید. در این نوشتار قصد داریم شما را یکی از بهترین سرویس‌های سیب سرور یعنی سرویس آی پی ثابت وب گردی آشنا کنیم و مزایای این سرویس را در اختیار شما عزیزان قرار دهیم، با ما همراه باشید. آی پی ثابت وبگردی را می‌توان بهترین گزینه برای گشت و گذار یا فعالیت در وب دانست. این سرویس با ارائه یک آی پی ثابت و دائمی موجب حفظ هویت شما خواهد شد و از مسدود شدن حساب کاربری شما جلوگیری می‌کند. با توجه با امنیت بسیار بالا و بهره‌مندی از آی پی ثابت، می‌توان این سرویس را جایگزین مناسبی برای فیلترشکن‌ها دانست.
[آی پی ثابت وبگردی](https://sibserver.me/browsing-static-ip)
Looking opportunities to work in startups - Things you should know
Tags: career
Published: 2023-12-21 08:54:44

Hello Devs,

I began my career as a software developer in startups, and despite initial uncertainty, it turned out to be the best decision I made.

Here are three key things I learned along the way:

1. You are responsible for both good and bad outcomes.
2. Your contributions are crucial to the success of the startup.
3. You will become a leader and bring value to all aspects of your life.

If you are also considering a career in startups, [this may give you an idea of what they expect from their employees.](https://apyhub.com/blog/what-startups-look-for-in-software-developers)
What is Lawn Mower? | Guide to Choosing the Perfect Lawn Mower
Tags: lawnguidance
Published: 2023-12-21 08:51:12

It consists of a motor that powers rotating blades, typically located beneath the mower, which trim the grass as the machine is pushed or driven over the lawn. If you want to get more great information on this topic then visit my site; https://lawnguidance.com/what-is-lawn-mower/


Lawn mowers come in various types, including push mowers, self-propelled mowers, and riding mowers, each catering to different lawn sizes and user preferences.
Lawn Mower Buying Guide | Everything You Need to Know
Tags: lawnguidance
Published: 2023-12-21 08:48:12

The Lawn Mower Buying Guide is your go-to resource for selecting the perfect mower tailored to your lawn care needs. 

Covering a spectrum of mower types, from push to riding mowers, the guide outlines key features, such as cutting mechanisms, power sources, and maintenance considerations.

If you know about Lawn Mower and interest to buy the perfect Lawn mower and want to save time and money, visit my site; https://lawnguidance.com/lawn-mower-buying-guide/

It offers practical advice on choosing the right mower based on factors like lawn size and terrain, empowering you to make an informed decision.
Using ByteSize to Represent Byte Size
Tags: csharp
Published: 2023-12-21 08:45:17

Hey fellow programmers! 🖥️

Today, I want to introduce you to a cool and handy library called "ByteSize" that comes in handy when you need to work with byte sizes in C#. 

Have you ever found yourself struggling to convert bytes into kilobytes, megabytes, or even gigabytes? Well, fret no more! With ByteSize, this task becomes a piece of cake.

ByteSize is an open-source library that provides a simple way to represent and manipulate byte sizes in a human-readable format. It offers a wide range of useful functionalities, such as easily converting between different byte units (bytes, kilobytes, megabytes, gigabytes, etc.), formatting byte sizes in a user-friendly manner, comparing byte sizes, and performing arithmetic operations on them.

To start using ByteSize, you just need to add the NuGet package to your project. Once you've done that, you can create a ByteSize object by passing a long value representing the number of bytes, like this:

```csharp
ByteSize byteSize = new ByteSize(1024); // Represents 1024 bytes
```

You can then access various properties, such as "Bytes," "KiloBytes," "MegaBytes," etc., to retrieve the byte size in different units. Here's an example:

```csharp
Console.WriteLine(byteSize.MegaBytes); // Outputs "1 MB"
```

ByteSize also provides methods to format byte sizes in a human-readable way with different configurations. For example:

```csharp
Console.WriteLine(byteSize.ToString("KB")); // Outputs "1,024.00 KB"
Console.WriteLine(byteSize.ToString("MB", 2)); // Outputs "1.00 MB"
```

Moreover, ByteSize supports arithmetic operations, making it easy to add, subtract, multiply, or divide byte sizes. Here's a quick demonstration:

```csharp
ByteSize biggerSize = new ByteSize(2048);
ByteSize sum = byteSize + biggerSize;
Console.WriteLine(sum); // Outputs "3 KB"
```

Using ByteSize can greatly simplify your code and make it more readable when dealing with byte sizes. So, give it a try and see how it can improve your next development project!

Happy coding! 😊
History of the Coffee Maker | A Journey Through History
Tags: princelycoffee
Published: 2023-12-21 08:28:54

From ancient brewing methods to the invention of the first drip coffee maker, this narrative unfolds the technological advancements and cultural shifts that have shaped the way we brew and enjoy coffee. The history of the coffee maker is a captivating journey through time, tracing the evolution of this indispensable kitchen appliance. 



If you know about the History of the Coffee Maker and interest to Coffee Maker and want to save time, visit my site; https://princelycoffee.com/history-of-the-coffee-maker/

Explore the rich tapestry of coffee maker history, witnessing the fusion of tradition and innovation that has brought us the diverse array of brewing methods and machines we know today.

#princelycoffee #Coffee #coffeemaker
How to drop a table in SQL Server
Tags: sqlserver, devart, dbforge
Published: 2023-12-21 08:28:43

It's common for database maintenance to involve removing pointless tables. To complete this work with SQL Server, we have three options: the DELETE command removes rows from tables, the TRUNCATE TABLE command clears the data in the table without affecting its structure, and the DROP TABLE command deletes the table completely.

This post will examine the SQL Server DROP TABLE command and explain how to remove a single or several tables from the database. Additionally, it will show you how to make sure a table exists before deleting it.

Read more: https://www.devart.com/dbforge/sql/studio/sql-server-drop-table.html