teleren/devto huggingface dataset:
Kafka Connect - Failed to select new Group Coordinator when one dies
Tags: kafka, kafkaconnect, elasticsearch
Published: 2019-12-27 07:02:24

I am having 4 nodes Kafka cluster and one zookeeper node running. When group coordinator dies then zookeeper won't select new group coordinator from available brokers list instead it keeps trying discovering the died Kafka broker. It stopped the Kafka connectors from pushing events from Kafka topic to elastic search index.

Kafka Cluster : host1:9092, host2:9092, host3:9092, host4:9092

zookeeper node = host4:2181
group coordinator = host4:9092
broker id = 0 , host1:9092
broker id = 1 , host2:9092
broker id = 2 , host3:9092
broker id = 3 , host4:9092
zookeeper is not assigning a new group coordinator and respond Disconnect connection.

2019-12-26 16:01:15 INFO  AbstractCoordinator:780 - [Worker clientId=connect-1, groupId=kafkaconnector] Group coordinator host4:9092 (id: 2147483647 rack: null) is unavailable or invalid, will attempt rediscovery
2019-12-26 16:01:16 INFO  FetchSessionHandler:442 - [Consumer clientId=consumer-2, groupId=kafkaconnector] Error sending fetch request (sessionId=2112463313, epoch=INITIAL) to node 0: org.apache.kafka.common.errors.DisconnectException.
Also I am not able to fetch events from Kafka topics from console-consumer when group coordinator is dead.

On executing ./kafka-console-consumer.sh --bootstrap-server node2:9092 --topic connector

I am getting this warning response continuously and won't get messages from Kafka topics.

