teleren/devto huggingface dataset:
Git Ignore Locally: Ignore Files in Local Copy
Tags: git, beginners, codenewbie, webdev
Published: 2020-09-20 18:13:33


The blog post is going to a short and sweet writeup about one of the git aliases that I have created in my gitconfig. I use this shortcut quite often and it could come in handy for developers using Git as version control.

`.gitconfig` is the file that stores the basic settings for Git installed on your machine. It includes your commit name and email. You can also set your diff and merge tool here, among other things.

### Locations

For Windows

```
%USERPROFILE%\.gitconfig
```

For Mac

```
~/.gitconfig
```

### Problem

Imagine you are working on a project. The project requires modifications to specific files to run on your machine. You do not want to commit these changes, but Git tracks these files.

These files will clutter the commit tree in your source control manager or when you do `git status`.

The above is just one scenario. There could be any reason for you to have some local modifications to files which you should not commit and like I said you don't want to commit them.

### Solution

You can ignore these files locally without un-tracking them!

Add the following aliases to your `.gitconfig` file.

```
ignore = update-index --skip-worktree
unignore = update-index --no-skip-worktree
ignored = !git ls-files -v | grep \"^S\"
```

It gives you three Git shortcuts `ignore` (to locally ignore some files), `unignore` (to stop the local ignore on specific files), and `ignored` (to see the list of files you have ignored).

Execute any of the shortcuts, prefixed with `git`, in your terminal. Like below:

```console
> git ignored
```
Searching for a easy to use and free option for merging PDFs.
Published: 2020-09-20 18:10:31

Currently i'm working on an .NET-Core project, what supports me and other to write job applications.
The PDF generation is done by LaTEX. Now i'm seraching for a option to merge the PDFs. 
I searched the internet, but found mostly just nonfree options.
Maybe anyone knows a alternative?
Understanding Chrome Dev Tools as a Code Newbie
Published: 2020-09-20 17:50:06

