teleren/devto huggingface dataset:
What libraries do you like to use to write unit and integration tests for React Native? Any TDD advocates using React Native?
Tags: discuss
Published: 2018-09-13 02:40:39

---
title: What libraries do you like to use to write unit and integration tests for React Native? Any TDD advocates using React Native?
published: true
tags: discuss
---
I am currently working on a React Native project for the first time. I used `react-native init` so I have Jest which I can use for snapshot testing. However, what do you like to use for integration testing, like filling out fields and submitting buttons? I would like to find a workflow that works well with TDD if possible.
What is your opinion about Visual Studio for Mac? 🤔
Tags: discuss, macos, microsoft, ide
Published: 2018-09-13 02:33:24

---
title: What is your opinion about Visual Studio for Mac? 🤔
published: true
description: 
tags: discuss, macos, microsoft, ide
---

Some of the subjects I'll take in college require me to use ASP.NET MVC and Microsoft SQL Server for the class. So I've been looking for alternatives to using Parallels or Bootcamp on my machine because of lack of storage.

I was able to setup SQL Server by using Docker and Jetbrain's Datagrip successfully for some time, but I ran into issues with Rider when trying to set it up with Entity Framework to make my database using the code-first approach, so this leaves me with Visual Studio for Mac.

I'm not familiar with it and I don't think it has ReSharper support yet, so I'm a little skeptical of how good it might be...
Share your GitHub Tricks and Tips
Tags: github, productivity, discuss
Published: 2018-09-13 01:41:49

---
title: Share your GitHub Tricks and Tips
published: true
description: See my title?
tags: github, productivity, discuss
---

What are some of your github tips you would like to share with other Devs? It does not need to be git commands, could be a infrastructure or how you use GitHub projects etc.
What Tools Do You Use To Validate Jenkins Pipeline Syntax
Tags: help
Published: 2018-09-13 01:26:51

---
title: What Tools Do You Use To Validate Jenkins Pipeline Syntax
published: true
tags: help
---

One of the customers I do work for recently decided that, in addition to supplying native deployment-automation code targeting their desired cloud-hosting service, they wanted us to deliver Jenkins pipeline wrappers to that code.

Prior to this customer's request, we always just used TravisCI to delint delivered code. For this project, we're primarily delivering BASH scripts and CloudFormation templates. To do basic syntax-validation, we use:

* [ShellCheck](https://github.com/koalaman/shellcheck) for the BASH scripts &mdash; used to be a module we had to download as part of the `.travis.yml` but now seems to available as a built-in to the Travis container's standard tooling
* `jq` or even just python's `json.tool` &mdash; the former's more descriptive in its error-output.

Now that we're adding Jenkins jobs, looking for a similar sort of syntax-validator for the pipeline-definitions. Thought I'd post here to see if anyone knew of anything. Using the [Command-line Pipeline Linter](Command-line Pipeline Linter
) from the Jenkins pipeline guide isn't doesnt really seem practical for a public  GitHub-hosted project.
Functional programming basics part 1: Pure function
Tags: javascript, functional, programming, purity
Published: 2018-09-13 01:23:49

---
title: Functional programming basics part 1: Pure function
published: true
description: Part one of a series where I explain functional programming how I currently understand it. 
tags: JavaScript, Functional, programming, purity
cover_image: https://thepracticaldev.s3.amazonaws.com/i/a8hd9ai5gra5otsuxtmm.png
---


### What is purity? 

Purity for a function is defined as one that will always return the same output for the same input and perform no side effects. 

So what do we mean by same output for the same input? 

well... lets see some examples...

lets say we have this code:

```javascript 
let y = 2
const addYtoX = (x) => x + y
```

This function is not considered pure as the output could be modified by the value of `y` witch mean we cannot guaranty it will return the same output for the same input. 

```javascript 
let y = 2;
const addYtoX = (x) => x + y

console.log(addYtoX(3)) // 5

y = 1 
console.log(addYtoX(3)) // 4

```

As you can see the value of `y` will affect the output of the function even if we call it using the same input... this is definitely impure.

Lets look at the pure version of the same function: 

```javascript 

const addYtoX = (x, y) => x + y
```

There you go!!! 

I can call this guy as many times as I want and I can be sure to get the same output for the same input. 

That's cool man, but what about that side effect thing? 

well... lets see the same function but with added side effects! 


```javascript 

const addYtoX = (x, y) => {
    makeSomeNoodles()
    return x + y
};
```

I hope you can guess the side effect is caused by the `makeSomeNoodles` function call right? 

Why is that bad? Well... the function is suppose to add x to y and now it is making noodles before computing my values? And I have no idea what is happening during that function.... maybe it is actually crashing my simple function before it can execute or worst!!! 

Anyway, I hope you get the basic idea. :) 

