teleren/devto huggingface dataset:
Today's Daily Dose of Programming Humor
Tags: jokes, dailydeveloperjokes
Published: 2022-08-19 08:00:21

---
title: "Today's Daily Dose of Programming Humor"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259b4a4ae9.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_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:___ Why do developers mixup Terminals and Polygraphs?

___A:___ Because they both can see a lie (CLI)
 -->
Project Six (Python): Basic Calculator
Tags: python, beginners, opensource, programming
Published: 2022-08-19 07:56:00

## Why?
Hello, this is my fifth posted project. This project was created with the intention of exposing myself to Python, Stack Overflow, GitHub BASH, and Tkinter.


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

## How
This project uses Python's built in module **Tkinter** to create an interactable GUI. 

## Conclusion
I hope you enjoy this part of my learning journey.
[GitHub](https://github.com/shiahalan/Basic-Calculator)

## Advice?
Advice is greatly appreciated (post in comment section).
Frontity Developer
Tags: hiring, career, workfromhome, wordpress
Published: 2022-08-19 07:52:35

Apply on http://prefr.co/team/hiring/
Requirements
Node.js Servers - Must have experience with Apps built with Frontity and React running on a Node.js serve
PHP Servers - Must have experience using headless CMS preferably WordPress
REST API - Experience in using HTML with the WordPress REST-API
Tele-Marketing and Virtual Assistant
Tags: hiring, workfromhome, flexibleshift, career
Published: 2022-08-19 07:46:00

This is a versatile position. You need to be good in both areas mentioned and willing to learn quickly.
Apply on http://prefr.co/team/hiring

**Telemarketing Duties:**
Have an android phone to make phone calls, record call and meet monthly quota of number of contacts made.
Ask leads set of questions from the call script. Add the data into CRM for management to take further action.
Documents transactions by completing forms and record logs.
Maintain database by entering, verifying, and backing up data.
Maintain quality service by following organization standards.
Maintains technical knowledge by learning from the company platform about making better sales calls.

Skills Needed

- Basic Content Writing Skills with GOOD ENGLISH
- Be good at internet research
- Photoshop Basic Editing Skills
- Instant Communication - Skype, hangout, gmail & whatsapp all are a must.
- Should know how to use Google docs & team-viewer

**Virtual Assistant Duties**

- Our website is on WordPress. You may be required to Search Engine optimize our articles and posts, proof read them, suggest good titles.
- Social media management. manage our twitter & Facebook profiles by creating shareable status updates & tweets.
- Content management - You will need to remove any unwanted, not relevant content from the website
- Check the website for plagiarism in content and do editing in the text to make it unique.
- Any other tasks if and when required by management.
Customer Relation Executive
Tags: hiring, flexibleshift, workfromhome, cre
Published: 2022-08-19 07:41:13

Prefr.co has a position open for a Customer Relations Executive.

To apply visit: https://prefr.co/team/hiring/

Pay: Per Hour
Shift Requirements: 3 hours/day
Shift Timings in future: UK, US, Aus, Canada timezones


CRE Responsibilities and Duties

Generating new business opportinities
-> Reachout to prospective clients with offer of products & services
-> Help business grow through new business acquisitions, planning, retention and management.
-> Maintain complete and accurate customer correspondence/company data in CRMs
-> Negotiate and manage agreements through business contracts.
-> Prospective client communication: Calls, voicemails, emails. SMS, etc
-> Work on sales funnel


Retaing existing clients longer
-> Ensure customer satisfaction by maintaining & nurturing relationships with existing clients.
-> Ensure products & services delivered meet or exceed the customer requirements.
-> Ensure quality and consistency of services/products delivered to customers.
-> Schedule and conduct status meetings with Project Managers, Product engineers & customers.
-> Create online videos, training guides, FAQs, for the benefit & knowledge of all customers.
-> In-depth needs assessments to better understand client's requirements.
-> Identifying a range of offerings to meet the goals/values/needs/wants of each client.

Handle client related tasks & issues
-> Proper refund and compensation to customers on time
-> Identify and develop problem solving methodologies to resolve customer issues.
-> Customer/Client Invoices
-> Develop and update client related reports.

Get more value from existing customers/clients
-> Ensure upselling/croselling and repeat business from existing clients
-> Affiliate deals
-> Whitelabeling Opportunities
-> Reference business
-> Client/customer testimonials and review
-> Repairing disengaged or fractured relationships with old clients.

This is work from home so a quiet time/place, power backup, 4g internet, a good headset with mic and web cam is suitable for interaction with clients.

To apply visit: https://prefr.co/team/hiring/
Content Marketing Expert
Tags: hiring, contentmarketer, flexibleshift, workfromhome
Published: 2022-08-19 07:38:07

We need a talented content marketing expert to create and lead content marketing strategies that answer Prefr.co's audience's questions and help build trust, develop relationships, improve conversions, and generate leads. We’re looking for someone who will help us expand our digital footprint and drive more value through online content.
Apply on http://prefr.co/team/hiring

Role & Responsibilities
We want someone who can manage our complete online content Marketing. Here is what needs to be done. 

Research market, competition, customers
Decide on theme, topic and type of content
Create the content
Promote the content
Measure the ROI
Go back to step one.

Knowledge of Tools of Trade

Research & Analytical Tools
1.Google Analytics knowledge
2.SEM Rush
3.Google Trends
4.Buzzsumo
5.Ahrefs
6.Google Optimize
7.Adobe Marketing Cloud Moz

Technology  Tools

1.Google Docs, sheets & Slides
2.Microsoft word, excel, powerpoint
3.Hubspot
4.Grammarly
5.Clickup
6.Slack
7.Acrolinx
8.PathFactory
9.Digimind

Website & SMM Tools
1.Wordpress
2.Yoast
3.HootSuite
4.Crello
5.https://hashtagify.me/
6.Prezi and Flipsnack
7.Typeform
8.Anchor
9.PowToon
10.Canva
11.Animoto

Necessary Skills for a Content Marketer

Research Skills
Basic research skills is mandatory to research into
1.Current market Research
2.Competition Research
3.Customers Research
4.Personas Creation/Research
5.Keywords & Topics Research
6.Finding Trends
7.Recognize a quality sources - CRAAP test
8.Start broad, then dive
9.Verify information

Content Creation Skills
1.Copywriting 
2.Correct grammar & spellings
3.Basic Graphic Design
4.Proofreading
5.RACE Framework knowledge
6.Creative Thinking: Brainstorming

Marketing Skills
1.Good knowledge of Social Media Marketing
2.SEO knowledge
3.Plan Marketing Calendar
4.Google Data Studio

Analytical Skills
1.Critical Thinking: Good decision making, Content and brand auditing, Prioritization, Troubleshooting, Case analysis, Correlation, Data interpretation, 
2.A/B Testing
3.Data Analysis: ROI, SWOT, Pattern Recognition, Process Analysis
4.Understanding of Web Analytics, Clickstream Data, and Tagging
Using Regex in JavaScript to Validate Email
Tags: javascript, webdev, beginners, programming
Published: 2022-08-19 07:30:00

Validating email is one of the things you'll "encounter" often when building an app (web/mobile). If you're new to programming, you'll probably wonder on how to do that. Using Regex is one of the easiest way to do the validation. 

There are a few constraints to make sure a text is a valid email address:
- @ is present 
- Top level domain can't start with dot ".".]
- There should be characters before @.
- Email/Personal info can't start with a dot "."
- Email/Personal info can't end with a dot "."
- No double dots.
- Characters, digits, underscore, and dash are allowed.

Here are the regex to use to check those constraints:
`/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/`

Here how you can put it in your JavaScript code:
```javascript
const isValidEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailAddress);

if (isValidEmail){
   return true;
} else {
   return false;
}
```

Check this link for more detailed information about this:
https://www.w3resource.com/javascript/form/email-validation.php
Create Vite/NextJs projects with Tailwind pre-configured, in a single command!
Tags: vite, react, nextjs, typescript
Published: 2022-08-19 07:22:00

While boiler-plating react projects over and over again with the same dependencies, I decided to make a tool which would make my life (and hopefully some other peoples’ lives!) slightly easier. Not only does this tool install Tailwind as a dependancy but it also configures your project's CSS and Tailwind config asynchronously so it works straight out of the box!
I also decided to make this tool Typescript as default because we all love **strict** type-safety ❤.

### Introducing Quick Init!

Quick-init makes creating a Vite/Next-Typescript-Tailwind project as easy as `quick-init [name]`! ⚡ *(Just add `-t next` for NextJs).* 


![Quick-init working example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8tjigb3vpwp6d3rnq32t.png)

Aside from wanting to build a tool which I would personally find useful, I took the opportunity to build Quick-init in Rust in order to improve my *lacking* familiarity with the language and to also make it *blazingly fast™*, as building something useful with a clear functionality goal is the best way to learn something!

It is also fully-customisable with a local configuration file so you can define which dependencies you want to be auto-installed for each template.

## Installation (Homebrew)

If you want to install this on Mac OSX with Homebrew, you can install it via a single line on your favourite terminal!

```
brew tap ozcap/quick-init && brew install quick-init
```

## Source Code

If you want to build this from source, make a pull request or simply browse the code behind this then you are more than welcome to see the [Github repository!](https://github.com/ozcap/quick-init) (Feel free to give a star... Or not).
HTML scratch course part 1
Tags: html, webdev, beginners, tutorial
Published: 2022-08-19 07:16:00

Hi there, I am Daniel from India. This post is about Hypertext markup language [HTML].

HTML history

HTML had created by Sir Tim Berners-Lee in late 1991, But it had officially published in 1995 as HTML 2.0.

Different versions of HTML

HTML 1.0
HTML 2
HTML 3.2
HTML 4.01
HTML 5 [LATEST]

Uses of HTML

HTML had used to create E-documents. E-documents is get displayed on the World Wide Web.

Fact to know

The world wide web had created by Sir Tim Berners-Lee.

Suggested HTML editors

Visual studio code 
Notepad ++ 
Sublime text 
Atom 

File extensions of HTML

.html
.htm

Sample output of website

<html>
  <head>
    <title>My website</title>
  </head>
  <body>
    <h1>Heading text</h1>
  </body>
</html>

!cannot show the code because this website formates it

What are tags?

HTML tags are keywords that define how a web browser will format and portray the content.

What are attributes?

HTML attributes provide additional information about HTML elements.

Note: 
All HTML elements can have attributes

Examples of attributes and their use

HREF = The href attribute specifies the URL of the page. Example: <a href="https://website.com"></a>. a refers to a link. If you click that link, you get redirected to website.com.

REL = The rel attribute specifies the relationship between the current document and the linked document.


Linking CSS file

Linking Cascading style sheet [CSS] is very easy.

Note:

CSS is used to make the website look beautiful.

Code:
<link rel="stylesheet" href="filename.css">

Linking Javascript file

Linking Javascript files is also very easy.

Note:

Javascript is used to make the website more interactive.

Code:
<script src="filename.js"></script>

PART 1 HAD OVERED!
GIVE YOU SUPPORT THROUGH ❤️
Laravel 8 Send Mail Using Queue
Tags: laravel, laravel8, mail, queue
Published: 2022-08-19 07:09:33

In this article, we will see laravel 8 send mail using the queue. Sometimes we can see some processes take more time to load like email send, upload CSV file, cron job, etc. Laravel allows you to easily create queued jobs that may be processed in the background. Laravel's queue configuration options are stored in your application's config/queue.php configuration file.

We will learn how to send mail using queue in laravel 8. You can also learn how to send mail in laravel 8 using queue with mailtrap.

So, let's see, send mail using queue in laravel 8.

```
Step 1: Install Laravel 8

Step 2: Create Mailable Class

Step 3: Configuration of Queue

Step 4: Create Queue Job

Step 5: Test Queue Job
```
Gradient descent in ML
Tags: ai, machinelearning, datascience
Published: 2022-08-19 07:05:54


## What is a gradient descent?
A gradient descent is a function, which is designed to search for a local minimum in a function.
### Local minimum
Let us start off by defining what a minimum is. A minimum is the lowest y-point on a function, meaning it's the "lowest" point. Now where does the local come from? For a better understanding you can graph out the following functions on [desmos](https://www.desmos.com/calculator). If you pass desmos `y=0.2x^4+2x^3+5x^2+3x` you will quickly see, that there are two separate low points, one of them being deeper than the other. Imagine you cant draw out the entire graph, because you want to save computational power. Now if you can only see the right part of the graph, you would point to `(-0.4/-0.525)` and say: "Well this has to be the minimum. It goes up on both sides", not knowing that it's only a local minimum. This will make more sense when we look at the function
### How does the function work?
To understand this function you need a bit of calculus knowledge. If you already have that, this will make a lot more sense.  
Imagine yourself as a ball on top of the function curve, and for this example we will still be using `y=0.2x^4+2x^3+5x^2+3x`, because it perfectly shows what we are looking for. Now this ball rolls down our function and always in the direction that goes down, because gravity pulls it down. We can calculate which way and how inclined the slope is with some entry level calculus. We just need to take the derivative of the function. For `f(x) = x^2` our derivative would be `f'(x) = 2x`. Now we always go left if the product of our derivative is positive and right if it is negative. Back to our ball example: If now this ball rolls down our function and reaches `(-0.4/-0.525)`, he will, due to gravity, be trapped in that hole, even tho it isn't the deepest hole in our entire function.
I love daily stand-ups
Tags: productivity, management, leadership
Published: 2022-08-19 07:02:58

## Background
I will describe myself a bit in this section. I am an engineering manager with a total of 7 years of experience (5.5 yrs software development and 1.5 years of engineering management).

My time in the engineering management position is both challenging and fantastic. I take care of two teams and my day starts with 2 stands ups of 30 mins, one after another in 30 mins gap.

## What is the stand up format?
It generally starts with the following 3 questions. But my focus is to check project health, are we on track or delayed?

1. What have you done yesterday?
2. What is the agenda for today?
3. Any blockers? 

The ball rolls around the table and I use to ask a few questions followed up by each person's stand-up notes. It helps to get more clarity and sometimes to give the audience food for thought.
And at last, I ask to ask queries for me.

## Why is stand-up preferred?
It gives the current status of each developer and a clear picture of the entire team position as well. It helps in planning other tasks for the next sprints, identifying delays, and maintaining priorities.
I sometimes use this call to motivate, and share updates and orientation of the leadership and company as well.

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

## What day look like without stand-up for a developer?
Unfortunately, It is a black box then. Nobody knows what to pick up next (If he is available to pick up something), no room for feedback on the current task too.

## What day look like without stand-up for the engineering manager?
The manager would unable to answer any project status query, and latest ETA and unable to plan the next sprint too in worst cases. This also acts as a health check for the projects as well as the team.

## My way of managing stand-up, a glimpse?
In spite of lot of trolls and memes, I see huge benefit by running the concise and clean stand-ups.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cwn8qu05o9q1yiul9mhl.png)
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p0riowjxxs8l94vqa4gg.png)
 
