teleren/devto huggingface dataset:
Health Assistant
Tags: hackwithdg, speechrecognition, maui
Published: 2022-04-08 17:21:19

### Overview of My Submission
With the submitted app **Health Assistant** users can enter vital parameters with their voice and store it easily electronically. 
The program can gather these body parameters 
- Blood Pressure
- Glucose
- Heart Rate
- Temperature 
- Weight

To put in the data a kind of chat is used to ask the user for missing info and to provide feedback to the user.

After you start the app, start the recognition and just say
> My weight was 86 kg today at 8 O'clock.

If the intent and the necessary parameters where recognized the app asks for a confirmation and stores the record. If not all necessary data is given directly the program will ask for it.

It is also possible to control the app. For example to display an overview of the stored data just say 
> Show weight

The image shows an example for such a conversation to record data.

![Example of the UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ijl6zdkz3v6hnpzi62x.png)

### Submission Category: Accessibility Advocates
I used this category because the app should help people with no experience with computers or disabilities to store important health data in an electronic record so that they can share it easily with physicians.

### Link to Code on GitHub
The code for this sample app is shared in this Git repository. Here you can also find more technical details.
{%embed https://github.com/FrankPohl/HealthAssistant %}

###License
The code is licensed under the Apache-2 permissive license. Please find the [license file in the repository](https://github.com/FrankPohl/HealthAssistant/blob/main/LICENSE).

### Additional Resources / Info
The app in the repository can only be built with the preview version of Visual Studio 2022.
Check out the video in my YouTube channel to see the app in action.
[Dev-Deepgram-Hackathon Demo](https://youtu.be/3R08QHkPRLo)

### Improvements
For sure, there is always room for improvement and especially with such a tight schedule and a lot of new technology to learn.

- The results would be even better if a specialized model in Deepgram is used.

- I'm not sure whether the approach to process/analyze the text that the Deepgram service has recognized is sufficient. Usually, people would create some kind of AI for that but my educated guess is, that this is not necessary - ELIZA worked also without any AI. With this approach the latency for analysis and recognition by the Deepgram service deliver a fluent interaction for the user. More sophisticated analyses would take more time and may disturb the flow.

- Clearly not all possible input is taken into account in the analysis, and it has to be analyzed what utterances are used. Unfortunately (at least from this point of view) the recognized text is not available in the Deepgram dashboard of the service.
Rollballers’ Hub is LIVE
Tags: developers, errors, debugging
Published: 2022-04-08 17:18:42

[Rollballers’ Hub is LIVE](https://rollbar.influitive.com/join/ILun8 )

Rollbar is thrilled to announce the launch of Rollballers’ Hub, an exciting new program built to reward our customers!

Sign up and complete onboarding for a chance to win an Oculus Quest 2 Virtual Reality Headset!

Joining our hub is an easy way to learn additional tips&tricks of using Rollbar, share your own best practices, mingle with other Rollballers, and shape the Rollbar product roadmap while unlocking gifts and swags for your activites.

Participate in challenges, surveys, beta programs, and other fun and exciting activities.
Earn points and badges for every activity you complete and climb the leaderboard.
Get rewards like Amazon gift cards a private user group, exclusive Rollbar swags, or even a Nintendo Switch.

[Join The Hub](https://rollbar.influitive.com/join/ILun8)

- Happy Coding
Type Conversion.
Tags: csharp, dotnet, webdev, tutorial
Published: 2022-04-08 17:15:48

## Type Conversion
:
 - **<u>Implicit</u>**: byte b = 1; //takes 1 byte of memory
             int i = b;  //integer takes 4 bytes
             (you can copy a byte into an int, but not 
              an int into a byte). // won't Compile

 - **<u>Explicit</u>**: float f = 1.0f;
             int i = (int)f;(casting)

 - **<u>Conversion between non-compatible types</u>**:
             string s = "1";
             int i = Convert.ToInt32(s)
             int j = int.Parse(s);  
     

 **<u>Convert Methods():Examples</u>** 

             ToByte() //To convert to a byte
             ToInt16() //To convert to a 16 "Short"
             ToInt32() //To convert to a 32 "int"
             ToInt64() //To convert to a 65 "Long"
BI for EngOps with Metabase
Tags: devops, dora, productivity, github
Published: 2022-04-08 17:04:46

[Faros Community Edition (CE)](https://github.com/faros-ai/faros-community-edition) is an open-source engineering operations platform that connects the dots between all your operational data sources for a single-pane view across the software development life cycle. **Metabase powers Faros CE.**

### What can you do with Faros CE thanks to Metabase?

Faros CE provides ELT, APIs, BI, and automation for engineering operations data. With Faros CE, you can answer questions about bottlenecks in your CI/CD pipelines, issues in your onboarding processes, progress towards your goals, with data that is fresh, connected, queryable, and most importantly, all in one place. Let’s dive in to show how Metabase makes that simple.

Let’s take **lead time** for example. Lead time is a software delivery metric popularized by the DevOps Research and Assessment (DORA) organization, that measures the time it takes for changes to go from idea to production. That number in itself is not sufficient, however. It is important to put it in context. And Metabase makes it simple to provide that context! In the Faros CE DORA Metabase dashboard, you can see 
* How your lead time compares to known industry benchmarks thanks to the gauge visualization with ranges
* The evolution of lead time for each of your applications over time with a line chart
* The breakdown of lead time by stage, so you can start to see where the bottlenecks are in your software delivery process thanks to stacked vertical bar charts.

![Lead Time Metrics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6wzc3pmbpq1s00x033pv.png)

Our users love to:
* [Zoom into the underlying data](https://www.metabase.com/docs/latest/users-guide/interactive-dashboards.html#open-the-action-menu) by simply clicking on the charts.
* [Create their own metrics and charts](https://www.metabase.com/docs/latest/users-guide/04-asking-questions.html) in Metabase from scratch or from our canned charts, without the need for SQL and with previews at every stage
* Use [X-Rays](https://www.metabase.com/docs/latest/users-guide/14-x-rays.html) for fast insights in their datasets

**This interactivity in Metabase creates a virtuous cycle of increased trust into the metrics and increased usage and exploration. And that cycle is easily bootstrapped.**

![Faros CE Architecture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1jva170temliq7bl7b8.png)
What online games do you play with your remote co-workers?
Tags: watercooler, discuss
Published: 2022-04-08 16:56:34

In the remote world where a lot of us are now, what online games, if any, do you play with your co-workers?

Photo by <a href="https://unsplash.com/@metelevan?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Andrey Metelev</a> on <a href="https://unsplash.com/s/photos/game?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Mac OS Python build from source with optimizations and debugging
Tags: python, osx, programming
Published: 2022-04-08 16:56:15

```
brew install openssl xz gdbm zlib
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/sqlite3/lib -L/opt/homebrew/opt/zlib/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/include -I/opt/homebrew/opt/sqlite3/include -I/opt/homebrew/opt/zlib/include"
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/sqlite3/lib/pkgconfig"

#configure python source
./configure --enable-optimizations --with-pydebug --with-openssl=$(brew --prefix openssl)
```
A fun little poem on frontend JS frameworks
Published: 2022-04-08 16:54:49

I took the popular JS frontend frameworks in [The state of JS 2021](https://2021.stateofjs.com/en-US/libraries/front-end-frameworks) and wanted to write a little fun poem including most of them. Here is my take below:

> Let your mind be Lit with Vue, Stimulus and Ember to Vite your way with Svelte in an Angular vortex. Alpine in the Solid woods will make you Preact but don't React. Eventually everything is a Remix. Eagerly waiting for what is Next. :-)

Note that there is no implied meaning to how the poem is structured.
Day-62 Training At Ryaz
Tags: javascript, webdev, beginners, programming
Published: 2022-04-08 16:51:49

- Date:8/04/2022
- Day:Friday

Today, I started at about 10:00 am  as I was done with second module of the java script course so, today I was to start with the third module so, I started with the Dom module so, the instructor started with the introduction of Dom i.e Document Object Model as Dom is a platform and language neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document like If we have a button and when we pass the red collar it turns red and if it is fed with some other color so, it turns that so, this changes and structuring comes under Dom then instructor started with implementation of guess the number so, we have to guess the number and put in the box so, then we have to check the number so, it then shows that number is correct or not after this the instructor started with the Dom maculation as he says that Dom is not part of js but web api can interact with js so, then I did the manipulating the events and after this handling the events and at last I learn about manipulating css styles.so,this way my day ended up and I got to learn many new things.
Symfont, Elasticsearch - front controller and API documentation - Part 3 Tutorial
Published: 2022-04-08 16:38:15

Hi, the 3d article devoted to the theme: “How to work with ElasticSearch using Symfony PHP framework” already ready for reading. Here will speak about package dependencies we are going to use, some project structure aspects, controller, REST API and response/request models. All details are here: ["Symfony, elasticsearch - front controller and api documentation"](https://sergiiblog.com/symfony-elasticsearch-front-controller-and-api-documentation/). Have a pleasant reading.
#day 18 of solving [51/480]
Published: 2022-04-08 16:21:06

[sum-of-two-integers](https://leetcode.com/problems/sum-of-two-integers/)

As explain in previous post  why python can't handle carry:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edk87keuh36tflkntl1l.png)

[reverse-integer](https://leetcode.com/problems/reverse-intege)\

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03o5tj1x85dbmcq1qcuv.png)
 
[myAtoi Algo ](https://leetcode.com/problems/string-to-integer-atoi/)
🌱 What was the most exotic codebase you had ever worked on?
Tags: discuss, watercooler, todayilearned, programming
Published: 2022-04-08 16:19:50

My acquaintance works for a company specialized in processing flight data in real time. I'm not certain about the detail, but apparently, the common backend solutions like Java, Node, Ruby etc. are not sufficient. In the end, they built everything using C. You heard it right, the backend was built with C, that was mind-blowing to me. 😲 

With that said, what was the most exotic codebase you had ever worked on? What led you and your team to the decision? How was your experience with that solution?
[Conceito] - Modelagem Relacional com NoSQL
Published: 2022-04-08 16:18:32

> Conteúdo original [nessa thread do Twitter](https://twitter.com/zanfranceschi/status/1512463540690378753)

---

Ei dev,

Você já deve ter ouvido falar que NoSQL significa NOT ONLY SQL. E isso quer dizer que você pode, sim, também fazer relacionamentos com bancos NoSQL.

É um pouco diferente, poucos falam, mas é possível! E pode ser muito bom em alguns casos. 💕 

cc @sseraphini

🧵

![img](https://pbs.twimg.com/media/FP1ZkqeUYAEIqb5?format=jpg&name=medium)

---

Vou abordar um conceito que deve ser facilmente aplicável em bancos NoSQL do tipo documento e chave-valor, ok? (MongoDB, DynamoDB, p.e.).

Os exemplos aqui usam JSON pq é fácil de entender e pode ser análogo a esses dois tipos de bancos NoSQL. Suave?

---

Frequentemente vi times com pouca experiência em NoSQL aplicarem o padrão "tipo por tabela" ("coleção" no caso do mongo). Ou seja, vai existir uma tabela pra usuário, outra pra produtos, etc.

---

E as relações um-para-muitos ficam aninhadas. Como nesse exemplo de usuários que podem ter mais de um endereço.

![img](https://pbs.twimg.com/media/FP1ZlYDVIAM_Bas?format=jpg&name=large)

---

Pra alguns casos, isso pode ser ruim. Você fica "sem ângulo fácil" para acessar as coleções aninhadas. Você teria que acessar os itens raiz e extrair suas coleções aninhadas. 

Ainda por cima, por ex., o DynamoDB comporta itens de até 400 KB – não serve para itens muito grandes.

---

Para fazer relacionamentos nesses tipos de bancos NoSQL, você precisar quebrar esse padrão de "uma tabela/colação por tipo". Suas tabs/cols passarão a comportar mais de um tipo de item/registro e que se referenciam. É super simples!

![img](https://pbs.twimg.com/media/FP1Zl9HUYAEOEFN?format=jpg&name=large)

---

Algumas vantagens dessa abordagem relacional "intra-tabela/coleção":

- Evita duplicidade (imagina uma modelagem livro/autor).

- Você pode economizar I/O projetando apenas aquilo que lhe interessa (no mundo cloud isso é especialmente importante 💰).

---

Aqui estão referências sobre o assunto para DynamoDB:

[Example of Modeling Relational Data in DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-modeling-nosql-B.html)

---

E para MongoDB:

[Model One-to-Many Relationships with Document References](https://www.mongodb.com/docs/manual/tutorial/model-referenced-one-to-many-relationships-between-documents/)

---

É esse o Tweet! Obrigado por ter lido até aqui e pense melhor sobre seus relacionamentos, se é que me entende.

Comente suas dúvidas/contribuições aqui pra gente discutir!
What was your win this week?
Tags: discuss, weeklyretro
Published: 2022-04-08 16:17:41

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

Hey there! 


Looking back on this past week, what was something you were proud of accomplishing?

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Fixing a tricky bug
- Meeting up with an old friend... or whatever else might spark joy ❤️ 

---

Happy Friday

![Sloth dancing](https://media.giphy.com/media/7frSUXgbGqQPKNnJRS/giphy.gif)
Organizing Mojolicious Routes
Tags: perl, mojolicious, programming, tutorial
Published: 2022-04-08 16:07:20

[Mojolicious](https://mojolicious.org/) is an awesome web framework and I have been developing an app in it for 2 years now. 

The basic structure is (taken off the docs - [Growing](https://docs.mojolicious.org/Mojolicious/Guides/Growing))

```
myapp                      # Application directory
|- script                  # Script directory
|  +- my_app               # Application script
|- lib                     # Library directory
|  |- MyApp.pm             # Application class
|  +- MyApp                # Application namespace
|     +- Controller        # Controller namespace
|        +- Example.pm     # Controller class
|- my_app.yml              # Configuration file
|- t                       # Test directory
|  +- basic.t              # Random test
|- log                     # Log directory
|  +- development.log      # Development mode log file
|- public                  # Static file directory (served automatically)
|  +- index.html           # Static HTML file
+- templates               # Template directory
   |- layouts              # Template directory for layouts
   |  +- default.html.ep   # Layout template
   +- example              # Template directory for "Example" controller
      +- welcome.html.ep   # Template for "welcome" action
```

the MyApp.pm is the core file that defines routes, app settings and plugins. As I was growing my app, that pm file became very large (200+ lines) with routes and I needed to do something. I remember reading from the devs that its best to use plugins for routes when your project becomes big.

I made a folder and a file under lib called Route > user.pm

I generally follow this pattern so if my url is /user/lookup
i'll have a route file called Route/user.pm that will handle all my /user routes.

Here is what the plugin looks like

under lib/MyApp/route/user.pm
```
package MyApp::Route::User;
use Mojo::Base 'Mojolicious::Plugin', -signatures;

sub register ($self, $app, $r) {
  $r->get('/user/lookup')->to('user#lookup');
}

1;
```

Now to add it into the MyApp.pm under lib.

```
my $r = $self->routes; #this should be somewhere already in the pm file.
$self->plugin('MyApp::Route::User', $r);
```

This removes tons of lines in the MyApp.pm and makes it easy to find the routes when needed to be worked on.
Callbacks in JavaScript
Tags: javascript, webdev, beginners, programming
Published: 2022-04-08 16:04:18

Hello, سلام, नमस्ते 👋

We are back again with another essential, crucial and easy to understand topic of JavaScript, that is **_Callbacks_** with some examples.
## What actually is a Callback?
A function is a block of code, that performs a certain task when called. For example
```javascript
// function
function welcome(name) {
     console.log('Hi ' + name)
}

welcome('Mursal')
// Output: Hi Mursal
```
In the above given example, a value is passed as an argument to the welcome() function. You can also pass a function as an argument to a function. This function that is passed as an argument inside of another function, is called a callback function. For example
```javascript
// function
function welcome(name, callback) {
     console.log('Hi ' + name)
     callback()
}

// callback function
function initCallback() {
     console.log('I am a callback Function')
}

// passing function as an argument
welcome('Mursal', initCallback)
```

## Why use them?
One of the biggest benefit of using Callbacks is you can wait for result of the previous function and then execute another function. For example
```javascript
// It will show delay in execution
function welcome() {
     console.log('Welcome to Dev')
}

function welcomePerson(name) {
     console.log('Welcome ' + name)
}

// calling the function
setTimeOut(welcome, 2000) //setTimeOut is used to so that the function is delayed
welcomePerson('Mursal')
```
In the above given example
- welcome() function is called 2000ms(2s) later
- During the wait, welcomePerson('Mursal') is executed
- **Welcome Mursal** is printed before **Welcome to Dev**


![Delayed GIF](https://media.giphy.com/media/KzbEbf0Cs30Ky2mWgh/giphy-downsized-large.gif)

## The correct time to use Callbacks
The callback function is helpful when you have to wait for a result that takes time. For example, the data coming from a server since it takes time for data to move.

Go ahead. Try callbacks in your everyday code and share your feedback here.
Get to know your DC motor: how to read a datasheet
Tags: opensource, motor, tutorial, luos
Published: 2022-04-08 16:00:14

Learn how to read and understand a motor’s datasheet.
⏩ https://www.luos.io/blog/get-to-know-your-dc-motor-how-to-read-a-datasheet

While working with DC motors, you’ll likely deal with datasheets/specifications files. Many retailers provide them to define the specifications of their motors to use them properly.

Discover now our article on this topic 👨🏽‍💻
Accessible for anyone who knows the basics of DC motors.
This Week In Python
Tags: python
Published: 2022-04-08 15:59:54


**Fri, April 8, 2022**

This Week in Python is a concise reading list about what happened in the past week in the Python universe. 

## Python Articles


- [Pre-allocated lists in Python](https://rednafi.github.io/reflections/pre-allocated-lists-in-python.html) – Microoptimizing Python Code 
- [20 Python Interview Questions](https://towardsdatascience.com/20-python-interview-questions-to-challenge-your-knowledge-cddc842297c5) – A peek into data structures, programming concepts, and best practices
- [Guide to Onboarding Software Engineers](https://leadership.garden/onboarding-engineers/) – Candidate experience doesn’t stop at signing the contract
- [Image processing as a service](https://dev.to/googlecloud/image-processing-as-a-service-8b4) – Create an image processing service that generates coloring pages
- [Python f-strings Are More Powerful Than You Might Think](https://martinheinz.dev/blog/70) – Let's take a tour of some awesome f-string features that you'll want to use in your everyday coding.

## Projects

- [mypy](https://github.com/python/mypy) – Optional static typing for Python
- [sqlfluff](https://github.com/sqlfluff/sqlfluff) – A SQL linter and auto-formatter for Humans
- [zulip](https://github.com/zulip/zulip) – Zulip server and web app—powerful open source team chat
- [paperless-ngx](https://github.com/paperless-ngx/paperless-ngx) – A community-supported supercharged version of paperless: scan, index and archive all your physical documents
- [sherlock](https://github.com/sherlock-project/sherlock) – Hunt down social media accounts by username across social networks
Experience with Nextcloud Docker Install
Published: 2022-04-08 15:53:28

I'm trying to move away from google drive cloud storage for my files, photos, documents, etc so I wanted to do a nextcloud docker install. I had one on my in house server but I'd rather have it hosted on a VPS for uptime purposes. I decided to use Linode to host my server since they have a cheap, flat rate versus AWS so I won't get a surprised bill.

Actually installing and getting the container installed was pretty easy in the terminal. The only real difficult part was getting the SQL database configured so it would install. I tried using sqlite even though I was warned against using it, and they were right to warn me cause it was really slow and completely unusable. I had to trash the container because of how slow it was and make a new one. This time I went with mariadb which was recommended by nextcloud documentation. But for whatever reason I was getting an error installing client-core-10.7.

![My error](https://puu.sh/ITwV7/f0dc61e662.png)

Attempting to install through the command line doesn't give me headway. Then I thought, what if I could install it in the docker container? [And sure enough there was a docker image.](https://hub.docker.com/_/mariadb) I followed the instructions install mariadb in a container and run it.

![I'm in](https://puu.sh/ITwYz/a6097c11af.png)

I'm not familiar with how to create a db, user, password, and to grant privileges to the user to have full access to the db but I followed a [tutorial](https://phoenixnap.com/kb/how-to-create-mariadb-user-grant-privileges#:~:text=To%20create%20a%20new%20MariaDB,to%20a%20local%20MySQL%20server.) on how to get that done and it was pretty simple. I then navigated to the install, input my credentials and everything installed successfully.