teleren/devto huggingface dataset:
Future of DApps?
Tags: discuss, webdev, productivity, programming
Published: 2021-01-21 14:50:51

Recently when I was reading an article, I saw the term **DApps** for the first time. For the ones who are also new to this term, let's have a brief introduction.

### **:zap: What are DApps?**
Dapps are decentralized apps. They are like normal apps and offer similar functions, but the key difference is they are run on a peer-to-peer network, such as a blockchain :chains:
That means no person or entity has control of the network.

---

### **:key: Some DApps Alternatives** 
While researching about DApps I found some decentralized alternatives to popular apps that you must check out.

| Alternative For  | DApp | 
| ------------- |:-------------:| 
| **Facebook** | **[MINDS](https://www.minds.com/)** | 
| **Youtube** | **[DTUBE](https://d.tube/)**  / **[LBRY](https://lbry.com/)** |   
| **Whatsapp** | **[SIGNAL](https://www.signal.org/)** |    
| **Reddit** | **[AETHER](https://getaether.net/)** |    
| **Dribble** | **[CREARY](https://creary.net/)** |    
| **Medium** | **[PUBLISH0x](https://www.publish0x.com/)** |    
| **Twitter** | **[PEEPETH](https://peepeth.com/welcome)** |    
| **Instagram**| **[KARMA](https://karmaapp.io/index.html)** |    
| **Gmail** | **[PROTONMAIL](https://protonmail.com/)** |    

---

DApps have many pros and cons, lets see some of them :arrow_right:

### PROS :heavy_plus_sign:
- **Censorship-resistant** : With no single point of failure, it’s very difficult for governments or powerful individuals to control the network.

- **No downtime** : Relying on a peer-to-peer system ensures the Dapps continue to work even if individual computers or parts of the -network go down.

- **Blockchain-based** : As they are made of smart contracts, they can easily integrate cryptocurrencies into the basic
functionalities of the Dapp.

- **Open-source** : This encourages the widespread development of the dapp ecosystem enabling developers to build better dapps with more useful or interesting functions.

### CONS :heavy_minus_sign:
- **Hacks** : As many are run on open-source smart contracts, it allows hackers the rare opportunity to probe the networks looking for weaknesses. 

- **Usability** : A lot of Dapps have poor user-interfaces, which have put a lot of users off.

- **Users** : The more users a Dapp has, the more effective the network is at delivering those services. This is often referred to as the network effect. Dapp's struggle from low user numbers, which can make them less interactive. It can also make them less secure, as a Dapp's security can often rely on how many users it has.

---

## **The Question :warning:**

If you have worked with Dapps or have any knowledge about the same then **give your reviews on being introduced years ago, why it has not been so popularized? and what do you think will be the future of Dapps? 💬 :arrow_down:**
React meetup videos from December
Tags: reactnative, react
Published: 2021-01-21 14:21:03

Greetings,

We've spent several hours to create the latest hand-picked selection of the most relevant React meetup videos from the community from last month. This time you can learn more about combining TypeScript with React, Accessibility, React Native, and some additional tricks to make you a better developer.

You can check it out here:

https://blog.meetupfeed.io/react-meetup-videos-dec-2020/

Happy learning. Best wishes,
MeetupFeed
Free Ruler, maqueta a la perfección!
Tags: mac, frontend, webdev, showdev
Published: 2021-01-21 14:15:31

[![promo](//rollercoin.com/static/img/referral/banners/ref_72890.gif) ](https://rollercoin.com/?r=kl3gfn3b)

[Free ruler](http://www.pascal.com/software/freeruler/) es una herramienta maravillosa si tienes que encargarte del frontend del proyecto de tu cliente (o de proyecto que lleves a cabo dentro de una empresa, por ejemplo una página web).

Podemos descargarla [Aquí](http://www.pascal.com/software/freeruler/) y solo tenemos que entrar a su [Github](https://github.com/pascalpp/FreeRuler/releases) y de ahi descargar el archivo .zip que ofrecen y listo, una vez se descomprime ya tendremos nuestra app. 😄

Lamentablemente esta herramienta es solo para MAC OS (pero relajado, igualmente hay una buena alternativa si trabajas en window , [Ruler For Windows](https://www.arulerforwindows.com/)) 😅

Free ruler es una aplicación que nos da dos reglas, tanto horizontal como vertical.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/waonfn0xsb9un5au3qoc.png)

Simple pero poderosa, esta misma, tanto en vertical como en horizontal podemos expandirla para nuestras necesidades, incluso más grande que nuestra pantalla.

Y solo falta con que muevas tu mouse dentro de su rango para indicarte (en pixeles) la distancia a la que estas, tomando como referencia de izquierda a derecha (en modo horizontal) y de arriba hacia abajo (en modo vertical).

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3uzgtop3btbcwepenz5o.png)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/q3it9sgkr8jt71jxgdur.png)

La mas grande ventaja que yo le veo (y por el cual me moría por tener algo así desde un inicio) es que si presionamos "F" (atajo que sirve para que las reglas siempre estén en primer plano... y para mostrar respeto) se queda fija y cuando sale de su foco se hace transparente, quedando encima de todas nuestras ventanas para poder así medir.

Pero te preguntaras, que para que necesito andar midiendo las cosas?

Simple, al momento de traspasar un diseño que se encuentra en la aplicación Zeplin (o de illustrator, un pdf, yo que se) lo comparo a raja tabla con lo que voy programando (solo html y css 😅).

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ao4fgi2gp383opedlarl.png)

A mí me parece una muy buena aplicación para hacer una revision meticulosamente sobre un diseño que estemos programando, ya sea una pagina web, una aplicación, o una copia de algún dibujo.

Es una herramienta bastante indispensable para mi trabajo (Frontend Developer) ya que diario estoy maquetando con css y muchas veces te tienes que cerciorar de que este todo al mero mole.


<center>
Si te gusto el contenido puedes apoyarme en:
</center>

[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/G2G42SCZF)

<center>
Quieres Ganar Bitcoins y Dogecoins gratis? Da click en el banner!
</center>

[![promo](//rollercoin.com/static/img/referral/banners/ref_72890.gif) ](https://rollercoin.com/?r=kl3gfn3b)
JavaScript meetup videos from December
Tags: javascript
Published: 2021-01-21 14:10:58

Hey guys,

Here's our latest selection of JavaScript related meetup videos for you from December, 2020. You can check it out here. Last month covered lots of interesting subjects, including VS Codes, writing games with JS, improving JavaScript with HTML and CSS and fixing slow running JS codes.

Check it here: https://blog.meetupfeed.io/javascript-meetup-videos-dec-2020/

Regards,
MeetupFeed
Day 1
Tags: 66daysofdata
Published: 2021-01-21 14:10:41

# Journey Starts now!

## thanks to ken-jee i will also be joining the 66 days of data challenge and hopefully i can use this opportunity as an opportunity to jump into the Data science and ML world!

but here's my report for day1
mostly going to be focusing on mathematics.
finished the first unit of the khan academy statistics and probability course.
source: https://www.khanacademy.org/math/statistics-probability/
Angular meetup videos from December, 2020
Tags: angular
Published: 2021-01-21 14:09:55

Hello guys,

We're here with December's most interesting Angular meetup videos. 

You'll learn about module federation, hosting apps on Firebase, using Prettier for style guides and auto formatting. There's also a comparison of different rendering methods SSR (using Angular Universal) and Jamstack, a video about Cypress for fast end-to-end testing and Deno (a secure runtime for JavaScript and TypeScript) as well!

Believe us, it's worth checking out!

See for yourself here: https://blog.meetupfeed.io/angular-meetup-videos-december-2020/
Best Serverless meetup videos from 2020
Tags: serverless
Published: 2021-01-21 14:04:57

Hey there,

We've spend a few hours hand-picking the best Serverless meetup videos from 2020 for you, and we're happy to show you our top 5.

It covers some hot topics, like building applications for Serverless from scratch, migrating existing applications, what the future of Serverless will be like, and how using Serverless can improve a team's effectiveness.

You can check it out here: https://blog.meetupfeed.io/serverless-meetup-videos-2020/

Happy learning!

Regards,
Bence from MeetupFeed
Publish to PowerShellGallery with GitHub Actions
Tags: powershell, powershellmodule, devops, github
Published: 2021-01-21 14:04:05

---
title: Publish to PowerShellGallery with GitHub Actions
published: true
date: 2021-21-01 10:00:00 UTC
tags: PowerShell,PowerShellmodule,DevOps,GitHub
canonical_url: https://robstr.dev/publish-powershellgallery-automatic-github-actions/
---

My next step in automating my PowerShell module development workflow is to have my module deploy to [PowerShellGallery](https://powershellgallery.com) when creating a GitHub release. Last time it was doing [unit testing with pester](https://dev.to/roberthstrand/using-github-actions-to-run-automatic-pester-tests-cm0-temp-slug-6057590), now we want our code to get out in the world.

What I want to accomplish is pretty simple, to make my release process simple. By using [GitHub Actions](https://github.com/features/actions), we can trigger tasks by creating a new release. When creating a release, we checkout our code and run `Publish-Module` like we would locally on our machine. We need an **API Key** , which you can find when you log into PowerShellGallery, and that’s about it.

## Add the API key as a secret

Under settings in the repository you want to set up publishing from, you find the menu item called _Secrets_. Press that big _New secret_ button to add your secret. When you do, you can edit it but you can replace or delete it.

As you can see from my repo, I got one called _PSGALLERY_ and one _CODECOV_, each of them for the respective services.

![image-20201104115018721](https://robstr.dev/images/posts/image-20201104115018721.png)

Let’s see how we can set up our workflow and reference that secret!

## Creating the workflow

Let us take a look at the code, then I can explain what is going on.

```
name: PSGallery
on:
  release:
    types: [published]
jobs:
  psgallery_publish:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
        
      - name: Publishing
        run: |
          Publish-Module -Path '...' -NuGetApiKey $
        shell: pwsh

```

First of all, we define when this workflow is triggered. What we want, is to have this run every time a new release is created and published. Types here can be everything from _unpublished_ to _edited_ so if you have any special needs, the [GitHub Actions documentation](https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#release) covers everything you need to know.

I have created one job called _psgallery\_publish_, that has to steps. One to check out the code, so we have the code locally on the agent we’re using, and one to run the line of PowerShell that actually publishes the module. I usually have the actual code for the module in a directory with the same name as the module itself, that goes into the _-Path_ parameter.

For our secret, we can fetch this by using the `$` snippet. This ensures that you don’t have your actual secret in your public code, and makes it easy to maintain if you ever need to change this key.
Introducing: MeetupFeed
Published: 2021-01-21 14:02:56

Greetings,

I'm Bence from MeetupFeed, wanted to drop by and say hi. Our initiation aims to build the largest and most reliable meetup and dev video database in the world. Our main focus is JavaScript, Angular, TypeScript, React and Serverless, but you can find many other topics on our site as well.

Stay safe!
Speaking about deploying AKS with Terraform, at Azure User Group Norway
Tags: terraform, azure, azurekubernetesservice, aks
Published: 2021-01-21 13:58:41

Next Wednesday, I will be speaking at the Norwegian Azure User Group about Terraform and Azure Kubernetes Service. During the process of creating a Terraform module for a client, I had to solve a bunch of problems related to creating flexible modules which was a great learning experience. As I started to recreate the module for public usage, I also started taking notes on how this works and that's were the basis for this talk comes from.

Afterwards, I'll be talking to Jan Egil Ring (Crayon) and Martin Ehrnst (Vipps) about Terraform, Kubernetes and Azure in general in a roundtable-type discussion.

The event is, of course, free and in English so feel free to join us at [meetup.com](https://www.meetup.com/Azure-User-Group-Norway/events/275667273/)!
Video: How to configure an AWS Lambda Policy within a Gravitee.io API
Tags: aws, awslambda, awslambdapolicy, api
Published: 2021-01-21 13:54:28

Today companies are required to provide more contextually aware content for their customers. 

The following video will explain how an AWS Lambda Policy allows an API flow to gain additional context on the API call being executed:

https://www.gravitee.io/article/video-how-to-configure-an-aws-lambda-policy-within-a-gravitee-io-api
Quarantine Project: Ideations based learning app created using react-native & reactjs
Tags: react, javascript, reactnative, showdev
Published: 2021-01-21 13:47:47

Learning something always requires dedicated time and effort and learning programming is no different. You need to start from the basics and build up the knowledge of syntax and constructs and then write the first hello world program. The rest of the things that we learn in programming are mostly out of requirements. Of course, there are algorithms, DS, and other things that are a must learn for every developer.

I have been a developer for the past 15 years and has worked on many programming languages and frameworks.

The lockdown period of 2020 gave me time to think of a better and easy way o learning the topics. There different coding groups in Instagram that generate simple content like images and we can swipe and see each of them. But most of the content is generated using professional design tools and may not be a necessary skill set of a seasoned programmer.

This gave the idea for microideation. This is a simple platform where a developer or a person with skill can go and create content using basic formatting and images. These are presented to the user as ideations. The ideations are 500 characters or less content and need to be self-contained. They may have links to related content. Users can use simple swipe gestures to see the content and learn about topics. Each topic tasks less than 30 seconds or read time and explains the concept concisely. If the user is interested in a particular subject, they can freeze and follow topics from that.

{% youtube 2B5vs_e4NHs %}

As the topics are 30 seconds read and self-contained, they can be used for casual learning or refreshing of the concepts anywhere-anytime.

I have already created content on programming languages/concepts

Java

React JS

React Native

SQL

Version Control

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/q80q0vmczjb4xjljv5t2.png)

I envision this as an expert-driven community where the the developers or anyone with a specific expertise can create concise content on topics. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pcjbq6uwhqiisn0fej01.png)

This can be checked out at the below link

https://portal.microideation.com/about

Download the app ( No registration required and it's free )

https://play.google.com/store/apps/details?id=com.microideation.app
Daily Challenge #310 - Boolean to String Conversion
Tags: challenge
Published: 2021-01-21 13:43:55

---
title: Daily Challenge #310 - Boolean to String Conversion
published: true
series: Daily Challenge 
description: Create a method to convert a boolean value into its string representation.
tags: #challenge
//cover_image: https://direct_url_to_image.jpg
---
Implement a function which will convert the given boolean value into its string representation.

So for the boolean `false`, return "false"
and for the boolean `true`, return "true" 

**Good luck!**

***
This [challenge](https://www.codewars.com/kata/551b4501ac0447318f0009cd) comes from btaitelb on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!

Want to propose a challenge idea for a future post? Email yo+challenge@dev.to with your suggestions!
Ideas for improving dx of Tailwind with Next.js
Published: 2021-01-21 13:28:23

Hi
I am a a new member and long time lurker of dev.to community. 
Was wondering, does anyone have ideas on how I can make tailwind work faster with next.js in development (e.g by making it run purge css when the development server starts)? It takes a long time for my pages to load when I am in the development mode. 

I get that this isn't a problem as long as production is fast (which it is) but it makes developing with it a drag. Otherwise I am happy with it.
Java vs Kotlin
Tags: java, kotlin, programming, android
Published: 2021-01-21 13:16:47

Although Java has the reputation of being a top-notch programming language, a modern language was required by Android for quite some time. Kotlin has filled this gap, and it has become quite popular amongst the developers at present.

This article will talk about, which is more suitable for Android app development, Java, or Kotlin.

 
What exactly is Kotlin?

Kotlin happens to be a programming language that is used for JavaScript and Java Virtual Machine. Google officially supports Kotlin for Android mobile development. After Android Studio 3.0 was released in 2017, Kotlin was included as a standard Java compiler alternative.

Kotlin can be described as a language for general purposes. Functional features have been introduced by it for supporting Java interoperability. Kotlin aids in enhancing the coding experience practically and effectively. It is compatible with Java 6 or Java 8 and gets the leading IDEs out there.

Unlike Java, it will be possible to write much less code with Kotlin. Consequently, the files are also of smaller size in the case of Kotlin as compared to Java.

 
What exactly is Java?

Being amongst the oldest and the easiest languages, Java is quite popular and has been at the summit for over 20 years. Sun Microsystems is responsible for creating Java, which is an object-oriented language.

Apart from developing Android apps, Java does many more things. As a result, if you can master Java, you will become an integral part of the larger Java market and community, thus having many career opportunities ahead of you.

Being a popular programming language, Java is class-based and object-oriented. Moreover, it will be possible to execute lots of statements rather than executing them sequentially. Put simply, Java can be considered a computing program where it will be possible to create applications.

 Learn more here with pros & cons of java vs kotlin: https://www.rlogical.com/blog/java-vs-kotlin-which-is-best-for-android-app-development/
GitHub Desktop for Ubuntu/Debian Linux
Published: 2021-01-21 13:01:47

I tried a bunch of other methods and none worked. 

Go to github.com/shiftkey/desktop/releases

Scroll down to "Assets" and click it to expand and see the
downloadables.

Download the .deb, .rpm, .snap or .AppImage depending on which
distribution you're running.

run the command

sudo apt install ~/Downloads/whicheverfileYouJustDownloaded

Enjoy your GH Desktop on Linux!
Automatic deploy your React App to GitHub Pages using a shell script
Tags: frontend, react, javascript, showdev
Published: 2021-01-21 13:01:38

---
title: Automatic deploy your React App to GitHub Pages using a  shell script
published: true
description: Just a shell script and git trick to deploy a React application
tags: #frontend #react #javascript #showdev
cover_image: https://images.unsplash.com/photo-1521092375781-38696f9841fe?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80
---

There is a plenty of tools out there for you to use to this purpose, probably the most popular right now is the excellent npm package `gh-pages`. So this is not intended to be a production deploy strategy, but its very simple and cool to know (and could be useful in another contexts, who knows). For this post I'm considering an application created with CRA, but with a few modifications you can use with any application, i guess. Also worth to mention that im running this script on a Debian 10 (also tested on Ubuntu 18).

First of all, add a `homepage` key on your package JSON with the target address of your app, so react will use this address as the base URL while compiling your app:

```json
// package.json

{
  ...
  "homepage": "https://yourusername.github.io/your-project/",
  ...
}
```

Now create a `gh-pages` branch on your project and come back to your `main` (former `master` branch). 

```bash
git checkout -b gh-pages && git checkout main
```

Finally, create an SH file on your project root with the following content (you can use any name, like `deploy.sh` for example):

```bash
#!/usr/bin/env

# checkout to the gh-pages, reset
# and sync the branch with our main
# change here to master if you need
git checkout gh-pages
git reset --hard origin/main

# install dependencies and create
# the react app build
npm install
npm run build

# delete everything on the directory
# except the build folder
find * -maxdepth 0 -name 'build' -prune -o -exec rm -rf '{}' ';'

# move the build folder content
# to the repository root
mv ./build/* .

# deletes the git cache and push
# the new content to gh-pages
git rm -rf --cache .
git add .
git commit -m "deploy"

git push origin gh-pages --force

# go back to main (or master)
git checkout main
```

Pay attention on the `main` branch references on the script and change them to `master` if its your case, and dont forget to give execution permission to your script:


```bash
sudo chmod +x ./deploy.sh
```

And all done. If you run your shell script, your React App will be deployed to `gh-pages`:

```bash
./deploy.sh
```

Cover image by Ali Abdul Rahman on Unsplash.
Thats all folks.
Daily Developer Jokes - Thursday, Jan 21, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-01-21 13:00:22

---
title: "Daily Developer Jokes - Thursday, Jan 21, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Thursday%2C%20Jan%2021%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12589ca2833.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*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 was the function sad after a successful first call?

___A:___ It didn’t get a callback.
 -->