teleren/devto huggingface dataset:
Types of Blockchain
Tags: blockchain, crypto, web3, software
Published: 2022-04-08 05:25:17

**Hey all,**

I know all are doing good only, that's great!

Today I come up with a new article on **types of blockchain.**

Before that, I am assuming you have an idea about blockchain technology. If not please read my previous article about this.

**Awesome!**

**Why wait then? let's start :)**

So, as you know, a blockchain is a chain of data blocks stored in hundreds or thousands of computers or servers distributed over a wide geographical area. It is a complete ledger that maintains a copy of all the credit/debit(not in all cases) transactions of a digital asset. And, blockchain is based on decentralized technologies.

Got some idea?

Superb!

**Now, let's see how many types of blockchains are available.**


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

As you can see in the above image, there are 4 types of blockchain is available.

They are

1. Permissioned Blockchain
2. Private Blockchain
3. Federated/Consortium Blockchain
4. Public Blockchain

Let's see them one by one.

**1. Private Blockchain**

A _private blockchain_ is also called the permissioned blockchain. In this type, only the individuals involved in a contract will have the information of it, while the others will not be able to access it. It is also a faster and more cost-effective system. Only authorized nodes can read and write the transaction data into this blockchain. But, a private blockchain is less secure as compared to a public blockchain.

Example:- Linux foundation's Hperledger Fabric.

**2. Public Blockchain**

A _public blockchain_ is a permissionless blockchain. Anybody can access the network and read-write on participants without explicit authorization and permission.

Example:- Bitcoin, Litecoin, Ethereum, etc.

**3. Federated/Consortium Blockchain**

A _consortium or federated blockchain_ is a private, permissioned blockchain. It is opposed to the public blockchain, where entities can only become members of the network by prior approval or voting. In this type of blockchain, permissions are vested in a group of companies to individuals. Also, only consortium members can make, validate, and renew the transactions.

Example:- R3 Corda Blockchain

**A permissioned blockchain is the same as a private blockchain.**

I am now 100% sure, you have got some idea about the types of blockchain.

**That's Great!**

This is all for today, see you soon with a new interesting article. I hope you enjoy this reading.

Cheers!
How to pass Mulesoft 4 Certified Developer Level 1
Published: 2022-04-08 05:07:37

I had my online instructor based mulesoft 4 training in mulesoft website and Udemy. The instructor are very skilled in the topics that has been covered after my online traninning. I took the udemy beginner to expert training and mulesoft certification preparation online course. I practice the online practice exam in mulesoft website and udemy practice test. After that,
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2bomzl21ylv8l684qlyb.png) I took the exam already and passed the certification. Below are the links for the certification practice test. 

https://www.udemy.com/course/mulesoft-beginners-to-expert-mule-42/
Rails encrypted credentials with docker compose
Tags: rails, docker
Published: 2022-04-08 05:00:34

Ruby on Rails 5.2 removed the simple `secrets.yml` file and replaced it with `credentials.yml.enc`. This file is encrypted, so it is easy to use in version control. To decrypt this encrypted file there is `master.key`in config file which should not be included in version control.

## Edit credentials file

Locally installed rails app credentials can be edited with following command

```bash
EDITOR=nano rails credentials:edit
```

`EDITOR` tells which editor we want to use to edit credentials like some people love vim editor as well.

> Sometimes ui-based editors don’t open this way. As we have to wait for the editor to open.
```bash
EDITOR="mate --wait" rails credentials:edit
```

## Multiple environments

Rails 6 allowed multiple files for different rails environments. For example, without dependency of environment are saved in `config/credentials.yml.enc`. But variable which are different for development environment are saved in `config/credentials/development.yml.enc` and decrypted with key `config/credentials/development.key`.

So editing for development can be called by:
```bash
EDITOR=nano rails credentials:edit --environment development
```

