teleren/devto huggingface dataset:
How do I see the world of programming?
Tags: codenewbie, programming, computerscience, html
Published: 2020-11-11 18:46:21

**What is programming to me?**
I feel programming from a different perspective it is something that motivates me as far as I go deep into it. It drove me to different dimensions. The world of programming is pure, whenever one of us learn something even it is creating a simple HTML file containing headings and paragraphs all others appreciate it. Which generates a spark in ourselves.

**What I gained from it?**
Besides getting appreciation from the surrounding whenever I complete any task I get extremely overjoyed. The thing that I love about programming world is the feeling of pleasure that jump into myself whenever I get the solution of the problem or my code starts working. Learning even a single tag or property gives me encouragement and self-confidence.

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

**When did I fall into love with programming?**
I was a student who never loved studying computer science before September 2019. Before that, I just use my PC for watching movies or sometimes looking at childhood pictures.
Before starting my university, I was not having an educational task, searched for free courses of “Computer Science” on top there was **“CS50 Introduction to Computer Science”**. “Oh introduction, I should do it as I don’t know anything about computer science...”, I said to myself.
As I got into the course I realized I started loving programming and this is just because of David J. Malan. His way of teaching is marvellous. Even solving problem sets took me more than a week but every second I spent on them taught me a new lesson.
My first Hello, World code.

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

**What am I doing now?**
Knowing that I love doing programming I decided to choose computer science as my undergraduate course. Till now I have learned the basics of HTML, CSS, js, C and C++ and currently, I’m working on tasks related to HTML and CSS to improve my coding skills as my side work and in the institute, I am learning c++.
My first app [feedback] 
Tags: javascript, vue, typescript, pwa
Published: 2020-11-11 18:40:38

Hi everyone, I'm new here a this is my first post on a dev platform.

Long story short, I'm studying to become a front end developer, so I built my first app to learn more about Vue and because I wanted to try out typescript for the first time.

I'm unsure if it's good enough to use it as portfolio and start applying for junior front dev jobs.

Here's the link:
https://danielratmiroff.github.io/project-management/#/

I wanted to ask you for some feedback, and your thoughts of course :) 

What would you think?
Welcome Thread - v99
Tags: welcome
Published: 2020-11-11 18:36:06

---
title: Welcome Thread - v99
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
canonical_url: 
---

