teleren/devto huggingface dataset:
GCP DevOps Certification - Pomodoro Two
Tags: googlecloud, devops, sre, certification
Published: 2020-09-27 08:32:10

# Getting a feel for subjects

I wanted to get a feel for the areas of GCP that the certification would be looking into. This is their [official overview](https://cloud.google.com/certification/guides/cloud-devops-engineer) and a couple of google searches led me to [this overview](https://gcpfellow.com/2020/02/02/professional-cloud-devops-engineer-certificate-tips/)

Looks like a mix of:

* SRE Principles
* Stackdriver monitoring/logging awareness
* Tooling associated with DevOps like [Terraform](https://www.terraform.io/) and [Jenkins](https://www.jenkins.io/)
* GKE (basically Kubernetes)

# To take the mock exam or not?

I also wondered as to whether I should take a go at the mock exam or not. If I do then it might help me understand the gaps between current accumulated knowledge and required certificate knowledge.

For now I've decided to hold off - favouring knowledge accumulation and hearing from others before testing my own awareness.

# SRE Refresh

Its been some time since I went over the [Google SRE book](https://landing.google.com/sre/sre-book/toc/index.html) and I've never had professional guidance on this so I'll get started with hearing first hand about SRE principles. Making a start with the [SRE course on Coursera](https://www.coursera.org/learn/site-reliability-engineering-slos)
IndiaMp3 - New 2020 Hindi Songs, Bollywood Mp3 Songs Download
Published: 2020-09-27 08:25:51

<center><b>Music Category</b>
➜ <a href="https://indiamp3.club/files/bollywood-mp3-songs">Bollywood Mp3 Songs</a>
➜ <a href="https://indiamp3.club/files/punjabi-mp3-songs">New Punjabi Mp3 Songs</a>
➜ <a href="https://indiamp3.club/files/indian-pop-mp3-songs">Indian Pop Mp3 Songs</a>
➜ <a href="https://indiamp3.club/files/a-to-z-bollywood-movies-songs">A to Z Bollywood Movies Songs</a>
Listen & Download latest MP3 songs online. Get the latest and greatest hits from a collection of Bollywood Latest Mp3 Songs, Classics, Hindi, Telugu, Tamil, Kannada, Ghazals, Indipop & Punjabi DJ Remix Songs.
Click Here➜ <a href="https://indiamp3.club/">indiamp3</a></center>
Why outsource to Aalpha India?

Published: 2020-09-21 12:18:21

Aalpha India is an outsourcing customized software development organization. We have years of experience and expertise in delivering successful customized software solutions across the globe. As we are based out of India, we get access to the best talent pool of engineers and developers at cheaper costs compared to most countries across the world. This makes India one of the most preferred software outsourcing provider countries.

At Aalpha India, with our expert offshore outsourcing software development services we offer the following benefits:

Lower cost of operations: Outsourcing reduces the cost of operations by saving expenditures and salaries paid to in-house teams
Improved Service Quality: Access to specialized services from domain experts/skilled pool of talent
Added strategic value with partnership in implementation and support through the project lifetime
Focus on core competencies by letting go of worries related to support functions
Low or No investments in technology and infrastructure enhances profitability
24/7 support round the clock
Ability to scale
Flexibility with agile processes to match customer demands
Offshore outsourcing Methodology

At Aalpha India, we follow a structured process for delivering the best in class solutions to our clients. Broadly, the stages involved in the process are:

Requirement Analysis
Brainstorming and decision-making
Develop offshore outsourcing strategy
Feedback and communication
Project development
Testing and Implementation
Maintenance and Support
We have experience of delivering quality solutions on time utilizing our expert talent pool across industries like retail, healthcare, hospitality, etc.
Originally published at https://www.aalpha.net/outsourcing/offshore-outsourcing-india/
Contours OpenCV Python
Tags: python, opencv
Published: 2020-09-27 08:21:18

##What are Contours?
Contours are continuous lines or curves that bound or cover the full boundary of an object in an image.

Contours are very important in:

1. [Object Detection](https://divyanshushekhar.com/object-tracking-opencv/)
2. [Shape Detection](https://divyanshushekhar.com/shape-detection-opencv-python/)
##Steps for Finding Contours in OpenCV Python
1.Read image in OpenCV using imread() function.
2.Convert the Colored image to Grayscale image.
Find edges using Canny edge detection.
Find Contours.
Draw all Contours on the image.

##Contours OpenCV Python Algorithm
Loading the image using imread() function and converting it to grayscale can be done by you. If you are facing difficulties in these steps must read basic opencv operations.

Learn all the things about [Contours in OpenCV Python](https://divyanshushekhar.com/contours-opencv-python/) from the original post.
Golang Variadic Arguments With Example
Tags: go
Published: 2020-09-27 08:02:39

##Golang Variadic Arguments
Sometimes we don’t know how much parameters will be passed and then comes Variadic Parameters in Golang.

##Condition for Variadic Argument:
1. Variadic Arguments should only be one and must be placed at last.
2. It is taken as Golang Slice, and Slice operations can be done on it.

##Variadic Arguments Syntax

`<parameter_name> …<type>`

Learn more about [Golang Variadic Arguments](https://divyanshushekhar.com/golang-variadic-arguments/) from the Original Post.
Golang Channel Deadlock
Tags: go
Published: 2020-09-27 07:58:13

##Golang Channel Deadlock
The number of channels is limited and whenever we try to receive or send value from and to the channel out of number, a deadlock occurs.

###1. Receiving channels more than expected
```
	go func(ch <-chan int) {
		i := <-ch
		j := <-ch
		fmt.Println("Value of Channel i,j =", i, j)
		wg.Done()
	}(ch)

Error:- fatal error: all goroutines are asleep – deadlock!
```

Here, there is only a single channel from where data is sent, and two receiving channels and thus Deadlock occurs.

Read Full Post on [Golang Channel Deadlock](https://divyanshushekhar.com/golang-channel-deadlock/).
Selector2Regexp - generating regular expressions from CSS selectors
Tags: css, html, javascript
Published: 2020-09-27 07:43:48

"[Selector2Regexp](https://github.com/m-yoshiro/Selector2Regexp)" is a tiny tool that I released recently.
It generates regular expressions of JavaScript from CSS selectors. The regular expressions are used for searching HTML elements matching with a given CSS selector.

**Features**
* It generates regular expressions using CSS Selectors.
* Commonly used selectors and combinators are supported.

# Usage

It is very straightforward.
Only you have to do is to look up an html tag which is referenced by JavaScript or CSS.

```sh
$ npm i selector-2-regexp

$ s2r '.button'
# => <\s*([a-zA-Z]+)\s+.*(class=(?=['"])((?=(.*[\s'"]button[\s'"])).*)(?=['"])).*\s*>
```

## With clipboard

It's convenient if you use it with any editor tools.

1. Save the result to clipboard.
    ```sh
    $ s2r '.button' | pbcopy
    ```
2. paste it on a search input of a editor(e.g. VS Code)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/d6a6w8c3dg42jhvfscy7.png)


# Motivation

I often refactor my frontend codes everyday and I have to look up a html tag which is referenced by JavaScript or CSS.
I think that regular expression could be a better way to do that frequently but It was difficult for me to remember how to use them. I needed an easy way to achieve it.
That is why I made Selector2Regexp.

I hope this tool will help you.

https://github.com/m-yoshiro/Selector2Regexp
What Is An Arduino UNO? – Beginner’s Guide
Tags: uno
Published: 2020-09-27 07:42:58

#What Is An Arduino UNO? – Beginner’s Guide
If you want to play with different electronic components but you don’t have enough knowledge of how to work with them, then Arduino is what you need to get started … So what’s an Arduino UNO?
Hello everyone, Welcome to my new Embedded System and Robotics blog. Whenever you think of the word Robotics, one thing that would also strike your mind is how the robotics work? How is the Robotics operated?

Arduino is essentially an open-source stage used for the construction of hardware ventures. Arduino consists of both a physically programmable circuit board (regularly referred to as a microcontroller) and a bit of programming, or IDE ( Integrated Development Environment) which suddenly spikes in demand for your PC, used to compose and transfer PC code to the Arduino UNO physical board. for info click here (https://hackthedeveloper.com/what-is-an-arduino-uno/)
Convert Int To String in Golang | Itoa and FormatInt
Tags: go
Published: 2020-09-27 07:42:22

##Golang Rune
Rune Data type in Golang is an alias for int32. It is primarily used to store utf8 characters.

A String in Golang is a collection of rune.

```
func main() {
	s := 'A'
	fmt.Printf("%T, %v",s,s)

}
Output:

int32, 65
```

The Variable ‘s’ stores a character, but when printed the type and value of the variable ‘s’, the output is int32 type and value of 65 (Capital ‘A’ ASCII Value).

In Order to Convert it into string, the rune type to be type casted to string.

Example:

```
func main() {
	s := 'A'
	fmt.Printf("%T, %v",string(s),string(s))

}
output:

string, A
```
##Convert Int to String in Golang
Lets see how the conversion from Golang Int to String works when we use the plain conversion as above:

```
s := 65
fmt.Printf("%T, %v", string(s), string(s))
Output:

string, A
```

The Value we wanted was “65” in String, but the 65 was Converted to ASCII value i.e A.

Let’s look how we can convert int to string, but not to its ASCII Corresponding value.

##Golang Strconv Itoa
The Golang Strconv Itoa Function takes an integer value and converts it to string and returns it.
Learn about [Golang Strconv Iota and FormatInt](https://divyanshushekhar.com/golang-convert-int-to-string/) from the original post.
Canny Edge Detection OpenCV Python
Tags: python
Published: 2020-09-27 07:31:05

Edge Detection deals with the contours of an image that is usually denoted in an image as an outline of a particular object.

There’s a lot of edge detection algorithms like Sobel, Laplacian, and Canny.

The Canny Edge Detection algorithm is the most commonly used for ease of use as well as the degree of accuracy.
##Composition of Canny Edge Detection
The Canny edge detection OpenCV algorithm is composed of 5 steps:

1. Noise Reduction – If noise is not removed it may cause the image to detect incorrect edges.
2. Gradient Calculation
3. Non-maximum Suppressions
4. Double threshold
5. Edge Tracking by Hysteresis

Learn the [canny edge detection opencv python](https://hackthedeveloper.com/canny-edge-detection-opencv-python/) code from the original post.
Circle Detection OpenCV Python
Tags: python
Published: 2020-09-27 07:27:14

##Circle Detection OpenCV Algorithm
The first step is common in every OpenCV Detection program, i.e to load the image on which the algorithm is to be applied.

The image is the resized and a colorful copy of that image is stored in another variable. The Image is then converted to the grayscale image as the HoughCircles() function is applied only to the grayscale images.

Then the HoughCircle() function is applied on the grayscale image.

Gray scaled image is then blurred using medianBlur() function.

The HoughCircles() function in the OpenCV library takes many parameters.

1. The grayscale image on which the circle detection is to be implemented.
2. Gradient function – cv.HOUGH_GRADIENT
3. DP value i.e the resolution of the accumulator
4. minimum distance
5. Number of circles
6. parameter 1
7. parameter 2
8. Minimum Radius
9. Maximum Radius
## The formula of Circle:

(x-xc)2 + (y-yc)2 = r2 – HoughCircles() function present in the OpenCV library uses this mathematical formula to detect circles.

Read more and get the source code from the original blog post [Circle Detection OpenCV Python](https://hackthedeveloper.com/circle-detection-opencv-python/).
Shape Detection OpenCV Python
Tags: python
Published: 2020-09-27 07:21:50

##Shape Detection OpenCV Algorithm
First of all, read and store the image. For this example, I am taking an image that contains shapes like triangle, square, rectangle, and circle.

The image is then converted to grayscale using the cvtColor() function.

The Grayscaled image is then thresholded using the THRESH_BINARY Method. The Thresholded image is then taken and contours are found on that image.

The Contours obtained are then looped and the edges are counted using the approxPolyDP() function, which takes each contour.

The edges of the Contour is then drawn on the image using drawContours() function.

To write the name of the shape blocks of if-else are used that take decisions on the basis of the number of edges.

Example: If three edges are found the shape will be a triangle.

In the case of square and rectangle aspect ratio between the width and height is calculated. If the ratio is close to 1 then the shape is square else rectangle.

If no edges are found then it is likely to be a circle.

Read more and the full source code from [Shape Detection OpenCV Python](https://hackthedeveloper.com/shape-detection-opencv-python/).
How To Install Redis on Windows 10
Tags: redis, windows10
Published: 2020-09-27 07:14:54

Redis runs natively on Linux-based operating systems but can be installed and run on Windows 10/11 using Windows Subsystem for Linux (WSL). In this blog, we will guide you through the steps to install Redis on Windows using WSL.

## What is Redis?
Redis full form is Remote Directory Server. Redis is a popular NO-SQL in-memory data structure store that is often used as a database, cache, and message broker.

It is widely used by developers and system administrators to improve the performance and scalability of their applications.

## What is WSL?
WSL (Windows Subsystem for Linux) is a compatibility layer for running Linux binary executables natively on Windows.

It provides a lightweight Linux environment that runs on top of the Windows operating system, enabling users to run Linux command-line tools and applications directly on Windows without the need for a virtual machine or dual-boot setup.

## Install Redis on Windows 10/11 Using WSL
Now when we have a brief idea of what Redis and WSL is, let’s see how we can install Redis on windows using WSL.

### Step 1: Turn on Windows Subsystem for Linux
Before we can install Redis on Windows, we need to enable the Windows Subsystem for Linux (WSL).

WSL is a compatibility layer that enables running Linux binary executables natively on Windows 11 and Windows Server 2019.

Open PowerShell as Administrator and run the following command to enable WSL:

```
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
```
After running this command, you need to reboot your system. Note that this step only needs to be done once.

Read more on [How to install Redis on Windows 10](https://hackthedeveloper.com/how-to-install-redis-on-windows).
Find Blog on Google. [Install Redis Windows](https://www.google.com/search?q=install+redis+windows+site%3Dhackthedeveloper.com).
Live figure with jupyter notebook (or pure python file) using matplotlib
Tags: jupyter, python, matplotlib, livegraph
Published: 2020-09-27 07:03:55

Source Codes: https://github.com/bridget462/live-figure



To make a live graph, which update constantly to reflect real-time data, use following method instead of normal `plt.show()`



The Key methods for live graph are:

- `plt.draw()`: to display plot
- `plt.pause()`: keep displaying current frame certain duration 
- `plt.cla()`: to clear previous frame



Use methods above in loop to constantly update figure. 



---

## Codes

we only use 2 libraries

```python
import numpy as np # to generate random data
import matplotlib.pyplot as plt # to make figure

# optional (just for figure appearence)
plt.style.use('seaborn-colorblind')
plt.style.use('seaborn-whitegrid')

print('library imported')
```



if using jupyter, excute command below to create intractive figure instead of displaying in the jupyter cell.

```
%matplotlib qt
```



To make live figure, use key methods explained above in loop to update figures. Also replace random number with your actual data.

```python
MEASUREMENT_TIME = 50
INTERVAL_SEC = 0.1

for i in range(MEASUREMENT_TIME):
    # replace with your data
    data = np.random.rand(100)

    plt.plot(data)

    # figure appearence adjustments
    plt.ylim(-0.2, 1.2)
    plt.title(f'FRAME {i+1}')

    # to avoid clearing last plot
    if (i != MEASUREMENT_TIME-1):
        plt.draw()
        plt.pause(INTERVAL_SEC)
        plt.cla()
    else:
        plt.show()
```



And that's about it. `plt.draw()`, `plt.pause()`, `plt.cla()` can be used to any other figures, such as 3D, polar and etc.
Seeking INDIE LEARN-TO-CODE Platforms to Review Live
Tags: webdev, education, courses
Published: 2020-09-27 06:51:05

---
title: Seeking INDIE LEARN-TO-CODE Platforms to Review Live
published: true
description: On Tuesday, Sep 29th at 4pm CST I am reviewing indie coding platforms on my YouTube channel & need suggestions 
tags: webdev, education, courses, 
cover_image: https://realtoughcandy.com/wp-content/uploads/2020/09/indie-4.jpg
---

## Developers, let's get educated!

It's time for another coding platform review extravaganza. This Tuesday, September 29th at 4pm CST, I'll be reviewing indie coding platforms LIVE on [my YouTube channel](https://www.youtube.com/realtoughcandy).

So far on my list: 
- Scrimba
- Academind 
- Thinkster.io
- ZtM 
- CodingPhase 
- Frontend Masters
- Stef Mischook's StudioWeb
- Logic Room

Help make this list more inclusive and let me know of some other smaller/independent learn-to-code platforms! 

(No coding bootcamps, please. These will be included in another video.) 


[Here are the bigger platforms I reviewed](https://youtu.be/KgSvw3H9K10) earlier this year.
What's your favorite free API?
Tags: webdev, discuss, api
Published: 2020-09-27 06:44:20

---
title: What's your favorite free API?
published: true
description: 
tags: webdev, discuss, api
cover_image: https://www.seobility.net/en/wiki/images/f/f1/Rest-API.png
---
Here is an awesome [GitHub repo](https://github.com/public-apis/public-apis) with a collective list of free APIs for use in software and web development. 

Could you please share some of your favorite public APIs that were fun and easy to work with to source data for your project?
What's your experience with pair programming?
Tags: programming, discuss, productivity
Published: 2020-09-27 06:31:25

---
title: What's your experience with pair programming?
published: true
description: 
tags: programming, discuss, productivity
cover_image: https://images.prismic.io/impactio-blog/06eab7d7-e9ef-4ae3-b93b-8bcc47372fb3_Pair++programming.png
---
Devs who have done lots of pair programming, did you find this way more productive in general? What are some of the main advantages and pitfalls you experienced?
Golang Gorilla Schema HTML Forms
Tags: go
Published: 2020-09-27 06:22:54

##Golang Gorilla Schema
```
func readForm(r *http.Request) *User {
	r.ParseForm()
	user := new(User)
	decoder := schema.NewDecoder()
	decodeErr := decoder.Decode(user, r.PostForm)
	if decodeErr != nil {
		log.Println("Error mapping parsed form data to struct : ", decodeErr)
	}
	return user

}
```
First of all, learn about [Golang HTML Forms](https://divyanshushekhar.com/golang-forms-get-post-method/) then use gorilla schema.

Learn and get the full source code to get the form data using the [Gorilla Schema in Golang](https://hackthedeveloper.com/golang-gorilla-schema/).
Which is the best Linux server distro?
Tags: webdev, discuss, linux, server
Published: 2020-09-27 06:19:47

---
title: Which is the best Linux server distro?
published: true
description: 
tags: webdev, discuss, linux, server
cover_image: https://5.imimg.com/data5/VH/GW/MY-14645284/linux-server-hosting-500x500.png
---
Linux is known as one of the leading server operating systems which is more prevalent and wide-ranging. By the research I've done Debian, Ubuntu, CentOS, Fedora and Red Hat came up often.

Which has been your favorite Linux server distro and why?
Lane Detection OpenCV Python
Tags: python
Published: 2020-09-27 05:51:07

Self Driving Car is one of AI’s most innovative technologies. Self Driving Cars use lane detection OpenCV features to detect lane of the roads and they are trained not to drive outside of the lane.

Lane Detection OpenCV Algorithm
1. Capturing and decoding video file frame by frame
2. Conversion of the Image to GrayScale
3. Applying filters to reduce noise in video frames
4. Edge Detection Using Canny Edge detection method
5. Finding the region of interest and working on that part
6. Detecting lanes using Hough line transform

Learn about these steps from
https://hackthedeveloper.com/lane-detection-opencv-python/
Super Easy 360 Image Viewer with A-Frame Less 20 Lines
Tags: javascript, aframe, vr
Published: 2020-09-27 05:48:09

{% twitter 1310078182024937472 %}

{% github aframevr/aframe %}

## 1. Create an index.html

```html
<!DOCTYPE html>
<html>
  <head>
    <title>360View</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
  </head>
  <body>
    <a-scene>
      <a-assets>
        <img id="img" src="texture.jpg" />
      </a-assets>
      <a-sky id="img-360" radius="10" src="#img"> </a-sky>
    </a-scene>
  </body>
</html>
```
## 2. Get a 360 image
In the index.html, the file name is `texture.jpg`. You can rename a 360 image or change <a-sky> tag's`src` attribute.
You can find out nice 360 images ↓
http://texturify.com/

## 3. Run your local server
For this, I used live-server

```zsh
$ npm i -g live-server
$ live-server
```
Then, open localhost:8080

{% github tapio/live-server %}
Main Design Patterns
Tags: designpatterns, creational, structural, behavioral
Published: 2020-09-27 05:45:20

#Creational Patterns#
1. [Abstract Factory](https://dev.to/eidher/abstract-factory-3opg)
2. [Builder](https://dev.to/eidher/builder-patter-12jc)
3. [Factory Method](https://dev.to/eidher/factory-method-pattern-2m29)
4. [Prototype](https://dev.to/eidher/prototype-pattern-5cg0)
5. [Singleton](https://dev.to/eidher/singleton-pattern-9e7)

#Structural Patterns#
1. [Adapter](https://dev.to/eidher/adapter-h52)
2. [Bridge](https://dev.to/eidher/bridge-pattern-3og5)
3. [Composite](https://dev.to/eidher/composite-pattern-1an7)
4. [Decorator](https://dev.to/eidher/decorator-pattern-2gmp)
5. [Facade](https://dev.to/eidher/facade-pattern-5d8e)
6. [Flyweight](https://dev.to/eidher/flyweight-pattern-3mfn)
7. [Proxy](https://dev.to/eidher/proxy-pattern-1aj1)

#Behavioral Patterns#
1. [Chain of Responsibility](https://dev.to/eidher/chain-of-responsibility-pattern-3o73)
2. [Command](https://dev.to/eidher/command-pattern-36f)
3. [Interpreter](https://dev.to/eidher/interpreter-pattern-i9o)
4. [Iterator](https://dev.to/eidher/iterator-pattern-497a)
5. [Mediator](https://dev.to/eidher/mediator-pattern-2i81)
6. [Memento](https://dev.to/eidher/memento-pattern-441i)
7. [Observer](https://dev.to/eidher/observer-pattern-b18)
8. [State](https://dev.to/eidher/state-pattern-3kki)
9. [Strategy](https://dev.to/eidher/strategy-pattern-3oa4)
10. [Template Method](https://dev.to/eidher/template-method-pattern-4ngf)
11. [Visitor](https://dev.to/eidher/visitor-pattern-nfp)
Why should I need React ?
Tags: help, react
Published: 2020-09-27 05:36:03

I am just starting out to learn Web-development. Since from the beginning I am hearing this buzz-word <strong>React</strong>. 
So I would like to know 
* Why should one use React for front-end dev ?
* Why should one consider front-end libraries and framework for building UI instead of Plain JS/CSS ?

P.S :- I have already try searching about it. I couldnt understand some technical terms. So please answer in plain English as possible.

<em> Thank You </em>