teleren/devto huggingface dataset:
Using SourceIp in ALB Listener Rule
Tags: aws, devops, loadbalancer, cloud
Published: 2020-12-19 15:12:25

- For port `443` of an ALB, it's often set public but some domains are restricted access outside of office/working network especially those one do not have login phase (it's always possible to setup this but in this case assume no), for example, `grafana.dev.com`, `prometheus.dev.com`, `datadog.dev.com`, etc.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/613g30t4d81nytkx1n05.png)
- To overcome this, use sourceIp in HTTPS 443 listener rule. Assume office network is `14.64.20.233/32` and `118.20.134.243/32`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1f8z8z0dzh7mvp04pqjq.png)
Advent of Code 2020 Solution Megathread - Day 19: Monster Messages
Tags: adventofcode, challenge
Published: 2020-12-19 15:10:29

---
title: Advent of Code 2020 Solution Megathread - Day 19: Monster Messages
published: true
description: Have you ever been an elven regex interpreter?  Do you want to be?
tags: adventofcode, challenge
series: Advent of Code 2020
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/23x5smu9iefj52rkcp0b.png
---

Yesterday was officially the first day I failed to complete the puzzle on the day, due to a busy schedule.  I'm still planning on getting caught up and saving Christmas, but now I've got a bit of a hill climb.  How caught up are you?

## The Puzzle

