teleren/devto huggingface dataset:
Outreachy Intern with MboaLab [22-23]
Tags: outreachy, softwarefreedomconservancy, opensource, mboalab
Published: 2022-12-08 11:17:34



This is **Ruqaiya** from **Karachi**, **Pakistan**. The _Philocalist_, who is _optimistic_, a **book-reader**, and enjoys watching the _sunset_ every day (an opacarophile).

I have been selected as an intern for **December 2022 to March 2023** **Outreachy** internship round. I am interning with **Mboalab** on the project "**_improve a digital stethoscope android app_**". MboaLab is an _open and collaborative space _located in Yaoundé, Cameroon. The aim of MboaLab is to catalyze sustainable local development and improve people’s living conditions through open science. My mentor(s) are jafsia elisee and Stephane Fadanka.

Academically, I am a **Software Engineer**. Professionally, I have experience in working in Developing Android applications, a **Mobile App Developer**. My Skills are: Dart, Flutter, Java, Kotlin, HTML, CSS, Git, GitHub, Android, Firebase, SQlite and Local DB. 

My core values are **Learning, Meaningful Work, and Wealth**.
I value Learning, I always believed that Humans are capable of learning anything that interests them. I wanted to understand how things work, learn the pattern and improve them by contributing. That's why I value meaningful work, I want to contribute to meaningful work, and that's how I want to serve people by adding value to their life so that I feel deeply happy to contribute to mankind's ease. I want to be part of the universe to make the earth a better place for humans.

I also value wealth. To me, wealth is about having a **mindset, finance-set, health-set, soul-set and heart-set**. Being financially independent emits ripples of _positive vibes_ from you that reach other people and create a kind connection between humans. I like a saying read somewhere  

> Money is the currency that must flow like electricity. Hoarding it stops the flow of it into your business and private life. So GIVE more to Receive more.

Lets talk about how I get to know Outreachy?. I saw on social networt some past interns talking about open-source, so it makes me Curious what is it, and how it works, how people with diverse cultures and remote locations manage to connect with each other without judging. And is the work they do within Outreachy meaningful to Contribute? That's how I reach the **Outreachy** website, read all the data from their website then talked with a few past interns and applied.
Do i need to use cleanup function on useEffect?
Tags: react, webdev, beginners, javascript
Published: 2022-12-08 11:13:58



Whether or not you need to include a cleanup function in your useEffect hook **depends on the type of side effect you are performing**.

If your effect does not create any resources or side effects that need to be cleaned up, then you do not need to include a cleanup function.

**_For example, if your useEffect hook simply sets up an event listener or fetches data from an API, you do not need to include a cleanup function._**

 In these cases, the event listener or network request will be automatically cleaned up when the component is unmounted, so a cleanup function is not necessary.

Here is an example of a useEffect hook that does not need a cleanup function:

```javascript
import React, { useState, useEffect } from 'react';

function MyComponent() {
  const [data, setData] = useState(null);

  useEffect(() => {
    // Fetch data from an API
    fetchData().then(response => setData(response));
  }, []);

  return (
    // component render code here
  );
}
```

In this example, the useEffect hook is used to fetch data from an API and update the component's state with the response.

 The useEffect hook does not create any resources or side effects that need to be cleaned up, so a cleanup function is not necessary.

However, if your effect creates a resource or side effect that needs to be cleaned up when the component is unmounted or the effect is cleaned up, then you should include a cleanup function in your useEffect hook. 


**_For example, if you create a timer or an interval in your effect, you should include a cleanup function to clear the timer or interval when the component is unmounted or the effect is cleaned up._**

Here is an example of a useEffect hook that includes a cleanup function:


```javascript
import React, { useState, useEffect } from 'react';

function MyComponent() {
  const [data, setData] = useState(null);

  useEffect(() => {
    // Set up an interval to update the data every second
    const interval = setInterval(() => {
      fetchData().then(response => setData(response));
    }, 1000);

    // Return a cleanup function
    return () => {
      // Clear the interval when the component is unmounted or the effect is cleaned up
      clearInterval(interval);
    };
  }, []);

  return (
    // component render code here
  );
}
```


In this example, the useEffect hook sets up an interval to update the component's data every second. 


The useEffect hook also includes a cleanup function, which is returned from the callback passed to useEffect. This cleanup function will be called by React when the component is unmounted or the effect is cleaned up, and it will clear the interval that was created by the effect.


**In general, it is good practice to include a cleanup function in your useEffect hook whenever you create a resource or side effect that needs to be cleaned up. This can help to avoid memory leaks and ensure that your application is well-behaved.**
JumiaClone E-commerce App (MongoDB Atlas Hackathon 2022 on DEV)
Tags: atlashackathon22
Published: 2022-12-08 11:10:02

