teleren/devto huggingface dataset:
Blockchain let's rich people vote to their advantage
Tags: blockchain, programming, web3, discuss
Published: 2022-01-20 09:02:41

Someone made a comment that people with alot of "crypto tokens" could outvote you and ruin the system. Here was my response:

That already happens without blockchain. The fundamental principle of blockchain is the ability to digitally store and transfer value. If you don't understand that principle first, you'll never understand the crypto space.

Some people don't understand the true purpose of money. Money is a way for us to store value. It is a way for human beings to account for work and store that value, and trade it for other things of value.

You can skip blockchain altogether, and just create a ledger on a shared excel sheet or napkin or a mental "IOU". The problem with that is faith or trust in that particular system of accounting. Whatever accounting system you use for whatever accounting you need, whether it's emails, owned video games, money, real estate. People accumulate and trade. Take whatever example you want, there is a degree of friction with being able to trade value for value.

There are two ways to look at money. People chase money because they find it valuable so they do things to accumulate money. People create value and use money to store value.

However the future of blockchain evolves is irrelevant to the fact that there are people who will use blockchain as a way to store and trade value.

Crypto market is no different to any market. It is inefficient and illiquid in comparison to fiat currency. Inefficiency creates arbitrage opportunity, which attracts people to reduce the inefficiency.

I understand the hate on crypto because of inefficiencies, but don't be the person to hate on crypto when you see someone generate value on "fake money". Generate value and store it in whatever medium you choose. Anybody can create their own cryptocurrency. But not everybody understands the fundamental principles of money.
5 best tips for creating a better website.
Tags: webdev, html, vscode, website
Published: 2022-01-20 08:51:00

Web designing is a field where we need more concentration, creativity and skill. Because, a lot of people will go through the website you make. Most of the users will use a mobile phone to browse through the site, while others use their tablet, laptop or desktop. Here the main thing is, all devices are not of the same size. It expands from 5" to 24" or above. We, web developers should make sure that our website will work perfectly and smoothly on these devices. All the contents of the webpage should align perfectly on any device. Have you ever noticed some websites are terribly arranged and the content is not readable. That is why, we should always keep these 5 tips in mind while coding/ developing a webpage.

<h3>1. Design</h3>
   Use a UI design tool like Figma to actually know what the website will look like. Just by doing this, you'll know what to do even before creating the website.

<h3>2. Homepage</h3>
  The thing on which you should spend more time is the homepage. It's the core of your website and it's what make the clients stay on your website.

<h3>3. Keep it Simple</h3>
  Be straightforward. Especially when it comes to a service, always try to be straightforward and tell what you do in the most concise way.

<h3>4. Forms</h3>
If users can buy stuff on your website, please don't make it complicated. Don't ask for useless questions if you do not need it. No one wants to buy things with complicated forms.

<h3>5. Use pictures</h3>
Pictures really can be an excellent way to show your service. Add some visual elements to your website to make the website more 'alive'.



If you can follow these steps, you can make your site more attractive and useful. If you are already following these steps, then keep going.

`Happy Coding!`
How to Install Kodi on Ubuntu
Tags: linux, tutorial, ubuntu
Published: 2022-01-20 08:42:05