[2019-12-26 16:35:30,909] WARN [Consumer clientId=consumer-1, groupId=console-consumer-20067] Connection to node -1 (/node4:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
I am not able to fix it from last week. Please help on the same.
High Output Management Review
Tags: bookreview, post
Published: 2019-12-28 07:11:03

---
title: High Output Management Review
published: true
date: 2019-12-27 07:00:00 UTC
tags: book_review,post
canonical_url: https://horia141.com/high-output-management-review.html
series: "Book Reviews"
---

This is my review of [“High Output Management”](https://www.goodreads.com/book/show/324750.High_Output_Management) by Andy Grove. Now this book is a classic. Folks who chose to read it will read it regardless of what I say here.

So the review itself will be a bit different. Instead of going on chapter by chapter and providing the summary and my commentary, I’ll focus on a few key things that stood out.

First off, even though this was written in the 80s, and based off of knowledge gained in the 60s, 70s and 80s, it was hard to tell. As much as these things can be timeless, High Output Management is so. The teachings of Andy Grove are as valid today as they were then. And to great popularity too! All three of the last companies I worked worked like that. Much like a Beatles album, you might not get why it’s so popular from the vantage point of the 2020s - it sounds like a lot of modern rock or pop! But because it defined what modern pop can be and everyone else was heavily inspired by them. You need to go back to stuff like rigid hierarchies, manager as factory boss, etc to figure out the impact.

Perhaps the thing that stuck with me most was the definition of a manager’s output - their teams’ output. It’s easy to get lost in the how of management, and not acknowledge the why. All the stuff one does from hiring, to coaching, to working on processes, is done to increase the power of the team you have to deliver better.

Another good bit was the one about coaching as an essential management tool. Before I was of the opinion this was strictly an employee led and dominated thing, mostly on account of a personal bias towards self-learning and knowing what’s best for me. The book 180ed my perspective here. Coaching and training is basically leveling up your reports, so they can better help with what the team is up to. So it can’t be neglected but rather needs to be influenced and guided by the more experienced party.

The chapters on organisation design, matrix reporting and goal setting by OKRs were also quite good, especially since I could relate them to current pain points at work.
Learn Python with Jupyter Notebook from Scratch
Tags: python, jupyter, machinelearning, tutorial
Published: 2019-12-27 06:55:55

## Python and Jupyter Notebooks for beginners 

### Learn Python with Jupyter Notebook from Scratch

Python is a very popular and powerful programming language. Python is versatile and can be fun to use in creating powerful and useful applications. Python can be used to create a variety of applications types

From games, web applications,desktop applications. Python is also very prominently used in data science and data analysis.

Jupyter Notebook is an environment that we can use to experiment with Python interactively . It allows you to share live Python code with others .

In this introductory beginners course we will learn about the basics of Python and Jupyter notebook.

### What you'll learn
* How to install Jupyter Notebook
* How to run the Jupyter Notebook Server
* Common Jupyter Commands
* Jupyter Components
* Notebook Dashboard
* Explore Notebook Interface
* Create Notebooks
* Python Expressions
* Python Statements
* Python Variables
* Python Data Types
* Casting Data Types
* Python Operators
* Conditional Statements
* Python Loops
* Python Functions

{% youtube maLy3WI7B34 %}
Inner Peace Gratitude Journal : Embracing privacy and security through decentralized technology.
Tags: blockchain, dapps, decentralized, blockstack
Published: 2019-12-27 06:42:55

The debate about **privacy** has been growing everyday. With new revelations coming from all sides, one cannot help but imagine how every social transaction which we do is being put to use by someone for someone or something. Data is one of the prerequisites for better and enhanced decision making, but the important question is what kind of that should or can be harvested and whether the data that is being utilised is taken after seeking permission from the owner.


Different kinds of data are being used and harvested everyday. The amount of time we spend on a particular page, places we visit, facial data, interactions we have, the topics we discuss, etc. They are analysed, grouped and utilised mainly for precision targeting of all sorts of things. It is in this realm that one wonders how the data collected by mental health apps is being treated. Like all data points, these apps would also be collecting data for improving their delivery, enhancing user-experience. But as a user, will one be comfortable if someone sees or harvests the personal journal entry that one makes. It is a delicate question as unlike many other kinds of data, a journal entry is very intimate thing and many users would like to believe that it is private and it is not being watched by others. It is precisely on this premise that an dapp like [Inner Peace](https://theinnerpeace.me/) is founded. 

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


Inner Peace dapp is a gratitude journal built on [Blockstack](https://blockstack.org/) platform. Inner Peace combines the twin worlds of blockchain and mental health.  The idea is to take the users into the journey of mental health with a guarantee that their data is not misused. It leverages blockchain technology to ensure that users are assured that no one is misusing or snooping into their personal space. 


People use such journals for liberating themselves and to feel better about themselves. In such a situation, it becomes all the more important to give them the additional assurance that their data will never be used without their consent. And consent here does not mean a tick mark on some online form which most people tick invariably. When people assured about their entries, it adds a lot more to the overall contentment that they derive from posting their views on an everyday basis. 


This space is going to be buzzing a lot more in the coming months as the combination of mental health and blockchain is sure to attract many.
My Top 5 Tutorials Of 2019
Tags: tutorials, react, vue, angular
Published: 2019-12-26 07:36:51

---
title: My Top 5 Tutorials Of 2019
published: true
description: My Top 5 Tutorials Of 2019 for CodeSource.io
tags: Tutorials, React, Vue, Angular
---

I started CodeSource.io in October 2019 and so far we have received 30k+ page views, which is a good start for a new website, I created this platform to solve some problems which I faced while learning my Tech Stacks.

You may see some Great Courses on CodeSource.io in Coming Months, which will be available for Free.

Okay, that's, much of Introduction For the Platform. So Let's Get Started with the List:

## 5. Server-side rendering in React.js

In this tutorial, I have explained Server-Side Rendering In React, Currently, It has around 1108 pageviews.

You can Read Tutorial [Here](https://codesource.io/server-side-rendering-in-react-js/)


## 4. Create a crud Application using Vue, Node and MongoDB

In this tutorial, I have explained how to build a simple CRUD application using Vue, Node.js, and MongoDB. Currently, It has around 1082 pageviews.

You can Read Tutorial [Here](https://codesource.io/create-a-crud-application-using-vue-node-and-mongodb/)

##3. Setting up React Authentication using JWT

In this tutorial, I have explained how to manage React authentication in SPAs.Currently, It has around 1351 pageviews.

You can Read Tutorial [Here](https://codesource.io/setting-up-react-authentication-using-jwt/)


##2 Build a server monitoring app using Node & Angular

In this tutorial, I have explained how to build a Real-time server monitoring app using Node and Angular that will show the free memory available on our server.
Currently, It has around 1544 pageviews.


You can Read Tutorial [Here](https://codesource.io/build-a-server-monitoring-app-using-node-angular/)


##1. Build a Crud application using Vue and Django

IN this tutorial, I Have shown you how to build an API with Django REST Framework and an SPA with Vue.js. Currently, It has around 3497  pageviews.

You can Read Tutorial [Here](https://codesource.io/build-a-crud-application-vue-and-django/)


If you have any Suggestions, Ideas, and Topics for the Platform please let me know in the Comment Section Below

Thank you.
How to extract high-frequency words in NLTK
Tags: python, nltk
Published: 2019-12-27 06:03:50

---
title: How to extract high-frequency words in NLTK
published: true
description: While reading an official document for NLTK(Natural Language Toolkit), I tried extracting words which are frequently used in a sample text. This time, I tried to let the most frequency three words be in a display
tags: python, nltk
---

While reading an official document for NLTK(Natural Language Toolkit), I tried extracting words which are frequently used in a sample text. This time, I tried to let the most frequency three words be in a display.

## Development
* Python
* NLTK

## Install NLTK
```terminal
$ pip install nltk
```

## Extract High-frequency words

Let me the coding begins. You should download `punkt` and `averaged_perception_tagger` initially for running word-tokenizing a part-of-speech acquisition. Next, read a sample text, and convert it to word-separation from text. And remove non-Noun things from this result. Finally, get the most frequent words.

### Download

```python
import nltk

nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
```
Import nltk, and then download `punkt` and `averaged_perception_trigger`. Once downloaded in the environment, you don't have to do it again.

### Convert texts to word-tokenizing

```python
raw = open('sample.txt').read()
tokens = nltk.word_tokenize(raw)
text = nltk.Text(tokens)

tokens_l = [w.lower() for w in tokens]
```

Prepare some essays or long texts. After reading this, it should be word-tokenized. Then, set up capital cases to lower cases, they should be recognized as the same.

### Extract only Noun

```python
only_nn = [x for (x,y) in pos if y in ('NN')]

freq = nltk.FreqDist(only_nn)
```

Remove non-noun words from this result. And calculate how frequency these words are included.

### Get the most frequent three words
```python
print(freq.most_common(3))
```

After counting frequent words, you can get the top three ones by `most_common()`.
My DevOps Learning in 2019. Share Yours:) 
Tags: devops2020, cloudnative, serverless, developers
Published: 2019-12-27 05:54:47

---
title: My DevOps Learning in 2019. Share Yours:) 
published: true
description: 
tags: devops 2020, cloud-native, serverless, developers
cover_image: https://thepracticaldev.s3.amazonaws.com/i/kemja17va164zyfjs6av.png
---

1. [DevOps](https://theagileadmin.com/what-is-devops/) is not an individual role, it is a group effort.

2. Your infra should be able to handle a failed deployment automatically and rollback. If it can’t, you’re doing it wrong.

3. The meaning of DevOps is different to different people.

4. If any task cannot be automated, remove it instantly from the task list.

5. [Communication](https://techbeacon.com/devops/devops-importance-clear-communication) is more important than tooling and will make or break an organization.

6. Shift the focus of Security to the left in the development life-cycle.

7. Using Jenkins != CI/CD or DevOps …

8. Always design with autoscaling in mind. Automate-all-the-things. One-click deploy to one-click revert.

9. Create ready to use images in AWS and use those images for auto-scaling instead of scripted from GitHub builds.

10. There is a real skillset shortage in the DevOps field. See ['Why it is difficult to hire for DevOps?'](https://thenewstack.io/why-it-is-difficult-to-hire-for-devops/)

11. The [CI/CD pipeline](https://www.plutora.com/blog/understanding-ci-cd-pipeline) is one of the best practices for DevOps teams to implement, for delivering code changes more frequently and reliably.

12. Do not automate a bad process, you end up with an automated bad process — [Credits: DOES18 ]

13. Testers who know how to code and automate scripts to test various cases are in massive demand in DevOps.

14. Add monitoring to infrastructure as well as applications. The monitoring system should send alerts on every important events.

15. Utilize [Infrastructure as a code](https://www.hashicorp.com/resources/what-is-infrastructure-as-code) templates to build the infra. Ex. cloud-formation, terraform etc


16. [Serverless](https://hackernoon.com/what-the-hell-does-serverless-mean-219a5f6e3c6a) is not actually serverless, it is simply 'pay as you use' model

17. [Cloud-native](https://www.infoworld.com/article/3281046/what-is-cloud-native-the-modern-way-to-develop-software.html) is not a synonym for microservices or Kubernetes, it is all about utilizing the advantages of the cloud computing model

18. Make use of container registries for publishing, storing, locating, downloading, and managing container images
{% link https://dev.to/pavanbelagatti/the-importance-of-container-registry-in-devops-for-developers-3oi8 %}

19. Golang and DevOps are made for each other.
{% link https://dev.to/pavanbelagatti/go-lang-devops-a-match-made-in-heaven-4dbk %}

20. The recent cloud acquisitions have created confusion in the market, it is time to step up and make a move.
{% medium https://towardsdatascience.com/the-cloud-acquisition-gameplay-9668bd0ea0a1 %}

Your turn. Share your learnings:)
Question on 'contributing to open source project'
Tags: opensource, mozilla, javascript, help
Published: 2019-12-27 05:37:22

I want to contribute to open source projecs like mozilla web docs(mozilla mdn) but I don't know how to contribute in this project. I read its contribution guide, it tells that it uses docker and many other things.I stuck in other projects as well.
But I know git and github, and I did previously 1 contribution in 1 open source project
So,I want to know how to contribute to open source projects like mozilla.
Please help me out.
Wordpress / Reddit & imgur & Twitter api / social login / help me connect I feel so stupid 
Tags: help
Published: 2019-12-27 05:33:21

I’m trying to use these apis with my Wordpress site but unsure what to do. I have made a Reddit app (so I have the codes for oauth2 and have gotten an access token using this aardvark thing) also did the same with twitter and imgur. I have postman & node.js on my laptop but can’t get a hang of either and I have been trying to read about making requests just using Wordpress functions like remote_get() or something. Or are you able to communicate with said apis using webhooks? Orr? I’m really new to this. I can’t figure out where I need to put all the urls for the endpoints and crap in my site? I’ve been messing around with postman a little with the imgur api I had downloaded the postman library for that. But it would be cool to use a wrapper for the Reddit api like snoowrap because I understand which endpoints I need and the info I’m wanting to post and get (or the php wrapper phapper I think) but not sure how to connect anything. There’s too many ways to do it..
Dec. 27, 2019: What did you learn this week?
Tags: weeklylearn, discuss, weeklyretro
Published: 2019-12-27 05:00:28

It's that time of the week again for the last time this year. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

![Reading a book in windy conditions](https://media.giphy.com/media/fhAwk4DnqNgw8/giphy.gif)

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{% link https://dev.to/jess/what-was-your-win-this-week-3gjl %}

![Young kid winning on Jeopardy](https://media.giphy.com/media/2sXf9PbHcEdE1x059I/giphy.gif)
Learn Angular from Scratch and Go from Beginner to Advanced
Tags: angular, javascript, webdev, tutorial
Published: 2019-12-27 04:16:55

## Complete Angular Course: Go From Zero To Hero 

### Complete Angular course. Learn Angular from scratch and go from beginner to advanced in Angular.

Welcome to this course "Complete Angular Crash Course: Learn Angular from Scratch and Go from Beginner to Advanced". In this course you will learn from scratch. We will assume that you are a complete beginner and by the end of the course you will be at advanced level. This course contain Real-World examples and Hands On practicals. We will guide you step by step so that you can understand better. This course will allow you to work on the Real-World as a professional.

What you'll learn
* Learn The Basics
* Learn Advanced Methods
* Step By Step Instructions So That You Can Go From Zero To Hero
* A Complete Tutorial Explaining Everything You Need To Know
* Real-World Examples With Hands On Tutorials
* Get Answers To Your Every Single Questions

{% youtube DLJT2bL3jA0 %}
Angular 8 Redirect to Another Page Example
Published: 2019-12-27 11:41:20

---
title: Angular 8 Redirect to Another Page Example
published: true
date: 2019-12-27 04:04:46 UTC
tags: 
canonical_url: https://www.itsolutionstuff.com/post/how-to-redirect-to-another-page-in-angularexample.html
---

Today i am going to write angular tutorial about how to redirect to another route in angular 8 application i want to give very simple example of redirect to another page in route file we can easily redirect to another route using redirectTo in angularYou can simply redirect to page in angular
Analyzing Startup Times with Systemd
Tags: linux
Published: 2023-01-06 01:47:21

---
title: Analyzing Startup Times with Systemd
published: true
date: 2019-12-27 03:52:59 UTC
tags: Linux
canonical_url: https://brandonrozek.com/blog/systemdstartup/
---

Startup times feeling slow? Check to see if there are any uneeded services slowing you down!

To see how long it takes to bootup

```
systemd-analyze

```

To see the length of time each service took to initialize

```
systemd-analyze blame

```

Then you can `disable` any services that you don’t need.
GitHub Tutorial — Basic Commands to Get Started
Tags: git, github, tutorial
Published: 2019-12-27 03:46:07

Commands for setup:
1. git config --global user.name “John Doe”
2. git config --global user.email “example@email.com”
3. git config --list
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ycp0ayor1ksdasfezhoq.jpg)

Commands to update remote repository:
1. git add --all
2. git commit -m ‘update’
3. git push
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/o94q3jna2dwadthnn51v.jpg)


Command to update local repository:
1. git pull
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/hfff23yl7wupqodxxjss.jpg)


Here is a youtube video I posted that is more detailed on how to use these commands.
{% youtube C7GeqBQoq4o %}
I'm a professional React developer, and here's how I create a GraphQL Microservices-powered React app with Node.js and MySQL. #6
Tags: react, node, webdev, javascript
Published: 2019-12-27 03:43:19

**Update:** [Part 7 is out!](https://dev.to/bettercodingacademy/full-tutorial-microservices-using-graphql-react-node-js-sequelize-and-mysql-7-1ocd)

**About Me:** I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at [Better Coding Academy](https://codebetter.com.au), and as part of what I do, I post videos on our YouTube channel at [https://www.youtube.com/c/BetterCodingAcademy](https://www.youtube.com/c/BetterCodingAcademy).

_(Subscribe for awesome web development content!)_

This is part 6 in a full tutorial on how to set up a GraphQL Microservices-powered React app. ([Here's part 5!](https://dev.to/bettercodingacademy/i-m-a-professional-node-js-developer-and-here-s-how-i-create-graphql-microservices-using-node-js-and-mysql-5-13e7))

In this video, I start working on hooking up the frontend React app to the backend microservices, whilst further fleshing out the functionality present in both the API Gateway and the Users Services.

I hope you enjoy!

{% youtube EU7eSofuuZ8 %}

Happy coding!

Full source code: [https://github.com/parkroolucas/microservices-demo](https://github.com/parkroolucas/microservices-demo)
11 JavaScript Features Every Developer Should Know in 2020
Tags: javascript, webdev, tutorial, beginners
Published: 2019-12-27 03:32:56

### Important JavaScript Concept and Features Every Developer Should Know 

If you work with JavaScript at all, you need to understand and be able to work with its most critical features.

In this course we focus on 11 of those critical features. Each feature is addressed on its own, but the course is also structured to build on previously taught features and concepts. We start with some of the most basic features like scope and hoisting, but eventually tackle more complex features like closure and immediately invoked function expressions.

What you'll learn
* Scope
* Hoisting
* Prototypal Inheritance
* Higher Order Functions
* Callbacks
* Immediately Invoked Function Expressions
* Closure
* The Module Pattern
* An Understanding of the keyword this
* Promises

{% youtube JpnYz23ZLMg %}
Hello, World!
Published: 2019-12-27 02:56:41

Hello, everyone!

I've always wanted to start blogging and write about technology, but I was never confident enough. I was constantly making excuses to avoid writing... "not good enough", "not interesting enough", "my english is bad", "no one would read" and so forth. 

Over the last few months I've been thinking about my career and life and I realized, among other things, that I spend too much time thinking instead of acting. I have a lot of ideas, stories and thoughts I want to share with you and... why not? I'm extremely excited to start this new journey! 

Also feel free to correct my grammar - I barely blog even in Portuguese, writing in english will be a challenge for sure! :D

I also thank [Bruno Drugowick](https://dev.to/brunodrugowick) for encouraging me to start writing, check his blog posts! :)

See you soon!