teleren/devto huggingface dataset:
What Do Software Developers Really Need?
Published: 2022-09-29 15:36:20

Excerpt from my upcoming book, The NextLevel Software Developer.

![The NextLevel Software Developer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/djkizgjbkw26qfia8pdh.png)


## What Do Software Developers Really Need? 
There are a few things that every software developer needs. 

1. **A Basic Starting Point** - what are the basics of what we are supposed to build?  User Stories &/or Requirements

    a. **Problem Definition** - What is the problem we are trying to solve?

2. **A Way Forward** - how should the code be created?

3. **Solution Design** - Basic idea how we will solve the problem.
4. **A Way To Continue** - A basic process for the daily work the software developer will do. 
5. **A Way Backward** - `What did we actually do` to create the software?
Examples of things you might need to know as you look backward: 
   - **Configuration** - so you can deploy 
   - **Design** -- so you can add enhancements, or more easily determine why a bug is occurring 
   - **Database Schema** -- so you know where data is stored, for examination 
   - **Etc**


## Do These Seem Obvious?
Does it seem like this list is obvious?  It may.  However, many teams don't have one or more of these items. Many teams don't have any of them.  They are just typing code.

The NextLevel Developer knows why they need these items and how they make their life better.  The NextLevel Developer creates these if they don't have them.  Yes, even if creating User Stories isn't in your job description, the NextLevel Developer will create them to empower their own work.

What do you think about the list?
Longest Repeating Character Replacement
Tags: javascript, leetcode
Published: 2022-09-29 16:25:24

```js
/**
 * @param {string} s
 * @param {number} k
 * @return {number}
 */
var characterReplacement = function (s, k) {
  let start = 0;
  let end = 0;
  let map = new Map();
  let mostFreqCharacter = 0;
  let longestLength = 0;

  while (s.length > end) {
    map.has(s[end]) ? map.set(s[end], map.get(s[end]) + 1) : map.set(s[end], 1);

    mostFreqCharacter = Math.max(mostFreqCharacter, map.get(s[end]));

    let remaining = end - start + 1 - mostFreqCharacter;

    if (remaining > k) {
      map.set(s[start], map.get(s[start]) - 1);
      start++;
    }
    longestLength = Math.max(longestLength, end - start + 1);
    end++;
  }
  return longestLength;
};

```
onClick pop up
Tags: typescript, antd
Published: 2022-09-29 16:19:20


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

Hi, I have this button which on clicking should show a pop up with Ok and Cancel buttons. I've a onClick function which is calling to functions on clicking. So I want to insert pop up in onClick. Here's my code:
<>
onClick={() => {
  props.setView('downTime');
  props.startTimer();
 }}
 
 </>
C++ da operatorlar
Published: 2022-09-29 16:17:53

Assalomu alaykum!
**Operatorlar** - mavzusida davom etamiz.

- **Increment/Decrement operatorlar**  

"++" va "--" operatorlari o'zgaruvchidagi qiymatni bittaga oshiradi yoki kamaytitadi:

```cpp
#include <iostream>
#include <iomanip>

using namespace std;
int main() {
  int n = 5;
  ++n;

  cout << n;
  return 0;
}
```
Bu yerda **_n_** oz'garuvchisidagi qiymat bittaga oshirildi.
```cpp
#include <iostream>
#include <iomanip>

using namespace std;
int main() {
  int n = 5;
  --n;

  cout << n;
  return 0;
}
```
Bu yerda esa **_n_** oz'garuvchisidagi qiymat bittaga kamaytirildi.

Agar kodda o'zgaruvchini oldidan increment/decrement oldin kelsa birinchi bo'lib incremant/decrement hisoblanib keyin boshqa buyruqlar bajariladi:

```cpp
#include <iostream>
#include <iomanip>

using namespace std;
int main() {
  int n = 5;

  cout << ++n << endl;
  cout << n;

  return 0;
}
```

```
6
6
```
Lekin increment/decrement o'zgarucvhidan keyin kelsa avval boshqa buyruqlar bajarilib keyin increment/decrement amallari bajariladi:

```cpp
#include <iostream>
#include <iomanip>

using namespace std;
int main() {
  int n = 5;

  cout << n++ << endl;
  cout << n;

  return 0;
}
```

```
5
6
```
C++ da shart operatori(if, else)
Tags: cpp, beginners, tutorial, if
Published: 2022-09-29 16:16:02

**If statement** Shart operatori shartlar boshqarilishini shartning _true_ yoki _false_ ligiga qarab qaysi tartibda amalga oshirilishini ta'minlaydi.

