teleren/devto huggingface dataset:
Start with Python
Tags: 100daysofcode, python, programming, beginners
Published: 2021-04-09 23:56:35

We will learn about the following concepts of python.

* print()
* input()
* String Concatenation
* String Manipulation
* Variables

### print()


This function is used to print any data (string, integer, a boolean value, etc) in the python console.

> Make sure to use single or double quotes in the print function, if you are going to print a string. Don't need quotes if you are going to print any other data type.

```
print("Hello World!")
```

### input()

This function is used to get input from the user.

```
input("What is your name?")
```
The output will be print next to the input.

### Variables

We can store data values in variables, to use them later. Following are some rules to write variables in python and you should keep them in mind.

* A variable name must start with a letter or the underscore character
* A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
* Variable names are case-sensitive (age, Age, and AGE are three different variables)
* A variable name cannot start with a number

```
var name = "John Doe"
print(name)
```
name value (John Doe) will print in the next line.

>You can test your code here. https://www.programiz.com/python-programming/online-compiler/

#### Project
You can check the Brand name generator project, you can check here.
https://dev.to/shaheryaryousaf/brand-name-generator-in-python-3744
Brand Name Generator in Python
Tags: python, programming, beginners, 100daysofcode
Published: 2021-04-09 23:56:19

We are going to create a Brand name generator project in python, it is a fairly simple project for beginners.

Users will answer some questions and our program will generate a Brand name for them.

### Code
```
city = input("What is your city name?\n")
pet = input("What is your pet name?\n")
print("Your Band Name can be " + city + " " + pet)
```
You can test the code by going on this link.

https://www.programiz.com/python-programming/online-compiler/
Transformação Ágil
Tags: agile
Published: 2021-04-09 23:24:15

Acho importante começar dando uma definição rápida sobre o que é agilidade quando aplicada no contexto de desenvolvimento de software.

A origem do termo ágil é mais ou menos uma resposta aos modelos convencionais de desenvolvimento de software existentes nos anos 90, sendo um dos mais conhecidos o chamado método cascata.

O modelo cascata resumidamente falando tem um fluxo linear bem burocrático com vários passos definidos em que ao cumprir cada passo o projeto sempre segue em frente. O problema desse método é que se demorava muito em cada etapa e o escopo era fechado demais para responder às mudanças necessárias para o avanço do projeto. Mas vou deixar pra falar mais desse método em outro post.

A principal razão para motivar mudanças no modelo de desenvolvimento era economizar recursos, e o recursos mais caro que existe é tempo. Tempo esse que passa para todos, das pessoas desenvolvedoras até as grandes negociações entre corporações e startups. O ponto é que: para economizar tempo era necessário flexibilizar o fluxo de trabalho e de certa forma priorizar os principais pontos no desenvolvimento de software. Vamos relembrar os pilares do Manifesto Ágil:

- **Indivíduos e interações** mais que processos e ferramentas
- **Software em funcionamento** mais que documentação abrangente
- **Colaboração com o cliente** mais que negociação de contratos
- **Responder a mudanças** mais que seguir um plano

A partir da origem dessa ideologia da agilidade, é possível que ambos os lados (desenvolvimento e cliente) consigam validar mais rapidamente o projeto em questão.

Para isso, era necessário ter uma forma de dividir o projeto em pequenas partes, priorizadas por ordem de maior valor para serem desenvolvidas primeiro.

Com isso, nasceram alguns frameworks como XP, Kanban e SCRUM que auxiliam nessa divisão, mas esses merecem ter um post para cada.

Acontece que a transformação ágil, se dá a partir do momento em que equipes de desenvolvimento encaram a ideia de mudar a forma de trabalho na tentativa de melhorar o dia a dia enquanto num projeto. Essa tarefa não é fácil por várias questões, tanto por seguimento da empresa, tipo de projeto, tipo de cliente, cultura do time/empresa, pontos delicados que merecem um outro post especial.

Importante salientar que essa mudança nunca, nunca em hipótese alguma, acontece da noite pro dia, é um processo lento que exige adaptação constante, assim como observação e colaboração de todas as pessoas envolvidas visando melhorias constantes no fluxo de trabalho até que se alcance uma boa estabilidade.

Em posts futuros pretendo trazer assuntos como maturidade de time, organização, frameworks, ícones do desenvolvimento e agilidade e outros.
Create developer story just like stackoverflow with react and chakraUi
Tags: showdev, webdev, react, productivity
Published: 2021-04-09 22:38:15

