teleren/devto huggingface dataset:
caffeinate -u -d
Tags: macos, unix
Published: 2020-08-01 18:57:44

My MacBook Pro running Catalina has been crashing when:

1. attached to an external monitor (an LG UltraFine 5K Display),
2. in clamshell mode, and
2. it goes to sleep

This looks like a known bug according to forum posts like [this](https://discussions.apple.com/thread/250715149?page=25) and [this](https://forums.macrumors.com/threads/constant-kernel-panics-userspace-watchdog-timeout-no-successful-checkins-from-com-apple-windowserver.2222878/page-18?post=28629447#post-28629447).

My workaround for now has been:

1. manually put the computer to sleep when I step away or
2. not use the monitor or
3. when running a long-running process and I want to step away, running [`caffeinate`](https://github.com/uasi/caffeinate) in a shell to prevent idle sleep:

```
caffeinate -u -d
```
Pair request (there, I said it)
Tags: codenewbie, webdev, help
Published: 2020-08-01 18:55:53

Hi folks :)  a shy, but warm hi from me in these strange times!  I'm a newbie, self-learner and really keen to pair / 'watch someone in action' ;)  I'm just learning the basics, but if it's too boring for you, I'm sure a more advanced colab or watching you work on a real life project would help me greatly, and you'd get to enjoy my 100 questions and I will send you chocolate / beer / cake by post, whatever your soul requires.
I'll sign an NDAs if required.
Please DM me here or even better on twitter https://twitter.com/TalkShimmyToMe?s=09

Ta :dumpling: :relaxed: 

PS. Sorry if you find this shameless request too forward in any way, I'm super shy and had to cut to the chase (call it a defence mechanism). Actually serious about this :)
InspiHER #2 featuring Anisha Swain
Tags: womenintech, beginners, discuss, career
Published: 2020-08-01 18:49:04

InspiHER #2 featuring Anisha Swain,
Associate Software Engineer
@anisha_swain_ @redhatinc

ACM-W is proud to present you with its brand new segment, InspiHER.
Through this segment, we aim to connect you to our women leaders around the globe to give you a better insight of what being a woman in tech really means, by talking about their journey there and their experience.
This series also aims to build a support system that you can always rely on for motivation.
And remember <I>#IfTheyCanYouCanToo</i>

To know more about her journey, check out her medium:
https://medium.com/@anishaswain
My Journey (so far)
Published: 2020-08-01 18:41:02

No catchy title for this one. I realized, I have been using this blog to document or talk about different tech items, but never got into why I wanted to learn it in the first place.

A little about me, I have a degree in Public Relations and was involved in graphic design and writing all throughout college, I loved graphic design and was that annoying designer who showed everyone things I made. I worked at the student center so my designs were found around campus, I remember I used to take pictures whenever I saw my design in the wild, I loved creating something. 

Fast forward to after graduation, I got my first job in Advertising where I worked as an Account Coordinator on a huge client's website (more QA and UX than typical account work) This was the first time I heard all these terms (PFA, SEO, CMS) and the first real interaction I had with websites. I was responsible for QAing and basically making sure the site did not break throughout a few iterations. It was cool, but I got bored and wanted a challenge. Mind you, during that time I started to learn some basic HTML and CSS since I thought it was really cool but did not think I was smart enough to learn anything else so I gave up.

I wanted a challenge so I worked at a couple other agencies doing social media, print marketing and now back to digital, until I realized it is not the companies, it is just not the right field for me. I was bored and needed a challenge. I love making things and solving problems not just telling people to do things. 

So this led to me deciding OK I am going to learn how to code, so with the help of Udemy, Youtube, books (yes I read some programming books), some (amazingly patient) developer friends, and freeCodeCamp, I got the basics down relatively quickly (not easily!)and started building things. What really helped my confidence is finding a local community/networking. I found a local meetup where we learn together, build together and support each other which got me from making some JS projects, to being confident in using React.


Nowhere near done, my next step in my journey is to get a full-time dev job. I am currently freelancing on the side, but that is why and how I got to where I am now
Hello DEV community!
Tags: general
Published: 2020-08-01 18:34:16

---
title: Hello DEV community!
published: true
description: 
tags:
//cover_image: https://direct_url_to_image.jpg
---

Hello! So I've been looking in different places to write about my projects and document them. I've seen amazing developers and projects here since 2018 when I joined and overall, I think this is the best place for what I have in my mind!

My name is amu and I mostly make software and tools related to sound and music. I'm currently working on a couple of projects which I'm really excited about and will start writing about them soon!

I don't know how the recommendation algorithm works here yet but if anyone sees this and is interested, I'd love to make some friends in this community!
Meet Quicksi
Tags: tooling, webdev, productivity
Published: 2020-08-01 18:18:54

<small>Cover Photo by <a href="https://unsplash.com/@kaurmartin?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kaur Martin</a> on <a href="https://unsplash.com/s/photos/quick?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></small>

## Meet Quicksi



Quicksi is a command line bot pert time tool, that can help you start projects easily and fast.



## Why Quicksi


- Enhance productivity

    Reusable starters in different languages, frameworks and libraries designed to make it easy for developers to start projects without having to worry about the setup.


- Easy access to starters

    Tech Speakers or code instructors during workshops, doing tutorials or conferences can enable students or audience get easy access to all their tutorial starters, without needing to clone a repository all the time.

<br>


{% github Quicksi-CLI/quicksi no-readme %}


<br>

## Getting started

#### Quick start
To get the latest version of quick


```sh
npx quicksi
```


> If you've previously installed quicksi globally via `npm install -g quicksi`, We recommend you uninstall the package using `npm uninstall -g quicksi` to ensure that `npx` always uses the latest version. Or see the other installations below if you want to install globally.


## Install globally
To install `quicksi` on your local machine, run:

```sh
npm i -g quicksi
```
or

```sh
yarn global add quicksi
```

<br/>
Installing quicksi globally gives you access to one command alone:

```sh
quicksi
```

<br/>
But you'll have to check for new versions of quicksi and update the package.

```sh
npm update -g quicksi
```

For more info visit https://quicksi-bot.now.sh/docs/en/installation



##  Contribute

All contributions are more than welcome!, See [contribution guide](https://github.com/Quicksi-CLI/quicksi/blob/master/CONTRIBUTING.md) 

## Feedback  
Make quicksi better, Quicksi will love to hear your feedback [give us your feedback here!](https://docs.google.com/forms/d/e/1FAIpQLSfENU2xyl29r5xIbeV2y4ivi5YdD9Yl6AmnGGMXRuX59BYSwQ/viewform)
Making these times less confusing for travellers
Tags: webdev, javascript, css, beginners
Published: 2020-08-01 18:06:44

---
title: Making these times less confusing for travellers
published: true
description: Find out about any travel entry restrictions, risk level, screening or quarantine requirements on arrival that might affect you
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/k3225zzxq0waxamepx57.png
tags: webdev, javascript, css, beginners
---

The current period is very complex for us travellers. Lots of confusion, frustration and uncertainty. How can you consider planning a future trip? You should check out the next website I have created [safe2travel.club](https://www.safe2travel.club/) which helps you to reduce uncertainty and gives you full visibility before booking your next trip!

Coronavirus disease (COVID-19) has impacted every country in the world since the virus was first identified in December 2019.  From the start of 2020 international travel has been severely disrupted.

**We are in a new reality where planning any trip must start with checking travel restrictions for your destination.**

#### Information 

The website provides you dynamic information around travel restrictions, starting with a global risk level, self-quarantine info, health certification requirements, airlines and transportation updates and other international and internal restrictions.

The source of the information is collected from various sources: IATA, media, national sources, WFP internal or any other public sources.

#### Risk Level

Each country has a risk level score which is in 0-5 range. Each value is classified to one of the next 4 levels:
- Extreme warning
- High risk
- Medium risk
- Low risk

#### Screenshots

![countries restrictions](https://dev-to-uploads.s3.amazonaws.com/i/fuh3yi8h4kgsenxxj4wf.png)

![israel restrictions](https://dev-to-uploads.s3.amazonaws.com/i/0q8ylj6c0xp9ttcywkoi.png)

----

If you liked the article, please click the ❤️ below so other people will see it on DEV.to :) ! Feel free to [follow me on Github](https://github.com/otomer)
YouTube Video | Blur page with CSS Grid
Tags: css, html, youtube, webdev
Published: 2020-08-01 17:57:48

We are going to build an elegant landing page with Blur effect in this video. We are going to use CSS Grid for this project.

{% youtube GvaA5J84C9c %}

Please do like it and [Subscribe](https://www.youtube.com/channel/UCRf7mazcufqZxd2pR3oQJuQ?sub_confirmation=1) to my channel for more videos.
todocheck v0.2.0 is live!
Tags: opensource, go, todocheck, linter
Published: 2020-08-01 17:43:56

---
title: todocheck v0.2.0 is live!
published: true
description: See what's new in the latest version of todocheck
tags: opensource, go, todocheck, linter
cover_image: https://i0.wp.com/pmihaylov.com/wp-content/uploads/2020/07/todocheck-logo-1.png?w=1098&ssl=1
canonical_url: https://pmihaylov.com/todocheck-v0-2-0/
---

<!-- wp:paragraph -->
<p>The next release of <a href="https://github.com/preslavmihaylov/todocheck">todocheck</a> - the tool that helps you track &amp; keep TODOs actionable is live!</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>First time you hear about it? - <a href="https://pmihaylov.com/todocheck/">check this out first</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In version 0.2.0, the main focus was extending support to new programming languages &amp; issue trackers.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Hence, there are now five new languages supported - R, PHP, Rust, Swift &amp; Groovy.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Support has been also provided for two new issue trackers - <a href="https://www.pivotaltracker.com/dashboard">Pivotal Tracker</a> &amp; <a href="https://redmine.org/">Redmine</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Additionally, one useful new feature is that todocheck now supports passing in your issue tracker authentication token via an environment variable - this will make it a lot easier to integrate the tool in your CI environment!</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Finally, you can now specify todocheck's output to be in JSON format. This provides the opportunity to create IDE plugins or include support for todocheck into linter aggregators.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>See the <a href="https://github.com/preslavmihaylov/todocheck/releases/tag/v0.2.0">full changelog here</a> &amp; don't forget to update your binary to the latest release!</p>
<!-- /wp:paragraph -->
The for loop breakdown for javascript beginners
Tags: javascript
Published: 2020-08-01 17:41:50

Even though the run time wasn't always the best, for loops still saved me in many grey areas, especially when solving algorithms and code challenges. For any javascript beginner even if you don't know many methods of javascript you can still use multiple for loops to solve it. Right now under this text I will break down for loop method using examples and showing the process, so that you can get the big overview on how it works.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pof855h4dh2ttom787nw.png)

Here you see the first statement
for (i=0;i<s.length;i++) here you set the standards for your loop method. I want my loop to start from 0 so I set at 0. And I want it to run the same function until a certain limit and so I set to run up to the length of s array, i<s.length. And for my last standard I set the increment, so that everytime it runs it will add one to the initial 0.
and then you run the function inside your function. As you can on the right side you get all values since the array had 4 elements it ran up to four times, each times incrementing the i by 1 and received 4 answers in return
What's Pandas for in python?
Tags: python, datascience
Published: 2020-08-01 17:38:06

What's Pandas for?
Pandas has so many uses that it might make sense to list the things it can't do instead of what it can do.

This tool is essentially your data’s home. Through pandas, you get acquainted with your data by cleaning, transforming, and analyzing it.

For example, say you want to explore a dataset stored in a CSV on your computer. Pandas will extract the data from that CSV into a DataFrame — a table, basically — then let you do things like:

Calculate statistics and answer questions about the data, like
What's the average, median, max, or min of each column?
Does column A correlate with column B?
What does the distribution of data in column C look like?
Clean the data by doing things like removing missing values and filtering rows or columns by some criteria
Visualize the data with help from Matplotlib. Plot bars, lines, histograms, bubbles, and more.
Store the cleaned, transformed data back into a CSV, other file or database
Before you jump into the modeling or the complex visualizations you need to have a good understanding of the nature of your dataset and pandas is the best avenue through which to do that.
References: https://www.pythonslearning.com/2020/05/python-pandas-librarypython-crash.html
[Tutorial Linux] Terminal: Listando arquivos e diretórios
Tags: terminal, linux, ls, braziliandevs
Published: 2020-08-01 17:37:56

# Terminal: Listando arquivos e diretórios


No terminal, digite:

```
$ ls
```

- **$** indica que você deve usar o **usuário comum** para fazer essa operação.

- **ls** o comando de listar os conteúdos de um diretório.

Isso fará com que o terminal exiba o nome dos arquivos e diretórios no local em que o terminal está.

![comando ls](https://dev-to-uploads.s3.amazonaws.com/i/07lgfhq0p7nzatwedomm.gif)

## Listar arquivos e suas especificações

Ao digitar:

```
$ ls -l
```

- **-l** traz mais informações sobre os arquivos listados.

O terminal mostrará arquivos e diretórios com as permissões, números de arquivos, proprietário dos arquivos, tamanho, data e hora modificada e nome dos arquivos.

![info arquivos](https://dev-to-uploads.s3.amazonaws.com/i/kl5ryd5ilvb39c0z1okp.gif)

Ao digitar:

```
$ ls -lh
```

- **-lh** é a junção dos argumentos l e h.

- **h** do inglês, *human readable*, nos mostra os tamanhos em um formato mais legível para humanos, como KB, MB ou GB.

O terminal exibirá os tamanhos dos arquivos de forma mais legível a humanos.

![arquivos em KB](https://dev-to-uploads.s3.amazonaws.com/i/xcgu5etlxf4uhh6ki6zh.gif)

## Listar também arquivos ocultos

Digitando:

```
$ ls -a
```

- **-a** do inglês, **all**, inclui também os arquivos e diretórios ocultos.

![mostrando arquivos ocultos](https://dev-to-uploads.s3.amazonaws.com/i/agkqlhk21zdkxiczkzmj.gif)

Digitando:

```
$ ls -R
```

O terminal lista os arquivos, diretórios e subdiretórios, bem como os arquivos contidos nesses.

- **-R**, de recursivo.

![mostrando diretórios e subdiretórios](https://dev-to-uploads.s3.amazonaws.com/i/479u56gp2w9l7rbi294o.gif)

## Listar arquivos de qualquer lugar

Para listar arquivos de um diretório o qual você não está, basta fornecer o caminho completo até o diretório desejado. Por exemplo:

```
$ ls /home/usuario/Música
```

![ls caminho absoluto](https://dev-to-uploads.s3.amazonaws.com/i/va1p3s2q40llqltrxk38.gif)

## Atalho para a home do usuário

Caso deseje listar os arquivos que estão dentro da home do usuário, pode se usar o sinal diacrítico til **~**. Exemplo:

```
$ ls ~/Música
```

![usando atalho para a home](https://dev-to-uploads.s3.amazonaws.com/i/cbsq8uihsehewveqy12z.gif)

## Listar conteúdos em mais de um diretório ao mesmo tempo

É possível listar o conteúdo em mais de um diretório ao mesmo tempo, basta indicá-los depois do ls:

```
$ ls ~ /opt /tmp
```

![listando 3 diretórios ao mesmo tempo](https://dev-to-uploads.s3.amazonaws.com/i/pk9iqkw4wpsg7bj8k3w2.gif)
Can I go with Pop OS rather than ubuntu?
Tags: help, linux, discuss
Published: 2020-08-01 17:33:57

I bought a new laptop with windows 10 home edition pre-installed. Hence I went with WSL and it was not so good.Hence I spun an aws EC2 instance and working on it. But it aint free and doesn't feel like working on a local machine. So I thought of installing Linux and I had previously used ubuntu a couple of years back. Now I stumbled upon Pop OS. Can I go with it rather than ubuntu or install Ubuntu ?
Hey programmers, which keyboards do you suggest under $200.
Tags: typescript, node, keyboards, code
Published: 2020-08-01 17:26:43

---
title: Hey programmers, which keyboards do you suggest under $200.
published: true
description: 
tags: typescript,nodejs,keyboards,code 
//cover_image: http://us.coolermaster.com/aplus/devastator/blue/images/30_image_000_052915.jpg
---

I am currently using CM Storm Devastator for 3 years now. I've been thinking about upgrading this for a while and switch to a good mechanical keyboard.

Since I'm on a budget, I'm looking for a good keyboard under $200 USD.

I would love to take your suggestions on the keyboard you are using or have been meaning to buy.

I do not have much knowledge about them, I have seen some reviews but not the ones where people are using them for long term.

My work includes 7 hours of coding everyday, surfing web for 2 hrs every day.
Best coding windows laptops
Published: 2020-08-01 17:25:46

On my last post(best coding laptop) about the best coding laptop, I said that the best OS for coding is Linux, then Mac os, and then Windows. And I pissed people off and I get it so, I am writing this. After researching for some time I think I found the best windows coding laptop. I still stand by that the Mac book pro 16 ich is the best coding laptop because well small things like the best trackpad out there. 

#Dell XPS 17inch 
I feel that that this is the best windows coding laptop. This screen is 17inchs so more real estate. Finally, there is a good trackpad for a windows laptop. The speakers not as good as the Mac Book Pro but still amazing. With us all working at home everyone does a lot of video calls, the camera is not good at all, although I think we can all live with that.
Today's rabbit hole: caching data in a React App
Tags: react, cache, state
Published: 2020-08-01 17:21:44

Trigger: [Julian Garamendy's post: React State Management in 2020](https://dev.to/juliang/react-state-management-in-2020-3c58)

He says: `I differentiate between application/UI state and remote data cache. and use SWR or React Query to keep a cache of remote data.`

Wait? What? I store the data fetched from an API in state! Why should I keep it in cache? How do I do that?

**Benefits from having a cache:**

i. If something goes wrong while refreshing data from the API the state will become empty, leaving User scratchig their heads wondering where the data went. Bad user experiencie.
ii. Once data has been loaded, it's faster the grab it from the cache.

**How to get started with caches?**

As he explains in his post, there are two libraries that help you do that: SWR and React-Query.

The first thing I did is go and check how popular these libraries are. Numbers are not huge (in npm standards) but they are fast growing. It didn't stop me from going and spending a good amount of time reading about both of them, their syntax, custom hooks and React Suspense. SWT seems to do other stuff, like pagination, which is very cool. Or maybe React-Query does it too, it's just that I haven't digged enough yet. In any case, I see how useful they can be for my projects and I shall try them soon. 

You can my reading list so far below.

Enjoy!

Resources:

1. [Why You Should Be Storing Remote Data in a Cache (and Not in State)](https://medium.com/better-programming/why-you-should-be-separating-your-server-cache-from-your-ui-state-1585a9ae8336)
2. [Using Suspense with react-query](https://blog.logrocket.com/using-suspense-with-react-query/)
3. [Caching clash: useSWR() vs. react-query](https://blog.logrocket.com/caching-clash-useswr-vs-react-query/)
4. [An Introduction To SWR: React Hooks For Remote Data Fetching](https://www.smashingmagazine.com/2020/06/introduction-swr-react-hooks-remote-data-fetching/)
5. [SWR Docs](https://swr.vercel.app/)
6. [React-Query Docs](https://react-query.tanstack.com/docs/overview)
Collection Functions
Tags: aws, terraform, cloud, codenewbie
Published: 2020-08-01 16:58:35

## concat

`concat` functions take 2 lists as a input and returns a new list

```hcl
``

## element

`element` function in TF is selects single element from a list. 

```hcl
 element(concat(aws_vpc.generic.*.id, [""]), 0)
```

In above code, we have used `concat` and `element` both with using `element` we are just selecting the value at the 0th index in the list.

## flatten

`flatten` function in