teleren/devto huggingface dataset:
Weekend Ride
Tags: sport, bayarea, bike, cycling
Published: 2022-09-09 20:06:08

---
title: Weekend Ride
published: true
date: 2021-12-19 01:43:09 UTC
tags: Sport,bayarea,bike,cycling
canonical_url: https://greenido.wordpress.com/2021/12/18/weekend-gravel-ride/
---

Gravel is the _new_ thing.

But ignore all the ‘buzz’ – as [Lauf](https://www.laufcycling.com/) coined: ‘just ride’.

[![](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.23.28.png?w=1024)](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.23.28.png)
_The bay area from Block Mountain_

[![](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.23.17.png?w=1024)](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.23.17.png)
_The sun from Block Mountain_

[![](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.23.04.png?w=1024)](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.23.04.png)
_The fog above Saratoga from Block Mountain_

[![](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.22.54.png?w=1024)](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.22.54.png)
_3 machines_

[![](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.22.42.png?w=795)](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.22.42.png)
_just ride…_

[![](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.22.29.png?w=1024)](https://greenido.files.wordpress.com/2021/12/screen-shot-2021-12-18-at-16.22.29.png)
_The ocean from Block Mountain_

![](https://greenido.files.wordpress.com/2021/12/73907d37-8030-4e78-afc1-9bd1e69d1ae2.jpg)
_Going down to Mountabelo_

![](https://greenido.files.wordpress.com/2021/12/e78735d5-5ff1-41c2-81d4-fc141e5f21e4.jpg)
_Up west apline_

![](https://greenido.files.wordpress.com/2021/09/280-92-lake.jpg)
_92 and 280 lake_

![](https://greenido.files.wordpress.com/2021/12/7c232286-0d63-4c67-8997-71830adb0a65.jpg)
_Bella Vista Trails_

“Pick three hobbies: One that makes you money, one that makes you fit, and one that keeps you creative”. With cycling, you can have the last two.

Have fun and be strong!
Currently building a YouTube Clone
Published: 2021-12-19 01:22:11


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8wvej1qzwmqhem31rvwj.jpg)

...building and learning alot. So far I have only implemented a rough layout, with the opening sidebar (click on Hamburder button).

Progress link as of 28 Dec 21: [CLICK](https://fir-610f8.web.app/) (same link as before)
Progress link as of 19 Dec 21: [CLICK](https://fir-610f8.web.app/)
Progress link as of 02 Dec 21: [CLICK](https://amazing-pare-3e47ae.netlify.app/)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h86dxcbweye2msxiemvw.jpg)

This was the first time using linux, which took quite a while to set up. 

Also, dear dev.to, stop using rounded corners on images, not only is it ugly, it makes zero sense cropping parts of an image.
Weekly Challenge 143
Tags: perl, python, theweeklychallenge
Published: 2021-12-19 00:49:17

[Challenge](https://theweeklychallenge.org/blog/perl-weekly-challenge-143/), [My solutions](https://github.com/manwar/perlweeklychallenge-club/tree/master/challenge-143/sgreen)

## TASK #1 › Calculator

### Task

You are given a string `$s` containing mathematical expression.

Write a script to print the result of the mathematical expression. To keep it simple, please only accept `+ - * ()`.

### My solution

Hopefully I don't need to teach readers of this blog about the [order of operations](https://www.splashlearn.com/math-vocabulary/algebra/order-of-operations), known as BEDMAS in this part of the world.

I'm not entirely happy with my solution, as it will sometimes give unexpected results. For example "1 (2 - 3) * 4" will give -3 (2-3 is negative one, which results in  "1 -1 * 4" = 1 - 4 = -3)

The simplest way to solve this would be use a regular expression to make sure it matches the criteria (contains only digits, demical points, spaces and the characters mentioned in the task) and then use `eval` or `qx` to parse the string. Maybe that is what is expected. That's probably what I would have done in the real world™. I was very tempted to see other peoples results before submitting my own, but I never do that, and I'm not about to start now :)

So the tact I took is probably not correct. The first thing I do is evaluate any brackets (inner most first) and replace them with the result. At each point we will have a combination of a number, followed by any number of operator number pairs. I then use regular expressions to separate out the parts. I then reduce all multiplication pairs, and finally complete all additions and subtraction.

### Examples

```
$ ./ch-1.pl "20 + 10 - 5"
25

$ ./ch-1.pl "(20 + 10 - 5) * 2"
50
```

## TASK #2 › Stealthy Number

### Task

You are given a positive number `$n`.

Write a script to find out if the given number is Stealthy Number. A positive integer N is stealthy, if there exist positive integers a, b, c, d such that a * b = c * d = N and a + b = c + d + 1.

## My solution

This is relatively straight forward compared to the first task, and like many other solutions I produce is simply uses a brute force method.

I have a loop `i` that counts from one to `√n`. If `n % i` is 0, we have a possible combination for a/b or c/d. I then compare this value to any previous values. If they have a absolute different of one, then I print 1. If we don't find any possible a/b/c/d combinations, then I print 0. 

The Perl code is a transliteration of the Python code.

## Examples

```
$ ./ch-2.py 24
1

$ ./ch-2.py 12
1

$ ./ch-2.py 6
0
```
MongoDB on Laragon
Tags: mongodb, nosql, database, windows
Published: 2021-12-18 17:52:47

## Installing MongoDB Server
### Download The Latest Zip

Go to [https://dl.mongodb.org/dl/win32/x86_64](https://dl.mongodb.org/dl/win32/x86_64), find the latest zip available and download it. Here is what I got at the time:


![latest mongodb zip available](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z62dygbhns9ma5o4cw1v.png)

### Extract and Move To Laragon MongoDB Directory

Extract the zip file, it will result a single folder with the name of the version downloaded. Now just move the folder to `C:\laragon\bin\mongodb` or create the `mongodb` there first if it's not availble.

![laragon mongodb directory](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dxl5rrgleblr48dex0kd.png)

### Run the MongoDB Server

Open the Laragon Dashboard, now the mongodb menu will available. You can run the server and stop it later from here.

![mongodb menu on laragon dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khr1svz9v217vrc7i9ki.png)

## GUI Client: Robo 3T (Robomongo)

The lightest client GUI available for MongoDB is robomongo and somehow it renamed to Robo 3T now. You can download it from [https://robomongo.org](https://robomongo.org/) and install it like a normal software installation. Once you done installed it, you can test and create connection the server like this:

## 

![robo3t connection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/olfabcnbsef0vlt10016.png)

## CLI Client: MongoDB Shell (Mongosh)

If you prefer to work with terminal or shell, you can use MongoDB Shell and the windows installer is availble at https://www.mongodb.com/try/download/shell. Installing it will add the PATH for the command automatically. Here is when typed `mongosh` and ENTER in command prompt:


![mongosh test](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oxgofgneczpa9io1oile.png)

If the PATH isn't added automatically, then add it manually as instructed here [https://docs.mongodb.com/mongodb-shell/install/#add-the-mongosh-binary-to-your-path-environment-variable](https://docs.mongodb.com/mongodb-shell/install/#add-the-mongosh-binary-to-your-path-environment-variable)
Does Scrum belong in DevOps?
Published: 2022-01-25 19:32:09

---
title: Does Scrum belong in DevOps?
published: true
date: 2021-12-19 00:00:00 UTC
tags: 
canonical_url: https://jhall.io/archive/2021/12/19/does-scrum-belong-in-devops/
---

On this short episode of Adventures in DevOps, Will Button and I have a conversation about whether or not you can use Scrum with DevOps. We also discuss different alternatives to Scrum and how you can use them instead of Scrum or whether Scrum is the best fit.

[![](https://jhall.io/images/aido-600px_hu064dd3473c23b0dee6f42abfef90a45c_156562_400x0_resize_q85_box.jpg)](https://adventuresindevopspodcast.com/does-scrum-belong-in-devops-devops-097)

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Why you should NOT automate your tests
Tags: productivity, qualityassurance, automatedtesting, discuss
Published: 2021-12-18 22:51:36

I know what are you thinking, "why can anyone say that we don't need test automation?" and you're right! But, we need to also consider the context, the most of articles that I have read about "why you should automate your test" always talk about the benefits like reduce effort on repetitive tests, greater consistency to our testing approaches or easier access to info (results) about testing. The thing is, we are not always working on a well defined processes, for example we are a typical company that have our testers and had heard about the Automated Testing process and benefits so, the company, want to apply this to their daily activities. Here is when we should review if we should or not add the automated test activity to our business.

A common error that we get when we want to add the automated testing approach to our system is thinking that this will be the key solution to improve the Quality of our product, and that is not the case, the automated test are expensive to maintain, and will not cover the whole testing process for the products, usually, the automated tests cover only the happy path on a system, let's say that we have a product that sell clothes online, you will create an automated test that start from login, to adding clothes to your cart and will end with placing an order (in a lower environment of course, we don't want to add fake order in production and mess up our analytics). Now, what happen if, in the login page, the user type the wrong credentials, what if the clothe size is out of stock, what if the user set a wrong address for the delivery, all of this scenarios should not being automated, I mean you can do it, but if we decide to change the flow or, even, we make a small change on the login button selector, we must update all of our test so they can start working properly again. 

Another thing to consider when you want to add automated test in a product, is that we usually tend to underestimate the time, cost and effort on the tool that we want to use for automating (Selenium, Cypress, TestCafe, etc.), this means that it cost a lot to add the tool and we will start seeing the benefits of it in several months, it will not give us value since the beginning of the implementation.

To finish this, we should keep in mind that Automating doesn't mean that we will replace other testing processes like Unit Testing, Integration Testing or Manual Testing. This will help us to improve some of the testing activities, more oriented (in my personal opinion) on the pipeline flow to confirm that the happy path works and we are good to deploy on prod without any breaking change. What do you think about it? You can leave your opinion in the comment section :D
Linked List Folding
Tags: java, algorithms, 100daysofcode, programming
Published: 2021-12-18 20:56:24

# [Description](https://binarysearch.com/problems/Linked-List-Folding)

You are given a singly linked list `node` containing integer values. Take the first half of the linked list and fold over the second half and merge the intersecting nodes by taking their sum.

**Constraints:** 

- `1 ≤ n ≤ 100,000` where `n` is the number of nodes in `node`

## Example 1

### Input

```
node = [3, 1, 2, 4]
```

### Output

```
[3, 7]
```

### **Explanation**

```
We fold the linked list so the 3 and 4 get merged into 7, and the 1 and 2 get merged into 3.
```

---

## Example 2

### Input

```
node = [2, 1, 3]
```

### Output

```
[1, 5]
```

### **Explanation**

```
We fold at the 1, which doesn't change, and 2 and 3 get merged into 5.
```

---

# Intuition

1. you need to find mid index by using two pointers
2. you need to reverse the right half of linked list
3. create new linked list for adding fold sums

# Implementation

```java
import java.util.*;

/**
 * class LLNode {
 *   int val;
 *   LLNode next;
 * }
 */
class Solution {
    public LLNode solve(LLNode node) {
        LLNode slow = node, fast = node;
        int mid = 0;
        while (slow != null && fast != null && fast.next != null) {
            slow = slow.next;
            fast = fast.next.next;
            mid++;
        }

        LLNode left = node, right = reverse(slow);
        LLNode ans = new LLNode(), dummy = ans;

        while (mid > 0) {
            LLNode n = new LLNode();
            n.val = left.val + right.val;
            ans.next = n;
            ans = ans.next;
            left = left.next;
            right = right.next;
            mid--;
        }
        if (right != null) {
            LLNode n = new LLNode();
            n.val = right.val;
            ans.next = n;
        }

        return reverse(dummy.next);
    }

    private LLNode reverse(LLNode node) {
        LLNode pre = null, curr = node, next;
        while (curr != null) {
            next = curr.next;
            curr.next = pre;
            pre = curr;
            curr = next;
        }
        return pre;
    }
}
```

## Time Complexity

- Time: O(N)
- Space: O(N)
Webb 3.0 vad kan vi förvänta oss?
Tags: opensource, blockchain, wordpress
Published: 2021-12-18 20:35:42

Web 3.0 är spännande teknik som kommer ta mer och mer plats i vårt internet. 
Det handlar om tid innan det helt skiftar om till 3.0. 

Du hittar såklart vidare information om detta [här](https://www.webbofsweden.se/vad-ar-web-3-0/)
AVL Tree : Rotation, and Balance Factor Explained
Tags: datastructue, programming, algorithms
Published: 2021-12-18 20:31:56

## **What is an AVL Tree?**

An AVL tree is a type of binary search tree. Named after it's inventors Adelson, Velskii, and Landis, AVL trees have the property of dynamic self-balancing in addition to all the other properties exhibited by binary search trees.


A BST is a data structure composed of nodes. It has the following guarantees:

1. Each tree has a root node (at the top)
2. The root node has zero, one, or two child nodes
3. Each child node has zero, one, or two child nodes
4. Each node has up to two children
5. For each node, its left descendants are less than the 
6. current node, which is less than the right descendants

- So The difference between the depth of right and left sub-         trees cannot be more than one |depth(right) - dépt(left)|>1. 
_This difference is called the balance factor._

So how we can balance our BST , well 💁 we can use some ruls (rotations) to balance it .

 

**1. Left Rotation (LL Rotation)**

In left rotations, every node moves one position to left from the current position.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zj12loca9jv82fywoel.jpeg)
**2. Right Rotation (RR Rotation**

In right rotations, every node moves one position to right from the current position.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gmzn1j2l9ibhfhns3jws.jpeg)
**3. Left-Right && Right-Left Rotation (LR && RL Rotation**

LR or RL rotations are a combination of a single left 
resp (right)  rotation followed by a single right resp(left) rotation.


**Application of AVL Trees**
AVL trees are beneficial in cases like a database where insertions and deletions are not that frequent, but you frequently check for entries.
How to get a summary of the a page in Wikipedia?🤔
Tags: python
Published: 2021-12-18 20:29:28

## Hi, friends!

You Can use the Wikipedia API for this work;

Look this Code:

```
import requests as rq

Query = "iran"#What Do You Want To Search In wikipedia
Lang = "en"#Your Language
Url = f"https://{Lang}.wikipedia.org/api/rest_v1/page/summary/{Query}"

Result = rq.get(Url).json()['extract']

print(str(Result))
```

Run and See The Result.

Do not forget to like!
Bye until the next post👋
Release 0.19.0 of Spellcheck (GitHub) Action - a security release
Tags: githubaction, release, opensource
Published: 2021-12-18 20:27:24

---
title: Release 0.19.0 of Spellcheck (GitHub) Action - a security release
published: true
description: security release, updating dependency with security vulnerabilities patched
tags: githubaction, release, opensource
//cover_image: https://direct_url_to_image.jpg
---
Hot of the press release of 0.19.0 of [Spellcheck GitHub Action](https://github.com/rojopolis/spellcheck-github-actions).

This release was aimed at being a maintenance release, based on a PR from the _tireless_ @dependabot, making sure the Docker base image is kept up to date. Another bot stole it's thunder with a PR bumping a core dependency to a newer version, which had some security vulnerabilities patched.

Release 0.19.0 is available on [DockerHub](https://hub.docker.com/repository/docker/jonasbn/github-action-spellcheck) and in the [GitHub Marketplace](https://github.com/marketplace/actions/github-spellcheck-action).

All I have done for this release, apart from releasing it, was reviewing, building and testing - thanks to my tireless bot contributors: @dependabot and @snyk-bot

## Change log

### 0.19.0, 2021-12-18, security release , update recommended

- Requirement [lxml](https://pypi.org/project/lxml/) updated from 4.6.3 to 4.6.5 via PR [#71](https://github.com/rojopolis/spellcheck-github-actions/pull/71) from @snyk-bot. This addresses a security, cross-site scripting vulnerability (XSS) in the [lxml](https://pypi.org/project/lxml/) library, see [SNYK-PYTHON-LXML-2316995](https://security.snyk.io/vuln/SNYK-PYTHON-LXML-2316995)

From the [release notes for lxml 4.6.5](https://pypi.org/project/lxml/4.6.5/):

> A vulnerability (GHSL-2021-1038) in the HTML cleaner allowed sneaking script content through SVG images.
> A vulnerability (GHSL-2021-1037) in the HTML cleaner allowed sneaking script content through CSS imports and other crafted constructs.

- Docker image updated to Python 3.10.1 slim via PR [#70](https://github.com/rojopolis/spellcheck-github-actions/pull/70) from @dependabot
Living in the Shell #19; df (Report Disk Free Space)
Tags: productivity, linux, bash, devops
Published: 2021-12-18 19:55:20

## `df` 💾

Reports disk free space.

## See disk free space

```sh
df
```

> ```text
> Filesystem     1K-blocks      Used Available Use% Mounted on
> tmpfs            1603540      2068   1601472   1% /run
> /dev/nvme0n1p3 471738592 268747932 178957944  61% /
> tmpfs            8017688    327492   7690196   5% /dev/shm
> tmpfs               5120         4      5116   1% /run/lock
> tmpfs               4096         0      4096   0% /sys/fs/cgroup
> /dev/nvme0n1p1    244988      5304    239684   3% /boot/efi
> tmpfs            1603536       120   1603416   1% /run/user/1000
> ```
>
> Note that the values are in kilobytes.

## Human-readable size values `-h`

```sh
df -h
```

> ```text
> Filesystem      Size  Used Avail Use% Mounted on
> tmpfs           1.6G  2.1M  1.6G   1% /run
> /dev/nvme0n1p3  450G  257G  171G  61% /
> tmpfs           7.7G  313M  7.4G   4% /dev/shm
> tmpfs           5.0M  4.0K  5.0M   1% /run/lock
> tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
> /dev/nvme0n1p1  240M  5.2M  235M   3% /boot/efi
> tmpfs           1.6G  120K  1.6G   1% /run/user/1000
> ```

## Include file-system type `-T`

```sh
df -hT
```

> ```text
> Filesystem     Type   Size  Used Avail Use% Mounted on
> tmpfs          tmpfs  1.6G  2.1M  1.6G   1% /run
> /dev/nvme0n1p3 ext4   450G  257G  171G  61% /
> tmpfs          tmpfs  7.7G  296M  7.4G   4% /dev/shm
> tmpfs          tmpfs  5.0M  4.0K  5.0M   1% /run/lock
> tmpfs          tmpfs  4.0M     0  4.0M   0% /sys/fs/cgroup
> /dev/nvme0n1p1 vfat   240M  5.2M  235M   3% /boot/efi
> tmpfs          tmpfs  1.6G  120K  1.6G   1% /run/user/1000
> ```

## Produce a grand total `--total`

```sh
df -h --total
```

> ```text
> Filesystem      Size  Used Avail Use% Mounted on
> ...
> total           461G  257G  182G  59% -
> ```
How to Add Azure AD Authentication to Java Web Application in 5 Mins
Tags: java, webdev, azure, tutorial
Published: 2021-12-18 19:50:51

Do you want to learn how to add authentication to your Java application? In [this step-by-step tutorial](https://www.datawiza.com/blogs/azure-ad-authentication-java-web-application), you will learn how to integrate a Java web application with Azure AD using Datawiza to implement OIDC/OAuth SSO **without writing code**.
Advent of Code 2021 - Day 18
Published: 2021-12-18 19:50:00

---
title: Advent of Code 2021 - Day 18
published: true
description: In this video series, I try to challenge myself with the Advent of Code trials. Each solution will be published to Github, and I hope you will learn something from my coding mistakes and perhaps send some code my way on how you have done these challenges. I know by reading code, so this is such an exciting thing for me.
tags: 
cover_image: https://i.ytimg.com/vi/PeJKE9CWmu4/maxresdefault.jpg
---
{% youtube PeJKE9CWmu4 %}