teleren/devto huggingface dataset:
Run Docker in WSL2 in 5 minutes (via systemd, without Docker Desktop!)
Tags: docker, wsl2
Published: 2022-11-23 07:08:35

Now WSL2 has [systemd support](https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/), we can run Docker in WSL without Docker desktop!


## TL;DR

1. Ensure `/etc/wsl.conf` has

    ```ini
    [boot]
    systemd=true
    ```

2. Restart WSL

    ```powershell
    wsl --shutdown
    wsl --distribution Ubuntu
    ```

3. Install docker-cli - see [my guide](https://dev.to/klo2k/install-docker-docker-compose-in-ubuntu-2204-in-5-commands-35m8)

4. Log back into WSL > Profit 💫


## Complete Guide

1. Ensure WSL is up-to-date:

    ```powershell
    wsl --update
    ```

2. (Optional) Install + configure Ubuntu distro (if you haven't already):

    ```powershell
    wsl --install Ubuntu
    ```

3. Configure WSL (assuming "Ubuntu" is your distro):

    ```bash
    # Open up "Ubuntu"
    wsl --distribution Ubuntu

    # Enable systemd via /etc/wsl.conf
    {
    cat <<EOT
    [boot]
    systemd=true
    EOT
    } | sudo tee /etc/wsl.conf

    exit
    ```

4. Restart WSL:

    ```powershell
    wsl --shutdown
    wsl --distribution Ubuntu
    ```

5. Check systemd is running - You should see 'OK: Systemd is running' message:

    ```bash
    systemctl --no-pager status user.slice > /dev/null 2>&1 && echo 'OK: Systemd is running' || echo 'FAIL: Systemd not running'
    ```

6. Install docker-ce (cmds from [my post](https://dev.to/klo2k/install-docker-docker-compose-in-ubuntu-2204-in-5-commands-35m8)):

    ```bash
    # Install Docker
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    sudo apt update
    sudo apt install -y docker-ce docker-compose-plugin

    # Install docker-compose
    sudo ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose

    # Add yourself to the docker group
    sudo usermod -aG docker $USER

    # Exit bash - this is important!!!
    exit
    ```

7. Re-login (this is important!):

    ```powershell
    wsl --distribution Ubuntu
    ```

8. You can now run docker-cli without Docker Desktop 🙂:

    ```bash
    docker run --rm -it hello-world
    ```
The Stack Behind A Production Level Rotating Proxy Service
Published: 2022-11-23 07:03:53

**Background**

Proxies API is a rotating proxies API that developers use to fetch hard to scrape data at scale and consistently. We auto-rotate millions of proxy servers, and also handle auto retries, rotate user agent strings, handle cookies, CAPTCHAs behind the scenes.

**The Constraints**

The service has to scale to millions of URL fetches a day without lagging on speed and should work out of a single API like this.

curl “http://api.proxiesapi.com/?key=API_KEY&url=https://example.com"

**The Architecture**

The architecture looks somewhat like this.

A more in-depth look at this architecture is provided in this article.

**Load balancing & Serving**

The whole infrastructure is on Amazon EC2. The load balancer plays a significant role in calling the right service based on just the variables passed and the API KEY that holds some secret information like what pool of servers are assigned for them etc.

Our plans have higher concurrency as customers pay more, so we need to pass them to more reliable, dedicated servers as they have higher concurrency needs.

Luckily amazon elastic load balancer can make this using rules you can set, which look at the URL patterns and direct them to different pools of servers intelligently.

Without this exact combination of facilities, we would not have been able to create it all using a single API call without compromising speed and performance somewhere.

We use Apache if there is a need for HTTP servers. Many of these are super optimized to be able to crawl data concurrently using multiple cores. We will soon write an article on how we can get the most amount of crawling ability out of Apache instances.

**Proxy Components**

For CGI, we use a combination of Python and even PHP where required.

Memcache is used to monitor and throttle concurrencies gracefully, so some rouge code by one of our clients doesn’t bring down the entire setup.

As I described earlier, most of this throttling happens in the way we route out requests from the load balancer.

We use the Node Js/Puppeteer library extensively as an interface to connect to Browserless docker instances located on multiple servers. Browserless is optimized to run as many ready-to-go instances of Chromium as possible, so there is no lag in loading any of them for our clients.

**Database**

We use good old MySQL in a Master/Slave configuration to hold user info, cache info, millions of proxy info, quality metrics for each, etc.

**Maintenance tools**

We have a pool pruner that’s written in Python running as a Cronjob. Uses Scrapy and Scrapyd extensively in making calls, monitoring, benchmarking, and pruning proxies from our database.

We use the Beanstalk library for Queues. We use Datadog for monitoring and PagerDuty for alerts.

The author is the founder of Proxies API, a proxy rotation API service.
SEO Agency Dartford UK, SEO Consultant services
Tags: webdev, security, seo, pp
Published: 2022-11-23 06:35:27

Invisio Solutions is the best [SEO ](https://invisiosolutions.com/services/seo/)services provider in London UK, We provide 100% organic & result oriented SEO, SMO, Google Adwords etc. We will plan and implement the best SEO blueprint for your business. Let our Expert SEO Strategists help you get more customers.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wf1s931d0mm27wxoetxx.png)
Regular Function VS Fat Arrow Function
Tags: webdev, javascript, programming, tutorial
Published: 2022-11-23 06:29:01

## Regular function 

```
function ATraditionalFunc () {
  console.log("inside traditonal function")
}
ATraditionalFunc()
```

## Output
```
inside traditonal function
```

## Arrow Function or Fat Arrow function

```
const AFatArrowFunc = () =>{
  console.log("inside fatArrowFunc function")
}
AFatArrowFunc()
```

## Output
```
inside fatArrowFunc function
```
 

> Both behaved the same then what is the difference??

## If we call both functions before its initialization what will happen?

```
ATraditionalFunc()
AFatArrowFunc()
function ATraditionalFunc () {
  console.log("inside traditonal function")
}
const AFatArrowFunc = () =>{
  console.log("inside fatArrowFunc function")
}
```

## Output

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

We got a Reference Error, why did it happened?
There are two reasons :

## Hoisting
JavaScript Hoisting refers to the process whereby the interpreter appears to move the declaration of functions, variables or classes to the top of their scope, prior to execution of the code.
for more information: [[click here](https://developer.mozilla.org/en-US/docs/Glossary/Hoisting#:~:text=JavaScript%20Hoisting%20refers%20to%20the,defined%20in%20the%20ECMAScript%20specification.)]



![test](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4wy5pdzguz2knq2tr82d.png)
**When Execution is in Line no. 1**
Regular function in allocated memory in Global scope whereas Fat Arrow function in allocation in Script scope. Therefore when we try to access a function before its Initialization it gives us reference error.

> If hoisting is the only reason then, what happens if we do this ?

```
ATraditionalFunc()
AvarfatArrowFunc() 
function ATraditionalFunc () {
  console.log("inside traditonal function")
}

var AvarfatArrowFunc = () =>{
  console.log("inside varfatArrowFunc function")
}
```

## Output

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

we changed const to var and output is still the same.
Here comes how JavaScript treats variables and functions.

## Value initialization


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



when JavaScript allocates memory it assign undefined to Fat Arrow function because JS treats it as a variable  and whole function to Regular function, refer above image.
Keyoxide
Tags: keyoxide, pgp
Published: 2022-11-23 06:19:41

---
title: Keyoxide
published: true
description: PGP-Key based verification
tags: Keyoxide, PGP
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-23 06:17 +0000
---

Um mich mit meinem PGP-Key zu verifizieren habe ich mir das Keyoxide Projekt ein wenig angeschaut.

Hier könnt ihr das Ergebnis sehen: [Keyoxide Profil](https://keyoxide.org/hkp/846B66202B20809E319DDCCC50403BDFC68D76E1).
How to Write an API Tester Resume (With Example)
Tags: testing, beginners, tutorial, programming
Published: 2022-11-23 06:13:27

API Testing Resume: In this video, we will learn How to Write an API Tester Resume with examples shared. 

Learn API Testing from Scratch: In this video, we are covering the How You can learn the API Testing Manually and API Automation with 150+ Videos easily.
{% embed https://youtu.be/_k-Y85DYkXs %}

✅ Visit below for LIVE Classes
https://thetestingacademy.com

✅ Mastering API Testing using POSTMAN - [Complete Course]
https://sdet.live/AHl2
✅ 30 Days of API Testing
https://sdet.live/AHkw
✅ 30 Days of API Testing Challenge with REST-Assured 
https://sdet.live/AHkx
✅ API Testing Interview Questions for Freshers 
https://sdet.live/AHk_
✅ Karate API Testing Tutorial 
https://sdet.live/AHl0
Tea Burn Reviews:herbque Green(100% Natural) Tea Burn Fat and Reduce Weight!
Published: 2022-11-23 05:52:41

The plan is rather useless. What do you should know before you get started with a threadbare phrase? Doing this can also be done in moderation. I'm OK, you're OK.I cannot ignore this: I am a recognized old hand in an arrangement. It has been the clear proof I needed. This is a way to get a thrill from harvesting Exipure. What [Tea Burn](https://www.outlookindia.com/outlook-spotlight/tea-burn-review-oral-weight-loss-formula-effective-or-waste-of-money-news-237273) schemes are fanatics more likely to examine? They don't understand. 

Considering that I am recognized for that privilege it's not a shock that crowds want to talk to me. That is what you're trying to do with doing it. That's almost limitless in what it can do. Indubitably, there are days when I wonder if I have any it at all. Why do we ask? It might be. I'm so cold hearted sometimes. Finally! Why don't you field that one for me? At first, I did not know how to begin. 

I'm feeling unhappy currently. You could at least take a glance at them and see what is out there. I believe that technology will eliminate their scheme. There's no Tea Burnand no other Weight Loss Supplements is involved or it wasn't unusual. Except… Why do so many buddies have so many perceptions as to that motion? That came in a few unexpected boxes. To what degree do family members discover common Tea Burntricks? When you are finished reading this post, you will see this. You can use this installment as a reference. I wasn't floored by it. Tea Burn


https://www.outlookindia.com/outlook-spotlight/tea-burn-review-oral-weight-loss-formula-effective-or-waste-of-money-news-237273 

https://sites.google.com/view/tea-burn-weight-loss-buy/ 
https://groups.google.com/g/tea-burn-ingredients/c/u8jRz8TX-D0 
https://datastudio.google.com/reporting/c9deb248-b8f1-4191-a465-57d4f5428563/page/HJo7C 
https://colab.research.google.com/drive/1GzLmwUdkmBmc4ZAf6kczjOILvfRurn3V 
https://teaburnoffer.wordpress.com/ 
https://teaburnorder.tumblr.com/ 
https://en.gravatar.com/teaburnoffer 
https://telescope.ac/tea-burn-weight-loss/teaburnorder
How To File Upload In Laravel 9 Example
Tags: laravel, laravel9, fileupload, php
Published: 2022-11-23 05:30:00

In this article, we will see how to file upload in laravel 9 example. 

Here we will show you the laravel 9 file upload in the pubic folder example. 

In this example, you will learn how to upload files in laravel 9 into the database and storage directory with validation. Also, we will see how to validate file mime type, file size, etc using laravel 9 validation rules.

For the file upload example, we will add two routes and create functions in the controller for the validation of the file. Also, we will create a form to submit files.

So, let's see a file upload in laravel 9.

```
Step 1: Add Routes

Step 2: Create FileUploadController

Step 3: Create Blade File
```
not show custom hh:mm format in chart.js.
Published: 2022-11-23 05:19:31

I am using chart.js to show custom hh:mm in chart.js tooltip or when hover on chart its is not accept hh:mm (ex-24:23) format but accept hh.mm (ex-24.23).
How can i achive hh:mm (ex-24:23) format?
please provide a solution.
String to character array
Tags: javascript, webdev, programming, beginners
Published: 2022-11-23 05:02:25

### Converts a string to an array of characters.

* Use the spread operator (...) to convert the string into an array of characters.

```javascript
const toCharArray = string => [...string];

toCharArray('Glikpo'); // ['G', 'l', 'i', 'k', 'p', 'o']
```
Best IAS/UPSC Coaching Institute in Dombivli, Thane.
Tags: upsc, upsccoaching, upscexam, competitiveexams
Published: 2022-11-23 04:55:00



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8k9v5i2umsm7ul2j7bac.png)Crack UPSC CAPF in the first attempt.
Helpful Tips and Tricks, Strategy/planning/books to crack CAPF 2023  for aspirants preparing for UPSC CAPF 2023. 

UPSC civil services Exam? GICE Academy has got your back.

[Best IAS Coaching Institute in Dombivli, Thane.
](https://giceacademy.com/upsc-coaching-classes-in-thane/)
The Civil Services Examination is one of the hardest tests to pass, and recently, many students have chosen to work in government. As a result of this growing tendency, more IAS/UPSC Coaching Classes in Thane have emerged, offering coaching and assisting candidates in reaching their goals.
Infinite scrolling and footer don't work well together (not even on DEV.to)
Tags: webdev, opensource, ruby
Published: 2022-11-23 04:49:00

---
title: Infinite scrolling and footer don't work well together (not even on DEV.to)
published: true
description: Forem, the application that powers DEV.to has infinite scrolling which does not work well with the footer
tags: webdev, opensource, ruby
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2022-11-23 04:49 +0000
canonical_url: https://code-maven.com/infinite-scrolling-and-footer
---

While reading this article press the END button on your keyboard. It will jump to the bottom of the page where you'll see a footer with a number of links including one to [Forem](https://www.forem.com/) the platform [DEV](/) runs on.

Just don't forget to scroll back to continue reading the article.

{% youtube LnW157GNMlg %}

However, if you open the [main page of DEV](/) or the listings of one of the [tags](/tags), you will notice that after a very short period of time more content is loaded and the links disappear.
The automatic loading of additional content at the bottom of the page is called "*infinite scrolling*".
Unfortunately this is rendering the footer unusable on these pages making the whole experience very frustrating.

So frustrating that I decided to write a whole post about it :-)

I seemed to remember that I already complained about it, but did not remember where. I was also wondering if it only frustrates me or others as well.

So I went to the GitHub repository of the project and found several related issues:

* [Infinte scrolling needs to be fix on https://dev.to/ homepage](https://github.com/forem/forem/issues/11576)
* [Footer should be viewable](https://github.com/forem/forem/issues/9034)

And a discussion:

* [Footer should be viewable](https://github.com/forem/forem/discussions/15322)

I have not been able to read all the comments, but I am surprised this issue still exists. I think I'd just remove the footer from all the pages that have infinite scrolling.
Announcing Launch of A Full Stack Course With Bonus Content
Tags: javascript, react, node, codenewbie
Published: 2022-11-23 04:30:19

Today I'm extremely excited to announce the pre-launch of the MERN(MongoDB, Express, React and Node.js) stack course where you will learn to [build an online learning platform](https://online-elearning-platform.netlify.app/) just like Udemy, Pluralsight etc.

It's a video based course and not text based.

It's also one of the best project to add to your portfolio to get hired.

> This is the only course you will need to become a MERN Stack developer(full stack).

**The biggest feature of this course is that, you will learn how to write unit test cases for the entire React application using react testing library.**

## What You Will Learn In This Course

- How to create React and Node.js project from scratch

- Learn how to use React Context and useReducer hook together to write better code

- Implement secure cookie based login authentication without storing a token in local storage

- Role based authentication for course instructors and users

- Learn how to implement private routes

- Learn how to restrict your backend APIs to be accessible by authorized and logged in users only

- Learn React Router 6, manage application state using Redux toolkit

- Separate Instructor and User dashboard

- How to allow purchasing courses using stripe payment

- Learn how to upload and store course videos on amazon S3

- How to write secure code to avoid sql injection and other security issues

- Learn how to deploy the application to production

and a lot more..

This course is perfect for you, even if you're just a React developer.

**As a part of black friday sale and pre-launch offer for limited time, you will be able to get this course at 70% discount today.**

> After Learning Through This Course, You Will Be Able To Build Any MERN Stack Application Confidently And Easily.

## Testimonial

![reviews_course.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669176444802/cNqjlX59r.png)

## Bonus Content

If you purchase the course today, you will get **FREE** access to my popular [Mastering Modern JavaScript](https://modernjavascript.yogeshchavan.dev/) ebook and [Mastering Redux](https://master-redux.yogeshchavan.dev/) course immediately after signup as a part of bonus.

**So click the link below to learn more about the course, reviews, FAQs and join the course today to get 70% discount offer.**

[Join MERN Stack Course Now](https://online-elearning-platform.netlify.app/)

**Want to stay up to date with regular content regarding JavaScript, React, Node.js? [Follow me on LinkedIn](https://www.linkedin.com/in/yogesh-chavan97/).**
UseState Hook React
Tags: webdev, beginners, react, programming
Published: 2022-11-23 03:59:58

**UseState Hook**

The React useState Hook allows us to track state in a function component.

State generally refers to data or properties that need to be tracking in an application.

```
import React,{useState} from 'react';

function Example(){
const [count,setCount] = useState(0);
return(
	<div>
		<p>you have clicked {count} times</p>
		<button onClick={()=> setCount(count+1)}>
		Click Me
		</button>
	</div>

	);
}
```
Release 0.3 External Pull Request
Tags: beginners, opensource, python
Published: 2022-11-23 03:52:42

For my release 0.3 for OSD600, I have to create a pull request for an external repo. The repo I contributed to was [cve-bin-tool](https://github.com/intel/cve-bin-tool). This post was late because I had was busy with other commitments and projects compounded with problems finding workable issues. In the future, I would definitely follow my own advice and search for issues early and often. I didn't follow this advice and found myself in this position.

## My pull request
[My pull request](https://github.com/intel/cve-bin-tool/pull/2392) involved updating syntax for some files in order to modernize the code in the project. I've had minimal exposure to Python, only having worked on [another student's SSG](https://github.com/sfrunza13/SiteGenerationTool) made in Python, so it was somewhat of a shift to understand the basics of Python syntax. There isn't much more to say at the moment, but I will update this post as I receive feedback from the maintainers and hopefully have my pull request merged.

## What I learned
Definitely look for issues that are "good enough", and as stated earlier to look for issues early and often. I took the last few days just too search for issues only to come up with nothing. There definitely are much less viable issues now that Hacktoberfest is over, which though I expected but didn't didn't anticipate a drought to this degree. For release 0.4, I will keep these things in mind and try my best to set myself up for success.
You are losing $30,000 per Year
Tags: startup, webdev, productivity
Published: 2022-11-23 03:35:05


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x96f83jy5hk5gt2y7nv1.PNG)
**Every SaaS and Membership business owner will be aware of the customer churn which is destroying their business and they are losing their monthly profit and efforts.**

Before starting if you do not know What is churn rate?
Churn rate is the % of customers who leave your service in a specific period of time.

For example, if you have 1000 customers at any given time and 50 leave over a month, your churn rate for that month is 5%. If every customer paying you $50 for each membership than you are losing $2500 monthly. Yearly it will be $30,000. 

_What if you have a 10% churn? Some companies face a 30-40% churn rate. How big is this number and you are losing thousands of dollars?_

Hope now you have full understanding about the churn rate and how it's destroying the membership business. 

There are many reasons of customer high churn like:

- High Price
- Low Quality
- Poor Service
- No need for further
- Lack of tool knowledge
- Complicated process
- Extra charges

First you need to understand what is the major problem. That's why people leaving your product can be calculated by the Churnfree. 

When you know what is the base reason for the customer high churn try to resolve it as fast as possible?

Can I reduce it to zero? The short answer is no, but can you reduce it? 

**This can be reduced by Churnfree, a customer retention tool that will help you in the reduction of high customer churn.**

It’s easy to integrate with the Churnfree when the user presses the membership cancel button it will start working first. It tries that the customer did not cancel the request by offering them an offer which you create with Churnfree. If the user agrees with the offers hurrah you have saved your customer but if the user did not accept the offer still churnfree ask the reason why he/she is leaving in this way you know the real reason what is wrong with your product. 

Churnfree can save up to 46% of churned requests. Let again understand this in numbers if you receive 100 members and cancel requests out of 1000. Then it can save your ~46 customers in the month. You can imagine how big this number is and how much money you can save. 

Try [Churnfree](https://churnfree.com/) today for your Product growth!