teleren/devto huggingface dataset:
COVID-19: Medical Emergency Line Queueing [Concept]
Tags: twiliohackathon
Published: 2020-04-12 13:05:25

Hi, all.

So me and @leeforaday have decided to participate in the _Twilio x DEV Hackaton_, and here we are just putting our application idea out into the world.

## A small background

Just like in many other countries, in our country, Portugal, the COVID-19 pandemic is hitting hard. Our National Health System, which is not at 100% even in normal situations, does not have conditions to receive and treat the enormous amount of patients needing medical care due to the COVID-19 virus.

Our government and health authorities are working around this disability by trying to enforce people to **first go through our existing national Medical Emergency Line**.

If someone feels sick and suspects it might be from COVID-19 infection, instead of going to an hospital urgency service, they first must call this line. The patient will only go to the hospital if the medical responder deems that the their symptoms are serious enough to need medical assistance. If not, the patient will isolate themselves at home and be accompanied daily by phone.

## The problem

This approach is starting to show its first positive impacts by avoiding the collapse of the health system. But with the increasing number of calls to the Medical Emergency Line, the **hold time has become proportionally bigger**, all the while with the callers obliged to stay on the call.

## Our solution

Our proposal for this hackaton is to develop an application to **simplify and improve the waiting process** for the patients who call this line. The application would be intended to be used by the medical responderes in the national Emergency Medical Line.

The core feature of our application (_still to be named_) is an **idle waiting line** for the national Emergency Medical Line. The process would become the following:

- The patient with symptoms would call the line.
    - There would be no human interaction at this point.
    - They would be asked to identify themselves and describe their symptoms.
    - The call would end and the patient would now be in a waiting line to be contacted back, but without the need to be on the phone.
    - The patient would receive a request identifier by SMS which they can use at any time to get their estimated waiting time left.

- The patient would eventually be contacted back by a medical responder. 
    - After the call, if the medical responder decided that the patient is a COVID-19 suspect but without the need of medical assistance, they would be able to flag the patient for continuous phone follow ups.

#### Twilio Integration

