teleren/devto huggingface dataset:
EBS Migration
Tags: oracle, aws, gcp, azure
Published: 2020-06-23 04:28:59

Does your ERP platform able to cope up with busines' core challenges like performance, security, and control? Is your system lacks computing power and have limited storage for infrastructure accommodations? Do you need a cloud platform integrated with latest features like AI and ML to make informed decisions with informed insights? If the answer to any of the questions is yes! E-Business Suite (EBS) encapsulated with the cloud architecture, a unique offering by Vast Edge, addresses all your concerns regarding technical requisites, and business challenges along with enhanced IT efficiency and high scalability.
for more info:- https://www.vastedge.com/ebs-migration/

Please give a glance at once-- https://www.vastedge.com
Hiding Microsoft Teams status icons
Tags: productivity, tools
Published: 2020-06-23 04:20:12

Microsoft Teams shows your coworkers current status from available, busy, to away. I can see the utility in knowing this but for myself, I'd rather not know.

![Microsoft Teams status icon](https://i.imgur.com/SRXTt8f.png)

From working remotely, I've found asynchronous communication to be the best way to do most of my communication. The status icons changes the way I chat. For example, if I send a message to someone that is available I could sit there waiting for an instant response. Take the status away and my expectation that the person will respond soon goes away.

# Removing the status icons

Teams makes an API call to get the status of your coworkers. The URL that it hits is `http://presence.teams.microsoft.com`. If we can block those requests, we'll stop seeing the status icons.

We can use [Fiddler](https://www.telerik.com/fiddler) to block requests to a specific URL. Because Fiddler works on all OS', we can do the following steps across all the devices we use.

1. [Install Fiddler](https://www.telerik.com/download/fiddler)
1. Open the AutoResponder tab
1. Check "Enable rules"
1. Check "Unmatched requests passthrough"
1. Click "Add rule"
1. In the "Request URL Pattern" input, enter `http://presence.teams.microsoft.com`
1. In the "Local file to return or *Action to execute" input, choose "*drop"

With that done, Teams will no longer show the status icons.

![Microsoft Teams with disabled status icons](https://i.imgur.com/K12aX7b.png)

# Extending this to other applications

If you'd like to do this for other applications, you can use Fiddler to see all the network requests an application makes. Once you find the API endpoint the application makes, you can make a rule to drop the request.
Join my first Twitch live - June 23, 12:15 Central
Tags: css, webdev
Published: 2020-06-23 03:25:59

Join my _new_ stream to learn about how the ModernCSS.dev logo is constructed!

![ModernCSS.dev logo](https://dev-to-uploads.s3.amazonaws.com/i/0cy17pezor4i38glfft6.png)

You'll learn about grid areas and CSS transforms.

The stream will be between 20-30 minutes, depending on audience participation ✨

Tell your friends, and **follow for go-live notifications** > https://www.twitch.tv/5t3phdev

**Update #1** - the [stream recording](https://www.twitch.tv/videos/659255083?t=0h2m58s) is up.

**Update #2** - a slightly edited (particularly to improve audio) version that also won't expire has been posted to my YouTube channel.

**Update #3** - three highlights are now available to directly view:
- [CSS Grid areas](https://www.twitch.tv/videos/660246594?filter=highlights&sort=time)
- [`clamp` and fluid typography](https://www.twitch.tv/videos/660246597?filter=highlights&sort=time)
- [CSS transform](https://www.twitch.tv/videos/660246595?filter=highlights&sort=time) for creating the diamond graphic
Método Map
Published: 2020-06-23 03:24:06

O método *Map* cria um novo array baseado numa chamada de função para cada elemento do Array.

A função que será executada para cada elemento é descrita dentro do Map.

Vamos ver um exemplo para tornar as coisas mais claras:

*1. Tenho um Array:*
const array1 = [1, 4, 9, 16]

*2. Quero criar uma função que recebe um elemento e o multiplica por 2*

function multiplyByTwo(num) {
  return num * 2
}

ou

const multiplyByTwo = num => num *2

*3. Vou passar essa função para o Map e ela será executada para cada elemento*

const newArray = array1.map(multiplyByTwo)

*4. Mostrando o resultado do NewArray temos:*

console.log(newArray) // [2, 8, 18, 32]
🤷‍♀️ Why Do Data Science Projects Fail!
Tags: discuss, career, data, datascience
Published: 2020-06-23 02:35:00

---
title: 🤷‍♀️ Why Do Data Science Projects Fail!
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/vsyrknu4k16g4md8emrv.png
published: true
description: Weigh in with your thoughts.
tags: discuss, career, data, datascience
series: career questions for data folks
---

What causes _data science_ projects to fail?
Back up your Plex Media Server on Mac OS
Tags: plex, automation, mac
Published: 2020-06-23 02:22:58

## The Challenge:
How to automate the backing up of my [Plex Media Server](https://www.plex.tv)
## Solution:
A Bash Script

I wanted to automate this process. If I didn't, it probably wouldn't get done.

This script was adapted from another GitHub Gist that I found [here](https://gist.github.com/shnhrrsn/7f22abe085a07e250c851d53db55bae2).

{% gist https://gist.github.com/Bas-Man/1e86a002ef5c09644567f496553737e9 %}

You will probably need to modify the following variables.
  - plexDatabase
  - plexPlistFile
  - backupDirectory

Pay attention to lines 17 ~ 21. These refer to the possibility that your script may not
complete if your machine can go to sleep. As it suggests use the 'caffeinate' command to prevent
your machine from sleeping during backup. It will be able to sleep after the script completes.

Don't forget to give the script execution permission using 'chmod +x scriptname'

Install a cronjob under your user account using:
```sh
  crontab -e
```

The contents of my cronjob

```sh
SHELL=/bin/bash
06 02 * * Sun /usr/bin/caffeinate $HOME/bin/plexbackup.sh
```
Notes:
  - You need a SHELL set for the cronjob to run the command.
  - The script runs weekly on Sunday from 6:02am
  - It uses caffeinate so that the machine does not sleep during backup. I do not have my sleep value set to 0 on this machine.
  - My backup script is located in my home directory under the folder ***bin***
How to Deploy A Golang App to Heroku.
Tags: go, heroku, deploy
Published: 2020-06-23 00:20:22

This is a step by step tutorial on how to deploy a Golang app on Heroku.

## Requirements.
1. Heroku Account
2. Heroku CLI
3. Golang v1.14 and above

### **Step 1.**
Create a Heroku account using your email and password or log in if you already have an account.

Download the Heroku CLI by running the command below on Mac OS
```bash
$ brew tap heroku/brew && brew install heroku
```
Or go to https://devcenter.heroku.com/articles/heroku-cli#download-and-install to install on Windows.
Login to Heroku from your terminal using the command
```bash
$ heroku login
```
This will open your web browser to complete the login flow.

### **Step 2.**
Create Procfile by running
```bash
$ touch Procfile
```
or just create it from the directory. Run `echo "web: [directory]" > Procfile replace [directory]` e.g
```bash
$ echo "web: currency" > Procfile
```

### **Step 3.**
Generate a go.mod file using `go mod init github.com/[user_name]/[project_name]` e.g.
```bash
$ go mod init github.com/heavykenny/currency
```

### **Step 4.**
Set variable names in `.env` file e.g. `PORT=8080` using
```bash
$ heroku config:set PORT=8080
```
You can also set other variables using this command.

### **Step 5.**
Commit your code using the following commands
```bash
$ git init
$ git add . && git commit -m "Deploying to Heroku"
```

### **Step 6.**
Create a Heroku application using heroku create [project_name] e.g.
```bash
$ heroku create go-currency
$ git push heroku master
```
You can then proceed to test your app using `https://[project_name].herokuapp.com` i.e.
https://go-currency.herokuapp.com.

If you encounter any error during any of these processes, do not hesitate to comment or reach out. Thank you.
UI Kitten: Eva Icons in React Native
Tags: reactnative, ux, design
Published: 2020-06-23 00:11:43

## What is UI Kitten?
UI Kitten is React Native library which is based on Eva Design System, it's an Open Source React Native framework of UI components, it enables you to create customizable amazing UI layouts, packed with an awesome set of general-purpose UI components, giving you more time to focus on business logic and other aspects of your app while it takes care of your app's looks and the themes can be toggled in the runtime, without need to reload the application, how cool is that?

UI kitten being [Eva Design System](https://eva.design/) based gives us consistency and scalability in the development and design process.

## UI Kitten Specifications

* 30+ general-purpose UI components with browser support for React Native Web.
* Theming System: Light, Dark and Custom.
* 480+ general-purpose SVG Eva icons.
* Eva Design System support.
* UI Kitten Moment and Date functions: Modules allowing * UI Kitten components to work with dates.
* Both JavaScript and TypeScript Supported.

## Installation & Usage
### New project:

`npx react-native init MyApp --template @ui-kitten/template-js`

If you build with TypeScript run :

`npx react-native init MyApp --template @ui-kitten/template-ts`


## Existing project:
`yarn add @ui-kitten/components @eva-design/eva react-native-svg`

if you use  Expo, you should use `expo install react-native-svg@9.13.6` to install SVG package.

We will need to restart our bundler to make sure changes are made

`yarn start --reset-cache`

## Setting up our application root
{% gist https://gist.github.com/godswillokokon/9639ec46a20b19d7e72867edfc6e1cbe %}

### Output
![Hello Kitten](https://cdn-images-1.medium.com/max/800/1*QWgrUKn40m0DG83uCGm0Ug.png)

## Eva Icons:
[Eva Icons](https://akveo.github.io/eva-icons/#/) is a pack of 480+ beautiful icons, UI kitten has it as a module for React Native applications to add it's Open Source, using Eva will enable full consistency with Eva Design System.

Eva Icons supports 4 animation types
1. Zoom.
2. Pulse.
3. Shake.
4. Infinite.

## Eva Icon Installation & Usage
* Install Eva Icons:
`yarn add @ui-kitten/eva-icons`
* Implementation:
{% gist https://gist.github.com/godswillokokon/4a0dbc864221b098ab5b5148fa44a12c %}
* Rebuild bundle:
`npx react-native run-android or npx react-native run-ios`

### Output:
![Icon](https://cdn-images-1.medium.com/max/800/1*DyOVjeCzleipKpfib1RO9g.png)

## Animated Icons:
{% gist https://gist.github.com/godswillokokon/93118317bafd57b666c1e7ce66735322 %}

## Root file: 
{% gist https://gist.github.com/godswillokokon/aad8edcc12f3fe366a6c62e021679e2a %}

### Output: 
![animate](https://cdn-images-1.medium.com/max/800/1*kso8olf6yWSznoqMDgIa7Q.gif)

UI Kitten has a beautiful and rich [documentation](https://akveo.github.io/react-native-ui-kitten/docs/getting-started/what-is-ui-kitten#what-is-ui-kitten), do check it out.

## Thanks for reading
I hope this was helpful, don't forget to like and share this article, you can tweet at [@Godswillokokon](https://twitter.com/GodswillOkokon) if you have any questions or drop a comment below.
Fix a Detached HEAD - Git
Tags: git, vsc
Published: 2020-11-10 15:15:13

---
title: Fix a Detached HEAD - Git
published: true
date: 2020-06-23 00:00:00 UTC
tags: git, vsc
canonical_url: https://tech.serhatteker.com/post/2020-06/fix-detached-head-git/
---

## Solution

Just `checkout` to the `branch` you want:

```bash
$ git checkout <branch>
```

For instance:

```bash
$ git checkout master
```

> **Note**:
> 
> If you want to keep the chances you are working you should create new __branch__ or __stash__ your changes.

## Reason

Any `checkout` of a commit that is not the name of one of your branches will get you a _detached_ `HEAD`. A `SHA1` which represents the tip of a branch still gives a _detached_ `HEAD`. Only a `checkout` of a _local branch_ name avoids
that mode.

When `HEAD` is _detached_, commits work like normal, except no named branch gets updated. It is like an _anonymous branch_.

![Detached HEAD](https://tech.serhatteker.com/img/content/2020/detached_head.png)

For example, if you checkout a __remote branch__ without tracking it first, you can end up with a _detached_ `HEAD`.

For more info: [Visual Git Reference]

All done!




[Visual Git Reference]: http://marklodato.github.io/visual-git-guide/index-en.html
How to check if a property is present in an object in JavaScript?
Tags: javascript
Published: 2020-06-23 00:00:00

---
  title: How to check if a property is present in an object in JavaScript?
  published: true
  tags: JavaScript
  date: Tue Jun 23 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/check-if-property-object-javascript
  cover_image: https://melvingeorge.me/_next/static/images/main-885e46f7dd1dc4847f8efeaef2b37941.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/check-if-property-object-javascript)
  
Let's say you have an object called `John`.

```javascript
const John = {
  name: "John Doe",
  age: 23,
  salary: 23000,
};
```

We can check whether the property `salary` property is present in the object using the `hasOwnProperty()` method available in the prototype chain of the `John` object.

```javascript
const John = {
  name: "John Doe",
  age: 23,
  salary: 23000,
  sayHello: () => {
    console.log("Hello!");
  },
};

// check if the salary is present in John
John.hasOwnProperty("salary");
```

- The method returns `true` if present and `false` if not.
- Available in the prototype chain of an object.

You can also check if a method is present in the object.

Now let's check if `sayHello` method is present.

```javascript
const John = {
  name: "John Doe",
  age: 23,
  salary: 23000,
  sayHello: () => {
    console.log("Hello!");
  },
};

// check if the salary is present in John
John.hasOwnProperty("salary"); // Result: true

// check if sayHello function is present in John
John.hasOwnProperty("sayHello"); // Result: true
```

### Feel free to share if you found this useful 😃.

---
Published my first NPM library (location-please)
Tags: npm, javascript
Published: 2020-06-22 23:58:42

Hey Guys, I've published my first NPM library called location-please: https://www.npmjs.com/package/location-please

Now there are multiple libraries who can help you get the details of the IP which may or may not be free.

What I've done is added 3 reliable API together and developed a fallback mechanism to get IP details such as country, country code, city, etc.
This mechanism was inspired from a medium post.

Hope it'll be useful. I'd love to know what you think.

Thank you!
Top 10 Soft Skills for a Developer
Tags: career, selfhelp, softskills
Published: 2020-06-22 17:47:46

When I started as a developer, I thought that **technical competences** were all in our job. So, I continue training myself, trying to become every day a better developer. What I missed at the beginning it that our professional background doesn’t need only to be technical. It’s clear that if you want to play machine learning, you have to master python, Keras, TensorFlow, and all the other cool stuff we have nowadays. _These are your tools. This is your playground. These are your hard skills._ What you miss probably, is to focus also on soft ones. **Soft skill helps to work better with others, get results easier, give more value on what you do.** And if you think that soft skill doesn’t produce working software, read this article. I thought the same, but I boost my career only when I started to look at the whole professional, not just to the technical part. In this article, you will find ten skills that are important to become a better IT professional and some suggestions that will be useful for improving them.

[Read the full article](https://towardsdatascience.com/soft-skills-developer-2ead1dd85b2f?source=friends_link&sk=96fc7f10fad34d28e589e6d1db57c463)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/afzjtzm3yr4hdydu741f.png)
100/100 100daysofcode Flutter
Tags: 100daysofcode
Published: 2020-06-22 23:10:20

day 100/100 of #100daysofcode #Flutter
Learning Flutter , courses Udemy from
@maxedapps
![Sertifikat](https://dev-to-uploads.s3.amazonaws.com/i/ursi2s6tszxmkav8t5ui.jpg)

Today learn make icon apps, optimizing and publishing on playstore, and finishing the course
https://github.com/triyono777/100-days-of-code/blob/master/log.md
Xamarin Forms Kick Starter
Tags: csharp, xamarin, ios, android
Published: 2020-06-22 22:37:38

Hello Everyone,

My name is Nour El Gafy, I am software engineering senior college student whose exams were delayed due to the current pandemic situation, which is how the idea of this project came to me.

Hand in Hand with @OsamaELHosney we started gathering the packages and the snippets that we used in previous projects to create a go to template project in Xamarin forms whenever we wanted to start a new one 

that is how [Xamarin Kickstarter Template](https://hackavist.github.io/XamarinKickStartTemplate/) came to life.

I will be writing several Posts explaining some of the cool features in this template. starting with the _LocalNotificationService_

Your feedback and contribution to the repo are highly appreciated.


Stay Safe and Have a good one
Day 159 : Gimme Mine
Tags: hiphop, code, coding, lifelongdev
Published: 2020-06-22 22:26:14

_liner notes_:
- Saturday : As usual, did the radio show. And as usual, had a really good time. We actually made it under the 2 hour time limit! Should be a lot easier to send to the station so they can play it on air next week. Oh and I found out that my personal Twitter account was suspended. For what? No clue. Twitter did say. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image of Florida govenor Ron DeSantis with only one glove on and clasping his hands with the words June 20th 2020, Suspended](https://dev-to-uploads.s3.amazonaws.com/i/qo0n8nm9sk1hp3qy1k6b.jpg)

- Sunday : Spent like an hour in my van getting measurements for the front half of the framing I want to build. There's a couple of things I need to work around in the van that I need to figure out. Looked through the catalogs I got to see if I can find a possible solution. Finished up some post radio show work. Did quite a bit on my side project. Got a mobile layout working for the Pomodoro portion. I like it so much, that I'm going to apply it to other parts of the application. While working on my application, I watched a few episodes of 'Parasyte'. Watched a new episode of 'N0S4A2' on AMC. Upcoming season is looking good.

- Professional : Met with my manager today to talk about what we'll be doing this week. Worked on an application that a team member said would make their live streams easier. Got that done and sent it to them to see if it will help. During the day, I had on the Apple WWDC presentation. Seems like some cool stuff coming, but a lot of it I already had with Android.

- Personal : Really happy with how my side project is coming out. Just a few more things and I'll deploy it and let some folks test it out for me.

![A forest in Austria with a lot of mountains in the distance](https://dev-to-uploads.s3.amazonaws.com/i/2zma80zr62773u3i73mn.png)

For some reason, the blog post I wrote on Friday didn't post so I had to figure that out. Looks like I'm still suspended from Twitter on my personal account. Honestly, it's been pretty peaceful without feeling the need to always see what's going on. It's never really that important. Gimme mine peace of mind. haha. Going to work on my project and see if I can get the mobile layout completed.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube qwgqN-Vw9-Q %}
Resolving Git conflicts in Pipenv Lockfiles
Tags: pipenv, python, git
Published: 2020-06-22 22:19:28

---
title: Resolving Git conflicts in Pipenv Lockfiles
published: true
description: How to resolve conflicting Git changes to Pipenv Lockfiles quickly
tags: pipenv, python, git
---
I'm writing this principally for me to find via Google the next time this happens. Which is to say that the problem occurs relatively frequently but not enough that I can remember how to resolve but instead vaguely remember that it was painful.

tldr: get the file parseable and then run `pipenv lock`

The essential cause of merge conflicts in the pipenv Lockfile is the package SHA that changes whenever you change a dependency. If dependencies are changing in different branches then you are almost guaranteed to get merge conflicts.

The important thing is that while the git merge markers are in the file pipenv can't run because it needs to parse the lockfile before it does anything else.

It doesn't really matter which merge you choose so assuming your pull is on a tested branch you should be able to use `git checkout --theirs Pipfile.lock`.

Once the file is parseable you can just run `pipenv lock` to regenerate the lockfile with the correct combined dependencies.

Assuming there are no version conflicts as a result of the combined dependency requirements you should be done and can commit the newly generated file as the result of the merge.
Day 158: The Whole World
Tags: hiphop, code, coding, lifelongdev
Published: 2020-06-22 21:57:41

_liner notes_:
- Professional : Pretty productive day. With some help from the open-wc Slack channel, I was albe to figure out an issue I kept running into. Pretty awesome!

- Personal : Got quite a bit done with the radio show for tomorrow. Just need to finish up a couple of things.

![Rolling hills of Antelope Valley, California](https://dev-to-uploads.s3.amazonaws.com/i/24utng87nkdtme749cc4.png)

Going to finish up some work for the radio show and work on my side project. Almost done with the project, can't wait to show the whole world!

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube udmTfK6_aM8 %}
Understand Docker step by step. A tutorial repo for beginners

Tags: docker, beginners, devops, tuto
Published: 2020-06-22 21:52:40

Hello Everyone, I wrote a simple beginner tutorial for Docker, you can read here https://github.com/championshuttler/docker-basicLearning or https://championshuttler.github.io/docker-basicLearning

If you like it please do not forget to give the repo a ⭐.

Happy Open Source
Docker-compose exec using stdin as an input
Published: 2020-06-22 21:43:31

---
title: Docker-compose exec using stdin as an input
published: true
tags: docker,'docker-compose'
description: Sometimes you want to execute command inside docker-compose service using input from the host machine. Instead of copy content from host machine to inside the container and run the command, you can use `docker-compose exec` with stdin as an input.
tags: 
//cover_image: https://direct_url_to_image.jpg
---
Sometimes you want to execute command inside docker-compose service using input from the host machine. Instead of copy content from host machine to inside the container and run the command, you can use `docker-compose exec` with stdin as an input.

### Example scenario: Execute external SQL files inside the container

You have backup `.sql` file on your host machine and want to restore it into your Postgresql container. You can run:

```bash
cat /path/to/sql/file \
  | docker-compose exec -T service_name \
  psql -U username -d database_name
```
Option: `-T` does the trick. By default, `exec` command of docker-compose allocates pseudo-tty. With `-T`, it will not -- which means it expects to do one-time command execution so that we can pipe the content of our SQL file in with `|`.
Lines of code vs more Files
Tags: react, javascript, webdev, computerscience
Published: 2020-06-22 21:38:20

Good day devs.
I've been going through a react project and found the common used Utils.js file with more than 600 lines of code from global constants, functions and really big functional components, for me this is really messy I prefer having the utils.js with no more than functions, constants in a constants.js file and each functional component in its own file. 

I'd like to know what do you thing about this. 

Thank you for your time.