teleren/devto huggingface dataset:
How to get back after failures in life?
Tags: productivity, career, watercooler
Published: 2021-04-12 12:06:34

---
title: How to get back after failures in life?
published: true
description: Starting after failures seems impossible? try this
tags: productivity, career, watercooler
canonical_url: https://www.indiehackers.com/post/how-to-get-back-after-failures-in-life-4e935fa51e
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vagwqru8dba8pp324lvd.png
---
If you look at the setbacks in life, one can argue that life is not fair. But in reality, these ups and downs are what makes life interesting. Each setback gives valuable lessons and principles to live a successful life. But whenever something drastic happens and we are at our lowest going back seems impossible. Though, as always, you know that everything will be back to normal, but still. 
 
 A few months ago, something similar happened to me as well. But this time, in my quest of going back to normal and being productive. I found a set of small steps that you all can follow:  

### You can’t fix everything at once 🤷🏻‍♂️
Most of the time, to deal with setbacks, people bring chaos to other parts of life. Like you may stop doing exercises, start drinking, pick up fights with loved ones and so on. This happened to a lot of people in Lockdown. So when you sit down and think in these moments, everything starts looking out of place. The worst part is, to fix all of them at once, you start failing again and again. That starts kind of a chain reaction of negativity.
 
 I recommend starting with the one section of your life that you have the most control over. Start with work or health, anything but one thing at a time. Try to bring that thing in order first, before jumping to the next one.

