teleren/devto huggingface dataset:
Google Kubernetes Engine - How to deploy Spring Boot microservice - Part 4(2)
Tags: kubernetes, devops, googlecloud, springboot
Published: 2020-07-10 10:15:40

(***For similar detailed lab session content follow me YouTube Channel*** - [Jhooq](https://www.youtube.com/channel/UC7p4oXcPbgk_yTSHK7QlkSg))


{% youtube ejwiMFJETdQ %}
Day 39 : #100DaysofCode - I updated my github profile page
Tags: 100daysofcode, codenewbie
Published: 2020-07-10 01:34:34

Today I saw the following dev.to post from Waylon Walker and I was inspired. 

{% link https://dev.to/waylonwalker/what-s-on-your-github-profile-40p3 %}

Within the comment section I saw the profile of Mpho Mphego:

{% github mmphego/mmphego no-readme %}

Mpho Mphego was influenced by CyrisXD profile:

{% github cyrisxd/cyrisxd no-readme %}

& I wanted to create something just like it, except I had no idea how to. So I google searched how to create a css/js typewriter functionality on <a href="www.codepen.io">codepen.io</a> and created the following:

{% codepen https://codepen.io/SincerelyBrittany/pen/xxZjBqX %}

The next step was to figure out how on EARTH do I make that into a gif? Well google helped me out once again and I was able to create one using <a href="https://giphy.com/apps/giphycapture"> giphy capture. </a>

What I love about coding is that it allows you to be inspired by others to create something else. However, you should always give credit when credit is due and I would like to thank the people above for their creativity and knowledge.

Check out my updated Github profile below:

{% github SincerelyBrittany/SincerelyBrittany %}

Song of the day:

{% soundcloud https://soundcloud.com/joycewrice/thats-on-you %}
Hey DEVs! How 🧠 AI is going to disrupt our lives as a coder?
Tags: machinelearning, datascience, discuss, career
Published: 2020-07-10 09:11:05

There has been a lot of discussion around that AI will create mass unemployment and all the jobs that aren't that much creative or something like that will be replaced by robots and machines by the virtue of AI and automation.

### What's your take on this as a programmer?
### Are we going to lose our jobs or we are to remain here?

👇 Share your opinions in the comments below!
Learn Shell Scripting
Tags: career
Published: 2020-07-10 07:14:15

We just launched our latest course on Shell Scripting for Beginners. If you want to increase productivity by automating daily repetitive tasks in Linux, then this course is for you. This is for those who have always wanted to learn shell scripting but didn't have sufficient coding or programming experience to get through it.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/womg3te2f03pfmb2cd7b.png)

This course is a beginner level course and is for those who are absolute beginners to shell scripting or programming. System Administrators, Developers or IT engineers who do not have any prior programming experience can go through this course to gain basic knowledge of shell scripting. As part of this course we will explain the necessary programming concepts required for shell scripting.

###Learn by doing!
And we learn in a fun way using examples of a space station launching missions to explore the universe. As well as our embedded hands-on labs that will make sure you gain enough hands-on practice right after you learn each concept. We will test your scripts to make sure you have written them correctly and also provide feedback.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/octf1okuhrxlhs91z7ze.gif)

This course is a beginner level course and is for those who are absolute beginners to shell scripting or programming. System Administrators, Developers or IT engineers who do not have any prior programming experience can go through this course to gain basic knowledge of shell scripting. As part of this course we will explain the necessary programming concepts required for shell scripting.

####This course is divided into different sections where we discuss:

* What shell scripts are
* Getting started with your first shell script.
* Making your scripts executable.
* Variables
* Conditional statements
* For loops
* While loops
* Arithmetic operations
* Best practices

####Project
Automate the Deployment of a 2 tier application just with Shell Scripts. Watch me do it following best practices.

And throughout the course we will also discuss best practices while scripting such as what to do and what not to do and how to develop a script that’s reusable. We will also see some tips and tricks such as some IDEs and utilities that can help you improve your scripting skills.
Check it out and let me know what your thoughts.

####[Shell Scripts for Beginners](https://bit.ly/ShellScriptsonDevCommunity)
Show me your personal website/portfolio
Tags: discuss, healthydebate, webdev
Published: 2020-07-10 09:00:40

So, show me your website/portfolio and tell me what technologies do you use and why?

Here is mine https://thedev.sk

It uses Preact and Typescript, Bundled by Parcel, everything is prerendered and hosted on http://now.sh

FYI: the image for the site background is a render of a 3D model made in ZBrush.

I know the whole thing is a bit overblown, it would take less time to build the whole thing from scratch without preact, ts..., just good old html/css/vanilla js, but I wanted to try Preact and Parcel, and I saw an opportunity to use them in this side project.

It's your turn, show me what you got!
SRT Server in NodeJS
Tags: node, javascript, streaming, video
Published: 2020-07-10 08:54:49

Part of a series of videos we go through the necessary building blocks to build an SRT to WebRTC gateway in NodeJS. SRT in terms of the transport protocol called Secure Reliable Transport.

{% youtube f3kldDP-RVc %}

In the first episode we go through how to build an SRT server using the NodeJS native bindings provided by our `@eyevinn/srt` library.

Install the library

```
npm install --save @eyevinn/srt
```

This will download the SRT SDK and compile it on your computer. Example of a very simple SRT receiver (in listener mode) using the Readable stream API included in the library.


```
const fs = require('fs');
const dest = fs.createWriteStream('./output.ts');

const { SRTReadStream } = require('@eyevinn/srt');
const srt = new SRTReadStream('0.0.0.0', 1234);
srt.listen(readStream => {
  console.log("Client connected");
  readStream.pipe(dest);
});

console.log("Waiting for client to connect");
```
Above example will setup an SRT socket to listen on port 1234 for a connection. Once a connection is established it will read data from the socket and pipe it to a Writable stream that writes to disk.
Find free to use illustrations
Tags: showdev, design, uiweekly, webdev
Published: 2020-07-10 08:50:23

Recently, I have been searching & collecting free to use illustrations that I can use. So I thought, why not share the list with others.

##[Free illustrations](https://freeillustrations.xyz/)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zz5vx4qjlv203dk4zmuu.png)

Find free to use illustrations & vectors for your next project with license & usage details like attribution required or not, free to use in a commercial or personal project and files provided in the free pack.
Path-finding Visualization With Just HTML, CSS & JavaScript
Tags: showdev, tutorial, beginners, computerscience
Published: 2020-07-10 08:46:21

## Motivation
Although I did go through a lot of tutorials and courses on the fundamentals of HTML, CSS & JavaScript when I started learning web development last year, my familiarity with the front end essentials is not at the level that I wish to be. I would like to think that with practice it will only get better. And what better to do than building projects that I think is cool. 

I have always wanted to build a pathfinding visualizer that animates algorithms (I made a sorting [visualizer](https://tlylt.github.io/Sorting-Visualizer/) some time ago). Recently, I have just started my Data structure & Algorithm class as a computer science student. So today, after watching this YouTube video on [Dijkstra's algorithm](https://youtu.be/K_1urzWrzLs), I decided to wait no longer and just start building a simple version of the pathfinding visualization.

## Process
In the process I was able to revisit the following concepts:
1. CSS & HTML
 * CSS flexbox (for centering stuff)
 * CSS grid (to create the 10x10 grid)

2. JavaScript
 * querySelector & querySelectorAll (for selecting DOM elements) 
 * setTimeout (to create animation effect)
 * createElement, getAttribute, setAttribute, appendChild (for modifying the DOM)

3. Algo
 * I wrote the code based on the video explanation of Dijkstra's algorithm, I am not 100% sure it is doing the right thing.

## End Product
After some polishing to make it look better (in fact it took me quite some time :joy: to add in relevant CSS for this to be mobile friendly), you can see it in action on Codepen.
{% codepen https://codepen.io/tlylt/pen/WNrdKLd %}
Feel free to check out the codebase in my Github Repo
{% github tlylt/path-finding-visualization %}

## Further Improvements
There are many things to be done for this. Just to name a few:
- Allow users to pick start/end points.
- Better visuals to convey the weight/difficulty between two nodes.
- Add in more algorithms (DFS, BFS, etc).
I might do a part two for this when I am done with some of the above.

If you like reading this, please give it a like so that more people can see it.:smile:
How to use the Systemd userspace DBus API on Traivis-CI
Tags: travis, systemd, ci
Published: 2020-07-10 08:42:46

I am currently working on a project which involves talking to the `systemd` userspace session via the session `dbus` instance.

After some fiddling around and enabling debug mode on travis via the excellent user support, I came up with the following.

Travis uses VMs that run `ubuntu` which comes with `systemd`.
To enable the userspace `dbus` session, one has to install the `dbus-user-session` package. After the installation, it has to be activated through `systemctl --user start dbus`. Furthermore one has to set the `DBUS_SESSION_BUS_ADDRESS` environment variable through `export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus`.

TL;DR
```yaml
script:
  - sudo apt update
  - sudo apt install dbus-user-session
  - systemctl --user start dbus
  - export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
```
Don't use Pie Charts
Tags: statistics, beginners, datascience, python
Published: 2020-07-09 23:52:18

Despite the clickbait title, this is not an article to be polemic or say universal truths, but just an invitation to think about it.

A pie chart, sometimes called a pizza chart, is a chart in a format that seems like a - guess what? - pie, i.e., a round shape divided into slices. According to this [article](https://www2.le.ac.uk/offices/ld/all-resources/numerical-data/pie-charts):   

> _A pie chart is a circular graph that shows the relative contribution that different categories contribute to an overall total._

So, each piece of the chart has its width defined for its proportional value into an overall total. 

Let's take a look at an example.

![Simple pie chart](https://dev-to-uploads.s3.amazonaws.com/i/z2axx8w6p8oobau8k1y2.png)

We see it's not a bad look chart for sure. Actually, it could be a pretty evident option if we have some category variable to analyze and plot. But the point [many people say](https://verstaresearch.com/blog/why-you-should-avoid-pie-charts/) about avoiding them is because pie charts may don't do a good job showing the proportions of the parts vs. the whole or even if a piece is greater or less than the others if they have the same size, etc.

When the number of categories increases the problem seems clear:

![Pie chart with many categories](https://dev-to-uploads.s3.amazonaws.com/i/xsoy02rwb7zk9kw56fa0.png)

A bar chart plotting the same data:

![Bar plot](https://dev-to-uploads.s3.amazonaws.com/i/em92ryuuzx98nqano59p.png)

Then, as we see, pie charts are a bit controversial and should be avoided in most cases. Tough with a few categories, maybe only two or three, they may not be a terrible choice at all. What do you think?

## References

Pie Charts in Python [🔎](https://plotly.com/python/pie-charts/)
University of Leicester | Pie charts [🔎](https://www2.le.ac.uk/offices/ld/all-resources/numerical-data/pie-charts)
Why You Should Avoid Pie Charts [🔎](https://verstaresearch.com/blog/why-you-should-avoid-pie-charts/)
Try and fail, but don't fail to try.
Tags: start, first, post, newbie
Published: 2020-07-10 08:40:13

That's the quote that I saw on my [momentum](https://momentumdash.com/) dashboard this morning. It seemed pretty pertinent.

For months I have been telling myself that I'm going to start blogging. I kept debating with myself and making excuses.

Should I start an online course and use blog posts to track my progress? Should I write about an interesting project at work? Should I write about something I'm working on in my spare time? Should I focus on a concept that I've always found difficult and use a blog to make it clearer to me and others?

I couldn't decided on what the "right" thing would be to start with and convinced myself that until I found that thing, I shouldn't write anything. 

Today I decided to just jump in, to just _try_ - what have I got to lose? It's almost as if Chrome knew.
JavaScript Promise
Tags: javascript
Published: 2020-07-09 21:18:26

A promise in JavaScript is an object that may produce a single value any time in the future. It may give us either a resolved value or a reason that it is not resolved (rejected). A promise can be in one of the following three states. 
- Fulfilled
- Rejected
- Pending

We can create a promise like below. The constructor function of the promise takes a function that has parameters that either resolves or rejects.
```JavaScript
const promise = new Promise((resolve, reject) => {
	if (true) {
		resolve("It worked");
	} else {
		reject("Error, it broke");
	}
});
```
Here, we can check the returned value from the promise by chaining with `.then` like below.
```JavaScript
promise.then((result) => console.log(result));
```
This should log "It worked" in the console as the promise was resolved.

We can catch the rejected value comes out of the promise by chaining with `.catch` like below.
```JavaScript
const promise = new Promise((resolve, reject) => {
	if (false) {
		resolve("It worked");
	} else {
		reject("Error, it broke");
	}
});

promise
.then((result) => console.log(result))
.catch((err) => console.log(err));
```
This code should write "Error, it broke" in the console.

Also, we can get the resolved results from the multiple promises using `Promise.all()` method. 
```JavaScript
const promise1 = new Promise((resolve, reject) => {
	setTimeout(resolve, 100, "Promise1");
});

const promise2 = new Promise((resolve, reject) => {
	setTimeout(resolve, 1000, "Promise2");
});

const promise3 = new Promise((resolve, reject) => {
	setTimeout(resolve, 5000, "Promise3");
});

Promise.all([promise1, promise2, promise3]).then((results) => {
	console.log(results);
});
```
Here, we will get an array as an output in the console after 5 seconds. The output will look like `[ 'Promise1', 'Promise2', 'Promise3' ]`.

That's all for today. If you like this post and want to talk more about it, please feel free to <a href="https://twitter.com/anirban_coder">DM me here</a>
Have a great one!
TensorFlow #1 - Installation and setup
Tags: datascience, python, machinelearning, tutorial
Published: 2020-07-10 08:12:55

Lots of people want to start with neural networks and machine learning and I'm one of them. I've decided to share my progress in some kind of series, because teaching someone is even better method of learning for me.

## Where to start?

Disclaimer: Math is very useful, so start with it. I won't explain basics, so you probably want to start with KhanAcademy or something similar. The most useful are:
1. Calculus
2. Discrete mathematics (especially graphs & combinatorics).

I'm learning from [FreeCodeCamp Tutorial](https://www.youtube.com/watch?v=tPYj3fFJGjk) by Tim Ruscica (*Tech with Tim*).

## Installation

I'm using miniconda3 on Linux - it's the easiest way to use TensorFlow in my opinion. We can create virtual environments here.

### Miniconda3 installation

Download proper installation file from [here](https://docs.conda.io/en/latest/miniconda.html). Next run
```bash
bash <<miniconda_installation_file>>
```
Congratulations! Your conda is installed. Restart your terminal and you could see something like `(base)` at the beginning of your prompt. You may notice that packages installed with `pip` are not available anymore. You can disable entering `base` environment with:
```bash
conda config --set auto_activate_base false
```
Restart your terminal once again and everything should be just like before installing conda (but it's still installed of course).

You can now create new environment with
```bash
conda create --name env_name
```
and activate it with
```bash
conda activate env_name
```

### TensorFlow installation
Conda is now installed and set up, so it's time to start with TF. It's as easy as
```bash
conda install tensorflow-gpu -c conda-forge
```
if you have nVidia GPU. Just drop the `-gpu` suffix if you don't want to use it.
Some useful packages are:
1. `numpy` - blazing fast arrays
2. `pandas` - dataframes
3. `matplotlib` - my tool of choice for (guess what :v) plots
4. `jupyterlab` - better version of jupyter, but I'm using PyCharm, so it doesn't matter to me.


That's all for now. I'll post some new content soon(tm).

PS. You can also subscribe to my [newsletter](https://tinyletter.com/pgronkievitz)
[RANT] Linux has a problem.
Published: 2020-07-10 07:49:25

I am writing this article to complain, and kinda share what I have been doing recently. Linux has a distribution problem. Not that I am saying Linux is "fragmented" as I don't believe Linux can logically be fragmented. No, I mean Linux is simply just 500 of the same product. I don't mean that as in "We need a distro culling" or "Linux isn't innovating" but my issue is distributions don't do anything different. We are done seeing innovational tools, and Linux is being infected by the GNU plague. Every system is just a wallpaper change, two or three settings if the dev is feeling a little saucy. It is disappointing because as these distributions mostly thrive, actual full-effort distributions are dying. Distributions like Solus, Sabyon, and Slackware are dying because people keep wasting their `censored`ing time on terrible forks that don't have a purpose. They are a solution without a problem. I despise these distributions. It isn't even that there are too many distributions, I am working on 2 distributions that ARE IN DEVELOPMENT and another that is a FreeBSD fork in the planning, but I am scared for my products because people fall into the depths of devs who threw 5 packages into Ubuntu, packaged it, and called it a day. I work on Rasaturai, a distribution to get away from the GNU ecosystem, and make a distribution of Linux that is built for control over convenience. Ubuntu Lumina Remix is Ubuntu for enthusiasts, to use on any hardware. The FreeBSD fork is planned to be a solid desktop alternative to Linux, and bridging the gap between BSD and Linux. I want to tell you one thing, if you plan to make a distribution, make sure it has ANY purpose that isn't just to exist. Want a desktop system that has a setup of Openbox with Plank to make a lightweight system? That is better than nothing, which most of these distributions are.
IDE vs TEXT EDITOR
Tags: ide, texteditor, idevstexteditor
Published: 2020-07-10 05:31:46

An IDE, or Integrated Development Environment, is a programming tool that integrates several specialized tools into a cohesive environment. These specialized tools may include:

1.a text editor
2.a code autocomplete function
3.a build procedure that includes compiler, linker, and whatnot
4.a debugger
5.a file or project manager
6.a performance profiler
7.a deployment tool
and so on.

IDEs can be used as text editors, and text editors can be used as IDEs.

A text editor is just for writing/modifying text/code.

With an IDE, you should do a lot more within that single program; running, debugging, version control, etc.

Below are some integrated features available in IDE which is not available in simple editor.

1.For Deployment and version controlling you can find SVN and CVS support in IDE,
2.FTP and SFTP support,
3.Project import wizard from local or FTP,
4.code folding,
5.Support for freamwork like Symphony or Zend,
6.Templeting support like smarty,
7.Support for Webservice library lie AMAZON, Facebook [but only 
 available in Netbeans, i didn't check in Eclipse or Zend ]
8.PHP Debugger like Xdebug,Zend Debugger support and many more...
Spirupea Protein Forte is an organic protein powder
Tags: health, fitness, organicprotein, protein
Published: 2020-07-10 07:47:10

Spirupea Protein Forte is an organic protein powder having all these benefits:
It is a unique and well-studied blend of Organic Isolated Pea Protein and Organic Spirulina.

Pea Protein crops came from Canada and Spirulina from California (USA). A product with these BLEND characteristics has never been seen in the market and seldom, some companies sell similar products; however, those products do not have the same nutritional value and usually have a high concentration of chemicals or other by-products. In contrast, our product is 100% vegan, gluten-free, dairy free, Non-Genetically Modified Organism (Non-GMO), 100% organic; in addition, lacking artificial sweeteners, additives, thickeners and fillers bring our product to the top line of the healthier choice in the market.

The variety of antioxidants including the multivitamin complex, the essential polyunsaturated fats, the high concentration of essentials aminoacids, and the differentiated electrolytes inclusion in this outstanding blend makes SpiruPea Protein Forte, a revolutionary product on the already crowded market of supplements.
<a href="https://jirehnutrilifesport.com/"> Organic Protein Powder </a> | Spirupea Protein Forte 

Moreover, it is managed in current good manufacturing methods under the Food Drug Administration approved process(FDA/GMP compliant facilities) that ensure its outstanding manufacturing conditions, the perfect conditions of packing and sealing, giving the product up to two years of shelf life. These sets of specifications (required for every product under the Myoactin brand) are a testament to the value we place on our customers’ health; in addition, it shows up our dedication to ensure Myoactin brand products accomplish their mission, to yield a better overall lifestyle.
UNIQUE ALL-IN-ONE FAMILY FRIENDLY SHAKE RECIPE FOR FORTE SMOOTHIE 111GHEDIEnrs - 1 sachet of Spirupea Forte - For weight loss and sugar level control (Low glycemic index): Choose one Of the 1 small banana, 1 small kiwi or V. Cup Of bemes - For weight gain and athletes (Medium-high glycemic index):

Either combination of the previously mentioned fruits or choose between mangoes and pineapple -
1 Cup/240 ml Of milk (Original almond milk recommended) and ice cubes. DIHEcnans 1. Pour the milk into a blender 
2. Tear off the top of the sachet and add it into the milk. 
3. Add the desired fruits. 
4. Put in as many ice cubes as you want.
5. Blend well and enjoy a tasteful, family-friendly, nutritional drink. serves I (For Kids 4-12 use only 1/2 sachet).
For more details, visit at Vegan Protein Powder | Spirupea Protein Forte