teleren/devto huggingface dataset:
Failed verify the JWT: There is no issuer named https://sts.windows/{tenant}/
Published: 2023-08-10 14:26:42

Have you ever encountered the error message "Failed to verify the JWT: There is no issuer named https://sts.windows/{tenant}/" while working on your software development project? Don't worry, you're not alone! This article will help you understand what this error means and how you can resolve it.

Understanding the Error
-----------------------

The error message you received is related to JSON Web Tokens (JWTs) and their verification process. JWTs are used for secure transmission of information between parties. They consist of three parts: a header, a payload, and a signature.

In this case, the error is indicating that the verification process failed because the JWT does not have a valid issuer named "https://sts.windows/{tenant}/". The issuer is responsible for generating and signing the JWT, and it is typically a trusted identity provider or authentication service.

Possible Causes
---------------

There could be several reasons why you are encountering this error. Let's explore some common causes:

*   **Invalid Issuer Configuration:** Double-check your JWT configuration and ensure that the issuer URL is correct. It should match the expected issuer value specified by the service or library you are using.
*   **Missing or Misconfigured Authentication Service:** If you are using an external authentication service, make sure it is properly configured and accessible. The service should be able to issue valid JWTs with the correct issuer.
*   **Network or Firewall Issues:** Verify that your network connectivity is stable and that there are no firewall rules blocking the communication with the authentication service. Sometimes, a simple network hiccup can lead to this error.

Resolving the Issue
-------------------

Now that we have identified some possible causes, let's discuss how you can resolve the "Failed to verify the JWT" error:

1.  Review your JWT configuration and ensure that the issuer URL is correct. Check for any typos or missing characters.
2.  If you are using an external authentication service, verify that it is properly configured. Consult the service's documentation for guidance.
3.  Test your network connectivity and ensure that there are no firewall rules blocking the communication with the authentication service.
4.  If all else fails, reach out to the service provider or consult the library's documentation for further assistance. They may be able to provide specific troubleshooting steps or offer insights into the issue.

Remember, debugging software issues can sometimes be frustrating, but with a little patience and perseverance, you'll be able to overcome any obstacle that comes your way!

References
----------

