teleren/devto huggingface dataset:
Logging in K8s with Elasticsearch, Fluentd and Kibana | Complete Course 🚀
Tags: kubernetes, elasticsearch, kibana, docker
Published: 2020-09-13 18:03:49

###Configure logging with ElasticSearch, Fluentd and Kibana for your Kubernetes cluster 🚀 ###

► Get **30% off** - with this code: UDEMY_NANA_JAN2021: [Udemy course here](https://www.udemy.com/course/logging-in-kubernetes-with-efk-stack/?couponCode=UDEMY_NANA_JAN2021)

--------


###Course Overview ###

I designed this course to guide you **step-by-step** through a somewhat complex process of 
1. setting up a k8s cluster from scratch, 
2. deploying your own dockerized applications inside and 
3. configuring a fully functioning logging inside the cluster using EFK stack.

So we’ll go through and learn the whole process end-2-end.

![Logging in Kubernetes EFK Course Overview](https://dev-to-uploads.s3.amazonaws.com/i/0zkksjkiocuyp05ndhvb.png)

### What you will learn 🤓 ###
The individual steps we’ll go through and all the things you will learn in this compact course:

- We will configure Java and NodeJS applications to **produce logs**, package them into **Docker images** and push into a Docker private repository
- We will **create a K8s cluster from scratch** on Linode cloud platform (with LKE) 
- You will learn how to host your own docker images on a private repository and deploy them into k8s cluster

####Learn the concepts of ELK, EFK and related K8s components ####
- You will learn concepts of **Elasticsearch, Kibana, Logstash and Fluentd**

![Elasticsearch, Fluentd and Kibana](https://dev-to-uploads.s3.amazonaws.com/i/ggpxiapbbcw5nnuyppv4.png)

- as well as concepts of StatefulSet and DaemonSet components and Helm technology. 

#### Deployment of EFK stack ####
After understanding all these concepts, we will deploy:
- ElasticSearch (with data persistence,
- Kibana and 
- Fluentd applications 
in K8s in an easy way using Helm charts

####Collecting, processing and visualizing logs####
Finally we will configure:
- collecting and processing of the logs with Fluentd 
- and visualizing the application logs with Kibana

### From theory to practice 🙌🏼  ###
I explain all the concepts theoretically with simple animations and visuals, so that you understand how they work. And then we go through demo parts to set up these technologies, so that you also learn how to use them in practice. 

For that it’s of course important that you practice along with me. I have prepared a git repository with all the needed resources to follow along easier. 

--------

► Get **30% off** - [Udemy course](https://www.udemy.com/course/logging-in-kubernetes-with-efk-stack/?couponCode=UDEMY_NANA_JAN2021)

----------

**Like, share and follow me** 😍 for more content:
- [Private FB group](https://www.facebook.com/groups/techworldwithnana)
- [Twitter](https://twitter.com/Njuchi_)
- [YouTube](https://www.youtube.com/channel/UCdngmbVKX1Tgre699-XLlUA?sub_confirmation=1)
- [Instagram](https://www.instagram.com/techworld_with_nana/)
- [LinkedIn](linkedin.com/in/nana-janashia)
Var, let, const and everything in between
Tags: javascript, variables
Published: 2020-09-13 17:55:22

Var,Let and Const. All 3 are different ways to declare variables in javascript. They are different from one another in ways that change the way how they are used. Let me explain...


VAR was the go to declaration for a long time until ES6 came out in June of 2015. One of the new additions was let and const.

The first major difference occurs in the Scope of these variables.

##Scope - determines the accessibility of variables

* Global Scope - Available throughout the whole window

* Function Scope - Available **ONLY** in that function {} 

* Block Scope - Available **ONLY** within its {}

###Var can be declared to have global and function scope.
```javascript
var intro = "hello";// available globally

function end2020pls (){
    var outro = "bye"; // only available here
}

console.log(intro) // works
console.log(outro) // error outro not defined
```
###Let can be declared within block scope.
```javascript
function end2020pls (){
     let newintro = "say Hi";
     console.log(newintro); // say Hi
}

console.log(newintro)// error newintro not defined
```
* However, the same let variable can exist in different scopes
```javascript
let intro = "hello";// outside

function end2020pls(){
     let intro = "not today";// inside
     console.log(intro); // not today
}

console.log(intro); // hello
```
###Const can be declared within block scope
```javascript
function end2020pls(){
     const newoutro = "see you later, alligator";
     console.log(newoutro);// see you later, alligator 
}

console.log(newoutro);// error newoutro is not defined

```
##Updating and Redeclaring

###Var can be updated and redeclared.
```javascript
var intro = "hello"; 
var intro = "goodbye"; // works
intro = "suh dude"; // works
```
###Let can be updated but **CANNOT** be redeclared.
```javascript
let intro = "hello";
let intro = "goodbye"; // error intro has already been declared
```
###Const **Cannot** be updated or redeclared.
```javascript
const intro = "hello";
intro = "yo"; // error Assignment to constant variable
const intro = "yo"; // error intro has already been declared
```
###Objects declared with Const cannot be updated or redeclared its properties can.
```javascript
const person = { 
     name: "bob";,
     age: "99";
}

person.age = 67; //works
```
##Hoisting - a javascript mechanism where variables and function declarations are moved to the top of code execution

###Var gets hoisted but is undefined

#####So this
```javascript
console.log(intro);
var intro = "hello";
```
#####is actually 
```javascript
var intro;
console.log(intro); // intro is undefined
intro = "hello";
```
###Let gets hoisted but is not initialized.
```javascript
function end2020pls(){
     console.log(x)//error ReferenceError x is not defined
     let x = 2;
}
```

###Const gets hoisted but is not initialized.
```javascript
function end2020pls(){
     console.log(x) // error ReferenceError x is not defined
     const x = 2;
}
```
Thats all for now, feel free to reach out if I am missing something ;)
Generate QR Code using php
Tags: qrcode, php, webdev, qr
Published: 2020-09-13 17:47:48

These days, the term QR code is gaining more popularity due to its common use in daily routine life. It is commonly used on online shopping and digital payment. A QR code (Quick Response code) is a two-dimensional barcode that is first designed in 1994 for use in the automotive industry in Japan. 

It is a machine-readable label that contains some amount of information about the product or item. This QR code can be easily scanned by any scanner device and able to read the stored information.

In this article, I will show you to easily <a href="https://www.discussdesk.com/how-to-generate-qr-code-using-php.htm">generate QR code in PHP</a>. I have used PHP as a language to generate QR code because it is a widely used language online. Now I will be the PHP QR Code library to generate QR code.

There are several QR code generators is available online but there are some situations where we need to integrate custom code in our application. So this tutorial will get more insight about to generate QR code using PHP.

Here I will create a file in PHP called index.php

```
<?php
include('library/php_qr_code/qrlib.php');
$frm_link ="";
$filename="";
$errorCorrectionLevel="";
$matrixPointSize="";
$framePointSize="";

QRcode::png($frm_link, $filename, $errorCorrectionLevel, $matrixPointSize, $framePointSize);

?>
```


These are the argument passed in above function QRcode::png()

`$frm_link` : A input parameter for which we need to generate QR code.

`$filename`: It is just a path or location to store generated QR code. This also defines the name of each QR code.

`$errorCorrectionLevel` : It shows the capability.

`$matrixPointSize` : It defines the pixel size of QR code.

`$framePointSize`: The size of QR code.

These generated QR codes can also be stored in the database by its generated name for further use in our application.
A laptop - a reason to choose your new employer?
Tags: career, discuss, interview
Published: 2020-09-13 17:18:21

Last time I've went through the hiring process it was 2013 and since then a lot has changed. At least that's what I've been told.

After a few discussions with some recruiters on LinkedIn I scheduled 3 interviews with some companies that seemed interesting for me.

Don't get me wrong, I'm not some sort of guru or God-of-coding. Actually, I think of myself as quite a mediocre developer, but I like to believe I compensate with dedication and hard work. Therefore, I look for companies that activate in a field that's of interest for me.

![pressure](https://content.linkedin.com/content/dam/business/talent-solutions/global/en_us/blog/2018/03/job-description-mistakes-2.jpg)

I never discuss money or perks in a first interview with a potential employer.  Mostly, because it's not very relevant for me. Culture, for example is much more important to me. However, in all three interviews the guy on the other side of the skype-line wanted to impress me with perks. Fruits, coffee, parking spot, all kinds of random stuff. But the weirdest stuff all 3 employers from 2 different countries offered one exquisite perk:

**A shiny and new MacBook Pro**

First time I heard this I was a bit confused, but I moved one. The 3rd time I asked myself like WTF is this and why is it so important to mention it to me in the first interview (instead of, for example, telling me they have a budget from X to Y EURs for this position)?

I mean, since when is a laptop a perk? And why does "everyone" assume I want a Mac in the first place? What if I'm the "Surface Book" type of guy?

![Gaming on Mac](https://forums.macrumors.com/attachments/gameing-on-a-mac-jpg.684492/)

As I said, I've haven't been looking for a new employer in quite a while, however, an my previous jobs nobody ever talked about these kind of stuff. At my first job, I had a range of stuff (from monitors to laptops) that I could choose from. I wasn't forced on a Mac, or a Lenovo or whatever.

At my current working place, instead of forcing everyone to use the same machine everyone had the chance to choose their own working environment. Some chose a Mac, some chose desktops, some chose Lenovos or Dells, whatever they wanted. 

We spend at least 8 hours a day using those machines and gadgets. Don't tell me there are still companies out there that expect a develop to work from a non-mechanical keyboard?

Last but not least, at my third interview I told the guy that for me it's very important to have 3 monitors (not because they are SUPER necessary, but because I got used to it and they are usually cheap since I'm not a designer) and the freedom to choose my own keyboard, mouse and chair.

![gaming-setup](https://i.ytimg.com/vi/NcC2j2ZsQb0/maxresdefault.jpg)

The guy was so surprised that a "shiny new MacBook" wasn't enough to shut me down that he couldn't reply if that's possible or absolutely not.

I have 3 more interviews scheduled next week. Can't wait to see what else I learn.

What's your take on the subject?
Is It Worth To Buy InMotion Hosting In 2020
Tags: webhosting, inmotion
Published: 2020-09-25 16:32:09

---
title: Is It Worth To Buy InMotion Hosting In 2020
published: true
date: 2020-09-13 17:10:07 UTC
tags: Webhosting,InMotion,webhosting
canonical_url: https://codesquery.com/inmotion-hosting-review/
---

InMotion is one of the leading WordPress web hosting provider. It is founded in 2001 and since then they never looked back. They currently have two data centers in Los Angeles and Virginia Beach having more than 300000 domains. They mostly customers are beginners bloggers and small wordpress websites owners. They claim themselves as one [...]

The post [Is It Worth To Buy InMotion Hosting In 2020](https://codesquery.com/inmotion-hosting-review/) appeared first on [CodesQuery](https://codesquery.com).
Cloud Resources to run your Machine Learning and Deep Learning Models
Tags: machinelearning, datascience, deeplearning
Published: 2020-09-13 17:05:51

Machine Learning requires a lot of resources for training its models. As normal people rarely possess devices with such high configurations it is the best option to run their models on Cloud. Deep Learning requires more amount of resources than traditional Machine learning models like SVM, Decision Trees and Random Forests etc. because it performs the task of Feature Extraction along with Training of models. The best way to run Deep Learning models is to host them on cloud and rent the resources. Some of the famous and good resources for running Machine Learning and Deep Learning models is listed below.

## Google Colaboratory
This one of the most simple ways to run Machine Learning models. It allows you to create Jupyter notebooks. It also allows you to choose hardware between CPU, GPU, and TPU. The link to Google Colab is https://colab.research.google.com
## Kaggle Kernels
Kaggle.com is the best community for Data scientists it provides Mini-Courses to learn DataScience and Kernels to run models. It is now owned by Google and Kaggle kernels are basically based on Google Colab. Kaggle kernels are now known as notebooks and the link is https://www.kaggle.com/notebooks
## Paperspace
Paperspace is another very good alternative to host and run your ML models. It is very easy to deploy the models and it is also providing MLOps options. The link to paperspace is https://www.paperspace.com
## Vast.ai
This is a GPU rental platform where you can rent GPUs hourly based on your requirement and also the cost is flexible. The link to this resource rental platform is https://vast.ai
## Oracle Cloud
This is the official cloud platform of Oracle. A person requires some experience in deploying their application here. It can be used for many purposes other than Deep Learning and Machine Learning. The link to the cloud by oracle is https://www.oracle.com/cloud
## Amazon Web Services(AWS)
AWS as it is popularly known is the most popular Cloud Hosting platform. It is also multipurpose and can be used for other tasks. The link to AWS is https://aws.amazon.com
## Microsoft Azure
The Microsoft alternative of AWS. In these platforms one requires some training before running their application or train their models. The link to Microsoft Azure is https://azure.microsoft.com
## Google Cloud Platform(GCP)
It is another option from Google for hosting on Cloud not limited to ML and DL. It can be termed as the alternative to AWS. The link to Cloud Platform by Google is https://cloud.google.com
For your next post!
Tags: javascript, vue, writing, productivity
Published: 2020-09-13 17:01:38

Get some amazing GIFs and images of glitched VueJS logo [here](https://archive.org/details/vue-glitch) for your next VueJS post! You can use them for free as they are provided under the _Creative Commons_ license. The cover image of this post is also one of them.
Learning something new, read this 👇
Tags: productivity, writing, beginners
Published: 2020-09-13 16:49:54

Don't search and accumulate best resources to learn anything. Too much information leads to poverty of attention. 

Start learning with documentation, (it's the best source to learn anything) it's difficult, I know. But once you're comfortable with it, there's nothing like that. 

Don't stuck in learning loop; build something, whether it's small (even a program to convert temperature unit, a simple bash script, a static web page) or big (an android app, a project around real world problems), it doesn't matters! Building is important! Build projects that matters, to you or community! 

Also, try to do some documentation about your project, like how it works? About dependencies? It'll teach you about how real and big projects are developed. 

You'll learn more than anything while making a project. Once you're done with it, push it to Github, show your work to the world. Write a blog or make a tutorial about your learnings and findings, share it with the people. 

If you're comfortable with the language or tool now, try to find some open-source project around it, look for the issues and try to fix them (it's not that easy but people like you are doing it, and so you also can), make a pull request and get your code merged into that repo. Believe me, once you'll done it successfully, you'll start loving it! 

This is the path of growing.
How to skip responsive design with Cloudflare + Developer Blog
Tags: writing
Published: 2020-09-13 16:45:24

# Prerequisites:

* Active Domain
* Cloudflare Registration
* DevDojo registration


# Story & Implementation

This is going to be a quick post in which I want to share with you an awesome combo I discovered and am using on my [website](https://asciinaut.sh). So a little back story, I created and launched my website - asciinaut.sh. After 2 days of hardcore documentation, I finally managed to create something from scratch and not use a ready template. As a new developer, I think you can imagine what is happening with my head when it comes to full-stack... trying to learn HTML + CSS + JS + PHP (Laravel) in one take is... well, a little hard.

Why I'm telling you this, is because I now absolutely hate transforming desktop-ready websites into responsive, mobile-friendly versions of themselves. Anyway, so I am creating a blog and am struggling (more like 'sick of' adjusting stuff) with the mobile version even though I am using bootstrap. What I thought of is that before I created my own blog, I was already 50% done - I was using [DevDojo's Developer Blog](https://devdojo.com/devblog) feature & I make use of Cloudflare's free plan.

What did I do? I used Cloudflare's mobile redirect with a CNAME of my DevBlog's URL - dennis.devdojo.com. And that's it - I now have a mobile version of my blog. More importantly - a mobile version that I don't have to maintain. Thanks, DevDojo!

# Implementation

Assuming you already use Developer Blog and have a domain with DNS managed by Cloudflare, you should do the following:

### Cloudflare setup
1. Log into your Cloudflare dashboard
2. Navigate to DNS
3. Create a CNAME record of your domain (e.g. mobile.example.com)
4. Navigate to Speed -> Optimization
5. Scroll to the bottom section (Mobile)
6. Select the CNAME from the dropdown menu on the right of the section
7. Select 'Keep Path'
8. Select the button to turn green - On.

### Developer Blog setup
1. Open your Developer Blog in DevDojo.
2. Input the mobile version URL of your website (e.g. mobile.example.com)

And that's it! In a couple of minutes, you are all set up. Navigate to your website from your phone and enjoy the magic!

# Conclusion

What is the conclusion? We as a developer community seem to have a great arsenal of tools to work with while creating online content... and I love it!
[Tutorial Linux] Terminal: Informações sobre o usuário
Tags: who, whoami, linux, terminal
Published: 2020-09-13 16:39:45

Para verificar seu nome de usuário, digite no terminal: 

```
$ whoami
```

- **$** indica que você deve usar o **usuário comum** para fazer essa operação.

- **whoami** comando que identifica o usuário.

![who am I](https://dev-to-uploads.s3.amazonaws.com/i/is3aikcuxp16jrojhe5i.png)

Para verificar os usuários que estão conectados a máquina.

```
$ who
```

- **who** retorna quem está logado na máquina

É possível estar conectado e não ser o usuário (no caso de servidores).

![who](https://dev-to-uploads.s3.amazonaws.com/i/rf3gqae99extb328zs6i.png)

Para verificar os dados do usuário e os grupos o qual ele faz parte, digite:

```
$ id
```

![id](https://dev-to-uploads.s3.amazonaws.com/i/c48goahdmaqy9rbgu83v.png)

Com o argumento **-u** temos o número de identificação do usuário atual.

```
$ id -u
```

![id -u](https://dev-to-uploads.s3.amazonaws.com/i/lhdiv5ltn9iw8nptntk7.png)

Com o argumento **-un** temos apenas o nome do usuário atual.

```
$ id -un
```

![id -un](https://dev-to-uploads.s3.amazonaws.com/i/v1y2dgqu1abaj5343rg9.png)

Para saber a quais grupos o usuário atual pertence, digite:

```
$ groups
```

![groups](https://dev-to-uploads.s3.amazonaws.com/i/8bpd4kyo27tepw82m814.png)

Para saber a quais grupos um determinado usuário pertence, digite:

```
$ groups <nome_do_usuário>
```

- digite o nome do usuário sem os sinais **< >**.
GoPlaces: Go Algolia Places API Wrapper
Tags: go, algolia, geosearch, geocoding
Published: 2020-09-13 16:10:15

---
title: GoPlaces: Go Algolia Places API Wrapper
published: true
description: Simple wrapper for Algolia Places API with extended functionality
tags: golang, algolia, geosearch, geocoding
cover_image: https://seekvectorlogo.com/wp-content/uploads/2019/07/algolia-vector-logo.png
---

Hi, guys!
I'm new to the Golang and that ecosystem, so I'd like to share with you my small experimental library :)

Sometimes geocoding functionality is needed on the server side, but Algolia Places only provides basic API for that purpose. So, I decided to wrap that API with small Go library to simplify work.

https://github.com/yuriizinets/goplaces
Uxcel: UX/UI for developers and designers
Tags: ux, design, webdesign
Published: 2020-09-13 16:10:14

## Meet Uxcel

A few weeks ago I stumbled upon [Uxcel](https://uxcel.com/), an app that teaches you UX/UI. It looked really clean, so I decided to give it a go. The app has a **Course**, **Lesson of the Week**, and a **UEye Training** sections.

First I finished the UX/UI Design Foundation course. It has 6 levels which covers pretty much everything, like Color Theory, UI Design Principles, Typography, Iconography, Terminologies, Animations etc... The app's teaching method is fun. It shows you either 2 different images and you need to select the correct one, or 1 image with multiple answers. After you pick/answer it shows you the correct answer and a brief explanation.

![Screenshots of the app](https://cdn.hashnode.com/res/hashnode/image/upload/v1600011317011/sbjpDJUin.png)

When I finished all 6 levels it generated a nice [certificate](https://certificates.uxcel.com/DP1AFJPVJJHL) for me, which felt good and I shared it on LinkedIn.

After finishing the course, I started playing around with the UEye Training. I can't tell you how **addicting** and fun this is! It works similarly to the course, you're presented with 2 pictures, one of them has a UI mistake, the other one is correct. You have 20 seconds to identify the correct one. When you pick the correct one it gives you points. You can **really** benefit from this if you regularly do the UEye Training. They also have a configurable Reminder, which is a cool feature.

Since finding out about it, I've never missed a day without doing some UEye Training. They've recently added some new designs and it was so fun noticing the little mistakes. The points system and leaderboard brings more motivation to keep practicing.

## Pro tip:
Uxcel is a PWA, a Progressive Web App. This means that you can install it on your Home screen on your smartphone. Here's how to do that:
* On iOS: Open [app.uxcel.com/learn](https://app.uxcel.com/learn) in Safari, click on the Share button (the one in the middle), and scroll down. You should see a "Add to Home Screen" option.
* On Android: Open [app.uxcel.com/learn](https://app.uxcel.com/learn) in Chrome and you should see a banner on the bottom saying "Add to home screen".

Make sure to install it on your smartphone, so you can practice anytime and anywhere.

Also, They regularly update their UX/UI Design Foundations course, so even if you complete it, click on the "Review Course" to see if they've added something new.

## Let's practice together

Whether you're a developer or designer, Uxcel is one of the tools that can help you become good at UX/UI Designing. Keep practicing and you'll start to see progress. So, [join me](https://uxcel.com?invite=9DUE0MRLSJTU) and let's practice together.

---
>
Show some love:

{% twitter 1305174887057756161 %}