teleren/devto huggingface dataset:
Reasons Why You Should Be Using a VPN in 2019
Published: 2019-08-30 09:26:18

VPNs has grown in demand in recent years among individuals are using it to secure their information and data to prevent hackers or for other misuses.

Privacy has become the main issue for many, everyone wants to secure their information. And in this interconnected world, security is a thing that has a major concern. As soon as we connected to the internet by using smartphones and computers.

A VPN becomes a target for hackers, malicious programs, and secure the user’s identity which harms your data or information. Secondly, there are many different threats that appearing day by day as technology gets to advance.

for more details read this article

https://codersera.com/blog/reasons-why-you-should-be-using-a-vpn-in-2019/
How to solve Big log capture errors in Fluentd.
Tags: fluentd, matabase
Published: 2019-08-30 08:53:14

## Summary:
* This memo is when building a LogMonitoringSystem with Fluentd.

## Construction:
* See the figure above.


## error message of my Fluentd:
``` java
2019-08-30 09:44:20 +0900 [info]: #0 bulk insert values size (table: access_log) => 37207
2019-08-30 09:44:20 +0900 [warn]: #0 failed to flush the buffer. 
retry_time=1 
next_retry_seconds=2019-08-30 09:44:21 +0900 chunk="5914aebbe44b1ad68c3f180a99706368" error_class=Mysql2::Error::ConnectionError 
error="MySQL server has gone away"
```
* ...gone away?

## Cause of the error：
* The cause of the error is my Mysql setting.
* Seting name is max_allowed_packet.defualt setting 4M.
* I was using the standard settings.However, the log file to capture is 9M...


## Correspondence:
* Fixed mysql settings.
 * before: max_allowed_packet:4M
 * after : max_allowed_packet:16M

## result:
``` java
2019-08-30 16:10:29 +0900 [info]: #0 detected rotation of /var/log/nginx/access.log; waiting 5 seconds
2019-08-30 16:10:35 +0900 [info]: #0 following tail of /var/log/nginx/access.log
2019-08-30 16:10:39 +0900 [info]: #0 bulk insert values size (table: access_log) => 37207
2019-08-30 16:10:47 +0900 [info]: #0 bulk insert values size (table: access_log) => 13854
```
Great!!

Thenk you!
Introducing parse_it — a Python configuration parser
Tags: python
Published: 2019-08-30 08:53:01

No matter if you use Python for frontend, backend, big data, academics or just need a simple script to automate an annoying task you will most likely to pass a few configuration variables for said app, this can be done in many different ways:

* Environment variables
* Command line arguments
* Configuration file(s)

Each method has it’s own pros and cons & deciding which one to use can bring up a lot of questions:

* Which method should I choose to configure my app?
* Should I choose just one or multiple methods to configure my app?
* Which file format should I use for my configuration files?

This list can go on and on as each question will only bring more follow up question, this is why I decided to create a single “parse_it” package which can handle all of the needed work surrounding a Python project settings & configuration work, parse_it handles all of that with ease with the basic concept being that deciding how to configure the app should be left to the app end-user and not for the developer.
Installation

# Installing is easy:

```
pip install parse_it
```

# Using

Using parse_it is almost as easy as installing it:

```
# Load parse_it
from parse_it import ParseIt

# Create parse_it object.
parser = ParseIt()
```

Now you can read your configuration values no matter how they are configured (cli args, envvars, json/yaml/etc files)

```
my_setting = parser.read_configuration_variable("my_setting")
```

parse_it allows you to do much more then just read a variable & includes:

* Multiple file format support (JSON, YAML, TOML, HCL, INI, XML)
* Find the needed setting key form multiple configuration files (by default all valid file formats are read from the working directory recursively)
* EnvVar support (Including configurable auto capitalization & prefix)
* Command line argument support
* Auto-correct data types (so your EnvVars & CLI args will return Dicts, Lists, Intgers, Boolens, etc…)
* Easily configurable
* Default values per setting & globally across all settings
* Easily flag a setting as required so it will raise a error if missing

All of the options above (& more) can be easily configured & is described in the single page README guide at the project GitHub repo at https://github.com/naorlivne/parse_it
Integrating Laravel Passport in Your Lumen Project (with example)
Tags: laravel, lumen, passport, lumenpassport
Published: 2019-08-30 08:44:41

---
title: Integrating Laravel Passport in Your Lumen Project (with example)
published: true
description: A Detailed Guide On How To Integrate Laravel Passport in Lumen
tags: Laravel, Lumen, Passport, Lumen Passport
---

Your reviews would be indeed appreciated as it is my first tech-write up. 

-----

Lumen, as we already know is a micro-framework by Laravel well suited for developing micro-services and APIs.

