teleren/devto huggingface dataset:
Aws compute inthirtyseconds :)
Tags: beginners, inthirtyseconds, aws, cloud
Published: 2021-01-20 14:56:09

<b>EC2 instances</b>- Elastic Compute Cloud, this is essentially a virtual machine 

In a typical data center, you use a hypervisor like vmware to create virutal machines on top of a physical server and you have a level of liberty to choose your own configuration like vCPU (virtual CPU) and RAM, in cloud , like AWS, its all pre configured! and there comes the AWS Instance families 


<b>Instance families </b>:  

<li><u>General Purpose</u> - ATM (a1, t2-t3 families with cpu burst, m5(intel)-m5a (amd) - m6g (graviton) 
<li><u>Compute</u>: c5 -intel, c5a -amd, c6g graviton 
<li><u>Memory</u> : R5, x1, z1 
<li><u>Accelerated Computing </u>-: Gx, Px, INF1, F
<li><u>Storage</u>: Ix, Dx, Hx

<b>fixed vs burstable</b>: 
<u>Cx,Rx, Mx</u> are fixed, static unit based ec2 
<u>Tx </u>- CPU burstable -  governed by CPU Credits. ex t3 nano has 2vpu and 6 cpu units burstable

Once you spin up server using any of those, it will be in any one of the below states 
<li>Instance state
<li>Pending 
<li>Running 
<li>Stopping--> Stopped
<li>Shutting-down --> Terminated
<li>Started 
![credit aws](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/images/instance_lifecycle.png)
Nytimes Spelling Bee for free online.
Published: 2021-01-20 14:49:53

Do you find a place to play Spelling Bee games for free online?
I usually play Spelling Bee and more word games on:  <a href=https://nytimes-spellingbee.com>Nytimes Spelling Bee</a>
a free website game online, about word and puzzle games.
You can try to join and play in your free times.
Share for your friend if you feel interesting.
Gist - VS Code Extension Highlight
Tags: webdev, productivity, vscode
Published: 2021-01-20 14:45:44

---
title: Gist - VS Code Extension Highlight
published: true
description: When working with a GitHub Gist, it's so nice to not have to leave a code editor. The Gist extension allows you to manage your private and public GitHub Gists within VS Code. In this video we demo some amazing features and discuss the customization options available.
tags: webdev, productivity, vscode
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/p9tjicrp4yits8ks8gt6.png
---

{% youtube wUSoZ3Bw_xY %}

When working with a GitHub Gist, it's so nice to not have to leave a code editor. The Gist extension allows you to manage your private and public GitHub Gists within VS Code. In this video we demo some amazing features and discuss the customization options available.
I am still a developer ...
Published: 2021-01-20 14:45:33

I know how it feels when you are in the final year of your engineering and everyone got placed except you. I know how alone you feel when everyone starts a new chapter and you still stuck in struggle. I don't want to blame the pandemic for my situation. I go through many interview processes. Try to keep me motivated and strong and always wake up with new hope. But today I start feeling that if I will never succeed. What if I failed to grab a single opportunity?  It is natural for any brain to start thinking about the "if" side of the situation. I got a chance from google to prove myself and failed to prove myself. I got a chance from Blackrock, VMWare, comvault, etc. After all, these fail attempts, I start feeling like am I in the right direction? I know I am not alone in this world who faced this or facing this, but as a human, I start doubting myself, my abilities. 
People say every successful person has a story of so many fail attempts. This is true, I know. But every person is different, the situation is different. Maybe one person is wasting his/her time in the wrong direction. Who knows what is the right direction? Who will show us the path? These questions are tricky right but the answer is simple. The one who will show me what is right direction is only me. I am the one who can help me. I tell you why ...
Well, honestly I realized this last week after spending time with myself and think about my decisions. Last week was very heartbroken for me. Gone through so many mental problems. 
After spending time with me, I asked the same questions. First I thought I need to ask someone and I did, but everyone was busy now so no response. I start feeling more alone and worthless but I don't want to give up. Then I open up the Patreon website and start searching for people who are developers. I found one common thing that all developers are working alone or in a group but they are still living their dream as a developer but on their own. I found about Patreon through youtube. 
It is hard for me to explain my thinking but after searching about Patreon how it works I found answers to my questions. I realized that to achieve something we have to change our path when needed. I want to be a developer but I can become a developer without any big company too. A tech company is nothing without developers but a developer is a developer without a company too. I am not saying I am a great developer but I want to say that you never know when you will become a good developer. Long story short I feel like platforms like Patreon will help me to achieve my dream. I am planning how to start and what to do but at least this gives me a light to try one more time. 
I am still a developer. I know I am not in a big tech company and I don't have any manager but I have my tools, skills, passion, and platform to showcase my work. The first step is the hardest step. I try my best , if I fail I will again ask myself and figure out the solution. 
People who read this, I want to thank them.
Monorepo
Tags: architecture, monorepo, sanga, git
Published: 2021-01-20 14:43:57

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3p5x5lwsk9h75bxf8xwi.jpg)

