teleren/devto huggingface dataset:
What to choose ?
Tags: frameworks, webdev, help
Published: 2020-08-20 14:26:00

Hi! I'm lost.

What a way to start a post.

My English is not very good (I speak french) so sorry about that.

I'm a bit new the web development world and I have to choose a framework to do a project with my friend.
But when I see all the options, I'm just terribly lost.

I was looking for a framework that is "full-stack" with a MVC approach, like RoR or Django. I tried RoR and it's pretty cool, huge learning curve and a very weird thing that's called "convention". So whenever I name a file, someway it's linked to somefile somewhere and I don't even know about it. Mmh okey don't like that at all. 
So now I'm looking at Django. I didn't start yet, that's why I'm doing this post.

What do you think I should do ? Still going for RoR? if I don't like convention go for Django ?

Or, a completly different approach, a stack like Spring Boot - Angular with a REST API. I'm good at Angular, I did that for +1 year, but spring I don't know anything about it. Is it a better solution ? A more viable solution for the future ?

I really don't know. It's been 3 weeks I can't decise wich stack to take and stick with it.

That's why I did this post and hopefully, some kind soul will help me get out if this sticky situation.
Project - Text Classification
Tags: machinelearning, datascience, python
Published: 2020-08-20 14:22:32

Project Link : https://github.com/piyushP7pravin/Text-Classification

MultinomialNB implements the naive Bayes algorithm for multinomially distributed data, and is one of the two classic naive Bayes variants used in text classification.

I have used Multinomial Naive Bayes algorithm to classify the given text document to different categories.
I have used 20,000 documents from 20 newspaper categories, made dataset from the given documents. Built a Multinomial Naïve Bayes Classifier from Scratch that classifies any test document to one of the 20 categories. Made a comparison report between the results of our Naive Bayes implementation with Sklearn Multinomial Naïve Bayes Classifier.
Overall accuracy seems to be almost same for both cases.
Redis University
Tags: redis, university
Published: 2020-08-20 14:18:38

---
title: Redis University
published: true
description: Have you heard about Redis University? 
tags: redis, university
cover_image: https://university.redislabs.com/assets/images/redis-university-banner.jpg
---

Hey folks! This week the Redis University launched the **RU330: Redis Security Course** which is great if you are interested in adding more security layers to your redis servers.