For more info, visit: [https://blog.saeloun.com/2019/10/10/rails-6-adds-support-for-multi-environment-credentials.html](https://blog.saeloun.com/2019/10/10/rails-6-adds-support-for-multi-environment-credentials.html)

## Calling credentials edit in docker compose

When rails is not locally installed but inside a container, then to call a cli method inside a container is a bit different. I use the following command to update the credentials:  

```bash
docker-compose run --rm -e EDITOR=nano api rails credentials:edit
```

Here, `api` is the container name created with docker compose. Furthermore, `--rm` is being used because run creates a copy of the container, so it will remove the container volume after it is closed.

Happy Coding!
----
Benefits Of Veniselle Cream
Published: 2022-04-08 04:59:34

It is the best point since [Veniselle](https://ipsnews.net/business/2022/02/07/veniselle-update-2022-it-really-work-in-varicose-veins-or-a-cheap-scam-price-ingredients-and-results/). What's your specialty? I'm a clueless newbie. This column chock full of Veniselle Reviews information. What would you do if you had their example? Maybe you should try reading up on the topic of it. 

To rule that thing is to rule it. How do novices retrieve the finest [Veniselle Reviews](https://www.facebook.com/Super-Health-Solution-100426965962005) ways? We're going to be moving at high speed now. I want you to reach your full potential. There was a disconnect between their target and using that. It isn't an innovative approach. 

Click Here To Buy----  [https://ipsnews.net/business/2022/02/07/veniselle-update-2022-it-really-work-in-varicose-veins-or-a-cheap-scam-price-ingredients-and-results/](https://ipsnews.net/business/2022/02/07/veniselle-update-2022-it-really-work-in-varicose-veins-or-a-cheap-scam-price-ingredients-and-results/)
Visit Now----  [https://www.facebook.com/Super-Health-Solution-100426965962005](https://www.facebook.com/Super-Health-Solution-100426965962005)
View Now Youtube---- [https://www.youtube.com/watch?v=uOaZOdBWmY8](https://www.youtube.com/watch?v=uOaZOdBWmY8)
I've built a Mac app using low-code(Supabase)
Tags: ios, serverless, supabase, architecture
Published: 2022-04-08 04:59:29

I am an iOS developer and I've an idea how backend works, but to build basic apps creating a server based backend is time consuming and complicated, I was looking for leanest solutions, among them Supabase has more love from developer community. I gave a shot, tbh it was mind-blown. 

**How**?
- When you create a table, you get all CRUD endpoints for free which actually saves you an easy 4-8 hours of time.
- You can also run CRON job using Postgres (this has nothing to do with Supabase but they let you create CRON jobs from Supabase directly.)
- Supports third party logins
many more...

**How I built a Mac app using Supabase?**
I took a user problem from blockchain where users are paying hefty gas fee on a transaction. The gas fee is highly volatile that it changes every second, so I've decided to go for an alternate solution.

here is the website: https://ethgas.carrd.co/

here are few screenshots: https://photos.app.goo.gl/iD3My9Lm8vH9E7LF9

I've built a simple solution where the app asks the user "What is the gas fee that you are ready to pay for?" Based on the user's input the app will notify when the gas fee is low. 

For example: If user input 20 Gwei, then the backend checks every X mins to see if the fee is <=20 Gwei. While it looks so simple from the solution and UI pov, backend was little tricky to me as I've never worked before, but this is how I tackled it.
- Got access to blockchain API where it sends the gas fee information. 
- I stored this information on Supabase for X mins using CRON job. Initially I had no idea that Supabase allows you to write CRON jobs but glad it did.
- To manage the storage space on Supabase, I've written another CRON job to delete the rows for the last X days.

So on the backend side, all I did was create a table and cron jobs. It felt like writing nocode/lowcode on backend.

To build this entire app, it took me
- 1-2 days on Idea, design & frontend
- 1-2 days on backend.

Conclusion: Don't try to build from scratch unless you want to learn or your job demands. 

Srly, if you've not tried Supabase, give a shot. They are also planning to launch:
- Triggers
- Functions
many more..


(I am not affiliated to Supabase)
You can checkout my other blog post: https://dev.to/pradeepb28_/ive-built-an-iosmacosipados-app-using-low-code-within-3-days-158o
Solution Convert List of String to Pair of String using Python. Example ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']
Tags: python, competetive, programming, solution
Published: 2022-04-08 04:26:18

Hi folks programmers,
Today we are going to solve a problem of how to convert a list of string to pair of strings


**Input**
['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']

**Expected Output**
A
AB, AC, AD, AE, AF, AG, AH, AI 
ABC, ABD, ABE, ABF, ABG, ABH, ABI 
ABCD, ABCE, ABCF, ABCG, ABCH, ABCI 
ABCDE, ABCDF, ABCDG, ABCDH, ABCDI 
ABCDEF, ABCDEG, ABCDEH, ABCDEI 
ABCDEFG, ABCDEFH, ABCDEFI 
ABCDEFGH, ABCDEFGI 
ABCDEFGHI 



So here now we will start our coding in python programming.
We have to use nested for loops because we need to iterate over a single list.

For now I am not going to measure any kind of run time or space complexities. So let's get started

```
mylst = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']

current_val = ""
count = 0

for i in range(len(mylst)):
  if i == 0:
    print(mylst[i])
  current_val = current_val + mylst[count]
  count += 1
  for j in mylst[i+1:]:
    if current_val == j:
      print(j)
    else:
      if mylst.index(j) == len(mylst) - 1:
        print(current_val + j, end=' ')
      else:
        print(current_val + j, end=', ')
  print('')
```

I hope you would love this solution of the program and will surely give me a like.

Thanks for your valuable time.

If you really liked our content you can buy a cup of coffee.
[Buy me Coffee](https://www.buymeacoffee.com/saim783)


[My other Blog Website over Technology](https://www.saimtechnews.in)

[My YouTube Vlog Channel](https://www.youtube.com/c/abdullavlogs)
I have created a Email Builder in React.js that needs to convert as plugin or library like stripo or unlayer
Tags: javascript, react, plugin, webpack
Published: 2022-04-08 04:26:15

The web app is developed puerly in react itself after that i need to configure and convert it as plugin or library like stripo(https://plugins.stripo.email/static/latest/stripo.js , https://stripo.email/plugin/) or unlayer(https://editor.unlayer.com/embed.js , https://docs.unlayer.com/docs)

If you guys have any idea on that please share me the refernces how to configure and convert it as plugin API or library to integrate it with any project or application
Paracetamol.js💊| #96: Explica este código JavaScript
Tags: javascript, beginners, spanish, webdev
Published: 2022-04-08 04:02:34

## **<center>Explica este código JavaScript</center>**

```js
const sumar = (a,b) => {
  if(!a || !b){
    throw new Error("faltan parametros");
  }
  return a + b;
}

console.log(sumar(2,2));
console.log(sumar(2,true));
console.log(sumar(2,0));
```

A. `4`, `"2true"`, `2`
B. `4`, `3`, `Error: falta de parametros`
C. `"22"`, `"3true"`, `"20"`
D. `4`, `3`, `2`

{% details ➡ Respuesta ⬅%} 

B. `4`, `3`, `Error: falta de parametros`

Primer caso:
Simple suma de números enteros.

Segundo caso:
Por inferencia de tipos, el parámetro `true` se convierte en 1, por ello el resultado es 3.

Tercer caso:
En el `if` usamos el operador de negación para la validación de parámetros, esto hace que los valores falsy también se vean afectados y nos arroje la excepción. Para arreglar esto podríamos hacer lo siguiente:

```js
const sumar = (a,b) => {
  if(a === undefined || b === undefined){
    throw new Error("faltan parametros");
  }
  return a + b;
}
```
De esa manera no solo cuando alguno de los parámtros no este definido en la llamada de la función se lanza la excepción.

{% enddetails %}
`final` keyword with PHP 🚀
Tags: php, oop, programming, practice
Published: 2022-04-08 03:52:45

{% youtube OolQSbIdjBU %}


Let's learn about the PHP `final` keyword in object-oriented PHP 🐘

🤖 GitHub: https://github.com/pH-7   


---
👉 If you wish to learn more about PHP and build a real-world PHP Web application, I've published a Udemy course teaching you, set-by-step: https://www.udemy.com/course/create-real-world-php-webapp-from-scratch/
Efficiently debug API use Fast Request in IntelliJ IDEA
Tags: java, api, postman, idea
Published: 2022-04-08 03:41:26

[Restful Fast Request](https://plugins.jetbrains.com/plugin/16988-restful-fast-request) is the IDEA version of Postman, it is a powerful restful api toolkit plugin which help you quickly generate url and params by exist method. Restful Fast Request = API debug tool + API manager tool + API search tool. It has a beautiful interface to compose requests, inspect server responses, store your api request and export api request.Plugin help you debug request just in IntelliJ IDEA frame.

## Features
* Postman-like user interface
* Generate url and parameters in one click
* SearchEveryWhere support
* APIs export to Postman
* Send request to debug API
* Send request and download
* Domain customization and switching
* Custom parameter parse
* String generation strategy
* Save api
* Management API
* One click navigate or run history save api to method
* Api to curl
* Built-in Json parameter editor
* Automatically associate APIs to module groups
* API navigate tree
* Headers group
* Swagger Parameter parsing support
* Automatically generate descriptions for API fields
* One click to generate API documentation
* Single class API list preview

* Api request

![Api request](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6joxgporlz6ca1fngctt.gif)

* SearchEveryWhere

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


* Api management

![Api management](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3gvawou13b1kv91puc2y.png)

* Api navigate

![Api navigate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ipwphw92407y7l8ydpis.png)


* Api to postman

![Api to postman](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/letr2t42x6jqealbz6qu.gif)

* Api preview

![api preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yinlu28y7oyjhzs4h3sn.gif)

More features please see [https://dromara.org/fast-request/en/guide/feature.html](https://dromara.org/fast-request/en/guide/feature.html)
Mentoring Java to entry level java developer
Published: 2022-04-08 03:35:02

I started teaching java standard edition and spring boot 2 crud webservice to some of my officemates. I used Murach Java Standard Edition Book 1.8 as a training reference and I found it very effective they learned alot from the books and materials that I have been shared to them. I love to expressed my knowledge to others since, In the areas of technology, spiritual and philosophy are my interest. Now I started learning reactjs in watching it in youtube. In my spare time I continue learning in taking courses in udemy.
I created rattle's 🐍🐍🐍discord server
Tags: python, programming, productivity
Published: 2022-04-08 03:12:05

hello i created rattlefoundation's discord server there we discuss about rattle's new projects and form a team and work together
that's my aim if anybody interested join now.

join link-https://discord.gg/T6ckzC8RVP
Laravel whereBetween Query Example
Tags: laravel, laravel8, wherebetween, mysql
Published: 2022-04-08 03:02:40

In this artical I will show laravel whereBetween query example. As we know SQL provides many diffrent type of method or query to get filtered data from database. So, in this post we will learn laravel orWhereBetween query builder example.

Here we will see example of laravel wherebetween dates example,Here i have added laravel wherebetween with orwherebetween SQL query as well as Laravel query.

 
> Example of whereBetween() condition in laravel

``` 
$students = DB::table('Register')
           ->whereBetween('RollNo', [1, 50])
           ->get();
```

Now I will show you example of whereBetween() query in laravel 8 and how to write whereBetween() condition in laravel. So first we will see SQL query for better understanding.
 
> SQL Query Example
 
```
select * from `Register` where `rollno` between ? and ?
```
 
Get all records between two dates using wherebetween in laravel

```
<?php
  
namespace App\Http\Controllers;
  
use Illuminate\Http\Request;
use App\Register;
use Carbon\Carbon;
  
class RegisterController extends Controller
{
    public function index(Request $request)
    {
      $names = Register::whereBetween
               ('created_at',[$request->start_date,$request->$end_date])->get();
  
        dd($names);
    }
}
```
--- 

You might also like :

- **_[Read Also : Laravel where and orWhere Condition Example](https://techsolutionstuff.com/post/laravel-where-and-orwhere-condition-example)_**

- **_[Read Also : jQuery Image Magnifier on Mouse Hover](https://techsolutionstuff.com/post/jquery-image-magnifier-on-mouse-hover)_**

- **_[Read Also : How To Get Selected Checkbox List Value In Jquery](https://techsolutionstuff.com/post/how-to-get-selected-checkbox-list-value-in-jquery)_**
What is your AWS tagging strategy?
Tags: cloud, devops, aws
Published: 2022-04-08 02:51:18

If this concept is new, no worries, just head over and read [this](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).

I would also recommend that you spend some time thinking about how you want to approach this before just jumping in. It's not impossible to change course once you start down a path, but it is much easier to take some time and think through how best to go forward. If you really aren't sure, try and start with technical and business tags for example. A technical tag for example could be the environment, or an application ID. A business tag could be a project name, a product or type type, the actual names will be entered as values. 

Some of the benefits or more practical reasons for using tags include resource organization, cost allocation (P&L, projects customer, business unit/Team), automation and access control (IAM conditions), security or risk identification. 

As your environment(s) mature and grow, and become more complex it will become extremely helpful to have a solid, well thought out tagging plan. 

Remember, it doesn't need to be super complicated or complex from the start, for me this is one of the situation where something is better than nothing, and the sooner the better!

Both Dev and DevOps teams often struggle with tagging consistency, both in the frequency and the tagging content itself. The eventual state to help address this, may be using automation. A great option may be to consider using [yor](https://yor.io).

Yor is another open-source tool to automatically adds tags to infrastructure configurations. Yor currently supports Terraform, AWS CloudFormation, and server less.

By default, Yor will add a number of tags to each resource block, including the name of the git organization, the repository, and the file that contains the template that created the resource. Another really powerful feature from Yor is that it adds a unique identifier which allows for quick search in Github to locate the code for example.
Load Balancer - Setup One in two Minutes
Published: 2022-04-08 02:47:16

## DAY 26 - Load Balancer - Setup One in two Minutes - Day Twenty Six

[![Image tweet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jfjzxg64r7q0i8ra6b8t.png)![Image cover](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eufzzena1sh1tltom6lj.png)](https://twitter.com/intent/tweet?text=How%20to%20setup%20a%20loadbalancer%20in%20two%20mins%20in%20cloud%2C%20a%20blog%20by%20%40anvuindhs%0A%23devops%20%23tutorial%20%23cloud%20%23webdev%20%23beginners%0A%0Ahttps%3A%2F%2Fdev.to%2Faws-builders%2Fload-balancer-setup-one-in-two-minutes-1c21%20)


[100 days of Cloud on GitHub](https://github.com/anuvindhs/100daysofcloud) - [Read On iCTPro.co.nz](https://ictpro.co.nz) - [Read on Dev.to](https://dev.to/anuvindhs)

------
##  Setup Target Group

 **Create target Group**
- Go to AWS Console then to EC2 Dashboard
- Click on to Create target Group
- Choose a target type as Instance
- Name it as TargetGroup-tutorial
- Keep Protocol as HTTP-80
- Now select the instances that you want to add and click Include as Pending Below.
- Click Create Target Group.

## Create LoadBalancer
  - Select Application Load Balancer
  - Name It (LoadBalancer-tutorial)
  - Select Internet facing
  - Network Mapping - Select all availability Zones
  - Select your EC2 Security Group
  - Select Listener , HTTP-80-TargetGroup-tutorial
  - Click Create LoadBalancer

Wait for few mins AWS to deploy the loadbalancer, once its deployed you can point to LB using Route53

----------

**✅Connect with me on [Twitter](https://twitter.com/intent/follow?ref_src=anuvindhs&screen_name=anuvindhs)
 🤝🏽Connect with me on [Linkedin](https://www.linkedin.com/in/anuvindhs)
🧑🏼‍🤝‍🧑🏻 Read more post on [dev.to](https://dev.to/anuvindhs) or  [iCTPro.co.nz](https://ictpro.co.nz)
💻 Connect with me on [GitHub](https://github.com/anuvindhs)**



----------

{% user anuvindhs %}
Mini-Max Sum Problem
Tags: problemsolving, python, hackerrank
Published: 2022-04-08 01:27:20

**Problem statement**
Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.

Solution steps:

I thought about the problem mathematically that the sum of the smallest number in a set is the minimum sum and the sum of the biggest numbers in a set is the maximum sum so:

- Sorted the given array.

- Get the minimum sum by the summation of the first four numbers.

- Get the maximum sum by the summation of the last four numbers.

```
def miniMaxSum(arr):
    sorted_list = sorted(arr)
    min_sum = sorted_list[0] + sorted_list[1] + sorted_list[2] + sorted_list[3]
    max_sum = sorted_list[1] + sorted_list[2] + sorted_list[3] + sorted_list[4]
    print(str(min_sum) + " " + str(max_sum))
```
The problem is from Hackerrank website.
The problem url: [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem)
What suggestions would you put forward to someone who is a Beginner?
Tags: beginners, python, discuss
Published: 2022-04-08 01:19:25

Hi everyone! It's been about a month since I've started to learn to code. I am almost finishing up the Computer Science Fundamentals MicroBachelors on Edx, and I have just completed the python 3 course on codeacademy. Where do I go from here?
Menyelesaikan soal "Solve Me First" di HackerRank
Tags: javascript, beginners, programming
Published: 2022-04-08 00:50:01

![Soal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3u24zhfc92g3qdlbzufy.jpg)

Pada soal di atas kita diminta untuk membuat fungsi yang digunakan untuk menghitung jumlah 2 bilangan bulat. Kali ini saya akan membagikan cara saya menyelesaikan soal tersebut menggunakan bahasa pemrograman javascript. Berikut kode pemrogramannya:

```javascript
function solveMeFirst(a, b) {
    return a + b;
}
```
Sangat mudah bukan?

Demikian yang bisa saya bagikan, apabila ada yang perlu dikoreksi atau Anda punya cara lain untuk menyelesaikan soal di atas silahkan share di kolom komentar. 😁