teleren/devto huggingface dataset:
Join the FPL DEV classic league
Tags: watercooler
Published: 2019-09-26 17:09:03

I started watching soccer I think a couple of years ago. EPL has always been a great league, it is competitive compared to other leagues like La Liga that are dominated by Barcelona and Real Madrid. It's always full of surprises. 

EPL has a great Fantasy League and I would love you to join the Dev league I just created. At the beginning of the week, we will celebrate the top managers per game week here and the overall winner per month until the season ends.

If you are a fan of EPL join the DEV classic FPL league:
league code: `lza93m`

Comment with your favorite EPL team and favorite player. For me its:
- Man City
- Kevin De Bruyne (KDB)
Speed Coding Challenges
Tags: javascript, python, 100daysofcode, challenge
Published: 2019-09-26 17:08:22

I'm trying to think of super quick speed coding challenges that can be done in less than 2 minutes.

The idea, is that it's like a timed quiz. Like those timed Multiplication tests they might have made you do in school. Where you start a timer and solve as many problems as you can before time runs out.

I'd like a handful, where the coder is tasked with trying to code a solution in under 2 minutes.

Preferably things that can be done in most common languages. However JavaScript and Python may be the choice for this project.
You have to master tons of skill to apply as web developer in Indonesia (personal experiences)
Tags: experience, recruitmentshit
Published: 2019-09-26 16:59:20

This is my personal experience when I was looking to get  hired in Indonesia. As expected, there are plenty tons of job vacancies on jobstreet.com. From senior IT, to front-end developer.

I have no idea if front-end developer must  be able in python!
This fucking shit company, have no idea what they were looking for.

at Company A, they give me a paperwork-shit, to create php hangman game! 
https://github.com/thekingofbandit/hangman

at company B, they ask me to did json array format, sql query, into javascript debugging,

at company C, they send me a zip with 7 tasks!
build using c#
build a program using angular
then a python program
into laravel crud with delete confirmation
*I bet they did'nt check if laravel 6 changed some methods*

Tomorrow I will have a call interview.
I bet he will ask if I could transform their current existing ERP into python, and hope I could send a block of code as a starter program.

I have learned alphasoftware, not any close to expert area! a framework; I explained to them, I guess I was wrong. as they never heard xBasic in their  monkey coding journey life.

so..
here I am take another path .. again and again..
expert in xBasic doesn't help you buddy,
not for Indonesian Jasaweb things.

but yes if some company ask a crud with bulk upload and import to pdf report in 10 minutes. I couldn't speak no more than alphasoftware. It is like USAIN BOLT https://en.wikipedia.org/wiki/Usain_Bolt  in web development. when you build one time and getting 3 products, web app, android app, and if app** man approve your app as you add upgrade account by call in your app. (Haha never!) 
http://alphasoftware.com

I guess, I will help any 'Gorengan'https://www.indoindians.com/gorengan-indonesias-favorite-fried-snacks/  seller to maintain their sells, with alphasoftware. Haha... 

what annoyed me, one of this startup lead, speak that an IIS has lots of holes! while they do JavaScript MVC things!

react,
angular,
etcai etctai..
https://github.com/gothinkster/angular-realworld-example-app


sribulancer just a client ask for scrapping data
fiverr 0 client. I wonder ho to get stars

onlineshop seller on instagram?
ok gathering follower with instapy getting blocked!
pay for bots? Good luck.

Disclaimer:
This is just my personal point of view, I do apologize if I hurt your shit heart.

Cheers.
Did you know you can create an accordion without JS or CSS?
Tags: html, a11y, codepen, todayilearned
Published: 2019-09-26 16:53:23

Using HTML5 you can now create an accordion type feature using &lt;details&gt; and &lt;summary&gt; tags. Neat!

I've not seen this mentioned __anywhere__ before, yet came across it in a code test. I was totally stumped by it, and had to actually go scour the spec to find out the answer (after failing the question :<)

