teleren/devto huggingface dataset:
What should we REALLY be doing these days
Tags: sanity, health
Published: 2020-03-20 21:17:28

Spoiler alert: Stay sane!

No, this is not another “what to do at home” or “how to be productive at home” article. I believe those only add up to the unprecedented anxiety most of the population is experiencing these days anyway.

I think we all need to first take a step back. Embrace the gratitude, because most of the population is still healthy. Be thankful, that we're not fighting each other. We don't have an ongoing war and we're not trying to destroy one another.

Instead, we are fighting together as a team. Isn't this beautiful? Whenever this crisis ends, it will spill us out stronger, more united and more humane.

So, don't try to satisfy your managers by being productive at home, while trying to juggle your kids, cooking, shopping, cleaning together with your anxiety, unease and fear.

Nobody can expect the same level of productivity from you if you worked for the past X years from the office. Especially given all the horrible news we're facing everyday and certainly not together with all the online meetings which try to keep the business as usual. Fuck that!

What should you really focus on:
- have some "you-time". Ask yourself how do you really feel and what could comfort you.
- talk to your significant other. How is he/she handling it and what can you do to help?
- talk to your parents/grandparents. Pick up the phone, tell them you are doing just fine and listen to whatever they have to say.
- take a walk. While we still can.
- read a book, watch a movie, learn new skill (cooking), clean, play, write, paint, create and procreate.

This is not a promo but if you're interested how to handle the remote work, just read [these amazing books from Basecamp](https://basecamp.com/books), understand the principles and apply them to your company.

Photo by John Mark Arnold on Unsplash
Moon: 1110011, Binary board game (+ web version)
Tags: games, binary, beginners, stayathome
Published: 2020-03-20 21:01:38

Been wanting to talk about Moon board game a long time ago, but not without playing it myself, and now that we're into quarantine days, I've made a habit of it, finishing my day with some minutes of play.