## what? 
Monorepo is when putting code of several micro-projects in one code repository.  

![Alt text of image](https://media.giphy.com/media/l2JeiCp90TpSSUOU8/giphy.gif)

## So it's kind of a Monolith?
Well, that's the missing part of the micro-service architecture.

Splitting our code into micro-projects, each with its own tests, deployment, scaling, etc., introduces a new challenge of maintaining and using many microcode repositories.

**Monorepo will hold the collection of micro-project while sharing the echo system of testing, deploying, etc.**

## when?
* When your team needs to run fast -> faster -> fastest.
* When there are too many repositories and no one understands what/where they are and if their dependency versions are aligned.
* When small library change follows with 30 PR's on 30 git repositories (was the story of my life).
* When there are a small number of teams working together because when there are a greater number 
of teams working on the same git repository, it can do worse than better.  

When -> `now()`

## Things to consider while working with a mono repo:
* Per micro project build&deploy:
    * use `git diff` to find out what directory changed
    * build&deploy only this part
* Code owners:
    * what team is responsible for what part of the code?
* Generate micro project script:
    * Creating new microservice should be done in seconds(take a look at https://yeoman.io)
    * Each new microservice should be built automatically by the same standard as all other services
* Contract lib:
    * All services contracts speak in the same language: Rest/Grpc/etc...
    * All services use the same libraries with no duplicate code.

#### Listen to our CTO, Matan Lachmish, talks about Monorepos on [Developing Symptoms podcast](https://open.spotify.com/episode/4xw3LQiPIr9bs0rCms0Rhm?si=WEZgvNGXR3C7ODlgNfWhgQ) (for Hebrew speakers)

### Thank you for reading, look for our next Byte
_Made with ❤️ by [Sanga](https://www.sanga.app)_
Comment installer un déploiement hybride APIM en utilisant les Helm charts de Kubernetes
Tags: api, helmcharts, kubernetes, hybrid
Published: 2021-01-20 14:41:28

Comment déployer l'API Gateway Gravitee.io en mode cloud hybride ? La réponse se trouve dans cet article:

https://www.programmez.com/avis-experts/comment-installer-un-deploiement-hybride-apim-en-utilisant-les-helm-charts-de-kubernetes-31368
AzureFunBytes Reminder - 01/21/2021 2PM EST - Linux, Go, and @Azure with @as_w
Tags: azure, linux, go, beginners
Published: 2021-01-20 14:40:18

This week on AzureFunBytes we'll dive into [Linux](https://azure.microsoft.com/overview/linux-on-azure/?WT.mc_id=devops-13128-jagord), [Go](https://azure.microsoft.com/develop/go/?WT.mc_id=devops-13128-jagord), and [scaling them for your application](https://docs.microsoft.com//learn/modules/app-service-scale-up-scale-out/?WT.mc_id=devops-13128-jagord) with [Open Source Senior Cloud Advocate, Aaron Wislang.](https://twitter.com/as_w) Aaron will reach from his deep experience in working with developer environments to help you pick the right setup for your next big project.

{% twitch FaintBlindingPastaUncleNox %}

Join us at 11 AM PST / 2 PM EST this Thursday, January 21, 2021 for the live show.  We'll talk about Azure, look for ways to implement the right resources for our application, and answer questions.  

AzureFunBytes! - Byte-sized content with a live Twitch show!

Learn about Azure fundamentals with me!

Find us on [Microsoft LearnTV](https://docs.microsoft.coms/learn/tv/?WT.mc_id=devops-13128-jagord) or check out recordings here:

https://twitch.tv/azurefunbytes
https://twitter.com/azurefunbytes
https://aka.ms/jaygordononyoutube

Join me, ask questions, and learn about Azure!

Useful Docs:

[Microsoft Learn: Azure Fundamentals](https://cda.ms/1jV) 
[Microsoft Azure: $200 Free Credit](https://cda.ms/1tj) 
Microsoft Learn: [Scale an App Service web app to efficiently meet demand with App Service scale up and scale out](https://docs.microsoft.com/learn/modules/app-service-scale-up-scale-out/?WT.mc_id=devops-13128-jagord) 
[Azure SDK for Go documentation](https://docs.microsoft.com/azure/developer/go/?WT.mc_id=devops-13128-jagord) 
[Quickstart: Upload, download, and list blobs using Go ](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-go?tabs=linux&WT.mc_id=devops-13128-jagord) 
[Go in Visual Studio Code](https://code.visualstudio.com/docs/languages/go)
RuntDeale is getting closer to actually starting.
Tags: runtdeale, java, gamedev, watercooler
Published: 2021-01-20 14:35:46

I'm starting to (somewhat) advance in Java, and I'm trying to learn some better methods to how I've currently been managing my project.

Hopefully this means I'll be able to select a final library/API to make my game with, I'll be able to find a better way to build the project, and I'll be able to host the project online.

If all goes (better than) according to plan, <b>true development</b> may even start as early as the start of Spring this year (I wouldn't want you to get your hopes up though).


I'm really excited to make this, since it'll be my first game, and I'll actually make my hobby meaningful (since I'm less than mediocre, and have proven to myself that maybe programming isn't my thing), and I want to make something I can be proud of, and display as a badge, or a pin. Though, sometimes I feel like I'm obligated to make this game, too.


Anyways, I hope you are all excited. And please share this post, it would really help if you spread the word about my game.


<div alt="Thanks for reading! Cheers!">
##<b><center><b>Thanks for reading!<br/>Cheers!</b></center></b>
</div>
GMX Mail
Tags: gmx, gmxmail
Published: 2021-01-20 14:33:27

GMX Mail What is
Nowadays, counting on with an email solution is a necessity in every way, and GMX Mail is a platform that is really worthy of having. You see, those days where email platforms were just that, message inboxes and containers are in the past, since at present time an email provider that really wants to stand out must offer more than that, with other services, tools and possibilities. GMX Mail is just that, a modern email provider where the action of receiving messages is only the beginning, with a lot of other integrated functions that make it a comprehensive and powerful service platform for the user. Let´s see what it is all about.

GMX Mail is a complete, powerful multipurpose platform that includes mail functionality as main resource, along with other tools that make easier for the user to manage their personal and work information, everything from one place and with state-of-the-art integration options with other email providers. [GMX Mail](https://www.gmxmail.info/) The best part is that the platform is completely free to use and most of the premium features are included, with a secure and private approach to guarantee protection on the users´ data, intuitive graphic interface and ease of use. With GMX Mail having personal information, messages, email accounts and storage organized in one place was never this easy.
Data Structure and algorithm with Javascript(Intro)
Tags: javascript, computerscience, algorithms, beginners
Published: 2021-01-20 14:26:32

In programming, data structure and algorithm is very important. If you want to be an efficient programmer, you should have proper knowledge of that particular side. It helps to improve your code quality. There are many programming languages available to master this skill like java, python, c++. These languages are called the language of CS students language generally. On the other hand, most of the web developer's first programming language is javascript as almost most 90% websites of websites use javascript as a front end or backend language. Javascript is such a language that started their journey with very minimal facilities. But day by day, it got improved and now it can be used as both front end and backend language. Here comes the importance of learning javascript as a real programming language. Though an efficient programmer needs to grab these skills first to grab the magical world of programming, most of the programmers here gives less attention to learn this magic. That's why data structure and algorithm learning content are so limited on the internet. So I have decided to create regular content on D/A basic to advance. So keep following me to learn data structures and algorithms with javascript. Thanks
Don't get stuck with out of date dependencies!
Tags: javascript, java, tooling, bloggolf
Published: 2021-01-20 14:22:38

# For Gradle

## [Use Latest Versions Plugin](https://github.com/patrikerdes/gradle-use-latest-versions-plugin)

Follow the instructions in the repo to add this plugin to your Gradle project, and viola, you should be able to run it with:

```bash
./gradlew useLatestVersions
```

This will update all your Gradle dependencies to the latest. You'll then need to manually run your tests to ensure everything look kosher.

# For Node

## [updtr](https://github.com/peerigon/updtr)

updtr can be run as either a standalone command or a dev dependency. Once you have it installed, you can run:

```bash
updtr
```

In your project directory to update all your dependencies. What is **awesome** about updtr is that it will run your tests to ensure that each dependency updated successfully. Custom test commands can be specified by using the `--test` flag. 

*This also works for Yarn*

# Wrap Up

Those are the tools I've been using since I've been entrenched in the Java / Node stack. If you have a similar tool for your favorite stack, let me know in the comments below!
REactjs Axios loop of death
Tags: react
Published: 2021-01-20 14:14:50

can someone explain me why this does loop forever when I place it in the app's (functional component)

<code>
  const [data, setData] = useState()

  const fetchData = async() => {
    const queryResults = await axios.post(
      Constants.GRAPHQL_API, {
        query: Constants.GET_TEST
      }
    );
    const result =  queryResults.data.data
    setData(result)
  };
  fetchData();
 

  console.log(data);
</code>
New to Python? Here is a fun project to help you get  started.
Tags: beginners, codenewbie, python
Published: 2021-01-20 13:40:10

###ROCK🥌,PAPER📄,SCISSORS✂
I think all of us have played this game when we were kids and 
still do play it to decide who goes first in doing something.
How about creating your own virtual rock, paper, scissors game 
in python? Sounds exciting right?


 **The best part about creating this game is that you don't have to be a professional in Python.**


You just have to know certain basics about conditional 
statements like *if, elif, then using the input function and the random module.*


Try it out on your own or take help from my code down below👇 .


*My game is as beginner friendly as possible as I haven't used a lot of additional functionality to make it look better. If you are a little more familiar with python you can use images instead of numbers to make it look better.* 
  

**MY CODE** 

import random
game_numbers = [0,1,2]

user_choice = int(input("What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors.\n"))

computer_choice = random.randint(0, 2)
print("Computer chose:")
print(game_numbers[computer_choice])

if user_choice >= 3 or user_choice < 0: 
  print("You typed an invalid number, you lose!") 
elif user_choice == 0 and computer_choice == 2:
  print("You win!")
elif computer_choice == 0 and user_choice == 2:
  print("You lose")
elif computer_choice > user_choice:
  print("You lose")
elif user_choice > computer_choice:
  print("You win!")
elif computer_choice == user_choice:
  print("It's a draw")
MySQL EXPLAIN and Query Optimization
Tags: mysql, sql
Published: 2021-01-20 13:35:53

In this tutorial, we're going to:
- see why MySQL creates a query plan, before each query request. 
- explore a series of examples, to show how the EXPLAIN output can be used, to identify where MySQL spends time on your query, and why. 
- learn which are the important pieces of information, to look for in order to spot performance issues.

Link:  [https://youtu.be/TukZd6LjeBc](Link)
Road to Genius - Python Series level 3
Tags: beginners, python, codenewbie, computerscience
Published: 2021-01-20 13:27:08

Welcome to the third level where we solve Python Challenges from Codr's Ranked mode. The goal is to reach the Genius level, so join me at [Codr](https://nevolin.be/codr/)!

---

![python coding challenge](https://dev-to-uploads.s3.amazonaws.com/i/fodycgl8gtn6f6jb3nud.png)

The first challenge is a function `trap`, we have to fix three bugs. The first two bugs sit next to each other, in what appears to be a for loop. So it should probably be: `for i in range...`. The panda bug is a return value, we know that value A should be a number, so it makes most sense to return either variable maxi or V, because LM and RM are lists. You can either make a bet on either maxi or V, but from my analysis, the variable maxi seems to be used for tracking a maximum value, while variable V doesn't have any usage outside being the return value. To be very certain you can calculate V's and maxi's values to see which one results in `A = 8`.

---

![python coding challenge](https://dev-to-uploads.s3.amazonaws.com/i/licuzljg1uqegaa4s97a.png)

Here we have a recursive function `backtrack`. Recursive functions are known for calling itself until some condition is met. The first diamond bug is the last function parameter, to figure it out we have to find a variable that is not declared inside the function: `start`.

The second bug is an operator, which makes an empty list.

---

![python coding challenge](https://dev-to-uploads.s3.amazonaws.com/i/nprd2i84ljko06bavdhc.png)

To solve this challenge we need to solve A's value. After a quick glimpse at the function, it's used for solving a quadratic function:
```
a = 2
b = 8
c = 1

quadratic:
  d = b²-4ac
  d = 64-8 = 56

  d = sqrt(56) / 2a
  d = 1.8708
  return [-9.8708, 6.1292]

out = quadratic(a,b,c)
A = math.floor(out[0]*100)
A = math.floor(-987.08)
A = -988 --> floor rounds to a lower value!!!
A = abs(A)
A = 988
```

---

![python coding challenge](https://dev-to-uploads.s3.amazonaws.com/i/yn8o06axzvdzy3kk48z9.png)

Here we need to fix three bugs which appear very close to each other. A quick look at the code, it appears to be some kind of calculator. The inner most if-else statements are its basic operations. The green heart and droplet are likely to be `token == '-'` since minus is missing and a possible answer, consequently the diamond should be `-`.

---

![python coding challenge](https://dev-to-uploads.s3.amazonaws.com/i/efqrf1pmq1vounlzguuz.png)

We are lucky here, this challenge is the same function as the previous one, you can take a peek above to solve it quickly ;)

---

![python coding challenge](https://dev-to-uploads.s3.amazonaws.com/i/4kuiepdfe1k3ywcet0ke.png)


Just like that we made it to the 4th level (Superior) stay tuned for that! If you enjoyed this post, make sure to join [Codr](https://nevolin.be/codr/), like and follow me on DEV <3!
Write your first test in Selenium Python
Tags: python, testing, webdev, tutorial
Published: 2021-01-20 13:25:45

Let’s take a look at how to write your first browser test in Python using the SeleniumBase framework. You can check out my article [here](https://automationbro.com/blog/selenium-python-tutorial-series/) to learn more about the SeleniumBase framework.

### **⚙️ Setup & Installation**
First off, we need to install the necessary packages and dependencies to set up our project. Here’s what we need to install:

- Python3
- SeleniumBase framework
- Chromedriver (can be installed using SeleniumBase)

Check out my video below to see how to set up the project in PyCharm and install all the above packages –

{% youtube l-DFyStar9A %}

---

### **✍️ Write your first test**
Once all the packages have been installed, we can get started with writing our first test.

Scenario: Open the home page of the test website and assert the title and the logo.

![Selenium Python Test](https://dev-to-uploads.s3.amazonaws.com/i/v0whk6s9kk5n6jopdgg9.png)

---

### **🏃 Run tests in SeleniumBase**
SeleniumBase relies on pytest as its test runner. So, just the way you would run tests in pytest, you can do the same in SeleniumBase also. Simply run the `pytest` command and it will start running your tests.

Once completed, you will see the results in a terminal similar to this –

![pytest test runner results](https://automationbro.com/wp-content/uploads/2021/01/image.png)

---

### **Check out the video below to see how to write your first test in Selenium Python –**
{% youtube 6ZaO4IA_4Wg %}

---

📧 Subscribe to my [mailing list](https://automationbro.com/mailing-list) to get access to more content like this 
👍 Follow [automationbro](https://twitter.com/automationbro) on Twitter for the latest updates

...

I love coffees! And, if this post helped you out and you would like to support my work, you can do that by clicking on the button below and buying me a cup of coffee -

<a href="https://www.buymeacoffee.com/automationbro">![Buy me a coffee](https://dev-to-uploads.s3.amazonaws.com/i/4aw2ub3f4qkyjk0ivwt4.png)</a>

You can also support me by liking and sharing this content.

Thanks for reading!