Check out this [Codepen](https://codepen.io/Deadlymuffin/pen/oNvaP) to see it in action. If this is common knowledge, I certainly wasn't aware. Thought it could do wit some extra attention as I couldn't find out anything about it with a cursory Googlin'

{% codepen https://codepen.io/Deadlymuffin/pen/oNvaPVJ %}

It's not hugely supported but can be used with evergreen browsers and in the future (the bootstrapless, grid framework free, dreamy future) this will probably be how we all deal with FAQs and hide/reveal content in a much more semantic way. 

You can use this right now for accessibility, and go about doing some show/hide JS to cater to IE and Edge.
Working From Home as an intern
Published: 2019-09-26 16:06:17

 I recently was able to work from home for the first time. 

Needless to say it was a terrifying experience.

I thought I was being watched from every web-enabled device in my home, the entire team monitoring to see if the intern was slacking off. It was almost like a scene from *1984* but instead of Big Brother it was my senior devs. 

It was a 90% irrational fear I soon realized, since most of them were busy repeatedly banging their heads on a wall for their own projects. 


   To any other interns out there too afraid of being reprimanded for peeing too slow while working from home, you're fine. Maybe someone is watching from your webcam but it's definitely not your senior dev.
Don't use API Clients 😅 
Tags: api, integration, devops
Published: 2019-09-26 16:05:26

At [bearer.sh](https://www.bearer.sh), I've been interviewing dozens of developers and experts to understand how they build and manage their API integrations.

I've compiled those findings into a series of blog posts, here is the first part below, that is all about API clients. 

## First, why should I care?
Because as the number of integrations you build tends to grow, consuming all those third-party APIs at scale becomes a real technical challenge.

Integrating one or two APIs is not always that complicated, but when it comes to build dozens of integrations, each providing key business-critical components to your application, that’s when things get more complex (and interesting!). From there on in, you realize that every API is a single point of failure that needs to be managed accordingly; dealing with technical debt and security is going to be paramount.

## Using API clients?

How difficult can it be to consume an API, after all? It’s not like it’s something new, right? Sadly, it is difficult, and it's at that precise moment we usually all make a critical decision:

> Hey, I've found an API client for xyz API, let's use it it's going to go faster

But, what we've found out is that **using a dedicated API client is the best way to build technical and security debt** over time. When you think about it, most of the time, those API clients are just nice wrappers over REST calls. Ideally, they are provided and maintained by the API vendor, but it is more often not the case.

Imagine yourself consuming dozens of APIs, not an unusual feat, it means relying on dozens of dependencies,+ their own in turn. This will translate into numerous updates and security patches over time. Add to that the fact that, every API call will look different in your codebase; you quickly realize this may not be have been the ideal decision! 

By the way, would you query your DB using a different client for every table? Different methods? It's not just because data comes from an API, that you should suddenly forget all your best practices.

From that single unspoken decision, the impact over time is going to be dramatic.

## Great, what's the solution?

First, the keep it simple stupid (KISS) approach would simply tell us to query the API using a regular HTTP client (axios, httparty etc.). Yes, It is going to be more verbose, but is that a bad thing after all?

The ideal solution that we've seen is to build a dedicated service, responsible for querying all your third-party APIs. This way, every integration will rely on the same pattern, structure, and dependencies; you will be able to improve this service over time, and by design improving all your integration's codebase. You can think of it as a micro-service or a module for example, depending of your preferred architectural choice obviously.

And finally, you can also give a try to our [universal API client](https://www.bearer.sh) if you don't want to reinvent the wheel 😅.

*I'd love to know how you build and manage your integrations, tell me more in the comment section below!*
Create images for use in android studio layouts
Tags: images, layout, android
Published: 2019-09-26 15:59:26

Hi every kind member of DEV,

I would like to create images for use in android studio layouts. Is it possible (and how, if yes?) to do it directly in android studio? I use the version 3.5 of android studio on 64 bit windows 10 OS. Ram 20 GB, HD 1 TB, etc.

Thansks a lot.
A.KOTE
What’s the Difference between WCF vs Web API?
Published: 2019-09-26 15:49:59

In the fast-paced web development environment, there exist several frameworks and technologies that allow programmers to create HTTP services such as WCF and Web API. However, deciding which platform to utilize in your project can be daunting, considering that many of them often overlap in terms of approach and functionality. In this write-up, we will take an in-depth look at the key features and differences between WCF and Web API to help you choose the technology that aligns with your development needs. 

[Read more here](https://blog.rapidapi.com/wcf-vs-web-api/)
jQuery を用いたページ内スクロール: リンク先 ID 値が日本語である場合、エラー "Syntax error, unrecognized expression" が発生
Tags: jquery, scroll, hash, japanese
Published: 2019-09-26 15:43:24

---
title: jQuery を用いたページ内スクロール: リンク先 ID 値が日本語である場合、エラー "Syntax error, unrecognized expression" が発生
published: true
description: jQuery の animate を使用して、ページ内リンクに対するスムーズスクロールを実装しようとしていました。リンク先の ID 属性値が日本語である場合、Error: Syntax error, unrecognized expression が発生しました。コンソールのエラーログに URI エンコードされた文字列が出力されていたので、そちらをデコードすると、成功するようになりました。
tags: jquery, scroll, hash, japanese
---

jQuery の `animate` を使用して、ページ内リンクに対するスムーズスクロールを実装しようとしていました。
使用していた jQuery のバージョンは 3.4.1 です。

リンク先の ID 属性値が日本語である場合、`Error: Syntax error, unrecognized expression` が発生しました。

コンソールのエラーログに URI エンコードされた文字列が出力されていたので、そちらをデコードすると、成功するようになりました:

```diff
- $(this.hash);
+ $(decodeURI(this.hash));
```

スクロール処理の全体は以下の通りです:

```javascript
// href 属性値が # 始まりの a タグに対して click のイベントハンドラを追加する
$('a[href^="#"]').on('click', function(event) {
    event.preventDefault();

    // ハッシュ値を取得して URI デコードする
    var decodedHash = decodeURI(this.hash);
    // スクロール位置を取得する
    var offset = $(decodedHash).offset();
    var offsetTop = offset ? offset.top: 0;
    // スクロールを実行する
    $('html, body').animate({
        scrollTop: offsetTop,
    }, 700, function(){
        // ページ位置を更新する
        window.location.hash = decodedHash;
    });
});
```
Self-Care
Tags: mentalhealth, burnout, management, leadership
Published: 2019-09-26 15:39:42

With the constant emphasis on self-sacrifice in a leadership position, I thought I would touch on an important counter-balance: self-care. Ultimately it comes down to healthy relationships with many parallels in our personal lives, and leaders are not exempt!

If I am an introvert and I'm friends with a strong extrovert, I will need a break from spending time with them to recharge. If I have a similar relationship to my role at a company and end up drained after some time in that role, I will need a break. Unfortunately that's not how employment works in most cases (beyond vacation that is). I can't just take a break, so my position needs to be emotionally sustainable. I need opportunities to sufficiently refill my emotional bucket throughout the day/week/month/year. Without those opportunities, I will burn out very quickly.

I've always been great at maintaining a solid work-life balance. I've also been fortunate enough to have good leadership for the majority of my career that have been very fair and people-focused. However, what happens if I encounter a more bottom-line-focused manager that cares more about output than the human beings on my team? That would be a very draining factor (similar to the extrovert friend) in my relationship with my position.

Ultimately it doesn't matter what the draining factor is, if my position (management or otherwise) is causing any drain without enough opportunity to recover and the signs of burnout start to manifest, I need to create a change in that relationship. What that means can vary based on the situation, but it could be a one-on-one conversation if I felt it was realistic to create change that way, or it could be a lateral move, promotion/demotion, or new job.

We don't want to spiral down into an emotional place that causes us to be short-tempered with those we care about (or anyone really). Making that change often only becomes more and more necessary, so if the signs of emotional drain start showing, it's time to evaluate the situation and commit to a healthier path forward. Pay attention and take care of yourself, because in the end that's what is in our power, and everyone (especially family and teammates) will benefit!
Should we use a full-feature IDE when learning a new language?
Tags: discuss, beginners, vscode, ide
Published: 2019-09-26 15:38:19

In school I used to use basic text editor (notepad, *plugin-less* vim, etc) when learning a new language but realized that lot of time is lost for trivial errors (missing semicolon, typo, etc) and wonder if using IDE could be more beneficial in this case. In addition IDE usually comes with easy access to documentation that facilitates code discovery. 

At the same time using a basic text editor forces us to really understand and master a language syntax.

What text editor do you prefer when learning a new language?
Configuring IPFS in linux based os
Tags: ipfs, blockchain
Published: 2020-01-16 11:26:29

---
title: Configuring IPFS in linux based os
published: true
date: 2019-09-26 15:38:00 UTC
tags: ipfs, Blockchain
canonical_url: https://altechnep.blogspot.com/2019/09/configuring-ipfs-in-linux-based-os.html
---

The InterPlanetary File System (IPFS) is a protocol and peer-to-peer network for storing and sharing data in a distributed file system and it uses content-addressing to uniquely identify each file in a global namespace connecting all computing devices. IPFS allows users to not only receive but host content, in a similar manner to BitTorrent. As opposed to a centrally located server, IPFS is built around a decentralized system of user-operators who hold a portion of the overall data, creating a resilient system of file storage and sharing. Any user in the network can serve a file by its content address, and other peers in the network can find and request that content from any node who has it using a distributed hash table (DHT).  source:[wikipedia](https://en.wikipedia.org/wiki/InterPlanetary_File_System)

> I assume that you are cleared with what a IFPS is. For those seeking distributed network system for sharing and receiving files and growing organization locally, building dApps, and making Internet a better place as it used to be, before the tech giants took power and ran centralized. Internet and its resources is equal for every person in this world. 

  
Here, I would be teaching you how to configure and you must consider I am proceeding using:  
\* Installing Golang  
\* Having a debian based linux distro  
  

## INSTALLING GOLANG: 
  
At first, you must install go in your working device. Visit the site[GO](https://golang.org/) to download the archive and  
  
 extract it into `/usr/local`, creating a Go tree in `/usr/local/go`.  
  
For example:  

```
tar -C /usr/local -xzf go1.13.1.linux-amd64.tar.gz
```
Note: Needs running sudo.  
  
Now, we need to add `/usr/local/go/bin` to the `PATH` environment variable. You can do this by adding this line to your `/etc/profile` (for a system-wide installation) or `$HOME/.profile`:  

```
export PATH=$PATH:/usr/local/go/bin
```
 Apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as `source $HOME/.profile`.  
  
  
  

Next, make the directory `src/hello` inside your workspace, and in that directory create a file named `hello.go` that looks like:

```
package main

import "fmt"

func main() {
 fmt.Printf("hello, world\n")
}
```

Then build it with the `go` tool:

```
$ cd $HOME/go/src/hello
$ go build
```

The command above will build an executable named `hello` in the directory alongside your source code. Execute it to see the greeting:

```
$ ./hello
hello, world
```

If you see the "hello, world" message then your Go installation is working.

Source:[Golang](https://golang.org/)

Next process is all about installing IPFS, goto my next blog [here](https://dev.to/azwyane/configuring-ipfs-part-2-227c) .
 ![](http://feeds.feedburner.com/~r/blogspot/sTChm/~4/YAj-eoWO9Wc)
Visual Studio Code extension update for LitElement snippets and new Pack available
Published: 2019-10-30 00:21:06

---
title: Visual Studio Code extension update for LitElement snippets and new Pack available
published: true
date: 2019-09-26 15:31:54 UTC
tags: 
canonical_url: https://justinribeiro.com/chronicle/2019/09/26/visual-studio-code-extension-update-for-litelement-snippets-and-new-pack-available/
---

After some delay, I’ve gotten around to releasing v2.0.0 of [LitElement, Polymer v2 / v3, and Web Components Snippets for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=justinribeiro.Polymer2Snippets). This includes some significant retooling around the LitElement shortcuts which were painfully lacking. This now includes shortcuts like:

```
l-element // LitElement Web Component definition (alias p-lit-element) l-render-html // LitElement render() with html literal l-render-svg // LitElement render() with svg literal l-firstRendered // LitElement firstRender() l-properties // Lit-Element properties by implementing a static properties getter l-get-styles // Lit-Element styles in a static styles property l-get-styles-super // Lit-Element static styles property with super class l-firstUpdated // Lit-Element firstUpdated() l-shouldUpdate // Lit-Element shouldUpdate() l-requestUpdate // Lit-Element requestUpdate() l-updateComplete // Lit-Element await this.updateComplete;
```

In addition to this update, I’ve released a new extension pack, [LitElement Web Components Extension Pack](https://marketplace.visualstudio.com/items?itemName=justinribeiro.litelement-web-components-extension-pack). This pack includes some mainstays like [lit-plugin](https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin) and my snippets extension, but also includes a fair amount of tooling plugins, such as ESLint and Import Cost among others.

It’s a light pack to say the least, but it hopefully simplifies a lot of things for developers just getting started with LitElement.
6-10PM challenge problem #002 solution
Tags: java, interview, programming, challenge
Published: 2019-09-26 15:05:14

<a href="https://dev.to/akbhairwal/6-10pm-challenge-problem-002-1m20">Problem#002</a>

<b> Array of Array Products </b>




	public  int[] solve(int[] arr) {
           int [] out = new int[arr.length];
           int product =1;

           for(int i=0;i<arr.length;i++){
               out[i]=product;
               product = product*arr[i];
            }
           
            product=1;
            for(int j=arr.length-1;j>=0;j--){
                out[j] = out[j]*product;
                product = product* arr[j];
            }
          return out;
       }

n is size of an array 
Time complexity is O(n) 
Space complexity is O(n)
The intern 
Published: 2019-09-26 14:55:06

Working here, it kind of feels like I'm not being challenged. I constantly need to ask for more work and it feels like a "sit over here and play with this" mentality. I realize I'm still a baby dev, but I'd like to do more than write unit tests. 


I'm not saying it's being done purposely. I think I'm frustrated with my own inability to prove myself capable of more. 


Any Ideas on how to show my team I'm ready for harder stuff? Or is this just how it is for software interns?
Java Updates
Published: 2019-09-26 14:50:01

# Java 8 updates 

## Functional Interface
• An interface with just 1 abstract method is called Functional Interface.
• A Functional Interface only can be used for lambda as there is no way of combining more than 1 method to the single instance.

##Lambda
• It’s a way to override a method in a simpler way.
• It can be single-statement without any curly braces.
• It can be multiline enclosed in the curly braces.
• Single statement outcome will be “return” value (No need of explicit return value)
• Content of lambda can be extracted to a private method.
• A lambda method can be with parameter or without parameters (in case of single parameter).

##Default Method
• Java 8 onwards allows to have method definition with keyword default in the interface.
• 2 interfaces with same default method mandate the method to be overridden in the class implementing these 2 interfaces. (I’s the same reason that java doesn’t allow 2 classes to be extended.)

##Static method
• Similar to static method in the given class, interface also allows to have the static method.
• The static method in interface is the property of the interface. Means this method can be accessed using the interface only not by another interface extending this interface or class implementing this interface.

##Foreach method
• Iterable interface, a super interface of collection framework/interface, have the default method implementation of foreach method.
• To iterate through the element in the collection framework, the traditional way of doing it is getting the iterator and iterate through each of the elements and then perform the business logic inside the for loop.
• Foreach method will have the iteration logic within it, that means the client just needs to take care of business logic.
• Other difference between this approach is, foreach method will use the internal iterator as compared to external iterator in traditional logic. And this external iterator has to be taken care with the ConcurrentModificationException.
Daily Challenge #77 - Bird Mountain
Tags: challenge
Published: 2019-09-26 14:47:34

---
title: Daily Challenge #77 - Bird Mountain
published: true
series: Daily Challenge
description: A bird flying high above a mountain range is able to estimate the height of the highest peak
tags: challenge
---

A bird flying high above a mountain range is able to estimate the height of the highest peak.

Can you?

*Example*
The Birds Eye View
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/verkc2dw1svlpq4eczgb.png)

The Bird-brain Calculations 
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/dpgteg5pszjdtyxnch91.png)

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/8vslsijucwsseybn0ynp.png)

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/uznk2vhbzxn2sjwmekm1.png)

`Height=3`


***
_This challenge comes from dinglemouse at [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Why do you contribute to opensource?
Tags: discuss
Published: 2019-09-26 14:46:21

---
title: Why do you contribute to opensource?
published: true
description: 
tags: #discuss
cover_image: https://opensenselabs.com/sites/default/files/2019-05/Untitled%20design-49.png
---
Being an opensource user, I felt like I should give back something of value back to the community. Also, I get to learn new stuffs and pick few tricks while I was solving a problem and  get to know new people who are also contributing in ways. 
Lets Discuss. What say?

![](https://media.giphy.com/media/3o7qDXDa3rWNrBUuxq/giphy.gif)