teleren/devto huggingface dataset:
🦠 COVID-19: How can we use our unique skillset to help our communities?
Tags: discuss, opensource, webdev, covid19
Published: 2020-03-23 22:44:49

As developers we can easily work from home; in fact many of us already do this everyday. The current lockdowns being enforced around the world mean we'll now spend even more time at home - and no doubt on our computers! :grin:

We also have a unique skillset that means we have the ability to help our communities even though we are isolated.

This could be as simple as offering IT support to those in our local communities / families who are not very tech-savvy.

> Today for example, I am helping a neighbour set up Zoom so she can remain connected. I plan to create a simple website that contains simple setup info for this and other apps for similar people to use.

**But I think we can use our skills to do more.**

This site was recently created to help nurses and the most vulnerable during the COVID-19 crisis stay at home and not risk their lives:
[https://www.herobuddy.org/](https://www.herobuddy.org/) 

This [site](https://trekhleb.github.io/covid-19/) by @trekhleb shows the dynamics (the curvature of the graph) of Сoronavirus distribution per country.

**Do you know of any other sites like this?**

**What else could we build as a community that could help others?**
Perhaps something that makes it easier to organise collection of food / medical supplies?

**Do we even need something - are WhatsApp etc enough?**

**List of Sites**
* https://www.herobuddy.org/
* https://trekhleb.github.io/covid-19/
* https://covid-19.t10.digital/
* https://coronavirus.davidb.dev/
* https://findcovidtesting.com/
* https://clickandcollect.nz/

**List of Apps**
* https://github.com/WorldHealthOrganization/app
* https://corona-trace.github.io/
* https://www.gov.sg/article/help-speed-up-contact-tracing-with-tracetogether
* https://devpost.com/software/heed

**List of Libraries/Tools**
* https://github.com/ahmadawais/corona-cli
* https://github.com/Co-Epi
* https://github.com/nextstrain/ncov

**Collaborators / Volunteers Wanted**
* [COVID-19 Simulation & Modelling for Nepal](https://dev.to/risavkarna/covid-19-simulation-for-nepal-a-call-for-collaboration-19n8)
* [U.S. Digital Response for COVID-19
](https://www.usdigitalresponse.org/)
* https://github.com/WorldHealthOrganization/app
How to Reduce Functions in Javascript
Tags: javascript, node, reduce, array
Published: 2020-03-23 22:43:07

## **Run a list of functions and get a list of results:**

### Hi, I'm a new programmer!

**I've been studying for a few months** and would like to share this piece of code that came to mind when I studied about the **Reduce()** function.

I know it's something simple, but it could be useful for many people to extend it, comment on it and improve it.

{% runkit %}
// Run with Node 11 or higher

// DATA-COLLECTING FUNCTIONS
const func1 = () => { return { user: 'Diego Perdomo' } }
const func2 = () => { return { skills: ['Js', 'React', 'Node', 'Sql'] } }
const func3 = () => { return { webs: ['dpercode.com', 'dev.to/diegoper'] } }
const func4 = () => { return { articles: ['My Article 1', 'My Article 2'] } }

// CREATE ARRAY OF FUNCTIONS
const myFunctions = [func1, func2, func3, func4]

// REDUCE THE FUNCTIONS
const funcReducer = myFunctions.reduce((funcAccumulator, nextFunc) => {
    let arrayFunc = [];
    funcAccumulator === undefined ?
        arrayFunc.push(nextFunc()) :
        arrayFunc.push(funcAccumulator, nextFunc())
    return arrayFunc.flat();
}, undefined)

// RESULTS
console.log(funcReducer)

{% endrunkit %}

<pre>
// RESULT
[
  { user: 'Diego Perdomo' },
  { skills: [ 'Js', 'React', 'Node', 'Sql' ] },
  { webs: [ 'dpercode.com', 'dev.to/diegoper' ] },
  { articles: [ 'My Article 1', 'My Article 2' ] }
]

</pre>

**Thanks for visiting my article...**
Do you have a side project? Talk about it!
Tags: discuss
Published: 2020-03-23 22:40:34

Many professional developers have also side projects! 

Some have a commercial SaaS software, others an open source npm module ... others a blog!

There are also multiple reasons to have a side project: to update your resume, to make an extra income, to sharpen your coding skills or get new skills, etc.

So...

Do you have a side project? 

Talk about it! Tell us where we can find it, what makes it special, what technologies did you use, etc.

If you don't have one yet... would you like to build one?
Day 100 : Seize the Day
Tags: hiphop, code, coding, lifelongdev
Published: 2020-03-23 22:33:13

_liner notes_:
- Saturday : So, the station is closed til further notice due to the current state of things and I totally agree. As long as we have electricity and an internet connection, there will be a show. Did it all from my room. Came out pretty good. The show's recording at https://kNOwBETTERHIPHOP.com

![Radio show episode image of the radio show's bandcamp.com page with the words March 21st 2020, Essential](https://dev-to-uploads.s3.amazonaws.com/i/ncak66souj0w3q5n1ww5.jpg)

- Sunday : Spent the day getting the radio show uploaded and other post show tasks. Did some research for some side projects. Basically rested a little and got ready for the upcoming week.

- Professional : Had a couple of meetings. Got my blog post looking right. Turns out that I didn't have the correct permission level to be able to embed the iframes. Then I started to rework a tutorial on the website.

- Personal : Going to work on a layout for a side project I'm working on. Watch "Dispatches from Elsewhere" and go to bed. Keeping it easy.

![The Coromandel mountain range in New Zealand at sunset](https://dev-to-uploads.s3.amazonaws.com/i/rynb9z8figv95zw1d4mo.png)

Want to get up early tomorrow and seize the day! haha Got an early meeting and a couple of more during the day.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 6q8a7XBxgpI %}
Stuffing all Human History into One Knowledge Graph
Tags: database, rdf, dataops, data
Published: 2020-03-23 22:32:40

---
title: Stuffing all Human History into One Knowledge Graph
published: true
description: This is the talk that I gave in Open Belgium about how we put Seshat Databank into TerminusDB.
tags: Database, RDF, Dataops, Data
---
This is the talk that I gave in Open Belgium about how we put Seshat Databank into TerminusDB.

See more at my [YouTube Channel](https://www.youtube.com/channel/UCie_J9IohYO4hSsz4O2mDfQ)
Follow to catch me live on [Twitch](https://www.twitch.tv/cheukting_ho)
Building a Serverless Photomontage WebApp with Node.js
Tags: serverless, aws, node, javascript
Published: 2020-03-23 22:21:15

The benefits of the lambda functions are endless. The good thing is that you can create anything in a few clicks. I'm a big fan of the services that offer AWS. You can start with something really simple and apply more complexity adding more services.

On this opportunity, I will show you how was integrate some components that AWS offers to us to make the final product.

Before putting hands to works, was read some docs and view some implementations to understand if the idea can be viable. The focus was always trying to implement that solution using JavaScript because I have more knowledge of that.

##Initial idea
In this case, it was an online photomontage that merges our wanted message into a template that I choose:

![Template](https://image-processor-serverless.s3.amazonaws.com/ronaldo.png)

##Getting Started
The next step was to find a module on npm that resolve our requirement to manipulate images easily. [Jimp](https://www.npmjs.com/package/jimp) looks good to me because not have third dependencies and your documentation is complete enough.

With the help of [Claudia.js](https://claudiajs.com), it was really easy to automate deployments of the lambda functions just with a few commands from the console.

##Architecture
The user interacts with an interface, this is located in a bucket (Amazon S3). The form located there, dispatch a POST to an API Rest. Here our AWS API Gateway takes the petition and executes a lambda function to generate the wanted photo in a few seconds.

![Architecture](https://image-processor-serverless.s3.amazonaws.com/AWS+Architecture.png)

##Services used
* Amazon S3
* Amazon API Gateway
* Amazon Lambda

##Online Demo
If you want to see all the components working, can you visit the online demo [clicking here](https://image-processor-serverless.s3.amazonaws.com/frontend/index.html). This same concept could be used for multiple scenarios.

##Main feature
The part most important of this development is the lambda function. Here you can see the code used to generate the photomontage.

{% gist https://gist.github.com/jbrizio/c68e9e3cc9863e11d158583cedf43781 %}

What other scenario do you imagine using this?.
How to run DynamoDB Offline
Tags: serverless, aws, database, dynamodb
Published: 2020-03-23 21:48:31


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

I am assuming you are already familiar with the Serverless Framework so I'll jump right into it

### Quick overview

Amazon DynamoDB:- is a fully managed proprietary NoSQL database service that supports key-value and document data structures designed to deliver fast and predictable performance.

The Serverless Framework:- enables developers to deploy backend applications as independent functions that will be deployed to AWS Lambda.

### Getting started

let's kick off by configuring  AWS if not already configured doing this you will have to download the AWS CLI for W[indows](https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html), [macOS](https://docs.aws.amazon.com/cli/latest/userguide/install-macos.html), or [Linux](https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html)

*The serverless framework will need us to configure access to AWS - This is accomplished by running*

    aws configure

Install Serverless globally if you haven't installed it already 

    npm i -g serverless

 ****

Now let's setup up the *serverless-offline* plugin

    npm i -g serverless-offline

Install *serverless-dynamodb-local* plugin

    npm i serverless-dynamodb-local

Update your *serverless.yml* file - add this to the bottom of your *serverless.yml* file

    plugins:
      - serverless-dynamodb-local
      - serverless-offline

Initialize DynamoDB  - this initializes DynamoDB offline in your project folder

    sls dynamodb install

Run serverless:-

    sls offline start

Be sure DynamoDB is running on port 8000 because *serverless-offline* will use that port as default

you should see the output below

    Dynamodb Local Started, Visit: http://localhost:8089/shell

Keep this console running.

Now let's setup [*dynamodb-admin*](https://github.com/aaronshaf/dynamodb-admin): this gives us a good GUI to view our DynamoDB tables

    npm install dynamodb-admin -g
    
    export DYNAMO_ENDPOINT=http://localhost:8000

Now run 

    dynamodb-admin

We should have our table displayed

Configuring *serverless.yml* for DynamoDB

    dynamodb:
        stages: dev
        start:
          port: 8089 
          # set our custom DynamoDB port
          migrate: true
          # creates tables from serverless config
          seed: true 
          #determines which data to onload
        seed:
          domain:
            sources:
              - table: MyDB-dev
                sources: [./resources/seeds/myDB.json]

I published a great cheat sheet with all commands needed  for setting up DynamoDB offline you can find it here  

[https://github.com/codaelux/DynamoDB-offline-doc](https://github.com/codaelux/DynamoDB-offline-doc)
What's The Coolest Tool Your Team Implemented Due to Quarantine?
Tags: remote, tools, discuss, quarantine
Published: 2020-03-23 21:38:12

---
title: What's The Coolest Tool Your Team Implemented Due to Quarantine?
published: True
description: Discussing new tools for quaran-teams.
tags: remote, tools, discuss, quarantine
---
Just wanting to discuss any new or neat tools that have found their way into your work life as a part of quarantine. I'll start: my team started using GeekBot to do our daily stand-ups, as it keeps us asynchronous. We simply answer the prompts in Slack and voila! the responses are sent to our stand-ups channel.

Share your experiences in the comments. :D
Week 1 of #100Days100Projects
Tags: javascript, html, css
Published: 2020-03-23 21:25:53

After reading a blog post from Florin Pop on 100 Days 100 Projects (https://www.florin-pop.com/blog/2019/09/100-days-100-projects/), I was motivated. I felt like in the past few six months that I've been learning to code, were a total waste.

A day later, I started the challenge and BOY!! I've learned more in the past 8 days compared to the 6 months.

At first, I tried to follow Florin's projects lists but I noticed I'd be copying and pasting most of the stuff, so I went a little more creative and Googled for projects that I'd be working on for the next 100 days.
I wanted to share the experience and also try out writing my first article as a programmer. I hope I'd be good at this.

Well, to sum up, I have been using basic HTML, CSS and Vanilla JavaScript on the projects I have done so far.
GitHub: https://github.com/ChrisAchinga/100Days100Projects
Connecting Kubernetes to AWS ECR
Tags: k8s, kubernetes, aws, docker
Published: 2020-03-23 21:22:57

---
title: Connecting Kubernetes to AWS ECR
published: true
description: How to keep your AWS Docker credentials from expiring every 12 hours.
tags: [k8s, kubernetes, aws, docker]
---

I'm pleased to announce the release of `k8s-ecr-login-renew` 
([GitHub](https://github.com/nabsul/k8s-ecr-login-renew) / [Docker](https://hub.docker.com/repository/docker/nabsul/k8s-ecr-login-renew)). It's a small tool written in Go that simplifies working with Amazon's Elastic Container Registry (ECR). It addresses the fact that ECR Docker login credentials [expire every 12 hours](https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html). `k8s-ecr-login-renew` solves this by:

- Fetching Docker login credentials from an AWS 
- Creating/Updating a Docker login secret in Kubernetes
- Running as a cron job to prevent the Docker secret from expiring

The source code and Docker image are published here: 

- Source Code: https://github.com/nabsul/k8s-ecr-login-renew
- Docker Image: https://hub.docker.com/repository/docker/nabsul/k8s-ecr-login-renew

I'm also quite proud of the [README](https://github.com/nabsul/k8s-ecr-login-renew/blob/master/README.md) and example code. My hope is that they will make getting started extremely easy.

Enjoy!

PS: Feedback is welcome and desired! Please also let me know if you found this tool useful (or if you had trouble using it).
Job Search Week 5
Tags: makers
Published: 2020-03-23 21:06:51

This was a good week I managed to get a lot done. I started a new project at the start of the week, there was a career fair on Wednesday, I did a review and I got two applications sent off so overall a productive week.

Day 1

So on Monday, I started a new project using React using Jest and Enzyme so I could use the TDD process. It was a blog tutorial on how to make a calculator using React and TDD. It was nice to learn how to implement React in a full-stack app. previously I was mainly learning how React works through a Udemy course but it did mean I understood the blog a lot better.

Day 2

The second day of the week was mainly used to research the three companies doing their careers fair presentations, which included LeSalon, Beacon and RVU. I wanted to learn about them so I could ask relevant questions. I also managed to do a little work on my calculator.

Day 3

Wednesday was a career fair day which was a little weird because it was held remote because of current events. It was still good they all had some interesting ideas the two that caught my eye the most were LeSalon and Beacon. LeSalon is like a Deliveroo for beauticians where you can book a session for a mani-pedi or a message and Beacon was a company that wants to make international freight shipping easier and more efficient. These are the two I applied to so hopefully I'll get to the next stage.

Day 4

On Thursday I did a review which I think went well. after the review, the reviewer and I had a long conversation about TDD and he helped me to understand it a lot better he also recommended a book for me to read 'The Passionate Programmer'. So after that, I went back to my first review and redid it keeping in mind what he had told me. I also finished the review I was doing with the same mindset.

Day 5

I spent Friday continuing working on my calculator app and also preparing what I was going to write for my applications. I find I need to do this because if I don't my applications become rabbling of pure nonsense. Plus I don't like writing applications like most people, it just feels like unapologetic bragging.

Summary

I was super happy with everything I got done this week and getting those two applications sent off is such a relief. I'm hoping to get LeSalon more than Beacon but they would both be a great opportunity to learn something new.
TIL: How to pause an infinite JavaScript loop in Chrome
Tags: chrome, javascript
Published: 2020-03-23 20:53:38

Today I hit an infinite loop in a React component 😅

You can stop infinite loops in chrome without force-closing the program in two ways:

One: Dev Tools
1. Dev tools (if not already open, go View -> Developer -> Developer Tools)
2. Sources tab
3. Press the Pause icon ⏸ near the top right of the Sources panel

Use method two if you can’t open dev tools.

1. Press the three vertical dots in the top right corner of Chrome
2. Hover over “More tools...” near the mid-bottom
3. Press “Task Manager”
4. Select the tab you are experiencing the loop in
5. Hit “End Process”

Hopefully this can help someone!
Huge problem: code does not go further than await
Tags: react
Published: 2020-03-23 20:39:26

Code in App.js
```
componentDidMount() {
    this.getAccountData();
}
async getAccountData() {
    try {
      let FD = new FormData();
      FD.append('test', true);
      let Q = fetch('/ajax/get', {
        method: 'POST',
        body: FD
      });
      let data = await Q.json();
      console.log(data);
      this.setState({
        id: data.id,
        name: data.name
      });
    }
    catch(e) {
      console.log('error');
    };
  }
```
After await is called, it gets the data in JSON. But if you put console.log after it, then they do not work, so setState also breaks my application. debugger also does not work there.
I am using firefox 68.6 and 80.0.3987.132
Some useful things for doing on COVID-19 quarantine 😷
Tags: discuss, productivity
Published: 2020-03-23 20:30:42

---
title: Some useful things for doing on COVID-19 quarantine 😷
published: true
description: Self-isolation: my list of plans for improving dev skills
tags: #discuss #productivity
---

The COVID-19 quarantine forced a lot of people to work from home. 

The quarantine also affects those developers who work remotely on a constant basis, because now we have to spend 100% of our free time at home. In the situation when the best you can do is to seat at home, here is my list of things that I’m going to spend my free time on:

- 🤔Review the list of plugins for Visual Studio Code and find the new ones which will simplify my daily web developer routine
- 🔍Find some useful applications for Mac
- 📚Learn something new

So, what are your plans/ideas💡?
Custom Subnet IP for docker0 Interface
Tags: docker, devops, linux
Published: 2020-03-23 20:30:03

Here is the problem, I want to deploy an API in my server but the server runs other services that conflict with the default IP that was given by default for `docker0` interface. So I need to set up a custom subnet IP for that interface and put up some docker containers without creating new interfaces with the same subnet that is conflicting with the aforementioned services.

## Docker Service Config

First, we need to set the custom subnet for the `docker0` default interface. To do this we need to edit or create if it does not exist a configuration file for the docker service.
`# vim /etc/docker/daemon.json`
And put this as content:

```json
{
    "bip": "10.10.0.1/24"
}
```

After that we need to restart the docker service:
`# service docker restart`
After restart the docker service we can run `ifconfig` to see if the changes were applied:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/vw4h865k4xbjx1bi8got.png)
As we can see in the image, the `docker0` interface is set with the subnet that we have inserted in the `daemon.json` file.

## Docker Compose

Now we have to set in our `docker-compose.yml` file, that we want to use the `docker0` interface and not create some random new one. To do this you only need to add `network_mode: bridge` option to all your services inside  `docker-compose.yml` file, like:

```yaml
version: '3.3'

services:
    db:
        image: mysql:5.7
        restart: always
        environment:
            MYSQL_ROOT_PASSWORD: 'Lorem-Diem'
            MYSQL_USER: 'lorem'
            MYSQL_PASSWORD: 'Lorem-Ipsum'
        network_mode: bridge
        ports:
            - '3306:3306'
        volumes:
            - ./mysql_data:/var/lib/mysql

```

And after that you can just build and put up your containers:

`$ docker-compose up -d --build`

Now, if you run `ifconfig` again you will see that none new interfaces were created.

If you want to see your container IP, get the container id using `$ docker ps` and run `$ docker inspect <your container id> | grep -i ip`.

## Single Docker
If you want to start a single docker using the `docker0` interface, you can add the `--net bridge` to your `docker run` command, like:

`$ docker run -it -d --net bridge ubuntu:18.04 /bin/bash`

The above command brings up a detached container running Ubuntu version 18.04 and calls the `/bin/bash` so that you can run `ifconfig` again in your host machine to see that the container is really using the default `docker0` interface.

All the containers mentioned in this post will receive an IP address that fits the `docker0` subnet.
Trying out Wordpress for my Blog site
Tags: wordpress, beginners
Published: 2020-03-23 20:15:23

I'm in my beginning months of learning code and I wanted to get familiar with hosting a website and the options that comes with it. So, like most, I chose Wordpress for the time being to manage my blog site. Here it is so far, even though it isn't much: https://brendankenney.net/
Kubernetes in local development
Tags: docker, kubernetes, rails
Published: 2020-03-23 20:04:42

Hey fellows! I think you really tired with COVID-19 right now and thinking about what to learn new.

Last two weeks I work really productive and tested different tools for local development with Kubernetes. 

The list is next:
* Tilt
* Devspace
* Skaffold

I also tested different local Kubernetes implementations like `Kubernetes in Docker Desktop`, `minikube` and `microk8s`.

So if you are interested in such content, please make love for such post!
External post: Mirroring our Medium blog to YLD.io
Tags: external, javascript, mdx
Published: 2022-10-20 13:21:04

---
title: External post: Mirroring our Medium blog to YLD.io
published: true
date: 2020-03-23 20:03:44 UTC
tags: External,JavaScript,MDX
canonical_url: https://blog.jeys.al/posts/external-post-mirroring-our-medium-blog-to-yld-io.html
---

I wrote a post about the work we did for [YLD](https://yld.io) to mirror their [Medium](https://medium.com) blog to the YLD blog on their own website. It was posted on the YLD Medium blog. And then mirrored to the YLD blog. Very meta. Anyway, [check it out here](https://medium.com/yld-blog/mirroring-our-medium-blog-to-yld-io-24aafa821cc8).