teleren/devto huggingface dataset:
Announcing Nexmo’s .NET Server SDK Version 4.3.1 Release
Tags: dotnet, nexmo, csharp
Published: 2020-02-24 16:05:23

---
title: Announcing Nexmo’s .NET Server SDK Version 4.3.1 Release
published: true
date: 2020-02-24 16:04:38 UTC
tags: dotnet, nexmo, csharp
canonical_url: https://www.nexmo.com/blog/2020/02/24/announcing-nexmos-net-server-sdk-version-4-3-1-release-dr
---

Hello again! This week we are releasing a new version of the .NET SDK – 4.3.1. This version contains two bug fixes.

## Truncated ‘loop’ Parameter in Stream and Talk Commands

Version 4.3.1 of the SDK fixes an issue where the ‘loop’ parameter would be truncated if set to 0 in Voice API Stream and Talk requests. Setting the loop parameter to 0 will now result in an infinite loop, as per the [API Spec](https://developer.nexmo.com/api/voice#startStream).

## User Agent Throwing Exceptions for Certain Operating Systems

This version of the SDK also fixes an issue where on certain operating systems—specifically those whose description contains the `(` character (e.g. `Linux4.9.0-7-amd64#1SMPDebian4.9.110-3+deb9u2(2018-08-13)`)—a formatting exception would be thrown. This is because the Core CLR was interpreting the parentheses as comments in the user agent, without a preceding space, creating a formatting error. This was also an issue as the formatting of the User Agent wasn’t compliant with our [User Agent standards](https://github.com/Nexmo/repo-standards/blob/master/set-user-agent.md). From now on, the User Agent the SDK uses will be:

`$"nexmo-dotnet/{libraryVersion} dotnet/{languageVersion}"`

Rather than including the full runtime (OS + .NET framework version), it will now only include the .NET version.

## More to Come

There’s much more to come, but until then feel free to follow the [.NET SDK in GitHub](https://github.com/Nexmo/nexmo-dotnet) for real-time updates. If you have any questions, issues, or concerns, please feel free to raise them there or find me, in our [community slack](https://developer.nexmo.com/community/slack), and I’ll be more than happy to help.

The post [Announcing Nexmo’s .NET Server SDK Version 4.3.1 Release](https://www.nexmo.com/blog/2020/02/24/announcing-nexmos-net-server-sdk-version-4-3-1-release-dr) appeared first on [Nexmo Developer Blog](https://www.nexmo.com).
Why is the @ljcjug awesome?
Tags: camunda, cloud, cloudnative, community
Published: 2020-05-19 07:21:38

---
title: Why is the @ljcjug awesome?
published: true
date: 2020-02-24 15:57:48 UTC
tags: camunda,cloud,cloud native,community
canonical_url: https://salaboy.com/2020/02/24/why-is-the-ljcjug-awesome/
---

Last week I had the pleasure to talk with my friend Ryan Dawson from Seldon.io at the [London Java Community meetup](https://www.meetup.com/Londonjavacommunity/events/268235299/?rv=co1&_xtd=gatlbWFpbF9jbGlja9oAJDE4MjM2MDM2LTVjNTEtNDNlZC04OTQ0LTNjOTk1MzZmMWRjYg), which was hosted at the Birkbeck University here in London.

The main topic of the evening was GoLang and our personal experiences as Java Developers while working on some projects with a different language, the toolchain, and how bad it feels when we are out of our comfort zone.

I was surprised by the audience interaction, as we were not alone, others in the community has experienced the same pains with other languages and our presentations quickly became more like an open debate with several members of the group sharing their experiences and their opinions.

The value of these groups is directly proportional to the group interaction and how much each member gets out of the meetup and it really felt like we all won/learned something that night. We had both students and professors from the university present in the room and even if some bits of our presentations were too advanced for them, they came up with very good questions.

[LJC](https://www.meetup.com/Londonjavacommunity/) is awesome because the people that show up really care about what they do and they have strong opinions, they are not shy to share them and the setup allows everyone to express their opinions in a safe environment.

## Slides

**Java to GoLang by Ryan Dawson**

<iframe src="https://www.slideshare.net/slideshow/embed_code/229030707" width="960" height="787" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe>

**Zeebe Operator, a practical use case for GoLang in Kubernetes Land**

<iframe src="https://www.slideshare.net/slideshow/embed_code/228730095" width="960" height="787" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe>

**Java vs Challengers**

<iframe src="https://www.slideshare.net/slideshow/embed_code/229030640" width="960" height="787" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe>

## Links

- Zeebe Operator Source Code: [https://github.com/zeebe-io/zeebe-operator](https://github.com/zeebe-io/zeebe-operator)
- Zeebe Operator introduction: [https://salaboy.com/2019/12/20/zeebe-kubernetes-operator/](https://dev.to/salaboy/zeebe-kubernetes-operator-4k0e)
- Microservices Orchestration with [Zeebe.io](http://zeebe.io)
- [Getting Started with Knative Blog Post](https://dev.to/salaboy/getting-started-with-knative-2020-994)
Oculus Quest Not showing up on PC
Tags: oculusquest
Published: 2020-02-24 15:51:53

If your Oculus Quest not showing up on your PC or Mac, don't worry. It's not a big deal. Just type `adb devices` and permission panel will show up in your Headset. Press `Allow` Button inside headset. That's it.

You don't have to turn off developer option for accessing the files on your quest. Some people might say to turn this option off, but you don't have to do that.
How Do You Automate Your Boilerplate?
Tags: discuss, productivity, opensource, github
Published: 2020-02-24 15:48:14

My team is reviewing how we start-up our projects, a large time sink for us is the initial set-up for running a prototype or Proof of Concept. We end up repeating similar repo and language/framework boilerplate over and over.

This boilerplating that we do for our projects is ripe for automation; we're looking at GitHub's [templates](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-template-repository) for doing some of the heavy lifting around repo creation and we're looking for ways to automate adding GitHub Actions. 

When it comes to generating project-specific boilerplate we're looking at language-specific tools but this in early stages.


This has led us to wonder what everyone else does, so, how do you automate your boilerplate for projects? 

Is it templates, scripts or interns? 

---


No interns were forced to do repetitive tasks in the making of this post, cover photo from [pexels](https://www.pexels.com/@movidagrafica-barcelona-405810).
Your experience with Eventbrite as a developer
Tags: discuss, survey, eventbrite
Published: 2020-02-24 15:42:22

For my graduation project I'm working on creating a solution for the problems [Matise](https://www.matise.nl/), a digital design agency from Amsterdam, and their customers encounter when working with [Eventbrite](http://www.eventbrite.com), an event management and ticketing software.

I'm looking for some input from other developers that have worked with Eventbrite in a development environment and would like to share their experiences.

So do you have any experience working with Eventbrite as a developer? Then please fill out this [survey](https://docs.google.com/forms/d/e/1FAIpQLSd2seGaaNpc67vEVdtmXp-1dEbqRFsf_fb-ZpK-t_3MowfnQA/viewform?usp=sf_link). It will probably take about 5-10 minutes. 

Thank you in advance, it helps me out a lot!

![Thank you GIF](https://media.giphy.com/media/AeWoyE3ZT90YM/giphy.gif)

_P.S. Want to say anything else I didn't cover in the survey? Leave a comment below!_
Create harmony when working on a Github project that is open source
Tags: github, opensource, webdev, beginners
Published: 2020-02-24 15:42:06

Hi everyone,

Today I want to write about Github collaboration on an opensource project and how can everybody be able to work in harmony.

As you know a GitHub project usually has contributors, creators, maintainers, and the final users.

We can name more groups and split them more but for our example, it should  be enough to create a background.

Each individual in these groups has a different experience and knowledge regarding software or development, in general.

At this point **Dear reader**, you may have the following question:

>How can all these groups contribute to the well being of the project without causing internal fights?

Well, the answer is RESPECT FOR EACH OTHER'S WORK!.

Without respect and dedication, a project can't simply progress in harmony.

Also, another important fact that contributes to harmony is clear and detailed documentation so that everyone can understand, how they can get involved in the project.

Now a lot of people will say:

> I don't have time to build documentation for my project, I have other things to do.

The beauty of creating documentation for your project as you write it.Is that you will always remember what you wrote and others will stop creating issues to be able to contribute. 

In the end, you will have more time to work on what matters most to you.

Also dealing with issues that can be solved through thorough(detailed) documentation, will make you lose time and passion. 

Instead, you can build the documentation and test every part of your code.

So that will generate discussions about enhancements with the other contributors and users, that will be very eager to contribute to your project.

A tested code can also be like an open book for your code, everybody will understand better what you are doing.

I hope you enjoyed this article **Dear Reader**.

Also if you find this article useful don't forget to share it on social.

What do you think **Dear Reader**, about how to achieve(get) harmony in an open-source project?
How to make a React / Redux App able to get a value from a sub-component?
Tags: redux, react, question
Published: 2020-02-24 15:30:49

I have this simple Counter using React / Redux:

https://stackblitz.com/edit/react-kkcgza?file=App.js

It is said that Redux can let any component get a value? (meaning Redux can let us decide where the destinations are for our state).

Can someone tell me how to let the `App` component get the count value and show it? (besides letting the `Counter` show it) -- can you edit online and fork a copy if you can?
Introducing the DEV Social Badge
Tags: showdev, javascript, webdev
Published: 2020-02-24 13:49:19

---
title: Introducing the DEV Social Badge
published: true
date: 2020-02-24 13:29:41 UTC
tags: showdev, javascript, webdev
canonical_url: https://benprice.dev/posts/intro-dev-social-badge/
series: dev-social-badge
---

Today, I started working on a new social badge that pulls your reaction count for an article that’s been shared on DEV. I hope others like it and will find it useful.

Before I get into everything, here’s what it looks like (you can see it in action on my (new) [blog](https://benprice.dev)):

[<picture>
        <source srcset="/static/4157eff7ac903eed10be1bae8cff1b5a/6bc61/dev-badge-sample.webp 80w" sizes="(max-width: 80px) 100vw, 80px" type="image/webp"></source>
        <source srcset="/static/4157eff7ac903eed10be1bae8cff1b5a/81690/dev-badge-sample.png 80w" sizes="(max-width: 80px) 100vw, 80px" type="image/png"></source>
        <img src="https://benprice.dev/static/4157eff7ac903eed10be1bae8cff1b5a/81690/dev-badge-sample.png" alt="dev badge sample" title="Dev Social Badge - Sample" loading="lazy" style="width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;">
      </picture>](/static/4157eff7ac903eed10be1bae8cff1b5a/81690/dev-badge-sample.png)

The code still needs a bit more work before I’m ready to opensource it. But, I will be putting it up on GitHub, with directions on how to use it, in the next few days.

The code is all written in pure JavaScript, to keep things nice and lightweight, and all of the badge is drawn with SVGs, including the Logo which [Ben](https://dev.to/ben/) made available in this [gist](https://gist.github.com/benhalpern/eff81b17359acafd17849146549b9291).

Anyways, stay tuned for further updates over the next couple of days!

---

This post [originally appeared](https://benprice.dev/posts/intro-dev-social-badge/) on [benprice.dev](https://benprice.dev).
Methods and structs
Tags: go, beginners
Published: 2020-02-24 14:49:30

In <a href="https://golang.org/">Golang</a> methods can take <a href="https://golangr.com/struct/">structs</a> as parameter. You may be familiar with this from other languages, where you post objects as <a href="https://golangr.com/methods/">method</a> parameter.

This is great, because while Go doesn't support object orientated programming in the traditional sense, this gives you the feel of objects.

## Structs as method parameter

In this article we'll do an example where a method takes a struct as parameter. First we define a struct

```go
type Student struct {
    name     string
    year     int
}
```

Then create a new struct "instance"

```go
s1 := Student { name: "Sam", year:   1, }
```

Then you can call a method on the struct:

```go
s1.displayYear()
```

So we have the golang code for this example below:

```go
package main

import (
    "fmt"
)

type Student struct {
    name     string
    year     int
}

func (s Student) displayYear() {
    fmt.Printf("Student year of %s is %d\n", s.name, s.year)
}

func main() {
    s1 := Student { name: "Sam", year:   1, }
    s1.displayYear()
}
```

That outputs the data we passed as parameter

    ➜  go run example.go
    Year of Sam is 1

You can create all kinds of structs to work with in your code:

```go
    s1 := Student { name: "Sam", year:   1, }
    s2 := Student { name: "Amy", year:   5, }
    s3 := Student { name: "May", year:   3, }
    s4 := Student { name: "Yas", year:   4, }
```

On all of these you can call the same method

```go
    s2.displayYear()
    s3.displayYear()
    s4.displayYear()
```
Pop the shapes
Tags: codepen
Published: 2020-02-24 14:49:16

<p>Trying SVG for once.<br>
Based on my pen <a href="https://codepen.io/Dillo/pen/QWwPJwP">Pop the bubbles</a>, adaptated to this week's challenge.</p>

{% codepen https://codepen.io/Dillo/pen/RwPGvJN %}
this -> that
Published: 2020-02-24 07:25:43

I was going to do this one thing, but I ended up doing something else. I had set a goal for me last night to try and apply SOLID on a small JS project of mine. Extremely small. It's a NodeJS twitch-chat bot that helps viewers playing a twitch-integrated game in the stream.

It was quite simplified already as I had created the game-related stuff in it's own API class as an interface for getting data from the game's public API. So I set out to refactor the part of the code that involved keeping track of userstates of the players. 

Reason for that is to provide an extra service for them to detect when the game is getting out of sync and the servers are not getting any more updates. This is a bug in the game and architecture itself and will be remedied at one point by the developer making the game, but for now, I provide this as a detection-service for the viewers to leave and rejoin the game to not lose progress.

So that's the premise.

What I have is a simple in-memory array of userstate objects that I update with a hash value of their in-game statistics. If that statistic is not moving, despite them doing something in the game that should actively be updating those values, then something is up. So there's a detection function that gets any previous value from the array, if not, create it in the array. Then initiate a check against the API and compare hash values. If it has changed, all is fine. If not, message the player that they should be leaving/rejoining the game.

This was all done in one function of about 50 lines in total with loops that accessed the statistics array 3 different times and modified state in these. Reason I needed to have state change was because since messages that could trigger the check come in asynchronously as well as the function itself runs an asynchronous action. So not to trigger multiple checks, I need to maintain a boolean, per player, that prevents that.

So to the jist of this post. I created two ES6 classes one for the base object UserState and an orchestrator/container UserStates that had wrapper functions for updating a user object in the array and UserState had functions to flag it being updated and when it's done. It could also have had the md5hash calculations, but I recon I will use those elsewhere so I didnt include that in there.

With all of that refactoring, the function that now did the progress check went from 50 lines down to 15-20 lines (can't remember now, not at the computer) and the code could almost be read like it was a normal sentence.

So with that said, use whatever transpiler you have available. Online or offline, and create your classes for javascript. I can highly recommend it. Not only does it make the code cleaner and more readable, but it also makes it easier to test.
Adonis JS the best Back-end framework
Tags: javascript, frameworks, web, node
Published: 2020-02-24 14:42:44

---
title: Adonis JS the best Back-end framework
published: true
description: 
tags: javascript , frameworks , web , nodejs
---
i used to use sailsJS but now i can't stop using adoinsJS . </br> when i started dev the 1st back-end framework i used was larvel ( node js wasn't a thing back then ) and i loved it's structure and simplicity . <br/> <br/> when i stoped using PHP and moved to js using express then sails ( i took a look on nestjs , hapi ) they didn't have the same idea i got from laravel ( ofc half of them are micro frameworks ) that idea of half of the work is done by the framewrok until i used AdonisJS 
<br/>
this framework have every laravel feature , much faster , comes with websocket best option for a small to medium web projects but it's ORM doesn't support NoSQL yet
<br/>
i don't know why it's not that popular
Wat is Tkinter? (Dutch)
Tags: python, dutch, nederlands
Published: 2020-02-24 14:32:50

Om desktop software te maken, kunt u gebruik maken van de tkinter module. <a href="https://docs.python.org/3/library/tkinter.html">Tkinter</a> is een module voor GUI's (gebaseerd op de Tk GUI toolkit).  

Dit is de standaard module voor grafische apps voor Python. Tkinter wordt meegeleverd met Linux, Microsoft Windows en Mac OS X.

Natuurlijk zijn er ook andere GUI-modules zoals <a href="https://pythonspot.com/pyqt5/">PyQt</a>, <a href="https://pygobject.readthedocs.io/en/latest/">PyGTK</a>, <a href="https://pypi.org/project/simplegui/">simpleGUI</a> en andere. Een van de voordelen van tkinter is dat het standaard is inbegrepen en dat u het snel kunt leren.

![tkinter app](https://dev-to-uploads.s3.amazonaws.com/i/zgg6t3imnvrh2au77kkx.png)

## Voorbeeld

Met tkinter kunt u snel grafische interfaces bouwen. Het onderstaande voorbeeld toont u de hello world app.

```python
from tkinter import *

root = Tk()

w = Label(root, text="Hello, world!")
w.pack()

root.mainloop()
```

![tkinter hello world](https://dev-to-uploads.s3.amazonaws.com/i/alhmvnlpy4qjqyxrysas.png)

Het laadt de module zo:

```python
from tkinter import *
```

Als u een import fout krijgt, zorg er dan voor dat u Python versie 3 of nieuwer gebruikt.

    python --version

Dan wordt tk (root window) geïnitialiseerd met:


```python
root = Tk()
```

Een label met de tekst "Hallo wereld" wordt aangemaakt en toegevoegd aan het hoofdvenster.

```python
w = Label(root, text="Hello, world!")
w.pack()
```

U kunt veel widgets aan uw venster toevoegen zoals <a href="https://pythonbasics.org/tkinter-button/">knoppen</a>, <a href="https://pythonbasics.org/tkinter-menu/">bestandmenu</a>, <a href="https://pythonbasics.org/tkinter-image/">afbeeldingen</a> een <a href="https://pythonbasics.org/tkinter-entry/">invoerveld</a> en andere.
Rest API met Flask (Dutch)
Tags: python, dutch, nederlands
Published: 2020-02-24 14:23:57

De Python <a href="https://pythonbasics.org/what-is-flask-python/">Flask</a> module is handig voor het bouwen van een Rust-API. Een Rest API gebruikt het <a href="https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol">HTTP</a> protocol zoals het oorspronkelijk is ontworpen. 

Het HTTP-protocol heeft veel verzoeken zoals de **GET, PUT, POST en DELETE** verzoeken. Deze verzoeken moeten worden gebruikt voor het toevoegen en verwijdering van data.

Voor het maken van uw web app backend kunt u een Rest API gebruiken. Omdat het uw backend (logica) ontkoppelt van uw frontend (presentatie), kunt u eenvoudig de frontend veranderen. 

Dit betekent dat u uw frontend kunt updaten zonder dat u uw backend opnieuw hoeft te coderen.

U kunt eenvoudig uw <a href="https://pythonbasics.org/python-to-web/">Python-apps online</a> zetten.

## GET request

Een get request is de meest elementaire. Dit is wanneer u uw browser gebruikt om een url te openen. Het onderliggende HTTP-protocol doet dan het GET-verzoek waarop de server de gegevens terug stuurt.

Vaak geeft dat <a href="https://pythonprogramminglanguage.com/python-json/">JSON</a> gegevens terug. Met een **Flask Rest API**, kan je dat zo doen:

```python
from flask import Flask, jsonify, request

app = Flask(__name__)

incomes = [
  { 'name': 'Alice', 'amount': 2000 },
  { 'name': 'Abbey', 'amount': 2200 },
]

@app.route('/incomes')
def get_incomes():
  return jsonify(incomes)

app.run(host='0.0.0.0', port=8080)
```

Open dan de url *localhost:8080/incomes* om de JSON-gegevens te zien. De front-end (Javascript) kan JSON-data inlezen en maken.

![json data](https://dev-to-uploads.s3.amazonaws.com/i/emcxcqhlfamydf81vrjz.png)

## POST requests

POST requests worden gebruikt om gegevens toe te voegen. De gebruiker doet normaal gesproken geen postverzoek, de front-end doet dit voor u. U kunt dit echter wel nabootsen met een tool genaamd `curl` of een extensie gebruiken.

Een nieuw POST requests afhandelen:

```python
@app.route('/incomes', methods=['POST'])
def add_income():
  incomes.append(request.get_json())
  return '', 204
```

Dan kunt u een POST request doen. Om een postverzoek te starten, kunt u gebruik maken van curl.

    curl -X POST -H "Content-Type: application/json" -d '{"name":"Aaron","amount":5000}' http://localhost:8080/incomes 

Normaal gesproken doet uw webapplicatie het webverzoek. Als u zich niet op uw gemak voelt met de terminal, kunt u de postman-extensie gebruiken.

![http post](https://dev-to-uploads.s3.amazonaws.com/i/rsxuuiw2u8ybjvcnakm6.png)
Daily Challenge #194 - Spread Number
Tags: challenge
Published: 2020-02-24 14:21:36

---
title: Daily Challenge #194 - Spread Number
published: true
series: Daily Challenge
description: Fill in an array from 1 to n.
tags: challenge
---
###Setup
Implement a function that will create an array and fill it with numbers ranging from `1` to `n`. The numbers will always be positive. 

###Examples
`spreadNumber(1)` => `[1]`

`spreadNumber(2)` => `[1, 2]`

`spreadNumber(5)` => `[1, 2, 3, 4, 5]`

###Tests
`spreadNumber(3)`

`spreadNumber(6)`

`spreadNumber(9)`

Good luck!

***
_This [challenge](https://www.codewars.com/kata/5cbded7a36240b000dac91eb) comes from linisnie on CodeWars. Thank you to [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!_