teleren/devto huggingface dataset:
Microservices tools
Tags: webdev, programming, softwareengineering, software
Published: 2023-07-06 07:00:00

There are various tools available that can assist in designing, developing, testing, deploying, and managing microservices-based applications. Here are some commonly used tools in the microservices ecosystem:

**Service Development and Frameworks:**
1. **Spring Boot**: A popular Java framework that simplifies the development of microservices with features like auto-configuration, embedded servers, and dependency management.
2. **Node.js**: A JavaScript runtime that is commonly used for developing lightweight and scalable microservices.
3. **Express**: A web application framework for Node.js that simplifies the development of APIs and microservices.
4. **Django**: A Python web framework that offers a solid foundation for building microservices in Python.
5. **ASP.NET Core**: A cross-platform framework for building microservices using C# and .NET.

**Service Communication and APIs:**
1. **RESTful APIs**: Representational State Transfer (REST) is a commonly used architectural style for building APIs that communicate between microservices.
2. **gRPC**: A high-performance, open-source framework developed by Google for building remote procedure call (RPC) APIs that can be used for inter-service communication.
3. **Apache Kafka**: A distributed streaming platform that can be used as a messaging system for asynchronous communication between microservices.

**Containerization and Orchestration:**
1. **Docker**: A platform that allows you to package microservices into containers, ensuring consistent deployment across different environments.
2. **Kubernetes**: An open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications, including microservices.

**Service Discovery and Load Balancing:**
1. **Consul**: A service discovery and configuration tool that helps locate and manage services dynamically.
2. **Netflix Eureka**: A service registry tool that enables service discovery and registration in a microservices environment.
3. **NGINX**: A popular web server and load balancer that can be used for distributing traffic across microservices.

**Monitoring and Observability:**
1. **Prometheus**: A monitoring and alerting toolkit that collects metrics from microservices and provides a powerful querying language for analysis.
2. **Grafana**: A data visualization tool that can be used with Prometheus to create dashboards and visualize metrics from microservices.

**API Gateway:**
1. **Netflix Zuul**: A gateway service that handles routing, load balancing, and authentication for requests made to microservices.
2. **Kong**: An open-source API gateway that can be used to manage and secure APIs in a microservices architecture.

These are just a few examples of tools available in the microservices ecosystem. The choice of tools depends on the specific requirements, programming languages, and technologies used in your microservices architecture.
NodeJs Sequelize - Update Enum column's default value
Tags: node, sequelize, postgres
Published: 2023-07-06 06:47:01

Intend to modify a Enum column's default value? we can modify it without losing the original data. Here's an use case when original enum value for size column is `small`, we're changing it to `big`.


```javascript
'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    // Create a new enum type, make sure its name isn't the same as current column's enum type
    await queryInterface.sequelize.query(`
      CREATE TYPE enum_new_size AS ENUM ('big', 'medium', 'small');
    `);

    // Add a new temp column with the enum type, setting the new default value as 'big'
    await queryInterface.addColumn('Shirts', 'sizeTemp', {
      type: 'enum_new_size',
      allowNull: false,
      defaultValue: 'big',
    });

    // Copy over the old data to new column and cast to Enum values
    await queryInterface.sequelize.query(`
      UPDATE "Shirts"
      SET "sizeTemp" = CASE
        WHEN "size" = 'small' THEN CAST('small' AS enum_new_size)
        WHEN "size" = 'medium' THEN CAST('medium' AS enum_new_size)
        WHEN "size" = 'big' THEN CAST('big' AS enum_new_size)
        ELSE CAST('big' AS enum_new_size)
      END;
    `);

    // Remove the old column
    await queryInterface.removeColumn('Shirts', 'size');

    // Rename the temporary column
    await queryInterface.renameColumn(
      'Shirts',
      'sizeTemp',
      'size',
    );
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add reverting commands here.
     */
    await queryInterface.removeColumn('Shirts', 'sizeTemp');
  },
};

```
A Beginner's Guide to HTML - Sanjay Pasari
Tags: html, beginners, softwareengineering
Published: 2023-07-06 05:55:18

