teleren/devto huggingface dataset:
🔥 600+ 🌟 and 140+ Forks to J.A.R.V.I.S 🚀, Added Dynamic Face Recognition to J.A.R.V.I.S 🤖
Tags: opensource, ai, python, github
Published: 2023-05-14 14:07:26

**J.A.R.V.I.S (Just A Rather Very Intelligent System)**

**New Feature:** Dynamic Face Recognition

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

**What it does...**
    

- Dynamic Authentication using Optical Face Recognition
-     Send emails
-     Dynamic News Reporting at any time with api integration
-     Todo list generator, Yes it remembers all!
-     Open any website with just a voice command
-     Plays Music
-     Tells time
-     Wikipedia powered AI
-     Dictionary with Intelligent Sensing i.e. auto checking if spell mistake
-     Weather Report such as temp, wind speed, humidity, weather description
-     Latitude and longitude
-     YouTube searching
-     Google Map searching
-     YouTube Downloader, download any youtube video by just putting url of video
-     Now Master can switch b/w J.A.R.V.I.S and F.R.I.D.A.Y, switch to female voice assistant

    



[GitHub Code](https://github.com/GauravSingh9356/J.A.R.V.I.S




**Future Plans:**
Sky is limit. There are immense possibilities in this project. Will be integrating some very powerful commands soon..

**Contribution:**

Thank you for your interest in contributing to our Repo! Pull requests are welcome. For adding new feature or improving structure or fixing typos, please make a PR with your fixes. We are happy for every contribution. A lot can be done with this project. Core AI chatbot like functionality can be added. More python scripts can be associated. Pull requests for any such changes are accepted. Feel free to fork this project and make your own changes too.
InterviewBible - Reddit community about Interviewing
Tags: interview, community, reddit, preparation
Published: 2023-05-14 13:43:47

Introducing you [InterviewBible](https://www.reddit.com/r/InterviewBible/), a new **Reddit community** dedicated to all of us who have something to say about todays world of Interviewing, especially in IT.

Lets meet there and exchange experience, info and materials which can be useful to all of us in completing our next mission. Getting a new/better job!

PS: I hope I dont break some rules here?
Perl Weekly Challenge #216 - Car Nicknaming
Tags: perlweeklychallenge, perl, regex
Published: 2023-05-14 13:22:48

Hi everybody!

Just one solution to the first task in the weekly challenge this week, and it's a different type. I didn't have time to do any more, and this solution might not be the most efficient or cleanest, but it looks reasonably good to me.

The goal is to find any words which contain all the letters of the car registration number. I assume this would be to find a nickname for your car based on its registration number. In the examples, all of the words are lower-case, so I just assume that my inputs are lower-case. This week I used a few language features that I haven't used in previous challenges, like loop labels, POSIX classes, and a variable regex. As usual, the first argument to the script (without the space in the rego in the examples) is the registration and the rest of the arguments are the words to match it to.

Here's the code:
    #!/usr/bin/perl
    
    use strict;
    use warnings;
    use v5.24;
    
    my %reg;
    foreach (split(//, shift)) {
        my ($char) = ($_ =~ /([[:alpha:]])/);
        $reg{lc($char)}++ if $char;
    }
    
    WORD:
    foreach (@ARGV) {
        my $word = $_;
        MATCH:
        foreach (keys %reg) {
            my $char = $_;
            my $count = $reg{$_};
    
            next WORD if $word !~ /${char}{$count,}/;
        }
        say $word;
    }

Even though none of the examples include registrations with duplicate letters, to protect against this we create a hash containing the letters in the registration number as keys and the number of occurrences as values. Then we search each word for the characters in the hash and make sure that we have at least as many occurrences as the hash value. If we've successfully run through all the values in the hash we say the word that successfully matched.

That's all for this week, like I said I ran out of time, so hopefully I'll see you next week!
HOW TO ASSIGN A ROLE TO USER MEMBERS IN AZURE PORTAL AND CONTROL ACCESS TO THE RESOURCES WITHIN IT
Published: 2023-05-14 13:18:45

Role-based access control (RBAC) is an approach to grant users, groups, applications or other azure services permission to Azure resources.
Below are the steps on how to assign role to a user in an Azure
Login into Azure portal and click on the search bar to search for Azure Active Directory to create a user account


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

Go to **user** and then **add new user**



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qlv060gdf729wu3myz9.png)
The Images below show that a new user has been created and the details

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60g2mwzu5tv3ceuk6wda.png)
Next is to assign role through a Resources group

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u6gy9a83g0qwgz8trjkz.png)
Click on Access control (IAM) to enable us add role assignment

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bacsp0deqvz1p1yxt3gq.png)
Here you select the role

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9w9tbl5ct2ij68k07exd.png)
Next is to select user which role is to be assigned to

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmkw8i61mu7f4ncci0hb.png)
Next is to review and assign as shown in the image below

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ur49khj13wfkkye0zq2m.png)
Here the role has been assigned to the user created

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o0p4ububm458t826ne1a.png)
I hope this simple steps will serve as guide on how to assign role to new users
RubyMine. How to Show/Hide terminal panel
Published: 2023-05-14 13:16:10


