teleren/devto huggingface dataset:
Resilient and well-architected apps with chaos engineering
Tags: aws, chaosengineering, resilience
Published: 2022-04-27 09:17:00

---
title: Resilient and well-architected apps with chaos engineering
published: true
description: Resources for the session Resilient and well-architected apps with chaos engineering
tags: aws,chaosengineering,resilience
// cover_image: https://cdn.grosch.se/dev-to/improve-resilience-with-automated-chaos-engineering/improve-resilience-with-automated-chaos-engineering.png
---

This post contains resources for the session Resilient and well-architected apps with chaos engineering

Distributed systems are complex and unpredictable, which can lead to undesirable outcomes. Traditional testing methods do not apply well for this complexity and makes assertions based on existing knowledge. Many companies see the need for chaos engineering as a practice to gain new knowledge about the system, but does not know where or how to begin practically applying it as it is viewed as difficult to get started with.

Well-architected applications are designed and built to be secure, high-performing and resilient. You need to test your application and validate that it operates as designed, and is resilient to failures.

#### AWS Well-Architected Framework
https://aws.amazon.com/architecture/well-architected/

#### AWS Fault Injection Simulator documentation
https://docs.aws.amazon.com/fis/latest/userguide/

#### Amazon Builders' Library
https://aws.amazon.com/builders-library/

#### Resilient and Well-Architected Apps with Chaos Engineering workshop
https://catalog.us-east-1.prod.workshops.aws/workshops/44e29d0c-6c38-4ef3-8ff3-6d95a51ce5ac/

#### AWS Well-Architected labs reliability
https://bit.ly/wa-chaos/

#### AWS Fault Injection Simulator Samples
https://github.com/aws-samples/aws-fault-injection-simulator-samples