Prior to starting [The Odin Project's](https://www.theodinproject.com/tracks/full-stack-ruby-on-rails) Full Stack Ruby on Rails track, I only used Chrome Dev Tools a handful of times to view the CSS styling of a specific element or to help me understand how certain scripts were running on a page. 

I knew that DevTools was an extremely powerful tool, but I didn't really know where to start my exploration of its many uses. 

*Below are four resources that I found helpful in understanding how to use Chrome Dev Tools:* 


:white_check_mark: This video by [Wes Bos] (https://twitter.com/wesbos) is short enough to keep your attention and gives a robust overview of the things that you can accomplish in Dev Tools.

{% youtube xkzDaKwinA8 %}


:white_check_mark: [These](https://developers.google.com/web/tools/chrome-devtools) Google Dev Tool guides in the [Dev Tools documentation] (https://developers.google.com/web/tools/chrome-devtools) were easy to follow and provide instant gratification by allowing you to complete small challenges right from the webpage. 


:white_check_mark: [This] (https://www.keycdn.com/blog/chrome-devtools) guide by KeyCDN is a perfect one to bookmark. It has lots of useful tips and tricks and I find myself coming back to this article often to refresh my memory. 

:white_check_mark: [The Net Ninja] (https://twitter.com/thenetninjauk?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor) has a great series of videos on Chrome Dev Tools as well. I'd recommend watching the entire series! 

{% youtube JzZFccCEgGA %}



Walking through these guides/tutorials has already saved me :hourglass: and stress in my [#codenewbie] (https://dev.to/t/codenewbie) journey. 


I'm sharing these resources with hopes that another beginner finds them useful. 

Happy coding, friends! :rocket:
A11Y study case: Breaking text on a specific word and Screen Readers implications
Tags: a11y, html, css, frontend
Published: 2020-09-20 17:43:16

Asking to visually break a sentence in multiple lines on a strategic word is a common request from the design team, especially on landing pages. Eg “Hello /n human being”. However, that might affect a Screen Reader pitch flow in unexpected ways...

### Scenario issue
For example, let's imagine we have the title **"Hello human being"** and we are asked to break it after the "hello" word.

```
Hello   
human being
```

Here are some common (poor) approaches I've seen being used around:
1. **Add `<br />` between each line**: Don't do this! Despite being very common, because of its ease of use, it's semantically incorrect! `<br>` is meant to be used when the division of lines is significant. E.g. stress addresses, poems, etc...
2.  **Add `<span />` with `display:block` between each line**. This creates the same effect as `<br />` but without any semantics, which is good.
3. **Using flexbox:** Wrapping each line into an `<span>` and adding flexbox to the sentence itself with `flex-direction: column` does the trick too.

However, all of these three approaches have the same unexpected result in the VoiceOver screen reader pitch flow:

- Expected pitch: _"Hello human being"_
- Actual pitch: _"Hello" [pause] human being."_ 

Another common practice is to set `max-width`, however, that solution is highly dependent on the text content. In this scenario that approach wouldn't work.

![Shocase failed max-width attempt](https://dev-to-uploads.s3.amazonaws.com/i/9yvh2vhxvubcahbgeop6.gif)

Let's keep looking for a bulletproof solution instead.

### Possible solution

Among other experiments, using `write-space: pre-line;` seem the best solution! We can create a literal newline or use `&NewLine;` control character to break the text.

```html
<h2 style="white-space:pre-line;">Hello       
human being</h2>

<h2 style="white-space:pre-line;">Hello &NewLine;human being</h2>
```

This is just an example of how HTML semantics and CSS usage can affect the way text is read out loud in ways we might not expect.

Here's a Codepen where you can try out the approaches described and other solutions attempts:

{% codepen https://codepen.io/sandrina-p/pen/VwadjVL default-tab=html,result %}
Popular Docker Interview Questions with RealTime Scenarios for Beginners | Part 1
Tags: devops, docker, linux, beginners
Published: 2020-09-20 17:11:55

### **Below are the most popular docker interview questions for Beginners** 
* What is Containerization ?
* What are the Advantages of Containerization ?
* What is docker ?
* Docker Architecture and communication 
* Docker Registry and its types
* How to access public/private Registry ?
* Do I need to login to dockerhub to pull the images ?
* What is docker image ?
* What is docker container ?
* Is there any dependency b/w docker image and container ?
* Suppose host server has 2 GB space and your image size is 500MB than is it possible to run more than 4 containers of this image on the host ?


### Checkout below video for the answers

{% youtube -BW0Kk5Vj7o %}

Feel free to share your thoughts. Also, do hit ❤️ or 🦄 if you liked the post.
Technical article about Design Theory
Tags: design
Published: 2020-09-20 17:08:15

Design is everywhere, it's around us 24/7. If we look closer then we see that things around us aren't just made with a specific purpose in mind.

Lets take a couch for an example; why sit on a couch when we could as well just sit on a rock? They both serve the same purpose, right? Well yes, but we would be sore in just about twenty minutes. A couch is designed to have some soft or firm filling and a backrest so we can sit comfortably for a longer period of time. Maybe the couch has some extra things attached like a pocket on the side for remotes or maybe even a fancy cup holder. The couch is designed with the user experience in mind. The user can sit there for a couple of hours and relax after a long day without a sore butt. This example is not the greatest but I hope I get my point across. Design is so much more then just how something looks or its purpose, its also *how* something works. In this article I will talk about some design fundamentals.

**Understanding Color**
Color plays a vital role in design. Using color is some of the biggest hurdles new designers face; knowing how to use color effectively and picking colors that work well together. When colors are used properly they can evoke certain emotion and/or guide the viewers eye to what is important. Example:

![Example](https://dev-to-uploads.s3.amazonaws.com/i/rxxelz47zr2c3b31dgrm.png)

But how do you choose color? The best way is to learn some basics about color theory, it helps you see color in a whole new light. Color theory states that we have 3 primary colors; red, yellow and blue. Then we have secondary colors witch are a mix of the primary colors; orange, purple and green. Together they form the color wheel. 

There are certain formulas you can use to find colors that work the well together, all you need is the color wheel. The most popular formula is *complimentary*, there you choose colors that are the oppisite of each other; for example blue and orange, green and red. To avoid the colors being to simple, you can play around with the saturation and value to get different tones.

Here I found a good video that goes more in depth in color theory:

{% youtube _2LLXnUdUIc %}
When you encounter hard to understand code
Tags: video, fun, git, blame
Published: 2020-09-20 17:01:00

---
title: When you encounter hard to understand code
published: true
description: Short video on the topic of git blame
tags: video, fun, git, blame
//cover_image: https://direct_url_to_image.jpg
---

YouTube: {% youtube wEdjRtTcAac %}

Trying something different on this occasion, some video content 😱🤞

Recently have rejoined a company where I have worked in the past and this reflects my experiences quite accurately 😁

Has something like this ever happen to you?
Features you may not know about Chrome Dev-Tools
Tags: chrome, devtools, javascript, webdev
Published: 2020-09-20 16:52:51

> We all use chrome dev tools pretty much daily. But here are a few features I wish I knew earlier that could save me time.

###1: Change colors with color picker

Did you know? Chrome has an inbuilt color picker

![Color picker gif](https://media.giphy.com/media/yXJJc7gm2h74yYg95A/giphy.gif)

To get this, open dev tools and click on the color you want to change - you will see the pen icon, click on it and move it then click on the color you want it to be changed with. **You can also copy the color by clicking on it**(right side of the pen icon).

###2: Simulate Slow internet

You may or may not already know about it. So let me tell you. It can be very useful for testing purposes.

![Slow internet](https://dev-to-uploads.s3.amazonaws.com/i/ty1biiw6aa9zlg8ne0dy.png)

You can also add custom network speeds according to your needs in the custom tab.

###3: Get Material colors

Searching for material color palettes? Don't! It's already available in the dev tools.

![Material colors](https://media.giphy.com/media/3EmiYABbFI7xue7T4P/giphy.gif)

You can also `long-press right click` to view more available shades.

###4: Check CPU usage by a website

This feature is available in the performance monitor tab of dev tools. Open dev tools press `esc` and follow this -

![performance](https://media.giphy.com/media/IZZUXUgcqB6bbZx5lq/giphy.gif)

As you can see it tells real-time CPU usage. You can also check other features like js heap size etc.

###5: Pretty print API data.

When working with lots of data with API, we have to log and view the data. That will yield JavaScript Object (JSON), which in the case of 2D arrays is going to be hard read and hard to find useful information in. But there's a simple fix for that:

`console.table()`
All it takes is to replace console.log with console.table. This function can easily display 1D and 2D arrays, but what makes this function extra useful is that it can also correctly displays column names and on top of that it also allows you to sort by each of these columns.

![pretty print table](https://dev-to-uploads.s3.amazonaws.com/i/zc1kk4158gm3t2djshhw.png)

###Bonus:

####document.designMode = "on"

This is a fun one. You can do almost anything with this feature. Just type `document.designMode = "on"`
and see the magic.

![designMode](https://media.giphy.com/media/JdHLNc2y25EUgKArZe/giphy.gif)

####Change dev tools theme:

We developers love dark themes, dev tools also got it. Just click on the settings icon in dev tools and the first option you'll see is the theme.

This was it for today. See you soon.

![peace](https://media.giphy.com/media/jUwpNzg9IcyrK/giphy.gif)
best sites on the internet
Published: 2020-09-20 16:09:36



The best site for pc and laptop mouse and keyboard

8 Best Mouse For Autocad | Autocad mouse


Introduction to what is Fragrance Wheel and Olfactory Families
<a href="https://perfumelead.com/what-is-fragrance-wheel-and-olfactory-families/">https://perfumelead.com/what-is-fragrance-wheel-and-olfactory-families/</a>


wordpress and social media related tips and tricks
<a href="https://getsocialguide.com/">https://getsocialguide.com/</a>

<a href="https://zakootas.com">https://zakootas.com</a>
love and relationship

love, relationship health and wealth
more at<a href="https://zakootas.com"> https://zakootas.com</a>

best audio gadgets

<a href="https://aumoz.com">https://aumoz.com</a>
for best budget speakers under $100 visit <a href="https://aumoz.com">https://aumoz.com</a>

Nice post, for  best electronics gifts please visit
<a href="https://digitalupbeat.com">https://digitalupbeat.com</a>


best electronics gifts

<a href="https://wishespot.com/">https://wishespot.com/</a>


Love your post. It’s really amazing &amp; helpful too.
Keep sharing ??
unique wishes quotes at <a href="https://wishespot.com/">https://wishespot.com/</a>

Love your post. It’s really amazing &amp; helpful too.
Keep sharing

<a href="https://digitalupbeat.com/10-best-graphics-cards-for-intel-core-i7-9700k-builds/">https://digitalupbeat.com/10-best-graphics-cards-for-intel-core-i7-9700k-builds/</a>
10 best graphics cards for intel core i7 9700k and another motherboard check out

best powered speakers for djs
<a href="https://aumoz.com/best-powered-speakers-for-djs-2020">https://aumoz.com/best-powered-speakers-for-djs-2020</a>

How to become famous on youtube and earn money
<a href="https://getsocialguide.com/how-to-become-famous-and-make-money-on-youtube/">https://getsocialguide.com/how-to-become-famous-and-make-money-on-youtube/</a>

10 Best Ways to Keep Your Relationship Happy And Healthy
<a href="https://zakootas.com/10-best-ways-to-keep-your-relationship-happy-and-healthy/">https://zakootas.com/10-best-ways-to-keep-your-relationship-happy-and-healthy/</a>

Love your post. It’s really amazing &amp; helpful too.
Keep sharing ??

unique wishes quotes at <a href="https://wishespot.com/">https://wishespot.com/</a>
<a href="https://wishespot.com/sustainability-and-green-living-quotes/">https://wishespot.com/sustainability-and-green-living-quotes/</a>

Sustainability and Green Living Quotes

Green Living and Our Environment Quotes I really hope these quotes inspire you to reflect and to take sustainable action. – Jen xx Reducing our levels of consumption will not be a sacrifice but a bonus if we simply redefine the meaning of the word ‘success.’ – David Wann What we are doing to the forests of the world is but a mirror reflection of what we are doing to ourselves and to one another. – Mahatma Gandhi
Read more at <a href="https://wishespot.com/sustainability-and-green-living-quotes/">https://wishespot.com/sustainability-and-green-living-quotes/</a> | Find the Perfect Words! Unique Wishes
I have an "Unreachable Code Detected" Error in my React app - How to fix?
Tags: freecodecamp, react, freecodecampproject
Published: 2020-09-20 16:46:30

Hi, everyone.  I have this GitHub [repository](https://github.com/DragonOsman/javascript-calculator-project) that I made for the source code for my solution to [this project](https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-javascript-calculator) on FreeCodeCamp.

I have an error that says "Unreachable Code Detected", on lines 245 to 252 of my JS file.  Why is it flagged as "unreachable code" and how do I fix it?

Also, right now nothing is being rendered when I run the code (aside from FreeCodeCamp's testable project script output).  I don't get how I could fix this problem, either.
My first Hacktoberfest 😬
Tags: hacktoberfest, discuss, opensource, help
Published: 2020-09-20 16:28:32

Hacktoberfest 2020 is just around the corner and to be honest, I am a bit nervous.

What are the plannings have you done for this year?
Which advice for the first time Open Source newbie?

We would like to know from **DEVcommunity** here 😄

> comment your advice that will help me and newbies out here.
Custom Domain Add Github Page
Tags: github, hugo, custom, domain
Published: 2020-09-20 16:05:41

[simsekhuseyin.com](simsekhuseyin.com)
I am happy to announce that I have added a custom domain name to my github pages using Hugo. I had been written a Turkish blog on how to use Hugo and integrate it with the github page.
https://simsekhuseyin.com/posts/2020/07/hugo-kullanarak-github-pagede-web-sitesi-olu%C5%9Fturma/

I encountered some diffuculty when I adding custom domain. Firstly, I just added domain address from settings. But you know its not work first time :) There is an error that occur Https. In order to solve, I watched some videos from youtube. They are explain how to github add a custom goddaddy domain. Thus, I tried them. It worked. My github page is running :) But I forget to change to baseurl from hugo site config file. Finally I changed baseurl and my site is running properly :)

Video List:
- https://www.youtube.com/watch?v=g8kfAZOjgR0&t=142s
- https://www.youtube.com/watch?v=7GnvHmKec-c&t=300s
Terraform Discussion
Tags: devops, cloud, iac
Published: 2020-09-20 15:56:20

## How agnostic is Terraform? 

I am heavily AWS focused in my role, and use Cloudformation for my Infrastructure as code.

Most DevOps Engineers I talk to are confused why I use Cloudformation over Terraform as Terraform is cloud-agnostic, they are of the opinion I should be using Terraform as I can then point to a new cloud provider and click, and *POOF!* your stack has appeared.  

[Terraform use cases](https://www.terraform.io/intro/use-cases.html)

> Multi-Cloud Deployment
>
> It's often attractive to spread infrastructure across multiple clouds to increase fault-tolerance. By using only a single region or cloud provider, fault tolerance is limited by the availability of that provider. Having a multi-cloud deployment allows for more graceful recovery of the loss of a region or entire provider.
> 
>Realizing multi-cloud deployments can be very challenging as many existing tools for infrastructure management are cloud-specific. Terraform is cloud-agnostic and allows a single configuration to be used to manage multiple providers, and to even handle cross-cloud dependencies. This simplifies management and orchestration, helping operators build large-scale multi-cloud infrastructures.

How agnostic is Terraform? How much work is needed to deploy a stack with some compute, network & Storage from one cloud provider to another? How true is the above statement? One file point to AWS, Azure, Google and it builds?
Start learn styled components!(2)-Extending Styles
Tags: react
Published: 2020-09-20 15:56:04

The original post published on my blog: https://ms314006.github.io/start-learn-styled-components-extending-styles/

Hello guys, I am Clark! In this post I am going to share more about styled components I learn. If you don't know what is styled components, you can go to last post, I had introduce what is it.

# Extending Styles

If we using styled components in our project then we can through more way like program language to define CSS, the extending styles is good example among styled components.

We can defined a styled component call `Button`, in this styled component I defined some base CSS:

```JSX
import React from 'react';
import styled from 'styled-components';

const Button = styled.button`
  border: 1px solid black;
  border-radius: 5px;
  font-size: 20px;
`;

const App = () => (
  <>
    <Button>Base Button</Button>
  </>
);

export default App;
```

The result of code above:

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

The button look awesome, but if I want to change color of button's border and keep others style, what can we do?

Create another styled components?

```JSX
const DangerousButton = styled.button`
  border: 1px solid red;
  border-radius: 5px;
  font-size: 20px;
`;
```

### No!

You can through extending styles to finish same thing above and more beautiful, easier to maintain.

The way to using extending styles is give a based styled components when you create a new styled components, like code below:

```JSX
const Button = styled.button`
  border: 1px solid black;
  border-radius: 5px;
  font-size: 20px;
`;

const DangerousButton = styled(Button)`
  border: 1px solid red;
`;
```

The `DangerousButton` will extended style of `Button` and override the style of same setting, such as `border` in the example above.

So the result will be:

![截圖 2020-09-20 下午11.17.07](https://dev-to-uploads.s3.amazonaws.com/i/zxky2jiha9n131pp5mpm.png)
 
So good, right? In addition, you can just change the tag name,  if you want to using other tags and keep the style of same setting. In other words you can extends the same style when you using other tags. The way is that add `as` props and give tag name you want to render when you using the styled components.

So if I want to extend the style of `Button` and render to the `a` or `div`, you can through `as` props give `a` or `div` when you using `Button`:

```JSX
const App = () => (
  <>
    <Button as="a" href="https://dev.to">Base Button</Button>
    <Button as="div">Base Button</Button>
  </>
);
```

The result above, the `Button` will be render to `div` and `a`:

![截圖 2020-09-20 下午11.35.58](https://dev-to-uploads.s3.amazonaws.com/i/8072x0cxjhswwron6ayn.png)
 
# Conclusion

So according to this post I said that using styled component can allow us to defined style in a way similar to program language. Styled component is very convenience and interesting! 😃
Top 10 Python Interview Questions For Beginners By DDSRY
Tags: python, help, beginners
Published: 2020-09-20 15:51:32

Top 10 Python  Programming Language Interview Questions for Beginners By **DDSRY**:
.

- Different between list and tuples
.

- How to transform a string to list in Python?
.

- What is negative index in Python?
.

- Tell me 2 defference between python 2 and python 3
.

- What does zip() do?
.

- What is PEP8?
.

- How to open a txt file and display it's content?
.

- What is lambda in Python?
- What is pickling and unpickling?
.

- What are the built-in type does python provides?
Delete all local git branches from powershell
Tags: git, powershell
Published: 2020-09-20 15:45:02

I sometimes end up with a bunch of local git branches that I want to get rid of and this little bit of powershell does exactly that

``` powershell
git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
```