teleren/devto huggingface dataset:
PM2 Add NodeJs Project In Process List
Published: 2024-06-14 13:44:10

During the NodeJs project deployment we use the [PM2](https://pm2.keymetrics.io/docs/usage/application-declaration/) as process manager.

PM2 monitor the application and restart it automatically while if app is crashing.

First install PM2 package

`$ npm install pm2@latest -g
# or
$ yarn global add pm2`

When managing multiple applications with PM2, use a JS configuration file to organize them.

To generate a sample configuration file you can type this command:

`pm2 init simple`

This will generate a sample ecosystem.config.js:

`module.exports = {
  apps : [{
    name   : "app1",
    script : "./app.js"
  }]
}`


Now the command to add NodeJs project in pm2 list with npm script are following way

`pm2 start npm --name "{project_name}" -- run {script_name}`

For Example ,let's i have a project with name HelloWorld and script to run the project are npm run dev the following command will be.

`pm2 start npm --name "rStoreFront Backend" -- run dev`

Here are some references for deploy nodejs project

[How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04)

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04

[How To Set Up a Node.js Application for Production on Ubuntu 20.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04)
Oluyemi Akinyinka Awarded Doctor Of Management (Honoris Causa) By AUBSS And QAHE
Tags: education, aubss, news, qahe
Published: 2024-06-14 13:31:58


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

Oluyemi Akinyinka, an esteemed Information Technology Project Manager, has been honored with the prestigious title of Doctor of Management (Honoris Causa) by the American University of Business and Social Sciences (AUBSS) and the International Association for Quality Assurance in Pre-Tertiary & Higher Education (QAHE).

 

With over two decades of experience in the field, Mr. Akinyinka has made significant contributions to the IT industry through his expertise in planning, developing, and implementing cutting-edge Information Technology solutions and infrastructure. His exceptional leadership skills have enabled him to lead cross-functional teams and drive corporate growth.

 

The honorary degree recognizes Mr. Akinyinka’s outstanding achievements and his remarkable impact as a project manager. Throughout his career, he has displayed strategic thinking, innovation, and creativity in managing IT projects. His ability to take calculated risks, manage crises, and deliver results within budget constraints has set him apart as a seasoned professional in the industry.

 

In addition to his accomplishments, Mr. Akinyinka holds a Higher National Diploma in Computer Science from Yaba College of Technology, Lagos, and a Master of Science (M.Sc.) in Computer & Information Systems from Lead City University, Ibadan. He has pursued extensive professional training and holds certifications in Project Management, Oracle, Cisco, and Electronic Records Management.

 

The award ceremony, attended by distinguished industry leaders, academics, and professionals, highlighted Mr. Akinyinka’s exceptional contributions to the field of Information Technology. The Doctor of Management (Honoris Causa) title serves as a testament to his dedication, expertise, and commitment to excellence.

 

As a highly respected figure in the IT industry, Mr. Akinyinka’s accomplishments inspire aspiring professionals and project managers. His success underscores the significance of strategic thinking, innovation, and effective leadership in the dynamic world of Information Technology.
New Member In Computer Science
Tags: newbie, learning, help, codenewbie
Published: 2024-06-14 13:23:08

HI! I'M A NEW MEMBER OF THE COMPUTER SCIENCE COMMUNITY.
I WANT TO ASK THE PROFESSIONALS, HOW DO I START MY JOURNEY TO BE A PROGRAMMER AND A GAME DEVELOPER.
I HAVE NO EXPERIENCE BUT I HAVE DO SOME KNOWLEDGE IN THE CODING INDUSTRY.
CAN SOMEONE GUIDE ME TO BE A GOOD PROGRAMMER.
Finding a Reliable Ride: Your Guide to Taxi Services Near You
Tags: travel, taxi, uk, london
Published: 2024-06-14 13:21:29

In a busy world, hailing a taxi can be a lifesaver. Whether you're running late for an appointment or simply don't feel like dealing with traffic, a taxi service offers a convenient and comfortable way to get around. But with so many options available, how do you find the right taxi service near you?

## Researching Taxi Services Near You

Here are a few steps to take to ensure a smooth and reliable ride:

**Explore Online Options:** The internet is a great resource for finding taxi services near you.  Search for "[taxi service near me](https://clocktowercarsuk.com/)" and a variety of options will populate.  Many taxi companies have websites with details on fares, car types, and service areas.
**Read Reviews:** Before choosing a taxi service, take some time to read reviews from past customers. This can give you valuable insights into the company's reliability, driver professionalism, and overall customer service.
**Consider Ride-Sharing Apps:** Ride-sharing apps like Uber and Lyft have become popular alternatives to traditional taxi services. These apps allow you to request a ride with a few taps on your phone and often offer competitive fares.

## Factors to Consider When Choosing a Taxi Service

Once you've narrowed down your options, consider the following factors when making your final decision:

**Price:** Compare fares from different taxi services to find the most affordable option for your needs.
**Availability:** Think about when you'll need a taxi and choose a service with a reputation for prompt response times, especially if you're booking a ride in advance.
**Vehicle Type:** Some taxi services offer a variety of vehicle types, from sedans to vans. Choose the size that best suits your needs and the number of passengers in your party.
**Payment Methods:** Make sure the taxi service accepts your preferred payment method, whether it's cash, credit card, or a mobile payment app.

## Safety Tips for Taking a Taxi

When riding in a taxi, prioritize your safety:

**Confirm the Fare:** Before getting in the taxi, confirm the estimated fare with the driver.
**Trust Your Instincts:** If you feel uncomfortable with a driver or their route, politely ask them to pull over in a safe, well-lit location and hail another taxi.
**Share Your Ride Details:** Let someone you trust know where you're going and the expected arrival time, especially if you're traveling late at night.

By following these tips, you can find a reliable and safe taxi service near you that meets your needs and budget. So next time you need a ride, don't hesitate to search for "taxi service near me" and get on your way!
Integrating React QuillJs with React Hook Form
Tags: react, quilljs, typescript, reacthookform
Published: 2024-06-14 13:10:29

**Quilljs** is a free, open-source library that lets developers easily add rich text editing capabilities to their web applications. It provides a familiar WYSIWYG (What You See Is What You Get) editing experience, similar to popular word processors, allowing users to format text, add images, and create interactive content.  It's also known for being customizable, so developers can tailor it to their specific needs.

While **React Quill** was once a popular option for adding rich text editing to React applications, there are a couple reasons why it might not be the most relevant choice these days:

- **Out of Date:** React Quill hasn't had major updates in over two years. This raises concerns about compatibility with newer React versions and security risks.
- **Quill v2 Issues:** There's a new version of Quill (v2), but React Quill doesn't seem to work with it smoothly, potentially causing problems.
- **Outdated Techniques:** React Quill might use older methods for handling the web page structure (DOM manipulation) that aren't ideal for modern React development.

There's a new React library called **React Quilljs** that's actively maintained and integrates well with React projects.

I'll show you how to use React Quilljs with React Hook Form in a TypeScript project. While it might not be the ultimate solution, it works!

## Install dependencies

```bash
npm install react-quilljs quill
npm install -D @types/quill
npm install react-hook-form
```

For other configuration options, check out the [react-quilljs documentation](https://github.com/gtgalone/react-quilljs).

## Usage

First, create a file named `App.tsx` in the root directory. This file will be used to render the editor. Be caution when using this file like this, because it will not work without the `Layout.tsx` component (see the project on GitHub)

{% gist https://gist.github.com/arnaudfl/bc7980564780ff3f36153e761768beb8 %}

Then, create a file named `Editor.tsx` in the `components` directory. This file will be used to render the editor.

{% gist https://gist.github.com/arnaudfl/07fdbc9311a4746cbd7466840de96ed4 %}

## Conclusion

You can view results on [CodeSandbox](https://codesandbox.io/p/sandbox/react-hook-form-quilljs-d5lx6f)

![codesandbox](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upn48d4fy0olsgkpukvt.PNG)

The project is hosted on [GitHub](https://github.com/arnaudfl/react-hook-form-quilljs)

## Thank you

Life's too short for boring endings.
How I Replaced Gaming with Coding
Tags: webdev, beginners, coding, story
Published: 2024-06-14 13:08:32

Are you a gamer looking to transition into coding? In this video, I share my personal journey of how I replaced gaming with coding and became a web developer.

💬 Comment below with your own experiences or questions about transitioning from gaming to coding.

 Follow me for daily updates and coding tips:
- [https://proflead.dev/](https://proflead.dev/)  
- [https://github.com/proflead/](https://github.com/proflead/)
- [https://t.me/profleaddev](https://t.me/profleaddev)
One Byte Explainer: What is a quine?
Tags: devchallenge, cschallenge, computerscience, beginners
Published: 2024-06-14 13:08:29

*This is a submission for [DEV Computer Science Challenge v24.06.12: One Byte Explainer](https://dev.to/challenges/cs).*

## Explainer

The answer is "The answer is".
Also called a _self-replicating program_, a quine is a computer program that outputs its own source code. The sentence above tries to mimic one. Its practicality can be arguable, but it's an amusing metaprogramming concept.

## Additional Context

Here is an example in JavaScript, adapted from Dylan Beattie's beautiful talk [_The Art of Code_](https://www.youtube.com/watch?v=6avJHaC3C2U&t=1802s):

```js
(f = () => console.log(`(f = ${f})()`))()
```

When you run it, the output is:

```
(f = () => console.log(`(f = ${f})()`))()
```


_Cover image by [ANIRUDH](https://unsplash.com/@lanirudhreddy?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash) on [Unsplash](https://unsplash.com/photos/a-close-up-of-a-double-strand-of-gold-glitter-YQYacLW8o2U?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash)._
pip Trends newsletter | 15-Jun-2024
Tags: python, programming, news, beginners
Published: 2024-06-14 13:06:50

This week's pip Trends newsletter is out. Interesting stuff by John Franey, Nimrita Koul, Mike Driscoll, Kris Jenkins, Ian Eyre, Trey Hunner & Tech Talks Weekly are covered this week

{% embed https://newsletter.piptrends.com/p/offline-speech-to-text-logging-with %}
Moodcare: India’s Premier Intimate Wellness Online Store
Tags: webdev, moodcare, intimate, productivity
Published: 2024-06-14 12:58:37

At Moodcare, we recognize the critical importance of a fulfilling intimate life. This understanding drives us to offer products that are not only effective but also safe and backed by extensive research. We believe that intimate wellness should be accessible to everyone, which is why we offer a wide range of products designed to cater to various needs and preferences. Our product line includes natural supplements, performance enhancers, and specialized kits designed to improve sexual health and well-being comprehensively. Whether you’re seeking solutions for erectile dysfunction, low libido, or overall intimate wellness, **[Moodcare](https://moodcare.in/)** has the right product for you.

**Diverse Range of High-Quality Products**
**[Erectile Dysfunction Solution Kit](https://moodcare.in/products/erectile-dysfunction-solution-kit)**
One of our flagship products, the Erectile Dysfunction Solution Kit, features a blend of potent Ayurvedic herbs renowned for their efficacy in addressing erectile dysfunction and boosting sexual performance. Ingredients like Ashwagandha, Shatavari, and Gokshura are included for their well-documented abilities to improve blood circulation, increase testosterone levels, and enhance overall vitality. These effects can indirectly support male enhancement by improving the quality of erections and overall sexual health.
Object Oriented Programming
Tags: devchallenge, cschallenge, computerscience, beginners
Published: 2024-06-14 12:56:33

*This is a submission for [DEV Computer Science Challenge v24.06.12: One Byte Explainer](https://dev.to/challenges/cs).*

## Explainer

Class based OOP is a paradigm that uses classes as templates for reusable code modules (objects). Objects can have their own private data and functions. Inheriting child classes is the way to extend functionality while keeping the existing codebase stable.
Top Web Development Company in UK | Web Development Services in UK
Tags: softwaredevelopment, softwaredevelopmentservices, softwaredevelopmentcompany
Published: 2024-06-14 12:55:39

Sapphire Software Solutions is **[Top Web Development Company in UK](https://www.sapphiresolutions.net/top-web-development-company-in-uk)**. Our web developers are skilled at building websites, software and custom-built mobile apps that guarantee a seamless user experience through our best web development services in UK.
Join our discord builder's server
Tags: community, ai, buildinpublic, programming
Published: 2024-06-14 12:45:14

### hey there folks, we're Tonic-AI

We started off as an accidental community , but we're growing and supporting eachother, "building in public" and basically learning and ton and publishing a ton of demos and stuff.

- sounds good ?

** join us! **

[discord](https://discord.gg/ZbXm7YHsA7)
Video: LLMs from the trenches
Tags: machinelearning, opensource, llm, ai
Published: 2024-06-16 08:01:01

---
title: Video: LLMs from the trenches
published: true
date: 2024-06-14 12:44:59 UTC
tags: machinelearning,opensource,llm,ai
canonical_url: https://julsimon.medium.com/video-llms-from-the-trenches-c31ee6f1bf12
---

In the last year, I have met about 250 customers, most of them in person, and I have learned a few things about LLMs, data, and risk management in the enterprise world.

Yesterday, my AWS buddies [**Giuseppe Battista**](https://www.linkedin.com/feed/#) and [**Nicolas DAVID**](https://www.linkedin.com/feed/#) allowed me to discuss these topics and more, and I extracted the best parts into five short videos.

![](https://cdn-images-1.medium.com/max/1024/1*3ijrBsVg2l0fx9erE4KCKA.png)

There is no theory here, just real-life learnings from the enterprise LLM trenches 😀

#### “First and foremost, it is a business discussion”

{% youtube OApcJvXrUEY %}

#### “Data is how you create a competitive advantage, not models”

{% youtube QCMORH10Hcw %}

#### “LLMs are not intelligent, there is no reasoning”

{% youtube b2owJZmfO6o %}

#### “Closed model builders have decided for you”

{% youtube 6VURGBrMGyE %}

#### Bias, risk management, cultural differences, and all that good stuff

{% youtube 62mQnIf0AhE %}

If you prefer, you can watch the full 1-hour episode on Twitch at [https://www.twitch.tv/videos/2170990579](https://www.twitch.tv/videos/2170990579)
(React App for Review Sentiment Analysis)
Tags: codepen
Published: 2024-06-14 12:44:20

Check out this Pen I made! A React application that dynamically highlights text in reviews based on sentiment analysis. Each highlight comes with a tooltip for additional context, making it easier to understand the sentiment and key topics in the reviews. Check it out! 🚀 #ReactJS #SentimentAnalysis #WebDevelopment #TechInnovation

{% codepen https://codepen.io/adjmcvgz-the-typescripter/pen/bGyYzMR %}
Best Clone Scripts from Appysa Technologies
Published: 2024-06-14 12:41:00

[Elearning Script](https://appysa.com/elearning-script/)
[Udemy Clone](https://appysa.com/udemy-clone/)
[LMS Clone](https://appysa.com/lms-clone/) 
[Lynda Clone](https://appysa.com/lynda-clone/) 
[Coursera Clone](https://appysa.com/coursera-clone/) 


[Rental Script](https://appysa.com/rental-script/)
[Airbnb Clone](https://appysa.com/airbnb-clone/)
[Vrbo Clone](https://appysa.com/vrbo-clone/)
[Turo Clone](https://appysa.com/turo-clone/) 

[Classified Script](https://appysa.com/classified-script/)
[Letgo Clone](https://appysa.com/letgo-clone/) 
[Olx Clone](https://appysa.com/olx-clone/) 

[Taxi Booking Script](https://appysa.com/taxi-booking-script/)
Nodemon is not for production!
Published: 2024-06-14 12:32:42

## What is Nodemon?

Nodemon is a utility that automatically restarts your Node.js application when file changes in the directory are detected. It is very useful during development because it allows developers to see the effects of their changes immediately without having to manually stop and restart the server.

## Why Not Use Nodemon in Production?
**Performance Overhead**: Nodemon constantly watches files for changes, which can consume additional system resources. In a production environment, minimizing resource usage is crucial for optimal performance.

**Unnecessary Restarts**: In production, the application code is not supposed to change frequently. Automatically restarting the server can lead to unnecessary downtime and disruptions.

 **Security Risks**: Allowing automatic restarts based on file changes can be risky. For example, if an unauthorized person gains access and makes changes to files, Nodemon will restart the application with those potentially malicious changes.

**Lack of Control**: Automated restarts can lead to unintended consequences, such as temporary service outages or state inconsistencies. In production, it is important to have controlled and predictable deployments.

    

## Best Practices for Production

**Use a Process Manager**: Tools like PM2 or Forever are better suited for production environments. They can handle process monitoring, restarts, load balancing, and other management tasks.

**Manual Deployments**: Adopt a deployment process that includes manual checks, testing, and controlled rollouts. Automation tools like CI/CD pipelines can help streamline this process.

**Monitoring and Alerts**: Implement robust monitoring and alerting systems to detect issues and trigger manual interventions when necessary.
Introduction to MongoDB Queries
Tags: mongodb, webdev
Published: 2024-06-14 12:30:20

MongoDB, a popular NoSQL database, provides a flexible and efficient way to manage data. Understanding basic MongoDB queries is crucial for interacting with your database effectively. This guide will walk you through the fundamental operations to get you started with querying MongoDB collections.

**What are Basic MongoDB Queries?**

Basic MongoDB queries involve simple operations that retrieve and manipulate data stored in MongoDB collections. These queries are executed using the find method, which allows you to search for documents that meet specific criteria. Let's explore some of the core MongoDB query operations.

**Retrieving Documents**

The find method is used to retrieve documents from a collection. It can accept a query object to filter the results and a projection object to specify which fields to return.

**Example:**

db.collection.find({ age: { $gte: 18 } }, { name: 1, age: 1 })
This query retrieves all documents from the collection where the age field is greater than or equal to 18, and returns only the name and age fields of those documents.

**Filtering Results**

MongoDB provides various operators to filter results based on specific conditions. Some common operators include:

$eq: Matches values equal to a specified value.

$ne: Matches values not equal to a specified value.

$gt: Matches values greater than a specified value.

$lt: Matches values less than a specified value.

**Example:**

db.products.find({ price: { $gt: 100, $lt: 500 } })
This query finds all documents in the products collection where the price is greater than 100 and less than 500.

**Sorting Results**

To sort the results of a query, use the sort method. This method takes an object where keys are field names and values indicate the sort order (1 for ascending, -1 for descending).

**Example:**

db.users.find().sort({ age: 1, name: -1 })
This query sorts the documents in the users collection first by age in ascending order and then by name in descending order.

Limiting and Skipping Results
You can limit the number of documents returned by a query using the limit method and skip a specified number of documents using the skip method.

**Example:**

db.orders.find().limit(10).skip(5)
This query retrieves 10 documents from the orders collection, skipping the first 5.

**Conclusion**

Mastering [basic MongoDB queries](https://cloudastra.co/blogs/introduction-to-basic-mongodb-queries) is essential for effectively managing and interacting with your MongoDB database. By understanding how to retrieve, filter, sort, limit, and skip documents, you can efficiently perform data operations and build more complex queries as needed. MongoDB's flexible query language makes it a powerful tool for any data-driven application.