teleren/devto huggingface dataset:
It Has Begun! First Day Summary
Tags: crypto, cryptocurrency, blockchain, gambling
Published: 2019-10-02 13:35:56

Join the discussion in DAOBet Telegram groups:

- [International community [EN]](https://t.me/daobet)
- [Validators group chat](https://t.me/daobet_validators)
- [Game developers group chat](https://t.me/daobet_developers)

Join our social media to keep up to date with all the announcements: [Twitter](https://twitter.com/daobet_org/), [Facebook](https://facebook.com/DAObet.org/), and [LinkedIn](https://linkedin.com/company/daobet/).


The long-anticipated Game Of Stakes from DAOBet was launched live on September 30 at 15 GMT. Just 3 hours after launch, the network was activated for validation immediately after the long-awaited 16th participant had joined and activated the 16% stake.

Since the official launch of Game Of Stakes:

- Each validator received 1,675,000 BET
- A 21% steak has been activated
- The 100tps benchmark was breached
- Each validator produced an average of 8,000 blocks!

There are currently **22** validators operating on the network with more expected to join in the coming days as the game enters its heated phase.

**An Airdrop** was also held during the day and each validator received an additional 5,000 BET.

In addition, the benchmarkeos contract, which is currently inactive, was anonymously deployed into the network. We will monitor its status as the game progresses.

Currently, 3 participants are [leading](https://daovalidator.com/leaderboard) the game in the rating:

- eosriobrazil
- daovalidator
- mixbytes1234

The given results are merely preliminary, as many participants are still joining the game, and those who joined a bit later are already catching up with the leaders.

Stay with us, and do not forget to vote for each other and claim rewards!

**Important update and reminder for all participants**:
We urge all participants currently using the GoS v0.1 node version to update the software. Instructions on how to do it can be found at: https://github.com/DaoCasino/Game-of-Stakes/blob/master/run-producer/README.md#update-node

**P.S**

Hurry to collaborate to achieve network connectivity. A huge network benchmark will be achieved real soon!

Do not forget that you can still join Game Of Stakes and lay claim to the prizes!

**The steps needed to start**:

1. Fill in the following form https://daobet.typeform.com/to/Vcin1c if you have not already
2. Register your account using the given instructions https://github.com/DaoCasino/Game-of-Stakes
3. Launch you node with this script https://github.com/DaoCasino/Game-of-Stakes/tree/master/run-producer
4. Congrats on joining the game!


Join the discussion in DAOBet Telegram groups:

- [International community [EN]](https://t.me/daobet)
- [Validators group chat](https://t.me/daobet_validators)
- [Game developers group chat](https://t.me/daobet_developers)

Join our social media to keep up to date with all the announcements: [Twitter](https://twitter.com/daobet_org/), [Facebook](https://facebook.com/DAObet.org/), and [LinkedIn](https://linkedin.com/company/daobet/).
Next-Generation IoT Architecture: How ML-based Techniques Boost IoT Security
Tags: iot, reinforcementlearning, machinelearning
Published: 2019-10-02 13:16:54

![iot architecture IoT Malware Detection](http://perfectial.com/wp-content/uploads/2019/09/IoT_ML-02.jpg)

Generally, [IoT systems](https://perfectial.com/blog/future-of-iot/) can be divided into two groups: those applied merely for monitoring tasks (tend to be very data-intensive), and those meant to enable remote control of “intelligent” devices.

The first ones are usually analytics solutions that aggregate information from a multitude of IoT sensors (data comes up through gateways) and then format or visualize it to help users discern patterns and actionable insights from their datasets. They may have vast bandwidth requirements when there are plenty of devices incorporated, but only in terms of upstream bandwidth.

The latter, however, have much more difficult data models and both their upstream and downstream bandwidth are equally critical; there’s always a complex business logic involved in such platforms that’s used to 1) determine the needed adjustments based on received data and 2) send updated configurations to the devices to optimize performance.

[The IoT networks](https://perfectial.com/blog/iot-in-hvac/) of the second type, popular with enterprises, are typically comprised of a great many entities and scaling them safely, by introducing new devices and data streams, is acutely challenging. Vulnerabilities accumulate exponentially as new elements and relationships are added to the network.

In this post, we’ll discuss how to enhance a conventional IoT architecture through machine learning. We’ll explain [how supervised, unsupervised, deep and reinforcement learning methods](https://perfectial.com/blog/the-abcs-of-machine-learning/) could help firms protect their connected solutions against various types spoofing, jamming, intrusion, man-in-the-middle, dos and other identity-based attacks.

View blog and read more about [IoT Architecture](https://perfectial.com/blog/secure-iot-architecture/). The post appeared first on [Custom Software Development Company Perfectial](https://perfectial.com/).
Use a ThemeProvider component in Storybook
Tags: react, webdev, storybook
Published: 2019-10-02 12:40:45

---
title: Use a ThemeProvider component in Storybook
published: true
description: Storybook is amazing tool for building component libraries. Sometimes we want to extend it to work with Provider components, such as an Emotion/Styled ThemeProvider. In this post, we explore how we can add a ThemeProvider to Storybook. This technique works with other libraries as well (like Redux).
tags: react, webdev, storybook
cover_image: https://thepracticaldev.s3.amazonaws.com/i/kfbugw5obpne23eu2c1g.png
---

## Storybook is awesome for building components

I frequently use [Storybook](https://storybook.js.org/) and [styled components](https://www.styled-components.com/) / [Emotion](https://emotion.sh/docs/introduction) when building component libraries. The ability to apply a consistent theme to all components is very powerful but it requires wrapping your components in a [ThemeProvider](https://www.styled-components.com/docs/advanced).

Thankfully, there is a straight-forward way to apply a consistent theme object to all of our components in Storybook by using a [Storybook Decorator](https://storybook.js.org/docs/basics/writing-stories/#using-decorators).

## Create a theme decorator

We will start by creating a new decorator. In my current projects, this decorator lives in the `.storybook` folder.

```javascript
// themeDecorator.js
import React from "react"
import { ThemeProvider, theme } from "./pathToThemeProvider"

const ThemeDecorator = storyFn => (
  <ThemeProvider theme={theme}>{storyFn()}</ThemeProvider>
)

export default ThemeDecorator
```

Here we include our custom theme provider and define a component that receives a `storyFn` as a prop. This `storyFn` is where the Storybook content will be rendered. We wrap the Storybook content in our provider and export our decorator.

Next, in our project's `.storybook/config.js`, we need to specify that Storybook should use this decorator for all stories.

## Use the theme decorator in Storybook config

We'll start by importing our newly created decorator and make sure that we're using the `addDecorator` method from Storybook.

```javascript
import { configure, addDecorator } from "@storybook/react"
import themeDecorator from "./themeDecorator"
```

Next, we'll want to call the following to apply our decorator.

```
addDecorator(themeDecorator);
```

Storybook should now be wrapping all stories with a custom decorator. While this article is specifically about CSS-in-JS themes, this strategy works with other types Providers / Wrapper components as well (like [Redux](https://react-redux.js.org/api/provider)).
Weekly Picks #95 — Development Posts
Tags: webdev, javascript
Published: 2019-10-02 12:38:44

* [33+26 most popular GitHub JS repositories in August and September 2019](https://app.dailynow.co/r/963c753fad0d82cc694fd424e02517c5)
* [You might not need a framework](https://app.dailynow.co/r/a6a678860a75139d271f96a7b235d891)
* [Fullstack Programming: A Prelude To Failure](https://app.dailynow.co/r/841fc17f6f13ab6e820e6a70c25c03ad)
* [Finding the Best Way to Learn JavaScript](https://app.dailynow.co/r/28c5161692667e8e1d624adf37f697ee)
* [Clean code... Why bother?](https://app.dailynow.co/r/8c61bdc3a4670b80895bd9307456c7b2)
* [Next Generation Virtual Scrolling](https://app.dailynow.co/r/8dad9fadecf24591282d36515dd716b5)
* [Common mistakes in web development](https://app.dailynow.co/r/5c8f9dd7deb19a6d2248314b90055238)
* [API calls and HTTP Status codes](https://app.dailynow.co/r/c79d591ed8552212e5617e5fa8e4fcf0)
* [Examples of closures in JavaScript](https://app.dailynow.co/r/01842aca4ca01470c3621b6facbf472a)
* [Quick-Sort Algorithm in JavaScript](https://app.dailynow.co/r/20b49a576c1eb946c313ce23b7476f92)

* * *

[_Thanks to Daily_](https://www.dailynow.co/) _developers can focus on code instead of searching for news. Get immediate access to all these posts and much more just by opening a new tab._

[![Daily promotion cover](https://cdn-images-1.medium.com/max/1024/1*7bwIhcH467BKX5Ni8XWpQg.jpeg)](https://www.dailynow.co/)
What Really Makes Node.js Great?
Tags: javascript, node
Published: 2019-10-02 12:24:32

Javascript- That is actually playing a drastic role to make Node.js great. As it is well known that Javascript is favourite to most of the software developers to build applications because Node.js uses javascript as its main framework. The Node.js community is used to create a scalable application.

To know further about what makes node.js great-
https://codersera.com/blog/what-really-makes-node-js-great/
Google’s closed source creep
Tags: android, google, opensource
Published: 2020-07-16 14:58:30

---
title: Google’s closed source creep
published: true
date: 2019-10-02 12:22:54 UTC
tags: android,google,opensource
canonical_url: 
---

![](https://cdn-images-1.medium.com/max/1024/1*-7dtcHfHPUogAzW9AfPtGA.jpeg)<figcaption>Photo by Tony Webster</figcaption>

I was going to write a positive article about Android Things and how it democratizes smart home development by bringing it to the hands of everyone, including hobbyists, but while this remains true, something was off. Android Things was derived from the open source Brillo source code. Both do the same thing but only one remains continuously updated: Android Things. That’s strange. You would think the two were one in the same, similar to Chromium being the open source cousin to Chrome, but they’re not. Android is open source under ASOP (Android Open Source Project). Brillo is apart of ASOP but was last updated in 2016 while Android Things was just recently updated in August of this year. What gives?

![](https://cdn-images-1.medium.com/max/1024/1*6MwRq20L3QXGwBEmKJnZzQ.jpeg)<figcaption>Screenshots by Ars Technica</figcaption>

This is a trend that has been going on [since 4.4 KitKat](https://arstechnica.com/gadgets/2018/07/googles-iron-grip-on-android-controlling-open-source-by-any-means-necessary/), starting with the abandonment of ASOP Search for the proprietary Google Search, and the trend has since moved to other applications. This was all in an attempt to make it easier to update it’s products independently of the OS version. In retrospective, it looks like the catch was that the ASOP version stopped getting updated. Now everything in vanilla Android is frozen in the 2.2 Froya era. Which is a bit of a dick move, to be honest, since Google used to pride itself on it’s open source software but this is also the same company that openly went by the “don’t be evil” motto which has since come into question. So I’m not entirely shocked, just disappointed.

My views on Google has [steadily become more negative](https://medium.com/@tonytins/my-dwindling-trust-in-google-e0b4fa948c9). In fact, recently I’ve become more favorable to Microsoft since the introduction of .NET Core, a new and fresh implementation of the .NET designed to be open source and cross-platform. Since then they’ve expanded it’s reach to other areas that original Windows-only .NET Framework could only dream of reaching. Now, Windows 10 as a whole is _not_ open source but since a lot of their ecosystem relies on their ever growing open source components, such as .NET Core, I feel like it’s a better trade off then Google’s locking away all the good stuff to themselves.
Web dev searching for an opportunity 
Tags: career
Published: 2019-10-02 12:03:36

Hey,

So, I’ve been learning html, css, Python, JavaScript and some other concepts since the beginning of the year, in order to get the skills to begin a career in IT.

This is a career change, I’m a father of a beautiful baby girl, husband of a beautiful woman, 35 years of experiences and motivated to start a more rewarding career for me.

If anyone knows any position available, I would be very grateful if you let me know.

GitHub: https://GitHub.com/Teixeira66
Building Trust – Is Honesty Always the Best Policy?
Tags: ethics, devrel, trust
Published: 2019-10-02 12:13:37

---
title: Building Trust – Is Honesty Always the Best Policy?
published: true
date: 2019-10-02 11:55:38 UTC
tags: Ethics,DevRel,Trust,Discuss
canonical_url: https://jasonstcyr.com/2019/10/02/building-trust-is-honesty-always-the-best-policy/
cover_image: https://theagilecoder.files.wordpress.com/2019/09/9d3.png
---

When we were little kids, we were taught that we should always tell the truth. Never lie, that’s not the right thing to do! Nobody will trust what you say.

Always telling the truth sounds great on the surface, but as we grow up we learn that things are not always so black and white. Brutal, raw, honesty can hurt feelings. It can expose others to criticisms. It can burn relationships. It can share information that we weren’t allowed to share. So is honesty really the best policy?

[Continue reading Building Trust – Is Honesty Always the Best Policy? →](https://jasonstcyr.com/2019/10/02/building-trust-is-honesty-always-the-best-policy/)
rake dropbox:authorize APP_KEY=81zjdh4nfctpdq7 APP_SECRET=mxjs2y3bkeppmsy ACCESS_TYPE = app_folder.
Published: 2019-10-02 11:16:25

rake aborted!
DropboxAuthError: Error getting request token.  Is your app key and secret correctly set?  Server returned 400: Bad Request.
/home/richard/.rvm/gems/ruby-2.3.1/gems/dropbox-sdk-1.6.5/lib/dropbox_sdk.rb:277:in `get_token'
/home/richard/.rvm/gems/ruby-2.3.1/gems/dropbox-sdk-1.6.5/lib/dropbox_sdk.rb:293:in `get_request_token'
/home/richard/.rvm/gems/ruby-2.3.1/gems/dropbox-sdk-1.6.5/lib/dropbox_sdk.rb:299:in `get_authorize_url'
/home/richard/.rvm/gems/ruby-2.3.1/gems/paperclip-dropbox-1.3.2/lib/paperclip/dropbox/rake.rb:11:in `authorize'
/home/richard/.rvm/gems/ruby-2.3.1/gems/paperclip-dropbox-1.3.2/lib/paperclip/dropbox/tasks.rake:11:in `block (2 levels) in <main>'
/home/richard/.rvm/gems/ruby-2.3.1/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/home/richard/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/home/richard/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => dropbox:authorize
Creating a VM Instance On Google Cloud Platform
Tags: cloud, gcp
Published: 2019-10-03 10:43:35

---
title: Creating a VM Instance On Google Cloud Platform
published: true
date: 2019-10-02 11:13:27 UTC
tags: cloud, GCP
canonical_url: https://educosta.dev/blog/creating-a-vm-instance-on-google-cloud-platform/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/z3nr5o8xohm6a718xjc0.jpg
---

Once [you have a Google Cloud Platform account](https://dev.to/educostadev/learn-how-to-create-a-google-cloud-platform-account-4g7e) (GCP) it´s time to have fun and take advantage of your free tier. In this tutorial, we will learn how to [create a VM Instance](https://cloud.google.com/compute/docs/instances/) On Google Cloud Platform

Virtual Machines are very useful and widely used, you can easily have a fully customized machine ready to deploy your application or even create a complete development environment for remote development. See how.

## Step by step

- Access your Google Cloud Platform dashboard 
- On the left panel go to `Compute Engine -> VM Instances` 

When access this option for the first time it can take some minutes until the options be available.

- Click on Create instance button;
- Give a name for your VM Instance. In this example, we will choose `becloudnativedev`;
- On the field`Region`, select the region for the VM. Regions inside the US usually are cheaper. In this example, we will choose `us-west1 (Oregon)`;
- On the field `Machine type `select one that matches your performance requirements. In this example, we will choose `n1-standard-1` ;
- On`Book disk` <g id="20" data-gr-id="20">session</g>, you can choose an operating system image. In this example, we will choose `Ubuntu 18.04 LTS` ;
- On the field`Boot disk type`, you can choose the storage for your VM instance. In this example, we will choose`SSD persistent disk` **`50GB`** ;
- Click on the Select button to confirm all the options;
- On the `Firewall` session check the option `Allow HTTP traffic` ;
- Click on the`Create` button. And wait for the VM creation. This can take some minutes. ;

The new virtual machine will show up in your VM instances list as green. This means that it is ready to use. An internal and external IP is attributed to it. You can use the External IP to access your virtual machine remotely. In the SSH option, you can open an SSH web console to connect to the machine. Be advised that the External IP address can change when you restart your virtual machine. Do not forget to stop the virtual machine after the use.

Watch the following video and see all these steps.

{% youtube tmtNMOc72t8 %}

The post [Creating a VM Instance On Google Cloud Platform](https://educosta.dev/blog/creating-a-vm-instance-on-google-cloud-platform/) appeared first on [Be Cloud Native](https://educosta.dev). If you have any doubts or questions feel free to drop a comment here or reach me out on Twitter [@educostadev](http://twitter.com/educostadev).
Old School Loops in JavaScript - for loop and forEach
Tags: javascript, webdev, beginners
Published: 2019-10-02 11:03:18

---
title: Old School Loops in JavaScript - for loop and forEach
published: true
description: 
tags: #javascript #webdev #beginners
cover_image: https://thepracticaldev.s3.amazonaws.com/i/efc6zh0c6127fpcvppvg.gif
---

In general, if we've got a list of elements, and we want to get each element from this list, or in other words if we want to iterate over the elements of an array we use the old-style `for` loop.

## for Loop

As an example, we've got here an array `numbers` that contain a list of numbers.

```js
const numbers = [45, 78, 95, 36, 47];
```

To get each number from this array by using the `for` loop, first we've initialize the counter to `0`, the condition to be evaluated before each iteration, and the expression to be evaluated after each iteration, in this case incrementing the counter by one, and as long as the condition is true 

```js
for (let i = 0; i < numbers.length; i += 1) {
 console.log(numbers[i]);
}
```

The result of `console.log` shows an element from the list `numbers` at a specific `index` using the counter.

![for loop JavaScript](https://thepracticaldev.s3.amazonaws.com/i/ciwuuuxvt9ew1sxd45hl.gif)

# forEach

Now, and for the same example, we can use the JavaScript ES5 `forEach` loop, which executes a function on each element in the array.

```js
numbers.forEach(number => {
 console.log(number);
});
```

![forEach loop](https://thepracticaldev.s3.amazonaws.com/i/l84hqr5gm70nnpywsk0y.gif)

Just to notice that the `forEach` is used only for arrays, maps, and sets, the syntax of the `forEach` is shorter than the `for` loop, however, there are some flaws of using it.


The first problem is there is no way to `break` or stop a current loop, this current presentation is not correct.

```js
numbers.forEach(number => {
 if (number == 45) {
   console.log("terminate the current loop");
   break;
 }
 console.log(number);
});
```

![JavaScript forEach Loop can't Break](https://thepracticaldev.s3.amazonaws.com/i/efc6zh0c6127fpcvppvg.gif)

The second problem is: you can't use the `return` statement from an enclosing function within the loop, and this is an example where the loop should stop and `return false` if the condition is `true`, but instead it'll show the result of the `console.log(number)`.

```js
numbers.forEach(number => {
 if (number == 45) {
   console.log("terminate the current loop");
   return false;
 }
 console.log(number);
});
```

![JavaScript forEach Loop return statement](https://thepracticaldev.s3.amazonaws.com/i/azj3fdexpf543qpmg2xj.gif)
Day 3 : We On
Tags: hiphop, code, coding, lifelongdev
Published: 2019-10-02 11:01:33

_liner notes_:
- Professional : Got my laptop! We on, right? Not so fast. Of course, with my luck, I ran into some issues setting it up. Got to give huge props to the Vonage Support Squad for helping me out. I guess it takes some time for me to propagate through the system. It took a while, but the important thing is that I'm set up! While getting my laptop in order, I reviewed another tutorial for a new product. It was similar to the coding challenge I did when I applied for my position. Took me a little longer than I would like, but going back and forth from the tutorial and Support slowed me down a little. After reviewing the tutorial and completing my notes, I tried to get a project running locally on my new laptop. Followed all the instructions, everything was going as expected and got it running, but when I went to localhost in the browser...Nope! Did some research on the error... looks like it could be an issue with the version of Rails or something. I've got some possible solutions, but it was the end of the day and I wanted to run them by my manager first.  

- Personal : Looks like my dev.to feed doesn't update immediately once I post a blog. Even though I posted my blog early in the morning, I didn't see it in my feed's endpoint through out the day when I checked. I was tired and didn't really look into it.  

![Lofoten Islands, Norway photo](https://thepracticaldev.s3.amazonaws.com/i/jlu8ndmeqgdgt78iyk22.jpg)
Looking at my site's logs, it seems that dev.to updates a blog's feed once a day. Maybe the more you post, the quicker it will update? At least it's working and my site is able to pull my latest blog post and display it. Looked pretty good as well. (Plug: You can view my site at https://lifelong.dev haha) That means, even though I post this today, it probably won't show up on my site til tomorrow. I'll have to look into it more.

Got up pretty early because my group was having a session for a coworker to practice an upcoming talk and get feedback. They are in another part of the world so it was super early for me. I didn't have to attend, but I wanted to see how it would go. It was cool to see everyone support each other with things like talk preparation. Also, I got some tips on how I could improve my own presentations.

Probably going to go back to sleep. haha

Looking at my schedule, there's a lot happening today, so I better rest up! haha

There's a meetup later today that I'd like to check out. I still want to work on getting my site to load faster by refactoring some code.

Have a great day!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube jFWkO2g7rOs %}