teleren/devto huggingface dataset:
Data types in python
Tags: python, 100daysofcode, programming, productivity
Published: 2022-05-25 16:34:05

Today we are goint to discuss about the basic datatypes in python
lets discuss 

## What is Data type
Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data.

## What are the basic datatypes in python ?

- int
- float
- string
- boolean

**Int** is type of integer numbers without decimal points, it can be less than or greter than orequal to zero.

if we declare a variable with integer values its type will be int,

```python
a = 10;
b = 20;

#type of a and b is int
```

**float** is type of numbers with decimal points, it can be less than or greter than orequal to zero.

if we assign a number with decimal points to a variable, its type will be float,

```python
a = 10.5;
b = 20.4;
c = 3.14

#type of a and b and c is float
```

**string** is type of sentences or phrase declared and wrapped within single or double quotes. When we display a text with the `print()` function the output itself is a string.

```python
a = "hello world"
```
here the type of `a` is string.

a string is a sequence of characters, we can calculate the total number of characters present in a string.
to calculate the total characters present in a string python has a built-in function `len()`

```python
total_Characters = len("hello world")
print(total_characters)
```

```
output: 11
```
We can pull out specific character from a string, its called subscripting.

```python
text = "hello world"
print(text[0])

# text[0] means the the first characters of a text string,
in python or any other programming language 
the counting or first index starts with 0 (zero)
```

```
output: h
```

**Boolean**  type of variable holds only two values `True` or `False` we use booleans to check if any specific expression is true or false. Its used in conditonal programming.

```python
first_answer = True
second_answer = False

```
here the `first_answer` holds a Boolean type value `True` and the `second_answer` holds the `False` value

## How to check type of variables or values
to check type of variables python has a built-in function `type()`

```python
a = 100
b = 10.50
c = "i am a string"
d = True

print("The type of a is", type(a))
print("The type of b is", type(b))
print("The type of c is", type(c))
print("The type of d is", type(d))
```

```
output:
The type of a is <class 'int'>
The type of b is <class 'float'>
The type of c is <class 'str'>
The type of d is <class 'bool'>
```

---
If you like the content and want to get updates on more post like that please follow me @rhythmsaha