Authored by a uni colleague [Pablo Garaizar](https://twitter.com/PGaraizar/) and co-funded by the Erasmus+ Programme of the European Union,

> # Moon or 1110011, it's a solo/co'op and competitive computer-related game, for the practice of low-level binary operations.

Gotta say I'm hooked and willing to play co-op and competitive modes as soon as possible!

---

# Story Background

The story behind the game it's one I like a lot, not only because it's based on a historical event but for the love of mentioning the first Software Engineer woman, [Margaret Hamilton](https://en.wikipedia.org/wiki/Margaret_Hamilton_(software_engineer)) ♥

> In 1969, millions of people around the Earth gathered around their television sets to witness an event that was happening 384,000 km away. The Eagle lunar landing was on its way to land on the moon, and it relied on the non-stop calculations of its on-board computer, which accomplished this with less computing power than a modern digital watch. 

> However, three minutes before landing, the computer triggered several alarms: a radar that should have been switched off during the landing procedure unexpectedly switched on. The on-board computer, which needed to devote its scarce computing resources to landing the lunar module, could easily become overwhelmed by this extra work. 

> Fortunately, the software that managed the on-board computer, designed by a team of engineers led by Margaret Hamilton, was smart enough to detect the problem. The computer alerted the astronauts, effectively saying "I am overloaded with more tasks than I should be doing right now, so I'm going to focus only on the important tasks, those that have to do with the landing." 

> Without this novel and intelligent design, we may have never taken that "small step for a man and giant leap for mankind". 

> In this game, you will be the software helping the astronauts to land safely by using binary operations and repairing hardware errors. 


# How is it played?

The best explanation is given on the following video but got tons of multi-language material to understand what's about.

{%youtube LBr0GTGbtBk%}

# Convinced to play? 

I've just tried the [Moon web version](https://moon.deusto.es/)
  - Read the instructions under the [?] symbol
![img](https://pictshare.net/wp0oq3.png)

But there are many other options specified in the [Official Moon Site](http://compus.deusto.es/moon/) like
  - Free print-friendly version
  - Android Downloadable APK
  - And depending on the desired language, you may get your printed version too

Stay home and have fun!
📚Review 8: Modern Portfolio, Developer: Max | #elefDoesCode
Tags: review, portfolio, developer, coder
Published: 2020-03-20 20:46:48

⬇️I will review your... 

🤓The process:
1. Every week I will do a live stream on my youtube channel reviewing your site
2. I will give feedback and suggestions according to your needs. 
3. If I have a way to contact you, I'll gladly do so :)
4. If you have any question don't hesitate to contact me!

Take part [here](https://forms.gle/9AxiCUQ8YudTVYzs9) (I only need a URL and your name).

It doesn't matter if you are a beginner or more advanced. 
You can submit as many sites as you want.

🙏Thank you for taking part with your website into my live streams.
It takes courage to let someone you don't know to review your work...
But remember feedback is important and all of us need it...
 
🤗The review is FREE. You don't pay for anything. I won't be paid by anyone.

----------------------------
P.S. The end of this video didn't record very well :(

In particular, in this video you'll find:

🤓The developer: Max Stromberg
💪The project: http://www.max-stromberg.com/

⌨Previously 
- [review 1](https://dev.to/eleftheriabatsou/review-1-tribute-page-by-freecodecamp-developer-kyle-elefdoescode-4006)
- [review 2](https://dev.to/eleftheriabatsou/review-2-personal-portfolio-developer-diego-elefdoescode-4g36)
- [review 3](https://dev.to/eleftheriabatsou/review-3-portfolio-and-airshare-project-developer-rajitha-elefdoescode-3gop)
- [review 4](https://dev.to/eleftheriabatsou/review-4-personal-portfolio-developer-jatin-elefdoescode-4i52)
- [review 5](https://dev.to/eleftheriabatsou/review-5-github-cool-projects-with-react-developer-saad-elefdoescode-4091)
- [review 6](https://dev.to/eleftheriabatsou/review-6-personal-portfolio-developer-john-elefdoescode-2e20)
- [review 7](https://dev.to/eleftheriabatsou/review-7-coding-with-basir-developer-basir-elefdoescode-5hak)

----------------------------

👋Hello, I' m Eleftheria, an app developer, master student, freelancer, public speaker, and chocolate lover.


😎Top 3 list:
- How to stay motivated | A developer's edition | @BatsouElef: https://youtu.be/qMvEtb5OxNo
- How to be a Better Problem Solver | Tips and solutions: https://youtu.be/dELt7yKIxIA
- Simple Tips to Build a Personal Brand as a Developer (+ personal examples): https://youtu.be/7s0o1gi0iP0

🥰If you liked this video please share

🍩Would you care about buying me a coffee? You can do it here: [paypal.me/eleftheriabatsou](paypal.me/eleftheriabatsou) but If you can't that's ok too!


**************************************

🙏It would be nice to subscribe to my [Youtube](https://www.youtube.com/c/EleftheriaBatsou) channel. It’s free and it helps to create more content.

🌈[Youtube](https://www.youtube.com/c/EleftheriaBatsou) | [Codepen](https://codepen.io/EleftheriaBatsou) | [GitHub](https://github.com/EleftheriaBatsou) | [Twitter](https://twitter.com/BatsouElef) | [Site](http://eleftheriabatsou.com/) | [Instagram](https://www.instagram.com/eleftheriabatsou/)
I "Game-ified" My To-Do List to Help with my Work-Life Balance
Tags: remotework, workfromhome, productivity, worklifebalance
Published: 2020-03-20 20:43:02

---
title: I "Game-ified" My To-Do List to Help with my Work-Life Balance
published: true
description: How I'm keeping my sanity and productivity as I get used to working from home during our world's pandemic.
tags: remote work, work from home, productivity, work life balance
---

I hope this blog post finds you well, the world is going through some crazy times and I'm looking forward to us coming out stronger after it's all over. I'm sure many of you are working from home, possibly for the first time ever, for an undetermined amount of time and it can be a struggle learning how to find a quality work-life balance when your work and life may consist of the same studio apartment, bedroom, or home office and computer.

One trick I've found that's helped me know when to "turn off" work mode is making a small tweak to my To-Do List. Typically my first column is "Today", the second is "This Week", and later columns are things like backlog, done, etc. That first column, although clear in intentions, just wasn't doing the trick for working from home - I would keep adding things as they came up and my stack of things to do "Today" just kept growing and growing.

And so the "Today's Win Condition" column was born!

Everyday, first thing in the morning, I spend a few minutes gathering my thoughts and deciding what needs to be done for the day. This includes work tasks as well as any other things I need to complete before my day is done (for instance, laundry or my workout). Once I've checked off each and every one of those things, my day is done! *Within reason obviously, it needs to be more than a two hour day.* This leaves me feeling great for having achieved a major goal for the day, broken up into several mini-goals, and at the end of the day I can tell myself "Yes! I won!" and move onto fun hobby-type things.


I'm sure this idea won't work for everyone, but I thought it'd be a great and fun way to break up the monotony of routine a bit and help anyone who's struggling with knowing when and how to break out of work mode at the end of their day!


---

If you'd like to catch up with me on social media, come find me over on [Twitter](https://twitter.com/RachSoderberg) or [LinkedIn](https://www.linkedin.com/in/rachelsoderberg/) and say hello!
Git Patch
Tags: git
Published: 2023-01-06 01:36:22

---
title: Git Patch
published: true
date: 2020-03-20 20:22:57 UTC
tags: Git
canonical_url: https://brandonrozek.com/blog/gitpatch/
---

The Linux kernel community make use of patches in git to share code changes with one another. Patches are only nicely formatted differences between your current codebase and what you compare it to. If you want to share a subsetted git tree, then [git bundle](/blog/gitbundle) would be the way to go.

## Creating the patch

If you want to create a patch based off the difference between your current branch and master, run the following:

```
git format-patch master --stdout > feature_branch.patch

```

You can then email the patch to the team.

## Applying the patch

To apply go into a new branch and apply the patch file.

```
git checkout -b feature_branch
git apply /path/to/feature_branch.patch

```
Git Bundle
Tags: git
Published: 2023-01-06 01:36:39

---
title: Git Bundle
published: true
date: 2020-03-20 20:22:01 UTC
tags: Git
canonical_url: https://brandonrozek.com/blog/gitbundle/
---

If you have a large software repository, sometimes you only want to share part of it with a group. You can accomplish this by using `git bundle`

## Creating the Bundle

To bundle all the commits from the development branch to the current head,

```
git bundle create repo.bundle development..HEAD feature_branch

```

This will place these commits into a branch called `feature_branch` in `repo.bundle`.

## Fetching from bundle

On the other side, we need to make sure that we have all the commits up to the `development` branch synchronized. Then we can fetch the commits from the bundle:

```
git fetch /path/to/repo.bundle feature_branch:feature_branch

```

The left side of the colon is what you want to grab from the bundle, the right side is the branch to put the commits to.

```
git checkout feature_branch

```
QTcpSocket
Tags: c
Published: 2023-01-06 01:36:53

---
title: QTcpSocket
published: true
date: 2020-03-20 20:21:07 UTC
tags: C
canonical_url: https://brandonrozek.com/blog/qtcpsocket/
---

There are two ways that I can think of for checking if a TCP socket times out in Qt. You can either use `waitForConnected` or a `QTimer`. The Qt 5.14 documentation noted that the `waitForConnected` call may randomly fail in Windows.

Here is some shared code for both examples

```
QTcpSocket *socket = new QTcpSocket(this);
quint16 listenPort = 4444;
int timeout = 1000; // Units: milliseconds
QHostAddress destination("192.168.0.2");

```

## `waitForDisconnected`

Let’s say that we have a `QTcpScoket` pointer named `socket`.

```
socket->connectToHost(destination, listenPort);
if (!socket->waitForConnected(timeout)) {
    qDebug("Connection Timed Out.");
}

```

Notes:

- `waitForConnected` is a blocking call
- This does not account for the host lookup call.

## `QTimer`

This method requires a little more setup. Let’s assume we have a class named `Test` that inherits `QObject`.

```
// ....
socket->connectToHost(destination, listenPort);
timeoutTimer = new QTimer(this);
timeoutTimer->setInterval(timeout);
timeoutTimer->setSingleShot(true);
connect(timeoutTimer, &QTimer::timeout, this, &Test::timeout);
timeoutTimer->start();
// ....

void Test::timeout(void) {
    qDebug("Connected Timed Out.");
    socket->disconnectFromHost();
}

```

Notes:

- This method acts asynchronously

In order for the the timeout function to not always hit, we need to make sure we stop the timer when data is received or a TCP error occurs

```
timeoutTimer->stop();

```
What is an Arrow Function?
Tags: javascript
Published: 2020-03-20 19:56:37

For my final Flatiron School project, I ended up making use of the arrow function. This turned out to be a great opportunity to really dive into their benefits and how they work.

## Syntactic Sugar
In short, an arrow function is simply a syntactically compact way of writing a regular function expression. Here’s an example:

```javascript
const flavors = [
   "Cookie Dough",
   "Strawberry",
   "Mint Chocolate Chip"
];

console.log(flavors.map(flavor => flavor.length));
// logs [12, 10, 19]
```

## The Arrow Function and "This"
An important difference between a regular function expression and an arrow function has to do with the `this` keyword.

In a regular function expression, the value of `this` is defined based on how the function is called.
* In the case of a constructor, the value of `this` is an instance of the new object
* If the function is called as an object method (i.e. `object.myFunc()`), the value of `this` is the base object

Arrow functions do not have their own `this`. Instead, the `this` value of the enclosing lexical scope is used.  

## Wait, What is Lexical Scope?
As a quick aside, let's review what we mean by lexical scope. 
```javascript
function helloName() {
  let name = "Erin"
  
  function printName() {
     console.log(name)
  }

  printName()
}

helloName()
// logs "Erin"
```

In the above example, even though the variable `name` is defined in the outer function, the value of `name` will be logged by the inner function when `helloName` is called. This is because nested functions (`printName()`, in this case) have access to variables declared in their outer scope. 

## An Example
Here's an example of how the value of `this` changes with arrow functions.

```javascript
function Dog() {
   this.name = "Pupper"
   
   setInterval(() => {
      console.log(this.name)
   }, 1000)
}

Dog()
// logs "Pupper" at one second intervals
```

Because we used an arrow function with `setInterval`, the value of `this` from the outer function is used. 

Sources:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
David and Goliath Book Summary
Published: 2020-03-20 19:43:40

---
title: David and Goliath Book Summary
published: true
date: 
tags: 
canonical_url: https://bhavaniravi.com/blog/david-and-Goliath-book-summary
---

# David & Goliath

## The underdogs, misfits and the art of battling giants

David and Goliath is the 3rd book I read in 2020. I am a big fan of Malcolm Gladwell, so this blog could be biased. Like his every other book, Malcolm questions the obvious. Be it Outliers, Talking to strangers, or David and Goliath, he makes us look at the world the way we would have never thought of before.

## What I liked about this book?

From the time I got the book, to writing this summary, I thought the title of the book was _David vs. Goliath_. When I realized it was _David and Goliath_, it put a lot of things in perspective. It was never about the fight. It was not even about the battle. It was about how we all have our strengths and weaknesses and how we can use them to our advantage to get our way through this world. Of course, in sports, someone has to lose so that someone has to win, but in life?

## Big Takeaways

### [Continue Reading](https://bhavaniravi.com/blog/david-and-Goliath-book-summary)
Let's freelance together while we're in quarantine!
Tags: javascript, node
Published: 2020-03-20 19:42:25

#freelance while quarantined with #Softwareengineer's & #DigitalMarketer's! I'm starting a team. If you want to join comment below or email me at w3develops@gmail.com 

#w3Develops #FreeCodeCamp #CodeNewbie #javascript #100daysofcode #python #coding #tech #programming #code #opensource #womeninstem #webdeveloper #softwaredeveloper #webdevelopment

https://youtu.be/by8YnMNlyOY
Day 2 in Web Development 
Tags: 100daysofcode, webdev, css, design
Published: 2020-03-20 19:32:47

Today i start learning about basic css and this is very cool from previews day.i learn about selectors(targeting as well),properties and values in One selector we can use multiple properties and values like background color's, colors, font-family,border and boarder radius.
css is very help full for making web page's look cool and attractive. Also i learn about semantic tags in html these tags are also like div tags these tags
tells google bots that the content within the tag is the most significant header contained in the HTML
 <code>header, nav, section, footer 
</code>etc..
with these tags i learn to make skeleton of a web page i use display-inline and inline-block with make
div tags in one row further i saw difference about margin and padding in div tags we have default margin and 
padding, last thing which little but hard for me to understand about display:inline-block and dislpay:flex;
i will R & N in upcoming days

     
```
<Header>
    <nav>
      <ul>
        <li>Home</li>
        <li>Location</li>
        <li>Contact</li>
       </ul>
     </nav>
        <h1>Title</h1>
</Header>
     <section>
       <div>a</div>
       <div>b</div>
       <div>c</div>
     </section>   
        <section>triple-section</section>
        <footer>Footer</footer>
```
    body {
        background: rgb(58 ,58,58);
        color: white;
        font-family: Arial, Helvetica, sans-serif;
        margin: 0;
        padding: 0;
    }
    header {
        background: black;
        padding: 20px;

    }
    section {
        background:  white;
        color: gray;
        padding: 20px;
        display: flex;
        flex-direction: row;
    }
    div {
        background: red;
        margin: auto;
        width: 100px;
        
    }
    ul {
        margin: 0;
        padding: 0;
        list-style: none;

    }
    li {
        display: inline-block;
        margin-right: 20px;
    }
    footer {
        background: black;
        padding: 10px 20px;
    }

https://dev-to-uploads.s3.amazonaws.com/i/oahqgdoz7dqtg7wog8ft.PNG
SSO: OAuth 2.0 vs. OpenID Connect vs. SAML
Tags: security, webdev
Published: 2020-03-20 19:24:52

# Introduction

I was asked recently in an interview to explain my understanding of OAuth 2.0, OpenID Connect, and SAML. I had heard of the terms before, and knew they had to do with single sign-on and authenticating users. I had implemented auth in Rails using sessions, in Node using JWT, and again with Auth0, but couldn't speak to the differences between these SSO frameworks. In this post, I'll briefly summarize these frameworks, their differences, and what they're commonly used for.

# OAuth 2.0: An authentication framework

[OAuth](https://oauth.net/2/) is a framework for delegated authorization. It is designed to be generic and flexible. In OAuth, an identity provider (IDP) issues tokens to other services with the user's approval. This lets an application access resources from a server on behalf of the user, without having to share the user's credentials. It allows for sign-in, as well as sharing contacts across applications, or gaining access to a third-party service. 

# OpenID Connect: A modern flavor of OAuth 2.0

[OpenID Connect](https://openid.net/connect/) (and SAML) are frameworks for federated authentication. OpenID is built on top of OAuth. It uses JWT to issue `id_tokens`, which include information about the subject (who is authenticating), the issuer (who is issuing the token), and the necessary authentication information about the user. Passport, a popular Node module for auth, can be configured as OpenID.

OpenID is specifically designed for user authentication. It's used widely in consumer and mobile applications. It allows for third-party sign in features, like "Sign in with Google".  

# SAML: An enterprise approach to SSO

[SAML](https://en.wikipedia.org/wiki/Security_Assertion_Markup_Language) (security assertion markup language) is an authentication standard independent from OAuth/OpenID. It uses a flavor of XML, shared between identity providers and service providers, to authenticate and authorize users. The identity provider will write an assertion, which is an XML document that includes information on the subject, the issuer, and the authentication information.

SAML is commonly used in enterprises that need to manage authorization and authentication for a suite of different software tools. In SAML, the service provider is almost always a web app (a hangover from its early days as an SSO solution for Windows Active Directory), which makes it not ideal for mobile. 

# Conclusion

Like any other technology, each SSO strategy has its tradeoffs and teams evaluate their specific use case before selecting a strategy. I hope this brief introduction was helpful! I have some examples of different authentication strategies on display in my [GitHub profile](https://github.com/gortron).
AWS CDK: Deploy Cloud Resources with Typescript
Tags: typescript, aws, devops, devrel
Published: 2020-03-20 18:50:46

Have you ever thought of deploying cloud resources with a programming language?

You know, instead of using Infrastructure as Code tools like Terraform, you use an actual programming language like Typescript, Python or Java to describe resources that will be provisioned in the cloud?

Great!

I show you how to do this with Typescript.

In [My New blog Post](https://gbengaoni.com/blog/AWS-CDK--Deploy-Cloud-Resources-with-Typescript), I walk you through how to deploy an AWS VPC, Security Group, EC2 instance and an S3 bucket with AWS Cloud Development kit. 

Tip: You can build a SaaS Platform with this.

https://gbengaoni.com/blog/AWS-CDK--Deploy-Cloud-Resources-with-Typescript