teleren/devto huggingface dataset:
how to fix the “command not found” error
Tags: linux, beginners, programming
Published: 2023-02-02 10:46:15

“Command not found” is an error message that is displayed in the terminal when the shell is unable to locate an executable file or command that you have entered.

There are several reasons why this error can occur:

- You may have mistyped the command name.
- The command is not installed on your system.
- The command is installed, but it is not in a directory listed in your PATH environment variable.
- The command requires superuser or root privileges to run and you are not currently running the shell as superuser or root.
 

we dived into this issue and explored a few ways to [fix the “command not found” error](https://www.howtouselinux.com/post/command-not-found).

If you have any questions, please leave your comments. Thanks.

-----

[Subscribe our howtouselinux newsletter to get the latest Linux updates, devops tips, expert insights, and practical guides.](https://www.howtouselinux.com/subscribe)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k4ueifkmtblgxp6wp05x.png)
How Render-tree work
Published: 2023-02-02 10:45:08

- The DOM and CSSOM trees combine to form the render tree.

- Render tree contains only the nodes required to render the page.

- Layout computes the exact position and size of each object.

- The last step is paint, which takes in the final render tree and renders the pixels to the screen.

DOM Tree:
The browser creates the Document Object Model when page load. It is a tree of objects. Each node represents an HTML tag and there details.


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

CSSOM Tree:
After the browser had created the DOM tree in the browser, it started creating the CSSOM. Means CSS Object Model. It is basically a “map” of the CSS style which you can find on a web page degine. It is like the DOM but for CSS rules apply.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xvmq21qkqn79cemn01gg.jpg)
# Starting at the root of the DOM tree, traverse each visible node.

- Some nodes are not visible to us(for example, script tags, meta tags, and so on), and are omitted since they are not reflected in the rendered output.
- Some nodes are hidden via CSS and are also omitted from the render tree.(for example, the span node---in the example above---is missing from the render tree because we have an explicit rule that sets the "display: none" property on it).

# For each visible node, find the appropriate matching CSSOM rules and apply them.

# Emit visible nodes with content and their computed styles.

Browser's steps:

1. HTML markup and build the DOM tree.
2. Process CSS markup and build the CSSOM tree.
3. Combine the DOM and CSSOM into a render tree.
4. Run layout on the render tree to compute geometry of each node.
5. Paint the individual nodes to the screen.
Uwell caliburn
Published: 2023-02-02 10:44:16

[Uwell Caliburn](https://www.goldenvapekw.com/shop?brand=5) G2 is a pod-based e-cigarette device manufactured by Uwell. It is an updated version of the original Caliburn, with improved battery life and faster charging. The Caliburn G2 is designed for use with nicotine salt e-liquids and is known for its compact size and ease of use
1Password CLI, AWS and Terraform
Tags: 1password, aws, terraform, security
Published: 2023-02-02 10:39:46

---
title: 1Password CLI, AWS and Terraform
published: true
description: 1Password CLI has an AWS plugin that works great. But using the plugin authentication through a third party like Terraform doesn't work out the box.
tags: 1password, aws, terraform, security
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-02-02 09:31 +0000
---
## The issue
[1Password CLI](https://developer.1password.com/docs/cli) is great, having a single source for managing access keys and being able to use fingerprint ID on a Mac is such a cool feature. The AWS plugin works great, but if you want to use AWS through a third party (in this case Terraform), I failed to get it to work.

:grey_exclamation: *This blog post is based on finding a MacOS solution, mileage may vary on other operating systems.*

##The plan
After some searching I came across this guide [Storing AWS CLI Credentials in 1Password](https://kfalck.net/2018/03/18/storing-aws-cli-credentials-in-1password/) by Kenneth Falck. Its now outdated and didn't work for me, but it was more than enough to point in the right direction.

So firstly, setup everything:

- [AWS CLI](https://aws.amazon.com/cli/)
- [1Password CLI](https://developer.1password.com/docs/cli/get-started#install)
- [1Password AWS plugin](https://developer.1password.com/docs/cli/shell-plugins/aws). :grey_exclamation: I ignored *Step 2: Source the plugins.sh file* here as the alias it adds is no longer required.
- [jq tool](https://stedolan.github.io/jq/)

## The solution
next, edit the `~/.aws/config` file:

```
[default]
credential_process = sh -c "op item get '*1PASSWORD OBJ*' --format json | jq '.fields | map({(.label):.}) | add | {Version:1, AccessKeyId:."access key id".value, SecretAccessKey:."secret access key".value}'"
```

Amend the `*1PASSWORD OBJ*` name to the name of the 1Password access key entry.
If you followed the guides, the fields should be `access key id` and `secret access key`, if different, change accordingly.

[credential_process](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html) allows you to load credentials from an external process.

To check it works, try `aws iam get-user`, if this works, try a terraform command. 

Hopefully it works... :grimacing:

*Thanks to [Kenneth Falck](https://kfalck.net/) for initially solving this.*
Steps to Launch Your Own Tech Startup
Published: 2023-02-02 10:36:40

Starting a tech company is a dream for many entrepreneurs, as it has the potential to change the world and bring in huge profits. However, it is not an easy journey and requires a lot of hard work, dedication, and perseverance. Here are some steps you can take to get started on your entrepreneurial journey.

1. **Identify a problem:** The first step in starting a tech company is to identify a problem that needs to be solved. Look for areas where technology can make a difference and help people in their daily lives. This will be the foundation for your company.

2. **Conduct market research:** Once you have identified a problem, it's time to research the market to see if there is a demand for a solution. Look for potential competitors and analyze their strengths and weaknesses. This will help you understand the market and come up with a unique solution.

3. **Build a team:** Starting a tech company requires a lot of expertise in different areas. You may need software engineers, designers, marketers, and business experts. Look for talented individuals who share your vision and can help you build a successful company.

4. **Create a business plan:** A business plan will help you outline your company's goals, strategies, and how you plan to achieve them. It will also help you secure funding from investors if needed.

5. **Develop a minimum viable product:** Before you launch your company, it's important to create a minimum viable product (MVP) to test the market. This is a simplified version of your product that you can use to get feedback from potential customers. Based on their feedback, you can improve and refine your product before launching it.

6. **Get funding:** If you need funding, there are several options available such as angel investors, venture capitalists, and crowdfunding. Choose the option that works best for you and make sure you have a solid pitch to convince investors to invest in your company.

7. **Launch and grow:** Once you have your MVP and funding, it's time to launch your company. Focus on growing your customer base and improving your product. Stay flexible and be open to feedback, as it will help you stay ahead of the competition and achieve success.

Starting a tech company is not an easy journey, but with the right mindset and approach, it can be a rewarding and fulfilling experience. Good luck on your entrepreneurial journey!
Book Review: Go For Beginners
Tags: go, books, beginners
Published: 2023-02-02 10:35:35

In my sixth installment in this book review series, I'm reviewing "Go for Beginners: A genius guide to Go Programming" by Edward Thornton.  This well-written, quick intro to Go for professional developers has some really strong points, but some important down sides, too.

{% youtube https://youtu.be/Ku3dzH98zkc %}
How was ChatGPT trained?
Tags: chatgpt, openai
Published: 2023-02-02 10:32:16


Considering how great ChatGPT is, it is not surprising to see questions like these being asked by so many people.
According to my research, ChatGPT was taught to communicate in conversational dialogue style and to give responses that can surprise people with how human-like they seem. It accomplishes the duty of foretelling the following word in a string of words. An additional training layer called Reinforcement Learning with Human Input (RLHF) makes use of human feedback to teach ChatGPT how to obey instructions and produce responses that are acceptable to people.
https://www.centdam.com.ng/blog/post/what-is-chatgpt-how-it-work-and-its-limitations/
Dicas que ajudam na sua carreira em Tecnologia.
Tags: beginners, devrel, career
Published: 2023-02-02 10:28:41

Dicas que ajudam na sua carreira em Tecnologia.

1. Pesquise o dia a dia sobre a carreira tech.

2. Carreira tech depende de especialização, é aprendizado continuo.

3. Prarique para ter boa comunicação

4. Tenha um plano de vida, não para uma empresa, a carreira é sua, se aproprie.

5. Pense onde está, seu ponto de partida
E defina onde e quando quer chegar.

6. Saiba o que te move?

6. Descubra a respostas dos por quês?

8. Tenha em mente o para quê?

9. Relacione sua bagagem de vida e.. 

10. Crie um repertório.

11. Seja versátil com você mesmo, essa é a principal atitude para o futuro.

12. Revise esse plano constantemente.

13. Peça feedback de alguém que voce admira e confia.

 #tech #tecnologia #futuro #carreira
Tailwind CSS: A Rapid and Scalable Style Framework for Modern Web Development
Published: 2023-02-02 10:27:56

Tailwind CSS is a modern CSS framework that has quickly become one of the most popular choices for web developers looking for a fast and scalable way to style their websites and applications. In this article, we'll take a closer look at what Tailwind CSS is, why it's so popular, and how you can get started using it in your own projects.

## What is Tailwind CSS?

Tailwind CSS is a utility-first CSS framework that provides a set of pre-designed CSS classes that can be easily applied to HTML elements. Instead of writing custom styles for every aspect of your website, you can use Tailwind's classes to quickly and easily create consistent styles for typography, spacing, color, and more. This approach to styling allows developers to quickly prototype and iterate on designs, saving time and effort compared to writing custom styles from scratch.

## Why Tailwind CSS is Popular

One of the reasons that Tailwind CSS has become so popular is because it provides a fast and scalable way to style websites and applications. With its utility-first approach, you can quickly apply styles to elements and see the results in real-time. This allows you to move quickly and iterate on designs without getting bogged down in the details of custom styles.

In addition to its speed and scalability, Tailwind CSS is also highly customizable. You can easily customize the look and feel of your website by tweaking the default settings, and you can also create your own custom styles if you need more advanced styling options.

## Getting Started with Tailwind CSS

Getting started with Tailwind CSS is simple and straightforward. All you need is a basic understanding of HTML and CSS, and you can be up and running with Tailwind in no time.

To get started, you can either download the CSS file from the Tailwind CSS website and include it in your project, or you can use a package manager like npm to install Tailwind CSS as a dependency in your project.

Once you have Tailwind CSS installed, you can start using its classes in your HTML elements. For example, to apply a font size of "lg" (large), you can use the class "text-lg", like this:

```html
<p class="text-lg">Hello, world!</p>

```
You can then build upon this foundation by adding additional classes to control the spacing, color, and other aspects of your design.

## Conclusion

Tailwind CSS is a fast, scalable, and highly customizable style framework that has quickly become a popular choice for modern web development. With its utility-first approach, you can quickly prototype and iterate on designs, saving time and effort compared to writing custom styles from scratch. Whether you're a seasoned web developer or just getting started, Tailwind CSS is definitely worth considering for your next project.
How to fix MySQL Syntax Error: Unexpected Identifier
Tags: database, webdev, mysql
Published: 2023-02-02 09:53:40

MySQL is one of the most recommended tools for managing and organizing data in a database. In this article, I outline steps to help fix the error `Syntax Error: Unexpected Identifier` when connecting to the MySQL shell server

## Why the error?

This error mostly occurs when using the MySQL shell in `JS` mode, preventing users from directly running queries after launching the MySQL shell.

### Fixing the Syntax Error

To fix the error, you have to switch the shell to `SQL` mode and connect to the server.

### Step 1:

Switch the MySQL shell from `JS` to `SQL` mode using the command below;

```javascript
\sql
```


![sql](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ywr74loighlx1rmt12au.png)

### Step 2

Connect to the server using the MySQL user and hostname specified during the installation process. Use the command below

```javascript
\connect root@localhost
```

* `root` represent the user, while `localhost` represents the hostname
    

See the screenshot below


![sql](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/18pr054fb4jayf9vodby.png)

Congrats, you have resolved the error and can proceed to create a database.

Lastly, if you want to create a database, the command to use is as below

```javascript
create database databaseName;
```

## Summary

In this article, we learned how to fix the `Unexpected Identifier` error when using `MySQL shell`.
Top 10 Gaming Headphones
Tags: ganimg, gaming
Published: 2023-02-02 09:50:44

Gaming has become an immersive experience, with more and more players seeking to get the most out of their gameplay. One way to enhance the experience is through the use of gaming headphones. With the right headphones, you can immerse yourself in the game, hear every sound, and improve your performance. Here are the top 10 gaming
headphones of the moment:
 
1. SteelSeries Arctis Pro Wireless 
This headset offers high-fidelity audio and a comfortable design for long gaming sessions.
[Details Here](https://amzn.to/3Dz1NG6)
 
2. HyperX Cloud II 
This headset provides excellent audio quality and comfort, making it a popular choice among gamers.
[Details Here](https://amzn.to/3RshOTZ)
 
3. Astro A50 Wireless 
This headset offers immersive surround sound and a comfortable design, making it an excellent choice for players who value audio quality and comfort.
[Details Here](https://amzn.to/40phARi)
 
4. Logitech G Pro X Wireless 
This headset delivers
clear and accurate audio, making it a great choice for competitive gaming.
[Details Here](https://amzn.to/3Yf2zQ9)
 
5. Razer Kraken Tournament Edition 
This headset offers immersive surround sound and a comfortable design, making it an excellent choice for players who value audio quality and comfort.
[Details Here](https://amzn.to/3HmhnWu)
 
6. Bose Quiet Comfort 35 II 
This headset offers superior noise-canceling technology and audio quality, making it a great choice for players who want to block out distractions.
[Details Here](https://amzn.to/3XcxWKB)
 
7.     Plantronics RIG 800LX 
This headset provides excellent wireless audio and a comfortable design, making it a great choice for players who value mobility and comfort.
[Details Here](https://amzn.to/3X2pRrA)
 
8.    Sennheiser GSP 300 
This headset offers clear and accurate audio, making it a great choice for competitive gaming.
[Details Here](https://amzn.to/3XVhT4F)
 
9. JBL Quantum 800 
This headset offers
immersive surround sound and a comfortable design, making it an excellent
the choice for players who value audio quality and comfort.
[Details Here](https://amzn.to/3wMmD0T)
 
10.  Corsair Virtuoso RGB Wireless 
This headset offers high-fidelity audio and a stylish design, making it a popular choice among gamers who value audio quality and style.
[Details Here](https://amzn.to/3l6q4Nm)
 
No matter what type of
player you are, there's a gaming headset out there that will suit your needs.
Whether you're looking for high-fidelity audio, comfortable design, or
immersive surround sound, there's a headset that's perfect for you.
The ACE Multicloud Network Associate Practice Exam | How to ACE It on first attempt.
Tags: certification, exam, aviatrix, practice
Published: 2023-02-02 09:49:04

“Unlock the Secrets to Acing the Aviatrix Certified Engineer Exam with Practice Tests”

The world of multi-cloud computing is rapidly evolving, and the demand for certified engineers who can navigate the complex landscape is higher than ever before. If you are looking to establish yourself as a cloud expert and stand out in this competitive field, you need to be Aviatrix Certified Engineer.

But before you take the leap and schedule your exam, it’s important to be fully prepared and confident in your abilities. This is where the Aviatrix Certified Engineer Practice Exam Questions course comes in.

With this comprehensive course, you’ll have access to practice questions designed to mimic the format and content of the actual Aviatrix Certified Engineer exam. By working through these questions and analyzing the detailed explanations, you’ll get a better understanding of the core concepts and skills required to succeed on the test.

Why are practice exams so important?

Practice exams provide a low-pressure environment for you to assess your understanding of the material and identify any areas where you need to improve. They also help you build your confidence and reduce stress on the day of the actual exam.

Moreover, the practice exams give you an idea of what to expect on the day of the test, including the format, the types of questions you’ll face, and the level of difficulty. By familiarizing yourself with the format and content of the exam, you’ll be better equipped to tackle the challenges ahead and maximize your chances of success.

The Aviatrix Certified Engineer Practice Exam Questions course is designed for anyone looking to become an Aviatrix Certified Engineer, from entry-level engineers to experienced professionals. Whether you’re just starting your cloud computing journey or looking to upgrade your skills, this course provides a comprehensive, hands-on approach to learning.

In conclusion, the Aviatrix Certified Engineer Practice Exam Questions course is an essential tool for anyone looking to take the Aviatrix Certified Engineer exam. With hundreds of practice questions, detailed explanations, and a simulated exam environment, you’ll be fully prepared to ace the test and demonstrate your mastery of multi-cloud computing.

Take advantage of the skills gap. Start your journey to becoming an Aviatrix Certified Engineer today with the Aviatrix Certified Engineer Practice Exam Questions course!
[www.udemy.com](https://www.udemy.com/course/aviatrix-certified-engineer-practice-exam-questions/?referralCode=8FB2ED10CA3F8C23B70E)
The ContentAfterCheck Hook in Angular
Tags: angular, lifecycle, hooks, contentaftercheck
Published: 2023-02-02 09:48:31


![Angular ContentAfterCheck](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n85fqrnn0jfm1a05di2e.jpg)

The Angular framework offers various lifecycle methods during the process of loading and rendering components. One of these is the ContentAfterCheck lifecycle hook.

The ContentAfterCheck lifecycle hook is called **after the content of a component has been loaded** and its first render process has completed. Additionally, it can be called again during the process of updating the component’s content.

This lifecycle hook is perfect for executing logic that should take place once the content of the component has been loaded and rendered. Examples of such logic include measuring the size of a DOM element within the component or updating the UI based on the component’s content.

The ContentAfterCheck lifecycle hook can be defined in the **ComponentMetadata** class of a component. You can implement it by overriding the **ngAfterContentChecked() method**:

```typescript
import { Component, AfterContentChecked } from '@angular/core';
 
@Component({
  selector: 'app-test',
  templateUrl: './test.component.html',
  styleUrls: ['./test.component.css']
})
export class TestComponent implements AfterContentChecked {
  ngAfterContentChecked(): void {
    // logic to be executed when the component's content is updated
  }
}
```
Deploying an ASP.NET Core API to Linux (.NET 6 & Ubuntu 20.04)
Tags: ubuntu, dotnet, linux, api
Published: 2023-02-02 09:45:07

## _This guide assumes you already know how to develop at least a basic .NET-based API and you have an Ubuntu server in place to do the deploying stuff._

<br/>
**Right, let's jump right in!**

**Step 1:**
You gonna need to publish your app to a folder, using Visual Studio (or whatever IDE you're using) and navigate to the folder.
![Publishing to folder](https://user-images.githubusercontent.com/46853837/215998278-a5deccd2-85db-4a7a-b05f-474d2f1a9f33.png)

**Step 2:**
Create a folder in your Ubuntu server *(preferably under `/var/www/`)* and upload your published files to this folder using a tool of your choice.

**Step 3:**
_(Assuming you're already logged in via ssh, and you don't have .NET SDK installed yet)_ Install latest version the .NET SDK using the following commands:
```
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
```
```
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
```
You can also refer to [this stuff here](https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2004) for the latest and detailed guide on installing the SDK.

**Step 4:**
Navigate to your app folder using `cd /var/www/your-app-folder/` and run the following commands to update the file permissions:
`sudo chmod 755 *`
`sudo chown -R $USER:$USER *`

**Step 5:**
Next, create your app as a service:
`sudo nano /etc/systemd/system/yourappname.service`
In the newly created file, paste the following:
```bash
[Unit]
Description=Some fancy description here

[Service]
WorkingDirectory=/var/www/your-app-folder
ExecStart=/usr/bin/dotnet /var/www/your-app-folder/YourApp.dll
Restart=always

# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=yourappname
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
# If you need to run multiple services on different ports set the ports environment variable here (Format: {IP_ADDRESS:PORT} or www.yourdomain.com) 
Environment=ASPNETCORE_URLS=192.168.10.47:4041

[Install]
WantedBy=multi-user.target
```
Save and exit the editor and continue on the next step.

**Step 6:**
Restart the service daemon:
`sudo systemctl daemon-reload`
`sudo systemctl enable yourappname.service`
`sudo systemctl start yourappname`
`sudo systemctl status yourappname`

That's it!