teleren/devto huggingface dataset:
Who are you most grateful for this week?
Tags: discuss, weeklyretro
Published: 2019-08-02 17:33:28

---
title: Who are you most grateful for this week?
published: true
description: Let's wind down the week with some gratitude
tags: discuss, weeklyretro
---

![david harbour smiling](https://media.giphy.com/media/EKL2IlIkznyRG/giphy.gif)
<a href="https://giphy.com/gifs/mrw-bowl-mvp-EKL2IlIkznyRG">via GIPHY</a></p>

It can be easy to lose track of how much other people are a part of our happiness. 

This week I'd like to ask: who did you most appreciate having around this week? A partner who's always there for you, a co-worker who makes you laugh, a mentor you trust?

If you think they need a bigger following, feel free to link/mention them in your reply!
Convert a keystore file (.jks) into a PEM certificate
Tags: ssl
Published: 2019-08-02 16:58:31

```bash
# Export the certificate
keytool -export -alias mydomain -file mydomain.der -keystore mycert.jks
# Convert the certificate into PEM
openssl x509 -inform der -in mydomain.der -out mydomain.pem
# Export the key
keytool -importkeystore -srckeystore mycert.jks -destkeystore keystore.p12 -deststoretype PKCS12
# concert PKCS12 key to unencrypted PEM
openssl pkcs12 -in keystore.p12  -nodes -nocerts -out mydomain.key
```

[Source](https://serverfault.com/a/715841)
What is your python3 migration story?
Tags: python, discuss, techdebt
Published: 2019-08-02 16:57:50

---
title: What is your python3 migration story?
published: true
description: Python2 deprecation is Jan 2020, are you prepared? Have you made the move to Python3?
tags: python, discuss, techdebt
---

Howdy pythonistas. Who still has scripts or services running on python2? You're hopefully aware/been warned of the Jan 2020 deprecation timeline. Py3k is the future (and it's bright!).

What does your migration plan look like?

Does your employer know? Do they understand the issue?

Are you relying on libraries to upgrade before you can?

Here is the general [official documentation](https://docs.python.org/3/howto/pyporting.html) around the migration procedure.


Please share (if you can), or discuss!
List non-empty fields of Jira ticket
Tags: jira, jq
Published: 2019-08-02 16:53:02

---
title: List non-empty fields of Jira ticket
published: true
description: How to list fields of Jira ticket with non-empty values
series: Super-simple Jira API client
tags: jira, jq
---

Let's assume you have saved payload received using Jira REST API to file `jiraTask.json`. 

```bash
$ jiraGet issue/BOOM-666 > jiraIssue.json
```

> You can read more about Super-simple Jira API in {% link turbobasic/super-simple-jira-api-wrapper-for-bash-117h %}

Then you can list non-empty fields of the ticket using the folowing command (_make sure you have installed **[jq](https://stedolan.github.io/jq/)** before_):

```bash
$ jq --raw-output '
    .fields | 
    . as $f |
    keys[] | 
    select($f[.] != null)
' jiraIssue.json

...<87 fields listed>...
```
In my example, the command above lists **87** non-empty fields of Jira ticket. Compare it with total number of fields in the ticket which is **983** :scream:

Or, if you want to see fields with their values, use the following:

```bash
$ jq --raw-output '
    .fields | 
    . as $f | [ 
        keys[] | 
        select($f[.] != null) | 
        { (.): $f[.] } 
    ] | 
    add
' jiraIssue.json
```
I'm Going Back to being a DEV Community Member
Tags: meta
Published: 2019-08-02 16:28:16

First, I want to give a huge thank you to both the DEV team and the DEV community -- you all have changed my life over the past few years, and I'm so grateful for that. I've made great friends and received so many professional opportunities all because of this site!

Over the last few months, I've realized a lot about myself.

1) Working mostly alone is really hard for me, I can't break out of anxious cycles easily, and those are exacerbated by the stresses of my life both on and offline. Working remote has been really hard on my mental health, and I've tried a ton to overcome that and haven't made a lot of progress. I also lived alone for a lot of my time at DEV which really compounded the issue.

2) Teaching is my life and career goal and I want to pursue that as much as I can.

I will still be DEV's #1 fangirl and can't recommend writing on here or working for DEV enough ([here's more info on DEV if you're new](https://dev.to/aspittel/a-beginners-guide-to-devto-n4a), and [here's my writing advice](https://dev.to/aspittel/my-blog-post-workflow-from-topic-to-publication-4n78)). I just am moving from the core team back to a community member ❤️.
Today's JavaScript React Dev interview Question
Tags: javascript, interview, webdev, react
Published: 2019-08-02 13:22:02

---
title: Today's JavaScript React Dev interview Question
published: true
description: 
tags: javascript, interview, webdev, react
---

 I had these questions in the interview just now 

```js
const spaceShip = {
  name: 'Chandrayan',
  get1: () => {
    console.log(this.name);
  },
  get2: function (){
    console.log(this.name);
  }
}

spaceShip.get1()
spaceShip.get2()
```

now I know that spaceShip.get1() won't print out anything but if I want it to work the exact same way how the get2() works how do I bind it?

I was trying to bind `this` like get1.bind(spaceShip.this) or get1.bind(spaceShip) first and then execute but I'm not sure what should happen.

- then in 2nd question 

```js
const person = this.state.person;

const person = {...this.state.person};
```

what if we change the value person.name I know in the second case the value will be changes because that person is a whole new object 

but in the first case will it change the value in this.state.person too?

- I was asked about writing polling function which I didn't know but I still attempted saying 

```js
function myPoll(fn, timeInterval, endTime){

var checkCondition = function(resolve, reject) {
        var result = fn();
        if(result) {
            resolve(result);
        }
        else if (// for the time checking) {
            setTimeout(checkCondition, interval, resolve, reject);
        }
        else {
            reject(error);
        }
    };
}
```

but then he dropped it.

- 4th question was to write polyfill for Promise.all

```js
Promise.all([pr1, pr2, pr3]).then().catch();
var resolvedPromises = [];
[pr1, pr2, pr3].map((item, resolve, reject) => {
    var result = item();
    if(result){
       resolvedPromises.push(resolve(result));
    }
    else {
        return reject(result);
    }
})


```

so I tried explaining that I will store the promise in result and then push it into the array and at the end of all iteration the resolved values of all promises will be stored in that array.


But then again he asked that what if the promises doesn't get resolved or rejected than how should you tackle it so I modified the code this way

```js
var resolvedPromises = [];
[pr1, pr2, pr3].map((item, resolve, reject) => {
   item().then((result) => {
        if(result){
            resolvedPromises.push(resolve(result));
        }
    });  //pr1;
    else {
        return reject(result);
    }
})
```

then he was also confused on what to ask but that's how the interview ended, without even allowing me to ask them anything. I guess I shouldn't hope for a win today.
Jason Smith, CPA details Tax Strategies for the Highly Compensated
Tags: jasonmonroesmith, jasonmonroesmithscottsdale
Published: 2019-08-02 16:12:08

Jason Monroe Smith is a Certified Public Accountant with over 17 years of experience. He specializes in tax and financial planning. Having completed a Master of Business Administration degree and a Master of Science degree Jason Smith is a highly motivated professional that takes great pride in his tax preparation and unparalleled public accounting experience.

When it comes to tax strategies, Jason Smith has some advice for the highly compensated.

“It’s essential to reduce risk by taking a well-directed approach to an individual’s overall compensation and deductions, estate planning, charitable gifts, as well as general planning strategies. Perusing deferred income, equity-based, and retirement plans are also critical components of comprehensive preparation and planning.”

Mr. Smith Continued, “Getting my clients, the lowest tax cost and burden are my top priority. They are confident with my recommended strategies because I lay out a clear, concise plan that we work through together.”

With his drive to succeed and to ensure client satisfaction, Jason M. Smith decided to take his CPA endeavors to new levels. As an inherent entrepreneur, Mr. Smith has become an independent, private accountant to better serve his client’s needs. 

Jason Smith has developed a diversity of cross-functional skills, which enables him to relate well with clients and work independently. Mr. Smith shared, “I am an analytical thinker with an intrinsic accountant mindset; I’m able to communicate positively and professionally with people at all levels because I make it a priority to understand their specific needs and demands. In fact, before returning to school, I worked in insurance sales for about a year, and in spite of fierce competition, I quickly became recognized as a top sales representative. My ardent fervor for success leans to my need to make others satisfied and content by going steps above what they expect.”

Jason Smith explained further, “I learned the fundamentals of accounting, tax and financial planning throughout my education and career history. In addition, I owned and operated a financial advising website with one of the most highly recognized investment advisors in the nation. My investment performance as a CFP from 2007 to 2009 has been stellar thanks to the high level of training I have received.”

Jason Smith’s in-depth CPA work has provided relevant experience and enabled him to work as an independent contractor preparing taxes, providing public accounting services, and performing financial planning services.
Simple things do matter!
Tags: watercooler, life, discuss, perspective
Published: 2019-08-02 15:54:53

---
title: Simple things do matter!
published: true
description: A different perspective of the life we live in.
---
Imagination. How powerful the term it is.

Have you ever thought of things in a different perspective out of ordinary? Something like an edge case in a code?
Ok, let me narrow it down to make some sense.

-> Imagine you are walking on the road where your mind is fully occupied.

![walking in street](https://thepracticaldev.s3.amazonaws.com/i/42crk24p5nphsr7286dz.jpg)

While you are taking one step towards your destination wherever you wanna go, say for (e.g) your home. There's an ant which is one step ahead of you, has pretty much the same story as you and wanna reach it's home.
Both of you have different thoughts and different life. For you, the life of an ant which literally doesn't exist might be a joke. And for the ant, the life of you who is a giant(pun intended) might be out of context. But somehow you are going to cross paths. The next step you are going to take might shatter the hopes of the ant. 
Ok. Just hold on to this thought while we consider one more scenario too.

-> Imagine you are watching a movie, and you are so much into it because your favorite hero or heroine is the lead character and you don't want to miss a single scene of them in the movie.

Have you ever considered paying attention to the side characters(not so important characters) instead of the lead character?
To quote this, I would like to share a scene from "The Pursuit of Happiness". I hope you all knew and love this scene.
![pursuit of happiness](https://thepracticaldev.s3.amazonaws.com/i/683bx14hwgawa4vb4dhw.png)
But I want you to look at the man in front of will smith. What role does he have in this movie? I bet most of us missed noticing this as we are emotionally connected to will smith at that point in the movie and never paid attention to these kinds of scenarios.
He is a part of the movie but plays no role other than giving the perfect movie experience so that the viewers don't feel odd about it instead, they can relate the scene to the everyday life of a human being walking on the streets.

I can go with many scenarios but to keep it short I would like to stop it right here.

The ant from the first example and you might cross paths and there's a fifty-fifty chance that the ant might die and you never aware of it because you are listening to the latest song of Taylor swift in your mobile with your headphones on.

The man in front of will smith literally doesn't exist to you as far as his character is concerned. But still, he too has a life where he is the lead character of his own story and who knows will smith might be a side character in his movie. 😅

So why should we pay attention to all these simple things in life?

Because the simple things are the ones that hold a lot of meaning and stuff that might shift our perspective. So next time while walking down the road or watching a movie of your favorite character remember,
**simple things do matter!**
What kind of DevOps content do you want?
Tags: devops, kubernetes, docker, discuss
Published: 2019-08-02 15:39:43

Hey everyone!

If you've been following along with my [Learning DevOps In Public](https://dev.to/quinncuatro/learning-devops-in-public-c26) series, you know I have some content in the pipeline. Mostly about building out a Raspberry Pi K8s/K3s cluster and about how to migrate your Docker Compose projects to Kubernetes manifests to Helm charts.

But, since there seem to be a lot of people who are interested in starting to work with containers, I'm curious what you all want to read about!

I've had to teach myself everything from writing my first bits of PHP to getting applications ready for a production OpenShift environment, and I really don't want any of you to have to experience that pain alone.

If there's anything you're interested in learning about or need some kind of clarification on, throw it in the comments. We can start a discussion and I'm sure people can pop in to answer questions in the moment, but it'll also give me an idea of the kind of content that will help everyone here become stronger developers!
Looking for a Junior compiler position
Tags: compiler, career
Published: 2019-08-02 15:38:37

---
title: Looking for a Junior compiler position
published: true
description: 
tags: compiler, career
---

Hello everyone,

I'm currently looking for a job and I want to move from a web developer to a compiler developer, I'm looking for remote and junior positions in the field if do you have any suggestion or know about any opening.

Thank you so much!
My own android library?
Tags: android, lib, productivity
Published: 2019-08-02 15:12:37

### Introduction to  topic
I am doing android development for over one and half year.  I have been making app after app using different third libraries to achieve my end goal and getting all sorts of app features figured out.
In latest android app that I am building for client, little thought crossed my  mind. What if I wanted to change behavior of the library and add my functions to it?
What then happens?

### Eureka part

If you have good grap of Java or Kotlin this will be easy to follow. If not go build more apps and get better at it.Then come back here I promise we won't run away.

We need that one thing changed or library is really great but kind of buggy we are on mission to fix it.  First step check if wanted library is open source . Open source means that we can do what ever we want with it in terms of coding of course.

#### Follow trough 
What are steps we need to take to get our own version of library.
* Fork the existing project or clone project you wanna change and push it new repository on Bitbucket or Github
* Go to file you want a change ,in our example we want to change only res value of the library.
* Save changes
* Go to [JitPack](https://jitpack.io) and sign in with your Github account.
* Add name of your project to Lookup spot [username]/[NameOfTheLib]
* Get version and click on GET it button 

Now you have all parts to use and implement it in your app

### End result

* Add  [JitPack](https://jitpack.io) in your app **build.gradle**
```
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
```
* Implementation in app 

```
dependencies {
	        implementation 'com.github.username:LibName:Tag'
	}
```

Source [nedim.co](https://nedim.co/article/id/bm68aj3665ykkllh2b1c)
Booki Project 📖 Fully working Angular 7 - Java EE Spring Boot Application ❤️ [ Open Source ]
Tags: angular, spring, ux, typescript
Published: 2019-08-02 15:11:38

https://github.com/Houssem-Selmi/booki

Booki is an application that allows the management and tracking of user books reading list, published to provide a fully working web application for developers who are interested in building modern web apps using Spring Boot as a backend solution, and Angular 7 for the frontend.

Check the repo : 

https://github.com/Houssem-Selmi/booki
[Video] How To Be a Web AV Artist
Tags: video, art, javascript, cascadiajs2018
Published: 2019-08-02 15:04:32

---
title: [Video] How To Be a Web AV Artist
published: true
description: Come and be fascinated by the world of audio visualisation in a browser. This isn’t just about creating stunning data vis to music! We see how we can pipe data realtime into custom properties to enhance our visuals. Ruth will re-address how we analyse sound via the Web Audio API and proposes a better way of processing the data to better suit music. And, to top it all off, we harness the Web MIDI API for full hardware control as well. You may not think it, but this really is a talk with a great deal of take-aways and new techniques for you to consider in your coding life.
tags: video, art, javascript, cascadiajs2018
---
*As we lead up to [CascadiaJS 2019](https://2019.cascadiajs.com), I'm going to share the 24 amazing talks from 2018 here on dev.to. Sit back and enjoy the show!*

# Ruth John
![Ruth John](https://2018.cascadiajs.com/speakers/ruth.jpg)

Come and be fascinated by the world of audio visualisation in a browser. This isn’t just about creating stunning data vis to music! We see how we can pipe data realtime into custom properties to enhance our visuals. Ruth will re-address how we analyse sound via the Web Audio API and proposes a better way of processing the data to better suit music. And, to top it all off, we harness the Web MIDI API for full hardware control as well. You may not think it, but this really is a talk with a great deal of take-aways and new techniques for you to consider in your coding life.

[Watch the talk on YouTube (26:27)](https://www.youtube.com/watch?v=Dt4I-96C-pg)
How much JavaScript should I be familiar with before getting into React?
Tags: discuss, javascript, react, help
Published: 2019-08-02 14:52:49

---
title: How much JavaScript should I be familiar with before getting into React?
published: true
description: JavaScript knowledge before getting into JS frameworks.
tags: #discuss, #javascript, #react, #help
---

Hi, I began to learn HTML, CSS, and JavaScript for front end development a month ago. I consider myself a JS beginner, so far I have only completed freecodecamp's JavaScript course about oop, algorithms and data structures.

How much JavaScript should I know or which JS concepts should I be familiar with before getting into a JS framework like React?
Battle Engine Devlog #1 - Introduction
Tags: discord, gamedev, javascript, node
Published: 2019-08-02 14:41:08

---
title: Battle Engine Devlog #1 - Introduction
published: true
description: Introduction to Battle Engine, an adventure game discord bot.
tags: #discord, #gamedev, #javascript, #node
series: Battle Engine
---

In this first devlog post, I'd like to introduce Battle Engine, *beng* for short, an adventure game discord bot.

*beng* is based on a game from a long time ago, revived to bring back a text-based, rogue-like dungeon crawler you can play with your friends.

Setting up the game, everyone needs a user and a character,
which you can create with the following command:

    .beng create

You'll then receive a DM from beng asking what you'd like to name your character.

![](https://thepracticaldev.s3.amazonaws.com/i/y3k35w5hlt7y3yl9wnkx.png)

Providing your desired character name will create a user and character.

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

To check user status,

    .beng user-info

![](https://thepracticaldev.s3.amazonaws.com/i/0r2d2jnva9fxgfy5o0lv.png)

To check character status,

    .beng info

![](https://thepracticaldev.s3.amazonaws.com/i/ham0s4g78xo7xcjmx7vl.png)

Next it's also possible to look at the complete list available commands:

    .beng help

Next devlog, I'll walkthrough starting an adventure and inviting your friends.

Battle Engine is brought to you by creators Jeff Secord (blaschko) and Matt Parke (munkymachine).

Come say hi to us on discord! [Join Battle Engine Discord](https://discord.gg/cG2ReFR).

Want to help out or report a bug? check out active issues and contribute to [Battle Engine on GitLab](https://gitlab.com/kamajigames/battle-engine). All skillsets and levels of experience welcome, whether it be content writing, art, development, or just ideas!
Uses Pages & #uses
Tags: discuss, showdev, productivity, uses
Published: 2019-08-02 14:33:58

---
title: Uses Pages & #uses
published: true
description: sort of like the dev.to equivalent of /r/battlestations
tags: discuss, showdev, productivity, uses
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1a9tw4mvj56yl00yfp4e.jpg
---

I saw @nikoheikkila's [post](https://dev.to/nikoheikkila/show-your-own-uses-page-160j) the other day about the `/uses` page, which reminded me, I wanted to make my own after seeing the idea by @wesbos a while back.

Whilst making my own page, it was fun looking through all the other `/uses` pages over on Wes' [awesome-uses repo](https://github.com/wesbos/awesome-uses). I then tried searching dev.to for more examples, but not much turned up. So for that reason, I'm making the [#uses](https://dev.to/t/uses) tag. <small>(sort of like the dev.to equivalent of [/r/battlestations](https://www.reddit.com/r/battlestations/) right?)</small>

So hopefully now, anyone else sharing info or photos of their setup can easily find others too. Oh and here's my own `/uses` page:

[nervewax.com/uses](http://nervewax.com/uses)

[#uses](https://dev.to/t/uses)
Please use huge font on your editor
Tags: codequality, healthydebate
Published: 2019-08-02 14:01:59

I've been a developer for over a decade. I've to confess: my desk isn't tidy. But the virtual enviroment is near-perfect and I want to improove it everyday.

Thats some of my routines to keep my virtual workspace clean:
- [remove git merged branches](https://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged/6127884#6127884)
- remove useless *commented code*, because there is GIT to remember old code.
- *refactor long files* in shorter one.
- remove useless thing from my editor (like sidebar, toolbar) for encourage me to use keyboard shortcut (like CTRL + P)
- editor with a dark theme and a 16px font with a 30px line height (not that big, I've seen bigger line height, eg. Jeffrey Way in laracasts)

On this last particular topic some of my colleagues use to make fun of me by saying that my editor seem for visually impared people. Some of them use font 10px or 9px or even lower!

But I think this setting have two advantages:
- It's better for my eyes
- It discourage me to build huge *unmanintainable* files

Tell me what you think about it or tell me your routine!