teleren/devto huggingface dataset:
Daily Developer Jokes - Monday, Jan 4, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-01-04 13:00:14

---
title: "Daily Developer Jokes - Monday, Jan 4, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Jan%204%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12597fe0374.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Where do developers drink?

___A:___ The Foo bar
 -->
Increase your Focus and Productivity with manitu.me
Tags: productivity, webdev, zen
Published: 2021-01-04 12:57:01

## Summary

Here is a website with a custom podomoro Timer (25 min timer) which allows you to listen productivity sounds (Forest, Beach, Wind, etc) 

![Image](https://dev-to-uploads.s3.amazonaws.com/i/dz5gddrzaoci6bibn9ed.png)

## Link

* [https://manitu.me/](https://manitu.me/)
How to find date and time in text?
Tags: nlp, node, javascript, tutorial
Published: 2021-01-04 12:54:52

Date and time, and other named entities can be extracted from a document using winkNLP. To do this, we’ll load a document and ask for its entities. We’ll then filter down to just the ones we need. If we want to get the Unix time from the text we can look at the <a href="https://winkjs.org/wink-nlp/its-as-helper.html">shape</a> and check if the text can directly be sent to the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date">Date</a> object to be parsed. Here is how we would find the date and time entities in a text using winkNLP:

```javascript
// Load wink-nlp package & helpers.
const winkNLP = require( 'wink-nlp' );
const its = require( 'wink-nlp/src/its.js' );
const model = require( 'wink-eng-lite-model' );
const nlp = winkNLP( model );

const text = `The release happened on 21 August 2020 at 4:32 pm`;
var doc = nlp.readDoc(text);

doc.entities().filter( e => {
  if ( e.out( its.type ) === 'DATE' ) {
    console.log( e.out(), new Date( e.out() ) );
    // -> 21 August 2020
    // -> Fri Aug 21 2020 00:00:00 GMT+0530 (India Standard Time)
  }

  if ( e.out( its.type ) === 'TIME' ) {
    console.log( 'Time:', e.out() );
    // -> Time:
    // -> 4:32pm
  }
});
```

This would give you all the strings that contain dates or times, and the Unix time corresponding to it if the format allows it. You can now use the usual JavaScript functions like <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort">sort</a> on this data structure to get the insights you need. For example our <a href="https://winkjs.org/showcase-timeline/">Wikipedia Timeline</a> showcase uses it to create visualizations of articles.

Raw texts may contain many <a href="https://winkjs.org/wink-nlp/entities.html">named entities</a> like time, money, and hashtags. The <a href="https://github.com/winkjs/wink-eng-lite-model">English language lite model</a> for winkNLP finds entities spanning multiple tokens by employing pre-trained finite state machine.

Todo applications that automatically add due dates based on the text that was entered, or email clients that add events to your calendar based on time and location do this by using this form of named entity extraction. It can also be used to create a timeline of events based on raw text.
How to get laravel version
Tags: laravel, php
Published: 2021-01-04 12:46:52


This Example very easy-to-find Laravel version. When we create a new project, we get a composer.json file in it, through that composer.json file we can also check the version.

**[How to get laravel version](https://www.phpcodingstuff.com/blog/4-ways-to-get-the-laravel-version.html)**

```
{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.16.1",  <------- Your Laravel Version
        "laravel/tinker": "^2.0"
    },
```

Read More:**[How to get laravel version](https://www.phpcodingstuff.com/blog/4-ways-to-get-the-laravel-version.html)**
Hacktoberfest 2020 Swagpack
Tags: hacktoberfest, digitalocean, opensource, github
Published: 2021-01-04 12:45:30

New Year, New Gifts! 👨🏻‍💻😍 
Just received my Hacktoberfest swagpack for successfully completing Hacktoberfest 2020. Looking forward to more such contributions in the future. 

![Hacktoberfest t-shirt and stickers](https://dev-to-uploads.s3.amazonaws.com/i/7q01sd8soy62dpubzgr0.jpg)
React!
Tags: codenewbie, react
Published: 2021-01-04 12:38:18

So lately I've been going through FCC's React challenges. It is a great refresher! I have previously started learning React, and I like it a lot! Also it is super popular. I created a React app after having to reinstall Windows since I named my computer my name with a space, which seriously messed up npm. What a noob mistake! But I got it all working fine now. I just need to learn how to get the challenges to render using the skeleton app! But I'll get it. In the meantime, check out my Colt's React course Hangman game I have on Netlify! 
[React Hangman!](https://suspicious-lamport-243759.netlify.app/)
Day 11 of 100DaysOfCode: Python Program to find the factorial of number
Tags: beginners, codenewbie, 100daysofcode, python
Published: 2021-01-04 12:37:47

This is my 11th day of #100daysofcode. 
 
Today I learned about more properties of CSS from freecodecamp. And I also tried to write a simple python code to find factorial of number.

# Python Program to Find Factorial of Number
My code is simple. At first users give integer type number. I initialized factorial as 1. There is a loop from range 1 to n + 1 and gave the condition. At last I print the factorial.
```python
n = int(input("enter the number"))
factorial = 1
for i in range(1,n+1):
    factorial *= i
    
print(f"factorial of {n} = {factorial}")

```
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Day 11 of <a href="https://twitter.com/hashtag/100DaysOfCode?src=hash&amp;ref_src=twsrc%5Etfw">#100DaysOfCode</a> and <a href="https://twitter.com/hashtag/Python?src=hash&amp;ref_src=twsrc%5Etfw">#Python</a> <br>* More about CSS properties<br>* Python program to find factorial of number. <a href="https://t.co/DWGjzJk6XC">pic.twitter.com/DWGjzJk6XC</a></p>&mdash; Durga Pokharel (@mathdurga) <a href="https://twitter.com/mathdurga/status/1346068426452738049?ref_src=twsrc%5Etfw">January 4, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
XinFin Announce New Bounty for the Community
Tags: xinfin, blockchain, bounty
Published: 2021-01-04 12:37:16

New Bounty 1: Crypto Custodian Integration Fees Bounty
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6p7jb3q5vg676ih19fmr.jpg)
Want to see XDC listed on your favorite Cryptocurrency asset custodian? If you are willing to pay for technical integration fee for the custodian, then you will get up to 140% of the tech integration fees in XDC. I.e. if you incur a cost of USD 20,000 for technical integration with a crypto exchange, then your bounty will be up to USD 28,000 equivalent XDC as per market rate.
Rules:
1. The crypto asset custodian should be regulated.
2. Should be listed on other top projects.
3. Include info@xinfin.org in your communication with the wallet technical integration team.
4. Get an invoice for Tech integration for the XDC network.
5. You will get up to 140% of the tech integration fees in your wallet.


New Bounty 2: Hardware/Software Wallet Integration Fees Bounty
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/di8ge2poxif9zzzttt3a.jpg)
Want to see XDC listed on your favorite hardware/software wallet? If you are willing to pay for technical integration fee for the wallet, then you will get up to 140% of the tech integration fees in XDC. I.e. if you incur a cost of USD 20,000 for technical integration with a crypto exchange, then your bounty will be up to USD 28,000 equivalent XDC as per market rate.
Rules:
1. The wallet should be a credible one 4+ stars in a review. Should have 100,000+ in downloads.
2. Should be listed on other top projects.
3. Include info@xinfin.org in your communication with the wallet technical integration team.
4. Get an invoice for Tech integration for the XDC network.
5. You will get up to 140% of the tech integration fees in your wallet.


New Bounty 3: Exchange Integration Fees Bounty
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/01jy51c57d47na1gratt.jpg)
Want to see XDC listed on your favorite Digital Asset Exchange? If you are willing to pay for technical integration fee for an exchange, then you will get up to 140% of the tech integration fees in XDC. I.e. if you incur a cost of USD 50,000 for technical integration with a crypto exchange, then your bounty will be up to USD 70,000 equivalent XDC as per market rate.
Rules:
1. The exchange should be a credible one. Ranked within the top 100 on CMC. Regulated exchange is preferable.
2. The pairing should be in Fiat currency.
3. Include info@xinfin.org in your communication with the exchange technical integration team.
4. Get an invoice for Tech integration for the XDC network.
5. You will get up to 140% of the tech integration fees in your wallet.


Check other bounties at https://xinfin.org/bounty
Using Puppeteer with a proxy
Tags: puppeteer, javascript, proxy, typescript
Published: 2021-01-29 12:50:53

---
title: Using Puppeteer with a proxy
published: true
date: 2021-01-04 12:34:00 UTC
tags: Puppeteer,Javascript,proxy,Typescript
canonical_url: https://javascriptwebscrapingguy.com/using-puppeteer-with-a-proxy/?utm_source=rss&utm_medium=rss&utm_campaign=using-puppeteer-with-a-proxy
---

[Sample code here](https://github.com/aarmora/proxy-with-puppeteer)

This shows how to use Puppeteer with a proxy using both [Luminati](https://luminati.io/?affiliate=ref_5f240848c7669177abf8ef2a) and [Proxycrawl](https://proxycrawl.com/?s=ukQB9Fqz).

Video guide:

<iframe title="Using a proxy with Puppeteer" width="640" height="360" src="https://www.youtube.com/embed/nwS6TgXRTQk?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Luminati is a more intense solution that requires a bit more to get set up. They even do a business verification before they’ll allow you to use some of their features. It is the main solution I use for proxies.

Documentation on using Luminati with Puppeteer – https://luminati.io/integration/puppeteer.

Proxycrawl is definitely the easiest solution. It’s going to be a bit slower but you can get up and going in probably about 60 seconds.

Note: I realized right after I ended the video that I wasn’t ever executing the Proxycrawl function. I did run it after I ended, though, and it worked great.

My affiliate links:

Sign up for Luminati here – https://luminati.io/?affiliate=ref\_5f240848c7669177abf8ef2a

Sign up for Proxycrawl here – https://proxycrawl.com/?s=ukQB9Fqz

The post [Using Puppeteer with a proxy](https://javascriptwebscrapingguy.com/using-puppeteer-with-a-proxy/) appeared first on [Javascript Web Scraping Guy](https://javascriptwebscrapingguy.com).
100+ free online AWS workshops
Tags: aws, cloudskills
Published: 2021-01-04 11:38:21

If you are working with AWS or dabbled with the AWS services, you have most likely dived into the AWS online documentation and perhaps looked at some AWS Youtube videos and various blog posts.
A perhaps lesser-known resource is the online AWS workshop sites. These are web sites that provide step-by-step guidance to set up and use some AWS services and resources in a self-paced lab format essentially.

I stumbled upon one of them (https://cdkworkshop.com) by chance more than a year ago, and I have found a number of them since then. 

Many of them are under the umbrella-site https://workshops.aws, which reported contains over 120 of them. A couple more I have also listed down here separately.

* https://cdkworkshop.com/ - Introduction to using AWS CDK (Cloud Development Kit). Typescript, Python, C#, and Java versions are provided.
* https://www.eksworkshop.com/ - Provides a number of different lab tasks related to EKS (Elastic Kubernetes Services), grouped into Beginner, Intermediate and Advanced.
* https://ecsworkshop.com/  - Provides a number of different lab tasks related to AWS ECS (Elastic Container Service). Not the same labs as for EKS!
* https://awssecworkshops.com/ - a collection of labs/workshops around AWS Security
* https://controltower.aws-management.tools/ - A collection of labs/workshops around setting up and using AWS Control Tower.
* https://wellarchitectedlabs.com/ - Labs centered around the five pillars of the [Well-Architected Framework](https://aws.amazon.com/architecture/well-architected/) and an introduction to the Well-Architected Tool.
* http://www.awsmanagementweek.com/ - A couple of labs around AWS management tools.
* https://getstarted.awsworkshop.io/ - This is a workshop with a number of labs to set up and configure a scalable multi-account AWS infrastructure.
* http://cloudnative-immersion-day.s3-website-ap-northeast-1.amazonaws.com/ - Enterprise Cloud Native workshop. A couple of labs around migration to the cloud and building cloud-native solutions.

I hope you will find something useful here!
Overcoming SameSite cookie issue in Cypress when running on Chrome or Edge
Tags: cypress, chromium, samesite, 401
Published: 2021-01-04 12:17:08

New year 🎉, new me 🤪... or maybe not, coz my ❤️ for Cypress has not died off... Well, almost.

You see, I just changed company last December (yey!) and my first few days were spent on building a basic automation framework. Understandably, first thing I tried out is the **UI** `login` 🔑 (Sorry, **API** does not have the wow factor when you're doing a demo)

So, I told myself, *"I got this and let me work my magic!"* but boy, was I so wrong! Manually doing it, obviously, it works fine. Using Cypress' default browser, Electron, it works great. Having fun yet so far! Here we go... using Chrome, NA-DA ❌! I got an `401 Unauthorised access` error!

I could have been very lazy and just told everyone that if it works with Electron, then it should be fine but no, I was determined to make it work with Chrome. It took me maybe a couple of days, munching snacks while my belly blew up, and a thousand times clicking Stackoverflow and Github Cypress issues looking for an answer but there was none 🙅! I had to look outside Cypress and more on generic Javascript and after multiple hair-twisting re-tries scraping the XHR requests, I found the holy grail 🙏🏻

With me hoping that customer churn rate with Cypress does not further increase, here's how you should do it: 
Under `cypress/plugins/index.js`, include the following condition:
```javascript
module.exports = (on, config) => {
    on('before:browser:launch', (browser = {}, launchOptions) => {
        if (browser.name === 'chrome' || browser.name === 'edge') {
            launchOptions.args.push('--disable-features=SameSiteByDefaultCookies') // bypass 401 unauthorised access on chromium-based browsers
            return launchOptions
        }
    })
}
```

With the above code, [SameSite default cookie](https://www.chromium.org/updates/same-site/test-debug) issues are by-passed when using Chromium-based browsers. This includes Edge so don't forget to include that browser in the condition.

Again, happy Cypress testing! 🤗
Chingu Weekly Update vol 128
Tags: pairprogramming, chingu, codingbootcamp
Published: 2021-01-04 13:54:04

---
title: Chingu Weekly Update vol 128
published: true
date: 2021-01-04 12:11:08 UTC
tags: pairprogramming,chingu,codingbootcamp
canonical_url: https://medium.com/chingu/chingu-weekly-update-vol-128-2fa224dcb7db
---

![](https://cdn-images-1.medium.com/max/1000/0*wU6umB-vg2DMborD)

### Shout-outs & Showcases

🔥 Voyage 27 will be starting on February 1st, 2021!

🔥 As always, we’re matching people for pair-programming sessions this week. Checkout #chingu-news in Discord to find the link to sign-up!

🔥 Voyage 26 starts today! More remote teams!

<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FzNj9DgSond503aRysL%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Ffallontonight-tonight-show-billie-eilish-finneas-zNj9DgSond503aRysL&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FzNj9DgSond503aRysL%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/28369b2f367218a484ff2bbecc3e8672/href">https://medium.com/media/28369b2f367218a484ff2bbecc3e8672/href</a></iframe>
### Overheard in Chingu

![](https://cdn-images-1.medium.com/max/1024/1*l2hMyqPQCWP2Xc9jV33-4g.png)

> Code for good!

> I want to play bowling with a armadillo

> Seriously….it doesn’t matter as long as it’s readable, maintainable, and you are productive using it

> make them to run after npm i xD

> i’m gonna cheat on you guys now and work on a solo project

> excuse me a solo project? WE HAVE BEEN ABANDONED BY OUR GODDESS!!!!!!!!

> I want to pet a kangaroo! and a penguin

> I had a pet squirrel once

> React state debugging resources

> I am Code for good person :p I won’t put such script

> English is only written in like major train stations etc.

> I approved your Layout change. I tried to find something small to complain about, but it looks good

> uhohhhh i blame backend

> TOMORROW DONT BREAK THE LAWS

> lol watching this video about why a person moved _out_ of Denmark after moving in. And she was like “Well, they all speak Danish”

> I mean, if you live near the German border, some signs are in both German and Danish.

> i had too much alcohol last december

> People who struggle even get help to find a cheap apartment

> Anyway, lose your job here and you get supported by government.. first 2–3 years = around $3.000

> for my solo project I’m using heroku for db stuff

### Resources of the Week

> [List of 2021 trends lists](http://spacecadet.ventures/2021roundup)

![](https://cdn-images-1.medium.com/max/1024/1*GebnAmygdz4o6M5zuvr0uA.png)

### Quotes to Go

![](https://cdn-images-1.medium.com/max/440/0*EHY-nV5SZ9yUJEjY.jpg)

### Before you Go!

> _You can learn more about_ **_Chingu_** _& how to join us at_ [_https://chingu.io_](https://chingu.io/)

* * *
Morning Catch up
Tags: codenewbie, standups
Published: 2021-01-04 12:05:24

Morning "catch up", "Stand up" whatever you call those morning meetings where we have to stand up and tell the whole team our progress...I mean so the first month was very difficult...everyone knew what they were talking about in the meeting, I seemed to be the only one lost and having anxiety all the time when it was time to join in the meeting.
My team leader would ask "Are you okay? aren't you drowning"? Lol he was very patient. I can say that the first month my team was talking chinese and trust me I can speak chinese but I did not understand half of what they were saying in the meeting.
I even started thinking that maybe this job is not cut out for me. I mean...My boss seemed to believe in me...he even said "three months ago I also didn't know anything" well I still felt shitty for not knowing what I was supposed to do. And for what I knew now we were on the more complex level. 
Even though the morning stand ups would intimidate me, my team would make so many jokes in the meeting and for that moment id forget where I am, lol...for a minute. My first month when they asked me "So what do you do at work..."My answer would be..."I drink coffee and watch a bunch of videos" but now...When you ask me..."I am a software developer ... " well almost...sometimes...slowly getting there.

I think this time I knocked on the right door...very supportive team. But "catch up meeting" will forever intimidate me...plus the imposter syndrome...eish. Well Until maybe I know what I'm doing.
I generally think that catch up meetings are just plain horrible if you are new on a job, nvm if you a junior.
Como coletar logs do NGINX com o Filebeat
Published: 2021-01-04 12:01:09

## O que é o NGINX?
O NGINX é um servidor web open source que também pode ser utilizado como load balancer HTTP, proxy de e-mail (IMAP, POP3 e SMTP) e também como proxy reverso.

Para conhecer mais sobre o projeto, acesse a sua página oficial [aqui](https://nginx.org/).

## Utilizando o Filebeat para coletar os logs do NGINX
Ao utilizar o módulo NGINX do Filebeat você consegue coletar e analisar os logs de erro e acesso que são criados pelo NGINX.
Para saber mais sobre esse módulo, acesse a documentação [aqui](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-nginx.html)

## Instalação e configuração do Filebeat

* Instale o Filebeat:

**Windows:** `PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1`
**Linux:** `sudo rpm -vi filebeat-7.10.1-x86_64.rpm`

* Acesse o arquivo de configuração do Filebeat:

**Windows:** `C:\Program Files\Filebeat\filebeat.yml`
**Linux:** `/etc/filebeat/filebeat.yml`

Insira nele as informações de conexão com o Elasticsearch e com o Kibana:

```
output.elasticsearch:
  hosts: ["url_do_elasticsearch:9200"]
setup.kibana:
  host: ["url_do_kibana:5601"]
```

* Habilite e configure o módulo :
**Windows:** `.\filebeat.exe modules enable nginx`
**Linux:** `sudo filebeat modules enable nginx`

* Habilite e configure o módulo :
**Windows:** `.\filebeat.exe modules enable nginx`
**Linux:** `sudo filebeat modules enable nginx`

* Para modificar as configurações do módulo, altere o arquivo nginx.yml:

**Windows:** `modules.d/nginx.yml`
**Linux:** `/etc/filebeat/modules.d/nginx.yml`

Por padrão, o arquivo vem com as seguintes informações e é aqui que você especifica o caminho para o seu diretório de logs:

```
# Module: nginx
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.10/filebeat-module-nginx.html
- module: nginx
  # Access logs
  access:
    enabled: true
# Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    #var.paths: ["/diretório/do/log/nginx/access.log*"]
# Error logs
  error:
    enabled: true
# Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    #var.paths: ["/diretório/do/log/nginx/error.log*"]
# Ingress-nginx controller logs. This is disabled by default. It could be used in Kubernetes environments to parse ingress-nginx logs
  ingress_controller:
    enabled: false
# Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    #var.paths: ["/diretório/do/log/nginx/ingress.log"]
```

* Carregue os dashboards do módulo:

**Windows:** `.\filebeat.exe setup`
**Linux:** `sudo filebeat setup`

* Inicie o serviço do Filebeat:

**Windows:** `Start-Service filebeat`
**Linux:** `sudo service filebeat start`

Depois disso, você conseguirá ver os logs do seu ambiente no discover, além de ter dashboards com informações e métricas do seu NGINX.


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