### The power of the checklist ✅
Nothing is as effective as this simple thing, checklists. Start with adding 2-3 tasks to your list and try to check them off. In case you couldn’t, shift that to the next day and go on like this. To maintain a checklist, you can use a notebook, an app or just plain paper. For me, the bullet journal is the most effective way. I use this ***[Notion Bullet Journal](https://prototion.com/notion-for/notion-bullet-journal)*** as a template for Notion. It’s very effective.

### Enjoy and celebrate small victories 🎉 
When you started working on that one thing, and you make small wins, celebrate it. You need that personal appreciation, a reminder that you are not defeated yet. Which is very important after everything that you have gone through. These small wins give you the courage to keep going and that's what you need the most.

Repeat this again in other sections of your life, till you way past your failures. Remember people look up to you and no matter what you have to keep fighting, losing, standing up and winning. **This is the way**

![](https://media.giphy.com/media/7nTiW8rZymfJJLT8OE/giphy.gif)
Daily Developer Jokes - Monday, Apr 12, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-04-12 12:00:02

---
title: "Daily Developer Jokes - Monday, Apr 12, 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%20Apr%2012%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/5e12595d30baa.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:___ How does a programmer open a jar for their significant other?

___A:___ They install Java
 -->
🧩 Using C# Extension Methods for Auth0 Authentication
Tags: auth, security
Published: 2021-04-12 11:27:09

C# extension methods let you easily add new functionality to existing classes. Learn how you can leverage them to simplify the Auth0 configuration for ASP.NET web apps.

## ASP.NET Web Apps and Auth0

Adding [Auth0](https://auth0.com/) authentication to an ASP.NET web application is quite straightforward and doesn't require any specific Auth0 SDK. You can simply use the standard *Microsoft.AspNetCore.Authentication.OpenIdConnect* package to enable your web application to use the [OpenID Connect (OIDC) protocol](https://auth0.com/docs/protocols/openid-connect-protocol) for user authentication. Let's take a look at how a typical ASP.NET web app configured with Auth0 looks like.

### Getting the sample app

The sample application that comes with this article requires [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download), but you can easily adapt it to run with .NET 5 by simply changing the project's [target framework](https://docs.microsoft.com/en-us/dotnet/standard/frameworks).

As a first step, download the project from the *starting-point* branch of [this GitHub repository](https://github.com/auth0-blog/auth0-dotnet-extension-methods). You can do it by running the following command in a terminal window:

``` bash 
git clone -b starting-point https://github.com/auth0-blog/auth0-dotnet-extension-methods.git
```

The project implements a basic ASP.NET MVC application that requires authentication to access the user's profile. It is the result of the [Auth0 ASP.NET Core Quickstart](https://auth0.com/docs/quickstart/webapp/aspnet-core-3).

[Read more...](https://auth0.com/blog/using-csharp-extension-methods-for-auth0-authentication/?utm_source=content_synd&utm_medium=sc&utm_campaign=csharp-auth0)
Svelte and Localstorage remote
Tags: svelte, webdev, javascript, vercel
Published: 2021-04-12 11:53:23

## Idea 💡
`localStorage` is a very versatile part of web development for persisting data, but it can do so much more.

Every change fires a storage event on the window Object across tabs, which means it can be used as remote. 🤯

## Potential uses 🛠
- Video controller in a small popup window
- Speaker view of presentation slides

## Implementation ⚗
I used svelte-kit for the example (see [links](#links)) 😉
The actual amount of code needed for this pattern is very minimalistic. On the remote side we only need to set a `localStorage` item and this in turn will trigger the event which we can listen to.
```
<button
  on:click={() => localStorage.setItem('signal', 'message')}>
  Set 'message'
</button>
```

The receiver is a little more work, but svelte is our friend and helper 💪
```
<script>
  let signal = '';
  const listener = () => {
    const value = localStorage.getItem('signal');
    if (!value) return;
    signal = value;
  };
</script>
<svelte:window on:storage={listener} />

Received Signal: {signal}
```
If you open the remote and the receiver (same browser and base URL) you should be able to send and receive signals across tabs without any network request.

⚠ because of security issues `localStorage` is blocked on the svelte REPL, so it will not work there

I hope you found this entry interesting and learned something new ☺

## Links 🔗
- [website](https://svelte-remote.reitzner.at/)
- [repo](https://github.com/dreitzner/svelte-remote)
- Photo by [Kelly Sikkema](https://unsplash.com/@kellysikkema?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
Istio - securityContext.capabilities.add - NET_ADMIN & NET_RAW
Published: 2021-04-12 11:43:04

On my EKS cluster, we tried to set-up Istio and Calico together. It seemed right until we deployed a service.

We receive these errors
```
spec.initContainers[0].securityContext.capabilities.add: Invalid value: "NET_RAW": capability may not be added]
spec.initContainers[0].securityContext.capabilities.add: Invalid value: "NET_ADMIN": capability may not be added]
```

We thought for a long time that it was a problem with our Pod Security Policy. *(And all that I found on internet was related to PSP or Calico issues)* But not at all.

It was an issue with our Network Policies. A port was missing to our network policy definition.

---

I found it when I randomly delete all the network policies to test.

---

I hope it will help you!

*Don't hesitate to give some feedback to help me to improve my writing skills. Thanks!*
Simple Deploy
Tags: git, iis, webhooks, cd
Published: 2021-04-12 11:33:00

Today I launched a new open source project "Simple Deploy" - an IIS webhook endpoint for GitHub / GitLab / BitBucket for easy web-site publishing.

I created this in order to simplify our own web-site publishing workflow, as I couldn't find any existing solutions like this - at least not anything very user friendly.
Prior to making Simple Deploy, I used the excellent Bonobo Git Server with a hook to checkout each repository when pushed.
This worked quite nicely, but meant that our web-servers doubled as Git servers, and that our Git repositories were scattered in several different places.
I wanted a setup where all our Git repositories were in a single and separate location (GitHub) - both for simplicity but also as an extra backup.

See <https://simpledeploy.dev>
🔮 Product Management Predictions for 2021
Tags: security, product
Published: 2021-04-12 11:30:30

The function of product management has changed greatly over the last decade. Product management is one of the fastest-growing roles and is moving to the center of business strategy (and not just for technology companies). 

As we enter a new year, we wondered:

* How will the product management function continue to adapt in 2021? 
* What will companies face as they look to hire product management talent? 
* What challenges will they face? 
* What will emerging technologies be impactful?  

We were fortunate to have Dave Wilner, Auth0 CRO, discuss (over Zoom, of course) these questions with five product management leaders from various sectors to get their predictions for 2021. Their answers gave us an inside look into the trends that will impact product management in the coming year.

## The Product Management Leaders

### David Flinton, Chief Innovation, Technology and Product Management Officer, [Xylem](https://www.xylem.com/)
In this role, David is responsible for leading the company's global technology and innovation activities as well as managing the entire life cycle of our offerings. His organization plays a critical role in ensuring Xylem develops advanced technologies and disruptive innovations that will create value for customers and commercialize them rapidly and effectively.

### Gene Farrell, CPO, [Smartsheet](https://www.smartsheet.com)
Gene Farrell is the Chief Product Officer at Smartsheet, responsible for driving product vision and technology strategy across the company's product management, product marketing, and experience design functions.

### Shiven Ramji, CPO, [Auth0](http://Auth0.com)
As Chief Product Officer, Shiven "Shiv" Ramji guides Auth0's product vision, innovation, design, and strategy, and brings more than 15 years of experience in B2B and B2C product management, engineering, operations, and business development.

### Thomas (Tido) Carriero, Chief Product Development Officer, [Twilio Segment](https://segment.com/)
Tido Carriero is the Chief Product Development Officer for Twilio Segment. He leads engineering, product, and design teams. Prior to his current role, he led the Product Engineering team at Dropbox and was an early member of the Facebook ads team before that.

### Ziad Ismail, Chief Product Officer, [Convoy](https://convoy.com/)
At Convoy, Ziad is responsible for data science, design, product management and program management. Before Convoy, Ziad was the Chief Product Officer of Marchex, Chief Executive Officer of CitiKey, and served in other leadership roles at Microsoft. 

[Read more...]()
What are the first things you do on a brand new laptop or PC?
Tags: watercooler, discuss, productivity, devops
Published: 2021-04-12 11:07:58

Hello all,

I would like to know what are the first steps you take on a brand new laptop or PC. I personally use Linux, macOS and Windows so the process is always different. I also try to help my family and friends when they buy a new laptop and set it up for them. 

I'm curious to hear what you do on your new laptops or gaming/work PCs and what you'll perform on a friend or family member laptop as well.

I'll be glad to hear what are the first things you do on your:
- Work/Productive Laptops / PC / Raspberry PIs / Intel NUC, etc
- Entertainment Setups - This can be a Laptop or Gaming Station
- What you do on a laptop for a family member or a friend to ensure they will have everything they need for a daily use.
POC Development Services
Tags: blockchain, poc, services, business
Published: 2021-04-12 10:26:27

It is essential to estimate the project scope, budget, technical resources, and other aspects in the early stages of software development. To obtain all these factors, POC development is mandate in practice. In blockchain POC development, the process starts with the best techniques to figure out the feasibility of the product/service and viability in the market. There will be a complete plan for streamlining processes that define the existing and anticipated business process to identify the project’s risks and limitations.

This is all about the POC development process and its benefits in software development. Avail POC development services in various technologies such as mobile app development, blockchain development, AI, IoT from Blockchain Firm to develop a new profitable venture.

Read More >> https://www.blockchainfirm.io/poc-development
Oncall superstition and the Return to Mean Bias

Tags: devops
Published: 2021-04-12 10:22:37

I've been on call this week, so I haven't had a lot of time to write something out. But one thing I noticed relating to on call is the superstition that: acknowledging that there haven't been a lot of pages will, ironically, cause you to get paged. I'm not sure that there are many people who literally believe that or if it's just a bit of a running joke in the industry. But why is this belief so widespread?

One thing I've enjoyed during my oncall this week was watching the [Medlife Crisis youtube channel](https://www.youtube.com/channel/UCgRBRE1DUP2w7HTH9j_L4OQ) and particularly learning about how on call works for doctors. One of his videos was about how bias affects medical research [^1]. While, watching this, I learned of a particular bias called Return to Mean Bias that describes this phenomenon. In fact, he uses basically the same example in his video with his own on call shifts that he works.

The logic behind this is simple. If you assume that if you graph your number of incidents over time, you'd fluctuate around a mean value. Then, when you are experiencing a slow on call without a lot of incidents, you are probably in the middle of one of the lull periods in your graph, and therefore more likely to notice that it has been slow. Eventually, though, the number of incidents will have to return to that mean value, so after a lull you're actually more likely to have a rush of incidents.

Take a look at this visual lovingly designed by my girlfriend:

![return to mean visual](https://kvwu.io/visual_for_kev.png)
 

The blue line is the mean number of incidents. When you have a slow period, you'll be about to ramp up back toward the mean as long as the mean has not changed.

That's it. It was interesting to learn that this on call superstition is a probability trick. I will hopefully have more interesting content when my shift is over.

[^1]: https://www.youtube.com/watch?v=ooWA4tM_gUs
Application Structure
Published: 2021-04-12 10:11:12

## Application Structure & Service Layer

{% youtube rAG0d6krGn0 %}

[GitHub Repo Tag](https://github.com/softwaredevacademy/spring-web-app-demo/releases/tag/app-structure)

#### Clarification
At a certain point in the video it is mentioned that the `@Service` annotation is optional but recommended for documentation purposes. However, it does actually make a difference when you are using the `@Autowire`. Spring might not be able to automatically find and inject the `Service` class if the `@Service` annotation is missing. So in short: you should use it!

#### Links
[Sagan: the spring.io site and reference application](https://github.com/spring-io/sagan)
[RealWorld Example Apps](https://github.com/gothinkster/realworld)

<hr>
<p style="align: center;"> <span> <a href="https://dev.to/softwaredevacademy/entity-relationships-part-2-many-to-many-4keo">Previous article</a> | </span>
<span> <a href="https://dev.to/softwaredevacademy/combining-backend-with-frontend-on9">Next article</a> </span>
Access All Videos BEFORE Anyone Else - For 1 coffee a month!
Tags: devops, video, youtube, news
Published: 2021-04-12 09:56:50

# 📢ANNOUNCEMENT📢
I'm super hyped to announce that we now have the MEMBERSHIPS enabled on the [CoderDave YouTube channel](https://www.youtube.com/c/CoderDave)... and for __less than 1 coffee a month__!

By being a member, you get __many benefits__. But the most __important__ ones are:

#### 📼EARLY ACCESS TO ALL VIDEOS
You can see all the videos as soon as they are uploaded. 
Usually I upload the videos about a week in advance, and schedule them.
Being a member you can see them straight away!

![Memberships](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5fbvc7l3t6rblab59txn.png)

##### 💌ACCESS TO THE DISCORD SERVER
You get access to CoderDave's community private Discord Server, where you can chat with me and with the other members, via message and audio!

##### 🔂PRIORITY REPLY TO COMMENTS
You'll get your comments to my video replied as soon as I possibly can :)

✨__AND MUCH MORE!__


Check the [Membership tab of the channel](https://www.youtube.com/c/CoderDave/membership) to discover more!
GitUI - v0.14 released
Tags: github, terminal, productivity, rust
Published: 2021-04-12 09:19:04

[GitUI](https://github.com/extrawurst/gitui) is a terminal UI for git written in Rust. We aim to simplify common git tasks in a fast, keyboard-only and cross platform way without leaving your beloved text interface.

# Release Highlights

* support checking out remote branches
* support stash-pop (apply and remove stash in one go)
* [much more](https://github.com/extrawurst/gitui/releases/tag/v0.14.0)

Thanks for your interest and support over the last 12 months!❤️
JAVASCRIPT VARIABLES 
Tags: variables, javascriptvariables, const, var
Published: 2021-04-12 09:14:46

**What is a variable?**
A variable is a named location for storing a value. That way an unpredictable value can be accessed through a predetermined name.
Think of it as a container for storage.
When you say to yourself, “I need to remember all this information later but I only want to remember on word for all the information, that is a variable!

**Variables don’t have types, but the value in them do. These types define intrinsic behavior of values. – Kyle Simpson**

**Javascript has seven built-in value.**
1. String- a sequence of character that represents a text value. 
                                                  E.g “Howdy”
2. Number-an interger or floating point number.
                                                  E.g 42
3. Undefined- a top-level property whose value is not defined. . 
                                                  E.g 
                                                    let b; 
                                      console.log(b) // undefined
4.	Boolean- a true or false statement. E.g if (Boolean 
                                   conditional){
              console.log(“Boolean conditional resolved to true”);
                                        } else {
             console.log(“Boolean conditional resolved to false”);
5.	null- a special keyword denoting a null value.
6.	Symbol- a data type whose instances are unique and immutable.
7.	Object refers to a data structure containing data and instructions for working with the data. Objects sometimes refer to real-world things, for example a car or map object in a racing game. E.g let car ={
      color: “red”
      miles:400
      }console.log(car.color) //red
**Note:** all of these types except objects are called primitives”

There are 3 different ways to declare a variable in Javascript which are: **var** , **let** and **const**. 

**Var** is an outdated way to declare variables. Before 2015 using var keyword was the only way to declare a Javascript variable. Variables declared with a var keyword is termed as a global variable as it can be accessed anywhere(globally or  locally) it can be redefined. E.g
                  var carName = "Volvo";
                  var carName = Toyota; //can be redefined

**Let** is a block scope, it can’t be used outside a block scope. It can be updated or redefine. E.g {
                               let x = 2;
                                  }
        // x can NOT be used outside the above block-scope here

**Const** is a block scope. As the name implies, ‘constant’, once assigned, it cannot be reassigned. It does not define a constant value rather a constant reference to a value. E.g
            const car = {type:"Fiat", model:"500", color:"white"};
          car = {type:"Volvo", model:"EX60", color:"red"}; //ERROR

**NOTE:**
Don’t use var anymore. If you’re worried about compatibility in browsers, it has 94% global compatibility.
Create an Live Code Editor Using Html, CSS and JavaScript |
Tags: html, css, javascript, beginners
Published: 2021-04-12 09:13:17

Create an Live Code Editor Using Html, CSS and JavaScript 

I will show you how you can easily create your own real time live html code editor using HTML, CSS & JavaScript.

Source Code ==> https://codepen.io/Bilal1909/pen/ZELJJpG
Live Code Editor App With JavaScript!
Tags: html, css, javascript, code
Published: 2021-04-12 09:09:25

Don't forget to subscribe to my YouTube channel for programming tutorials: https://www.youtube.com/channel/UCFzeA3xC-_i4ZT-XwcwsJxQ

{% codepen https://codepen.io/CristoferK/pen/QWdQVjg %}

Don't forget to subscribe to my YouTube channel for programming tutorials: https://www.youtube.com/channel/UCFzeA3xC-_i4ZT-XwcwsJxQ
PWA's I use Daily as a Web Developer.
Tags: pwa, javascript, react, webdev
Published: 2021-04-12 09:07:19

1) [UnDesign](https://undesign.learn.uno/) - Collection of free design tools and resources for makers, developers and designers.

2) [Web Skills](https://andreasbm.github.io/web-skills/) - Web Skills is a visual overview of useful skills to learn as a web developer.

3) [YouTube](https://www.youtube.com) - Do I need to explain this ?

4) [Dev.to](https://www.dev.to) - A constructive and inclusive social network for software developers.

5) [DevDocs](https://devdocs.io/) - DevDocs combines multiple API documentations in a fast, organized, and searchable interface.

6) [HoppScotch](https://hoppscotch.io/) - Open source API development ecosystem

7) [Spotify](https://open.spotify.com/) - Online Music Streaming Service.

#### I have recently created a YouTube channel where I'll be sharing tutorials regarding NODE + REACT + REACT NATIVE + JAVASCRIPT.

####Do subscribe to the channel. Here's the [LINK](https://www.youtube.com/channel/UCDT8sIFy3pW8LT6SAbe8xtQ).