This guide will teach you to install Kodi on your Ubuntu Devices. Many of you may not know what Kodi is? Kodi is a free and open source media player, previously known as XBOX Media Centre. With the help of Kodi, You can watch popular Movies, TV Shows, Seasons and Episodes, Music & Audiobooks, Music Videos, Live TV and PVR, Pictures & Comic Books for free. It also [runs on Debian, Linux Mint and other operating systems](https://thedroidgenome.com/how-to/install-kodi-on-ubuntu/).

## Install Kodi on Ubuntu-based Linux distros via PPA

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

Install Kodi on Ubuntu-based Linux distros via PPA. Install Kodi by running following command

`sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi`

Start Kodi by running the following command in Terminal:

`kodi`

## Kodi Repositories

These are following Build Types of Kodi

ppa:team-xbmc/ppa - Final release builds
ppa:team-xbmc/unstable - Betas and release candidates
ppa:team-xbmc/xbmc-nightly - Nightly builds


Install the repository of choice by replacing the build PPA.

`sudo apt install software-properties-common
sudo add-apt-repository -ysP team-xbmc/[build type]
sudo apt install kodi`

## Conclusion

With the help of this guide, we learnt how can we install Kodi on Ubuntu. Feel free to comment down your issues, I will be more than happy to help you.
HashMap explained | Java for Beginners
Tags: java, programming, tutorial, beginners
Published: 2022-01-20 08:35:45

To beginners Java's HashMap can sound a bit confusing and scarry. Here you learn the basics! HashMap stores the data in key-value pairs. To access a value one must know the key. In this video we go over just how and what you can store in a HashMap. In the end you will realize that a HashMap is simple, yet powerful tool to know as a Java developer.

{% youtube I60IEtXlGJ4 %}
Azure Compliance Scanning
Tags: azure
Published: 2022-01-20 08:34:34

---
title: Azure Compliance Scanning
published: true
description: Azure CIS Benchmark
tags: Azure
//cover_image: https://direct_url_to_image.jpg
---
# Azure Compliance Scanning Tool
200+ checks covering industry defined security best practices for Azure. Includes full support for `CIS v1.3`, `HIPAA HITRUST 9.2` and `NIST SP 800-53` compliance benchmarks across all your Azure subscriptions.

**Includes full support for the CIS v1.3 Azure Benchmarks**:

![image](https://raw.githubusercontent.com/turbot/steampipe-mod-azure-compliance/main/docs/azure_cis_v130_console.png)

Includes support for:
* [Azure CIS v1.3.0](https://hub.steampipe.io/mods/turbot/azure_compliance/controls/benchmark.cis_v130)
* [HIPAA HITRUST 9.2](https://hub.steampipe.io/mods/turbot/azure_compliance/controls/benchmark.hipaa_hitrust_v92)
* [NIST SP 800-53 Revision 5](https://hub.steampipe.io/mods/turbot/azure_compliance/controls/benchmark.nist_sp_800_53_rev_5)

## Quick start

1) Download and install Steampipe (https://steampipe.io/downloads).

2) Install the Azure and the Azure Active Directory plugins with [Steampipe](https://steampipe.io):
```sh
steampipe plugin install azure
steampipe plugin install azuread
```

3) Configure your Azure CLI credentials
```sh
az login
```

4) Clone this repo:
```sh
git clone https://github.com/turbot/steampipe-mod-azure-compliance.git
cd steampipe-mod-azure-compliance
```

5) Run all the benchmarks:
```shell
steampipe check all
```

## Reference
https://github.com/turbot/steampipe-mod-azure-compliance
Different types of formatting in HTML.
Tags: html, programming, webdev, beginners
Published: 2022-01-20 08:20:26


There are many types of formatting in HTML. They are used in different instances. All of these methods are a must while designing a webpage. Take a look at each one for better understanding...

## Bold Formatting
```
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Bold Formatting</title>
    </head>
    <body>
        <p>The following word used a <b>bold</b> typeface.</p>
    </body>
</html>
```
- The output of the above code will be this:

The following word used a **bold** typeface.


##Italic formatting
```
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Italic text example</title>
    </head>
    <body>
        <p>The following word used an <i>italic</i> typeface.</p>
    </body>
</html>
```
- The output of the following code is like:

 The following word used an _italic_ typeface.

##Underlined Formatting
```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Underlined text</title>
    </head>
    <body>
        <p>HTML is developed by <u>Tim Breners-Lee</u>.</p>
    </body>
</html>
```
- The output of the above is code is:

HTML is developed by <u>Tim Breners-Lee</u>.

##Marked Text
```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Marked Text</title>
    </head>
    <body>
        <p>HTML is developed by <mark>Tim Breners-Lee</mark>.</p>
    </body>
</html>
```
- The output of the above code is this:
 
HTML is developed by <mark>Time Breners-Lee</mark>.

##Subscript text
```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>Atomic number of a Sodium atom is <sub>11</sub>Na</p>
</body>
</html>
```
- The output of the following code is:

Atomic number of a Sodium atom is <sub>11</sub>Na

##Superscript text
```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>Mass number of a Sodium atom is <sup>23</sup>Na</p>
</body>
</html>
```
- The output of the following code is:

Mass number of a Sodium atom is <sup>23</sup>Na


So, that's all for this session. See you all in the next post...

`Happy c()ding`
Work harder
Tags: discuss, personal, improvement, growth
Published: 2022-01-20 08:14:43

---
title: Work harder
published: true
description: Work harder
tags: discuss, personal, improvement, growth
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wsvpmumlls3j0ucye0uf.jpg
---

_Originally published on [my blog](https://www.nikola-breznjak.com/blog/daily-thoughts/work-harder/)._

> Work hard and go the extra kilometer (miles are overrated 😉) even if there's nothing in it for you. You'll learn that's easier to do when you actually love what you do.

---

This is [why I write](https://www.nikola-breznjak.com/blog/daily-thoughts/why-do-i-write-these-daily-thoughts-posts/) these 'daily thoughts' posts.
How to setup a Svelte with Typescript project
Tags: svelte, typescript
Published: 2022-01-20 08:07:00

TypeScript is a superset of JavaScript that provides optional static typing, classes, and modules. Static types allow TypeScript to provide more accurate type checking and tooling support. Classes and modules enable better organization of your code.

TypeScript can be used with any existing JavaScript codebase. It transpiles down to plain old JavaScript so there’s no need to change your existing codebases.

In this post, we’ll walk through how to set up a Svelte project with Typescript. We’ll start by creating a new project, then, we’ll add Typescript support and configure our project to use it.

##Svelte and TypeScript
Svelte is a new compiler that takes your JavaScript and turns it into efficient, production-ready code. Because Svelte watches the types of your variables and inserts the appropriate checks and optimizations, you don’t have to worry about performance problems or browser compatibility issues.
TypeScript can be used with Svelte to provide type checking and tooling support. This can help you catch errors early in the development process, and ensure that your code is as efficient as possible.

##Creating a New Project
The first thing we need to do is create a new Svelte project. We can do this using the degit command

`npx degit sveltejs/template testApp`

This will install all the svelte project template.

##Setting up TypeScript
Let’s get started by changing the src/app.svelte file with a code editor in our project.
We will set the use of TypeScript language by changing
`<script>`
in
`<script lang="ts">`

Now we will run the setupTypeScript.js file to start using TypeScript in our application by typing in the terminal:

`node scripts/setupTypeScript.js`

Reinstall all dependencies with the terminal command:
`npm install`
And we are ready to go!

##Start the server
We will use the terminal command
`npm run dev`
and the server will be accessible from our browser at the specified url.


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

##Conclusion
Svelte and typescript are a powerful combination for developing web applications. Svelte provides a way to create efficient, production-ready code, while typescript provides type checking and tooling support. Together, they allow you to catch errors early in the development process, and ensure that your code is as efficient as possible.
I hope you found this post helpful! If you have any questions or feedback, please feel free to leave a comment below. Thanks!


Happy coding!
Flutter - Riverpod how to install it
Tags: flutter, tutorial, beginners, dart
Published: 2022-01-20 08:04:20

In this simple and brief tutorial we are going to see how to install this fantastic package when using Flutter.

## So.. How to install Riverpod?

The easiest way to install this package is by simply running "flutter pub add flutter_riverpod" in your terminal; The package will be added automatically in your pubspec.yaml

Since I don't want to give you the fish but I want to learn to you how to fish, that's why I am going to explain about the entire process!  
  
First before installing the package you can retrieve it on [pub.dev](https://pub.dev/packages/flutter_riverpod) named "riverpod_flutter"; Pay attention and don't confuse it with "riverpod" only, cause this last one is meant to work with only Dart.  
  
This is the page: [Pub.dev Riverpod Flutter](https://pub.dev/packages/flutter_riverpod)

Now you can go under the install tab and copy the line to add it manually, it something like this:

```yaml
flutter_riverpod: ^1.0.0
```

I showed you the entire process cause, most probably the version will be changed when you are going to see this tutorial. So you shouldn't copy my line but I suggest you to check the last version from the website.  


After copying this line you should head on to the "pubspec.yaml" and paste it under dependencies

```yaml
dependencies:
 flutter:
 sdk: flutter
 flutter_riverpod: ^1.0.0 <--- You can copy it HERE!
```

In this case will be put under dependencies because we need it in production too!

There are some packages that should be put under dev_dependecies cause are needed only under development, like debugging helpers, loggers etc.

Now if you are using Visual Studio Code, by Saving, a command should start automatically and update your packages, if not or you want to do it manually you can type this command on your command line, also known as Terminal or Shell.

```shell
flutter pub get
```

Now the package has been installed and the only thing that you need to do to use it is to import it on the files that is needed.  
  
If you prefer the video version here it is

{% youtube HbrtQYEPsoo%}
Day 12 of 100 - Java: HRApp project
Published: 2022-01-20 07:42:55

I am bored, very bored. I do not know what to read/do today.

Edit:

I started a timer for 25 mins.

What's up with Java?

- Platform independent
- Object oriented
- Speed - Well written Java is near to C++ and faster than Python.

https://docs.oracle.com/javase/tutorial/

### Date-time Design principles

Clear, Fluent, Immutable

```java
// Fluent principle example
LocalDate today = LocalDate.now();
LocalDate payday = today.with(TemporalAdjusters.lastDayOfMonth()).minusDay(2);
```

Available packages in `java.time`:

- `java.time`
- `java.time.chrono`
- `java.time.format`
- `java.time.temporal`
- `java.time.zone`

### Essential Java Classes

- `Exceptions`
- Basic I/O
- Concurrency
- Regular Expressions
- The Platform Environment

### Capstone project 🚅🎯

`HRApp` with `Employee` and `Department`

https://github.com/j143/java-capstone-01

As per https://mylearn.oracle.com/learning-path/java-explorer/40805/79726

> 💡We can generate `getter` and `setter` methods and `Constructor`s in the IDE
A11y tips: report on elements being shown and hidden
Tags: a11y, tips, html
Published: 2022-01-20 07:38:44

Sometimes we use elements that, by clicking a button, can _**change their state from hidden to visible** or vice versa. This is the case of a drop-down menu or an accordion, for example. And how can we inform the user of a screen reader of these changes? With the ARIA attribute `aria-expanded`.

So, for example, we can find something like this:

```
<button aria-expanded=”false”>Menu</button>
<!-- initially hidden -->
<div class="menu">
[...]
</div>
```

And using the same JavaScript that triggers the `<button>` and displays the menu, we change the value of the `aria-expanded` attribute:

```
<button aria-expanded=”true”>Menu</button>
<!-- will appear visible -->
<div class="menu menu--is-visible">
[...]
</div>
```

As seen in the example, the ideal is that **the content that is shown or hidden is located just after the control** responsible for its visibility, so that when the user activates it, it is right next to it and navigation is more logical.

Although we could use the same system for an accordion, these can be a special case as there are [some HTML elements](https://dev.to/carlosespada/html-tags-details-summary-db5) that offer the same behavior natively **without the need to use ARIA or JS**: the `<details>`-`<summary>` combination.

Disadvantages? It is [not supported by Internet Explorer](https://caniuse.com/mdn-html_elements_summary) and is still somewhat buggy on some assistive technologies, so we **still need to test them using keyboard and screen readers**. To follow the evolution of their support and to know when we can use them without any problem, you can check [HTML5 Accessibility](https://www.html5accessibility.com).
Web 3.0 vs Web 2.0: What are the differences?
Published: 2022-01-20 07:37:38

Web 3.0 seems to become the overriding trend that is gaining momentum each day. Everyone - from developers to investors - are engrossed in bickering over its cons and pros. 

By what makes it THAT special? And why isn't Web 2.0 good enough? Let's find out: https://theappsolutions.com/blog/development/the-difference-between-web2-vs-web3/
Some useful HTML & CSS colours and their codes.....
Tags: html, css, webdev, tutorial
Published: 2022-01-20 07:27:35

In HTML and CSS, we use a lot colors for web development. We give colors to the heading, the body, the content, the text, etc. I found some of the necessary colors for Web Dev. They are listed below :

- AntiqueWhite - #FAEBD7
- Aqua - #00FFFF
- Aquamarine - #7FFFDF
- Bisque - #FFF4C4
- BlueViolet - #8A2BE2
- Brown - #A52A2A
- CadetBlue - #5F9EA0
- Coral - #FF7F50
- CornSilk - #FFF8DC
- Crimson - #DC143C
- Cyan - #00FFFF
- DarkBlue - #00008B
- DarkCyan - #008B8B
- DarkGreen - #006400
- DarkMagenta - #8B008B
- DarkRed - #8B0000
- DarkSeaGreen - #8FBC8F
- DarkTurquoise - #00CED1
- DarkViolet - #9400D3
- DarkPink/DeepPink - #FF1493
- DarkSkyBlue - #00BFFF
- ForestGreen - #228B22
- Gold - #FFD700
- Gray - #808080F
- Green - #008000
- GreenYellow - #ADFF2F
- IndianRed - #CD5C5C
- Indigo - #4B0082
- Lavendar - #E6E6FA
- LawnGreen - #7CFC00
- LightBlue - #ADD8E6
- LightCyan - #E0FFFF
- LightGreen - #90EE90
- LightSeaGreen - #20B2AA
- Lime - #00FF00
- Maroon - #800000
- MediumBlue - #0000CD
- MistyRose - FFE4E1
- Navy - #000080
- Orange - #FFA500
- PaleGreen - #98FB98
- Pink - #FFC0CB
- PowderBlue - #B0E0E6
- Purple - #800080
- Red - #FF0000
- RoyalBlue - #41699E1
- SeaGreen - #2E8B57
- Silver - #C0C0C0
- SkyBlue - #87CEEB
- SpringGreen - #00FF7F
- Violet - #EE82EE
- WhiteSmoke - #F5F5F5
- Yellow - #FFFF00
- YellowGreen - #9ACD32
- SteelBlue - #4682B4
- Teal - #008080
- Olive - #808000
- RebeccaPurple - #663399
- Sienna - #A0522D
- DarkSlateBlue - #483D8B


There are so many more colours other than this, these are some handpicked ones. Follow for more amazing contents like this. Contents will be uploaded everyday. 
`Happy C{}ding`
C# PDF Parser
Published: 2022-01-20 07:13:48

---
canonical_url: https://ironpdf.com/docs/questions/csharp-parse-pdf/
---

With the right tools, it can be easy to work with PDFs in C# and utilize all the functionality you need for a .NET application, including using C# parse PDF file capabilities. This tutorial will use IronPDF, a C# Library, to do that in just a couple straightforward steps.

---

**Step 1**

# 1. Install IronPDF Library

First off, we're going to install the Iron PDF library into Visual Studio. It's free for development and you can have it up and running in your project in just 5 minutes.

Download the [zip file](https://ironpdf.com/packages/IronPdf.Package.For.Parse.PDF.CSharp.zip) or access through the [NuGet package](https://www.nuget.org/packages/IronPdf).

`PM > Install-Package IronPdf`

---

**How to Tutorial**

# 2. C# Parse PDF File

![pdf to csharp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kmjwtsf7nek2fubs29ff.png)

ou can see from playing around that IronPDF has a wide range of functionality to make things easier for working with PDFs in Csharp. It's focused on creating, reading, and editing any PDF document in the formats you need.

To parse PDF files is fairly easy.

In the code below, we use the `“ExtractAllText()”` method to extract every single line of text from the entire PDF document.

Later on, you can see the side by side of the extracted PDF content, as the output.

**C#:**
```
using IronPdf;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace readpdf
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            //Select the Desired PDF File
            PdfDocument PDF = PdfDocument.FromFile("any.pdf");
            //Using ExtractAllText() method, extract every single text from an pdf
            string AllText = PDF.ExtractAllText();
            //View text in an Label or textbox
            label2.Text = AllText;
        }
    }
}
```

**VB:**
```
Imports IronPdf
Imports System.Collections.Generic
Imports System.Drawing
Imports System.Linq
Imports System.Windows.Forms
Namespace readpdf
	Partial Public Class Form1
		Inherits Form
		Public Sub New()
			InitializeComponent()
			'Select the Desired PDF File
			Dim PDF As PdfDocument = PdfDocument.FromFile("any.pdf")
			'Using ExtractAllText() method, extract every single text from an pdf
			Dim AllText As String = PDF.ExtractAllText()
			'View text in an Label or textbox
			label2.Text = AllText
		End Sub
	End Class
End Namespace
```

---

# 3. View Parsed PDF Content

We have used a C# Form to show you the parsed PDF content from the code execution above. This output gives the exact text from a PDF so you can use it for your personal or client document needs.

![pdf and csharp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mygjz6xt8keto2em292l.png)