You can find the overview here: [RU330: Redis Security](https://university.redislabs.com/courses/ru330/)

There are also courses for Python, Java & JS devs with Redis, a 101 Redis course and more.

Here is the link for the [Redis University](https://university.redislabs.com/)

You can also got a T-shirt once you finished the 101 :sunglasses:
![T-shirt](https://media.discordapp.net/attachments/697902023793967177/745683047730642994/redis-sec.jpeg)
A first look at the roguelike boilerplate
Tags: roguelike, javascript, webdev, gamedev
Published: 2020-08-20 14:05:58

I've been working on this game template you can use to make your own roguelike game using javascript and web tech. Today I recorded a short screencast showing what is included in the default game that comes with the boilerplate.

{% youtube d1zhoXwOdtQ %}

If you want to get hold of this when it comes out you can pre-order the package here: https://chr15m.itch.io/roguelike-browser-boilerplate

Enjoy!
GOC Experience
Tags: career, challenge, motivation
Published: 2020-08-20 13:51:59

# GOC

I had applied to the Google SDE Internship 2021 a few days ago and I then received a mail from Google for participating in Google Online Challenge - Coding (Intern). 

This is an invitation based contest, there are 2 coding questions to attempt with a 60-minute time limit for completion. It took place on August 16, 2020, and there were questions of average difficulty level of 30 pts. each, a total of 60 pts. 

## Problems 

The problems were of average level and it was quite easy to clear partial tasks but I had to optimize my approach in order to clear hidden test cases. In 60 minutes of time, I was able to solve the problems partially and I tried to optimize them but was not able to do so.

> #### Note 
> The intention of this post is not to brag about myself but just to give everyone a sense of how it works and what exactly is GOC.

If you're willing to get into any of FAANGs, you should know about this.

Get connected to me at:

- Github: https://github.com/satyam1203
- LinkedIn: https://linkedin.com/in/satyam1203
What's your experience with text IDs in SQL database?
Tags: discuss, sql
Published: 2020-08-20 13:44:16

---
title: What's your experience with text IDs in SQL database?
published: true
description: Which text id to choose for large volume of data in table, UUIDs or custom text ids?
tags: discuss, sql
//cover_image: https://direct_url_to_image.jpg
---
I'm thinking of usage of text IDs in SQL database, similar to how Stripe generates them, e.g.: `ch_19iRv22eZvKYlo2CAxkjuHxZ`.

I found [this](https://stackoverflow.com/questions/41970461/how-to-generate-a-random-unique-alphanumeric-id-of-length-n-in-postgres-9-6?noredirect=1&lq=1) StackOverflow very helpful.

I could use the function to generate such IDs with some entropy provided by `pgcrypto` extension function `gen_random_bytes`, but still, I'm hesitant.

Especially, after reading this comment: 
> No, it absolutely is not safe to use in any way shape or form which is why I'm for closing this question. If you want something that's safe to use, use UUID. If you want to play around with something likely to burn you severely and leave you crying. A solution which requires you create your own function that is worse in every way than the stock feature set to do this, then have it at. =)

I would not like to reach a point later on production when the IDs start to duplicate.


Therefore, I'm more biased to use UUIDs, which on the other hand are not very user-friendly, e.g. when they are used in URLs, reports, etc. I personally like the way Stripe does it.

What's your experience? Did anyone do sth similar to Stripe? Did you face any problems?
[Tutorial Linux] Terminal: Criando diretório
Tags: linux, terminal, mkdir, braziliandevs
Published: 2020-08-20 13:24:28

No terminal digite:

```
$ mkdir <nome_do_diretório>
```

- **$** indica que você deve usar o **usuário comum** para fazer essa operação.

- **mkdir** do inglês, *make directory*, é o comando que vai criar o nosso novo diretório/pasta.

- digite o nome do diretório sem os sinais **< >**.

![criando diretório](https://dev-to-uploads.s3.amazonaws.com/i/0rcu5xcfrd7irl70ua4m.gif)

Para ver um retorno da tela de que o diretório foi criado com sucesso, basta usar o argumento **-v**, assim

```
$ mkdir -v <nome_do_diretório>
```

- **v** de *verbose*, retorna na tela o que o sistema fez ou está fazendo.

![criando diretório com retorno na tela](https://dev-to-uploads.s3.amazonaws.com/i/o77wi5o5078p98q666ns.gif)

## Criando vários diretórios ao mesmo tempo

Para criar mais de um diretório ao mesmo tempo, basta usar o comando mkdir, com o nome dos diretórios e um espaço entre eles. 

Exemplo:

```
$ mkdir js css img
```

Acima, criamos três diretórios simultaneamente.

![criando 3 diretórios](https://dev-to-uploads.s3.amazonaws.com/i/u9xpgnbgjqf2hlyxbll8.gif)

## Criando um subdiretório

Para criar um subdiretório, em um diretório já existente, digite:

```
$ mkdir <diretório_que_já_existe>/<novo_diretório>
```

![criando subdiretório](https://dev-to-uploads.s3.amazonaws.com/i/ug2mimoi02ycarnhjpqo.gif)

## Criando um diretório e um subdiretório

Para criar um diretório e um subdiretório ao mesmo tempo, digite:

```
$ mkdir -p <diretório>/<subdiretório>
```

- **-p** do inglês, *parents*, se o diretório pai não existir, ele será criado. É o que permite a criação dos dois juntos; o diretório filho e o diretório pai.

![criando diretório e subdiretório](https://dev-to-uploads.s3.amazonaws.com/i/y0v3qilsn2k2m3936sij.gif)
cargo nix-installを作るぞ
Tags: rust, nix, diary
Published: 2020-08-20 13:20:06

Cargoは普通Rustのパッケージマネージャとして使われますが，`cargo install`でRust製コマンドラインツールをインストールすることもできます．
インストールできるツールには[cargo-edit](https://github.com/killercup/cargo-edit)や[cargo-geiger](https://github.com/rust-secure-code/cargo-geiger)のようなRust開発を便利にするツールのほか，[bat](https://github.com/sharkdp/bat)や[ripgrep](https://github.com/BurntSushi/ripgrep)といった日々使うCLIもインストールできます．

このように`cargo install`は便利なのですが，自分はNixを常用しているのでこれらのツールもNixで管理したいわけです．
特に問題となるのが，外部ライブラリへの依存です．
例えば，diesel-cliは(デフォルトで)Postgresqlに依存しているため，`cargo install`するにはPostgresqlをインストールしなければいけません．
これを`nix-env`で管理するのは二度手間ですし，`nix-shell`の場合はGCによって依存先が消えてしまうリスクもあります．

そこで，Nixを使ってRustクレートをインストールするツール`cargo nix-install`を考えてみました．
概ね次の手順でよいでしょう:

1. クレートをフェッチする．
2. crate2nixでNixファイルを生成．
3. nix-envでインストール

まず初めにクレートを`crates.io`(もしくはGitリポジトリ)からフェッチしてあげなければいけません．
次に，Nixでビルドするための`default.nix`を生成します．
ここでは，[crate2nix](https://github.com/kolloch/crate2nix)を使うことにします．crate2nixはRust依存関係を各クレートごとに別々のNixパッケージとしてビルドするので，Nixをビルドキャッシュとして有効活用できます．
最後にNixパッケージとしてビルドしたツールを`nix-env`でインストールしてあげます．これによってアンインストールもNixで行うことができます．

実装するぞうおおおお
Video Calling and Screen Sharing with React, WebRTC
Tags: javascript, react, webdev, showdev
Published: 2020-08-20 13:09:51

With the advent of a huge push in video calling technologies due to Covid-19, I started growing ever so curious about how all of it works. As I looked more and more into it, I discovered a lot, learned a lot and wanted to build an application for myself!

May I present to you **Cuckoo: Free and anonymous video calling** 
*drumrolls* please 😂

## Technologies used:
- [WebRTC](https://www.webrtc.org)- facilitates real time data communication between two peers. 
- [simple-peer](https://www.npmjs.com/package/simple-peer)- Simple-peer library acts as a wrapper over WebRTC and makes it simpler.
- [socket-io](https://www.socket.io) as a wrapper over web sockets.

## Features
- Audio call
- Video call
- Screen sharing

Try it live: [live demo](https://cuckooapp.herokuapp.com)

This project is available at GitHub - 
{% github somikdatta/cuckoo %}

Try it if you find it interesting!

If you liked what I made, **please consider leaving a star ⭐ on the [GitHub repo](https://github.com/somikdatta/cuckoo) to keep me motivated for better projects**
Happy-PR: Pull Request Sentiment Analysis with GitHub Actions
Tags: actionshackathon, github, opensource
Published: 2020-08-20 13:08:31

---
title: "Happy-PR: Pull Request Sentiment Analysis with GitHub Actions"
published: true
description: My submission to the GitHub Actions x DEV Hackathon!
tags: actionshackathon, github, opensource
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/vykq6xws0y0wtvoiu79o.png
---

![Example of a Pull Request response with the bot responding with a Sonic Dancing Gif](https://dev-to-uploads.s3.amazonaws.com/i/4hufpelggt5q2la462ue.png)

### My Workflow

I'd been intrigued by GitHub actions ever since they were announced, but I was never really sure of *how* they worked or fit into the GitHub Repository ecosystem - and this seemed like a great time to jump in and try them out! 

When starting something new, my favorite way to do things is take an existing thing and play with it. I took the basis of [action-cats](https://github.com/ruairidhwm/action-cats) and modified it to respond with a different gif based on the sentiment of the PR description using [the npm package sentiment](https://www.npmjs.com/package/sentiment) (sentiment analysis was another thing I have been wanting to dabble with for a while now). 

So what exactly is [happy-PR](https://github.com/TerabyteTiger/action-happyPR)? 

1. It takes the description of new pull requests and runs it through sentiment to return a value from -5 to +5, with -5 being extremely aggressive or angry and +5 being extremely positive or happy. 
2. It responds to the Pull Request with the score and an associated gif (there's one for each integer from -5 to +5 - can you collect them all? 😉)

You can see an example of the response on [this PR](https://github.com/TerabyteTiger/action-happyPR/pull/32)

### Submission Category: Wacky Wildcards

I don't think this is particularly useful - it's really just a reason to try out GitHub Actions 🥳

### Yaml File or Link to Code

The Repo can be found here: 

{% github https://github.com/TerabyteTiger/action-happyPR %}

Or if you want to integrate it with your repository, on the marketplace here: https://github.com/marketplace/actions/happy-pr

### Additional Resources / Info

Thanks again to [action-cats](https://github.com/ruairidhwm/action-cats) for the great starting point with getting this up an running!

### Potential Changes

Random thoughts I had about this action that could be added:

- Initially I wanted to  include 10 more gifs for the .5 increments, but that felt like a distraction from getting the action working (and picking half step sentiment gifs is pretty hard as it turns out)
- It could include a "minimum sentiment" option and automatically reject any PR without a minimum rating, although I'm not sure how much this could be impacted by spamming a bunch of "positive" words to average out the score
Dave Thomas and Andy Hunt Talk About Ethics in Software
Tags: computerscience, career, devpride
Published: 2020-08-20 12:59:04

Dave Thomas and Andy Hunt chatted about why being a developer is probably the best career there is in the most recent preview of the GOTO Book Club episode. 
They also touched upon the responsibilities that derive from that and why developers should think about the impact their software is making in the world.

[![Ethics in Software](http://img.youtube.com/vi/wX0eQ6LcgDk/0.jpg)](http://www.youtube.com/watch?v=wX0eQ6LcgDk)
Day 0
Tags: 100daysofcode, codenewbie, webdev
Published: 2020-08-20 12:42:54

Hello everyone! I'm Mobarak or some people joke as Momo or MoBarack Obama, so I decided to make this my username everywhere.

I'm currently new to programming and have only started when I entered university as a Nanotechnology Engineer at the University of Waterloo. I am currently entering second year and it's going to get more challenging, but I assure you, I will put my best effort in every (most) step of the way. 

Web development has peaked my curiosity, and even though my study term is coming by soon in September, I hope to learn what I can in this area steadily.

I intend to learn the basics as well as take my next steps in python through the #100daysofcode challenge! I'm really excited to see where this will take me. 

So, let's go!
The text won't scale with CSS scaling
Tags: html, css, webdev, help
Published: 2020-08-20 12:32:13

So I'm trying to make a responsive page for different size devices. I was making some progress, but now my text and picture is not scaling well and becomes too big when in tablet size... And mobile size is not scaling well either. Also, there is something wrong with the footer. Can someone help with this? Here are the HTML and CSS code: https://codepen.io/Sampsa96/pen/oNxzrMW
Data Sources For Social Justice Focused Projects: Health, Food and Nutrition
Tags: codenewbie, datascience, resources
Published: 2020-08-20 12:25:25

As I start planning a new project, I start by thinking about the problem I want to solve with a new application. I have always been interested in social justice issues, so I aim to create tools that can make a difference for a person or a community. Sometimes, the hardest part of the planning and design process can be finding the right data source that can transform a rough idea into reality. 

This series will include collections of FREE data sources I've been exploring as I start to plan my next social justice focused project. I hope these resources might help inspire your next project too!

## Health, Food and Nutrition

### [Youth Risk Behavior Surveillance System Data](https://catalog.data.gov/dataset/nutrition-physical-activity-and-obesity-youth-risk-behavior-surveillance-system-494b4)
- Data focused on health and risk behavior factors in youth, such as diet, physical activity, and weight. *(JSON, CSV, and XML formats)*
- Could be used to display and analyze trends in these behaviors. Comparisons can be made across states and over time for each state.
![Imgur](https://i.imgur.com/kzNnnrm.png)

### [Food Environment Atlas](https://catalog.data.gov/dataset/food-environment-atlas)
- Includes indicators such as store proximity, food prices, assistance programs, and community characteristics. *(XLS and CSV format)*
- Could be used for mapping projects to show food availability and food deserts, with comparisons to other indicators.
![Imgur](https://i.imgur.com/4QRnVmi.png)

### [MyPyramid Raw Food Data](https://catalog.data.gov/dataset/mypyramid-food-raw-data)
- A zip file including multiple files focused on nutritional information for thousands of foods. *(xml or xlsx format)*
- Could be used to analyze and calculate the nutritional impact of meals, or as supplementary information in a recipe application.
![Imgur](https://i.imgur.com/RixwEW0.png)
![Imgur](https://i.imgur.com/j2h855z.png)

### [Current Population Survey Food Security Supplement](https://catalog.data.gov/dataset/current-population-survey-food-security-supplement)
- A national survey with data related to food insecurity, food expenditures, food program participation, and ways of coping with food insecurity. *(CSV format)*
- Could be used in a mapping project, or making comparisons across states or years.
  - *I'm having trouble accessing this data set right now, but keeping it on the list to investigate further!*

*These are just a few to start with, and I'll keep adding to the list as I explore more. Please share any health, food and nutrition data sources (or  project ideas) you've found useful in the comments!*
Source of an Van Emde Boas Tree Layout for Binary Search Trees
Tags: help, discuss
Published: 2020-08-20 12:17:44

Hi all,
where can I find the source code (preferably in Java or Kotlin) for a Van Emde Boas Tree Layout? As it's the best layout for arranging a static binary tree and even for an updatable binary tree (with an array packed structure) I wanted to see a "real world" implementation.

It's also okay to find an implementation in another language.

As it's a cache oblivious method I wonder if the implementation is not practical at all.

kind regards
Johannes
Issue in Laravel Goutte Web Scraping?
Published: 2020-08-20 12:08:07

Can anyone help me to doing web scraping using laravel goutte, i build tool seoindicate: https://yuvrajhinger.in/seoindicate.

I need to scrape 50-100 request at a time, i got crawling blocked issue.

I need to try for rotate proxies in laravel.

Can any one provide me code for that how to rotate proxies, ip or useragent in laravel for web scraping or any other solution for that?
Prometheus and AlertManager step by step configuration with blackbox exporter on Ubuntu 18.04
Tags: prometheus, devops, linux, cloud
Published: 2020-08-20 12:04:18

**Prometheus** is a monitoring tool designed for recording real-time metrics in a time-series database. It is an open-source software project, written in Go. The Prometheus metrics are collected using HTTP pulls, allowing for higher performance and scalability.

**For complete tutorial please follow the below link ..**

https://medium.com/@rakeshjain_17559/prometheus-and-alertmanager-step-by-step-configuration-with-blackbox-exporter-on-ubuntu-18-04-f2b76f52f1ad
Laravel Echo not listening Event from Pusher 
Tags: laravel, vue, help
Published: 2020-08-20 12:00:43

I have an issue.I am accessing my pusher info from `.env file` through process.env.VARIABLE_NAME inside `bootstrap.js`(As defined inside laravel Docs in broadcasting section), but it gives me an error.I am working on laravel Pusher with VueJs.

**bootstrap.js**
```javascript
import Echo from 'laravel-echo';

window.Pusher = require('pusher-js');

Vue.prototype.$echo = new Echo({
    broadcaster: 'pusher',
    key: process.env.MIX_PUSHER_APP_KEY,
    cluster: process.env.MIX_PUSHER_APP_CLUSTER,
    forceTLS: true
});
```

**My Vue File**
```javascript
    mounted() {
        Vue.prototype.$echo.private('expense')
        .listen('ExpenseNotification', (e) => {
            console.log('irfan ullah shakir');
        });
    }
```

**Error:**
```
[Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'private' of undefined"
```

*Code works fine to broadcast event to pusher, but have problem in receiving through 'Echo' inside vue mounted hook*
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/iq16ppzz1odhbz4zx2u4.PNG)
Daily Developer Jokes - Thursday, Aug 20, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-08-20 12:00:04

---
title: "Daily Developer Jokes - Thursday, Aug 20, 2020"
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%20Aug%2020%2C%202020"
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/5e12592cb43a5.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:___ What did the Class say in court when put on trial?

___A:___ I strongly object!
 -->
S1E05: Simplifying AR - How eye tracking will reduce complexity and improve UX
Published: 2020-11-18 00:42:54

---
title: S1E05: Simplifying AR - How eye tracking will reduce complexity and improve UX
published: true
date: 2020-08-20 12:00:00 UTC
tags: 
canonical_url: https://anchor.fm/xrseapod/episodes/S1E05-Simplifying-AR---How-eye-tracking-will-reduce-complexity-and-improve-UX-eicg30
---

In this episode, we'll dive deeper into eye-tracking use cases and share 3 areas of impact that'll support expanding the adoption of AR & spatial computing.

Share your thoughts & feedback via LinkedIn or Twitter by tagging us at @xrseapod. Feel free to request any topic, company, or person you would like us to interview.

--- Send in a voice message: https://anchor.fm/xrseapod/message
Kubernetes hands on series - Upgrading Production Kubernetes cluster created with kubeadm
Tags: kubernetes, devops, linux, cloud
Published: 2020-08-20 11:58:34

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

**This tutorial will explain how we can upgrade a Kubernetes cluster created with kubeadm from version 1.17.x to version 1.18.x or from version 1.18.x to 1.18.y (where y > x).``**

Please go through the link below for full tutorial ..

https://medium.com/@rakeshjain_17559/kubernetes-hands-on-series-upgrading-production-kubernetes-cluster-created-with-kubeadm-6340821bc92