teleren/devto huggingface dataset:
Browser Compatibility
Tags: javascript, webdev, programming, tutorial
Published: 2022-09-07 08:45:57


![Browser Compatibility](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6aquzm2ar0bqno5m6sjc.jpg)


![https://caniuse.com/](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8bv5zgwjxgwhhdgc96z8.jpg)


![https://www.instagram.com/javascript.verse](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1kxleuxrmw6kn62dqv1e.jpg)
Need help on dummy wallet for cryptocurrency
Tags: help, crypto, web3
Published: 2022-09-07 08:32:18

---
title: Need help on dummy wallet for cryptocurrency
published: true
tags: help, crypto, web3
---

I am new to cryptocurrency, blockchain technologies. I am developing wallet app for crypto and separate e-commerce app to integrate with it.
As this is just POC, I need dummy/fake wallet with API that I can directly integrate it within my apps. Self hosted open source API will also help.
System Design: Indexes
Tags: distributedsystems, architecture, tutorial
Published: 2022-09-07 08:30:00


Indexes are well known when it comes to databases, they are used to improve the speed of data retrieval operations on the data store. An index makes the trade-offs of increased storage overhead, and slower writes (since we not only have to write the data but also have to update the index) for the benefit of faster reads. Indexes are used to quickly locate data without having to examine every row in a database table. Indexes can be created using one or more columns of a database table, providing the basis for both rapid random lookups and efficient access to ordered records.

![indexes](https://raw.githubusercontent.com/karanpratapsingh/portfolio/master/public/static/courses/system-design/chapter-II/indexes/indexes.png)

An index is a data structure that can be perceived as a table of contents that points us to the location where actual data lives. So when we create an index on a column of a table, we store that column and a pointer to the whole row in the index. Indexes are also used to create different views of the same data. For large data sets, this is an excellent way to specify different filters or sorting schemes without resorting to creating multiple additional copies of the data.

One quality that database indexes can have is that they can be **dense** or **sparse**. Each of these index qualities comes with its own trade-offs. Let's look at how each index type would work:

## Dense Index

In a dense index, an index record is created for every row of the table. Records can be located directly as each record of the index holds the search key value and the pointer to the actual record.

![dense-index](https://raw.githubusercontent.com/karanpratapsingh/portfolio/master/public/static/courses/system-design/chapter-II/indexes/dense-index.png)

Dense indexes require more maintenance than sparse indexes at write-time. Since every row must have an entry, the database must maintain the index on inserts, updates, and deletes. Having an entry for every row also means that dense indexes will require more memory. The benefit of a dense index is that values can be quickly found with just a binary search. Dense indexes also do not impose any ordering requirements on the data.

## Sparse Index

In a sparse index, records are created only for some of the records.

![sparse-index](https://raw.githubusercontent.com/karanpratapsingh/portfolio/master/public/static/courses/system-design/chapter-II/indexes/sparse-index.png)

Sparse indexes require less maintenance than dense indexes at write-time since they only contain a subset of the values. This lighter maintenance burden means that inserts, updates, and deletes will be faster. Having fewer entries also means that the index will use less memory. Finding data is slower since a scan across the page typically follows the binary search. Sparse indexes are also optional when working with ordered data.


---

_This article is part of my open source [System Design Course](https://github.com/karanpratapsingh/system-design) available on Github._

{% github karanpratapsingh/system-design %}
System Design: Database Replication
Tags: distributedsystems, architecture, tutorial
Published: 2022-09-07 08:29:42


Replication is a process that involves sharing information to ensure consistency between redundant resources such as multiple databases, to improve reliability, fault-tolerance, or accessibility.

## Master-Slave Replication

The master serves reads and writes, replicating writes to one or more slaves, which serve only reads. Slaves can also replicate additional slaves in a tree-like fashion. If the master goes offline, the system can continue to operate in read-only mode until a slave is promoted to a master or a new master is provisioned.

![master-slave-replication](https://raw.githubusercontent.com/karanpratapsingh/portfolio/master/public/static/courses/system-design/chapter-II/database-replication/master-slave-replication.png)

### Advantages

- Backups of the entire database of relatively no impact on the master.
- Applications can read from the slave(s) without impacting the master.
- Slaves can be taken offline and synced back to the master without any downtime.

### Disadvantages

- Replication adds more hardware and additional complexity.
- Downtime and possibly loss of data when a master fails.
- All writes also have to be made to the master in a master-slave architecture.
- The more read slaves, the more we have to replicate, which will increase replication lag.

## Master-Master Replication

Both masters serve reads/writes and coordinate with each other. If either master goes down, the system can continue to operate with both reads and writes.

![master-master-replication](https://raw.githubusercontent.com/karanpratapsingh/portfolio/master/public/static/courses/system-design/chapter-II/database-replication/master-master-replication.png)

### Advantages

- Applications can read from both masters.
- Distributes write load across both master nodes.
- Simple, automatic, and quick failover.

### Disadvantages

- Not as simple as master-slave to configure and deploy.
- Either loosely consistent or have increased write latency due to synchronization.
- Conflict resolution comes into play as more write nodes are added and as latency increases.

## Synchronous vs Asynchronous replication

The primary difference between synchronous and asynchronous replication is how the data is written to the replica. In synchronous replication, data is written to primary storage and the replica simultaneously. As such, the primary copy and the replica should always remain synchronized.

In contrast, asynchronous replication copies the data to the replica after the data is already written to the primary storage. Although the replication process may occur in near-real-time, it is more common for replication to occur on a scheduled basis and it is more cost-effective.


---

_This article is part of my open source [System Design Course](https://github.com/karanpratapsingh/system-design) available on Github._

{% github karanpratapsingh/system-design %}
React Js Youtube Clone
Tags: javascript
Published: 2022-09-07 08:18:25



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gvutnnm620rm7dm6abej.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fbsb0vcmzudezwe66806.png)
Bootstrap logo in Python
Tags: bootstrap, python, chiki1601
Published: 2022-09-07 08:00:28

Hello friends...

I created Bootstrap logo using Python...

which is shown below:

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

If you want source code,
Please tell me in the comment!!!👇🏻👇🏻👇🏻
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2022-09-07 08:00:22

---
title: "Enjoy Programming-Themed Humor? Here's today's daily developer joke!"
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/5e1258b4d7b44.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:___ Why doesn't Hollywood make more Big Data movies?

___A:___ NoSQL.
 -->
Meesho logo in Python
Tags: python, chiki1601
Published: 2022-09-07 08:00:00

Hello friends...

I created Meesho logo using Python...

which is shown below:

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

If you want source code,
Please tell me in the comment!!!👇🏻👇🏻👇🏻
Clean up space on a .NET Developer Machine
Tags: programming, csharp, dotnet
Published: 2022-09-07 07:59:19

To always have the development machine fast and clean, I started a new routine on monday morning: I clean up my machine from unuseful folders and files.
As a .NET developer, I have a lot of bin and obj files in my source directory.
For me is: D:\_GITHUB_ and D:\_DEVOPS_.
I have two separate folders for GitHub and Azure DevOps.
It's not easy to go through all the subfolders and remove the bin  and obj folders manually.
This is why I have created a script to do that:

```powershell
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }
```
> Launch this command only in your root source directory!

But this is not the only folder that uses a lot of space in your hard disk.
There is another one and it's the NuGet cache folder.
For me, more or less, it's 10GB.
I don't have a script for this folder, because I don't erase this one every week and I do it manually.
You can easily find the folder with the following path:

`C:\Users\%USERPROFILE%\.nuget`
Just copy and paste the path in File Explorer.

![NuGet Packages folder](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pn132co4qmg9qh2xvp7q.png)

As I mentioned in the title, these tips are for a .NET Developer, but I use very often React for the frontend projects at work.
So, I have another script for removing all the node_modules from the root source directory.
I don't use the same script because this script is much slower than the other one.

```powershell
Get-ChildItem .\ -include node_modules -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }
```

Have a nice clean up scripting routine!
Google Sheets logo in Python
Tags: chiki, python, google, programming
Published: 2022-09-07 07:58:59

Hello friends...

I created Google Sheets logo using Python...

which is shown below:

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

If you want source code,
Please tell me in the comment!!!👇🏻👇🏻👇🏻
JS 移除陣列元素錯誤案例 | 用forEach搭配splice
Tags: javascript, webdev
Published: 2022-09-07 07:52:45

## 情況

移除不符合條件的陣列元素，例如移除’e’的元素

```jsx
let list = ['a', 'b', 'c', 'e']

list.forEach((item, index, arr) => {
	if(item === 'e') {
		arr.splice(index, 1)
	}
})
```

(splice方法第一個參數是欲刪除元素的位置，第二個是欲刪除幾個元素)

## 錯誤原因

使用map或forEach等迴圈相關的方法時，不要在迴圈內移除或增加陣列長度，否則陣列的指向會錯誤。

## 解決方法

應使用filter()篩選符合的元素

```jsx
let list = ['a', 'b', 'c', 'e']

let filterList = list.filter(item => {
	return item !== 'e'
})
```
Chương trình khuyến mãi của nhà cái iBet789
Published: 2022-09-07 07:52:29

Những khuyến mãi hấp dẫn của iBet789 là một trong những ưu điểm nổi bật. Người chơi tại iBet789 dù là thành viên, đại lý, agent lâu năm hay mới tham gia thì cũng đều được tham gia các chương trình khuyến mãi của riêng mình.  

Gửi đến anh em danh sách link vào khuyến mãi được diễn ra thường xuyên tại iBet789. 

Chương trình khuyến mãi	Giá trị 
Ưu đãi cho thành viên iBet789 mới	Tặng 100% giá trị tiền nạp
Ưu đãi cho thành viên lâu năm	Tặng 30% giá trị tiền nạp
Hỗ trợ thành viên ra đảo	Hoàn 1-3% tiền cược thua
Tri ân thành viên (sinh nhật hoặc ngày lễ)	Tặng thêm 300k tiền cược
Xem thêm tại: https://jackiewalker.org/ibet789-com/
Best free IDE for android phone
Tags: webdev, beginners, codenewbie, tutorial
Published: 2022-09-07 07:36:37

Don't have laptop or computer?
With these 2 apps you can practice coding using your phone.   

## 1. [Spck Editor](https://play.google.com/store/apps/details?id=io.spck)
![Spck Image](https://play-lh.googleusercontent.com/R_FnpHpBwRVEA2bGeXMLp4IdfESrnJaKK8Wsx4bLOGLmRXNRozTGSLlsUaw3XyykfHE=w480-h960-rw)


_This is the best for me_

**About this app**

Make changes, preview, pull/push & commit with this tiny code editor.

Spck Editor lets you write code whenever, wherever. Quickly change code snippets, preview them, and commit to any git repository all with this tiny (but powerful) JavaScript IDE. There's no more need to compromise when developing on your mobile Android device. Clone from Github/Gitlab/Bitbucket, AWS CodeCommit, Azure DevOps, or more, make commits and push them from your phone.

*Back up your projects before uninstalling the app, otherwise you will likely lose the data! Upgrading/updating the app should be okay.

Features include:

- Clone public or private (requires app password/token) repositories
- Quick snippets keyboard for faster code edits
- Git client integration (checkout/pull/push/commit/log)
- Diff viewer for git-enabled projects
- Preview webpages on your device
- Project or file code searching
- Code syntax analysis and smart auto-completer
- Code completion and context provider (signature/definition lookup)
- Auto code-indentation (using js-beautify)
- Light/dark themes available
- Integrated JavaScript console
- Preview markdown
- Export/import project/files to zip file
- Works offline (fixed)
- CSS Color selector
- Cool JavaScript labs to play with

Main languages supported:
- JavaScript
- CSS
- HTML

Smart code-hinting support:
- TypeScript, JavaScript, TSX, JSX
- CSS, Less, SCSS
- HTML (with Emmet support)

Other popular languages (Syntax highlighting only):
- Python, Ruby, R, Perl, Julia, Scala
- Java, Scala, Kotlin
- OCaml, PHP 
- Golang, Rust, C, C#
- Stylus, CoffeeScript, Pug
- Markdown, Batch, Bash
- ActionScript, Coldfusion, HaXe
+ More...

More features to come!

## 2. [ASTRO](https://play.google.com/store/apps/details?id=com.astrosohu)

![img](https://play-lh.googleusercontent.com/4IlJ0E6HeSH12bGlamwMj9zzkecVggru_1peworcJF1LyiJA7jNCho6IA1GkcyYNFH8=w480-h960-rw)


**About this app**

Try to learn and play NodeJS easily

Try to learn NodeJS easily with simple tool, access everywhere in your pocket
High-Quality Shopware eCommerce Customization Services with Webkul
Tags: showdev, devops
Published: 2022-09-07 07:00:42

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6w98a134ejf0dd2aw3u.jpg)
Webkul certified team is prepared to promote your eCommerce company with high-level shopware customization services.
If you require a positively customizable, user-intuitive, and innovative eCommerce platform, look no further than Shopware. Authorized by tens of thousands of brands globally, it is one of the most creative solutions for eCommerce companies. It offers lots of beneficial qualities out-of-the-box, and the community ecosystem provides thousands of ready-made modules. While sometimes you require something custom-made. 
At Webkul, we’ve been supplying our consumers with completely custom solutions of the most elevated quality for more than a decade. Our developers know everything from plugin installation to creating a store from scratch, and we are here to support you with shopware customization.

## Webkul shopware customization Process Cycle
Through our years of work, we’ve designed a methodology that would make our job as efficient and restful for you as feasible.

## 1. Dedicated Analysis of Project
Our work by performing a thorough analysis of your assignment. We take a more intimate look at your store, glance at the best methods on the market, and manage all the data we require. Founded on that we provide a list of probable strategies. Trusting your preferences, we can settle on the best plan ourselves, or discuss it together with you.

## 2. Create Project Roadmap Plan
Nowadays, we have a detailed plan in mind, and we agree on more delicate details. We’ll complete a project roadmap, and together we’ll agree on the fixed time, contact channels, and further matching matters.

## 3. Development Process
We arrange a plan as soon, as we begin the development strategy. Webkul dedicated developers create custom solutions utilizing the best [Shopware customization](https://webkul.com/shopware-development/) techniques and create functionality without impacting the core or third-party modules. We’ll constantly maintain you updated on our strategy, and you get to select how engaged in the process you want to be.

## 4. QA Testing Process
After the function is executed, our QA expert will try it in additional environments and confirm that it is bug-free and fulfills all required criteria. We complete everything and you appreciate your attractive new website

## 5. Conversation with Client
We want to begin our work together with a discussion with our client. We introduce ourselves and how we operate, attend to your thoughts and discuss various methods to execute them.
Our purpose is to comprehend your industry and the challenges you face, so we can offer the most suitable solution to issues.

## 6. Our Support Service
Actually, the shopware customization services cycle is through, we’ll always support your store. We’ll save everything updated and working correctly, do expected protection checks and install updates, and make other modifications you may require.
THE HIDDEN HEALTH BENEFITS OF GREEN TEA
Tags: health
Published: 2022-09-07 06:54:27

For green tea, new tea leaves are developed revealed then gathered, and steamed, which protects a large portion of its polyphenols, a class of phytochemicals with solid cell reinforcement benefits.

Most polyphenols in green tea are flavonoids. The sort of flavonoids that give the most medical advantages are catechins and green tea is brimming with them.

You’ve presumably known about epigallocatechin gallate, the most noticeable and most concentrated on catechin, and green tea’s distinguishing strength.

Check more detail on our [healthy food blog](https://www.lifestylefoodies.com/).
sorting golang
Tags: go
Published: 2022-09-07 06:38:14

```
package main

import (
	"fmt"
	"math"
)

func LinearSarch(a []int, key int) string {
	point := 0
	for point < len(a) {
		if key == a[point] {
			return fmt.Sprintf("found the index is %d", point)
		}
		point += 1
	}
	return "Not found Index"

}

func BinarySarch(a []int, key int, Left int, Right int) string {
	if Left <= Right {
		midPoint := int(math.Floor(float64(Left+Right) / 2))
		if key == a[midPoint] {
			return fmt.Sprintf("found the index is %d", midPoint)
		} else if key < a[midPoint] {
			return BinarySarch(a, key, Left, midPoint-1)
		} else {
			return BinarySarch(a, key, midPoint+1, Right)
		}
	}
	return "Not found"

}

func selection(a []int) {
	for i := 0; i < len(a)-1; i++ {
		min := i
		for j := i + 1; j < len(a); j++ {
			if a[j] < a[min] {
				min = j
			}
		}
		temp := a[i]
		a[i], a[min] = a[min], temp
	}

}

func insertion(a []int) {
	for i := 1; i < len(a); i++ {
		temp := a[i]
		j := i - 1
		for j >= 0 && a[j] > temp {
			a[j+1] = a[j]
			j--
		}
		a[j+1] = temp

	}

}

func bubblesort(a []int) {
	for i := 0; i < len(a)-1; i++ {
		for j := 0; j < len(a)-1-i; j++ {
			if a[j] > a[j+1] {
				temp := a[j]
				a[j] = a[j+1]
				a[j+1] = temp
			}
		}

	}

}

func sellsort(arr []int, n int) {
	for gap := n / 2; gap > 0; gap = gap / 2 {
		for j := gap; j < n; j++ {
			for i := j - gap; i >= 0; i -= gap {
				if arr[i+gap] > arr[i] {
					break
				} else {
					temp := arr[i]
					arr[i] = arr[i+gap]
					arr[i+gap] = temp
				}

			}

		}
	}

}
func partition(arr []int, lb int, ub int) int {
	pivot := arr[lb]
	start := lb
	end := ub
	for start < end {
		if arr[start] <= pivot {
			start += 1
		}
		for arr[end] > pivot {
			end -= 1
		}
		if start < end {
			temp := arr[start]
			arr[start] = arr[end]
			arr[end] = temp
		 }
	}
	temp := arr[lb]
	arr[lb] = arr[end]
	arr[end] = temp
	return end
}

func quikSort(arr []int, lb int, ub int) {
	if lb < ub {
		p := partition(arr, lb, ub)
		quikSort(arr, lb, p-1)
		quikSort(arr, p+1, ub)
	}
}

func main() {
	a := []int{10, 20, 30, 10, 5, 3, 2}
	bubblesort(a)
	sellsort(a, len(a))
	insertion(a)
	selection(a)
	fmt.Println(a)
	b := BinarySarch(a, 30, 0, len(a)-1)
	q := LinearSarch(a, 30)
	fmt.Println(b, q)

}
```
Why do you write so much?
Tags: watercooler, writing, discuss
Published: 2022-09-07 06:36:35

A lot of people ask me why I write so much. And I thought this would make an excellent blog post article.

My initial reasoning behind starting this blog was that I didn't have travel time anymore, and I wanted to use this time I previously spent on travel for something productive.

Hence a daily blog started.
However, at one stage, it became the perfect outlet to investigate, try out, and write about things I didn't have to try at work.

## An outlet

Let's say your day-to-day job includes working on a React codebase, you've heard of Remix, but you aren't going to convert everything at once.

So what better way to try a system out than creating a side project with it?
In my case, that side project involves trying the system and working on it.
And while I'm at it, I might as well write down my learnings to help other people who also might be considering trying it out.

## It helps me improve

Another reason for writing so much is that it really helps me improve. Not just in a technical sense but also a grammatical point of view, an explaining point of view, and dealing with feedback.

It's a great outlet to learn and grow from.

Let me share some fantastic experiences I had over the time that was only possible due to the blog.

- Gain technical feedback on articles: I've written many articles from my knowledge point of view. People with other points of view come in to share their approaches to solutions which in return makes me see different ways.
- Gain grammatical feedback: I can tell you with 100% confidence that writing this blog really improved my English typing, as this is not my native language it's an excellent outlet to become better over time.
- Explaining topics better: Sometimes, I write articles with a perspective that people will know everything I know. It's so amazing to get feedback from people who are missing steps which helps me explain specific topics better to them.

This list could go on even more; I'd love to hear from other bloggers about their improvements in writing blogs.

## It's addictive

I won't lie, doing this daily seems hectic and I really would not recommend it to everyone.
But it's super addictive to me, it's become a daily routine, and I can't see myself not doing it.

The central part for me is that it has no incentive. I don't make money from it. And I don't gain anything other than personal knowledge.
Besides that, I enjoy writing these articles and being able to learn new things in this way.

## Would you recommend it?

I would highly recommend writing articles, but find things you want to write about and a schedule that works for you.
Don't overdo yourself. Keep it fun.

If you're keen to read more about how I manage my writing, this article might help you:

[The secret to my writing process](https://daily-dev-tips.com/posts/the-secret-to-my-writing-process/).

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)