_Masala 1:_
#### Agar **a** sonini 2 ga bo'lganda qoldiq 0 ga teng bo'lsa, bu son juft, aks xolda toq:

```cpp
#include <iostream>

using namespace std;

int main(){
  int a;
  cin >> a;

  if(a % 2 == 0){
    cout << "juft"
  }

  else{
    cout << "toq"
  }

  return 0;
}
```

```cpp
12
juft
```
Bu codeda agar **if** ni ichidagi shart true bo'lsa **juft**,
aks xolda ya'ni false bo'lsa **toq** degan xabarni consolega chiqaradi.

Agar tekshirilayotgan shart nisbatan sodda bo'lsa, shart amalini **? :** ko'rinishida ishlatishimiz mumkun.
_Masala 2:_

#### 2 ta son kiritilganda kattasini topuvchi programma tuzilsin:

```cpp
#include <iostream>

using namespace std;

int main(){
  int a, b, max;
  cin >> a >> b;
  
  max = (a > b) ? a : b;
  cout << "Katta son : " << max;

  return 0;
```

```cpp
12
11

Katta son : 12
```
Bu code ham huddi **if** kabi vazifa bajarildi.2 son kiritildi va **a** katta bo'lsa **b** dan **? - agar** chiqar **a** ni **: - aks xolda** **a** kichkina bo'lsa **b** dan **b** ni chiqar deyildi va sonlarning kattasi `max` nomli uzgaruvchiga yuklandi.
Pokéchu Discord Bot
Tags: javascript, programming, github
Published: 2022-09-29 16:14:26

**Introduction**

I want to introduce you to [Pokéchu](https://github.com/DevMike123/pokechu), a Pokemon Discord Bot made using aoi.js wrapper.

It allows users to catch Pokemon, search for Pokemon and many more and is currently used by 2.5 million users.

**GitHub**

Link: https://github.com/DevMike123/pokechu

- Feel free to contribute the project and do not forget to give a star.

Thank You:)
C++ da Switch case 'Tanlash operatori'
Tags: cpp, beginners, tutorial, switch
Published: 2022-09-29 16:13:56

**Switch case** asosan bir nechta qiymatdan, o'zgaruvchiga mos qiymatni tanlashda va qiymatga mos ravishda boshqarishni amalga oshirishda ishlatilinadi:
**Switch case** operatorini sintaksisi quyidagi tartibda yoziladi:
**Masala 1:**

#### Kiritgan sonimizga mos ravishda hafta kunini chiqaruvchi programma tuzilsin.

```cpp
#include <iostream>

using namespace std;

int main() {
  int n;
  cin >> n;

  switch(n){
    case 1: cout << "Dushanba"; break;
    case 2: cout << "Seshanba"; break;
    case 3: cout << "Chorshanba"; break;
    case 4: cout << "Payshanba"; break;
    case 5: cout << "Juma"; break;
    case 6: cout << "Shanba"; break;
    case 7: cout << "Yakshanba"; break;
    default: cout << "Bunday hafta kuni yuq";
  }
  return 0;
}
```

```cpp
1
Dushanba
```
Biz kiritgan son(**n**)  **case** dagi qiymatga (**1**) tengligi uchun **case 1:** da berilgan ma'lumotni consolega chiqardi.
IOS Apple ipa re-signature tool for internal use (support Windows and Macos)
Published: 2022-09-29 15:59:05

IOS Apple ipa re-signature tool for internal use (support Windows and Macos)
This tool is completely free and easy to use.
This re-signature tool supports running on windows and Macos. To use this tool, only p12 files and provision files are required, no XCODE development environment is required, which is convenient for programmers to conduct internal testing. The tool supports the modification of App Name and Bundle ID at the same time. This tool uses The latest signature code is installed, and the signed ipa file can be installed in the latest ios system. It is a very useful ipa re-signature tool.

Re-signature tool download address 1

https://wwm.lanzouv.com/b03je0byh

Re-signature tool download address 2

https://www.mediafire.com/folder/vch24w6vnqyxw/Download


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nerd3n1gbpr2pb4op6rh.png)
De código a diseño♻️
Tags: spanish, design, figma
Published: 2022-09-29 15:55:27

Portada de <a href="https://unsplash.com/@desalaberry?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Julien de Salaberry</a> en <a href="https://unsplash.com/es/s/fotos/cecycled-material?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>

La reciente publicación de la version 1.0 del plugin para Figma _story.to.design_ por parte de divRIOTS viene a apoyar su visión sobre cómo deberíamos documentar la UI en nuestros proyectos.

