teleren/devto huggingface dataset:
Weekly Challenge 086
Tags: perl, perlweeklychallenge
Published: 2020-11-09 09:24:37

[This weeks challenge](https://perlweeklychallenge.org/blog/perl-weekly-challenge-086/)


With last week's task one, while I submitted a solution that works, I wasn't happy with the logic I used. The solution like [Roger Bell West's one](https://blog.firedrake.org/archive/2020/11/Perl_Weekly_Challenge_85__Triplet_Power.html) is much better.

# TASK #1 › Pair Difference

After submitting a subpar solution last week, hopefully this one is better :)

First I check we have at least three values, and all values appear to be integers. Then I work through combinations of first number and second number. If first number minus the second number meets the target (excluding the situation where we use the same positioned number twice), then I output the solution. If no solution is found, then I output zero.

Originally I exited the outer loop if that number was less than the target. I removed that line when I figured that negative integers could mean a lower value could provide a solution.

I should also point out that the output of the first solution differs from the given example. There is more than one valid pair combination to reach `$A`.

## Examples

```
» ./ch-1.pl 10 8 12 15 5 7
Output: 1 as 12 - 5 = 7

» ./ch-1.pl 1 5 2 9 7 6
Output: 1 as 7 - 1 = 6

» ./ch-1.pl 10 30 20 50 40 15
Output: 0
```

# TASK #2 › Sudoku Puzzle

At this stage, I don't plan to submit a solution to this task. A solution that I would be happy with would take many hours to write. This is the first time I have done this.

Take this row / column / sub-box for example: `[123] [124] 5 [12] 6 7 [12] 8 9`

There is a lot of work required to figure out that the solution can be reduced to `3 4 5 [12] 5 7 [12] 8 9`.

The alternative is to use a CPAN module that probably already exists to solve Sudoku puzzles. But that's no fun at all, and (IMO) against the spirit of these challenges.
Variables in JavaScript
Tags: javascript, tutorial, beginners
Published: 2020-11-09 09:23:05

Variables are used to store data on a computer.

There are different type of data that you can store in a variable, the following are different types of data types:

1. string
2. number
3. boolean
4. object
5. null
6. undefined
7. symbol
8. BigInt
9. function

Variables are accessed with a label, not with the data itself.

Let me explain the above point, firstly to create a variable you need to use the "var" keyword followed by a name for the variable and then assigning a value to it from any of the above data types.

Ex: var count = 20;

Here "count" is called the label. When we need to use the variable later we use its label to get the value stored in it.

Here we have stored a number 20 in the variable with a label count.

Hope this has helped you understand how to use variables.
O último guia de Angular Change Detection que você vai precisar
Tags: angular, typescript, javascript
Published: 2020-11-09 08:58:49

***Este artigo fornece todas as informações necessárias que você precisa saber sobre Change Detection no Angular. A mecânica é explicada usando um projeto que foi construído para o artigo. Uma tradução de ["The Last Guide For Angular Change Detection You'll Ever Need"](https://indepth.dev/the-last-guide-for-angular-change-detection-youll-ever-need/)***


Change Detection(detecção de mudanças) no Angular é um mecanismo central do framework, mas (pelo menos pela minha experiência) é muito difícil de entender. Infelizmente, não existe um guia oficial no site oficial do Angular sobre este assunto.

Continuo a tradução lá no meu site => https://fabiodemiranda.com.br/o-ultimo-guia-de-angular-change-detection-que-voc%C3%AA-vai-precisar/
Pick the Fastest Static File Server
Tags: help
Published: 2020-11-09 08:58:27

It's tricky that there are no benchmarks for this category. I am looking for the fastest Static webserver to get large files uploaded in a snap. Now I realize that there are several variables involved, I can't solve network speeds. I can however do some compression on the client or chunk requests.

**Example:**
- https://medium.com/javascript-in-plain-english/implementing-chunk-requests-and-uploading-large-files-30-faster-1c45bfe79938
- https://blog.daftcode.pl/how-to-make-uploading-10x-faster-f5b3f9cfcd52
- https://www.npmjs.com/package/zlib-wasm

### Use case
What are these files? .gltf 3D models which are actually a json format with a lot of base64 encouraging.
I want to scrape the files in a fast Java service and also have them persist for loading into a 3D viewer.
Files could be 50mb+

So from the server I want to get them in and out of the server as quickly as possible, does anyone have any recommendations for frameworks or servers, language is not a constraint here.
Why Outsourcing Digital Marketing makes sense?
Tags: digitalmarketing
Published: 2020-11-09 08:57:41

As a business owner or entrepreneur, running a business is always challenging, requiring a lot of focus, planning, and managing various aspects of work that you don't even plan. In such situations, as a business owner or owner, it is imperative that you make some crucial decisions about the work that you plan to manage, delegate, team up, or outsource to another company.

In most cases, it is still a good idea to outsource specialized work that is not core but complementary to your company to an expert or another company. And outsourcing this work has many business benefits. In today's digital world, when companies transform the way they do business and make it digital-centric, it's important to have digital knowledge captive internally, but it makes perfect sense to outsource your digital initiatives.

Outsourcing to another company or agency helps in many ways. Who offers specialized digital services like search engine marketing (SEM) on Google and Bing, pay-per-click (PPC) advertising on platforms like Google, Facebook, Twitter, Instagram, LinkedIn, and video ads on YouTube and other platforms?

[Digital marketing](https://www.propelguru.com/) outsourcing has several benefits for brands and we've shared a few that are the most important:

First, the brand team can focus on key business priorities and associated goals, given the focus and resource management required. By outsourcing specialized areas like digital marketing, a brand or small business owner doesn't have to worry or waste time trying to hire someone or a team to run their business. And that eliminates the worry about employee count or associated costs or managing the aspirations of your team specialists after they are hired.

When you outsource your digital marketing, you also expect to improve your overall marketing efforts with the expert advice you receive on digital strategy from the outsourced agency, who are experts working on cross-industry initiatives for multiple clients. So your outsourced digital marketing partner has a wealth of experience that can complement your own thinking and strategy, leading to better results over time for the brand.

Having a longer-term digital marketing partner also saves you money, as digital marketing requires the right expertise, knowledge, and expertise to manage and contribute to media buying and planning.

An outsourced digital marketing account also results in efficiency gains in better budget allocation as a result of data analysis and reallocation of the efficiency of the ROI budget base. Only a team with considerable experience and knowledge can handle this so that decisions are made at the right time to achieve continuous improvement and benefit the brand in its investment in [digital marketing media](https://www.propelguru.com/).
A importância da imutabilidade em aplicações Angular
Tags: angular, typescript, javascript
Published: 2020-11-09 08:56:32

**Em aplicações Angular, o termo imutabilidade é mencionado principalmente quando você lida com a estratégia OnPush de detecção de mudanças. Padrões de atualização mutáveis podem não só impedir que você tire proveito da diminuição de uma árvore de componentes sujeitos à detecção de mudança, mas também levar a bugs/pegadinhas difíceis de detectar. Uma tradução de ["Immutability importance in Angular applications"](https://indepth.dev/immutability-importance-in-angular-applications/)**

Com o advento do [Redux](https://redux.js.org/), padrões imutáveis de atualização se tornaram muito populares. Em poucas palavras, a idéia é criar um novo objeto em vez de alterar o existente quando for necessário realizar uma ação de atualização. Quando se trata de aplicações Angular, o termo imutabilidade é mencionado principalmente quando você lida com  [**a estratégia OnPush de detecção de mudanças**](https://angular.io/api/core/ChangeDetectionStrategy), a fim de melhorar o desempenho em tempo de execução 🚀.

No entanto, a adesão a padrões de atualização mutáveis pode não só impedir que você aproveite a redução de uma árvore de componentes submetida ao processo de detecção de mudanças, mas também levar a alguns bugs/pegadinhas difíceis de detectar.

Continuo a tradução lá no meu site => https://fabiodemiranda.com.br/a-importancia-da-imutabilidade-em-aplica%C3%A7%C3%B5es-angular/
Hacktoberfest was a push start for Me n many Beginners !!
Tags: hacktoberfest
Published: 2020-11-09 08:53:36

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->
LOvEd to participate here!!! Learned as well as contributed! Contributing is indeed a great way to learn! 

### About ME
I am student and an active learner. Being curious I venture out to learn new tech, especially if it is something which I can use to _create_ something new. 
Excited to learn more on DEV community and interact with people here, find similar passions...
Learning to do PullReq and contributing to LIVE project!! - This was my motivation for participating in HACKTOBERFEST2020 
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background
New to open source, I knew coding in #python, #C, #C++ and wanted to contribute to open source using the same.
<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress
Progress has been overwhelming, esp. because I completed the challenge and contributed to LIVE and useful repo's.


<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

My Contributions:-
https://github.com/zero-to-mastery/Keiko-Corp/pull/840
https://github.com/NLDev/Hacktoberfest-2020-FizzBuzz/pull/250
https://github.com/keivalya/dungeon/pull/3
https://github.com/Anishukla/Hacktoberfest-2020-Data-Structures-and-Algorithms/pull/5

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
A motivating and learning experience, gained much more than a reward! Being a part of contributors of a project was a highlight.
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
#hacktoberfest keep UP!
@DigitalOcean Rocks!
How to check if the folder is Git repo and in sync?
Tags: discuss, github, productivity
Published: 2020-11-09 08:51:09

---
title: How to check if the folder is Git repo and in sync?
published: true
description: 
tags: discuss, github, productivity
cover_image: https://miro.medium.com/max/2800/1*xMuQDF6um3L_oP6kIMoGJA.jpeg
---
Opening a separate folder and running `git remote -v` and `git status` every time just to see the status between local and remote repositories might be repetitive and ultimately time-consuming.

I remember Google Drive had a way to mark the folders by the green tick mark, that way the user automatically knew if the folder is backed-up in Google Drive and in sync.

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

Could you recommend similar solutions for GitHub projects, so the user can get the overview in the root (without opening the projects) and without running commands in the terminal?
What's your fav programming paradigm?
Tags: watercooler, programming, coding
Published: 2020-11-09 08:50:17

---
title: What's your fav programming paradigm?
published: true
description: 
tags: watercooler, programming, coding
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/9kcxwkbammccsxqfqwi3.png
---
Programming Paradigm is a style, technique, or way of writing a program. Part of a programmer's growth involves the ability to choose the appropriate programming paradigm for the given tasks.

The most common programming paradigms today are object-oriented programming, procedural programming, and functional programming. 

What's your favorite and why?
Check if an item is contained in a stream
Tags: java, streams, lambda, programming
Published: 2020-11-09 07:59:35

I recently tried to filter trough a stream to check if a specific item was present. My first approach was the following: 

```java

return customers
            .stream()
            .filter(customer -> customer.getName().equals("Smith"))
            .findFirst()
            .isPresent();


```

But in my company uses sonar qube (https://www.sonarqube.org/) as a static code analysis tool. SQ suggested me a better solution for this: 

```java
return customers
        .stream()
        .anyMatch(
            customer -> customer.getName().equals("Smith")
        );

```
Understanding Docker: part 13 – Pass environment variables
Tags: docker, devops, beginners, cloud
Published: 2020-11-09 07:58:34

---
title: Understanding Docker: part 13 – Pass environment variables
published: true
description: Serie of sketchnotes about Docker. Explaining in a visual way Docker principles.
tags: Docker, DevOps, beginners, Cloud
series: Understanding Docker in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/cl8rmclzwfvtq50rbqqv.jpg
---

Understanding Docker can be difficult or time-consuming. In order to spread knowledge about Cloud technologies I started to create sketchnotes about Docker. I think it could be a good way, more visual, to explain Docker (and other technologies like Kubernetes and Istio).

We continue the series of Docker sketchnotes with a focus about how to pass environment variables.

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


As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

If you are interested, I published all the sketchnotes on Docker (and new ones!) to make a "book" of 93 pages: ["Understanding Docker in a visual way"](https://gumroad.com/aurelievache#YTLzM).
Clean the Freaking Kitchen ‍ — Student’s Life Used to Explain Blockchain
Tags: education, blockchaintechnology, blockchain
Published: 2020-11-11 21:00:52

---
title: Clean the Freaking Kitchen ‍ — Student’s Life Used to Explain Blockchain
published: true
date: 2020-11-09 07:40:35 UTC
tags: education,blockchaintechnology,blockchain
canonical_url: https://medium.com/coinmonks/clean-the-freaking-kitchen-students-life-used-to-explain-blockchain-d90be2cf99f7
---

[![](https://cdn-images-1.medium.com/max/2133/0*c1hit4ai-fkRSGxb.jpg)](https://medium.com/coinmonks/clean-the-freaking-kitchen-students-life-used-to-explain-blockchain-d90be2cf99f7?source=rss----721b17443fd5---4)

PROBABLY THE SIMPLEST EXPLANATION ON BLOCKCHAIN YOU WILL FIND

[Continue reading on Coinmonks »](https://medium.com/coinmonks/clean-the-freaking-kitchen-students-life-used-to-explain-blockchain-d90be2cf99f7?source=rss----721b17443fd5---4)
GitHub Docs are Open Source
Tags: github, opensource
Published: 2020-11-09 07:30:39

GitHub is giving you the power. At GitHub, we believe in the collective power of the community. The community has so much to offer and everyone is so knowledgeable. That's why, this October, we open sourced our GitHub Docs.

{% twitter 1314302212131168267 %}

We wanted to give you the power to shape the documentation you know and love. We're encouraging you to engage, discuss, collaborate, and contribute to the docs that make your life easier.

Whether you're a first time contributor or a veteran to open source, the Docs team wants you. Contributions are welcome from everyone, no matter what background or skill level.

GitHub Docs are written in markdown which most people are familiar with. Even if you're not, markdown is relatively easy to learn and understand. The Docs website is written in JavaScript and Node. Since the two are separated - the website and the Docs - you don't need to be a JavaScript expert to contribute to GitHub Docs.

## Contribute to GitHub Docs

There's lots of ways to get involved. If you have an idea, open a discussion. Start chatting with other people who have opened discussions too. If you'd like to update something, go for it! Open an issue to get started with your contributions. And if you want to work on a specific issue or feature request, open a pull request.

Plus there's lots of other ways to be involved too, and tonnes of plans for the future of GitHub Docs. Head over to the [Docs website](https://docs.github.com) to check it out and enter to repo to get started today. We're looking forward to seeing lots of you engaging in GitHub Docs and we're excited to bring the power of GitHub Docs back to the community.

{% github github/docs %}
❎❓Quiz: Web Performance #9
Tags: challenge, webperf, webdev, quiz
Published: 2020-11-09 07:04:30

Do you know the Core Web Vitals? Check out the quiz question of the web performance quiz today.

What are the Core Web Vitals?

- Core optimization pattern to make a website faster.
- Minimum system requirements for hosting a website.
- A subset of performance metrics.

---
<center>[Answer the question](https://marcradziwill.com/web-performance-quiz/what-are-the-core-web-vitals/)</center>
---
❎❓Quiz: Web Performance #8
Tags: challenge, webperf, webdev, quiz
Published: 2020-11-09 07:04:23

The PRPL pattern describes: ...

- A pattern describing the following steps: push, Render, Pre-cache, Lazy load.
- A strategy to optimize the CSS.
- A compressing image algorithm.
- A font loading strategy.

---
<center>[Answer the question](https://marcradziwill.com/web-performance-quiz/the-prpl-pattern-describes/)</center>
---
❎❓Quiz: Web Performance #7
Tags: challenge, webperf, webdev, quiz
Published: 2020-11-09 07:04:15

What is perceived performance?

- Describes the social circumstances the user visiting your site has.
- Perceived performance is how fast a website seems to the user.
- Shows how much money you can make from a faster website.

---
<center>[Answer the question](https://marcradziwill.com/web-performance-quiz/what-is-perceived-performance/)</center>
---
Competitive programming: from zero to hero.
Tags: cpp, datascience, algorithms, beginners
Published: 2020-11-09 06:56:25

A lot of people, especially students from all around the world are competing in programming events like IOI or ACM-ICPC.
Having Algorithmic and Data Structure knowledge is a must for all Computer Science jobs, and by competing in this kind of events, students become masters of these.

There are many ways to prepare for competitive programming, but the best piece of advice someone can ever give you is: **Practice. Practice. Practice. Every. Single. Day.**

Sure, it is really important to study lots of algorithms and data structures. But without practice you are no better than a book!

There are lots of ways to practice, for example:
* [Codeforces](https://codeforces.com) — amazing platform with weekly contests and huge problemset
* [The DCQ](https://thedcq.com) — our free mail newsletter with daily coding problems with explanations and suggested implementation.
* [GeeksForGeeks](https://geeksforgeeks.org)— a website explaining most algorithms and data structures. They also have an amazing Youtube channel

Tips and tricks
* Practice the areas you dont feel quite confident in.
* Always upsolve problems you didn’t manage to do during the contest.
* Take part in lots of contests.
* Don’t get influenced by rating changes.
* Never copy code. You need to understand it, then implement it on your own.
* Solve one problem every day. Choose your own problem or solve the Daily Coding Problem sent by us.

If you like this kind of post/tutorial about competitive programming, follow our [blog](https://thedcq.com/blog) or subscribe to the [newsletter](https://thedcq.com)! If you have any questions, ask! And tell me what kind of post you would like to see.
Covey's Time Management Matrix
Tags: productivity, timemanagement, career, books
Published: 2020-11-09 06:44:28

---
title: Covey's Time Management Matrix
published: true
description: Using Stephen Covey's powerful time management technique
tags: productivity, timemanagement, career, books
cover_image: https://images.unsplash.com/photo-1501139083538-0139583c060f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2550&q=80
---

> “What is important is seldom urgent and what is urgent is seldom important.”
― Dwight D. Eisenhower

Our daily activities can be divided to lie into one of the following four quadrants

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

The image says it all. The upper right quadrant is where the real magic happens.

Most of us are reluctant to do the activities in **Quadrant II (Not Urgent Yet Important)** and we tend to keep **procrastinating** them. Either we are -
* too busy handling urgent Quadrant I (Urgent and Important) and Quadrant III (Urgent and Not-Important) tasks or 
* we are too comfortable in enjoying our Quadrant IV (Not-Urgent and Not-Important) activities to make time for Quadrant II.

But Quadrant II activities like 
* exercising
* reading
* spending time with loved-ones 
* learning new skills 
* strengthening relationships 
* meditating 

are the ones that **build up compound time**. They may seem to take more time in the beginnning, but they pay compound interest to the investment made in the long run.

> “An investment in knowledge always pays the best interest.”
― Benjamin Franklin

I urge you to draw a similar matrix for yourself and see where you are spending your time. 

Alternatively make a list of tasks on your mind and rank them in the order of importance and put them in the quadrants to plan your day accordingly.

Thanks for Reading! 

I also wrote an article about my learnings from 'The Seven Habits of Highly Effective People'. Please find it [here](https://medium.com/a-seed-of-thought/takeaways-from-the-7-habits-of-highly-effective-people-b0b39559a522).
CRUD in Django seems better use of Time vs React or Vue. 
Tags: react, vue, django, python
Published: 2020-11-09 06:13:38

Which is a better use of time? Using React? Or Django for CRUD? I’m inbetween Python/Django, React, Vue or maybe Datascience. I’m not sure which is better 
to focus on,
 and, which is better 
“use of time”
 to do one thing.