## Next steps, explore.
Make your stand-up crisp and point to point so that it will be time-saving and at the same time an energy booster for your team members. You can plan separate calls to brainstorm or get detailed insights for any particular task with a dedicated audience.
I have recently started _5 mins tech talk_ one person every day when anyone can share the knowledge that he/she has read about in the last days or the latest industry trend.

You can also plan to use _JIRA boards/Trello_ etc.
Async, await and generators
Tags: async, await, generator, javascript
Published: 2022-08-19 06:57:38


You may have heard that `async` and `await` is a syntactic sugar for promises. Promise works perfectly for asynchronous tasks such as I/O operations, API calls etc... So why do we need `async` and `await`

## Issues with Promise
### Readability
Consider the following snippet
```js
const sleep = (delay) =>
  new Promise((resolve) => setTimeout(() => resolve(`sleep ${delay}`), delay));
const result = sleep(1000)
console.log(result);
```
**sleep** -> promise that resolves after given delay
When you try to run the code, the expected output is
```sh
sleep 1000
```
Instead 
```sh
Promise { <pending> }
```
To get the expected result you have to do the following change
```js
sleep(1000).then(console.log)
```
The issue with this is, the task that needs to be executed after fulfilling the promise needs to written in the `then` block. This means whatever written after promise will be executed before the `then` block. This may cause confusion because the execution of the code is not linear.
### Error handling
Promise gives pretty good API to handle the error situations. Errors can be handled in the `catch` block just like `then` block. The traditional `try, catch` will not work in case of promise since execution of promise is after executing the `try and catch`
## Async and await
Async and await introduced to JavaScript in ECMA 2017, which helps to resolve the above issues. The code become linear and `try catch` can be used to handle the errors
```js
const sleep = (delay) =>
  new Promise((resolve) => setTimeout(() => resolve(`sleep ${delay}`), delay));

async function asyncFunc() {
  try {
    const result = await sleep(1000);
    console.log(result)
  } catch (e) {
    console.log(e);
  }
}

asyncFunc()
```
When you are using `await`, it will wait for the promise to either resolve or reject, then only the next line executes. The above snippet looks simple JavaScript except two weird keywords :D
> `await` only can be used inside an `async` function

