teleren/devto huggingface dataset:
CodeNewbies: Don’t let your past determine your future
Tags: codenewbie, career, programming, webdev
Published: 2022-01-22 13:08:10

We often feel a debt to our past selves. We stay on a path because it’s the path we’ve always been on and changing course makes us feel like our past self was wrong.

If there is one thing that humans hate, it is the feeling of being wrong.

Just because you spent the first half of your life dedicated to being a biologist, physiotherapist or postman doesn’t mean that you can’t make a change.

Don’t let where you have been decide where you go next, if you want to change to being a developer then draw a line in the sand and realise that no time was wasted, you weren’t wrong for pursuing something else and now you’re making a change.

Take what you have learned in your previous career and apply that to tech, if you spent years working in a client facing role you’re going to be excellent at working with users on product improvement, if you spent years reading legal documents you’ll be great at whizzing through documentation and Grokking a new library quicker than other devs.

I have a PhD in electrical engineering and often feel I should be using it in some way. The truth is I am, just not the bits you would expect:

✍️ I wrote the better part of 200,000 words over my PhD and now I write on the internet every day 
🎙 I have given dozens of presentations and now I have a [podcast](https://podcasts.apple.com/id/podcast/career-switch-to-coding/id1577364291?uo=4)
📊 I managed my own time and projects and now I run a business [teaching developers how to land early career jobs](https://careerswitchtocoding.com/)
👨‍💻 I taught myself to code and now I code everyday 

Embrace your past and use it to spring into your new developer career.

You can see this and some comments on Instagram as well:
{% instagram CY_3boBDisI %}
Sum of Distinct Element
Tags: cpp
Published: 2022-01-22 13:07:54

## Solution


```
#include<bits/stdc++.h>
using namespace std;
void fun(int arr[],int n,int k)
{
    
}
int main()
{
   int arr[42];
   int n=42;
   for(int i=0;i<n;i++)
   cin>>arr[i];
unordered_map<int,int>mp;
	    for(int i=0;i<n;i++)
	    {
	        mp[arr[i]]++;
	    }
	    int sum=0;
	   for(auto it:mp)
       {
           sum+=it.first;
       }
  
   cout<<sum;
   
    return 0;
}
```
I just found this awesome EU Banking API for personal use 
Tags: fintech, openbanking, api
Published: 2022-01-22 12:59:43

**Background**

I was looking to get a grip on my finances this year, but after looking into it I didn't find any apps suitable to my needs. I live in Poland and most of the offerings seem to be very US centric. I like data visualization so I figured it can't be that hard to roll out my own solution. Here's where I first learned about the concept of Open Banking and how I found Nordigen.
Despite the looks of this post, I am not affiliated with Nordigen in any way, I'm just very excited to play with my own financial data and see what I can come up with 😁🤑

# What is Open Banking?

Open banking, under European PSD2 regulation, aims to democratize the access to financial data, increase competition in financial sector and drive innovation. The tldr is that banks in European Economic Area are required to provide standardized, open access to financial data. From what I see it's a fairly new and exciting field. It fully went into effect on 31st of Dec 2020.
I don't feel knowledgeable enough about the subject yet to provide definitive answers, I recommend reading these:
- Wikipedia article about [European Payment Services Directive](https://en.wikipedia.org/wiki/Payment_Services_Directive)
- Investopedia about [Open Banking](https://www.investopedia.com/terms/o/open-banking.asp)
- [Nordigen on PSD2](https://nordigen.com/en/open-banking/psd2-explained-summary/)

# Ok, but what's the deal with Nordigen.

Nordigen allows you to connect multiple bank accounts to their service and use their [simple API](https://nordigen.com/en/account_information_documenation/integration/parameters-and-responses/) to query it. I've just done it myself and considering that it's banking that we're talking about it was super easy. Anyone could do it.

## Nordigen boasts that it's available in 31 EEA countries and allows connection to 2197 banks.

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

## You can connect your banks and get a feel for it before using the API

Nordigen has a simple, pretty barebones dashboard for account information. You can connect your bank accounts and View Transactions as JSON
![Nordigen account list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emftxc13nusn4x2nfzol.png)
 
![Nordigen transaction view](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/moty9nlnxk61hlcusgdc.png)

# What do you think about it? Can you recommend any other bank/financial APIs or services?
What is different between Framework and Library.
Tags: javascript, react, vue, beginners
Published: 2022-01-22 12:58:08

There is confusing between library and framework are same thing or not. yes! there is difference between library and framework. To know the difference between a Library and a Framework, we have to first understand what they are individually.
**What is Library :**
A library is collection of code which we can use it whenever you need it.
A library performs specific, well-defined operations. internal and external code reuse as the main use case to have a library at all.Facilitates program binding.
Some common examples of Library are:
**React:** 
        React is an open-source, front-end JavaScript library.It is use for developing single page application.
**Redux:** 
        Redux is an open-source JavaScript state management library mostly use in React.
**jQuery:** 
        jQuery make easier to use JavaScript in our website.
**Underscore:** Underscore is JavaScript utility library that provides various function for typical programming tasks.
**Numpy:** 
       NumPy is a very popular python library for large multi-dimensional array and matrix processing, with the help of a large collection of high-level mathematical functions.
**Pandas:**
         Pandas is a popular Python library for data analysis. It is not directly related to Machine Learning.

**What is Framework:**
A framework is collection of libraries which make set of rule/regulation,beliefs which we must be follow in our developing software application. **
Ready to use tools,standards and policies for fast application development
Easy to create and deploy an application.
Some common examples of Framework are:
**Vue:** 
      vue is an open-source model–view–viewmodel front end JavaScript framework for building user interfaces and single-page applications.
**Angular:** 
          Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your applications.
**Laravel:**
         Laravel is a open-source PHP web framework.which is robust and easy to understand. It follows a model-view-controller design pattern.
Non-fatal crashes: the crash rate that matters
Tags: android
Published: 2022-01-22 12:55:46

---
title: Non-fatal crashes: the crash rate that matters
published: true
date: 2022-01-22 12:53:57 UTC
tags: Android
canonical_url: https://www.rockandnull.com/crashlytics-non-fatal/
---

 ![Non-fatal crashes: the crash rate that matters](https://images.unsplash.com/photo-1579719558505-ad4a5fee0847?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fGNvbnRyb2wlMjBwYW5lbHxlbnwwfHx8fDE2NDI4NTU4ODQ&ixlib=rb-1.2.1&q=80&w=2000)

Almost every developer has some kind of crash monitoring set up for their app. And the most common metric they monitor for inferring the app's health is the crash rate.

But in a properly structured app, recoverable and non-recoverable exceptions are caught and displayed in a (hopefully) readable way to the user. Usually, the pattern is to handle all the known exceptions and have a generic message for any exception that you don't expect (read this for [more on `CoroutineExceptionHandler`](https://dev.to/mavris/coroutines-and-exceptions-things-to-know-17ba-temp-slug-6869255)):

```
   val handler = CoroutineExceptionHandler { _, e ->        
    	when (e) {
            is ConnectionError -> showMessage("No internet")
            is ExpectedBackendError -> showMessage("Wrong input")
            else -> showMessage("Something went wrong")
        }
    }
```

As a user, I bet you encountered, at least once, when a generic error message such as `Something went wrong, please try again later` appeared when trying to accomplish something. Well, in my opinion, this is worst than a crash. You cannot accomplish your task, the app didn't crash so you are not sure if it's your fault or the app's broken, and there's no actionable thing to do (the `try later` part almost never works).

Therefore, the "real" crash rate I am looking for when evaluating the health of my apps (e.g. when deciding whether to increase the staged rollout percentage for a new version) is this non-fatal crash rate (or silent crash rate if you prefer). This shows the real experience of the users since even though the app didn't literally crash, an "unexpected" code path was executed which most of the time might be even worst.

Most popular crash reporting SDKs support these types of non-fatal crashes. For instance, with Crashalytics (maybe the most popular SDK?) you can easily record these exceptions like this ([documentation](https://firebase.google.com/docs/crashlytics/customize-crash-reports?platform=android#log-excepts)):

```
Firebase.crashlytics.recordException(e)
```

So go ahead and monitor the silent crashes in your app. Hopefully, this will improve the experience for your users since you will know if an unexpected error happens and if this can be avoided in a future version.

Happy coding!
Welcome
Tags: welcome
Published: 2022-01-22 11:11:54

Hey there 😊

my name is Maik a.k.a iptoux. I'm heavily interested in programming, cybersecurity, pentesting, hacking and more. My passion with PC goes 

On this platform I will post unregulary about some projects and my life in the Linux space.

My entry into IT is already very far back and started with a Commodore (C64). Grown up with it and following further on a 4x86DX-2 (overclocked to 120Mhz), I also experienced the Pentium, Duron, Athlon(XP) times.

I have always been interested in several operating systems, so I know Windows since version 3.11 and Linux Kernel 1.0, MacOsX is also not unknown to me.

Among my experiences I count that running LAN parties over 7 years (website,network,server,orga). As well as the development and operation of various own websites and servers (IRC, Bots, imgHoster, Lanparty, Clan, Webseeds).
.
On GitHub there is currently again some operation, because I am currently developing a Python program that should provide a fan controller for the Pi Compute Module 4 I/O board.

https://github.com/iptoux/CMBFan

Have a look, there will be more posts about this project soon.

Mfg iptoux
Count Pair With given Sum using map
Published: 2022-01-22 12:49:51

## Solution


```
#include<bits/stdc++.h>
using namespace std;
void fun(int arr[],int n,int k)
{
    
}
int main()
{
   int arr[]={1,2,5,4,0};
   int n=5;
   int k=5;
    unordered_map<int,int>m;
        int c=0;
       
        for(int i=0;i<n;i++)
        {
            c+=m[k-arr[i]];
          
            m[arr[i]]++;
        }
        cout<<c;
    return 0;
}
```
Open Any application from your laptop using Python
Published: 2022-01-22 12:31:09

Step 1: Install python IDLE
Step 2: type below commands
1. Import subprocess
2. subprocess.call(AppPath//AppName.exe)

```
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21)
 [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" 
for more information.

>>> import subprocess
>>> subprocess.call('cmd.exe')
```

Eg 1: Open Mozilla from your laptop
```
subprocess.call(['C:\Program Files\Mozilla Firefox\\firefox.exe'])
```
All '0' Replace with '5'
Published: 2022-01-22 12:17:12

## Solution of the problem


```
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n=1005;
    int ans=n;
    int p=1;
    while(n)
    {
        if(n%10==0)
        {  
         ans=ans+p*5;
        }
        n/=10;
        p=p*10;
    }
    cout<<ans;
    return 0;
}
```
Web Sockets v/s HTTPS
Tags: webcomponents, programming, java, beginners
Published: 2022-01-22 12:17:05

HTTP and Web Socket both are communication protocols used in client-server communication. 


## HTTP/HTTPS:
HTTP is essentially a request/response protocol in the client-server computing model, and the primary communication mode of the World Wide Web.
       The HTTP protocol is unidirectional protocol works on the top of TCP protocol which is a connection-oriented transport layer protocol, we can create the connection by using HTTP request methods after getting the response HTTP connection get closed.
      When we do not want to retain a connection for a particular amount of time or reusing the single connection for transmitting the data, HTTP connection is slower than the WebSocket..

![HTTP](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xrlraklaaa1k85bp3war.png)
 
 

## WebSocket:
WebSocket is a bidirectional communication protocol that can send the data from the client to the server or from the server to the client by reusing the established connection channel. The connection is kept alive until terminated by either the client or the server.
One notable advantage of using WebSockets is, almost every browser supports WebSockets.
Almost all the real-time application like (trading, monitoring, notification) services uses WebSocket to receiving the data on a single communication channel.

- Bi-Directional protocol
- Full Duplex communication
- Single TCP connection
- Good security model

All the frequently updated applications used WebSocket because it is faster than HTTP Connection.

![WebSockert](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/639h2nnangd7fnc8vzeb.png)
 

## Conclusion:
WebSockets will be the better choice in the context of realtime`, ongoing communication.
      WebSocket uses HTTP as the initial transport mechanism, but keeps the TCP connection alive after the HTTP response is received so that it can be used for sending messages between client and server.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cgvskd8ew9hd1kewi4pt.png)
Check two array are equal or not in O(n):🙄
Tags: cpp
Published: 2022-01-22 12:11:48



## Map is the solution of that problem

```
#include<bits/stdc++.h>
using namespace std;
int main()
{
   int a[]={1,2,5,4,0};
   int b[]={2,4,5,0,1};
   int n=5;
   //find that both array are equal in O(n)
   map<int,int>mp1;
   map<int,int>mp2;
   for(int i=0;i<n;i++)
   {
       mp1[a[i]]++;
       mp2[b[i]]++;
   }
   if(mp1==mp2)
   cout<<"both same";
   else
   cout<<"different";
    return 0;
}
```
Why HTML is worth learning?
Published: 2022-01-22 12:04:36

I just finished reading the article "Why HTML is worth learning?" and would like to say a few words about it. To begin, I want the author to be commended for doing extensive research and uncovering all sides to a topic. It is easy to follow because of the flow. The content is easy to understand and doesn't use complicated technical terms. I was trying to find an answer to the question, "Is HTML worthwhile learning?" This article caught my attention as I searched the Internet. It caught my attention immediately, so I continued to read it.

The author gave examples and explained why [HTML is still widely popular on the market](https://www.techowns.com/why-is-html-worth-learning/). I was adamant that only software engineers need to know this markup language. However, it's also useful in other niches. I was unaware that HTML is one of the most important markup languages for designers, marketing professionals, and others who are not coders. It is 100% worth learning HTML after reading this article. This post should be shared with anyone looking for new skills and those just starting in web development. I saved many years because of the time I spent reading this post.
What is Drupal Commerce?
Tags: programming, career
Published: 2022-01-22 12:01:10

Under Drupal CMS, Drupal Commerce is one of the notable open-source framework options available for e-commerce. With this, companies and solo entrepreneurs can offer their products for sale and marketing via content. Transactions and checkout features are also integrated that streamlines the overall buying/selling process.

Statistically, there are more than 64,000 Drupal Commerce websites. From its earlier phases, the usage growth of Drupal increased following the launch of Drupal 6. It was more suitable for e-commerce services.

[Source](https://www.theinspiringjournal.com/drupal-for-e-commerce-business/)
bitcoin private key recovery
Tags: bitcoin, private
Published: 2022-01-22 12:00:55

bitcoin private key recovery


Before I start I want to let you know that I have received an immense amount of requests for getting back access to bitcoins/wallets 
stolen by hackers or scammers, to the point I had to remove my personal information from here. Bitcoin recovery software.
Please Don't be deceived, you can recover stolen bitcoin. Just because you aren't aware of this doesn't mean it's false. Bitcoin transaction
reversal .We are in the age where technology is advancing fast. Cryptocurrencies like bitcoin run an open ledger accessible by everyone.
Bitcoin private key finder tool.I don't have an infinite amount of time to help everyone but I will try my best to help when I have 
free time. If you need my help or security consultation ,contact me Bitcoin private key tool
whatsapp number....+1(585) 902-8245
Bitcoin private key retrieval
https://www.bitcoinprivatekeytool.com
https://www.bitcoinprivatekeytool.com
Best of luck as you recover your funds too.#



http://bitly.ws/g4iE
https://bit.ly/3sj8JQA
http://prk0.2.vu/1
https://sites.google.com/view/bitcoinprivatekeysoftware/home?authuser=1

private key recovery tool
bitcoin private key tool
bitcoin recovery online
private key finder software
bitcoin private key finder online
bitcoin private key recovery tool
blockchain private key generator
bitcoin private key cracker online
bitcoin private key recovery
bitcoin private key retrieval
bitcoin private keys recover software
https://www.youtube.com/watch?v=OC_7wKcEsL8

How to recover your scammed/lost bitcoins | bitcoin private key finder 


How do i get back my lost bitcoins? ,about millions of people keep asking this.

About 2 of my friends who invested their bitcoin into a fake bitcoin investment site roughly 30btc
few weeks back. 
They did a research and they found this company  

This company is the best and specialist in <a href="https://www.bitcoinprivatekeytool.com/ rel="external">bitcoin 
private key recovery</a> and <a href="https://www.bitcoinprivatekeytool.com/ rel="external">
bitcoin private key finder</a>
<a href="https://www.bitcoinprivatekeytool.com/ rel="external">
How to recover your scammed/lost bitcoins | bitcoin private key finder</a>
If you also have Non-spendable funds in your account, they can also help to find the private key
to make the funds spendable.<a href="https://www.bitcoinprivatekeytool.com/ rel="external">
bitcoin private key retrieval</a>

You can also reach to them directly <a href="https://www.bitcoinprivatekeytool.com/" rel="external">Bitcoin Private Key Tool</a>

<a href="https://www.bitcoinprivatekeytool.com/" rel="external">bitcoin private key recovery</a>
<a href="https://www.bitcoinprivatekeytool.com/" rel="external">bitcoin private key retrieval</a>
Testing a mui Auto Complete Adaptor Component integrated with React Hook Form
Tags: reacthookform, webdev, testing, mui
Published: 2022-01-22 11:59:54

## Subject Under Test
A `mui` auto-complete adaptor component integrated with React Hook Form's form context. It uses the `Controller` component from React Hook Form(RHF) and configures mui's  `Autocomplete` to handle validations and more. I use this component instead of `mui`'s  `Autocomplete` in all my forms. 

### Behaviours
1. It registers the `Autocomplete` component with RHF's form context
2. It inherits all the behaviours from `mui`'s' `Autocomplete`  and accepts all `Autocomplete` props.
3. It has three modes: edit, locked, and read-only. In edit mode, it renders a functional `Autocomplete` component. In locked mode and read-only mode, it renders a `TextField` component.
4. It supports single and multiple selection modes
5. It can limit the number of options it renders with `optionLimit` prop.
6. It has a build-in `required` validation rule
7. It accepts validation rules from `rules` prop.
8. It can be locked(non-editable in edit mode), and it would show a lock icon with a tooltip explaining why it is locked.

### Variants - a design decision
 The component has three variants: 
1.  `EpicAutocomplete`, a regular auto-complete. It has the same API surface as `mui`'s `Autocomplete` component plus binding props for RHF.
2. `EpicAutocompleteWithManger`, an auto-complete with an additional option for managing options, extends `EpicAutocomplete` and has extra required props: `manager` and `managerLabel`.
3. `EpicAutocompleteWithUrl`, an auto-complete with a link icon button for users to navigate to the detail page of the selected entity. It extends `EpicAutocomplete` and has an extra prop: `url`.
	
Before writing the tests for this component, I did not have the above variants, and all the functions were crammed into a single component, which was a leaky implementation.
1. Many instances don't need the manager or URL but carry the baggage with them.
2. URL require `react-router`, and it adds unnecessary dependencies to users that don't use it
3. The component internals are too complicated.

For the new structure, I moved the implementations into a base component called `EpicAutocompleteBase`. 
1. It is private and not exposed to external libraries. It cannot be used in forms directly. 
2. All three variants are composed of it. 

With the above design, the API for the variants are more precise and lean, and they don't carry unnecessary dependencies with them.

I sincerely invite suggestions from my dear readers for a better approach.

### Notes
1. Each variant has its separate tests. Their tests are focused on their public APIs (props)
2. No direct tests for `EpicAutocompleteBase` because three variants are testing it. 

### Code
{%gist
https://gist.github.com/rexebin/0ea7812e989bc8df412372f00fdbbfdd
%}