teleren/devto huggingface dataset:
I'm participating in Hacktoberfest
Tags: opensource, hacktoberfest, beginners
Published: 2020-09-30 20:27:30

In case you haven't seen the announcement on Dev.to, starting tomorrow [Hacktoberfest](https://hacktoberfest.digitalocean.com/) will begin. I'll be a participant and maintainer during the event 😁. 

**As a participant**, I want to contribute with a wide range of technologies and types of contributions (e.g. code and documentation). I'll spend some of my time looking [here](https://dev.to/devteam/whos-looking-for-collaborators-hacktoberfest-2020-jl89) for projects and exploring GitHub.

**As a maintainer**, I will be adding the [hacktoberfest](https://github.com/search?q=label%3Ahacktoberfest) label to some of the repositories on the [Eddie Jaoude Community](https://github.com/EddieJaoudeCommunity), like [EddieBot](https://github.com/EddieJaoudeCommunity/EddieBot). Then I'll keep my eye on any contributions made, review and merge PRs 😃.

## Goals
I want to set my goals a bit higher and see if I can meet them. I'll have more time during the weekend, but instead of 4 PRs (1 per week), I'm pointing towards 8 (2 per week).

On top of that, I'll try my best to document my journey with each contribution and making a blog post out of it. I look at this as an additional challenge. My focus will be to provide the best quality I can to each and every PR I make on other projects. Making contributions is not just about improving a project, it's also a learning experience. So if I fail to provide the best quality on a PR, I'll learn from it and improve the next one!


It's Hacktoberfest time!!! Let's contribute to open source 😃!

## Resources
Here is a list of resources that helped me out, and hopefully can get you started as well:
- [How to Contribute to and Maintain Open Source Projects w/ GitHub by DigitalOcean](https://www.youtube.com/watch?v=vSdSFxIKy5w)
- [Beginners section by DigitalOcean](https://hacktoberfest.digitalocean.com/details#beginners)
- [How to contribute to Hacktoberfest and Open Source - finding Issues by Eddie Jaoude](https://www.youtube.com/watch?v=tjH6txTiC6E)
- [Awesome Hacktoberfest 2020 repository](https://github.com/OtacilioN/awesome-hacktoberfest-2020)
Problem Analysis
Tags: competitiveprogramming, greedy, problemsolving
Published: 2020-09-30 23:35:43

---
title: Problem Analysis
published: true
description: Quick editorial about a codeforces problem
tags: competitiveprogramming,greedy,problemsolving
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/2f054cqptf4fawk72wp7.jpg
---
# BerSU Ball
Statement : [Ball] (https://codeforces.com/problemset/problem/489/B)
### Editorial :
Let’s quickly analyze the problem statement ….
we have n boy and m girl and we need to match them following a certain constraint :
. For each boy, we know his dancing skills. Similarly, for each girl we know her dancing skills and we need to find the number of pairs such that each pair must differ by at most one.
there is about 1001 way to solve the problem following several approaches for example :
. **Maximum bipartie matching**
. **Dynamic Programming**
. **Greedy algorithm** 

I’ll be covering a greedy approach in this editorial hopefully i’ll get some comments to discuss another solution.
We can assume that the maximal number of pairs is equal to min(n,m) …
First let’s sort the arrays of skills and then we can search for pairs such that the absolute difference between a boy’s skill and a girl’s <=1, to do that we need two for loops and for each skill in the first array we take the minimum possible skill in the second array and then we mark the index of the second array as used and break the loop we repeat this min(n,m) time.
In Brief the time complexity of my solution is O(n*m) per test case .
Problem’s link: [Ball] (https://codeforces.com/problemset/problem/489/B)
Code : [Solution] (https://github.com/hamzahasbi/Editorials/blob/master/BerSU%20Ball.cpp)
Comments and feedback are welcome
> Thank you ;
DevOps Engineering, what is it? Pt 1
Tags: devops, cicd, career, agile
Published: 2020-09-30 23:31:48

DevOps is a practice of operation and development engineering teams participating together in the entire process of software/service lifecycle from requirement definition and design, to development and deployment process, and delivery and to monitoring (production support). 

DevOps practices apply continuity in every stage of the software lifecycle providing, software/solutions that meet the always-changing customer’s requirement. 

In the traditional software development process, the waterfall model was used. Though the model had various advantages to certain kinds of engineering project execution like smaller projects where requirements were very well understood and it was a one-off project. Such projects will not be revisited for updates and change, if this happened the project will be at risk of deadlock.  The waterfall model was not effective in delivering large software projects. 

Engineering teams had to look for a better process that is agile, iterative, and accommodate changing requirements. The Agile model shifts focus to providing a short-fixed timeline that allows for continuous immediate feedback from the customer and the ability to move deliverables into production. DevOps practice is an offshoot from agile development because it ensures that software continues to be available. DevOps and Agile model brings the ability to quickly embrace changes and succeeding in a dynamic environment whilst increasing collaboration between developers, operations, and business teams. The fusion of these two offers the following;
 
* High-quality software that can be deployed faster, be monitored, and maintained easily.
* Continuity in the software development process like automation, continuous development, continuous testing,  continuous integration, continuous deployment, and continuous monitoring.
* Rapidly receive and implement feedback from customers into working software for business growth.

[*continue to part-2*](https://dev.to/daviddennis02/devops-engineering-what-is-it-pt2-1lgf)
Interactive problems
Tags: competitiveprogramming, problemsolving
Published: 2020-09-30 23:26:21

---
title: "Interactive problems"
published: true
description: This is a short tutorial about solving interactive problems.
tags: competitiveprogramming,problemsolving
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/z515q0toj9la2ovp43xu.png
---
# About "Interactive problems"
In this kind of problems, the input given may not be predetermined but is built specifically for your solution.Jury writes a special "Interactor" ,such that its output is redirected to the input of your solution, and the output of your program is sent to interactor's input.
So to sum up interactive problems gives input depending on your solution's output …before handling an exemple you must pay attention to flush the output just to avoid some bugs caused by the buffer.
To flush you can use (just after printing an integer and end-of-line):
```
fflush(stdout) in C++;
System.out.flush() in Java;
stdout.flush() in Python;
flush(output) in Pascal;
```
See the documentation for other languages.
Now let's move forward to the example :
[Bear and prime 100](https://www.codeforces.com/problemset/problem/680/C)	
### Editorial
As mentioned in the problem statement we have to ask at most 20 queries to guess if the secret number is composite or prime as we all know a prime number is divisible only by 1 and itself so we can check in each query if we have a yes "which means the hidden number is divisible by the number in the output" we increment a count if our count is equal to 2 we break and we are sure that the hidden number is composite ,but we must pay attention that we don't output 1 (all number are divisible by 1) ….We have just finished a part of the solution we still have some special cases to handle , if we have a perfect square for example 25 is divisible by 1 and 5 as i mentioned we can't output 1 so we will have only the number 5 as a query because we have a maximum of 20 query starting by 2 in this case our count will be equal to 1 and then we will consider 25 as a prime number which is false ….
To avoid this wrong answer we can simply store all the prime numbers < 50 in a vector and also the perfect square numbers so our vector will contain {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,4,9,25,49} (19 number) so we will have at most 19 queries to ask and with that vector we handled all the special cases and of course if the count of divisors is equal to 2 we still have to break ….And that's it , the problem is not that hard and is fun to solve and i hope you enjoyed the topic
Problem's link: [Bear and prime 100](https://www.codeforces.com/problemset/problem/680/C)
Code : [Solution](https://github.com/hamzahasbi/Editorials/blob/master/Bear%20and%20Prime%20100.cpp)
Comments and feedback are welcome
> Thank you ;
Multiple Github accounts with different certificates (Updated Sept 2020)
Published: 2020-09-30 20:14:08

There are several blogs that outlines how to have multiple SSH certs with different github accounts and yet I had to google around after trying out a couple of them to figure out the right settings. If you're wondering how to do this, follow along. Also meant as note-to-self.

## Create a new SSH key pair

```$ ssh-keygen -t rsa -C "your-email@domain.com"```
Here for the email address I gave the email address generated by github that mask your real email address.

![autogen-email](https://dev-to-uploads.s3.amazonaws.com/i/yvw832n5ukjk8ege8nea.png)

This create a private and public keypair in ~/.ssh. `id_rsa` and `id_rsa.pub`. Rename this to reflect the github account name. Not necessary but to keep things organized when you're working with multiple github accounts. 

```
~/.ssh/id_rsa_wxyz
~/.ssh/id_rsa_wxyz.pub
```

## Add the keys

```$ ssh-add ~/.ssh/id_rsa_wxyz```
Check saved keys
```$ ssh-add -l```

## Configure SSH
Edit `~/.ssh/config`,
```
Host github.com-wxyz
	HostName	ssh.github.com
	Port 		443
	User		git
	AddKeysToAgent	yes
	IdentityFile 	~/.ssh/id_rsa_wxyz
```

This is where some blogs are not updated. I had to add ssh in front of github on the HostName param. Then the respective port. Otherwise it was trying to connect to port 22 and timing out.

## Checking out repo
When checking out github repo, the URL should reflect the Host portion followed by the github ID and the repo name. 
```
git clone git@github.com-wxyz:wx-yz/ballerina-lang.git
```

## Set username and email
After cloning the repo, you might want to modify the username and email for the local repo. This is useful if you like to have different IDs/email combos for different repos. If you have one username/email combo for all your repos you probably have this as a global config

```
$ git config user.name "wx-yz"
$ git config user.email "<insert autogenerated email from github"
```
Making my project Password-less! 🚫🔑
Tags: postgres, php, serverless, redis
Published: 2020-09-30 23:00:49

**Welcome Back**, 🖐

In this article I'm going to explain why I will **not** use a standard Sign-in/Sign-up method for app authentication!

*Ready?* Lets get started 😁

### **Why** we're going Password-less:
1. 💾 Passwords take away a lot of storage that could be used to store something else.
2. 🔑 Everyone knows this, people use the same passwords for multiple websites/apps.
3. 🤔 People forget there passwords from time to time, this means you will need to create a re-set password system.
4. 🚀 Big technology company's are doing the same, I don't really like looking at what others are doing but if you do a quick Google search on tech companies going Password-less you will find a lot of information.

### What do I mean when I say **Password-less**?
When a new user creates an account they will not be able to create a Password! *Simple right?*

**How do users sign-in?**
On the sign-in form the user will enter there Email Address or Phone Number they used to create there account, after they clicked "Sign in" the backend server will send a 6-8 digit code to there Phone number or Email Address depending on witch one they entered. Next a text input will display where the user can enter the code they received.

Creating a Password-less app is way easier to build and manage then one with passwords, at lest in my opinion! ✌️

_I would love to hear what you have to say, lets talk in the **Comments**!!!_ 😀
Slack Emojis 2.0
Tags: slack, emoji
Published: 2020-09-30 22:49:32

A while ago I made a directory of slack emojis as a side project, today I pushed out a completely redesigned website that also includes the ability to submit your own emojis for other people to use!

You can check it out at: [Slack Emoji](https://slackemoji.com/)

Let me know what you think
Among Us is the Future of Open Source Community
Tags: opensource, javascript, discuss
Published: 2020-09-30 22:33:12

---
title: Among Us is the Future of Open Source Community
published: true
description: What does a digital watering hole/cooler look like in our quarantine time? Where is the future of community 
tags: opensource, javascript, discuss
cover_image: https://i9.ytimg.com/vi/qhJKaoew9xA/maxresdefault.jpg?time=1601504700000&sqp=CLyL1PsF&rs=AOn4CLC9DnY2SNWJyYHcsEwE4t1BFXnpmw
canonicial_url: https://youtu.be/qhJKaoew9xA
---

Had a chance to talk out loud with [Fred Schott](https://twitter.com/FredKSchott) (Snowpack) about our experiences in being in physical and digital communities before and after covid! How each community has it's own norms, rules, and feeling to it that GitHub doesn't necessarily bring out. Curious on your thoughts!

{% youtube qhJKaoew9xA %}

We talk about maintainership and learning to say no, on localism in a digital setting, parallels to livestream church, experiencing serendipity in Zoom or elsewhere, and how games can play a big role in making open source less transactional.

More episodes at: https://hopeinsource.com
DevTools tips: Copy request as code
Tags: webdev, tips, chromium
Published: 2020-09-30 22:09:21

Sometimes I need to replicate a network request made by the browser: maybe I want to test it directly without fiddling with the website UI; maybe I need to embed it in some backend application to obtain the same resources or invoke the same API.

The network inspector in Chrome/Chromium makes a good job at showing all the nitty-gritties of what happens at the HTTP level, detailing the structure of the various request/response exchanges.

But extracting that information and translating in something usable for the purpose described earlier may result overly tedious and error prone.
Suppose I want to replay one of the requests as a cUrl command in my shell. I should:

* examine the request to extract all the necessary data
* read cUrl docs in order to find out how to build the desired request
* actually build the request
* test it 🤞

Usually, this also turns out to be a trial and error process.

For this purpose, DevTools come in our help!
If we right-click, from the network inspector, the request we want to replicate and expand the `copy` menu voice, we will se a lot of options.
Besides the classical operations for copying the path or the url of the request, we are offered a lot of other voices

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/egiuufavaqvei58f8k8q.png)

In particular, there are a series of `Copy as...` commands which will put in our clipboard a ready-made snippet of code of the selected language to be used to execute the request!

For example, I can `Copy as cUrl(bash)` to get a nice command to use in my shell

```bash
curl 'http://localhost:8080/' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'DNT: 1' \
  -H 'Upgrade-Insecure-Requests: 1' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36' \
  -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
  -H 'Sec-Fetch-Site: none' \
  -H 'Sec-Fetch-Mode: navigate' \
  -H 'Sec-Fetch-User: ?1' \
  -H 'Sec-Fetch-Dest: document' \
  -H 'Accept-Language: en,it-IT;q=0.9,it;q=0.8,en-US;q=0.7' \
  -H 'Cookie: *******' \
  --compressed
```

If I want to make the same request in vanilla Javascript, I could `Copy as fetch` and get

```javascript
fetch("http://localhost:8080/", {
  "headers": {
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "accept-language": "en,it-IT;q=0.9,it;q=0.8,en-US;q=0.7",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "none",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1"
  },
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": null,
  "method": "GET",
  "mode": "cors",
  "credentials": "include"
});
```
AWS Cost Control
Tags: aws
Published: 2020-09-30 21:55:45

Published a GitHub Repo with key links for AWS Cost control tools, patterns and tips.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/hufojo37aukqgiohi2ql.png)

This is a companion to my LinkedIn Learning course ["AWS: Cost Control"](https://www.linkedin.com/learning/amazon-web-services-controlling-cost/)

This course includes...

Learn how to use Amazon Web Services (AWS) tools and best practices to understand, forecast, and control service costs. The companion LinkedIn Learning course covers core AWS tools, such as CloudWatch billing alarms, consolidated billing with AWS Organizations, and the AWS billing dashboard tools.

Learn how to control costs through key services, such as EC2, S3, RDS, and more. Use AWS tools, and see tips and practices related to cost control in common workloads.

Learning objectives
- Approaches to cloud service cost control
- Why control AWS service costs?
- Controlling costs by service
- Starting services with CloudFormation
- CloudWatch billing alarms
- AWS Trusted Advisor cost control
- Using third-party products
- Cost control scenarios
Hacktoberfest: Parabeac - Open-source design to Flutter code
Tags: flutter, dart, hacktoberfest, showdev
Published: 2020-09-30 21:43:54

Parabeac is so excited to be participating in Hacktoberfest. We created this small post to share what we're working on & we'd love to have anyone interested to join us on our [Discord community](https://discord.gg/qUrghes). For some context, Parabeac-Core is an open-source repository that converts design files into Flutter code.

[Parabeac/Parabeac-Core](https://github.com/Parabeac/Parabeac-Core)
> *It's OK to love Flutter and hate hand-coding design elements. Parabeac-Core converts design files into Flutter code.*

[![Parabeac-Core Getting Started](https://img.youtube.com/vi/e4CJgPMNCyo/0.jpg)](https://www.youtube.com/watch?v=e4CJgPMNCyo&feature=youtu.be)

# Unique Features
There are a couple of unique features that make this tool powerful. This is clearly an early project but there are some really neat things going on. We'd love your help to make these features AWESOME!
## Parabeac Eggs
Eggs are probably the most exciting & creative things you can contribute to for Parabeac-Core. Eggs are able to override the basic interpretation of a design file & inject direct Flutter implementations into the conversion. For example, we use this to support [AppBar](https://api.flutter.dev/flutter/material/AppBar-class.html) & [BottomNavigationBar](https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html). You can do this through the use of naming semantics where you name a Sketch element with `.*appbar` or `.*tabbar` & following their protocol. You could theoretically do things like create a Google Sign up button, which have logic baked into it. You're also able to inject instance variables into the state of the Stateful widget. We have plenty of egg ideas if you want to create them or if you have ideas, we'd love to hear them!
## Reusable Code
Wouldn't you hate to see a designer use the same element over & over again, & your code does exactly that? Yeah, that's lame. It so happens to be that designers have very similar logic that developers have when creating reusable items. When designers create 'Symbols' they're actually creating reusable design elements. Parabeac-Core can interpret this & create functions that the developer can reuse. We currently need help supporting parameters as we began the implementation but haven't finished, let us know if you want to pick up where we left it!
## Dynamic Sizing
When writing Flutter code, it is common to use tools like `MediaQuery` so that your UI can scale on different screen sizes. Luckily, Parabeac-Core supports this as well as flex-based layouts with Rows & Columns. We have some contributors who are working on improving this so that it scales from a mobile application to a web or desktop app as well. You're welcome to join the party!
## Navigation / Prototyping
In tools like Sketch, you can prototype your application where you click a button and it takes you to a new screen. We interpret this automatically & inject `Navigator()`s into the code. However, we have some ideas on how to improve this in case you'd like to contribute to this.

# Happy Hacking!!!
4 PRs done, I need more!
Tags: hacktoberfest, beginners, 4prs
Published: 2020-09-30 21:39:17

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/w1hxmbaz7htitspeh7zu.jpg)
I just completed my 4 hacktoberfest 2020 PRs! 
Do you guys have any suggestions for open source repos that need help in React / Javascript? Please let me know 😁
Day 228: Anniversary
Tags: hiphop, code, coding, lifelongdev
Published: 2020-09-30 21:28:58

_liner notes_:
- Professional : Found out that today marks my 1 year Anniversary with the company. It's amazing how fast time flies yet with COVID seems to stand still. Even though I didn't get to travel as much as I liked, it's still been a great time. I've learned so much! Looking forward to the future. As for today, I had a couple of meetings. Helped out with some questions from the community and worked on this blog that is taking forever. haha.

- Personal : Got the recording of the radio show submitted to the station to be played ON AIR this week. Listened to more tracks for this week's show. Watched the train wrech that was the Presidential debate.

![View from a lake to the mountains of Engelberg, Switzerland that start off green and get more and more gray as they go up to a height where they are covered in snow and clouds.](https://dev-to-uploads.s3.amazonaws.com/i/jr7ap41bzyt7dll5wgc3.png)

Ran some errands. Had to take back my like 10 year old modem to be shipped back to my old internet provider else I was going to be charged $60! They said I could take it to a store, went to the store, they said I had to take it to a Shipping store. Got to the shipping store and got a receipt. Also went grocery shopping. Since I did all that during the day, I'm going to continue working on the blog post. Really want to turn it in this week.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube agp3YKLpNO8 %}