In [today’s puzzle](https://adventofcode.com/2020/day/19), the elves have cooked up some sort of graph-based regular expression tree, and they need help parsing through it to get messages from their satellite in order to get pictures of a sea monster!  These elves sure do spend a lot of time coming up with their own custom interfaces and protocols. 

## The Leaderboards

As always, this is the spot where I’ll plug any leaderboard codes shared from the community.

```
Ryan's Leaderboard: 224198-25048a19
```

If you want to generate your own leaderboard and signal boost it a little bit, send it to me either in a DEV message or in a comment on one of these posts and I'll add it to the list above.

## Yesterday’s Languages

Updated 07:10AM 12/19/2020 PST.

| Language   | Count |
|------------|-------|
| JavaScript |     2 |
| Haskell    |     2 |
| Java       |     1 |
| F#         |     1 |
| Perl       |     1 |
| Rust       |     1 |

Merry Coding!
How to make HTTPD Service idempotence in Nature using Ansible?
Tags: ansible, linux
Published: 2020-12-19 14:56:25

Hello everyone,

In this blog, we are going to solve one problem and that problem is **"Restarting HTTPD Service is not idempotence in nature and also consume more resources"** 

So let's solve this problem:

> The task that we are going to perform in this blog are:

- Create an Ansible playbook to configure **yum** in the **managed node**.
- Install apache webserver **httpd** in the **managed node**.
- Configure the **webserver**.


My setup is something like this👇

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

> Now create an Inventory

Create an Inventory anywhere in the system, here I have created an inventory named **ip.txt**.

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

> Now check the connectivity with Managed Node using the command **ansible all -m ping**

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

> Now create an ansible configuration file.

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

> Now create a configuration file for htttpd

Here I have created a configuration file named **httpd.conf**

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

> Now Create an Ansible Playbook

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

**In this playbook, we have configured yum, installed httpd, and configured it**.

Now before running the playbook let's check in the managed node whether yum and httpd is configured already or not...

- To check whether yum is configured or not use command **yum repolist**

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

Here you can it is not configured.

- To check whether httpd is installed or not use command **rpm-q httpd**

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

Here you can see httpd is not installed

> Now run the playbook

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

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

Here you can see the playbook run successfully....

> Now check in the managed node, changes that we did using ansible are done or not.

 - let's check yum is configured or not, we can check that using command **yum repolist**

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

now you can see that it is configured successfully....

- check httpd is installed or not, we can check that using command **rpm -q httpd**

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

Now you can see it is installed successfully....

- check whether the configuration file is placed in managed node or not.

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

Here you can see **httpd.conf** that we created is placed and configured successfully...

Thank you..❄
NTP Website idea - desktop only
Tags: codepen
Published: 2020-12-19 14:51:55

<p><a href="https://codepen.io/team/nclud/pen/QwpoKV" target="_blank">https://codepen.io/team/nclud/pen/QwpoKV</a></p>

{% codepen https://codepen.io/Techdenlab/pen/LYRLWJK %}
#JavaScriptmas
Tags: javascript, scrimba, javascripmas, christmas
Published: 2020-12-19 14:51:18

Individually they may not have been the most difficult challenges, but I'm proud that I did each and every one, because creating habits is the real challenge.

JavaScriptmas challenge from Scrimba 2020 https://scrimba.com/learn/adventcalendar.

🍬 [Day 1: Candies](https://scrimba.com/scrim/co2d546f59c2174543d245142)
⭐️ [Day 2: Deposit Profit](https://scrimba.com/scrim/co21e4133a96354314569d61b)
🧚 [Day 3: Chunky Monkey](https://scrimba.com/scrim/co88a458f98bf32d73c11d47b)
🎄 [Day 4: Century From Year](https://scrimba.com/scrim/co1274276811e052fc1af3e09)
🐑 [Day 5: Reverse a String](https://scrimba.com/scrim/cof3e41cb95ef53c37a30a310)
🤶 [Day 6: Sort by Length](https://scrimba.com/scrim/codf5437b9a6a9bff2f5aa39d)
🦌 [Day 7: Count Vowel Consonant](https://scrimba.com/scrim/co51d443da74bf8b443146153)
🔔 [Day 8: The Rolling Dice](https://scrimba.com/scrim/co6c84ea9a11a23c6f6d745a2)
🎺 [Day 9: Sum Odd Fibonacci Numbers](https://scrimba.com/scrim/co5c04ab2a7623e2e1170dcc8)
💂‍♀️ [Day 10: Adjacent Elements Product](https://scrimba.com/scrim/co4794abea767bb416cfb303a)
🎁 [Day 11: Avoid Obstacles](https://scrimba.com/scrim/co29f4297a11c7a05dff7cf2b)
❄️ [Day 12: Valid Time](https://scrimba.com/scrim/co4814d9998bbd1ce1f92aca3)
🤴 [Day 13: Extract Each Kth](https://scrimba.com/scrim/cofbc4467a6ae5debd6f62caf)
🧸 [Day 14: Maximal Adjacent Difference](https://scrimba.com/scrim/co58c44b08e0bbe59413ca996)
🕊  [Day 15: Carousel](https://scrimba.com/scrim/co7dd424db6fe315d4adbc75e)
🧦 [Day 16: Insert Dashes](https://scrimba.com/scrim/co97c463daf070a793fd516e8)
👑 [Day 17: Different Symbols Naïve](https://scrimba.com/scrim/co6f644538ca287be62b8e4e1)
🎅🏻 [Day 18: Array Previous Less](https://scrimba.com/scrim/co4eb4181878b1d0496845a51)
🐫 [Day 19: Alphabet Subsequence](https://scrimba.com/scrim/co93c458ba5c6be11c09ecf33)
✨ [Day 20: Domain Type](https://scrimba.com/scrim/coe7b4ed2afe76a8c0926470d)
🦃 [Day 21: Sum of Two](https://scrimba.com/scrim/co98647c38255b936b48d806a)
👼 [Day 22: Extract Matrix Column](https://scrimba.com/scrim/coebe48b191efd7e22ae024b0)
🌠 [Day 23: Social Media Input](https://scrimba.com/scrim/co56f4bb6a26cf2eb4e8492d1)
☃️ [Day 24: Test Your Agility](https://scrimba.com/scrim/co4164d5dbbcf19cc3e420107)
Creating Audiobooks from Technical papers and texts
Published: 2020-12-19 14:49:14

I'm an audiobook fan, especially for tech.

Creating an audio file of a tech paper or tech book is pretty simple using say (mac) or read aloud in Preview (mac). 

Here's another option
Go to https://www.zamzar.com
Upload and Convert
Download, Listen and Rejoice 😉

One issue I had was a missing letter 'f' and it throws me off a bit. 


Next, I think Amazon Polly is worth trying.
Solving day 19 of Advent of Code 2020 in JavaScript
Tags: challenge, adventofcode, javascript, video
Published: 2020-12-19 14:40:18

---
title: Solving day 19 of Advent of Code 2020 in JavaScript
published: true
description: JavaScript walkthrough of Advent of Code 2020 (day 19)
tags: challenge, AdventOfCode, javascript, video
series: Advent of Code 2020 in Javascript
---

{% youtube UcRsWkIyix0 %}
How to quickly build a website using Tailwindcss and Tailblocks
Tags: webdev, html, css, tailwindcss
Published: 2020-12-19 14:21:01

![Tailwindcss Logo](https://refactoringui.nyc3.cdn.digitaloceanspaces.com/tailwind-logo.svg)
I recently discovered this tool that allowed me to rapidly build my own [website](https://siddharth.one). Hope it might be useful.

## What is Tailwindcss
[Tailwindcss](https://tailwindcss.com) is a utility based css framework for rapid development and is very useful in some cases. My own [website](https://siddharth.one) is built entirely on tailwindcss, so I definitely would recommend it to you.

## Tailblocks
[Tailblocks](https://mertjf.github.io/tailblocks/) is a very simple tool that provides you with readymade Tailwindcss blocks. It includes most of the blocks that you would need to build a great website, including navbars, hero sections and footers.

## How to use
1. Setup your html document like below
```html
<iDOCTYPE html>
<html>
<head>
<meta name="viewport"  content="width=device-width, initial-scale=1.0">
<title>Your title</title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
```
2. Go to [tailblocks](https://mertjf.github.io/tailblocks/)
3. Pick out a block you like.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qczillga8zemwyvot7zm.png)
4. Click the '<>View Code' button.
5. Copy the code.
6. Paste it into the html document and voila 🤯

3. Repeat the process with as many blocks as you like 👍.

Thanks for reading. If you liked the article you can buy me a coffee!
<a href="https://www.buymeacoffee.com/siddharthone" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
My Fail List of 2020
Tags: articles, careergrowth
Published: 2020-12-20 02:28:57

---
title: My Fail List of 2020
published: true
date: 2020-12-19 14:11:03 UTC
tags: Articles,CareerGrowth
canonical_url: https://eisabainyo.net/weblog/2020/12/19/my-fail-list-of-2020/
---

Last few years, I was in this place where I felt like I was doing everything right and everything was going fine for me in my career.

I’ve got a great job – I worked at one of the largest tech companies in the country. I was working with smart people, making an impact and delivering business results. I was also getting a hang of public speaking, and had spoken internationally multiple times a year. My writing had reached and helped tens of thousands of people in the tech industry.

And then I thought, is that it? Is that all I could be doing? How come I didn’t feel like I was learning and growing then?

But then I realised, I wasn’t challenging myself enough. I was only doing things that I was proficient in. I applied to speak at events that I knew I’d be selected for. I wrote for publications that would accept my content. I understood what they were looking for, and wrote just that.

So in 2020, I decided to take a slightly different approach and intentionally start doing things that I knew I’d fail.

![Failures](https://dev-to-uploads.s3.amazonaws.com/i/lvhyev5yvynkc5q0f87s.jpg)

And here is the result. My fail list of 2020.

1. I launched an online [Career Development Program](https://www.subscribepage.com/careerclarityprogram) for Women in Tech and had zero signups. 
2. I applied to speak at a few major events like TedX and didn’t hear anything back. 
3. More than ten of my [medium articles](http://medium.com/@eisabai) were rejected by popular publications. 
4. I failed to reach more audience using a different mean than writing. (My [YouTube channel](https://www.youtube.com/user/eisabainyo) looks very sad.)
5. I stopped writing in my Gratitude Journal after a week.
6. I didn’t learn any new professional skill.
7. I didn’t do sketchnotes of [my books](/weblog/books).
8. I have more than five projects that I started, but didn’t finish.
9. I read less than 5 books properly this year. 
10. Out of 9 goals that I set for myself in 2020, I achieved 2, failed 4, and deferred 3. 

And you know what, I am ok. In fact, I am more than ok. It shows that there are more things I can do and learn and be better at.

Here is to a new year and to never giving up.

The post [My Fail List of 2020](https://eisabainyo.net/weblog/2020/12/19/my-fail-list-of-2020/) appeared first on [Technology Career. Leadership. Growth.](https://eisabainyo.net/weblog).
How to use Qpython3 to code in python on a smartphone - UDAYANCARE CODING BOOTCAMP
Tags: mobile, python, tutorial, codenewbie
Published: 2020-12-19 14:09:03

Hey curious people 👋, if you are looking for a way to write and run python code in your smartphone, you are just at the right place. let's see how we can do that!

## Download Qpython3

First of all make sure you have downloaded the app Qpython3 in your smartphone. If you haven't yet click this [link](https://play.google.com/store/apps/details?id=org.qpython.qpy3&hl=en_IN&gl=US) to download the app, or search for ***QPython 3L - Python for Android*** in play store. If you are using IOS, there are similar apps like [Pythonista 3](http://omz-software.com/pythonista/#:~:text=A%20Full%20Python%20IDE%20for,user%20interfaces%2C%20and%20automation%20scripts.). Or you can also use a browser-based [interpreter](https://www.programiz.com/python-programming/online-compiler/), but I will recommend that only for basic usage.

## How to use?

let's get the basics done first! we'll first open the app, create a python file, write 3-4 lines of code, and run it. Let's see how to do that step by step.

#### Step 1 - Open the app and click on the editor

![Open the app](https://dev-to-uploads.s3.amazonaws.com/i/wsp1mua6o366vq6qd621.jpg)

Now you'll see a screen like this(your theme/colours might be different):

![application window](https://dev-to-uploads.s3.amazonaws.com/i/eibm9k6u4ajcgtf2zbnw.jpg)

#### Step 2 - Click on the second icon in the top right corner of your screen to add a file.

You'll see a screen like this once you do so:

![create a new script](https://dev-to-uploads.s3.amazonaws.com/i/xxffjrp56xrhyro5m9pz.jpg)

#### Step 3 - Click on Script and name the file intro.py(Actually you can name the file whatever you want, just make sure to add the extension *".py"* after the name of your choice) and press **OK**.

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

And now we have a file we can code in! Let's write some code and run it. Copy this code to your own file in the app.

```python
#assigning 2 to variable x
x = 2

#assigning 3 to the variable y
y = 3

"""
adding x to y and storing the
result in variable z
"""
z = x + y

#printing variable z to console
print(z)
```

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

Now let's hit run and see what happens. The run button is the triangle in the middle in the lower options bar. There are other buttons too for saving the code, undo e.t.c.

After clicking run if you see this screen below **which says 5**(ignore all the other stuff), then we are good because 3 + 2 is indeed 5! Our code worked! And now we can write whatever code we want here, as we learn more.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1a643c0mujc2g31d4ugy.jpg)
REST API CALL
Tags: javascript, help
Published: 2020-12-19 14:03:04

Can anybody help to do a REST call.
MY CODE

ERROR received is in attached image.
##################################

const header = new Headers();
header.append("Access-Control-Allow-Origin", "*")
header.append("cache-control","no-cache")
fetch("https://api.coinex.com/v1/market/list",{
  headers : header,
  rejectUnauthorized: false 
}).then(res =>{
  return res.json()
  .then(r =>{
    console.log(r)
  })
})
Configure a machine can only ping to the google but not able to ping to the Facebook(Without The Use OF firewall)

Published: 2020-12-19 13:54:32

Note: Without using firewall
I have Solved this problem Statement and also written an blog on it ... Hope You All Enjoy it ...

Blog link--> https://shashwatsingh71.medium.com/create-a-setup-so-that-machine-can-only-ping-to-the-google-but-not-able-to-ping-to-the-facebook-5cb67f9c73b1
Docker Desktop Container crash with exit code 139 on Windows WSL Fix
Tags: docker, 139, wsl, wsl2
Published: 2020-12-19 13:53:01

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

Issue : Docker Container exits on Docker desktop (Windows) with exit code 139.

This is a known problem when running Docker desktop with WSL based engine on windows.

The culprit is the base OS of your docker image.

The Fix is pretty simple.

To fix this, You have to Enable vsyscall=emulate in the kernel config to run older base images.

**Step 1** : Create a file named .wslconfig in your user directory 
Ex:-  `C://users/[your user name]/.wslconfig` 

**Step 2** : Add following line to the .wslconfig file
```
[wsl2]
kernelCommandLine = vsyscall=emulate
```

**Step 3** : Restart Your PC and the issue will be fixed ;)
13 Ways to stay Productive while Working from Home
Tags: productivity, virtual
Published: 2020-12-19 13:44:28

Working from home is so much fun because of the comfort that comes with it.

I mean, you can work in the comfort of your PJs or even from your bed. Plus you don't have to go through the stress of commuting. I know right...So so many perks! 

But, it can be very draining, tiring and distracting :( How then can one stay productive when working from home?

I'll share 13 ways I've remained productive working from home...particularly in this Covid-19 season.

**1. Let everyone at home know you will be working for some specific hours.**
I know you may be like duh...they know. However, saying this again to them re-affirms that you'll be working and puts you in a 'worky' state of mind.

**2.Close your room door to avoid distractions.** You'll catch up on the small talks with family later.

**3. Avoid working from the bed…stay at a workspace** Invest in comfortable workspace furniture if you don’t have one. To start off, a table and chair will suffice.

**4. De-clutter your worktable** I know you're a creative person and tend to leave things laying around. However, having an organised table helps you think clearly and puts you in the right frame of mind to accomplish a lot. 

**5. Create a checklist of what you want to achieve that day.** This serves as a guide and helps you stay focused throughout the day.

**6. Break your day into chunks, assigning a timeframe to each task.** This helps you work towards getting items on your checklist done.

**7. Avoid taking phone calls unless it is related to your work at that instance.**

**8. Arrive on time to virtual meetings.** Arriving on time to virtual meetings and make meaningful contributions gives you an inner fulfilment. At least, it does for me and motivates me to do more. 😊 

**9. Reduce time spent on social media.**

**10. Take short breaks from time to time.**

**11. Drink enough water to stay hydrated.**

**12. Listen to some cool & inspiring music.**

**13. Keep a positive attitude all the way.**


These tips have all worked for me and increased my productivity 💯 Do you know any other way one can stay productive while working from home?

Feel free to drop them in the comments and I hope this was useful.

Thanks for reading
Virus Launch Panel - CSS Art
Tags: css, art, html
Published: 2020-12-19 13:39:22

At one time, I was very fond of making various arts in CSS. I would like to introduce you to one of these.

I really love the hacker culture of the 80-90s. I also love the 1995 Hackers movies. This is my favorite movie and I watch it often.

The guys in this movie had a really cool laptop. Each had a unique laptop design with a unique operating system. So I decided to make an "Acid Burn" laptop interface.

Live: https://deadblackclover.net/virus/

{% github deadblackclover/virus no-readme %}
The server reached maxrequestworkers setting, consider raising the maxrequestworkers setting.
Tags: mysql, webdev, programming, computerscience
Published: 2020-12-19 13:23:05

If you are encountering this error it does not mean that anything is wrong with your Apache or Apache MaxRequestWorkets settings. You can not make any changes to Apache. This error means that one of your apps has a slow PHP script or receiving a huge number of requests that your PHP script is unable to answer requests as quickly as they are coming.

#Reason for this error:
PHP can execute a limited number of requests for each app. If the PHP script is executing very slowly even with a small amount of traffic then your limit has been reached. When the number of queued requests for PHP becomes too large then you see “Server reached MaxRequestWorkers setting” error message.

---
title: originally posted here 👇
canonical_url: https://kodlogs.com/blog/1957/reached-maxrequestworkers-setting-consider-maxrequestworkers
---

##Identifying a slow PHP script:
In this situation, look at your apps PHP slow log that is located at;

`
/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.slow.log
`
Here X.Y is the version of PHP on which your app is running for example php5.6.

##Identify a large amount of traffic to a PHP script:
If you are unable to see any slow requests, then you need to check your apps PHP access log at;
`
/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.access.log
`
This will be used when you are receiving a large number of requests that you cannot expect.