teleren/devto huggingface dataset:
A Case Study in Pharmaceutical Manufacturing
Tags: webdev
Published: 2023-05-08 10:13:20





**Revolutionising Employee Training with Virtual Reality: A Case Study in Pharmaceutical Manufacturing**

Employee training is a critical aspect of ensuring product safety and efficacy in the pharmaceutical manufacturing industry. Standard Operating Procedures (SOPs) must be followed strictly to avoid contamination, errors, and harm to the end-users. Traditional classroom training methods can be time-consuming and expensive, and they may not always provide an engaging and realistic learning experience.

One innovative approach to employee training is the use of Virtual Reality (VR) technology. VR can provide a highly immersive and interactive learning experience that allows trainees to practise SOPs in a safe and controlled environment. This approach was adopted by a pharmaceutical capsule manufacturer, which partnered with XR Labs, a leading VR development studio, to create a VR training program for its employees.

The VR training program was designed to simulate the manufacturing process of the pharmaceutical capsules, from the initial stages of raw material handling to the final stages of product packaging. The program consisted of several modules, each focusing on a specific aspect of the manufacturing process, such as equipment operation, cleaning and maintenance, and documentation.
In each module, trainees were guided through the SOPs by a virtual instructor who provided detailed instructions and feedback. Trainees were also required to perform various tasks, such as operating machinery or documenting the process, to demonstrate their understanding of the SOPs. The VR environment provided a realistic and engaging experience that helped trainees to retain information better and apply it to real-life situations.

The results of the VR training program were impressive. Trainees showed a significant improvement in their understanding of the SOPs, as well as their ability to perform the tasks required by the SOPs accurately. The program also reduced the time required for traditional classroom training, allowing employees to spend more time on the production floor.

Moreover, the VR training program had several other benefits. It allowed the company to standardise the training process across different locations and reduce the risk of human error in training. It also provided a cost-effective solution, as it eliminated the need for expensive equipment or materials.

In conclusion, the [VR training program developed by XR Labs for the pharmaceutical capsule manufacturer](https://xrlabs.co/works/sop-vr-training-for-pharmaceutical-capsule-manufacturer/) was a resounding success. It demonstrated the potential of VR technology to revolutionise employee training in the pharmaceutical industry and beyond. As VR technology continues to evolve and become more accessible, we can expect to see more companies adopt this innovative approach to training and education.
Hello World!
Tags: buildinpublic, webdev, codenewbie, programming
Published: 2023-05-08 10:00:03

Greetings fellow developer! I'm Adam from Malaysia and I'm documenting my process of building full-stack projects for my portfolio. Please provide some feedbacks, it would be really helpful to me!

## My first project
I'm building a movie list full-stack project using NextJS. I firat got this idea while browsing MyAnimeList(yes I've quite a free time) and thought their app was really good! I'm thinking of building a web app with at least these unique functionalities:

- User can create custom lists and share them through social media like Instagram and Twitter. 
- Each movies and episodes on a series can be commented and replied by anyone
- User can view available streaming services where that movies or show is available on their region

I plan to add those features alongside basic movie list features, like rate a movie, ad to watch list, etc