Contrariamente al proceso habitual que todos ponemos en práctica — diseño de producto a partir de una guía de estilos en formato visual, después implementación a partir de estas especificaciones— en divRIOTS creen que el equipo de diseño no debería desperdiciar su tiempo en mantener una biblioteca de componentes de UI para seguir al día con la biblioteca de código implementada. Para ello, este plugin es capaz de extraer los componentes de un Storybook publicado, y generar a partir de él los assets gráficos de Figma. De esta forma entiendo que el diseñador de producto puede usar estos elementos de Figma para las próximas iteraciones, con total seguridad de que parte de la versión de producción. 

Dejando a un lado el precio del plugin y sus capacidades —o si cumple lo que promete— hay que reconocer que el nuevo paradigma propuesto en el que el _single source of truth_ pasa a ser código que vive en un repositorio junto al resto del proyecto vendría a eliminar muchos de los puntos de fricción entre el equipo de producto y el de desarrollo.

Siguiendo este paradigma pero desde el agnosticismo y con otro enfoque, specifyapp ha creado una plataforma para guardar los _design tokens_ de nuestro proyecto y sincronizarlos usando una API. 

La madurez de ambos productos respalda este nuevo enfoque que será tendencia en los siguientes años con la llegada de más herramientas y el refinamiento de metodologías para que podamos llevarlo a la práctica.

https://story.to.design/
https://specifyapp.com/
[Sligo] Programming Workshop for Women
Tags: diveresityintech, womenintech
Published: 2022-09-29 15:52:38