**Hello, I'm Sanjay Pasari, just want to share some information for beginners on topic HTML.**

HTML (**HyperText Markup Language**) is the foundation of every web page you see on the internet. As a beginner, learning HTML is an essential step in becoming a web developer. In this blog, we will explore the basics of HTML and get you started on your journey to building your own web pages.

**Getting Started**

_HTML Document Structure_

Every HTML document follows a basic structure known as the HTML boilerplate. It consists of several elements, including the <!DOCTYPE>, <html>, <head>, and <body> tags. Here is an example:

```
<!DOCTYPE html>
<html>
<head>
    <title>My First Web Page</title>
</head>
<body>
    <h1>Welcome to My Website</h1>
    <p>This is my first web page!</p>
</body>
</html>
```

The <!DOCTYPE html> tag declares the document type as HTML5. The <html> tag wraps the entire HTML content, while the <head> tag contains meta information and the <body> tag includes the visible content of the web page.

_**HTML Elements and Tags**_

HTML is made up of various elements, each represented by an opening and closing tag. 
```
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<a href="https://www.example.com">Visit Example.com</a>
<img src="image.jpg" alt="Image Description">
```

**_HTML Attributes_**

HTML tags can have attributes that provide additional information about the element. Attributes are placed within the opening tag, and they consist of a name and a value. 

```
<a href="https://www.example.com">Visit Example.com</a>
<img src="image.jpg" alt="Image Description">
```

In the above code snippet, the URL and image file name are provided as attribute values.

_**Building a Web Page**_

Now that you have a basic understanding of HTML, let's build a simple web page. Here is an example of a web page structure:

```
<!DOCTYPE html>
<html>
<head>
    <title>My First Web Page</title>
</head>
<body>
    <header>
        <h1>Welcome to My Website</h1>
    </header>
    
    <nav>
        <ul>
            <li><a href="#">Home</a></li>
            <li><a href="#">About</a></li>
            <li><a href="#">Services</a></li>
            <li><a href="#">Contact</a></li>
        </ul>
    </nav>
    
    <section>
        <h2>About Me</h2>
        <p>I am a beginner web developer looking to learn more about HTML and CSS.</p>
    </section>
    
    <footer>
        <p>© 2021 My Website. All rights reserved.</p>
    </footer>
</body>
</html>
```

In this example, we have added a header, navigation bar, content section, and footer to create a more complete web page structure.

_**Conclusion**_

HTML is the building block of the web, and learning the basics is the first step towards becoming a web developer. In this blog, we covered the HTML boilerplate, essential HTML tags, attributes, and how to structure a basic web page. Now that you have a solid foundation, you can start exploring more advanced HTML concepts and continue to build upon your skills. Happy coding!
AniMachine: WIP 2D Animation Software for games
Tags: gamedev, java, tooling, community
Published: 2023-07-06 05:51:38

Hey DEV