# Implementation of async await with generator
Few things to consider
- `await` is added before a promise
- Next line is executed after completing the promise
```js
const sleep = (delay) =>
  new Promise((resolve) => setTimeout(() => resolve(`sleep ${delay}`), delay));

function awaitFunc(promise) {
  promise.then((res) => iterator.next(res));
}

function* asyncFunc() {
  try {
    const result1 = yield awaitFunc(sleep(1000));
    console.log(result1);
    const result2 = yield awaitFunc(sleep(2000));
    console.log(result2);
  } catch (error) {
    console.log(error);
  }
}

var iterator = asyncFunc();
iterator.next();
```
The above snippet give exact result as `async` and `await`
In here consider
- `awaitFunc` accepts a promise and resolve and let generator continue the execution
- `function*` to be `async`
- `yeild` and `awaitFunc` to be await
Digital Marketing Manager
Tags: hiring, digital, flexibleshift, workfromhome
Published: 2022-08-19 06:50:17

This position is ideal for someone who likes the unknown or is at least “okay” with it and is willing to roll their sleeves up and do some work, not necessarily just delegate it or outsource it. We require someone who understands that their job might constantly be changing to fit the needs of the company.

Apply on http://prefr.co/team/hiring

Responsibilities:

Marketing & Sales

Generating Leads, inquiries, and sales from the Internet
Making calls to International prospective customers
Email campaigning
Active forum contribution on popular websites
Prepare online newsletters and promotional emails and organize their distribution through various channels
Plan and monitor the ongoing company presence on social media (Twitter, Facebook, etc.
SEO - Search Engine Optimization

Ideally, already comfortable with the use of WordPress, for the basics of website management - or willing and able to learn this through online learning sources
Conduct On-site and Off-site SEO
Data extraction, writing web marketing mailers, analyzing Export/Import data, sending emails, etc.
Improving SEO of various websites and social media pages.
High-quality backlinks building using ethical techniques
Google Analytics reporting
SEM & Ads management

Executing Ad campaigns by Google Ads, Bing, Facebook, etc
Plan, implement and manage marketing strategy
Running paid marketing campaigns online on various platforms
Optimizing the campaigns to deliver the best ROI while meeting targets
Experimenting and run A/B testing on campaigns, messaging and target to improve ROI.
Technical expertise required

SEO tools: Hubspot, Ahrefs, Semrush, Moz, Google keyword planner
Email marketing tools: Mailchimp, ActiveCampaign, Getresponse, Sender
Social media marketing: Hootsuite, Buffer
Content marketing tools: BuzzSumo, Kred, ClickFunnels
PM Tools: Trello, Slack, JIRA, Basecamp, Asana, Clickup
Javascript Tagalog - Array Concat Method
Tags: javascript, tagalog, pinoy, concat
Published: 2022-08-19 06:48:00

**Ano ngaba ang Array Concat method sa Javascript?**
yung Array Concat method, pagsasama niyalang yung dalawang array.
Mas maganda if titignan niyo mga pictures mas maiintindihan niyo agad.

**Pano gamitin:**

```javascript
const arr1 = [1,2]
const arr2 = [3,4,5]

const arr3 = arr1.concat( arr2 )
console.log( arr3 ) // [1,2,3,4,5]
```

Return value niya is yung combination ng dalawang array

---

**Concat sa ibang values**

```javascript
const arr1 = [1,2]
const arr2 = '3'

const arr3 = arr1.concat( arr2 )
console.log( arr3 ) // [1,2,'3']
```
if hindi array yung linagay na argument, i pu-push niyalang yung argument value sa array

---

**More tagalog Javascript Learning Resources:**
https://javascript-methods-in-tagalog.vercel.app/