teleren/devto huggingface dataset:
Getting Started with Traefik Cloud Native Edge Router
Tags: docker, kubernetes, devops, microservices
Published: 2020-10-01 08:29:17

OK, so maybe you have heard about the term Traefik, Edge Router, or Reverse Proxy/load balancing. Let's take this a bit further so you can fully understand what is Traefik, the benefits, and a high-level overview.

To help demystify Traefik and some of the buzzwords surrounding Cloud Native Edge Routers we created a Getting Started with Traefik Video.

This video is about how to get started using Traefik. We cover a background about Traefik, the architecture, and configuration. Next, we do a demo of Traefik load balancing our Cat Gif application with Let's Encrypt, and Basic Authentication. We also added custom error pages to show nice 400 errors instead of boring error pages.

## Agenda of the Video
* Background Traefik
* Demo
* Lab

You can find the lab material here: [Traefik Lab](https://github.com/56kcloud/traefik-training/blob/master/01-Traefik-Overview/traefik_overview.md)

Interested to learn more about Traefik? Check out our Traefik Training course. [https://www.thebyte.io/traefik-training](https://www.thebyte.io/traefik-training)

## Getting Started with Traefik Cloud Native Edge Router

 {% youtube tuM0TTFUz3E %}
Travel GDS Software
Published: 2020-10-01 05:14:27

A travel GDS, Global Distribution System can link services, rates and bookings consolidating products and services across all three travel sectors especially reservations in airlines, hotels, car rentals and activities. Travel GDS provides real time link to online booking software platforms, B2B B2C portals and meta search engines. It holds no inventory, rather its an aggregation and distribution platform. With travel GDS software, a travel agent can book flight, hotel, attractions, sightseeing, transfers and car services. If you are looking for GDS system software with B2C, B2B, mid office and admin - LETS TALK!!!

Visit website: https://www.provab.com/gds-software.html

PROVAB Technosoft is a leading GDS travel software company, developing and deploying best in class travel booking systems with travel APIs & GDS connections. A GDS (global distribution systems) are computerised network systems owned by the leading travel technology companies like Amadeus, Travelport, Sabre. Travel GDS systems enable transactions between travel agencies, DMCs and corporate agencies and providers like airlines, hotels, transfers providers, cruise and sightseeing providers.

PROVAB has a team of 120+ GDS developers / EDIFACT developers and its dedicated travel GDS software team follows the best practises to bring the customer idea into reality by deploying best in class travel portals, online booking engines, corporate travel booking tools and IBEs. Over last decade, we have deployed several travel booking platforms connected with all the leading GDS and third party APIs.
Hacktoberfest 2020 - MDX Embed
Tags: hacktoberfest, github, react, mdx
Published: 2020-10-01 08:20:14

---
title: Hacktoberfest 2020 - MDX Embed
published: true
description: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/e9edgt6bj6rnus3u25i7.png
tags: hacktoberfest, github, react, mdx
---

I talk with Paul Scanlon about the Hactoberfest event prep he has done for MDX Embed.

{% youtube TzWm_tullLo %}

If you want to get involved take a look at the [umbrella issue].

[umbrella issue]: https://github.com/PaulieScanlon/mdx-embed/issues/71
Pulled Hamstring – Causes, Symptoms, And Treatment

Tags: symptoms, treatment
Published: 2020-10-01 08:11:05

Hamstring strain is also known as the pulled hamstring. Aches and pains on the back of the legs may be a sign of a hamstring injury.

Pulled hamstring injuries are common in athletes participating in many sports. Field and track athletes are particularly at risk, as hamstring strain has been estimated to make up to 29% of all injuries in the sprinters.

Keep reading this blog to know about the cause, symptoms, and treatment of pulled hamstring. 

What Are The Hamstrings?
Hamstrings are the collection of the three muscles that can locate in the back of the thigh to bone. The hamstring muscle is the large muscle that pulls on these tendons.

It has become more common in layman’s terminology to refer to the long muscles at the back of the thigh as the hamstring or hamstring muscles.

Academic anatomists will refer to them as the posterior thigh muscles and more specifically the biceps femoris, the semitendinosus, and the semimembranosus.

These muscles span of the thigh are crossing both the hip and the knee. They can also originate or begin at just below the buttocks and arise from the bone on which we will sit.

They also connect by the means of their tendon onto the upper parts of the lower leg bones. The origin of the word hamstring comes from the old English Hamm, which means thigh.

String refers to the characteristic appearances and feel of the tendons that will just above the back of the knee. Although, the tendons are sometimes involved in injuries.

The hamstring muscle can help to actively bend the knee. They also act and straighten or the hip as in the motion of moving the thigh backward. Surprisingly, these large muscles are not very with normal standing or walking.

However, hamstring muscles are extremely important for power activities such as climbing, jumping, and running.

Thus, the sedentary individuals can get by the quite week or the deconditioned hamstrings, whereas the athletes and the very physically active individuals absolutely depend on the health and also the good condition hamstrings.

The power advantage of strong hamstrings is known for a long time. In the time past, a sword-wielding knight would disable an opponent by the slice across the back of the thigh.

 

https://mamadailydose.com/pulled-hamstring/
Upload files to MongoDB GridFS with Express
Tags: node, mongodb, database, javascript
Published: 2020-10-01 08:01:54

---
canonical_url: https://abskmj.github.io/notes/posts/express/express-multer-mongoose-gridfile/
---

Create express based APIs to upload and download files to and from MongoDB GridFS.

> [GridFS](https://docs.mongodb.com/manual/reference/glossary/#term-gridfs) is a specification for storing and retrieving files that exceed the BSON-document size limit of 16 MB.

# Install Dependencies
- `express` to create the APIs
- `multer` to handle multi-part file uploads
- `mongoose` to manage connections to MongoDB
- `gridfile` to manage interactions with GridFS

# GridFile Mongoose Model
[GridFile](https://github.com/abskmj/gridfile) is a reusable Mongoose Schema for MongoDB GridFS.

```javascript
// gridfile.model.js

const mongoose = require('mongoose')
const schema = require('gridfile')

module.exports = mongoose.model('GridFile', schema)
```

# Multer Middleware
[Multer](https://www.npmjs.com/package/multer) will parse `multipart/form-data` request and the uploaded files will be accessible as `req.files`

```javascript
const multer = require('multer')
const upload = multer({ dest: path.join(__dirname, '.') })
```

# Upload File API
API uses the multer middleware and GridFile model to upload files to GridFS.

```javascript
app.post('/v1/files', upload.any(), async (req, res, nxt) => {
  try {
    // uploaded file are accessible as req.files
    if (req.files) {
      const promises = req.files.map(async (file) => {
        const fileStream = fs.createReadStream(file.path)

        // upload file to gridfs
        const gridFile = new GridFile({ filename: file.originalname })
        await gridFile.upload(fileStream)

        // delete the file from local folder
        fs.unlinkSync(file.path)
      })

      await Promise.all(promises)
    }

    res.sendStatus(201)
  } catch (err) {
    nxt(err)
  }
})
```

# List Files API
API returns information about uploaded files.

```javascript
app.get('/v1/files', async (req, res, nxt) => {
  try {
    const files = await GridFile.find({})

    res.json(files)
  } catch (err) {
    nxt(err)
  }
})
```

Sample response

```json
[
  {
    "aliases": [],
    "_id": "5f6850023516552ad21d0007",
    "length": 7945,
    "chunkSize": 261120,
    "uploadDate": "2020-09-21T07:02:26.389Z",
    "filename": "attachment.pdf",
    "md5": "fa7d7e650b2cec68f302b31ba28235d8"
  }
]
```

# Download File API
API returns the file from the GridFS using its id.

```javascript
app.get('/v1/files/:id/:name', async (req, res, nxt) => {
  try {
    const { id, name } = req.params

    const gridFile = await GridFile.findById(id)

    if (gridFile) {
      res.attachment(name)
      gridFile.downloadStream(res)
    } else {
      // file not found
      res.status(404).json({ error: 'file not found' })
    }
  } catch (err) {
    nxt(err)
  }
})
```

Sample Request URL
```
/v1/files/5f6850023516552ad21d0007/attachment.pdf
```

> A working codebase for reference is available at [gist.github.com](https://gist.github.com/abskmj/655dbc3191e108d6a5a55e28446bc1e9)
How do You do testing?
Published: 2020-10-01 08:01:53

I'm currently working through adding livewire (a server side framework) to my laravel app - HypeTracker, but I decided to stop and think about how some of you DEV members approach testing for small or personal projects because a lot of testing posts have been popping up lately.

It was easy for my backend parts as I was fairly comfortable writing unit tests for API and functions. But do you guys do any browser testing as well before writing the visual portions? Mostly talking about pet projects.
Analyze directory with Python
Tags: python, productivity, showdev
Published: 2020-10-01 07:55:05



Today I want to show you a cool Python module that creates statistics from a folder structure.

`Folderstats` is a python module and command-line interface that creates statistics from a folder structure. It returns a [Pandas](http://pandas.pydata.org/) dataframe from the folders and files from a selected folder.

You can install via pip:
```sh
pip install folderstats
```
To get statistics of a folder structure as a Pandas dataframe in Python you can type:
```sh
import folderstats
df = folderstats.folderstats('your_folder_path',  ignore_hidden=True)
df.head()
```
You can run this with this command
```sh
folderstats your_folder_path/  -p -i -v -o final.csv
```
In this case the `-i` argument makes sure that hidden files (starting with a dot like the `.git` folder or `.gitignore`) are ignored, `-p` includes the id of files and folders and the parent ids which can be used to build a graph and finally `-v` is responsible for a verbose output for some feedback while running.

Final output looks like this:
![enter image description here](https://i.ibb.co/m9VD9Sv/test-image.png)
***Thank you all*.**
Hacktoberfest: ArkScript - an open source scripting language
Tags: showdev, hacktoberfest, cpp
Published: 2020-10-01 07:50:40

Hi everyone!

After receiving a few issues and PR on [ArkScript repositories](https://github.com/ArkScript-lang), I figured that it could be a great idea to make a short guide (+ a presentation of the project) on how to make a quality contribution.

# What is ArkScript?

ArkScript is a small, fast and functional scripting language for C++ projects, inspired by Lisp, running on its own virtual machine.

Our goal is to make a language with few keywords (if a language has too many, it's a bad practice because they are trying to fix things by adding new "features"), which nearly anyone can understand. Indeed, if you understand that everything after a `(` is a function, you understand the whole language.

ArkScript is not just the compiler and virtual machine, it's also a package manager, [nuclear](https://github.com/ArkScript-lang/nuclear), [benchmarks](https://github.com/ArkScript-lang/benchmarks) against other languages, a growing [standard library](https://github.com/ArkScript-lang/std), and much more!

# Quality contributions

Those are meaningful updates to any of those projects, thus not things like correcting indentation, adding two words on a README.md, adding an unrelated file to a project.

Alas those were the kind of PR (not all of them luckily) I received this morning, people being greedy for easy PR for the Hacktoberfest.

We have plenty of issues all over our repositories, even simple ones like:
* nuclear (package manager)
    * [Downloading a tar from Github](https://github.com/ArkScript-lang/nuclear/issues/3)
    * [Generating the package list file after installing a package)(https://github.com/ArkScript-lang/nuclear/issues/4)
* standard library
    * [How to improve - thread](https://github.com/ArkScript-lang/std/issues/4), leading to more PR
* Ark (the core of the language)
    * [More examples](https://github.com/ArkScript-lang/Ark/issues/157)
    * [Improving the bytecode reader CLI](https://github.com/ArkScript-lang/Ark/issues/158)
    * [Fixing the lexer error reporter](https://github.com/ArkScript-lang/Ark/issues/159)
* modules (C++ code loaded by the virtual machine to extend its capabilities)
    * [A bunch of small modules to add](https://github.com/ArkScript-lang/modules/issues), from crypto functions, to mysql binding
* ArkScript-VSC (a visual studio code extension for coloration)
    * [Adding ArkScript icon to ArkScript files](https://github.com/ArkScript-lang/ArkScript-VSC/issues/2)
    * [Adding code snippets when writing a triple `#`](https://github.com/ArkScript-lang/ArkScript-VSC/issues/3)
* benchmarks
    * [Adding more benchmarks](https://github.com/ArkScript-lang/benchmarks/issues)

So here we are, useful contributions would qualify as contributions adding something important to a project, fixing a bug, adding a functionnality.

------

Happy Hacktoberfest everyone!
Online Protection for Your Children- Webroot Parental Controls
Tags: webroot, webrootdownload, webrootsecureanywhere, webrootgeeksquaddownload
Published: 2020-10-01 07:33:35

Webroot Parental Control will help to keep your children safe from the dangers and threats in the online world.
It offers a comprehensive set of features so that you remotely control as well as prevent your children from visiting any unauthorised sites.
You can schedule how much your children can use the computer, internet and specific programs. It's not easy to hack Webroot Parental Control.
The Web filtering it offers is impressive in blocking harmful and malicious websites. On top of that, you can remotely control your children browser protection locally.
Initially, the parental control was Webroot Child Safe parental-control. It was good, worked well, but the minus point was its user interface.
The newest and current version, the Webroot Parental Control has gone through a lot of improvement from its flexible UI to the ease of use. Its performance is quite good too.
The latest version 5.0 is available for Windows running OS, and the subscription starts at $39.95. You can install it on three computers.
Let’s look at the features it offers.
The Essential Features of Webroot Parental Control
Almost 60% of children age three and above use the internet.
It is not only crucial for the adults to protect the system but also prevent their children against any malicious activities.
Webroot Parental Control is the perfect program you should install to prevent any bad things to happen.
Below are the features it comes along-
•You can see what subject matter your children are looking online.

•Have control over the access to the computer and the program your children can use.

•You can block or allow content categories, web site address or a keyword.

•Protection on privacy ensuring no activity is happening without your knowledge.

•Auto logs off before your children bedtime.

•You can tailor the level of protection and profile for each child.

When it comes to remotely monitor and filtering web content to controlling your children's activity in an easy to use UI, Webroot Parental Control offers the best.
Ensure that your children stay protected and away from dangers in the digital world, install WPC now. 
You can also use, Webroot download will ensure a comprehensive defence mechanism to your identity and data secured from malicious viruses, internet threats, dangerous viruses, hackers etc. so that you can stay worry free in a safer environment. Webroot is a cybersecurity software company that provides internet security for both individuals and businesses.
Read More - https://www.safewebroot.com/webroot-geek-squad/
Create a repo in Azure DevOps using the CLI and PowerShell
Tags: devops, azure, powershell
Published: 2020-10-01 07:32:14

---
title: Create a repo in Azure DevOps using the CLI and PowerShell
published: true
description: 
tags: devops,azure,powershell
//cover_image: https://direct_url_to_image.jpg
---

>This is a part of a series on using VM images in Azure compute to build lightweight application deployment options as opposed to PaaS options such as App Services and more complex IaaS such as Azure Kubernetes Service.

---

#### Prerequisites
- Azure account
- Azure DevOps account & organization
- git
- powershell
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
- [Azure DevOps CLI](https://docs.microsoft.com/en-us/azure/devops/cli/?view=azure-devops)

First, ensure you are logged into Azure CLI (`az login`) to the correct account, if you have the DevOps extension, this will authenticate there as well.


To keep this work separate from any of our product code and backlogs, let's start by creating a new Azure DevOps project. In this snippet I use my organization: "psibrorg", replace that with your own and choose if you want to leave the project public or make it private.

```powershell
az devops project create --name "Azure IaaS Series" --org https://dev.azure.com/psibrorg --visibility public
```

When we create a new project it creates a default git repository of the same name which works great for us.

```powershell
mkdir "Azure IaaS Series"
git init

# Create a readme file
"#Azure IaaS Series" > readme.md

git add .
git commit -m "Initial commit"

# Add the default repo as the upstream origin
git remote add origin (az repos list --project "Azure IaaS Series" --org https://dev.azure.com/psibrorg --query [0].webUrl)

git push -u origin master
```
The Descartes Software Development Kit
Tags: css, javascript, blockchain, python
Published: 2020-10-01 07:10:46

The Descartes SDK provides DApps with massive computational scaling and the generality of Linux while keeping the strong security guarantees of the Blockchain.

We've created a video explaining how Descartes works and how to build your DApp with Cartesi.

Watch it here: https://www.youtube.com/watch?v=kGkd48vo6UI&t=6s
Creating Accordion using HTML and CSS
Tags: html, css
Published: 2020-10-01 07:04:09

Hello guys, I want to show you how to create Accordion using HTML and CSS.

Let start with the html
```html
<details>
  <summary>I am awesome</summary>
  <p>Hi there this is an awesome paragraph</p>
</details>
<details>
  <summary>I am awesome</summary>
  <p>Hi there this is an awesome paragraph</p>
</details>
<details>
  <summary>I am awesome</summary>
  <p>Hi there this is an awesome paragraph</p>
</details>
<details>
  <summary>I am awesome</summary>
  <p>Hi there this is an awesome paragraph</p>
</details>
```

Now let's give it a style to the accordion.
```css
html {
  height: 100vh;
}

body {
  height: 100%;
  display: grid;
  place-content: center;

  font-family: 'Montserrat', sans-serif;
}

details {
  background: mistyrose;
  padding: 0;
  width: 20rem;
  background: #eee;
  border-bottom: 1px solid #242424;
  box-shadow: 0 2px 1px 2px #242424;
}

details:nth-child(1) {
  border-top: 1px solid #242424;
}

details p {
  background-color: #9effed;
  padding: 1em;
  margin-top: 0;
  margin-bottom: 0;
}
details[open] {
  background-color: #ddd; 
}
details[open] summary~* {
  animation: anim .5s ease-in;
}

summary {
  padding: 1em;
  margin: 0;
  outline: none;
  cursor: pointer;
}

details:hover{
  background-color: #ddd; 
}

@keyframes anim {
  0% {
    opacity: 0;
    margin-top: -50px;
  }

  100% {
    opacity: 1;
    margin-left: 0;
  }
}
```

Result:
{% codepen https://codepen.io/sekti92/pen/abNgdQv %}
Web Portal Development
Published: 2020-10-01 07:02:45

Web portal development is a multi-dimensional activity that involves proficiency at many levels whether it is architecture design, GUI design, DB planning, coding or middle tier integration. A web portal well executed, can create a brand for its owner and becomes known gateway for the users across world wide web. Web portal development services revolve around developing comprehensive web applications connected with third party APIs including SMS and payment gateways. The web portal developers today, use the Web 2.0 strategies and solutions to develop web portal which include interactive tools like discussion forums, blog community, real time chat, rating tools, voting polls, videos and so on. If you are looking for web portal development solutions with B2C, B2B, mid office and admin - LETS TALK!!!

Visit Website: https://www.provab.com/webportaldevelopment_socialnetworkingportal.html

PROVAB is a leading web portal development company and delivers best in class web portal solutions to customers in 48 countries. Our web portal development services include travel portal development, real estate portal development, B2B (Business to Business) portals, B2C (Business to Consumer) portals, ecommerce portal development, enterprise portal development and web portal migration and portal maintenance. PROVAB offers end to end solutions with its vast experience to build interactive and efficient portals for its clients.

PROVAB has a team of 150+ web portal developers and its dedicated web portal software team follows the best practises to bring the customer idea into reality by deploying best in class web portals and native mobile apps on demand. Over last decade, we have deployed several mission critical applications and web portals to clients in United States, Canada, Germany, United Kingdom, India, Indonesia, Australia and several other countries.