This nice Terminal panel does not show/hide when you just press **OPTION key + F12** as it is described in a tooltip

![Trminal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vyic98j2koqmkywuyjpn.png)

It is because on MacOS functional keys are being used by operation system. For example to control sound.

![MacOS keyboard shortcuts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5z6dgdrdc082m0j4cs3k.png)

You can just turn this behaviour off. I do not like the idea because I like it.

To use **OPTION key + F12** you just need to use **FN** key as well.

The final combo is **FN key + OPTION key + F12**

Happy Coding!
10 JavaScript One Liners to save 1000+ hours
Tags: javascript, webdev, programming, tutorial
Published: 2023-05-14 12:55:27

Here are 10 JavaScript one liners that will save you a lot of time and make you an efficient developer. Do subscribe the channel if you find the content insightful.

{% embed https://www.youtube.com/watch?v=u1e4z92ClsI %}
Code coverage for PHPUnit in VSCode
Tags: phpunit, php, vscode, coverage
Published: 2023-05-14 12:41:48

This post is listed points that I've worked to make code coverage works for my PHP. Mostly for reading again in my future but also able to share to everyone.

## Install xdebug
https://xdebug.org/docs/install#pecl

```
pecl install xdebug
```

### Enable xdebug if you're using it in Docker

```
docker-extension-enable xdebug
```

### To check if Xdebug is already enable
```
php -i | grep xdebug
```

## Coverage Gutters extension

To show coverage gutters in VSCode for most of the programming languages, install this extension

Name: Coverage Gutters
Id: ryanluker.vscode-coverage-gutters
Description: Display test coverage generated by lcov or xml - works with many languages
Version: 2.10.4
Publisher: ryanluker
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters

It helps to quickly run test with shortcut, you can have a preset of settings like every setting you could have CLI command or `phpunit.xml.dist`.

### Extension's setting

```json
{
    "coverage-gutters.showLineCoverage": true,
    "coverage-gutters.coverageBaseDir": "test-reports", // equivalent to ${workspaceFolder}/test-reports
}
```

### To run the unit tests and see the coverage

Run this command on terminal, your root project folder:
```
XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-clover test-reports/cov.xml
```

Then Toggle Coverage by Command Palette in VSCode

## Dealing with PHPUnit mock types in VSCode

VSCode sometimes show error when writing Mock (but PHPStorm doesn't), this part can be solved by manual step:

It's really helpful to also install the Language Protocol Server for PHP https://intelephense.com/

https://github.com/sebastianbergmann/phpunit/blob/1f5e1334bb5de60471251a2392a9cc8d43bc4174/.phpstorm.meta.php

Copy this file to any child folder of the project, better to any git ignored folder. Then Intelephense can automatically solve the invalid type of VSCode. Which happened when you create mock from a class, and VSCode doesn't know how to detect it as original class or MockObject class, normally it will show as error if you don't do this step.

## Why your code can't be cover?

- PHPUnit configuration: https://docs.phpunit.de/en/9.5/code-coverage-analysis.html
  - Add PHPUnit `@cover` tag in test class/functions.

This post are also related to XDebug https://dev.to/arielmejiadev/set-xdebug-coverage-mode-2d9g

https://xdebug.org/docs/all_settings#mode
Keonhacai - Tỷ Lệ Kèo Nhà Cái trực tuyến hôm nay
Published: 2023-05-14 12:12:02

https://keonhacai.co.com/ Kèo nhà cái là tỷ lệ cá cược mà nhà cái đưa ra✔️ qua đó người chơi sẽ nghiên cứu✔️ nhận định đưa ra được quyết định cá cược mang tỷ lệ thắng cao✔️✔️✔️
https://plaza.rakuten.co.jp/keonhacai09
https://github.com/keonhacai09
https://penzu.com/p/219021eb
https://matters.town/@keonhacai09
https://peatix.com/user/17309626
React native expo tenor search Component
Tags: webdev, reactnative, ui, javascript
Published: 2023-05-14 11:27:43

Recently we needed to integrate tenor gifs into our product, due to tenor apis up-scaling to v2 we couldn't find any opensource package , hence we created this `expo-tenor-search` package for react native .

 [expo-tenor-search](https://github.com/HexmosTech/expo-tenor-search )

the main features are simple 
* you can search gifs
* display gif categories 

For easy integration into your apps there is this function `handleGifSelect` which you can define your logic on what to do with the selected gif.

This is how it looks in code 

```
import { GifSearch } from 'expo-tenor-search'

export default function GifScreen() {
  const handleGifSelect = (data) => {
    console.log(`Selected GIF: ${data}`)
  }

  const styles = {
    searchbox: {
      searchContainer: {
        height: 45
      }
    },
    gifbox: {
      img: {
        borderRadius: '10px'
      }
    }
  }
  return (
    <GifSearch
      tenorkey={'xxx-xxx-xxx-xxx'}
      MediaFilter={'minimal'}
      onGifSelect={handleGifSelect}
      styles={styles}
    />
  )
}
```

* you can pass custom css into this with which you can control the UI .
* there are selectors like  `searchContainer` , `closeButton`,`button` , `img` etc using which you can manipulate the styles .


The results produced are :- 

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

If you find this useful and want to know more about its implementation give this an up vote.  
Will be posting more stuff here soon. 

Follow me here [twitter](https://twitter.com/d4rkcyph3r) for updates.
The Story of my life
Published: 2023-05-14 10:11:08

Hello everyone, my name is Mugisha Ghad from Eastern province, Kirehe district, Mahama sector, Munini cell.

Now I'm going to tell everybody.. the story of my life at the age of 7yrs old up 22yrs old.

At home am fourth born and in my childhood I used to be loving my parents and they loved me too.

As I kept growing up at 7age my parents took me at the school, where I started studying like others, surprisingly at the end the first term at proclamation day, I passed in my class I was fifth one in the class of 45 students.

I will never forget that day, because I reached at home and my parents were proud of their son, my mummy cooked for me a delicious meal which made to keep working hard so that I will keep acting well in my class.

At the age of 14 years that's when I started my secondary school.
I keep acting like I was in primary where my teachers used to be proud of me and after Three years  in senior Three I had prepare for ordinal national exam I used all my forces and my time by the will of God I made it and also got pass that's when I choose to join my lovely combination which is HISTORY ECONOMIC AND GEOGRAPHY cause I used to be good at those subjects in O'level and then I didn't fail in my studies that's what I thanks God for🙏🙏🙏 he didn't leave me alone by the time I needed him on my ways.
Three years later I did my Advanced level Examination which also went well because it went as well as I wanted it to be, I kept waiting for my results finally I also made it, I got my diploma am with it at home right now.
For the GOD been with me in my studies I also hope that he's me as am seating writing his seeking for a place.
And I'm really happy with appreciating you for the chance Alight organisation gave me to try this thanks 🙏 allot my almighty God be with you.. 
So that's all the story of my life More over peace of God be with Alight organisation whenever you are  thanks Again 🙏🙏🙏
reverse string in java
Published: 2023-05-14 10:10:57

{% embed https://youtu.be/NcxNuXNYmBQ %}

```
import java.util.*;
import java.lang.*;
class Demo{
	public static void main(String[] args){
		String s = "brock";
		StringBuilder sb = new StringBuilder(s);
		sb.reverse();
		System.out.println(sb.toString());
	}
}
```
Devlog#3 || Implemented basic matter.js boilerplate
Published: 2023-05-14 10:08:19

**14 May 2023**

Hey! It took too much time to switch my initial project made on p5js to a matter.js one , yeeting all the old physics logic and objects made using p5js canvas.


![Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/na1w9nb7nn9jzsamko4s.jpg)
But the biggest disadvantage is that matter js dont have anything from which I can implement audio mixer.

Oh and I implement some more features as well (sliders styles, and two different modes, touch/mouse interaction)

I plan to focus on stuffs like spring, electric field, boids etc

Demo site link - [site-link](https://project-demo-sitev2.netlify.app/)
Instagram post link- [post-link](https://www.instagram.com/reel/CsN_q4HOcJ5/?igshid=NTc4MTIwNjQ2YQ==)
Tutorial Buzz: Creating a Color System in Figma
Tags: tutorial, webdev, productivity, design
Published: 2023-05-14 10:00:00


I am fixated with color palettes! I have a collection on Pinterest and a few saved on my Instagram. I just love color palettes! I do plan on using these palettes on my future web pages. However, when I noticed this **Creating a Color System in Figma** tutorial link in a Tweet, I decided it was time to learn how to make my own. 

The tutorial gave three methods for designing your own color system in Figma: 
* Method 1: Choosing primary, secondary, and neutral colors to build different shades/hues for the palette;
* Method 2: Using the **Foundation Color Generator** (FCG) Plugin and a chosen image to pull colors (my favorite);
* Method 3: Using the Material Theme Builder.

The result from Method 1 is shown in the picture on the left.   My results after using the FCG plugin are on the right. Unfortunately, I didn't get a result from using the Material Theme Builder plugin because it was taking too long for the color palette to save. (_Longer than my ADHD was going to allow._) I had already made up my mind that the FCG plugin was the less time intensive method to use. I liked that you could build and save a list of the color palette and the code for the colors (token) as well. The palettes and the token documentation is listed under the image on the right. 

---
![Color System Made in Figma](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mbqr4hnnfgrjinent7eu.png)

---

The tutorial was not hard to follow. Adrian has a pleasant voice and took his time to explain the important steps. I was glad to find out how to save color systems/styles under **Local Styles** in Figma for future use. You definitely need to be familiar with Figma's layout and capabilities (ex., Assets, Libraries, Plugins, etc) before you start. 

If you are interested in making your own color systems in Figma, this is a good tutorial to watch.  

---
{% embed https://youtu.be/ZHhFWIq-viQ) %} 
---
Java program to find Sum of Digits
Tags: java, interview, sum, digits
Published: 2023-05-14 09:58:24

For Explanation watch the video
{% embed https://youtu.be/_RoylovYSmk %}

code :: 

```
import java.util.*;
import java.lang.*;
class Demo{
	public static void main(String[] args){
		int n = 555;
		int sum = 0;
		while(n>0){
			int r = n%10;
			sum = sum + r;
			n = n/10;
		}
		System.out.println(sum);
	}
}
```
Postmortem
Published: 2023-05-14 09:45:47

![error](https://i.postimg.cc/dtrMWD8M/david-pupaza-he-Nw-Um-Et-Zzo-unsplash.jpg)

## Issue Summary:
- Duration of the outage: May 7, 2023, at 8:15 AM EDT - May 7, 2023, at 9:00 AM EDT
- Impact: Users trying to access the second web server were unable to do so during the outage.
- The service was completely down for 100% of the users trying to access it.
- The root cause was a misconfigured firewall rule that was blocking incoming traffic.

## Timeline:
- May 7, 2023, at 8:15 AM EDT: The issue was detected by a monitoring alert that showed that the second server was not responding to requests.
- Actions taken: The team investigated the second server logs and found no issues with the server.
- They then checked the load balancer logs and saw that requests were not reaching the second server.
- Misleading investigation/debugging paths that were taken: The team initially suspected a problem with the second server and spent time checking the server logs.
- The investigation was a misleading path because the issue was not with the server itself, but with incoming traffic.
- The incident was escalated to the network engineering team to investigate the network configuration.
- The incident was resolved by the network engineering team identifying the misconfigured firewall rule that was blocking incoming traffic to the second server and fixing it.

## Root cause and resolution:
- The root cause was a misconfigured firewall rule that was blocking incoming traffic to this server.
- The issue was fixed by the network engineering team identifying the misconfigured firewall rule and fixing it.

## Corrective and preventative measures:
- To prevent similar issues from happening in the future, the team will implement regular network configuration reviews to ensure that firewall rules are correctly configured.
- Tasks to address the issue include:
  - Reviewing firewall rules for all servers to ensure that they are correctly configured
  - Implementing additional monitoring for incoming traffic to identify any further misconfigurations or anomalies
  - Reviewing incident response procedures to ensure that misconfigurations are quickly identified and resolved.
A News PWA website using GitHub Codespaces
Tags: githubhack23
Published: 2023-05-14 09:34:53

## What I built 
I made a **PWA news website** using React with **GitHub Codespaces**.
### Category Submission: 
Phone Friendly
### App Link
https://manali-biswas.github.io/news-website-with-codespace/
### Screenshots 

![Page loading](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hjjqqv20n2o1qgfre3k.png)

![Homepage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bzlq4s4cduszncx5pwem.png)

![Business news](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cv7ssdl5rlhhgwrp3wt6.png)

![An article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rugeheh0r8ovhdsw9nuq.png)

![More news](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pf9h1ll73sxvbm6qk24j.png)
### Description 
Website that displays top headlines on various topics and their description. Built using GitHub Codespaces! ❤️
### Link to Source Code 
https://github.com/manali-biswas/news-website-with-codespace
### Permissive License 
MIT License
## Background (What made you decide to build this particular app? What inspired you?) 
It was quite a while since I had done a personal hands-on project. One random day I landed on the GitHub+DEV hackathon page, and boom! Motivation flowed to learn more about GitHub while building something new and quick for myself. Currently the website is not in a very polished state, but I intend to keep working on it and improving it!
### How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?) 
While going through the GitHub+DEV hackathon article, I noticed something called GitHub Codespaces. I had never tried this before, so I quickly started going through its docs to satisfy my curiosity and get started on a project.
GitHub Codespaces was incredibly easy to use, and it got me started for my React app in no time! I wanted to build something quacky and fun for myself, so I decided to go for a news website, which I can use all the time and keep adding features which I like.
I really had fun participating in the hackathon, and I am going to keep using GitHub Codespaces for more projects, as it requires much less time and overhead than setting up a project environment locally!
### Additional Resources/Info
The project uses a news api with limited number of API requests, will plan to improve the UI in this case in future!
Which plan is Suitable for react ecommerce website?
Tags: react, node, discuss, javascript
Published: 2023-05-14 09:34:00

There are several Hosting plateforms like godaddy, hostinger, namecheap etc.
But i am so confused 😥 Which plan is should opt for hosting my ecommerce webiste with reactjs and nodejs.

**Can you plese Explain me the minimum Requirement** of RAM, SSD, etc... of a server which is capable to host this react website.