teleren/devto huggingface dataset:
Twilio Hackathon Conference Call Automation
Tags: twiliohackathon, node, angular
Published: 2020-04-28 19:35:08

I created a sample application using NodeJs and AngularJS that allows members to subscribe and be sent a call to join into a specific conference room.  This will be useful for automating/routing specific people into the right rooms.  

This is a simple example but could be scaled out tremendously into a full enterprise level application.



## What I built
#### Category Submission: 
Engaging Engagements
 

## Demo Link
https://twilio-hackathon-275613.uc.r.appspot.com/

## Link to Code
https://github.com/arthicksdev/TwilioHackathon2020

## How I built it 
Built the solution use NodeJs,AngularJs Boostrap 4, FontAwesome, JQuery, Google Cloud Console (only for hosting the demo) and used VSCode as the IDE.

## Additional Resources/Info
Tried to keep line of code down to a minimum so it could be recreated and understood by someone starting out, or looking to recreate the experience.
CovidAssist - Part 2
Tags: twiliohackathon, python, flask
Published: 2020-04-28 06:51:53

[Comment]: # (All of this is placeholder text. Use this format or any other format of your choosing to best describe your project.)

[Reminder]: # (Make sure you've submitted the Twilio CodeExchange agreement: https://ahoy.twilio.com/code-exchange-community)

[Important]: # (By making a submission, you agree to the competition's terms: https://www.twilio.com/legal/twilio-dev-hackathon-terms)


## What I built
#### Category Submission: 
COVID Communication app
I have built a Whatsapp platform where one could message and get live global and local data about COVID confirmed, death, and recovered cases.


## Demo Link

Add the number: +1 415 523 8886
Send text in Whatsapp saying: "join fellow-image"

At this step, you have joined the sandbox. 
The only thing remaining is to send in commands. 

             format: information <country ISO Code 3116>
             example: information USA

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

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

## Link to Code
https://github.com/amansr02/CovidAssist

## How I built it (what's the stack? did I run into issues or discover something new along the way?)

My app is functional and works quite well with my backend webhook flask service which has been deployed to Heroku. 

I did run into deployment issues and am still trying to figure out how to parse countries without people having to remember their countries' ISO code to get information about COVID. Need some major overhauls.


## Additional Resources/Info
UNABLE TO REACH TERMINAL THROUGH PUTTY? Here is Putty Alternative browser based- Desktop & Mobile.(An Apache Project)
Tags: devops, linux, beginners, tutorial
Published: 2020-04-28 19:11:35

######***IMP REQUEST:***
###### You are most welcome to join my team [ form for joining ](https://forms.gle/pSCALuEWHus3pg9F6).
###### *Also you are most welcome to join OPEN SOURCE INTELLIGENT SYSTEM (OSINT)if you can help in open source project regarding safeguarding humans from various diseases like CORONA outbreak*
######https://github.com/Manishfoodtechs/OSINTHRH/wiki


I do lots of experiments with my local virtualization apps- virtual box and Vmware. sometimes, networking experiments kicks me out to reach my VM terminal from putty. 
To solve the problem one has to go to many websites which spoils the whole time.
To overcome this situation,  I now install the cockpit to every ***fresh server and container.***

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

**TERMINAL VIEW ON DESKTOP**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/eylrw6rw3slycu6g8zr1.png)



```javascript
//TIP:To do cut copy paste in Terminal :
ctrl+V : copy the commands
ctrl+a and then ctrl+v to paste in terminal
```

**AND ON MOBILE**

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

**HERE IS PROJECT**
{% github cockpit-project/cockpit %}

I hope you people like the above article and learned something.