Until next time... stay pure!
Do you have days that feel like most emails could be answered with memes?
Tags: discuss
Published: 2018-09-12 22:36:13

---
title: Do you have days that feel like most emails could be answered with memes?
published: true
tags: discuss
---

I know it would be terribly unprofessional to do so, but I seem to run into days where it really seems like entire emails thread could be conducted via GIPHY URLs. Perhaps this is the real reason tools like Slack come to replace email?

![alt text](https://media1.tenor.com/images/fcf61f0c89611dcc7f94884a66130ae7/tenor.gif?itemid=5265867)
Replace recursively only empty array values
Tags: help, php, array, recursive
Published: 2018-09-12 22:11:51

---
title: Replace recursively only empty array values
published: true
description: 
tags: #Help, #php, #array, #recursive
---

Hey fellow coders, i need your assistance! (please send help)

lets say i got array A and array B:

A = [
    'personal_data' => [ A => ['test' => A]],
    'family_data'   => [ A => ['test' => A]],
];

B = [
    'personal_data' => '',
    'family_data'   => [ B => ['test' => B]],
    'payment_info'  => []
];


i got to replace the data from array A with array B having a preference over array A. (need to replace A with B:
if keys don't exist add them
if key exists and value differs replace value
if key exists and value does not differ do nothing)

i.e: 
<Result>

A = [
    'personal_data' => '',
    'family_data'   => [
                        A => ['test' => A]
                        B => ['test' => B]
                       ],
    'payment_info'  => []
];
configure and run vue+nodejs 
Tags: help
Published: 2018-09-12 22:07:03

---
title: configure and run vue+nodejs 
published: true
tags: help
---
Hi Devs. I am noob in StackDeveloper.


How configure vue-cli and nodejs for run both in same script for example:

run server app.js

And run the frontend and the backend.

Thanks.


PD: my english is bad
Awesome posts to get you writing!
Tags: blogging, writing
Published: 2018-09-12 21:06:42

---
title: Awesome posts to get you writing!
published: true
description: 
tags: blogging, writing
---

I'm preparing a blogging workshop _right now_ and wanted to share a quick list of resources for technical writing and inspiration: 

{% link https://dev.to/kaydacode/5-reasons-you-should-write-that-blog-post-24ib %}

{% link https://dev.to/aspittel/my-blog-post-workflow-from-topic-to-publication-4n78 %}

{% link https://dev.to/alainakafkes/tackling-technical-writing %}

{% link https://dev.to/zellwk/how-to-write-a-good-coding-article-3mb7 %}

{% link https://dev.to/mortoray/how-i-write-my-blog-54n0 %}

{% link https://dev.to/yelluw/how-to-do-technical-blogging %}

{% link https://dev.to/codetheweb/ive-been-blogging-for-two-months---here-is-what-ive-learned-1bj %}

{% link https://dev.to/inspiratory/writing-a-book-as-a-programmer %}
Learning to code so I can ditch my dead-end job, but I'm overwhelmed, under-rested, and my brain is full of bees. Plz halp?
Tags: discuss, help, career
Published: 2018-09-12 21:00:54

---
title: Learning to code so I can ditch my dead-end job, but I'm overwhelmed, under-rested, and my brain is full of bees. Plz halp?
published: true
tags: discuss, help, career
---

I'm learning MERN stack, I was enrolled in a 6-month "flex" bootcamp that I should have graduated from in June but I haven't finished yet and now I'm on a more "self-guided" trajectory. I'm 38, have a full-time job, 2 kids at home and I'm currently in the middle of a divorce from my wife of 12 years. Needless to say, I don't have a lot of free time to devote to coding. With my commute included, my job sucks up the hours of 7:30 am - 6:00 pm every weekday. 

By the time I get home from work, I've got about 4 hours to do dinner, be with my kids, take care of housework, etc, before my body and brain give out and I have to sleep. 

Weekends in which I can set aside multiple hours alone to study are rare.


When I _do_ get a multi-hour chunk of time to study I'm so scattered and panicked that I can't focus on single tasks. 

Do I...
* Try to make progress in my bootcamp curriculum?
* Watch one of the video courses I've bought to help me through the curriculum?
* Practice katas and algorithms?
* Work on some of my portfolio apps?
* Work on my resume?
* Practice pair programming?
* Practice tech interview questions?
* Do some freeCodeCamp lessons?
* Scream into a pillow?
* Pass out face-down in a hedge?

I feel a tremendous pressure to get a dev job by the end of this year, not just because I hate my current job, but because the pay and benefits of a dev job would help me find a place I can have my kids stay with me, cover them on insurance, pay off debts and improve my work/life balance.

But I'm adrift. I'm stumped by seemingly basic algorithms that I used to be able to solve. I'm finding React difficult to get a handle on. I have no idea what to focus on. I have no real mentor or teacher or anyone I can count on to keep me accountable and on track.

What do, Dev.to? What do?
SQL Server Set Operators: UNION, INTERSECT, and EXCEPT
Tags: sqlserver, sets, sql
Published: 2018-09-12 21:04:34

---
title: SQL Server Set Operators: UNION, INTERSECT, and EXCEPT
published: true
tags: SQL Server,Sets, sql
canonical_url: https://randallsims.wordpress.com/2018/09/12/sql-server-set-operators-union-intersect-and-except/
---

Did you know you can do set-based math with SQL Server? With the UNION, INTERSECT, and EXCEPT set operators, you can compare one result set to another and add or subtract results, called a compound query. This can be a handy tool for your toolbox… [Continue reading SQL Server Set Operators: UNION, INTERSECT, and EXCEPT](https://randallsims.wordpress.com/2018/09/12/sql-server-set-operators-union-intersect-and-except/)
Write A Post (just write it already!)
Tags: blogging
Published: 2018-09-12 20:26:38

---
title: Write A Post (just write it already!)
published: true
description: You should really start writing posts.
tags: blogging
---

Hey you!
Yeah I'm talking to you. The guy who looks at me in the mirror right now. (And maybe some others).

You should really start blogging.

It's unforgiven for someone who's been in the industry for some years now, to avoid writing. Don't you dare telling me that you don't have anything to share with the world.

I know I know,
You have a long list of explanations why not:
You are not smart enough.
Your english is not perfect.
You dont have time for it.
You can't... ENOUGH!

Blogging would make you understand your stuff better. And deeper.
Blogging would make people learn from your experience and from your mistakes.
Blogging would advance your career in many ways, Some of them would surprise you.


You should really start blogging.

(inspired by the "Write a post" button up here. look! it's so easy to push it! give it a try now)
Handling user sessions when using the laravel just for the API and angularJS as a front-end
Tags: laravel, help
Published: 2018-09-12 19:57:04

---
title: Handling user sessions when using the laravel just for the API and angularJS as a front-end
published: true
description: 
tags: laravel, help
---

Hi.

I'm building an app that could be used by both registered users and visitors. What those users could do, is to upload some files. The difference is that guests' files will be stored temporarily. So I'm trying to design a way to handle user sessions.

As you can see in the image I posted below, for the registered users after login JWT will be stored on the browser's local storage and when user's next request is to list his/her files there will be a variable inside the JWT to tell the server where to look for the user's files (which path).

Now for the guests, I thought that I should do something similar but without the login step. For example, when a guest enters to the site, javascript will check if there is a non-expired token on local storage. If that's true, then a random JWT that will point to a temp directory will be created from the server and will be stored onto the browser. But I don't know if this approach is reasonable or if there is any other better approach to do it.

Here is the sketch on how I imagine it.

https://sketch.io/render/sk-0e12e9fcabf7f97a14449ec02679ad73.jpeg

What do you think? Any ideas or suggestions will be helpful. Thanks.
Software Developer
Tags: hiring, angular, javascript, react
Published: 2018-09-12 19:41:15


## About Us
A Minnesota Top Work Place

## About The Opportunity
Are you a Software Developer who wants to work with new technolgoies such as React, Open Shift, and Event Drive Framework.  We are partnering with a Top Minnesota Work Place to help grow their development team.

Our client has stellar reputation amongst customers and competitors alike. This reputation goes beyond just word-of-mouth, as they have been recognized as one of the top companies in their industry.

 

Support the current team in building a cohesive, streamlined and quality solution
Define technical best practices for the implementation
Participate in code reviews and ensure adherence to best practices
Use your expertise in various design patterns and in various integration options
Help build reusable code for use in future projects

## Skill & Qualifications
	 	


Qualifications
Successful candidate will have:
Bachelor’s degree from a four-year college or university in Computer Science; Master’s Degree in Computer Science a plus.
5+ years related experience in Software Development using C++, C#, Java, Python, Node.JS, Angular 2+, reactExpertise on various APIs like SOAP, REST, BULK, and Streaming APIs
Expertise in writing test classes and building triggers, batch classes, future methods etc.
Expertise in configurations like creating workflows, formula fields, roll up summary fields, assignment rules, roles, profiles, sharing settings etc.
Knowledge of working with Configuration management tools like Subversion and/or Git.
Experience using Eclipse IDE, Change Sets & ANT Scripts for code migration.
Ability to work in large implementation team that execute in agile fashion.
Strong verbal, written and interpersonal skills.
High attention to detail and ability to be flexible is a must.

Desired:

## How To Apply 
mary@dahlconsulting.com



_Please feel free to leave questions in the comments section._
Jelly Fin: Contributor Update 9-12-2018
Tags: jellyfin, opensource, react, reactnative
Published: 2018-09-12 19:14:01

---
title: Jelly Fin: Contributor Update 9-12-2018
published: true
description: A letter to my contributors to discuss the needs of the project and an update on progress.
tags: jellyfin, opensource, react, reactnative
---

Hey Jellies!

I've been getting a lot of interest from people that want to help out with the project and it's been more than interesting getting the whole shebang organized.  So, I'm going to start drafting up some form of a newsletter to organize our efforts and answer any questions you have.

## Current Needs

We're starting fresh so while the app may seem well-along, there's a lot to do with design of features, laying out a build process, writing tests, and documentation.

Let's break it down further.

### 1. Feature Design

We have several Github Issues that really just need some opinions on how the feature should be executed.  You may not be doing the work, but you can help come up with good designs.

### 2. Build Process

This is important.  We're just getting past the "Hello World" phase and need to have a solid build process.  It should be stupid simple to write code and have it tested.  This means getting scripts to help developer setup, build the app and test it to ensure stability going forward.

### 3. Writing Tests

Your app is only as strong as the tests you write for it.  We will take this one test at a time.  If you're new to writing tests, just ask.  We will help you!

### 4. Documentation

Documentation is IMPORTANT.  I would love for someone to make sure all of our documenation is sound.  How hard is it to setup the app? Is the instruction clear?  Does the reader have everything they need to get to a point of contribution?

Even if you don't submit a line of code, you can help us get the message out there clearly.

## What's going on with the app right now?

Right now we're waiting on [#21](https://github.com/jonathan-irvin/jelly-fin/issues/21) to be resolved since it alters our workflow dramatically.  After that gets closed, everyone should be able to load the app locally and get the Hello World.

In the meantime, there's a TON of work that needs to be done with design.  I have some initial wireframes that I need to iron out, but we're not there yet so it hasn't been a priority.

---

That's all for now, keep following us on [Discord](https://discord.gg/xveZ3FT), [Github](https://github.com/jonathan-irvin/jelly-fin), and [#jellyfin](https://dev.to/t/jellyfin)

Thanks for all your hard work!
Jonathan Irvin
BPEL not for People
Tags: bpm, automation
Published: 2018-09-12 09:54:34

---
title: BPEL not for People
published: true
description: Business Process Execution Language is not suited for dealing with processes that involve automation and people.
tags: #bpm #automation
---

In this video I examine the current approach to business process automation using BPEL, including it's variants. There are a number of issues.

<h3>Linear processes</h3>

Process instances once started follow a predetermined path, following a process diagram much the same way software follows a program. While this might make sense for predictable processes which have very little variability it does not suit real world processes which are unpredictable. In the real world data may be corrected and tasks that were completed run again. Human Tasks are limited to being treated like any other automated process. In my experience this results in aborted processes which cannot proceed.

<h3>Invariant process for a instance</h3>

In BPM systems once a process instance has begun with a specific process design there is no easy way to have the process instance begin to follow an updated design. For long running processes this might mean taking weeks to flush out old process instances or ending them in order to load them again.

<h3>Poor visibility</h3>

Process designs and diagrams are difficult to understand. They are useless for giving staff visibility of the process. BPM processes require developers to write their own user interfaces using BPM API rather than being able to be used out of the box.
Let's Encrypt certificate renewal without downtime
Tags: docker, nginx, devops
Published: 2018-09-12 17:41:16

---
title: Let's Encrypt certificate renewal without downtime
published: true
tags: docker,nginx,devops
canonical_url: https://booyaa.wtf/2018/lets-encrypt-certificate-renewal-without-downtime
cover_image: https://thepracticaldev.s3.amazonaws.com/i/8krhcnhwvz4v73e606ct.png
---
_[Photo](https://unsplash.com/photos/eCNjfCrZeYY) by Erica Nilsson on Unsplash (cropped)_

Warning: this blog post assumes the following:
- you are running nginx in a [Docker](https://www.docker.com/) container. 
- Let’s Encrypt has been configured correctly in the nginx container.
- You are awesome for reading this blog.

The default behaviour of [certbot](https://certbot.eff.org/) (Let’s Encrypt’s command line tool) is to restart the web server. This isn’t desirable in a live environment, ideally you want your web server to reload it’s configuration. For [nginx](https://www.nginx.com/), this involves sending a [signal](https://en.wikipedia.org/wiki/Signal_(IPC)) to the process, in this case it’s `HUP` (hangup).

But how can you tell that your certificates have been renewed?

The recommended way by NGINX (the organisation rather than the web server) is to check the PIDs (Process Ids) before triggering nginx to reload the configuration.

```shell
docker top <NGINX_CONTAINER_ID> axw -o pid,ppid,command | egrep '(nginx|PID)'
PID                 PPID                COMMAND
2089                31208               tail -f /var/log/nginx/access.log
3509                31222               nginx: worker process
31222               31208               nginx: master process nginx -g daemon off;
```

The PID you want to observe is **nginx worker process** (COMMAND) which is in this example is  **3509**.

Pro-tip: You can pass `docker top`  subcommand `ps` flags? Neat huh?

Now let’s send a `HUP` signal to the container to force nginx to reload the configuration: `docker kill —signal  HUP <NGINX_CONTAINER_ID>`

Then re-check PIDs

```shell
docker top <NGINX_CONTAINER_ID> axw -o pid,ppid,command | egrep '(nginx|PID)'
PID                 PPID                COMMAND
2089                31208               tail -f /var/log/nginx/access.log
3643                31222               nginx: worker process
31222               31208               nginx: master process nginx -g daemon off;
```

The PID of the **nginx worker process** has now changed to **3643**!

Further reading:

- [Controlling nginx](http://nginx.org/en/docs/control.html)
I’m a digital nomad and author of High Performance Android Apps, ask me anything!
Tags: ama
Published: 2018-09-12 17:47:25

---
title: I’m a digital nomad and author of High Performance Android Apps, ask me anything!
published: true
description: 
tags: ama
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1vvc1ag45j8g3nmllw9g.png
---
I'm a freelance Developer advocate and performance engineer.  I'm also a digital nomad, traveling with my family through Europe. Ask me anything!
Nokia Maze Monster
Published: 2018-09-12 17:32:18

---
title: Nokia Maze Monster
published: True
description: Nokia Maze Monster is one of the latest new smartphones in the world.
tags: 
---
<a href="https://pcsolutionhd.com/nokia-maze-monster/">Nokia Maze Monster</a> which comes with amazing features which are the first time in the world.
If you want to see this newly designed smartphone's all kinds of features, here you will be able to see this newly designed phone's all kinds of features and also more the information.

<a href="https://pcsolutionhd.com">PCsolutonHD</a> is a source page of this Nokia Maze Monster topic.