## Planning
I create a [gantt chart using notion](https://www.notion.so/templates/gantt-chart)by using this template. The roadmap last for about 2 months including planning and testing. Here's my [finished plan](https://torpid-bottom-5ba.notion.site/Movie-List-9dcc32427d664a8cbf6040cba23d45bf) and my progress so far.
 
## Final thoughts
I hope this project come to live one day and benefit even one more person. This journey sure is a long one but I hope with the support of the tech community I can get there and hopefully others like me too! Let's help each other at least on a very small detail of their coding live!
Pulling Github Account Data From Remote Sources
Tags: github, json, webdev, api
Published: 2023-05-08 09:39:46




![Github Official Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4j5ccbsuibcq2lfbxsp.png)


You have created hundreds of repos on Github and then you want to access information about these repository. However, you do not have any information on how to access the summary of this information. There is a solution.

You can view all your information on a single JSON file by editing the link below according to your own address.


```html
https://api.github.com/users/<your username>/repos
```

------------------------

## EXAMPLE

Here is my personal repo: 

https://api.github.com/users/gokayburuc/repos

This link returns system records as JSON file

When you click this link you are going to see a file like this



![JSON Github Summary](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u91tpwfl6w7z77r4tht3.png)

![JSON Github Summary 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/irbiokaksacob5hpjfpj.png)

![JSON Github Summary 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i2tqqd33v6sc7l0tfnrr.png)


As you see above, you will get API URL's of your personal account. So you can use it anywhere on internet. Also this JSON gives of a summary of your account.
Day 1 of Coding Bootcamp
Published: 2023-05-08 09:39:09

Sooooo..... I've just started the pre-work for the Monash Coding Bootcamp. First task is to create a post on Dev about something we learned that looks cool. 

Something I found I thought was kinda cool was some of the Sketchers projects on CoDrops. There were some really neat infinite loop scrolling animations I enjoyed.

I also made this post by touch typing, which made it take a good 20 minutes haha, hopefully I get faster at it...
MY LIFE STORY
Published: 2023-05-08 09:37:34

"A life story is a series of human experiences "My name is BENOIT BIZIMANA This quote wants to express that if you want to know some thing related to somebody, you should better know through his or her experience when he or she decide to express it to you Be calm and attentive enough  because I am going to share to you my story of life.

First and for most as mentioned above My name is Benoit BIZIMANA I was born on 27th January 2001 from a family of seven elements  whose posses basic education of study my story is obviously sweet and bitter any ways being bitter makes me proud of it due to encourages me through hardworking with attitude for strong ambition of becoming a family and self dependent as to over hell 
this mindset of family back ground by taking a look to this quote said by BILL GATE said that "If you born poor it is not your mistake but if you die poor is your mistake" So this is the rea why mind set of possibility is rich of my success key thank you for your interest
Factory Design Pattern: #2
Published: 2023-05-08 09:37:14

```java
// Interface Product
public interface Product {
    void doSomething();
}

// ConcreteProductA implementation class
public class ConcreteProductA implements Product {
    @Override
    public void doSomething() {
        System.out.println("Doing something in ConcreteProductA");
    }
}

// ConcreteProductB implementation class
public class ConcreteProductB implements Product {
    @Override
    public void doSomething() {
        System.out.println("Doing something in ConcreteProductB");
    }
}

// Classe Factory
public class ProductFactory {
    public static Product createProduct(String type) {
        if (type.equalsIgnoreCase("A")) {
            return new ConcreteProductA();
        } else if (type.equalsIgnoreCase("B")) {
            return new ConcreteProductB();
        }
        throw new IllegalArgumentException("Invalid product type: " + type);
    }
}

public class Main {
    public static void main(String[] args) {
        Product productA = ProductFactory.createProduct("A");
        productA.doSomething();
        
        Product productB = ProductFactory.createProduct("B");
        productB.doSomething();
    }
}
```

In this example, we have a Factory pattern that allows us to create different types of products (Product) using a factory (ProductFactory).

The Product interface defines common behavior for all products. Next, we have the ConcreteProductA and ConcreteProductB classes that implement the Product interface with specific behaviors.

The ProductFactory class is the factory responsible for creating product instances. It has a static method createProduct() that receives a type parameter indicating the desired product type. Based on that type, the factory instantiates and returns an object of the correct type. In the example, we have the creation of ConcreteProductA for type "A" and ConcreteProductB for type "B".

Finally, in the main() method of the Main class, we demonstrate how to use the factory to create the desired products. We create a product A with ProductFactory.createProduct("A") and a product B with ProductFactory.createProduct("B"). Next, we call the doSomething() method on each product, which performs each product's specific behavior.

The Factory pattern is useful when you need to create objects of different related classes, but only know the required object type at runtime. The factory abstracts object creation, allowing you to work with the common interface (Product) instead of specific implementations. This makes the code more flexible and makes it easier to add new product types in the future.

<br />

_______________________[<< go to back](https://dev.to/israellopes/design-patterns-2n72)_____________________

[![Texto alternativo da imagem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ds4alkts3uxq0dsco0nv.png)](https://www.linkedin.com/in/israel-lopes-419a32189)
How I fixed Module '"@prisma/client"' has no exported member 'PrismaClient'.ts
Tags: react, prisma, programming, nextjs
Published: 2023-05-08 09:23:18

I switched to using `pnpm` over `npm` and `yarn` after discovering the benefits over the other package manager for developments.

So today i ran into the bug in the image, stating that **Module '"@prisma/client"' has no exported member 'PrismaClient'.ts**.


![Prisma import error in nextjs using pnpm](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ojkk917arz3izrmff450.png)

First, I thought this is an issue related to the prisma or @prisma/client package, until I browse through the web and discovered opened issues regarding this same error. it was coming from the pnpm package. 

This github issue thread really helped: [https://github.com/prisma/prisma/issues/13672](https://github.com/prisma/prisma/issues/13672).

## How I fixed?

I navigated to prisma.schema file and updated my generator client block of code to this:

```ts
generator client {
  provider = "prisma-client-js"
  output   = "../node_modules/.prisma/client"
}
```

After which, I ran the `npx prisma generate` command again, and 💥 Boom! Module import error got fixed! 🎉


Thanks for reading, and I am happy to help.

Remember to check out the [GITHUB THREAD](https://github.com/prisma/prisma/issues/13672).

Follow me on [Twiiter](https://twitter.com/mrpaulishaili) for more interesting updates!
Common fs module functions in Node js
Tags: webdev, javascript, programming, node
Published: 2023-05-08 08:50:38


The fs module in Node.js provides file system-related functionality, allowing you to interact with the file system on your computer. Here are some common functions provided by the fs module

`filehandle.appendFile(data[, options])` - This function is used to append data to an existing file. It takes two arguments: the data to be appended and an optional options object.

`filehandle.chmod(mode)` - This function is used to change the file mode of a file. It takes one argument: the new file mode.

`filehandle.chown(uid, gid)` - This function is used to change the owner and group of a file. It takes two arguments: the new owner user ID (uid) and the new group ID (gid).

`filehandle.close()` - This function is used to close a file.

`filehandle.createReadStream([options])` - This function is used to create a readable stream from a file. It takes an optional options object.

`filehandle.createWriteStream([options])` - This function is used to create a writable stream to a file. It takes an optional options object.

`filehandle.read(buffer, offset, length, position)` - This function is used to read data from a file into a buffer. It takes four arguments: the buffer to read into, the offset to start writing at, the number of bytes to read, and the position to start reading from.

`filehandle.readFile(options)` - This function is used to read the entire contents of a file. It takes an optional options object.

`filehandle.stat([options])` - This function is used to get the status of a file. It takes an optional options object.

`filehandle.write(buffer, offset[, length[, position]])` - This function is used to write data from a buffer to a file. It takes four arguments: the buffer to write from, the offset to start reading from, the number of bytes to write, and the position to start writing at.

`filehandle.writeFile(data, options)` - This function is used to write data to a file. It takes two arguments: the data to write and an optional options object.
Conferences about Rust Embedded
Tags: rust, embedded, devoxxfr, devfest
Published: 2023-05-08 08:32:55

---
title: Conferences about Rust Embedded
published: true
description: Links to recent conferences about Rust Embedded
tags: #rust #embedded #devoxxfr #devfest
# cover_image: https://github.com/rust-embedded/wg/raw/master/assets/logo/ewg-logo-blue-white-on-transparent.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-05-08 08:32 +0000
---

This article contains links to three conferences about Rust Embedded (two are in french). I attended the one at Devoxx France 2023 and it was great. 

## [Devoxx France 2023] Introduction à Rust embarqué - Sylvain WALLEZ

- [Direct link to the conference video](https://www.youtube.com/watch?v=w-HGwLAtJr8)
- [Slides of the conference](https://docs.google.com/presentation/d/e/2PACX-1vQJjc4setj6SflkhBC4Q6iN-av290WNFgKVmdT1MzguRBUEUiyqBXQTWT2pOMZuCLHh1RveDIOBAZ4B/pub)

{% embed https://www.youtube.com/embed/w-HGwLAtJr8 %}

{% embed https://github.com/swallez/intro-embdedded-rust %}


## [DevFest Nantes 2022] Oh crab ! My watch speaks Rust - Pierre-Yves AILLET 

- [Direct link to the conference video](https://www.youtube.com/watch?v=PNNHGmXcmHw)
- [Slides of the conference](https://pyaillet.github.io/twatch-rust/main/#/1)

{% embed https://www.youtube.com/embed/PNNHGmXcmHw %}

{% embed https://github.com/pyaillet/twatch-rust %}

## [Espressif DevCon22] Rust on Espressif chips - Scott MABIN

- [Direct link to the conference video](https://www.youtube.com/watch?v=8l29cTFS27w?t=12381)
- No slides available

{% embed https://www.youtube.com/embed/8l29cTFS27w?start=12381 %}

{% embed https://github.com/esp-rs %}
Repeatedly add all its digits until the result has only one digit.
Tags: javascript, programming, beginners, datastructures
Published: 2023-05-08 08:32:32

Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.

 

```
Example 1:

Input: num = 38
Output: 2
Explanation: The process is
38 --> 3 + 8 --> 11
11 --> 1 + 1 --> 2 
Since 2 has only one digit, return it.
Example 2:

Input: num = 0
Output: 0
```
 

Constraints:

```

0 <= num <= 231 - 1
```
 

Follow up: Could you do it without any loop/recursion in O(1) runtime?

### Solution
The digital root of a non-negative integer is the single digit value obtained by repeatedly summing the digits of the number until a single digit value is obtained. The digital root is also known as the repeated digital sum.

The mathematical formula to calculate the digital root of a number is:

digital_root(n) = 1 + (n - 1) % 9
```
/**
 * @param {number} num
 * @return {number}
 */
var addDigits = function(num) {
    if (num === 0) {
        return 0;
        } else {
            return 1 + (num - 1) % 9;
        }
   
};

```
When to Singularity, is it before 2060?
Tags: ai, chatgpt, autogpt, discuss
Published: 2023-05-08 08:32:08

It is evident that since the launch of ChatGPT, there has been a surge in the development of new AI systems, such as AutoGPT, Lalama variants, and many others. This trend has raised the question of when AI will reach the level of AGI, or Artificial General Intelligence.

Artificial Intelligence (AI) experts believe that singularity, which refers to machines capable of human-level thinking, could happen before the end of this century. The majority of participants in five surveys with around 1700 respondents expect AI singularity to occur before 2060. AI entrepreneurs are more optimistic than researchers, with estimates ranging from 2030 to 2050. Reaching AGI seems inevitable to most experts because human intelligence is fixed unless we merge our cognitive capabilities with machines, and machine intelligence depends on algorithms, processing power, and memory, which have been growing at an exponential rate.

The fear of singularity arises from the potential of a machine capable of continuously improving itself, reaching beyond human capabilities, and possibly becoming conscious. AI experts estimate that there is a 50% chance that high-level machine intelligence will occur until 2059. The estimates vary based on geography, with Asian respondents expecting AGI to occur in 30 years, whereas North Americans expect it to happen in 74 years. While these estimates seem reasonable, they could be over-optimistic as AI researchers have made similar predictions before, which did not come to pass.

In conclusion, while reaching AGI seems inevitable to most AI experts, the predictions on the timeline for this achievement vary widely. Most of these predictions range between 2030 and 2075, with the majority expecting it to occur before 2060. However, there is a significant difference of opinion based on geography, and AI entrepreneurs are more optimistic than researchers. Despite the historical experience of over-optimistic predictions by AI researchers, the rapid development of algorithms, processing power, and memory suggests that the timeline for AGI might be closer to the optimistic estimates.
Troubleshooting and Fixing WordPress Email Delivery Problems
Tags: wordpress, troubleshoot, emaildeliveryproblem, programming
Published: 2023-05-08 08:29:50

WordPress is a powerful platform that allows you to create and manage your own website, but sometimes things can go wrong, and one of the most common problems is email delivery. If you are experiencing issues with emails not being sent or received from your WordPress site, then this guide is for you. In this article, we will cover some of the most common email delivery problems in WordPress and how to troubleshoot and fix them.

**CHECK YOUR EMAIL SETTINGS**
The first thing you should do is check your email settings in WordPress. Go to your WordPress dashboard and navigate to Settings > General. Here you will see the “Email Address” and “Site Title” fields. Make sure that the email address is correct and matches the email address that you want to use to send emails from your WordPress site.

Next, scroll down to the “Membership” and “New User Default Role” sections. Make sure that the “Membership” and “New User Default Role” settings are set to the appropriate values.

Finally, scroll down to the “WordPress Address (URL)” and “Site Address (URL)” sections. Make sure that these values are correct and match the URL of your WordPress site.

**CHECK YOUR HOSTING PROVIDER’S EMAIL SETTINGS**
If your email settings in WordPress are correct, but you are still experiencing email delivery problems, then it could be an issue with your hosting provider’s email settings. Contact your hosting provider and ask them to check their email settings for your account.

**CHECK YOUR SPAM FOLDER**
Sometimes emails can end up in your spam folder, so make sure to check there if you are not receiving emails from your WordPress site.

**CHECK YOUR EMAIL SERVER SETTINGS**
If your email settings in WordPress and your hosting provider’s email settings are correct, then the issue could be with your email server settings. Check with your email service provider to make sure that your email server settings are correct.

**USE AN SMTP PLUGIN**
If you have tried all the above steps and are still experiencing email delivery problems, then you may want to try using an SMTP plugin. SMTP (Simple Mail Transfer Protocol) is a standard for sending emails over the internet, and using an SMTP plugin can help ensure that your emails are delivered.

Some popular SMTP plugins for WordPress include WP Mail SMTP and Easy WP SMTP. Once you have installed and activated an SMTP plugin, you will need to configure it with your email service provider’s SMTP settings.

In conclusion, email delivery problems can be frustrating, but they are usually easy to fix. By following the above steps, you should be able to troubleshoot and fix any email delivery problems that you are experiencing on your WordPress site. If you are still having problems after trying these steps, then it may be a good idea to contact your hosting provider or email service provider for further assistance.

https://user-meta.com/blog/troubleshooting-fixing-wordpress-email-delivery-problems/
Your Career Questions... and my Answers
Tags: career, beginners, job, bestofdev
Published: 2023-05-08 08:00:00

As a writer, I like answering real questions people have because I know for sure that at least one person is interested in what I may have to say.

In turn you may be interested by some of my recent career-related answers.

## 😇 What Makes Working in Tech Truly Rewarding?

{% embed  https://dev.to/jmfayard/comment/2614j %}

## 🔬 Specialization vs. Generalization: Which Is Better for Programmers?

{% embed  https://dev.to/jmfayard/comment/268og %}

## 💃🕺🏻 Is it easier to work alone than to work with others?

{% embed https://dev.to/jmfayard/comment/262l0 %}

## 👌🏻 How do I figure out what I am good at ?

{% embed  https://dev.to/jmfayard/comment/25lpl %}

## 💨 Describe programming in three words

Build, Measure & Learn

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

## 🦸🏻‍♂️ Coding Heroes: Who Inspires and Motivates You?

{% embed  https://dev.to/jmfayard/comment/26580 %}

## ❤️ How and why did you start contributing to Open Source?

{% embed  https://dev.to/jmfayard/comment/262ep %}

## 💯 What Is Your Greatest (Unique) Strength as a Developer?

{% embed https://dev.to/jmfayard/comment/25lbj %}

## 😛 Need a Good Laugh? Tell Us Your Favorite Coder Jokes.

{% embed  https://dev.to/jmfayard/comment/260bf %}

## 😤 I want to be $jobTitle but my company doesn't care. What can I do?

{% embed https://dev.to/jmfayard/comment/26cfn %}

## 🧐 Which Questions Should You Be Asking at your Technical Interview?

{% embed https://dev.to/jmfayard/comment/269a1 %}

## 😓 Sloan's Inbox: Surviving A Job Performance Plan: Is There Hope?

{% embed  https://dev.to/jmfayard/comment/26dji %}

## That's all for today

Hi, I’m [Jean-Michel Fayard.](https://jmfayard.dev/) 

Please send my article to a friend that needs it.

On my website, I have [Careers Resources for Developers](https://jmfayard.dev/dev-careers/), and if that's not enough, you can [ask me a question](https://forms.gle/oq2UVMMdiiGdRMTn8).