Today I updated my portfolio website with a story page.  

# At the moment, I'm showing 
- Educational institutes 
- Companies list

# Further, I'll add
- Blogs or videos
- Open-source
- Feature or Apps
- Certifications

**Demo Link:** [Story page](https://ma-ahmad.github.io/portfolio/#/story-timeline)
**GitHub Repo:** [Repo](https://github.com/MA-Ahmad/portfolio)
bsddialog
Tags: freebsd, helloworld, coding, unix
Published: 2021-04-09 22:17:53

Currently I am coding a script with a Text User Interface to set up my [FreeBSD](https://www.freebsd.org) Desktop Environment, the idea is to use [dialog](https://invisible-island.net/dialog) to build graphical *widgets*, the previous post of the "My FreeBSD Desktop Setting" series shows a preview.


Unfortunately I realized that *dialog* is released under the GNU GPL License ([Wikipedia link](https://en.wikipedia.org/wiki/GNU_General_Public_License)) despite it is in the FreeBSD source code https://cgit.freebsd.org/src/tree/gnu. Although my script is under a permissive license I will be bound to the GPL and I will not be able to use my script for personal/commercial/freelance purposes. In conclusion, I am working on a new project: [bsddialog](https://gitlab.com/alfix/bsddialog) to provide the features of dialogs under the BSD-2-Clause license, *Hello World!*:

{% twitter 1379412400311562240 %}
Issue Detail Performance Improvements
Tags: performance
Published: 2021-04-09 21:56:32

One of Sentry’s most-trafficked pages is our issue details page, as it helps our customers understand the root cause of an error. For those of you who are new to Sentry, we define an issue as a group of similar events. And to render these issue details, we need to fetch a significant amount of data from these events — counts, charts, and other metadata.

There are two components to this page: latest event, and summary statistics. And the problem we faced was that the page was loading the latest event only after loading the summary statistics, creating response times of more than a second.

We had no idea what — or why — this was happening. First, we worked toward solving the what. Using [Performance](https://sentry.io/for/performance/), we noticed that the latest event loaded only after the summary statistics loaded; that is, we could see the second request could only start after the first request had finished.

![dogfood-issues1](//images.ctfassets.net/em6l9zw4tzag/7ne4bx9Rvnth02fm4I5kHO/d9bf251b8d69fcd61835b160ce484eab/image3.png)

Next, the why: looking into the issue page’s [React](https://docs.sentry.io/platforms/javascript/guides/react/performance/) component tree, we noticed that the latest event component was a child of the summary component.

![dogfood-issues2](//images.ctfassets.net/em6l9zw4tzag/7x4sYNyd8k1Xg6mMlka19D/b97788c7b811d37fa0452325a98ea985/Group_1.jpg)

Although we were fetching the data for the latest event in its component, because this component could only begin rendering after its parent has fully rendered (which in turn is blocked by the parent request), the two requests were not parallelized.

Our fix was to begin loading data from both endpoints higher in the component tree, allowing us to parallelize both requests. Then we passed the result down so each component can render as soon as its data became available.

![dogfood-issues3](//images.ctfassets.net/em6l9zw4tzag/698SmrDiQIZO6jfNdfNqND/78ef343dd2c82ff8b9c23ddaaffa7247/image4.png)

After the fix, the issue page’s P75 response time dropped by about 1 second:

![dogfood-issues4](//images.ctfassets.net/em6l9zw4tzag/5sH13CrBVSRdBkjw6KfLYT/9efd71304acdc77f2b2bfb0ddbac747c/image2.png) 

You can’t fix what you can’t see. And because Performance gave us the visibility into the two requests that needed to be parallelized (but weren’t), we were able to find the quickest path to a solution — and a faster page for our customers.
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
Tags: electron, errors, node
Published: 2021-04-09 21:33:11

Are you stumbling in that error message: Electron failed to install correctly, please delete node_modules/electron and try installing again - So maybe that link https://stackoverflow.com/a/56813379 can help you to solve it.

HEAPS UP! That is going to remove `electron` from `package.json` and add again but it's going to add latest version if you want another version you need to add manually electron version into `package.json` after `npm uninstall electron` and then run `npm install` instead of `npm install electron`.
The happy dev community: A value-driven manifesto.
Tags: devlife, community, culture, discuss
Published: 2021-04-09 21:40:24

---
title: The happy dev community: A value-driven manifesto.
published: true
date: 2021-04-09 21:26:52 UTC
tags: devlife,community,culture,discuss
canonical_url: https://leogopal.com/society/the-happy-dev-community-a-value-driven-manifesto/
---
![dev community](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtx11qi7sxhfcc111nyy.png)

In the collaborative world, we are in, dev-communities can easily thrive, fail, or merely survive. The best developer and coder communities and projects often create a culture where everyone feels valued and safe both as a newcomer or veteran.

Here are some core values I believe in creating and sustaining happy developer communities in the long and short term. If anything, we can each aspire towards these are values.

## 1\. Discrimination limits us:

All discrimination or exclusionary things: This includes discrimination based on race, gender, sexual orientation, gender identity, age, nationality, technology and any other arbitrary exclusion of a group of people.

## 2\. Boundaries honour us.

Your comfort levels are not everyone’s comfort levels. Remember that, and if brought to your attention, heed it.

## 3\. We are our most significant assets.

None of us was born masters of our trade. Each of us has, at some point, received help along the way. Return that favour when and where you can.

## 4\. We are resources for the future.

As an extension of #3, share what you know. Make yourself a resource to help those that come after you.

## 5\. Respect defines us:

Treat others better than you wish to be treated and better than you may think they deserve. Make your discussions, criticisms and debates from a position of respectfulness. Ask yourself, is it true? Is it necessary? Is it constructive? Anything less is unacceptable.

## 6\. Reactions require grace.

Angry responses are valid, but abusive language and vindictive actions are toxic. When something happens, that offends you, handle it assertively, but be respectful. Escalate reasonably, and try to allow the offender an opportunity to explain themselves and possibly correct the issue.

## 7\. Opinions are just that: opinions.

Every one of us, due to our background and upbringing, have varying opinions. That is perfectly acceptable. Remember this: if you respect your own opinions, you should respect the opinions of others.

## 8\. To err is human.

You might not intend it, but mistakes do happen and contribute to building experience. Tolerate honest mistakes, and don’t hesitate to apologize if you make one yourself.

## Your values

### What would you add to this list?

You may also like to read:

{% link https://dev.to/leogopal/4-simple-tips-to-better-communication-for-devs-or-how-to-avoid-conflict-confusion-and-talk-to-people-1g85 %}

[The happy dev community: A value-driven manifesto.](https://leogopal.com/society/the-happy-dev-community-a-value-driven-manifesto/) was written by [Leo Gopal](https://leogopal.com/author/theleogopal/) and appeared first on [Leo Gopal](https://leogopal.com).
Install Unity Specific Version on Linux Mint 20.1
Tags: unity3d, mint, ubuntu, linux
Published: 2021-04-09 21:22:11

Pre-Requisite:
1.	Installable PC configurations.
2.	Internet Connection.
3.	Unity Hub.

Unity Hub Installation.

Step 1: -
Download Latest Unity Hub from the following link below.
https://unity3d.com/get-unity/download 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cwppbtqcntjve8hhmsj4.jpg)

Step 2: -
After Download Complete goes to Download Folder. Copy the UnityHub.AppImage file to an executable location on your system. Ex- /opt/Unity/ or ~/Unity/

Step 3: -
Before open the UnityHub.AppImage you have to make that file executable. For this right-click on UnityHub.AppImage file and go to Properties. Select Permissions tab in Properties. Checkmark on Allow Executing file as program under Permission tab Execute option and close the Properties.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ajkc0dt1u95w5j7615ig.jpg)

Step 4: -
Run UnityHub.AppImage file and now it should open the Unity Hub Program. Here is the Unity hub Installation Done.

Now you are ready to Install Any of the unity version on you Linux mint Machine.


Install Specific Unity version
Step 1: -
Go to the unity download archive from this link - https://unity3d.com/get-unity/download/archive.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps8ljm9accwmk322beun.jpg)

Step 2: -
Right-click on your preferable unity version Green Unity Hub Buttons and Copy the Link Address.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d3mv4vsk24qtkulxduf7.jpg)

Step 3: -
Go to UnityHub.AppImage Location. And Open in Terminal there. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/chvphab14e9djut3aih2.jpg)

Step 4: -
Paste the Copied link in the Terminal like this and enter.
./UnityHub.AppImage <unityhub://xxxx.x.xxx/xxxxxxxxxxxx>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v62xshexe7y1qwjfck9p.jpg)

It should open the specific unity version installation program inside the Unity Hub.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m9j7p28ljjkek583ivh2.jpg)

Choose your configuration of unity and Click the install button. That’s all.
Project management and stress management techniques
Tags: projectmanagement, stressmanagement, agile, scrum
Published: 2021-04-09 21:12:58

This week we had sessions for project management and stress management. Today, I combined them and found the keys that would help us to deliver products efficiently without getting stressed.

Project management is the use of methodologies, tools, and processes to successfully plan and execute projects. In software development, there are many tools and methodologies to help you in project management but we are going to focus on one of the most used which is "Agile" method.

Agile software development is a set of iterative software development methodologies in which requirements and solutions emerge from collaboration among self-organizing cross-functional teams.

The most popular agile framework is called scrum. It focuses on a delivery measure span called a sprint and meeting structures that include the following:

**Planning** is a meeting that happens at the beginning of a new sprint designed for the Product Owner and Development Team to meet and review the prioritized Product Backlog.

**Daily standup meetings** is an opportunity for the team to get together, communicate updates on their development status,  and identify any blockers.

**Sprint Demo** is a time to showcase the completed tasks to the stakeholders.

**Sprint Retrospective** is a final meeting in the sprint that helps the team to reflect on the work that has been done and recognize areas to improve.

Poor project management might be stressful, as the task is directly responsible for the success or failure of a project.

During the stress management session, I learned a lot of strategies to deal with stress. I’ve highlighted a few of them below

**Physical exercise**: take a break and plan some physical activities to relieve stress.
**Meditation**: Meditation and breathing activities have demonstrated to be compelling in controlling stress.

In short, we need to practice resilience as it develops mechanisms for protection against experiences that could be overwhelming or stressful periods.

Thank you for reading!
Open source MERN survey APP for you to Learn and contribute
Tags: codenewbie, webdev, opensource, beginners
Published: 2021-04-09 21:02:18

[Github link here](https://github.com/shashankkatte/feedbackr-mern)

Feedbackr is an Opensource and free survey app. :memo:. Use it as a starter app to build your own custom feedback collection App or use it as your reference to explore a production ready MERN App.

If you are exploring MERN stack, this app will show you:

- how to use **React and Redux**

- Routing with **React routing**

- Using reusable **Redux Forms**

- Payments with **Stripe**

- **Google OAuth Authentication** with **Passport.js**

- Persisting data into **MongoDB** and using **Mongoose**

- Using **webhooks** 

- Sending Automated **Emails**

- **API key handling techniques** and  Deployment strategy with configs to **Heroku**

This is a very good App for you to practice your MERN Skills and contribute to opensource. See you there!

[Github link here](https://github.com/shashankkatte/feedbackr-mern)

The App is based off of learnings from great teachers like Stephen Grider, Brad traversy, Max - Academind, Freecodecamp and many more.
1,000.000 open source project under you belt
Tags: productivity, todayilearned, todayisearched, dev
Published: 2021-04-09 20:45:22

[the tool is here](https://python.hotexamples.com/)
I was trying to find a new function for a problem i was trying to solve then i faced this miracle search engine that would save ton of effort for any developer and i want to share it with you.

Also it would be a good opportunity to also share some tools that you find so much useful and increase your productivity.  

#here is one of the search examples "ordereddict"

it gives you the file which the code came from and also the open source project which contain this file.

![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/env54ncx4limgp1dipax.png)
 
##provived with related content in same language
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gw50y9heec4ogrhubxfo.png)

##even in other languages for extended usage
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jn7scc42z7xarbeohjjg.png)

 

##supported languages
**python, java, c#, c++, Go, Js, TS**

and there is the awesome search engine ready to find your lost piece to complete your project
[Click Here](https://python.hotexamples.com/)
How to integrate Contact Form 7 and Gravity Forms onto a headless WordPress instance
Tags: wordpress, buildwithheart, headlesswordpress, headless
Published: 2021-04-09 20:28:28

Fellow Codeable expert Mészáros Róbert just released a tutorial that shows how to integrate Contact Form 7 and Gravity Forms onto a headless WordPress instance. 

https://css-tricks.com/headless-form-submission-with-the-wordpress-rest-api/

Nice work mate!

This work should pair well with interests in Frontity and WP Engine's (Atlas Project)
Mini clon de Airbnb con TailwindCSS
Tags: css, tailwindcss, webdev, html
Published: 2021-04-09 20:10:53

Desarrollo de un pequeño proyecto que imita la página de inicio de Airbnb, programado usando TailwindCSS. 

![img](https://raw.githubusercontent.com/crisdux/crisdux-mini-clon-airbnb-tailwind-css-2020/main/img.jpg)

[link del repo aqui] (https://github.com/crisdux/crisdux-mini-clon-airbnb-tailwind-css-2020)

[Deploy](https://crisdux.github.io/crisdux-mini-clon-airbnb-tailwind-css-2020/public/index.html)
Two Sum solution.
Tags: beginners, algorithms, javascript
Published: 2021-04-09 19:11:06

[LeetCode problem #1 (Easy): Two Sum](https://leetcode.com/problems/two-sum/)

I recently encountered this problem in my first technical interview and I thought it would be helpful to share my solution with you guys! Below will be my naive solution, with the time complexity of O(N^2) and my second solution with O(N) time complexity utilizing the use of the hash table.

---

_**Description:**_
Given an array of integer nums and an integer target, return indices of the two numbers such that they add up to the target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

You can return the answer in any order.

---

_**Example:**_

| Example 1:        |           |
| ------------- |:-------------:|
| _Input_      | nums = [2,7,11,15], target = 9 |
| _Output_     | [0,1]      |
| _Expanation_ | Because nums[0] + nums[1] == 9, we return [0, 1].     |

| Example 2:        |           |
| ------------- |:-------------:|
| _Input_      | nums = [3,2,4], target = 6 |
| _Output_     | [1,2]      |

| Example 3:        |           |
| ------------- |:-------------:|
| _Input_      | nums = [3,3], target = 6 |
| _Output_     | [0,1]      |

---

_**Constraints:**_
* 2 <= nums.length <= 103
* -109 <= nums[i] <= 109
* -109 <= target <= 109
* Only one valid answer exists.

---

_**Initial Thoughts:**_
* We need to find a pair of numbers that qualify a target Z.
* We can visualize it as A + B = Z.
* We need to keep track of 2 indices at a time: A and (Z-A) indices and compare the values to the target.
* Each input only has 1 possible solution so we don't have to worry about edge cases.

---

**Javascript Naive Solution:**

```javascript
var twoSum = function(nums, target) {
    let result = []

    for(let i = 0; i < nums.length - 1; i++){
        for(let j = i+1; j < nums.length; j++){
            if(nums[i] + nums[j] === target){
                result.push(i)
                result.push(j)
                return result
            }
        }
    }
};
```

**Javascript Hash Table Solution:**

```javascript
var twoSum = function(nums, target) {
    let dict = new Object()
    let z = target
    for(let i = 0; i < nums.length; i++){
        let a = nums[i]
        if(!dict[z-a]){
            dict[z-a] = i
        }
    }

    let result = []
    for(let i = 0; i < nums.length; i++){
        if(dict[nums[i]] && i !== dict[nums[i]]) {
            result.push(i, dict[nums[i]])
            return result
        }
    }
};
```

**Explanation:**
* *First iteration:* each time we encounter a value, we would automatically calculate the remaining amount needed in order to reach the target (B and Z-A) and assign it as a key in our dictionary (dict). Its value would be the index of that number itself.
* *Second iteration:* check if that current value already existed in dict, if it existed and i is different from dict[nums[i]], return that pair of (dict[nums[i]], i).

**Example:** 
nums = [2,7,11,15]
target = 9
Our dictionary would be: ``{ '2': 1, '7': 0, '-2': 2, '-6': 3 }``
Output: ``[ 0, 1 ]``
Maquetado de Web Responsive con CSS Grid
Tags: css, html, webdev, cssgrid
Published: 2021-04-09 20:10:23

Maquetado de web básica usando CSS Grid. 
![img](https://raw.githubusercontent.com/crisdux/css-grid-ejemplo-basico-2020/main/img.png)

Github del proyecto: [aqui](https://github.com/crisdux/css-grid-ejemplo-basico-2020/)

Deploy: [aqui](https://crisdux.github.io/css-grid-ejemplo-basico-2020/index.html)

Tuturial en video: https://www.youtube.com/watch?v=VmHO_AjxHnQ&t=1024s