You are most welcome to join my team [ form for joining ](https://forms.gle/pSCALuEWHus3pg9F6).

Contact email: Manishfoodtechs@gmail.com. 

If you have any problem, our team is also engaged in professional consultancy and delivery.
Debugging Checklist
Tags: debugging
Published: 2020-04-28 18:55:00

We've all been there. You're working on fixing a bug and have been at it for hours. You're jumping around files, looking at call stacks, and randomly changing code hoping it'll fix the bug. I've been down this rabbit hole many times and it didn't help that I didn't have a framework for debugging.

Recently I read [Debugging: The 9 Indispensable Rules for Finding Even the Most Elusive Software and Hardware Problems](https://www.goodreads.com/book/show/3938178-debugging) by [Dave Agans](https://twitter.com/daveagans). The book is a short read that teaches you the rules through stories. The 9 rules are:

1. Understand the system
  - Does this function handle edge cases?
  - Are dates suppose to be in a specific format or timezone?
  - Will data ever be null?
1. Make it fail
  - Find reproduction steps to make it fail
  - The shorter the reproduction steps are, the better
  - Can you write a test case to cause the failure? If so add it to your test suite
1. Quit thinking and look
  - Don't just think/guess about what could be causing the bug, find it!
  - Your guesses can help you focus your search
1. Divide and conquer
  - Just like in algorithms, divide and conquer algorithms are faster than linear algorithms
  - Is the bug from the backend? Database? Frontend? A library?
1. Change one thing at a time
  - Don't change multiple things then observe if the bug persists
1. Keep an audit trail
  - Write down what changes you've tried and what the effects are if any
  - This is helpful if you need to pull in other people because you can easily reference what you've already tried
1. Check the plug
  - Validate your assumptions
  - Is there data in the database? Can it ever be null?
  - 99.999% uptime is still not 100%
  - Is your development/test environment the same as production?
1. Get a fresh view
  - Reach out for help
  - Write/talk out loud your problem, [rubber duck debugging](https://en.wikipedia.org/wiki/Rubber_duck_debugging) helps
  - Take a break and come back with fresh eyes
1. If you didn't fix it, it ain't fixed
  - If the bug "disappears" without any fixes applied, it isn't fixed
  - The bug can only occur when the stars are aligned

As you read through the rules, you might think they're obvious things you already do while debugging. The best things are often times obvious in retrospect.
Understanding JavaScript with everyday life.
Tags: JavaScript, funjavascript
Published: 2020-04-28 18:53:04

Explaining passing by reference type using real life situations: if two siblings let's say a boy and a girl likes to eat cereal "coco pops" and the boy buys it stores it in a shelf, because the girl (other sibling) likes it too so she goes to the same shelf and gets the "cocopops". This little illustration shows that the two parties who are entirely different entities share the same cereal from the same location. So does objects, they can use values and information from the same memory location.
 When it comes to passing by value, the two siblings will have a cereal box each to their names and will store them at the location of their choices. #myFirstPost
About Ruby Hash#each_key and Hash#each_value
Tags: ruby, hash, documentation
Published: 2020-04-28 18:44:06

---
title: About Ruby Hash#each_key and Hash#each_value
published: true
description: 
tags: ruby, hash, documentation
---

Get more information and more examples at my AboutRuby project:
* [AboutRuby project each_key](https://github.com/BurdetteLamar/AboutRuby/blob/master/core/Hash/api/markdown.md#each_key)
* [AboutRuby project each_value](https://github.com/BurdetteLamar/AboutRuby/blob/master/core/Hash/api/markdown.md#each_value)

Here's the write-up over at the Ruby project:
* [Ruby project each_key](https://ruby-doc.org/core-2.7.0/Hash.html#method-i-each_key)
* [Ruby project each_value](https://ruby-doc.org/core-2.7.0/Hash.html#method-i-each_value)
Css grid part 2
Tags: beginners, css
Published: 2020-04-28 18:40:48

This tutorial is for css grid.In this tutorial with css grid and the grid-template-areas.First of all let's add our html:

```html
<div class="grid">
<div class="header card">header</div>
<div class="main card">main</div>
<div class="header card">ads</div>
<div class="header card">footer</div>
</div>
```
Now it is time for css:

```css
body {
margin: 2px;
}
.header {
grid-area: header;
} 
.main {
grid-area: main;
}
.ads {
grid-area: ads;
} 
.footer {
grid-area: footer;
} 
.grid {
display: grid;
grid-template-areas: 
'header header header header' 
'main main main ads' 
'main main main ads' 
'main main main ads' 
'main main main ads' 
'main main main ads' 
'main main main ads' 
'main main main ads' 
'main main main ads' 
'footer footer footer footer' ;
width: 100%;
height: 640px;
} 
.card {
background-color: grey;
} 
```

With grid-area in the child classes of grid class we are defining the name of the area that they represent in the layout. grid-template-areas is defining the look of the page.
I created a Java Chat Bot!
Tags: java
Published: 2020-04-28 18:39:16

I have used an API from [BrainShop](http://brainshop.ai/) to create a chat bot application using Java and JavaFX for the graphical interface. It is not my biggest project so far, but in my opinion definitely the most fun project I've built. 

You can check it out on my GitHub:
{% github dimitrov-d/Chat-Bot no-readme %}
GitUI - fast terminal ui written in Rust
Tags: workingon, rust, git, github
Published: 2020-04-28 18:26:57

Hassle with staging individual hunks in the git cli? Then GitUI is there to help with a user friendly UI without even leaving the terminal😍!

find it on GitHub: https://github.com/extrawurst/gitui

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/er41enjybh4bly8qn0or.png)
Free coding courses through May!
Tags: free, codenewbie, learning, nexttech
Published: 2020-04-28 18:26:26

While you are home staying safe and keeping others safe, we want to make sure you have everything you need to keep learning coding and working on your projects. That's why a couple of weeks ago, we decided to make all of Next Tech's interactive [courses](https://next.tech/xyz/for-devs) and [sandboxes](https://next.tech/xyz/for-devs) free through April. Now, we're extending that through May!

Staying home is incredibly important, but so is your ability to continue learning new skills. With Next Tech courses, you can learn **coding**, **web development**, **data science**, and other skills directly from your browser with hands-on projects. No downloads required!

Here are some of the top courses on Next Tech right now that other dev.to readers have enjoyed:

* [Database Fundamentals](https://c.next.tech/3eyUVKy)
* [Beginning Object-Oriented Programming in JavaScript](https://c.next.tech/2VpD3dF)
* [SQL for Data Analytics](https://c.next.tech/3czRCko)
* [Beginning React](https://c.next.tech/2VJt6Xd)
* [Python Open Weather Map](https://c.next.tech/3eIIn3x)
* [Beginning Swift](https://c.next.tech/2KhGc93)
* [Introduction to Python](https://c.next.tech/34T4e3B)

Just need a spot to write some code right now? Here are a few:

### Python

{% nexttech https://nt.dev/s/ec1a199d7e29 %}

*Launch a Python sandbox [here](nt.dev/python).*

### Java

{% nexttech https://nt.dev/s/fdce42bd458f %}

*Launch a Java sandbox [here](nt.dev/java11).*

### Swift

{% nexttech https://nt.dev/s/e6a7c0be19cc %}

*Launch a Swift sandbox [here](nt.dev/swift).*

And of course, if you're a student, you can apply for the [GitHub Student Developer Pack](https://next.tech/github-students) and get one year of Next Tech access completely free!

We hope that this free month of access will help you keep learning and building from home. Stay safe!

Best wishes from Next Tech.
Laravel Vue Js Form Submit With Validation Using V-form Package
Tags: laravel, vue, vform
Published: 2020-04-28 18:23:42

Hello Artisan

In this tutorial i will guide you how to validate form data in laravel 7 with vue js using v-from. In this tutorial we will validate data before submit to the derver. If the requested data is invalid, then we will show a instant error message without page refresh. And this thing we will do using v-form packages.

https://www.tutspack.com/blog/laravel-vue-js-form-submit-with-validation-using-v-form-package
Services and SOLID
Tags: node, solid, services
Published: 2020-04-28 18:19:15

##**Why do I need to use services?**
Microservices are an architectural approach based on building an application as a collection of small services.
The service will store the business rule of your application, that is, everything that is very specific within your application.

##**What is SOLID?**
SOLID stand for:
<ul>
<li>S - Single responsibility principle</li>
<li>O - Open closed principle</li>
<li>L - Liskov substitution principle</li>
<li>I - Interface segregation principle</li>
<li>D - Dependency Inversion principle</li>
</ul>

#####🚀Single responsibility principle:
Principle of Single Responsibility ⇒ A class must have one, and only one, reason for changing.

#####🚀Open/closed principle
Open / Closed Principle ⇒ You must be able to extend a class's behavior without having to modify it.

#####🚀Liskov substitution principle
Liskov substitution principle ⇒ Derived classes must be substitutable for their base classes.

#####🚀Interface segregation principle
Principle of interface segregation ⇒ Many specific interfaces are better than a single general interface.

#####🚀Dependency inversion principle
Dependency inversion principle ⇒ Depend on abstractions, not implementations.

###By applying the principles we gain object-oriented benefits for our application, such as:
1. Easy maintenance, understanding and organization;
2. Open architecture to receive updates, improvements and new features without collateral damage
3. Application of tests in an easy and simple way
4. Easy code reuse
5. Easy adaptation to changes in the scope of the project

###Not using SOLID means exposing your application to problems such as:
1. Code repetition, that is, a simple change must be replicated in several different points of its application
2. Code without cohesive or standardized structure
3. Rigidity and fragility, that is, any change causes a cascade of operations or failures in various parts of the system
4. Difficulty performing and creating tests
5. No reuse, that is, no or almost no functionality can be reused for other systems
🤑 FREE React Material Dashboard Template
Tags: react, javascript
Published: 2020-04-28 18:05:56

The only React.js Dashboard Template you need to create amazing user interfaces. At [AlterClass.io](http://alterclass.io/), we wanted to help you build faster & beautiful applications. That's why we came up with this **FREE React Material Dashboard Template**.

The dashboard is designed to be simple, customizable, and easy to integrate. It is built on top of the amazing [Material-UI](https://material-ui.com/) library and it is fully responsive. It comes with a collection of components that will offer you multiple possibilities to create the app that best fits your needs.

We are very excited to share this dashboard with you and we look forward to hearing your feedback!

> This is a work in progress. We are continuously improving the UI and adding more features to it.

## What are you waiting for? Download your free version right now: [🤑 FREE DOWNLOAD](https://drive.google.com/open?id=1BgQkDSZpBsp_zfbUGWzOjtZfyDh3xtBRDiPf2JUQpwQ)

[![dashboard.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1588068392736/V5vlXFVRT.gif)]()

## Check out the live preview [here](https://material-dashboard-react.netlify.app/dashboard).

> In case you want to learn more about ReactJS and improve your Javascript skills, have a look at my ReactJS online course [here](https://www.alterclass.io/). No prior experience in ReactJS needed. You will learn how to build a real-world application step-by-step using modern ReactJS.

[![promo.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1582983872755/ux-qJiB3L.png)
](http://alterclass.io/)
Lesson 0.0: What is JavaScript? JavaScript for Beginners
Published: 2020-04-28 17:47:33

You've probably heard of JavaScript from a handful of people, and wanted to try it out for yourself. Or maybe you just Googled something like the title of this post and found me over here. Whatever the case, welcome to code! Let's straighten a few things out.

First off, no, we won't have black and green random characters like in the Matrix. Second, this is a step-by-step easy-peasy guide. If everything sounds too simple, try not to skip it. It'll prove invaluable in the end. Lastly, if you ever get critisized, remember that you're still learning and that with a lot of determination you could one day be better than everybody else.

Alright, now that all of that psychology is over, welcome to the club! Next lesson, we'll start talking about what JavaScript is and what we can do with it. Stay tuned!
Terraform - InvalidID on aws_eip
Tags: terraform
Published: 2020-05-20 11:56:41

---
title: Terraform - InvalidID on aws_eip
published: true
date: 2020-04-28 17:39:23 UTC
tags: terraform
canonical_url: 
---

I was trying to apply a terraform template today and ran into this error:

```bash
module.network.aws_eip.eip_nat_az2: Creating...

Error: error adding tags: error tagging resource (18.214.131.208): InvalidID: The ID '18.214.131.208' is not valid
        status code: 400, request id: 49aab8a6-8c26-4327-90a5-389a2e5962bd

  on ../modules/network/main.tf line 104, in resource "aws_eip" "eip_nat_az1":
 104: resource "aws_eip" "eip_nat_az1" {

Error: error adding tags: error tagging resource (100.24.169.116): InvalidID: The ID '100.24.169.116' is not valid
        status code: 400, request id: 212e2891-6500-4150-94e1-76f28603a2b2

  on ../modules/network/main.tf line 111, in resource "aws_eip" "eip_nat_az2":
 111: resource "aws_eip" "eip_nat_az2" {

Error: error adding tags: error tagging resource (52.206.41.2): InvalidID: The ID '52.206.41.2' is not valid
        status code: 400, request id: 38dbad9b-8985-428d-ae67-064fdd4f0f93

```

NOTE: These IPs are just random from the AWS pool and don’t really point to anything useful.

Searching for this issue yielded no results, so I figured I should post the solution.

It turns out my module had defined eips like so:

```hcl
resource "aws_eip" "eip_nat_az1" {
    tags {
        Name = "foo"
        Environment = "bar"
    }
}

```

When I examined the created IP addresses in the AWS console I saw that they were “Classic” EIPs and not VPC.

I had forgotten to specify `vpc = true`. The module now looks like this:

```hcl
resource "aws_eip" "eip_nat_az1" {
    vpc = true
    tags {
        Name = "foo"
        Environment = "bar"
    }
}

```

Now `terraform apply` runs cleanly!
Ruby progressbar template
Tags: ruby, rails, todayilearned
Published: 2020-04-28 17:32:00

Use this template for your progressbar needs in ruby. Highly modifiable, always useful, easy to forget. The Ruby progressbar is...a tool you can use.

- Up top in your file, require the `ruby-progressbar` gem
- Construct a query worth tracking the progress of
- Use the progressbar template below
- Enjoy peace of mind knowing exactly how long your process will take
- Modify the code below to fit your use case

```ruby
require 'ruby-progressbar'

query = Person.where.not(last_name: "Bigalow")

progress = ProgressBar.create(
  total: query.count,
  format: "Progress: %a <%B> %p%% %t",
  smoothing: 0.5
)

query.find_each do |person|
 progress.increment

 person.update!(first_name: "Duece")
end
```
A quick way to detect bad practices on a Dockerfile
Tags: todayilearned, docker, dockerfile, lint
Published: 2020-04-28 17:08:40

In Feldroy we use Docker images as the base to running the tools to build the PDF, EPUB, and Kindle files from the content written by @audreyfeldroy and @danielfeldroy.

Having a 100% functional Dockerfile that follows good practices is a good thing to have.

The [`hadolint`](https://hadolint.github.io/hadolint/) is a linter tool that helps to validate a Dockerfile to build Docker images that follow the recommendations of the [`Best practices for writing Dockerfiles`](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) guide.

## A quick way to use

```
docker run --rm -i hadolint/hadolint < Dockerfile
```

## What is the validation rules

The validation follows these rules: https://github.com/hadolint/hadolint#rules

## How to customize the validation

We can customize the validation by creating the `.hadolint.yaml` file: https://github.com/hadolint/hadolint#configure

## How to integrate on the CI Server


There are several examples of how to use `hadolint` on `CI servers`: https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md
Life As A Bootcamp Dev - Week 13: Finding Productive Hobbies
Published: 2020-04-28 17:05:57

#Hi All!

As of recently, I found myself being pretty unproductive. A response to an interview I had intensely prepared for got pushed out and I had trouble staying motivated to keep sending job applications out.

**So I took a break** (asides from the two projects I was collaborating on!).

![alt text](https://media.giphy.com/media/Prcy16jmbngZ2/giphy.gif)

I did a number of things I normally don't do to take my mind off the interview in general, like watching TV and playing A LOT of video games.

**I was convincing myself** that I was just passing time until I would hear back from my interview.

- If I got rejected, it was back to job applications, no problem!
- If I got accepted, it was a whole new chapter of my life!

So I justified spending hours just killing time, for a couple days. And then the day came when I was supposed to hear back about my interview, and **I was notified that the company was going to need another week**.

![alt text](https://media.giphy.com/media/FqdruC6cJYXxC/giphy.gif)

Yeah, my "time killing" strategy wouldn't be reasonable for a WHOLE additional week. I wanted to find hobbies that I could improve at that I could potentially use in my coding projects that were also fun and relaxing. Here's three things I picked up:

1) I recently started learning piano. I loved putting sounds in my projects during my bootcamp, and I always wanted to learn to make my own music. My wife is an amazing piano player, so she had been teaching me the basics. It's been a blast!

2) I began practicing to make digital art using ProCreate. I always enjoyed throwing pictures/animations into my projects that came straight from my brain rather than the internet! I just practice by drawing whatever comes to my head. Here's a random drawing I made.

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

3) I started making small games using Unity. I've always been interested in world building and telling stories, I figured this would be something cool to explore that also lets me practice my coding AND design skills! Here's a snip from a simple number guessing game I made!

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

# My Point: Do Something Small!

If you've also been hit by negative thoughts or just feeling crummy about your situation, it is totally okay to take a breather and take a break. In fact getting burnt out is way more unproductive than binging on something for a day or two.

**Sometimes though, the best escape isn't actually doing nothing, but creating small things through activities you enjoy.**

I usually feel guilty after watching 2 hours of TV, because I have "accomplished nothing".

But I usually feel happy after spending 2 hours drawing a silly picture, because I made a silly picture :).

I'll be getting back on this job application train now.

![alt text](https://media.giphy.com/media/WdIaMQ6bLlvtm/giphy.gif)

Good luck with your own endeavors!

Shawn