teleren/devto huggingface dataset:
Giveaway - Win full access to 'VSCode Power User' worth $149
Tags: vscode, giveaway, codenewbie, productivity
Published: 2020-05-27 08:47:07

Hi Devs 👋

We all sit behind our editor coding away for **200 hours a month** on average. Worth **$149**, this course will **save you 15-20 hours every month** and here is your chance to **win full access to it for free!**

Check out the awesome course you could win here - [VSCode.pro](https://vscode.pro/)

Follow the steps below or click through into the embedded tweet for more information:

1. Follow [@frontenddude](www.twitter.com/frontenddude) on Twitter
2. Like the Tweet embedded below ⬇️
3. Retweet the Tweet embedded below ⬇️

{% twitter 1265192876989915137 %}
Composer Allowed memory size error
Published: 2020-05-31 00:22:27

---
title: Composer Allowed memory size error
published: true
date: 2020-05-27 08:41:50 UTC
tags: 
canonical_url: https://dcblog.dev/composer-allowed-memory-size-error
---

Running composer to install a new package locally caused the following error:

> PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

The solution was to allow my local setup to consume as much memory as it needs to run:

```
php -d memory_limit=-1 /usr/local/bin/composer require --dev knuckleswtf/scribe
```
DEV.TO Platform questions
Tags: dev
Published: 2020-05-27 08:41:12

---
title: DEV.TO Platform questions
published: true
description: 
tags: dev
---

1. Why is DEV.TO sending random notifications without following the post or author, this leads to too much information that I don't need.

2. Since I know for DEV.TO I'm not able to comment on the mobile PWA when I click on send I get only the loading animation, multiple times tried to delete and install PWA again but always the same problem.

3. A bit more technical question but what was the reason to choose Ruby over Nodejs for DEV.TO backend?

Thanks
My Solid JS presentation made from gists
Tags: webdev, javascript, showdev, html
Published: 2020-05-27 08:36:33

I'm sharing a presentation about my view on how to write better JS. Obviously it probably scratches the surface but I believe some of you might find it helpful. :smiley:

Here is the link: https://solid-js.s3.eu-west-2.amazonaws.com/solid-code.html

For better effect, zoom in few times.

*We're running a [Kickstarter](https://www.kickstarter.com/projects/gluecodes/gluecodes-platform) campaign to be able to finish off [GlueCodes Platform](https://www.glue.codes), particularly the IDE and web components. Any pledge is much appreciated.*
Can we support including parts of others' posts in ours to help reduce duplicate tutorial problem?
Tags: discuss, meta
Published: 2020-05-27 08:23:21

I see a lot of similar sounding titled posts appearing in a weekly and even sometimes almost daily basis. And they sometimes rehash similar points and examples. 

I realise there's a market for certain types of introduction and comparison posts, and I appreciate their writers and content. But I think it'll be effective to have a way to add to the existing content or reuse existing content (with back referrals) so that the content and contributors (writers, commenters) can build upon each other and be more efficient and valuable. 

Example topics are "_framework 1_ vs. _framework 2_" and "what is _this cool feature_".
クラスカル法 (Kruskal's Algorithm)
Tags: クラスカル法, kruskal
Published: 2020-05-27 08:15:46

{% youtube CYEPCBFIwrY %}

## コード

```js
let input = require('fs').readFileSync('/dev/stdin', 'utf8');
const lines = input.trim().split("\n")
let v, e, path = []

for (let i = 0; i < lines.length; i++) {
  if (i === 0) {
    [v, e] = lines[i].split(" ")
    continue
  }
  path.push(lines[i].split(" ").map(v => parseInt(v)))
}

const DisjointSet = function () {
  this.m = new Map()
}

DisjointSet.prototype.add = function (val) {
  this.m.set(val, new Node(val))
}

DisjointSet.prototype.union = function (val1, val2) {
  const p1 = this.find(this.m.get(val1).val)
  const p2 = this.find(this.m.get(val2).val)
  if (p1.rank === p2.rank) {
    p2.rank++
    p1.parent = p2
  } else if (p1.rank < p2.rank) {
    p1.parent = p2
  } else {
    p2.parent = p1
  }
}

DisjointSet.prototype.find = function (val) {
  let cur = this.m.get(val)
  if (cur.parent != cur) {
    cur.parent = this.find(cur.parent.val)
  }
  return cur.parent
}

const Node = function (val) {
  this.val = val
  this.parent = this
  this.rank = 1
}

function kruskal(v, path) {
  path.sort((a, b) => a[2] - b[2])

  // initialize nodes
  const ds = new DisjointSet()
  for (let i = 0; i < v; i++) {
    ds.add(i)
  }
  let total = 0
  for (const [s, t, w] of path) {
    if (ds.find(s) === ds.find(t)) {
      continue
    }
    ds.union(s, t)
    total += w
  }
  console.log(total)
}

// console.log(v, e)
// console.log(path)
kruskal(v, path)
```

## 問題

- https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/all/GRL_1_
Javascript Yesterday, Today, and Tomorrow
Tags: javascript, date
Published: 2020-05-27 08:15:09

Simple day manipulation with Javascript (without using `moments`)

```Javascript
// Construct yesterday, today, tomorrow
const today = new Date();

const yesterday = new Date(today);
yesterday.setDate(yesterday.getDate() - 1);

const tomorrow = new Date(today);
tomorrow.setDate(tomorrow.getDate() + 1);

console.log('Yesterday: ', yesterday.toDateString());
// => Yesterday:  Tue May 26 2020

console.log('Today: ', today.toDateString());
// => Today:  Wed May 27 2020

console.log('Tomorrow: ', tomorrow.toDateString());
// => Tomorrow:  Thu May 28 2020
```
Have you any bot to recommend in order to test website security (SQL Injections or others) ?
Tags: discuss, security, webdev
Published: 2020-05-27 07:57:39

#Hi evryone !

In order to improve my website security, I'm looking for some bot or services, free or not wich can analyze a site an find security issues ?
I find the webdev community can really be helped by the google page speed insights docs, but in security is there any knowledge base like this one ?

Have you a favorite one to advise me ?

Let's talk about it !
Job Search Week 14
Tags: makers
Published: 2020-05-26 21:32:54

This week I mainly worked on my React message board app this week. I'm getting thought it using Mocha and Chai but I'd like to look into using jest and enzyme as well. That was my main focus this week.

Day 1

I started by handling the route errors for the back end of the project. I Gave an error message for the GET, POST, PATCH and DELETE requests if someone but in invalid input or retrieve something that wasn't there.

Day 2

On Tuesday I continued to work with the back end finishing off the rest of the tests and doing some refactoring I'll be coming back to the back end when we connect Mongo to it.

Day 3

I did some work on my CV to reflect some of the new things I've worked on over the past couple of weeks and started making a template for my cover letters so that I could take it and adjust it based on the company.

Day 4

On Thursday I looked at the e-commerce project because I had initially spiked it and was going to go back and write the tests but after having a look at the project I decided I wanted to use Jest and Enzyme for testing that. So I'm going to finish the message board first.

Day 5

I continued to work on the message board app on Friday. I used the create-react-app command to make the front end file. I got started on the front end writing my first react test and making it pass. 

Summary

I got quite a bit done in my message board app and having the template for cover letters makes it easier to do applications since I don't have to write them from scratch each time.
POWERSHELL LÀ GÌ VÀ NHỮNG TIỆN ÍCH MÀ POWERSHELL MANG LẠI
Published: 2020-05-27 07:51:01

Powershell là một công cụ để quản lý các trang mạng đang được các lập trình viên “ ưu ái”. Vậy Powershell là gì và nó mang lại những tiện ích gì?
http://24htechtrend.com/index.php/powershell-la-gi/
Memory Game
Published: 2020-05-27 07:50:28

Hello Guys,

On first page 
1. There is a button to generate Random Number
2. So once you click the page will display the random number and refreshes in 5 seconds and then redirects to second page.
3. On second page there is input field where you have to enter the same random number as it was in first page and press guess button
4. If it matches all number then it will display all num matched
5. If out of the 6 numbers if it matches any number in that it should print you match 4 numbers Eg: (123456 == 123678 then it should print 4 numbers matched)

So i hope you my explaination:)

Please figure this out and let me know
Wednesday Links - Edition 2020-05-27
Tags: java, kotlin, database, functional
Published: 2020-05-27 07:49:54

Patterns for Managing Source Code Branches ( 30+ min read ) 🌴
https://martinfowler.com/articles/branching-patterns.html

methanol - Lightweight HTTP extensions for Java 11 ( 2 min read ) ⚗️
https://github.com/mizosoft/methanol

Improving Kotlin's internal with ArchUnit ( 2 min read ) 📐
https://dev.to/0xkkocel/improving-kotlin-s-internal-with-archunit-4b3g

What’s new in Spring Boot 2.3 ( 3 min read ) 🆕
https://rieckpil.de/whats-new-in-spring-boot-2-3/

Project Leyden Aims to Improve Java Startup Time ( 2 min read ) 🚅
https://www.infoq.com/news/2020/05/java-leyden/

Single-Primary Database Replication ( 5 min read ) 🎎
https://vladmihalcea.com/single-primary-database-replication/

A Taste of Functional Java ( 19 min read ) 🏂
https://aleksandarskrbic.github.io/a-taste-of-functional-java/
JavaScript Charting Library AnyChart 8.8.0 Released with New Cool Features
Tags: webdev, dataviz, javascript, showdev
Published: 2020-05-27 07:41:53

---
title: JavaScript Charting Library AnyChart 8.8.0 Released with New Cool Features
published: true
description: AnyChart JS charts library received new out-of-the-box features designed to further facilitate visualizing data in insightful charts.
tags: #webdev, #dataviz, #javascript, #showdev
canonical_url: https://www.anychart.com/blog/2020/05/22/javascript-charting-library-new/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/1rvpvotz7q11d74r7lr9.png
---
JavaScript charting library AnyChart has received several new out-of-the-box features. In the [AnyChart 8.8.0](https://www.anychart.com/blog/2020/05/22/javascript-charting-library-new/) release, the focus is on further streamlining Gantt chart customization. For instance, now you can quickly do the following:
* visualize weekends, holidays, and nonworking time,
* add the start and end markers to tasks,
* display milestones in resource charts,
* define what the mouse wheel does,
* configure the fiscal year timeline shift,
and more.

Also released are improvements for basic and time-series charts as well as maps. Learn all about the latest major update in the [AnyChart blog](https://www.anychart.com/blog/2020/05/22/javascript-charting-library-new/).
Large company trustworthiness and balance of power?
Tags: privacy, discuss
Published: 2020-05-27 07:14:03

Who can I trust?

Like many tend to say we cannot trust Google, Facebook or Twitter? But can we trust Amazon, Microsoft? What is the current state of GitHub?

What about less used or regional, like Alibaba?

What about Firefox, or even Brave and Tor? Or any self-proclaimed privacy-focused companies?
How You Can Improve Employee Efficiency While Working Remotely?

Published: 2020-05-27 07:00:28

These days, the coronavirus has changed the business work culture across the world. But thanks to the advanced technologies for carrying out smooth remote working. It has been analyzed that remote working is great for both employers and employees. Employees can benefit by avoiding their daily commutes which saves their time, money and improves health with productivity. Whereas employers can benefit by cost saving on furnishing, travel allowance, electricity. Some of the companies like Twitter might adopt the work from home model permanently because it provides them more flexibility to work as per the business needs. Work from home is a dream come true for many but not for all. Remote working comes with more distractions and no interaction with employees which leads to a reduction in productivity and also depression due to isolation. It will directly impact remote work. 

Employee efficiency is a big challenge for management while working remotely. Managers always try to collaborate and connect with employees for better results. While working remotely, there is an invisible barrier between personal and professional life which may create an imbalance in life. So managers need to interact well with remote employees and assess the situation of their colleagues. Good management always understands the value of its employees and motivates them. Understanding the employee’s perspective for a better result has many benefits for a business. Also we have listed down some important tips to improve employee efficiency that may help you.

**Ways To Improve Employee Efficiency While Working Remotely-**
*1. Support for Dedicated Workstations-*
A dedicated workstation plays an important role in productivity when you are working remotely. Remote managers or management teams of organizations must encourage employees to build a dedicated workstation in their homes. It can be the empty space of a room, rooftop, or storeroom. Some of the organizations provide a huge stipend to employees for creating home offices. A comfortable dedicated workstation can result in reduced distractions and ultimately increase productivity.

*2. Use of effective Tech and Productivity Tools-*
There is a need to provide tools so that managers and employees stay connected and work efficiently instead of different physical locations. Managers can use project management tracking apps like Asana and Airtable, communication apps like Slack and Microsoft Teams, and video conferencing apps like Zoom and Google Hangouts. It is necessary to ensure that computer systems are properly updated that are going to be used by employees. Also ensure that employees have a good internet connection at home to avoid a reduction in productivity. You can know the effective tools at- Top 7 time and productivity tracking tools for effective work from home.

Know more at- [https://solaceinfotech.com/blog/how-you-can-improve-employee-efficiency-while-working-remotely/]
How to make a windows installer run silently
Tags: todayilearned, chocolatey, installer, commandline
Published: 2020-05-27 09:20:25

---
title: How to make a windows installer run silently
published: true
date: 2020-05-27 07:00:00 UTC
tags: todayIlearned,Chocolatey,Installer,commandLine
canonical_url: https://10xlearner.com/2020/05/27/how-to-make-a-windows-installer-run-silently/
---

Hello ! I’m Xavier Jouvenot and in this small post, we are going to see how to make a windows installer run silently.

_Self promotion_: You can find other articles on my [website](www.10xlearner.com) 😉

## Options for installers ? 😮

Until I look on the internet about this subject (in order to create chocolatey packages), it never occured to me that you could pass arguments to an installer on Windows ! 😮

But you totally can, and depending on the installers, you have different parameters available to you, in order to specify some behavior of the installer.I have put the link to the documentations of the installers that I know of at the end of the articles, if you want to know more about all the options they can give you.If you know about another kind of installer, do not hesitate to share it with me, I will gladly add it in this article 🙂

## Silencing the installer

As I explained in the previous part, depending on the installer, the parameters are different.This means that for silencing the installer, this option to pass to the installer is different from one installer to the other.Here are the options silencing the installers:

- Microsoft Standard Installer – `/quiet`
- NSIS Installer – `/S`
- Inno Setup Installer – `/SILENT` or `/VERYSILENT`

* * *

Thank you all for reading this article,And until my next article, have a splendid day 😉

## Interesting links

- [Microsoft – Standard Installer Command-Line Options](https://docs.microsoft.com/en-us/windows/win32/msi/standard-installer-command-line-options)
- [NSIS – Command Line Usage](https://nsis.sourceforge.io/Docs/Chapter3.html)
- [Inno Setup – Setup Command Line Parameters](https://jrsoftware.org/ishelp/index.php?topic=setupcmdline)
- [10xlearner website](www.10xlearner.com)
Understanding Kubernetes: part 27 – Jobs
Tags: kubernetes, devops, docker, beginners
Published: 2020-05-27 06:54:42

---
title: Understanding Kubernetes: part 27 – Jobs
published: true
description: Serie of sketchnotes about Kubernetes. Explaining in a visual way Kubernetes principles.
tags: Kubernetes, DevOps, Docker, beginners
series: Understanding Kubernetes in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/v3eimt7rmar1d0itzp18.jpg
---

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

We continue the serie of Kubernetes Sketchnotes with a focus on Jobs.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/v3eimt7rmar1d0itzp18.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5n10qnafs02pr6fz4k7i.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/blzmrckmzmmqbvi6p2jc.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6sb8ilr771x0tz0x9y1z.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/a753rf7ndmrduxpouspl.jpg)

If you are interested, I published all the sketchnotes on Kubernetes (and new ones!) to make a "book" of 120 pages: ["Understanding Kubernetes in a visual way"](https://gumroad.com/aurelievache#uCxcr).

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).
JavaScript Arrow Function
Tags: javascript
Published: 2020-05-27 06:50:38

We all know the basics of functions in `JavaScript`, but since ES6 came out, we can use `JavaScript` Arrow Functions.
These arrow functions make our jobs as developers easier and are super easy to switch too.

## JavaScript functions

Before we look into the Arrow Functions let's look at how we did functions in normal `JavaScript`.

```js
myFunction = function() {
  return 'Hi there!';
};
```

That would be a very basic function, but let's see how this translates to an Arrow Function.

## JavaScript Arrow Functions

So let's stick with the above example, we can convert it into an Arrow Function as such:

```js
myFunction = () => {
  return 'Hi there!';
};
```

In essence we replace `function()` with just `()` and add the `=>` arrow command.

To be blunt, we can make it even shorter since Arrow Functions will return by default.

```js
hello = () => 'Hi there!';
```

## Arrow Function Parameters

You're probably wondering how we can include parameters; we can pass them into the first brackets like such:

```js
hello = name => 'Hi ' + name;
```

Even better, if we only have one parameter, we can forget about the brackets like such:

```js
hello = name => 'Hi ' + name;
```

I hope you learned something about the basic usage of Arrow Functions; I challenge you to use these in your next project!

Feel free to view this on Codepen.

<p class="codepen" data-height="265" data-theme-id="dark" data-default-tab="result" data-user="rebelchris" data-slug-hash="dyYLNwV" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="JavaScript Arrow Function">
  <span>See the Pen <a href="https://codepen.io/rebelchris/pen/dyYLNwV">
  JavaScript Arrow Function</a> by Chris Bongers (<a href="https://codepen.io/rebelchris">@rebelchris</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
What is a Zip function in Python?
Tags: python, beginners
Published: 2020-05-27 01:24:39

Zip is a powerful function in Python that is often ignored by many of us as it has a completely different use and meaning outside the Python world. The concept of **zipping a file** or compressing a file is the most common way we have used the term **zip**. But Zip function has a completely different meaning and use in Python. This article attempts to explain the **zip** function. 

<h4>What is a zip function?</h4>
Here is the definition of zip from Python's help module:

> Return a zip object whose `.__next__()` method returns a tuple where
> the i-th element comes from the i-th iterable argument.  The `.__next__()`
> method continues until the shortest iterable in the argument sequence
> is exhausted and then it raises StopIteration.

Although above definition is very accurate, it does not help fully grasp the functionality of zip function. So, let’s try to understand with an example.

Consider below two lists of alphabets and numbers. If we need to map the individual elements of the list, we could use a zip function:
```python
numbers = [1, 2, 3, 4]
letters = ["a", "b", "c", "d"]
for pair in zip(numbers, letters):
   print(pair)   # (1, 'a') (2, 'b') (3, 'c') (4, 'd')
```     

<h4>What happens if the lists getting combined have a different number of elements?</h4>
Zip iteration stops when there are no more elements to match in one of the lists.
```python
numbers = [1, 2, 3]
letters = ["a", "b", "c", "d", "e", "f"]
for pair in zip(numbers, letter):
    print(pair)   # (1, 'a') (2, 'b') (3, 'c') 
```     

<h4>Could we combine more than two iterables with zip?</h4>
Zipping could be performed with any number of iterables.
```python
ids = [1001, 1002, 1003]
items = ["apple", "orange", "banana"]
price = [3.99, 2.99, 1.99]
for t in zip(ids, items, price):
    print(t)     #(1001, 'apple', 3.99) (1002, 'orange', 2.99) (1003, 'banana', 1.99)
``` 

<h4>What happens if only one iterable is supplied to the zip function?</h4>
Zip function generates tuples containing one element.
```python
word = 'hello'
for w in zip(word):
    print(w)     # ('h',) ('e',) ('l',) ('l',) ('o',)
``` 

<h4>How can we perform the reverse of zip operation?</h4>
We could unpack the collection of tuples into individual iterables using below zip function:
```python
src = [(1001, 'apple'), (1002, 'orange'), (1003, 'banana')]    
ids, items = tuple(zip(*src))
print(ids)      # (1001, 1002, 1003)
print(items)   # ('apple', 'orange', 'banana')
```

<h4>How can I create other data structures using a zip function?</h4>
Zip function could be used to combine below iterables to make a dictionary.
```python
ids = [1, 2, 3, 4, 5]
vowels = "aeiou"

id_vowel = dict(zip(ids, vowels))
print(id_vowel)   # {1: 'a', 2: 'e', 3: 'i', 4: 'o', 5: 'u'}
```

<h4>Where can I use this zip function?</h4>
Zip function would be quite handy during **cleansing and processing** of multiple sources of data into something more meaningful.
Responsive HTML/CSS WebPage - Day1 - 100DaysOfCode
Tags: 100daysofcode, webdev, html, css
Published: 2020-05-27 06:28:05

It will be challenging to start any kind of activity but once you are committed, then no one could stop you...

Initially, I would be referring to courses to build responsive websites and then will start building own websites with new designs.

I started building a layout of the website using HTML and need to apply CSS to get a life for the Website.

Below is a glimpse of the HTML WebSite.

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