#### AWS Resilience and Chaos Engineering Day
Watch the recorded session from AWS Resilience and Chaos Engineering Day to learn more about chaos engineering and resilience.
[https://pages.awscloud.com/EMEA-field-OE-resilience-chaos-engineering-day-202111-reg-event.html](https://pages.awscloud.com/EMEA-field-OE-resilience-chaos-engineering-day-202111-reg-event.html?trk=chaoscarnival)

If you have any questions, please reach out on [Twitter](https://twitter.com/GunnarGrosch) or [LinkedIn](https://www.linkedin.com/in/gunnargrosch/). Go experiment!
Launching Hackpack: Conquering burnout through Community
Tags: beginners, programming, productivity, discuss
Published: 2022-04-27 09:16:27

## How it all started

When I was studying for programming interviews, I felt  lonely and depressed. I was the only person I knew that was focused on landing a job at Big Tech. No one understood why I was skipping out on social events or getting up 3 hours before work to study. To make things worse, after studying for almost a year, I failed my Google interview. Frustration set in, I was following all of the conventional advice(lots of leetcode & CTCI), what was I doing wrong? To make matters worse, I’d frequently burnout. I was on a 3 month cycle: 2 months preparing + 1 month burnt out. Every-time I was going through the 1 month of burnout I would be tempted to give up. 

![how to conquer burnout](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5x50u4b8i5iym412y26.png)
 

I finally got into a groove using my [Algorithm Grading Rubric](https://docs.google.com/spreadsheets/d/1gy9cmPwNhZvola7kqnfY3DElk7PYrz2ARpaCODTp8Go/edit?usp=sharing), daily checklist system, mock interviews, and a lot of practice problems. It took a lot of self motivation and consistency to get there, but I eventually received offers from Facebook & Google. 

Fast forward to Hackpack, a YC backed company. Hackpack was created to provide engineers studying for big tech interviews with a community of people to turn to. We know how hard it is to go through this process alone and how important it is to have people surrounding you who are just as serious about this as you are. We provide support as your motivation dips and celebrate when you ace your Facebook technical interview. 

## What do you get when you join Hackpack?

Hackpack members hold each other accountable and support one another. We send daily check-ins on what we are working on and have smaller syncs to discuss our weekly goals. We also do mock interviews, problem solving sessions, and events with members of big tech. Everyone in Hackpack is working towards the same goal. This is your place to meet your future fellow colleagues on your way to success. 

When you join Hackpack, you are holding yourself accountable to your studying and with the support of the community, making those periods of burnout significantly less derailing. 

![how to conquer burnout](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8zh12gbvspj82023o6d.png)
 

This allows you to study more consistently, and reduce the overall time you spend studying.

## How do you join Hackpack?

Each Hackpack member goes through an interview process. All are welcome to apply. We work with earnest, passionate engineers who are looking to take their studying seriously. 

## Future of Hackpack

Currently we have over 2,000 engineers in our discord. We want to reach as many engineers as possible and give them the community to help conquer burnout. 

If you are interested in joining the community, [join the discord](https://discord.com/invite/6RGvzuUa) or apply through our [website](https://www.hackpack.io/). 

You don’t have to go it alone!
Top Influencers Writing on Engineering Management & Leadership in Tech to Follow
Tags: beginners, productivity, career, management
Published: 2022-04-27 09:15:00


In this [blog post](https://blog.getace.io/all-posts/top-influencers-to-follow), we have gathered a list of tech leaders and engineering managers who share great content and tips on how to become a great manager to help you keep your finger on the pulse.

## List of influencers 
**Top influencers writing on engineering management and leadership in tech to follow:**

- Kenneth Auchenberg [@auchenberg](https://twitter.com/auchenberg)
- Pat Kua [@patkua](https://twitter.com/patkua)
- Gergely Orosz [@GergelyOrosz](https://twitter.com/GergelyOrosz)
- Adam Warski [@adamwarski](https://twitter.com/adamwarski)
- Charity Majors [@mipsytipsy](https://twitter.com/mipsytipsy)
- Isabel Nyo @eisabai
- FarhanThawar @fnthawar
- Thiago Ghisi @thiagoghisi
- Kevin Stewart [@kstewart](https://twitter.com/kstewart)
- Lara Hogan @lara_hogan
- Yenny Cheung [@YennyCheung](https://twitter.com/YennyCheung)
- Jason Wong [@attackgecko](https://twitter.com/attackgecko)
- Ben Nadel @BenNadel
- Ryan Burgess [@burgessdryan](https://twitter.com/burgessdryan)
- Tahsin Dane [@tasomaniac](https://twitter.com/tasomaniac)
- Arnold Haine [@Arnold_Haine](https://twitter.com/Arnold_Haine)
- Candost Dagdeviren [@candosten](https://twitter.com/candosten)
- Kenneth Larsen [@kennethlarsen](https://twitter.com/kennethlarsen)
- Fawad Khan [@DigitalFawad](https://twitter.com/DigitalFawad)
- Molly Struve [@molly_struve](https://twitter.com/molly_struve)
- Andrii Dzynia [@andriidzynia](https://twitter.com/andriidzynia)
- Princiya Sequeira [@princi_ya](https://twitter.com/princi_ya)
- Kevin Goldsmith [@KevinGoldsmith](https://twitter.com/KevinGoldsmith)
- Sarah Milstein [@SarahM](https://twitter.com/SarahM)
- Franco Fernando [@Franc0Fernand0](https://twitter.com/Franc0Fernand0)
- Félix López [@flopezluis](https://twitter.com/flopezluis)
- Mitra Raman [@ramannoodlez](https://twitter.com/ramannoodlez)
- Dr. Gerald Bader [@gerald_bader](https://twitter.com/gerald_bader)

## Engineering management with AI  

If you’re interested in improving your engineering management skills, [Ace AI](https://www.getace.io/) can help you with personalized recommendations on learning materials, mentors, as well as useful sources like influencers to follow.

Based on your skill gaps and working activity, [Ace AI](https://www.getace.io/) gives you recommendations on the most interesting influencers to follow and explains to you why.

See how [Ace AI](https://www.getace.io/) recommendations work in practice:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/skp5moxgaraer2wuidji.gif)
Personalized recommendations in [Ace AI](https://www.getace.io/)
Jozef Behr shared Beginner Tips for Learning Python Programming
Tags: webdev
Published: 2022-04-27 09:11:58

**Tip # 1: Code every day**

Consistency is very important when you are learning a new language. We recommend committing to coding every day. It can be hard to believe, but muscle memory plays a big part in programming. Committing to coding daily will really help in developing this muscle memory. Although it may seem daunting at first, consider starting small with 25 minutes each day and working your way up from there.

**Tip # 2: Surround yourself with others who are learning**

While coding may seem like a solitary activity, it actually works best when you work together. It is very important when you are learning to code in Python that you also surround yourself with other people who are learning. This allows you to share the tips and tricks you learn along the way.


**Tip # 3: Ask questions**

People always say that there is no such thing as a bad question, but when it comes to programming, you can ask a bad question. When you are asking for help from someone who has little or no connection to the problem you are trying to solve, it is best to ask GOOD questions

**Tip # 4: Build something, whatever**

For starters, there are many little exercises that will really help you become confident with Python, as well as developing the muscle memory we talked about above. Once you've mastered the basic structure of data (strings, lists, dictionaries, sets), object-oriented programming and writing lessons, it's time to start building!
Pure Function in Javascript
Tags: javascript, programming, beginners, webdev
Published: 2022-04-27 08:39:24

## Pure Function Yozishning Afzalliklari:

- clean code - barchaga tushinarli toza kod yozish;
- Test qilish juda oson;
- Koddagi xatoni tuzatishga oson;
- Alohida ajratilgan va Mustaqil funksiya;

## Pure Function o'zi nima?

Pure Function - Agar bir xil argumentlar beeriladigan bo'lsa doim bir xil natija qaytaradigan funksiya. Bu Funksiyalar hech qanday holatga yoki dasturning bajarilishi davomida ma'mulotlarning o'zgarishiga bog'liq emas, ular o'z argumentlariga bog'liq.

Bundan tashqari, `pure function` `network request` yoki ma'lumotlar mutatsiyasi kabi kuzatilishi mumkin bo'lgan nojo'ya ta'sirlarni keltirib chiqarmaydi.

Quyidagi Javscript funksiyani ko'rib chiqaylik:

```js
function calculateGST( productPrice ) {
    return productPrice * 0.05;
}
```

Agar biz `productPrice` uchun bir hil qiymat bersak, Yuqoridagi funksiya doim bir hil javob qaytaradi. Ya'ni funksiya qaytaradigan qiymatga boshqa tashqi qiymatlar yoki holatlar ta'sir o'tkaza olmaydi. Shuning uchun biz `calculateGST` funksiyasini `pure function` deb nomlashimiz mumkin.

Endi, quyidagi funksiyani ko'rib chiqamiz:

```js
var tax = 20;
function calculateGST( productPrice ) {
    return productPrice * (tax / 100) + productPrice;
}
```

Ushbu funksiya `pure function` yoki yo'qligini taxmin qila olasizmi?

Toppa to'gri, bu `pure function` emas, sababi funksiya qaytaradigan qiymat o'zidan tashqarida turgan `tax` deb nomlanuvchi o'zgaruvchiga bog'liq. Agar keyinchalik o'zgaruvchining qiymati o'zgarsa biz funksiya parametriga eski `productPrice`' ni bersak ham funksiya boshqacha qiymat qataradi.

Ammo bir narsani yodda tutishimiz kerak.

> Eslatma: Agar **pure** funksiya **pure** funksiyani chaqiradigan bo'lsa bu hech qanday yomon ta'sir olib kelmaydi va chaqirayotgan funksiya `pure function` hisoblanadi(Masalan: funksiyani ichida `Math.max()`'dan foydalanish).

Quyida funksiyalar `pure function ` bo'lishi uchun keltirib chiqarmasligi kerak bo'lgan `side effect`'larni ko'rib chiqamiz:

- HTTP so'rov yaratish;
- Mutatsion ma'lumotlar(mutating data;
- Ekran yoki konsolga chop etish;
- DOM so'rov/manipulatsiyasi;
- Math.random();
- Joriy vaqtni olish(getting current time).
How to download a file from a remote site using PHP cURL
Tags: webdev, programming, tutorial, opensource
Published: 2022-04-27 09:02:13

First of all you need to download html dom parser file from sourceforge. Then this code will work for you best.
Here is the code you can download momix.apk file from [momix apk](https://momixapk.com) site.

PHP Code:

`<?php  
  
$curl = ?https://momixapk.com?;  
$cs = REMOTE_FILE "momix.apk" ;  
$flag = curl_init();  
$flag1 = fopen($cs, "w") ;  
curl_setopt_array($flag,  
  array(  
     CURLOPT_URL => $curl,  
     CURLOPT_FILE => $flag1,  
  )  
) ;  
   
$no = curl_exec($flag) ;  
curl_close($flag) ;  
fclose($flag1) ;  `
(selenium) Navigate to amazon, searches for samsung phones and pulls the title and price data.
Published: 2022-04-27 08:42:49

**Important note:**
Before you try to scrape any website, go through its robots.txt file. You can access it via domainname/robots.txt. There, you will see a list of pages allowed and disallowed for scraping. You should not violate any terms of service of any website you scrape.

**Proven in a production environment**

https://github.com/kkamara/amazon-scraper
DEV's NEEDED - NFT SUPERSTORE WORK + Much more (REACT JS)
Published: 2022-04-27 08:39:53

I am in need of completing a nearly finished NFT Superstore which has been built in react, loaded onto servers and start operating as a core. From then on will be continuous updates etc so also looking for a good long term working relationship.

We also have many other areas + aspects to the company, The NFT is just a branch of the entire project so it will end up being good continuous ongoing steady work for may years to come. 

Smarts contracts have been created so it just needs jigging together. 



Look forward to hearing from you
Automate the installation of common tools and packages for debian-based linux distros
Published: 2022-04-27 08:38:19

https://github.com/kkamara/debian-desktop-setup

Automates the installation of common tools and packages for debian-based linux distros.

- wget
- exo-utils
- vlc
- gedit
- openssh-server
- openssh-client
- vim
- neofetch
- rar
- zip
- composer
- php
- dbeaver
- slack
- zoom
- microsoft teams
- mega
- spotify
- nvm
- golang
- docker
- docker-compose
- chrome
- composer
- discord
- postman
- vscode
- net-tools
How to solve Next.js 'ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed' Error
Tags: nextjs, javascript, react, webdev
Published: 2022-04-27 08:33:26

Without wasting time just get to the solution.



- **find the folder ' .next ' which will be in your root folder.**
- **delete this (.next) folder.**
- **after this just delete the cache for your webpage and refresh the page.**
Grepper, a better way to get help while coding?
Tags: discuss, productivity
Published: 2022-04-27 08:29:36

So, I've been using Grepper for some time now.For those you aren't familiar with it Grepper is 
> The Query & Answer System for the Coder Community
Grepper is the ultimate RAM upgrade for the software developers brain. Easily snag code examples from around the web, then access your code examples without having to think.

 
Basically it is an extension for answers and solutions to problems we run into.You can search the problem and if you have grepper installed if there is an answer to that prob you will get the answer pop up first else you can solve it by some other sources and add it to grepper so in future if someone runs into a similar problem they can find your 
answer.Grepper can be integrated with IDEs as well.

[Grepper](https://www.codegrepper.com/)

[I use it ](https://www.codegrepper.com/profile/tawhid-bin-omar)everyday and it's quite useful and the community is helpful as well unlike S.O. which is not ~~known for toxicity~~ and it also saves a bit of time compared to reading docs and solutions scattered through different places.
**What do you guys think about it based on the short summary?**
[Buy me a coffee](https://www.buymeacoffee.com/tawhid)
This week’s newsletter is out! (27-04-2022) - Mid-week special: Navigating the big tech mess
Tags: javascript, tech, webdev, discuss
Published: 2022-04-27 08:23:35

---
title: This week’s newsletter is out! (27-04-2022) - Mid-week special: Navigating the big tech mess
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

Mid-week special: Navigating the big tech mess

https://markjgsmith.substack.com/p/mark-smiths-newsletter-27-04-2022?s=w

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Ten easy Javascript projects with source code
Tags: javascript, beginners, webdev
Published: 2022-04-27 08:11:38

When you think about the web's logic, it's nothing but Javascript.Javascript is a dynamic single threaded event driven interpreted programming language full of memes.

![js memes](https://res.cloudinary.com/practicaldev/image/fetch/s--ZDtqrBOj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/damiancipolat/js_vs_memes/blob/master/doc/js_thanks.png%3Fraw%3Dtrue)

![js memes 2](https://833250.smushcdn.com/1694534/wp-content/uploads/2021/06/2.jpeg?lossy=1&strip=1&webp=1)

Javascript is very easy to learn but for beginner's it is quite tough.So either you are a beginner or intermediate you can pick any projects you like to learn js.The full source code of all ten projects can be found [here](https://github.com/Dumbo-programmer/js-tutorial)
     Name      : Difficulty : Tools 
**1. ELECTION MAP[Beginner]{Vanilla HTML,CSS,JS}**
**2. LOGIN AUTHENTICATION[Intermediate]{Angular JS}**
**3. GUESS THE WORD[Intermediate]{Vanilla HTML,CSS,JS}**
**4. CHAT APP[Advanced]{React,Socket,Node}**
**5. TIC TAC TOE GAME[Intermediate]{Vanilla HTML,CSS,JS}**
**6. HOTEL BOOKING APP[Intermediate]{React}**
**7. GEOLOCATION[Beginner]{Vanilla HTML,CSS,JS}**
**8. MOVIE APP[Intermediate]{Vanilla HTML,CSS,JS}**
**9. PET RESCUE[Intermediate]{Vanilla HTML,CSS,JS}**
**10. NAME TAGS[Beginner]{React JS}**

[Buy me a coffee](https://www.buymeacoffee.com/tawhid)
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-04-27 08:00:06

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258f70cd7f.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ Are computers dangerous?

___A:___ Nah, they don't byte. They just nibble a bit.
 -->
Create keyboard shortcuts to open Fedora terminal
Tags: beginners, tutorial, fedora
Published: 2022-04-27 07:47:20

Open settings and go to keyboard tab

![settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8clbiq1cg2jexkwglnm2.png)

Next, go to keyboard shortcuts
![keyboard tab](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2oivn52exf73p0lgp63z.png)

Go to custom shortcuts
![custom shortcuts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xxknxfvdztv7wryf0noi.png)

Add new shortcuts
![new shortcuts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6wk8n3us42m9owyctgu1.png)

---

## Reference
- [docs.fedoraproject.org](https://docs.fedoraproject.org/en-US/quick-docs/proc_setting-key-shortcut/)
Color changer in javascript
Tags: javascript, webdev, programming, tutorial
Published: 2022-04-27 07:46:32


## Javascript
function RandomColor() {
  var Color = "#" + Math.floor(Math.random() * 16777215).toString(16);
  return Color;
  //color will be freshly served
}
function Change() {
  document.body.style.backgroundColor = RandomColor(); // -> #e1ac94
  someDiv.style.color = Color();
}
Off-chain Sorting over on-chain Sorting in Solidity
Tags: solidity
Published: 2022-04-26 21:49:28

---
title: Off-chain Sorting over on-chain Sorting in Solidity
published: true
description: solidity design patterns series
tags: solidity
---

This is not a unique approach but something I personally used when I had to shave off a few kilobytes off the contract size and also reduce the gas usage. In my use-case, I needed multiple sorting to decide certain winners, rankings, price distributions and such. 

Now, I don't have access to a backend code to try this on when writing this, maybe I could update this later with some scaffold-eth, but this is how I would possible implement this.

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

contract Array {
    uint[] public arr;
    uint[] public arrSorted;
    address payable public _admin;

    constructor()
    {
        _admin = payable(msg.sender);
    }

    event sort(uint[]);

    function sortOffChain() public returns (uint[] memory)
    {
        emit sort(arr);
        return arrSorted;
    }

    function getSortedData(uint[] memory arrData) public
    {
        require(msg.sender == _admin);
        arrSorted = arrData;
    }
}
```

On the backend, the algorithm would look something like this -

1. event listener listening for `sort()`
2. calls `bubbleSort()` [Or whatever suits you] upon getting triggered
3. calls `getSortedData()` function with returned value of `bubbleSort()`

This of course shouldn't be used everywhere, but it is a quick and easy way of sorting data.
Elixir Today: Creating a Square Pattern using Elixir
Tags: elixir, patterns, tutorial, architecture
Published: 2022-04-27 07:21:56

### Process 

- create an elixir file named `square.ex`
- write the code

```Elixir
square = fn n ->
  string =
    for x when x < n <- 0..n do
      for y when y < n <- 0..n do
        " *"
      end
    end

  result =
    Enum.into(string, "", fn f ->
      new_string = Enum.join(f)
      "#{new_string}\n"
    end)

  result
end

IO.puts(square.(10))
IO.puts(square.(5))

```

- run `elixir square.ex`

### Result

```
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *
 * * * * * * * * * *

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

```

### Update 

```elixir
square = fn n ->
  string =
    for _x <- 0..n do
      for _y <- 0..n do
        " *"
      end
    end

  result =
    Enum.into(string, "", fn f ->
      new_string = Enum.join(f)
      "#{new_string}\n"
    end)

  result
end

```


> Happy Coding!
Learn the basics - What is Svelte?
Tags: svelte, javascript, beginners, codenewbie
Published: 2022-04-27 06:55:46

What is Svelte? 

Svelte is a popular alternative to React.js, Angular and Vue and learning it will benefit any frontend web developer.

Svelte is not a framework but a compiler. In Svelte you basically write code in a specific syntax and Svelte runs the code and converts it into Vanilla Javascript and that is what is shown in the browser. The user will be seeing only the compiled code. Basically it is like you give the instructions code using Svelte syntax and Svelte is a tool that runs over the code and generates the highly optimized JavaScript code. 

Similar to REACT Svelte is all about building user reactive user-interfaces in the web.