However, setting up Passport in Lumen for authentication has been a bit of a challenge for most developers as Passport doesn’t have an actual support for Lumen despite being built by the same developer of the Laravel framework, Taylor Otwell.

To fix this, Denis Mysenko helped with a workaround by developing ‘lumen-passport’, a simple provider that makes Laravel passport work with Lumen.

I have detailed the process in a medium article and you can access it here: https://medium.com/@yomiomotoso/integrating-laravel-passport-in-your-lumen-project-with-example-1c2b8719c30
How can I stop Chrome background updates killing my app?
Tags: android
Published: 2019-08-30 08:41:49

Alright then. First post on DEV and it's kind of a cry for help. Can anyone help me pick apart this SO question? It seems that we (and others) have instances where a dependency on Chrome for web views (mostly from 3rd party plugins) cause the app to be killed when Chrome updates. Yet I can find next to nothing about this process or how to potentially mitagate it. Can anyone help?

{% stackoverflow 52553558 %}
Lets make errors in Go traceable
Tags: go
Published: 2019-08-30 08:20:19

I wrote a module to make Go traceable

just attaching README here :-)
[oops](https://www.github.com/5anthosh/oops)
# oops 🙊

oops makes errors in Go traceable.
It provies traceback function to get more information when you return error from the function

> The convention says that an error should either be handled (whatever that means) or returned to the caller.
> But with more abstraction, it is difficult to find where the error got originated
> so Traceable function returns error with more information

## Example

```go
package main

import (
	"errors"

	"github.com/5anthosh/oops"
)

func main() {
	err := func1().(*oops.Error)
	println(err.Skip(1).Error())
}

func func1() error {
	return func2()
}

func func2() error {
	return func3()
}

func func3() error {
	return oops.T(errors.New("dummy one")).Info("this is just testing")
}

```

### Run the program

```sh
$ go run test.go
🔴  Error : dummy one
ℹ️   Info  : this is just testing
         at main.func3 line 23 Desktop/Files/test.go
         at main.func2 line 19 Desktop/Files/test.go
         at main.func1 line 15 Desktop/Files/test.go
         at main.main line 10 Desktop/Files/test.go
```
How to inline the style tag in Vue
Tags: vue, style, component, inline
Published: 2019-08-30 08:11:10

---
title: How to inline the style tag in Vue
published: true
description: Make a style component to inline the style tag
tags: vue, style, component, inline
---

Let's say you want to target some pseudo element to give it like a dynamic `color` or something. But you have that `color` value that come from Vue...

- You can't use CSS, you don't have access to the `color` value
- You can't use `v-bind:style` on a pseudo element
- Vue doesn't let you use `<style></style>` in your template tag, vue-loader or vue-template will filter out any style tag


### Solution: *Make a little component to output a style tag* 


> main.js
```javascript
Vue.component('v-style', {
  render: function (createElement) {
    return createElement('style', this.$slots.default)
  }
})
```

> Component.vue (in your `<template></template>`)
```javascript
<v-style type="text/css">
  .progress::-webkit-progress-value { background-color: {{ color }}!important; }
</v-style>
```

I had to use `!important` with this solution, I saw some people using a unique _uid to target the element properly using `<component is="style">`, but this one seems faster 👌
My Pre-bootcamp Workshop In Andela
Tags: prebootcamp, workshop, andela
Published: 2019-08-30 06:34:37


In general my pre-Bootcamp in Andela was extremely very good and helpful to me I start thanking our pre-Bootcamp facilitator and in generall Andela think to offer me and other all candidates apply to join Andela, a pre-Bootcamp workshop so that  to pass through that pre-Bootcamp for purpose of helping all the candidates to pass ADC which is a set of challenges and other requirements like integrity, honesty, work in the team and other many things that makes all candidates fits for Andela which is the requirement for every candidate to pass it then proceed journey of developing their career in Andela.


So I have the basis to thank Andela in generall cause of many reasons first pre-Bootcamp give us knowledge base by encouraging us in term I liked so much called yoyo showing me and my colleagues that am the only one who is responsible for my improvement and achievement in my career and also pre-Bootcamp becomes our columns of what I can say our knowledge base building to go on the samples they give us to improve our selves and achieve more.

Our pre-Bootcamp facilitator and many visitors bring for us share us the experience, skills, and knowledge they have,they give us many resources and give us a refresher for maybe who were already knows about new programming languages that are used in Andela and also it becomes a good source of understanding for who were seeing those programming languages for the first time cause only working hard, never give up and  courage makes everything possible and easy.

So they help us in all# of that so that to understand the environment of world-class developers through encouraging us to work together in a team to sharing ideas and resources, to work on time and efficiently all for the purpose to help me and my colleagues of pre-Bootcamp workshop and even other who will apply in Andela to work on their challenges perfectly.

Actual our pre-Bootcamp was very valuable to me, I get new skills and knowledge, new friends truly in little words I thank Andela from bottom of my heart and I can encourage other candidates to want to join Andela to attend  pre-Bootcamp although it's not obligated to attend it but it's helpful to everyone who wishes to join Andela so I can finish also thanking Andela for their offer and support they provide for the country, Africa and even the world in technology at a well-advanced level so my peace of God be upon Andela all the time and god bless Andela.
Join Our Programming Community on Unique Platform
Tags: debate
Published: 2019-08-30 08:02:53

Earn cryptocurrency for debating! Interested in sharing your opinions on programming, coding, computer science, technology and software engineering topics. Interest in debate? Interested in critiquing other peoples claims? Interested in getting rewarded and earning for debating? Join our unique new debate community? Debate topics like React beats Angular, Kotlin sucks and so much more! Email me infinitumcubed@gmail.com or follow me on Twitter @zed_developer and get in touch with me there.
What are your wish lists for dev.to
Tags: dev, meta, discuss
Published: 2019-08-30 07:40:50

I started to consider using dev.to seriously today. So I started to change my profile picture. Considering the popularity of Gravatar in the developer community, i missed lack of Gravatar support in dev.to. 
So, i thought it may be a good idea to start a discussion on features you would like to see on dev.to.
My Journey at Andela
Published: 2019-08-30 07:13:35

Since I have committed to come to the pre-Bootcamp, I found out that chances are higher for someone to get the help s/he needs because when you work alone on your Andela Developer Challenge (ADC) at home, you are likely to misunderstand the right format and technology (Git workflow) you should use. Also, when you attend pre-Bootcamp you know what Andela is expecting from you at the very beginning such as output quality (technical and non-technical), values alignment (EPIC), and ability to incorporate feedback. Also, since I attended the pre-boot-camp I got a chance to meet Andelans and they would tell me what they did to make it.

The entire pre-Bootcamp process helped me master the project management tool (Pivotal tracker) that Andela is using, Git/version control (the correct naming version Andela is using), Frontend Development (UI or user interface), introduction to JS, Holistic thinking (thinking in bigger picture), Developing API end-points, and the use of Database. For, the last one, tutorials and games where given for us to understand how the database works. And this can’t be independently done in a proper way.  

At this point, I’m convinced that the most helpful step I received at the pre-Bootcamp can take me now to success and proves me I have made the right decision of choosing Andela to be my next working environment.
How to learn JavaScript line by line
Tags: productivity, javascript, beginners, webdev
Published: 2019-08-30 07:12:29

---
title: How to learn JavaScript line by line
published: true
description: JavaScript is a pain in the neck to learn. It’s a tricky language but as web developers, it’s a mandatory thing we need to pick up in order to do our jobs. So how do we learn it?
tags: productivity, javascript, beginner, webdev,
---



###I recently stumbled across an all-out awesome method for learning JavaScript and all its little quirks.

It's a very straightforward method but something that doesn't get mentioned a lot. Basically the idea came from [Becca](https://twitter.com/becca9941) who posted on Twitter how she was dealing with feelings of being overwhelmed at work. 

Much like journaling to express and organize ideas in one's head, Becca took a block of code and attacked it line by line.

 ![Becca Original Tweet](https://thepracticaldev.s3.amazonaws.com/i/w0m7vcn68gadw89zkgxs.png)

Noting that for a 60-line code block she had produced over 70 questions, she also asked for feedback to check her understanding. 

I only wish I had discovered this amazing method when I was first starting to learn JavaScript! 

***

  _This video originally appeared on www.youtube.com/realtoughcandy_.
Come follow me there!
Friday Blast #77
Tags: fridayblast, links, post
Published: 2019-09-15 15:03:10

---
title: Friday Blast #77
published: true
tags: friday_blast,links,post
canonical_url: https://horia141.com/friday-blast-77.html
series: "Friday Blast"
---

[Marking the end of pixel trackers in Basecamp emails (2019)](https://m.signalvnoise.com/marking-the-end-of-pixel-trackers-in-basecamp-emails/) - pixel tracking in emails is a common technique for gathering analytics for the emails you send. They work by embedding an image url (historically a 1x1 pixel) into the email, with some unique coordinates. When the email gets rendered, the image gets requested and you know the email was seen. They’re pretty ingenious. But also a hack for tracking folks when you perhaps should not. So it’s refreshing to see Basecamp take the lead here and do something against the grain of pervasive tracking which is the norm in products nowadays.

[The ARPUs of the big four dwarf everybody else (2019)](https://mondaynote.com/the-arpus-of-the-big-four-dwarf-everybody-else-e5b02a579ed3) - Amazon leads the pack here, but they’re a retailer so it makes sense. What was interesting was how much Facebook dominates the advertising spend growth of the last couple of years. Also interesting that for Google, 20$/month would be enough as a subscription. Perhaps not enough for search, but for YouTube, docs, calendar etc? Sounds compelling for sure! Wonder why they’re not offering this.

[Font fingerprinting (2019)](https://www.johndcook.com/blog/2019/02/04/font-fingerprinting/) - a “neat” form of cookieless tracking is font fingerprinting - figuring out the details of what fonts are installed on a computer. Unique enough to reliably track folks.

[Apache Spark at scale at Uber (2019)](https://eng.uber.com/uscs-apache-spark/) - details around the platform that Uber has built around Apache Spark in order to allow folks to easily build jobs accessing all of Uber’s data. Something very similar (though at a smaller scale), we’re building in Bolt too.
How to change software development process in your company?
Tags: devops, development, training, internal
Published: 2019-08-30 06:23:15

---
title: How to change software development process in your company?
published: true
description: The story is about I want to change original development process
tags: #DevOps #development #training #internal
---

At last week, our Azure cloud manager complained about the high cost of cloud services.

I'm just confused about why we take high costs on these cloud services.

I try to use the Azure price calculator to calculate the price we use at last week.

I also got amazing situations. The price calculation reports are as follows:

|service name|Azure Web App|Azure MySQL database|Azure container registry|  Azure VM1|Azure VM2|Azure VM2
|---|---|---|---|---|---|---|---|
|price per week (USD)|$2.47|$9.54|$0.93 |$17.44|$7.35|$22.28|

As we can look at this price table, the Azure VM costs are very high.

I ask myself: Why our developers create many Azure virtual machines in Azure cloud?

Are the existing Azure cloud services good enough to use?

Finally, I figure out why they only create Azure virtual machines.

The reason is about they don't know what the cloud service is and what the cloud service architecture is.

Most of our web services and applications are for annual projects.

The project development cycles are not long term and they will be done after two or three years. And they're going to be maintained mode.

I only use the Azure web application, and one Azure virtual machine so that my cost in Azure cloud platform is low. But others don't.

We don't have to deploy these web-based services on different Azure VMs and we can consider using Azure web application to deploy a web-base applications/services as a SaaS easily(software as a service).

And it will be comfortable for integrating other software development processes. Such as CI, CD and DevOps.

And we can only use the same databases for different Azure web applications. The architecture image is as follows:

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

To reduce the costs of Azure cloud platform, I think it's time to hold a internal training about Azure cloud platform.

I think it should include following sections for every developer in our department.

- The overview of cloud computing architecture.
- Case studies of other companies and present how to use the cloud platform.
- My goals are about this long term of internal training session/workshop.
- The guidelines of Azure web application and how to use/deploy a Azure web application.
- How to use, build and run Docker image and container?
- Any other useful Azure cloud services introductions.

When I mention this internal training proposals to department manager, he's very happy and appreciate my help about let other developers have the chance to learn and how to use Azure cloud service correctly.

I'm not sure that developers will be familiar with these services after finishing my training session.

Anyway, I think it's better than nothing.
AngularJS Store version 4.0.1 is out!
Tags: angular
Published: 2019-08-30 06:11:42

---
title: AngularJS Store version 4.0.1 is out!
published: true
description: Angular Store version 4.0.1 is out!
tags: angular
---

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

**Checkout what's new** - https://angularjs-store.gitbook.io/docs/whats-new
**Star on Github** - https://github.com/rannie-peralta/angularjs-store
Javascript madness - perfect square
Tags: javascript, learning, explainlikeimfive
Published: 2019-08-30 06:00:33

Today I had it drummed into to me again that [TMTOWTDI](https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it) (There's more than one way to do it) and this is as true for JavaScript as it is for Perl.

Thanks to someone here on dev.to, I discovered how cool [CodeWars](https://www.codewars.com) is, and have been spending some happy minutes solving various kata.

Today one of them required me to build a function that returned true or false depending on whether the argument was a [perfect square](https://www.codewars.com/kata/54c27a33fb7da0db0100040e) or not.

I'm not going to show you my solution. I'm going to show you a TMTOWTDI solution, viz
```javascript
const isSquare = x => !Math.sqrt(x).toString().split(".")[1]
```
And this is what it means:

  1. Get the square-root of the argument
  1. Convert it to string
  1. Split on decimal point
  1. Get the second element of the split's result
  1. Negate the result of the expression (with `!`)

Now if the square-root is not an integer, there will be something in that second element and the negation will translate to `false`. However, if the square-root _is_ an integer, then the second element will be `undefined` which the `!` will translate into `true`.

Thus:
```javascript
Lychen> isSquare(81)
True
Lychen> isSquare(82)
False
```
Maybe somewhere there's a TIOOWTDI (There is only one ...) language but JavaScript isn't it.