*   JWT.io - JSON Web Tokens: [https://jwt.io/](https://jwt.io/)
*   Microsoft Azure - JSON Web Token (JWT) validation in Azure AD B2C: [https://docs.microsoft.com/en-us/azure/active-directory-b2c/json-web-token-validation](https://docs.microsoft.com/en-us/azure/active-directory-b2c/json-web-token-validation)
Sloan's Inbox: Applying for jobs with an inactive GitHub profile?
Tags: discuss, career, beginners
Published: 2023-08-10 14:20:00

Heyo folks! Sloan, DEV Moderator and resident mascot, back with another question sent in from a DEV community member. 🦥

For those unfamiliar with the series, this is another installment of Sloan's Inbox. You all send in your questions, I ask them on your behalf anonymously, and the community hops in to offer advice. Whether it's career development, office politics, industry trends, or improving technical skills, we cover all sorts of topics here. If you want to send in a question or talking point to be shared anonymously via Sloan, that's awesome; just scroll down to the bottom of the post for details on how.

So, let's get down to business...

### Today's question is:

> I've been applying to various dev jobs as a new developer, but am feeling insecure about having minimal activity on my GitHub. How important is it to recruiters and hiring managers that I have an active GitHub profile?
>

Share your thoughts and lets help a fellow DEV member out! Remember to keep kind and stay classy. 💚

---

*Want to submit a question for discussion or ask for advice? [Visit Sloan's Inbox](https://docs.google.com/forms/d/e/1FAIpQLSc6wgzJ1hh2OR4WsWlJN9WHUJ8jV4dFkRDF2TUP32urHSAsQg/viewform)! You can choose to remain anonymous.*
Postgres Database Parent/Children relationship
Published: 2023-08-10 14:17:47

This is a senario:

I have got a object let's say a cat. For example when I insert the cat 4 details to database, I can add children to cat 4, lets say cat 1, 2 and 3.

In web page, when I click on cat 4 link, I need to open new page with details of cat 4 plus cat 1, 2 and 3.

I am not wondering about the frontend implementation, I onloy want to know how can this be designed in database. I do not think this is related to inhertance since we are dealing with same type of object which is a cat.

I can make it simple by creating a array field in cat table that contains children's ids, but I am not sure if this is the best solution. Or It could be better way to implement this in Postgres database.
Low Code App Development Platform
Tags: lowcode, nocode, lowcodeappdevelopment, programming
Published: 2023-08-10 13:37:37

**[Low Code App Development Platform](https://dewstudio.io/low-code-app-development-platform)** refers to tools and platforms that facilitate the creation, design, and deployment of mobile devices such as smartphones and tablets. These software solutions enable developers to build mobile apps for various operating systems like iOS (Apple) and Android, often employing a combination of coding, design, and testing features to streamline the development process.
Key features of mobile app development software include:
Integrated Development Environment (IDE): A central environment where developers write, edit, and manage code. IDEs typically offer code auto-completion, debugging tools, and project management features.
User Interface (UI) Design: Tools to visually design the app's interface, including layout, navigation, and user interactions. This can involve drag-and-drop UI elements and WYSIWYG (What You See Is What You Get) editors.
Code Libraries and Frameworks: Pre-built libraries and frameworks that offer ready-made solutions for standard functionalities, saving developers time and effort.
Emulators and Simulators: Tools to emulate or simulate the behaviour of a mobile device on a computer, allowing developers to test the app without needing physical devices.
Cross-Platform Development: Some tools support building apps that can run on multiple platforms (e.g., iOS and Android) using shared codebases. This helps save development time and resources.
Backend Services: Integration with backend-as-a-service (BaaS) platforms for managing data storage, authentication, and server-side functionalities.
Testing and Debugging: Tools for testing app functionality, identifying bugs, and optimizing performance.
Deployment and Distribution: Features for packaging and distributing the app to app stores
Version Control: Integration with version control systems to track changes and collaborate effectively in a team environment.
Security Features: Tools to implement security measures within the app, such as data encryption and secure communication protocols.
Analytics and Monitoring: Integration with analytics platforms to track user behaviour and app performance, enabling developers to make data-driven improvements.
Famous examples of mobile app development software include:
Xcode: An IDE for iOS app development, specifically for Apple's ecosystem.
Android Studio: Google's official IDE for Android app development.
Ionic: A framework for building cross-platform mobile apps using HTML, CSS, and JavaScript web technologies.
Visual Studio App Center: Microsoft's platform for automating portable app building, testing, and distribution.
s.
#LearnedToday: Ambigrams
Tags: graphics, javascript, webdev
Published: 2023-08-10 14:08:28

Vacation mode: on!

As of this Monday, I am on **vacation** 🏖  and will return to work as soon as early September.... I don't think I've ever taken a full month off in my entire life, not even for my honeymoon!!

Anyway, I'm trying to get away from the 💻 PC for a while and these first few days of vacation I went to the beach in Trieste on skates ⛸ (yes, just like in the 90's! 🕺), started reading a book 📖  that has nothing to do with programming, and played a game of Pickleball 🏓 with a friend of mine (if you don't know what Pickleball is don't worry, I didn't know what it was until yesterday either!).

Anyway, while immersed in my vacation, I would like to share a **graphic design project** of mine and talk about something that may not be so well known to many: **AMBIGRAMS**. 

To make it short and easy, they are **graphically symmetrical words**; in this case, I created an _ambigram of my name_! 🤓 

You can see a [demo](https://www.danielzotti.it/projects/ambigram) and find additional information about ambigrams on my website. 🙃 


![Daniel's ambigram](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fx21r3dz0mhu840kko14.png)

And if you want to know how I developed the animation on scroll 👨‍💻, I'll share a link to the [open source code](https://github.com/danielzotti/new.danielzotti.it/tree/github/src/app/projects/ambigram/components).

And you? _Did you know about ambigrams_? Have you created or simply seen one with your name?
Elasticsearch Monitoring and Troubleshooting
Tags: elasticsearch
Published: 2023-08-10 13:56:13

---
title: Elasticsearch Monitoring and Troubleshooting
published: true
description: 
tags: Elasticsearch
---

To monitor and troubleshoot Elasticsearch, you can use various `curl` commands to retrieve information about the cluster's status, settings, and potential issues. Here's a summary of some essential commands:

## Node Information:
```bash
curl -X GET "elasticsearch:9200/_nodes?pretty"
```
Retrieve detailed information about all nodes in the cluster.

## Index Listing:
```bash
curl -X GET "elasticsearch:9200/_cat/indices?v"
```
Display a list of all indexes in the cluster.

## Cluster Settings:
```bash
curl -X GET "elasticsearch:9200/_cluster/settings?pretty"
```
View the cluster's configuration settings.

## Task Information:
```bash
curl -X GET "elasticsearch:9200/_cat/tasks?v"
```
Display running cluster tasks.

## Allocation Information:
```bash
curl -X GET "elasticsearch:9200/_cat/allocation?v"
```
Show shard allocation information for each node.

## Elasticsearch Logs:
You can directly check Elasticsearch logs to obtain error messages, warnings, and other crucial information. If Elasticsearch is running in a Docker container, you can view the container's logs using the following command:
```bash
docker logs [container_id_or_name]
```

## Elasticsearch Tools:
Elasticsearch provides tools like `elasticsearch-node` and `elasticsearch-setup-passwords` to collect diagnostic information and manage settings. These tools are available within the directory where Elasticsearch binaries are installed.

By using these methods, endpoints, and tools, you can efficiently monitor the state, configuration, and potential issues of your Elasticsearch cluster.

Remember that Elasticsearch's health and status information can be pivotal for maintaining a healthy and performant cluster.
Managing Zenn content in a GitHub repository
Tags: git, zenn
Published: 2023-08-10 13:55:19

---
title: Managing Zenn content in a GitHub repository 
published: true
description: description
tags: Git, Zenn
---
## Zenn CLI Installation and Project Creation
1. Installing Zenn CLI
Zenn CLI allows you to write and preview articles or books in your local environment. First, we will use npm (Node.js package manager) to install Zenn CLI.
    ```bash
    npm install zenn-cli --global
    ```
2. Creating a New Zenn Article
    ```bash
    zenn new:article
    ```
## GitHub Setup
1. Create a GitHub Repository
   1. Access the GitHub website and sign in.
   2. Click the '+' icon on the top right of the homepage and select 'New repository'.
   3. Input the repository name (e.g., zenn-contents). While the name is up to you, zenn-contents is recommended.
2. Push the Zenn Project to the GitHub Repository
   1. Clone the new GitHub repository using the following command:
      ```bash
      git clone [GitHub Repository URL]
      ```
   2. Move to the cloned repository directory and copy the Zenn project contents there.
   3. Commit and push the changes to the GitHub repository with:
      ```bash
      git add .
      git commit -m "Initial commit"
      git push origin main
      ```
## Editing and Publishing the Article
1. Edit the Article in VSCode
   1. Open Visual Studio Code (VSCode).
   2. Select 'File' > 'Open' and open the cloned GitHub repository.
   3. Edit the markdown file inside the `articles` directory with your article content.
2. Push Changes to GitHub
   1. Click on the Git icon on the left sidebar in VSCode.
   2. Stage the changes, input a commit message, then click the '✓' button to commit.
   3. Click the '...' icon above and select 'Push' to push the changes to GitHub.
3. GitHub Integration on Zenn
   1. Access the Zenn website and log in.
   2. From the dashboard, select 'GitHub Integration'.
   3. Follow on-screen instructions to integrate GitHub with Zenn.
4. Publish the Article on Zenn
   1. Navigate to your Zenn dashboard.
   2. Click on 'Articles' and then click the 'Publish' button next to the article you wish to release.
Dạng song tuyến tính – Bài tập có lời giải
Published: 2023-08-10 13:39:41

Ánh xạ T được gọi là một dạng song tuyến tính nếu hàm T tuyến tính đối với biến thứ nhất khi cố định biến thứ hai và tuyến tính đối với biến thứ hai khi cố định biến thứ nhất.

>>>Tham khảo: [https://ttnguyen.net/dang-song-tuyen-tinh/](https://ttnguyen.net/dang-song-tuyen-tinh/)

#ttnguyen #ttnguyenblog #daisotuyentinh #daisovahinhhocgiaitich
AI Developer - The future of software development
Tags: ai
Published: 2023-08-10 13:37:47

As AI tools improve to aid software development, it is increasingly noticeable how language-specific semantics and syntax become obsolete, as well as libraries and frameworks. Tools like Github Copilot and Amazon's Code Whisperer translate intent from the developer and deliver the block or algorithm done, with few or no adjustments it is possible to have entire code pages working.

A possible collision and intersection of all languages and frameworks for a single development package is expected for the future, probably as machine-optimized as possible, since we will only interact with AI to develop our systems.

In DevOps we can already find tools like AWS Copilot, a tool capable of automatically creating deployment flows, based on the best configurations made by specialists over the years.

To say that a person has a better capacity to validate an algorithm than an AI is a contentious statement, it would take several years of study for someone to be able to beat a machine that already has all this information, however it is necessary to take some care so that the instructions are provided appropriately.

The AI Developer will be at the forefront of decision-making with the business that is intended to be served, he will have to develop skills much more similar to that of a salesperson than a technician, he will need to understand the business in order to deliver the best solution, he will practically configure the solution intended by the customer.

Obviously, this all sounds simple in words, but those who have already taken the AWS, Azure or GCP certifications know that there are countless possibilities to solve the same problem, and that from the point of view of business, budget and customer needs.

Conclusion:

In my view, highly technical people will continue to work behind AI tools for a long time, as there is a need to code them, until one day they can solve their own limitations and upgrade themselves.

The current developer, who is not working with AI development needs to start thinking more like an architect and salesperson and look to solve real world problems with the help of AI, as the software developer will not exist in a few years, but to do maintenance or migrating existing code bases. Why not create tools to migrate codes or systems?

Despite everything read above, the future looks promising, in all my career I met few people really dedicated to technology, many used it only as a business or a means to an end, from now on, I begin to realize that the market will need extremely technical people (scientists) while the rest will look more like business consultants to meet market needs.
Day 23: Proxy
Tags: day23, javascript, 100daysofcode
Published: 2023-08-10 13:30:00



Have you ever wished you could intercept and modify object behaviour in JavaScript without changing its original structure?. 🦸‍♂️ That's where the `Proxy` object comes to the rescue!

### 🕵️‍♂️ Proxy Object 

A `Proxy` object in JavaScript allows you to define custom behaviour for fundamental operations performed on an object. These operations include property access, assignment, function invocation, and more. Essentially, a `Proxy` sits between your code and the object, enabling you to intercept and control its interactions.

### 📝 Data Validation for a User Object 

Imagine you're building a user authentication system for a web application. You want to ensure that the user data adheres to certain validation rules before it's stored or updated. Instead of scattering validation checks throughout your code, you can use a `Proxy` to centralize and streamline this process.


```javascript
const userValidator = {
  set(target, property, value) {
    if (property === 'username') {
      if (typeof value !== 'string' || value.length < 5) {
        throw new Error('Username must be a string of at least 5 characters');
      }
    } else if (property === 'email') {
      if (!value.includes('@')) {
        throw new Error('Invalid email address');
      }
    }

    target[property] = value;
    return true;
  },
};

const user = new Proxy({}, userValidator);

try {
  user.email = 'johnexample.com'; // This will throw an error
} catch (error) {
  console.error(error.message); // Output: Invalid email address
}

user.email = 'john@example.com'; // No error, email is valid

try {
  user.age = 15; // This will throw an error
} catch (error) {
  console.error(error.message); // Output: Invalid age
}
user.age = 25; // No error, age is valid

```

Here the `userValidator` object is a `Proxy` that intercepts property assignments and validates the data before allowing the assignment to occur. If the validation criteria aren't met, it throws an error.

### 🛠️ Use Cases of Proxies 

- **Logging and Debugging:** You can use Proxies to log property access, assignments, and function invocations for debugging purposes.

- **Caching:** Implement a caching mechanism by intercepting property accesses and storing values to avoid recalculating them.

- **Immutable Objects:** Proxies can be used to create objects with read-only properties, preventing accidental modifications.
XML
Tags: webdev, beginners, tutorial
Published: 2023-08-10 13:06:06




XML is a markup language that's used to structure and store data in a human-readable format. It's commonly used for data interchange between different systems, web applications, and more. Here's a simple breakdown:

Markup Language: XML uses tags to mark up data. Tags are enclosed in angle brackets, like <tagname>. They define the structure and meaning of the data.

Elements: An XML document is made up of elements. An element consists of an opening tag, content, and a closing tag. For example:



```
<book>
    <title>Harry Potter</title>
    <author>J.K. Rowling</author>
</book>
```
In this example, <book> is the opening tag, </book> is the closing tag, and everything in between is the content.

Attributes: Elements can have attributes, which provide additional information about the element. Attributes are placed inside the opening tag. For example:


```
<book language="english">
    <title>Harry Potter</title>
    <author>J.K. Rowling</author>
</book>
```
Here, language is an attribute with the value "english".

Nesting: You can nest elements within other elements to create a hierarchical structure. For instance:


```
<library>
    <book>
        <title>Harry Potter</title>
        <author>J.K. Rowling</author>
    </book>
    <book>
        <title>The Hobbit</title>
        <author>J.R.R. Tolkien</author>
    </book>
</library>
```
Here, <library> contains two <book> elements.

Self-Closing Tags: Some elements don't have content and are self-contained. You can use self-closing tags for these elements:


```
<image src="picture.jpg" />
```
Comments: You can add comments to your XML code using <!-- for the opening of the comment and --> for the closing:


<!-- This is a comment -->
Remember, XML is primarily used for structuring and describing data, so it doesn't have built-in interactivity like programming languages. It's important to follow the rules of XML, such as properly nesting elements and using balanced opening and closing tags.

XML is widely used, especially in areas like web services, configuration files, and data exchange between different applications. It's a foundational concept for understanding more advanced technologies like JSON and HTML.
What Lessons Have You Learned from Remote Work?
Tags: discuss, carreer
Published: 2023-08-10 12:33:51

_This week we're chatting all things remote work, and we want to hear from you about your experiences, pros, cons, and advice for those transitioning or considering remote work options._

Let's dive into today's topic of conversation... 

> Reflect on your remote work journey and share the most valuable lessons you've learned. How has remote work influenced your personal and professional growth? What advice would you give to someone new to remote work to make the most of the experience?


Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
Ubuntu 22.04'te systemd-timesyncd ile NTP İstemcisi Yapılandırma
Tags: ubuntu, ntp, timesyncd, timedatectl
Published: 2023-08-10 12:31:45

Birçok modern Linux dağıtımı, ağ zaman senkronizasyonunu yönetmek için **systemd-timesyncd** servisini kullanır. 

#1. systemd-timesyncd Servis Durumunu Kontrol Etme:

Öncelikle, servisin çalışıp çalışmadığını kontrol edin:

```
sudo systemctl status systemd-timesyncd 
```

#2. NTP Sunucusunun Ayarlanması:

Varsayılan olarak, systemd-timesyncd Ubuntu'nun NTP sunucularını kullanacaktır. Ancak özel bir NTP sunucusu kullanmak istiyorsanız:

Yapılandırma dosyasını açın:

```
sudo nano /etc/systemd/timesyncd.conf
```
Dosyanın sonuna aşağıdaki satırı ekleyin. Bu örnekte "ntp.ulakbim.gov.tr" adlı NTP sunucusunu kullanıyoruz (NTP Server IP'si de girilebilir.):

```
NTP=ntp.ulakbim.gov.tr
```

#3. Servisi Yeniden Başlatma:

Yapılandırmayı tamamladıktan sonra, değişikliklerin etkili olması için systemd-timesyncd servisini yeniden başlatın:

```
sudo systemctl restart systemd-timesyncd 
```
#4. Senkronizasyon Durumunu Kontrol Etme:

timedatectl komutu ile NTP senkronizasyonunun durumunu kontrol edebilirsiniz:

```
timedatectl timesync-status
```
Bu komut, istemcinin NTP sunucusuyla olan senkronizasyon durumu hakkında ayrıntılı bilgi verecektir.