The implementation of this project will use the following Twilio products:
- [Voice](https://www.twilio.com/voice)
- [Speech recognition](https://www.twilio.com/speech-recognition)
- [SMS](https://www.twilio.com/sms)

---

That's all for now. It's time to get to work and see what we can come up with until the end of the hackaton. Stay tunned!
Get Byte size of the string in Javascript
Tags: javascript, codenewbie, codequality, 100daysofcode
Published: 2020-04-12 12:55:49

Hello folks, Welcome again in a new episode of series called **javascript useful snippets**. In this series, I’m going to talk about some shortcodes and useful functions of javascript. These snippets can help you to make your development more efficient and faster. Stay tuned till the end to learn something new… 😊

#### Javascript Useful Snippets — byteSize() ####

As we all know a byte is one the unit of digital information, and while development taking care of the size of variables, records and files are a much important task. To do that we have various ways but with these functions, it’s very easy to do. byteSize() snippet will take a string as an input and in the output, it’ll return byte size of a given string. Let’s look at the syntax…

```
const byteSize = str => new Blob([str]).size;
```

Here, in return, we are using Blob web API to get out byte size. Where Blobs allow you to construct file-like objects and here we are passing our string in array to create one, from that we are returning just size which will be byte size. Let’s see some results in a better understanding…

#### Result One: ####

```
const result = byteSize(“Hello World”) // output: 11
```

#### Result Two: ####

```
const result = byteSize(“😃”) // output: 4
```
As we see both results, with plain strings it’s returning the same number as a length while in case of emoji it’s 4 sizes of bytes. ( *For knowledge — The size of the UTF encoding simply defines the minimum number of bytes to be used to represent a character. However, certain characters, like the emoji you are using, require more than 2 bytes to be represented.*)

{% youtube IL4krUHFbUk %}

Thank you for watching/reading folks, if you found this informative and wanted to make me more content like this please support me on [Patreon](https://www.patreon.com/tutorialspot).

Now, Guys in the next episode I’m going to share a function to get a difference of two arrays. so follow/subscribe to get notification…

Subscribe on youtube https://www.youtube.com/channel/UCvNjso_gPQIPacA6EraoZmg
Facebook: https://www.facebook.com/KatharotiyaRajnish/
Twitter: https://twitter.com/tutorial_spot
Sheddit, free tool for social media marketing.
Published: 2020-04-12 12:32:36

Over the years social media has emerged as a great way to market your services or products. It's free and if your post/tweet gets enough traction, you can generate a decent sized userbase for your service/product. 

The fact that there are huge successful companies which provide "social media marketing" as a service makes it pretty evident that it's a huge untapped market with increasing demand.

But for a solopreneur, indiedeveloper or a content creator on a tight budget collaborating with these companies cannot be monetarily feasible. 

**Enter Sheddit.**

Sheddit is a free open source software which helps users schedule tweets and posts on reddit for free.

### **Free? Really?**

Yes, technically. 

Sheddit is a server side application which needs to be deployed. So you have to deploy it either locally or on the internet (if you want to access it from anywhere).

#### Is **deploying** difficult?

Not really, it's just a single command and the server is up! Configuring it might be difficult though. But if you follow the docs, it shouldn't be a problem. In the future releases of sheddit this process will be made much easier.

### **Why should I use Sheddit?**

It's **free**! But not just that

* It's **open source!**
* **Your data is your data** - You own the server. There is no third party in between.
* Supports popular social media websites.[Currently twitter and reddit]
* **Auto Rescheduling** -  In case if the Sheddit server crashes or fails, upon restart posts will be automatically rescheduled.
* Supports bulk posting (Only for reddit)


### **ShedditUI**

We know dealing with a server can be difficult for a non technical folks. So we developed ShedditUI a free and open source desktop application for Sheddit, released for Windows and MacOS. **ShedditUI isn't a replacement for Sheddit though.** You still need Sheddit server deployed for ShedditUI to work. ShedditUI is the recommend way for using Sheddit.

#### ShedditUI Features.

* Create .env file easily which is a hard requirement for Sheddit.
* See all scheduled tasks.
* Schedule posts for twitter and reddit.

### **Roadmap**

We released the first ever build for ShedditUI a couple of days back.

Here are a few things which are currently being worked on:

* ✉️ Support for sending emails [SMTP support]. Also includes support for email templating for sending personalised emails.
* 📪 Postgres support for making the application more robust and powerful.


### **Contributions**

You can contribute in many ways

* Code contributions - Head over to Github repo, fork it, and then submit a PR!
* Sharing - If you feel that Sheddit has helped you in any way be sure it share it with others!
* Donations - We all have to pay our bills!


### **Useful Links**

Sheddit Github Repository
**[ShedditRepo](https://github.com/rahulnpadalkar/Sheddit)**

ShedditUI Github Repository
**[ShedditUIRepo](https://github.com/rahulnpadalkar/ShedditUI)**

Sheddit Twitter Account
**[ShedditTwitter](https://twitter.com/ShedditSchedule)**
Progress: sending messages and being notified when people join the channel
Tags: twiliohackathon
Published: 2020-04-12 12:27:59

As I noted last time, I was having a bit of a problem with sending messages:

> Apparently, messages sent from the python twilio client don't activate the webhook so I have to do a direct POST request to the API. Doing that returns an empty response for some reason so I'm not yet able to send messages from the terminal. But I'll figure it out.

After doing some digging, I found out that the Content-Type has to be `application/x-www-form-urlencoded`. I was using the default `application/json`. I must say though, it's a bit weird that instead of returning an error that the content type was wrong, it just created an empty message thus returning a blank response in `body`.

Anyway, now that I've fixed that, I'm able to send and receive messages, and be notified when others join the channel.

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

_My user (newtestguy) is logged in on the terminal app on the right. Two other users are using the browser app on the left. Messages are send and received successfully across both platforms._
Post Makers - Week 4
Tags: react, javascript, jobhunt, covid19
Published: 2020-04-12 12:21:12

Week 4 has come and gone, it's crazy how this inside life feels so normal now.

Gone are the days of popping to my friends, climbing, heading out to eat....the one positive is that I am getting many hours to code. The project is going well, this week i replaced the classic google markers with circles, with the radius changing on infection rate and the colour changing depending on mortality rate of a country. 

Ignoring the morbid topic of the app, It is really helpful to be deep int he project, I find it is the best way for me to learn, and the best way to play around with concepts - much better than the good old days of writing notes!

Apart from that I am keeping up with regular zoom calls with my cohort which is nice, and applying to jobs as regular as possible. It seems like the requirements for Junior Developers has increased since all of this has started, although I see why entry level roles are not the priority for companies at this point in time - most have frozen recruitment whilst the pandemic continues. 

Anyway just trying to keep positive, code and make the most of the one LONG dog walk a day!

Not the most eventful week, but keeping safe and carrying on. Here is the latest for anyone following (https://covid-mapper.herokuapp.com/).

Keep safe, my thoughts are with everyone through this time.

David
How to fix "No DMARC Record Found"
Published: 2020-04-12 12:03:24

When you use various online tools to check a domain's DMARC record, you might run into one of the errors:

"No DMARC record found"

"DMARC record not found"

"Missing DMARC record"

"Unable to find DMARC record"

"No DMARC record published"

"Hostname returned a missing or invalid DMARC record"

"DMARC policy not enabled"

Any of these messages or similar means one thing: the DMARC check reveals that your domain is not secured and is subject to spoofing attacks. Any spoofing attacker can send malicious emails using your domain, which potentially incurs damage to your brand after landing in your customers' mailboxes.

To fix this, you need to start implementing DMARC, which is the ratified industry standard for email authentication, for your domain.

#### How to fix "No DMARC Record Found"

It's easy to fix this issue: you need to generate a DMARC record with appropriate settings, publish it in the DNS, then verify it.

Here are the 3 steps to fix "No DMARC Record Found".

##### 1. Generate DMARC record

Before we can publish it, use our free [DMARC record generator](https://dmarcly.com/tools/dmarc-generator) to generate a DMARC record.

2 things to note here. Firstly, if you are implementing DMARC for the first time, most probably you need to set the policy to none (p=none), which puts DMARC in the monitoring mode. This does not affect your email streams in any way, while allowing you to receive DMARC reports which provide insight into your email authentication status. Secondly, request DMARC to send aggregate reports to a mailbox you have access to by pointing the rua tag to that mailbox. I suggest that you use DMARCLY's dashboard to generate such a DMARC record and have it set up the mailbox for you.

##### 2. Publish the DMARC record

DMARC works by publishing a record in the DNS, so that it's accessible to receiving email servers. Once you have the record generated, you need to log in to the domain's DNS provider's dashboard to add the record. For example, if your domain mydomain.com is hosted on GoDaddy, you need to log in to GoDaddy.

Here are a few links to tutorials on adding a DMARC record with various DNS services:

* [How to add DMARC record in GoDaddy](https://dmarcly.com/blog/how-to-add-dmarc-record-in-godaddy-godaddy-dmarc-setup-guide)
* [How to add DMARC record in Cloudflare](https://dmarcly.com/blog/how-to-add-dmarc-record-in-cloudflare-cloudflare-dmarc-setup-guide)
* [How to add DMARC record in Namecheap](https://dmarcly.com/blog/how-to-add-dmarc-record-in-namecheap-namecheap-dmarc-setup-guide)
* [How to add DMARC record in cPanel](https://dmarcly.com/blog/how-to-add-dmarc-record-in-cpanel-cpanel-dmarc-setup-guide)

##### 3. Verify the DMARC record

Once the record is published, you can use our [free online DMARC checker](https://dmarcly.com/tools/dmarc-checker) to verify it's indeed in the DNS and accessible to all.

Original post: [https://dmarcly.com/blog/how-to-fix-no-dmarc-record-found](https://dmarcly.com/blog/how-to-fix-no-dmarc-record-found)
Daily Developer Jokes - Sunday, Apr 12, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-04-12 12:00:07

---
title: "Daily Developer Jokes - Sunday, Apr 12, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Sunday%2C%20Apr%2012%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259316ab83.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ What are the three hardest problems in computer science?

___A:___ Naming things and off-by-one errors
 -->
'this' is for beginners III
Tags: javascript, oop, this
Published: 2020-04-12 11:28:09

In my last post, we looked at the second rule in determining the value of ``this`` inside a declared object. In my last example, the context of ``this`` changed unexpectedly and our `basketballMachine`` method, the ``this.lastName`` became undefined because the keyword ``this`` referred to the ``details` object.

 If I told you that you can set the value of the keyword `this` explicitly to be the `boss` object instead of the `details` object. Would you believe me? Read on.

You can set the context of `this` to whatever you want using `call`, `apply` or `bind` methods.

<strong>A thing to remember</strong>
`call()`, `apply()` and `bind()` can only be used by functions and not any other data-types.

# <strong>call()</strong>
Let's take a look at our previous example again.
```javascript
const boss = {
  lastName:"Scott",
  name: function(){
    return "Michael " + this.lastName;
  },
  whatContext:function() {
    return this;
  },
  details: {
    basketballMachine: function(){
      return "Michael " + this.lastName + " the Machine";
    },
    whatContext:function(){
      return this
    }
  }
}
boss.details.basketballMachine() //Michael undefined the Machine
```
We got ``undefined`` here because the value of the keyword ``this`` is bound to the ``details`` object which does not have a ``lastName`` property.

<strong>Let's change it to be the boss object</strong>
```javascript
boss.details.basketballMachine.call(boss) //"Michael Scott the Machine"
```
Viola!

<strong>Note</strong>
Here, we are not invoking the ``basketballMachine`` method, we are just attaching the `call` onto it so there are no parentheses after ``basketballMachine``.
Devlog For My Indie Game
Tags: csharp, unity3d, gamedev, beginners
Published: 2020-04-12 11:19:46

Hello everyone, i'm a 14 year old gamedev. In this video i will be showcasing all the new stuff that i added to my upcoming indie game. The game is mainly focused around gravity changing. If you enjoy the video make sure to subscribe cause that helps me a lot :)


Here's the video: https://www.youtube.com/watch?v=6HPJa3WFVO4
How to access HTML elements in RCPTT using Javascript
Tags: rcptt, eclipse, javascript, evaluate
Published: 2020-04-12 11:01:57

Did you ever have to write an RCPTT test to do some verification in an HTML?

Suppose that our Eclipse application under test generates HTML files and we want to check that links, buttons, fields and other elements are valid. Here is where Javascript comes to the rescue.

Javascript provides many functions that can be used to access elements on a web page through the browser. We assume that the page is opened in an internal browser so we can have access to it when testing with rcptt. This can be done using the ECL command <code>invoke</code> and the Javascript function <code>evaluate</code> executed on the control object <code>Browser</code>.
###Accessing object properties
In the following example, we want to check that a given link with its corresponding text exist at least once in a web page.
```
proc linkExists [val href] [val text] {
	let [val script [concat
		"var elements = document.querySelectorAll(\"a[href='" $href "']\");"
		"for (var i = 0; i < elements.length; i++) {"
		"	if (elements[i].innerHTML != '" $text "') {"
		"		return false;"
		"	}"
		"}"
		"return true;"
		]] {
		
		$script | log
		get-control Browser | get-object | invoke evaluate $script
	}
}
with [get-editor "Index"] {
	linkExists "/new" "Write a post" | verify-true
	linkExists "/new" "Write a post?" | verify-false
}
```
###Performing actions
In this example, we just wanto to simulate a click on a given link identified by its HTML id.
```
proc clickOnLink [val id] {
	get-control Browser | get-object | invoke evaluate [concat "document.getElementById('" $id "').click()"]
}
get-editor "Index" | clickOnLink "connect-link"
```
Covid-19 Angular Web App
Tags: angular, webdev, design
Published: 2020-04-12 11:00:11

I wrote an Angular web app using mostly the Material library, Plotly, Highcharts, and Highmaps. It brings together some free design and creative resources and uses data available from WHO, CDC and John Hopkins through varied web scrapers and APIs found on GitHub. 

Please share any feedback and let me know what you think I could do to improve it. I would like to incorporate TF, but not sure how to use any ML with the datasets available. 

Https://stopcovid.dev
React live streaming App
Tags: react, redux, javascript, developer
Published: 2020-04-12 10:42:19

Here is my React livestreaming App.

https://github.com/nayyaung9/react-livestream

after cloning my repo, please read carefully README file. There are 2 additionally repos to clone. JSON-server repo and RMTP-Server.

there is completed how to setup server. Once you have done, open OBS studio, go to `setting` => `stream` => select custom stream => then type our rtmp-server address (rtmp://localhost/live) and id(is your streaming video id). You can get it when you have created your streaming video title & description

Please fork or donate a star for my project if you are interested. 

Thanks you.
#stay_at_home
Analysis of Cloud Communities in Germany, Austria and Switzerland
Tags: aws, azure, googlecloud, devrel
Published: 2020-04-12 10:40:53

DevRel movement is growing ever stronger. For platform companies there is no way around supporting and nurturing their regional groups of followers. It will be the case with any cloud (IaaS & PaaS) provider. The biggest global players on the cloud market right now are AWS, Azure and Google Cloud.

In the following article I took a day off on a weekend to deep dive into the local cloud communities of Germany, Austria and Switzerland. Following is the result of my journey.

https://www.tamrazyan.com/state-of-cloud-communities-in-german-speaking-countries/
Twilio Hackathon: Spiritual World - Place where you can find inner peace
Tags: twiliohackathon, react, typescript, beginners
Published: 2020-04-12 10:31:23

This is my first blog and my first contribution to help society . So i would need your support :)

The Problem
COVID19 is not only harming body and it is causing greater impact on people's mind . 

Current situation has forced people to remain in their house and in  isolation we have become consumer to so negative news which is having impact on our society. We can feel a sense of frustration building with time and sometimes find hard to keep motivated. 

Large section of people want help and are not aware of people who are already working on these issues and helping.

The proof to it is the figures which are suggesting increase in domestic violence, anxiety related issues, divorce rates, anger. 

The Solution

Due to lockdown, many Spiritual, Motivational, Yoga teachers are providing free Live Interactive classes on Zoom and other platforms to help people to maintain their mental peace.

Although we have many online videos available but a Live Interactive session has a completely different impact .

There can be different kind of  topics on which we have different speakers like Religion , Spiritual, Technical. 

I would be working on platform which would create a website where i would collect the information of all such online classes and would show them on my website . 
Later on can build more features around it.

Benefits
1. At one place ,people would know about all the online classes going on
2. People can select class according to their time comfort 
3. People can select their share feedbacks and also can choose among different speakers


Technology
Material-UI, React for frontend . 
Maybe Node.JS for backend 

Would use Twilio Api for whatsapp communication . Would explore more on its api. 

Please let me know if any one would like to contribute because aim is to help people as soon as possible
[a, b] = [b, a]
Tags: javascript, todayilearned
Published: 2020-04-12 10:26:58

Today I realized that I can easily swap values in JavaScript using destructuring 😲 I don't know how I never noticed this before!

```js
let a = 1, b = 2
[a, b] = [b, a]
console.log({a, b}) //=> {a: 2, b: 1}
```