teleren/devto huggingface dataset:
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2021-05-11 18:17:11

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---
_Every Tuesday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week._ 


## Now this is preparation

Wow, @suprabhasupi! What a thorough guide to some of the React/Redux interview questions our community might encounter in the future. Thanks for this! 

{% link https://dev.to/suprabhasupi/react-redux-interview-questions-with-answers-13ba %}

## An evergreen solution to a common web dev problem 

@bholmesdev has put together some "easy wins" for optimizing image file formats and sizes with the picture element _and_  an automation process that you can use to your build setup of choice. Super helpful. 

{% link https://dev.to/bholmesdev/picture-perfect-image-optimization-for-any-web-framework-2o77 %}

## The Next step

If you're comfortable with the React framework library, this post by @olenadrugalya is a fantastic way of familiarizing yourself with NextJS and its features.


{% link https://dev.to/olenadrugalya/introduction-to-nextjs-3gi4 %}

## Golden rules for code reviews

@pavel_polivka provides some really useful things to keep in mind the next time you are conducting a code review. You might even start enjoying them 😉 

{% link https://dev.to/pavel_polivka/how-to-be-good-at-code-reviews-2lpl  %}


## The lookback

@adriantwarog's mantra (_"1) Always improve, 2) Learn with projects, 3) Stay healthy, 4) Apply yourself, 5) Network, 6) Don't Burnout_), gained from years of being a dev, is relevant to all of us. Thanks, Adrian!

{% link https://dev.to/adriantwarog/what-i-learned-after-10-years-of-development-3an %}


## Opening the door to open source

This is a fantastic "who, what, when, where, why" of contributing to open source by @ceeoreo. Whether you've been meaning to contribute to open source projects for a while or you want to convince someone else in your life to do so, this post is a great resource. 

{% link https://dev.to/codesandboxio/how-to-make-your-first-open-source-contribution-2oim %}

## Mastering Puppeteer

@sudarshansb143 thinks Puppeteer is one of the greatest tools available on the web in order to perform the automation regarding website or In-Browser Activities. By the end of this article, you might agree!

{% link https://dev.to/sudarshansb143/productivity-hacks-using-puppeteer-81d %}

_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Tuesday!_
Awesome Toggle Button Animation!
Tags: html, css, design, button
Published: 2021-05-11 18:12:04

Please subscribe to my YouTube channel for programming tutorials! https://www.youtube.com/channel/UCFzeA3xC-_i4ZT-XwcwsJxQ

Today I made an awesome toggle animation using HTML and CSS! I hope you will like it too! I know is simple.
Here is the final result:
{% codepen https://codepen.io/CristoferK/pen/zYZveWG %}

Code:
Let's start by adding a checkbox in a div named center
```HTML
<div class="center">
	<input type="checkbox" id="dark-change">
</div>
```
Now let's set the padding and margin of the page to 0
```CSS
body {
	margin: 0;
	padding: 0;
	background: #f3f3f3;
	transition: .5s;
}
```

Let's make the div stay in the center
```CSS
.center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
```

Now we can start styling the checkbox!
```CSS
input[type="checkbox"] {
	position: relative;
	width: 80px;
	height: 40px;
	-webkit-appearance: none;
	background: #c6c6c6;
	outline: none;
	border-radius: 20px;
	box-shadow: inset 0 0 5px rgba(0, 0, 0, .2); 
	transition: .5s;
}
```

I will make that when will be pressed it will turn blue
```CSS
input:checked[type="checkbox"] {
	background: #03a9f4;
}
```

And now we are ready to make the circle!
```CSS
input[type="checkbox"]:before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	top: 0px;
	left: 0;
	background: #fff;
	transition: .5s;
	transform: scale(1.1);
	box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}
```

Also, we will make that when will be pressed will go to the right
```CSS
input:checked[type="checkbox"]:before {
	left: 40px;
}
```
I hope you liked my post! Please heart, Unicorn and Comment!
What’s your go-to method of learning a new development skill?
Tags: discuss, watercooler, programming, learning
Published: 2021-05-11 18:10:35

The journey of learning never ends for a developer! 

When you need to pick up a new programming language, library, framework or any dev related skill, how do you approach it?

I personally prefer to just pick a project related to what I'm learning and build up knowledge that way. I find I can’t spend too long on tutorials and I don’t truly start to understand unless I’m working on a project (even if it’s a made up project just to use what I’m learning).

So what's your preferred learning method?

A post I wrote a while back explains some various ways developers can use for practice.
{% link https://dev.to/funbeedev/5-ways-to-help-you-practice-coding-lab %}
Learning Unity Game Dev for 1 Year
Tags: unity3d, gamedev, indiegame
Published: 2021-05-11 18:04:36

1 Year ago, I downloaded Unity and began my game making journey with it. Here's a quick overview of the games I've made in the past year:
1. 2D Platformer Game: I made this game in one week, to get familiar with the Unity game engine.
2. 2D Top Down Shooter (Powershot): This game took me 2 Months to complete and was the first game that I published
3. Mape: Mape is a 2D maze defense game which took me about 5 months to complete
4. Game Jam game: I participated in my first game jam, which lasted one week.
5. I made a flappy bird clone in 1 Hour, that was pretty fun as well.
6. Game that helps you to memorize the first 100 Digits of the Number Pi. 
7. Since december I am working on Skyhop, which my first 3D game. It is a parkour game settled in space.

You can watch a video about my 1 Year experience here: https://youtu.be/5GMxYyk8kfM

Have a nice day!
Test your HTML/CSS knowledge with these 10 questions!
Tags: html, css
Published: 2021-05-11 17:53:08

Test your HTML/CSS knowledge! Answer these 10 questions:

1. What CSS property is responsible for shadow?
2. What property centers text inside a paragraph?
3. What attribute and what value to set on a form to send it as POST request?
4. How to enable textarea spell check? 
5. What attribute and value to set on an anchor to open a link in a new tab?
6. What tag indicates a page is in UTF-8?
7. How to set HTML page width to device width?
8. In what tag page sidebar should be placed?
9. How to center div content vertically? 
10. What CSS property will make text flow around a custom shape?

Answer below and write how many answers you did know. Later you can come back and enjoy your progress!
Special symbols in HTML
Tags: html, webdev, 100daysofcode
Published: 2021-05-11 17:35:54

---
title: Special symbols in HTML
published: true
date: 2021-05-11 17:33:35 UTC
tags: HTML5,WebDevelopment,100DaysOfCode,HTML
canonical_url: https://bharadwaj.hashnode.dev/special-symbols-in-html
---

Hello friends, hope you all doing well. In this blog, I am going to write about special symbol creation using HTML. You can ask me why should we create them. Here is the reason:

There are some special symbols that cannot be typed using a keyboard. But we can add them to our website using some codes. I am going to explain them in detail using CodePen.

Here is the first example, creating a Trademark symbol

```
<body>
    &trade;
</body>

```

In this way, we can create many special keywords. Here is the list:

**Geek Symbols**

**Symbol** -> **Name** -> **Code**

α -> Alpha -> &alpha

β -> Beta -> &beta

γ -> Gamma -> &gamma

δ -> Delta -> &delta

ε -> Epsilon -> &epsilon

θ -> Theta -> &theta

λ -> Lamda -> &lambda

μ -> Mu -> &mu

π -> Pi -> &pi

Code for Geek symbols

```
<body>
  <h1>Geek Symbols</h1>
  &alpha;
  &beta;
  &gamma;
  &delta;
  &epsilon;
  &theta;
  &lambda;
  &mu;
  &pi;
</body>

```

**Trade Symbols**

**Symbol** -> **Name** -> **Code**

™ -> Trademark -> &trade

® -> Registered trademark -> &reg

© -> Copyright -> &copy

Code for Trade symbols

```
<h1>Trade Symbols</h1>
  &trade;
  &reg;
  &copy;

```

**Card Symbols**

**Symbol** -> **Name** -> **Code**

♥ -> Hearts -> heartsuit

♦ -> Diamond -> heartsuit

♠ -> Spades -> spadesuit

&Clubsuit; -> Hearts -> heartsuit

Code for Card symbols

```
<h1>Card Symbols</h1>
&heartsuit;
  &diamondsuit;
  &clubsuit;
  &spadesuit;

```

**Currency Symbols**

**Symbol** -> **Name** -> **Code**

₹ -> Indian rupee -> &#8377

€ -> Euro -> &euro

₱ -> Peso -> &#8369

₣ -> French Franc -> &#8355

₿ -> Bitcoin -> &#8383

₩ -> Won -> &#8361

₽ -> Ruble -> &#8381

₾ -> Lari -> &#8382

Code for Currency symbols

```
<h1>Currency Symbols</h1>
&#8377;
  &euro;
  &#8369;
  &#8355;
  &#8383;
  &#8361;
  &#8381;
  &#8382;

```

**Math Symbols**

**Symbol** -> **Name** -> **Code**

÷ -> Divide -> &divide

↑ -> Up arrow -> &uarr

→ -> Right arrow -> &rarr

↓ -> Down arrow -> &darr

← -> Left arrow -> &larr

√ -> Square root -> &radic

∝ -> Proportion -> &prop

∫ -> Integral -> &int

∴ -> Therefore -> &there4

⇒ -> Implies -> &rArr

∀ -> For all -> &forall

Code for Math symbols

```
<h1>Math Symbols</h1>
&divide;
  &uarr;
  &rarr;
  &darr;
  &larr;
  &radic;
  &prop;
  &int;
  &there4;
  &rArr;
  &forall;

```

Outputs of all the code:

![Screenshot (112).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1620754271291/RzagCwoK8.png)

![Screenshot (113).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1620754281848/EqrnJHPiy.png)

The link for Code is attached [here](https://codepen.io/bharadwaj6262/pen/PopPXEz?editors=1000)
Satta Matka Result
Published: 2021-05-11 17:28:56

Welcome To Satta Matka Result, India's Top Leading Site For Satta Results. Where You Earn And That We Support. We Are Extremely Delighted To Welcome You At The Foremost Authentic Satta Matka Website.

The Sattamatkaresult.Com Provides The Fastest And Most Reliable Matka Results.


Visit Our Website For More Information: https://www.sattamatkaaresult.com/

Visit Our Facebook Fun Page : https://www.facebook.com/Satta-Matka-Result-106110201655369

Contact Us for Help Email Id : sattamatkaaresult2022@gmail.com


FOR BOOKING

Mobile Number: 6371994899 [CALL TIME :9 AM TO 3 PM ]

Kw:Satta matka, satta, matka, matka game, matka result, satta matka result,Satta matka game, Kalyan matka
#100DaysOfCode Challenge
Tags: 100daysofcode, python, books, datascience
Published: 2021-05-11 16:39:59

### 100 Days Of Code Github Wall  

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/81u8wupfksdpkveel33s.png)

**My experience with the #100DaysOfCode Challenge**
**Motivation**

I decided to try the #100DaysOfCode Challenge for a couple of reasons. 
First, to see how I would manage this and secondly to complete items that were languishing due to low motivation.

I did not tweet daily as is generally recommended. For me the public motivation / goal does not appeal. 
I also decided to finish my incomplete items first. And only then start anything new.

**Code Complete**

1. Started and Completed - *'Data Cleaning Cookbook'* by Michael Walker
2. Completed - *'Automate the boring stuff'* by AI Sweigart 
3. Python course in Udemy
4. 100+ Python Exercises 

**Other**

Strictly does not fall into the coding challenge but I thought it relevant all the same.
1. Completed Google Cloud Sprint course in Coursera 
2. LinkedIn Assessments - 4

**Lessons Learnt**

*Pros*

- Definitely works. Nothing like not wanting to miss the streak in the github profile as motivation !
- Was able to complete every item that had just been pending for no reason other than low motivation
- A very good experience, gives a confidence boost along with a sense of accomplishment
- If do-not-break-the-streak or chain works for you, this challenge is highly recommended

*Cons*

- I believe in complete digital detoxification for one day during the week / fortnight. Obviously, this could not happen with the #100DaysOfCode challenge
- Very easy to just go through the motions if fatigued
Launching is scary
Tags: product, launch, procrastination, business
Published: 2022-09-08 10:01:16

---
title: Launching is scary
published: true
date: 2021-05-11 16:34:36 UTC
tags: product,launch,procrastination,business
canonical_url: https://blog.narnach.com/blog/2021/launching-is-scary/
---

Until you decide to make your product available to the world, it’s just _yours_. _You_ get to add to it, remove from it and change it however you want. _You_ can do this without risk of anyone getting upset that you changed or removed their favorite feature. There is nobody to _judge_ your product. Yet.

When you _do_ launch, everything changes. Suddenly it’s not only _yours_ anymore, it’s also _theirs_. Your users (who preferably turn into your customers) will start to use it. They develop attachments to what is there. They get frustrated with what _they_ don’t like. They will, collectively, present you with conflicting requests to make changes.

The worst outcome is that nobody cares, and all that’s left is you and your disappointment.

_Not_ launching, just yet, in order to fix that one bug, to tweak that one thing… it’s so tempting! You get to keep it for yourself, just for a little while longer.

The problem is that this mindset is similar to analysis paralysis: you can get stuck in it without ever launching. There is always something _more_ you can do. Something to add, something to fix. It will _never_ be perfect, but you can trick yourself into trying to achieve it. In reality, you’re just avoiding the potential for disappointment that _could_ come from an unsuccessful launch.

I’ve read somewhere that if you are not at least a _little_ ashamed of what you have launched, you have waited too long. It always sounded wise and useful, but now that I’m getting closer to launching [Infinity Feed](https://www.infinity-feed.com/), my mind is spinning and grasping at all kinds of excuses for why I should wait _just a little longer_.

How I’ve been dealing with it? I’ve started talking to folks about what I’m building. I’ve [hinted](https://blog.narnach.com/blog/2021/having-another-look-at-crypto/) yesterday in the footer of my blog post that it will go live soon-ish. I’ve put up a marketing placeholder page (which read okay at the time, but now I just want to rip it off and replace it with my new one). Basically: I’ve started building momentum that should result in me launching the thing I’ve been announcing.

Now if you’ll excuse me, I have a _few_ more things to do before I hit the “deploy” button for real. Launching really is scary, but this post pushed me another step closer to doing it.

Curious? Want to say something? Feel free to reach out to me via [Twitter](http://twitter.com/narnach) or [email](mailto:wes@narnach.com). Besides being close to launching a smart RSS reader over at [Infinity Feed](https://www.infinity-feed.com), I’m a [freelance Ruby software developer](https://www.narnach.com/) with a focus on back-end systems and an obsession with code quality. I’ve also decided to look at cryptocurrencies again, so expect me to mention that again in the future.
ARRAYS In C
Published: 2021-05-11 16:33:34



Here in this article we are going to know about what are arrays? By the end we can learn how to initialize, declare arrays and to access elements of arrays.

An array is a collection of individual data elements that is

- ordered
- fixed in size
- and homogeneous–which means the data is of same kind or with same data type
We have several form of arrays in c:

1.One dimensional array 
2.Multidimentional array

->Lets see about these arrays in deep

One Dimensional Array:

If an array is one dimensional , there will be a single subscript /index whose values refers to the individual array element which ranges from 0 to (n-1).

here n is the total number of elements in the array. While defining an array, we should note three points,

1.The data type that can be hold like, int, char, float, double etc.

2.The number of values it is can hold, i.e., the maximum number of elements it can hold which is called as “size”.

3.And finally “name”

–>Syntax of Array: Applying all the above mentioned rules for declaration of one dimensional array is

data_type array_name[SIZE];

Ex: int a[size];

int x[10];

float a[5];

The array size must be a positive integer or an expression that evaluates the positive integer number which can be specified at the time of declaration.

If the size of the array is missing at declaration, it has to be initialized at declaration. The size is the number of elements in the initialization.

Code:
```
#include <stdio.h>

int main()
{
  int i;
  int x[8] = {10,20,0,-5,27,18,40,59}; //initialization at declaration
  
  for(i=0;i<8;i++) printf("%d\t",x[i]);
  return 0;
}
```
Note:

If more values are given than the size of array then it gives an error in initialization.

Below code is the example of it

```
#include <stdio.h>

int main()
{
  int i;
  int x[8] = {10,20,0,-5,27,18,40,59,99}; //initialization at declaration
  
  for(i=0;i<8;i++) printf("%d\t",x[i]);
  return 0;
}

```
Two Dimensional array:

Two dimensional arrays are array of arrays. 2Darrays are also called Matrices.

Arrays with more than one dimension are called multidimensional arrays.

Array of two dimensions can be declared as

data_type array_name[size1][size2];

- Here size1 and size2 are the sizes of the arrays first and second dimensions respectively
- Where size1 is number of rows and size2 is number of columns.
A three dimensional array is called as cube, can be declared as:

data_type array_name[size1][size2][size3];

- Initializing 2D arrays
int disp[2][4] = {
    {10, 11, 12, 13},
    {14, 15, 16, 17}
};

Multi-dimensional arrays are kept in computer memory as a linear sequence of elements.

```

#include <stdio.h>
int main() 
{
  int i,j;
  int x[4][3] = { {1,2,3},{4,5,6},{7,8,9},{10,11,12} };
  for(i=0;i<=3;i++)
  {
    printf("row%d: ",i);
    for(j=0;j<=2;j++)
    printf("%d \t",x[i][j]);
    printf("\n");
  }
  return 0;
}

```
Node.Js Api Cheat Sheet
Published: 2021-05-11 16:31:52

### Spawn - passthru the in/out

    var spawn = require('child_process').spawn;
    var proc = spawn(bin, argv, { stdio: 'inherit' });
    proc.on('error', function(err) {
      if (err.code == "ENOENT") { "does not exist" }
      if (err.code == "EACCES") { "not executable" }
    });
    proc.on('exit', function(code) { ... });

    // also { stdio: ['pipe', 'pipe', process.stdout] }
    // also { stdio: [process.stdin, process.stderr, process.stdout] }

    proc.stdout.on('data', function (data) {
    });
    proc.stderr.on('data', function (data) {
    });

[all]: http://nodejs.org/api/all.html### Snippets

    info = require('../package.json')
    info.version

    process.stdout.write(util.inspect(objekt, false, Infinity, true) + '\n');

### [Globals] exec

    var exec = require('child_process').exec,

    var child = exec('cat *.js bad_file | wc -l',
      function (error, stdout, stderr) {
        console.log('stdout: ' + stdout);
        console.log('stderr: ' + stderr);
        if (error !== null) {
          console.log('exec error: ' + error);
        }
    });

### Globals

    __filename
    __dirname

### Reference
* [Node.Js Api Cheat Sheet](https://cheatsheetmaker.com/nodejs-api)
FlowJS Cheat Sheet
Tags: flowjs, cheatsheet
Published: 2021-05-11 16:29:55

### References

- [Flow website](https://www.saltycrane.com/flow-type-cheat-sheet/latest/) _(flow.org)_
- [Getting started with Flow](https://flow.org/en/docs/getting-started/) _(flow.org)_
- [Flow type cheatsheet](https://www.saltycrane.com/flow-type-cheat-sheet/latest/) _(saltycrane.com)_
- [FlowJS cheatsheet](https://cheatsheetmaker.com/flow) _(cheatsheetmaker.com)_


### [Examples] Function signature

```js
type Callback = (?Error, string) => any

function fetch (callback: Callback) {
  ···
}
```
### [Examples] Examples

```js
var myNumbers: Array<number> = [42]
function foo(): any { return 42 }
var b: boolean = false
var b: ?boolean = false  /* maybe */
var b: string | boolean = false

var a: Class<MyClass> = MyClass
var b: MyClass = new a()
```

### [Advanced features] React

```js
type Props = {
  bar: number,
}

type State = {
  open: boolean,
}

class Foo extends React.Component<Props, State> {
  // Component code
}
```

### [Advanced features] Comment syntax

```js
/*::
  export type Foo = { ... }
*/

function add(n /*: number */) { ... }
```

### [Advanced features] Imports

```js
import type { Person } from '../person'
import typeof Config from '../config'
```

```js
export type Person = { id: string }
```

### [Advanced features] Functions

```js
const callback: () => void = function () {}
```

```js
function filter<T> (
  list: Array<T>,
  callback: (item: T) => boolean
): Array<T> {
  ···
}
```

See: [Functions](https://flow.org/en/docs/types/functions/)

### [Advanced features] Interfaces

```js
interface Jsonable {
  toJSON(): string
}

class Foo {
  toJSON() { return '{}' }
}

(new Foo: Jsonable)
```

See: [Interfaces](https://flow.org/en/docs/types/interfaces/)

### [Advanced features] Generic classes

```js
class GenericClass<T> {
  x: T
  constructor (x: T) { ... }
}

var n: GenericClass<number> = new GenericClass(0)
```

See: [Generic classes](https://flow.org/en/docs/types/generics/#toc-classes-with-generics)

### [Advanced features] Type aliases

```js
type Tree = {
  foo: string,
  bar: number,
  qux: (foo: string, bar: number) => boolean
}

type Generic<T> = {
  foo: T
}
```

See: [Type aliases](https://flow.org/en/docs/types/aliases/)
Upgrade AWS Elastic Beanstalk from PHP 7.4 to PHP 8.0
Tags: aws, elasticbeanstalk, php, laravel
Published: 2021-05-11 16:28:09

---
title: Upgrade AWS Elastic Beanstalk from PHP 7.4 to PHP 8.0
published: true
description: The AWS Elastic Beanstalk Console currently only permits you to change between minor platform versions (e.g. from 64bit Amazon Linux 2 v3.1.6 running PHP 7.4 to 64bit Amazon Linux 2 v3.2.1 running PHP 7.4), but does not allow changes between major versions (e.g. from 64bit Amazon Linux 2 v3.2.1 running PHP 7.4 to 64bit Amazon Linux 2 v3.2.1 running PHP 8.0).
tags: AWS,ElasticBeanstalk,PHP,Laravel
//cover_image: https://cdn-images-1.medium.com/max/2000/1*C2YZik2va_hI-hlm29cyHQ.png
---

# Upgrade AWS Elastic Beanstalk from PHP 7.4 to PHP 8.0

The AWS Elastic Beanstalk Console currently only permits you to change between minor platform versions (e.g. from 64bit Amazon Linux 2 v3.1.6 running PHP 7.4 to 64bit Amazon Linux 2 v3.2.1 running PHP 7.4), but does not allow changes between major versions (e.g. from 64bit Amazon Linux 2 v3.2.1 running PHP 7.4 to 64bit Amazon Linux 2 v3.2.1 running PHP 8.0).

![](https://cdn-images-1.medium.com/max/2000/1*C2YZik2va_hI-hlm29cyHQ.png)

*But, fret not!!!* It is possible to update to a major platform version using the [AWS Command Line Interface (CLI)](https://aws.amazon.com/cli/):

    aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2 v3.2.1 running PHP 8.0" --environment-id "x-xxxxxxxxxx" --region "us-west-1"

To find the newest PHP platform version AWS Elastic Beanstalk supports view the [Elastic Beanstalk Supported Platforms](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.PHP).

For previous versions see the [PHP Platform History](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-php.html).