![excited](https://media.giphy.com/media/l3V0dy1zzyjbYTQQM/giphy.gif)

Coding Grace are delighted to partner with [Overstock Ireland](https://twitter.com/ostkireland), and we are holding a one-day in person programming workshop for women that are interested in learning how to code.

> We believe that Women can make a huge impact on the I.T. industry if given the opportunity and skills!
Aimed at women that are:
> - New to programming
> - Returning to work
> - From unrelated disciplines but thinking of a career change
> - Currently working in tech industry but new to programming
>
> Expert coaches will teach you how to create a website using Python, Django, HTML & CSS.
> The workshop will be based on the Django Girls workshops.
> The day will be about learning, positivity and fun!

![join us](https://media.giphy.com/media/LnEPkxpUit0rNVX2Sd/giphy.gif)

### 🎟 REGISTER VIA EVENTBRITE
{% embed https://djangoworkshopsligo.eventbrite.ie %}

## FAQ
#### Q. How much does it cost?
€10.00

#### Q. Do I need to have coded before? 
Nope! This workshop is for beginners. If you have a little knowledge, come along, but this is very much catered for those new to programming and interested in seeing what it is all about.

#### Q. What do I need to bring? 
Your laptop - we expect you to bring your own laptop. This gives you a great opportunity to bring home what you work on and continue coding.

#### Q. What do I need installed on my laptop before the event? 
It will be useful to have Django installed in advance of the day. We will be emailing out information to registered attendees. And we will be hosting a time online before the event so as we can help anyone who needs it, get set up (this is optional).

#### Q. Is this workshop for women only? 
All genders can apply. We encourage a diverse community of programmers. This event is for 18 years + attendees.

#### Q. Where is this workshop taking place? 
In the Overstock Ireland Office. The address is: Westgate, Finisklin Business Park, Sligo, F91 HF66

#### Q. Is there food provided? 
Yes, there will be coffee, treats and lunch available for all attendees.

#### Q. I have some questions about this event. Who can I contact? 
aocallaghan@overstock.com

#### Code of Conduct
ℹ️ There is a Code of Conduct for this event, you can find it here at: https://codinggrace.com/codeofconduct
📹 Viktoria tried to flash 25 STM32F0 boards, all in once with the Luos bootloader.
Tags: opensource, microservices, stm32, luos
Published: 2022-09-29 15:51:29

📹  Viktoria tried to flash 25 STM32F0 boards, all in once with the Luos bootloader.

https://youtube.com/shorts/NrDbMe79TNA

It took less than 30 seconds for all 25! 

In the video, you can see that first Viktoria (Vik1501 on Luos Discord) flash a led application to all the boards, that blinks each 0.5 seconds and then a second one that blinks each 0.2 seconds.

Feel free to discuss it by commenting on this post or by joining our Discord community!
Looking for Devs to launch their projects on our Blockchain
Tags: blockchain, crypto, defi, startup
Published: 2022-09-29 15:45:35

Hi.
We launched our Layer1 blockchain and we are looking for new projects to deploy their projects on our amazing blockchain.

We've soon been releasing our DEX with Limit Order.

SwapDEX is Solidity-compatible. All of your favorite tools like Remix, Truffle, and Harthat work out of the box. But why stop at Solidity? SwapDEX also supports INK! a Rust-based embedded domain specific language (eDSL) for writing WebAssembly.
PyLadies Dublin x Microsoft Ireland Sep Meetup
Tags: pyladies
Published: 2022-09-29 15:30:26

🙌 Thank you for your interest and to those who attended our PyLadies Dublin event at Microsoft Ireland on Monday evening.

**⚠️ Note: There's no recording of this event. We can ask the speakers to come back and do their talks again remotely. 😊**

* Event details: https://www.meetup.com/pyladiesdublin/events/287637521
* Announcements, slides and Notebook: 
  {% embed https://github.com/pyladiesdublin/sep-talks-2022 %}

![congrats](https://media.giphy.com/media/3o6fIUZTTDl0IDjbZS/giphy.gif)

👏 A huge thanks to both our speakers Andressa Valadares and Chiara Cotroneo.

🥰 To Mick for helping me setup and tidy away, and always being there!

🌈 Thanks to [Microsoft Ireland](https://www.microsoft.com/en-ie/aboutireland) (and Ben), [PSF](https://www.python.org/psf/), [PyLadies](https://pyladies.com), [Coding Grace](https://codinggrace.com) as well as [Luciano Ramalho](https://twitter.com/ramalhoorg) (I forgot it was a signed book!) and [O'Reilly](https://www.oreilly.com/) for the books.

## 📢 Announcements
I didn’t mention this at the meetup, but for anyone using Python, the Python Software Foundation, the Packaging Working Group and Python Packaging Authority would like to your help on feedback about Python Packaging via their survey.

You can find help them out at 

* https://www.surveymonkey.co.uk/r/M5XKQCT

### 🎤 Pyjamas Conference CFP and Looking for reviewers
A free online Python conference that you can attend (and speak) in your jammies!

* CFP Deadline - Oct 2
* Conference Dates - Saturday, November 26th - Sunday, November 27th 2022
* Website: https://pyjamas.live

## 🗓 Upcoming Events
### PyCon Ireland 2022
* Conference Dates: Nov 12 - 13
* python.ie/pycon-2022
 
ℹ️ To find more Irish and Northern Irish tech and diversity in tech events, check out diversityintech.fyi.

💡 If you have any events, opportunities, you can email me or submit a PR via https://github.com/whykay/diversity-in-tech-ireland.

---

## 🗓 Next PyLadies Dublin
It will be in-person (again)! 🙌  If you are interested in speaking in our October meetup, send your talk details to https://share-eu1.hsforms.com/1JaDd_XRCQFKb3cp0akbz8Af1bg5

* When: Tuesday, October 18, 2022 at 18:30
* Where: Honeywell, North Wall Quay, Dublin 1
* Event Details: https://www.meetup.com/pyladiesdublin/events/288753446/

### Next Next PyLadies Dublin
Had a chat with Samira (past PyLadies Dublin speaker and attended on Monday) as they reached out to collab with Women in Tech Galway in November. Tentative date is Tue Nov 22, but this is subject to change.

Keep an eye out on meetup.com as we will announce the event details when things are confirmed.

---

🤔 If you have any questions at all, getting involved or want tosupport our activities, drop us an email at dublin@pyladies.com.

See you in-person next month!
plopchain
Tags: metamask, ethereum, blockchain, subdotnet
Published: 2022-09-29 15:25:36

---
title: plopchain
published: true
description: minimum metamask json-rpc api server
tags: 'metamask,ethereum,blockchain,subdotnet'
cover_image: 'https://raw.githubusercontent.com/boulix3/devblog/main/posts/assets/plop.jpg'
id: 1206749
date: '2022-09-29T15:25:36Z'
---

# Metamask compatible json-rpc server

This project is a proof of concept - It implements the minimum required ethereum rpc apis to be able to accept simple metamask transactions (transfert only).

This will be included in sub.net library.

## Prerequisites : 
- [dotnet 7 sdk](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) to build the project

- Metamask extension depending on your browser :
    - [chrome web store](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn)
    - [firefox addons](https://addons.mozilla.org/fr/firefox/addon/ether-metamask/)

Clone the subdotnet/metamask-mini-api repository
```bash
git clone https://github.com/subdotnet/metamask-mini-api.git
```

## Run the demo : 

1) The simple blockchain has 2 prefunded wallets. You can import these private keys in metamask : 
- 616b28bfaa49973faf243ec3296a01675c742533f06c325c78f3d63ceef67963  
    - public key : 0x145272D2e9828aE2A25913c0643ff0cb486b<i>BAD1</i>
- ff067934635e368095f47bfc72942087e07b097d0c541b8f4602dcd255de50fd
    - public key : 0x169E72fa2CC6Ec61402dc3C5D3c16ACc4d83<i>BAD2</i>

The public keys end with "_BADx_".

_Install metamask and import prefunded dev addresses :_
![configure metamask wallet](https://raw.githubusercontent.com/boulix3/devblog/main/posts/assets/metamask-walletconfig.gif)

2) Run the project
Inside the cloned repository, simply execute `dotnet run` and you should have this output in the console : `json-rpc api listening on http://localhost:5035`

3) Configure _localPLOP_ network in metamask
Open metamasks settings and go to the network tab.
Add new network with the folowing values :
- name : localPLOP
- RPC Url : http://localhost:5035/
- Chain id : 12345
- Currency symbol : PLOP

You should have 42 PLOP in your _BAD1_ wallet and 1337 PLOP in your _BAD2_.

_Configure custom network in metamask and transfer funds :_
![configure metamask wallet](https://raw.githubusercontent.com/boulix3/devblog/main/posts/assets/metamask-networkconfig.gif)
React Re-render Best Practice
Tags: react
Published: 2022-09-29 15:11:17

In this post i will discuss how if we split the components can affect the performance of our react app.

first, the code will be two components :


This is first component
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j76s9zifhdvfh2u0lo0u.png)



This is second component that we imported it in the component above
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ar9e523677eyiog981s8.png)


Let's check console :

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

now we see every time we click on the button, the state changed and then re-render the component then `<Child />` will be rendered every time we click on button !!!!!!!!, we don't need that to happen because the `<Child />` don't have any code that is relevant to main component, in other words don't have any relation to the color state, so we don't need to re-render it again because we clicked on the button 


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






## Solution of This problem : 


first we need to make new file contain these two components like this below


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


and these two components now : 

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


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

now let's see the console : 


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

we can see that we can click the button and there is no more un-necessary render and that is the required.

That is my first post in dev.to and in the future i want to share more and more about react in this website, so leave your feedback about the post to make the next posts more organized, more useful.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ous1fvhrmtj41z48pfmy.gif)
CUSTOM POWERSHELL
Tags: powershell, tutorial, promt, shel
Published: 2022-09-29 15:09:39

## Neccessary tools
1. WSL - Window terminal (from Microsoft store)
2. Powershell (from Microsoft store)
3. Scoop installer - check this

## Install scoop
Make sure PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later) are installed. Then run:

> iwr -useb get.scoop.sh | iex
Dear Console,…
Tags: console, browser, developertips
Published: 2022-09-29 15:00:11

---
title: Dear Console,…
published: true
description: A collection of scripts to use in the browser console to change web sites
tags: console,browser,developertips
canonical_url: https://christianheilmann.com/2022/09/29/dear-console/
# Use a ratio of 100:42 for best results.
---
The [browser developer tools Console](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/console/) is so much more than a place to log your messages. It is a way for you to programatically access the currently shown document and window, read out values and change them. On top of that, it has [a powerful API of helper methods](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/console/api) to make that easier than with vanilla JavaScript. 

Over the years, I wrote dozens of helper scripts that I use in the Console or as Snippets in the browser to make my day to day work easier. And lately I started tweeting about them using a "Dear Console,…" moniker. People seemed to like that so I started to collect these links on a [Dear Console,… web site](https://codepo8.github.io/dearconsole/). 

[![The Dear console web site](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6yc7ppozupxjhnk7h8f.png)](https://codepo8.github.io/dearconsole/)

On this site you can: 

* see all the scripts with explanations what they do 
* either click each of them to see the code, or copy them directly using the copy icon
* paste them into the Console on web sites you want to query or change and hit enter

Here's what that looks like in action:

[![screen recording of how to interact with the page](https://christianheilmann.com/wp-content/uploads/2022/09/dearconsole.gif)](https://codepo8.github.io/dearconsole/)

You can also filter the scripts by tag and you can use them in your own [snippets](https://learn.microsoft.com/microsoft-edge/devtools-guide-chromium/javascript/snippets) .

The site is [hosted on GitHub](https://github.com/codepo8/dearconsole) , and I welcome any issues and pull requests there.
CV card
Tags: codepen
Published: 2022-09-29 14:49:13

<p>This is a very simple CV card with some basic jQuery and animations from css3. I used some of the animations from animate.css and tweak them a bit plus I featured the profile of one of the greatest actors in the world.  </p>

{% codepen https://codepen.io/harunpehlivan/pen/RwwgxxZ %}