## What I built
An E-commerce web app build with Mongo-atlas. Inspiration gotten from [Jumia](www.jumia.com)


### Category Submission:
Search No More: Build an application with full-text search capabilities using MongoDB Atlas and Atlas Search


### App Link
[https://glowing-syrniki-134127.netlify.app/](https://glowing-syrniki-134127.netlify.app/)



### Screenshots

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



### Description
An E-commerce app that allows full text search and search auto complete for thousands of products in MongoDB.
Products can be searched by product name. Products can be filtered by category. Search result can be selected, to view more about the product.
 

### Link to Source Code
#### Back-end
https://github.com/tylerjusfly/atlas-hackathon

#### Frontend
https://github.com/malikmukhtar/Jumia-Clone



### Permissive License
MIT License


## Background
(What made you decide to build this particular app? What inspired you?)
[Jumia](www.jumia.com) is one of the biggest E-commerce websites in Africa. Has millions of users and sellers uploading thousands of products daily. We decided to choose E-commerce so we can test how fast and easy it could be searching through huge database with MongoDB Full text search.


### How I built it
(How did you utilize MongoDB Atlas? Did you learn something new along the way? Pick up a new skill?)
We built the app with React and Nodejs express, and then we created a database on Mongo-atlas platform. 
After completing the coding part on the back end of the app, we then indexed the **"products collection" ** we then used the "index name" to configure the search function on the backend.


### Additional Resources/Info

- **[Getting started with Atlas Search](https://www.mongodb.com/docs/atlas/atlas-search/tutorial/)**



### Collaborators

- **[Faruk Suleiman](https://github.com/farukade)**

- **[Tyler Momoh](https://github.com/tylerjusfly)**

- **[Malik Mukhtar](https://github.com/malikmukhtar)**
Medium, Slack and Notion provide a better alternative for Social Logins to their Users
Tags: medium, passwordle, slack, notion
Published: 2022-12-08 11:01:38

After the popularity of social media platforms like Facebook, Twitter and LinkedIn, social login got popular. A lot of web and mobile applications adopted the social login, these all provide login over OAuth 2 protocol. 

After a few years OpenID initiative came into the picture and providers like Google, Yahoo, Myspace, and StackExchange started offering this, but due to the lack of data points and security flaws this declined, and providers like Google and Yahoo started offering OAuth login.

[Read On](https://mojoauth.com/blog/medium-slack-and-notion-provide-better-alternative-of-social-logins-to-their-users/)
Why is Netlify so difficult to use?
Published: 2022-12-08 10:52:02

I started using Netlify to host my sites for free last three months. It worked for some time, then all of a sudden it stopped. My manual deploys, deploys from Github stopped working, they would just send a message saying "Origin error code". I even read in their blog that they will start batch-deleting deploys that have lasted longer than 90 days.
How to Change Table Name using Laravel Migration?
Tags: webdev, laravel, beginners
Published: 2022-12-08 10:48:54

In this guide, you will learn how to change the table name when migrating laravel.

In some cases you need to change the table name, the reasons may be different. One such change is to extend the logic of a table. Previously, a table served only certain purposes, but over time it will be used for more. 

In this tutorial we will take the polymorphic table `job_quality_controls` , which served as a quality control _(QC)_ layer in the business logic, for different kinds of job (entity in the project logic). Within each job, different modules are used, such as **orders**, **estimates**, etc.

## Structure of the table

```mysql
INT entity_id
STRING entity_type
INT user_id
```

Over time, some modules began to expand and the need to add QC for the orders module. Having a ready table we used it. <u>But it has the wrong name</u>. Because it previously contained other entities.

## Rename table using migration

Thanks to migration we can change the table and not confuse developers with incorrect table names. 

```php
public function up()
{
    Schema::rename('job_quality_controls', 'quality_control_entities');
}
```

> If you have indexes in the table, they will have the old name. To fix this you need to delete and recreate the index.

### Useful Commands

```php
$table->renameIndex('from', 'to');
$table->dropIndex(['user_id']);
$table->dropForeign(['user_id']);
```
Show image in react js from mongoDB data
Tags: showimageinreact, imagefrombufferdat, reactimage
Published: 2022-12-08 10:43:42


Let say we fetching data from mongodb and storing the data in the values in react 


Full example => here we have image in buffer  so we use this [imagefrombuffer](https://www.npmjs.com/package/imagefrombuffer) package to convert buffer data to base64. 

```
import React, { useEffect } from "react";
import { imagefrombuffer } from "imagefrombuffer"; //first import 

function author() {
  const [values, setvalues] = useState([]); // data

  const fetchauthor = async (e) => {
    let config = {
      method: "get",
      url: "http://localhost:8000/api/user/authorfind",
      headers: {
        Authorization: `Bearer ${thetoken()}`,
      },
    };

    await axios(config)
      .then((response) => {
        setvalues(response.data[0]); //setting data into values
        console.log(response.data);
      })
      .catch((error) => {
        console.log(error);
      });
  };
  useEffect(() => {
    fetchauthor();
  }, []);
  return (
    <>
   // imagefrombuffer  function usage to show image in react or next js from buffer
      <img 
        src={imagefrombuffer({
          type: values.profilephoto?.contentType,
          data: values.profilephoto?.data?.data,
        })}
      />
    </>
  );
}

export default author;
```

use the function 

```
<img src={imagefrombuffer({
          type: values.profilephoto?.contentType,
          data: values.profilephoto?.data?.data,
        })}
      />
```
Reaching out for cases (microservice-based projects)
Tags: microservices
Published: 2022-12-08 10:27:07

Hi all,

I am currently doing research on whether a model which analyzes the git history of microservice-based projects can point out services that should be split or merged, based on dependencies in the git logs (if service A is 90% of the time updated on the same day as service B, this might be an indication for tight-coupling). To validate my model I am looking for open-source cases in which either some functionality was extracted into a new service, or in which architectural decay has taken place (a service grew bigger and bigger over time while becoming less and less cohesive (as sometimes it's just easier to add stuff to an existing service than creating an entirely new one)). 

At the moment I still require 1 case, so my question is: would you know any projects that would be suitable cases for my research? The only requirements are that the source code and git logs are available, and that either a successful refactoring or acknowledged architectural decay has taken place.

Thanks a lot in advance!
Boosting Your Productivity and Relaxation with Customizable Virtual Environments
Tags: productivity
Published: 2022-12-08 10:18:27

As an indie hacker, you know the importance of deep focus and productivity. Balancing a job and a side hustle leaves little time for your side projects, and it's easy to lose focus and waste valuable time. That's why I created [Viberooms](https://viberooms.serenebase.com/)- to help indie hackers like us stay productive and focused, while also taking breaks to relax and recharge.

Viberooms is a customizable and immersive virtual environment designed to maximize productivity and focus. I've found Viberooms to be a valuable tool for deep focus during work. With its customizable and immersive virtual environment, you can easily set the perfect atmosphere to stay productive and focused. The built-in text editor allows you to take notes and jot down ideas, while the Spotify player lets you set the perfect mood to focus and get work done. And the link-board feature allows you to save and share useful links with others in your Viberoom. (You can browse community-curated viberooms here: https://www.serenebase.com/viberooms/browse)
![Viberooms](https://i.imgur.com/um5zTqe.png)
I use Viberooms as my go-to second screen for work. It keeps all my work organized and accessible in one place. I can track my tasks, notes, and links in one convenient location. With the customizable ambiance of Viberooms, you can create the perfect atmosphere to stay productive and focused. You can set the ambiance of your virtual environment with the video background feature and use the built-in Spotify player to tune into your favorite lo-fi playlist or podcast.
![2nd Screen](https://i.imgur.com/bfHCXtM.png)
When you need a break from work, Viberooms has you covered. It offers a variety of immersive and customizable virtual experiences to help you relax and recharge. Whether you want to take a virtual vacation, explore a new city, or just take a break, Viberooms has the perfect experience for you. Come back to work feeling refreshed and energized after taking a break in your Viberoom.
![vibes](https://i.imgur.com/4PQKhUV.png)
At its core, Viberooms is on a mission to spread good vibes. With Viberooms, you can take control of your environment and set the tone for a productive or relaxing day. It also allows you to easily share your Viberoom with the community with a shareable link, great for collaboration and connecting with others. Give Viberooms a try and see how it can help you get the most out of your day. Learn more at: https://www.serenebase.com/viberooms
![vibes2](https://i.imgur.com/j38xhXj.png)
DevOps Consulting Services and How They Can Help Your Business
Tags: devops
Published: 2022-12-08 10:17:25

## Introduction: What is DevOps Consulting?

DevOps consulting service aims to improve the way an organization builds, deploys, and maintains its applications.

DevOps consulting is a service that aims to improve the way an organization builds, deploys, and maintains its applications. It's important for organizations to have a DevOps strategy in place as it will help them handle common problems such as:

- Increased deployment frequency
- Increased release frequency
- Rapid application changes
- Improved collaboration between development, operations, and other teams
- Improved communication with stakeholders

## What is the Purpose of DevOps Consulting?

DevOps consultancy is not just about deploying a new server. It is also about making sure that your infrastructure is able to handle the load of the new server and that your team has the right skillsets to manage it.

A DevOps consultant will help you identify where there are gaps in your infrastructure and what skillsets you need to fill them. They will also help you optimize your infrastructure so that it can handle the workload of new servers with ease.

## What are the Different Types of Services Offered by a DevOps Consulting Service?

A DevOps consultant is a company that provides software development consultancy services. They provide services like software development, project management, and other related services.

The different types of services offered by a DevOps consulting service are:

- Software Development Consultancy Services: These include consulting for the design, analysis, and implementation of software systems.

- Project Management Consultancy Services: These include planning and managing the execution of projects.

- Other Related Services: These include training on various aspects of DevOps such as automation, agile practices, continuous integration and continuous delivery (CI/CD), etc.

## How Do You Choose the Right DevOps Consultant Service for Your Company?

A DevOps consultant service can be a great investment for any company that is looking to grow and expand. However, it can be hard to know whether or not you are choosing the right one. There are many different companies out there that offer these services and it can be tricky to find the one that is best for your needs.

To help you figure out which service is best for your company, we have created this list of questions that you should ask before hiring a DevOps consultant:

-What are the qualifications of their employees?
-How long have they been in business?
-What type of experience do they have?
-Do they offer a free consultation or demo?
-What will my project cost me?
-How long will my project take?
Ghana Lotto Results
Tags: community, gamedev, writing, webdev
Published: 2022-12-08 10:07:09

**About Ghana Lotto**

Ghana Lotto is operated by the National Lottery Authority (NLA). Every day of the week, NLA holds drawings of different games, giving players numerous chances to win.


Originally established in 1958, the NLA organized public raffles. Its responsibilities and activities increased over time. As a result of a new government act that regulated lotteries in Ghana, the organization was renamed NLA in 2006. In Ghana, a significant portion of the revenue generated from ticket sales supports good causes.
The first draw was conducted on September 29, 1962.

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

**HOW TO PLAY GHANA LOTTO**

To play Ghana Lotto, please follow the steps below:

1.Select a game day among the available options: Monday Special, Lucky Tuesday, Midweek, Fortune Thursday, Friday Bonanza and National Weekly.

2.Choose the game type either Direct or Permutation. The following are the types of Direct games to play:
- Direct 1: (First Number Drop): The first number drawn is the first winning number.
- Direct 2: Any 2 numbers out of the 5 winnings numbers have to be drawn.
- Direct 3: Any 3 numbers out of the 5 winning numbers have to be drawn.
- Direct 4: Any 4 numbers out of the 5 winning numbers have to be drawn. 
- Direct 5: All 5 numbers selected must be picked in the draw. 
 
**Permutation**
With the Permutation game option, the player has the chance to pick 3-10 numbers from the pool of 1-90 numbers drawn out, perming together several lines to increase your chances of winning. Below are the types of Permutation games to play daily:
- Perm 2:  This is simply selecting more than 2 Numbers and the permutation will combine them in sets of 2 with more possible winning combinations depending on how many numbers you choose. 
- Perm 3: Select more than 3 Numbers and the permutation will give all the possible combination lines in sets of 3.
- Perm 4: Select more than 4 Numbers and the permutation will give all the possible combination lines in sets of 4.
- Perm 5: Select more than 5 Numbers and the permutation will give all the possible combination lines in sets of 5.

3. Another exciting feature in this lottery is the “Double Chance” option. This option doubles your chances and allows to cover both draw and machine numbers.
Decide if you want to add this feature to your game, its optional.


4. After you complete all the steps above, select your numbers (according to the game type you previously chose) from the pool of 90 numbers.

6. Click on Play

7. Stake price: Choose line cost between $0.05 and $20.

8. Confirm your your ticket(s)


**GHANA LOTTO 5/90 RESULTS**
The Ghana Lotto drawings take place:

Every day except Sunday at 6:30 p.m. local time
To see if you’ve won something, click to check the [Ghana Lotto results](https://www.24lottos.com/lottery/ghana-lotto/results) 
today.
Salesforce Apex Tutorial for Beginners | Apex Salesforce Tutorial | Salesforce Training
Tags: salesforce, salesforceapex, beginners, tutorial
Published: 2022-12-08 10:06:38

This "Salesforce Apex Tutorial for Beginners" video by Edureka will help you understand about salesforce's apex programming language. This video is ideal for beginners and will talk about some of the basic topics in apex programming languages, like classes in apex, datatypes and variables in apex, conditional statements in apex and so on. It will also explain how to write your first apex program

{% embed https://www.youtube.com/watch?v=xryZh3M4oMs %}
Commercial Fence in Brampton
Published: 2022-12-08 09:52:55

Despite the fact that there are numerous different plans of [Commercial Fence in Brampton](https://www.bramaleafence.ca/commercial-fence.html) picking the ideal one can sporadically assist you with projecting the picture you need. If you have any desire to make an alternate sort of mood, this doesn't generally mean you can't attempt with fencing that is somewhat unique. By the by, most of organizations and businesses pick specific fencing types to address their issues notwithstanding tasteful contemplations.