teleren/devto huggingface dataset:
🎞 EuroPython 2021: Edited videos of the second day available
Tags: videos, europython, python
Published: 2021-10-05 20:59:05

(Originally posted on https://blog.europython.eu/europython-2021-edited-videos-of-the-second-day-available/)

We’re happy to release another batch of 35 cut videos of [EuroPython 2021](https://ep2021.europython.eu/) covering most of [the second day sessions of the conference](https://ep2021.europython.eu/schedule/29-july). Together with the first day videos, we now have 77 videos waiting for you. You can watch them on [our YouTube channel](http://europython.tv/).

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vohwpcbx4wa6sqdldbcu.png)
 
We’ll release the final batch of EuroPython 2021 videos next week. In total, we will have more than 115 videos with lots of valuable and interesting content for you, so please stop by:

* check the [playlist](https://www.youtube.com/playlist?list=PL8uoeex94UhFuRtXhkqOrROsdNI6ejuiq) for more videos
* subscribe to [our YouTube channel](http://europython.tv/).

BTW: Our YouTube channel has videos of all EuroPython conferences going back to 2011. Check out more than [1500 Python videos](https://www.youtube.com/playlist?list=UU98CzaYuFNAA_gOINFB0e4Q&playnext=1&index=1) covering 10 conference years.

Enjoy,

[EuroPython 2021 Team](https://ep2021.europython.eu/europython/team/)
[EuroPython Society](https://www.europython-society.org/)
[EuroPython 2021 Website](https://ep2021.europython.eu/)
Diffrent Ways To Create A React Application
Tags: react, webdev, productivity
Published: 2021-10-05 20:50:47

## 1. Create-React-App

Provide a Simple Environment With All The Things Already Setup For You And You Just Have To Write Code.

Create React App doesn’t handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. Under the hood, it uses Babel and webpack, but you don’t need to know anything about them.

[**CRA Docs**](https://create-react-app.dev/)
> create new app with create-react-app
```
npx create-react-app appName
```

## 2. Vite

Same As Create-React-App It Provide All Configuration Out Of The Box. Also, It Supports SSR & SSG.

[**Vite Docs**](https://vitejs.dev/)
> To Create Vite App
```
npm init vite@latest
```

## 3. Next.js

Currently The Best Tool To Create SSR(server-site-rendered) & SSG(static-site-generation) For React. It Has Inbuilt Optimization That Makes Your App Run So Much Faster & Also If You Want To Add Serverless Function Next.js Also Provides That.

[**Next.js Docs**](https://nextjs.org/)
> To Create Next.js Application
```
npx create-next-app
```

## 4. Gatsby

Gatsby Does SSG And It Has Huge Plugin System To Support Gatsby Compile Your React Code To HTML-CSS So User Don't Have To Wait For Javascript And React To Load
[**Gatsby Docs**](https://www.gatsbyjs.com/)

> To Create Gatsby App
```
npm init gatsby
```

## 5. Razzle

It Is Serverside Rendering Framework As Well And This Provide Much More Flexibility.
[**Razzle Docs**](https://razzlejs.org/)

> To Create Razzle App
```
npm install -g create-razzle-app
```

## 6. `<Script>` Tags 

You Can Use Script Tags For React And After Importing That Your Code May Look Like This.

```javascript
const e = React.createElement;
return e(
  'button',
  { onClick: () => this.setState({ liked: true }) },
  'Like'
);
```
(**React Docs**)(https://reactjs.org/docs/add-react-to-a-website.html)

 *I Covered Major Ways To Build React App But You Can Setup Your Own System Like These.*
Guide to understand Flex-box in react-native (if you are a web developer)
Tags: reactnative, react, mobiledev, flexbox
Published: 2021-10-05 20:23:55

If you are coming from web development background and your ultimate goal is to learn react-native now then this flex-box cheat sheet guide is surely for you.

![cheatsheet-reactNative-flexbox](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fw9k9slia20atxnrqjyp.png)

As a react developer, I got slightly confused working with *flex-box in react-native*, so I created this cheat sheet 👆

There are few differences I want to conclude:
1. Flex-direction: row (by default in browser), Flex-direction: *column* (by default in react-native).
2. By default 'div' doesn't have flex in browser, whereas in react native's 'View' *flex-box* is already applied.
3. As you can see main points in cheat sheet, if you want to align things in *main-axis* then use *justifyContent*.
4. If you want to align things in *cross-axis* then use *alignItems*.

That's all for now, I hope you have enjoyed this :)
Ruby If-else and Case-when statements Explained
Tags: beginners, ruby, codenewbie, tutorial
Published: 2021-10-05 20:18:47

> Disclaimer: I am learning in public so please do correct me if I get something wrong

In some modern programming languages such as Javascript and Ruby, there are different ways of writing loops that will do specific things under different conditions. Two most common form of this are the if statements and the switch statements. These are not exactly the same but act quite similarly. Depend on the situation you might favour one over the other.

I am going to explain both using the same example. The example will be in Ruby since that's the language I'm learning.

We want to define a statement that returns what someone should wear under different temperatures (in Celsius):

An if statement will look something like this:
```Ruby
if weather > 30
  puts "Heat wave, stay indoor"
elsif weather (<= 30 && > 20)
  puts "shorts, T-shirt, sunglasses"
elsif weather (<= 20 && > 10)
  puts "jumper and long trousers"
else
  puts "wear a thick jacket"
end
```

Whereas a switch statement in Ruby looks like this:
```Ruby
case weather
when > 30
  puts "Heat wave, stay indoor"
when 21..30
  puts "shorts, T-shirt, sunglasses"
when 11..20
  puts "jumper and long trousers"
else
  puts "wear a thick jacket
end
```

In an if statement, anything can be the condition, it doesn't necessarily have to be the weather like we've defined above, for example, we can take an extra argument like this:

```Ruby
if weather > 30
  puts "Heat wave, stay indoor"
if weather > 30 && work_from_home == false
  puts "short sleeve and loads of sunscreen"
elsif weather (<= 30 && > 20)
  puts "shorts, T-shirt, sunglasses"
elsif weather (<= 20 && > 10)
  puts "jumper and long trousers"
else
  puts "wear a thick jacket"
end
```
here we added an additional argument called work_from_home that gives a true or false output if we are working from home or not. An if statement can handle configurations like this.

However, a switch statement takes the output of the case argument and see which switch condition it satisfies. So it is very useful if all the conditions are only dependent on one variable. In some cases, writing a switch statement can make your code cleaner if you have only one variable your statement depends on.

I hope you find this useful. Have a nice day!

Happy coding!
What if In-App Purchase costs were 5% instead of 30%?
Tags: ios
Published: 2021-10-05 20:00:30

Disclaimer: I am one of the founders of www.instant.sale!

Thanks to Epic Games® vs. Apple® (https://bit.ly/epic-apple), Apple® is required to allow alternatives to its own In-App Purchase by the end of 2021. We developed https://www.instant.sale, which can easily replace the native In-App Purchase and costs 5% instead of 30%.

Here are a few more highlights:
- international tax compliance
- familiar look and feel, but more features
- easy migration within minutes
- no lost conversions due to an integrated fallback

Go to https://www.instant.sale to learn more. Secure early access for your iOS® apps today.

We possibly answered a few of your questions at https://www.instant.sale/#FAQ. But don't hesitate to reach out. We are looking forward to all your questions and feedback!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ijllmv07fvr53yzadpqm.png)
Reading Data From Files Using Python
Published: 2023-04-23 11:21:04

---
title: Reading Data From Files Using Python
published: true
date: 2021-10-05 19:14:00 UTC
tags: 
canonical_url: https://chrisdevcode.hashnode.dev/reading-data-from-files-using-python
---

> Hi There! Welcome to Data 101.

In this article, I will take you through reading files using Python as you prepare to analyze them.

I will be using [Google's Colaboratory](https://research.google.com/colaboratory/) tool as my IDE. You don't have to install or set up anything on your laptop/computer to use it, simply go to https://research.google.com/colaboratory/ and create a new notebook.

# Reading CSV Files

You'll need to upload a data file. To do so, click on the folder icon on the far left of the Notebook:

![upload.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1633372078972/e0xilNfH3.png)

I will be using [airlines](https://docs.google.com/spreadsheets/d/1hipdEeKU6UBrCpzyLEF-Vj5F4nA8gCRLYJP50CKr-B0/edit?usp=sharing) and [airports](https://docs.google.com/spreadsheets/d/1fWIIVmxXSwahoB79rxRFRY2qQbaQpAED0fx_RKR1o20/edit?usp=sharing) CSV files

On the new Notebook, import [Pandas](https://pandas.pydata.org/). Pandas is a Python library that is used for data manipulation.

```
import pandas as pd

```

Since we have two files, let's create two variables with the path to the files:

```
airlines = pd.read_csv('airlines.csv')
airports = pd.read_csv('airports.csv')

```

The `.read_csv` from pandas library enables us to read the CSV files. (That simple!).

To view the contents of the files read, we'll use `.head()` from pandas that will return the first 5 rows of the data loaded.

```
airlines.head()

```

![airlines.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1633373312017/jmezcHP4h.png)

```
airports.head()

```

![airports.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1633373368025/4GYrU3cCq.png)

# Reading JSON Files

Get the file [airports.json](https://drive.google.com/file/d/1mYtu9mgykInL-FSQzugq9lIokbwShUAF/view?usp=sharing)

We'll create the path to the file:

```
airports_json = pd.read_json('airports.json')

```

To view the first 5 data objects:

```
airports_json.head()

```

![airportjson.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1633375000266/enC-lbCFG.png)

## Conclusion

This is probably the first-ever step into data analysis, and we nailed it!

Here is the whole demo file:

[https://github.com/achingachris/datasciencelearninghub/blob/master/data\_cleaning.ipynb](https://github.com/achingachris/datasciencelearninghub/blob/master/data_cleaning.ipynb)
Great Opportunity for everyone to explore open source-Hacktoberfest 2021
Tags: hacktoberfest, opensource, discuss
Published: 2021-10-05 19:03:30

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/suv08un90d94ibi6p5z7.png)
✨I have been participating first time in any open source program.As a beginner I would suggest everyone who are willing to explore open source and want to contribute on more than one projects, Do participate in Hacktoberfest and start doing contribution from basic projects if you are beginners otherwise there are lots of projects of different level in different languages. Anyone can choose projects of their choice. Here is the link of hacktoberfest topic from where you can choose projects of your choice of language.
https://github.com/topics/hacktoberfest2021 ✨ 
 

### Intro Heading
✨ I am a Passionate Learner and extremely passionate about development .Love to enhance my existing skills and gain new skills by exploring the technologies deeply. I love to work on more web development projects So, I had decided to explore more about open source to build up my skills and contribute to some innovative projects And **Hacktoberfest** is a great opportunity for me to start my open-source journey. I am very grateful to be a part of **Hacktoberfest 2021**.✨


### Progress

 Today,I am very happy to share that I have contributed to 3 projects and done five pull request and *four pull request* got merged. Now, I am Looking Forward to contribute more to medium and hard level of projects. ✨✨

### Contributions

 **Some of the beginners level repository to contribute:**

    https://github.com/BlackTimber-Labs
    https://github.com/SahityaRoy/E-Learning-freesite 
    https://github.com/SauravMukherjee44/Aec-Library-Website 
    https://github.com/Eduhub-Community/eduhub-website   

### Reflections
✨ I had no idea about open source before my first pull request got merged but after doing 2 contribution on regular basis with consistency I started enjoying doing open-source contribution. It gives me a great opportunity to learn from others and enhance your thinking skills by sharing each other ideas together. 
I am very thankful to Hacktoberfest team to give us this opportunity and As a participant I want to say more thanks to all the mentors for your support and kindness✨

**Beginners just do these few points to start your Open source journey**.

* Register yourself on Hacktoberfest
* find projects of your choice.
* Find the issue in your choosen projects.
* start working on projects.
* create pull request.
* your first pull request get merged.yayyyyy!!!
 
Find the issue and Solve that issue ✨
Happy Coding!
Thank you for reading:)
Follow me for more.
Short Floor (to Integer)
Tags: javascript
Published: 2021-10-05 18:53:30

```js
console.log(~~6.62606889);
console.log(0|6.62606889);
console.log(0^6.62606889);
 
console.log(Math.floor(6.62606889));
console.log(parseInt(6.62606889,10));
```

Can you think of any other ways to floor?
Open-source multi-channel notification management library
Tags: javascript, node, news, hacktoberfest
Published: 2021-10-05 18:50:59

After years of writing a multichannel notification management systems from scratch for every project i've been involved with. Me and my partner in crime Tomer Barnea decided to solve this thing once and for all and created the opensource library called Notifire.

Are main goal is to abstract the heavy lifting of managing notifications in code, provide a single API to work with all communication providers (Email, SMS, InApp, Push). 

And later help with: Timezone awareness, priority, channel selection, templating, subscription management, in app widgets and etc...

Would to hear your thoughts about the API and library. Any help will be appreciated.

Our GitHub Page: [GitHub](https://github.com/notifirehq/notifire/)
Kubernetes - Force delete pod command
Published: 2021-10-05 18:36:35

In some case, a pod can take a lot of time before being deleted.

So here is the Kubernetes command to force the deletion of a pod.

> kubectl delete pod *<PODNAME>* --grace-period=0 --force --namespace *<NAMESPACE>*

*example*
```bash
kubectl delete pod nginx-0fec982 --grace-period=0 --force --namespace nginx
```

---

## Links
- Kubernetes documentation : https://kubernetes.io/docs/tasks/run-application/force-delete-stateful-set-pod/

--- 

I hope it will help you! 🍺
Introducing Grey Software
Tags: news, opensource, education, entrepreneurship
Published: 2021-10-05 18:36:33

Hi Dev Community :wave:! 

Since May 2020, I've been building Grey Software!

We are a not-for-profit organization registered in Canada :canada: that makes open-source products with students worldwide and publishes educational content along the way. 

## [Founding Story](https://grey.software/founding-story/)

Today, I published our founding story! 

I wrote about why I chose not to return to Google or UTM (University of Toronto Mississauga), and instead create an organization that would help educate the next generation of software creators.

## [Investor Pitch](https://grey.software/pitch)

We're seeking $50k+ in non-equity-dilutive funding from Angel Investors and Venture Capital Firms to help us continue our mission!

## [Philosophy](https://grey.software/philosophy/)

What does it mean for software to be Grey?

We define Grey Software as **software you can trust, love, and learn from.**

## Hacktoberfest

We'll be opening back up our [discord server](http://community.grey.software) soon to welcome Hacktoberfest contributors and scout contributors we'd like to contract for development work! Stay tuned :smiley:

## Credits and Gratitude

### Our [Team](https://grey.software/team) & [Sponsors](https://grey.software/sponsors)

I'm sincerely grateful to our [team members](https://grey.software/team) and [sponsors](https://grey.software/sponsors) who have made it possible for us to have the impact we've had so far. 

### The Open Source Ecosystem

The software world as we know it stands upon the foundations laid down by the open source world.

We are where we are because of the time, energy, and passion of contributors around the world.

We are sincerely grateful for our access to tools that help us create better software.
Learn how to build reactive systems using project Reactor and various Spring projects
Tags: microservices, database, reactnative, cloudskills
Published: 2021-10-05 18:34:33

Let's discuss how to build reactive systems using Project Reactor and various Spring projects.

{% youtube Lczq8wKrnuw %}

Cloud Collective is a meetup for technologists interested in the Cloud Native approach towards developing and deploying web & mobile applications, streaming analytics, ETL pipelines, microservices, containers, functions, and applying Infrastructure as Code principles for automating infrastructure on AWS, Azure, and Google Cloud.

In this recorded meetup, we're talking about reactive systems.

Already on the Cloud? What's next? Is reactive the next big thing? Let's discuss how to build reactive systems using Project Reactor and various Spring projects.

Topics Covered:
1. What is reactive and why go Reactive now (benefits with cloud)?
2. What is Project Reactor?
3. Building reactive microservice by declarative design using Spring Boot
4. Understanding reactive Spring Boot stack
5. Integrating with database using r2dbc and understanding the reactive web-client for external REST API calls
6. Live demo of conversion from a regular Spring Boot to a reactive project using webflux and r2dbc
7. Q&A at the end of the video

If you enjoyed this talk, join our cloud collective group here ► https://www.meetup.com/cloud-collective/ and participate in our next meetup!
Logout with RouteGuard and UrlTree in Angular
Tags: typescript, angular
Published: 2021-10-05 18:13:20

We all agreed about not manipulating data inside component or better to say presentation layer.

So I decided to put logout logic inside guard, this way I will be able to just call `logout` route and done!

For this I've configured my authentication module routes like this:
```typescript
{
    path: 'login',
    component: AuthComponent,
    data: { registering: false }
  },
  {
    path: 'register',
    component: AuthComponent,
    data: { registering: true }
  },
  {
    path: 'logout',
    component: AuthComponent,
    data: { registering: false },
    canActivate: [LogoutGuard]
  }
```

`I love to keep things as simple and low as possible` 😁

For log out I've added `canActivate` field and passed the `LogoutGuard`, the guards have the ability to return `UrlTree`. It is awesome, let's see how the guard implemented:

```typescript
@Injectable()
export class LogoutGuard implements CanActivate {
  constructor(private store: Store, private router: Router) {
  }

  canActivate(): UrlTree {
    this.store.dispatch(logout());
    return this.router.createUrlTree(['auth', 'login']);
  }
}
```

That's it!

The `canActivate` method is dispatching `logout` action from `NgRx` solution and then returning the URL tree which is created using `Router` from `angular/router` library!

After this, all we need, any where in the APP we can just redirect user to `auth/logout` and expect it work as expected and user will automatically will be redirected to `auth/login` route.


Thank you for reading 🙏🏽
Hope you liked ☕
My bio
Published: 2021-10-05 18:03:20

---
title: My bio
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---
Hello, my name is Baboi and I'm a technology lover.
I'm now working for the justice at Superior Council of Magistracy of the Public Ministry and in my free times I learn new technologies and develop solutions to help the society.
9 questions to ask nontechnical folks before working on a project
Published: 2021-10-05 17:58:40

#### 1/ What's your website do today?

Encourage them to complain about what's frustrating them. Learn their true problems. 

Once done, repeat their problems back to them.

#### 2/ What does your ideal website accomplish? 

Wrong Answer: "It gets more customers."
Right Answer: “It enables us to sell our products to people who live far from our store location.”  

Learn their ideal end-state. Repeat it back to them. They'll love hearing you understand.

#### 3/ Can you tell me more about X? 

Keep them talking with phrases like:

What do you mean?
Why is it done that way?
How do you like that? 

Extract as much as possible about their pains, needs, and use-cases.

#### 4/ Who's responsible for design?

Clarify that design is separate from development.  

Are you responsible for design? Do you have to find the person? Are they giving you a design?

#### 5/ How many different component & page layouts?

Devs are infamously optimistic. 

Use the number of layouts to help estimate your project timeline. 

You should overestimate the time you think it'll take on every project — even double it! You may still be under.

#### 6/ Who's responsible for content?

Content is a beast of its own.

Make sure it's crystal clear exactly who owns content creation. Add that to your estimates.

#### 7/ What 3rd party services will we use?

It's likely they won't have an exact answer.

Audit their existing site, propose services based on their needs, and recommend tech based on what their in-house teams may be using.

#### 8/ How will we communicate during the project?

Check-in consistently — even if you don't have an update.   

Simply message them, "No new updates since we chatted last." They will appreciate it and you may get new info from them.

#### 9/ Offer multiple tiers.

Offer 3 tiers of solutions from "everything and more" to "just the basics." 

Let them move items around and customize their own tier. This will help you land more deals because you give the client flexibility.

--

Thanks for reading!

If this helped you, let me know by giving the article a like. :-) 

Also, I'm building a website builder for NextJS. If you're interest in testing it out email me at ryland@stackbit.com.

❤️ More articles to come!