![Brooklyn Nine Nine Welcome](https://media.giphy.com/media/XD9o33QG9BoMis7iM4/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Auto Dark/Light Theme using CSS Only!
Tags: css, webdev, tutorial, html
Published: 2020-11-11 17:47:34

You no longer need theme switcher buttons, or some crazy javascript to determine what theme a user wants, because a user's computer, or browser rather, knows what theme they want!

Modern browsers like Firefox and Chrome support dark mode. Along with supporting dark mode, they also tell the website what theme is currently being used. Sites like [duckduckgo](https://duckduckgo.com) use this information to automatically switch this theme based on your browser's theme, and you can get this information using CSS! Let's see how

## A simple website.

I'm going to make a simple website that uses 2 colors, one for the background, and the other for text. 

```html
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Automatic css theme switcher</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <h1>My amazing website!</h1>
    <p>It looks so good right?</p>
  </body>
</html>
```

## The CSS

We're going to use CSS Variables (yeah I bet you didn't know CSS had support for variables) for this. In the `:root` selector, we define our variables, and we can use it everywhere else. Hence, when we change these variables, the color of the website changes. We change these variables using a certain `@media` selector called `prefers-color-theme`. Let me show you the code:

```css
/* style.css */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap");

:root {
  --text: #000;
  --bg: #fff;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #fff;
    --bg: #000;
  }
}
```

Hence, using the `@media` selector, we're changing the theme based on the users settings. Let me show you a demo:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2tkozbxo78zfp13fsfk3.gif)

## Code and Playground

I wrote this code on [CodeSandbox](https://codesandbox.io), so you can easily use the code in your projects. In fact, you can use it here!

{% codesandbox ski9k %}
S3A on Spark
Tags: spark, pyspark
Published: 2023-04-29 22:26:34

---
title: S3A on Spark
published: true
date: 2020-11-11 18:21:32 UTC
tags: spark,pyspark
canonical_url: https://mikestaszel.com/2020/11/11/s3a-on-spark/
---

Quick post mostly for my own reference since I always need to re-learn how to do this. This used to be more difficult in older versions of Spark, but on 2.4/3.0, all you have to do is:

<!--kg-card-begin: markdown-->
```
wget https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk/1.7.4/aws-java-sdk-1.7.4.jar -P $SPARK_HOME/jars/
wget https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/2.7.3/hadoop-aws-2.7.3.jar -P $SPARK_HOME/jars/

```
<!--kg-card-end: markdown-->
How we do iOS at Pipedrive
Tags: ios, blogging, pipedrive, process
Published: 2020-11-11 18:13:12

---
title: How we do iOS at Pipedrive
published: true
description: ... plus some additional thoughts
tags: ios, blogging, pipedrive, process
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/w3suyxbrdyuiwx6cz0ny.png
---

We have our own [engineering blog](https://medium.com/pipedrive-engineering) at Pipedrive. It's a great way for anyone in the company to get some practice in writing and share stories about our achievements and learnings.

[I did my part of a contribution as well and described our iOS release train process and overall flow of Pipedrive mobile team daily work.](https://medium.com/pipedrive-engineering/welcome-aboard-the-pipedrive-ios-release-train-40fd9123ceac)
To make sure that text is better discoverable, I won't be duplicating it here, so please check it out in our company blog.

## Some thoughts about writing

I hear a lot from people near me, that they are afraid of expressing their thoughts in written format, and especially sharing it afterward.
In the age of Instagram, Twitter, and TikTok, creating and sharing short content, visual, or 280-character long can take a few minutes. And once done, you start getting feedback right away in a form of likes and comments. Easy to produce and easy to consume, that kind of content took over regular blogging and demotivates people from sharing their real thoughts. The feedback loop for self-expression via writing more extended texts is much longer. It requires much more time to produce and to do concentrated work for a considerable amount of time. With attention span decreasing yearly, and multitasking cult taking over, this can become the challenge.

But the truth is that writing… is easy. Sometimes I hear that people won’t bother writing because no one will read it at all. Or they are afraid it won’t be interesting to anyone once published.
As Scott Hanselman mentioned in [one of his awesome talks](https://youtu.be/V4NJo2Mfvrc?t=2508), your post needs only one more reader to double the keystrokes that you spent writing it, thus already doubling the value.

The key here is to not care about it at all. Just choose any topic that you feel confident in, or that you care about, and try to express your thoughts. As soon as few sentences are ready, there is a high chance that you will get into the flow. Meanwhile, don't try to check your social networks every 5 minutes and put your phone into DnD mode. Noise-canceling headphones with your favorite tunes will help as well.

Just try it out and don't be afraid to share the result afterwards!
My Experience on Hacktoberfest 2020
Tags: hacktoberfest
Published: 2020-11-11 18:12:44

**About Me**
Hi everyone!! 
Although,am new to this community but am very much excited to share my experience on Hacktoberfest 2020.So, I got to know about this community through DigitalOcean's Hacktoberfest 2020.Coming to my profile, currently am pursuing my B.tech in 3rd year on Computer Science and Engineering.I am very much interested in development field and always eager to learn new technology related stuffs.I joined this community to get inspired and learn many such tech related stuffs which am yet to explore.I hope I will be able to learn a lot from this community.

I am very much thankful to DigitalOcean for giving me the opportunity to share my experience on Hacktoberfest 2020.

**Background**
This year I participated in Hacktoberfest and it was my first time experience in Open Source Contribution. I am a beginner to intermediate level coder.I use to take participation on coding contests like Codechef long challenge. As mentioned earlier, I am very much interested in development field like app and web development and have done a few courses and projects in these fields.

**Progress**
I am contented to share that I have successfully completed all my four PR's and those were also merged with the master branch of the repository I had contributed to. Also, all the PR's got reviewed successfully. I got to learn more about how to do Open Source Contribution through this event.I am happy that although I am new in this field still I could manage to complete my four PR's and hope to get more such opportunities to learn and explore new things.

**Contributions**
The following four PR's are the list of contributions which I have made in this year's Hacktoberfest.

1.Added four course list in the repo *mega-course-recommender*.
  Link:
  https://github.com/arpancodes/mega-course-recommender/pull/150
2.Added a Java solution code to an issue named Diamond Square in 
  the repo *cool_code_snippets*.
  Link:
  https://github.com/Developer-Students-Club- 
  MAIT/cool_code_snippets/pull/29
3.Added another Java solution code to an issue named Longest 
  Common Subsequence in the repo *cool_code_snippets*.
  Link:
  https://github.com/Developer-Students-Club- 
  MAIT/cool_code_snippets/pull/30
4.Added another Java solution code to an issue named Flames Game 
  in the repo *cool_code_snippets*.
  Link:
  https://github.com/Developer-Students-Club- 
  MAIT/cool_code_snippets/pull/42

**Reflections**
Hacktoberfest 2020 was really a great experience for me.I have gained lot of knowledge through this event.This event made me confident and strong enough to explore and participate in more such events.Hoping to take part in the next year's Hacktoberfest event and try to contribute to many more great projects and improve myself with the flow.

**THANK YOU**
Ruby on Rails Tutorial - Many to Many Relationships
Published: 2020-11-11 18:09:08

**My Learning Ruby on Rails Video Playlist:** https://www.youtube.com/playlist?list=PLY6oTPmKnKbYlAqVHgzZl5lou54bizdbV

## Setup

This tutorial requires that you've already installed
- ruby
- rails

Create a new rails project

```bash
rails new invest_project --api
```

cd into the invest_project folder

## Creating Our Models

**Three Models**

Investor - Investors who invest in companies
Company - Companies who have investors
Investments - junction of investors and companies

run the following commands...

```bash
rails generate scaffold investor name:string
```

```bash
rails generate scaffold company name:string
```

```bash
rails generate scaffold investment investor:references company:references
```

setup your database

```bash
rails db:create
```

```bash
rails db:migrate
```

## Outline your relationships

app/models/investor.rb

```ruby
class Investor < ApplicationRecord
    has_many :investments
    has_many :companies, through: :investments
end
```

app/models/company.rb

```ruby
class Company < ApplicationRecord
    has_many :investments
    has_many :investors, through: :investments
end
```

app/models/investment.rb

```ruby
class Investment < ApplicationRecord
  belongs_to :investor
  belongs_to :company
end
```

## Test it out!

```bash
rails console
```

run the following commands

```ruby
#1 Create a new Investor
bob = Investor.create(name:"Bob")

#2 Invest in a new company
bob.companies.create("abc")

#3 Create a new company
def = Company.create("def")

#4 Add an investor
def.investors.create("Steve")

#5 see the results
Investor.all
Company.all
Invesment.all
```
Tab groups in Chrome
Tags: chrome, tabs, ui
Published: 2020-11-11 18:06:17

---
title: Tab groups in Chrome
published: true
description: How to enable tab groups in Chrome
tags: chrome, tabs, ui
//cover_image: https://direct_url_to_image.jpg
---

Sorry if you're expecting something more, well, techie from me, with tales of heroic coding derring-do and the slaying of fearsome bugs. Today I'm just going to tell you how to better configure your most used tool - your web browser.

Like most devs I luuurve my browser tabs and open them all the time. What I'm not so good at is closing them, and so they build up and build up and build up, just one long line of them. It's not long before they're so narrow that I can see maybe a few characters of their title, not enough to really know what it is, and not much longer before they're so narrow that I'm lucky to be able to see much of the page's icon and no text at all. I lose tabs all the time, and because it takes so long to find the one I'm looking for I often just open another tab, search for whatever it was I wanted - and now I've got even more of the blasted things open, with duplicate content!

But I have found a solution!

Recent builds of Chrome have an experimental "tab groups" feature. In summary, it lets you go from this:

![Chrome tab bar without groups](https://dev-to-uploads.s3.amazonaws.com/i/907oznvjdkiuo3sae9gi.png)

to this:

![Chrome tab bar with grouping](https://dev-to-uploads.s3.amazonaws.com/i/znmziais9vk5vflog6p3.png)

which immediately makes things easier to navigate. Just have a group per project that you're working on, or a group per subject. And then you can do this:

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

Collapsing and expanding tab groups makes it very easy to find what you're looking for.

To enable it, go to [chrome://flags](chrome://flags), search for "tab groups", and turn it on. You may have to reboot Chrome for the changes to take effect.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/543fdtlnp8e8uxxxh8wu.png)
Does your UI use "build once" for promoting to environments?
Tags: devops, javascript, webdev, discuss
Published: 2020-11-11 18:02:28

Please comment below with which approach you take:
1. build once and then promote multiple times per environment
2. build every time you want to move code to an environment

For those of us who have worked at medium to large companies, it's not uncommon to have multiple environments like:

Dev -> QA -> Staging -> Production

What I want to know is, do you follow an approach similar to [the "Twelve Factor App" guide](https://12factor.net/build-release-run) where you build once and then promote that artifact? Or do you build the UI code each time for every pipeline?

Here's an image of taken right from [the "Twelve Factor App" guide](https://12factor.net/build-release-run) that I find helps to demonstrate the goal.

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

But typically that's pretty hard to do with UIs where the configuration is typically in webpack (meaning that the config is "baked" into the UI code at build time).

So which approach do your teams use?
String.Repeat()
Tags: javascript, webdev, codenewbie, beginners
Published: 2020-11-11 17:46:33

```js
console.log('He'.repeat(3)) // 'HeHeHe'
```

---

**Thanks for reading 💙**  
Follow **@codedrops.tech** for daily posts.  
[Instagram](https://www.instagram.com/codedrops.tech/) ● [Twitter](https://twitter.com/codedrops_tech) ● [Facebook](https://www.facebook.com/codedrops.tech/)

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript  
**[codedrops.tech](https://www.codedrops.tech/)**
What changes can be made with `const`
Tags: javascript, webdev, codenewbie, beginners
Published: 2020-11-11 17:45:35

`const` is used when the value does not change. ex,
```js
const name = 'Codedrops';
name = 'Codedrops.tech'; // Error

const list = [];
list = [1]; // Error

const obj = {};
obj = { name: 'Codedrops' }; // Error
```

But it can be used to update value in previously assigned arrays/objects

```js
const list = [];
list.push(1); // Works
list[0] = 2; // Works

const obj = {};
obj['name'] = 'Codedrops'; // Works
```

---

**Thanks for reading 💙**  
Follow **@codedrops.tech** for daily posts.  
[Instagram](https://www.instagram.com/codedrops.tech/) ● [Twitter](https://twitter.com/codedrops_tech) ● [Facebook](https://www.facebook.com/codedrops.tech/)

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript  
**[codedrops.tech](https://www.codedrops.tech/)**
Welcoming Pat Hannon and Andy George to the Forem / DEV Team!
Tags: meta
Published: 2020-11-11 17:41:18

We’re excited to introduce you to our two newest team members: Pat Hannon (Principal Systems Engineer) and Andy George (Senior Systems Engineer). 

Alongside @jdoss, our Principal Systems Architect, @phannon716 and @andygeorge will be maintaining Forem cloud, our hosting service for Forem. We're very happy to have more people power behind our Systems Team as we expand to support more diverse communities across the world.

Please give Pat and Andy a warm welcome by checking out their introductory posts: 

{% link https://dev.to/phannon716/joining-the-forem-team-9gn %}

{% link https://dev.to/andygeorge/wooooooooooo-i-m-joining-the-forem-team-3pmf %}

![shark image](https://media.giphy.com/media/11Wf3llSqbkgko/giphy.gif)
Diving Into Designing🎨
Tags: webdev, beginners, codenewbie, css
Published: 2020-11-11 17:35:35

This article is mainly based on the different tools & technologies one can try while exploring & experimenting the various designs and animations. I'm gonna cover this blog in two parts.
So here we begin 👇🏻
***
## **ONES I'VE USED**
**1. Bootstrap:** its a CSS framework very popularly used. Just two or 3 links attached and you're all set to use it in your projects. Just use the appropriate classes in your elements and see the miracles.

**2. GSAP:** It's a JS library used for creating extraordinary animations. Very easy to use once you get the hack of it. Even if not, documentation always comes to the rescue.

**3. Figma:** I've basically used Figma for animating SVGs. I used to create id's within SVGs to manipulate it using GSAP. But it's used is in far too many ways that I do. It comes handy in designing extraordinary and beautiful web designs.
***
## **OTHERS**
**4. Materialize & Tailwind CSS:** Both are amazing CSS frameworks one must definitely try. I've never used them but I've seen the design components they provide are of great deal & in competition to Bootstrap.

**5. Adobe XD:** It's a great tool while creating visually appealing web pages. Someone recommended me this too to use in place of FIGMA and I'm gonna try it soon.
***
You can also checkout: <a href="https:tusharkandpal.github io/Devs-WellSource/" target="_blank">Devs-WellSource</a>
I created this project for helping my fellow DEVs. Do check this [repo](https://github.com/tusharkandpal/Devs-WellSource) and 🌟 to support.

<em>**Do tell which of these & others you use to create outstanding designs/animations?**</em>
Operating system (continued)
Published: 2020-11-11 17:23:15


# Windows Phone

## Benefits

- Confidence

Microsoft values ​​application quality. You have certainly heard that applications in the system store are scarce. To some extent, this has its logic there, especially when compared to the Apple store, but the vast majority of famous apps are already present there. But what we need to take into account is the quality of the applications present there.

Programmers (developers) may take a while to make applications available to the WP, but when they do ... they are practically perfect! They almost never crash and, according to Microsoft, pass tests and receive encryption so they never transmit malicious files to your phone. It is obvious that that app that is in fashion and that is very cool is missing, but it is better to have it later safely, than to have it on time with instabilities and / or serious errors. Of course, that doesn't always happen, but it's not uncommon to see buggy apps on Android, for example.

System updates are also a super plus for Microsoft. Updates are critical to cell phone security. We are bombarded daily by virtual threats and only updates developed by the OS developer can protect us. Microsoft values ​​this and during the update cycle of the different versions of its system, periodically sends updates to its customers.

## Disadvantages

- Lack of apps

What can be an advantage can also be a disadvantage. It is true that the delay in liberalizing applications for the platform is due, in large part, to the excessive testing carried out by Microsoft. This undoubtedly guarantees the safety of customers, but leaves many with immense dissatisfaction.

Tests could be done more quickly. Microsoft could also invest more in programmers (developers). Apple, for example, spends billions on its apps and its developers. This guarantees your store the highest revenue among operating system stores. Investment never hurts, so investing in your app store would be a great move for Microsoft.

The use of "generic" apps leaves many users dissatisfied. This, by the way, has been the main reason for abandoning the platform.

- High cost

Missing or limited notification bar:
The notification bar is already present in version 8.1 of Windows Phone, but in previous versions of the system it is not yet available. If you have a smartphone in this version of the system, you may notice that there is no option to delete a particular notification. Either delete them all, or leave them all. Perhaps this will be resolved in the future, but for now it is an inconvenient problem for many users, especially those coming from the Android system. It is already an evolution, of course, but it needs to be improved. If you have Windows Phone 8 or lower, unfortunately you will not have a notification bar and you will have to be content to search for your notifications going from application to application.
Sistema operacional (continuação)
Published: 2020-11-11 17:17:00

# Android

## Benefits

- Open operating system;
- Works lightly with devices with more hardware;
- It has sensitive touch in analysis to other old devices;
- Free apps on the Android Market;
- Connection to social networks;
- Internet connection;
- Cheaper handsets at operators;

## Disadvantages

- Paid apps more expensive than in other stores;
- Failure to update the operating system for the device;
- Viruses in the Android Market store;
- Update problems;
- Apps work for some devices and for others they don't.