Recently I've been working on an indie game project and decided to work on my own 2D animation tool called AniMachine. It's written in Java and has a basic skeleton system along with a full UI (that's also dockable!) and I'm currently wondering if I should open source it.

I also need to decide on some sort of file format for exporting them, perhaps something similar to how Spine2D does it? I don't know. Anyway, feel free to drop a comment with your thoughts below.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hn8cofll24uojj9lpx1v.png)
JS practice question
Tags: javascript, beginners, tutorial, programming
Published: 2023-07-06 05:46:14

I was going through some lectures of JS to get refresher. So just thought of posting my learning here

```
const favouritesMovies = {
  "Matrix": {
      imdbRating: 8.3,
      actors: ["Keanu Reeves", "Carrie-Anniee"],
      oscarNominations: 2,
      genre: ["sci-fi", "adventure"],
      totalEarnings: "$680M"
  },
  "FightClub": {
      imdbRating: 8.8,
      actors: ["Edward Norton", "Brad Pitt"],
      oscarNominations: 6,
      genre: ["thriller", "drama"],
      totalEarnings: "$350M"
  },
  "Inception": {
      imdbRating: 8.3,
      actors: ["Tom Hardy", "Leonardo Dicaprio"],
      oscarNominations: 12,
      genre: ["sci-fi", "adventure"],
      totalEarnings: "$870M"
  },
  "The Dark Knight": {
      imdbRating: 8.9,
      actors: ["Christian Bale", "Heath Ledger"],
      oscarNominations: 12,
      genre: ["thriller"],
      totalEarnings: "$744M"
  },
  "Pulp Fiction": {
      imdbRating: 8.3,
      actors: ["Sameul L. Jackson", "Bruce Willis"],
      oscarNominations: 7,
      genre: ["drama", "crime"],
      totalEarnings: "$455M"
  },
  "Titanic": {
      imdbRating: 8.3,
      actors: ["Leonardo Dicaprio", "Kate Winslet"],
      oscarNominations: 13,
      genre: ["drama"],
      totalEarnings: "$800M"
  }
}
```


Here we have a nested object.
Our objective is to Find all the movies with total earnings more than $500M.


Here is my solution:

```
const movieEarning = (favouritesMovies) =>{
  const moviesWithEarningMoreThan500 = [];

  for(const movie in favouritesMovies){
    // console.log(favouritesMovies[movie].totalEarnings.replace('$',''));
    if (parseInt(favouritesMovies[movie].totalEarnings.replace('$','')) > 500){
      // console.log(favouritesMovies[movie]);
      favouritesMovies[movie].name = movie
      moviesWithEarningMoreThan500.push(favouritesMovies[movie])
    }
  }
  // console.log(moviesWithEarningMoreThan500);
  return moviesWithEarningMoreThan500
}
```


As a beginner i like using logs whenever i get stuck. 

People reading this please leave mention other topics that are necessary for learning Js
Why BRSR Reporting is important to the business
Published: 2023-07-06 05:45:27

Prologues: 

In recent years awareness of sustainability is increasing.  Many entities are focused on developing enhanced ESG Reports.  Investors pay more attention before investing as well as using ESG Report to make decisions.  

In course time, more awareness will increase about sustainability.   Furthermore, in the last few years many entities have disclosed their sustainability reports.   ESG Report is developed using the BRSR Framework.  

BRR is First ESG disclosure framework in India subsequently BRSR is another and current ESG disclosure framework in india.  BRSR acronym is Business Responsibility and Sustainability Reporting. 


What are things are need to build BRSR Reporting:


Data collection:  

data collection is a vital part for making a BRSR Report.    Environmental, social and governance data,   organization financial data,  operational data.  Various data collected from various resources. This data helps to create Report. 

Data converted into meaningful insight: 

Using two way data converted into meaningful insight: 

With help of the industry experts data analyzed.  They Understand the business objectives and current actual data performance  at the same time measure the gap between  organization 

Sustainability goals  and current actual data performance.   Then after, details is submit to the organization. 
Another way using software convert data into meaningful insights 

Updapt ESG Reporting Software:

Using [ESG Reporting Software](https://www.updapt.com/solutions/esg-reporting) converts data into meaningful insights.  It helps you to measure your ESG performance using ESG data as well as provides information where the need improvement. Furthermore, provides detailed solution  ways to improve the ESG Performance. 

Align the insight with BRSR Framework:

Develop the framework and methodology using ESG data for reporting.  Ensure the framework is developed in the proper way using enough ESG data.

Enhance the report using various option: 

For better understanding using various images, videos, infographics. 
These are the details required to create the BRSR Report. 


Let discuss how BRSR Reporting Help business: 

Risk evaluation:

 Report provides to you detailed information such as where are there risks, where are there flaws, and where are there needs improvement.  All details can understand distinctly.  Therefore, using a report can understand and  identify the risk and bestows the solution to mitigate risk. 

Identify the opportunities: 

As I said before, ESG Report immensely helps organizations identify the opportunities., when they disclose their ESG    report to the public, it creates good will among the investors.   So, it helps more to get opportunities. 
 
In the nutshell: 

 BRSR Reporting developed under BRSR Framework. It provides detail information about organization ESG Performance depending on it to identify, improve and mitigate  the risk.
Here are Top 22 Tips to unlock CHATGPT full potential: 🧵
Tags: ai, chatgpt
Published: 2023-07-06 05:18:12

1. Tone: Specify the desired tone (e.g. formal, casual, informative, persuasive).

2. Format: Define the format or structure (e.g. essay, bullet points, outline, dialogue).

3. Act as: Indicate a role or perspective to adopt (e.g. expert, critic, enthusiast).

4. Objective: State the goal or purpose of the response (e.g. inform, persuade, entertain).

5. Context: Provide background information, data, or context for accurate content generation.

6. Scope: Define the scope or range of the topic.

7. Keywords: List important keywords or phrases to be included.

8. Limitations: Specify constraints, such as word or character count.

9. Examples: Provide examples of desired style, structure, or content.

10. Deadline: Mention deadlines or time frames for time-sensitive responses.

11. Audience: Specify the target audience for tailored content.

12. Language: Indicate the language for the response, it different from the prompt.

13. Citations: Request inclusion of citations or sources to support information.

14. Points of view: Ask the Al to consider multiple perspectives or opinions.

15. Counterarguments: Request addressing potential counterarguments.

16. Terminology: Specify industry-specific or technical terms to use or avoid.

17. Analogies: Ask the Al to use analogies or examples to clarify concepts. 

18. Quotes: Request inclusion of relevant quotes or statements from experts.

19. Statistics: Encourage the use of statistics or data to support claims.

20. Visual elements: Inquire about including charts, graphs, or images.
21. Call to action: Request a clear call to action or next steps. 

22. Sensitivity: Mention sensitive topics or issues to be handled with care or avoided.
Get a remote job using these AI tools:
Tags: ai
Published: 2023-07-06 05:07:43

1. Resume to jobs
https://hnresumetojobs.com

2. Take interview notes
http://metaview.ai

3. Mock interview with AI
https://interviewai.me

4. Apply automatically
http://applyish.com

5. Interview questions
https://interviewgpt.ai

6. Fix your resume
http://fixmyresume.xyz

7. Job search
http://matchthatroleai.com

8. Resume scan
http://accio.springworks.in
7 High Income AI Skills to Learn in 2023
Tags: ai
Published: 2023-07-06 05:00:58

1. Video

Learn this top video AI tools.

muse ai - All-in-one video platform for the future of the web.

visla ai - Visla: All-in-one Video Storytelling.

topaz ai - Topaz Video AI focuses solely on completing a few video enhancement tasks really well

2. Text

ChatGpt -  is, "an artificial intelligence trained to assist with a variety of tasks.

Notion Ai - Have Notion AI summarize what's important and actionable.

3. Image

midjourney -   A text-to-image AI where your imagination is the only limit.

magic studio - Magic Studio helps you automatically edit and create images, using AI.

pebbley - Beautiful product photos in seconds.

4. Design

viesus - Viesus™ is the leading fully automatic image enhancement software, used on tens of millions of images each day.

galileo - Idea to design in an instant, powered by AI

5. Coding

codegpt - The future of software development powered by AI.

bugasura - The Ultimate AI-Powered Bug Tracker.

replit ghostwriter - Meet Ghostwriter,
your partner in code.

6. Audio

fineshare - Create & Share Your Inspiring Videos Anywhere

boomy ai - Unleash your creativity
Make music with Boomy AI

playlist ai - The best app for making playlists on Spotify and Apple Music.

7. Productivity

briefly ai - BrieflyAI - AI meeting summaries, insights, and follow ups.

socra ai -socra: Crush Your Goals with AI

leexi ai - AI meetings. The conversational intelligence platform
Mengatasi Install Kali Linux Berhenti di Detect Network Hardware
Tags: kali, linux, network
Published: 2023-07-06 04:34:29

## Halo Dev...
Siapa ni yang mengalami masalah ketika proses penginstalan Kali Linux yang terjadi pada bagian Detect Network Hardware (Mendeteksi Perangkat Keras Jaringan). Tenang saja, saya juga pernah mengalami seperti itu, nah gimana cara mengatasinya. Kalian bisa mengikuti langkah-langkah di bawah ini:

- Jalankan text install (hanya Install biasa, bukan Graphical Install),
- Sebelum melakukan apapun, tekan `alt + f2`
- Jalankan perintah: `nano /bin/check-missing-firmware`
- Masukkan **exit 0** (tanpa tanda kutip) setelah _#! /bin/sh_
- Save filenya dengan tekan `ctrl + o` dan keluar tekan `ctrl + x` (perintah ada di bagian bawah layar, jika kalian tidak terbiasa dengan nano)
- Tekan `alt + f1` untuk kembali ke instalasi
- Selamat kalian Sekarang bisa melanjutkan instalasinya

Semoga berhasil...

Seharusnya ada beberapa cara yang lain untuk mengatasi masalah tersebut dengan menggunakan Kabel LAN yang terhubung dengan Wi-Fi kemudian di hubungkan ke dalam laptopnya. tapi bebetulan saya tidak memilikinya, maka dari itu saya searching dan akhirnya bisa mengatasi masalah tersebut dengan cara yang sudah diberikan tadi.

Referensi
[forums.Kali.org](https://forums.kali.org/showthread.php?493-Installing-Kali-Linux-from-USB-hangs-on-Detecting-Network)
My First HackerNoon Pub! 😊
Tags: webdev, writing, productivity, learning
Published: 2023-07-06 04:20:39

Hi everyone,

I just wanted to share this, my first HackerNoon publication. Apparently I’m learning that publishing on HackerNoon is kind of, to quote a certain politician, “a big effing deal!”(?) 😂 

Is that true? If anyone knows better than me, please enlighten me! 🤣

Link:
https://rb.gy/4i8rg
The easiest way to send emails with Resend
Tags: resend, emails
Published: 2023-07-06 17:15:43

---
title: The easiest way to send emails with Resend
published: true
date: 2023-07-06 00:00:00 UTC
tags: #resend #emails
canonical_url: https://timveletta.com/blog/the-easiest-way-to-send-emails-with-resend/
---

If you're looking for an easy way to send emails from your Node.js or Next.js applications, [Resend](https://resend.com) might be the answer. Resend is focused on the developer experience, making it easy for you to send emails. They are also the creators of [React Email](https://react.email/), an open-source library that simplifies creating formatted emails for sending.

To get started with Resend, sign up and verify the domain you want to send emails from. Domain verification is simple with Resend, thanks to their focus on reducing friction which you can [read about on their blog](https://resend.com/blog/new-domain-verification-experience). You can then add Resend to your project with:

```sh
npm install resend
```

After adding Resend, initialize it with:

```javascript
const resend = new Resend(process.env.RESEND_API_KEY);
```

The `RESEND_API_KEY` can be created on the "API Keys" page in Resend. You can now send emails with:

```javascript
const data = await resend.emails.send({
	from: 'contact@timveletta.com', // must verify the from domain
	to: 'timothy.veletta@gmail.com',
	subject: 'Resend is easy!',
	html: '<p>You should try it</p>',
});
```

If you're using Vercel Functions, add your API Key to the Environment Variables on Vercel, deploy your app, and hit your API endpoint. You can also check the "Emails" page in Resend to see what emails it has sent.

![Resend email page.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l0hc2fifz4r5v4syhu7r.png)

I'm currently using Resend to notify me of people using the contact form on this website but I'm planning to use it and React Email on some other projects. You can view [my contact form function on Github](https://github.com/timveletta/timveletta-com/blob/main/api/contact.js).