teleren/devto huggingface dataset:
DogeCoin Mining on Laptop
Tags: dogecoin, news, tutorial, todayilearned
Published: 2021-05-12 12:45:50

### How to start mining dogecoins with your laptop hash.

Dogecoin began as a joke on the Internet approximately seven years ago by two developers Billy Markus and Jackson Palmer. Today it doesn’t appear to be a joke with a market [cap of over ](https://coinmarketcap.com/currencies/dogecoin/)6 billion dollars.

## Software for Mining

### **Step 1**

Visit the [**Unmineable](https://unmineable.com/?ref=dl5m-b4ki)** website and download the windows software as shown below.

![](https://cdn-images-1.medium.com/max/2300/1*sWwHHqDeuzWUP998cY3TIw.png)

### **Step 2**

Extract and run the software. Click continue, and there are two options available to mine Doge and many other coins.

* **Graphics Card(GPU)- **mine coins at a higher speed

* **CPU**- relatively slower

![](https://cdn-images-1.medium.com/max/2000/1*c3KfhUrkwdsPo-wNwqsVCQ.png)

The article demonstrates mining using the “CPU” option.

### **Step 3**

Select coin and input the wallet address and referral code.

**Referral code:** “dl5m-b4ki”. It helps in a discount mining fees. Supported algorithms: **Ethash, Etchash, RandomX, and KawPow.**

1% mining fee for all coins. Earn passive rewards and get a lower fee by using our referral system!

![](https://cdn-images-1.medium.com/max/2516/1*2v5PY3NMEI23ttc9lXXtEw.png)

**Address:** Can be a hard wallet or an **exchange** wallet address

![](https://cdn-images-1.medium.com/max/2000/1*tfcnqZq_grAaOqVGhE_9sQ.png)

### Step 4

Click start, and it will begin mining the particular coin.

![](https://cdn-images-1.medium.com/max/2000/1*WASWCICaPPSZ_F53qD-hjQ.png)
> # “Within 1 hr, I can mine the above-shown doge coins, and with a higher hash rate, it's much faster”

### Summary

* Once you mined 30 doge coins, it's transferrable to the wallet address.

* Click on the website button to see the progress on the unMineable website.

* You can control the mining intensity from the setting icon.

### BitTorrent Token Mining Statistics

![](https://cdn-images-1.medium.com/max/2000/1*wKuyDC0Ey2dJMkTOQuxLdA.png)

Thanks for reading and I hope you like the article. Comment if you need any help.

Follow me on medium for more updates on crypto coins mining
https://singhsukhpinder.medium.com/

<a href="https://www.buymeacoffee.com/sukhpindersingh" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
Implementing stack in JAVA.
Tags: java
Published: 2021-05-12 12:43:55

# Implementing stack in java
```java
package com.hello;
import java.util.*;

class Stack{
	private int ar[];
	private int top;
	
	Stack(int size){
		this.ar = new int[size];
		this.top = -1;
	}
	
	/**
	 * Get the top element of the stack.
	 * You must have to check if stack is empty or not, before calling this API.
	 * @return {Integer} top of the stack
	 */
	public int top() {
		return this.ar[this.top];
	}
	
	/**
	 * Check if stack is empty or not.
	 * @return {Boolean} true if stack is empty, false otherwise
	 */
	public boolean isEmpty() {
		return this.top == -1;
	}
	
	/**
	 * Get the size of the stack
	 * @return {Integer} size of the stack
	 */
	public int size() {
		return this.top+1;
	}
	
	/**
	 * Push el onto the top of the stack
	 * @param el element to be pushed
	 */
	public void push(int el) {
		if(this.top+1 >= this.ar.length) {
			System.out.println("Stack is full!");
			return;
		}
		
		// push el into stack
		this.ar[++this.top] = el;
	}
	
	/**
	 * Pop the top element from the stack
	 */
	public void pop() {
		if(this.top<0) {
			System.out.println("Stack is empty!");
			return;
		}
		
		this.top--;
	}
}
public class Method {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("Enter stack size: ");
		int stackSize = sc.nextInt();
		System.out.println();
		
		Stack stack = new Stack(stackSize);
		
		int op = 1;
		System.out.println("Push: 1");
		System.out.println("Pop: 2");
		System.out.println("Top: 3");
		System.out.println("Size: 4");
		System.out.println("Exit: 0");
		while(op != 0) {
			System.out.print("Enter operation number: ");
			
			op = sc.nextInt();
			System.out.println();
			
			switch(op) {
				case 1:
					System.out.print("Enter a number: ");
					int el = sc.nextInt();
					System.out.println();
					stack.push(el);
					break;
				case 2:
					stack.pop();
					break;
				case 3:
					// if stack is empty then don't do pop()
					if(stack.isEmpty()) {
						System.out.println("Stack is empty!");
						break;
					}
					
					int top = stack.top();
					System.out.println("Top element: "+top);
					break;
				case 4:
					int size = stack.size();
					System.out.println("Size: "+size);
					break;
			}
		}
		
		// close the stream
		sc.close();
	}

}
```
NodeJS/Express – Upload/Download MultiparFile to MySQL – Multer + Sequelize + JQuery Ajax + Bootstrap
Tags: node, express, bootstrap, multer
Published: 2021-05-12 12:42:00

https://grokonez.com/node-js/multer/nodejs-express-upload-download-multiparfile-to-mysql-multer-sequelize-jquery-ajax-bootstrap

NodeJS/Express – Upload/Download MultiparFile to MySQL – Multer + Sequelize + JQuery Ajax + Bootstrap

In the tutorial, we show you how to upload/download MultipartFile to MySQL in NodeJS/Express web-application using Multer middleware, Sequelize ORM, JQuery Ajax & Bootstrap view.

Related posts:
- <a href="https://grokonez.com/node-js/nodejs-express-restapi-to-upload-multipart-file-to-mysql-using-multer-sequelize-orm#Serverjs">NodeJS/Express – RestAPI to Upload Multipart File to MySQL using Multer + Sequelize ORM</a>
- <a href="https://grokonez.com/node-js/nodejs-express-upload-multipartfiles-images-multer-jquery-ajax-bootstrap">NodeJS/Express – Upload/Download MultipartFiles/Images – Multer + JQuery Ajax + Bootstrap</a>

<!--more-->
<h2>Goal</h2>
<h3>Demo</h3>

<iframe width="560" height="315" src="https://www.youtube.com/embed/XTw8Ovc-_WY?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>


NodeJS/Express – Upload/Download MultiparFile to MySQL – Multer + Sequelize + JQuery Ajax + Bootstrap
Build Customer Success App using Low-Code in just 45 minutes!
Tags: lowcode, customersuccess, appdevelopment, internaltools
Published: 2021-05-12 12:40:34

Low Code Live Builds is back!

Learn how to integrate DronaHQ with platforms like HubSpot and Zendesk to build custom internal tools for Customer Success teams in just 45 minutes.

Register [Here](https://buff.ly/2QbqZwN) Now!
NodeJS/Express – Upload/Download MultiparFile to MySQL – Multer + Sequelize + JQuery Ajax + Bootstrap
Tags: node, express, multer, sequelize
Published: 2021-05-12 12:36:56

https://grokonez.com/node-js/multer/nodejs-express-upload-download-multiparfile-to-mysql-multer-sequelize-jquery-ajax-bootstrap

NodeJS/Express – Upload/Download MultiparFile to MySQL – Multer + Sequelize + JQuery Ajax + Bootstrap

In the tutorial, we show you how to upload/download MultipartFile to MySQL in NodeJS/Express web-application using Multer middleware, Sequelize ORM, JQuery Ajax & Bootstrap view.

Related posts:
- <a href="https://grokonez.com/node-js/nodejs-express-restapi-to-upload-multipart-file-to-mysql-using-multer-sequelize-orm#Serverjs">NodeJS/Express – RestAPI to Upload Multipart File to MySQL using Multer + Sequelize ORM</a>
- <a href="https://grokonez.com/node-js/nodejs-express-upload-multipartfiles-images-multer-jquery-ajax-bootstrap">NodeJS/Express – Upload/Download MultipartFiles/Images – Multer + JQuery Ajax + Bootstrap</a>

<!--more-->
<h2>Goal</h2>
<h3>Demo</h3>

<iframe width="560" height="315" src="https://www.youtube.com/embed/XTw8Ovc-_WY?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

<h3>Prerequisites</h3>
- <a href="https://grokonez.com/node-js/nodejs-express-restapi-to-upload-multipart-file-to-mysql-using-multer-sequelize-orm#Serverjs">NodeJS/Express – RestAPI to Upload Multipart File to MySQL using Multer + Sequelize ORM</a>
- <a href="https://grokonez.com/node-js/nodejs-express-upload-multipartfiles-images-multer-jquery-ajax-bootstrap">NodeJS/Express – Upload/Download MultipartFiles/Images – Multer + JQuery Ajax + Bootstrap</a>
<h3>Objective</h3>
We build a NodeJS/Express web-application to upload/download multipartfile to MySQL. 
<h4>Overview</h4>
Technologies:
<ul>
<li>NodeJS/Express</li>
<li>Multer middleware</li>
<li>Sequelize ORM</li>
<li>Bootstrap</li>
<li>JQuery Ajax</li>
<li>MySQL</li>
</ul>

Project structure:

<pre><code class="language-javascript">
/NodeJS-Express-MultipartFile-MySQL
	/app
		/config
			db.config.js
			env.js
			multer.config.js
		/controllers
			file.controller.js
		/models
			file.model.js
		/routers
			file.router.js
	/node_modules
	/resources
		/static
			/js
				getrequest.js
				postrequest.js
	/views
		404.html
		index.html
	package.json
	server.js
</code></pre>

More at:

https://grokonez.com/node-js/multer/nodejs-express-upload-download-multiparfile-to-mysql-multer-sequelize-jquery-ajax-bootstrap

NodeJS/Express – Upload/Download MultiparFile to MySQL – Multer + Sequelize + JQuery Ajax + Bootstrap
[Low-Code Live Builds] Creating HubSpot + Zendesk Customer Success Tool on DronaHQ
Tags: customersuccess, showdev, lowcode, crm
Published: 2021-05-12 12:35:19

We will be building a low-code tool for custom success teams. The tool will integrate with a CRM like HubSpot and a Ticket Management System like Zendesk to get the best out of your existing systems and create the helpful tools for customer success teams.

In just under 45 minutes you can explore how quick and simple it is to connect disparate systems and build powerful internal tools on DronaHQ.

Watch on-demand: [https://www.youtube.com/watch?v=UdbfXKvbFt4](https://www.youtube.com/watch?v=UdbfXKvbFt4)

If you are leading customer success, or you are a developer, a product manager, engineering , digital consultant, citizen developer, no-code/low-code enthusiast - I urge you to drop by this Live Build Session.
Converting String to Float in Python
Tags: python, programming, tutorial
Published: 2021-05-12 12:33:52

In this short tutorial, we look at how we can convert a string object into a floating object. We look at different methods and also discuss the limitations faced when you attempt to convert a string to float in Python.

This tutorial is a part of our initiative at [Flexiple](https://flexiple.com/), to write short curated tutorials around often used or interesting concepts. 

### Table of Content

- [Why would you need to convert a String to Float in Python?](#why-would-you-need-to-convert-a-string-to-float-in-python)
- [Solution: Using the float() function](#solution-using-the-float-function)
- [Limitation and Caveats](#limitations-and-caveats)

### Why would you need to convert a String to Float in Python?

Changing data types in Python is a common practice, and Python has provided us with functions to facilitate this. However, one frequently looked up method is converting a string object in Python to a floating object. The most common places where you would come across this is while reading and working with files. In such cases, you would need to convert numerical values from a string into float/ int before you can use any operations.

Similar to the above example you would come across similar instances where you would need to convert a string to float in Python.

### Solution: Using the float() function

In this solution, we use the most common method to convert any data type including a string to float in Python; `float()`. 

**Syntax of float():** 

```python
float(x)
```

**Parameter**

Here `x` can be an int or a string. It could contain signs, this would not affect the value returned.

**Code and Explanation:**

```python
f1 = float("123.123")
//output: 123.123
f2 = float("1")
//output: 1.0
f3 = float(1)
//output: 1.0

print(type(f1))
```

As you can see the above strings were converted into a floating object. The only thing you should keep in mind is that the string should contain a numerical decimal or integer value, only then would the float function be able to convert the string to float. 

To check the data types you can use the type() function before and after using the float(). This function returns the data type of the object.

Similar to `float()`, values of other data types can be converted into integers and strings using the `Int()`, `str()`.

```python
f1 = int("1")
//output: 1
f2 = int(12.3)
//output: 12

f3 = str(123)
//output: "123"
f4 = str(12.3)
//output: "12.3"
```

### Limitations and Caveats

1. As mentioned earlier, the string should contain a float value else `float()` would return `ValueError`
2. If the number outside the range of a floating variable it would return `OverflowError`
3. And lastly if the no value is passed as an argument it returns 0.0
Angular : How can we have multiple tsconfig file for angular app?
Tags: angular, javascript, node, programming
Published: 2021-05-12 12:32:05

One `tsconfig` file is enough for your project but if still for some of technical reasons you want to have more than one for example create 2 different `tsconfig` files (e.g. `tsconfig.a.json` and `tsconfig.b.json`) then you need to add a script when building to copy over `tsconfig.json` with the desired script using extend.

For example:
Refer [official documentation]( https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#configuration-inheritance-with-extends)

Here you can see :
A `tsconfig.json` file can inherit configurations from another file using the extends property.

The extends is a top-level property in `tsconfig.json` (alongside `compilerOptions`, files, include, and exclude). extends’ value is a string containing a path to another configuration file to inherit from.

The configuration from the base file are loaded first, then overridden by those in the inheriting config file. If a circularity is encountered, we report an error.

files, include and exclude from the inheriting config file overwrite those from the base config file.

All relative paths found in the configuration file will be resolved relative to the configuration file they originated in.

For example:
configs/base.json:
```javascript

{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true
  }
}
```

tsconfig.json:
```javascript
{
  "extends": "./configs/base",
  "files": [
    "main.ts",
    "supplemental.ts"
  ]
}
```
tsconfig.nostrictnull.json:
```javascript
{
  "extends": "./tsconfig",
  "compilerOptions": {
    "strictNullChecks": false
  }
}
```

If you don't want to use above method then as an alternative you can modify your `package.json` and it will do the same for you. Let's assume you have appX and appY for appX you want to execute `tsconfig.x.json` and for appY you have `tsconfig.y.json` then you can modify you `package.json` as mentioned below:
```

{
  build:appX="cp tsconfig.x.json tsconfig.json && npm run build"
  build:appY="cp tsconfig.y.json tsconfig.json && npm run build"
}

```


Source - [DevelopersDiscussion.com](https://developersdiscussion.com/viewforum.php?f=9&sid=01996854fd8bde97ad61082f7fbfc160)


<a href="https://www.buymeacoffee.com/rkycom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>

With all that being said, I highly recommend you keep learning!

Thank you for reading this article. Please feel free to connect with me on [LinkedIn](https://www.linkedin.com/in/www-rajeshkumaryadav-com/) and [Twitter](https://twitter.com/rky_com).
Weekly Challenge 112
Tags: perl, perlweeklychallenge
Published: 2021-05-12 12:31:40

[Challenge](), [My solutions]()

# TASK #1 › Canonical Path

## Tasks

You are given a string path, starting with a slash `/`.

Write a script to convert the given absolute path to the simplified canonical path.

## My solution

Outside the challenge, I would use the swiss army-knife of [Path::Tiny](https://metacpan.org/pod/Path::Tiny) to do this. Regularly readers of my blog post will know that I don't use modules outside Perl core in completing a task.

Therefore I split the supplied path by each forward slash into `@parts`. I then take three actions depending on the part.

* If it is empty, do nothing. This handles the first slash, the trailing slash, and any double slashes in the path.
* If the part is `..`, pop the last value from the canonical path. Even if we are already at the root (the canonical path is the root folder) it still has a `..` file referencing itself.
* Any all other cases, push the part into the canonical path.

Finally, I join the canonical parts together to generate a string separated by slashes.

## Examples

```
» ./ch-1.pl /a/
/a

» ./ch-1.pl /a/b//c/
/a/b/c

» ./ch-1.pl /a/b/c/../../
/a
```

# TASK #2 › Climb Stairs

## Task

You are given `$n` steps to climb.

Write a script to find out the distinct ways to climb to the top. You are allowed to climb either 1 or 2 steps at a time.

## My solution

This one got me thinking about the best way to code it. And like other challenges, I'll be very interesting to see how other Team PWC members do it.

My first though was a recursive function, but I have been criticised in the past for using it. Then I though about some binary function where false (0) representing one step, and true (1) represented two steps.

However in the end I went with the good old recursive function called `_climb`. It has three arguments, the steps remaining, the current climb, and an array of arrays of all climbs. Like with the first tasks, I take different action depending on the remaining steps.

* If there is only one step remaining, add the current climb + 1 to the list of climbs.
* If there are two steps remaining, add the current climb + 2 × 1 step, and the current_climb + 2 steps to the list of climbs.
* If there are more than two steps remaining, call the recursive function again twice. The first call is with one step and the second call is with two steps.

Finally I output the number of possible steps there are and each way the stairs can be climbed.

Interesting fact (assuming my code is correct): With 20 steps, there are 10,946 ways to climb them. And there are 121,393 ways to climb 25 steps.

## Examples

```
» ./ch-2.pl 3
Output: 3

Option 1: 1 step + 1 step + 1 step
Option 2: 1 step + 2 steps
Option 3: 2 steps + 1 step

» ./ch-2.pl 4
Output: 5

Option 1: 1 step + 1 step + 1 step + 1 step
Option 2: 1 step + 1 step + 2 steps
Option 3: 1 step + 2 steps + 1 step
Option 4: 2 steps + 1 step + 1 step
Option 5: 2 steps + 2 steps
```
How to disable Bluetooth become audio source instead of audio sink on Linux
Tags: linux
Published: 2021-05-12 12:31:26

---
title: How to disable Bluetooth become audio source instead of audio sink on Linux
published: true
description: 
tags: linux
//cover_image: https://direct_url_to_image.jpg
---

After struggled with Amazon Alexa, Bluez, PulseAudio.


/etc/bluetooth/main.conf

```diff
[General]

-Enable=Source,Sink,Media,Socket
+Enable=Sink,Media,Socket
```
Aktiviere den Gutenberg Editor für WooCommerce Produkte
Tags: wordpress, code, howto, woocommerce
Published: 2021-05-19 09:55:35

---
title: Aktiviere den Gutenberg Editor für WooCommerce Produkte
published: true
date: 2021-05-12 12:25:36 UTC
tags: Wordpress,code,howto,WooCommerce
canonical_url: https://j0e.org/gutenberg-fur-woocommerce/
---

![Gutenberg für WooCommerce](https://j0e.org/wp-content/uploads/2021/05/gutenberg-woocommerce.png)

Der Gutenberg Block Editor kann auch für die WooCommerce Produktbeschreibung genutzt werden. Leider nicht als …

[Aktiviere den Gutenberg Editor für WooCommerce Produkte](https://j0e.org/gutenberg-fur-woocommerce/)
How to use Spring Data DynamoDB example | Spring Boot
Tags: springboot, springdata, dynamodb
Published: 2021-05-12 09:43:01

https://grokonez.com/spring-framework/spring-data/how-to-use-spring-data-dynamodb-example-spring-boot

How to use Spring Data DynamoDB example | Spring Boot

In tradition approach, implementing Data Access Layer makes lots of boilerplate code. Spring Data helps us improve our codes and reduce efforts for development and maintenance. It supports us the ways to write interface for repositories and custom finder methods, the implementation will be done automatically by Spring Framework. In this tutorial, we're gonna look at how to use Spring Data DynamoDB with Spring Boot.

Related Posts: 
- <a href="https://grokonez.com/spring-framework/spring-boot/spring-data-mongooperations-accessing-mongo-database">Spring MongoOperations to access MongoDB</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/build-springboot-mongodb-restfulapi">How to build SpringBoot MongoDb RestfulApi</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/how-to-use-springdata-mongorepository-to-interact-with-mongdb-springboot-application">How to use SpringData MongoRepository to interact with MongoDB</a>

<!--more-->
<h2>I. Technology</h2>
- Java 1.8
- Maven 3.3.9
- Spring Tool Suite – Version 3.9.0.RELEASE
- Spring Boot: 1.5.9.RELEASE
<h2>II. Overview</h2>
<h3>1. Goal</h3>
<img src="https://grokonez.com/wp-content/uploads/2017/12/spring-data-dynamodb-goal.png" alt="spring-data-dynamodb-goal" width="700" height="317" class="alignnone size-full wp-image-10184" />
<h3>2. Project Structure</h3>
<img src="https://grokonez.com/wp-content/uploads/2017/12/spring-data-dynamodb-structure.png" alt="spring-data-dynamodb-structure" width="308" height="396" class="alignnone size-full wp-image-10185" />

- Class <strong>Customer</strong> corresponds to entity and table <strong>Customer</strong>.
- <strong>CustomerRepository</strong> is an interface extends <strong>CrudRepository</strong>, will be autowired in <strong>WebController</strong> for implementing repository methods and custom finder methods.
- <strong>WebController</strong> is a REST Controller which has request mapping methods for RESTful requests such as: save, delete, findall, findbyid, findbylastname.
- Configuration for DynamoDB properties in <strong>application.properties</strong>. The <code>accesskey</code> and <code>secretkey</code> are just arbitrary values and are not needed to actually authenticate when accessing local instance of DynamoDB. The properties will be dynamically pulled out in the <strong>DynamoDBConfig</strong>.
- <strong>Dependencies</strong> for <strong>Spring Boot</strong> and <strong>DynamoDB</strong> in <strong>pom.xml</strong>
<h2>III. Practice</h2>
<h3>1. Create Spring Boot project &amp; add Dependencies</h3>

More at:

https://grokonez.com/spring-framework/spring-data/how-to-use-spring-data-dynamodb-example-spring-boot

How to use Spring Data DynamoDB example | Spring Boot