here are my social profiles
- github:[@rhythmsaha](https://github.com/rhythmsaha)
- linkedin: [@rhythmsaha](https://www.linkedin.com/in/rhythmsaha/)
- twitter: [@_rhythmsaha](https://twitter.com/_rhythmsaha)
Do I need to add license keys?
Tags: javascript, webdev, programming, react
Published: 2022-05-25 16:21:43

Hello Dev Community!

After developing websites for a few years, I was wondering if I should close source my backend. I know that leaving it open source is great because people can find bugs, help patch things, etc. But my reasoning for making it closed source is people have stolen my backend. I also want to start making money off of the API that the backend uses, so should I add license keys as well?

Thanks!
One-on-One Meeting Template
Tags: leadership, management, productivity
Published: 2022-05-25 16:09:19

**1:1s are one of the most important tools you have as a manager. Use this template to create a shared agenda with your team member or manager to easily track decisions, topics, actions.**

## Overview 

One-on-one meetings continue to be the single best tool for a manager to build rapport, ensure alignment, and keep team members active and engaged in their work. They're also one of our favorite topics. 

Throughout my years as a manager, I took various approaches to one-on-ones. 

I tried keeping them very informal, but that caused us to miss important topics from time to time. 

I tried adding more structure, but then one-on-ones became more like status meetings. 😱

What I've found to have the best balance is surprisingly simple. Use a shared document (like a Google doc) that you and your team member both have edit access to. Each of you should add discussion items throughout the week in advance of the meeting. Use a basic structure to make sure important topics are discussed, including priorities and blockers and also career and personal discussions.  

When you meet, have the document open and use it to guide the discussion as well as record notes, decisions, and action items. This way you can easily refer back to the document if you need to refresh your memory and nothing gets lost. 

Each time you meet, use a new entry in the document to keep a chronological record of conversations. 

If you want to try this with your team, we have a simple template that can be used to help you get started. There are actually two versions available of this template. One that is the blank template, and one that has example content filled out to help you see how the template should be used.

Give it a try and don't be scared to tweak the format to whatever works best for you and your team!  


## Template Downloads

* [Download the blank template](https://docs.google.com/document/d/167-yJncq_hUuOPBpOL68pBdMDIhS3Dx8ezNH7TMca0w/edit?usp=sharing)
* [Download template with example content](https://docs.google.com/document/d/1y756TVCHSW2p5de_s4Eg4s8MosKEjd3Hdt1MynTvh7o/edit?usp=sharing)
10 Useful Automation Scripts You Need To Try Using Python
Tags: python, programming, productivity, beginners
Published: 2022-05-25 16:04:24

Automation is changing the lifestyle of people around the world. It is helping industries grow much faster without the need for manpower. One of the biggest industries that are being upgraded by Automation is Software Industry. Developers Around the world create and share software that helps reduce the time consumption for a process. Python is a leading language for producing automation scripts. It provides syntax with lots of tools and libraries that support writing automation scripts. In this blog, We are going to take a look at 10 useful automation scripts you need to try using python.
1. Wikipedia Automated Article Summaries
2. The New Way To Share Social Links ♻
3. Track Spam Number
4. Make Your Images Better
5. HTML Email Sender
6. One-Click Is All You Need (To Run Python)
7. Automate Product Marketing
8. Encrypt Your Passwords
9. Edit Videos The Pythonic Way
10. Clean and Analyze Text Super Quick

[Check The Full Article Here](https://medium.com/pythoneers/10-useful-automation-scripts-you-need-to-try-using-python-de9c993f1f5)
How did your company re-onboard you after parental leave? Did you feel welcomed back?
Tags: discuss, career, anonymous
Published: 2022-05-25 15:53:02

_This is an anonymous post sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough posts to write. Email sloan@dev.to if you'd like to leave an anonymous comment or if you want to ask your own anonymous question._

***

My partner and I are currently both on parental leave. It's been wonderful (and crazy, hectic, we exist in a constant state of exhaustion) to be at home with our little one! But as the months approach, the anticipation of returning to work has been on the rise, and so has my anxiety. 

I don't know what to expect upon return - will I be caught up to date on everything I've missed? Will all my responsibilities still be there for me to take over again? Or what if all the work I've done in my role has been undone, and I need to re-learn everything? I'd love some insight into this - as a new parent, it's definitely been on my mind, and any words of advice would be very appreciated.
PID: the P as in Proportional
Tags: opensource, microservices, devjournal, luos
Published: 2022-05-25 15:43:35

In this post we will discuss about how PID control works with DC motors.
⏩ https://www.luos.io/blog/pid-the-p-as-in-proportional

We divided the whole thing: one letter for one post. As PID has 3 letters, let’s start with the P as in Proportional.

Follow the guide and read the following post where we will talk about Integral, the I in PID.
Enabling communities to learn with CodeSandbox and IngressiveForGood
Tags: community, webdev, learning
Published: 2022-05-25 15:42:41

---
title: Enabling communities to learn with CodeSandbox and IngressiveForGood
published: true
description: CodeSandbox in collaboration with Ingressive4Good supporting developers in communities to build and learn new skills. 
tags: community, webdevelopment, learning
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1q7e1t77aw1z8eizffei.png
canonical_url: https://codesandbox.io/post/learning-with-ingressive-and-codesandbox
---

CodeSandbox is on a mission to empower web developers and make it easy to build solutions that can change the world. 

For this reason, we partnered with [Ingressive4Good](https://ingressive.org), a non-profit developer community from Lagos, Nigeria that launched in July 2020 with a bold mission to train 1 million African youths with tech skills. 

We had a month-long challenge for members of the Ingressive4Good community to build solutions for a problem statement using CodeSandbox.

### Problem Statement
Ingressive4Good noticed a challenge amongst their smaller community organizers - which included tools to help promote their events. Having a local platform where users can create and share personalized event Display pictures (DP) would increase their campaign reach and also give events more visibility.

The goal was to identify the top 3 individuals/teams that will be able to build a solution for this in the specified time period. 

### The Challenge
Over 290 people applied with 155 active participants for the duration of this challenge and these are the top projects.

It's been an amazing experience for the participating developers and some have gone on to share their [experience with the challenge](https://medium.com/@kamaldeensulyman99/my-experience-about-i4g-hackathon-1ed364b3eb23).

### Winners 
#### Team Eagle

Team Eagle was excited about the opportunity to work together and collaborate on this project, as they explored delegation, helping one another out and feeling like a team.

{% codesandbox e2esev %}

#### Team Bracket

Team Bracket shared their enthusiasm about the learning they embarked on as they strived to build a useful product in the time frame specified. 

{% codesandbox 6bsh23 %}

#### Team iCreate

Team iCreate like the rest of the other teams shared how they embarked on a journey of learning and collaboration and look forward to making their application production ready in the near future.

{% codesandbox 64irzk %}

We are thrilled to have been a part of this challenge and also looking forward to enabling members of the developer community to learn and collaborate as they build amazing products.

Stay up to date with [@CodeSandbox](https://twitter.com/codesandbox) and [@Ingressive4Good](https://www.twitter.com/Ingressive4Good) on Twitter.
Getting Started With Embedded Development Using Rust and Arduino
Tags: rust, arduino, embedded
Published: 2022-05-25 15:42:16

Using rust for embedded development is much more easier than setting up a C/C++ environment now. You will be able to program and flash your firmware to an Arduino in just a few minutes.

First setting up an environment may take a little while and then it is as swift as cloning a repository. Let's jump to the initial environment setup.

- Run this to install AVR compiler and library header files

```
sudo apt install avr-libc gcc-avr pkg-config avrdude
```
- We need cargo-generate to get project template from git

```
cargo install cargo-generate
```
- Also to run the program once you compiled it you can use the ravedude cargo package

```
cargo install ravedude
```
That's all. The configuration part is over.

Now whenever you want to start a new project you can just run 
``` 
cargo generate --git https://github.com/Rahix/avr-hal-template.git 
```

You will be prompted to enter a name for your project, and the board that you have.(Arduino Uno, Mega etc.,)

``` 
cargo run 
``` 
will build and flash the program to your embedded system but before running it you need to tell the ravedude which of your serial port is connected to arduino.
```
export RAVEDUDE_PORT=/dev/ttyUSB0
```
Replace ttyUSB0 with the name of the port your arduino is connected to. 

Once the default project from the template is flashed you will be greeted with the blinking led in your arduino. You can edit the `src/main.rs` file to control the Universe... Nope! Just your Arduino.:smile:
That's how easy it is to start programming embedded systems in Rust. 

P.S: I am new to blogging so if you find anything odd in this blog let me know.

Image Credit: https://commons.wikimedia.org/wiki/File:Arduino_Leonardo_PCB.jpg
Back to Back #13 - Back-end news by SFEIR
Tags: newsletter, french, cfp, backend
Published: 2022-05-25 15:27:34

_Comme chaque dernier mercredi du mois, les experts de SFEIR publient la newsletter back-end. Retrouvez la sélection d'articles sur les microservices, les APIs, les bases de données…_ 🕑

---

### 🧵 [The Beginner’s Guide to Kotlin Coroutine Internals](https://doordash.engineering/2021/11/09/the-beginners-guide-to-kotlin-coroutine-internals/)

Cet article est un guide sur les coroutines. Après une présentation du principe des coroutines et de l'ordonnancement, on plonge en profondeur dans la bibliothèque Kotlin jusqu'au bytecode.

### 🆕 [Top 3 Radical New Features in Python 3.11](https://betterdatascience.com/python-311-whats-new/)

La version 3.11 de Python n'est pas encore sortie mais nous connaissances déjà les nouveautés grâce aux release candidates. [Dario Radečić](https://betterdatascience.com/about/) revient sur trois de ces changements.

### ☕ [Java News Roundup](https://www.infoq.com/news/2022/05/java-news-roundup-may16-2022/)

Ce bulletin résume les dernières actualités dans l’écosystème Java. Notamment, on y retrouve la sortie de la version 2.7.0 de Spring Boot, des informations sur la JDK 19 en early access ou les hotfixes pour Tomcat.

### 🅱️ [Building a Wordle Game Using Test-Driven Development in 25 Minutes](https://hackernoon.com/building-a-wordle-game-using-test-driven-development-in-25-minutes)

Pour finir, [Maximiliano Contieri](https://twitter.com/mcsee1)  nous montre comment l’application du TDD peut aider à développer pas à pas la mécanique d’un jeu comme Wordle. Les cas et les tests s’enchaînent jusqu’à aboutir à une solution valide.

---

### 🎟️ CFP et événements
Comme chaque mois, retrouvez les _calls for papers_ ouverts ! C’est le moment de proposer vos talks pour :
- [Cloud Nord](https://conference-hall.io/public/event/wGVYkl21UFxeiuakhKfu), CFP ouvert jusqu'au 31/05 
- [DevFest Nantes](https://conference-hall.io/public/event/CfucIjaXxrZThJE0POR3), CFP ouvert jusqu'au 19/06 
- [DevFest Strasbourg](https://conference-hall.io/public/event/wgaja45IBdGT4sw4CXDB), CFP ouvert jusqu'au 30/06
- [JUG Summer Camp](https://conference-hall.io/public/event/Ag6h1yHTsrdzHsPni5o9), CFP ouvert jusqu'au 01/07 

---

_On se retrouve le mois prochain pour partager de nouveau les pépites du back-end._
Paracetamol.js💊| #125: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2022-05-25 15:13:55

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```html
<!--HTML-->
<button id="vibrar">Vibrar</button>
```

```js
//JS
const v = document.querySelector("#vibrar");
const salida = v.addEventListener('click', () => {
  window.navigator.vibrate(1000);
})
```

A. Hará que el dispositivo vibre por 1s sin dar click al botón.
B. Hará que el dispositivo vibre por 1s después de presionar el botón. 
C. `undefined`
D. La API `Vibration` no existe en JS. 

Respuesta en el primer comentario.

---
A Free and Open-Source Responsive Portfolio Template built with Astro.js and React
Tags: react, webdev, showdev, javascript
Published: 2022-05-25 14:37:41

A Free and Open Source Responsive Template for Portfolio and Blog built with Astro.js and React styled with Tailwind CSS. Here is a screenshot:

![Astro boilerplate template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3o96iadeieqqljwuo81j.png)

Here is the screenvideo:

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

Or, you play around a live demo at: [Astro boilerplate Live demo](https://creativedesignsguru.com/demo/astro-boilerplate/)

The source code is hosted on GitHub at [Astro Boilerplate GitHub](https://github.com/ixartz/Astro-boilerplate). The project is built from scratch and recently released. So, every GitHub ⭐ counts!

The project includes everything you need for your blog with:

- Sitemap.xml
- Feed RSS
- Robots.txt
- Pagination
- Typography
- Syntax highlighting for code
- Markdown
- Image lazy load
- Newsletter component

{% embed https://github.com/ixartz/Astro-boilerplate %}
git merge ours
Tags: git
Published: 2022-05-25 14:19:11

---
canonical_url: https://waylonwalker.com/til/git-merge-ours/
cover_image: https://images.waylonwalker.com/til/git-merge-ours.png
published: true
tags:
- git
title: git merge ours
---

Sometimes you have a pretty old branch you are trying to merge into and you are absolutely sure what you have is what you want, and therefore you don't want to deal with any sort of merge conflicts, you would rather just tell git to use my version and move on.

## update main

The first step is to make sure your local copy of the branch you are moving into is up to date.

``` bash
git checkout main git pull
```

## update your feature branch

It's also worth updating your feature branch before doing the merge. Maybe you have teammates that have updated the repo, or you popped in a quick change from the web ui. It's simple and worth checking.

``` bash
git checkout my-feature git pull
```

## start the merge

Merge the changes from main into `my-feature` branch.

```
git merge main
```

Now is where the merge conflict may have started. If you are completely sure that your copy is correct you can `--ours`, if you are completely sure that
`main` is correct, you can `--theirs`.

```
git checkout --ours .
git merge --continue
```

This will pop open your configured `git.core.editor` or `$EDTIOR`. If you have not configured your editor, it will default to vim.  Close vim with `<escape>:x`, accepting the merge message.

Now push your changes that do not clash with main and finish your pr.

```
git push
```

If you liked this one checkout [git-find-deleted-files](https://waylonwalker.com//til/git-find-deleted-files) to find all the files you have deleted, but still exist somewhere in git.


## Discuss

Do you use --our/--theirs?  With merge or maybe even rebase?
Epinio: the open-source Application development engine for Kubernetes
Tags: kubernetes, devops, opensource, news
Published: 2022-05-25 14:17:15

In the modern tech world, whenever we speak about Cloud and containers, Kubernetes is what comes to our mind for scaling and building robust and secure infrastructure. Kubernetes by and large is becoming the de-facto standard for container orchestration.

But with the pros and benefits, Kubernetes had its own share of challenges, One it is not simple. Secondly, it has a steep learning curve and doing it right is a full-time job.

Many times we see that Kubernetes as a tool or technology is chosen by the DevOps or the Cloud Ops teams and poor Developers are left to their mercy to learn and work with Kubernetes. In my opinion, the Devs should spend their productive time working on their applications, not learning and doing operations.

This is where we have another open-source tool coming our way, Opinio (contributed and maintained by SUSE team). It is a platform for app developers that works well with Kubernetes, basically a Kubernetes-native platform as a service (PaaS). It is a handy tool for Devs who want a system that plays well with native Kubernetes and is light enough to use on their desktops. Epinio aims to make it easy for every organization to have a platform to satisfy developers.

If you visit the Opinio site, their tagline says **_“Tame your developer workflow to go from Code to URL in one step.”_**

Epinio installs into any Kubernetes cluster to bring your application from source code to deployment and allow for Developers and Operators to work better together

Epinio can be installed using Helm onto any compliant Kubernetes Cluster. The latest CLI release can be found at [][https://github.com/epinio/epinio/releases]

**_What problem does Epinio solve?_**

Epinio makes it easy for developers to iterate on their applications running in Kubernetes. Easy means:

- No experience with Kubernetes is required
- No steep learning curve
- Quick local setup with minimal configuration
- Deploying to production similar to the development

**Useful Reference Links:**

[https://github.com/epinio/]

**Epinio Installation: **
[https://docs.epinio.io/installation/installation.html]

**PS: this post was originally published at : **

[https://medium.com/@DevopsFollower/epinio-the-open-source-application-development-engine-for-kubernetes-28417d1c01d5]
Tape - Video Messaging for Teams | Made with Vue JS
Published: 2022-05-25 14:13:28

![Tape - Video Messaging for Teams | Made with Javascript | Vue JS](https://res.cloudinary.com/madewithjavascript/image/upload/v1652851161/large_tape_made_with_vue_js_34e2a879ef.png "Tape - Video Messaging for Teams | Made with Javascript | Vue JS")


### Communicate with your team by recording and exchanging videos of your screen and webcam in threads

> Meet Less and Create More 👨‍💻
> 
> Share, discuss and collaborate by recording and exchanging short videos of screen and face - 🚫 No extension required.
> 
> ### Less Meetings - More Creating
> Replace meetings with threaded video messaging - No installation required.
> Record and exchange short videos of your screen and face with just a couple of clicks.
> 
> ### Get things done, on your time
> Free yourself from scheduling to get things done by recording and sharing your work, feedback, or questions.
> 
> ### Never miss a thing
> One topic, one thread. Unlike Slack channels, you can understand what’s new and what to follow up on in a split second.
> 
> ### Minimize interruptions
> Assigning who to follow up on leads your team to stay productive and focused.
> 
> 

## Check out more such amazing projects on our website

[Made with Javascript](https://madewithjavascript.club)

## Want us to feature your project

[Submit your Project to Made with Javascript](https://madewithjavascript.club/submit-project)


You can also write to us for any of your queries at:

[Email Made with Javascript](mailto:madewithjavascript@gmail.com)

## Project already shared on our social media handles.

| SocialMedia | SharedLink |
| ----------- | ---------- |
| Twitter | [Tape - Video Messaging for Teams on Twitter](https://twitter.com/withjavascript/status/1529464211239325698?s=20&t=xZeyTfZ3tdo67VSPLA-SZw)
 |
| Medium | [Tape - Video Messaging for Teams on Medium](https://medium.com/@madewithjavascript/tape-video-messaging-for-teams-made-with-vue-js-99fdff04d354)
 |
| Facebook | [Tape - Video Messaging for Teams on Facebook](https://www.facebook.com/madewithjavascript/posts/pfbid0voQsPedpZQECJk8WSXvirF4QnCSo73yBSg9RQ1mtGA6EGyQyx61cDPUpgLcKgtj1l)
 |
| Tumblr | [Tape - Video Messaging for Teams on Tumblr](https://madewithjavascript.tumblr.com/post/685231770582532096/tape-video-messaging-for-teams-made-with-vue)
 |
| LinkedIn | [Tape - Video Messaging for Teams on LinkedIn](https://www.linkedin.com/feed/update/urn:li:activity:6935230415662104576)
 |


Filled Under:

 - [Made with Javascript](https://madewithjavascript.club)
 - [Made with Vue JS](https://madewithjavascript.club/categories/vue-js)

Make sure to give this post ❤ 50 ❤ hearts, click the 🦄 unicorns 🦄 and follow 👉 @madewithjavascript 👈 for more such awesome showcases. Show you love for the people who have worked so hard!