teleren/devto huggingface dataset:
Maximizing Your Angular Build Performance with ESBUILD
Tags: angular, esbuild, performance, build
Published: 2022-12-30 06:06:14

[ESBuild](https://esbuild.github.io/) is a swift JavaScript compiler used for [ViteJS](https://vitejs.dev/). You can play with him in Angular, changing a single line in the `angular.json` file.

Note: It is in `experimental mode` 😜

Change the builder from "@angular-devkit/build-angular:browser" to "**@angular-devkit/build-angular:browser-esbuild**".

```typescript
  "build": {
          "builder": "@angular-devkit/build-angular:browser-esbuild",
          "options": {
```

Run `ng build` again, leave in the comment how fast it is. My small project gets `59.72 %` faster. ***OMG!!!!!!!***


![build](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38djq78fy7vpenh2ndnu.png)

But if you want to read more about speed Angular checkout:

* [github.com/analogjs/analog](http://github.com/analogjs/analog) project by [brandontroberts](https://twitter.com/brandontroberts)
    
* [https://marmicode.io/blog/versatile-angular](https://marmicode.io/blog/versatile-angular) by [yjaaid](https://twitter.com/yjaaidi)i
    

Happy Coding :)
What programming language should I learn first?
Tags: beginners, programming, python, cpp
Published: 2022-12-30 05:54:15

There are many **programming languages** to choose from, and the one that is best for you to learn first will **depend on your goals and interests**. Here are a few things to consider when choosing a programming language to learn:

1. What do you want to do with programming? Different programming languages are suitable for different tasks. For example, if you want to build web applications, you might want to start with a language like HTML, CSS, and JavaScript. If you want to do data analysis, you might want to start with a language like Python.

2. What is the community like for the language? A large and active community can be a great resource for learning and getting help when you’re stuck.

3. What resources are available for learning the language? There are many resources available for learning programming, including books, online courses, and videos. Some languages have more resources available than others.

**<u>[Get 200+ Hours of Free Courses(Certificate).](https://tech2etc.com/)</u>**

Overall, Python is a good language to start with because it is relatively easy to learn and has a large and active community. Other popular languages for beginners include Java and C++.

## Short Answer:
“What is the best programming language for beginners to learn first? Are you a newcomer to the world of coding and wondering where to start? There are many programming languages to choose from, each with its own strengths and uses. Python is often recommended as a good language for beginners due to its simplicity and versatility. Other popular choices include Java and C++. Consider your goals and interests when deciding which programming language is best for you to learn first. Whether you want to build web applications, do data analysis, or something else entirely, there is a language out there that can help you achieve your goals.”

### Latest Posts:

{% embed https://dev.to/fahimulkabir/how-do-i-start-working-as-a-freelancer-4g0o %}
{% embed https://dev.to/fahimulkabir/what-are-the-best-online-part-time-jobs-4g53 %}
{% embed https://dev.to/fahimulkabir/i-know-html-css-but-cant-create-anything-by-myself-4go2 %}
797. Leetcode solution in CPP
Tags: cpp
Published: 2022-12-30 05:50:51

```cpp
class Solution {
 public:
  vector<vector<int>> allPathsSourceTarget(vector<vector<int>>& graph) {
    vector<vector<int>> ans;
    dfs(graph, 0, {0}, ans);
    return ans;
  }

 private:
  void dfs(const vector<vector<int>>& graph, int u, vector<int>&& path,
           vector<vector<int>>& ans) {
    if (u == graph.size() - 1) {
      ans.push_back(path);
      return;
    }

    for (const int v : graph[u]) {
        
      path.push_back(v);
      dfs(graph, v, move(path), ans);
      path.pop_back();
    }
  }
};


```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/all-paths-from-source-to-target
Laravel 9 Stripe Payment Gateway Integration
Tags: laravel9, stripe, payment, integration
Published: 2022-12-30 05:30:00

In this article, we will see laravel 9 stripe payment gateway integration. 

Here, we will learn how to integrate the stripe payment gateway in laravel 9. Stripe payment gateway is integrated into many websites for payment collection from clients, in this time many e-commerce websites and other shopping websites use stripe payment gateway. 

Stripe is a suite of payment APIs that powers commerce for online businesses of all sizes, including fraud prevention, and subscription management. 

Use Stripe’s payment platform to accept and process payments online for easy-to-use commerce solutions.

So, let's see how to integrate stripe payment gateway in laravel 7/8/9, stripe payment gateway integration in laravel 9, laravel 9 stripe integration example, and payment gateway integration in laravel 9.

```
Step 1: Install Laravel 9 Application

Step 2: Install Stripe Package in Laravel 9

Step 3: Configuration of Stripe

Step 4: Create a Route

Step 5: Add StripeController

Step 6: Create a Blade File for View

Step 7: Run Laravel 9 Stripe Payment Application
```
【Node.js】How to manage Node.js of different versions
Published: 2022-12-30 05:25:35

OS...Windows 10

Here is what I did to manage different versions of node in my PC. You can switch different versions of node depending on your project directories.

##Install "volta" to switch different version of node!"##
1.Go to [(https://docs.volta.sh/guide/getting-started)].
2.Click "download and run the Windows installer" to download the installer.
3.Click the installer to install volta.
4.Go to your project directory to check your node version.
My node version is v14.
```
node -v
v14.15.4
```
5.Install node of whatever version you like.
I installed the latest one.

```
volta install node @latest
```
6.Make sure your desired version of node was installed.

```
volta list node
⚡️ Node runtimes in your toolchain:
    v19.3.0 (default)
```
Looks like my original version of node is not on the list, so I added one.

```
volta install node@14.15.4
success: installed and set node@14.15.4 (with npm@6.14.10) as default
```
I got v14 as well.
```
volta list node
⚡️ Node runtimes in your toolchain:

    v14.15.4 (default)
    v19.3.0
```
7.You can pin the node in your project directory.

```
volta pin node@19.3.0
success: pinned node@19.3.0 (with npm@9.2.0) in package.json
```
In this project directory, v19.3.0 is used. On the other hand, in other project directories, v14.15.4 is used.
Pulling changes from forked repositories
Tags: git, github
Published: 2022-12-30 05:23:37


- [Intro](#intro)
- [Remotes](#remotes)
	- [Checking remotes](#checking-remotes)
	- [Adding new remotes](#adding-new-remotes)
- [Fetching changes](#fetching-changes)
- [Merging changes](#merging-changes)
- [Conclusion](#conclusion)

## Intro
Imagine this—you are working on a feature in an open–source GitHub repo with a few others. You don't have write access, so you will need to make forks. If everyone is comfortable, one person can make a fork and give everyone else write access, but that's not always the easy to coordinate. 

## Remotes
Your teammate just pushed some changes, how can you pull them into your own fork?

First we need to set up a remote repository, or for short, a remote. This will allow you to interact with other repositories—in this case, your teammates'. 

### Checking remotes
If you are unsure which remotes you've already added, you can always check with this command

```
$ git remote -v
origin	https://github.com/20jasper/git-tutorial (fetch)
origin	https://github.com/20jasper/git-tutorial (push)
```
Note that origin isn't a special keyword—it's just the default name for a repo's main remote
### Adding new remotes
Typing out the whole url for a remote every time would be confusing, but luckily, each remote can be given a name just like `origin`. 

Let's say our teammate is called Jimothy, and to keep it simple, let's use `jimothy` for the name of the remote as well.

```git
$ git remote add jimothy https://github.com/jimothy/git-tutorial
```

Just to be safe, let's check the remotes.
```
$ git remote -v
jimothy	https://github.com/jimothy/git-tutorial (fetch)
jimothy	https://github.com/jimothy/git-tutorial (push)
origin	https://github.com/20jasper/git-tutorial (fetch)
origin	https://github.com/20jasper/git-tutorial (push)
```

Great—everything worked! Now you just need to fetch and merge the changes and you're set.

## Fetching changes
To sync the changes made in a remote, run `git fetch <remote>`

```
$ git fetch jimothy
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 639 bytes | 106.00 KiB/s, done.
From https://github.com/jimothy/git-tutorial
 * [new branch]      main       -> jimothy/main
```

## Merging changes
At this point, both versions can be merged.

```
$ git merge jimothy/main
Updating 875fc67..b7568a9
```

## Conclusion

Congratulations You have successfully combined both your work and your teammate's!
Safe and elegant way to update your npm packages quickly
Published: 2022-12-30 05:14:35

Maintaining projects that run on npm brings more trouble than building a new one. Throughout the project development, we refer many external npm packages to help us build faster than reinvent the wheel. Thousands of open-source devs contribute daily to build stable npm packages and make those available to the global dev community.

### Why should you update npm packages regularly?

1. Security patches
    
    Many packages themselves have references to other public npm packages. There are times when a security vulnerability pops up and this needs a chain of updates to the packages, from the source to the destination.
    
2. Deprecations
    
    Methods exposed by these npm packages keep on getting improved and optimized so the developers no longer support old methods.
    
3. New features
    
    Developers keep adding new features to the package. Always good to get the latest.
    

Now, the real pain arises when you are building a big project, like Angular, where many external packages like prime-ng, date pickers etc. are being referred. Or you own an old project but still have to maintain the codebase regularly.

A great tool called NPM Check Updates makes your life easy. It is a CLI that helps safely make those updates with ease.

Steps to use NPM Check Updates(`ncu`)

1. Install `npm-check-updates`, preferably globally.
    
    ```javascript
    npm install -g npm-check-updates
    ```
    
    or with `npx`
    
    ```javascript
    npx npm-check-updates
    ```
    
2. Run NPM Check Updates.
    
    ```javascript
    ncu
    ```
    
    This command returns a changelog of all your packages.  
    Add option `-u` to update your `package.json` file with the requested versions.
    
3. There are multiple options to get into more details or filter your packages. By semantic versioning (patch, minor, major).
    
    ```javascript
    ncu -u -t patch|minor|major
    ```
    
    By name/pattern matching
    
    ```javascript
    // By package name
    ncu -u express
    ncu -u -f express
    ncu -u --filter express
    
    // everything except express
    ncu -u \!express
    ncu -x express
    ncu --reject express
    
    // pattern matching
    ncu -u react-*
    ncu -u @angular/*
    ```
    
4. Run `npm i` to install the changes
    

This two-step process makes wonders, and helps you quickly update your project dependencies. There are many option available to make it safer than manual updates.  
  
Some useful `ncu` Installation options:  
`-u, --upgrade` : Overwrite package.json with upgraded versions instead of just logging output to the console.  
`-f, --filter` : filter by names/string  
`--cache` : Cache versions to the cache file  
`--peer` : Checks peer dependencies of the packages and filters updates to compatible versions. Run `ncu --help --peer` for more help.  
`--deep`: Scans current directly recursively for updates.

For more information refer to their docs:

https://www.npmjs.com/package/npm-check-updates

That's all folks!
Mermerd - Generate your ERD blazingly fast
Tags: productivity, opensource, database, sql
Published: 2022-12-30 05:00:00

Link to the project is [here](https://github.com/KarnerTh/mermerd)

## Why would I need it / Why should I care?

Documenting stuff and keeping it updated is hard and tedious, but having the right documentation can help to make the right decisions. Mermerd was designed to be able to export an existing database schema in a format that can be used to prototype and plan new features based on the existing schema. The resulting output is an ERD in [Mermaid-Js] (https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram) format that can easily be updated and extended.

## How does the Mermaid format look like?
You write your diagrams in plain text and Mermaid will create them for you. All the details can be found on the official website [here](https://mermaid.js.org/syntax/entityRelationshipDiagram.html)

For example, a simple ERD can look like this

```
erDiagram
    CUSTOMER }|..|{ DELIVERY-ADDRESS : has
```

which will result in a diagram like this (you can click on the image to test it out yourself)

[![ERD](https://mermaid.ink/img/pako:eNo9jssKwjAURH8l3HXtB2QnJgvBIjQqCNlcmqsNmlbSZCFp_t1YH7OaxZnhJOhGQ8CBvLB49ej0wEo2R3XYN7Jlea7rOTEhd9uTbM-rtRCtVIpx1uMEFTjyDq0pD-m91BB6cqSBl2rQ3zToIRcuPgwGksaG0QO_4H2iCjCGUT2HDnjwkX7QV-RP0TJqPp6Lbn4B0pQ7-A?type=png)](https://mermaid.live/edit#pako:eNo9jssKwjAURH8l3HXtB2QnJgvBIjQqCNlcmqsNmlbSZCFp_t1YH7OaxZnhJOhGQ8CBvLB49ej0wEo2R3XYN7Jlea7rOTEhd9uTbM-rtRCtVIpx1uMEFTjyDq0pD-m91BB6cqSBl2rQ3zToIRcuPgwGksaG0QO_4H2iCjCGUT2HDnjwkX7QV-RP0TJqPp6Lbn4B0pQ7-A)

## Why do I need Mermerd when Mermaid already exists?
Mermerd is a small cli tool which generates a Mermaid diagram from an existing database. It supports an interactive cli, command line arguments and predefined run configurations. You can watch a small demo [here](https://user-images.githubusercontent.com/22556363/149669994-bd5cfd8d-670c-4f64-9fe9-4892866d6763.mp4)

Example usages would be

```
# all parameters are provided via the interactive cli
mermerd

# same as previous one, but show all constraints even though the table of the resulting constraint was not selected
mermerd --showAllConstraints

# ERD is created via the provided run config
mermerd --runConfig yourRunConfig.yaml

# specify all connection properties so that only the table selection is done via the interactive cli
mermerd -c "postgresql://user:password@localhost:5432/yourDb" -s public

# same as previous one, but use all available tables without interaction
mermerd -c "postgresql://user:password@localhost:5432/yourDb" -s public --useAllTables

# same as previous one, but use a list of tables without interaction
mermerd -c "postgresql://user:password@localhost:5432/yourDb" -s public --selectedTables article,article_label
```

If you are interested you can check out the project: [mermerd](https://github.com/KarnerTh/mermerd)
Doris Summit 2022 Breakout Session Detailed Agenda(Business & Ecology)
Tags: database, opensource, cloud, devops
Published: 2022-12-30 04:21:23

Doris Summit 2022 will be officially held online from January 6th to 7th, 2023. The conference brought together senior technical experts from the world's top cloud vendors, first-tier Internet companies, star startups, and open source organizations to discuss the latest technology in Apache Doris, best practices and applications.

In Business and Data Ecology session, experts from SelectDB, Baidu, Netease, Tencent, ByteDance, Alibaba Cloud, AWS and other companies will share:
- Cloud-based data warehouse
- Solution of integrated cloud services

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

## Breakout Session Agenda(Business and Data Ecology)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7bka8mzn258ph5n826v7.png)

## Sign Up Now
http://hdxu.cn/PpMyh

## About Doris Summit 
Doris Summit is an annual event of Apache Doris community, which gatheres community members and experts in the field of real-time analysis from all over the world. In the conference, the community will take an overlook on the past developments and a glimpse into the future trends. In addition, technical talks from software leaders push the boundaries and share their ideas as the early adopter of Apache Doris. 

Join us and spend time with global peers and become part of Apache Doris community. We are looking forward to seeing you at the conference!

## About SelectDB
SelectDB is an open-source technology company dedicated to providing the Apache Doris community with a team of full-time engineers, product managers and fully technical support. Meanwhile, SelectDB is willing to prosper the open-source community ecology and create an international industry standard in the field of real-time analytical data warehouses. Based on the new generation of cloud-native real-time data warehouse developed by Apache Doris, SelectDB runs on multiple clouds and provides users and customers with the feature of out-of-the-box.
Should you study java?
Tags: java
Published: 2022-12-30 04:17:45


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

The Java programming language has become one of the most popular and widely used languages in the world. It is a highly versatile language that can be used for a variety of applications, from web development to mobile app development. It is also relatively easy to learn and use compared to other languages. Therefore, studying Java should definitely be considered by anyone who wants to pursue software engineering or computer science as a career path.

**For more info. visit:** [https://www.synergisticit.com/java-training-in-paradise/](https://www.synergisticit.com/java-training-in-paradise/)
Which skill is best for freelancing 2023?
Tags: cloud, javascript, webdev, beginners
Published: 2022-12-30 03:44:09

Some skills that may be in high demand for freelancers in 2023 could include:

1. Cloud computing: As more businesses move their operations to the cloud, skills related to cloud computing, such as AWS, Azure, and Google Cloud, are likely to be in high demand.

2. Data science and machine learning: The demand for professionals with skills in data science and machine learning is expected to continue to grow, as businesses increasingly rely on data to make informed decisions.

3. Full-stack development: Full-stack developers who are skilled in both front-end and back-end development will likely be in high demand, as businesses look for professionals who can build and maintain complete web applications.

4. Cybersecurity: With the increasing number of cyber threats facing businesses, the demand for professionals with skills in cybersecurity is likely to continue to grow.

5. Artificial intelligence and machine learning: As AI and machine learning become more prevalent in various industries, professionals with skills in these areas are likely to be in high demand.

6. Project management: The ability to manage projects effectively will likely remain a valuable skill for freelancers, as businesses look for professionals who can deliver projects on time and within budget.

7. User experience design: The demand for professionals with skills in user experience design is expected to continue to grow, as businesses focus on creating user-friendly products and services.

8. Mobile development: As more businesses develop mobile applications, the demand for mobile developers is likely to continue to grow.

9. DevOps: Skills related to DevOps, such as continuous integration and delivery, are likely to be in high demand as businesses look for ways to improve their software development and deployment processes.

10. Blockchain: With the increasing adoption of blockchain technology, the demand for professionals with skills in this area is likely to continue to grow.

Overall, the skills that will be in high demand for freelancers in 2023 will depend on the evolving needs of the market and the specific industries in which freelancers are working.
DBMS with mysql. Without using GUI...
Tags: webdev, database, beginners, programming
Published: 2022-12-30 03:41:40


![Sql with terminal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8gkonyi2er73bww12wt3.png)

## How to do like above. Is it difficult to do? How to start playing with terminal as **hacker **:) just kidding. 
I am so bored when creating database and it's different table with Graphical User Interface (GUI). That's why I will help those who want to dirty their hands with command line.

Here it goes with answer of How to start?

1. Configure all environments (xampp) / any mysql

1. type mysql in cmd
2. type mysql -u user_name -p password
3. after successfull

```jsx
mysql>
```

1. **To list database type the following command**

```jsx
mysql>show databases;
```

output:

```jsx
+--------------------+
| Database           |
+--------------------+
| coronadb           |
| ecomm              |
| ecommerce          |
| information        |
| information_schema |
| mysql              |
| performance_schema |
| phpmyadmin         |
| test               |
| test1              |
| testdatabase       |
| user_login         |
+--------------------+
12 rows in set (0.001 sec)
```

1. To use these database and to list available tables type the following two commands:

```sql
mysql>use user_login;
```

1. Now list tables:

```sql
mysql[database_name]>show tables;
```

output

```sql
+---------------------------+
| Tables_in_mysql           |
+---------------------------+
| columns_priv              |
| db                        |
| func                      |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| proc                      |
| procs_priv                |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
+---------------------------+
17 rows in set (0.00 sec)
```

These are command line sql for starting in command line instead of GUI.

Read sql docs and start future operation like insert,delete,filter,etc.

I will continue and help you guys to explore more on this topic.
Thanks for reading.
Recommend me any suggestion or how to improve. Or any topic?
Happy hacking.
Sign out for today.
5 Reason You Should Learn JIRA as Software Tester / QA
Tags: webdev, beginners, programming, tutorial
Published: 2022-12-30 03:24:15

In this video, we are going to learn about the JIRA tutorial, why Software tester have to learn JIRA.

{% embed https://youtu.be/209neR9H0Ho %}

🟣🟣 Website Link - https://www.atlassian.com/software/jira

🟣🟣 My Resume Template - http://sdet.live/notes


✅ API Testing –
https://www.learnapitesting.com


✅ Cypress Tutorial with LIVE Projects –
http://cypresstutorial.com


🟢 30 Days of Automation Testing
https://go.scrolltest.com/automation

🟢 30 Days of API Testing
https://apitesting.co/30days

🟢 30 Days of Rest Assured
https://go.scrolltest.com/30days-rest...


—————————————————–
👪 Join our Community – http://bit.ly/learntesting2019

✅ Automation Tester Community – https://thetestingacademy.com

🐦Follow us on Twitter – https://twitter.com/itstechmode

📖 Like us on Facebook – https://www.facebook.com/scrolltest

🎤 Listen to our Podcast – https://anchor.fm/thetestingacademy

——————————————————

#jira #jiracertification #jiratutorial