teleren/devto huggingface dataset:
Simple, very dumb system that constantly works
Tags: amazon, big0notation, builder
Published: 2022-02-05 13:29:09

---
title: Simple, very dumb system that constantly works
published: true
date: 2021-02-22 15:16:43 UTC
tags: amazon,big0notation,builder
canonical_url: https://mahmutcanga.com/2021/02/22/simple-very-dumb-system-that-constantly-works/
---

A great article from [Amazon’s Builder Library.](https://pages.awscloud.com/amazon-builders-library.html)

![](https://d1.awsstatic.com/builderslibrary/icons/Nighthawks.e595a07aee1743a6655011891b48de02dc571251.jpg)

> These patterns have three key features. One, they don’t scale up or slow down with load or stress. Two, they don’t have modes, which means they do the same operations in all conditions. Three, if they have any variation, it’s to do less work in times of stress so they can perform better when you need them most. There’s that anti-fragility again.

> Even when there are only a few health checks active, the health checkers send a set of results to the aggregators that is sized to the maximum. For example, if only 10 health checks are configured on a particular health checker, it’s still constantly sending out a set of (for example) 10,000 results, if that’s how many health checks it could ultimately support. The other 9,990 entries are dummies. However, this ensures that the network load, as well as the work the aggregators are doing, won’t increase as customers configure more health checks. That’s a significant source of variance … gone.

> Something important to remember is that O(1) doesn’t mean that a process or algorithm only uses one operation. It means that it uses a constant number of operations regardless of the size of the input. The notation should really be O(C).

> A unicycle has fewer moving parts than a bicycle, but it’s much harder to ride. That’s not simpler. A good design has to handle many stresses and faults, and over enough time “survival of the fittest” tends to eliminate designs that have too many or too few moving parts or are not practical.

More on [https://aws.amazon.com/builders-library/reliability-and-constant-work/](https://aws.amazon.com/builders-library/reliability-and-constant-work/)
Easy-to-grasp Playwright boilerplate for testing
Tags: playwright, testing
Published: 2022-02-05 16:05:38

Please navigate through embedded outline , do examine the boilerplate with corresponding comment as part of explanation at each line :

{% codesandbox playwright-configs-in-general-1xwbl %}

---

If you find anything could be improved, please leave a comment below or reach me out at my [LinkedIn profile](https://www.linkedin.com/in/lukas-gau%C4%8Das-bb3877152/)

Thank you! 😊
What I wish I knew when started working as software developer
Tags: beginners, productivity, career
Published: 2022-02-06 10:56:59

I’m going to talk about things that sounds simple, but helps a lot when you realize them.

### It’s okay to feel stupid and ask dumb questions

What happens when person due to the fear of looking dumb, does not ask questions? He will use his partial knowledge to continue doing his work, which will result in even bigger dumb mistakes. I would rather say that is one of the smartest thing you can do. It's okay to feel stupid because most of the things can be learned. 

### Take notes

Taking notes is like saying to your brain look there is something important. It helps you free you up from information overload and it helps you better organize your thoughts.

Whether it’s brainstorm session or just a discussion about new feature taking notes helps to keep your thoughts.

When you’re working on new feature for your project and find hard to start try to draw the structure of your implementation.

### It's completely stupid to work 80-h work week

It’s hard to keep the fresh and focused state of mind when you keep working overtimes. It’s not good neither for you not your team. What can be the result of the person that feels burned out and stressed keep struggling on their work? In my mind that leads us to more issues.

Even hardworking Bill Gates typically gives himself Think Weeks, cloistered away twice a year, owns an island off Belize, vacations in Croatia, plays bridge and tennis to relax and reads in his palatial library.

It’s important to refresh your mind from time to time (take a vacation, have a walk after work etc.).

### Everything can be done, but it comes at a price

When you feel something is not possible then try to ask yourself “why is that **hard**?” or try to break the issue on smaller blocks until you can see the price.

It’s important to understand the price to set priorities and decide whether it's really worth that price.

### Overthinking is killing the process

From my perspective when we’re overthinking we letting creativity of the brain run over-time and dream up unrealistic scenarios in our head. That way we make simple things complicated and as a result it becomes harder to bring them to life.

What we need to do in order to escape that trap? 

- Understand whether it's small or big decision (overthinking every little decision can needlessly slow your productivity)
- Focus on present moment (eliminate distractions and make effort not to loose focus).

### Everyone is a little bit biased

> Bias: prejudice in favor of or against one thing, person, or group compared with another.
> 

Having a bias doesn’t make you a bad person, but not recognizing biases that can lead to bad decisions. 

Everyone have they own preference in the way he works and we need to be aware of that.
Python(Quick Start)
Tags: beginners, programming, python
Published: 2022-02-07 04:14:14

## **Why Python?**

Python is the most popular languages in the recent times due to its popularity of easy to learn and having a lot of features with a lot of libraries inbuilt which are just easy to import into the program to use them...
It is designed by Guido Van Rossum.

## Setup


![Python Landing Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z65y38a4f6ekf33dnc36.png)

Download Link-->https://www.python.org/downloads/

After downloading just run the setup and click the box stated with ("add Path") so that the path of python is saved in the environment variables and congrats You've successfully installed python on your local computer.

![Installation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ygj19p4vlcbu7h4fb2yq.jpg)



![Installation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/23i4sigqbnu7ahje56po.png)

**<u>IDE for Python</u>**
1>PyCharm(https://www.jetbrains.com/pycharm/download/#section=windows)
2>Jupiter(https://jupyter.org/install)
3>SpyderIDE(https://www.spyder-ide.org/)

## Beginner guide doc from Pyhton

https://wiki.python.org/moin/BeginnersGuide

I hope this might be helpfull to all.
Keep Learning and Sharing...
A program to compute the normalization coefficients of a given orthogonal 1-D complex wave function
Tags: python, programming, algorithms, github
Published: 2022-02-06 20:45:22

Hi guys, I am a particle physics PhD student passionate about coding and I like to implement some physical models or computations using different programming languages.

I want to present you a Python program I developed some days ago. This program computes the normalization coefficients of a given orthogonal complex 1-D wave function. In quantum physics a wave function represents the quantum states of a particle and the solution of the Schroedinger equation. You can find more theoretical information in the documentation of the project.

Actually, this program computes the coefficients only for a 1D orthogonal wave function, for a given n wave function index, but it could be extended in future to 3-dimensions and to non-orthogonal functions of course.

If you want to contribute with a pull request it would be more than welcome, since there is also other work to do to extend the project (more info is in the todo file of the GitHub repo); in this case I would put your name in the contributor file of course. This holds also in the case in which you find something you don't like or that could be improved: for this, you can send a pull request too or open an issue.

If you like the project, don't forget to leave a star, thanks!

GitHub repository: https://github.com/JustWhit3/WaveNCC
Resumo Qualidade de Produto de Software
Published: 2022-02-07 00:17:48

Segundo Presman (1994) “Qualidade de software é a conformidade a requisitos funcionais e de desempenho que foram explicitamente declarados, a padrões de desenvolvimento claramente documentados, e a características implícitas que são esperadas de todo software desenvolvido por profissionais”. 
Os requisitos de software são a base a partir da qual a qualidade é medida. A falta de conformidade aos requisitos significa falta de qualidade. Padrões especificados definem um conjunto de critérios de desenvolvimento que orientam a maneira segundo a qual o software passa pelo trabalho de engenharia. Se os critérios não forem seguidos, o resultado quase que seguramente será a falta de qualidade. Existe um conjunto de requisitos implícitos que frequentemente não são mencionados na especificação (por exemplo o desejo de uma boa manutenibilidade). Se o software se adequar aos seus requisitos explícitos, mas deixar de cumprir seus requisitos implícitos, a qualidade do software pode ser comprometida.
Por isso é de relevante Importância, que a qualidade de Software e de produto para uma empresa, seja realizada com maturidade e responsabilidade, e que os desenvolvedores e gerentes busquem a qualidade em todos os processos de desenvolvimento.
Hi everybody. I made a thing!
Tags: svelte, notion, node, sveltekit
Published: 2022-02-07 08:28:14

## TL;DR

Remember _TL;DR_?

Sometimes I think we should all get in the habit, after writing a draft, to write the too-long-didn't-read for what we've written, and then to delete the original draft, sending only the critical details.

With that in mind…

TL;DR—While playing with _notion2svelte_, a tool of my own creation which does just what it says, it occurred to me that I was having fun using it. I had the urge to share it with you all, but then remembered the long draft I'd written as an introductory post. It outlined my reasons for creating _notion2svelte_, examined some of the philosophical underpinnings, and apologized for the rough, evolutionary nature of the v1 architecture.

But then I was like, "Forget those early drafts! Just share the links already!"

So.

No more procrastination. No more meta-analysis, or origin story, or imposter-syndrome-driven apologies for not building the whole thing on [ntast](https://github.com/phuctm97/ntast) (long story). It's link time!

If you live your days with one foot in [Notion](https://www.notion.so/), and the other 🦶 in [Svelte](https://svelte.dev/tutorial/dynamic-attributes), I hope you'll find inspiration, and perhaps even utility, in _notion2svelte_!

- [README](https://github.com/nvlgzr/notion2svelte/)
- [Dog-fooded Docs](https://notion2svelte.vercel.app/)

> Feedback welcome! [—🦦](https://github.com/nvlgzr/notion2svelte/discussions/1)
Top 20 Django Interview Questions You Need to Know in 2022 : 🧑‍💻
Tags: python, django, webdev, programming
Published: 2022-02-07 14:03:34

**Django** and **Python** are two of the most in-demand skills, yet they're also among the most difficult. So, if you want to be ready for your upcoming Django interview, here are the top 20 often requested Django Interview Questions.

1. Which architectural pattern does Django follow?
2. Explain Django architecture.
3. What are the features available in the Django web framework
4. What are the disadvantages of Django?
5. What are the inheritance styles in Django?
6. Is Django a content management system (CMS)?
7. How can you set up static files in Django?
8. What is some typical usage of middleware in Django?
9. What do Django filed class types do?
10. What are the signals in Django?
11. What are the two important parameters in signals?
12. Is the Django Admin interface customizable? If yes, then How?
13. What is Django Rest Framework (DRF)?
14. Difference between Django `OneToOneField `and `ForeignKey `Field?
15. What is Django ORM?
16. How does Django Templating work?
17. What is Jinja Templating?
18. Explain user authentication in Django?
19. Middleware in Django is useful for which purpose?
20. What do you mean by the `csrf_token`?
21. Does Django support multiple-column Primary Keys?
22. Does Django support NoSQL?
23. Is Django better than Flask?
24.How can you limit admin access so that the objects can only be edited by those users who have created them?
25. Name some popular websites or apps using Django?



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


**This takes us to the conclusion of this Django interview questions post**.
I hope you understand all that has been discussed in this essay.  Make sure to practice as much as possible and replay your experience .😊👌

📢 Do you have a query concerning the content of this article? Please let us know in the comments.


[Read here the 20 most important **Python** job interview questions](https://dev.to/baselmmohaisen/the-top-20-python-job-interview-questions-you-should-know-3nb1)
Why would this code not work to populate html table from MongoDB in REACT?
Tags: react, mongodb, mongoose
Published: 2022-02-07 22:33:29

Below is the code I am trying to implement.  Basically just trying to map the table and placing the results in the body... but the code breaks after trying to map() 

Would anybody know what could be missing?   thanks.. 

```
import "./App.css";
import React from "react";

const mongoose = require("mongoose");

main().catch((err) => console.log(err));

async function main() {
  await mongoose.connect(
    "mongodb+srv://name:password@cluster0.gcyyo.mongodb.net/test?retryWrites=true&w=majority"
  );
}

const PartSchema = new mongoose.Schema({
  reference: String,
  description: String,
  replacements: String,
});

const Part = mongoose.model("Part", PartSchema);


function App() {
  return (
    <div className="App">
      <h1>Hello World 5 </h1>
      <table>
        <thead>
          <tr>
            <th>Reference </th>
            <th> Description </th>
            <th>Replacements </th>
          </tr>
        </thead>
        <tbody>
          {Part.map((item) => (
            <tr>
              <td>{item.reference}</td>
              <td>{item.description}</td>
              <td>{item.replacements}</td>
            </tr>
          ))}
        </tbody>
      </table>
    </div>
  );
}

export default App;

```


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/annmlsrebqp6urdlrvnc.PNG)
Day 4: Why Use Principal Component Analysis?
Tags: 100daysofcode, datascience, pca
Published: 2022-02-08 05:03:53

---
title: Day 4: Why Use Principal Component Analysis?
published: true
description: MattC's series on Data Science: PCA
tags: 100daysofcode, datascience, pca
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22qxaunphio74gxr7z8c.png
---

I am working on an article that discusses Principal Component Analysis. Here is a sneak-peak.

Principal components analysis is a valuable tool for revealing hidden structure in a dataset with many features/variables. By using PCA, one may be able to:

1. Identify which variables are important and shape the dynamics of a system

2. Reduce the dimensionality of the data

3. Maximize the variance that lies hidden in a dataset and rank them

4. Filter noise from data

5. Compress the data

6. Preprocess data for further analysis or model building.
How to Develop an iOS App using Flutter
Published: 2022-02-09 04:43:11

Flutter is Google's SDK for crafting beautiful, fast user experiences for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source. It is used to develop applications for Android, iOS, and the web form using a single codebase. Flutter uses the Dart programming language.  

Flutter has been growing in popularity among developers for some time now. Not only does it support cross-platform development, but it also offers a great developer experience: automated hot reload and stateful hot restart, fast debugging rich widget collections and more.  

Now as we are clear that flutter is only used for the development of Android and iOS apps together the question is how do you develop a flutter app?  

The most convenient and efficient method is to hire a dedicated Flutter that has got the experience and expertise in flutter development. If the developer has past experience in a similar industry then it is an added boom for your business.  

**WebClues Infotech** has got a huge pool of talented and highly skilled flutter developers that might have past experience in your industry. They can help you in building a better app than primarily imagined.
Create Windows Loader Using CSS
Tags: css, windows, html, rohithaditya
Published: 2022-02-10 12:50:39

Do You Love windows Loading Animation? If Yes Then its for you!

HTML CODE:
`<div class="container">
  <div class="loader-wrapper">
    <div class="loader">
      <div class="dot"></div>
    </div>
    <div class="loader">
      <div class="dot"></div>
    </div>
    <div class="loader">
      <div class="dot"></div>
    </div>
    <div class="loader">
      <div class="dot"></div>
    </div>
    <div class="loader">
      <div class="dot"></div>
    </div>
    <div class="loader">
      <div class="dot"></div>
    </div>
  </div>
  <div class="bot">
    <br>
    Loading
  </div>
</div>`

The Following Are CSS CODE:
`body{
  margin:0;
  display:grid;
  place-items:center;
  height:100vh;
  background-color:#00a2ed;
}

.container{
  width:80px;
  height:80px;
  display:grid;
  place-items:center;
}

.loader-wrapper{
  width:80px;
  height:80px;
  position:absolute;
  display:flex;
  justify-content:center;
  align-items:center;
}

.loader{
  position:absolute;
  height:20px;
  animation: spin 3.5s linear infinite;
}

.loader .dot{
  width:6px;
  height:6px;
  background-color:#fff;
  border-radius:50%;
  position:relative;
  top:30px;
}

@keyframes spin{
  30%{
    transform:rotate(220deg);
  }
  
  40%{
    opacity:1;
    transform:rotate(450deg);
  }
  
  75%{
    opacity:1;
    transform:rotate(720deg);
  }
  
  76%{
    opacity:0;
  }
  
  100%{
    opacity:0;
    transform:rotate(0deg);
  }

}

.loader:first-child{
  animation-delay:0.15s;
}

.loader:nth-child(2){
  animation-delay:0.3s;
}

.loader:nth-child(3){
  animation-delay:0.45s;
}
.loader:nth-child(4){
  animation-delay:0.6s;
}
.loader:nth-child(5){
  animation-delay:0.75s;
}

.loader:last-child{
  animation-delay:0.9s;
}
.bot{
  display:flex;
  margin-top:90%;
  color:white;
  font-size:20px;
  font-family:Raleway;
}`

> For Demo :
![Small Snap Of Working Code!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6nynlbjtcczz6oo1rf5.png)

> ![Small Snap Of Working Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pszv4luabhmyvzxg152k.png)

> ![Small Snap Of Working Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8kiphdxeug9lh9hoac45.png)
Day-20 Training at Ryaz
Tags: javascript, beginners, programming, css
Published: 2022-02-09 17:02:10

- Date:09/02/2022
- Day:Tuesday

Today I started at about 10:25 am and my aim was to build all left over components and I was successful in creating all of components as I aimed to host this website today but as there was one problem with icons that all of icons in website are not visible and I was wondering that why this is not working I tried many things but did not get its solution and was not able to host this website. Due to this error my work got delayed otherwise I was ready with all of components. so, now my work got delayed unto tomorrow. this way my day ended with completing all thee components but got stuck with one of problem I hope I would be able to cover it by tomorrow and host it positively. today I got to learn may new things like I got to learn that we have to provide different meta tags before hosting our website so that it is easily understood by search engine optimization and help our website to welcome more audience.
Open Source Reverse Engineering Platform
Tags: opensource, programming, tooling, cpp
Published: 2022-02-11 07:23:20

## [cutter](https://github.com/rizinorg/cutter)
<span><strong><i class="fa fa-star">Star 10.8k</i> <i class="fa fa-eye">Watch 284</i> <i class="fa fa-code-fork">Fork 860</i></strong></span>

Cutter is a free and open-source reverse engineering platform powered by rizin. It aims at being an advanced and customizable reverse engineering platform while keeping the user experience in mind. Cutter is created by reverse engineers for reverse engineers.


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

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

## Plugins
Cutter supports both Python and Native C++ plugins.

Our community has built many plugins and useful scripts for Cutter such as the native integration of Ghidra decompiler or the plugin to visualize DynamoRIO code coverage. Feel free to extend it with your own plugins and scripts for Cutter.

## License
GPL-3.0
CSSBattle Target#3
Tags: webdev, beginners, css, programming
Published: 2022-02-13 14:56:15

_Hey everyone,
  I am back with the CSSBattle Series!_
This one is over the [Target#3 "Push Button"](https://cssbattle.dev/play/3) on [CSSBattle](https://cssbattle.dev/)

![Target3 Push Button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nvym8kiqkzmq0xv29gx0.png)
 

####The best approach I could come up with is stated below

```css
<p></p>
<style>
*{background:#6592CF;margin:37.5 25 37.5 25}
body{background:#243D83}
p{
position:fixed;
border-radius:50%;
background:radial-gradient(
#EEB850 24.5px,
#243D83 25.5px);
width:150;height:150;
left:50;top:-13;
border:50px solid #6592CF;}
```
This one was by far, my shortest solution condensing to **237 characters.**

####Explanation
>The `p` element is one with the dark blue color.
In the background colour of `p` , I provided a radial gradient through which the inner yellow circle was made.
And the `p` has a light-blue border of 50px thickness.

**I was amazed to see that the top solution was just 108 characters**, I wonder how they were able to do it in such small amount of code!!

Comment down your way of doing the same.
Stay Tuned for daily updates regarding all the challenges on CSSBattle.


###Want to connect?
[You can connect with me here](https://linktr.ee/prakhartandon)